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
throw new IOException(MessageFormat.format(L10N.getLocalString("msg.couldntload_txt", "Couldn't load {0}"), new Object[]{fileName}));
throw new IOException(MessageFormat.format(edu.umd.cs.findbugs.gui.L10N.getLocalString("msg.couldntload_txt", "Couldn't load {0}"), new Object[]{fileName}));
private void processPage(javax.swing.JEditorPane pane, String fileName) throws IOException { InputStream in = null; BufferedReader reader = null; try { StringBuffer buf = new StringBuffer(); // Open the file as a stream in = getClass().getClassLoader().getResourceAsStream(fileName); if (in == null) throw new IOException(MessageFormat.format(L10N.getLocalString("msg.couldntload_txt", "Couldn't load {0}"), new Object[]{fileName})); reader = new BufferedReader(new InputStreamReader(in)); // Replace instances of @VERSION@ with actual version number String line; while ((line = reader.readLine()) != null) { line = pattern.matcher(line).replaceAll(Version.RELEASE); buf.append(line); buf.append('\n'); } // Load the page into the editor pane String text = buf.toString(); pane.setContentType("text/html"); pane.setText(text); } finally { try { if (reader != null) reader.close(); else if (in != null) in.close(); } catch (IOException e) { } } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/e46f6483c2781379c0187f280900175fdbdb8272/AboutDialog.java/clean/findbugs/src/java5/edu/umd/cs/findbugs/gui2/AboutDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1207, 1964, 12, 28384, 18, 5328, 310, 18, 46, 6946, 8485, 13618, 16, 514, 3968, 13, 1216, 1860, 288, 202, 202, 4348, 316, 273, 446, 31, 202, 202, 17947, 2514, 2949, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1207, 1964, 12, 28384, 18, 5328, 310, 18, 46, 6946, 8485, 13618, 16, 514, 3968, 13, 1216, 1860, 288, 202, 202, 4348, 316, 273, 446, 31, 202, 202, 17947, 2514, 2949, 273,...
threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self);
threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode(), iVisited.getVarNode()), self);
public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVisited.getIterNode()); return; } catch (RetryJump rExcptn) { } } } catch (BreakJump bExcptn) { IRubyObject breakValue = bExcptn.getBreakValue(); result = breakValue == null ? runtime.getNil() : breakValue; } finally { threadContext.getIterStack().pop(); threadContext.getBlockStack().pop(); } }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/95597cee751b3d52aa89d777e164e620f649ade9/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 2360, 907, 12, 2360, 907, 277, 30019, 13, 288, 3639, 2650, 1042, 18, 588, 1768, 2624, 7675, 6206, 12, 77, 30019, 18, 588, 1537, 907, 9334, 394, 18176, 1305, 12, 77, 300...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 2360, 907, 12, 2360, 907, 277, 30019, 13, 288, 3639, 2650, 1042, 18, 588, 1768, 2624, 7675, 6206, 12, 77, 30019, 18, 588, 1537, 907, 9334, 394, 18176, 1305, 12, 77, 300...
properties = createProperties();
initializeProperties();
public void setProperty(String key, String value) { if (properties == null) { // create a copy of MDC and repository properties properties = createProperties(); } if (value != null) { properties.put(key, value); } else { properties.remove(key); } }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/238f84afb3cb7caeb710449b0db2782336583cfb/LoggingEvent.java/buggy/src/java/org/apache/log4j/spi/LoggingEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 7486, 12, 780, 498, 16, 514, 460, 13, 288, 565, 309, 261, 4738, 422, 446, 13, 288, 1377, 368, 752, 279, 1610, 434, 490, 5528, 471, 3352, 1790, 3639, 4046, 2297, 5621, 1377, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 7486, 12, 780, 498, 16, 514, 460, 13, 288, 565, 309, 261, 4738, 422, 446, 13, 288, 1377, 368, 752, 279, 1610, 434, 490, 5528, 471, 3352, 1790, 3639, 4046, 2297, 5621, 1377, ...
{ return getBinaryStream(columnIndex); }
{ return getBinaryStream(columnIndex); }
public InputStream getAsciiStream(int columnIndex) throws SQLException { return getBinaryStream(columnIndex); }
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSet.java/buggy/src/interfaces/jdbc/postgresql/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5037, 4506, 1017, 2835, 1228, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 2463, 27149, 1228, 12, 2827, 1016, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5037, 4506, 1017, 2835, 1228, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 2463, 27149, 1228, 12, 2827, 1016, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, ...
return null;
throw new PSQLException("postgresql.metadata.unavailable");
public java.sql.ResultSet getTypeInfo() throws SQLException { java.sql.ResultSet rs = connection.ExecSQL("select typname from pg_type"); if(rs!=null) { Field f[] = new Field[18]; ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[1] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[2] = new Field(connection, "PRECISION", iInt4Oid, 4); f[3] = new Field(connection, "LITERAL_PREFIX", iVarcharOid, 32); f[4] = new Field(connection, "LITERAL_SUFFIX", iVarcharOid, 32); f[5] = new Field(connection, "CREATE_PARAMS", iVarcharOid, 32); f[6] = new Field(connection, "NULLABLE", iInt2Oid, 2); f[7] = new Field(connection, "CASE_SENSITIVE", iBoolOid, 1); f[8] = new Field(connection, "SEARCHABLE", iInt2Oid, 2); f[9] = new Field(connection, "UNSIGNED_ATTRIBUTE", iBoolOid, 1); f[10] = new Field(connection, "FIXED_PREC_SCALE", iBoolOid, 1); f[11] = new Field(connection, "AUTO_INCREMENT", iBoolOid, 1); f[12] = new Field(connection, "LOCAL_TYPE_NAME", iVarcharOid, 32); f[13] = new Field(connection, "MINIMUM_SCALE", iInt2Oid, 2); f[14] = new Field(connection, "MAXIMUM_SCALE", iInt2Oid, 2); f[15] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[16] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[17] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); // cache some results, this will keep memory useage down, and speed // things up a little. byte b9[] = "9".getBytes(); byte b10[] = "10".getBytes(); byte bf[] = "f".getBytes(); byte bnn[] = Integer.toString(typeNoNulls).getBytes(); byte bts[] = Integer.toString(typeSearchable).getBytes(); while(rs.next()) { byte[][] tuple = new byte[18][]; String typname=rs.getString(1); tuple[0] = typname.getBytes(); tuple[1] = Integer.toString(Field.getSQLType(typname)).getBytes(); tuple[2] = b9; // for now tuple[6] = bnn; // for now tuple[7] = bf; // false for now - not case sensitive tuple[8] = bts; tuple[9] = bf; // false for now - it's signed tuple[10] = bf; // false for now - must handle money tuple[11] = bf; // false for now - handle autoincrement // 12 - LOCAL_TYPE_NAME is null // 13 & 14 ? // 15 & 16 are unused so we return null tuple[17] = b10; // everything is base 10 v.addElement(tuple); } rs.close(); return new ResultSet(connection, f, v, "OK", 1); } return null; }
11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/44ae35cab91f1e5a6452da489d4a0c34e181afb9/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 3130, 966, 1435, 1216, 6483, 225, 288, 565, 2252, 18, 4669, 18, 13198, 3597, 273, 1459, 18, 1905, 3997, 2932, 4025, 3815, 529, 628, 7184, 67, 723, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 3130, 966, 1435, 1216, 6483, 225, 288, 565, 2252, 18, 4669, 18, 13198, 3597, 273, 1459, 18, 1905, 3997, 2932, 4025, 3815, 529, 628, 7184, 67, 723, 8863, ...
} else {
} else {
public String getClassNameForExpression(String identifier) { // lets see if it really is a class name String className = null; if (module != null) { className = module.getImport(identifier); if (className == null) { if (module.getUnit().getClass(identifier) != null) { className = identifier; } else { // lets prepend the package name to see if its in our // package String packageName = getPackageName(); if (packageName != null) { String guessName = packageName + "." + identifier; if (module.getUnit().getClass(guessName) != null) { className = guessName; } else if (guessName.equals(name)) { className = name; } } } } } else { System.out.println("No module for class: " + getName()); } return className; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/ecc208c3a556b7d25ca2b0d45df738e418ca9c34/ClassNode.java/clean/src/main/org/codehaus/groovy/ast/ClassNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 11819, 1290, 2300, 12, 780, 2756, 13, 288, 3639, 368, 14557, 2621, 309, 518, 8654, 353, 279, 667, 508, 3639, 514, 2658, 273, 446, 31, 3639, 309, 261, 2978, 480, 446, 13, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 11819, 1290, 2300, 12, 780, 2756, 13, 288, 3639, 368, 14557, 2621, 309, 518, 8654, 353, 279, 667, 508, 3639, 514, 2658, 273, 446, 31, 3639, 309, 261, 2978, 480, 446, 13, 288,...
public static double[][] getExtendedAdjacenyMatrix(AtomContainer atomContainer)
public static double[][] getExtendedAdjacenyMatrix(AtomContainer atomContainer)
public static double[][] getExtendedAdjacenyMatrix(AtomContainer atomContainer) throws org.openscience.cdk.exception.NoSuchAtomException { boolean debug = false; double[][] adjaMatrix = ConnectionMatrix.getMatrix(atomContainer); if (debug) { System.out.println("adjacency matrix: "); System.out.println(); displayMatrix(adjaMatrix); System.out.println(); } double[] atomWeights = getAtomWeights(atomContainer); for (int i = 0; i < adjaMatrix.length; i++) { for (int j = 0; j < adjaMatrix.length; j++) { if (i==j) { if (atomContainer.getAtom(i).getSymbol()=="O") { adjaMatrix[i][j] = Math.sqrt(0.74)/6; } else { adjaMatrix[i][j] = Math.sqrt(0.74)/6; } } else { adjaMatrix[i][j] = (Math.sqrt(atomWeights[i]/atomWeights[j]) + Math.sqrt(atomWeights[j]/atomWeights[i])) * Math.sqrt(adjaMatrix[i][j])/6; } } } if (debug) { System.out.println("extended adjacency matrix: "); System.out.println(); displayMatrix(adjaMatrix); System.out.println(); } return adjaMatrix; }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/0971906b242e8b5a0e534a085a4db5801b729cca/HuLuIndexTool.java/buggy/src/org/openscience/cdk/graph/invariant/HuLuIndexTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1645, 63, 6362, 65, 336, 11456, 17886, 1077, 275, 93, 4635, 12, 3641, 2170, 22487, 13, 540, 1216, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 4064, 18, 28341, 3641, 503,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 63, 6362, 65, 336, 11456, 17886, 1077, 275, 93, 4635, 12, 3641, 2170, 22487, 13, 540, 1216, 2358, 18, 20346, 71, 6254, 18, 71, 2883, 18, 4064, 18, 28341, 3641, 503,...
while (!(o instanceof NativeJavaObject)) {
while (!(o instanceof Wrapper)) {
public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { // Find a method that matches the types given. if (methods.length == 0) { throw new RuntimeException("No methods defined for call"); } Method meth = (Method) findFunction(methods, args); if (meth == null) { Class c = methods[0].getDeclaringClass(); String sig = c.getName() + "." + names[0] + "(" + scriptSignature(args) + ")"; Object errArgs[] = { sig }; throw Context.reportRuntimeError( Context.getMessage("msg.java.no_such_method", errArgs)); } // OPT: already retrieved in findFunction, so we should inline that // OPT: or pass it back somehow Class paramTypes[] = meth.getParameterTypes(); // First, we marshall the args. for (int i = 0; i < args.length; i++) { args[i] = NativeJavaObject.coerceType(paramTypes[i], args[i]); } Object javaObject; if (Modifier.isStatic(meth.getModifiers())) { javaObject = null; // don't need an object } else { Scriptable o = thisObj; while (!(o instanceof NativeJavaObject)) { o = o.getPrototype(); if (o == null) { Object errArgs[] = { names[0] }; throw Context.reportRuntimeError( Context.getMessage("msg.nonjava.method", errArgs)); } } javaObject = ((NativeJavaObject) o).unwrap(); } try { if (debug) { printDebug("Calling ", meth, args); } Object retval = meth.invoke(javaObject, args); Class staticType = meth.getReturnType(); if (debug) { Class actualType = (retval == null) ? null : retval.getClass(); System.err.println(" ----- Returned " + retval + " actual = " + actualType + " expect = " + staticType); } Object wrapped = NativeJavaObject.wrap(scope, retval, staticType); if (debug) { Class actualType = (wrapped == null) ? null : wrapped.getClass(); System.err.println(" ----- Wrapped as " + wrapped + " class = " + actualType); } if (wrapped == Undefined.instance) return wrapped; if (wrapped == null && staticType == Void.TYPE) return Undefined.instance; return wrapped; } catch (IllegalAccessException accessEx) { throw Context.reportRuntimeError(accessEx.getMessage()); } catch (InvocationTargetException e) { throw JavaScriptException.wrapException(scope, e); } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/4fb6f7ab3a572a1650430d02e1fe68045cca5374/NativeJavaMethod.java/clean/org/mozilla/javascript/NativeJavaMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 368, 4163, 279, 707, 716, 1885, 326, 1953, 864,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 368, 4163, 279, 707, 716, 1885, 326, 1953, 864,...
} catch (BDDException x) {
} catch (ReorderException x) {
int bdd_appuni(int l, int r, int opr, int var) { int res; int numReorder = 1; CHECKa(l, bddfalse); CHECKa(r, bddfalse); CHECKa(var, bddfalse); if (opr < 0 || opr > bddop_invimp) { bdd_error(BDD_OP); return bddfalse; } if (var < 2) /* Empty set */ return bdd_apply(l, r, opr); switch (opr) { case bddop_and: if (andcache == null) andcache = new OpCache2(cachesize); // and_rec() break; case bddop_or: if (orcache == null) orcache = new OpCache2(cachesize); // or_rec() break; default: if (applycache == null) applycache = new OpCache2(cachesize); // apply_rec() break; } if (appexcache == null) appexcache = new OpCache3(cachesize); // appquant_rec() if (quantcache == null) quantcache = new OpCache2(cachesize); // quant_rec() again : for (;;) { try { INITREF(); applyop = bddop_xor; appexop = opr; appexid = (var << 7) | (appexop << 3) | CACHEID_APPUN; /* FIXME: range! */ quantid = appexid; if (numReorder == 0) bdd_disable_reorder(); res = appuni_rec(l, r, var); if (numReorder == 0) bdd_enable_reorder(); } catch (BDDException x) { bdd_checkreorder(); numReorder--; continue again; } break; } checkresize(); return res; }
5661 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5661/89cb49994eb868d156357d12efa8aa38e96ac325/MicroFactory.java/buggy/JavaBDD/net/sf/javabdd/MicroFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 324, 449, 67, 2910, 318, 77, 12, 474, 328, 16, 509, 436, 16, 509, 320, 683, 16, 509, 569, 13, 288, 3639, 509, 400, 31, 3639, 509, 818, 426, 1019, 273, 404, 31, 3639, 14565, 69,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 324, 449, 67, 2910, 318, 77, 12, 474, 328, 16, 509, 436, 16, 509, 320, 683, 16, 509, 569, 13, 288, 3639, 509, 400, 31, 3639, 509, 818, 426, 1019, 273, 404, 31, 3639, 14565, 69,...
resetB.setIcon(resetImg);
resetB.setText(""); resetB.setIcon(resetImg);
DummyAgentGui(DummyAgent a) { ////////////////////////// // Call JFrame constructor super(); ////////////////////////////////////////////////////////// // Store pointer to the Dummy agent controlled by this GUI myAgent = a; ///////////////////////////////////////////////////////////////////// // Get agent name and initialize the saving/opening directory to null agentName = myAgent.getAID(); currentDir = null; //////////////////////////////////////////////////////////////// // Prepare for killing the agent when the agent window is closed addWindowListener(new WindowAdapter() { // This is executed when the user attempts to close the DummyAgent // GUI window using the button on the upper right corner public void windowClosing(WindowEvent e) { myAgent.doDelete(); } } ); ////////////////////////// // Set title in GUI window try{ setTitle(agentName.getName() + " - DummyAgent"); }catch(Exception e){setTitle("DummyAgent");} Image image = getToolkit().getImage(getClass().getResource(logoDummy)); setIconImage(image); //////////////////////////////// // Set GUI window layout manager getContentPane().setLayout(new BorderLayout()); ////////////////////////////////////////////////////////////////////////////////////// // Add the queued message scroll pane to the CENTER part of the border layout manager queuedMsgListModel = new DefaultListModel(); queuedMsgList = new JList(queuedMsgListModel); queuedMsgList.setCellRenderer(new ToFromCellRenderer()); JScrollPane pane = new JScrollPane(); pane.getViewport().setView(queuedMsgList); getContentPane().add("Center", pane); /////////////////////////////////////////////////////////////////////////////////////////////////// // Add the current message editing fields (an AclGui) to the WEST part of the border layout manager currentMsgGui = new AclGui(); //currentMsgGui.setBorder(new TitledBorder("Current message")); ACLMessage msg = new ACLMessage(ACLMessage.ACCEPT_PROPOSAL); msg.setSender(agentName); currentMsgGui.setMsg(msg); getContentPane().add("West", currentMsgGui); ///////////////////////////////////// // Add main menu to the GUI window JMenuBar jmb = new JMenuBar(); JMenuItem item; JMenu generalMenu = new JMenu ("General"); generalMenu.add (item = new JMenuItem ("Exit")); item.addActionListener (this); jmb.add (generalMenu); Icon resetImg = GuiProperties.getIcon("reset"); Icon sendImg = GuiProperties.getIcon("send"); Icon openImg = GuiProperties.getIcon("open"); Icon saveImg = GuiProperties.getIcon("save"); Icon openQImg = GuiProperties.getIcon("openq"); Icon saveQImg = GuiProperties.getIcon("saveq"); Icon setImg = GuiProperties.getIcon("set"); Icon replyImg = GuiProperties.getIcon("reply"); Icon viewImg = GuiProperties.getIcon("view"); Icon deleteImg = GuiProperties.getIcon("delete"); JMenu currentMsgMenu = new JMenu ("Current message"); currentMsgMenu.add (item = new JMenuItem ("Reset")); item.addActionListener (this); item.setIcon(resetImg); currentMsgMenu.add (item = new JMenuItem ("Send")); item.addActionListener (this); item.setIcon(sendImg); currentMsgMenu.add (item = new JMenuItem ("Open")); item.addActionListener (this); item.setIcon(openImg); currentMsgMenu.add (item = new JMenuItem ("Save")); item.addActionListener (this); item.setIcon(saveImg); currentMsgMenu.addSeparator(); jmb.add (currentMsgMenu); JMenu queuedMsgMenu = new JMenu ("Queued message"); queuedMsgMenu.add (item = new JMenuItem ("Open queue")); item.addActionListener (this); item.setIcon(openQImg); queuedMsgMenu.add (item = new JMenuItem ("Save queue")); item.addActionListener (this); item.setIcon(saveQImg); queuedMsgMenu.add (item = new JMenuItem ("Set as current")); item.addActionListener (this); item.setIcon(setImg); queuedMsgMenu.add (item = new JMenuItem ("Reply")); item.addActionListener (this); item.setIcon(replyImg); queuedMsgMenu.add (item = new JMenuItem ("View")); item.addActionListener (this); item.setIcon(viewImg); queuedMsgMenu.add (item = new JMenuItem ("Delete")); item.addActionListener (this); item.setIcon(deleteImg); jmb.add (queuedMsgMenu); setJMenuBar(jmb); ///////////////////////////////////////////////////// // Add Toolbar to the NORTH part of the border layout JToolBar bar = new JToolBar(); JButton resetB = new JButton(); //resetB.setText("Reset"); resetB.setIcon(resetImg); resetB.setToolTipText("New the current ACL message"); resetB.addActionListener(this); bar.add(resetB); JButton sendB = new JButton(); //sendB.setText("Send"); sendB.setIcon(sendImg); sendB.setToolTipText("Send the current ACL message"); sendB.addActionListener(this); bar.add(sendB); JButton openB = new JButton(); //openB.setText("Open"); openB.setIcon(openImg); openB.setToolTipText("Read the current ACL message from file"); openB.addActionListener(this); bar.add(openB); JButton saveB = new JButton(); //saveB.setText("Save"); saveB.setIcon(saveImg); saveB.setToolTipText("Save the current ACL message to file"); saveB.addActionListener(this); bar.add(saveB); bar.addSeparator(new Dimension(50,30)); JButton openQB = new JButton(); //openQB.setText("Open queue"); openQB.setIcon(openQImg); openQB.setToolTipText("Read the queue of sent/received messages from file"); openQB.addActionListener(this); bar.add(openQB); JButton saveQB = new JButton(); //saveQB.setText("Save queue"); saveQB.setIcon(saveQImg); saveQB.setToolTipText("Save the queue of sent/received messages to file"); saveQB.addActionListener(this); bar.add(saveQB); bar.addSeparator(); JButton setB = new JButton(); //setB.setText("Set as current"); setB.setIcon(setImg); setB.setToolTipText("Set the selected ACL message to be the current message"); setB.addActionListener(this); bar.add(setB); JButton replyB = new JButton(); //replyB.setText("Reply"); replyB.setIcon(replyImg); replyB.setToolTipText("Prepare a message to reply to the selected message"); replyB.addActionListener(this); bar.add(replyB); bar.addSeparator(); JButton viewB = new JButton(); //viewB.setText("View"); viewB.setIcon(viewImg); viewB.setToolTipText("View the selected ACL message"); viewB.addActionListener(this); bar.add(viewB); JButton deleteB = new JButton(); //deleteB.setText("Delete"); deleteB.setIcon(deleteImg); deleteB.setToolTipText("Delete the selected ACL message"); deleteB.addActionListener(this); bar.add(deleteB); bar.addSeparator(new Dimension(180,30)); JadeLogoButton logo = new JadeLogoButton(); bar.add(logo); getContentPane().add("North", bar); }
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/af968baf336f4bb7badf7bcb65c1f7d60964e51a/DummyAgentGui.java/clean/src/jade/tools/DummyAgent/DummyAgentGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 20094, 3630, 18070, 12, 20094, 3630, 279, 13, 202, 95, 202, 202, 25494, 759, 202, 202, 759, 3049, 804, 3219, 3885, 202, 202, 9565, 5621, 202, 202, 6461, 25494, 759, 202, 202, 759, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 20094, 3630, 18070, 12, 20094, 3630, 279, 13, 202, 95, 202, 202, 25494, 759, 202, 202, 759, 3049, 804, 3219, 3885, 202, 202, 9565, 5621, 202, 202, 6461, 25494, 759, 202, 202, 759, ...
if(uri.endsWith("/")) { uri = uri.substring(0,uri.length() - 2); }
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { // Step 1: determine the correct URI of the request. String uri = this.urlPathHelper.getLookupPathForRequest(request); if (uri.indexOf("?") > -1) { uri = uri.substring(0, uri.indexOf("?")); } // Step 2: lookup the controller in the application. GrailsControllerClass controllerClass = this.application.getControllerByURI(uri); if (controllerClass == null) { throw new UnknownControllerException("No controller found for URI [" + uri + "]!"); } String controllerName = WordUtils.uncapitalize(controllerClass.getName()); // Step 3: load controller from application context. GroovyObject controller = (GroovyObject)this.applicationContext.getBean(controllerClass.getFullName()); // Step 3a: Configure a proxy interceptor for controller dynamic methods for this request ProxyMetaClass pmc = PropertyAccessProxyMetaClass.getInstance(controller.getClass()); pmc.setInterceptor( new ControllerDynamicMethodsInterceptor(controller.getClass(),request,response) ); controller.setMetaClass(pmc); // Step 4: get closure property name for URI. String closurePropertyName = controllerClass.getClosurePropertyName(uri); if (closurePropertyName == null) { throw new NoClosurePropertyForURIException("Could not find closure property for URI [" + uri + "] for controller [" + controllerClass.getFullName() + "]!"); } // Step 5: get the view name for this URI. String viewName = controllerClass.getViewName(uri); boolean viewNameBlank = (viewName == null || viewName.length() == 0); // Step 6: get closure from closure property Closure closure = (Closure)controller.getProperty(closurePropertyName); // Step 7: determine argument count and execute. Object returnValue = null; if (closure.getParameterTypes().length == 1) { // closure may have zero or one parameter, we cannot be sure. returnValue = closure.call(new GrailsHttpServletRequest(request)); } else if (closure.getParameterTypes().length == 2) { returnValue = closure.call(new Object[] { new GrailsHttpServletRequest(request), new GrailsHttpServletResponse(response) }); } else { throw new IncompatibleParameterCountException("Closure on property [" + closurePropertyName + "] in [" + controllerClass.getFullName() + "] has an incompatible parameter count [" + closure.getParameterTypes().length + "]! Supported values are 0 and 2."); } // Step 8: determine return value type and handle accordingly if (returnValue == null) { if (viewNameBlank) { return null; } else { return new ModelAndView(viewName); } } else if (returnValue instanceof Map) { // remove any Proxy wrappers and set the adaptee as the value removeProxiesFromModelObjects((Map)returnValue); if (viewNameBlank) { throw new NoViewNameDefinedException("Map instance returned by and no view name specified for closure on property [" + closurePropertyName + "] in controller [" + controllerClass.getFullName() + "]!"); } else { return new ModelAndView(viewName, (Map)returnValue); } } else if (returnValue instanceof ModelAndView) { ModelAndView modelAndView = (ModelAndView)returnValue; // remove any Proxy wrappers and set the adaptee as the value removeProxiesFromModelObjects(modelAndView.getModel()); if (modelAndView.getView() == null && modelAndView.getViewName() == null) { if (viewNameBlank) { throw new NoViewNameDefinedException("ModelAndView instance returned by and no view name defined by nor for closure on property [" + closurePropertyName + "] in controller [" + controllerClass.getFullName() + "]!"); } else { modelAndView.setViewName(viewName); } } return modelAndView; } throw new UnsupportedReturnValueException("Return value [" + returnValue + "] is not supported for closure property [" + closurePropertyName + "] in controller [" + controllerClass.getFullName() + "]!"); }
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/f9f9b28e0b9d8b7d567c508e8e0f874936c9d2ce/SimpleGrailsController.java/buggy/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 430, 12, 1650, 18, 5839, 1190, 2932, 4898, 3719, 288, 2003, 273, 2003, 18, 28023, 12, 20, 16, 1650, 18, 2469, 1435, 300, 576, 1769, 289, 3164, 1876, 1767, 430, 12, 1650, 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, 430, 12, 1650, 18, 5839, 1190, 2932, 4898, 3719, 288, 2003, 273, 2003, 18, 28023, 12, 20, 16, 1650, 18, 2469, 1435, 300, 576, 1769, 289, 3164, 1876, 1767, 430, 12, 1650, 18, ...
initialize(); super.performDefaults();
IProject tempProject = getProject(); optionPage.resetIndexerPageSettings(tempProject);
protected void performDefaults() { initialize(); super.performDefaults(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6f38f94b902da419ea5ed8f3e7c790d0165ef130/IndexerOptionPropertyPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerOptionPropertyPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3073, 7019, 1435, 288, 202, 202, 11160, 5621, 202, 202, 9565, 18, 16092, 7019, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3073, 7019, 1435, 288, 202, 202, 11160, 5621, 202, 202, 9565, 18, 16092, 7019, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
protected Element addMessageHit(ZimbraSoapContext zc, Element response, MessageHit mh, EmailElementCache eecache, boolean inline, SearchParams params) throws ServiceException { Message msg = mh.getMessage(); // for bug 7568, mark-as-read must happen before the response is encoded. if (inline && msg.isUnread() && params.getMarkRead()) { // Mark the message as READ try { ArrayList<Integer> ids = new ArrayList<Integer>(1); ids.add(msg.getId()); ItemActionOperation.TAG(zc, null, zc.getOperationContext(), msg.getMailbox(), Requester.SOAP, ids, MailItem.TYPE_MESSAGE, false, null, Flag.ID_FLAG_UNREAD); } catch (ServiceException e) { mLog.warn("problem marking message as read (ignored): " + msg.getId(), e); } } Element m; if (inline) { m = ToXML.encodeMessageAsMP(response, zc, msg, null, params.getWantHtml(), true); if (!msg.getFragment().equals("")) m.addAttribute(MailService.E_FRAG, msg.getFragment(), Element.DISP_CONTENT); } else m = ToXML.encodeMessageSummary(response, zc, msg, params.getWantRecipients()); if (mh.getScore() != 0) m.addAttribute(MailService.A_SCORE, mh.getScore()); m.addAttribute(MailService.A_CONTENTMATCHED, true); List<MessagePartHit> parts = mh.getMatchedMimePartNames(); if (parts != null) { for (MessagePartHit mph : parts) { String partNameStr = mph.getPartName(); if (partNameStr.length() > 0) { Element mp = m.addElement(MailService.E_HIT_MIMEPART); mp.addAttribute(MailService.A_PART, partNameStr); } } } return m; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ba2926d0a02d2cba27d75029e1161383e9420e05/Search.java/clean/ZimbraServer/src/java/com/zimbra/cs/service/mail/Search.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3010, 16487, 13616, 12, 62, 381, 15397, 20601, 1042, 998, 71, 16, 3010, 766, 16, 2350, 13616, 17819, 16, 8166, 1046, 1649, 425, 557, 807, 16, 1250, 6370, 16, 5167, 1370, 859, 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, 377, 4750, 3010, 16487, 13616, 12, 62, 381, 15397, 20601, 1042, 998, 71, 16, 3010, 766, 16, 2350, 13616, 17819, 16, 8166, 1046, 1649, 425, 557, 807, 16, 1250, 6370, 16, 5167, 1370, 859, 13, ...
((AxisServiceGroup) axisService.getParent()).getServiceGroupName());
serviceGroupName);
public void fillServiceContextAndServiceGroupContext( MessageContext messageContext) throws AxisFault { String serviceGroupContextId = messageContext.getServiceGroupContextId(); SessionContext sessionContext = messageContext.getSessionContext(); // by this time service group context id must have a value. Either from transport or from addressing ServiceGroupContext serviceGroupContext; ServiceContext serviceContext = messageContext.getServiceContext(); AxisService axisService = messageContext.getAxisService(); if (serviceContext == null) { if (Constants.SCOPE_APPLICATION.equals(axisService.getScope())) { serviceGroupContext = (ServiceGroupContext) applicationSessionServiceGroupContextTable.get( ((AxisServiceGroup) axisService.getParent()).getServiceGroupName()); if (serviceGroupContext == null) { AxisServiceGroup axisServiceGroup = messageContext.getAxisServiceGroup(); if (axisServiceGroup == null) { axisServiceGroup = (AxisServiceGroup) messageContext.getAxisService().getParent(); } serviceGroupContext = new ServiceGroupContext(messageContext.getConfigurationContext(), axisServiceGroup); } serviceContext = serviceGroupContext.getServiceContext(axisService); } else if (!isNull(serviceGroupContextId) && (getServiceGroupContext(serviceGroupContextId, messageContext) != null)) { // SGC is already there serviceGroupContext = getServiceGroupContext(serviceGroupContextId, messageContext); serviceContext = serviceGroupContext.getServiceContext(messageContext.getAxisService()); } else { // either the key is null or no SGC is found from the give key if (isNull(serviceGroupContextId)) { serviceGroupContextId = UUIDGenerator.getUUID(); messageContext.setServiceGroupContextId(serviceGroupContextId); } if (messageContext.getAxisService() != null) { AxisServiceGroup axisServiceGroup = (AxisServiceGroup) messageContext.getAxisService().getParent(); serviceGroupContext = new ServiceGroupContext(this, axisServiceGroup); serviceContext = serviceGroupContext.getServiceContext(messageContext.getAxisService()); // set the serviceGroupContextID serviceGroupContext.setId(serviceGroupContextId); } else { throw new AxisFault(Messages.getMessage("servicenotfound")); } } /** * 1. Check the max scope of the service gruop , if it is grater than TransportSession * then need to store in configurationContext * 2. Else need to store in SessionContext , and need to store both service context and * service group context */ String maxScope = SessionUtils.calculateMaxScopeForServiceGroup(serviceGroupContext.getDescription()); if (Constants.SCOPE_SOAP_SESSION.equals(maxScope)) { registerServiceGroupContext(serviceGroupContext); } else if (Constants.SCOPE_TRANSPORT_SESSION.equals(maxScope)) { if (sessionContext != null) { sessionContext.addServiceGroupContext(serviceGroupContext, serviceGroupContextId); sessionContext.addServiceContext(serviceContext); } } messageContext.setServiceContext(serviceContext); if (Constants.SCOPE_REQUEST.equals(maxScope)) { messageContext.setServiceGroupContextId(null); } else { messageContext.setServiceGroupContext(serviceGroupContext); } } if (sessionContext != null) { // when you come here operation context MUST already been assigned to the message context serviceContext.setProperty(Constants.COOKIE_STRING, sessionContext.getCookieID()); } messageContext.getOperationContext().setParent(serviceContext); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/ed1cb6b271e86281ae211e69c7092d96740f9c9e/ConfigurationContext.java/buggy/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3636, 1179, 1042, 1876, 1179, 1114, 1042, 12, 5411, 2350, 1042, 883, 1042, 13, 5411, 1216, 15509, 7083, 288, 3639, 514, 1156, 1114, 1042, 548, 273, 883, 1042, 18, 588, 1179, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3636, 1179, 1042, 1876, 1179, 1114, 1042, 12, 5411, 2350, 1042, 883, 1042, 13, 5411, 1216, 15509, 7083, 288, 3639, 514, 1156, 1114, 1042, 548, 273, 883, 1042, 18, 588, 1179, 11...
super( con, tds );
super( con );
public CursorStatement( TdsConnection con, Tds tds, int type, int concurrency ) throws SQLException { super( con, tds ); this.type = type; this.concurrency = concurrency; }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/8d831598ef96cd49628d37716cc907f4193a3404/CursorStatement.java/buggy/src.old/main/freetds/CursorStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13949, 3406, 12, 399, 2377, 1952, 356, 16, 399, 2377, 268, 2377, 16, 509, 618, 16, 509, 17752, 262, 2398, 1216, 6483, 565, 288, 3639, 2240, 12, 356, 11272, 3639, 333, 18, 723, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13949, 3406, 12, 399, 2377, 1952, 356, 16, 399, 2377, 268, 2377, 16, 509, 618, 16, 509, 17752, 262, 2398, 1216, 6483, 565, 288, 3639, 2240, 12, 356, 11272, 3639, 333, 18, 723, 273...
return s43;
return s44;
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case ';': return s1; case 'p': return s2; case 'i': return s3; case '.': return s4; case 'e': return s5; case 'g': return s6; case 'f': return s7; case '(': return s8; case ',': return s9; case ')': return s10; case '{': return s11; case '}': return s12; case 'q': return s13; case 'r': return s14; case 'w': return s15; case ':': return s16; case 't': return s17; case 'a': return s18; case 's': return s19; case 'n': return s20; case 'd': return s21; case 'o': return s22; case '|': return s23; case '=': return s24; case '>': return s25; case '<': return s26; case '!': return s27; case 'c': return s28; case 'm': return s29; case '-': return s30; case '&': return s31; case '[': return s32; case ']': return s33; case 'u': return s34; case '%': case '*': case '+': case '@': case '\\': case '^': return s35; case '$': return s36; case '_': return s40; case '/': return s42; case '\'': return s43; case '\t': case '\f': case ' ': return s45; case '\n': case '\r': return s46; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return s48; case '"': return s49; case 'A': case 'B': case 'C': case 'D': case 'E': case 'F': case 'G': case 'H': case 'I': case 'J': case 'K': case 'L': case 'M': case 'N': case 'O': case 'P': case 'Q': case 'R': case 'S': case 'T': case 'U': case 'V': case 'W': case 'X': case 'Y': case 'Z': case 'b': case 'h': case 'j': case 'k': case 'l': case 'v': case 'x': case 'y': case 'z': case '\u00C0': case '\u00C1': case '\u00C2': case '\u00C3': case '\u00C4': case '\u00C5': case '\u00C6': case '\u00C7': case '\u00C8': case '\u00C9': case '\u00CA': case '\u00CB': case '\u00CC': case '\u00CD': case '\u00CE': case '\u00CF': case '\u00D0': case '\u00D1': case '\u00D2': case '\u00D3': case '\u00D4': case '\u00D5': case '\u00D6': case '\u00D7': case '\u00D8': case '\u00D9': case '\u00DA': case '\u00DB': case '\u00DC': case '\u00DD': case '\u00DE': case '\u00DF': case '\u00E0': case '\u00E1': case '\u00E2': case '\u00E3': case '\u00E4': case '\u00E5': case '\u00E6': case '\u00E7': case '\u00E8': case '\u00E9': case '\u00EA': case '\u00EB': case '\u00EC': case '\u00ED': case '\u00EE': case '\u00EF': case '\u00F0': case '\u00F1': case '\u00F2': case '\u00F3': case '\u00F4': case '\u00F5': case '\u00F6': case '\u00F7': case '\u00F8': case '\u00F9': case '\u00FA': case '\u00FB': case '\u00FC': case '\u00FD': case '\u00FE': case '\u00FF': return s50; case '#': return s51; default: if (backtracking>0) {failed=true; return null;} NoViableAltException nvae = new NoViableAltException("", 16, 0, input); throw nvae; } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/cb210a30853642e270a3bba6ce570409f6046852/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 12386, 4278, 10792, 327, 272, 21, 31, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 12386, 4278, 10792, 327, 272, 21, 31, 7734, ...
public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:870:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt58=11; switch ( input.LA(1) ) { case ID: alt58=1; break; case 17: alt58=2; break; case 56: alt58=3; break; case 28: alt58=4; break; case 26: alt58=5; break; case 33: alt58=6; break; case 34: alt58=7; break; case 29: alt58=8; break; case 31: alt58=9; break; case 27: alt58=10; break; case STRING: alt58=11; break; default: NoViableAltException nvae = new NoViableAltException("866:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 58, 0, input); throw nvae; } switch (alt58) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:870:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2538); word=id.getText(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:871:17: 'import' { match(input,17,FOLLOW_17_in_word2550); word="import"; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:872:17: 'use' { match(input,56,FOLLOW_56_in_word2559); word="use"; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:873:17: 'rule' { match(input,28,FOLLOW_28_in_word2571); word="rule"; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:874:17: 'query' { match(input,26,FOLLOW_26_in_word2582); word="query"; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:875:17: 'salience' { match(input,33,FOLLOW_33_in_word2592); word="salience"; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:876:17: 'no-loop' { match(input,34,FOLLOW_34_in_word2600); word="no-loop"; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:877:17: 'when' { match(input,29,FOLLOW_29_in_word2608); word="when"; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:878:17: 'then' { match(input,31,FOLLOW_31_in_word2619); word="then"; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:879:17: 'end' { match(input,27,FOLLOW_27_in_word2630); word="end"; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:880:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word2644); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f57cd683a66080d941264e3f98974908a6a489a0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2076, 1435, 1216, 9539, 288, 6647, 514, 2076, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 3155, 609, 33, 2011, 31, 1171, 202, 202, 1095, 273, 446, 31, 540, 202, 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, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2076, 1435, 1216, 9539, 288, 6647, 514, 2076, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 3155, 609, 33, 2011, 31, 1171, 202, 202, 1095, 273, 446, 31, 540, 202, 3639, 775, 288, ...
String s = area.getText(); Color oldColor = graphics.getColor(); java.awt.Font oldFont = graphics.getFont(); String aFontName = fontNames.get(name).toString();
String s = area.getText(); Color oldColor = graphics.getColor(); java.awt.Font oldFont = graphics.getFont(); String aFontName = fontNames.get(name).toString();
public void renderInlineArea(InlineArea area) { char ch; StringBuffer pdf = new StringBuffer(); String name = area.getFontState().getFontName(); int size = area.getFontState().getFontSize(); float red = area.getRed(); float green = area.getGreen(); float blue = area.getBlue(); if ((!name.equals(this.currentFontName)) || (size != this.currentFontSize)) { this.currentFontName = name; this.currentFontSize = size; } if ((red != this.currentRed) || (green != this.currentGreen) || (blue != this.currentBlue)) { this.currentRed = red; this.currentGreen = green; this.currentBlue = blue; } int rx = this.currentXPosition; int bl = this.currentYPosition; String s = area.getText(); Color oldColor = graphics.getColor(); java.awt.Font oldFont = graphics.getFont(); String aFontName = fontNames.get(name).toString(); aFontName = getJavaFontName(aFontName); java.awt.Font f = new java.awt.Font(aFontName, ((Integer)fontStyles.get(name)).intValue(), (int)(size / 1000f)); graphics.setColor(new Color(red, green, blue)); /* Die KLasse TextLayout nimmt fr die Ausgabe eigenen Schriftsatz, der i.R. breiter ist. Deshalb wird bis diese Tatsache sich geklrt/ geregelt hat weniger schne Ausgabe ber Graphics benutzt. */ /* FontRenderContext newContext = new FontRenderContext(null, true, false); TextLayout layout = new TextLayout(s, f, newContext); layout.draw(graphics, rx / 1000f, (int)(pageHeight - bl / 1000f)); */ graphics.setFont(f); graphics.drawString(s, rx / 1000f, (int)(pageHeight - bl / 1000f)); graphics.setFont(oldFont); graphics.setColor(oldColor); this.currentXPosition += area.getContentWidth(); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/6a973c3f62476ddcb2fbc13c7bbcfc9669cb5f3b/AWTRenderer.java/buggy/src/org/apache/fop/render/awt/AWTRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1743, 10870, 5484, 12, 10870, 5484, 5091, 13, 288, 565, 1149, 462, 31, 565, 6674, 8169, 273, 394, 6674, 5621, 565, 514, 508, 273, 5091, 18, 588, 5711, 1119, 7675, 588, 5711, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1743, 10870, 5484, 12, 10870, 5484, 5091, 13, 288, 565, 1149, 462, 31, 565, 6674, 8169, 273, 394, 6674, 5621, 565, 514, 508, 273, 5091, 18, 588, 5711, 1119, 7675, 588, 5711, ...
private void populateTable(PowerTableModel model, Iterator iter)
private void populateTable(PowerTableModel model, PropertyIterator iter)
private void populateTable(PowerTableModel model, Iterator iter) { model.clearData(); while (iter.hasNext()) { model.addRow(new Object[] { iter.next()}); } model.fireTableDataChanged(); }
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/6387d4363a878561c19e1b148f889c826acf31fd/ProxyControlGui.java/clean/src/protocol/http/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6490, 1388, 12, 13788, 1388, 1488, 938, 16, 4276, 3198, 1400, 13, 565, 288, 3639, 938, 18, 8507, 751, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 3639, 288, 5411, 938, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6490, 1388, 12, 13788, 1388, 1488, 938, 16, 4276, 3198, 1400, 13, 565, 288, 3639, 938, 18, 8507, 751, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 3639, 288, 5411, 938, ...
public void setSource(ILexerSource source) { //this.source = new LineBufferScannerSource(new LexerScannerSource(source)); this.support = new RubyLexerSupport(source); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 18913, 12, 2627, 8913, 1830, 1084, 13, 288, 1082, 202, 759, 2211, 18, 3168, 273, 394, 5377, 1892, 11338, 1830, 12, 2704, 14234, 11338, 1830, 12, 3168, 10019, 1082, 202, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 18913, 12, 2627, 8913, 1830, 1084, 13, 288, 1082, 202, 759, 2211, 18, 3168, 273, 394, 5377, 1892, 11338, 1830, 12, 2704, 14234, 11338, 1830, 12, 3168, 10019, 1082, 202, 22...
((IHistoryNotificationAwareOperation) operation)
((IAdvancedUndoableOperation) operation)
private void preNotifyOperation(IUndoableOperation operation, OperationHistoryEvent event) { if (operation instanceof IHistoryNotificationAwareOperation) { try { ((IHistoryNotificationAwareOperation) operation) .aboutToNotify(event); } catch (Exception e) { handleNotificationException(e); } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f5656fbf7c45e321c08933559ac75ff31dec9c7b/DefaultOperationHistory.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 675, 9168, 2988, 12, 45, 31224, 429, 2988, 1674, 16, 1082, 202, 2988, 5623, 1133, 871, 13, 288, 202, 202, 430, 261, 7624, 1276, 467, 5623, 4386, 10155, 2988, 13, 288, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 675, 9168, 2988, 12, 45, 31224, 429, 2988, 1674, 16, 1082, 202, 2988, 5623, 1133, 871, 13, 288, 202, 202, 430, 261, 7624, 1276, 467, 5623, 4386, 10155, 2988, 13, 288, 10...
if (m_afterGroupsMap == null) { m_afterGroupsMap = new HashMap<String, ITestNGMethod>(); for (ITestNGMethod m : m_allMethods) { String[] groups = m.getGroups(); for (String g : groups) {
if(m_afterGroupsMap == null) { m_afterGroupsMap= new HashMap<String, ITestNGMethod>(); for(ITestNGMethod m : m_allMethods) { String[] groups= m.getGroups(); for(String g : groups) {
public boolean isLastMethodForGroup(String group, ITestNGMethod method) { // If we have more invocation to do, this is not the last // one yet int invocationCount = method.getCurrentInvocationCount(); if (invocationCount < method.getInvocationCount() * method.getParameterInvocationCount()) { return false; } // Lazy initialization since we might never be called if (m_afterGroupsMap == null) { m_afterGroupsMap = new HashMap<String, ITestNGMethod>(); for (ITestNGMethod m : m_allMethods) { String[] groups = m.getGroups(); for (String g : groups) { m_afterGroupsMap.put(g, m); } } } // Note: == is good enough here return m_afterGroupsMap.get(group) == method; }
50994 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50994/6277313ba72f743074b5132830ccfbab20f1e274/ConfigurationGroupMethods.java/clean/src/main/org/testng/internal/ConfigurationGroupMethods.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 23075, 1305, 1290, 1114, 12, 780, 1041, 16, 467, 4709, 4960, 1305, 707, 13, 288, 565, 368, 971, 732, 1240, 1898, 9495, 358, 741, 16, 333, 353, 486, 326, 1142, 565, 368, 1245...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 23075, 1305, 1290, 1114, 12, 780, 1041, 16, 467, 4709, 4960, 1305, 707, 13, 288, 565, 368, 971, 732, 1240, 1898, 9495, 358, 741, 16, 333, 353, 486, 326, 1142, 565, 368, 1245...
public void visitAssignmentExpression(@NotNull PsiAssignmentExpression exp){
public void visitAssignmentExpression( @NotNull PsiAssignmentExpression exp){
public void visitAssignmentExpression(@NotNull PsiAssignmentExpression exp){ if(arrayAssigned){ return; } super.visitAssignmentExpression(exp); final PsiExpression lhs = exp.getLExpression(); if(arrayName.equals(lhs.getText())){ arrayAssigned = true; } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/f4d42343faae0a9a5d67701acaf912882ddb379c/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 7729, 2300, 12, 632, 5962, 453, 7722, 7729, 2300, 1329, 15329, 5411, 309, 12, 1126, 20363, 15329, 7734, 327, 31, 5411, 289, 5411, 2240, 18, 11658, 7729, 2300, 12, 2749, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 7729, 2300, 12, 632, 5962, 453, 7722, 7729, 2300, 1329, 15329, 5411, 309, 12, 1126, 20363, 15329, 7734, 327, 31, 5411, 289, 5411, 2240, 18, 11658, 7729, 2300, 12, 2749, 1...
if (folder.getId() == Mailbox.ID_FOLDER_TAGS)
if (folder.getId() == Mailbox.ID_FOLDER_TAGS) {
private boolean folderSync(ZimbraSoapContext zsc, Element response, Mailbox mbox, Folder folder, Set<Folder> visible, SyncPhase phase) throws ServiceException { if (folder == null) return false; if (visible != null && visible.isEmpty()) return false; boolean isVisible = visible == null || visible.remove(folder); // short-circuit if we know that this won't be in the output List<Folder> subfolders = folder.getSubfolders(null); if (!isVisible && subfolders.isEmpty()) return false; // write this folder's data to the response boolean initial = phase == SyncPhase.INITIAL; Element f = ToXML.encodeFolder(response, zsc, folder, initial ? ToXML.NOTIFY_FIELDS : Change.ALL_FIELDS); if (initial && isVisible) { // we're in the middle of an initial sync, so serialize the item ids boolean isSearch = folder instanceof SearchFolder; Mailbox.OperationContext octxt = zsc.getOperationContext(); if (!isSearch) { if (folder.getId() == Mailbox.ID_FOLDER_TAGS) initialTagSync(zsc, f, mbox); else { initialItemSync(f, MailService.E_MSG, mbox.listItemIds(octxt, MailItem.TYPE_MESSAGE, folder.getId())); initialItemSync(f, MailService.E_CONTACT, mbox.listItemIds(octxt, MailItem.TYPE_CONTACT, folder.getId())); initialItemSync(f, MailService.E_NOTE, mbox.listItemIds(octxt, MailItem.TYPE_NOTE, folder.getId())); initialItemSync(f, MailService.E_APPOINTMENT, mbox.listItemIds(octxt, MailItem.TYPE_APPOINTMENT, folder.getId())); } } else { // anything else to be done for searchfolders? } } if (isVisible && visible != null && visible.isEmpty()) return true; // write the subfolders' data to the response for (Folder subfolder : subfolders) if (subfolder != null) isVisible |= folderSync(zsc, f, mbox, subfolder, visible, phase); // if this folder and all its subfolders are not visible (oops!), remove them from the response if (!isVisible) f.detach(); return isVisible; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/7c95e41ee2f432e6e0eb2e5a3c32ee900e43b1d3/SyncOperation.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/SyncOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 3009, 4047, 12, 62, 381, 15397, 20601, 1042, 998, 1017, 16, 3010, 766, 16, 11542, 2147, 312, 2147, 16, 12623, 3009, 16, 1000, 32, 3899, 34, 6021, 16, 9721, 11406, 6855, 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, 377, 3238, 1250, 3009, 4047, 12, 62, 381, 15397, 20601, 1042, 998, 1017, 16, 3010, 766, 16, 11542, 2147, 312, 2147, 16, 12623, 3009, 16, 1000, 32, 3899, 34, 6021, 16, 9721, 11406, 6855, 13, ...
/*@bgen(jjtree) NestedInterfaceDeclaration */ ASTNestedInterfaceDeclaration jjtn000 = new ASTNestedInterfaceDeclaration(this, JJTNESTEDINTERFACEDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { label_10: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case ABSTRACT: case FINAL: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: case STRICTFP: ; break; default: jj_la1[23] = jj_gen; break label_10; } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case STATIC: jj_consume_token(STATIC); jjtn000.setStatic(); break; case ABSTRACT: jj_consume_token(ABSTRACT); jjtn000.setAbstract(); break; case FINAL: jj_consume_token(FINAL); jjtn000.setFinal(); break; case PUBLIC: jj_consume_token(PUBLIC); jjtn000.setPublic(); break; case PROTECTED: jj_consume_token(PROTECTED); jjtn000.setProtected(); break; case PRIVATE: jj_consume_token(PRIVATE); jjtn000.setPrivate(); break; case STRICTFP: jj_consume_token(STRICTFP); jjtn000.setStrict(); break; default: jj_la1[24] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } UnmodifiedInterfaceDeclaration(); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { { if (true) throw (RuntimeException) jjte000; } } if (jjte000 instanceof ParseException) { { if (true) throw (ParseException) jjte000; } } { if (true) throw (RuntimeException) jjte000; } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); }
/*@bgen(jjtree) NestedInterfaceDeclaration */ ASTNestedInterfaceDeclaration jjtn000 = new ASTNestedInterfaceDeclaration(this, JJTNESTEDINTERFACEDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case ABSTRACT: case FINAL: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: case STRICTFP: ; break; default: jj_la1[23] = jj_gen; break label_10;
final public void NestedInterfaceDeclaration() throws ParseException { /*@bgen(jjtree) NestedInterfaceDeclaration */ ASTNestedInterfaceDeclaration jjtn000 = new ASTNestedInterfaceDeclaration(this, JJTNESTEDINTERFACEDECLARATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { label_10: while (true) { switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case ABSTRACT: case FINAL: case PRIVATE: case PROTECTED: case PUBLIC: case STATIC: case STRICTFP: ; break; default: jj_la1[23] = jj_gen; break label_10; } switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) { case STATIC: jj_consume_token(STATIC); jjtn000.setStatic(); break; case ABSTRACT: jj_consume_token(ABSTRACT); jjtn000.setAbstract(); break; case FINAL: jj_consume_token(FINAL); jjtn000.setFinal(); break; case PUBLIC: jj_consume_token(PUBLIC); jjtn000.setPublic(); break; case PROTECTED: jj_consume_token(PROTECTED); jjtn000.setProtected(); break; case PRIVATE: jj_consume_token(PRIVATE); jjtn000.setPrivate(); break; case STRICTFP: jj_consume_token(STRICTFP); jjtn000.setStrict(); break; default: jj_la1[24] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } UnmodifiedInterfaceDeclaration(); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { { if (true) throw (RuntimeException) jjte000; } } if (jjte000 instanceof ParseException) { { if (true) throw (ParseException) jjte000; } } { if (true) throw (RuntimeException) jjte000; } } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 1071, 918, 19071, 1358, 6094, 1435, 1216, 10616, 288, 3639, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 19071, 1358, 6094, 1195, 3639, 9183, 8649, 1358, 6094, 10684, 5088, 3784, 273, 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, 727, 1071, 918, 19071, 1358, 6094, 1435, 1216, 10616, 288, 3639, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 19071, 1358, 6094, 1195, 3639, 9183, 8649, 1358, 6094, 10684, 5088, 3784, 273, 3...
JButton sizePlus = view.getSizePlus(), sizeMinus = view.getSizeMinus(), magPlus = view.getMagPlus(), magMinus = view.getMagMinus(); sizePlus.addActionListener(this); sizePlus.setActionCommand(""+SIZE_PLUS); sizeMinus.addActionListener(this); sizeMinus.setActionCommand(""+SIZE_MINUS); magPlus.addActionListener(this); magPlus.setActionCommand(""+MAG_PLUS); magMinus.addActionListener(this); magMinus.setActionCommand(""+MAG_MINUS);
attachButtonListeners(view.getSizePlus(), SIZE_PLUS); attachButtonListeners(view.getSizeMinus(), SIZE_MINUS); attachButtonListeners(view.getMagPlus(), MAG_PLUS); attachButtonListeners(view.getMagMinus(), MAG_MINUS);
void attachListeners() { //button JButton sizePlus = view.getSizePlus(), sizeMinus = view.getSizeMinus(), magPlus = view.getMagPlus(), magMinus = view.getMagMinus(); sizePlus.addActionListener(this); sizePlus.setActionCommand(""+SIZE_PLUS); sizeMinus.addActionListener(this); sizeMinus.setActionCommand(""+SIZE_MINUS); magPlus.addActionListener(this); magPlus.setActionCommand(""+MAG_PLUS); magMinus.addActionListener(this); magMinus.setActionCommand(""+MAG_MINUS); //ComboBox JComboBox box = view.getColors(); box.addActionListener(this); box.setActionCommand(""+COLOR_SELECT); //CheckBox view.getOnOff().addItemListener(this); view.getPin().addItemListener(this); view.getPainting().addItemListener(this); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/8846f7da5fbaf4d3fb83aa43b5616bcd13483654/LensBarMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/lens/LensBarMng.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3306, 5583, 1435, 565, 288, 3639, 368, 5391, 3639, 28804, 963, 13207, 273, 1476, 18, 588, 1225, 13207, 9334, 963, 18434, 273, 1476, 18, 588, 1225, 18434, 9334, 1171, 4447, 13207, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3306, 5583, 1435, 565, 288, 3639, 368, 5391, 3639, 28804, 963, 13207, 273, 1476, 18, 588, 1225, 13207, 9334, 963, 18434, 273, 1476, 18, 588, 1225, 18434, 9334, 1171, 4447, 13207, 273, ...
} else if (arg.equals("-classpath")) {
} else if (arg.equals("-classpath") || arg.equals("-cp")) {
public void parseOption(String arg, LinkedList args) { // XXX use ListIterator.remove() int nextArgIndex = args.indexOf(arg)+1; // XXX assumes unique // trim arg? if (LangUtil.isEmpty(arg)) { showWarning("empty arg found"); } else if (arg.equals("-inpath")) {; if (args.size() > nextArgIndex) {// buildConfig.getAjOptions().put(AjCompilerOptions.OPTION_Inpath, CompilerOptions.PRESERVE); List inPath = buildConfig.getInpath(); StringTokenizer st = new StringTokenizer( ((ConfigParser.Arg)args.get(nextArgIndex)).getValue(), File.pathSeparator); while (st.hasMoreTokens()) { String filename = st.nextToken(); File file = makeFile(filename); if (file.exists() && FileUtil.hasZipSuffix(filename)) { inPath.add(file); } else { if (file.isDirectory()) { inPath.add(file); } else showError("bad inpath component: " + filename); } } buildConfig.setInPath(inPath); args.remove(args.get(nextArgIndex)); } } else if (arg.equals("-injars")) {; if (args.size() > nextArgIndex) {// buildConfig.getAjOptions().put(AjCompilerOptions.OPTION_InJARs, CompilerOptions.PRESERVE); StringTokenizer st = new StringTokenizer( ((ConfigParser.Arg)args.get(nextArgIndex)).getValue(), File.pathSeparator); while (st.hasMoreTokens()) { String filename = st.nextToken(); File jarFile = makeFile(filename); if (jarFile.exists() && FileUtil.hasZipSuffix(filename)) { buildConfig.getInJars().add(jarFile); } else { File dirFile = makeFile(filename); if (dirFile.isDirectory()) { buildConfig.getInJars().add(dirFile); } else showError("bad injar: " + filename); } } args.remove(args.get(nextArgIndex)); } } else if (arg.equals("-aspectpath")) {; if (args.size() > nextArgIndex) { StringTokenizer st = new StringTokenizer( ((ConfigParser.Arg)args.get(nextArgIndex)).getValue(), File.pathSeparator); while (st.hasMoreTokens()) { String filename = st.nextToken(); File jarFile = makeFile(filename); if (jarFile.exists() && FileUtil.hasZipSuffix(filename)) { buildConfig.getAspectpath().add(jarFile); } else { showError("bad aspectpath: " + filename); } } args.remove(args.get(nextArgIndex)); } } else if (arg.equals("-sourceroots")) { if (args.size() > nextArgIndex) { List sourceRoots = new ArrayList(); StringTokenizer st = new StringTokenizer( ((ConfigParser.Arg)args.get(nextArgIndex)).getValue(), File.pathSeparator); while (st.hasMoreTokens()) { File f = makeFile(st.nextToken()); if (f.isDirectory() && f.canRead()) { sourceRoots.add(f); } else { showError("bad sourceroot: " + f); } } if (0 < sourceRoots.size()) { buildConfig.setSourceRoots(sourceRoots); } args.remove(args.get(nextArgIndex)); } else { showError("-sourceroots requires list of directories"); } } else if (arg.equals("-outjar")) { if (args.size() > nextArgIndex) {// buildConfig.getAjOptions().put(AjCompilerOptions.OPTION_OutJAR, CompilerOptions.GENERATE); File jarFile = makeFile(((ConfigParser.Arg)args.get(nextArgIndex)).getValue()); if (FileUtil.hasZipSuffix(jarFile)) { try { if (!jarFile.exists()) { jarFile.createNewFile(); } buildConfig.setOutputJar(jarFile); } catch (IOException ioe) { showError("unable to create outjar file: " + jarFile); } } else { showError("invalid -outjar file: " + jarFile); } args.remove(args.get(nextArgIndex)); } else { showError("-outjar requires jar path argument"); } } else if (arg.equals("-incremental")) { buildConfig.setIncrementalMode(true); } else if (arg.equals("-XincrementalFile")) { if (args.size() > nextArgIndex) { File file = makeFile(((ConfigParser.Arg)args.get(nextArgIndex)).getValue()); buildConfig.setIncrementalFile(file); if (!file.canRead()) { showError("bad -XincrementalFile : " + file); // if not created before recompile test, stop after first compile } args.remove(args.get(nextArgIndex)); } else { showError("-XincrementalFile requires file argument"); } } else if (arg.equals("-emacssym")) { buildConfig.setEmacsSymMode(true); buildConfig.setGenerateModelMode(true); } else if (arg.equals("-XjavadocsInModel")) { buildConfig.setGenerateModelMode(true); buildConfig.setGenerateJavadocsInModelMode(true); } else if (arg.equals("-noweave") || arg.equals( "-XnoWeave")) { buildConfig.setNoWeave(true); } else if (arg.equals("-XserializableAspects")) { buildConfig.setXserializableAspects(true); } else if (arg.equals("-XlazyTjp")) { buildConfig.setXlazyTjp(true); } else if (arg.startsWith("-Xreweavable")) { buildConfig.setXreweavable(true); if (arg.endsWith(":compress")) { buildConfig.setXreweavableCompressClasses(true); } } else if (arg.equals("-XnoInline")) { buildConfig.setXnoInline(true); } else if (arg.startsWith("-showWeaveInfo")) { buildConfig.setShowWeavingInformation(true); } else if (arg.equals("-Xlintfile")) { if (args.size() > nextArgIndex) { File lintSpecFile = makeFile(((ConfigParser.Arg)args.get(nextArgIndex)).getValue()); // XXX relax restriction on props file suffix? if (lintSpecFile.canRead() && lintSpecFile.getName().endsWith(".properties")) { buildConfig.setLintSpecFile(lintSpecFile); } else { showError("bad -Xlintfile file: " + lintSpecFile); buildConfig.setLintSpecFile(null); } args.remove(args.get(nextArgIndex)); } else { showError("-Xlintfile requires .properties file argument"); } } else if (arg.equals("-Xlint")) {// buildConfig.getAjOptions().put(// AjCompilerOptions.OPTION_Xlint,// CompilerOptions.GENERATE); buildConfig.setLintMode(AjBuildConfig.AJLINT_DEFAULT); } else if (arg.startsWith("-Xlint:")) { if (7 < arg.length()) { buildConfig.setLintMode(arg.substring(7)); } else { showError("invalid lint option " + arg); } } else if (arg.equals("-bootclasspath")) { if (args.size() > nextArgIndex) { String bcpArg = ((ConfigParser.Arg)args.get(nextArgIndex)).getValue(); StringBuffer bcp = new StringBuffer(); StringTokenizer strTok = new StringTokenizer(bcpArg,File.pathSeparator); while (strTok.hasMoreTokens()) { bcp.append(makeFile(strTok.nextToken())); if (strTok.hasMoreTokens()) { bcp.append(File.pathSeparator); } } bootclasspath = bcp.toString(); args.remove(args.get(nextArgIndex)); } else { showError("-bootclasspath requires classpath entries"); } } else if (arg.equals("-classpath")) { if (args.size() > nextArgIndex) { String cpArg = ((ConfigParser.Arg)args.get(nextArgIndex)).getValue(); StringBuffer cp = new StringBuffer(); StringTokenizer strTok = new StringTokenizer(cpArg,File.pathSeparator); while (strTok.hasMoreTokens()) { cp.append(makeFile(strTok.nextToken())); if (strTok.hasMoreTokens()) { cp.append(File.pathSeparator); } } classpath = cp.toString(); args.remove(args.get(nextArgIndex)); } else { showError("-classpath requires classpath entries"); } } else if (arg.equals("-extdirs")) { if (args.size() > nextArgIndex) { String extdirsArg = ((ConfigParser.Arg)args.get(nextArgIndex)).getValue(); StringBuffer ed = new StringBuffer(); StringTokenizer strTok = new StringTokenizer(extdirsArg,File.pathSeparator); while (strTok.hasMoreTokens()) { ed.append(makeFile(strTok.nextToken())); if (strTok.hasMoreTokens()) { ed.append(File.pathSeparator); } } extdirs = ed.toString(); args.remove(args.get(nextArgIndex)); } else { showError("-extdirs requires list of external directories"); } // error on directory unless -d, -{boot}classpath, or -extdirs } else if (arg.equals("-d")) { dirLookahead(arg, args, nextArgIndex);// } else if (arg.equals("-classpath")) {// dirLookahead(arg, args, nextArgIndex);// } else if (arg.equals("-bootclasspath")) {// dirLookahead(arg, args, nextArgIndex);// } else if (arg.equals("-extdirs")) {// dirLookahead(arg, args, nextArgIndex); } else if (new File(arg).isDirectory()) { showError("dir arg not permitted: " + arg); } else { // argfile, @file parsed by superclass // no eclipse options parsed: // -d args, -help (handled), // -classpath, -target, -1.3, -1.4, -source [1.3|1.4] // -nowarn, -warn:[...], -deprecation, -noImportError, // -proceedOnError, -g:[...], -preserveAllLocals, // -referenceInfo, -encoding, -verbose, -log, -time // -noExit, -repeat unparsedArgs.add(arg); } }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/8e4d8980e45ba054e7d8e3e5e7ac3aca940d0758/BuildArgParser.java/clean/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1109, 1895, 12, 780, 1501, 16, 10688, 833, 13, 288, 368, 11329, 999, 987, 3198, 18, 4479, 1435, 1082, 202, 474, 1024, 4117, 1016, 273, 833, 18, 31806, 12, 3175, 27921, 21, 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, 540, 1071, 918, 1109, 1895, 12, 780, 1501, 16, 10688, 833, 13, 288, 368, 11329, 999, 987, 3198, 18, 4479, 1435, 1082, 202, 474, 1024, 4117, 1016, 273, 833, 18, 31806, 12, 3175, 27921, 21, 31...
if (iShowLogMenuItem == null) { try { iShowLogMenuItem = new MenuItem(); iShowLogMenuItem.setLabel("Log"); } catch (Throwable iExc) { handleException(iExc); } } return iShowLogMenuItem; }
if (iShowLogMenuItem == null) { try { iShowLogMenuItem = new MenuItem(); iShowLogMenuItem.setLabel("Log"); } catch (Throwable iExc) { handleException(iExc); } } return iShowLogMenuItem; }
private MenuItem getShowLogMenuItem() { if (iShowLogMenuItem == null) { try { iShowLogMenuItem = new MenuItem(); iShowLogMenuItem.setLabel("Log"); } catch (Throwable iExc) { handleException(iExc); } } return iShowLogMenuItem; }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/fe51ee9558d5e044a610f65a6bea1f3dfea18c5f/VAJAntToolGUI.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJAntToolGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 25085, 7932, 543, 1343, 12958, 1435, 288, 202, 202, 430, 261, 77, 5706, 1343, 12958, 422, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 77, 5706, 1343, 12958, 273, 394, 25085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25085, 7932, 543, 1343, 12958, 1435, 288, 202, 202, 430, 261, 77, 5706, 1343, 12958, 422, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 77, 5706, 1343, 12958, 273, 394, 25085, ...
try { if (Arrays.asList(getAll()).contains(id)) { delete(); } } catch (Exception e) {
if (Arrays.asList(getAll()).contains(id)) { delete();
public ModelEnum deleteAndCreate(Object... params) throws Exception { try { if (Arrays.asList(getAll()).contains(id)) { delete(); } } catch (Exception e) { // ignore } return create(params); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c5cf8b0e7a877d581dcc585d30d25f67f636f0b2/XmlRpcServer.java/clean/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/support/XmlRpcServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 3164, 3572, 1430, 1876, 1684, 12, 921, 2777, 859, 13, 1216, 1185, 288, 1082, 202, 698, 288, 9506, 202, 430, 261, 12726, 18, 345, 682, 12, 588, 1595, 1435, 2934, 12298, 12, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3164, 3572, 1430, 1876, 1684, 12, 921, 2777, 859, 13, 1216, 1185, 288, 1082, 202, 698, 288, 9506, 202, 430, 261, 12726, 18, 345, 682, 12, 588, 1595, 1435, 2934, 12298, 12, 35...
newValue = new Item("I", intValue2 % intValue1);
newValue = new Item("I", lhsValue % rhsValue);
private void pushByIntMath(int seen, Item it, Item it2) { if (DEBUG) System.out.println("pushByIntMath: " + it.getConstant() + " " + it2.getConstant() ); Item newValue = new Item("I"); try { if ((it.getConstant() != null) && it2.getConstant() != null) { Integer intValue2 = (Integer) it2.getConstant(); Integer intValue1 = (Integer) it.getConstant(); if (seen == IADD) newValue = new Item("I",intValue2 + intValue1); else if (seen == ISUB) newValue = new Item("I",intValue2 - intValue1); else if (seen == IMUL) newValue = new Item("I", intValue2 * intValue1); else if (seen == IDIV) newValue = new Item("I", intValue2 / intValue1); else if (seen == IAND) { newValue = new Item("I", intValue2 & intValue1); if ((intValue1&0xff) == 0 && intValue1 != 0 || (intValue2&0xff) == 0 && intValue2 != 0 ) newValue.specialKind = Item.LOW_8_BITS_CLEAR; } else if (seen == IOR) newValue = new Item("I",intValue2 | intValue1); else if (seen == IXOR) newValue = new Item("I",intValue2 ^ intValue1); else if (seen == ISHL) { newValue = new Item("I",intValue2 << intValue1); if (intValue1 >= 8) newValue.specialKind = Item.LOW_8_BITS_CLEAR; } else if (seen == ISHR) newValue = new Item("I",intValue2 >> intValue1); else if (seen == IREM) newValue = new Item("I", intValue2 % intValue1); else if (seen == IUSHR) newValue = new Item("I", intValue2 >>> intValue1); } else if (it2.getConstant() != null && seen == ISHL && (Integer) it2.getConstant() >= 8) newValue.specialKind = Item.LOW_8_BITS_CLEAR; else if (it2.getConstant() != null && seen == IAND && ((Integer) it2.getConstant() & 0xff) == 0) newValue.specialKind = Item.LOW_8_BITS_CLEAR; } catch (RuntimeException e) { // ignore it } if (DEBUG) System.out.println("push: " + newValue); push(newValue); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/8169d4407c3f7b7399bef633479026f5ed56f72f/OpcodeStack.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/OpcodeStack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 202, 1152, 918, 1817, 858, 1702, 10477, 12, 474, 5881, 16, 4342, 518, 16, 4342, 518, 22, 13, 288, 1082, 309, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 6206, 858, 1702, 10477, 30, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 202, 1152, 918, 1817, 858, 1702, 10477, 12, 474, 5881, 16, 4342, 518, 16, 4342, 518, 22, 13, 288, 1082, 309, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 6206, 858, 1702, 10477, 30, ...
request.setAttribute("_ERROR_MESSAGE_", "<li>" + errMsg);
request.setAttribute("_EVENT_MESSAGE_", errMsg);
public static String scheduleService(HttpServletRequest request, HttpServletResponse response) { GenericValue userLogin = (GenericValue) request.getSession().getAttribute("userLogin"); Security security = (Security) request.getAttribute("security"); LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute("dispatcher"); //GenericDelegator delegator = (GenericDelegator) request.getAttribute("delegator"); Locale locale = UtilHttp.getLocale(request); Map params = UtilHttp.getParameterMap(request); // get the schedule parameters String serviceName = (String) params.remove("SERVICE_NAME"); String poolName = (String) params.remove("POOL_NAME"); String serviceTime = (String) params.remove("SERVICE_TIME"); String serviceEndTime = (String) params.remove("SERVICE_END_TIME"); String serviceFreq = (String) params.remove("SERVICE_FREQUENCY"); String serviceIntr = (String) params.remove("SERVICE_INTERVAL"); String serviceCnt = (String) params.remove("SERVICE_COUNT"); String retryCnt = (String) params.remove("SERVICE_MAXRETRY"); // the frequency map Map freqMap = new HashMap(); freqMap.put("SECONDLY", new Integer(1)); freqMap.put("MINUTELY", new Integer(2)); freqMap.put("HOURLY", new Integer(3)); freqMap.put("DAILY", new Integer(4)); freqMap.put("WEEKLY", new Integer(5)); freqMap.put("MONTHLY", new Integer(6)); freqMap.put("YEARLY", new Integer(7)); // some defaults long startTime = (new Date()).getTime(); long endTime = 0; int maxRetry = -1; int count = 1; int interval = 1; int frequency = RecurrenceRule.DAILY; StringBuffer errorBuf = new StringBuffer(); // make sure we passed a service if (serviceName == null) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.must_specify_service", locale); request.setAttribute("_ERROR_MESSAGE_", "<li>" + errMsg); return "error"; } // lookup the service definition to see if this service is externally available, if not require the SERVICE_INVOKE_ANY permission ModelService modelService = null; try { modelService = dispatcher.getDispatchContext().getModelService(serviceName); } catch (GenericServiceException e) { Debug.logError(e, "Error looking up ModelService for serviceName [" + serviceName + "]", module); String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.error_modelservice_for_srv_name", locale); request.setAttribute("_ERROR_MESSAGE_", "<li>" + errMsg + " [" + serviceName + "]: " + e.toString()); return "error"; } if (modelService == null) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.service_name_not_find", locale); request.setAttribute("_ERROR_MESSAGE_", "<li>" + errMsg + " [" + serviceName + "]"); return "error"; } // make the context valid; using the makeValid method from ModelService Map serviceContext = new HashMap(); Iterator ci = modelService.getInParamNames().iterator(); while (ci.hasNext()) { String name = (String) ci.next(); // don't include userLogin, that's taken care of below if ("userLogin".equals(name)) continue; // don't include locale, that is also taken care of below if ("locale".equals(name)) continue; Object value = request.getParameter(name); // if the parameter wasn't passed and no other value found, don't pass on the null if (value == null) { value = request.getAttribute(name); } if (value == null) { value = request.getSession().getAttribute(name); } if (value == null) { // still null, give up for this one continue; } if (value instanceof String && ((String) value).length() == 0) { // interpreting empty fields as null values for each in back end handling... value = null; } // set even if null so that values will get nulled in the db later on serviceContext.put(name, value); } serviceContext = modelService.makeValid(serviceContext, ModelService.IN_PARAM, true, null, locale); if (userLogin != null) { serviceContext.put("userLogin", userLogin); } if (locale != null) { serviceContext.put("locale", locale); } if (!modelService.export && !security.hasPermission("SERVICE_INVOKE_ANY", request.getSession())) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.not_authorized_to_call", locale); request.setAttribute("_ERROR_MESSAGE_", "<li>" + errMsg); return "error"; } // some conversions if (serviceTime != null && serviceTime.length() > 0) { try { Timestamp ts1 = Timestamp.valueOf(serviceTime); startTime = ts1.getTime(); } catch (IllegalArgumentException e) { try { startTime = Long.parseLong(serviceTime); } catch (NumberFormatException nfe) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.invalid_format_time", locale); errorBuf.append("<li>" + errMsg); } } if (startTime < (new Date()).getTime()) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.service_time_already_passed", locale); errorBuf.append("<li>" + errMsg); } } if (serviceEndTime != null && serviceEndTime.length() > 0) { try { Timestamp ts1 = Timestamp.valueOf(serviceEndTime); endTime = ts1.getTime(); } catch (IllegalArgumentException e) { try { endTime = Long.parseLong(serviceTime); } catch (NumberFormatException nfe) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.invalid_format_time", locale); errorBuf.append("<li>" + errMsg); } } if (endTime < (new Date()).getTime()) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.service_time_already_passed", locale); errorBuf.append("<li>" + errMsg); } } if (serviceIntr != null && serviceIntr.length() > 0) { try { interval = Integer.parseInt(serviceIntr); } catch (NumberFormatException nfe) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.invalid_format_interval", locale); errorBuf.append("<li>" + errMsg); } } if (serviceCnt != null && serviceCnt.length() > 0) { try { count = Integer.parseInt(serviceCnt); } catch (NumberFormatException nfe) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.invalid_format_count", locale); errorBuf.append("<li>" + errMsg); } } if (serviceFreq != null && serviceFreq.length() > 0) { int parsedValue = 0; try { parsedValue = Integer.parseInt(serviceFreq); if (parsedValue > 0 && parsedValue < 8) frequency = parsedValue; } catch (NumberFormatException nfe) { parsedValue = 0; } if (parsedValue == 0) { if (!freqMap.containsKey(serviceFreq.toUpperCase())) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.invalid_format_frequency", locale); errorBuf.append("<li>" + errMsg); } else { frequency = ((Integer) freqMap.get(serviceFreq.toUpperCase())).intValue(); } } } if (retryCnt != null && retryCnt.length() > 0) { int parsedValue = -2; try { parsedValue = Integer.parseInt(retryCnt); } catch (NumberFormatException e) { parsedValue = -2; } if (parsedValue > -2) { maxRetry = parsedValue; } else { maxRetry = modelService.maxRetry; } } else { maxRetry = modelService.maxRetry; } // return the errors if (errorBuf.length() > 0) { request.setAttribute("_ERROR_MESSAGE_", errorBuf.toString()); return "error"; } // schedule service try { dispatcher.schedule(poolName, serviceName, serviceContext, startTime, frequency, interval, count, endTime, maxRetry); } catch (GenericServiceException e) { String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.service_dispatcher_exception", locale); request.setAttribute("_ERROR_MESSAGE_", "<li>" + errMsg + e.getMessage()); return "error"; } String errMsg = UtilProperties.getMessage(CoreEvents.err_resource, "coreEvents.service_scheduled", locale); request.setAttribute("_ERROR_MESSAGE_", "<li>" + errMsg); return "success"; }
22229 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22229/02dfed9bdaf95344cff197398c52b66d70d38bfb/CoreEvents.java/clean/framework/webapp/src/org/ofbiz/webapp/event/CoreEvents.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 4788, 1179, 12, 2940, 18572, 590, 16, 12446, 766, 13, 288, 3639, 7928, 620, 729, 5358, 273, 261, 7014, 620, 13, 590, 18, 588, 2157, 7675, 588, 1499, 2932, 1355, 5358, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 4788, 1179, 12, 2940, 18572, 590, 16, 12446, 766, 13, 288, 3639, 7928, 620, 729, 5358, 273, 261, 7014, 620, 13, 590, 18, 588, 2157, 7675, 588, 1499, 2932, 1355, 5358, 88...
public void remove(MutableTreeNode node) { children.remove(node);
public void remove(int index) { children.remove(index);
public void remove(MutableTreeNode node) { children.remove(node); } // remove()
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/d092ccafae9945813bbf1be1db3d5e5bd006a90b/DefaultMutableTreeNode.java/buggy/libjava/javax/swing/tree/DefaultMutableTreeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 12, 19536, 12513, 756, 13, 288, 202, 202, 5906, 18, 4479, 12, 2159, 1769, 202, 97, 368, 1206, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 12, 19536, 12513, 756, 13, 288, 202, 202, 5906, 18, 4479, 12, 2159, 1769, 202, 97, 368, 1206, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (b.isSelected())
if (b.isSelected() && b.isEnabled())
public void paint(Graphics g, JComponent c) { AbstractButton b = (AbstractButton) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); Icon currentIcon = null; if (b.isSelected()) currentIcon = b.getSelectedIcon(); else currentIcon = b.getIcon(); SwingUtilities.calculateInnerArea(b, vr); String text = SwingUtilities.layoutCompoundLabel (c, g.getFontMetrics(f), b.getText(), currentIcon, b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getVerticalTextPosition(), b.getHorizontalTextPosition(), vr, ir, tr, b.getIconTextGap() + defaultTextShiftOffset); if (currentIcon != null) { currentIcon.paintIcon(c, g, ir.x, ir.y); } if (text != null) paintText(g, b, tr, text); // TODO: Figure out what is the size parameter? if (b.hasFocus()) paintFocus(g, tr, null); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicRadioButtonUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicRadioButtonUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12574, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 565, 4115, 3616, 324, 273, 261, 7469, 3616, 13, 276, 31, 565, 13264, 433, 273, 394, 13264, 5621, 565, 13264, 9482, 273, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12574, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 565, 4115, 3616, 324, 273, 261, 7469, 3616, 13, 276, 31, 565, 13264, 433, 273, 394, 13264, 5621, 565, 13264, 9482, 273, 3...
Date theDate = new Date(); GregorianCalendar cal = new GregorianCalendar(); int year = cal.get(Calendar.YEAR) - 2000; int month = cal.get(Calendar.MONTH); int day = cal.get(Calendar.DAY_OF_MONTH); int date = year*10000+(month+1)*100+day;
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; //get todays date Date theDate = new Date(); GregorianCalendar cal = new GregorianCalendar(); int year = cal.get(Calendar.YEAR) - 2000; int month = cal.get(Calendar.MONTH); int day = cal.get(Calendar.DAY_OF_MONTH); int date = year*10000+(month+1)*100+day; //get parameters String type = req.getParameter("type"); inFile = req.getParameter("file"); //gets the filecontent String resFile = IMCServiceRMI.getFortune(imcServer,inFile); //collect the correct questions/citat/pictures HashMap row_texts = new HashMap(50); int row = 0; res.setContentType("text/html"); PrintWriter out = res.getWriter(); //out.println( "resFile = " + resFile ); //the dates int bIndex = 0; int eIndex = 0; while ( resFile.indexOf((int)'#',bIndex) != -1) { eIndex = resFile.indexOf((int)'#',bIndex); int date1 = Integer.parseInt(resFile.substring(bIndex,eIndex)); bIndex = eIndex + 1; eIndex = resFile.indexOf((int)'#',bIndex); int date2 = Integer.parseInt(resFile.substring(bIndex,eIndex)); bIndex = eIndex + 1; eIndex = resFile.indexOf((int)'#',bIndex); if ( date1 <= date && date2 >= date) { row_texts.put(new Integer(row),resFile.substring(bIndex,eIndex)); } bIndex = eIndex + 3; row++; } int max_row = row; //out.println( "maxRow = " + max_row + " <br>"); Collection texts = row_texts.values(); int nr = texts.size(); //get the text and row to return String theText; int the_row; if (!(nr>0)) { theText = "Ingen text kan visas" ; the_row = -1; } else { //get one randomised item Set rows = row_texts.keySet(); do { Random random = new Random(); the_row = random.nextInt(max_row); } while(!rows.contains(new Integer(the_row))); theText = (String)row_texts.get(new Integer(the_row)); } //out.println( "the_row = " + the_row + " <br>" ); //out.println( "theText = " + theText + " <br> <br>"); if( type.equals("pic")) { out.println( "<img src=\" " + theText + "\"> "); } else if(type.equals("quot")) { out.println( theText ); //raden i filen out.println("<input type=\"hidden\" name=\"quotrow\" value=\"" + the_row + "\">"); out.println("<input type=\"hidden\" name=\"quot\" value=\"" + theText + "\">"); } else if(type.equals("ques")) { out.println( theText ); out.println("<input type=\"hidden\" name=\"quesrow\" value=\"" + the_row + "\">"); out.println("<input type=\"hidden\" name=\"question\" value=\"" + theText + "\">"); } else { out.println( theText ); } return ; } // End doGet
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/cd29304b3d5e074ab6bcd5b7551ecf16e3a1a5d1/QEngine.java/clean/servlets/QEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 225, 202, 95, 9506, 202, 780, 1479, 273, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 225, 202, 95, 9506, 202, 780, 1479, 273, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 2...
return getAttribute("accept-charset"); }
return getAttribute("accept-charset"); }
public String getAcceptCharset() { return getAttribute("accept-charset"); }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/bf94d6634ab3635fdb8210105d9c1c839d13e555/WMLGoElementImpl.java/clean/src/org/apache/wml/dom/WMLGoElementImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 4506, 4474, 9652, 1435, 288, 565, 327, 4061, 2932, 9436, 17, 9999, 8863, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 4506, 4474, 9652, 1435, 288, 565, 327, 4061, 2932, 9436, 17, 9999, 8863, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
kernelModule.defineMethod("puts", getMethodPuts());
kernelModule.defineMethod("puts", new ReflectionCallbackMethod(RBKernel.class, "m_puts", RubyObject[].class, true, true)); kernelModule.defineMethod("print", new ReflectionCallbackMethod(RBKernel.class, "m_print", RubyObject[].class, true, true));
public static RubyModule createKernelModule(Ruby ruby) { RubyModule kernelModule = ruby.defineModule("Kernel"); kernelModule.defineMethod("puts", getMethodPuts()); kernelModule.defineMethod("to_s", getMethodToS()); return kernelModule; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/09d14a481cf7e28332c61c038c7d4b468854d38d/RBKernel.java/buggy/org/jruby/core/RBKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 3120, 752, 11286, 3120, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 3120, 5536, 3120, 273, 22155, 18, 11255, 3120, 2932, 11286, 8863, 7734, 5536, 3120, 18, 11255, 1305, 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, 377, 1071, 760, 19817, 3120, 752, 11286, 3120, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 3120, 5536, 3120, 273, 22155, 18, 11255, 3120, 2932, 11286, 8863, 7734, 5536, 3120, 18, 11255, 1305, 29...
String output = LocalUtil.escape(reply.toString());
String output = reply.toString();
private void doReply(HttpServletRequest req, HttpServletResponse resp, Object reply, boolean xml) throws IOException { PrintWriter out = resp.getWriter(); if (xml) { resp.setContentType("text/xml"); // Set standard HTTP/1.1 no-cache headers. resp.setHeader("Cache-Control", "no-store, no-cache, must-revalidate"); // Set IE extended HTTP/1.1 no-cache headers (use addHeader). resp.addHeader("Cache-Control", "post-check=0, pre-check=0"); // Set standard HTTP/1.0 no-cache header. resp.setHeader("Pragma", "no-cache"); // Set to expire far in the past. Prevents caching at the proxy server resp.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT"); if (reply == null) { out.println(""); } else { out.println(reply.toString()); } } else { resp.setContentType("text/html"); out.println("<html>"); out.println("<head>"); out.println(" <title>DWR Exec Reply</title>"); out.println("</head>"); out.println("<body>"); if (reply == null) { out.println("<script type='text/javascript'>window.parent.dwrHandleResponse()</script>"); out.println("<p>The called function returned void or null.<br/>"); } else { String output = LocalUtil.escape(reply.toString()); out.println("<script type='text/javascript'>window.parent.dwrHandleResponse('" + StringEscapeUtils.escapeJavaScript(output) + "')</script>"); out.println("<p>The called function returned: [<span style='color:#800; font-family:monospace;'>" + StringEscapeUtils.escapeHtml(output) + "</span>]<br/>"); } out.println("This resulted from the query: [<span style='color:#800; font-family:monospace;'>"+req.getQueryString()+"</span>]</p>"); out.println("<p>If you can see this then it is likely that debug is on or that something is broken. An attempt has been made to passed the reply to dwrHandleResponse() in the parent window which should delete this iframe is debug is off.</p>"); out.println("</body>"); out.println("</html>"); } out.flush(); }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/fb9fff7091661a4aad0ee61705385d9daadbb2ec/DWRServlet.java/buggy/java/uk/ltd/getahead/dwr/DWRServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 7817, 12, 2940, 18572, 1111, 16, 12446, 1718, 16, 1033, 4332, 16, 1250, 2025, 13, 1216, 1860, 565, 288, 3639, 14071, 596, 273, 1718, 18, 588, 2289, 5621, 7734, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 7817, 12, 2940, 18572, 1111, 16, 12446, 1718, 16, 1033, 4332, 16, 1250, 2025, 13, 1216, 1860, 565, 288, 3639, 14071, 596, 273, 1718, 18, 588, 2289, 5621, 7734, 309, 261, ...
super.createPartControl(parent);
super.createPartControl(parent);
public void createPartControl(Composite parent) { super.createPartControl(parent); // TODO: Check for possible reliance on IMarker TableViewer tableViewer = getViewer(); CellEditor cellEditors[] = new CellEditor[tableViewer.getTable() .getColumnCount()]; CellEditor descriptionCellEditor = new TextCellEditor(tableViewer .getTable()); cellEditors[0] = descriptionCellEditor; tableViewer.setCellEditors(cellEditors); tableViewer.setCellModifier(cellModifier); tableViewer.setColumnProperties(TABLE_COLUMN_PROPERTIES); cellEditorActionHandler = new CellEditorActionHandler(getViewSite() .getActionBars()); cellEditorActionHandler.addCellEditor(descriptionCellEditor); cellEditorActionHandler.setCopyAction(copyAction); cellEditorActionHandler.setPasteAction(pasteAction); cellEditorActionHandler.setDeleteAction(deleteAction); cellEditorActionHandler.setSelectAllAction(selectAllAction); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ceb585b9b16047c6c580984b0c9962c41a22ba6/BookmarkView.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/BookmarkView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 3639, 2240, 18, 2640, 1988, 3367, 12, 2938, 1769, 3639, 368, 2660, 30, 2073, 364, 3323, 14719, 1359, 603, 467, 7078, 3639, 3555, 18415,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 1988, 3367, 12, 9400, 982, 13, 288, 3639, 2240, 18, 2640, 1988, 3367, 12, 2938, 1769, 3639, 368, 2660, 30, 2073, 364, 3323, 14719, 1359, 603, 467, 7078, 3639, 3555, 18415,...
if (url != null) {
if (url != null)
public URL getResource(String name) { if (closed) { return null; } if (Debug.DEBUG && Debug.DEBUG_LOADER) { Debug.println("BundleClassLoader[" + delegate + "].getResource(" + name + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } try { URL url = null; // First check the parent classloader for system resources. ClassLoader parent = getParentPrivileged(); if (parent != null) url = parent.getResource(name); if (url != null) { return (url); } url = delegate.findResource(name); if (url != null) { return (url); } } catch (ImportResourceNotFoundException e) { } if (Debug.DEBUG && Debug.DEBUG_LOADER) { Debug.println("BundleClassLoader[" + delegate + "].getResource(" + name + ") failed."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } return (null); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/793f8f0de973f3b9e0d6633cc53e3ab6cd78b934/AbstractClassLoader.java/clean/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/adaptor/core/AbstractClassLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1976, 5070, 12, 780, 508, 13, 288, 202, 202, 430, 261, 12204, 13, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 430, 261, 2829, 18, 9394, 597, 4015, 18, 9394, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1976, 5070, 12, 780, 508, 13, 288, 202, 202, 430, 261, 12204, 13, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 430, 261, 2829, 18, 9394, 597, 4015, 18, 9394, 67, ...
if ( ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) )
if ( ( (ReportDesignHandle) templates.get( selectedIndex ) ).getCheatSheet( ) != null && ( (ReportDesignHandle) templates.get( selectedIndex ) ).getCheatSheet( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) )
public boolean getShowCheatSheet( ) { if ( ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) ) { return true; } return chkBox.getSelection( ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/76ebe408a984f02b49cbaf1597c0c7a0213901fe/WizardTemplateChoicePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardTemplateChoicePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 7932, 543, 39, 580, 270, 8229, 12, 262, 202, 95, 202, 202, 430, 261, 261, 261, 2283, 13, 5539, 18, 588, 12, 29244, 262, 262, 18, 588, 39, 580, 270, 8229, 548, 12, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 7932, 543, 39, 580, 270, 8229, 12, 262, 202, 95, 202, 202, 430, 261, 261, 261, 2283, 13, 5539, 18, 588, 12, 29244, 262, 262, 18, 588, 39, 580, 270, 8229, 548, 12, 26...
public void addJarToPackages(File jarfile,boolean cache) { addJarToPackages(null,jarfile,cache);
public void addJarToPackages(java.net.URL jarurl) { addJarToPackages(jarurl,null,false);
public void addJarToPackages(File jarfile,boolean cache) { addJarToPackages(null,jarfile,cache); }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/1033f5b9afb49069650e80d6a669026d3eb164dc/CachedJarsPackageManager.java/buggy/org/python/core/CachedJarsPackageManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 10813, 774, 11425, 12, 812, 7334, 768, 16, 6494, 1247, 13, 288, 3639, 527, 10813, 774, 11425, 12, 2011, 16, 11930, 768, 16, 2493, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 10813, 774, 11425, 12, 812, 7334, 768, 16, 6494, 1247, 13, 288, 3639, 527, 10813, 774, 11425, 12, 2011, 16, 11930, 768, 16, 2493, 1769, 565, 289, 2, -100, -100, -100, -1...
sAppend = "-"+sCPUType;
sAppend = '-' +sCPUType;
private static final String getMiddleName(boolean optimized){ String sAppend; if(optimized) { if(sCPUType == null) return null; else sAppend = "-"+sCPUType; }else sAppend = "-none"; boolean isWindows =(System.getProperty("os.name").toLowerCase().indexOf("windows") != -1); boolean isLinux =(System.getProperty("os.name").toLowerCase().indexOf("linux") != -1); boolean isFreebsd =(System.getProperty("os.name").toLowerCase().indexOf("freebsd") != -1); boolean isMacOS =(System.getProperty("os.name").toLowerCase().indexOf("mac os x") != -1); if(isWindows) return "jbigi-windows"+sAppend; // The convention on Windows if(isLinux) return "jbigi-linux"+sAppend; // The convention on linux... if(isFreebsd) return "jbigi-freebsd"+sAppend; // The convention on freebsd... if(isMacOS) return "jbigi-osx"+sAppend; // The convention on Mac OS X... throw new RuntimeException("Dont know jbigi library name for os type '"+System.getProperty("os.name")+"'"); }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/62fd59041864b4ed1f43adc676de6bfb5ea977f3/NativeBigInteger.java/clean/src/net/i2p/util/NativeBigInteger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 514, 2108, 3132, 461, 12, 6494, 15411, 15329, 377, 202, 377, 202, 780, 272, 5736, 31, 377, 202, 430, 12, 16689, 1235, 13, 377, 202, 95, 377, 202, 202, 430, 12, 87, 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, 3238, 760, 727, 514, 2108, 3132, 461, 12, 6494, 15411, 15329, 377, 202, 377, 202, 780, 272, 5736, 31, 377, 202, 430, 12, 16689, 1235, 13, 377, 202, 95, 377, 202, 202, 430, 12, 87, 152...
insertStatement.setString(9, li.getFileName()); insertStatement.setString(10, li.getClassName()); insertStatement.setString(11, li.getMethodName()); insertStatement.setString(12, li.getLineNumber()); int updateCount = insertStatement.executeUpdate(); if (updateCount != 1) { getLogger().warn("Failed to insert loggingEvent"); } Statement idStatement = connection.createStatement(); idStatement.setMaxRows(1); ResultSet rs = null; if (cnxSupportsGetGeneratedKeys) { rs = insertStatement.getGeneratedKeys(); } else { rs = idStatement.executeQuery(sqlDialect.getSelectInsertId()); } rs.next(); int eventId = rs.getInt(1); insertStatement.close(); insertStatement = null; Set propertiesKeys = event.getPropertyKeySet(); if (propertiesKeys.size() > 0) { PreparedStatement insertPropertiesStatement = connection.prepareStatement(insertPropertiesSQL); for (Iterator i = propertiesKeys.iterator(); i.hasNext();) { String key = (String) i.next(); String value = (String) event.getProperty(key); insertPropertiesStatement.setInt(1, eventId); insertPropertiesStatement.setString(2, key); insertPropertiesStatement.setString(3, value); if (cnxSupportsBatchUpdates) { insertPropertiesStatement.addBatch(); } else { insertPropertiesStatement.execute(); } } if (cnxSupportsBatchUpdates) { insertPropertiesStatement.executeBatch(); } insertPropertiesStatement.close(); insertPropertiesStatement = null; } String[] strRep = event.getThrowableStrRep(); if (strRep != null) { getLogger().debug("Logging an exception"); PreparedStatement insertExceptionStatement = connection.prepareStatement(insertExceptionSQL); for (short i = 0; i < strRep.length; i++) { insertExceptionStatement.setInt(1, eventId); insertExceptionStatement.setShort(2, i); insertExceptionStatement.setString(3, strRep[i]); if (cnxSupportsBatchUpdates) { insertExceptionStatement.addBatch(); } else { insertExceptionStatement.execute(); } } if (cnxSupportsBatchUpdates) { insertExceptionStatement.executeBatch(); } insertExceptionStatement.close(); insertExceptionStatement = null; } connection.commit(); } catch (SQLException sqle) { getLogger().error("problem appending event", sqle); } finally { DBHelper.closeConnection(connection); }
protected void append(LoggingEvent event) { Connection connection = null; try { connection = connectionSource.getConnection(); connection.setAutoCommit(false); PreparedStatement insertStatement = connection.prepareStatement(insertSQL); insertStatement.setLong(1, event.getSequenceNumber()); insertStatement.setLong(2, event.getTimeStamp()); insertStatement.setString(3, event.getRenderedMessage()); insertStatement.setString(4, event.getLoggerName()); insertStatement.setString(5, event.getLevel().toString()); insertStatement.setString(6, event.getNDC()); insertStatement.setString(7, event.getThreadName()); insertStatement.setShort(8, DBHelper.computeReferenceMask(event)); LocationInfo li; if (event.locationInformationExists() || locationInfo) { li = event.getLocationInformation(); } else { li = LocationInfo.NA_LOCATION_INFO; } insertStatement.setString(9, li.getFileName()); insertStatement.setString(10, li.getClassName()); insertStatement.setString(11, li.getMethodName()); insertStatement.setString(12, li.getLineNumber()); int updateCount = insertStatement.executeUpdate(); if (updateCount != 1) { getLogger().warn("Failed to insert loggingEvent"); } Statement idStatement = connection.createStatement(); idStatement.setMaxRows(1); ResultSet rs = null; if (cnxSupportsGetGeneratedKeys) { rs = insertStatement.getGeneratedKeys(); } else { rs = idStatement.executeQuery(sqlDialect.getSelectInsertId()); } // A ResultSet cursor is initially positioned before the first row; the // first call to the method next makes the first row the current row rs.next(); int eventId = rs.getInt(1); // we no longer need the insertStatement insertStatement.close(); insertStatement = null; Set propertiesKeys = event.getPropertyKeySet(); if (propertiesKeys.size() > 0) { PreparedStatement insertPropertiesStatement = connection.prepareStatement(insertPropertiesSQL); for (Iterator i = propertiesKeys.iterator(); i.hasNext();) { String key = (String) i.next(); String value = (String) event.getProperty(key); //LogLog.info("id " + eventId + ", key " + key + ", value " + value); insertPropertiesStatement.setInt(1, eventId); insertPropertiesStatement.setString(2, key); insertPropertiesStatement.setString(3, value); if (cnxSupportsBatchUpdates) { insertPropertiesStatement.addBatch(); } else { insertPropertiesStatement.execute(); } } if (cnxSupportsBatchUpdates) { insertPropertiesStatement.executeBatch(); } insertPropertiesStatement.close(); insertPropertiesStatement = null; } String[] strRep = event.getThrowableStrRep(); if (strRep != null) { getLogger().debug("Logging an exception"); PreparedStatement insertExceptionStatement = connection.prepareStatement(insertExceptionSQL); for (short i = 0; i < strRep.length; i++) { insertExceptionStatement.setInt(1, eventId); insertExceptionStatement.setShort(2, i); insertExceptionStatement.setString(3, strRep[i]); if (cnxSupportsBatchUpdates) { insertExceptionStatement.addBatch(); } else { insertExceptionStatement.execute(); } } if (cnxSupportsBatchUpdates) { insertExceptionStatement.executeBatch(); } insertExceptionStatement.close(); insertExceptionStatement = null; } connection.commit(); } catch (SQLException sqle) { getLogger().error("problem appending event", sqle); } finally { DBHelper.closeConnection(connection); } }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/e5dccc4b144caa737e2f6a87766e95df330aad45/DBAppender.java/clean/src/java/org/apache/log4j/db/DBAppender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 714, 12, 7735, 1133, 871, 13, 288, 565, 4050, 1459, 273, 446, 31, 565, 775, 288, 1377, 1459, 273, 1459, 1830, 18, 588, 1952, 5621, 1377, 1459, 18, 542, 4965, 5580, 12, 5743, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 714, 12, 7735, 1133, 871, 13, 288, 565, 4050, 1459, 273, 446, 31, 565, 775, 288, 1377, 1459, 273, 1459, 1830, 18, 588, 1952, 5621, 1377, 1459, 18, 542, 4965, 5580, 12, 5743, ...
Scriptable scope)
Scriptable scope, boolean fromEvalCode)
private static void createFunctionObject(InterpretedFunction fn, Scriptable scope) { fn.setPrototype(ScriptableObject.getClassPrototype(scope, "Function")); fn.setParentScope(scope); InterpreterData id = fn.itsData; if (id.itsName.length() == 0) return; if ((id.itsFunctionType == FunctionNode.FUNCTION_STATEMENT && fn.itsClosure == null)) { try { // ECMA specifies that functions defined in global and // function scope should have DONTDELETE set. ((ScriptableObject) scope).defineProperty(fn.itsData.itsName, fn, ScriptableObject.PERMANENT); } catch (ClassCastException e) { ScriptRuntime.setProp(scope, fn.itsData.itsName, fn, scope); } } if (id.itsFunctionType == FunctionNode.FUNCTION_EXPRESSION_STATEMENT && fn.itsClosure != null) { ScriptRuntime.setProp(scope, fn.itsData.itsName, fn, scope); } }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/6b14bb83836e64cb32781f94407094b43ddb10df/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 752, 2083, 921, 12, 2465, 15089, 329, 2083, 2295, 16, 4766, 2398, 22780, 2146, 16, 1250, 628, 13904, 1085, 13, 565, 288, 3639, 2295, 18, 542, 15846, 12, 3651, 429, 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, 3238, 760, 918, 752, 2083, 921, 12, 2465, 15089, 329, 2083, 2295, 16, 4766, 2398, 22780, 2146, 16, 1250, 628, 13904, 1085, 13, 565, 288, 3639, 2295, 18, 542, 15846, 12, 3651, 429, 921, ...
attributes.put(attribute, value);
attributes.setAttribute(attribute, value);
public void setAttribute(String attribute, Object value) { attributes.put(attribute, value); }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/1d374fb64fcdc5dd00cee0996bed428772994c6d/AttributedMessage.java/buggy/core/src/org/cougaar/core/mts/AttributedMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4730, 12, 780, 1566, 16, 1033, 460, 13, 288, 202, 4350, 18, 542, 1499, 12, 4589, 16, 460, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4730, 12, 780, 1566, 16, 1033, 460, 13, 288, 202, 4350, 18, 542, 1499, 12, 4589, 16, 460, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
String filename = "data/cmltestok/nsc3dmol.1.cml";
String filename = "data/cmltestok/nsc3dmol.2.cml";
public void testCMLOK10() { String filename = "data/cmltestok/nsc3dmol.1.cml"; logger.info("Testing: " + filename); InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename); try { CMLReader reader = new CMLReader(new InputStreamReader(ins)); ChemFile chemFile = (ChemFile)reader.read((ChemObject)new ChemFile()); // test the resulting ChemFile content assertNotNull(chemFile); assertEquals(chemFile.getChemSequenceCount(), 1); ChemSequence seq = chemFile.getChemSequence(0); assertNotNull(seq); assertEquals(seq.getChemModelCount(), 1); ChemModel model = seq.getChemModel(0); assertNotNull(model); assertEquals(model.getSetOfMolecules().getMoleculeCount(), 1); // test the molecule Molecule mol = model.getSetOfMolecules().getMolecule(0); assertNotNull(mol); assertEquals(15, mol.getAtomCount()); assertEquals(15, mol.getBondCount()); assertFalse(GeometryTools.has3DCoordinates(mol)); assertTrue(GeometryTools.has2DCoordinates(mol)); } catch (Exception e) { fail(e.toString()); e.printStackTrace(); } }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/9a8ae6740c245d3d549fa5e5bf65ea31a733bc02/CML2Test.java/buggy/src/org/openscience/cdk/test/io/cml/CML2Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 39, 1495, 3141, 2163, 1435, 288, 3639, 514, 1544, 273, 315, 892, 19, 71, 781, 3813, 601, 19, 82, 1017, 23, 10956, 355, 18, 22, 18, 71, 781, 14432, 3639, 1194, 18, 137...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 39, 1495, 3141, 2163, 1435, 288, 3639, 514, 1544, 273, 315, 892, 19, 71, 781, 3813, 601, 19, 82, 1017, 23, 10956, 355, 18, 22, 18, 71, 781, 14432, 3639, 1194, 18, 137...
final QuickFixAction[] quickFixes = tool.getQuickFixes();
final QuickFixAction[] quickFixes = tool.getQuickFixes(getSelectedElements());
private void popupInvoked(Component component, int x, int y) { if (!isSingleToolInSelection()) return; final TreePath path; if (myTree.hasFocus()) { path = myTree.getLeadSelectionPath(); } else { path = null; } if (path == null) return; DefaultActionGroup actions = new DefaultActionGroup(); actions.add(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE)); actions.add(ActionManager.getInstance().getAction(IdeActions.ACTION_FIND_USAGES)); final InspectionTool tool = getSelectedTool(); if (tool == null) return; final QuickFixAction[] quickFixes = tool.getQuickFixes(); if (quickFixes != null) { for (QuickFixAction quickFixe : quickFixes) { actions.add(quickFixe); } } actions.add(new AnAction("Edit Tool Settings") { public void actionPerformed(AnActionEvent e) { new SwitchOffToolAction(HighlightDisplayKey.find(tool.getShortName())).editToolSettings(myProject, myInspectionProfile); InspectionResultsView.this.update(); } public void update(AnActionEvent e) { e.getPresentation().setEnabled(!myInspectionProfile.getName().equals("Default")); } }); actions.add(ActionManager.getInstance().getAction(IdeActions.GROUP_VERSION_CONTROLS)); ActionPopupMenu menu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.CODE_INSPECTION, actions); menu.getComponent().show(component, x, y); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/7d18937b6c277d5ef28a5ed5045f90e8b80e937a/InspectionResultsView.java/clean/source/com/intellij/codeInspection/ui/InspectionResultsView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 10431, 26215, 12, 1841, 1794, 16, 509, 619, 16, 509, 677, 13, 288, 565, 309, 16051, 291, 5281, 6364, 382, 6233, 10756, 327, 31, 565, 727, 4902, 743, 589, 31, 565, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 10431, 26215, 12, 1841, 1794, 16, 509, 619, 16, 509, 677, 13, 288, 565, 309, 16051, 291, 5281, 6364, 382, 6233, 10756, 327, 31, 565, 727, 4902, 743, 589, 31, 565, 309, 261, ...
ISelection sel = targetPart.getSite().getSelectionProvider().getSelection();
final ISelection sel = targetPart.getSite().getSelectionProvider().getSelection();
private void processResource() { log.debug("Processing a resource"); try { // if action is run from a view, process the selected resources if (this.targetPart instanceof IViewPart) { ISelection sel = targetPart.getSite().getSelectionProvider().getSelection(); if (sel instanceof IStructuredSelection) { IStructuredSelection structuredSel = (IStructuredSelection) sel; for (Iterator i = structuredSel.iterator(); i.hasNext();) { Object element = i.next(); if (element instanceof IAdaptable) { IAdaptable adaptable = (IAdaptable) element; IResource resource = (IResource) adaptable.getAdapter(IResource.class); if (resource != null) { resource.deleteMarkers(PMDRuntimeConstants.PMD_MARKER, true, IResource.DEPTH_INFINITE); log.debug("Remove markers on resrouce " + resource.getName()); } else { log.warn("The selected object cannot adapt to a resource"); log.debug(" -> selected object : " + element); } } else { log.warn("The selected object is not adaptable"); log.debug(" -> selected object : " + element); } } } else { log.warn("The view part selection is not a structured selection !"); } } // if action is run from an editor, process the file currently edited else if (this.targetPart instanceof IEditorPart) { IEditorInput editorInput = ((IEditorPart) this.targetPart).getEditorInput(); if (editorInput instanceof IFileEditorInput) { ((IFileEditorInput) editorInput).getFile().deleteMarkers(PMDRuntimeConstants.PMD_MARKER, true, IResource.DEPTH_INFINITE); log.debug("Remove markers " + PMDRuntimeConstants.PMD_MARKER + " on currently edited file " + ((IFileEditorInput) editorInput).getFile().getName()); } else { log.debug("The kind of editor input is not supported. The editor input if of type: " + editorInput.getClass().getName()); } } // else, this is not supported else { log.debug("This action is not supported on that part. This part type is: " + this.targetPart.getClass().getName()); } } catch (CoreException e) { PMDUiPlugin.getDefault().showError(getString(StringKeys.MSGKEY_ERROR_CORE_EXCEPTION), e); } }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/5240919b79d22b6c85e62a4e13e9621cf076b883/PMDRemoveMarkersAction.java/buggy/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/actions/PMDRemoveMarkersAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1420, 1435, 288, 3639, 613, 18, 4148, 2932, 7798, 279, 1058, 8863, 3639, 775, 288, 5411, 368, 309, 1301, 353, 1086, 628, 279, 1476, 16, 1207, 326, 3170, 2703, 5411, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1420, 1435, 288, 3639, 613, 18, 4148, 2932, 7798, 279, 1058, 8863, 3639, 775, 288, 5411, 368, 309, 1301, 353, 1086, 628, 279, 1476, 16, 1207, 326, 3170, 2703, 5411, 309, ...
if (!success) error (SWT.ERROR_CANNOT_SET_SELECTION);
if (!success) { /* * Bug in Windows. For some reason SetMenuItemInfo(), * returns a fail code when setting the enabled or * selected state of a default item, but sets the * state anyway. The fix is to ignore the error. * * NOTE: This only happens on Vista. */ if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) { success = id == OS.GetMenuDefaultItem (hMenu, OS.MF_BYCOMMAND, OS.GMDI_USEDISABLED); } if (!success) error (SWT.ERROR_CANNOT_SET_SELECTION); }
public void setSelection (boolean selected) { checkWidget (); if ((style & (SWT.CHECK | SWT.RADIO)) == 0) return; if ((OS.IsPPC || OS.IsSP) && parent.hwndCB != 0) return; int hMenu = parent.handle; if (OS.IsWinCE) { int index = parent.indexOf (this); if (index == -1) return; int uCheck = OS.MF_BYPOSITION | (selected ? OS.MF_CHECKED : OS.MF_UNCHECKED); OS.CheckMenuItem (hMenu, index, uCheck); } else { MENUITEMINFO info = new MENUITEMINFO (); info.cbSize = MENUITEMINFO.sizeof; info.fMask = OS.MIIM_STATE; boolean success = OS.GetMenuItemInfo (hMenu, id, false, info); if (!success) error (SWT.ERROR_CANNOT_SET_SELECTION); info.fState &= ~OS.MFS_CHECKED; if (selected) info.fState |= OS.MFS_CHECKED; success = OS.SetMenuItemInfo (hMenu, id, false, info); if (!success) error (SWT.ERROR_CANNOT_SET_SELECTION); } parent.redraw ();}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/67315cdf92109403ebb6b27071a8cee42c044ad3/MenuItem.java/clean/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/MenuItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 444, 6233, 261, 6494, 3170, 13, 288, 202, 1893, 4609, 261, 1769, 202, 430, 14015, 4060, 473, 261, 55, 8588, 18, 10687, 571, 348, 8588, 18, 28829, 4294, 3719, 422, 374, 13, 327, 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, 1071, 918, 444, 6233, 261, 6494, 3170, 13, 288, 202, 1893, 4609, 261, 1769, 202, 430, 14015, 4060, 473, 261, 55, 8588, 18, 10687, 571, 348, 8588, 18, 28829, 4294, 3719, 422, 374, 13, 327, 31...
public void internalAddCategory(AbstractCategory cat) {
public void internalAddCategory(ICategory cat) {
public void internalAddCategory(AbstractCategory cat) { categories.add(cat); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/82f651e1f47ec3e03f511b652f4fc548ddac2ef3/TaskList.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/TaskList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2713, 986, 4457, 12, 2871, 1881, 6573, 13, 288, 377, 202, 8995, 18, 1289, 12, 2574, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2713, 986, 4457, 12, 2871, 1881, 6573, 13, 288, 377, 202, 8995, 18, 1289, 12, 2574, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
String sqlStr = "update meta set date_modified = '"+dateformat.format(dt)+"' where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr);
String group = req.getParameter("group") ; if ( group != null ) { user.setTemplateGroup(Integer.parseInt(req.getParameter("group"))) ; }
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 ) ; imcode.server.User user ; String htmlStr = "" ; String submit_name = "" ; String search_string = "" ; String text = "" ; String values[] ; int txt_no = 0 ; res.setContentType("text/html"); Writer out = res.getWriter(); // get meta_id int meta_id = Integer.parseInt(req.getParameter("meta_id")) ;// int parent_meta_id = Integer.parseInt(req.getParameter("parent_meta_id")) ; // get form data imcode.server.Table doc = new imcode.server.Table() ; String template = req.getParameter("template") ; String groupId = req.getParameter("group"); //the template group admin is a ugly mess but lets try to do the best of it //we save the group_id but if the group gets deleted else where it doesn't get changed //in the text_docs table, but the system vill not crash it only shows an empty group string. if(groupId == null) groupId= "-1"; //if there isn'n anyone lets set it to -1 if ( template != null ) { doc.addField("template",template) ; // String menu_template = req.getParameter("menu_template") ; doc.addField("menu_template",template) ; // String text_template = req.getParameter("text_template") ; doc.addField("text_template",template) ; doc.addField("group_id",groupId); } // Check if user logged on if( (user=Check.userLoggedOn( req,res,start_url ))==null ) { return ; } // Check if user has write rights if ( !IMCServiceRMI.checkDocAdminRights(imcserver,meta_id,user,imcode.server.IMCConstants.PERM_DT_TEXT_CHANGE_TEMPLATE ) ) { // Checking to see if user may edit this String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ; } return ; } String lang_prefix = IMCServiceRMI.sqlQueryStr(imcserver, "select lang_prefix from lang_prefixes where lang_id = "+user.getInt("lang_id")) ; /*if (req.getParameter("metadata")!=null) { //htmlStr = IMCServiceRMI.interpretAdminTemplate(imcserver,meta_id,user,"change_meta.html",1,meta_id,0,0) ; htmlStr = imcode.util.MetaDataParser.parseMetaData(String.valueOf(meta_id), String.valueOf(meta_id),user,host) ; } else */ if (req.getParameter("update")!=null) { user.put("flags",new Integer(0)) ; if ( template == null ) { Vector vec = new Vector() ; vec.add("#meta_id#") ; vec.add(String.valueOf(meta_id)) ; htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"inPage_admin_no_template.html",lang_prefix) ; out.write(htmlStr) ; return ; } // save textdoc IMCServiceRMI.saveTextDoc(imcserver,meta_id,user,doc) ; SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd") ; Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; // FIXME: Move to SProc String sqlStr = "update meta set date_modified = '"+dateformat.format(dt)+"' where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr); // return page String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ; } return ; } else if (req.getParameter("preview")!=null) { if ( template == null ) { Vector vec = new Vector() ; vec.add("#meta_id#") ; vec.add(String.valueOf(meta_id)) ; htmlStr = IMCServiceRMI.parseDoc(imcserver,vec,"inPage_admin_no_template.html",lang_prefix) ; out.write(htmlStr) ; return ; } Object[] temp = null ; try { temp = IMCServiceRMI.getDemoTemplate(imcserver,Integer.parseInt(template)) ; } catch ( NumberFormatException ex ) { } if ( temp == null ) { htmlStr = IMCServiceRMI.parseDoc( imcserver, null, "no_demotemplate.html", lang_prefix ) ; } else { htmlStr = new String((byte[])temp[1],"8859_1") ; } } else if ( req.getParameter("change_group")!=null ) { user.put("flags",new Integer(imcode.server.IMCConstants.PERM_DT_TEXT_CHANGE_TEMPLATE)) ; String group = req.getParameter("group") ; if ( group != null ) { user.setTemplateGroup(Integer.parseInt(req.getParameter("group"))) ; } String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ; } return ; } out.write(htmlStr) ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/fd2ca8ca04540c956404128e31450d0e96a2bf20/SaveInPage.java/clean/servlets/SaveInPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1216, 16517, 16, 1860, 288, 202, 202, 780, 1479, 4697, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 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, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1216, 16517, 16, 1860, 288, 202, 202, 780, 1479, 4697, 202, 33, 1111, 18, 588, 1864, 2932, 2594, 7923, 274, 202, 202...
listenerThread.join(); listenerStopping = false;
listenerThread.join(3000); if (listenerThread.isAlive()) { listenerThread.interrupt(); listenerThread.join(); } stopping = false;
protected void stopListener() { listenerStopping = true; //The listener loop may not be waiting, so interrupting the thread will //not necessarily work, thus leaving it hanging //so we use the listenerStopping variable too listenerThread.interrupt(); try { listenerThread.join(); listenerStopping = false; } catch (InterruptedException e) { log.error("Thread interrupted", e); } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/e07e82660e41ece086f5f54b009b334608f1356d/MessageCallbackHandler.java/buggy/src/main/org/jboss/jms/client/remoting/MessageCallbackHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 918, 2132, 2223, 1435, 282, 288, 1377, 2991, 21994, 273, 638, 31, 5411, 368, 1986, 2991, 2798, 2026, 486, 506, 7336, 16, 1427, 13123, 310, 326, 2650, 903, 1377, 368, 902, 23848, 144...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 918, 2132, 2223, 1435, 282, 288, 1377, 2991, 21994, 273, 638, 31, 5411, 368, 1986, 2991, 2798, 2026, 486, 506, 7336, 16, 1427, 13123, 310, 326, 2650, 903, 1377, 368, 902, 23848, 144...
public IncompatibleClassChangeError(String s) { super(s);
public IncompatibleClassChangeError() {
public IncompatibleClassChangeError(String s) { super(s); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/24330cfb4cc445da21a71a819ce54efe764fab6e/IncompatibleClassChangeError.java/buggy/core/src/classpath/java/java/lang/IncompatibleClassChangeError.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 657, 10943, 797, 3043, 668, 12, 780, 272, 13, 225, 202, 95, 3196, 202, 9565, 12, 87, 1769, 225, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 657, 10943, 797, 3043, 668, 12, 780, 272, 13, 225, 202, 95, 3196, 202, 9565, 12, 87, 1769, 225, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public JarDiff(File oldJarFile, File newJarFile) throws Exception { Enumeration e; JarFile oldJar = new JarFile(oldJarFile); JarFile newJar = new JarFile(newJarFile); e = oldJar.entries(); while(e.hasMoreElements()) { JarEntry entry = (JarEntry) e.nextElement(); String name = entry.getName(); if(!entry.isDirectory() && name.endsWith(".class")) { ClassReader reader = new ClassReader(oldJar.getInputStream(entry)); ClassInfo info = new ClassInfo(reader); oldClassInfo.put(info.getName(),info); } } e = newJar.entries(); while(e.hasMoreElements()) { JarEntry entry = (JarEntry) e.nextElement(); String name = entry.getName(); if(!entry.isDirectory() && name.endsWith(".class")) { ClassReader reader = new ClassReader(newJar.getInputStream(entry)); ClassInfo info = new ClassInfo(reader); newClassInfo.put(info.getName(),info); } }
public JarDiff(File oldJarFile, File newJarFile) throws DiffException { try { ClassInfoVisitor infoVisitor = new ClassInfoVisitor(); JarFile oldJar = new JarFile(oldJarFile); JarFile newJar = new JarFile(newJarFile); Enumeration e = oldJar.entries(); while (e.hasMoreElements()) { JarEntry entry = (JarEntry) e.nextElement(); String name = entry.getName(); if (!entry.isDirectory() && name.endsWith(".class")) { ClassReader reader = new ClassReader(oldJar.getInputStream(entry)); infoVisitor.reset(); reader.accept(infoVisitor, false); ClassInfo ci = infoVisitor.getClassInfo(); oldClassInfo.put(ci.getName(), ci); } } e = newJar.entries(); while (e.hasMoreElements()) { JarEntry entry = (JarEntry) e.nextElement(); String name = entry.getName(); if (!entry.isDirectory() && name.endsWith(".class")) { ClassReader reader = new ClassReader(newJar.getInputStream(entry)); infoVisitor.reset(); reader.accept(infoVisitor, false); ClassInfo ci = infoVisitor.getClassInfo(); newClassInfo.put(ci.getName(), ci); } } } catch (IOException io) { throw new DiffException(io); }
public JarDiff(File oldJarFile, File newJarFile) throws Exception { Enumeration e; JarFile oldJar = new JarFile(oldJarFile); JarFile newJar = new JarFile(newJarFile); e = oldJar.entries(); while(e.hasMoreElements()) { JarEntry entry = (JarEntry) e.nextElement(); String name = entry.getName(); if(!entry.isDirectory() && name.endsWith(".class")) { ClassReader reader = new ClassReader(oldJar.getInputStream(entry)); ClassInfo info = new ClassInfo(reader); oldClassInfo.put(info.getName(),info); } } e = newJar.entries(); while(e.hasMoreElements()) { JarEntry entry = (JarEntry) e.nextElement(); String name = entry.getName(); if(!entry.isDirectory() && name.endsWith(".class")) { ClassReader reader = new ClassReader(newJar.getInputStream(entry)); ClassInfo info = new ClassInfo(reader); newClassInfo.put(info.getName(),info); } } }
651 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/651/fb6d689c6053c3061d0cffa113761c2f33e9f6cc/JarDiff.java/buggy/jardiff/src/java/org/osjava/scripts4java/JarDiff.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15644, 5938, 12, 812, 1592, 10813, 812, 16, 1387, 394, 10813, 812, 13, 1216, 1185, 288, 3639, 13864, 425, 31, 3639, 15644, 812, 1592, 10813, 273, 394, 15644, 812, 12, 1673, 10813, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15644, 5938, 12, 812, 1592, 10813, 812, 16, 1387, 394, 10813, 812, 13, 1216, 1185, 288, 3639, 13864, 425, 31, 3639, 15644, 812, 1592, 10813, 273, 394, 15644, 812, 12, 1673, 10813, 8...
buddies.remove(buddies.indexOf(i));
buddies.remove(i.getId());
public void removeContact(JID jid) { Log.debug("removeContact called"); for (BuddyItem i : buddies) { if (i.getScreenname().equals(jid.getNode())) { request(new DeleteItemsCmd(new SsiItem[] { i.toSsiItem() })); buddies.remove(buddies.indexOf(i)); } } }
6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/458964a8ab9fa712c6bff46d6dcb136f08f285c4/OSCARSession.java/clean/src/plugins/gateway/src/java/org/jivesoftware/wildfire/gateway/protocols/oscar/OSCARSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 6567, 12, 46, 734, 14201, 13, 288, 3639, 1827, 18, 4148, 2932, 4479, 6567, 2566, 8863, 3639, 364, 261, 38, 29017, 1180, 277, 294, 324, 20567, 606, 13, 288, 5411, 309, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 6567, 12, 46, 734, 14201, 13, 288, 3639, 1827, 18, 4148, 2932, 4479, 6567, 2566, 8863, 3639, 364, 261, 38, 29017, 1180, 277, 294, 324, 20567, 606, 13, 288, 5411, 309, 2...
if ( locale != null ) { link.append( "&__locale=" ); link.append( locale.toString( ) ); }
protected String buildBookmarkAction( IAction action, Object context ) { StringBuffer link = new StringBuffer( ); boolean realBookmark = false; if ( this.document != null ) { long pageNumber = this.document .getPageNumber( action.getBookmark( ) ); realBookmark = pageNumber == this.page; } String bookmark = action.getBookmark( ); try { bookmark = URLEncoder.encode( bookmark, "UTF-8" ); //$NON-NLS-1$ } catch ( UnsupportedEncodingException e ) { // Does nothing } if ( realBookmark ) { link.append( "#" ); //$NON-NLS-1$ link.append( bookmark ); if ( locale != null ) { link.append( "&__locale=" ); //$NON-NLS-1$ link.append( locale.toString( ) ); } } else { String baseURL = null; if ( context != null && context instanceof HTMLRenderContext ) { baseURL = ( (HTMLRenderContext) context ).getBaseURL( ); } link.append( baseURL ); link.append( "?__document=" ); //$NON-NLS-1$ String documentName = document.getName( ); try { documentName = URLEncoder.encode( documentName, "UTF-8" ); //$NON-NLS-1$ } catch ( UnsupportedEncodingException e ) { // Does nothing } link.append( documentName ); link.append( "&__bookmark=" ); //$NON-NLS-1$ link.append( bookmark ); if ( locale != null ) { link.append( "&__locale=" ); //$NON-NLS-1$ link.append( locale.toString( ) ); } } return link.toString( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/5c8dd96b2b7249db362e597132210258101979a5/ViewerHTMLActionHandler.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ViewerHTMLActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 1361, 22966, 1803, 12, 467, 1803, 1301, 16, 1033, 819, 262, 202, 95, 202, 202, 780, 1892, 1692, 273, 394, 6674, 12, 11272, 202, 202, 6494, 2863, 22966, 273, 629, 31, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 1361, 22966, 1803, 12, 467, 1803, 1301, 16, 1033, 819, 262, 202, 95, 202, 202, 780, 1892, 1692, 273, 394, 6674, 12, 11272, 202, 202, 6494, 2863, 22966, 273, 629, 31, 202...
Scriptable thisObj()
Object thisObj()
Scriptable thisObj() { return thisObj; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/1e8e9be6240bd419cb4ce7800a26a09d70dd4e27/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1033, 15261, 1435, 3639, 288, 5411, 327, 15261, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1033, 15261, 1435, 3639, 288, 5411, 327, 15261, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
case 35: alt50=10;
case END: alt51=10;
public String word() throws RecognitionException { String word = null; Token id=null; Token str=null; word = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( 'rule' )=> 'rule' | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( 'when' )=> 'when' | ( 'then' )=> 'then' | ( 'end' )=> 'end' | str= STRING ) int alt50=11; switch ( input.LA(1) ) { case ID: alt50=1; break; case 28: alt50=2; break; case 73: alt50=3; break; case 37: alt50=4; break; case 34: alt50=5; break; case 41: alt50=6; break; case 42: alt50=7; break; case 38: alt50=8; break; case RHS: alt50=9; break; case 35: alt50=10; break; case STRING: alt50=11; break; default: if (backtracking>0) {failed=true; return word;} NoViableAltException nvae = new NoViableAltException("1282:1: word returns [String word] : ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( 'rule' )=> 'rule' | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( 'when' )=> 'when' | ( 'then' )=> 'then' | ( 'end' )=> 'end' | str= STRING );", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( ID )=>id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word3213); if (failed) return word; if ( backtracking==0 ) { word=id.getText(); } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1287:4: ( 'import' )=> 'import' { match(input,28,FOLLOW_28_in_word3225); if (failed) return word; if ( backtracking==0 ) { word="import"; } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1288:4: ( 'use' )=> 'use' { match(input,73,FOLLOW_73_in_word3234); if (failed) return word; if ( backtracking==0 ) { word="use"; } } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( 'rule' )=> 'rule' { match(input,37,FOLLOW_37_in_word3246); if (failed) return word; if ( backtracking==0 ) { word="rule"; } } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1290:4: ( 'query' )=> 'query' { match(input,34,FOLLOW_34_in_word3257); if (failed) return word; if ( backtracking==0 ) { word="query"; } } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1291:4: ( 'salience' )=> 'salience' { match(input,41,FOLLOW_41_in_word3267); if (failed) return word; if ( backtracking==0 ) { word="salience"; } } break; case 7 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1292:5: ( 'no-loop' )=> 'no-loop' { match(input,42,FOLLOW_42_in_word3275); if (failed) return word; if ( backtracking==0 ) { word="no-loop"; } } break; case 8 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:4: ( 'when' )=> 'when' { match(input,38,FOLLOW_38_in_word3283); if (failed) return word; if ( backtracking==0 ) { word="when"; } } break; case 9 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1294:4: ( 'then' )=> 'then' { match(input,RHS,FOLLOW_RHS_in_word3294); if (failed) return word; if ( backtracking==0 ) { word="then"; } } break; case 10 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1295:4: ( 'end' )=> 'end' { match(input,35,FOLLOW_35_in_word3305); if (failed) return word; if ( backtracking==0 ) { word="end"; } } break; case 11 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1296:4: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word3319); if (failed) return word; if ( backtracking==0 ) { word=getString(str); } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2076, 1435, 1216, 9539, 288, 6647, 514, 2076, 273, 446, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 3155, 609, 33, 2011, 31, 1171, 202, 202, 1095, 273, 446, 31, 540, 202, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2076, 1435, 1216, 9539, 288, 6647, 514, 2076, 273, 446, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 3155, 609, 33, 2011, 31, 1171, 202, 202, 1095, 273, 446, 31, 540, 202, 3639, ...
float [] lNewWidths = null; int [] lDummyWidths = new int[columns]; float[][] lDummyColumnWidths = new float[columns][]; int [] lDummyHeights = new int[rows.size()];
float [] newWidths = null;
private void mergeInsertedTables() throws DocumentException { int i=0, j=0; float [] lNewWidths = null; int [] lDummyWidths = new int[columns]; // to keep track in how many new cols this one will be split float[][] lDummyColumnWidths = new float[columns][]; // bugfix Tony Copping int [] lDummyHeights = new int[rows.size()]; // to keep track in how many new rows this one will be split ArrayList newRows = null; int lTotalRows = 0, lTotalColumns = 0; int lNewMaxRows = 0, lNewMaxColumns = 0; Table lDummyTable = null; // first we'll add new columns when needed // check one column at a time, find maximum needed nr of cols for (j=0; j < columns; j++) { lNewMaxColumns = 1; // value to hold in how many columns the current one will be split for (i=0; i < rows.size(); i++) { if ( Table.class.isInstance(((Row) rows.get(i)).getCell(j)) ) { lDummyTable = ((Table) ((Row) rows.get(i)).getCell(j)); if ( lDummyTable.getDimension().width > lNewMaxColumns ) { lNewMaxColumns = lDummyTable.getDimension().width; lDummyColumnWidths[j] = lDummyTable.widths; // bugfix Tony Copping } } } lTotalColumns += lNewMaxColumns; lDummyWidths [j] = lNewMaxColumns; } // next we'll add new rows when needed for (i=0; i < rows.size(); i++) { lNewMaxRows = 1; // holds value in how many rows the current one will be split for (j=0; j < columns; j++) { if ( Table.class.isInstance(((Row) rows.get(i)).getCell(j)) ) { lDummyTable = (Table) ((Row) rows.get(i)).getCell(j); if ( lDummyTable.getDimension().height > lNewMaxRows ) { lNewMaxRows = lDummyTable.getDimension().height; } } } lTotalRows += lNewMaxRows; lDummyHeights [i] = lNewMaxRows; } if ( (lTotalColumns != columns) || (lTotalRows != rows.size()) ) // NO ADJUSTMENT { // ** WIDTH // set correct width for new columns // divide width over new nr of columns lNewWidths = new float [lTotalColumns]; int lDummy = 0; for (int tel=0; tel < widths.length;tel++) { if ( lDummyWidths[tel] != 1) { // divide for (int tel2 = 0; tel2 < lDummyWidths[tel]; tel2++) { // lNewWidths[lDummy] = widths[tel] / lDummyWidths[tel]; lNewWidths[lDummy] = widths[tel] * lDummyColumnWidths[tel][tel2] / 100f; // bugfix Tony Copping lDummy++; } } else { lNewWidths[lDummy] = widths[tel]; lDummy++; } } // ** FILL OUR NEW TABLE // generate new table // set new widths // copy old values newRows = new ArrayList(lTotalRows); for (i = 0; i < lTotalRows; i++) { newRows.add(new Row(lTotalColumns)); } int lDummyRow = 0, lDummyColumn = 0; // to remember where we are in the new, larger table Object lDummyElement = null; for (i=0; i < rows.size(); i++) { lDummyColumn = 0; lNewMaxRows = 1; for (j=0; j < columns; j++) { if ( Table.class.isInstance(((Row) rows.get(i)).getCell(j)) ) // copy values from embedded table { lDummyTable = (Table) ((Row) rows.get(i)).getCell(j); for (int k=0; k < lDummyTable.getDimension().height; k++) { for (int l=0; l < lDummyTable.getDimension().width; l++) { lDummyElement = lDummyTable.getElement(k,l); if (lDummyElement != null) { ((Row) newRows.get(k + lDummyRow)).addElement(lDummyElement,l + lDummyColumn); // use addElement to set reserved status ok in row } } } } else // copy others values { Object aElement = getElement(i,j); if ( Cell.class.isInstance(aElement) ) { // adjust spans for cell ((Cell) aElement).setRowspan(((Cell) ((Row) rows.get(i)).getCell(j)).rowspan() + lDummyHeights[i] - 1); ((Cell) aElement).setColspan(((Cell) ((Row) rows.get(i)).getCell(j)).colspan() + lDummyWidths[j] - 1); // most likely this cell covers a larger area because of the row/cols splits : define not-to-be-filled cells placeCell(newRows,((Cell) aElement), new Point(lDummyRow,lDummyColumn)); } } lDummyColumn += lDummyWidths[j]; } lDummyRow += lDummyHeights[i]; } // Set our new matrix columns = lTotalColumns; rows = newRows; this.widths = lNewWidths; } }
6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/a153fa3650ccb0f85276e5a6a346675f3f3c045a/Table.java/clean/src/com/lowagie/text/Table.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2691, 27329, 6905, 1435, 1216, 4319, 503, 288, 3639, 509, 277, 33, 20, 16, 525, 33, 20, 31, 3639, 1431, 5378, 328, 1908, 22407, 273, 446, 31, 3639, 509, 5378, 328, 20094, 224...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2691, 27329, 6905, 1435, 1216, 4319, 503, 288, 3639, 509, 277, 33, 20, 16, 525, 33, 20, 31, 3639, 1431, 5378, 328, 1908, 22407, 273, 446, 31, 3639, 509, 5378, 328, 20094, 224...
int nsize = nodes.size();
int nsize = (nodes != null) ? nodes.size() : 0;
protected void reconcileDefaults() { if (defaults != null && lastDefaultsChanges != defaults.changes) { int n = 0; int d = 0; int nsize = nodes.size(); int dsize = defaults.nodes.size(); AttrImpl nnode = (nsize == 0) ? null : (AttrImpl) nodes.elementAt(0); AttrImpl dnode = (dsize == 0) ? null : (AttrImpl) defaults.nodes.elementAt(0); while (n < nsize && d < dsize) { nnode = (AttrImpl) nodes.elementAt(n); dnode = (AttrImpl) defaults.nodes.elementAt(d); //int test = nnode.getNodeName().compareTo(dnode.getNodeName()); int testNS; String nNSString = nnode.getNamespaceURI(); String dNSString = dnode.getNamespaceURI(); // REVISTNS: Are null namespace and "" namespace equal? if (nNSString == null) if (dNSString == null) testNS = 0; else //if (dNSString.equals("")) // testNS = 0; //else testNS = 1; else if (dNSString == null) //if (nNSString.equals("")) // testNS = 0; //else testNS = -1; else testNS = nNSString.compareTo(dNSString); System.out.println("n,d"+nnode.getLocalName()+","+dnode.getLocalName()); int testLocal = ( nnode.getLocalName() ).compareTo( dnode.getLocalName() ); //int test = nnode.getNodeName().compareTo(dnode.getNodeName()); int test = (testNS != 0) ? testNS : testLocal; // Same name and a default -- make sure same value if (test == 0 && !nnode.getSpecified()) { NodeImpl clone = (NodeImpl)dnode.cloneNode(true); clone.parentNode = element; nodes.setElementAt(clone, n); // Advance over both, since names in sync ++n; ++d; } // Different name, new default in table; add it else if (test > 0) { NodeImpl clone = (NodeImpl)dnode.cloneNode(true); clone.parentNode = element; nodes.insertElementAt(clone, n); // Now in sync, so advance over both ++n; ++d; } // Different name, old default here; remove it. else if (!nnode.getSpecified()) { // NOTE: We don't need to null out the parent // because this is a node that we're // throwing away (not returning). -Ac // REVISIT: [Q] Should we null it out anyway? -Ac nodes.removeElementAt(n); // n didn't advance but represents a different element } // Different name, specified; accept it else { ++n; } } // If we ran out of local before default, pick up defaults while (d < dsize) { dnode = (AttrImpl)defaults.nodes.elementAt(d++); NodeImpl clone = (NodeImpl)dnode.cloneNode(true); clone.parentNode = element; nodes.addElement(clone); } lastDefaultsChanges = defaults.changes; } } // reconcileDefaults()
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/807cfa1ca58b75cd86d5c980cc676ae3f777c328/NamedNodeMapImpl.java/clean/src/org/apache/xerces/dom/NamedNodeMapImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 27163, 7019, 1435, 288, 377, 202, 430, 261, 7606, 480, 446, 597, 1142, 7019, 7173, 480, 3467, 18, 6329, 13, 288, 377, 202, 202, 474, 290, 273, 374, 31, 5411, 509, 302, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 27163, 7019, 1435, 288, 377, 202, 430, 261, 7606, 480, 446, 597, 1142, 7019, 7173, 480, 3467, 18, 6329, 13, 288, 377, 202, 202, 474, 290, 273, 374, 31, 5411, 509, 302, 273, ...
PagedTable pt = (PagedTable) session.getAttribute(Constants.RESULTS_TABLE);
PagedTable pt = SessionMethods.getResultsTable(session, request.getParameter("table"));
public ActionForward moveColumnLeft(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException { HttpSession session = request.getSession(); PagedTable pt = (PagedTable) session.getAttribute(Constants.RESULTS_TABLE); int index = Integer.parseInt(request.getParameter("index")); pt.moveColumnLeft(index); return makeResultsForward(mapping.findForward("results"), request, pt); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/c6ace8b1f771e7718abe274cf6db61eb4d139807/ChangeResultsAction.java/buggy/intermine/src/java/org/intermine/web/results/ChangeResultsAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 3635, 1494, 3910, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 4766, 1377, 9984, 590, 16, 12446, 766, 13, 3639, 1216, 16517, 288, 3639, 26166, 1339, 273, 590, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 3635, 1494, 3910, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 4766, 1377, 9984, 590, 16, 12446, 766, 13, 3639, 1216, 16517, 288, 3639, 26166, 1339, 273, 590, 18, 588,...
configurationElement = aConfigurationElement;
public final void setInitializationData(IConfigurationElement aConfigurationElement, String aPropertyName, Object theData) throws CoreException { configurationElement = aConfigurationElement;// doSetInitializeData(aConfigurationElement, aPropertyName, theData); }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/400589a66d34c4730bcb83324cab614e73177f89/JavaUtilityComponentCreationWizard.java/buggy/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/wizard/JavaUtilityComponentCreationWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 444, 17701, 751, 12, 45, 1750, 1046, 279, 1750, 1046, 16, 514, 279, 13073, 16, 1033, 326, 751, 13, 1216, 30015, 288, 202, 202, 7025, 1046, 273, 279, 1750, 1046, 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, 727, 918, 444, 17701, 751, 12, 45, 1750, 1046, 279, 1750, 1046, 16, 514, 279, 13073, 16, 1033, 326, 751, 13, 1216, 30015, 288, 202, 202, 7025, 1046, 273, 279, 1750, 1046, 31, ...
if(runLength > 0)
if(runLength > 0) {
public void close() throws IOException { if(closed) return; if(runLength > 0) writeRun(); currentChar = -1; endBlock(); endCompression(); closed = true; super.close(); bsStream.close(); }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/7a4e9ca2278d5e22a3492abb964312150d0286b9/CBZip2OutputStream.java/buggy/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1435, 1216, 1860, 288, 3639, 309, 12, 12204, 13, 5411, 327, 31, 3639, 309, 12, 2681, 1782, 405, 374, 13, 288, 5411, 1045, 1997, 5621, 3639, 29445, 273, 300, 21, 31, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 1435, 1216, 1860, 288, 3639, 309, 12, 12204, 13, 5411, 327, 31, 3639, 309, 12, 2681, 1782, 405, 374, 13, 288, 5411, 1045, 1997, 5621, 3639, 29445, 273, 300, 21, 31, 363...
* There is no enabled when expression, so we just need to consult the * action.
* Bug 117496. There is no enabled when expression, and our action * member variable is just a wrapper around a command. At this point, we * need to avoid a stack overflow, so we'll call a special isEnabled * method.
public final boolean isEnabled() { if (enabledWhenExpression != null) { try { final EvaluationResult result = enabledWhenExpression .evaluate(handlerService.getCurrentState()); if (result == EvaluationResult.TRUE) { return action.isEnabled(); } } catch (final CoreException e) { // We will just fall through an let it return false. final String message = "An exception occurred while evaluating the enabledWhen expression for " //$NON-NLS-1$ + element.getAttribute(delegateAttributeName) + "' could not be loaded"; //$NON-NLS-1$ final IStatus status = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, 0, e.getMessage(), e); WorkbenchPlugin.log(message, status); } return false; } /* * There is no enabled when expression, so we just need to consult the * action. */ return action.isEnabled(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f938ec1641a2f8db954f7f291ecc121edb1e00a7/ActionDelegateHandlerProxy.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/handlers/ActionDelegateHandlerProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 1250, 12047, 1435, 288, 202, 202, 430, 261, 5745, 9434, 2300, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 6385, 17340, 1253, 563, 273, 3696, 9434, 2300, 25083, 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, 727, 1250, 12047, 1435, 288, 202, 202, 430, 261, 5745, 9434, 2300, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 6385, 17340, 1253, 563, 273, 3696, 9434, 2300, 25083, 202, ...
if (a == null || a.isEmpty())
int nLines = determineNumLines(); if (numLines != nLines)
void updateDamage (Rectangle a) { // If the allocation area is empty we can't do anything useful. // As determining the number of lines is impossible in that state we // reset it to an invalid value which can then be recalculated at a // later point. if (a == null || a.isEmpty()) { numLines = 1; return; } int oldNumLines = numLines; determineNumLines(); if (numLines != oldNumLines) preferenceChanged(this, false, true); else getContainer().repaint(a.x, a.y, a.width, a.height); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8de7a58b583ed7a20103e0de8fefff476740e75e/WrappedPlainView.java/buggy/javax/swing/text/WrappedPlainView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1089, 40, 301, 410, 261, 19463, 279, 13, 565, 288, 1377, 368, 971, 326, 13481, 5091, 353, 1008, 732, 848, 1404, 741, 6967, 5301, 18, 1377, 368, 2970, 23789, 326, 1300, 434, 2362, 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, 918, 1089, 40, 301, 410, 261, 19463, 279, 13, 565, 288, 1377, 368, 971, 326, 13481, 5091, 353, 1008, 732, 848, 1404, 741, 6967, 5301, 18, 1377, 368, 2970, 23789, 326, 1300, 434, 2362, 3...
protected List createInfosAndProxies() throws MessagingException { int fetchBatchSize = 50; try { fetchBatchSize = Integer.parseInt(Pooka.getProperty("Pooka.fetchBatchSize", "50")); } catch (NumberFormatException nfe) { } Vector messageProxies = new Vector(); Message[] msgs = folder.getMessages(); Message[] toFetch = msgs; // go ahead and fetch the first set of messages; the rest will be // taken care of by the loaderThread. if (msgs.length > fetchBatchSize) { toFetch = new Message[fetchBatchSize]; System.arraycopy(msgs, msgs.length - fetchBatchSize, toFetch, 0, fetchBatchSize); } folder.fetch(toFetch, fetchProfile); int firstFetched = Math.max(msgs.length - fetchBatchSize, 0); MessageInfo mi; for (int i = 0; i < msgs.length; i++) { mi = new MessageInfo(msgs[i], this); if ( i >= firstFetched) mi.setFetched(true); messageProxies.add(new MessageProxy(getColumnValues() , mi)); messageToInfoTable.put(msgs[i], mi); } return messageProxies; }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/6d6ba90375f9de34e58b248daf5e8c0025c1433b/FolderInfo.java/buggy/src/net/suberic/pooka/FolderInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 987, 752, 7655, 1876, 21488, 1435, 1216, 23794, 503, 288, 565, 509, 2158, 23304, 273, 6437, 31, 565, 775, 288, 1377, 2158, 23304, 273, 2144, 18, 2670, 1702, 12, 52, 1184, 69, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 987, 752, 7655, 1876, 21488, 1435, 1216, 23794, 503, 288, 565, 509, 2158, 23304, 273, 6437, 31, 565, 775, 288, 1377, 2158, 23304, 273, 2144, 18, 2670, 1702, 12, 52, 1184, 69, 18, ...
if ((log2N & 1) == 0){ for (int i = 0; i < NPoint; i++){ output[i] = to[i].squaredMagnitudeComplex();
if ((this.log2N & 1) == 0){ for (int i = 0; i < (NPoint >> 1); i++){ output[i] = from[i].squaredMagnitudeComplex();
private void recurseFFT(Complex[] input, double[] output, int NPoint, boolean invert) { Complex[] from = new Complex[NPoint]; Complex[] to = new Complex[NPoint]; double divisor; /** * The direct and inverse FFT are essentially the same * algorithm, except for two difference: a scaling factor * of "NPoint" and the signal of the exponent in the Wk * vectors, defined in the method <code>createWk</code>. */ if (invert == false){ divisor = 1.0f; } else { divisor = (double) NPoint; } /** * Initialize the "from" and "to" variables. */ for (int i = 0; i < NPoint; i++){ to[i] = new Complex(); from[i] = new Complex(); from[i].scaleComplex(input[i], divisor); } /** * Repeat the recursion log2(NPoint) times, * i.e., we have log2(NPoint) butterfly stages. */ butterflyStage(from, to, NPoint, NPoint >> 1); /** * Compute energy ("float") for each frequency point * from the fft ("complex") */ if ((log2N & 1) == 0){ for (int i = 0; i < NPoint; i++){ output[i] = to[i].squaredMagnitudeComplex(); } } else { for (int i = 0; i < NPoint; i++){ output[i] = from[i].squaredMagnitudeComplex(); } } return; }
8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/f705da8fd55497be632cf1f3518ce918bd032249/SpectrumAnalyzer.java/buggy/sphinx4/edu/cmu/sphinx/frontend/SpectrumAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 11502, 2246, 56, 12, 12795, 8526, 810, 16, 1082, 565, 1645, 8526, 876, 16, 1082, 565, 509, 423, 2148, 16, 1082, 565, 1250, 9848, 13, 288, 202, 12795, 8526, 628, 273, 394, 160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11502, 2246, 56, 12, 12795, 8526, 810, 16, 1082, 565, 1645, 8526, 876, 16, 1082, 565, 509, 423, 2148, 16, 1082, 565, 1250, 9848, 13, 288, 202, 12795, 8526, 628, 273, 394, 160...
else if(t.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) { Log.log(Log.DEBUG,this,"=> File list"); EditPane editPane = (EditPane)GUIUtilities .getComponentParent(c,EditPane.class); Buffer buffer = null; Object data = null; try { data = t.getTransferData( DataFlavor.javaFileListFlavor); } catch(Exception e) { Log.log(Log.ERROR,this,e); } Iterator iterator = ((List)data).iterator(); while(iterator.hasNext()) { File file = (File)iterator.next(); Buffer _buffer = jEdit.openFile(null, file.getPath()); if(_buffer != null) buffer = buffer; } if(buffer != null) editPane.setBuffer(buffer); editPane.getView().toFront(); editPane.getView().requestFocus(); editPane.requestFocus(); } else if(t.isDataFlavorSupported(DataFlavor.stringFlavor))
else if(t.isDataFlavorSupported( DataFlavor.stringFlavor))
protected void exportDone(JComponent c, Transferable t, int action) { Log.log(Log.DEBUG,this,"Export done"); if(t == null) { Log.log(Log.DEBUG,this,"=> Null transferrable"); JEditTextArea textArea = (JEditTextArea)c; textArea.selectNone(); } else if(t.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) { Log.log(Log.DEBUG,this,"=> File list"); EditPane editPane = (EditPane)GUIUtilities .getComponentParent(c,EditPane.class); Buffer buffer = null; Object data = null; try { data = t.getTransferData( DataFlavor.javaFileListFlavor); } catch(Exception e) { Log.log(Log.ERROR,this,e); } Iterator iterator = ((List)data).iterator(); while(iterator.hasNext()) { File file = (File)iterator.next(); Buffer _buffer = jEdit.openFile(null, file.getPath()); if(_buffer != null) buffer = buffer; } if(buffer != null) editPane.setBuffer(buffer); editPane.getView().toFront(); editPane.getView().requestFocus(); editPane.requestFocus(); } else if(t.isDataFlavorSupported(DataFlavor.stringFlavor)) { Log.log(Log.DEBUG,this,"=> String"); JEditTextArea textArea = (JEditTextArea)c; if(action == MOVE) textArea.setSelectedText(null,false); } }
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/9a67c10eb6319b7c00bf11c5bc3ed4aa37d8f806/Java14.java/clean/org/gjt/sp/jedit/Java14.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 918, 3359, 7387, 12, 46, 1841, 276, 16, 12279, 429, 268, 16, 1082, 202, 474, 1301, 13, 202, 202, 95, 1082, 202, 1343, 18, 1330, 12, 1343, 18, 9394, 16, 2211, 10837, 6144, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1117, 918, 3359, 7387, 12, 46, 1841, 276, 16, 12279, 429, 268, 16, 1082, 202, 474, 1301, 13, 202, 202, 95, 1082, 202, 1343, 18, 1330, 12, 1343, 18, 9394, 16, 2211, 10837, 6144, ...
List list = (List) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArgNoEval(args, 2, null); if (exp != null) { boolean desc = false, brk = true; sort(evaluator, list, exp, desc, brk); } if (n < list.size()) { list = list.subList(0, n); } return list; }
List list = (List) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArgNoEval(args, 2, null); if (exp != null) { boolean desc = false, brk = true; sort(evaluator, list, exp, desc, brk); } if (n < list.size()) { list = list.subList(0, n); } return list; }
public Object evaluate(Evaluator evaluator, Exp[] args) { List list = (List) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArgNoEval(args, 2, null); if (exp != null) { boolean desc = false, brk = true; sort(evaluator, list, exp, desc, brk); } if (n < list.size()) { list = list.subList(0, n); } return list; }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 6862, 202, 682, 666, 273, 261, 682, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 6862, 202, 474, 290, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 6862, 202, 682, 666, 273, 261, 682, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 6862, 202, 474, 290, ...
httpService.bringDown();
httpService.bringDown();
public void testBug709() { m_pollerConfig.setNodeOutageProcessingEnabled(true); MockNode node = m_network.getNode(2); MockService icmpService = m_network.getService(2, "192.168.1.3", "ICMP"); MockService httpService = m_network.getService(2, "192.168.1.3", "HTTP"); // start the poller startDaemons(); // // Bring Down the HTTP service and expect nodeLostService Event // resetAnticipated(); anticipateDown(httpService); // bring down the HTTP service httpService.bringDown(); verifyAnticipated(10000); // // Bring Down the ICMP (on the only interface on the node) now expect nodeDown // only. // resetAnticipated(); anticipateDown(node); // bring down the ICMP service icmpService.bringDown(); // make sure the down events are received //verifyAnticipated(10000); sleep(5000); // // Bring up both the node and the httpService at the same time. Expect // both a nodeUp and a nodeRegainedService // resetAnticipated(); // the order matters here anticipateUp(httpService); anticipateUp(node); // bring up all the services on the node node.bringUp(); // make sure the down events are received verifyAnticipated(10000); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/e3db1312e8cc2636034eb4d7b29db88850613e3b/PollerTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/poller/PollerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 19865, 27, 5908, 1435, 288, 3639, 312, 67, 3915, 749, 809, 18, 542, 907, 1182, 410, 7798, 1526, 12, 3767, 1769, 3639, 7867, 907, 756, 273, 312, 67, 5185, 18, 588, 907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19865, 27, 5908, 1435, 288, 3639, 312, 67, 3915, 749, 809, 18, 542, 907, 1182, 410, 7798, 1526, 12, 3767, 1769, 3639, 7867, 907, 756, 273, 312, 67, 5185, 18, 588, 907, ...
parse(buffer.toString(), ParserLanguage.CPP, false, false);
parse(buffer.toString(), ParserLanguage.CPP, false, 0);
public void test12_1s15() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("struct C;\n"); //$NON-NLS-1$ buffer.append("void no_opt(C*);\n"); //$NON-NLS-1$ buffer.append("struct C {\n"); //$NON-NLS-1$ buffer.append("int c;\n"); //$NON-NLS-1$ buffer.append("C() : c(0) { no_opt(this); }\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("const C cobj;\n"); //$NON-NLS-1$ buffer.append("void no_opt(C* cptr) {\n"); //$NON-NLS-1$ buffer.append("int i = cobj.c * 100; // value of cobj.c is unspecified\n"); //$NON-NLS-1$ buffer.append("cptr->c = 1;\n"); //$NON-NLS-1$ buffer.append("cout << cobj.c * 100 // value of cobj.c is unspecified\n"); //$NON-NLS-1$ buffer.append("<< '\n';\n"); //$NON-NLS-1$ buffer.append("}\n"); //$NON-NLS-1$ parse(buffer.toString(), ParserLanguage.CPP, false, false); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2138, 67, 21, 87, 3600, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 1697, 385, 9747, 82, 8863, 4329, 399...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2138, 67, 21, 87, 3600, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 1697, 385, 9747, 82, 8863, 4329, 399...
public void mMISC() throws RecognitionException { int MISC_StartIndex = input.index(); try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 44) ) { return ; } // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' ) int alt1=37; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=24; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=34; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '=': alt1=32; break; case '-': alt1=27; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '=': alt1=30; break; case '+': alt1=26; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=23; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case '=': switch ( input.LA(2) ) { case '/': alt1=37; break; case '=': alt1=29; break; case '+': alt1=31; break; case '-': alt1=33; break; case '*': alt1=35; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} break; case '(': alt1=19; break; case ')': alt1=20; break; case '\'': alt1=21; break; case '\\': alt1=22; break; case '<': alt1=25; break; case '>': alt1=28; break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("928:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:17: '!' { match('!'); if (failed) return ; } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:23: '@' { match('@'); if (failed) return ; } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:29: '$' { match('$'); if (failed) return ; } break; case 4 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:35: '%' { match('%'); if (failed) return ; } break; case 5 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:41: '^' { match('^'); if (failed) return ; } break; case 6 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:47: '&' { match('&'); if (failed) return ; } break; case 7 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:53: '*' { match('*'); if (failed) return ; } break; case 8 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:59: '_' { match('_'); if (failed) return ; } break; case 9 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:65: '-' { match('-'); if (failed) return ; } break; case 10 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:929:71: '+' { match('+'); if (failed) return ; } break; case 11 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:19: '|' { match('|'); if (failed) return ; } break; case 12 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:25: ',' { match(','); if (failed) return ; } break; case 13 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:31: '{' { match('{'); if (failed) return ; } break; case 14 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:37: '}' { match('}'); if (failed) return ; } break; case 15 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:43: '[' { match('['); if (failed) return ; } break; case 16 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:49: ']' { match(']'); if (failed) return ; } break; case 17 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:55: '=' { match('='); if (failed) return ; } break; case 18 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:61: '/' { match('/'); if (failed) return ; } break; case 19 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:67: '(' { match('('); if (failed) return ; } break; case 20 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:73: ')' { match(')'); if (failed) return ; } break; case 21 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:79: '\'' { match('\''); if (failed) return ; } break; case 22 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:930:86: '\\' { match('\\'); if (failed) return ; } break; case 23 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:19: '||' { match("||"); if (failed) return ; } break; case 24 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:26: '&&' { match("&&"); if (failed) return ; } break; case 25 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:33: '<<<' { match("<<<"); if (failed) return ; } break; case 26 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:41: '++' { match("++"); if (failed) return ; } break; case 27 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:48: '--' { match("--"); if (failed) return ; } break; case 28 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:55: '>>>' { match(">>>"); if (failed) return ; } break; case 29 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:63: '==' { match("=="); if (failed) return ; } break; case 30 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:70: '+=' { match("+="); if (failed) return ; } break; case 31 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:77: '=+' { match("=+"); if (failed) return ; } break; case 32 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:84: '-=' { match("-="); if (failed) return ; } break; case 33 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:91: '=-' { match("=-"); if (failed) return ; } break; case 34 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:97: '*=' { match("*="); if (failed) return ; } break; case 35 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:931:104: '=*' { match("=*"); if (failed) return ; } break; case 36 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:932:19: '/=' { match("/="); if (failed) return ; } break; case 37 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:932:26: '=/' { match("=/"); if (failed) return ; } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 44, MISC_StartIndex); } } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/ca87e40b5754cd366785b207f8cd109258275f53/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 509, 20806, 2312, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 509, 20806, 2312, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, ...
private void writeFile(File filePath,String packageName, List<String> lines) { String fileName = filePath.getName(); File file = m_outDir==null?filePath:new File(getPackageOutputDir(m_outDir, packageName), fileName); File parentDir = file.getParentFile(); parentDir.mkdirs(); FileWriter fw = null; BufferedWriter bw = null; try { fw = new FileWriter(file); bw = new BufferedWriter(fw); assert null != lines : "NO LINES FOR " + filePath; for (String l : lines) { bw.write(l); bw.write('\n'); } ppp("Wrote " + file.getAbsolutePath()); } catch (IOException e) { e.printStackTrace(); } finally { try { if (null != bw) { bw.close(); } } catch (IOException ioe) { } try { if (null != fw) { fw.close(); } } catch (IOException ioe) { } } }
private void writeFile(File filePath, String packageName, List<String> lines) { String fileName= filePath.getName(); File file= (m_outDir == null) ? filePath : new File(getPackageOutputDir(m_outDir, packageName), fileName); File parentDir= file.getParentFile(); parentDir.mkdirs(); FileWriter fw= null; BufferedWriter bw= null; try { fw= new FileWriter(file); bw= new BufferedWriter(fw); assert null != lines : "NO LINES FOR " + filePath; for(String l : lines) { bw.write(l); bw.write('\n'); } ppp("Wrote " + file.getAbsolutePath()); } catch(IOException e) { e.printStackTrace(); } finally { try { if(null != bw) { bw.close(); } } catch(IOException ioe) { } try { if(null != fw) { fw.close(); } } catch(IOException ioe) { } } }
private void writeFile(File filePath,String packageName, List<String> lines) { String fileName = filePath.getName(); File file = m_outDir==null?filePath:new File(getPackageOutputDir(m_outDir, packageName), fileName); File parentDir = file.getParentFile(); parentDir.mkdirs(); FileWriter fw = null; BufferedWriter bw = null; try { fw = new FileWriter(file); bw = new BufferedWriter(fw); assert null != lines : "NO LINES FOR " + filePath; for (String l : lines) { bw.write(l); bw.write('\n'); } ppp("Wrote " + file.getAbsolutePath()); } catch (IOException e) { e.printStackTrace(); } finally { try { if (null != bw) { bw.close(); } } catch (IOException ioe) { } try { if (null != fw) { fw.close(); } } catch (IOException ioe) { } } }
50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/AnnotationTestConverter.java/buggy/src/main/org/testng/internal/AnnotationTestConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 13286, 12, 812, 4612, 16, 780, 9929, 16, 987, 32, 780, 34, 2362, 13, 288, 202, 202, 780, 3968, 273, 4612, 18, 17994, 5621, 202, 202, 812, 585, 273, 312, 67, 659, 1621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13286, 12, 812, 4612, 16, 780, 9929, 16, 987, 32, 780, 34, 2362, 13, 288, 202, 202, 780, 3968, 273, 4612, 18, 17994, 5621, 202, 202, 812, 585, 273, 312, 67, 659, 1621,...
ruby.setDynamicVars((RubyVarmap)((RubyStack)oldMap.get(ruby)).pop());
ruby.setDynamicVars((RubyVarmap)ruby.varMapStack.pop());
public static void pop(Ruby ruby) { ruby.setDynamicVars((RubyVarmap)((RubyStack)oldMap.get(ruby)).pop()); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/f629550c5947df9c1dbe414645f3dc76bcb70df4/RubyVarmap.java/clean/org/jruby/runtime/RubyVarmap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1843, 12, 54, 10340, 22155, 13, 288, 3639, 22155, 18, 542, 9791, 5555, 12443, 54, 10340, 1537, 1458, 13, 27768, 18, 1401, 863, 2624, 18, 5120, 10663, 565, 289, 2, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1843, 12, 54, 10340, 22155, 13, 288, 3639, 22155, 18, 542, 9791, 5555, 12443, 54, 10340, 1537, 1458, 13, 27768, 18, 1401, 863, 2624, 18, 5120, 10663, 565, 289, 2, -100, ...
property( obj, Style.BACKGROUND_ATTACHMENT_PROP ); property( obj, Style.BACKGROUND_COLOR_PROP ); property( obj, Style.BACKGROUND_IMAGE_PROP ); property( obj, Style.BACKGROUND_POSITION_X_PROP ); property( obj, Style.BACKGROUND_POSITION_Y_PROP ); property( obj, Style.BACKGROUND_REPEAT_PROP );
property( obj, IStyleModel.BACKGROUND_ATTACHMENT_PROP ); property( obj, IStyleModel.BACKGROUND_COLOR_PROP ); property( obj, IStyleModel.BACKGROUND_IMAGE_PROP ); property( obj, IStyleModel.BACKGROUND_POSITION_X_PROP ); property( obj, IStyleModel.BACKGROUND_POSITION_Y_PROP ); property( obj, IStyleModel.BACKGROUND_REPEAT_PROP );
private void writeStyleProps( DesignElement obj ) { // Background property( obj, Style.BACKGROUND_ATTACHMENT_PROP ); property( obj, Style.BACKGROUND_COLOR_PROP ); property( obj, Style.BACKGROUND_IMAGE_PROP ); property( obj, Style.BACKGROUND_POSITION_X_PROP ); property( obj, Style.BACKGROUND_POSITION_Y_PROP ); property( obj, Style.BACKGROUND_REPEAT_PROP ); // Font property( obj, Style.FONT_FAMILY_PROP ); property( obj, Style.FONT_SIZE_PROP ); property( obj, Style.FONT_WEIGHT_PROP ); property( obj, Style.FONT_STYLE_PROP ); property( obj, Style.FONT_VARIANT_PROP ); property( obj, Style.COLOR_PROP ); property( obj, Style.TEXT_LINE_THROUGH_PROP ); property( obj, Style.TEXT_OVERLINE_PROP ); property( obj, Style.TEXT_UNDERLINE_PROP ); // Border property( obj, Style.BORDER_BOTTOM_COLOR_PROP ); property( obj, Style.BORDER_BOTTOM_STYLE_PROP ); property( obj, Style.BORDER_BOTTOM_WIDTH_PROP ); property( obj, Style.BORDER_LEFT_COLOR_PROP ); property( obj, Style.BORDER_LEFT_STYLE_PROP ); property( obj, Style.BORDER_LEFT_WIDTH_PROP ); property( obj, Style.BORDER_RIGHT_COLOR_PROP ); property( obj, Style.BORDER_RIGHT_STYLE_PROP ); property( obj, Style.BORDER_RIGHT_WIDTH_PROP ); property( obj, Style.BORDER_TOP_COLOR_PROP ); property( obj, Style.BORDER_TOP_STYLE_PROP ); property( obj, Style.BORDER_TOP_WIDTH_PROP ); // Margin property( obj, Style.MARGIN_TOP_PROP ); property( obj, Style.MARGIN_LEFT_PROP ); property( obj, Style.MARGIN_BOTTOM_PROP ); property( obj, Style.MARGIN_RIGHT_PROP ); // Padding property( obj, Style.PADDING_TOP_PROP ); property( obj, Style.PADDING_LEFT_PROP ); property( obj, Style.PADDING_BOTTOM_PROP ); property( obj, Style.PADDING_RIGHT_PROP ); // Formats property( obj, Style.NUMBER_ALIGN_PROP ); writeStructure( obj, Style.DATE_TIME_FORMAT_PROP ); writeStructure( obj, Style.NUMBER_FORMAT_PROP ); writeStructure( obj, Style.STRING_FORMAT_PROP ); // Text format property( obj, Style.TEXT_ALIGN_PROP ); property( obj, Style.TEXT_INDENT_PROP ); property( obj, Style.LETTER_SPACING_PROP ); property( obj, Style.LINE_HEIGHT_PROP ); property( obj, Style.ORPHANS_PROP ); property( obj, Style.TEXT_TRANSFORM_PROP ); property( obj, Style.VERTICAL_ALIGN_PROP ); property( obj, Style.WHITE_SPACE_PROP ); property( obj, Style.WIDOWS_PROP ); property( obj, Style.WORD_SPACING_PROP ); // Section Options property( obj, Style.DISPLAY_PROP ); property( obj, Style.MASTER_PAGE_PROP ); property( obj, Style.PAGE_BREAK_AFTER_PROP ); property( obj, Style.PAGE_BREAK_BEFORE_PROP ); property( obj, Style.PAGE_BREAK_INSIDE_PROP ); property( obj, Style.SHOW_IF_BLANK_PROP ); property( obj, Style.CAN_SHRINK_PROP ); // Highlight List list = (ArrayList) obj.getLocalProperty( getModule( ), Style.HIGHLIGHT_RULES_PROP ); if ( list != null && list.size( ) > 0 ) { writer.startElement( DesignSchemaConstants.LIST_PROPERTY_TAG ); writer.attribute( DesignSchemaConstants.NAME_ATTRIB, Style.HIGHLIGHT_RULES_PROP ); for ( int i = 0; i < list.size( ); i++ ) { HighlightRule rule = (HighlightRule) list.get( i ); writer.startElement( DesignSchemaConstants.STRUCTURE_TAG ); property( rule, HighlightRule.OPERATOR_MEMBER ); property( rule, HighlightRule.BACKGROUND_COLOR_MEMBER ); // Border property( rule, HighlightRule.BORDER_TOP_STYLE_MEMBER ); property( rule, HighlightRule.BORDER_TOP_WIDTH_MEMBER ); property( rule, HighlightRule.BORDER_TOP_COLOR_MEMBER ); property( rule, HighlightRule.BORDER_LEFT_STYLE_MEMBER ); property( rule, HighlightRule.BORDER_LEFT_WIDTH_MEMBER ); property( rule, HighlightRule.BORDER_LEFT_COLOR_MEMBER ); property( rule, HighlightRule.BORDER_BOTTOM_STYLE_MEMBER ); property( rule, HighlightRule.BORDER_BOTTOM_WIDTH_MEMBER ); property( rule, HighlightRule.BORDER_BOTTOM_COLOR_MEMBER ); property( rule, HighlightRule.BORDER_RIGHT_STYLE_MEMBER ); property( rule, HighlightRule.BORDER_RIGHT_WIDTH_MEMBER ); property( rule, HighlightRule.BORDER_RIGHT_COLOR_MEMBER ); // Font property( rule, HighlightRule.FONT_FAMILY_MEMBER ); property( rule, HighlightRule.FONT_SIZE_MEMBER ); property( rule, HighlightRule.FONT_STYLE_MEMBER ); property( rule, HighlightRule.FONT_WEIGHT_MEMBER ); property( rule, HighlightRule.FONT_VARIANT_MEMBER ); property( rule, HighlightRule.COLOR_MEMBER ); property( rule, HighlightRule.TEXT_UNDERLINE_MEMBER ); property( rule, HighlightRule.TEXT_OVERLINE_MEMBER ); property( rule, HighlightRule.TEXT_LINE_THROUGH_MEMBER ); property( rule, HighlightRule.TEXT_ALIGN_MEMBER ); property( rule, HighlightRule.TEXT_TRANSFORM_MEMBER ); property( rule, HighlightRule.TEXT_INDENT_MEMBER ); // Format property( rule, HighlightRule.NUMBER_ALIGN_MEMBER ); writeStructure( rule, HighlightRule.DATE_TIME_FORMAT_MEMBER ); writeStructure( rule, HighlightRule.NUMBER_FORMAT_MEMBER ); writeStructure( rule, HighlightRule.STRING_FORMAT_MEMBER ); property( rule, HighlightRule.TEST_EXPR_MEMBER ); property( rule, HighlightRule.VALUE1_MEMBER ); property( rule, HighlightRule.VALUE2_MEMBER ); writer.endElement( ); } writer.endElement( ); } // Map list = (ArrayList) obj.getLocalProperty( getModule( ), Style.MAP_RULES_PROP ); if ( list != null && list.size( ) > 0 ) { writer.startElement( DesignSchemaConstants.LIST_PROPERTY_TAG ); writer.attribute( DesignSchemaConstants.NAME_ATTRIB, Style.MAP_RULES_PROP ); for ( int i = 0; i < list.size( ); i++ ) { MapRule rule = (MapRule) list.get( i ); writer.startElement( DesignSchemaConstants.STRUCTURE_TAG ); property( rule, MapRule.TEST_EXPR_MEMBER ); property( rule, MapRule.OPERATOR_MEMBER ); property( rule, MapRule.VALUE1_MEMBER ); property( rule, MapRule.VALUE2_MEMBER ); resourceKey( rule, MapRule.DISPLAY_ID_MEMBER, MapRule.DISPLAY_MEMBER ); writer.endElement( ); } writer.endElement( ); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d802c33711e0d111551ae23575895cd060f085b6/ModuleWriter.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1045, 2885, 5047, 12, 29703, 1046, 1081, 262, 202, 95, 202, 202, 759, 8977, 202, 202, 4468, 12, 1081, 16, 9767, 18, 8720, 20166, 67, 789, 9833, 1792, 3212, 67, 15811, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1045, 2885, 5047, 12, 29703, 1046, 1081, 262, 202, 95, 202, 202, 759, 8977, 202, 202, 4468, 12, 1081, 16, 9767, 18, 8720, 20166, 67, 789, 9833, 1792, 3212, 67, 15811, 11...
member = ((FieldAndMethods) ht.get(name)).getField();
FieldAndMethods fam = (FieldAndMethods) ht.get(name); member = fam.getField(); if (member == null) member = fam.getBeanSetMethod();
public void put(String name, Object javaObject, Object value, boolean isStatic) { Hashtable ht = isStatic ? staticMembers : members; Object member = ht.get(name); if (!isStatic && member == null) { // Try to get static member from instance (LC3) member = staticMembers.get(name); } if (member == null) throw reportMemberNotFound(name); if (member instanceof FieldAndMethods) { member = ((FieldAndMethods) ht.get(name)).getField(); } Field field = null; try { field = (Field) member; field.set(javaObject, NativeJavaObject.coerceType(field.getType(), value)); } catch (ClassCastException e) { Object errArgs[] = { name }; throw Context.reportRuntimeError(Context.getMessage ("msg.java.method.assign", errArgs)); } catch (IllegalAccessException accessEx) { throw new RuntimeException("unexpected IllegalAccessException "+ "accessing Java field"); } catch (IllegalArgumentException argEx) { Object errArgs[] = { value.getClass().getName(), field, javaObject.getClass().getName() }; throw Context.reportRuntimeError(Context.getMessage( "msg.java.internal.field.type", errArgs)); } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/d51c86ce41d18ae0fb0b3b8271845674d5ce2728/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 780, 508, 16, 1033, 2252, 921, 16, 1033, 460, 16, 10792, 1250, 16116, 13, 565, 288, 3639, 18559, 14049, 273, 16116, 692, 760, 6918, 294, 4833, 31, 3639, 1033, 3140, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 780, 508, 16, 1033, 2252, 921, 16, 1033, 460, 16, 10792, 1250, 16116, 13, 565, 288, 3639, 18559, 14049, 273, 16116, 692, 760, 6918, 294, 4833, 31, 3639, 1033, 3140, ...
return File.listRoots();
{ File[] roots = File.listRoots(); File[] desktop = null; if(getRoots != null) { try { desktop = (File[])getRoots.invoke(fsView, new Object[0]); } catch(Exception e) { Log.log(Log.ERROR, FileRootsVFS.class, "Error getting Desktop: " + e.getMessage()); desktop = null; } } if(desktop == null) return roots; File[] rootsPlus = new File[roots.length + desktop.length]; System.arraycopy(desktop, 0, rootsPlus, 0, desktop.length); System.arraycopy(roots, 0, rootsPlus, 1, roots.length); return rootsPlus; }
private static File[] listRoots() { // will finish this later /* if(getRoots != null) { try { File[] roots = (File[])getRoots.invoke(fsView, new Object[0]); return roots; } catch(Exception e) { return null; } } else */ if (OperatingSystem.isMacOS()) { // Nasty hardcoded values File[] volumes = new File("/Volumes").listFiles(); LinkedList roots = new LinkedList(); roots.add(new File("/")); for (int i=0; i<volumes.length; i++) { // Make sure people don't do stupid things like putting files in /Volumes if (volumes[i].isDirectory()) roots.add(volumes[i]); } return (File[])roots.toArray(new File[0]); } else return File.listRoots(); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/2653e9c79a26fb950d44ed5d7fc62bd08cddbec1/FileRootsVFS.java/clean/org/gjt/sp/jedit/io/FileRootsVFS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1387, 8526, 666, 17540, 1435, 202, 95, 202, 202, 759, 903, 4076, 333, 5137, 202, 202, 20308, 309, 12, 588, 17540, 480, 446, 13, 202, 202, 95, 1082, 202, 698, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1387, 8526, 666, 17540, 1435, 202, 95, 202, 202, 759, 903, 4076, 333, 5137, 202, 202, 20308, 309, 12, 588, 17540, 480, 446, 13, 202, 202, 95, 1082, 202, 698, 1082, 202, ...
public boolean eIsSet( EStructuralFeature eFeature )
public boolean eIsSet( int featureID )
public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.FONT_DEFINITION__NAME : return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals( name ); case AttributePackage.FONT_DEFINITION__SIZE : return isSetSize( ); case AttributePackage.FONT_DEFINITION__BOLD : return isSetBold( ); case AttributePackage.FONT_DEFINITION__ITALIC : return isSetItalic( ); case AttributePackage.FONT_DEFINITION__STRIKETHROUGH : return isSetStrikethrough( ); case AttributePackage.FONT_DEFINITION__UNDERLINE : return isSetUnderline( ); case AttributePackage.FONT_DEFINITION__WORD_WRAP : return isSetWordWrap( ); case AttributePackage.FONT_DEFINITION__ALIGNMENT : return alignment != null; case AttributePackage.FONT_DEFINITION__ROTATION : return isSetRotation( ); } return eDynamicIsSet( eFeature ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/FontDefinitionImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/FontDefinitionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 20372, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 20372, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3601, 22...
"Invalid signature in getArgSlotCount: " + signature);
"Invalid signature in getArgSlotCount: " + String.valueOf(signature));
public static final int getArgSlotCount(String signature) { int ofs = 0; final int len = signature.length(); if (signature.charAt(ofs++) != '(') return 0; int count = 0; while (ofs < len) { char ch = signature.charAt(ofs++); switch (ch) { case ')' : return count; case 'B' : // Byte case 'Z' : // Boolean case 'C' : // Char case 'S' : // Short case 'I' : // Int case 'F' : // Float count++; break; case 'D' : // Double case 'J' : // Long count += 2; break; case '[' : // Array { count++; while (signature.charAt(ofs) == '[') ofs++; if (signature.charAt(ofs) == 'L') { ofs++; while (signature.charAt(ofs) != ';') ofs++; } ofs++; } break; case 'L' : // Object { count++; while (signature.charAt(ofs) != ';') ofs++; ofs++; } break; } } throw new RuntimeException( "Invalid signature in getArgSlotCount: " + signature); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/Signature.java/buggy/core/src/core/org/jnode/vm/classmgr/Signature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 509, 336, 4117, 8764, 1380, 12, 780, 3372, 13, 288, 202, 202, 474, 26927, 273, 374, 31, 202, 202, 6385, 509, 562, 273, 3372, 18, 2469, 5621, 202, 202, 430, 261, 81...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 509, 336, 4117, 8764, 1380, 12, 780, 3372, 13, 288, 202, 202, 474, 26927, 273, 374, 31, 202, 202, 6385, 509, 562, 273, 3372, 18, 2469, 5621, 202, 202, 430, 261, 81...
"<param name=\"remoteURL\" value=\"http:
"<param name=\"remoteURL\" value=\""+context.getServerPath()+"/app/fetchAttributeValues.do;jsessionid={2}\"></param>").append(
public String draw(DashboardContext context) { ApplicationConfig appConfig = context.getWebContext().getApplicationConfig(); assert appConfig != null: "No application context present"; try{ StringBuffer graphComponent = new StringBuffer().append( "<applet code=\"org/jmanage/webui/applets/GraphApplet.class\"").append( " width=\"{0}\" height=\"{1}\"").append( " archive=\"/applets/applets.jar,/applets/jfreechart-0.9.20.jar,").append( "/applets/jcommon-0.9.5.jar\" >").append( "<param name=\"graphTitle\" value=\""+getName()+"\"></param>").append( "<param name=\"pollingInterval\" value=\""+getPollingIntervalInSeconds()+"\"></param>").append( "<param name=\"remoteURL\" value=\"http://localhost:9090/app/fetchAttributeValues.do;jsessionid={2}\"></param>").append( "<param name=\"displayNames\" value=\"").append(getAttributeDisplayNamesForGraph()).append("\"></param>").append( "<param name=\"attributes\" value=\"").append(getAttributesForGraph(appConfig.getName())).append("\"></param>").append( "<param value=\"\" name=\"yAxisLabel\"></param>").append("</applet>"); return graphComponent.toString(); }catch(Exception e){ return "Failure rendering component"; } }
54569 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54569/03bffe15b9d01d41e6109aab0f29a544c08d3bc3/Graph.java/buggy/jmanage/webui/src/main/java/org/jmanage/webui/dashboard/components/Graph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3724, 12, 14830, 1042, 819, 13, 288, 3639, 4257, 809, 20782, 273, 819, 18, 588, 4079, 1042, 7675, 588, 3208, 809, 5621, 3639, 1815, 20782, 480, 446, 30, 315, 2279, 2521, 819, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 12, 14830, 1042, 819, 13, 288, 3639, 4257, 809, 20782, 273, 819, 18, 588, 4079, 1042, 7675, 588, 3208, 809, 5621, 3639, 1815, 20782, 480, 446, 30, 315, 2279, 2521, 819, ...
dx = next[0] - curEndPoint.getX(); dy = next[1] - curEndPoint.getY();
dx = next[0] - currEndPoint.getX(); dy = next[1] - currEndPoint.getY(); break; case ExtendedPathIterator.SEG_ARCTO: { boolean large = (next[3]!=0.); boolean goLeft = (next[4]!=0.); Arc2D arc = ExtendedGeneralPath.computeArc (currEndPoint.getX(), currEndPoint.getY(), next[0], next[1], next[2], large, goLeft, next[5], next[6]); double theta = arc.getAngleStart(); theta = Math.toRadians(theta); dx = -arc.getWidth()/2.0*Math.sin(theta); dy = arc.getHeight()/2.0*Math.cos(theta); if (next[2] != 0) { double ang = Math.toRadians(-next[2]); double sinA = Math.sin(ang); double cosA = Math.cos(ang); double tdx = dx*cosA - dy*sinA; double tdy = dx*sinA + dy*cosA; dx = tdx; dy = tdy; } if (goLeft) { dx = -dx; } else { dy = -dy; } }
private double[] computeOutSlope(double[] cur, int curSegType, double[] next, int nextSegType){ Point2D curEndPoint = getSegmentTerminatingPoint(cur, curSegType); double dx = 0, dy = 0; switch(nextSegType){ case PathIterator.SEG_CLOSE: // Should not happen at this point, because all close segments have // been replaced by lineTo segments. break; case PathIterator.SEG_CUBICTO: case PathIterator.SEG_LINETO: case PathIterator.SEG_QUADTO: // If the next segment is a line, quad or cubic curve. the slope is // about equal to that of the line from curEndPoint and the first // control point dx = next[0] - curEndPoint.getX(); dy = next[1] - curEndPoint.getY(); break; case PathIterator.SEG_MOVETO: // Cannot compute the out slope default: return null; } if (dx == 0 && dy == 0) { return null; } return new double[] { dx, dy }; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/68382facca1581dfdb43a5f09cfd60d5bcc8af2a/MarkerShapePainter.java/clean/sources/org/apache/batik/gvt/MarkerShapePainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 8526, 3671, 1182, 55, 12232, 12, 9056, 8526, 662, 16, 19694, 509, 662, 3289, 559, 16, 19694, 1645, 8526, 1024, 16, 19694, 509, 1024, 3289, 559, 15329, 3639, 4686, 22, 40, 662,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 8526, 3671, 1182, 55, 12232, 12, 9056, 8526, 662, 16, 19694, 509, 662, 3289, 559, 16, 19694, 1645, 8526, 1024, 16, 19694, 509, 1024, 3289, 559, 15329, 3639, 4686, 22, 40, 662,...
programClasses.remove(clazz.getClassName()); runtimeClasses.remove(clazz.getClassName()); }
programClasses.remove(clazz.getClassName()); runtimeClasses.remove(clazz.getClassName()); }
public void removeClass(JavaClass clazz) { programClasses.remove(clazz.getClassName()); runtimeClasses.remove(clazz.getClassName()); }
10293 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10293/f8c5449649080ba5d8b846e18d35e0ec85606a5c/URLRepository.java/buggy/src/java/net/java/dev/jminimizer/util/URLRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 15695, 12, 5852, 797, 4003, 13, 288, 3639, 5402, 4818, 18, 4479, 12, 830, 3638, 18, 588, 3834, 10663, 3639, 3099, 4818, 18, 4479, 12, 830, 3638, 18, 588, 3834, 10663, 565, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 15695, 12, 5852, 797, 4003, 13, 288, 3639, 5402, 4818, 18, 4479, 12, 830, 3638, 18, 588, 3834, 10663, 3639, 3099, 4818, 18, 4479, 12, 830, 3638, 18, 588, 3834, 10663, 565, 28...
if (this.getLogger().isDebugEnabled()) { this.getLogger().debug("BEGIN setupTransforming");
if (getLogger().isDebugEnabled()) { getLogger().debug("setupTransforming");
public void setupTransforming() throws IOException, ProcessingException, SAXException { if (this.getLogger().isDebugEnabled()) { this.getLogger().debug("BEGIN setupTransforming"); } this.stack.clear(); this.recorderStack.clear(); this.ignoreWhitespaces = true; this.ignoreEmptyCharacters = false; if (this.getLogger().isDebugEnabled()) { this.getLogger().debug("END setupTransforming"); } }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/9218582fd1c37e7ac48772b1c6d30003eec848fa/AbstractSAXTransformer.java/buggy/src/java/org/apache/cocoon/transformation/AbstractSAXTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3875, 4059, 310, 1435, 565, 1216, 1860, 16, 19652, 503, 16, 14366, 288, 3639, 309, 261, 2211, 18, 588, 3328, 7675, 291, 2829, 1526, 10756, 288, 5411, 333, 18, 588, 3328, 7675, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 4059, 310, 1435, 565, 1216, 1860, 16, 19652, 503, 16, 14366, 288, 3639, 309, 261, 2211, 18, 588, 3328, 7675, 291, 2829, 1526, 10756, 288, 5411, 333, 18, 588, 3328, 7675, ...
if (parent instanceof TableTreeItem) item = new TableTreeItem((TableTreeItem) parent, flags, ix); else item = new TableTreeItem((TableTree) parent, flags, ix);
if (parent instanceof TableTreeItem) { item = new TableTreeItem((TableTreeItem) parent, flags, ix); } else { item = new TableTreeItem((TableTree) parent, flags, ix); }
protected Item newItem(Widget parent, int flags, int ix) { TableTreeItem item; if (ix >= 0) { if (parent instanceof TableTreeItem) item = new TableTreeItem((TableTreeItem) parent, flags, ix); else item = new TableTreeItem((TableTree) parent, flags, ix); } else { if (parent instanceof TableTreeItem) item = new TableTreeItem((TableTreeItem) parent, flags); else item = new TableTreeItem((TableTree) parent, flags); } return item; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/TableTreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableTreeViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4342, 26536, 12, 4609, 982, 16, 509, 2943, 16, 509, 8288, 13, 288, 3639, 3555, 2471, 1180, 761, 31, 3639, 309, 261, 697, 1545, 374, 13, 288, 5411, 309, 261, 2938, 1276, 3555, 2471...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4342, 26536, 12, 4609, 982, 16, 509, 2943, 16, 509, 8288, 13, 288, 3639, 3555, 2471, 1180, 761, 31, 3639, 309, 261, 697, 1545, 374, 13, 288, 5411, 309, 261, 2938, 1276, 3555, 2471...
long maxTimeOut= 10 * 1000;
long maxTimeOut= 10 * 1000;
private List<ITestResult> runWorkers(ITestNGMethod testMethod, List<TestMethodWorker> workers, int threadPoolSize) { long maxTimeOut= 10 * 1000; // 1 second IPooledExecutor executor= ThreadUtil.createPooledExecutor(threadPoolSize); for(TestMethodWorker tmw : workers) { long mt= tmw.getMaxTimeOut(); if(mt > maxTimeOut) { maxTimeOut= mt; } executor.execute(tmw); } try { executor.shutdown(); log(3, "Waiting for termination, timeout:" + maxTimeOut); executor.awaitTermination(maxTimeOut); log(3, "Successful termination"); } catch(InterruptedException e) { e.printStackTrace(); } // // Collect all the TestResults // List<ITestResult> result = new ArrayList<ITestResult>(); for (TestMethodWorker tmw : workers) { result.addAll(tmw.getTestResults()); } return result; }
47060 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47060/0d8f413440f12bb7597a94655746e729552baeaf/Invoker.java/buggy/src/main/org/testng/internal/Invoker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 987, 32, 1285, 395, 1253, 34, 1086, 15252, 12, 1285, 395, 4960, 1305, 1842, 1305, 16, 4202, 987, 32, 4709, 1305, 6671, 34, 9798, 16, 509, 2650, 18834, 13, 282, 288, 565, 1525, 253...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 32, 1285, 395, 1253, 34, 1086, 15252, 12, 1285, 395, 4960, 1305, 1842, 1305, 16, 4202, 987, 32, 4709, 1305, 6671, 34, 9798, 16, 509, 2650, 18834, 13, 282, 288, 565, 1525, 253...
Attributes l_attributes = db.getSuffixEntry() ; if ( null == l_attributes )
Attributes attributes = db.getSuffixEntry() ; if ( null == attributes )
public SystemPartition( Database db, SearchEngine searchEngine, AttributeType[] indexAttributes ) throws NamingException { super( db, searchEngine, indexAttributes ); suffix = new LdapName() ; try { suffix.add( SUFFIX ) ; } catch ( InvalidNameException e ) { ; // Never thrown - name will always be valid! } // add the root entry for the system root context if it does not exist Attributes l_attributes = db.getSuffixEntry() ; if ( null == l_attributes ) { l_attributes = new LockableAttributesImpl() ; l_attributes.put( "objectClass", "top" ) ; l_attributes.put( "objectClass", "organizationalUnit" ) ; l_attributes.put( NamespaceTools.getRdnAttribute( SUFFIX ), NamespaceTools.getRdnValue( SUFFIX ) ) ; getDb().add( SUFFIX, suffix, l_attributes ) ; //m_logger.info( "Added suffix '" + SUFFIX // + "' for system backend" ) ; } }
10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/57ceba6f713269e4690c8f067bdc4b3cbdc97a48/SystemPartition.java/buggy/backend/core/src/java/org/apache/eve/SystemPartition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2332, 7003, 12, 5130, 1319, 16, 5167, 4410, 1623, 4410, 16, 18701, 26414, 8526, 770, 2498, 262, 3639, 1216, 26890, 565, 288, 3639, 2240, 12, 1319, 16, 1623, 4410, 16, 770, 2498, 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, 377, 1071, 2332, 7003, 12, 5130, 1319, 16, 5167, 4410, 1623, 4410, 16, 18701, 26414, 8526, 770, 2498, 262, 3639, 1216, 26890, 565, 288, 3639, 2240, 12, 1319, 16, 1623, 4410, 16, 770, 2498, 112...
tableScroller.setPreferredSize(new Dimension(300,(idata.guiPrefs.height/3+30)));
tableScroller.setPreferredSize( new Dimension(300, (idata.guiPrefs.height / 3 + 30)));
public PacksPanel(InstallerFrame parent, InstallData idata) { super(parent, idata); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JLabel infoLabel = new JLabel(parent.langpack.getString("PacksPanel.info"), parent.icons.getImageIcon("preferences"), JLabel.TRAILING); add(infoLabel); add(Box.createRigidArea(new Dimension(0, 3))); JLabel tipLabel = new JLabel(parent.langpack.getString("PacksPanel.tip"), parent.icons.getImageIcon("tip"), JLabel.TRAILING); add(tipLabel); add(Box.createRigidArea(new Dimension(0, 5))); packsTable = new JTable(); packsTable.setIntercellSpacing(new Dimension(0,0)); packsTable.setBackground(Color.white); packsTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); packsTable.getSelectionModel().addListSelectionListener(this); packsTable.setShowGrid(false); tableScroller = new JScrollPane(packsTable); tableScroller.setAlignmentX(LEFT_ALIGNMENT); tableScroller.getViewport().setBackground(Color.white); tableScroller.setPreferredSize(new Dimension(300,(idata.guiPrefs.height/3+30))); add(tableScroller); descriptionArea = new JTextArea(); descriptionArea.setMargin(new Insets(2,2,2,2)); descriptionArea.setAlignmentX(LEFT_ALIGNMENT); descriptionArea.setCaretPosition(0); descriptionArea.setEditable(false); descriptionArea.setEditable(false); descriptionArea.setOpaque(false); descriptionArea.setLineWrap(true); descriptionArea.setWrapStyleWord(true); descriptionArea.setBorder(BorderFactory.createTitledBorder(parent.langpack.getString("PacksPanel.description"))); add(descriptionArea); JPanel spacePanel = new JPanel(); spacePanel.setAlignmentX(LEFT_ALIGNMENT); spacePanel.setLayout(new BoxLayout(spacePanel, BoxLayout.X_AXIS)); spacePanel.add(new JLabel(parent.langpack.getString("PacksPanel.space"))); spacePanel.add(Box.createHorizontalGlue()); spaceLabel = new JLabel("");// spaceLabel.setFont(new Font("Monospaced",Font.PLAIN,11)); spacePanel.add(spaceLabel); add(spacePanel); }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/PacksPanel.java/clean/src/lib/com/izforge/izpack/panels/PacksPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 7930, 87, 5537, 12, 18678, 3219, 982, 16, 10284, 751, 612, 396, 13, 225, 288, 565, 2240, 12, 2938, 16, 612, 396, 1769, 565, 18479, 12, 2704, 8549, 3744, 12, 2211, 16, 8549, 3744, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7930, 87, 5537, 12, 18678, 3219, 982, 16, 10284, 751, 612, 396, 13, 225, 288, 565, 2240, 12, 2938, 16, 612, 396, 1769, 565, 18479, 12, 2704, 8549, 3744, 12, 2211, 16, 8549, 3744, ...
if(ASS)Log.trace("ControlTyrant.aboutToExecute", "2) exit, ! _enabled" );
if(AS.DEBUG)Log.trace("ControlTyrant.aboutToExecute", "2) exit, ! _enabled" );
void aboutToExecute(JSThreadState debug, JSPC pc, Hook hook) { if(ASS)Log.trace("ControlTyrant.aboutToExecute", "1) entered" ); if( ! _enabled ) { if(ASS)Log.trace("ControlTyrant.aboutToExecute", "2) exit, ! _enabled" ); return; } if( _evaluatingBreakpoint > 0 ) { if(ASS)System.out.println("ignoring break while evaluating breakpoint"); return; } PrivilegeManager.enablePrivilege("Debugger"); // grab the semaphore (return if not available) if(ASS)Log.trace("ControlTyrant.aboutToExecute", "3) about to call _semaphore.grab()" ); if( ! _semaphore.grab() ) { if(ASS)System.out.println( "blowing past nested break at: " + pc ); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "4) exit _semaphore.grab() failed" ); return; } if(ASS)Log.trace("ControlTyrant.aboutToExecute", "5) exit _semaphore.grab() succeeded" ); if( hook instanceof CtrlDebugBreakHook ) { _stepHandler = null; _serverSideStepperIsSet = false; _interrupt = false; } // Keep going if the interrupt no longer needed. if( hook instanceof CtrlInterruptHook && null == _stepHandler && ! _interrupt && ! _serverSideStepperIsSet ) { _semaphore.release(); return; } // save arguments _threadState = debug; _pc = pc; if(ASS)Log.trace("ControlTyrant.aboutToExecute", "6) about to call _pc.getSourceLocation()"); _sourceLocation = (JSSourceLocation) _pc.getSourceLocation(); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "7) _pc.getSourceLocation() returned"); if(false) { String leadin = "interrupted at:"; String url = _sourceLocation.getURL()+"#"+(_sourceLocation.getLine()); String fun = (null != _pc.getScript().getFunction()) ? (_pc.getScript().getFunction()+"()") : "toplevel"; String script = "["+(_pc.getScript().getBaseLineNumber())+","+ (_pc.getScript().getBaseLineNumber()+_pc.getScript().getLineExtent()-1)+"]"; String where = "pc: " + _pc.getPC(); if(ASS){System.out.println(leadin+" "+url+" "+fun+" "+script+" "+where);}// if(ASS)Thread.dumpStack(); } // Hitting any other type of hook clears the interrupt stepper if( ! (hook instanceof CtrlInterruptHook) ) { _stepHandler = null; _serverSideStepperIsSet = false; } // If there is a step handler then let it process the hook if( null != _stepHandler ) { switch( _stepHandler.step(_threadState,_pc,_sourceLocation,hook) ) { case StepHandler.STOP: _stepHandler = null; if(ASS)Log.trace("ControlTyrant.aboutToExecute", "8) StepHandler.STOP"); break; case StepHandler.CONTINUE_SEND_INTERRUPT: if(ASS)Log.trace("ControlTyrant.aboutToExecute", "9) StepHandler.CONTINUE_SEND_INTERRUPT about to sendInterrupt"); _dc.sendInterrupt(); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "10) sendInterrupt returned"); _semaphore.release(); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "10.5) _semaphore.release() returned"); return; case StepHandler.CONTINUE_DONE: if(ASS)Log.trace("ControlTyrant.aboutToExecute", "11) StepHandler.CONTINUE_DONE"); _stepHandler = null; _semaphore.release(); return; } } // if(ASS){System.out.println( "about to send HIT_EXEC_HOOK" );} // if(ASS){System.out.println( "this = " + this );} // if(ASS){System.out.println( "HIT_EXEC_HOOK = " + HIT_EXEC_HOOK );} // if(ASS){System.out.println( "hook = " + hook );} // if(ASS){System.out.println( "Thread = " + Thread.currentThread() );} if(ASS)Log.trace("ControlTyrant.aboutToExecute", "12) about to call _threadState.leaveSuspended()"); _threadState.leaveSuspended(); if(ASS)Log.trace("ControlTyrant.aboutToExecute", "13) _threadState.leaveSuspended() returned"); // post message to UI thread _app.performCommandLater( this, HIT_EXEC_HOOK, hook ); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/8d552690e0ecadc755e5f2bb091374d2e728e617/ControlTyrant.java/buggy/js/jsdj/classes/com/netscape/jsdebugging/ifcui/ControlTyrant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 2973, 774, 5289, 12, 46, 882, 76, 896, 1119, 1198, 16, 804, 3118, 39, 6125, 16, 13725, 3953, 13, 565, 288, 3639, 309, 12, 8423, 13, 1343, 18, 5129, 2932, 3367, 56, 93, 6890, 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, 918, 2973, 774, 5289, 12, 46, 882, 76, 896, 1119, 1198, 16, 804, 3118, 39, 6125, 16, 13725, 3953, 13, 565, 288, 3639, 309, 12, 8423, 13, 1343, 18, 5129, 2932, 3367, 56, 93, 6890, 18, ...
synchronized(this) { if(cache) { try { chkDatastore.put(block); } catch (IOException e) { Logger.error(this, "Datastore failure: "+e, e); }
if(cache) { try { chkDatastore.put(block); } catch (IOException e) { Logger.error(this, "Datastore failure: "+e, e);
public void realPutCHK(ClientCHKBlock block, boolean cache) throws LowLevelPutException { byte[] data = block.getData(); byte[] headers = block.getHeaders(); PartiallyReceivedBlock prb = new PartiallyReceivedBlock(PACKETS_IN_BLOCK, PACKET_SIZE, data); CHKInsertSender is; long uid = random.nextLong(); if(!lockUID(uid)) { Logger.error(this, "Could not lock UID just randomly generated: "+uid+" - probably indicates broken PRNG"); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); } long startTime = System.currentTimeMillis(); synchronized(this) { if(cache) { try { chkDatastore.put(block); } catch (IOException e) { Logger.error(this, "Datastore failure: "+e, e); } } is = makeInsertSender((NodeCHK)block.getClientKey().getNodeKey(), MAX_HTL, uid, null, headers, prb, false, lm.getLocation().getValue(), cache); } boolean hasForwardedRejectedOverload = false; // Wait for status while(true) { synchronized(is) { if(is.getStatus() == CHKInsertSender.NOT_FINISHED) { try { is.wait(5*1000); } catch (InterruptedException e) { // Ignore } } if(is.getStatus() != CHKInsertSender.NOT_FINISHED) break; } if((!hasForwardedRejectedOverload) && is.receivedRejectedOverload()) { hasForwardedRejectedOverload = true; throttleWindow.rejectedOverload(); } } // Wait for completion while(true) { synchronized(is) { if(is.completed()) break; try { is.wait(10*1000); } catch (InterruptedException e) { // Go around again } } if(is.anyTransfersFailed() && (!hasForwardedRejectedOverload)) { hasForwardedRejectedOverload = true; // not strictly true but same effect throttleWindow.rejectedOverload(); } } Logger.minor(this, "Completed "+uid+" overload="+hasForwardedRejectedOverload+" "+is.getStatusString()); // Finished? if(!hasForwardedRejectedOverload) { // Is it ours? Did we send a request? if(is.sentRequest() && is.uid == uid && (is.getStatus() == CHKInsertSender.ROUTE_NOT_FOUND || is.getStatus() == CHKInsertSender.SUCCESS)) { // It worked! long endTime = System.currentTimeMillis(); long len = endTime - startTime; chkInsertThrottle.successfulCompletion(len); throttleWindow.requestCompleted(); } } if(is.getStatus() == CHKInsertSender.SUCCESS) { Logger.normal(this, "Succeeded inserting "+block); return; } else { int status = is.getStatus(); String msg = "Failed inserting "+block+" : "+is.getStatusString(); if(status == CHKInsertSender.ROUTE_NOT_FOUND) msg += " - this is normal on small networks; the data will still be propagated, but it can't find the 20+ nodes needed for full success"; if(is.getStatus() != CHKInsertSender.ROUTE_NOT_FOUND) Logger.error(this, msg); else Logger.normal(this, msg); switch(is.getStatus()) { case CHKInsertSender.NOT_FINISHED: Logger.error(this, "IS still running in putCHK!: "+is); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); case CHKInsertSender.GENERATED_REJECTED_OVERLOAD: case CHKInsertSender.TIMED_OUT: throw new LowLevelPutException(LowLevelPutException.REJECTED_OVERLOAD); case CHKInsertSender.ROUTE_NOT_FOUND: throw new LowLevelPutException(LowLevelPutException.ROUTE_NOT_FOUND); case CHKInsertSender.ROUTE_REALLY_NOT_FOUND: throw new LowLevelPutException(LowLevelPutException.ROUTE_REALLY_NOT_FOUND); case CHKInsertSender.INTERNAL_ERROR: throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); default: Logger.error(this, "Unknown CHKInsertSender code in putCHK: "+is.getStatus()+" on "+is); throw new LowLevelPutException(LowLevelPutException.INTERNAL_ERROR); } } }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/79d31585331089fa241bcabc60a642461fd7972a/Node.java/buggy/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2863, 6426, 1792, 47, 12, 1227, 1792, 47, 1768, 1203, 16, 1250, 1247, 13, 1216, 23629, 2355, 6426, 503, 288, 202, 202, 7229, 8526, 501, 273, 1203, 18, 588, 751, 5621, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2863, 6426, 1792, 47, 12, 1227, 1792, 47, 1768, 1203, 16, 1250, 1247, 13, 1216, 23629, 2355, 6426, 503, 288, 202, 202, 7229, 8526, 501, 273, 1203, 18, 588, 751, 5621, 202...
public boolean expandEx() { //Only expand Earthbound ROMs that are expanded to 32 megabits and // have a 0x200 header. Expand from 24 megabits to 32 megabits first. expand(); if ((getRomType().equals("Earthbound")) && length() == 0x400200) return _expandEx(); else return false; }
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/589379ef2e2ad6af3fedcfd5c26e4a0f06824f9c/AbstractRom.java/buggy/src/net/starmen/pkhack/AbstractRom.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 4542, 424, 1435, 565, 288, 3639, 368, 3386, 4542, 512, 27076, 3653, 534, 1872, 87, 716, 854, 8406, 358, 3847, 312, 1332, 378, 1282, 471, 3639, 368, 1240, 279, 374, 92, 6976, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4542, 424, 1435, 565, 288, 3639, 368, 3386, 4542, 512, 27076, 3653, 534, 1872, 87, 716, 854, 8406, 358, 3847, 312, 1332, 378, 1282, 471, 3639, 368, 1240, 279, 374, 92, 6976, ...
return new ByteArrayInputStream(getResponseBody()); }
return new ByteArrayInputStream(getResponseBody()); }
public InputStream getContentAsStream() { return new ByteArrayInputStream(getResponseBody()); }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/d84f16e26131fb1d59954e1168b859dbb92d31cc/HttpWebConnection.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 5037, 5154, 17052, 1435, 288, 10792, 327, 394, 16180, 12, 588, 23269, 10663, 7734, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1171, 1071, 5037, 5154, 17052, 1435, 288, 10792, 327, 394, 16180, 12, 588, 23269, 10663, 7734, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { //hr ska vi ta emot all in data och skapa en statisk html sida som vi skriver ner i en //mapp och skickar lnken till mottagaren //System.out.println("doPost"); //hmtar jag vet inte vad men typ allt String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("userserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; String no_permission_url = Utility.getDomainPref( "no_permission_url",host ) ; int start_doc = IMCServiceRMI.getDefaultHomePage(imcserver) ; String servlet_url = Utility.getDomainPref( "servlet_url",host ) ; File image_folder_path = Utility.getDomainPrefPath( "image_path", host ); SystemData sysData = imcode.util.IMCServiceRMI.getSystemData (imcserver); File templateLib = getExternalTemplateFolder(req); HttpSession session = req.getSession(true); Object done = session.getValue("logon.isDone"); imcode.server.User user = (imcode.server.User) done ; String qLine = "1"; String metaId =""; String qText = ""; //lets get the line nr from session String[] pCStuff = (String[])session.getAttribute("postCardStuff") ; if (pCStuff != null) { qText = HTMLConv.toHTML(pCStuff[0]); qLine = pCStuff[1]; metaId = pCStuff[2]; } int qInt = 1; try { qInt = Integer.parseInt(qLine); }catch(NumberFormatException nfe) { //some thing gon wrong, but I dont care I give them the first line' //instead of the one the wanted //System.out.println("qLine wasn't a number"); qInt = 1; } String resFile = HTMLConv.toHTML(IMCServiceRMI.getFortune(imcserver,QUOTE_FILE)); //System.out.println(resFile); StringTokenizer token = new StringTokenizer(resFile, "#", false); int counter = 0; String qTextToSend=""; while (token.hasMoreTokens()) { String tmp = token.nextToken(); /* the qengine does not suplie us with the correct number so we dont use this codsnippet at the moment, instead we compare the whoole quot-text counter = counter +1; if ((counter/3) == qInt) { qText = tmp; break; } */ //System.out.println(qText); //System.out.println(tmp); if (qText.equals(tmp)) { qTextToSend = tmp; break; } } qTextToSend = HTMLConv.toHTML(qTextToSend); //ok now we have the quot in the string qLine //System.out.println("jippi: "+qTextToSend); //lets get the info we need String friendName = req.getParameter("mailText0"); String friendEmail = req.getParameter("mailTo"); String senderName = req.getParameter("mailText1"); String senderMessage = req.getParameter("mailText2"); String imageNr = req.getParameter("vykort"); //lets get the image url from db (we need serverObj, metaId and imageId to do it) RmiLayer rmi = new RmiLayer(user) ; String sqlStr = "Select imgurl from images where meta_id='"+metaId+"' and name='"+imageNr+"'"; String imageUrl = rmi.execSqlQueryStr(imcserver, sqlStr ) ; if (imageUrl == null) { imageUrl = " "; }else { imageUrl = "/imcms/images/"+imageUrl; } //System.out.println(imageUrl); //create the taggs to parse Vector vect = new Vector(); vect.add("#imageUrl#"); vect.add(imageUrl); vect.add("#citat#"); vect.add(qTextToSend); vect.add("#cont1#"); vect.add(friendName); vect.add("#cont3#"); vect.add(senderName); vect.add("#cont4#"); vect.add(HTMLConv.toHTMLSpecial(senderMessage)); //ok nu ska vi parsa skiten med ett mall skrlle File pcTemplate = new File(templateLib, HTML_TEMPLATE); String html = IMCServiceRMI.parseDoc( imcserver,getTemplate(pcTemplate) , vect); ; //lets get the name to use on the file String pcFileName = (String) session.getAttribute("pcFileName"); //System.out.println("pcFileName: "+pcFileName); if (pcFileName == null) { //lets get the first part of the name GregorianCalendar cal = new GregorianCalendar(); Date currentTime = cal.getTime(); SimpleDateFormat formatter = new SimpleDateFormat ("yyMMdd"); String dateString = formatter.format(currentTime); //ok now lets get the second part (the counter) File counterFile = new File(templateLib, "postcardCounter.count"); //System.out.println(counterFile.getPath()) ; PostcardCounter count; try{ ObjectInputStream in = new ObjectInputStream(new FileInputStream(counterFile)); count =(PostcardCounter)in.readObject(); in.close(); }catch(Exception e) { //there wasnt any counter so lets create one count = new PostcardCounter(); } count.increment(); int postcardNr = count.getNumber(); //lets save the counterObj try { ObjectOutputStream out= new ObjectOutputStream(new FileOutputStream(counterFile)); out.writeObject(count); out.close(); } catch(IOException ioe) { log("Obs! Save couter failed."); log(ioe.getMessage()); } //lets setup the new name pcFileName = dateString +"_"+ postcardNr +".html"; session.setAttribute("pcFileName", pcFileName); //System.out.println("pcFileName: "+pcFileName) ; } //ok lets save the bottom frame page, incase it has been removed //by some stupid sysAdmin File bottom = new File( templateLib, POSTCARD_BOTTOM); String bottomString = IMCServiceRMI.parseDoc( imcserver,getTemplate(bottom) , new Vector()); File imagePathFile = new File(imcode.util.Utility.getDomainPref("image_path",host)); File postcardFolder = new File(imagePathFile.getParent(),POSTCARD_FOLDER); File bottomFile = new File(postcardFolder,"bottom.html"); FileWriter writ = new FileWriter(bottomFile); BufferedWriter buff = new BufferedWriter( writ ); buff.write(bottomString,0,bottomString.length()); buff.flush(); buff.close(); //ok lets save the postcardfile File postcardFile = new File(postcardFolder,pcFileName); BufferedWriter fileW = new BufferedWriter( new FileWriter(postcardFile) ); fileW.write(html,0,html.length()); fileW.flush(); fileW.close(); //ok nu r det sparat s nu skickar vi skiten till servern fr granskning File frameSet = new File( templateLib, POSTCARD_SET); VariableManager vm = new VariableManager(); vm.addProperty("postcard","/imcms/postcards/"+pcFileName); vm.addProperty("bottom","/imcms/postcards/bottom.html"); HtmlGenerator htmlObj = new HtmlGenerator(templateLib, POSTCARD_SET) ; String frameSetHtml = htmlObj.createHtmlString(vm,req) ; //log("Before sendToBrowser: ") ; //lets send the prevPage to the user htmlObj.sendToBrowser(req, res, frameSetHtml); //now we can set up every thing we need to create the mail //sendMailWait( sender, mailTo, mailSubject , mailBody ); String[] mailArr = new String[4]; mailArr[0] = sysData.getWebMasterAddress(); mailArr[1] = friendEmail; //ok lets parse the mailSubject line File mailSubject = new File( templateLib, POSTCARD_MAIL_SUBJECT); vect.add("#mailSubject#"); vect.add(senderName); mailArr[2] = IMCServiceRMI.parseDoc( imcserver,getTemplate(mailSubject) , vect); //lets parse the mailBody File mailBody = new File( templateLib, POSTCARD_MAIL_BODY); vect.add("#mailText0#"); vect.add(friendName); vect.add("#mailText1#"); vect.add(senderName); vect.add("#mailText2#"); vect.add("http://"+host); vect.add("#mailText3#"); vect.add(pcFileName); mailArr[3] = IMCServiceRMI.parseDoc( imcserver,getTemplate(mailBody) , vect); session.setAttribute("postcardMail",mailArr) ; return; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/41b78d99dc0768e5e5cc68919a007bf29a6f6c8b/PostcardServlet.java/clean/servlets/PostcardServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 2896, 3349, 12, 2940, 18572, 3658, 16, 2940, 4745, 607, 500, 550, 281, 13, 15069, 4745, 503, 16, 14106, 202, 95, 202, 759, 76, 5453, 79, 842, 23338, 351, 352, 454, 728, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 2896, 3349, 12, 2940, 18572, 3658, 16, 2940, 4745, 607, 500, 550, 281, 13, 15069, 4745, 503, 16, 14106, 202, 95, 202, 759, 76, 5453, 79, 842, 23338, 351, 352, 454, 728, ...
Tracing .printTrace("OPERATIONHISTORY", "ABOUT_TO_UNDO " + operation);
Tracing.printTrace("OPERATIONHISTORY", "ABOUT_TO_UNDO " + operation);
private void notifyAboutToUndo(IUndoableOperation operation) { if (DEBUG_OPERATION_HISTORY_NOTIFICATION) { Tracing .printTrace("OPERATIONHISTORY", "ABOUT_TO_UNDO " //$NON-NLS-1$ //$NON-NLS-2$ + operation); } notifyListeners(new OperationHistoryEvent( OperationHistoryEvent.ABOUT_TO_UNDO, this, operation)); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8a31c2da4967a41abe7c28bd673ee18ec4e064e2/DefaultOperationHistory.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5066, 24813, 774, 31224, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 430, 261, 9394, 67, 22040, 67, 31746, 67, 4400, 14865, 13, 288, 1082, 202, 3403, 6862, 202, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5066, 24813, 774, 31224, 12, 45, 31224, 429, 2988, 1674, 13, 288, 202, 202, 430, 261, 9394, 67, 22040, 67, 31746, 67, 4400, 14865, 13, 288, 1082, 202, 3403, 6862, 202, 1...
int priority1 = -1; try { priority1 = Integer.parseInt(Util.getProperty(name, (IMarker) obj1)); } catch (NumberFormatException e) { } int priority2 = -1; try { priority2 = Integer.parseInt(Util.getProperty(name, (IMarker) obj2)); } catch (NumberFormatException e) { }
int priority1 = ((TaskMarker)obj1).getPriority(); int priority2 = ((TaskMarker)obj2).getPriority();
public int compare(Object obj1, Object obj2) { if (obj1 == null || obj2 == null || !(obj1 instanceof IMarker) || !(obj2 instanceof IMarker)) { return 0; } int priority1 = -1; try { priority1 = Integer.parseInt(Util.getProperty(name, (IMarker) obj1)); } catch (NumberFormatException e) { } int priority2 = -1; try { priority2 = Integer.parseInt(Util.getProperty(name, (IMarker) obj2)); } catch (NumberFormatException e) { } return priority1 - priority2; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ea57ee1b804071939d5791d4c2986826074efe0c/FieldPriority.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldPriority.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 3400, 12, 921, 1081, 21, 16, 1033, 1081, 22, 13, 288, 202, 202, 430, 261, 2603, 21, 422, 446, 747, 1081, 22, 422, 446, 747, 401, 12, 2603, 21, 1276, 467, 7078, 13, 74...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 3400, 12, 921, 1081, 21, 16, 1033, 1081, 22, 13, 288, 202, 202, 430, 261, 2603, 21, 422, 446, 747, 1081, 22, 422, 446, 747, 401, 12, 2603, 21, 1276, 467, 7078, 13, 74...
throw new SelectionNodeFound(binding);
throw new SelectionNodeFound(this, binding);
protected TypeBinding getTypeBinding(Scope scope) { // it can be a package, type or member type Binding binding = scope.getTypeOrPackage(tokens); if (!binding.isValidBinding()) { // tolerate some error cases if (binding.problemId() == ProblemReasons.NotVisible){ throw new SelectionNodeFound(binding); } scope.problemReporter().invalidType(this, (TypeBinding) binding); throw new SelectionNodeFound(); } throw new SelectionNodeFound(binding);}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/8d68e00ba785472efc36cd0f68660beb95ca71eb/SelectionOnQualifiedTypeReference.java/buggy/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionOnQualifiedTypeReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 1412, 5250, 3130, 5250, 12, 3876, 2146, 13, 288, 202, 759, 518, 848, 506, 279, 2181, 16, 618, 578, 3140, 618, 202, 5250, 5085, 273, 2146, 18, 588, 559, 1162, 2261, 12, 7860, 1769, 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, 4750, 1412, 5250, 3130, 5250, 12, 3876, 2146, 13, 288, 202, 759, 518, 848, 506, 279, 2181, 16, 618, 578, 3140, 618, 202, 5250, 5085, 273, 2146, 18, 588, 559, 1162, 2261, 12, 7860, 1769, 202,...
public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException { if (configurableListableBeanFactory.containsBean(sessionFactoryBeanName)) { BeanDefinition sessionFactoryBeanDefinition = configurableListableBeanFactory.getBeanDefinition(sessionFactoryBeanName); MutablePropertyValues propertyValues = sessionFactoryBeanDefinition.getPropertyValues(); if (mappingResources != null) { //do we have existing resourses? PropertyValue propertyValue = propertyValues.getPropertyValue("mappingResources"); if (propertyValue == null) { //add one propertyValue = new PropertyValue("mappingResources", new ArrayList()); propertyValues.addPropertyValue(propertyValue); } //value is expected to be a list. List existingMappingResources = (List) propertyValue.getValue(); existingMappingResources.addAll(mappingResources); } if (annotatedClasses != null) { //do we have existing resourses? PropertyValue propertyValue = propertyValues.getPropertyValue("annotatedClasses"); if (propertyValue == null) { //add one propertyValue = new PropertyValue("annotatedClasses", new ArrayList()); propertyValues.addPropertyValue(propertyValue); } //value is expected to be a list. List existingMappingResources = (List) propertyValue.getValue(); existingMappingResources.addAll(annotatedClasses); } } else { throw new NoSuchBeanDefinitionException("No bean named [" + sessionFactoryBeanName + "] exists within the bean factory. " + "Cannot post process session factory to add Hibernate resource definitions."); } }
30015 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/30015/35d094a539ffc74b9b7f2cc86b09d6f853433561/HibernateExtensionPostProcessor.java/clean/data/hibernate/src/main/java/org/appfuse/dao/spring/HibernateExtensionPostProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1603, 2227, 3381, 1733, 12, 31660, 682, 429, 3381, 1733, 14593, 682, 429, 3381, 1733, 13, 1216, 4823, 634, 503, 288, 3639, 309, 261, 1425, 7463, 682, 429, 3381, 1733, 18, 12298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1603, 2227, 3381, 1733, 12, 31660, 682, 429, 3381, 1733, 14593, 682, 429, 3381, 1733, 13, 1216, 4823, 634, 503, 288, 3639, 309, 261, 1425, 7463, 682, 429, 3381, 1733, 18, 12298...
throwError(callData.errArg, args.length, true /*xxx?*/, false);
throwError(callData.errArg, args.length, true /*xxx?*/,false);
PyObject make(PyObject[] args) { ReflectedArgs[] argsl = argslist; ReflectedCallData callData = new ReflectedCallData(); Object method=null; // Check for a matching constructor to call int n = nargs; for (int i=0; i<n; i++) { ReflectedArgs rargs = argsl[i]; if (rargs.matches(null, args, Py.NoKeywords, callData)) { method = rargs.data; break; } } // Throw an error if no valid set of arguments if (method == null) { throwError(callData.errArg, args.length, true /*xxx?*/, false); } // Do the actual constructor call Object obj = null; Constructor ctor = (Constructor)method; try { obj = ctor.newInstance(callData.getArgsArray()); } catch (Throwable t) { throw Py.JavaError(t); } return (PyObject)obj; }
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/f1a14fc2e5b8633379ef5db31fa9e36925099543/PyReflectedConstructor.java/buggy/org/python/core/PyReflectedConstructor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4707, 921, 1221, 12, 9413, 921, 8526, 833, 13, 288, 3639, 17906, 329, 2615, 8526, 833, 80, 273, 833, 1098, 31, 13491, 17906, 329, 1477, 751, 745, 751, 273, 394, 17906, 329, 1477, 751, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4707, 921, 1221, 12, 9413, 921, 8526, 833, 13, 288, 3639, 17906, 329, 2615, 8526, 833, 80, 273, 833, 1098, 31, 13491, 17906, 329, 1477, 751, 745, 751, 273, 394, 17906, 329, 1477, 751, 5...
super();
public BoardEditor() { super(); try { bv = new BoardView1(game, frame); } catch (IOException e) { JOptionPane.showMessageDialog(frame, Messages.getString("BoardEditor.CouldntInitialize") + e, Messages.getString("BoardEditor.FatalError"), JOptionPane.ERROR_MESSAGE); //$NON-NLS-1$ //$NON-NLS-2$ frame.dispose(); } bv.addBoardViewListener(new BoardViewListenerAdapter() { public void hexMoused(BoardViewEvent b) { bv.cursor(b.getCoords()); if ((b.getModifiers() & InputEvent.ALT_MASK) != 0) { setCurrentHex(board.getHex(b.getCoords())); } if ((b.getModifiers() & InputEvent.CTRL_MASK) != 0) { if (!board.getHex(b.getCoords()).equals(curHex)) { paintHex(b.getCoords()); } } } }); bv.setUseLOSTool(false); setupEditorPanel(); setupFrame(); frame.setVisible(true); if (true == GUIPreferences.getInstance().getNagForMapEdReadme()) { String title = Messages.getString("BoardEditor.readme.title"); //$NON-NLS-1$ String body = Messages.getString("BoardEditor.readme.message"); //$NON-NLS-1$ ConfirmDialog confirm = new ConfirmDialog(frame, title, body, true); confirm.setVisible(true); if (!confirm.getShowAgain()) { GUIPreferences.getInstance().setNagForMapEdReadme(false); } if (confirm.getAnswer()) { showHelp(); } } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3e2c07c4b3a334f50ff43404d895908863bcff1e/BoardEditor.java/buggy/megamek/src/megamek/client/ui/swing/BoardEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17980, 1060, 6946, 1435, 288, 9079, 775, 288, 5411, 18021, 273, 394, 17980, 1060, 1767, 21, 12, 13957, 16, 2623, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 804, 1895, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17980, 1060, 6946, 1435, 288, 9079, 775, 288, 5411, 18021, 273, 394, 17980, 1060, 1767, 21, 12, 13957, 16, 2623, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 804, 1895, 84...
if (ruby_class == null) {
if (ruby.getRubyClass() == null) {
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { if (node == null) { return getRuby().getNil(); } switch (node.nd_type()) { case NODE_BLOCK: while (node.nd_next() != null) { eval(self, node.nd_head()); node = node.nd_next(); } node = node.nd_head(); break; case NODE_POSTEXE: // rb_f_END(); node.nd_set_type(NODE_NIL); /* exec just once */ return getRuby().getNil(); /* begin .. end without clauses */ case NODE_BEGIN: node = node.nd_body(); break; /* nodes for speed-up(default match) */ case NODE_MATCH: //return rom.rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: //return rom.rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: //VALUE r = eval(node.nd_recv()); //VALUE l = eval(node.nd_value()); //if (r instanceof RubyString) { // return rom.rb_reg_match(l, r); //} else { // return rom.rb_funcall(r, match, 1, l); //} return getRuby().getNil(); /* node for speed-up(top-level loop for -n/-p) */ case NODE_OPT_N: while (true) { try { // while (!rb_gets().isNil() false) { // HACK +++ if (true) { // HACK --- try { eval(self, node.nd_body()); } catch (RedoException rExcptn) { } } break; } catch (NextException nExcptn) { } catch (BreakException bExcptn) { break; } } return getRuby().getNil(); case NODE_SELF: return self; case NODE_NIL: return getRuby().getNil(); case NODE_TRUE: return getRuby().getTrue(); case NODE_FALSE: return getRuby().getFalse(); case NODE_IF: // ruby_sourceline = node.nd_line(); cond = eval(self, node.nd_cond()); if (cond.isTrue()) { node = node.nd_body(); } else { node = node.nd_else(); } break; case NODE_WHEN: while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); }*/ // ruby_sourcefile = tag.nd_file; // ruby_sourceline = tag.nd_line(); if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj = eval(self, tag.nd_head().nd_head()); if (!(obj instanceof RubyArray)) { obj = RubyArray.m_newArray(getRuby(), obj); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { if (((RubyArray)obj).entry(i).isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_CASE: RubyObject obj = eval(self, node.nd_head()); node = node.nd_body(); while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); } ruby_sourcefile = tag->nd_file; ruby_sourceline = nd_line(tag);*/ if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj2 = eval(self, tag.nd_head().nd_head()); if (!(obj2 instanceof RubyArray)) { obj2 = RubyArray.m_newArray(getRuby(), obj2); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { RubyObject eqq = ((RubyArray)obj2).entry(i).funcall(getRuby().intern("==="), obj); if (eqq.isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).funcall(getRuby().intern("==="), obj).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_WHILE: while (eval(self, node.nd_cond()).isTrue()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_UNTIL: while (eval(self, node.nd_cond()).isFalse()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_BLOCK_PASS: //return block_pass(node); return null; case NODE_ITER: case NODE_FOR: rubyBlock.push(node.nd_var(), node.nd_body(), self); rubyIter.push(Iter.ITER_PRE); while (true) { try { if (node.nd_type() == NODE_ITER) { result = eval(self, node.nd_iter()); } else { // String file = // int line = rubyBlock.flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_iter()); endCallArgs(tmpBlock); // = file; // = line; result = recv.getRubyClass().call(recv, ruby.intern("each"), null, 0); } break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } rubyIter.pop(); rubyBlock.pop(); return result; case NODE_BREAK: throw new BreakException(); case NODE_NEXT: throw new NextException(); case NODE_REDO: throw new RedoException(); case NODE_RETRY: throw new RetryException(); case NODE_RESTARGS: result = eval(self, node.nd_head()); if (!(result instanceof RubyArray)) { result = obj = RubyArray.m_newArray(getRuby(), result); } return result; case NODE_YIELD: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); if (node.nd_stts().nd_type() == NODE_RESTARGS && ((RubyArray)result).length() == 1) { result = ((RubyArray)result).entry(0); } } else { result = ruby.getNil(); } return yield0(result, null, null, false); case NODE_RESCUE:/* retry_entry: { volatile VALUE e_info = ruby_errinfo; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_head); } POP_TAG(); if (state == TAG_RAISE) { NODE * volatile resq = node->nd_resq; ruby_sourceline = nd_line(node); while (resq) { if (handle_rescue(self, resq)) { state = 0; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, resq->nd_body); } POP_TAG(); if (state == TAG_RETRY) { state = 0; ruby_errinfo = Qnil; goto retry_entry; } if (state != TAG_RAISE) { ruby_errinfo = e_info; } break; } resq = resq->nd_head; /* next rescue */ /** } * } * else if (node->nd_else) { /* else clause given *//* if (!state) { /* no exception raised *//* result = rb_eval(self, node->nd_else); } } if (state) JUMP_TAG(state); } break;*/ case NODE_ENSURE:/* PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = eval(node.nd_head()); } POP_TAG(); if (node.nd_ensr()) { VALUE retval = prot_tag->retval; /* save retval *//* VALUE errinfo = ruby_errinfo; rb_eval(self, node->nd_ensr); return_value(retval); ruby_errinfo = errinfo; } if (state) JUMP_TAG(state); break;*/ case NODE_AND: cond = eval(self, node.nd_1st()); if (cond.isFalse()) { return cond; } node = node.nd_2nd(); break; case NODE_OR: cond = eval(self, node.nd_1st()); if (cond.isTrue()) { return cond; } node = node.nd_2nd(); break; case NODE_NOT: return RubyBoolean.m_newBoolean(getRuby(), eval(self, node.nd_1st()).isFalse()); case NODE_DOT2: case NODE_DOT3: result = RubyRange.m_newRange(getRuby(), eval(self, node.nd_beg()), eval(self, node.nd_end()), node.nd_type() == NODE_DOT3); if (node.nd_state() != 0) { return result; } if (node.nd_beg().nd_type() == NODE_LIT && (node.nd_beg().nd_lit() instanceof RubyFixnum) && node.nd_end().nd_type() == NODE_LIT && (node.nd_end().nd_lit() instanceof RubyFixnum)) { node.nd_set_type(NODE_LIT); node.nd_lit(result); } else { node.nd_state(1L); } return result; case NODE_FLIP2: /* like AWK */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { if (eval(self, node.nd_beg()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), eval(self, node.nd_end()).isTrue() ? ruby.getFalse() : ruby.getTrue()); result = ruby.getTrue(); } else { result = ruby.getFalse(); } } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_FLIP3: /* like SED */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { result = eval(self, node.nd_beg()).isTrue() ? ruby.getFalse() : ruby.getTrue(); ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_RETURN: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); } else { result = ruby.getNil(); } throw new ReturnException(result); case NODE_ARGSCAT: return ((RubyArray)eval(self, node.nd_head())).m_concat(eval(self, node.nd_body())); case NODE_ARGSPUSH: return ((RubyArray)eval(self, node.nd_head()).m_dup()).push(eval(self, node.nd_body())); case NODE_CALL: // TMP_PROTECT; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_recv()); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return recv.getRubyClass().call(recv, (RubyId)node.nd_mid(), args, 0); case NODE_FCALL: // TMP_PROTECT; tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return self.getRubyClass().call(self, (RubyId)node.nd_mid(), args, 1); case NODE_VCALL: return self.getRubyClass().call(self, (RubyId)node.nd_mid(), null, 2); case NODE_SUPER: case NODE_ZSUPER: // TMP_PROTECT; if (getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled"); } if (node.nd_type() == NODE_ZSUPER) { List argsList = getRubyFrame().getArgs(); args = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); } else { tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); } rubyIter.push(rubyIter.getIter() != Iter.ITER_NOT ? Iter.ITER_PRE : Iter.ITER_NOT); result = getRubyFrame().getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3); rubyIter.pop(); return result; case NODE_SCOPE: NODE saved_cref = null; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; ruby.getRubyScope().push(); if (node.nd_rval() != null) { saved_cref = ruby_cref; ruby_cref = (NODE)node.nd_rval(); getRubyFrame().setCbase(node.nd_rval()); } if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().getRubyScope().setLocalVars(vars); getRuby().getRubyScope().setLocalTbl(node.nd_tbl()); } else { getRuby().getRubyScope().setLocalVars(null); getRuby().getRubyScope().setLocalTbl(null); } result = eval(self, node.nd_next()); ruby.getRubyScope().pop(); rubyFrame = frame.getTmp(); if (saved_cref != null) { ruby_cref = saved_cref; } return result; case NODE_OP_ASGN1: // TMP_PROTECT; recv = eval(self, node.nd_recv()); NODE rval = node.nd_args().nd_head(); args = setupArgs(self, node.nd_args().nd_next()); ArrayList argsList = new ArrayList(Arrays.asList(args)); argsList.remove(args.length - 1); RubyObject val = recv.funcall(getRuby().intern("[]"), (RubyObject[])argsList.toArray(new RubyObject[argsList.size()])); switch (node.nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, rval); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, rval); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, rval)); } args[args.length - 1] = val; return recv.funcall(getRuby().intern("[]="), args); case NODE_OP_ASGN2: ID id = node.nd_next().nd_vid(); recv = eval(self, node.nd_recv()); val = recv.funcall((RubyId)id, (RubyObject[])null); switch (node.nd_next().nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, node.nd_value()); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, node.nd_value()); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, node.nd_value())); } // HACK +++ val = recv.funcall((RubyId)node.nd_next().nd_aid(), val); // HACK --- return val; case NODE_OP_ASGN_AND: cond = eval(self, node.nd_head()); if (cond.isFalse()) { return cond; } node = node.nd_value(); break; case NODE_OP_ASGN_OR: cond = eval(self, node.nd_head()); if ((node.nd_aid() != null && !self.isInstanceVarDefined((RubyId)node.nd_aid())) || cond.isFalse()) { node = node.nd_value(); break; } return cond; case NODE_MASGN: return massign(self, node, eval(self, node.nd_value()), false); case NODE_LASGN: // if (ruby.ruby_scope.local_vars == null) { // rb_bug("unexpected local variable assignment"); // } result = eval(self, node.nd_value()); getRuby().getRubyScope().setLocalVars(node.nd_cnt(), result); return result; case NODE_DASGN: result = eval(self, node.nd_value()); RubyVarmap.assign(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_DASGN_CURR: result = eval(self, node.nd_value()); RubyVarmap.assignCurrent(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_GASGN: result = eval(self, node.nd_value()); ((RubyGlobalEntry)node.nd_entry()).set(result); return result; case NODE_IASGN: result = eval(self, node.nd_value()); self.setInstanceVar((RubyId)node.nd_vid(), result); return result; case NODE_CDECL: if (ruby_class == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby_class.setConstant((RubyId)node.nd_vid(), result); return result; case NODE_CVDECL: if (ruby_cbase == null) { throw new RubyTypeException("no class/module to define class variable"); } result = eval(self, node.nd_value()); if (ruby_cbase.isSingleton()) { ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().declareClassVar((RubyId)node.nd_vid(), result); return result; } ruby_cbase.declareClassVar((RubyId)node.nd_vid(), result); return result; case NODE_CVASGN: result = eval(self, node.nd_value()); self.getClassVarSingleton().setClassVar((RubyId)node.nd_vid(), result); return result; case NODE_LVAR: //if (getRuby().ruby_scope.local_vars == null) { // rb_bug("unexpected local variable"); // } return (RubyObject)getRuby().getRubyScope().getLocalVars(node.nd_cnt()); case NODE_DVAR: return getDynamicVars().getRef((RubyId)node.nd_vid()); case NODE_GVAR: return ((RubyGlobalEntry)node.nd_entry()).get(); case NODE_IVAR: return self.getInstanceVar((RubyId)node.nd_vid()); case NODE_CONST: return getConstant((NODE)getRubyFrame().getCbase(), (RubyId)node.nd_vid(), self); case NODE_CVAR: /* normal method */ if (ruby_cbase == null) { return self.getRubyClass().getClassVar((RubyId)node.nd_vid()); } if (!ruby_cbase.isSingleton()) { return ruby_cbase.getClassVar((RubyId)node.nd_vid()); } return ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_CVAR2: /* singleton method */ return self.getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_BLOCK_ARG: if (ruby.getRubyScope().getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); // Create Proc object ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); return result; } else { return getRuby().getNil(); } case NODE_COLON2: value = eval(self, node.nd_head()); if (value instanceof RubyModule) { return ((RubyModule)value).getConstant((RubyId)node.nd_mid()); } else { return value.funcall((RubyId)node.nd_mid()); } case NODE_COLON3: return getRuby().getClasses().getObjectClass().getConstant((RubyId)node.nd_mid()); case NODE_NTH_REF: // return rom.rb_reg_nth_match(node.nd_nth(), MATCH_DATA); return null; case NODE_BACK_REF: /*switch ((char)node.nd_nth()) { case '&': return rom.rb_reg_last_match(MATCH_DATA); case '`': return rom.rb_reg_match_pre(MATCH_DATA); case '\'': return rom.rb_reg_match_post(MATCH_DATA); case '+': return rom.rb_reg_match_last(MATCH_DATA); default: rom.rb_bug("unexpected back-ref"); }*/ case NODE_HASH: RubyHash hash = RubyHash.m_newHash(ruby); NODE list = node.nd_head(); while(list != null) { RubyObject key = eval(self, list.nd_head()); list = list.nd_next(); if (list == null) { // HACK +++ throw new RubyArgumentException("odd number list for Hash"); // HACK --- } value = eval(self, list.nd_head()); hash.m_aset(key, value); list = list.nd_next(); } return hash; case NODE_ZARRAY: /* zero length list */ return RubyArray.m_newArray(getRuby()); case NODE_ARRAY: ArrayList ary = new ArrayList(node.nd_alen()); for (; node != null ; node = node.nd_next()) { ary.add(eval(self, node.nd_head())); } return RubyArray.m_newArray(getRuby(), ary); case NODE_STR: return ((RubyObject)node.nd_lit()).m_to_s(); case NODE_DSTR: case NODE_DXSTR: case NODE_DREGX: case NODE_DREGX_ONCE:/* NODE list = node.nd_next(); RubyString str = RubyString.m_newString(getRuby(), (RubyObject)node.nd_lit()); RubyString str2; while (list != null) { if (list.nd_head() != null) { switch (list.nd_head().nd_type()) { case NODE_STR: str2 = (RubyString)list.nd_head().nd_lit(); break; case NODE_EVSTR: result = ruby_errinfo; ruby_errinfo = Qnil; ruby_sourceline = nd_line(node); ruby_in_eval++; list.nd_head(compile(list.nd_head().nd_lit(), ruby_sourcefile,ruby_sourceline)); ruby_eval_tree = 0; ruby_in_eval--; if (ruby_nerrs > 0) { compile_error("string expansion"); } if (!NIL_P(result)) ruby_errinfo = result; /* fall through *//* default: str2 = (RubyString)rom.rb_obj_as_string(eval(list.nd_head())); break; } str.append(str2); str.infectObject(str2); } list = list.nd_next(); } switch (node.nd_type()) { case NODE_DREGX: return rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); case NODE_DREGX_ONCE: /* regexp expand once *//* VALUE result = rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); node.nd_set_type(NODE_LIT); node.nd_lit(result); return result; case NODE_DXSTR: return rom.rb_funcall(this, '`', 1, str); default: return str; }*/ return null; case NODE_XSTR: return self.funcall(getRuby().intern("`"), (RubyObject)node.nd_lit()); case NODE_LIT: return (RubyObject)node.nd_lit(); case NODE_ATTRSET: if (getRubyFrame().getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); case NODE_DEFN: if (node.nd_defn() != null) { int noex; if (ruby_class == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // rom.rb_warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // rom.rb_warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); SearchMethodResult smr = ruby_class.searchMethod((RubyId)node.nd_mid()); NODE body = smr.getBody(); RubyObject origin = smr.getOrigin(); if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } } if (isScope(SCOPE_PRIVATE) || node.nd_mid().equals(ruby.intern("initialize"))) { noex = NOEX_PRIVATE; } else if (isScope(SCOPE_PROTECTED)) { noex = NOEX_PROTECTED; } else if (ruby_class == getRuby().getClasses().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby_class && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby_class.addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (actMethodScope == SCOPE_MODFUNC) { ruby_class.getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby_class.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby_class.isSingleton()) { ruby_class.getInstanceVar("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); } } return getRuby().getNil(); case NODE_DEFS: if (node.nd_defn() != null) { recv = eval(self, node.nd_recv()); if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { throw new RubySecurityException("Insecure; can't define singleton method"); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (recv.isFrozen()) { throw new RubyFrozenException("object"); } rubyClass = recv.getSingletonClass(); NODE body = (NODE)rubyClass.getMethods().get((RubyId)node.nd_mid()); if (body != null) { if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("redefining method prohibited"); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); rubyClass.addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC | (body != null ? body.nd_noex() & NOEX_UNDEF : 0)); // rb_clear_cache_by_id(node.nd_mid()); recv.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } return getRuby().getNil(); case NODE_UNDEF: if (ruby_class == null) { throw new RubyTypeException("no class to undef method"); } ruby_class.undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby_class == null) { throw new RubyTypeException("no class to make alias"); } ruby_class.aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); return getRuby().getNil(); case NODE_VALIAS: RubyGlobalEntry.getGlobalEntry((RubyId)node.nd_old()).alias((RubyId)node.nd_new()); return getRuby().getNil(); case NODE_CLASS: RubyModule superClass; if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } if (node.nd_super() != null) { superClass = getSuperClass(self, node.nd_super()); } else { superClass = null; } rubyClass = null; // if ((ruby_class == getRuby().getObjectClass()) && rb_autoload_defined(node.nd_cname())) { // rb_autoload_load(node.nd_cname()); // } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby_class.getConstant((RubyId)node.nd_cname()); } if (rubyClass != null) { if (!rubyClass.isClass()) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a class"); } if (superClass != null) { RubyModule tmp = rubyClass.getSuperClass(); if (tmp.isSingleton()) { tmp = tmp.getSuperClass(); } while (tmp.isIncluded()) { tmp = tmp.getSuperClass(); } if (tmp != superClass) { superClass = tmp; //goto override_class; if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); // end goto } } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending class prohibited"); } // rb_clear_cache(); } else { //override_class: if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_MODULE: if (ruby_class == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby_class == getRuby().getClasses().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby_class.getConstant((RubyId)node.nd_cname()); } if (module != null) { if (!(module instanceof RubyModule)) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a module"); } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending module prohibited"); } } else { module = getRuby().defineModuleId((RubyId)node.nd_cname()); ruby_class.setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby_class, ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { module.getSingletonClass().includeModule(ruby_wrapper); module.includeModule(ruby_wrapper); } return setupModule(module, node.nd_body()); case NODE_SCLASS: rubyClass = (RubyClass)eval(self, node.nd_recv()); if (rubyClass.isSpecialConst()) { throw new RubyTypeException("no virtual class for " + rubyClass.getRubyClass().toName()); } if (getRuby().getSecurityLevel() >= 4 && !rubyClass.isTaint()) { throw new RubySecurityException("Insecure: can't extend object"); } if (rubyClass.getRubyClass().isSingleton()) { // rb_clear_cache(); } rubyClass = rubyClass.getSingletonClass(); if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_DEFINED: // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; // } case NODE_NEWLINE: // ruby_sourcefile = node.nd_file; // ruby_sourceline = node.nd_nth(); // if (trace_func) { // call_trace_func("line", ruby_sourcefile, ruby_sourceline, self, // ruby_frame.last_func(), // ruby_frame.last_class()); // } node = node.nd_next(); break; default: // rom.rb_bug("unknown node type %d", nd_type(node)); } } }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 921, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 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, 19817, 921, 5302, 12, 54, 10340, 921, 365, 16, 11922, 290, 13, 288, 3639, 11922, 756, 273, 290, 31, 7734, 19817, 921, 6941, 273, 446, 31, 3639, 19817, 921, 8526, 833, 273, 446, 31...
metalist_.add(tmp);
for (int i=0; i<tmp.size(); i++) { metalist_.add(tmp.get(i)); }
public int write(DMDJobList joblist) throws IOException { int count = 0; boolean all = joblist.contains("/") || joblist.contains("/*"); Vector tmp = new Vector(5, 5); // extern and intern joblist elements joblist.add(joblist_); FileReader fr = new FileReader(file_); BufferedReader reader = new BufferedReader(fr); StringBuffer buffer = new StringBuffer(); String s = reader.readLine(); // replace all existing metatags while(s != null && !regex_stop_.search(s)) { if (regex_title_.search(s)) { // search line for the title element if (all || joblist.contains("/title")) { DMDTextNode node = (DMDTextNode)firstDMDNode("/title", metalist_, tmp); if(node != null) { regex_title_.setReplaceRule("<title>" + node.get() + "</title>"); buffer.append(regex_title_.replaceFirst(s)); buffer.append("\n"); } count++; } } // search line for a meta element else if (regex_meta_.search(s)) { String name = regex_meta_.stringMatched(1).toLowerCase(); if(all || joblist.contains("/" + name )) { DMDTextNode node = (DMDTextNode)firstDMDNode("/" + name, metalist_, tmp); if(node != null) { regex_title_.setReplaceRule("<meta name=\"" + name + "\" content=\"" + node.get() + "\">"); buffer.append(regex_title_.replaceFirst(s)); buffer.append("\n"); } count++; } } else // found no metatag { buffer.append(s); buffer.append("\n"); } s = reader.readLine(); } // append metatags to the header DMDTextNode node = (DMDTextNode)firstDMDNode("/", metalist_, tmp); while(node != null) { String name = node.getName(); if(name.equals("title")) { if (all || joblist.contains("/title")) { buffer.append("<title>"+ node.get() +"</title>"); buffer.append("\n"); count++; } } else { if (all || joblist.contains("/" + name)) { buffer.append("<meta name=\"" + name + "\" content=\"" + node.get() + "\">"); buffer.append("\n"); count++; } } node = (DMDTextNode)firstDMDNode("/", metalist_, tmp); } // restore metadatalist metalist_.add(tmp); // read complete file while(s != null) { buffer.append(s); buffer.append("\n"); s = reader.readLine(); } reader.close(); fr.close(); // write complete file FileWriter fw = new FileWriter(file_); BufferedWriter writer = new BufferedWriter(fw); writer.write(buffer.toString()); writer.close(); fw.close(); return count; }
10978 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10978/a5c26b9c49b04b81e75a1993886c63b6586916c0/HTMLFileStore.java/clean/dinomeda/src/org/dinopolis/util/metadata/dinomeda/HTMLFileStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1045, 12, 40, 6188, 2278, 682, 1719, 1098, 13, 1216, 1860, 282, 288, 565, 509, 1056, 273, 374, 31, 565, 1250, 777, 273, 1719, 1098, 18, 12298, 2932, 4898, 13, 747, 1719, 1098...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1045, 12, 40, 6188, 2278, 682, 1719, 1098, 13, 1216, 1860, 282, 288, 565, 509, 1056, 273, 374, 31, 565, 1250, 777, 273, 1719, 1098, 18, 12298, 2932, 4898, 13, 747, 1719, 1098...