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
boolean logical = getBooleanArg(evaluator, args, 0); return getStringArg(evaluator, args, logical ? 1 : 2, null); }
return periodsToDate( evaluator, evaluator.getCube().getYearLevel(), getMemberArg(evaluator, args, 0, false)); }
public Object evaluate(Evaluator evaluator, Exp[] args) { boolean logical = getBooleanArg(evaluator, args, 0); return getStringArg(evaluator, args, logical ? 1 : 2, null); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/d30fc76ba1dd95b09e0c26541bfae317c6bef4e1/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 9506, 202, 6494, 6374, 273, 12835, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 9506, 202, 2463, 4997, 4117, 12, 14168, 639, 16, 833, 16, 6374, 692, 404, 294, 576, 16, 446, 1769, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 9506, 202, 6494, 6374, 273, 12835, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 9506, 202, 2463, 4997, 4117, 12, 14168, 639, 16, 833, 16, 6374, 692, 404, 294, 576, 16, 446, 1769, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
+"Lorg/mozilla/javascript/ContextFactory;"
private static void generateMethod(ClassFileWriter cfw, String genName, String methodName, Class[] parms, Class returnType) { StringBuffer sb = new StringBuffer(); int firstLocal = appendMethodSignature(parms, returnType, sb); String methodSignature = sb.toString(); cfw.startMethod(methodName, methodSignature, ClassFileWriter.ACC_PUBLIC); int DELEGEE = firstLocal; int FUNCTION = firstLocal + 1; int LOCALS_END = firstLocal + 2; cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, genName, "delegee", "Lorg/mozilla/javascript/Scriptable;"); cfw.add(ByteCode.DUP); cfw.addAStore(DELEGEE); cfw.addPush(methodName); cfw.addInvoke(ByteCode.INVOKESTATIC, "org/mozilla/javascript/JavaAdapter", "getFunction", "(Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;" +")Lorg/mozilla/javascript/Function;"); cfw.add(ByteCode.DUP); cfw.addAStore(FUNCTION); // Prepare stack to call calMethod // push scope cfw.addALoad(DELEGEE); // push thisObj cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, genName, "self", "Lorg/mozilla/javascript/Scriptable;"); // push function cfw.addALoad(FUNCTION); // push arguments generatePushWrappedArgs(cfw, parms, parms.length); // push bits to indicate which parameters should be wrapped if (parms.length > 64) { // If it will be an issue, then passing a static boolean array // can be an option, but for now using simple bitmask throw Context.reportRuntimeError0( "JavaAdapter can not subclass methods with more then" +" 64 arguments."); } long convertionMask = 0; for (int i = 0; i != parms.length; ++i) { if (!parms[i].isPrimitive()) { convertionMask |= (1 << i); } } cfw.addPush(convertionMask); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, genName, "contextFactory", "Lorg/mozilla/javascript/ContextFactory;"); // go through utility method, which creates a Context to run the // method in. cfw.addInvoke(ByteCode.INVOKESTATIC, "org/mozilla/javascript/JavaAdapter", "callMethod", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Function;" +"[Ljava/lang/Object;" +"J" +"Lorg/mozilla/javascript/ContextFactory;" +")Ljava/lang/Object;"); generateReturnResult(cfw, returnType); cfw.stopMethod((short)LOCALS_END); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/82fc688a4bf1d50088f3ce8c1ce8d1c14a325a2d/JavaAdapter.java/clean/js/rhino/src/org/mozilla/javascript/JavaAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 2103, 1305, 12, 797, 812, 2289, 6080, 91, 16, 514, 3157, 461, 16, 4766, 4202, 514, 4918, 16, 1659, 8526, 17902, 16, 4766, 4202, 1659, 9424, 13, 565, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 509, 1122, 2042, 273, 714, 1305, 5374, 12, 29927, 16, 9424, 16, 2393, 1769, 3639, 514, 707, 5374, 273, 2393, 18, 10492, 5621, 3639, 6080, 91, 18, 1937, 1305, 12, 2039, 461, 16, 707, 5374, 16, 13491, 30614, 2289, 18, 31414, 67, 14939, 1769, 3639, 509, 2030, 900, 7113, 41, 273, 1122, 2042, 31, 3639, 509, 13690, 273, 1122, 2042, 397, 404, 31, 3639, 509, 15234, 55, 67, 4415, 273, 1122, 2042, 397, 576, 31, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 3264, 6776, 16, 3157, 461, 16, 315, 3771, 73, 908, 73, 3113, 7734, 315, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 1769, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 30387, 1769, 3639, 6080, 91, 18, 1289, 37, 2257, 12, 1639, 900, 7113, 41, 1769, 3639, 6080, 91, 18, 1289, 7621, 12, 2039, 461, 1769, 3639, 6080, 91, 18, 1289, 10969, 12, 3216, 1085, 18, 706, 17691, 11027, 11781, 16, 8227, 315, 3341, 19, 8683, 15990, 19, 11242, 19, 5852, 4216, 3113, 8227, 315, 588, 2083, 3113, 8227, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 8227, 397, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 1305, 12, 797, 812, 2289, 6080, 91, 16, 514, 3157, 461, 16, 4766, 4202, 514, 4918, 16, 1659, 8526, 17902, 16, 4766, 4202, 1659, 9424, 13, 565, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 509, 1122, 2042, 273, 714, 1305, 5374, 12, 29927, 16, 9424, 16, 2393, 1769, 3639, 514, 707, 5374, 273, 2393, 18, 10492, 5621, 3639, 6080, 91, 18, 1937, 1305, 12, 2039, 461, 16, 707, 5374, 16, 13491, 30614, 2289, 18, 31414, 67, 14939, 1769, 3639, 509, 2030, 900, 7113, 41, 273, 1122, 2042, 31, 3639, 509, 13690, 273, 1122, 2042, 397, 404, 31, 3639, 509, 15234, 55, 67, 4415, 273, 1122, 2042, 397, 576, 31, 3639, 6080, 91, 2 ]
}
public void setSelected(boolean b) { if (isSelected() != b) { if (buttonGroup != null) buttonGroup.setSelected(this, b); super.setSelected(b); } }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/4efc2c1de2dc5778c7955ee5450dc3d75ebdc536/SAbstractButton.java/clean/wings2/src/java/org/wings/SAbstractButton.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 289, 289, 289, 289, 1071, 97, 918, 97, 23006, 12, 6494, 97, 324, 16869, 2618, 289, 289, 289, 289, 289, 289, 289, 309, 97, 261, 291, 7416, 17767, 480, 97, 324, 16869, 2618, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 309, 97, 261, 5391, 1114, 97, 480, 97, 446, 16869, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 3568, 1114, 18, 542, 7416, 12, 2211, 29531, 324, 1769, 97, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 2240, 18, 542, 7416, 12, 70, 1769, 97, 289, 289, 289, 289, 289, 289, 289, 10523, 289, 289, 289, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 289, 289, 289, 289, 1071, 97, 918, 97, 23006, 12, 6494, 97, 324, 16869, 2618, 289, 289, 289, 289, 289, 289, 289, 309, 97, 261, 291, 7416, 17767, 480, 97, 324, 16869, 2618, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 309, 97, 261, 5391, 1114, 97, 480, 97, 446, 16869, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 3568, 1114, 18, 542, 7416, 12, 2211, 29531, 324, 1769, 97, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 2240, 18, 542, 7416, 12, 70, 1769, 97, 289, 289, 289, 289, 289, 289, 289, 10523, 289, 289, 289, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.err.println(message + " - " + ioe.getMessage());
public static void unzipFileToLocation(String zipFilePath, String toDirName) throws IOException { ZipFile zipFile; Enumeration enumr; boolean isEmptyFile = false; try { zipFile = new ZipFile(zipFilePath); if (zipFile.size() == 0) { isEmptyFile = true; } else { String infoMessage = "Unzipping file: " + zipFilePath; LOG.info(infoMessage); System.out.println(infoMessage); enumr = zipFile.entries(); while (enumr.hasMoreElements()) { ZipEntry target = (ZipEntry) enumr.nextElement(); String message = "Exploding: " + target.getName(); LOG.debug(message); System.out.println(message); saveItem(zipFile, toDirName, target); } zipFile.close(); } } catch (FileNotFoundException fnfe) { String message = "Could not find zip file" + zipFilePath; LOG.error(message, fnfe); System.err.println(message + " - " + fnfe.getMessage()); throw new RuntimeException(message, fnfe); } catch (ZipException ze) { String message = "Zip error occured while unzipping file " + zipFilePath; LOG.error(message, ze); System.err.println(message + " - " + ze.getMessage()); throw new RuntimeException(message, ze); } catch (IOException ioe) { String message = "Error occured while unzipping file " + zipFilePath; LOG.error(message, ioe); System.err.println(message + " - " + ioe.getMessage()); throw new RuntimeException(message, ioe); } if (isEmptyFile) { String message = "Zip file has no entries: " + zipFilePath; LOG.warn(message); System.err.println(message); throw new IOException(message); } String infoMessage = "Unzip complete"; LOG.info(infoMessage); System.out.println(infoMessage); }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/2c85e0021203d96ece16c5bbfb40ebb70caeeb07/ZipUtil.java/buggy/contrib/distributed/src/net/sourceforge/cruisecontrol/distributed/util/ZipUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 20259, 812, 774, 2735, 12, 780, 3144, 5598, 16, 514, 358, 28780, 13, 1216, 1860, 288, 3639, 18364, 19450, 31, 3639, 13864, 2792, 86, 31, 3639, 1250, 2709, 812, 273, 629, 31, 3639, 775, 288, 5411, 19450, 273, 394, 18364, 12, 4450, 5598, 1769, 5411, 309, 261, 4450, 812, 18, 1467, 1435, 422, 374, 13, 288, 7734, 2709, 812, 273, 638, 31, 5411, 289, 469, 288, 7734, 514, 1123, 1079, 273, 315, 984, 4450, 1382, 585, 30, 315, 397, 3144, 5598, 31, 7734, 2018, 18, 1376, 12, 1376, 1079, 1769, 7734, 2332, 18, 659, 18, 8222, 12, 1376, 1079, 1769, 7734, 2792, 86, 273, 19450, 18, 8219, 5621, 7734, 1323, 261, 7924, 86, 18, 5332, 7417, 3471, 10756, 288, 10792, 23652, 1018, 273, 261, 9141, 1622, 13, 2792, 86, 18, 4285, 1046, 5621, 10792, 514, 883, 273, 315, 424, 412, 4751, 30, 315, 397, 1018, 18, 17994, 5621, 10792, 2018, 18, 4148, 12, 2150, 1769, 10792, 2332, 18, 659, 18, 8222, 12, 2150, 1769, 10792, 1923, 1180, 12, 4450, 812, 16, 358, 28780, 16, 1018, 1769, 7734, 289, 7734, 19450, 18, 4412, 5621, 5411, 289, 3639, 289, 1044, 261, 812, 3990, 2295, 3030, 13, 288, 5411, 514, 883, 273, 315, 4445, 486, 1104, 3144, 585, 6, 397, 3144, 5598, 31, 5411, 2018, 18, 1636, 12, 2150, 16, 2295, 3030, 1769, 5411, 2332, 18, 370, 18, 8222, 12, 2150, 397, 315, 300, 315, 397, 2295, 3030, 18, 24906, 10663, 5411, 604, 394, 3235, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 20259, 812, 774, 2735, 12, 780, 3144, 5598, 16, 514, 358, 28780, 13, 1216, 1860, 288, 3639, 18364, 19450, 31, 3639, 13864, 2792, 86, 31, 3639, 1250, 2709, 812, 273, 629, 31, 3639, 775, 288, 5411, 19450, 273, 394, 18364, 12, 4450, 5598, 1769, 5411, 309, 261, 4450, 812, 18, 1467, 1435, 422, 374, 13, 288, 7734, 2709, 812, 273, 638, 31, 5411, 289, 469, 288, 7734, 514, 1123, 1079, 273, 315, 984, 4450, 1382, 585, 30, 315, 397, 3144, 5598, 31, 7734, 2018, 18, 1376, 12, 1376, 1079, 1769, 7734, 2332, 18, 659, 18, 8222, 12, 1376, 1079, 1769, 7734, 2792, 86, 273, 19450, 18, 8219, 5621, 7734, 1323, 261, 7924, 86, 18, 5332, 2 ]
int firstSlash = path.indexOf('/'); int secondSlash = path.indexOf('/', firstSlash + 1); if (secondSlash != -1)
path = path.substring(1); try
protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { String handle = null; String extraPathInfo = null; DSpaceObject dso = null; // Original path info, of the form "1721.x/1234" // or "1721.x/1234/extra/stuff" // substring(1) is to remove initial '/' String path = request.getPathInfo().substring(1); try { // Extract the Handle int firstSlash = path.indexOf('/'); int secondSlash = path.indexOf('/', firstSlash + 1); if (secondSlash != -1) { // We have extra path info handle = path.substring(0, secondSlash); extraPathInfo = path.substring(secondSlash); } else { // The path is just the Handle handle = path; } } catch (NumberFormatException nfe) { // Leave handle as null } // Find out what the handle relates to if (handle != null) { dso = HandleManager.resolveToObject(context, handle); } if (dso == null) { log.info(LogManager.getHeader(context, "invalid_id", "path=" + path)); JSPManager.showInvalidIDError(request, response, path, -1); return; } // OK, we have a valid Handle. What is it? if (dso.getType() == Constants.ITEM) { // Display the item page displayItem(context, request, response, (Item) dso, handle); } else if (dso.getType() == Constants.COLLECTION) { Collection c = (Collection) dso; // Store collection location in request request.setAttribute("dspace.collection", c); /* * Find the "parent" community the collection, mainly for * "breadcrumbs" * FIXME: At the moment, just grab the first community the * collection is in. This should probably be more context sensitive * when we have multiple inclusion. */ Community[] parents = c.getCommunities(); request.setAttribute("dspace.community", parents[0]); // home page, or forward to another page? if (extraPathInfo == null) { collectionHome(context, request, response, parents[0], c); } else { // Forward to another servlet request.getRequestDispatcher(extraPathInfo).forward( request, response); } } else if (dso.getType() == Constants.COMMUNITY) { Community c = (Community) dso; // Store collection location in request request.setAttribute("dspace.community", c); // home page, or forward to another page? if (extraPathInfo == null) { communityHome(context, request, response, c); } else { // Forward to another servlet request.getRequestDispatcher(extraPathInfo).forward( request, response); } } else { // Shouldn't happen. Log and treat as invalid ID log.info(LogManager.getHeader(context, "Handle not an item, collection or community", "handle=" + handle)); JSPManager.showInvalidIDError(request, response, path, -1); return; } }
52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/8161e4eb2d4e9de64ace1a5ea90510e5f1aa7424/HandleServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/HandleServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 3948, 967, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 514, 1640, 273, 446, 31, 3639, 514, 2870, 743, 966, 273, 446, 31, 7734, 463, 3819, 921, 302, 2048, 273, 446, 31, 3639, 368, 19225, 589, 1123, 16, 434, 326, 646, 315, 4033, 5340, 18, 92, 19, 28462, 6, 3639, 368, 578, 315, 4033, 5340, 18, 92, 19, 28462, 19, 7763, 19, 334, 3809, 6, 3639, 368, 3019, 12, 21, 13, 353, 358, 1206, 2172, 2023, 3639, 514, 589, 273, 590, 18, 588, 743, 966, 7675, 28023, 12, 21, 1769, 7734, 775, 3639, 288, 5411, 368, 8152, 326, 5004, 5411, 509, 1122, 11033, 273, 589, 18, 31806, 2668, 2473, 1769, 5411, 509, 2205, 11033, 273, 589, 18, 31806, 2668, 19, 2187, 1122, 11033, 397, 404, 1769, 13491, 309, 261, 8538, 11033, 480, 300, 21, 13, 5411, 288, 7734, 368, 1660, 1240, 2870, 589, 1123, 7734, 1640, 273, 589, 18, 28023, 12, 20, 16, 2205, 11033, 1769, 7734, 2870, 743, 966, 273, 589, 18, 28023, 12, 8538, 11033, 1769, 5411, 289, 5411, 469, 5411, 288, 7734, 368, 1021, 589, 353, 2537, 326, 5004, 7734, 1640, 273, 589, 31, 5411, 289, 3639, 289, 3639, 1044, 261, 1854, 9291, 25386, 13, 3639, 288, 5411, 368, 21131, 1640, 487, 446, 3639, 289, 7734, 368, 4163, 596, 4121, 326, 1640, 1279, 815, 358, 3639, 309, 261, 4110, 480, 446, 13, 3639, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3948, 967, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 514, 1640, 273, 446, 31, 3639, 514, 2870, 743, 966, 273, 446, 31, 7734, 463, 3819, 921, 302, 2048, 273, 446, 31, 3639, 368, 19225, 589, 1123, 16, 434, 326, 646, 315, 4033, 5340, 18, 92, 19, 28462, 6, 3639, 368, 578, 315, 4033, 5340, 18, 92, 19, 28462, 19, 7763, 19, 334, 3809, 6, 3639, 368, 3019, 12, 21, 13, 353, 358, 1206, 2172, 2023, 3639, 514, 589, 273, 590, 18, 588, 743, 966, 7675, 28023, 12, 21, 1769, 7734, 775, 3639, 288, 5411, 368, 8152, 326, 2 ]
fNamespacesEnabled = flag; }
fNamespacesEnabled = flag; }
public void setNamespacesEnabled(boolean flag) { fNamespacesEnabled = flag; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/f2b9ad84920b2015a53c9a67b4dfb5460fa0465e/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 13180, 1526, 12, 6494, 2982, 13, 288, 3639, 284, 13180, 1526, 273, 2982, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 13180, 1526, 12, 6494, 2982, 13, 288, 3639, 284, 13180, 1526, 273, 2982, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
/* * (non-Javadoc) * * @see org.eclipse.ui.progress.WorkbenchJob#performDone(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void performDone(IJobChangeEvent event) { if (!pendingUpdate.isEmpty()) decorated(); }
private WorkbenchJob getUpdateJob() { WorkbenchJob job = new WorkbenchJob(WorkbenchMessages .getString("DecorationScheduler.UpdateJobName")) {//$NON-NLS-1$ public IStatus runInUIThread(IProgressMonitor monitor) { if(shutdown)//Cancelled on shutdown return Status.CANCEL_STATUS; //Check again in case someone has already cleared it out. synchronized (resultLock) { if (pendingUpdate.isEmpty()) return Status.OK_STATUS; //Get the elements awaiting update and then //clear the list Object[] elements = pendingUpdate .toArray(new Object[pendingUpdate.size()]); monitor .beginTask( WorkbenchMessages .getString("DecorationScheduler.UpdatingTask"), elements.length + 20); //$NON-NLS-1$ pendingUpdate.clear(); monitor.worked(15); decoratorManager .fireListeners(new LabelProviderChangedEvent( decoratorManager, elements)); monitor.worked(elements.length); //Other decoration requests may have occured due to //updates. Only clear the results if there are none // pending. if (awaitingDecoration.isEmpty()) resultCache.clear(); monitor.worked(5); monitor.done(); } return Status.OK_STATUS; } /* * (non-Javadoc) * * @see org.eclipse.ui.progress.WorkbenchJob#performDone(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void performDone(IJobChangeEvent event) { if (!pendingUpdate.isEmpty()) decorated(); } /* (non-Javadoc) * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ public boolean belongsTo(Object family) { return DecoratorManager.FAMILY_DECORATE == family; } }; job.setSystem(true); return job; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e8a7a643bb08dc966b470c43d0eb2c1333b38247/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 4147, 22144, 2278, 23866, 2278, 1435, 288, 202, 202, 2421, 22144, 2278, 1719, 273, 394, 4147, 22144, 2278, 12, 2421, 22144, 5058, 9506, 202, 18, 588, 780, 2932, 7859, 367, 11870, 18, 1891, 29425, 6, 3719, 288, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 6862, 9506, 202, 430, 12, 15132, 13, 759, 21890, 603, 5731, 6862, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 6862, 9506, 202, 759, 1564, 3382, 316, 648, 18626, 711, 1818, 16054, 518, 596, 18, 9506, 202, 22043, 261, 2088, 2531, 13, 288, 6862, 202, 430, 261, 9561, 1891, 18, 291, 1921, 10756, 25083, 202, 2463, 2685, 18, 3141, 67, 8608, 31, 6862, 202, 759, 967, 326, 2186, 4273, 310, 1089, 471, 1508, 6862, 202, 759, 8507, 326, 666, 6862, 202, 921, 8526, 2186, 273, 4634, 1891, 6862, 1082, 202, 18, 31447, 12, 2704, 1033, 63, 9561, 1891, 18, 1467, 1435, 19226, 6862, 202, 10259, 6862, 1082, 202, 18, 10086, 2174, 12, 6862, 6862, 202, 2421, 22144, 5058, 6862, 6862, 1082, 202, 18, 588, 780, 2932, 7859, 367, 11870, 18, 17858, 2174, 6, 3631, 2186, 18, 2469, 397, 4200, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 9561, 1891, 18, 8507, 5621, 6862, 202, 10259, 18, 1252, 329, 12, 3600, 1769, 6862, 202, 19142, 1318, 6862, 1082, 202, 18, 12179, 5583, 12, 2704, 5287, 2249, 27553, 12, 6862, 6862, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4147, 22144, 2278, 23866, 2278, 1435, 288, 202, 202, 2421, 22144, 2278, 1719, 273, 394, 4147, 22144, 2278, 12, 2421, 22144, 5058, 9506, 202, 18, 588, 780, 2932, 7859, 367, 11870, 18, 1891, 29425, 6, 3719, 288, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 6862, 9506, 202, 430, 12, 15132, 13, 759, 21890, 603, 5731, 6862, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 6862, 9506, 202, 759, 1564, 3382, 316, 648, 18626, 711, 1818, 16054, 518, 596, 18, 9506, 202, 22043, 261, 2088, 2531, 13, 288, 6862, 202, 430, 261, 9561, 1891, 18, 291, 1921, 10756, 2 ]
connection.connect();
connected = connection.connect();
public void run() { fireProjectInsertStarted(); List<String> files = fileScanner.getFiles(); /* create connection to node */ Connection connection = freenetInterface.getConnection("project-insert-" + counter++); try { connection.connect(); } catch (IOException e1) { fireProjectInsertFinished(false, e1); return; } Client client = new Client(connection); /* create containers */ final List<String> containers = new ArrayList<String>(); final Map<String, List<String>> containerFiles = new HashMap<String, List<String>>(); createContainers(files, containers, containerFiles); /* collect files */ int edition = ((EditionProject) project).getEdition(); String dirURI = project.getInsertURI() + project.getPath() + "-" + edition; ClientPutComplexDir putDir = new ClientPutComplexDir("dir-" + counter++, dirURI); putDir.setDefaultName(project.getIndexFile()); putDir.setVerbosity(Verbosity.ALL); putDir.setMaxRetries(maxRetries); for (String filename: files) { FileEntry fileEntry = createFileEntry(filename, edition, containerFiles); if (fileEntry != null) { putDir.addFileEntry(fileEntry); } } /* start request */ try { client.execute(putDir); } catch (IOException ioe1) { fireProjectInsertFinished(false, ioe1); return; } /* parse progress and success messages */ boolean success = true; boolean finished = false; boolean disconnected = false; while (!finished) { Message message = client.readMessage(); finished = (message == null) && (disconnected = client.isDisconnected()); if (debug) { System.out.println(message); } if (!finished) { String messageName = message.getName(); if ("SimpleProgress".equals(messageName)) { int total = Integer.parseInt(message.get("Total")); int succeeded = Integer.parseInt(message.get("Succeeded")); int fatal = Integer.parseInt(message.get("FatallyFailed")); int failed = Integer.parseInt(message.get("Failed")); boolean finalized = Boolean.parseBoolean(message.get("FinalizedTotal")); fireProjectInsertProgress(succeeded, failed, fatal, total, finalized); } success = "PutSuccessful".equals(messageName); finished = success || "PutFailed".equals(messageName); } } /* post-insert work */ fireProjectInsertFinished(success, disconnected ? new IOException("Connection terminated") : null); if (success) { if (project instanceof EditionProject) { ((EditionProject) project).setEdition(edition + 1); } } }
45538 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45538/f00de4e0d5ba4c14dc09ff84263563a7abc45cd9/ProjectInserter.java/buggy/src/de/todesbaum/jsite/application/ProjectInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 12179, 4109, 4600, 9217, 5621, 202, 202, 682, 32, 780, 34, 1390, 273, 585, 11338, 18, 588, 2697, 5621, 202, 202, 20308, 752, 1459, 358, 756, 1195, 202, 202, 1952, 1459, 273, 284, 2842, 278, 1358, 18, 588, 1952, 2932, 4406, 17, 6387, 10951, 397, 3895, 9904, 1769, 202, 202, 698, 288, 1082, 202, 4071, 18, 3612, 5621, 202, 202, 97, 1044, 261, 14106, 425, 21, 13, 288, 1082, 202, 12179, 4109, 4600, 10577, 12, 5743, 16, 425, 21, 1769, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 1227, 1004, 273, 394, 2445, 12, 4071, 1769, 202, 202, 20308, 752, 8475, 1195, 202, 202, 6385, 987, 32, 780, 34, 8475, 273, 394, 2407, 32, 780, 34, 5621, 202, 202, 6385, 1635, 32, 780, 16, 987, 32, 780, 9778, 1478, 2697, 273, 394, 4317, 32, 780, 16, 987, 32, 780, 9778, 5621, 202, 202, 2640, 11177, 12, 2354, 16, 8475, 16, 1478, 2697, 1769, 202, 202, 20308, 3274, 1390, 1195, 202, 202, 474, 28432, 273, 14015, 41, 1460, 4109, 13, 1984, 2934, 588, 41, 1460, 5621, 202, 202, 780, 1577, 3098, 273, 1984, 18, 588, 4600, 3098, 1435, 397, 1984, 18, 588, 743, 1435, 397, 7514, 397, 28432, 31, 202, 202, 1227, 6426, 12795, 1621, 1378, 1621, 273, 394, 2445, 6426, 12795, 1621, 2932, 1214, 10951, 397, 3895, 9904, 16, 1577, 3098, 1769, 202, 202, 458, 1621, 18, 542, 1868, 461, 12, 4406, 18, 588, 1016, 812, 10663, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 12179, 4109, 4600, 9217, 5621, 202, 202, 682, 32, 780, 34, 1390, 273, 585, 11338, 18, 588, 2697, 5621, 202, 202, 20308, 752, 1459, 358, 756, 1195, 202, 202, 1952, 1459, 273, 284, 2842, 278, 1358, 18, 588, 1952, 2932, 4406, 17, 6387, 10951, 397, 3895, 9904, 1769, 202, 202, 698, 288, 1082, 202, 4071, 18, 3612, 5621, 202, 202, 97, 1044, 261, 14106, 425, 21, 13, 288, 1082, 202, 12179, 4109, 4600, 10577, 12, 5743, 16, 425, 21, 1769, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 1227, 1004, 273, 394, 2445, 12, 4071, 1769, 202, 202, 20308, 752, 8475, 1195, 202, 202, 6385, 987, 32, 780, 34, 2 ]
evaluateEmbeddedExpression( child, text, content );
evaluateEmbeddedExpression( child, text, content, htmlProcessor );
private void evaluateEmbeddedExpression( Node node, TextItemDesign text, ITextContent content ) { if ( node.getNodeType( ) == Node.ELEMENT_NODE ) { Element ele = (Element) node; if ( node.getNodeName( ).equals( "img" ) ) { String src = ele.getAttribute( "src" ); if ( FileUtil.isLocalResource( src ) ) { src = FileUtil.getAbsolutePath( context.getReport( ) .getBasePath( ), src ); ele.removeAttribute( "src" ); IImageItemContent imgContent = ContentFactory .createImageContent( null ); content.addImageContent( node, imgContent ); imgContent.setImageSource( ImageItemDesign.IMAGE_FILE ); imgContent.setUri( src ); imgContent.setExtension( FileUtil.getExtFromFileName( src, FileUtil.SEPARATOR_PATH ) ); } } else if ( node.getNodeName( ).equals( "value-of" ) ) { // If there are more than one child node, it must have and only // have two children nodes, remove the last child node. if ( node.getChildNodes( ).getLength( ) > 1 ) { node.removeChild( node.getLastChild( ) ); } String strExpr = node.getFirstChild( ).getNodeValue( ); IBaseExpression expr = text.getExpression( strExpr ); Object value; if ( expr != null ) { value = context.evaluate( expr ); } else { value = context.evaluate( strExpr ); } if ( value != null ) { String format = ( (Element) ( node ) ) .getAttribute( "format" ); Node appendedNode = null; //TODO Only the type string and blob are done in the format // of HTML, or else only string type. if ( "html".equals( format ) ) { //parse the value to get the DOM tree Document doc = null; if ( value.getClass( ).isArray( ) && value.getClass( ).getComponentType( ) == byte.class ) { byte[] blob = (byte[]) value; doc = new TextParser( ).parse( new ByteArrayInputStream( blob ), "html" ); } else { doc = new TextParser( ).parse( value.toString( ), "html" ); } appendedNode = node.getOwnerDocument( ).createElement( "body" ); copyChildrenNodes( doc.getFirstChild( ), appendedNode ); } else { StringBuffer formattedStr = new StringBuffer( ); //Uses the ROM style of design because the // format-related styles are constant, which are the // same as those of the content. formatValue( value, format, text.getStyle( ), formattedStr ); appendedNode = node.getOwnerDocument( ).createElement( "body" ); appendedNode.appendChild( node.getOwnerDocument( ) .createTextNode( formattedStr.toString( ) ) ); } node.appendChild( appendedNode ); } return; } else if ( node.getNodeName( ).equals( "image" ) ) { //For the embedded image, this node does not have child node // before evaluating. But for the expression, the node has a // text-type node holding the expression. So we must find the // value node dependent on the different situations and remove // it. if ( node.getChildNodes( ).getLength( ) > 0 && node.getLastChild( ).getNodeType( ) == Node.ELEMENT_NODE ) { node.removeChild( node.getLastChild( ) ); } Node body = node.getOwnerDocument( ).createElement( "body" ); Element imgNode = node.getOwnerDocument( ) .createElement( "img" ); IImageItemContent image = ContentFactory.createImageContent( null ); //Get the image content String imageType = ( (Element) ( node ) ).getAttribute( "type" ); if ( "expr".equalsIgnoreCase( imageType ) ) { image.setImageSource( ImageItemDesign.IMAGE_EXPRESSION ); //The image is from data source String strExpression = node.getFirstChild( ).getNodeValue( ); Object value = context.evaluate( text .getExpression( strExpression ) ); if ( value != null && value.getClass( ).isArray( ) && value.getClass( ).getComponentType( ) == byte.class ) { image.setData( (byte[]) value ); } //Note: Actually the type just means that the image is from // the data source and there is not an attribute indicating // the file type. /* * fileExt = (String) context.evaluate( text .getExpression( * imageType ) ); */ } else { //The image is an embedded one. String name = ( (Element) ( node ) ).getAttribute( "name" ); EmbeddedImage embeddedImage = context.getReport( ) .getReportDesign( ).findImage( name ); if ( embeddedImage != null ) { image.setData( embeddedImage.getData( ) ); image.setImageSource( ImageItemDesign.IMAGE_NAME ); image.setUri( name ); String extension = FileUtil .getExtFromType( embeddedImage.getType( ) ); if ( extension == null ) { extension = FileUtil.getExtFromFileName( name, FileUtil.SEPARATOR_PATH ); } image.setExtension( extension ); } } if ( image.getData( ) != null ) { content.addImageContent( imgNode, image ); // add image node to DOM tree body.appendChild( imgNode ); node.appendChild( body ); } else { logger.log(Level.SEVERE, "can't handle image element in HTML" ); } return; } // call recursively for ( Node child = node.getFirstChild( ); child != null; child = child .getNextSibling( ) ) { evaluateEmbeddedExpression( child, text, content ); } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/9bd6cfa479d0917f0581d016aab280e9fa7e6180/TextItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TextItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5956, 14980, 2300, 12, 2029, 756, 16, 3867, 1180, 15478, 977, 16, 1082, 202, 1285, 408, 1350, 913, 262, 202, 95, 202, 202, 430, 261, 756, 18, 588, 15101, 12, 262, 422, 2029, 18, 10976, 67, 8744, 262, 202, 202, 95, 1082, 202, 1046, 5043, 273, 261, 1046, 13, 756, 31, 1082, 202, 430, 261, 756, 18, 588, 18948, 12, 262, 18, 14963, 12, 315, 6081, 6, 262, 262, 1082, 202, 95, 9506, 202, 780, 1705, 273, 5043, 18, 588, 1499, 12, 315, 4816, 6, 11272, 9506, 202, 430, 261, 1387, 1304, 18, 291, 2042, 1420, 12, 1705, 262, 262, 9506, 202, 95, 6862, 202, 4816, 273, 1387, 1304, 18, 588, 10368, 743, 12, 819, 18, 588, 4820, 12, 262, 6862, 1082, 202, 18, 588, 15912, 12, 262, 16, 1705, 11272, 6862, 202, 6516, 18, 4479, 1499, 12, 315, 4816, 6, 11272, 6862, 202, 45, 2040, 1180, 1350, 3774, 1350, 273, 3697, 1733, 6862, 1082, 202, 18, 2640, 2040, 1350, 12, 446, 11272, 6862, 202, 1745, 18, 1289, 2040, 1350, 12, 756, 16, 3774, 1350, 11272, 6862, 202, 6081, 1350, 18, 542, 2040, 1830, 12, 3421, 1180, 15478, 18, 13603, 67, 3776, 11272, 6862, 202, 6081, 1350, 18, 542, 3006, 12, 1705, 11272, 6862, 202, 6081, 1350, 18, 542, 3625, 12, 1387, 1304, 18, 588, 2482, 1265, 4771, 12, 1705, 16, 6862, 1082, 202, 812, 1304, 18, 4550, 67, 4211, 262, 11272, 9506, 202, 97, 1082, 202, 97, 1082, 202, 12107, 309, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5956, 14980, 2300, 12, 2029, 756, 16, 3867, 1180, 15478, 977, 16, 1082, 202, 1285, 408, 1350, 913, 262, 202, 95, 202, 202, 430, 261, 756, 18, 588, 15101, 12, 262, 422, 2029, 18, 10976, 67, 8744, 262, 202, 202, 95, 1082, 202, 1046, 5043, 273, 261, 1046, 13, 756, 31, 1082, 202, 430, 261, 756, 18, 588, 18948, 12, 262, 18, 14963, 12, 315, 6081, 6, 262, 262, 1082, 202, 95, 9506, 202, 780, 1705, 273, 5043, 18, 588, 1499, 12, 315, 4816, 6, 11272, 9506, 202, 430, 261, 1387, 1304, 18, 291, 2042, 1420, 12, 1705, 262, 262, 9506, 202, 95, 6862, 202, 4816, 273, 1387, 1304, 18, 588, 10368, 743, 12, 819, 2 ]
private static boolean checkRelativePath(String filePath, TypeDeclaration outerClass, CompilerUtils.Mutable retFileToCheck,
private static boolean checkRelativePath(String filePath, TypeDeclaration outerClass, CompilerUtils.Mutable retFileToCheck,
private static boolean checkRelativePath(String filePath, TypeDeclaration outerClass, CompilerUtils.Mutable retFileToCheck, boolean ignoreDirectories, boolean allowFileInPageFlowSourceDir, AnnotationProcessorEnvironment env) throws FatalCompileTimeException { File fileToCheck = null; boolean fileExists = true; if (filePath.endsWith(JPF_FILE_EXTENSION_DOT)) { String className = filePath.substring(0, filePath.length() - JPF_FILE_EXTENSION_DOT.length()); String pkg = outerClass.getPackage().getQualifiedName(); while (className.startsWith("../") && className.length() > 3) { className = className.substring(3); int lastDot = pkg.lastIndexOf('.'); pkg = lastDot != -1 ? pkg.substring(0, lastDot) : ""; } className = (pkg.length() > 0 ? pkg + '.' : "") + className.replace('/', '.'); TypeDeclaration type = env.getTypeDeclaration(className); fileToCheck = type != null ? CompilerUtils.getSourceFile(type, false) : null; if (fileToCheck == null) fileExists = false; } // In certain error conditions (jpfFile == null), we can't determine the file. In this case, just ignore. else if (CompilerUtils.getSourceFile(outerClass, false) != null) { if (allowFileInPageFlowSourceDir) { fileToCheck = CompilerUtils.getFileRelativeToSourceFile(outerClass, filePath, env); } else { // Use the package name to infer the relative path (from web content root) to the page flow directory. String[] webContentRoots = CompilerUtils.getWebContentRoots(env); String jpfParentRelativePath = ""; PackageDeclaration jpfPackage = outerClass.getPackage(); if (jpfPackage != null) jpfParentRelativePath = jpfPackage.getQualifiedName().replace('.', '/'); for (int i = 0; i < webContentRoots.length; i++) { String webContentRoot = webContentRoots[i]; File desiredParentDir = new File(webContentRoot, jpfParentRelativePath); fileToCheck = new File(desiredParentDir, filePath); if (fileToCheck.exists()) break; } } if (fileToCheck != null && ! fileToCheck.exists() && ! (ignoreDirectories && fileToCheck.isDirectory())) { fileExists = false; } } if (retFileToCheck != null) retFileToCheck.set(fileToCheck); return fileExists; }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/74cda7c2aa1023c821782bc0e607fe2cf90d80d3/WebappPathType.java/buggy/ti/jars/core/src/java/org/apache/ti/compiler/internal/grammar/WebappPathType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 866, 16519, 12, 780, 4612, 16, 1412, 6094, 6390, 797, 16, 4766, 2398, 12972, 1989, 18, 19536, 325, 812, 18126, 16, 4766, 2398, 1250, 2305, 13071, 16, 1250, 1699, 812, 382, 1964, 5249, 1830, 1621, 16, 4766, 2398, 6090, 5164, 5494, 1550, 13, 5411, 1216, 10375, 9937, 950, 503, 565, 288, 3639, 1387, 585, 18126, 273, 446, 31, 3639, 1250, 27279, 273, 638, 31, 3639, 309, 261, 22787, 18, 5839, 1190, 12, 46, 22026, 67, 3776, 67, 12796, 67, 17591, 3719, 288, 5411, 514, 2658, 273, 4612, 18, 28023, 12, 20, 16, 4612, 18, 2469, 1435, 300, 804, 22026, 67, 3776, 67, 12796, 67, 17591, 18, 2469, 10663, 5411, 514, 3475, 273, 6390, 797, 18, 588, 2261, 7675, 588, 12345, 5621, 5411, 1323, 261, 12434, 18, 17514, 1190, 2932, 838, 4898, 13, 597, 2658, 18, 2469, 1435, 405, 890, 13, 288, 7734, 2658, 273, 2658, 18, 28023, 12, 23, 1769, 7734, 509, 1142, 10412, 273, 3475, 18, 2722, 31985, 2668, 1093, 1769, 7734, 3475, 273, 1142, 10412, 480, 300, 21, 692, 3475, 18, 28023, 12, 20, 16, 1142, 10412, 13, 294, 1408, 31, 5411, 289, 5411, 2658, 273, 261, 10657, 18, 2469, 1435, 405, 374, 692, 3475, 397, 2611, 294, 1408, 13, 397, 2658, 18, 2079, 2668, 19, 2187, 2611, 1769, 5411, 1412, 6094, 618, 273, 1550, 18, 588, 559, 6094, 12, 12434, 1769, 5411, 585, 18126, 273, 618, 480, 446, 692, 12972, 1989, 18, 588, 31150, 12, 723, 16, 629, 13, 294, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 866, 16519, 12, 780, 4612, 16, 1412, 6094, 6390, 797, 16, 4766, 2398, 12972, 1989, 18, 19536, 325, 812, 18126, 16, 4766, 2398, 1250, 2305, 13071, 16, 1250, 1699, 812, 382, 1964, 5249, 1830, 1621, 16, 4766, 2398, 6090, 5164, 5494, 1550, 13, 5411, 1216, 10375, 9937, 950, 503, 565, 288, 3639, 1387, 585, 18126, 273, 446, 31, 3639, 1250, 27279, 273, 638, 31, 3639, 309, 261, 22787, 18, 5839, 1190, 12, 46, 22026, 67, 3776, 67, 12796, 67, 17591, 3719, 288, 5411, 514, 2658, 273, 4612, 18, 28023, 12, 20, 16, 4612, 18, 2469, 1435, 300, 804, 22026, 67, 3776, 67, 12796, 67, 17591, 18, 2469, 10663, 5411, 514, 3475, 273, 6390, 797, 18, 2 ]
public YearMonthDay(int year, int monthOfYear, int dayOfMonth) { this(year, monthOfYear, dayOfMonth, null);
public YearMonthDay() { super();
public YearMonthDay(int year, int monthOfYear, int dayOfMonth) { this(year, monthOfYear, dayOfMonth, null); }
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/61c64930304b87d4aa81dca05aba09591b3b2d52/YearMonthDay.java/buggy/JodaTime/src/java/org/joda/time/YearMonthDay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16666, 5445, 4245, 12, 474, 3286, 16, 509, 3138, 19091, 16, 509, 25371, 13, 288, 3639, 333, 12, 6874, 16, 3138, 19091, 16, 25371, 16, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16666, 5445, 4245, 12, 474, 3286, 16, 509, 3138, 19091, 16, 509, 25371, 13, 288, 3639, 333, 12, 6874, 16, 3138, 19091, 16, 25371, 16, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return getRealIcon().getIconWidth(); }
return getRealIcon().getIconWidth(); }
public int getIconWidth() { return getRealIcon().getIconWidth(); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/daf2dc40e961b18200f1bed61683463b8465650e/IconLoader.java/clean/util/src/com/intellij/openapi/util/IconLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 21724, 2384, 1435, 288, 5411, 327, 12361, 5554, 7675, 588, 5554, 2384, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 21724, 2384, 1435, 288, 5411, 327, 12361, 5554, 7675, 588, 5554, 2384, 5621, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (int i = 0; i < configElements.length; ++i) { IConfigurationElement startElement = configElements[i];
IExtensionPoint point = registry.getExtensionPoint( PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_STARTUP); IExtension[] extensions = point.getExtensions(); for (int i = 0; i < extensions.length; ++i) { IExtension extension = extensions[i];
public void run() { IExtensionRegistry registry = Platform.getExtensionRegistry(); IConfigurationElement[] configElements = registry .getConfigurationElementsFor(PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_STARTUP); for (int i = 0; i < configElements.length; ++i) { IConfigurationElement startElement = configElements[i]; // if the plugin is not in the set of disabled plugins, then // execute the code to start it String id = startElement.getDeclaringExtension().getNamespace(); if (disabledPlugins.indexOf(id) == -1) Platform.run(new EarlyStartupRunnable(startElement)); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/409c0933509236299f61f59215952d9e4a645039/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 3625, 4243, 4023, 273, 11810, 18, 588, 3625, 4243, 5621, 9506, 202, 45, 1750, 1046, 8526, 642, 3471, 273, 4023, 25083, 202, 18, 588, 1750, 3471, 1290, 12, 8201, 5370, 18, 19415, 67, 734, 16, 6862, 9506, 202, 45, 2421, 22144, 2918, 18, 6253, 67, 7570, 3079, 1769, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 642, 3471, 18, 2469, 31, 965, 77, 13, 288, 6862, 202, 45, 1750, 1046, 13591, 273, 642, 3471, 63, 77, 15533, 6862, 202, 759, 309, 326, 1909, 353, 486, 316, 326, 444, 434, 5673, 4799, 16, 1508, 6862, 202, 759, 1836, 326, 981, 358, 787, 518, 6862, 202, 780, 612, 273, 13591, 18, 588, 3456, 5968, 3625, 7675, 588, 3402, 5621, 6862, 202, 430, 261, 9278, 9461, 18, 31806, 12, 350, 13, 422, 300, 21, 13, 25083, 202, 8201, 18, 2681, 12, 2704, 512, 20279, 22178, 20013, 12, 1937, 1046, 10019, 9506, 202, 97, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1086, 1435, 288, 9506, 202, 45, 3625, 4243, 4023, 273, 11810, 18, 588, 3625, 4243, 5621, 9506, 202, 45, 1750, 1046, 8526, 642, 3471, 273, 4023, 25083, 202, 18, 588, 1750, 3471, 1290, 12, 8201, 5370, 18, 19415, 67, 734, 16, 6862, 9506, 202, 45, 2421, 22144, 2918, 18, 6253, 67, 7570, 3079, 1769, 9506, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 642, 3471, 18, 2469, 31, 965, 77, 13, 288, 6862, 202, 45, 1750, 1046, 13591, 273, 642, 3471, 63, 77, 15533, 6862, 202, 759, 309, 326, 1909, 353, 486, 316, 326, 444, 434, 5673, 4799, 16, 1508, 6862, 202, 759, 1836, 326, 981, 358, 787, 518, 6862, 202, 780, 612, 2 ]
final void computeAxisStartEndShifts(IDisplayServer xs, Label la, int iOrientation, int iLocation, AllAxes aax) throws GenerationException
final void computeAxisStartEndShifts(IDisplayServer xs, Label la, int iOrientation, int iLocation, AllAxes aax) throws GenerationException
final void computeAxisStartEndShifts(IDisplayServer xs, Label la, int iOrientation, int iLocation, AllAxes aax) throws GenerationException { final double dMaxSS = (aax != null && iOrientation == aax.getOrientation()) ? aax.getMaxStartShift() : 0; final double dMaxES = (aax != null && iOrientation == aax.getOrientation()) ? aax.getMaxEndShift() : 0; if (!la.isVisible()) { dStartShift = dMaxSS; dEndShift = dMaxES; return; } if (getType() == TEXT || bCategoryScale) { // COMPUTE THE BOUNDING BOXES FOR FIRST AND LAST LABEL TO ADJUST // START/END OF X-AXIS final double dUnitSize = getUnitSize(); final DataSetIterator dsi = getData(); final int iDateTimeUnit = (getType() == IConstants.DATE_TIME) ? CDateTime.computeUnit(dsi) : IConstants.UNDEFINED; // ADJUST THE START POSITION la.getCaption().setValue(formatCategoryValue(getType(), dsi.first(), iDateTimeUnit)); BoundingBox bb = null; try { bb = computeBox(xs, iLocation, la, 0, 0); } catch (UnexpectedInputException uiex) { throw new GenerationException(uiex); } if (iOrientation == VERTICAL) // VERTICAL AXIS { dStartShift = Math.max(dMaxSS, (dUnitSize > bb.getHeight()) ? 0 : (bb.getHeight() - dUnitSize) / 2); } else if (iOrientation == HORIZONTAL) // HORIZONTAL AXIS { dStartShift = Math.max(dMaxSS, (dUnitSize > bb.getWidth()) ? 0 : (bb.getWidth() - dUnitSize) / 2); } // ADJUST THE END POSITION la.getCaption().setValue(formatCategoryValue(getType(), dsi.last(), iDateTimeUnit)); try { bb = computeBox(xs, iLocation, la, 0, dEnd); } catch (UnexpectedInputException uiex) { throw new GenerationException(uiex); } if (iOrientation == VERTICAL) // VERTICAL AXIS { dEndShift = Math.max(dMaxES, (dUnitSize > bb.getHeight()) ? 0 : (bb.getHeight() - dUnitSize) / 2); } else if (iOrientation == HORIZONTAL) // HORIZONTAL AXIS { dEndShift = Math.max(dMaxES, (dUnitSize > bb.getWidth()) ? 0 : (bb.getWidth() - dUnitSize) / 2); } } else if ((iType & NUMERICAL) == NUMERICAL) { if ((iType & LINEAR) == LINEAR) { // ADJUST THE START POSITION DecimalFormat df = null; if (fs == null) // ONLY COMPUTE INTERNALLY IF FORMAT SPECIFIER ISN'T DEFINED { df = new DecimalFormat(getNumericPattern()); } String sValue = null; try { sValue = ValueFormatter.format(getMinimum(), fs, lcl, df); } catch (DataFormatException dfex ) { DefaultLoggerImpl.instance().log(dfex); sValue = IConstants.NULL_STRING; } la.getCaption().setValue(sValue); BoundingBox bb = null; try { bb = computeBox(xs, iLocation, la, 0, 0); } catch (UnexpectedInputException uiex) { throw new GenerationException(uiex); } if (iOrientation == VERTICAL) // VERTICAL AXIS { dStartShift = Math.max(dMaxSS, (bb.getHeight() - bb.getHotPoint())); } else if (iOrientation == HORIZONTAL) { dStartShift = Math.max(dMaxSS, bb.getHotPoint()); } // ADJUST THE END POSITION try { sValue = ValueFormatter.format(getMaximum(), fs, lcl, df); } catch (DataFormatException dfex ) { DefaultLoggerImpl.instance().log(dfex); sValue = IConstants.NULL_STRING; } la.getCaption().setValue(sValue); try { bb = computeBox(xs, iLocation, la, 0, 0); } catch (UnexpectedInputException uiex) { throw new GenerationException(uiex); } if (iOrientation == VERTICAL) // VERTICAL AXIS { dEndShift = Math.max(dMaxES, bb.getHotPoint()); } else if (iOrientation == HORIZONTAL) { dEndShift = Math.max(dMaxES, (bb.getWidth() - bb.getHotPoint())); } } else if ((iType & LOGARITHMIC) == LOGARITHMIC) { // ADJUST THE START POSITION final double dMinimum = asDouble(getMinimum()).doubleValue(); DecimalFormat df = null; if (fs == null) // ONLY COMPUTE INTERNALLY IF FORMAT SPECIFIER ISN'T DEFINED { df = new DecimalFormat(getNumericPattern(dMinimum)); } String sValue = null; try { sValue = ValueFormatter.format(getMinimum(), fs, lcl, df); } catch (DataFormatException dfex ) { DefaultLoggerImpl.instance().log(dfex); sValue = IConstants.NULL_STRING; } la.getCaption().setValue(sValue); BoundingBox bb = null; try { bb = computeBox(xs, iLocation, la, 0, 0); } catch (UnexpectedInputException uiex) { throw new GenerationException(uiex); } if (iOrientation == VERTICAL) // VERTICAL AXIS { dStartShift = Math.max(dMaxSS, (bb.getHeight() - bb.getHotPoint())); } else if (iOrientation == HORIZONTAL) { dStartShift = Math.max(dMaxSS, bb.getHotPoint()); } // ADJUST THE END POSITION final double dMaximum = asDouble(getMaximum()).doubleValue(); if (fs == null) // ONLY COMPUTE INTERNALLY (DIFFERENT FROM MINIMUM) IF FORMAT SPECIFIER ISN'T DEFINED { df = new DecimalFormat(getNumericPattern(dMaximum)); } try { sValue = ValueFormatter.format(getMaximum(), fs, lcl, df); } catch (DataFormatException dfex ) { DefaultLoggerImpl.instance().log(dfex); sValue = IConstants.NULL_STRING; } la.getCaption().setValue(sValue); try { bb = computeBox(xs, iLocation, la, 0, 0); } catch (UnexpectedInputException uiex) { throw new GenerationException(uiex); } if (iOrientation == VERTICAL) // VERTICAL AXIS { dEndShift = Math.max(dMaxES, bb.getHotPoint()); } else if (iOrientation == HORIZONTAL) { dEndShift = Math.max(dMaxES, (bb.getWidth() - bb.getHotPoint())); } } } else if (getType() == DATE_TIME) { // COMPUTE THE BOUNDING BOXES FOR FIRST AND LAST LABEL TO ADJUST // START/END OF X-AXIS double dUnitSize = getUnitSize(); CDateTime cdt = asDateTime(getMinimum()); final int iUnit = asInteger(oUnit); SimpleDateFormat sdf = null; String sText = null; if (fs != null) // ONLY COMPUTE INTERNALLY IF FORMAT SPECIFIER ISN'T DEFINED { sdf = new SimpleDateFormat(CDateTime.getPreferredFormat(iUnit)); } // ADJUST THE START POSITION try { sText = ValueFormatter.format(cdt, fs, lcl, sdf); } catch (DataFormatException dfex ) { DefaultLoggerImpl.instance().log(dfex); sText = IConstants.NULL_STRING; } la.getCaption().setValue(sText); BoundingBox bb = null; try { bb = computeBox(xs, iLocation, la, 0, 0); } catch (UnexpectedInputException uiex) { throw new GenerationException(uiex); } if (iOrientation == VERTICAL) // VERTICAL AXIS { dStartShift = Math.max(dMaxSS, (bb.getHeight() - bb.getHotPoint())); } else if (iOrientation == HORIZONTAL) { dStartShift = Math.max(dMaxSS, bb.getHotPoint()); } // ADJUST THE END POSITION cdt = asDateTime(getMaximum()); try { sText = ValueFormatter.format(cdt, fs, lcl, sdf); } catch (DataFormatException dfex ) { DefaultLoggerImpl.instance().log(dfex); sText = IConstants.NULL_STRING; } la.getCaption().setValue(sText); try { bb = computeBox(xs, iLocation, la, 0, dEnd); } catch (UnexpectedInputException uiex) { throw new GenerationException(uiex); } if (iOrientation == VERTICAL) // VERTICAL AXIS { dEndShift = Math.max(dMaxES, bb.getHotPoint()); } else if (iOrientation == HORIZONTAL) { dEndShift = Math.max(dMaxES, (bb.getWidth() - bb.getHotPoint())); } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/AutoScale.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 918, 3671, 6558, 1685, 1638, 10544, 87, 12, 734, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 509, 277, 14097, 16, 509, 277, 2735, 16, 4826, 26494, 279, 651, 13, 1216, 23234, 503, 565, 288, 3639, 727, 1645, 302, 2747, 1260, 273, 261, 69, 651, 480, 446, 597, 277, 14097, 422, 279, 651, 18, 588, 14097, 10756, 692, 279, 651, 18, 588, 2747, 1685, 10544, 1435, 294, 374, 31, 3639, 727, 1645, 302, 2747, 3991, 273, 261, 69, 651, 480, 446, 597, 277, 14097, 422, 279, 651, 18, 588, 14097, 10756, 692, 279, 651, 18, 588, 2747, 1638, 10544, 1435, 294, 374, 31, 3639, 309, 16051, 11821, 18, 291, 6207, 10756, 3639, 288, 5411, 302, 1685, 10544, 273, 302, 2747, 1260, 31, 5411, 302, 1638, 10544, 273, 302, 2747, 3991, 31, 5411, 327, 31, 3639, 289, 3639, 309, 261, 588, 559, 1435, 422, 9204, 747, 324, 4457, 5587, 13, 3639, 288, 5411, 368, 13846, 9099, 12786, 9784, 5240, 1360, 9784, 60, 3991, 12108, 21786, 4116, 15612, 18210, 8493, 11738, 46, 5996, 5411, 368, 10485, 19, 4415, 15932, 1139, 17, 25614, 5411, 727, 1645, 302, 2802, 1225, 273, 19194, 1225, 5621, 5411, 727, 14065, 3198, 3780, 77, 273, 4303, 5621, 5411, 727, 509, 277, 5096, 2802, 273, 261, 588, 559, 1435, 422, 467, 2918, 18, 4594, 67, 4684, 13, 692, 385, 5096, 18, 9200, 2802, 12, 2377, 77, 13, 7734, 294, 467, 2918, 18, 2124, 15544, 31, 5411, 368, 11738, 46, 5996, 12786, 10485, 26808, 5411, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 3671, 6558, 1685, 1638, 10544, 87, 12, 734, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 509, 277, 14097, 16, 509, 277, 2735, 16, 4826, 26494, 279, 651, 13, 1216, 23234, 503, 565, 288, 3639, 727, 1645, 302, 2747, 1260, 273, 261, 69, 651, 480, 446, 597, 277, 14097, 422, 279, 651, 18, 588, 14097, 10756, 692, 279, 651, 18, 588, 2747, 1685, 10544, 1435, 294, 374, 31, 3639, 727, 1645, 302, 2747, 3991, 273, 261, 69, 651, 480, 446, 597, 277, 14097, 422, 279, 651, 18, 588, 14097, 10756, 692, 279, 651, 18, 588, 2747, 1638, 10544, 1435, 294, 374, 31, 3639, 309, 16051, 11821, 18, 291, 6207, 10756, 3639, 288, 5411, 302, 1685, 10544, 2 ]
float ts;
public SIPHeader parse() throws ParseException { if (debug) dbg_enter("TimeStampParser.parse"); TimeStamp timeStamp = new TimeStamp(); try { headerName(TokenTypes.TIMESTAMP); timeStamp.setHeaderName(SIPHeaderNames.TIMESTAMP); this.lexer.SPorHT(); String firstNumber = this.lexer.number(); try { float ts; if (lexer.lookAhead(0) == '.') { this.lexer.match('.'); String secondNumber = this.lexer.number(); String s = new String(firstNumber + "." + secondNumber); ts = Float.parseFloat(s); } else ts = Float.parseFloat(firstNumber); timeStamp.setTimeStamp(ts); } catch (NumberFormatException ex) { throw createParseException(ex.getMessage()); } catch (InvalidArgumentException ex) { throw createParseException(ex.getMessage()); } this.lexer.SPorHT(); if (lexer.lookAhead(0) != '\n') { firstNumber = this.lexer.number(); try { float ts; if (lexer.lookAhead(0) == '.') { this.lexer.match('.'); String secondNumber = this.lexer.number(); String s = new String(firstNumber + "." + secondNumber); ts = Float.parseFloat(s); } else ts = Float.parseFloat(firstNumber); timeStamp.setDelay(ts); } catch (NumberFormatException ex) { throw createParseException(ex.getMessage()); } catch (InvalidArgumentException ex) { throw createParseException(ex.getMessage()); } } } finally { if (debug) dbg_leave("TimeStampParser.parse"); } return timeStamp; }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/TimeStampParser.java/buggy/src/gov/nist/javax/sip/parser/TimeStampParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 348, 2579, 1864, 1109, 1435, 1216, 10616, 288, 202, 202, 430, 261, 4148, 13, 1082, 202, 1966, 75, 67, 2328, 2932, 21536, 2678, 18, 2670, 8863, 202, 202, 21536, 18198, 273, 394, 2647, 8860, 5621, 202, 202, 698, 288, 1082, 202, 3374, 461, 12, 1345, 2016, 18, 17201, 1769, 1082, 202, 957, 8860, 18, 542, 1864, 461, 12, 17739, 1864, 1557, 18, 17201, 1769, 1082, 202, 2211, 18, 31731, 18, 3118, 280, 5062, 5621, 1082, 202, 780, 1122, 1854, 273, 333, 18, 31731, 18, 2696, 5621, 1082, 202, 698, 288, 9506, 202, 5659, 3742, 31, 9506, 202, 430, 261, 31731, 18, 7330, 24250, 12, 20, 13, 422, 2611, 13, 288, 6862, 202, 2211, 18, 31731, 18, 1916, 2668, 1093, 1769, 6862, 202, 780, 2205, 1854, 273, 333, 18, 31731, 18, 2696, 5621, 6862, 202, 780, 272, 273, 394, 514, 12, 3645, 1854, 397, 4585, 397, 2205, 1854, 1769, 6862, 202, 3428, 273, 5450, 18, 2670, 4723, 12, 87, 1769, 9506, 202, 97, 469, 6862, 202, 3428, 273, 5450, 18, 2670, 4723, 12, 3645, 1854, 1769, 9506, 202, 957, 8860, 18, 542, 21536, 12, 3428, 1769, 1082, 202, 97, 1044, 261, 1854, 9291, 431, 13, 288, 9506, 202, 12849, 752, 13047, 12, 338, 18, 24906, 10663, 1082, 202, 97, 1044, 261, 29093, 431, 13, 288, 9506, 202, 12849, 752, 13047, 12, 338, 18, 24906, 10663, 1082, 202, 97, 1082, 202, 2211, 18, 31731, 18, 3118, 280, 5062, 5621, 1082, 202, 430, 261, 31731, 18, 7330, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 348, 2579, 1864, 1109, 1435, 1216, 10616, 288, 202, 202, 430, 261, 4148, 13, 1082, 202, 1966, 75, 67, 2328, 2932, 21536, 2678, 18, 2670, 8863, 202, 202, 21536, 18198, 273, 394, 2647, 8860, 5621, 202, 202, 698, 288, 1082, 202, 3374, 461, 12, 1345, 2016, 18, 17201, 1769, 1082, 202, 957, 8860, 18, 542, 1864, 461, 12, 17739, 1864, 1557, 18, 17201, 1769, 1082, 202, 2211, 18, 31731, 18, 3118, 280, 5062, 5621, 1082, 202, 780, 1122, 1854, 273, 333, 18, 31731, 18, 2696, 5621, 1082, 202, 698, 288, 9506, 202, 5659, 3742, 31, 9506, 202, 430, 261, 31731, 18, 7330, 24250, 12, 20, 13, 422, 2611, 13, 288, 6862, 202, 2211, 18, 31731, 18, 2 ]
createDrillthroughSelectTargetReport( ); createDrillthroughSelectTargetAnchor( ); createDrillthroughCreateLinkExpression( ); createDrillthroughSelectShowTarget( ); createDrillthroughSelectFormat( );
createDrillthroughSelectTargetReport( container ); createDrillthroughSelectTargetAnchor( container ); createDrillthroughCreateLinkExpression( container ); createDrillthroughSelectShowTarget( container ); createDrillthroughSelectFormat( container );
private void switchToDrillthrough( ) { // new Label( displayArea, SWT.NONE ).setText( REQUIED_MARK + // LABEL_REPORT ); // locationEditor = new Text( displayArea, SWT.BORDER | SWT.SINGLE ); // locationEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL // ) ); // locationEditor.addModifyListener( new ModifyListener( ) { // // public void modifyText( ModifyEvent e ) // { // closeReport( ); // initParamterBindings( ); // initBookmarkList( reportHandle ); // updateButtons( ); // } // // } ); // createBrowerButton( displayArea, locationEditor, false, true ); // // UIUtil.createBlankLabel( displayArea ); // messageLine = new CLabel( displayArea, SWT.NONE ); // GridData gd = new GridData( GridData.FILL_HORIZONTAL ); // gd.horizontalSpan = 2; // messageLine.setLayoutData( gd ); // // createBindingTable( displayArea ); // createBookmarkBar( false ); // createTargetBar( ); // createFormatBar( ); displayArea.setLayout( new GridLayout( ) ); messageLine = new CLabel( displayArea, SWT.NONE ); messageLine.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createDrillthroughSelectTargetReport( ); createDrillthroughSelectTargetAnchor( ); createDrillthroughCreateLinkExpression( ); createDrillthroughSelectShowTarget( ); createDrillthroughSelectFormat( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/997fe3f12c3ab07a8443c8931cda3cf4f6ef22da/HyperlinkBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1620, 774, 8956, 737, 10064, 12, 262, 202, 95, 202, 202, 759, 394, 5287, 12, 2562, 5484, 16, 348, 8588, 18, 9826, 262, 18, 542, 1528, 12, 2438, 8627, 2056, 67, 12693, 397, 202, 202, 759, 18210, 67, 22710, 11272, 202, 202, 759, 2117, 6946, 273, 394, 3867, 12, 2562, 5484, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 20184, 11272, 202, 202, 759, 2117, 6946, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 202, 202, 759, 262, 11272, 202, 202, 759, 2117, 6946, 18, 1289, 11047, 2223, 12, 394, 9518, 2223, 12, 262, 288, 202, 202, 759, 9506, 202, 759, 1071, 918, 5612, 1528, 12, 9518, 1133, 425, 262, 202, 202, 759, 288, 202, 202, 759, 1746, 4820, 12, 11272, 202, 202, 759, 1208, 786, 387, 10497, 12, 11272, 202, 202, 759, 1208, 22966, 682, 12, 2605, 3259, 11272, 202, 202, 759, 1089, 14388, 12, 11272, 202, 202, 759, 289, 202, 202, 759, 9506, 202, 759, 289, 11272, 202, 202, 759, 752, 38, 492, 264, 3616, 12, 2562, 5484, 16, 2117, 6946, 16, 629, 16, 638, 11272, 202, 202, 759, 9506, 202, 759, 6484, 1304, 18, 2640, 7796, 2224, 12, 2562, 5484, 11272, 202, 202, 759, 883, 1670, 273, 394, 385, 2224, 12, 2562, 5484, 16, 348, 8588, 18, 9826, 11272, 202, 202, 759, 7145, 751, 15551, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 11272, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1620, 774, 8956, 737, 10064, 12, 262, 202, 95, 202, 202, 759, 394, 5287, 12, 2562, 5484, 16, 348, 8588, 18, 9826, 262, 18, 542, 1528, 12, 2438, 8627, 2056, 67, 12693, 397, 202, 202, 759, 18210, 67, 22710, 11272, 202, 202, 759, 2117, 6946, 273, 394, 3867, 12, 2562, 5484, 16, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 20184, 11272, 202, 202, 759, 2117, 6946, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 202, 202, 759, 262, 11272, 202, 202, 759, 2117, 6946, 18, 1289, 11047, 2223, 12, 394, 9518, 2223, 12, 262, 288, 202, 202, 759, 9506, 202, 759, 1071, 918, 5612, 1528, 2 ]
public boolean evaluate(Object event) throws NullPointerException, EvaluationException {
public boolean evaluate(Object event) throws EvaluationException { if (!start) { throw new IllegalStateException("Evaluator [" + name + "] was called in stopped state"); }
public boolean evaluate(Object event) throws NullPointerException, EvaluationException { try { Boolean result = (Boolean) ee.evaluate(getParameterValues(event)); return result.booleanValue(); } catch (InvocationTargetException ite) { throw new EvaluationException("Evaluator [" + name + "] caused an exception", ite); } }
52049 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52049/7e755b8978a294df3e6d9708c2e25dcac0c5d6c8/JaninoEventEvaluatorBase.java/buggy/logback-core/src/main/java/ch/qos/logback/core/boolex/JaninoEventEvaluatorBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 5956, 12, 921, 871, 13, 1216, 10108, 16, 1377, 17340, 503, 288, 565, 775, 288, 1377, 3411, 563, 273, 261, 5507, 13, 14657, 18, 21024, 12, 588, 1662, 1972, 12, 2575, 10019, 1377, 327, 563, 18, 6494, 620, 5621, 565, 289, 1044, 261, 9267, 14950, 518, 73, 13, 288, 1377, 604, 394, 17340, 503, 2932, 15876, 8247, 397, 508, 1850, 397, 9850, 15848, 392, 1520, 3113, 518, 73, 1769, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1250, 5956, 12, 921, 871, 13, 1216, 10108, 16, 1377, 17340, 503, 288, 565, 775, 288, 1377, 3411, 563, 273, 261, 5507, 13, 14657, 18, 21024, 12, 588, 1662, 1972, 12, 2575, 10019, 1377, 327, 563, 18, 6494, 620, 5621, 565, 289, 1044, 261, 9267, 14950, 518, 73, 13, 288, 1377, 604, 394, 17340, 503, 2932, 15876, 8247, 397, 508, 1850, 397, 9850, 15848, 392, 1520, 3113, 518, 73, 1769, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
undefineChildren();
detachChildren();
public void undefineInternal() { try { final XmlTag tag = getXmlTag(); if (tag != null) { deleteTag(tag); undefineChildren(); fireUndefinedEvent(); } } catch (Exception e) { LOG.error(e); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4437ca2f304024137a05082977d946a80498d240/DomRootInvocationHandler.java/clean/dom/impl/src/com/intellij/util/xml/impl/DomRootInvocationHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 640, 11255, 3061, 1435, 288, 565, 775, 288, 1377, 727, 5714, 1805, 1047, 273, 28504, 1805, 5621, 1377, 309, 261, 2692, 480, 446, 13, 288, 3639, 1430, 1805, 12, 2692, 1769, 3639, 10199, 4212, 5621, 3639, 4452, 10317, 1133, 5621, 1377, 289, 565, 289, 565, 1044, 261, 503, 425, 13, 288, 1377, 2018, 18, 1636, 12, 73, 1769, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 640, 11255, 3061, 1435, 288, 565, 775, 288, 1377, 727, 5714, 1805, 1047, 273, 28504, 1805, 5621, 1377, 309, 261, 2692, 480, 446, 13, 288, 3639, 1430, 1805, 12, 2692, 1769, 3639, 10199, 4212, 5621, 3639, 4452, 10317, 1133, 5621, 1377, 289, 565, 289, 565, 1044, 261, 503, 425, 13, 288, 1377, 2018, 18, 1636, 12, 73, 1769, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (!user.equals(administrator)) {
if (!user.getPrimaryKey().equals(administrator.getPrimaryKey())) {
public void main(IWContext iwc) throws Exception { iwrb = this.getResourceBundle(iwc); parseAction(iwc); if (saveChanges) { AccessController access = iwc.getAccessController(); try { //delete owners List deleteOwnersIds = null; if (iwc.isParameterSet(DELETE_PERMISSIONS_KEY)) { deleteOwnersIds = CheckBoxConverter.getResultByParsing(iwc, DELETE_PERMISSIONS_KEY); if (deleteOwnersIds != null && !deleteOwnersIds.isEmpty()) { Iterator ownersToDeleteIter = deleteOwnersIds.iterator(); while (ownersToDeleteIter.hasNext()) { Integer userGroupId = (Integer) ownersToDeleteIter.next(); access.setPermission(AccessController.CATEGORY_GROUP_ID, iwc, userGroupId.toString(), selectedGroupId, permissionTypeOwner, Boolean.FALSE); } } } //recursive set owners as owners of children or remove as owners of children if (iwc.isParameterSet(RECURSE_PERMISSIONS_TO_CHILDREN_KEY)) { List groupIdsToRecurseChangesOn = CheckBoxConverter.getResultByParsing(iwc, RECURSE_PERMISSIONS_TO_CHILDREN_KEY); if (deleteOwnersIds == null) { //just easier deleteOwnersIds = ListUtil.getEmptyList(); } if (groupIdsToRecurseChangesOn != null && !groupIdsToRecurseChangesOn.isEmpty()) { Iterator ownersRecurseToChildren = groupIdsToRecurseChangesOn.iterator(); while (ownersRecurseToChildren.hasNext()) { Integer userGroupId = (Integer) ownersRecurseToChildren.next(); //add if (deleteOwnersIds.contains(userGroupId)) { //delete recursively Group parent = selectedGroup; Collection children = getGroupBusiness(iwc).getChildGroupsRecursive(parent); if (children != null && !children.isEmpty()) { Iterator childIter = children.iterator(); while (childIter.hasNext()) { Group childGroup = (Group) childIter.next(); //only if current user owns the group if (iwc.isSuperAdmin() || access.isOwner(childGroup, iwc)) { access.setPermission(AccessController.CATEGORY_GROUP_ID, iwc, userGroupId.toString(), childGroup.getPrimaryKey().toString(), permissionTypeOwner, Boolean.FALSE); } } } } else { //add owner recursively Group parent = selectedGroup; Collection children = getGroupBusiness(iwc).getChildGroupsRecursive(parent); if (children != null && !children.isEmpty()) { Iterator childIter = children.iterator(); while (childIter.hasNext()) { Group childGroup = (Group) childIter.next(); //only if current user owns the group if (iwc.isSuperAdmin() || access.isOwner(childGroup, iwc)) { access.setPermission(AccessController.CATEGORY_GROUP_ID, iwc, userGroupId.toString(), childGroup.getPrimaryKey().toString(), permissionTypeOwner, Boolean.TRUE); } } } } } } } //add owner String chosenUserId = iwc.getParameter(PARAM_USER_CHOOSER_USER_ID); if (chosenUserId != null && !chosenUserId.equals("")) { access.setPermission(AccessController.CATEGORY_GROUP_ID, iwc, chosenUserId, selectedGroupId, permissionTypeOwner, Boolean.TRUE); } } catch (Exception e) { e.printStackTrace(); } }//get the data Collection activePermission = new Vector(); Collection permissions = AccessControl.getAllOwnerGroupPermissionsReverseForGroup(selectedGroup); //we only want active ones Iterator permissionsIter = permissions.iterator(); while (permissionsIter.hasNext()) { ICPermission perm = (ICPermission) permissionsIter.next(); if(perm.getPermissionValue()){ activePermission.add(perm); } } EntityBrowser browser = new EntityBrowser(); browser.setEntities("gpow_" + selectedGroupId, activePermission); browser.setDefaultNumberOfRows(activePermission.size()); browser.setAcceptUserSettingsShowUserSettingsButton(false, false); browser.setWidth(browser.HUNDRED_PERCENT); browser.setUseExternalForm(true); // fonts Text columnText = new Text(); columnText.setBold(); browser.setColumnTextProxy(columnText); // set color of rows browser.setColorForEvenRows("#FFFFFF"); browser.setColorForOddRows(IWColor.getHexColorString(246, 246, 247)); int column = 1; String nameKey = "UserName"; // define link converter class EntityToPresentationObjectConverter converterLink = new EntityToPresentationObjectConverter() { private com.idega.core.user.data.User administrator = null; private boolean loggedInUserIsAdmin; public PresentationObject getHeaderPresentationObject(EntityPath entityPath, EntityBrowser browser, IWContext iwc) { return browser.getDefaultConverter().getHeaderPresentationObject(entityPath, browser, iwc); } public PresentationObject getPresentationObject(Object entity, EntityPath path, EntityBrowser browser, IWContext iwc) { ICPermission permission = (ICPermission) entity; User user; try { user = getUserBusiness(iwc).getUser(permission.getGroupID()); if (administrator == null) { try { administrator = iwc.getAccessController().getAdministratorUser(); } catch (Exception ex) { System.err.println("[BasicUserOverview] access controller failed " + ex.getMessage()); ex.printStackTrace(System.err); administrator = null; } loggedInUserIsAdmin = iwc.isSuperAdmin(); } Link aLink = new Link(user.getName()); if (!user.equals(administrator)) { aLink.setWindowToOpen(UserPropertyWindow.class); aLink.addParameter(UserPropertyWindow.PARAMETERSTRING_USER_ID, user.getPrimaryKey().toString()); } else if (loggedInUserIsAdmin) { aLink.setWindowToOpen(AdministratorPropertyWindow.class); aLink.addParameter(AdministratorPropertyWindow.PARAMETERSTRING_USER_ID, user.getPrimaryKey().toString()); } return aLink; } catch (RemoteException e) { e.printStackTrace(); return new Text("ERROR NO USER FOR ID" + permission.getGroupID()); } } }; browser.setMandatoryColumnWithConverter(column++, nameKey, converterLink); // CheckBoxConverter recurseCheckBoxConverter = new CheckBoxConverter(RECURSE_PERMISSIONS_TO_CHILDREN_KEY) { private com.idega.core.user.data.User administrator = null; public PresentationObject getPresentationObject(Object permission, EntityPath path, EntityBrowser browser, IWContext iwc) { ICPermission perm = (ICPermission) permission; String checkBoxKey = path.getShortKey(); CheckBox checkBox = new CheckBox(checkBoxKey, Integer.toString(perm.getGroupID())); return checkBox; } }; recurseCheckBoxConverter.setShowTitle(true); browser.setMandatoryColumnWithConverter(column++, RECURSE_PERMISSIONS_TO_CHILDREN_KEY, recurseCheckBoxConverter); //converter ends // CheckBoxConverter deleteCheckBoxConverter = new CheckBoxConverter(DELETE_PERMISSIONS_KEY) { private com.idega.core.user.data.User administrator = null; public PresentationObject getPresentationObject(Object permission, EntityPath path, EntityBrowser browser, IWContext iwc) { ICPermission perm = (ICPermission) permission; String checkBoxKey = path.getShortKey(); CheckBox checkBox = new CheckBox(checkBoxKey, Integer.toString(perm.getGroupID())); return checkBox; } }; deleteCheckBoxConverter.setShowTitle(true); browser.setMandatoryColumnWithConverter(column++, DELETE_PERMISSIONS_KEY, deleteCheckBoxConverter); //converter ends Form form = getGroupPermissionForm(browser); form.add(new HiddenInput(PARAM_SELECTED_GROUP_ID, selectedGroupId)); form.add(new HiddenInput(PARAM_SAVING, "TRUE"));//cannot use this if we put in a navigator in the entitybrowser, change submit button to same value add(form, iwc); }
52002 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52002/d3702277260639af9a4ee9341cf0aa75857fbf44/GroupOwnersWindow.java/clean/src/java/com/idega/user/presentation/GroupOwnersWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2774, 12, 45, 59, 1042, 25522, 71, 13, 1216, 1185, 288, 202, 202, 22315, 6731, 273, 333, 18, 588, 18731, 12, 22315, 71, 1769, 202, 202, 2670, 1803, 12, 22315, 71, 1769, 202, 202, 430, 261, 5688, 7173, 13, 288, 1082, 202, 1862, 2933, 2006, 273, 25522, 71, 18, 588, 1862, 2933, 5621, 1082, 202, 698, 288, 9506, 202, 759, 3733, 25937, 9506, 202, 682, 1430, 5460, 414, 2673, 273, 446, 31, 9506, 202, 430, 261, 22315, 71, 18, 291, 1662, 694, 12, 6460, 67, 23330, 55, 67, 3297, 3719, 288, 6862, 202, 3733, 5460, 414, 2673, 273, 2073, 3514, 5072, 18, 588, 1253, 858, 13963, 12, 22315, 71, 16, 8568, 67, 23330, 55, 67, 3297, 1769, 6862, 202, 430, 261, 3733, 5460, 414, 2673, 480, 446, 597, 401, 3733, 5460, 414, 2673, 18, 291, 1921, 10756, 288, 25083, 202, 3198, 25937, 14976, 2360, 273, 1430, 5460, 414, 2673, 18, 9838, 5621, 25083, 202, 17523, 261, 995, 414, 14976, 2360, 18, 5332, 2134, 10756, 288, 6862, 1082, 202, 4522, 729, 8722, 273, 261, 4522, 13, 25937, 14976, 2360, 18, 4285, 5621, 6862, 1082, 202, 3860, 18, 542, 5041, 12, 1862, 2933, 18, 24847, 67, 8468, 67, 734, 16, 25522, 71, 16, 729, 8722, 18, 10492, 9334, 3170, 8722, 16, 4132, 559, 5541, 16, 3411, 18, 21053, 1769, 25083, 202, 97, 6862, 202, 97, 9506, 202, 97, 9506, 202, 759, 10543, 444, 25937, 487, 25937, 434, 2325, 578, 1206, 487, 25937, 434, 2325, 9506, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2774, 12, 45, 59, 1042, 25522, 71, 13, 1216, 1185, 288, 202, 202, 22315, 6731, 273, 333, 18, 588, 18731, 12, 22315, 71, 1769, 202, 202, 2670, 1803, 12, 22315, 71, 1769, 202, 202, 430, 261, 5688, 7173, 13, 288, 1082, 202, 1862, 2933, 2006, 273, 25522, 71, 18, 588, 1862, 2933, 5621, 1082, 202, 698, 288, 9506, 202, 759, 3733, 25937, 9506, 202, 682, 1430, 5460, 414, 2673, 273, 446, 31, 9506, 202, 430, 261, 22315, 71, 18, 291, 1662, 694, 12, 6460, 67, 23330, 55, 67, 3297, 3719, 288, 6862, 202, 3733, 5460, 414, 2673, 273, 2073, 3514, 5072, 18, 588, 1253, 858, 13963, 12, 22315, 71, 16, 8568, 67, 23330, 55, 67, 2 ]
int count = workbench.getWorkbenchWindowCount(); if (count <= 1 && !workbench.isClosing()) return workbench.close(); else { if (!okToClose()) return false; return hardClose();
try { int count = workbench.getWorkbenchWindowCount(); if (count <= 1 && !workbench.isClosing()) { windowClosed = workbench.close(); } else { if (okToClose()) { windowClosed = hardClose(); } } } finally { if (!windowClosed) { closing = false; updateDisabled = false; }
private boolean busyClose() { // Only do the check if it is OK to close if we are not closing via the // workbench as the workbench will call this itself closing = true; updateDisabled = true; int count = workbench.getWorkbenchWindowCount(); if (count <= 1 && !workbench.isClosing()) return workbench.close(); else { if (!okToClose()) return false; return hardClose(); }}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c57eff31a9efbed460011c47026e613792dbda6b/WorkbenchWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 1250, 21697, 4605, 1435, 288, 202, 759, 5098, 741, 326, 866, 309, 518, 353, 7791, 358, 1746, 309, 732, 854, 486, 7647, 3970, 326, 202, 759, 1440, 22144, 487, 326, 1440, 22144, 903, 745, 333, 6174, 202, 19506, 273, 638, 31, 202, 2725, 8853, 273, 638, 31, 202, 474, 1056, 273, 1440, 22144, 18, 588, 2421, 22144, 3829, 1380, 5621, 202, 430, 261, 1883, 1648, 404, 597, 401, 1252, 22144, 18, 291, 15745, 10756, 202, 202, 2463, 1440, 22144, 18, 4412, 5621, 202, 12107, 288, 202, 202, 430, 16051, 601, 774, 4605, 10756, 1082, 202, 2463, 629, 31, 202, 202, 2463, 7877, 4605, 5621, 202, 9090, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 1250, 21697, 4605, 1435, 288, 202, 759, 5098, 741, 326, 866, 309, 518, 353, 7791, 358, 1746, 309, 732, 854, 486, 7647, 3970, 326, 202, 759, 1440, 22144, 487, 326, 1440, 22144, 903, 745, 333, 6174, 202, 19506, 273, 638, 31, 202, 2725, 8853, 273, 638, 31, 202, 474, 1056, 273, 1440, 22144, 18, 588, 2421, 22144, 3829, 1380, 5621, 202, 430, 261, 1883, 1648, 404, 597, 401, 1252, 22144, 18, 291, 15745, 10756, 202, 202, 2463, 1440, 22144, 18, 4412, 5621, 202, 12107, 288, 202, 202, 430, 16051, 601, 774, 4605, 10756, 1082, 202, 2463, 629, 31, 202, 202, 2463, 7877, 4605, 5621, 202, 9090, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String dbs[] = rep.getDatabaseNames(); for (int i=0;i<dbs.length;i++) { TreeItem newDB = new TreeItem(tiDB, SWT.NONE); newDB.setText(Const.NVL(dbs[i], "")); }
tiParent = new TreeItem(tiTree, SWT.NONE); tiParent.setText(STRING_PARTITIONS); names = rep.getPartitionSchemaNames(); for (int i=0;i<names.length;i++) { TreeItem newItem = new TreeItem(tiParent, SWT.NONE); newItem.setText(Const.NVL(names[i], "")); } tiParent = new TreeItem(tiTree, SWT.NONE); tiParent.setText(STRING_SLAVES); names = rep.getSlaveNames(); for (int i=0;i<names.length;i++) { TreeItem newItem = new TreeItem(tiParent, SWT.NONE); newItem.setText(Const.NVL(names[i], "")); } tiParent = new TreeItem(tiTree, SWT.NONE); tiParent.setText(STRING_CLUSTERS); names = rep.getClusterNames(); for (int i=0;i<names.length;i++) { TreeItem newItem = new TreeItem(tiParent, SWT.NONE); newItem.setText(Const.NVL(names[i], "")); }
public void refreshTree() { try { wTree.removeAll(); // Load the directory tree: rep.setDirectoryTree( new RepositoryDirectory(rep) ); TreeItem tiTree = new TreeItem(wTree, SWT.NONE); tiTree.setText(rep.getName()==null?"-":rep.getName()); //$NON-NLS-1$ TreeItem tiObj = new TreeItem(tiTree, SWT.NONE); tiObj.setText(STRING_OBJECTS); // The Databases... TreeItem tiDB = new TreeItem(tiObj, SWT.NONE); tiDB.setText(STRING_DATABASES); String dbs[] = rep.getDatabaseNames(); for (int i=0;i<dbs.length;i++) { TreeItem newDB = new TreeItem(tiDB, SWT.NONE); newDB.setText(Const.NVL(dbs[i], "")); } // The transformations... if (userinfo.useTransformations()) { TreeItem tiCat = new TreeItem(tiObj, SWT.NONE); tiCat.setText(STRING_TRANSFORMATIONS); TreeItem newCat = new TreeItem(tiCat, SWT.NONE); rep.getDirectoryTree().getTreeWithNames(newCat, rep, dircolor, true, false, false, sortColumn, ascending); } // The Jobs... if (userinfo.useJobs()) { TreeItem tiJob = new TreeItem(tiObj, SWT.NONE); tiJob.setText(STRING_JOBS); TreeItem newJob = new TreeItem(tiJob, SWT.NONE); rep.getDirectoryTree().getTreeWithNames(newJob, rep, dircolor, false, true, false, sortColumn, ascending); } // // Add the users or only yourself // TreeItem tiUser = new TreeItem(tiTree, SWT.NONE); tiUser.setText(STRING_USERS); String users[] = rep.getUserLogins(); for (int i=0;i<users.length;i++) { if (userinfo.isAdministrator() || userinfo.getLogin().equalsIgnoreCase(users[i])) { TreeItem newUser = new TreeItem(tiUser, SWT.NONE); newUser.setText(users[i]); } } // // Add the profiles if you're admin... // if (userinfo.isAdministrator()) { TreeItem tiProf = new TreeItem(tiTree, SWT.NONE); tiProf.setText(STRING_PROFILES); String prof[] = rep.getProfiles(); for (int i=0;i<prof.length;i++) { TreeItem newProf = new TreeItem(tiProf, SWT.NONE); newProf.setText(prof[i]); } } // Set the expanded flags based on the TreeMemory TreeMemory.setExpandedFromMemory(wTree, STRING_REPOSITORY_EXPLORER_TREE_NAME); // Always expand the top level entry... tiTree.setExpanded(true); } catch(KettleException dbe) { new ErrorDialog(shell, Messages.getString("RepositoryExplorerDialog.PopupMenu.Dialog.ErrorRefreshingTree.Title"), Messages.getString("RepositoryExplorerDialog.PopupMenu.Dialog.ErrorRefreshingTree.Message"), dbe); //$NON-NLS-1$ //$NON-NLS-2$ } }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/1ce8b79d6ce4e6087d2dfdd64474adf636738fad/RepositoryExplorerDialog.java/buggy/src/be/ibridge/kettle/repository/dialog/RepositoryExplorerDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4460, 2471, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 91, 2471, 18, 4479, 1595, 5621, 25083, 202, 759, 4444, 326, 1867, 2151, 30, 1082, 202, 14462, 18, 542, 2853, 2471, 12, 394, 6281, 2853, 12, 14462, 13, 11272, 9506, 202, 2471, 1180, 11374, 2471, 273, 394, 4902, 1180, 12, 91, 2471, 16, 348, 8588, 18, 9826, 1769, 1875, 202, 9096, 2471, 18, 542, 1528, 12, 14462, 18, 17994, 1435, 631, 2011, 7225, 17, 6877, 14462, 18, 17994, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 25083, 202, 2471, 1180, 11374, 2675, 273, 394, 4902, 1180, 12, 9096, 2471, 16, 348, 8588, 18, 9826, 1769, 1082, 202, 9096, 2675, 18, 542, 1528, 12, 5804, 67, 9422, 55, 1769, 9506, 202, 759, 1021, 6168, 19684, 2777, 6862, 1082, 202, 2471, 1180, 11374, 2290, 273, 394, 4902, 1180, 12, 9096, 2675, 16, 348, 8588, 18, 9826, 1769, 1875, 202, 9096, 2290, 18, 542, 1528, 12, 5804, 67, 22366, 55, 1769, 9506, 202, 780, 18441, 8526, 273, 2071, 18, 588, 4254, 1557, 5621, 6862, 1082, 202, 1884, 261, 474, 277, 33, 20, 31, 77, 32, 23475, 18, 2469, 31, 77, 27245, 1082, 202, 95, 9506, 202, 2471, 1180, 394, 2290, 273, 394, 4902, 1180, 12, 9096, 2290, 16, 348, 8588, 18, 9826, 1769, 9506, 202, 2704, 2290, 18, 542, 1528, 12, 9661, 18, 11679, 48, 12, 23475, 63, 77, 6487, 1408, 10019, 1082, 202, 97, 25083, 202, 759, 1021, 19245, 2777, 6862, 1082, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4460, 2471, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 91, 2471, 18, 4479, 1595, 5621, 25083, 202, 759, 4444, 326, 1867, 2151, 30, 1082, 202, 14462, 18, 542, 2853, 2471, 12, 394, 6281, 2853, 12, 14462, 13, 11272, 9506, 202, 2471, 1180, 11374, 2471, 273, 394, 4902, 1180, 12, 91, 2471, 16, 348, 8588, 18, 9826, 1769, 1875, 202, 9096, 2471, 18, 542, 1528, 12, 14462, 18, 17994, 1435, 631, 2011, 7225, 17, 6877, 14462, 18, 17994, 10663, 4329, 3993, 17, 5106, 17, 21, 8, 25083, 202, 2471, 1180, 11374, 2675, 273, 394, 4902, 1180, 12, 9096, 2471, 16, 348, 8588, 18, 9826, 1769, 1082, 202, 9096, 2675, 18, 542, 1528, 2 ]
gridBagConstraints.weightx = 0.8;
gridBagConstraints.weightx = 1.0;
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; locationButtonGroup = new javax.swing.ButtonGroup(); mainTabbedPane = new javax.swing.JTabbedPane(); collectionPanel = new javax.swing.JPanel(); specPanel = new javax.swing.JPanel(); cookieRadioButton = new javax.swing.JRadioButton(); bodyRadioButton = new javax.swing.JRadioButton(); jLabel1 = new javax.swing.JLabel(); nameTextField = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); regexTextField = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); requestComboBox = new javax.swing.JComboBox(); conversationPanel = new javax.swing.JPanel(); conversationSplitPane = new javax.swing.JSplitPane(); actionPanel = new javax.swing.JPanel(); jLabel3 = new javax.swing.JLabel(); sampleSpinner = new javax.swing.JSpinner(); fetchButton = new javax.swing.JButton(); resultPanel = new javax.swing.JPanel(); jLabel4 = new javax.swing.JLabel(); dateTextField = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); valueTextField = new javax.swing.JTextField(); jLabel7 = new javax.swing.JLabel(); testButton = new javax.swing.JButton(); analysisPanel = new javax.swing.JPanel(); nameComboBox = new javax.swing.JComboBox(); jLabel8 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); idTable = new javax.swing.JTable(); calculateButton = new javax.swing.JButton(); visualisationPanel = new javax.swing.JPanel(); setLayout(new java.awt.BorderLayout()); collectionPanel.setLayout(new java.awt.GridBagLayout()); specPanel.setLayout(new java.awt.GridBagLayout()); cookieRadioButton.setSelected(true); cookieRadioButton.setText("Cookie"); locationButtonGroup.add(cookieRadioButton); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; specPanel.add(cookieRadioButton, gridBagConstraints); bodyRadioButton.setText("Body"); locationButtonGroup.add(bodyRadioButton); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; specPanel.add(bodyRadioButton, gridBagConstraints); jLabel1.setText("Name"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); specPanel.add(jLabel1, gridBagConstraints); nameTextField.setText("localhost/ JSESSIONID"); nameTextField.setToolTipText("use 'host.domain/path name' for cookies"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; specPanel.add(nameTextField, gridBagConstraints); jLabel2.setText("Regex"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); specPanel.add(jLabel2, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; specPanel.add(regexTextField, gridBagConstraints); jLabel6.setText("Session ID Location"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; specPanel.add(jLabel6, gridBagConstraints); jLabel9.setText("Previous Requests :"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); specPanel.add(jLabel9, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; specPanel.add(requestComboBox, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 0.8; collectionPanel.add(specPanel, gridBagConstraints); conversationPanel.setLayout(new java.awt.BorderLayout()); conversationSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); conversationSplitPane.setResizeWeight(0.5); conversationPanel.add(conversationSplitPane, java.awt.BorderLayout.CENTER); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; collectionPanel.add(conversationPanel, gridBagConstraints); jLabel3.setText("Samples"); actionPanel.add(jLabel3); sampleSpinner.setMinimumSize(new java.awt.Dimension(61, 24)); sampleSpinner.setPreferredSize(new java.awt.Dimension(61, 24)); actionPanel.add(sampleSpinner); fetchButton.setText("Fetch"); fetchButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fetchButtonActionPerformed(evt); } }); actionPanel.add(fetchButton); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; gridBagConstraints.weightx = 0.5; collectionPanel.add(actionPanel, gridBagConstraints); resultPanel.setLayout(new java.awt.GridBagLayout()); jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel4.setText("Date"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; resultPanel.add(jLabel4, gridBagConstraints); dateTextField.setEditable(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 4); gridBagConstraints.weightx = 1.0; resultPanel.add(dateTextField, gridBagConstraints); jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabel5.setText("Value"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; resultPanel.add(jLabel5, gridBagConstraints); valueTextField.setEditable(false); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 4, 0, 4); gridBagConstraints.weightx = 1.0; resultPanel.add(valueTextField, gridBagConstraints); jLabel7.setText("Test Results"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; resultPanel.add(jLabel7, gridBagConstraints); testButton.setText("Test"); testButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { testButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridheight = 3; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); resultPanel.add(testButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST; gridBagConstraints.weightx = 1.0; collectionPanel.add(resultPanel, gridBagConstraints); mainTabbedPane.addTab("Collection", collectionPanel); analysisPanel.setLayout(new java.awt.GridBagLayout()); nameComboBox.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nameComboBoxActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; analysisPanel.add(nameComboBox, gridBagConstraints); jLabel8.setText("Session Identifier"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); analysisPanel.add(jLabel8, gridBagConstraints); idTable.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { }, new String [] { } )); jScrollPane1.setViewportView(idTable); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; analysisPanel.add(jScrollPane1, gridBagConstraints); calculateButton.setText("Calculate"); calculateButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { calculateButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 2; analysisPanel.add(calculateButton, gridBagConstraints); mainTabbedPane.addTab("Analysis", analysisPanel); mainTabbedPane.addTab("Visualisation", visualisationPanel); add(mainTabbedPane, java.awt.BorderLayout.CENTER); }//GEN-END:initComponents
31053 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31053/7f40d8ef954c4cf638c7fecfca899cd240d3f44b/SessionIDPanel.java/buggy/src/org/owasp/webscarab/ui/swing/sessionid/SessionIDPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 2117, 3616, 1114, 273, 394, 6863, 18, 5328, 310, 18, 3616, 1114, 5621, 3639, 2774, 5661, 2992, 8485, 273, 394, 6863, 18, 5328, 310, 18, 46, 5661, 2992, 8485, 5621, 3639, 1849, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 857, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 3878, 19984, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 19984, 3616, 5621, 3639, 1417, 19984, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 19984, 3616, 5621, 3639, 26538, 21, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 508, 16157, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 26538, 22, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 3936, 16157, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 26538, 26, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 26538, 29, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 590, 22199, 273, 394, 6863, 18, 5328, 310, 18, 46, 22199, 5621, 3639, 10039, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 10039, 5521, 8485, 273, 394, 6863, 18, 5328, 310, 18, 46, 5521, 8485, 5621, 3639, 1301, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 26538, 23, 273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 7171, 1435, 288, 759, 16652, 17, 16061, 30, 2738, 7171, 3639, 2252, 18, 2219, 88, 18, 6313, 6852, 8747, 31, 3639, 2117, 3616, 1114, 273, 394, 6863, 18, 5328, 310, 18, 3616, 1114, 5621, 3639, 2774, 5661, 2992, 8485, 273, 394, 6863, 18, 5328, 310, 18, 46, 5661, 2992, 8485, 5621, 3639, 1849, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 857, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 3878, 19984, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 19984, 3616, 5621, 3639, 1417, 19984, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 19984, 3616, 5621, 3639, 26538, 21, 273, 394, 6863, 18, 5328, 2 ]
return hierarchyMembers(hierarchy, evaluator, true);
return hierarchyMembers(hierarchy, evaluator, false);
public List evaluateList(Evaluator evaluator) { Hierarchy hierarchy = hierarchyCalc.evaluateHierarchy(evaluator); return hierarchyMembers(hierarchy, evaluator, true); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/5aca340e1cdbb6179077d96383341db48f0997be/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 987, 5956, 682, 12, 15876, 18256, 13, 288, 13491, 670, 6000, 9360, 273, 27573, 9360, 25779, 18, 21024, 12074, 12, 14168, 639, 1769, 13491, 327, 9360, 6918, 12, 17937, 16, 18256, 16, 629, 1769, 10792, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5397, 1071, 987, 5956, 682, 12, 15876, 18256, 13, 288, 13491, 670, 6000, 9360, 273, 27573, 9360, 25779, 18, 21024, 12074, 12, 14168, 639, 1769, 13491, 327, 9360, 6918, 12, 17937, 16, 18256, 16, 629, 1769, 10792, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Object paramValueObj = null;
public static void prepareParameterBean( IViewerReportDesignHandle designHandle, IViewerReportService service, HttpServletRequest request, ScalarParameterBean parameterBean, ParameterDefinition parameter, Locale locale, boolean isDesigner ) throws ReportServiceException { // Display name String displayName = parameter.getPromptText( ); displayName = ( displayName == null || displayName.length( ) <= 0 ) ? parameter.getDisplayName( ) : displayName; displayName = ( displayName == null || displayName.length( ) <= 0 ) ? parameter.getName( ) : displayName; displayName = ParameterAccessor.htmlEncode( displayName ); parameterBean.setDisplayName( displayName ); // Directly get parameter values from AttributeBean ViewerAttributeBean attrBean = (ViewerAttributeBean) request .getAttribute( IBirtConstants.ATTRIBUTE_BEAN ); assert attrBean != null; // parameter value. Object paramValueObj = null; String parameterValue = null; if ( attrBean.getParametersAsString( ) != null ) paramValueObj = attrBean.getParametersAsString( ).get( parameterBean.getName( ) ); if ( paramValueObj != null ) { if ( paramValueObj instanceof Date ) { // if Date object, format it using standard format parameterValue = ParameterValidationUtil .getDisplayValue( paramValueObj ); } else { parameterValue = paramValueObj.toString( ); } } else if ( !parameter.allowNull( ) && parameter.allowBlank( ) ) { parameterValue = ""; //$NON-NLS-1$ } // isRequired switch ( parameter.getDataType( ) ) { case ParameterDefinition.TYPE_STRING : { // parame default value may be null if it allows "null" value // assert paramDefaultValueObj instanceof String; parameterBean.setRequired( false ); if ( parameterValue == null && !parameter.allowNull( ) ) { parameterBean.setRequired( true ); } else if ( !parameter.allowBlank( ) ) { parameterBean.setRequired( true ); } break; } default : { parameterBean.setRequired( paramValueObj == null ); break; } } // Get Scalar parameter handle ScalarParameterHandle parameterHandle = (ScalarParameterHandle) attrBean .findParameter( parameter.getName( ) ); Map configMap = attrBean.getParameters( ); if ( configMap != null && configMap.containsKey( parameter.getName( ) ) ) { Object configObj = configMap.get( parameter.getName( ) ); // If parameter is Text, format value if ( configObj != null && parameter.getControlType( ) == ParameterDefinition.TEXT_BOX ) { parameterValue = ParameterValidationUtil.getDisplayValue( null, parameterHandle.getPattern( ), configObj, attrBean .getLocale( ) ); } } // Set parameter current value parameterBean.setValue( parameterValue ); // Set parameter default value parameterBean.setDefaultValue( DataUtil.getDefaultValue( parameterHandle.getDataType( ), parameterHandle .getDefaultValue( ) ) ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e67b6a4506a01d4fbb741a982d76ef6cb9dba851/ScalarParameterFragment.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/parameter/ScalarParameterFragment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2911, 1662, 3381, 12, 1082, 202, 45, 18415, 4820, 15478, 3259, 8281, 3259, 16, 1082, 202, 45, 18415, 4820, 1179, 1156, 16, 9984, 590, 16, 1082, 202, 13639, 1662, 3381, 1569, 3381, 16, 5498, 1852, 1569, 16, 1082, 202, 3916, 2573, 16, 1250, 353, 15478, 264, 262, 1216, 8706, 15133, 202, 95, 202, 202, 759, 9311, 508, 202, 202, 780, 16218, 273, 1569, 18, 588, 15967, 1528, 12, 11272, 202, 202, 5417, 461, 273, 261, 16218, 422, 446, 747, 16218, 18, 2469, 12, 262, 1648, 374, 262, 9506, 202, 35, 1569, 18, 588, 20524, 12, 262, 9506, 202, 30, 16218, 31, 202, 202, 5417, 461, 273, 261, 16218, 422, 446, 747, 16218, 18, 2469, 12, 262, 1648, 374, 262, 9506, 202, 35, 1569, 18, 17994, 12, 262, 9506, 202, 30, 16218, 31, 202, 202, 5417, 461, 273, 5498, 8235, 18, 2620, 5509, 12, 16218, 11272, 202, 202, 6775, 3381, 18, 542, 20524, 12, 16218, 11272, 202, 202, 759, 9908, 715, 336, 1569, 924, 628, 3601, 3381, 202, 202, 18415, 1499, 3381, 1604, 3381, 273, 261, 18415, 1499, 3381, 13, 590, 9506, 202, 18, 588, 1499, 12, 23450, 2714, 2918, 18, 11616, 67, 23703, 11272, 202, 202, 11231, 1604, 3381, 480, 446, 31, 202, 202, 759, 1569, 460, 18, 202, 202, 921, 20250, 2675, 273, 446, 31, 202, 202, 780, 31147, 273, 446, 31, 202, 202, 430, 261, 1604, 3381, 18, 588, 2402, 8092, 12, 262, 480, 446, 262, 1082, 202, 891, 620, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2911, 1662, 3381, 12, 1082, 202, 45, 18415, 4820, 15478, 3259, 8281, 3259, 16, 1082, 202, 45, 18415, 4820, 1179, 1156, 16, 9984, 590, 16, 1082, 202, 13639, 1662, 3381, 1569, 3381, 16, 5498, 1852, 1569, 16, 1082, 202, 3916, 2573, 16, 1250, 353, 15478, 264, 262, 1216, 8706, 15133, 202, 95, 202, 202, 759, 9311, 508, 202, 202, 780, 16218, 273, 1569, 18, 588, 15967, 1528, 12, 11272, 202, 202, 5417, 461, 273, 261, 16218, 422, 446, 747, 16218, 18, 2469, 12, 262, 1648, 374, 262, 9506, 202, 35, 1569, 18, 588, 20524, 12, 262, 9506, 202, 30, 16218, 31, 202, 202, 5417, 461, 273, 261, 16218, 422, 446, 747, 16218, 18, 2469, 2 ]
if (growthPeriodCompleted >= growthPeriod) phase = "Harvesting";
if (growthPeriodCompleted >= growthPeriod) { phase = "Harvesting"; workCompleted = 0F; }
public void timePasses(int seconds) { if (phase.equals("Growing")) { growthPeriodCompleted += (seconds / (60F * 60F * 25F)); if (growthPeriodCompleted >= growthPeriod) phase = "Harvesting"; } }
49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/75ab51d7f524e7189b7d94188911cee016adf001/GreenhouseFacility.java/clean/GreenhouseFacility.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 813, 6433, 281, 12, 474, 3974, 13, 288, 4405, 202, 430, 261, 13961, 18, 14963, 2932, 30948, 310, 6, 3719, 288, 1082, 202, 75, 492, 451, 5027, 9556, 1011, 261, 7572, 342, 261, 4848, 42, 380, 4752, 42, 380, 6969, 42, 10019, 1082, 202, 430, 261, 75, 492, 451, 5027, 9556, 1545, 13334, 451, 5027, 13, 6855, 273, 315, 44, 297, 90, 10100, 14432, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 813, 6433, 281, 12, 474, 3974, 13, 288, 4405, 202, 430, 261, 13961, 18, 14963, 2932, 30948, 310, 6, 3719, 288, 1082, 202, 75, 492, 451, 5027, 9556, 1011, 261, 7572, 342, 261, 4848, 42, 380, 4752, 42, 380, 6969, 42, 10019, 1082, 202, 430, 261, 75, 492, 451, 5027, 9556, 1545, 13334, 451, 5027, 13, 6855, 273, 315, 44, 297, 90, 10100, 14432, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
+ "when Property is specified");
+ "when Property is specified");
private boolean validateAndExecute() throws BuildException { String savedFileExt = fileext; if (file == null && filesets.size() == 0) { throw new BuildException( "Specify at least one source - a file or a fileset."); } if (file != null && file.exists() && file.isDirectory()) { throw new BuildException( "Checksum cannot be generated for directories"); } if (file != null && totalproperty != null) { throw new BuildException( "File and Totalproperty cannot co-exist."); } if (property != null && fileext != null) { throw new BuildException( "Property and FileExt cannot co-exist."); } if (property != null) { if (forceOverwrite) { throw new BuildException( "ForceOverwrite cannot be used when Property is specified"); } if (file != null) { if (filesets.size() > 0) { throw new BuildException("Multiple files cannot be used " + "when Property is specified"); } } else { if (filesets.size() > 1) { throw new BuildException("Multiple files cannot be used " + "when Property is specified"); } } } if (verifyProperty != null) { isCondition = true; } if (verifyProperty != null && forceOverwrite) { throw new BuildException( "VerifyProperty and ForceOverwrite cannot co-exist."); } if (isCondition && forceOverwrite) { throw new BuildException("ForceOverwrite cannot be used when " + "conditions are being used."); } messageDigest = null; if (provider != null) { try { messageDigest = MessageDigest.getInstance(algorithm, provider); } catch (NoSuchAlgorithmException noalgo) { throw new BuildException(noalgo, getLocation()); } catch (NoSuchProviderException noprovider) { throw new BuildException(noprovider, getLocation()); } } else { try { messageDigest = MessageDigest.getInstance(algorithm); } catch (NoSuchAlgorithmException noalgo) { throw new BuildException(noalgo, getLocation()); } } if (messageDigest == null) { throw new BuildException("Unable to create Message Digest", getLocation()); } if (fileext == null) { fileext = "." + algorithm; } else if (fileext.trim().length() == 0) { throw new BuildException( "File extension when specified must not be an empty string"); } try { int sizeofFileSet = filesets.size(); for (int i = 0; i < sizeofFileSet; i++) { FileSet fs = (FileSet) filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(getProject()); String[] srcFiles = ds.getIncludedFiles(); for (int j = 0; j < srcFiles.length; j++) { File src = new File(fs.getDir(getProject()), srcFiles[j]); if (totalproperty != null || todir != null) { // Use '/' to calculate digest based on file name. // This is required in order to get the same result // on different platforms. String relativePath = srcFiles[j].replace(File.separatorChar, '/'); relativeFilePaths.put(src, relativePath); } addToIncludeFileMap(src); } } addToIncludeFileMap(file); return generateChecksums(); } finally { fileext = savedFileExt; includeFileMap.clear(); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/0f723fa82a38431c93baa7b8f102a79200b7f620/Checksum.java/clean/src/main/org/apache/tools/ant/taskdefs/Checksum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1954, 1876, 5289, 1435, 1216, 18463, 288, 3639, 514, 5198, 812, 2482, 273, 585, 408, 31, 3639, 309, 261, 768, 422, 446, 597, 1390, 2413, 18, 1467, 1435, 422, 374, 13, 288, 5411, 604, 394, 18463, 12, 7734, 315, 19302, 622, 4520, 1245, 1084, 300, 279, 585, 578, 279, 1390, 278, 1199, 1769, 3639, 289, 3639, 309, 261, 768, 480, 446, 597, 585, 18, 1808, 1435, 597, 585, 18, 291, 2853, 10756, 288, 5411, 604, 394, 18463, 12, 7734, 315, 10723, 2780, 506, 4374, 364, 6402, 8863, 3639, 289, 3639, 309, 261, 768, 480, 446, 597, 2078, 4468, 480, 446, 13, 288, 5411, 604, 394, 18463, 12, 7734, 315, 812, 471, 10710, 4468, 2780, 1825, 17, 7398, 1199, 1769, 3639, 289, 3639, 309, 261, 4468, 480, 446, 597, 585, 408, 480, 446, 13, 288, 5411, 604, 394, 18463, 12, 7734, 315, 1396, 471, 1387, 2482, 2780, 1825, 17, 7398, 1199, 1769, 3639, 289, 3639, 309, 261, 4468, 480, 446, 13, 288, 5411, 309, 261, 5734, 20832, 13, 288, 7734, 604, 394, 18463, 12, 10792, 315, 10997, 20832, 2780, 506, 1399, 1347, 4276, 353, 1269, 8863, 5411, 289, 5411, 309, 261, 768, 480, 446, 13, 288, 7734, 309, 261, 2354, 2413, 18, 1467, 1435, 405, 374, 13, 288, 10792, 604, 394, 18463, 2932, 8438, 1390, 2780, 506, 1399, 315, 13491, 397, 315, 13723, 4276, 353, 1269, 8863, 7734, 289, 5411, 289, 469, 288, 7734, 309, 261, 2354, 2413, 18, 1467, 1435, 405, 404, 13, 288, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 1876, 5289, 1435, 1216, 18463, 288, 3639, 514, 5198, 812, 2482, 273, 585, 408, 31, 3639, 309, 261, 768, 422, 446, 597, 1390, 2413, 18, 1467, 1435, 422, 374, 13, 288, 5411, 604, 394, 18463, 12, 7734, 315, 19302, 622, 4520, 1245, 1084, 300, 279, 585, 578, 279, 1390, 278, 1199, 1769, 3639, 289, 3639, 309, 261, 768, 480, 446, 597, 585, 18, 1808, 1435, 597, 585, 18, 291, 2853, 10756, 288, 5411, 604, 394, 18463, 12, 7734, 315, 10723, 2780, 506, 4374, 364, 6402, 8863, 3639, 289, 3639, 309, 261, 768, 480, 446, 597, 2078, 4468, 480, 446, 13, 288, 5411, 604, 394, 18463, 12, 7734, 315, 812, 471, 10710, 4468, 2780, 1825, 17, 2 ]
button.setToolTipText("Go to end");
button.setToolTipText("Fast forward");
public JButton createGoToEndButton() { JButton button = new JButton(IconManager.shared().getIconGoToEnd()); button.setToolTipText("Go to end"); button.setFocusable(false); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { debugger.getRecorder().goToEnd(); updateInterfaceLater(); Statistics.shared().recordEvent(Statistics.EVENT_DEBUGGER_GOTO_END); } }); return button; }
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/479d874b4f93e1ae6cd1867bd84e84f23d59491f/DBControlPanel.java/clean/src/org/antlr/works/debugger/panels/DBControlPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 28804, 752, 5741, 774, 1638, 3616, 1435, 288, 3639, 28804, 3568, 273, 394, 28804, 12, 5554, 1318, 18, 11574, 7675, 588, 5554, 5741, 774, 1638, 10663, 3639, 3568, 18, 542, 29250, 1528, 2932, 12305, 5104, 8863, 3639, 3568, 18, 542, 9233, 429, 12, 5743, 1769, 3639, 3568, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 871, 13, 288, 7734, 19977, 18, 588, 10777, 7675, 3240, 774, 1638, 5621, 7734, 1089, 1358, 20607, 5621, 7734, 22964, 18, 11574, 7675, 3366, 1133, 12, 8569, 18, 10454, 67, 9394, 3101, 67, 43, 27019, 67, 4415, 1769, 5411, 289, 3639, 15549, 3639, 327, 3568, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 28804, 752, 5741, 774, 1638, 3616, 1435, 288, 3639, 28804, 3568, 273, 394, 28804, 12, 5554, 1318, 18, 11574, 7675, 588, 5554, 5741, 774, 1638, 10663, 3639, 3568, 18, 542, 29250, 1528, 2932, 12305, 5104, 8863, 3639, 3568, 18, 542, 9233, 429, 12, 5743, 1769, 3639, 3568, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 871, 13, 288, 7734, 19977, 18, 588, 10777, 7675, 3240, 774, 1638, 5621, 7734, 1089, 1358, 20607, 5621, 7734, 22964, 18, 11574, 7675, 3366, 1133, 12, 8569, 18, 10454, 67, 9394, 3101, 67, 43, 27019, 67, 4415, 1769, 5411, 289, 3639, 15549, 3639, 327, 3568, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100 ]
String[] files = ds.getIncludedFiles();
String[] files = ds.getIncludedFiles(); String[] dirs = ds.getIncludedDirectories(); /* Old buggy code
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitive != null) bCasesensitive = casesensitive.equalsIgnoreCase("Yes"); DirectoryScanner ds = new DirectoryScanner(); ds.setIncludes(includes); ds.setExcludes(excludes); ds.setBasedir(new File(path)); ds.setCaseSensitive(bCasesensitive); ds.scan(); String[] files = ds.getIncludedFiles(); String newRelativePath = null; String absolutBasePath = test.getParent(); String absolutPath = test.getAbsolutePath(); String absolutFilePath = null; int copyPathFrom = absolutBasePath.length() + 1; for (int i = 0; i < files.length; i++) { File file = new File(absolutPath + File.separator + (String) files[i]); absolutFilePath = file.getParent(); newRelativePath = relPath + File.separator + absolutFilePath.substring(copyPathFrom); //FIX ME: the override for fileset is by default true, needs to be changed addFile(file, newRelativePath, targetOs, true, list); } } else throw new Exception("\"dir\" attribute of fileset is not valide :" + path); }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/91994653572a3171781f1edfa5a2651f3a9a49fb/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 18671, 694, 12, 780, 589, 16, 514, 8526, 6104, 16, 514, 8526, 13644, 16, 18701, 514, 20282, 16, 514, 1018, 15112, 16, 2407, 666, 16, 514, 6088, 6536, 13, 377, 1216, 1185, 225, 288, 565, 1250, 324, 30744, 6536, 273, 629, 31, 565, 1387, 1842, 273, 394, 1387, 12, 803, 1769, 565, 309, 261, 3813, 18, 291, 2853, 10756, 565, 288, 1377, 309, 261, 22186, 6536, 480, 446, 13, 3639, 324, 30744, 6536, 273, 6088, 6536, 18, 14963, 5556, 2932, 22352, 8863, 1377, 8930, 11338, 3780, 273, 394, 8930, 11338, 5621, 1377, 3780, 18, 542, 16815, 12, 18499, 1769, 1377, 3780, 18, 542, 30866, 12, 338, 8993, 1769, 1377, 3780, 18, 542, 2171, 1214, 12, 2704, 1387, 12, 803, 10019, 1377, 3780, 18, 542, 2449, 14220, 12, 70, 30744, 6536, 1769, 1377, 3780, 18, 9871, 5621, 1377, 514, 8526, 1390, 273, 3780, 18, 588, 19323, 2697, 5621, 514, 8526, 7717, 273, 3780, 18, 588, 19323, 13071, 5621, 225, 1748, 18613, 324, 5696, 93, 981, 1377, 514, 394, 16519, 273, 446, 31, 1377, 514, 2417, 355, 322, 15912, 273, 1842, 18, 588, 3054, 5621, 1377, 514, 2417, 355, 322, 743, 273, 1842, 18, 588, 10368, 743, 5621, 1377, 514, 2417, 355, 322, 5598, 273, 446, 31, 1377, 509, 1610, 743, 1265, 273, 2417, 355, 322, 15912, 18, 2469, 1435, 397, 404, 31, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1390, 18, 2469, 31, 277, 27245, 1377, 288, 3639, 1387, 585, 273, 394, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18671, 694, 12, 780, 589, 16, 514, 8526, 6104, 16, 514, 8526, 13644, 16, 18701, 514, 20282, 16, 514, 1018, 15112, 16, 2407, 666, 16, 514, 6088, 6536, 13, 377, 1216, 1185, 225, 288, 565, 1250, 324, 30744, 6536, 273, 629, 31, 565, 1387, 1842, 273, 394, 1387, 12, 803, 1769, 565, 309, 261, 3813, 18, 291, 2853, 10756, 565, 288, 1377, 309, 261, 22186, 6536, 480, 446, 13, 3639, 324, 30744, 6536, 273, 6088, 6536, 18, 14963, 5556, 2932, 22352, 8863, 1377, 8930, 11338, 3780, 273, 394, 8930, 11338, 5621, 1377, 3780, 18, 542, 16815, 12, 18499, 1769, 1377, 3780, 18, 542, 30866, 12, 338, 8993, 1769, 1377, 3780, 18, 542, 2171, 1214, 12, 2704, 2 ]
GeronimoUtils.copyDeploymentPlanToDeployable(module);
private void invokeCommand(int deltaKind, IModule module) throws CoreException { GeronimoUtils.getConfigId(module); //triggers web dp creation GeronimoUtils.copyDeploymentPlanToDeployable(module); // Temporary try { switch (deltaKind) { case ADDED: { doDeploy(module); break; } case CHANGED: { doReploy(module); break; } case REMOVED: { doUndeploy(module); break; } default: throw new IllegalArgumentException(); } } catch (DeploymentManagerCreationException e) { e.printStackTrace(); throw new CoreException(new Status(IStatus.ERROR, "org.eclipse.jst.geronimo.core", 0,e.getMessage(), e)); } }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/ac4bb23c59eab43fb0640daeb3692ef405d378d9/GeronimoServerBehaviour.java/clean/sandbox/eclipse-plugin/org.apache.geronimo.core/src/org/apache/geronimo/core/internal/GeronimoServerBehaviour.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4356, 2189, 12, 474, 3622, 5677, 16, 467, 3120, 1605, 13, 1216, 30015, 288, 202, 202, 43, 264, 265, 381, 83, 1989, 18, 588, 809, 548, 12, 2978, 1769, 368, 313, 8060, 3311, 9986, 6710, 1082, 368, 22791, 202, 202, 698, 288, 1082, 202, 9610, 261, 9878, 5677, 13, 288, 1082, 202, 3593, 11738, 7660, 30, 288, 9506, 202, 2896, 10015, 12, 2978, 1769, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 6469, 21095, 30, 288, 9506, 202, 2896, 426, 2817, 12, 2978, 1769, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 23769, 12135, 30, 288, 9506, 202, 2896, 984, 12411, 12, 2978, 1769, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 1886, 30, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 202, 202, 97, 225, 1044, 261, 6733, 1318, 9906, 503, 425, 13, 288, 25083, 202, 73, 18, 1188, 6332, 5621, 1082, 202, 12849, 394, 30015, 12, 2704, 2685, 12, 45, 1482, 18, 3589, 16, 315, 3341, 18, 20416, 18, 78, 334, 18, 693, 265, 381, 83, 18, 3644, 3113, 374, 16, 73, 18, 24906, 9334, 425, 10019, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4356, 2189, 12, 474, 3622, 5677, 16, 467, 3120, 1605, 13, 1216, 30015, 288, 202, 202, 43, 264, 265, 381, 83, 1989, 18, 588, 809, 548, 12, 2978, 1769, 368, 313, 8060, 3311, 9986, 6710, 1082, 368, 22791, 202, 202, 698, 288, 1082, 202, 9610, 261, 9878, 5677, 13, 288, 1082, 202, 3593, 11738, 7660, 30, 288, 9506, 202, 2896, 10015, 12, 2978, 1769, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 6469, 21095, 30, 288, 9506, 202, 2896, 426, 2817, 12, 2978, 1769, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 23769, 12135, 30, 288, 9506, 202, 2896, 984, 12411, 12, 2978, 1769, 9506, 202, 8820, 31, 1082, 202, 97, 2 ]
public Map getBots() {
public Map<String,Client> getBots() {
public Map getBots() { return bots; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/a88fbfa3689b430924af52ed57ef0dce999ad378/ClientGUI.java/clean/megamek/src/megamek/client/ui/AWT/ClientGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 32, 780, 16, 1227, 34, 2882, 6968, 1435, 288, 3639, 327, 2512, 87, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1635, 32, 780, 16, 1227, 34, 2882, 6968, 1435, 288, 3639, 327, 2512, 87, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
StringTokenizer strtok = new StringTokenizer(sOldRepresentation, ","); StringBuffer sbNewRepresentation = new StringBuffer("");
StringTokenizer strtok = new StringTokenizer(sOldRepresentation, ","); StringBuffer sbNewRepresentation = new StringBuffer("");
private String getConvertedBaseSampleDataRepresentation(String sOldRepresentation) { StringTokenizer strtok = new StringTokenizer(sOldRepresentation, ","); StringBuffer sbNewRepresentation = new StringBuffer(""); while (strtok.hasMoreTokens()) { String sElement = strtok.nextToken().trim(); if (!sElement.startsWith("'")) { sbNewRepresentation.append("'"); sbNewRepresentation.append(sElement); sbNewRepresentation.append("'"); } else { sbNewRepresentation.append(sElement); } sbNewRepresentation.append(","); } return sbNewRepresentation.toString().substring(0, sbNewRepresentation.length() - 1); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7793e94b4d7fab5891f226c6c937e37d85bebad8/LineChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 22063, 2171, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 6674, 2393, 1908, 13742, 273, 394, 6674, 2932, 8863, 3639, 1323, 261, 701, 17692, 18, 5332, 7417, 5157, 10756, 3639, 288, 5411, 514, 272, 1046, 273, 609, 17692, 18, 4285, 1345, 7675, 5290, 5621, 5411, 309, 16051, 87, 1046, 18, 17514, 1190, 2932, 4970, 3719, 5411, 288, 7734, 2393, 1908, 13742, 18, 6923, 2932, 4970, 1769, 7734, 2393, 1908, 13742, 18, 6923, 12, 87, 1046, 1769, 7734, 2393, 1908, 13742, 18, 6923, 2932, 4970, 1769, 5411, 289, 5411, 469, 5411, 288, 7734, 2393, 1908, 13742, 18, 6923, 12, 87, 1046, 1769, 5411, 289, 5411, 2393, 1908, 13742, 18, 6923, 2932, 16, 8863, 3639, 289, 3639, 327, 2393, 1908, 13742, 18, 10492, 7675, 28023, 12, 20, 16, 2393, 1908, 13742, 18, 2469, 1435, 300, 404, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 336, 22063, 2171, 8504, 751, 13742, 12, 780, 272, 7617, 13742, 13, 565, 288, 3639, 16370, 609, 17692, 273, 394, 16370, 12, 87, 7617, 13742, 16, 5753, 1769, 3639, 6674, 2393, 1908, 13742, 273, 394, 6674, 2932, 8863, 3639, 1323, 261, 701, 17692, 18, 5332, 7417, 5157, 10756, 3639, 288, 5411, 514, 272, 1046, 273, 609, 17692, 18, 4285, 1345, 7675, 5290, 5621, 5411, 309, 16051, 87, 1046, 18, 17514, 1190, 2932, 4970, 3719, 5411, 288, 7734, 2393, 1908, 13742, 18, 6923, 2932, 4970, 1769, 7734, 2393, 1908, 13742, 18, 6923, 12, 87, 1046, 1769, 7734, 2393, 1908, 13742, 18, 6923, 2932, 4970, 1769, 5411, 289, 5411, 469, 5411, 288, 7734, 2393, 1908, 13742, 18, 6923, 2 ]
float version = 0.0f; Requirement[] requirements = new Requirement[0]; Class cls = Class.forName(moduleClassName); ModuleContainer module = new ModuleContainer(cls, version); module.setRequirements(requirements); module.setSource(moduleClassName); String id = module.getId(); if (!isLoaded(id)) { table.put(id, module); fireLoaded(module); return module; } else { return getLoadedModule(id); } } catch (ModuleLoaderException exc) { throw exc;
return load(f.toURL());
public static ModuleContainer load(String moduleClassName) throws ModuleLoaderException { try { float version = 0.0f; Requirement[] requirements = new Requirement[0]; Class cls = Class.forName(moduleClassName); ModuleContainer module = new ModuleContainer(cls, version); module.setRequirements(requirements); module.setSource(moduleClassName); String id = module.getId(); if (!isLoaded(id)) { table.put(id, module); fireLoaded(module); return module; } else { return getLoadedModule(id); } } catch (ModuleLoaderException exc) { throw exc; } catch (Exception exc) { throw new ModuleLoaderException(exc); } }
54388 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54388/0beafe97e1f8f8d9612d8cd71ae44dad03dc90fe/ModuleLoader.java/buggy/framework/src/org/schwering/evi/core/ModuleLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 5924, 2170, 1262, 12, 780, 1605, 3834, 13, 225, 202, 15069, 5924, 2886, 503, 288, 202, 202, 698, 288, 1082, 202, 5659, 1177, 273, 374, 18, 20, 74, 31, 1082, 202, 18599, 8526, 8433, 273, 394, 30813, 63, 20, 15533, 25083, 202, 797, 2028, 273, 1659, 18, 1884, 461, 12, 2978, 3834, 1769, 1082, 202, 3120, 2170, 1605, 273, 394, 5924, 2170, 12, 6429, 16, 1177, 1769, 1082, 202, 2978, 18, 542, 15465, 12, 16175, 1769, 1082, 202, 2978, 18, 542, 1830, 12, 2978, 3834, 1769, 1082, 202, 780, 612, 273, 1605, 18, 26321, 5621, 1082, 202, 430, 16051, 291, 8835, 12, 350, 3719, 288, 9506, 202, 2121, 18, 458, 12, 350, 16, 1605, 1769, 9506, 202, 12179, 8835, 12, 2978, 1769, 9506, 202, 2463, 1605, 31, 1082, 202, 97, 469, 288, 9506, 202, 2463, 336, 8835, 3120, 12, 350, 1769, 1082, 202, 97, 202, 202, 97, 1044, 261, 3120, 2886, 503, 3533, 13, 288, 1082, 202, 12849, 3533, 31, 202, 202, 97, 1044, 261, 503, 3533, 13, 288, 1082, 202, 12849, 394, 5924, 2886, 503, 12, 10075, 1769, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 5924, 2170, 1262, 12, 780, 1605, 3834, 13, 225, 202, 15069, 5924, 2886, 503, 288, 202, 202, 698, 288, 1082, 202, 5659, 1177, 273, 374, 18, 20, 74, 31, 1082, 202, 18599, 8526, 8433, 273, 394, 30813, 63, 20, 15533, 25083, 202, 797, 2028, 273, 1659, 18, 1884, 461, 12, 2978, 3834, 1769, 1082, 202, 3120, 2170, 1605, 273, 394, 5924, 2170, 12, 6429, 16, 1177, 1769, 1082, 202, 2978, 18, 542, 15465, 12, 16175, 1769, 1082, 202, 2978, 18, 542, 1830, 12, 2978, 3834, 1769, 1082, 202, 780, 612, 273, 1605, 18, 26321, 5621, 1082, 202, 430, 16051, 291, 8835, 12, 350, 3719, 288, 9506, 202, 2121, 18, 458, 12, 350, 16, 1605, 1769, 2 ]
null, "setOnclick");
null, "setOnclickExpr");
public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] result = new PropertyDescriptor[30]; try { result[0] = new PropertyDescriptor("accesskey", ELFileTag.class, null, "setAccesskey"); result[1] = new PropertyDescriptor("accept", ELFileTag.class, null, "setAccept"); result[2] = new PropertyDescriptor("alt", ELFileTag.class, null, "setAlt"); result[3] = new PropertyDescriptor("altKey", ELFileTag.class, null, "setAltKey"); // This attribute has a non-standard mapping. result[4] = new PropertyDescriptor("disabled", ELFileTag.class, null, "setDisabledExpr"); // This attribute has a non-standard mapping. result[5] = new PropertyDescriptor("indexed", ELFileTag.class, null, "setIndexedExpr"); result[6] = new PropertyDescriptor("maxlength", ELFileTag.class, null, "setMaxlength"); result[7] = new PropertyDescriptor("name", ELFileTag.class, null, "setName"); result[8] = new PropertyDescriptor("onblur", ELFileTag.class, null, "setOnblur"); result[9] = new PropertyDescriptor("onchange", ELFileTag.class, null, "setOnchange"); result[10] = new PropertyDescriptor("onclick", ELFileTag.class, null, "setOnclick"); result[11] = new PropertyDescriptor("ondblclick", ELFileTag.class, null, "setOndblclick"); result[12] = new PropertyDescriptor("onfocus", ELFileTag.class, null, "setOnfocus"); result[13] = new PropertyDescriptor("onkeydown", ELFileTag.class, null, "setOnkeydown"); result[14] = new PropertyDescriptor("onkeypress", ELFileTag.class, null, "setOnkeypress"); result[15] = new PropertyDescriptor("onkeyup", ELFileTag.class, null, "setOnkeyup"); result[16] = new PropertyDescriptor("onmousedown", ELFileTag.class, null, "setOnmousedown"); result[17] = new PropertyDescriptor("onmousemove", ELFileTag.class, null, "setOnmousemove"); result[18] = new PropertyDescriptor("onmouseout", ELFileTag.class, null, "setOnmouseout"); result[19] = new PropertyDescriptor("onmouseover", ELFileTag.class, null, "setOnmouseover"); result[20] = new PropertyDescriptor("onmouseup", ELFileTag.class, null, "setOnmouseup"); result[21] = new PropertyDescriptor("property", ELFileTag.class, null, "setProperty"); result[22] = new PropertyDescriptor("size", ELFileTag.class, null, "setSize"); result[23] = new PropertyDescriptor("style", ELFileTag.class, null, "setStyle"); result[24] = new PropertyDescriptor("styleClass", ELFileTag.class, null, "setStyleClass"); result[25] = new PropertyDescriptor("styleId", ELFileTag.class, null, "setStyleId"); result[26] = new PropertyDescriptor("tabindex", ELFileTag.class, null, "setTabindex"); result[27] = new PropertyDescriptor("title", ELFileTag.class, null, "setTitle"); result[28] = new PropertyDescriptor("titleKey", ELFileTag.class, null, "setTitleKey"); result[29] = new PropertyDescriptor("value", ELFileTag.class, null, "setValue"); } catch (IntrospectionException ex) { ex.printStackTrace(); } return (result); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELFileTagBeanInfo.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFileTagBeanInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5082, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 9436, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 5933, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 2390, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 2390, 653, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 653, 8863, 5411, 368, 1220, 1566, 711, 279, 1661, 17, 10005, 2874, 18, 5411, 563, 63, 24, 65, 273, 394, 26761, 2932, 9278, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 8853, 4742, 8863, 5411, 368, 1220, 1566, 711, 279, 1661, 17, 10005, 2874, 18, 5411, 563, 63, 25, 65, 273, 394, 26761, 2932, 19626, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 15034, 4742, 8863, 5411, 563, 63, 26, 65, 273, 394, 26761, 2932, 27875, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 2747, 2469, 8863, 5411, 563, 63, 27, 65, 273, 394, 26761, 2932, 529, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 26761, 8526, 3911, 12705, 1435, 565, 288, 3639, 26761, 8526, 225, 563, 282, 273, 394, 26761, 63, 5082, 15533, 3639, 775, 288, 5411, 563, 63, 20, 65, 273, 394, 26761, 2932, 3860, 856, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 1862, 856, 8863, 5411, 563, 63, 21, 65, 273, 394, 26761, 2932, 9436, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 5933, 8863, 5411, 563, 63, 22, 65, 273, 394, 26761, 2932, 2390, 3113, 14801, 812, 1805, 18, 1106, 16, 4766, 9079, 446, 16, 315, 542, 10655, 8863, 5411, 563, 63, 23, 65, 273, 394, 26761, 2932, 2390, 653, 3113, 14801, 812, 1805, 18, 1106, 2 ]
assertTrue("set failed", store.set(111, "message2"));
assertTrue("set failed", store.set(111, "message2"));
public void testMessageStorageMessages() throws Exception { if (!testEnabled) { return; } assertTrue("set failed", store.set(111, "message2")); assertTrue("set failed", store.set(113, "message1")); assertTrue("set failed", store.set(120, "message3")); ArrayList messages = new ArrayList(); store.get(100, 115, messages); assertEquals("wrong # of messages", 2, messages.size()); assertEquals("wrong message", "message2", messages.get(0)); assertEquals("wrong message", "message1", messages.get(1)); }
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/643a798dd4cc937847aa83640ede7a72b22b1b90/AbstractMessageStoreTest.java/buggy/test/quickfix/AbstractMessageStoreTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1079, 3245, 5058, 1435, 1216, 1185, 288, 377, 202, 430, 16051, 3813, 1526, 13, 288, 377, 202, 202, 2463, 31, 377, 202, 97, 377, 202, 11231, 5510, 2932, 542, 2535, 3113, 1707, 18, 542, 12, 20227, 16, 315, 2150, 22, 7923, 1769, 3639, 1815, 5510, 2932, 542, 2535, 3113, 1707, 18, 542, 12, 23379, 16, 315, 2150, 21, 7923, 1769, 3639, 1815, 5510, 2932, 542, 2535, 3113, 1707, 18, 542, 12, 22343, 16, 315, 2150, 23, 7923, 1769, 3639, 2407, 2743, 273, 394, 2407, 5621, 3639, 1707, 18, 588, 12, 6625, 16, 22821, 16, 2743, 1769, 3639, 1815, 8867, 2932, 21530, 468, 434, 2743, 3113, 576, 16, 2743, 18, 1467, 10663, 3639, 1815, 8867, 2932, 21530, 883, 3113, 315, 2150, 22, 3113, 2743, 18, 588, 12, 20, 10019, 3639, 1815, 8867, 2932, 21530, 883, 3113, 315, 2150, 21, 3113, 2743, 18, 588, 12, 21, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 1079, 3245, 5058, 1435, 1216, 1185, 288, 377, 202, 430, 16051, 3813, 1526, 13, 288, 377, 202, 202, 2463, 31, 377, 202, 97, 377, 202, 11231, 5510, 2932, 542, 2535, 3113, 1707, 18, 542, 12, 20227, 16, 315, 2150, 22, 7923, 1769, 3639, 1815, 5510, 2932, 542, 2535, 3113, 1707, 18, 542, 12, 23379, 16, 315, 2150, 21, 7923, 1769, 3639, 1815, 5510, 2932, 542, 2535, 3113, 1707, 18, 542, 12, 22343, 16, 315, 2150, 23, 7923, 1769, 3639, 2407, 2743, 273, 394, 2407, 5621, 3639, 1707, 18, 588, 12, 6625, 16, 22821, 16, 2743, 1769, 3639, 1815, 8867, 2932, 21530, 468, 434, 2743, 3113, 576, 16, 2743, 18, 1467, 10663, 3639, 1815, 8867, 2932, 2 ]
return null;
Point loc = getLocation(); SwingUtilities.convertPointToScreen(loc, tree); return loc;
public Point getLocationOnScreen() { return null; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/4cfb23bf0c3cfbad22f148e981d49bf1ca6def84/JTree.java/buggy/libraries/javalib/javax/swing/JTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 4686, 13312, 1398, 7956, 1435, 1377, 288, 3639, 4686, 1515, 273, 13312, 5621, 26145, 11864, 18, 6283, 2148, 774, 7956, 12, 1829, 16, 2151, 1769, 327, 1515, 31, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4202, 1071, 4686, 13312, 1398, 7956, 1435, 1377, 288, 3639, 4686, 1515, 273, 13312, 5621, 26145, 11864, 18, 6283, 2148, 774, 7956, 12, 1829, 16, 2151, 1769, 327, 1515, 31, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public short getShort (int parameterIndex) throws SQLException { }
public short getShort(int parameterIndex) throws SQLException { return 0; }
public short getShort (int parameterIndex) throws SQLException { // XXX-Not Implemented }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/6a061da272f04e1463864065f87f1f3fd61d6162/CallableStatement.java/buggy/src/interfaces/jdbc/postgresql/CallableStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3025, 13157, 261, 474, 25412, 13, 1216, 6483, 202, 95, 202, 202, 759, 11329, 17, 1248, 18788, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3025, 13157, 261, 474, 25412, 13, 1216, 6483, 202, 95, 202, 202, 759, 11329, 17, 1248, 18788, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Image newResult = decorators[i].decorateImage(result, element);
Image newResult = safeDecorateImage(element,result,decorators[i]);
public Image decorateImage(Image image, Object element) { Object adapted = getResourceAdapter(element); Image result = scheduler.decorateWithOverlays(image, element, adapted); FullDecoratorDefinition[] decorators = getDecoratorsFor(element); for (int i = 0; i < decorators.length; i++) { if (decorators[i].getEnablement().isEnabledFor(element)) { Image newResult = decorators[i].decorateImage(result, element); if (newResult != null) result = newResult; } } //Get any adaptions to IResource if (adapted != null) { decorators = getDecoratorsFor(adapted); for (int i = 0; i < decorators.length; i++) { if (decorators[i].isAdaptable() && decorators[i].getEnablement().isEnabledFor(adapted)) { Image newResult = decorators[i].decorateImage(result, adapted); if (newResult != null) result = newResult; } } } return result; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/37e3aa2d1992899ef1944d4167565eee95ea0fcd/DecoratorManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecoratorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 15752, 2040, 12, 2040, 1316, 16, 1033, 930, 13, 288, 202, 202, 921, 28345, 273, 5070, 4216, 12, 2956, 1769, 202, 202, 2040, 563, 273, 8129, 18, 11880, 340, 1190, 11627, 87, 12, 2730, 16, 930, 16, 28345, 1769, 202, 202, 5080, 10361, 1852, 8526, 19423, 273, 336, 7859, 3062, 1290, 12, 2956, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 19423, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 11880, 3062, 63, 77, 8009, 588, 8317, 475, 7675, 291, 1526, 1290, 12, 2956, 3719, 288, 9506, 202, 2040, 394, 1253, 273, 19423, 63, 77, 8009, 11880, 340, 2040, 12, 2088, 16, 930, 1769, 9506, 202, 430, 261, 2704, 1253, 480, 446, 13, 6862, 202, 2088, 273, 394, 1253, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 967, 1281, 1261, 69, 573, 358, 467, 1420, 202, 202, 430, 261, 19195, 329, 480, 446, 13, 288, 1082, 202, 11880, 3062, 273, 336, 7859, 3062, 1290, 12, 19195, 329, 1769, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 19423, 18, 2469, 31, 277, 27245, 288, 9506, 202, 430, 261, 11880, 3062, 63, 77, 8009, 291, 13716, 429, 1435, 6862, 202, 10, 10, 19423, 63, 77, 8009, 588, 8317, 475, 7675, 291, 1526, 1290, 12, 19195, 329, 3719, 288, 6862, 202, 2040, 394, 1253, 273, 25083, 202, 11880, 3062, 63, 77, 8009, 11880, 340, 2040, 12, 2088, 16, 28345, 1769, 6862, 202, 430, 261, 2704, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3421, 15752, 2040, 12, 2040, 1316, 16, 1033, 930, 13, 288, 202, 202, 921, 28345, 273, 5070, 4216, 12, 2956, 1769, 202, 202, 2040, 563, 273, 8129, 18, 11880, 340, 1190, 11627, 87, 12, 2730, 16, 930, 16, 28345, 1769, 202, 202, 5080, 10361, 1852, 8526, 19423, 273, 336, 7859, 3062, 1290, 12, 2956, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 19423, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 11880, 3062, 63, 77, 8009, 588, 8317, 475, 7675, 291, 1526, 1290, 12, 2956, 3719, 288, 9506, 202, 2040, 394, 1253, 273, 19423, 63, 77, 8009, 11880, 340, 2040, 12, 2088, 16, 930, 1769, 9506, 202, 430, 261, 2704, 2 ]
case 2 : if (args[1].equals("-nodisplay")){
case 2: if (args[1].equals("-nodisplay")) {
public void run (String[] args) { int input = 0; boolean display = true; boolean displayft = false; int totalNbBodies = 4; int maxIter = 10000; String xmlFileName ; // Set arguments as read on command line switch (args.length){ case 0 : usage(); System.out.println("No xml descriptor specified - aborting"); quit(); case 2 : if (args[1].equals("-nodisplay")){ display = false; System.out.println(" Running with options set to 4 bodies, 1000 iterations, display off"); break; } else if (args[1].equals("-displayft")){ displayft=true; System.out.println(" Running with options set to 4 bodies, 1000 iterations, fault-tolerance display on"); break; } case 3 : totalNbBodies = Integer.parseInt(args[1]); maxIter = Integer.parseInt(args[2]); break; case 4 : if (args[1].equals("-nodisplay")){ display = false; totalNbBodies = Integer.parseInt(args[2]); maxIter = Integer.parseInt(args[3]); break; } else if (args[1].equals("-displayft")){ displayft=true; totalNbBodies = Integer.parseInt(args[2]); maxIter = Integer.parseInt(args[3]); break; } // else : don't break, which means go to the default case default : usage(); System.out.println(" Running with options set to 4 bodies, 1000 iterations, display on"); } xmlFileName = args[0]; System.out.println(" 1 : Simplest version, one-to-one communication and master"); System.out.println(" 2 : group communication and master"); System.out.println(" 3 : group communication, odd-even-synchronization"); if (displayft){ System.out.print("Choose which version you want to run [123] : "); try { while ( true ) { // Read a character from keyboard input = System.in.read(); if ((input >= 49 && input <=51) ||input == -1) break; } } catch (IOException ioe) { abort (ioe); } }else{ System.out.println(" 4 : group communication, oospmd synchronization"); System.out.println(" 5 : Barnes-Hut, and oospmd"); System.out.print("Choose which version you want to run [12345] : "); try { while ( true ) { // Read a character from keyboard input = System.in.read(); if ((input >= 49 && input <=53) ||input == -1) break; } } catch (IOException ioe) { abort(ioe); } } System.out.println ("Thank you!"); // If need be, create a displayer Displayer displayer = null; if (display) { try { displayer = (Displayer) (ProActive.newActive( Displayer.class.getName(), new Object[] { new Integer(totalNbBodies) , new Boolean (displayft)})); } catch (ActiveObjectCreationException e) { abort (e);} catch (NodeException e) { abort (e);} } // Construct deployment-related variables: pad & nodes descriptorPad = null; VirtualNode vnode; try { descriptorPad = ProActive.getProactiveDescriptor(xmlFileName); } catch (ProActiveException e) { abort(e); } descriptorPad.activateMappings(); vnode = descriptorPad.getVirtualNode("Workers"); Node[] nodes = null; try { nodes = vnode.getNodes(); } catch (NodeException e) { abort(e); } switch (input) { case 49 : org.objectweb.proactive.examples.nbody.simple.Start.main(totalNbBodies, maxIter, displayer, nodes, this); break; case 50 : org.objectweb.proactive.examples.nbody.groupcom.Start.main(totalNbBodies, maxIter, displayer, nodes, this); break; case 51 : org.objectweb.proactive.examples.nbody.groupdistrib.Start.main(totalNbBodies, maxIter, displayer, nodes, this); break; case 52 : org.objectweb.proactive.examples.nbody.groupoospmd.Start.main(totalNbBodies, maxIter, displayer, nodes, this); break; case 53 : org.objectweb.proactive.examples.nbody.barneshut.Start.main(totalNbBodies, maxIter, displayer, nodes, this); break; } }
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/6a4103af87bfad7bfca1448432f5e4b1f5196ffe/Start.java/clean/src/org/objectweb/proactive/examples/nbody/common/Start.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 261, 780, 8526, 833, 13, 288, 3639, 509, 810, 273, 374, 31, 3639, 1250, 2562, 273, 638, 31, 3639, 1250, 2562, 1222, 273, 629, 31, 3639, 509, 2078, 22816, 38, 18134, 273, 1059, 31, 3639, 509, 943, 2360, 273, 12619, 31, 5375, 514, 2025, 4771, 274, 3639, 368, 1000, 1775, 487, 855, 603, 1296, 980, 3639, 1620, 261, 1968, 18, 2469, 15329, 3639, 648, 374, 294, 5411, 4084, 5621, 5411, 2332, 18, 659, 18, 8222, 2932, 2279, 2025, 4950, 1269, 300, 6263, 310, 8863, 5411, 9706, 5621, 3639, 648, 576, 294, 5411, 309, 261, 1968, 63, 21, 8009, 14963, 2932, 17, 19888, 291, 1601, 6, 3719, 95, 7734, 2562, 273, 629, 31, 7734, 2332, 18, 659, 18, 8222, 2932, 3639, 20480, 598, 702, 444, 358, 1059, 25126, 16, 4336, 11316, 16, 2562, 3397, 8863, 7734, 898, 31, 5411, 289, 5411, 469, 309, 261, 1968, 63, 21, 8009, 14963, 2932, 17, 5417, 1222, 6, 3719, 95, 7734, 2562, 1222, 33, 3767, 31, 7734, 2332, 18, 659, 18, 8222, 2932, 3639, 20480, 598, 702, 444, 358, 1059, 25126, 16, 4336, 11316, 16, 12530, 17, 25456, 2562, 603, 8863, 7734, 898, 31, 5411, 289, 3639, 648, 890, 294, 5411, 2078, 22816, 38, 18134, 273, 225, 2144, 18, 2670, 1702, 12, 1968, 63, 21, 19226, 5411, 943, 2360, 273, 225, 2144, 18, 2670, 1702, 12, 1968, 63, 22, 19226, 5411, 898, 31, 3639, 648, 1059, 294, 5411, 309, 261, 1968, 63, 21, 8009, 14963, 2932, 17, 19888, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 261, 780, 8526, 833, 13, 288, 3639, 509, 810, 273, 374, 31, 3639, 1250, 2562, 273, 638, 31, 3639, 1250, 2562, 1222, 273, 629, 31, 3639, 509, 2078, 22816, 38, 18134, 273, 1059, 31, 3639, 509, 943, 2360, 273, 12619, 31, 5375, 514, 2025, 4771, 274, 3639, 368, 1000, 1775, 487, 855, 603, 1296, 980, 3639, 1620, 261, 1968, 18, 2469, 15329, 3639, 648, 374, 294, 5411, 4084, 5621, 5411, 2332, 18, 659, 18, 8222, 2932, 2279, 2025, 4950, 1269, 300, 6263, 310, 8863, 5411, 9706, 5621, 3639, 648, 576, 294, 5411, 309, 261, 1968, 63, 21, 8009, 14963, 2932, 17, 19888, 291, 1601, 6, 3719, 95, 7734, 2562, 273, 629, 31, 7734, 2332, 18, 2 ]
return super.methodArity(methodId);
return super.methodArity(f);
public int methodArity(int methodId) { if (prototypeFlag) { switch (methodId) { case ConstructorId_now: return 0; case ConstructorId_parse: return 1; case ConstructorId_UTC: return 1; case Id_constructor: return 1; case Id_toString: return 0; case Id_toTimeString: return 0; case Id_toDateString: return 0; case Id_toLocaleString: return 0; case Id_toLocaleTimeString: return 0; case Id_toLocaleDateString: return 0; case Id_toUTCString: return 0; case Id_toSource: return 0; case Id_valueOf: return 0; case Id_getTime: return 0; case Id_getYear: return 0; case Id_getFullYear: return 0; case Id_getUTCFullYear: return 0; case Id_getMonth: return 0; case Id_getUTCMonth: return 0; case Id_getDate: return 0; case Id_getUTCDate: return 0; case Id_getDay: return 0; case Id_getUTCDay: return 0; case Id_getHours: return 0; case Id_getUTCHours: return 0; case Id_getMinutes: return 0; case Id_getUTCMinutes: return 0; case Id_getSeconds: return 0; case Id_getUTCSeconds: return 0; case Id_getMilliseconds: return 0; case Id_getUTCMilliseconds: return 0; case Id_getTimezoneOffset: return 0; case Id_setTime: return 1; case Id_setMilliseconds: return 1; case Id_setUTCMilliseconds: return 1; case Id_setSeconds: return 2; case Id_setUTCSeconds: return 2; case Id_setMinutes: return 3; case Id_setUTCMinutes: return 3; case Id_setHours: return 4; case Id_setUTCHours: return 4; case Id_setDate: return 1; case Id_setUTCDate: return 1; case Id_setMonth: return 2; case Id_setUTCMonth: return 2; case Id_setFullYear: return 3; case Id_setUTCFullYear: return 3; case Id_setYear: return 1; } } return super.methodArity(methodId); }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/3526c0f6981dc6716171a07605c6bcc7b6b20cb3/NativeDate.java/buggy/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 707, 686, 560, 12, 474, 707, 548, 13, 565, 288, 3639, 309, 261, 18541, 4678, 13, 288, 5411, 1620, 261, 2039, 548, 13, 288, 7734, 648, 11417, 548, 67, 3338, 30, 377, 327, 374, 31, 7734, 648, 11417, 548, 67, 2670, 30, 282, 327, 404, 31, 7734, 648, 11417, 548, 67, 11471, 30, 377, 327, 404, 31, 7734, 648, 3124, 67, 12316, 30, 3639, 327, 404, 31, 7734, 648, 3124, 67, 10492, 30, 6647, 327, 374, 31, 7734, 648, 3124, 67, 869, 950, 780, 30, 4202, 327, 374, 31, 7734, 648, 3124, 67, 869, 1626, 780, 30, 4202, 327, 374, 31, 7734, 648, 3124, 67, 869, 3916, 780, 30, 377, 327, 374, 31, 7734, 648, 3124, 67, 869, 3916, 950, 780, 30, 327, 374, 31, 7734, 648, 3124, 67, 869, 3916, 1626, 780, 30, 327, 374, 31, 7734, 648, 3124, 67, 869, 11471, 780, 30, 3639, 327, 374, 31, 7734, 648, 3124, 67, 869, 1830, 30, 6647, 327, 374, 31, 7734, 648, 3124, 67, 1132, 951, 30, 5411, 327, 374, 31, 7734, 648, 3124, 67, 588, 950, 30, 5411, 327, 374, 31, 7734, 648, 3124, 67, 588, 5593, 30, 5411, 327, 374, 31, 7734, 648, 3124, 67, 588, 5080, 5593, 30, 3639, 327, 374, 31, 7734, 648, 3124, 67, 588, 11471, 5080, 5593, 30, 377, 327, 374, 31, 7734, 648, 3124, 67, 588, 5445, 30, 6647, 327, 374, 31, 7734, 648, 3124, 67, 588, 11471, 5445, 30, 3639, 327, 374, 31, 7734, 648, 3124, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 707, 686, 560, 12, 474, 707, 548, 13, 565, 288, 3639, 309, 261, 18541, 4678, 13, 288, 5411, 1620, 261, 2039, 548, 13, 288, 7734, 648, 11417, 548, 67, 3338, 30, 377, 327, 374, 31, 7734, 648, 11417, 548, 67, 2670, 30, 282, 327, 404, 31, 7734, 648, 11417, 548, 67, 11471, 30, 377, 327, 404, 31, 7734, 648, 3124, 67, 12316, 30, 3639, 327, 404, 31, 7734, 648, 3124, 67, 10492, 30, 6647, 327, 374, 31, 7734, 648, 3124, 67, 869, 950, 780, 30, 4202, 327, 374, 31, 7734, 648, 3124, 67, 869, 1626, 780, 30, 4202, 327, 374, 31, 7734, 648, 3124, 67, 869, 3916, 780, 30, 377, 327, 374, 31, 7734, 648, 3124, 2 ]
return false; }
return false; }
public boolean getBoolean(int columnIndex) throws SQLException { return false; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/cb88ccf91092199f5dd4fc4fd03d021643a6e0ec/SCR20557.java/clean/testData/refactoring/inheritanceToDelegation/scr20557/after/xxx/SCR20557.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 12835, 12, 474, 14882, 13, 1216, 6483, 288, 1377, 327, 629, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 12835, 12, 474, 14882, 13, 1216, 6483, 288, 1377, 327, 629, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return RubyBoolean.newBoolean(runtime, obj.isKindOf(this));
return getRuntime().newBoolean(obj.isKindOf(this));
public RubyBoolean op_eqq(IRubyObject obj) { return RubyBoolean.newBoolean(runtime, obj.isKindOf(this)); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 1061, 67, 11253, 85, 12, 7937, 10340, 921, 1081, 13, 288, 3639, 327, 18814, 7675, 2704, 5507, 12, 2603, 18, 291, 5677, 951, 12, 2211, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19817, 5507, 1061, 67, 11253, 85, 12, 7937, 10340, 921, 1081, 13, 288, 3639, 327, 18814, 7675, 2704, 5507, 12, 2603, 18, 291, 5677, 951, 12, 2211, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (kind > 50) kind = 50;
if (kind > 52) kind = 52;
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 28; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 27: if ((0xfbfffcfaffffd9ffL & l) == 0L) break; if (kind > 50) kind = 50; jjCheckNAdd(27); break; case 18: if ((0xfbfffcfaffffd9ffL & l) == 0L) break; if (kind > 50) kind = 50; jjCheckNAdd(27); break; case 2: if ((0xfbffd4faffffd9ffL & l) != 0L) { if (kind > 50) kind = 50; jjCheckNAdd(27); } if (curChar == 33) { if (kind > 7) kind = 7; } else if (curChar == 38) jjstateSet[jjnewStateCnt++] = 3; break; case 3: if (curChar == 38 && kind > 5) kind = 5; break; case 4: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 3; break; case 12: if (curChar == 33 && kind > 7) kind = 7; break; case 13: if (curChar == 58) kind = 29; break; case 26: if ((0xfbffd4faffffd9ffL & l) == 0L) break; if (kind > 50) kind = 50; jjCheckNAdd(27); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0xd7ffffffffffffffL & l) != 0L) { if (kind > 50) kind = 50; jjCheckNAdd(27); } if ((0x400000004000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 0; break; case 18: if ((0xd7ffffffffffffffL & l) != 0L) { if (kind > 50) kind = 50; jjCheckNAdd(27); } if ((0x20000000200L & l) != 0L) jjstateSet[jjnewStateCnt++] = 17; break; case 2: if ((0xd7ffffffffffffffL & l) != 0L) { if (kind > 50) kind = 50; jjCheckNAdd(27); } if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 24; else if ((0x400000004L & l) != 0L) jjstateSet[jjnewStateCnt++] = 18; else if ((0x400000004000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 10; else if ((0x800000008000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 5; else if ((0x200000002L & l) != 0L) jjstateSet[jjnewStateCnt++] = 1; else if (curChar == 124) jjstateSet[jjnewStateCnt++] = 7; break; case 0: if ((0x1000000010L & l) != 0L && kind > 5) kind = 5; break; case 5: if ((0x4000000040000L & l) != 0L && kind > 6) kind = 6; break; case 6: if ((0x800000008000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 5; break; case 7: if (curChar == 124 && kind > 6) kind = 6; break; case 8: if (curChar == 124) jjstateSet[jjnewStateCnt++] = 7; break; case 9: if ((0x10000000100000L & l) != 0L && kind > 7) kind = 7; break; case 10: if ((0x800000008000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 9; break; case 11: if ((0x400000004000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 10; break; case 14: case 20: if ((0x4000000040000L & l) != 0L) jjCheckNAdd(13); break; case 15: if ((0x2000000020L & l) != 0L) jjstateSet[jjnewStateCnt++] = 14; break; case 16: if ((0x8000000080L & l) != 0L) jjstateSet[jjnewStateCnt++] = 15; break; case 17: if ((0x8000000080L & l) != 0L) jjstateSet[jjnewStateCnt++] = 16; break; case 19: if ((0x400000004L & l) != 0L) jjstateSet[jjnewStateCnt++] = 18; break; case 21: if ((0x2000000020L & l) != 0L) jjstateSet[jjnewStateCnt++] = 20; break; case 22: if ((0x8000000080L & l) != 0L) jjstateSet[jjnewStateCnt++] = 21; break; case 23: if ((0x4000000040000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 22; break; case 24: if ((0x200000002L & l) != 0L) jjstateSet[jjnewStateCnt++] = 23; break; case 25: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 24; break; case 26: if ((0xd7ffffffffffffffL & l) == 0L) break; if (kind > 50) kind = 50; jjCheckNAdd(27); break; case 27: if ((0xd7ffffffffffffffL & l) == 0L) break; if (kind > 50) kind = 50; jjCheckNAdd(27); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: case 27: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 50) kind = 50; jjCheckNAdd(27); break; case 18: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 50) kind = 50; jjCheckNAdd(27); break; case 2: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 50) kind = 50; jjCheckNAdd(27); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 28 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/601b3f248542d14ed30dbff00c82237b24b58ac4/ZimbraQueryParserTokenManager.java/clean/ZimbraServer/src/java/com/zimbra/cs/index/queryparser/ZimbraQueryParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750, 273, 9131, 31, 282, 509, 277, 273, 404, 31, 282, 10684, 2019, 694, 63, 20, 65, 273, 787, 1119, 31, 282, 509, 525, 16, 3846, 273, 374, 92, 27, 18217, 74, 31, 282, 364, 261, 25708, 13, 282, 288, 1377, 309, 261, 9904, 78, 78, 2260, 422, 374, 92, 27, 18217, 74, 13, 540, 868, 2570, 54, 9284, 5621, 1377, 309, 261, 1397, 2156, 411, 5178, 13, 1377, 288, 540, 1525, 328, 273, 404, 48, 2296, 662, 2156, 31, 540, 4639, 6452, 30, 741, 540, 288, 5411, 1620, 12, 78, 78, 2019, 694, 63, 413, 77, 5717, 5411, 288, 9079, 648, 404, 30, 9079, 648, 12732, 30, 5375, 309, 14015, 20, 5841, 70, 1403, 7142, 507, 9460, 72, 29, 1403, 48, 473, 328, 13, 422, 374, 48, 13, 5397, 898, 31, 5375, 309, 261, 9224, 405, 6437, 13, 5397, 3846, 273, 6437, 31, 5375, 10684, 1564, 50, 986, 12, 5324, 1769, 5375, 898, 31, 9079, 648, 6549, 30, 5375, 309, 14015, 20, 5841, 70, 1403, 7142, 507, 9460, 72, 29, 1403, 48, 473, 328, 13, 422, 374, 48, 13, 5397, 898, 31, 5375, 309, 261, 9224, 405, 6437, 13, 5397, 3846, 273, 6437, 31, 5375, 10684, 1564, 50, 986, 12, 5324, 1769, 5375, 898, 31, 9079, 648, 576, 30, 5375, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750, 273, 9131, 31, 282, 509, 277, 273, 404, 31, 282, 10684, 2019, 694, 63, 20, 65, 273, 787, 1119, 31, 282, 509, 525, 16, 3846, 273, 374, 92, 27, 18217, 74, 31, 282, 364, 261, 25708, 13, 282, 288, 1377, 309, 261, 9904, 78, 78, 2260, 422, 374, 92, 27, 18217, 74, 13, 540, 868, 2570, 54, 9284, 5621, 1377, 309, 261, 1397, 2156, 411, 5178, 13, 1377, 288, 540, 1525, 328, 273, 404, 48, 2296, 662, 2156, 31, 540, 4639, 6452, 30, 2 ]
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return Compression.class; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/Compression.java/clean/core/src/classpath/javax/javax/print/attribute/standard/Compression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1659, 19110, 1435, 225, 288, 565, 327, 21139, 18, 1106, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1659, 19110, 1435, 225, 288, 565, 327, 21139, 18, 1106, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"hbox",
"hbox",
protected void registerFactories() { registerBeanFactory( "button", JButton.class ); registerBeanFactory( "checkBox", JCheckBox.class ); registerBeanFactory( "checkBoxMenuItem", JCheckBoxMenuItem.class ); registerBeanFactory( "comboBox", JComboBox.class ); // how to add content there ? // Have a ComboBoxModel (just one should have a Table or Tree Model objects) ? // can the element control it's children ? // but children should also be able to be any component (as Swing comps. are all container) registerBeanFactory( "desktopPane", JDesktopPane.class ); registerBeanFactory( "editorPane", JEditorPane.class ); registerBeanFactory( "fileChooser", JFileChooser.class ); registerBeanFactory( "frame", JFrame.class ); registerBeanFactory( "internalFrame", JInternalFrame.class ); registerBeanFactory( "label", JLabel.class ); registerBeanFactory( "list", JList.class ); registerBeanFactory( "menu", JMenu.class ); registerBeanFactory( "menuBar", JMenuBar.class ); registerBeanFactory( "menuItem", JMenuItem.class ); registerBeanFactory( "panel", JPanel.class ); registerBeanFactory( "passwordField", JPasswordField.class ); registerBeanFactory( "popupMenu", JPopupMenu.class ); registerBeanFactory( "progressBar", JProgressBar.class ); registerBeanFactory( "radioButton", JRadioButton.class ); registerBeanFactory( "radioButtonMenuItem", JRadioButtonMenuItem.class ); registerBeanFactory( "optionPane", JOptionPane.class ); registerBeanFactory( "scrollPane", JScrollPane.class ); registerBeanFactory( "separator", JSeparator.class ); registerFactory( "splitPane", new Factory() { public Object newInstance() { JSplitPane answer = new JSplitPane(); answer.setLeftComponent(null); answer.setRightComponent(null); answer.setTopComponent(null); answer.setBottomComponent(null); return answer; } } ); // Box related layout components registerFactory( "hbox", new Factory() { public Object newInstance() { return Box.createHorizontalBox(); } } ); registerFactory( "vbox", new Factory() { public Object newInstance() { return Box.createVerticalBox(); } } ); registerBeanFactory( "tabbedPane", JTabbedPane.class ); registerBeanFactory( "table", JTable.class ); registerBeanFactory( "textArea", JTextArea.class ); registerBeanFactory( "textField", JTextField.class ); registerBeanFactory( "toggleButton", JToggleButton.class ); registerBeanFactory( "tree", JTree.class ); registerBeanFactory( "toolBar", JToolBar.class ); }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/cbaa8d2430c2bf467e589a423fee7c83e3f0eb2f/SwingTagLibrary.java/buggy/jelly-tags/swing/src/java/org/apache/commons/jelly/tags/swing/SwingTagLibrary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1744, 19271, 1435, 288, 3639, 1744, 3381, 1733, 12, 315, 5391, 3113, 28804, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 1893, 3514, 3113, 804, 19174, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 1893, 3514, 12958, 3113, 804, 19174, 12958, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 25053, 3514, 3113, 804, 22199, 18, 1106, 11272, 3639, 368, 3661, 358, 527, 913, 1915, 692, 3639, 368, 21940, 279, 1286, 1075, 3514, 1488, 261, 3732, 1245, 1410, 1240, 279, 3555, 578, 4902, 3164, 2184, 13, 692, 3639, 368, 848, 326, 930, 3325, 518, 1807, 2325, 692, 3639, 368, 1496, 2325, 1410, 2546, 506, 7752, 358, 506, 1281, 1794, 261, 345, 26145, 13979, 18, 854, 777, 1478, 13, 3639, 1744, 3381, 1733, 12, 315, 31949, 8485, 3113, 804, 27583, 8485, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 9177, 8485, 3113, 804, 6946, 8485, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 768, 17324, 3113, 804, 812, 17324, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 3789, 3113, 804, 3219, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 7236, 3219, 3113, 804, 3061, 3219, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 1925, 3113, 21403, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 1098, 3113, 804, 682, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 5414, 3113, 804, 4599, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 5414, 5190, 3113, 804, 4599, 5190, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1744, 19271, 1435, 288, 3639, 1744, 3381, 1733, 12, 315, 5391, 3113, 28804, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 1893, 3514, 3113, 804, 19174, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 1893, 3514, 12958, 3113, 804, 19174, 12958, 18, 1106, 11272, 3639, 1744, 3381, 1733, 12, 315, 25053, 3514, 3113, 804, 22199, 18, 1106, 11272, 3639, 368, 3661, 358, 527, 913, 1915, 692, 3639, 368, 21940, 279, 1286, 1075, 3514, 1488, 261, 3732, 1245, 1410, 1240, 279, 3555, 578, 4902, 3164, 2184, 13, 692, 3639, 368, 848, 326, 930, 3325, 518, 1807, 2325, 692, 3639, 368, 1496, 2325, 1410, 2546, 506, 7752, 358, 506, 1281, 1794, 261, 345, 26145, 13979, 18, 2 ]
properties.add(new DefaultDavProperty(JCR_LENGTH, String.valueOf(prop.getLength())));
properties.add(new DefaultDavProperty(JCR_LENGTH, String.valueOf(prop.getLength()), true));
protected void initProperties() { super.initProperties(); if (exists()) { try { Property prop = (Property)item; int type = prop.getType(); // set the content type String contentType; if (!isMultiple()) { contentType = (type == PropertyType.BINARY) ? "application/octet-stream" : "text/plain"; properties.add(new DefaultDavProperty(DavPropertyName.GETCONTENTTYPE, contentType)); } // else: no contenttype for multivalue properties // add jcr-specific resource properties properties.add(new DefaultDavProperty(JCR_TYPE, PropertyType.nameFromValue(type))); if (isMultiple()) { properties.add(new ValuesProperty(prop.getValues())); properties.add(new LengthsProperty(prop.getLengths())); } else { properties.add(new DefaultDavProperty(JCR_VALUE, ValueHelper.serialize(prop.getValue(), false))); properties.add(new DefaultDavProperty(JCR_LENGTH, String.valueOf(prop.getLength()))); } } catch (RepositoryException e) { log.error("Failed to retrieve resource properties: "+e.getMessage()); } } }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/4fdade8a8a0ca260371a4274ff24ee70c758a80e/DefaultItemResource.java/buggy/contrib/jcr-server/server/src/java/org/apache/jackrabbit/webdav/jcr/DefaultItemResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 2297, 1435, 288, 3639, 2240, 18, 2738, 2297, 5621, 3639, 309, 261, 1808, 10756, 288, 5411, 775, 288, 7734, 4276, 2270, 273, 261, 1396, 13, 1726, 31, 7734, 509, 618, 273, 2270, 18, 588, 559, 5621, 7734, 368, 444, 326, 913, 618, 7734, 514, 5064, 31, 7734, 309, 16051, 291, 8438, 10756, 288, 10792, 5064, 273, 261, 723, 422, 22983, 18, 16813, 13, 692, 315, 3685, 19, 17909, 17, 3256, 6, 294, 315, 955, 19, 7446, 14432, 10792, 1790, 18, 1289, 12, 2704, 2989, 40, 842, 1396, 12, 40, 842, 13073, 18, 3264, 6067, 1157, 30651, 16, 5064, 10019, 7734, 289, 368, 469, 30, 1158, 27704, 364, 1778, 427, 391, 1790, 7734, 368, 527, 23546, 17, 12524, 1058, 1790, 7734, 1790, 18, 1289, 12, 2704, 2989, 40, 842, 1396, 12, 46, 5093, 67, 2399, 16, 22983, 18, 529, 1265, 620, 12, 723, 3719, 1769, 7734, 309, 261, 291, 8438, 10756, 288, 10792, 1790, 18, 1289, 12, 2704, 6876, 1396, 12, 5986, 18, 588, 1972, 1435, 10019, 10792, 1790, 18, 1289, 12, 2704, 11311, 87, 1396, 12, 5986, 18, 588, 22406, 1435, 10019, 7734, 289, 469, 288, 10792, 1790, 18, 1289, 12, 2704, 2989, 40, 842, 1396, 12, 46, 5093, 67, 4051, 16, 1445, 2276, 18, 6288, 12, 5986, 18, 24805, 9334, 629, 3719, 1769, 10792, 1790, 18, 1289, 12, 2704, 2989, 40, 842, 1396, 12, 46, 5093, 67, 7096, 16, 514, 18, 1132, 951, 12, 5986, 18, 588, 1782, 1435, 3631, 638, 10019, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 2297, 1435, 288, 3639, 2240, 18, 2738, 2297, 5621, 3639, 309, 261, 1808, 10756, 288, 5411, 775, 288, 7734, 4276, 2270, 273, 261, 1396, 13, 1726, 31, 7734, 509, 618, 273, 2270, 18, 588, 559, 5621, 7734, 368, 444, 326, 913, 618, 7734, 514, 5064, 31, 7734, 309, 16051, 291, 8438, 10756, 288, 10792, 5064, 273, 261, 723, 422, 22983, 18, 16813, 13, 692, 315, 3685, 19, 17909, 17, 3256, 6, 294, 315, 955, 19, 7446, 14432, 10792, 1790, 18, 1289, 12, 2704, 2989, 40, 842, 1396, 12, 40, 842, 13073, 18, 3264, 6067, 1157, 30651, 16, 5064, 10019, 7734, 289, 368, 469, 30, 1158, 27704, 364, 1778, 427, 391, 1790, 7734, 368, 527, 23546, 2 ]
char result = backing_buffer [position ()]; position (position () + 1); return result;
return backing_buffer [(pos++) + array_offset];
public char get () { checkForUnderflow(); char result = backing_buffer [position ()]; position (position () + 1); return result; }
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/3a3b655bdfd8b1655b2fb03ce4d742117a96705e/CharBufferImpl.java/buggy/libjava/java/nio/CharBufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1149, 336, 1832, 225, 288, 565, 13855, 14655, 2426, 5621, 565, 1149, 563, 273, 15394, 67, 4106, 306, 3276, 1832, 15533, 565, 1754, 261, 3276, 1832, 397, 404, 1769, 565, 327, 563, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1149, 336, 1832, 225, 288, 565, 13855, 14655, 2426, 5621, 565, 1149, 563, 273, 15394, 67, 4106, 306, 3276, 1832, 15533, 565, 1754, 261, 3276, 1832, 397, 404, 1769, 565, 327, 563, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
getCurrentTask( ).setContext( initialContext ); switchTo( sCurrentActiveTask );
ITask currentTask = getCurrentTask( ); if ( currentTask != null ) { getCurrentTask( ).setContext( initialContext ); switchTo( sCurrentActiveTask ); }
public IWizardContext open( String[] sTasks, String topTaskId, IWizardContext initialContext ) { // Update initial context context = initialContext; // Initialize UI elelents GridLayout glShell = new GridLayout( ); glShell.marginHeight = 0; glShell.marginWidth = 0; glShell.verticalSpacing = 0; display = Display.getDefault( ); if ( PlatformUI.isWorkbenchRunning( ) ) { shell = new Shell( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL ); } else { shell = new Shell( display, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL ); } // Set shell properties shell.setLayout( glShell ); shell.setSize( iWizardWidth, iWizardHeight ); shell.setText( wizardTitle ); if ( wizardImage != null ) { shell.setImage( wizardImage ); } shell.addControlListener( this ); // Initialize and layout UI components of the framework tasklist = new TaskList( shell, SWT.NONE, this ); Label lblSeparator = new Label( shell, SWT.SEPARATOR | SWT.HORIZONTAL ); lblSeparator.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); placeComponents( ); lblSeparator = new Label( shell, SWT.SEPARATOR | SWT.HORIZONTAL ); lblSeparator.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); Composite cmpButton = new Composite( shell, SWT.NONE ); { cmpButton.setLayout( new GridLayout( ) ); GridData gd = new GridData( ); gd.horizontalAlignment = SWT.END; cmpButton.setLayoutData( gd ); } buttonpanel = new ButtonPanel( cmpButton, SWT.NONE, this ); // Add tasks String[] allTasks = TasksManager.instance( ) .getTasksForWizard( sWizardID ); // ADD DEFAULT TASKS AS DEFINED BY EXTENSIONS for ( int i = 0; i < allTasks.length; i++ ) { addTask( allTasks[i] ); } // ADD TASKS SPECIFIED DURING INVOCATION if ( sTasks != null && sTasks.length > 0 ) { for ( int i = 0; i < sTasks.length; i++ ) { if ( !vTaskIDs.contains( sTasks[i] ) ) { addTask( sTasks[i] ); } } } // Check task existence if ( vTaskIDs.size( ) == 0 ) { return null; } // Open the specified task if ( topTaskId == null ) { sCurrentActiveTask = vTaskIDs.get( 0 ).toString( ); if ( vTaskIDs.size( ) > 1 ) { buttonpanel.setButtonEnabled( ButtonPanel.NEXT, true ); } } else { assert vTaskIDs.contains( topTaskId ); sCurrentActiveTask = topTaskId; int taskIndex = vTaskIDs.indexOf( topTaskId ); if ( taskIndex > 0 ) { buttonpanel.setButtonEnabled( ButtonPanel.BACK, true ); } if ( taskIndex < vTaskIDs.size( ) - 1 ) { buttonpanel.setButtonEnabled( ButtonPanel.NEXT, true ); } } getCurrentTask( ).setContext( initialContext ); switchTo( sCurrentActiveTask ); shell.setLocation( ( display.getClientArea( ).width / 2 - ( shell.getSize( ).x / 2 ) ), ( display.getClientArea( ).height / 2 ) - ( shell.getSize( ).y / 2 ) ); shell.addDisposeListener( this ); shell.open( ); while ( !shell.isDisposed( ) ) { if ( !display.readAndDispatch( ) ) { display.sleep( ); } } if ( !bWasCancelled ) { return this.context; } return null; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/df749af233ec4b7ab4ff5a2378a06e2616f2033a/WizardBase.java/clean/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/WizardBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 27130, 1042, 1696, 12, 514, 8526, 272, 6685, 16, 514, 1760, 30182, 16, 1082, 202, 45, 27130, 1042, 2172, 1042, 262, 202, 95, 202, 202, 759, 2315, 2172, 819, 202, 202, 2472, 273, 2172, 1042, 31, 202, 202, 759, 9190, 6484, 415, 292, 4877, 202, 202, 6313, 3744, 5118, 13220, 273, 394, 7145, 3744, 12, 11272, 202, 202, 7043, 13220, 18, 10107, 2686, 273, 374, 31, 202, 202, 7043, 13220, 18, 10107, 2384, 273, 374, 31, 202, 202, 7043, 13220, 18, 17824, 18006, 273, 374, 31, 202, 202, 5417, 273, 9311, 18, 588, 1868, 12, 11272, 202, 202, 430, 261, 11810, 5370, 18, 291, 2421, 22144, 7051, 12, 262, 262, 202, 202, 95, 1082, 202, 10304, 273, 394, 19433, 12, 11810, 5370, 18, 588, 2421, 22144, 12, 262, 6862, 202, 18, 588, 4236, 12, 262, 6862, 202, 18, 588, 3896, 13220, 12, 262, 16, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 6862, 202, 96, 348, 8588, 18, 862, 4574, 571, 348, 8588, 18, 25039, 67, 6720, 1013, 11272, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 10304, 273, 394, 19433, 12, 2562, 16, 348, 8588, 18, 2565, 18683, 67, 6566, 49, 6862, 202, 96, 348, 8588, 18, 862, 4574, 571, 348, 8588, 18, 25039, 67, 6720, 1013, 11272, 202, 202, 97, 202, 202, 759, 1000, 5972, 1790, 202, 202, 10304, 18, 542, 3744, 12, 5118, 13220, 11272, 202, 202, 10304, 18, 542, 1225, 12, 277, 27130, 2384, 16, 277, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 27130, 1042, 1696, 12, 514, 8526, 272, 6685, 16, 514, 1760, 30182, 16, 1082, 202, 45, 27130, 1042, 2172, 1042, 262, 202, 95, 202, 202, 759, 2315, 2172, 819, 202, 202, 2472, 273, 2172, 1042, 31, 202, 202, 759, 9190, 6484, 415, 292, 4877, 202, 202, 6313, 3744, 5118, 13220, 273, 394, 7145, 3744, 12, 11272, 202, 202, 7043, 13220, 18, 10107, 2686, 273, 374, 31, 202, 202, 7043, 13220, 18, 10107, 2384, 273, 374, 31, 202, 202, 7043, 13220, 18, 17824, 18006, 273, 374, 31, 202, 202, 5417, 273, 9311, 18, 588, 1868, 12, 11272, 202, 202, 430, 261, 11810, 5370, 18, 291, 2421, 22144, 7051, 12, 262, 262, 202, 202, 95, 1082, 202, 2 ]
LocalClusteredQueue queue4 = new LocalClusteredQueue(office2, "node2", "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr);
LocalClusteredQueue queue4 = new LocalClusteredQueue(office2, 2, "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr);
public void testClusteredNameUniqueness() throws Throwable { ClusteredPostOffice office1 = null; ClusteredPostOffice office2 = null; try { office1 = createClusteredPostOffice("node1", "testgroup"); office2 = createClusteredPostOffice("node2", "testgroup"); LocalClusteredQueue queue1 = new LocalClusteredQueue(office1, "node1", "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); Binding binding1 = office1.bindClusteredQueue("queue1", queue1); LocalClusteredQueue queue2 = new LocalClusteredQueue(office2, "node2", "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); Binding binding2 = office2.bindClusteredQueue("queue1", queue2); LocalClusteredQueue queue3 = new LocalClusteredQueue(office1, "node1", "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); try { Binding binding3 = office1.bindClusteredQueue("queue1", queue3); fail(); } catch (Exception e) { //Ok } LocalClusteredQueue queue4 = new LocalClusteredQueue(office2, "node2", "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); try { Binding binding4 = office2.bindClusteredQueue("queue1", queue4); fail(); } catch (Exception e) { //Ok } office1.unbindClusteredQueue("queue1"); office2.unbindClusteredQueue("queue1"); LocalClusteredQueue queue5 = new LocalClusteredQueue(office1, "node1", "queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null, tr); Binding binding5 = office1.bindClusteredQueue("queue1", queue5); PagingFilteredQueue queue6 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); try { Binding binding6 = office1.bindQueue("queue1", queue6); fail(); } catch (Exception e) { //ok } office1.unbindClusteredQueue("queue1"); //It should be possible to bind local queues into a clustered post office PagingFilteredQueue queue7 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); Binding binding7 = office1.bindQueue("queue1", queue7); PagingFilteredQueue queue8 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); Binding binding8 = office2.bindQueue("queue1", queue8); PagingFilteredQueue queue9 = new PagingFilteredQueue("queue1", im.getId(), ms, pm, true, false, (QueuedExecutor)pool.get(), null); try { Binding binding9 = office1.bindQueue("queue1", queue9); fail(); } catch (Exception e) { //Ok } } finally { if (office1 != null) { office1.stop(); } if (office2 != null) { office2.stop(); } } }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/f54f55cea0aabacd10797be5e0ff1d3bd3f8db88/DefaultClusteredPostOfficeTest.java/buggy/tests/src/org/jboss/test/messaging/core/plugin/postoffice/cluster/DefaultClusteredPostOfficeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 3629, 329, 461, 984, 18988, 15681, 1435, 1216, 4206, 282, 288, 1377, 5584, 329, 3349, 30126, 3397, 1812, 21, 273, 446, 31, 5411, 5584, 329, 3349, 30126, 3397, 1812, 22, 273, 446, 31, 7734, 775, 1377, 288, 5411, 3397, 1812, 21, 273, 752, 3629, 329, 3349, 30126, 2932, 2159, 21, 3113, 315, 3813, 1655, 8863, 5375, 3397, 1812, 22, 273, 752, 3629, 329, 3349, 30126, 2932, 2159, 22, 3113, 315, 3813, 1655, 8863, 5375, 3566, 3629, 329, 3183, 2389, 21, 273, 394, 3566, 3629, 329, 3183, 12, 19789, 21, 16, 315, 2159, 21, 3113, 315, 4000, 21, 3113, 709, 18, 26321, 9334, 4086, 16, 7430, 16, 638, 16, 629, 16, 261, 21039, 6325, 13, 6011, 18, 588, 9334, 446, 16, 433, 1769, 5375, 15689, 5085, 21, 273, 3397, 1812, 21, 18, 4376, 3629, 329, 3183, 2932, 4000, 21, 3113, 2389, 21, 1769, 5375, 3566, 3629, 329, 3183, 2389, 22, 273, 394, 3566, 3629, 329, 3183, 12, 19789, 22, 16, 315, 2159, 22, 3113, 315, 4000, 21, 3113, 709, 18, 26321, 9334, 4086, 16, 7430, 16, 638, 16, 629, 16, 261, 21039, 6325, 13, 6011, 18, 588, 9334, 446, 16, 433, 1769, 5375, 15689, 5085, 22, 273, 3397, 1812, 22, 18, 4376, 3629, 329, 3183, 2932, 4000, 21, 3113, 2389, 22, 1769, 21821, 3566, 3629, 329, 3183, 2389, 23, 273, 394, 3566, 3629, 329, 3183, 12, 19789, 21, 16, 315, 2159, 21, 3113, 315, 4000, 21, 3113, 709, 18, 26321, 9334, 4086, 16, 7430, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 3629, 329, 461, 984, 18988, 15681, 1435, 1216, 4206, 282, 288, 1377, 5584, 329, 3349, 30126, 3397, 1812, 21, 273, 446, 31, 5411, 5584, 329, 3349, 30126, 3397, 1812, 22, 273, 446, 31, 7734, 775, 1377, 288, 5411, 3397, 1812, 21, 273, 752, 3629, 329, 3349, 30126, 2932, 2159, 21, 3113, 315, 3813, 1655, 8863, 5375, 3397, 1812, 22, 273, 752, 3629, 329, 3349, 30126, 2932, 2159, 22, 3113, 315, 3813, 1655, 8863, 5375, 3566, 3629, 329, 3183, 2389, 21, 273, 394, 3566, 3629, 329, 3183, 12, 19789, 21, 16, 315, 2159, 21, 3113, 315, 4000, 21, 3113, 709, 18, 26321, 9334, 4086, 16, 7430, 16, 638, 16, 629, 16, 261, 21039, 6325, 13, 6011, 2 ]
public boolean accept( File dir, String name ) { return name.endsWith( ".rpttemplate" ); } } );
public boolean accept( File dir, String name ) { return name.endsWith( ".rpttemplate" ); } } );
private void createCustomTemplateList( ) { String templateFolderPath = ReportPlugin.getDefault( ) .getTemplatePreference( ); File templateDirectory = new File( templateFolderPath ); if ( templateDirectory.isDirectory( ) ) { File[] filesArray = templateDirectory .listFiles( new FilenameFilter( ) { public boolean accept( File dir, String name ) { return name.endsWith( ".rpttemplate" );//$NON-NLS-1$ } } ); for ( int i = 0; i < filesArray.length; i++ ) { try { templates.add( new Template( filesArray[i] .getAbsolutePath( ) ) ); } catch ( Exception e ) { // ignore } } } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b537714732979acce16d6e2b388b62e52e38b0ca/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, 1152, 918, 752, 3802, 2283, 682, 12, 262, 202, 95, 202, 202, 780, 1542, 28785, 273, 8706, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 2283, 9624, 12, 11272, 202, 202, 812, 1542, 2853, 273, 394, 1387, 12, 1542, 28785, 11272, 202, 202, 430, 261, 1542, 2853, 18, 291, 2853, 12, 262, 262, 202, 202, 95, 1082, 202, 812, 8526, 1390, 1076, 273, 1542, 2853, 6862, 202, 18, 1098, 2697, 12, 394, 16671, 1586, 12, 262, 288, 25083, 202, 482, 1250, 2791, 12, 1387, 1577, 16, 514, 508, 262, 25083, 202, 95, 6862, 1082, 202, 2463, 508, 18, 5839, 1190, 12, 3552, 86, 337, 3202, 6, 11272, 759, 8, 3993, 17, 5106, 17, 21, 8, 25083, 202, 97, 6862, 202, 97, 11272, 1082, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1390, 1076, 18, 2469, 31, 277, 9904, 262, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 8502, 18, 1289, 12, 394, 5035, 12, 1390, 1076, 63, 77, 65, 6862, 1082, 202, 18, 588, 10368, 743, 12, 262, 262, 11272, 9506, 202, 97, 9506, 202, 14683, 261, 1185, 425, 262, 9506, 202, 95, 6862, 202, 759, 2305, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 3802, 2283, 682, 12, 262, 202, 95, 202, 202, 780, 1542, 28785, 273, 8706, 3773, 18, 588, 1868, 12, 262, 9506, 202, 18, 588, 2283, 9624, 12, 11272, 202, 202, 812, 1542, 2853, 273, 394, 1387, 12, 1542, 28785, 11272, 202, 202, 430, 261, 1542, 2853, 18, 291, 2853, 12, 262, 262, 202, 202, 95, 1082, 202, 812, 8526, 1390, 1076, 273, 1542, 2853, 6862, 202, 18, 1098, 2697, 12, 394, 16671, 1586, 12, 262, 288, 25083, 202, 482, 1250, 2791, 12, 1387, 1577, 16, 514, 508, 262, 25083, 202, 95, 6862, 1082, 202, 2463, 508, 18, 5839, 1190, 12, 3552, 86, 337, 3202, 6, 11272, 759, 8, 3993, 17, 5106, 17, 21, 8, 2 ]
Asserts.notNull(value);
assert value != null;
public ValueAccessor(IRubyObject value) { Asserts.notNull(value); this.value = value; }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/ValueAccessor.java/clean/src/org/jruby/internal/runtime/ValueAccessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1445, 8235, 12, 7937, 10340, 921, 460, 13, 288, 3639, 1815, 460, 480, 446, 31, 3639, 333, 18, 1132, 273, 460, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1445, 8235, 12, 7937, 10340, 921, 460, 13, 288, 3639, 1815, 460, 480, 446, 31, 3639, 333, 18, 1132, 273, 460, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Driver.debug("getDatabaseProductVersion " + versionNumber);
if (Driver.logDebug) Driver.debug("getDatabaseProductVersion " + versionNumber);
public String getDatabaseProductVersion() throws SQLException { String versionNumber = connection.getDBVersionNumber(); Driver.debug("getDatabaseProductVersion " + versionNumber); return versionNumber; }
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11263, 4133, 1444, 1435, 1216, 6483, 202, 95, 202, 202, 780, 1177, 1854, 273, 1459, 18, 588, 2290, 1444, 1854, 5621, 202, 202, 4668, 18, 4148, 2932, 588, 4254, 4133, 1444, 315, 397, 1177, 1854, 1769, 202, 202, 2463, 1177, 1854, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 11263, 4133, 1444, 1435, 1216, 6483, 202, 95, 202, 202, 780, 1177, 1854, 273, 1459, 18, 588, 2290, 1444, 1854, 5621, 202, 202, 4668, 18, 4148, 2932, 588, 4254, 4133, 1444, 315, 397, 1177, 1854, 1769, 202, 202, 2463, 1177, 1854, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Assert.that(! out.isOpen()); Assert.that(out.runnerDied());
assertTrue(! out.isOpen()); assertTrue(out.runnerDied()); sleep(2000);
public static void testClose() { try { ManagedConnection out=null; Connection in=null; com.limegroup.gnutella.MiniAcceptor acceptor=null; //When receive() or sendQueued() gets IOException, it calls //ConnectionManager.remove(). This in turn calls //ManagedConnection.close(). Our stub does this. ConnectionManager manager=new ConnectionManagerStub(true); //1. Locally closed acceptor=new com.limegroup.gnutella.MiniAcceptor(null, PORT); out=newConnection("localhost", PORT, manager); out.initialize(); in=acceptor.accept(); Assert.that(out.isOpen()); Assert.that(! out.runnerDied()); out.close(); sleep(100); Assert.that(! out.isOpen()); Assert.that(out.runnerDied()); try { Thread.sleep(1000); } catch (InterruptedException e) { } in.close(); //needed to ensure connect below works //2. Remote close: discovered on read acceptor=new com.limegroup.gnutella.MiniAcceptor(null, PORT); out=newConnection("localhost", PORT, manager); out.initialize(); in=acceptor.accept(); Assert.that(out.isOpen()); Assert.that(! out.runnerDied()); in.close(); try { out.receive(); Assert.that(false); } catch (BadPacketException e) { Assert.that(false); } catch (IOException e) { } sleep(100); Assert.that(! out.isOpen()); Assert.that(out.runnerDied()); //3. Remote close: discovered on write. Because of TCP's half-close //semantics, we need TWO writes to discover this. (See unit tests //for Connection.) acceptor=new com.limegroup.gnutella.MiniAcceptor(null, PORT); out=newConnection("localhost", PORT, manager); out.initialize(); in=acceptor.accept(); Assert.that(out.isOpen()); Assert.that(! out.runnerDied()); in.close(); out.send(new PingRequest((byte)3)); out.send(new PingRequest((byte)3)); sleep(100); Assert.that(! out.isOpen()); Assert.that(out.runnerDied()); } catch (IOException e) { fail("Unexpected IO problem"); e.printStackTrace(); } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/c53e29de6f0dbeee98c7a594140c2c57c0ec69a8/ManagedConnectionTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/ManagedConnectionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1842, 4605, 1435, 288, 3639, 775, 288, 5411, 10024, 1952, 596, 33, 2011, 31, 5411, 4050, 316, 33, 2011, 31, 5411, 532, 18, 80, 494, 1655, 18, 1600, 322, 1165, 69, 18, 2930, 77, 5933, 280, 2791, 280, 33, 2011, 31, 18701, 368, 9434, 6798, 1435, 578, 1366, 21039, 1435, 5571, 1860, 16, 518, 4097, 5411, 368, 1952, 1318, 18, 4479, 7675, 225, 1220, 316, 7005, 4097, 5411, 368, 10055, 1952, 18, 4412, 7675, 225, 29613, 7168, 1552, 333, 18, 5411, 4050, 1318, 3301, 33, 2704, 4050, 1318, 11974, 12, 3767, 1769, 5411, 368, 21, 18, 2851, 1230, 4375, 5411, 2791, 280, 33, 2704, 532, 18, 80, 494, 1655, 18, 1600, 322, 1165, 69, 18, 2930, 77, 5933, 280, 12, 2011, 16, 20987, 1769, 5411, 596, 33, 2704, 1952, 2932, 13014, 3113, 20987, 16, 3301, 1769, 5411, 596, 18, 11160, 5621, 13491, 316, 33, 1077, 6757, 18, 9436, 5621, 2398, 5452, 18, 19056, 12, 659, 18, 291, 3678, 10663, 5411, 5452, 18, 19056, 12, 5, 596, 18, 18156, 40, 2092, 10663, 5411, 596, 18, 4412, 5621, 5411, 5329, 12, 6625, 1769, 5411, 5452, 18, 19056, 12, 5, 596, 18, 291, 3678, 10663, 5411, 5452, 18, 19056, 12, 659, 18, 18156, 40, 2092, 10663, 5411, 775, 288, 4884, 18, 19607, 12, 18088, 1769, 289, 1044, 261, 24485, 503, 425, 13, 288, 289, 5411, 316, 18, 4412, 5621, 368, 17471, 358, 3387, 3077, 5712, 6330, 5411, 368, 22, 18, 6304, 1746, 30, 18238, 603, 855, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1842, 4605, 1435, 288, 3639, 775, 288, 5411, 10024, 1952, 596, 33, 2011, 31, 5411, 4050, 316, 33, 2011, 31, 5411, 532, 18, 80, 494, 1655, 18, 1600, 322, 1165, 69, 18, 2930, 77, 5933, 280, 2791, 280, 33, 2011, 31, 18701, 368, 9434, 6798, 1435, 578, 1366, 21039, 1435, 5571, 1860, 16, 518, 4097, 5411, 368, 1952, 1318, 18, 4479, 7675, 225, 1220, 316, 7005, 4097, 5411, 368, 10055, 1952, 18, 4412, 7675, 225, 29613, 7168, 1552, 333, 18, 5411, 4050, 1318, 3301, 33, 2704, 4050, 1318, 11974, 12, 3767, 1769, 5411, 368, 21, 18, 2851, 1230, 4375, 5411, 2791, 280, 33, 2704, 532, 18, 80, 494, 1655, 18, 1600, 322, 1165, 69, 18, 2 ]
throw new RaiseException(RubyException.newInstance(ruby, ruby.getExceptions().getRuntimeError(), args));
if (args[0] instanceof RubyException) { throw new RaiseException((RubyException) args[0]); } else { throw new RaiseException(RubyException.newInstance(ruby, ruby.getExceptions().getRuntimeError(), args)); }
public static RubyObject raise(Ruby ruby, RubyObject recv, RubyObject args[]) { switch (args.length) { case 0 : case 1 : throw new RaiseException(RubyException.newInstance(ruby, ruby.getExceptions().getRuntimeError(), args)); case 2 : RubyException excptn = (RubyException) args[0].callMethod("exception", args[1]); throw new RaiseException(excptn); default : throw new ArgumentError(ruby, "wrong # of arguments"); } }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/d81c0b9a88b1034996b4337336e3af1aacbcc0ed/RubyKernel.java/buggy/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 1002, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 921, 833, 63, 5717, 288, 3639, 1620, 261, 1968, 18, 2469, 13, 288, 3639, 648, 374, 294, 3639, 648, 404, 294, 5411, 309, 261, 1968, 63, 20, 65, 1276, 19817, 503, 13, 288, 604, 394, 20539, 503, 12443, 54, 10340, 503, 13, 833, 63, 20, 19226, 289, 469, 288, 604, 394, 20539, 503, 12, 54, 10340, 503, 18, 2704, 1442, 12, 27768, 16, 22155, 18, 588, 11416, 7675, 588, 5576, 668, 9334, 833, 10019, 289, 3639, 648, 576, 294, 5411, 19817, 503, 3533, 337, 82, 273, 261, 54, 10340, 503, 13, 833, 63, 20, 8009, 1991, 1305, 2932, 4064, 3113, 833, 63, 21, 19226, 5411, 604, 394, 20539, 503, 12, 10075, 337, 82, 1769, 3639, 805, 294, 5411, 604, 394, 9236, 12, 27768, 16, 315, 21530, 468, 434, 1775, 8863, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 921, 1002, 12, 54, 10340, 22155, 16, 19817, 921, 10665, 16, 19817, 921, 833, 63, 5717, 288, 3639, 1620, 261, 1968, 18, 2469, 13, 288, 3639, 648, 374, 294, 3639, 648, 404, 294, 5411, 309, 261, 1968, 63, 20, 65, 1276, 19817, 503, 13, 288, 604, 394, 20539, 503, 12443, 54, 10340, 503, 13, 833, 63, 20, 19226, 289, 469, 288, 604, 394, 20539, 503, 12, 54, 10340, 503, 18, 2704, 1442, 12, 27768, 16, 22155, 18, 588, 11416, 7675, 588, 5576, 668, 9334, 833, 10019, 289, 3639, 648, 576, 294, 5411, 19817, 503, 3533, 337, 82, 273, 261, 54, 10340, 503, 13, 833, 63, 20, 8009, 1991, 1305, 2932, 4064, 3113, 833, 63, 21, 2 ]
return RubyString.newString(getRuntime(), sb.toString());
return getRuntime().newString(sb.toString());
public IRubyObject regsub(IRubyObject str, RubyMatchData match) { String repl = RubyString.stringValue(str).getValue(); StringBuffer sb = new StringBuffer(""); int pos = 0; int end = repl.length(); char c; IRubyObject ins; while (pos < end) { c = repl.charAt(pos++); if (c == '\\' && pos < end) { c = repl.charAt(pos++); switch (c) { case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : ins = match.group(c - '0'); break; case '&' : ins = match.group(0); break; case '`' : ins = match.pre_match(); break; case '\'' : ins = match.post_match(); break; case '+' : ins = match_last(match); break; case '\\' : sb.append(c); continue; default : sb.append('\\').append(c); continue; } if (!ins.isNil()) { sb.append(((RubyString) ins).getValue()); } } else { sb.append(c); } } return RubyString.newString(getRuntime(), sb.toString()); }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 17518, 373, 12, 7937, 10340, 921, 609, 16, 19817, 2060, 751, 845, 13, 288, 3639, 514, 6831, 273, 19817, 780, 18, 1080, 620, 12, 701, 2934, 24805, 5621, 3639, 6674, 2393, 273, 394, 6674, 2932, 8863, 3639, 509, 949, 273, 374, 31, 3639, 509, 679, 273, 6831, 18, 2469, 5621, 3639, 1149, 276, 31, 3639, 15908, 10340, 921, 2763, 31, 3639, 1323, 261, 917, 411, 679, 13, 288, 5411, 276, 273, 6831, 18, 3001, 861, 12, 917, 9904, 1769, 5411, 309, 261, 71, 422, 5282, 597, 949, 411, 679, 13, 288, 7734, 276, 273, 6831, 18, 3001, 861, 12, 917, 9904, 1769, 7734, 1620, 261, 71, 13, 288, 10792, 648, 296, 20, 11, 294, 10792, 648, 296, 21, 11, 294, 10792, 648, 296, 22, 11, 294, 10792, 648, 296, 23, 11, 294, 10792, 648, 296, 24, 11, 294, 10792, 648, 296, 25, 11, 294, 10792, 648, 296, 26, 11, 294, 10792, 648, 296, 27, 11, 294, 10792, 648, 296, 28, 11, 294, 10792, 648, 296, 29, 11, 294, 13491, 2763, 273, 845, 18, 1655, 12, 71, 300, 296, 20, 8284, 13491, 898, 31, 10792, 648, 9824, 294, 13491, 2763, 273, 845, 18, 1655, 12, 20, 1769, 13491, 898, 31, 10792, 648, 14793, 294, 13491, 2763, 273, 845, 18, 1484, 67, 1916, 5621, 13491, 898, 31, 10792, 648, 15053, 294, 13491, 2763, 273, 845, 18, 2767, 67, 1916, 5621, 13491, 898, 31, 10792, 648, 10058, 294, 13491, 2763, 273, 845, 67, 2722, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 17518, 373, 12, 7937, 10340, 921, 609, 16, 19817, 2060, 751, 845, 13, 288, 3639, 514, 6831, 273, 19817, 780, 18, 1080, 620, 12, 701, 2934, 24805, 5621, 3639, 6674, 2393, 273, 394, 6674, 2932, 8863, 3639, 509, 949, 273, 374, 31, 3639, 509, 679, 273, 6831, 18, 2469, 5621, 3639, 1149, 276, 31, 3639, 15908, 10340, 921, 2763, 31, 3639, 1323, 261, 917, 411, 679, 13, 288, 5411, 276, 273, 6831, 18, 3001, 861, 12, 917, 9904, 1769, 5411, 309, 261, 71, 422, 5282, 597, 949, 411, 679, 13, 288, 7734, 276, 273, 6831, 18, 3001, 861, 12, 917, 9904, 1769, 7734, 1620, 261, 71, 13, 288, 10792, 648, 296, 20, 11, 294, 2 ]
public void createAccessMethods(JClass jClass) { JMethod method = null; JParameter contentParam = new JParameter(getContentType().getJType(), getContentName()); JSourceCode jsc = null; //---------------------/ //- Create add method -/ //---------------------/ String cName = JavaNaming.toJavaClassName(getElementName()); method = new JMethod(null, "add"+cName); jClass.addMethod(method); method.addException(SGTypes.IndexOutOfBoundsException); method.addParameter(contentParam); createAddMethod(method); //---------------------/ //- Create get method -/ //---------------------/ JType jType = getContentType().getJType(); method = new JMethod(jType, "get"+cName); jClass.addMethod(method); method.addException(SGTypes.IndexOutOfBoundsException); method.addParameter(new JParameter(JType.Int, "index")); createGetByIndexMethod(method); //-----------------------/ //- Create get[] method -/ //-----------------------/ jType = jType.createArray(); method = new JMethod(jType, "get"+cName); jClass.addMethod(method); createGetMethod(method); //----------------------/ //- Create set methods -/ //----------------------/ method = new JMethod(null, "set"+cName); jClass.addMethod(method); method.addException(SGTypes.IndexOutOfBoundsException); method.addParameter(contentParam); method.addParameter(new JParameter(JType.Int, "index")); createSetByIndexMethod(method); //-- array setter JType arrayType = contentParam.getType().createArray(); String pName = JavaNaming.toJavaMemberName(cName); JParameter arrayParam = new JParameter(arrayType, pName+"Array"); method = new JMethod(null, "set"+cName); method.addParameter(arrayParam); jClass.addMethod(method); createSetArrayMethod(method); //--------------------------/ //- Create getCount method -/ //--------------------------/ method = new JMethod(JType.Int, "get"+cName+"Count"); jClass.addMethod(method); createGetCountMethod(method); //---------------------------/ //- Create Enumerate Method -/ //---------------------------/ method = new JMethod(SGTypes.Enumeration, "enumerate"+cName); jClass.addMethod(method); createEnumerateMethod(method); //--------------------------------/ //- Create remove(Object) Method -/ //--------------------------------/ //-- commented out until I fix primitives //method = new JMethod(JType.Boolean, "remove"+cName); //methods.addElement(method); //method.addParameter(contentParam); //createRemoveByObjectMethod_Impl(method); //--------------------------------/ //- Create remove(int i) Method -/ //--------------------------------/ jType = getContentType().getJType(); method = new JMethod(jType, "remove"+cName); jClass.addMethod(method); method.addParameter(new JParameter(JType.Int, "index")); createRemoveByIndexMethod(method); //-----------------------------/ //- Create removeAll() Method -/ //-----------------------------/ method = new JMethod(null, "removeAll"+cName); jClass.addMethod(method); createRemoveAllMethod(method); } //-- createAccessMethods
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/ce2d2d2cdff5188c1f20ff2b843461107912d14e/CollectionInfo.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/builder/CollectionInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 1862, 4712, 12, 46, 797, 525, 797, 13, 288, 13491, 804, 1305, 707, 273, 446, 31, 7734, 804, 1662, 913, 786, 2398, 273, 394, 804, 1662, 12, 588, 8046, 7675, 588, 46, 559, 9334, 5154, 461, 10663, 10792, 804, 1830, 1085, 525, 1017, 273, 446, 31, 5375, 368, 1271, 13465, 19, 540, 368, 17, 1788, 527, 707, 300, 19, 3639, 368, 1271, 13465, 19, 7734, 514, 276, 461, 273, 5110, 24102, 18, 869, 5852, 3834, 12, 21336, 461, 10663, 7734, 707, 273, 394, 804, 1305, 12, 2011, 16, 315, 1289, 6, 15, 71, 461, 1769, 3639, 525, 797, 18, 1289, 1305, 12, 2039, 1769, 7734, 707, 18, 1289, 503, 12, 30820, 2016, 18, 30548, 1769, 3639, 707, 18, 1289, 1662, 12, 1745, 786, 1769, 7734, 752, 986, 1305, 12, 2039, 1769, 17311, 368, 1271, 13465, 19, 540, 368, 17, 1788, 336, 707, 300, 19, 3639, 368, 1271, 13465, 19, 13491, 804, 559, 525, 559, 273, 17470, 7675, 588, 46, 559, 5621, 3639, 707, 273, 394, 804, 1305, 12, 78, 559, 16, 315, 588, 6, 15, 71, 461, 1769, 3639, 525, 797, 18, 1289, 1305, 12, 2039, 1769, 3639, 707, 18, 1289, 503, 12, 30820, 2016, 18, 30548, 1769, 3639, 707, 18, 1289, 1662, 12, 2704, 804, 1662, 12, 46, 559, 18, 1702, 16, 315, 1615, 7923, 1769, 18701, 752, 967, 21268, 1305, 12, 2039, 1769, 4766, 1377, 368, 1271, 17082, 19, 540, 368, 17, 1788, 336, 8526, 707, 300, 19, 3639, 368, 1271, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1862, 4712, 12, 46, 797, 525, 797, 13, 288, 13491, 804, 1305, 707, 273, 446, 31, 7734, 804, 1662, 913, 786, 2398, 273, 394, 804, 1662, 12, 588, 8046, 7675, 588, 46, 559, 9334, 5154, 461, 10663, 10792, 804, 1830, 1085, 525, 1017, 273, 446, 31, 5375, 368, 1271, 13465, 19, 540, 368, 17, 1788, 527, 707, 300, 19, 3639, 368, 1271, 13465, 19, 7734, 514, 276, 461, 273, 5110, 24102, 18, 869, 5852, 3834, 12, 21336, 461, 10663, 7734, 707, 273, 394, 804, 1305, 12, 2011, 16, 315, 1289, 6, 15, 71, 461, 1769, 3639, 525, 797, 18, 1289, 1305, 12, 2039, 1769, 7734, 707, 18, 1289, 503, 12, 30820, 2016, 18, 30548, 1769, 2 ]
null, UIDesignerBundle.message("error.no.field.in.class", fieldName, psiClass.getQualifiedName()),
component, null, UIDesignerBundle.message("error.no.field.in.class", fieldName, psiClass.getQualifiedName()),
private static boolean validateFieldInClass(final IComponent component, final String fieldName, final String fieldClassName, final PsiClass psiClass, final GuiEditor editor, final Module module) { final PsiField[] fields = psiClass.getFields(); PsiField field = null; for(int i = fields.length - 1; i >=0 ; i--){ if(fieldName.equals(fields[i].getName())){ field = fields[i]; break; } } if(field == null){ final QuickFix[] fixes = editor != null ? new QuickFix[]{ new CreateFieldFix(editor, psiClass, fieldClassName, fieldName) } : QuickFix.EMPTY_ARRAY; component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( null, UIDesignerBundle.message("error.no.field.in.class", fieldName, psiClass.getQualifiedName()), HighlightDisplayLevel.ERROR, fixes ) ); return true; } else if(field.hasModifierProperty(PsiModifier.STATIC)){ component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( null, UIDesignerBundle.message("error.cant.bind.to.static", fieldName), HighlightDisplayLevel.ERROR, QuickFix.EMPTY_ARRAY ) ); return true; } // Check that field has correct fieldType try { final String className = fieldClassName.replace('$', '.'); // workaround for PSI final PsiType componentType = PsiManager.getInstance(module.getProject()).getElementFactory().createTypeFromText( className, null ); final PsiType fieldType = field.getType(); if(!fieldType.isAssignableFrom(componentType)){ final QuickFix[] fixes = editor != null ? new QuickFix[]{ new ChangeFieldTypeFix(editor, field, componentType) } : QuickFix.EMPTY_ARRAY; component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( null, UIDesignerBundle.message("error.bind.incompatible.types", fieldType.getPresentableText(), className), HighlightDisplayLevel.ERROR, fixes ) ); return true; } } catch (IncorrectOperationException e) { } if (component.isCustomCreate() && FormEditingUtil.findCreateComponentsMethod(psiClass) == null) { final QuickFix[] fixes = editor != null ? new QuickFix[]{ new GenerateCreateComponentsFix(editor, psiClass) } : QuickFix.EMPTY_ARRAY; component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Custom Create", UIDesignerBundle.message("error.no.custom.create.method"), HighlightDisplayLevel.ERROR, fixes)); return true; } return false; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/6a384c23ca74b732817b78c9169186710a7d1d75/ErrorAnalyzer.java/clean/ui-designer/impl/com/intellij/uiDesigner/ErrorAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 1954, 974, 382, 797, 12, 6385, 467, 1841, 1794, 16, 727, 514, 4289, 16, 727, 514, 652, 3834, 16, 4766, 2868, 727, 453, 7722, 797, 23921, 797, 16, 727, 611, 4881, 6946, 4858, 16, 727, 5924, 1605, 13, 288, 565, 727, 453, 7722, 974, 8526, 1466, 273, 23921, 797, 18, 588, 2314, 5621, 565, 453, 7722, 974, 652, 273, 446, 31, 565, 364, 12, 474, 277, 273, 1466, 18, 2469, 300, 404, 31, 277, 1545, 20, 274, 277, 413, 15329, 1377, 309, 12, 16163, 18, 14963, 12, 2821, 63, 77, 8009, 17994, 1435, 3719, 95, 3639, 652, 273, 1466, 63, 77, 15533, 3639, 898, 31, 1377, 289, 565, 289, 565, 309, 12, 1518, 422, 446, 15329, 1377, 727, 19884, 8585, 8526, 24436, 273, 4858, 480, 446, 1171, 9079, 692, 394, 19884, 8585, 63, 7073, 394, 1788, 974, 8585, 12, 9177, 16, 23921, 797, 16, 652, 3834, 16, 4289, 13, 289, 1171, 9079, 294, 19884, 8585, 18, 13625, 67, 8552, 31, 1377, 1794, 18, 458, 1227, 1396, 12, 4202, 16395, 67, 15811, 67, 2739, 67, 3589, 16, 4202, 394, 1068, 966, 12, 540, 1794, 16, 446, 16, 10034, 281, 724, 264, 3405, 18, 2150, 2932, 1636, 18, 2135, 18, 1518, 18, 267, 18, 1106, 3113, 4289, 16, 23921, 797, 18, 588, 12345, 1435, 3631, 540, 31386, 4236, 2355, 18, 3589, 16, 540, 24436, 4202, 262, 1377, 11272, 1377, 327, 638, 31, 565, 289, 565, 469, 309, 12, 1518, 18, 5332, 9829, 1396, 12, 52, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 1954, 974, 382, 797, 12, 6385, 467, 1841, 1794, 16, 727, 514, 4289, 16, 727, 514, 652, 3834, 16, 4766, 2868, 727, 453, 7722, 797, 23921, 797, 16, 727, 611, 4881, 6946, 4858, 16, 727, 5924, 1605, 13, 288, 565, 727, 453, 7722, 974, 8526, 1466, 273, 23921, 797, 18, 588, 2314, 5621, 565, 453, 7722, 974, 652, 273, 446, 31, 565, 364, 12, 474, 277, 273, 1466, 18, 2469, 300, 404, 31, 277, 1545, 20, 274, 277, 413, 15329, 1377, 309, 12, 16163, 18, 14963, 12, 2821, 63, 77, 8009, 17994, 1435, 3719, 95, 3639, 652, 273, 1466, 63, 77, 15533, 3639, 898, 31, 1377, 289, 565, 289, 565, 309, 12, 1518, 422, 446, 2 ]
db.contextSwitch(frameIndex);
db.contextSwitch (frameIndex);
public void actionPerformed(ActionEvent e) { if(!enabled) return; if(e.getActionCommand().equals("ContextSwitch")) { ContextHelper helper = new ContextHelper(); Context cx = db.getCurrentContext(); DebuggableEngine engine = cx.getDebuggableEngine(); helper.attach(cx); int frameIndex = context.getSelectedIndex(); context.setToolTipText(toolTips.elementAt(frameIndex).toString()); Scriptable obj; int frameCount = engine.getFrameCount(); if(frameIndex < frameCount) { obj = engine.getFrame(frameIndex).getVariableObject(); } else { helper.reset(); return; } NativeCall call = null; if(obj instanceof NativeCall) { call = (NativeCall)obj; obj = call.getThisObj(); } JTree tree = thisTable.resetTree(model = new VariableModel(obj)); if(call == null) { tree = localsTable.resetTree(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { return 2; } public String getColumnName(int column) { switch(column) { case 0: return " Name"; case 1: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); } else { tree = localsTable.resetTree(model = new VariableModel(call)); } helper.reset(); db.contextSwitch(frameIndex); tableModel.updateModel(); } }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/bebd557da53b74c60ab8525aa96904d4cee6224c/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 309, 12, 5, 5745, 13, 327, 31, 3639, 309, 12, 73, 18, 588, 1803, 2189, 7675, 14963, 2932, 1042, 10200, 6, 3719, 288, 5411, 1772, 2276, 4222, 273, 394, 1772, 2276, 5621, 5411, 1772, 9494, 273, 1319, 18, 588, 3935, 1042, 5621, 5411, 4015, 8455, 4410, 4073, 273, 9494, 18, 588, 2829, 8455, 4410, 5621, 5411, 4222, 18, 7331, 12, 71, 92, 1769, 5411, 509, 2623, 1016, 273, 819, 18, 588, 7416, 1016, 5621, 5411, 819, 18, 542, 29250, 1528, 12, 6738, 56, 7146, 18, 2956, 861, 12, 3789, 1016, 2934, 10492, 10663, 5411, 22780, 1081, 31, 5411, 509, 2623, 1380, 273, 4073, 18, 588, 3219, 1380, 5621, 5411, 309, 12, 3789, 1016, 411, 2623, 1380, 13, 288, 7734, 1081, 273, 4073, 18, 588, 3219, 12, 3789, 1016, 2934, 588, 3092, 921, 5621, 5411, 289, 469, 288, 7734, 4222, 18, 6208, 5621, 7734, 327, 31, 5411, 289, 5411, 16717, 1477, 745, 273, 446, 31, 5411, 309, 12, 2603, 1276, 16717, 1477, 13, 288, 7734, 745, 273, 261, 9220, 1477, 13, 2603, 31, 7734, 1081, 273, 745, 18, 588, 2503, 2675, 5621, 5411, 289, 5411, 804, 2471, 2151, 273, 333, 1388, 18, 6208, 2471, 12, 2284, 273, 394, 7110, 1488, 12, 2603, 10019, 5411, 309, 12, 1991, 422, 446, 13, 288, 7734, 2151, 273, 8985, 1388, 18, 6208, 2471, 12, 2704, 4115, 2471, 1388, 1488, 12, 2704, 2989, 19536, 12513, 10756, 288, 13491, 1071, 1033, 8154, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 309, 12, 5, 5745, 13, 327, 31, 3639, 309, 12, 73, 18, 588, 1803, 2189, 7675, 14963, 2932, 1042, 10200, 6, 3719, 288, 5411, 1772, 2276, 4222, 273, 394, 1772, 2276, 5621, 5411, 1772, 9494, 273, 1319, 18, 588, 3935, 1042, 5621, 5411, 4015, 8455, 4410, 4073, 273, 9494, 18, 588, 2829, 8455, 4410, 5621, 5411, 4222, 18, 7331, 12, 71, 92, 1769, 5411, 509, 2623, 1016, 273, 819, 18, 588, 7416, 1016, 5621, 5411, 819, 18, 542, 29250, 1528, 12, 6738, 56, 7146, 18, 2956, 861, 12, 3789, 1016, 2934, 10492, 10663, 5411, 22780, 1081, 31, 5411, 509, 2623, 1380, 273, 4073, 18, 588, 3219, 1380, 5621, 2 ]
JSPManager.showJSP(request, response, "/dspace-admin/edit-community.jsp");
JSPManager.showJSP(request, response, "/tools/edit-community.jsp");
protected void doDSPost(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { // First, see if we have a multipart request (uploading a logo) String contentType = request.getContentType(); if (contentType != null && contentType.indexOf("multipart/form-data") != -1) { // This is a multipart request, so it's a file upload processUploadLogo(context, request, response); return; } /* * Respond to submitted forms. Each form includes an "action" parameter * indicating what needs to be done (from the constants above.) */ int action = UIUtil.getIntParameter(request, "action"); /* * Most of the forms supply one or more of these values. Since we just * get null if we try and find something with ID -1, we'll just try * and find both here to save hassle later on */ Community community = Community.find(context, UIUtil.getIntParameter(request, "community_id")); Community parentCommunity = Community.find(context, UIUtil.getIntParameter(request, "parent_community_id")); Collection collection = Collection.find(context, UIUtil.getIntParameter(request, "collection_id")); // Just about every JSP will need the values we received request.setAttribute("community", community); request.setAttribute("parent", parentCommunity); request.setAttribute("collection", collection); /* * First we check for a "cancel" button - if it's been pressed, we * simply return to the main control page */ if (request.getParameter("submit_cancel") != null) { showControls(context, request, response); return; } // Now proceed according to "action" parameter switch (action) { case START_EDIT_COMMUNITY: // Display the relevant "edit community" page JSPManager.showJSP(request, response, "/dspace-admin/edit-community.jsp"); break; case START_DELETE_COMMUNITY: // Show "confirm delete" page JSPManager.showJSP(request, response, "/dspace-admin/confirm-delete-community.jsp"); break; case START_CREATE_COMMUNITY: // Display edit community page with empty fields + create button JSPManager.showJSP(request, response, "/dspace-admin/edit-community.jsp"); break; case START_EDIT_COLLECTION: // Display the relevant "edit collection" page JSPManager.showJSP(request, response, "/dspace-admin/edit-collection.jsp"); break; case START_DELETE_COLLECTION: // Show "confirm delete" page JSPManager.showJSP(request, response, "/dspace-admin/confirm-delete-collection.jsp"); break; case START_CREATE_COLLECTION: // Forward to collection creation wizard response.sendRedirect(response.encodeRedirectURL( request.getContextPath() + "/dspace-admin/collection-wizard?community_id=" + community.getID())); break; case CONFIRM_EDIT_COMMUNITY: // Edit or creation of a community confirmed processConfirmEditCommunity(context, request, response, community); break; case CONFIRM_DELETE_COMMUNITY: // remember the parent community, if any Community parent = community.getParentCommunity(); // Delete the community community.delete(); // if community was top-level, redirect to community-list page if (parent == null) { response.sendRedirect(response.encodeRedirectURL( request.getContextPath() + "/community-list")); } else // redirect to parent community page { response.sendRedirect(response.encodeRedirectURL( request.getContextPath() + "/handle/" + parent.getHandle() )); } // Show main control page //showControls(context, request, response); // Commit changes to DB context.complete(); break; case CONFIRM_EDIT_COLLECTION: // Edit or creation of a collection confirmed processConfirmEditCollection( context, request, response, community, collection); break; case CONFIRM_DELETE_COLLECTION: // Delete the collection community.removeCollection(collection); // Show main control page showControls(context, request, response); // Commit changes to DB context.complete(); break; default: // Erm... weird action value received. log.warn(LogManager.getHeader(context, "integrity_error", UIUtil.getRequestLogInfo(request))); JSPManager.showIntegrityError(request, response); } }
47214 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47214/44d920f6673301feb8b329391378fb326189f9de/EditCommunitiesServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/admin/EditCommunitiesServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 40, 3118, 669, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 368, 5783, 16, 2621, 309, 732, 1240, 279, 10263, 590, 261, 6327, 310, 279, 19128, 13, 3639, 514, 5064, 273, 590, 18, 588, 8046, 5621, 3639, 309, 261, 22194, 480, 446, 597, 5411, 5064, 18, 31806, 2932, 16404, 19, 687, 17, 892, 7923, 480, 300, 21, 13, 3639, 288, 5411, 368, 1220, 353, 279, 10263, 590, 16, 1427, 518, 1807, 279, 585, 3617, 5411, 1207, 4777, 26604, 12, 2472, 16, 590, 16, 766, 1769, 5411, 327, 31, 3639, 289, 3639, 1748, 540, 380, 25019, 358, 9638, 10138, 18, 225, 8315, 646, 6104, 392, 315, 1128, 6, 1569, 540, 380, 11193, 4121, 4260, 358, 506, 2731, 261, 2080, 326, 6810, 5721, 12998, 540, 1195, 3639, 509, 1301, 273, 6484, 1304, 18, 588, 1702, 1662, 12, 2293, 16, 315, 1128, 8863, 3639, 1748, 540, 380, 22099, 434, 326, 10138, 14467, 1245, 578, 1898, 434, 4259, 924, 18, 225, 7897, 732, 2537, 540, 380, 336, 446, 309, 732, 775, 471, 1104, 5943, 598, 1599, 300, 21, 16, 732, 5614, 2537, 775, 540, 380, 471, 1104, 3937, 2674, 358, 1923, 366, 428, 298, 5137, 603, 540, 1195, 3639, 16854, 13352, 19833, 273, 16854, 13352, 18, 4720, 12, 2472, 16, 5411, 6484, 1304, 18, 588, 1702, 1662, 12, 2293, 16, 315, 20859, 67, 350, 7923, 1769, 3639, 16854, 13352, 982, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 40, 3118, 669, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 368, 5783, 16, 2621, 309, 732, 1240, 279, 10263, 590, 261, 6327, 310, 279, 19128, 13, 3639, 514, 5064, 273, 590, 18, 588, 8046, 5621, 3639, 309, 261, 22194, 480, 446, 597, 5411, 5064, 18, 31806, 2932, 16404, 19, 687, 17, 892, 7923, 480, 300, 21, 13, 3639, 288, 5411, 368, 1220, 353, 279, 10263, 590, 16, 1427, 518, 1807, 279, 585, 3617, 5411, 1207, 4777, 26604, 12, 2472, 16, 590, 16, 766, 1769, 5411, 327, 31, 3639, 289, 3639, 1748, 540, 380, 25019, 358, 9638, 10138, 2 ]
public org.quickfix.field.QuantityType getQuantityType() throws FieldNotFound { org.quickfix.field.QuantityType value = new org.quickfix.field.QuantityType();
public quickfix.field.QuantityType getQuantityType() throws FieldNotFound { quickfix.field.QuantityType value = new quickfix.field.QuantityType();
public org.quickfix.field.QuantityType getQuantityType() throws FieldNotFound { org.quickfix.field.QuantityType value = new org.quickfix.field.QuantityType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix43/NewOrderMultileg.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 559, 336, 12035, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 559, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 559, 336, 12035, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 12035, 559, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Object ob = getActualValue(content, context, fTempInfo);
Object ob = getActualValue(content, context, validatedInfo);
public Object validate(String content, ValidationContext context, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException { // first normalize string value, and convert it to actual value Object ob = getActualValue(content, context, fTempInfo); validate(context, fTempInfo); if (validatedInfo != null) { validatedInfo.actualValue = fTempInfo.actualValue; validatedInfo.normalizedValue = fTempInfo.normalizedValue; validatedInfo.memberType = fTempInfo.memberType; validatedInfo.memberTypes = fTempInfo.memberTypes; } return ob; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/46d42b241ab917d5c2293aef50576fbf637ffa74/XSSimpleTypeDecl.java/buggy/src/org/apache/xerces/impl/dv/xs/XSSimpleTypeDecl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1954, 12, 780, 913, 16, 5684, 1042, 819, 16, 2364, 690, 966, 10266, 966, 13, 1216, 1962, 20228, 9738, 288, 3639, 368, 1122, 3883, 533, 460, 16, 471, 1765, 518, 358, 3214, 460, 3639, 1033, 3768, 273, 20208, 620, 12, 1745, 16, 819, 16, 10266, 966, 1769, 3639, 1954, 12, 2472, 16, 284, 7185, 966, 1769, 3639, 309, 261, 877, 690, 966, 480, 446, 13, 288, 5411, 10266, 966, 18, 18672, 620, 273, 284, 7185, 966, 18, 18672, 620, 31, 5411, 10266, 966, 18, 17762, 620, 273, 284, 7185, 966, 18, 17762, 620, 31, 5411, 10266, 966, 18, 5990, 559, 273, 284, 7185, 966, 18, 5990, 559, 31, 5411, 10266, 966, 18, 5990, 2016, 273, 284, 7185, 966, 18, 5990, 2016, 31, 3639, 289, 3639, 327, 3768, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 1954, 12, 780, 913, 16, 5684, 1042, 819, 16, 2364, 690, 966, 10266, 966, 13, 1216, 1962, 20228, 9738, 288, 3639, 368, 1122, 3883, 533, 460, 16, 471, 1765, 518, 358, 3214, 460, 3639, 1033, 3768, 273, 20208, 620, 12, 1745, 16, 819, 16, 10266, 966, 1769, 3639, 1954, 12, 2472, 16, 284, 7185, 966, 1769, 3639, 309, 261, 877, 690, 966, 480, 446, 13, 288, 5411, 10266, 966, 18, 18672, 620, 273, 284, 7185, 966, 18, 18672, 620, 31, 5411, 10266, 966, 18, 17762, 620, 273, 284, 7185, 966, 18, 17762, 620, 31, 5411, 10266, 966, 18, 5990, 559, 273, 284, 7185, 966, 18, 5990, 559, 31, 5411, 10266, 966, 18, 5990, 2016, 273, 284, 2 ]
assertEquals(Arrays.asList(new Object[] {"Employee","Manager","CEO","Contractor","Secretary"}), subcats.get("People"));
public void testCategoryLoad() throws Exception { ComponentContext context = new ComponentContext(); ComponentContext.setContext(context, getRequest()); setRequestPathInfo("/initBegin"); actionPerform(); verifyNoActionErrors(); Set cats = (Set) getActionServlet().getServletContext().getAttribute(Constants.CATEGORIES); Map subcats = (Map) getActionServlet().getServletContext().getAttribute(Constants.CATEGORY_CLASSES); assertNotNull(cats); assertNotNull(subcats); Set expecting = new HashSet(); expecting.add("People"); expecting.add("Entities"); assertEquals(2, cats.size()); assertEquals(3, subcats.keySet().size()); assertEquals(expecting, cats); assertEquals(Arrays.asList(new Object[] {"Employee","Manager","CEO","Contractor","Secretary"}), subcats.get("People")); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/10d868c54ca47c727e8766fe5932793c3cf4cbad/BeginControllerTest.java/buggy/testmodel/webapp/test/src/org/intermine/web/BeginControllerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4457, 2563, 1435, 1216, 1185, 288, 3639, 5435, 1042, 819, 273, 394, 5435, 1042, 5621, 3639, 5435, 1042, 18, 542, 1042, 12, 2472, 16, 4328, 10663, 3639, 12475, 743, 966, 2932, 19, 2738, 8149, 8863, 3639, 1301, 4990, 5621, 3639, 3929, 2279, 1803, 4229, 5621, 7734, 1000, 27525, 273, 261, 694, 13, 12473, 4745, 7675, 588, 4745, 1042, 7675, 588, 1499, 12, 2918, 18, 13000, 17562, 8805, 1769, 3639, 1635, 720, 24750, 273, 261, 863, 13, 12473, 4745, 7675, 588, 4745, 1042, 7675, 588, 1499, 12, 2918, 18, 24847, 67, 27337, 1769, 7734, 25395, 12, 24750, 1769, 3639, 25395, 12, 1717, 24750, 1769, 7734, 1000, 17012, 273, 394, 6847, 5621, 3639, 17012, 18, 1289, 2932, 11227, 11763, 8863, 3639, 17012, 18, 1289, 2932, 8108, 8863, 7734, 1815, 8867, 12, 22, 16, 27525, 18, 1467, 10663, 3639, 1815, 8867, 12, 23, 16, 720, 24750, 18, 856, 694, 7675, 1467, 10663, 3639, 1815, 8867, 12, 12339, 310, 16, 27525, 1769, 3639, 1815, 8867, 12, 12726, 18, 345, 682, 12, 2704, 1033, 8526, 10792, 12528, 41, 27520, 15937, 1318, 15937, 1441, 51, 15937, 8924, 280, 15937, 5207, 814, 6, 97, 3631, 720, 24750, 18, 588, 2932, 11227, 11763, 7923, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4457, 2563, 1435, 1216, 1185, 288, 3639, 5435, 1042, 819, 273, 394, 5435, 1042, 5621, 3639, 5435, 1042, 18, 542, 1042, 12, 2472, 16, 4328, 10663, 3639, 12475, 743, 966, 2932, 19, 2738, 8149, 8863, 3639, 1301, 4990, 5621, 3639, 3929, 2279, 1803, 4229, 5621, 7734, 1000, 27525, 273, 261, 694, 13, 12473, 4745, 7675, 588, 4745, 1042, 7675, 588, 1499, 12, 2918, 18, 13000, 17562, 8805, 1769, 3639, 1635, 720, 24750, 273, 261, 863, 13, 12473, 4745, 7675, 588, 4745, 1042, 7675, 588, 1499, 12, 2918, 18, 24847, 67, 27337, 1769, 7734, 25395, 12, 24750, 1769, 3639, 25395, 12, 1717, 24750, 1769, 7734, 1000, 17012, 273, 394, 6847, 5621, 3639, 17012, 18, 1289, 2932, 2 ]
public void addToken(Token token) { int index = token.getTokenIndex(); if(index == -1) { // @todo can this happen? System.err.println("Negative index in DBInputText.addToken() for token "+token); return; } Integer idx = new Integer(index); currentTokenIndex = idx.intValue(); /** Insert the index into the list of sorted indexes - used to render the token */ if(!indexToTokenInfoMap.containsKey(idx)) { if(inputTokenIndexes.isEmpty()) inputTokenIndexes.add(idx); else { for(int i=inputTokenIndexes.size()-1; i >= 0; i--) { Integer n = (Integer) inputTokenIndexes.get(i); if(n.intValue() < idx.intValue()) { inputTokenIndexes.add(i+1, idx); break; } } } } /** Add the token even if it is already in the map because its position or attribute * may have changed */ indexToTokenInfoMap.put(idx, new DBInputTextTokenInfo(token, locationLine, locationCharInLine)); }
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/8c76a494f8e5f4ca96db631e84c086632b4b0543/DBInputProcessorToken.java/buggy/src/org/antlr/works/debugger/input/DBInputProcessorToken.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1289, 1345, 12, 20477, 319, 969, 15329, 474, 1615, 33, 2316, 18, 588, 1345, 1016, 5621, 430, 12, 1615, 631, 17, 21, 15329, 759, 36, 88, 369, 504, 304, 451, 1468, 438, 1907, 35, 3163, 18, 370, 18, 8222, 2932, 14959, 1615, 267, 2290, 1210, 1528, 18, 1289, 1345, 1435, 18850, 969, 6, 15, 2316, 1769, 2463, 31, 97, 4522, 3465, 33, 2704, 4522, 12, 1615, 1769, 2972, 1345, 1016, 33, 3465, 18, 474, 620, 5621, 26873, 4600, 5787, 1615, 474, 10370, 5449, 792, 10350, 11265, 17, 3668, 88, 479, 82, 765, 451, 278, 969, 5549, 430, 12, 5, 1615, 774, 1345, 966, 863, 18, 12298, 653, 12, 3465, 3719, 95, 430, 12, 2630, 1345, 8639, 18, 291, 1921, 10756, 2630, 1345, 8639, 18, 1289, 12, 3465, 1769, 12107, 95, 1884, 12, 474, 77, 33, 2630, 1345, 8639, 18, 1467, 1435, 17, 21, 31, 77, 34, 33, 20, 31, 77, 413, 15329, 4522, 82, 28657, 4522, 13, 2630, 1345, 8639, 18, 588, 12, 77, 1769, 430, 12, 82, 18, 474, 620, 1435, 32, 3465, 18, 474, 620, 10756, 95, 2630, 1345, 8639, 18, 1289, 12, 77, 15, 21, 16, 3465, 1769, 8820, 31, 9090, 97, 4004, 636, 986, 451, 278, 969, 16728, 430, 305, 291, 17583, 267, 451, 25248, 26274, 1282, 3276, 280, 4589, 14, 24877, 21516, 6703, 5549, 1615, 774, 1345, 966, 863, 18, 458, 12, 3465, 16, 2704, 2290, 1210, 1528, 1345, 966, 12, 2316, 16, 3562, 1670, 16, 3562, 2156, 382, 1670, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 1289, 1345, 12, 20477, 319, 969, 15329, 474, 1615, 33, 2316, 18, 588, 1345, 1016, 5621, 430, 12, 1615, 631, 17, 21, 15329, 759, 36, 88, 369, 504, 304, 451, 1468, 438, 1907, 35, 3163, 18, 370, 18, 8222, 2932, 14959, 1615, 267, 2290, 1210, 1528, 18, 1289, 1345, 1435, 18850, 969, 6, 15, 2316, 1769, 2463, 31, 97, 4522, 3465, 33, 2704, 4522, 12, 1615, 1769, 2972, 1345, 1016, 33, 3465, 18, 474, 620, 5621, 26873, 4600, 5787, 1615, 474, 10370, 5449, 792, 10350, 11265, 17, 3668, 88, 479, 82, 765, 451, 278, 969, 5549, 430, 12, 5, 1615, 774, 1345, 966, 863, 18, 12298, 653, 12, 3465, 3719, 95, 430, 12, 2630, 1345, 8639, 18, 2 ]
try { if (output != null) output.close(); } catch (IOException ioex) { log.warn(ioex.toString()); }
private Collection processTarget(Target target) throws Exception { String uri = target.getSourceURI(); int linkCount = 0; // Get parameters, deparameterized URI and path from URI final TreeMap parameters = new TreeMap(); final String deparameterizedURI = NetUtils.deparameterize(uri, parameters); final String path = NetUtils.getPath(uri); final String suri = NetUtils.parameterize(deparameterizedURI, parameters); parameters.put("user-agent", userAgent); parameters.put("accept", accept); // Get file name from URI (without path) String pageURI = deparameterizedURI; if (pageURI.indexOf("/") != -1) { pageURI = pageURI.substring(pageURI.lastIndexOf("/") + 1); if (pageURI.length() == 0) { pageURI = "./"; } } String filename; if (confirmExtension) { filename = (String) allTranslatedLinks.get(suri); if (filename == null) { filename = mangle(suri); final String type = getType(deparameterizedURI, parameters); final String ext = NetUtils.getExtension(filename); final String defaultExt = MIMEUtils.getDefaultExtension(type); if (defaultExt != null) { if ((ext == null) || (!ext.equals(defaultExt))) { filename += defaultExt; } } allTranslatedLinks.put(suri, filename); } } else { filename = suri; } // Store processed URI list to avoid eternal loop allProcessedLinks.put(target, target); if ("".equals(filename)) { return new ArrayList(); } // Process links final List absoluteLinks = new ArrayList(); final HashMap translatedLinks = new HashMap(); List gatheredLinks = new ArrayList(); if (followLinks && confirmExtension) { final Iterator i = this.getLinks(deparameterizedURI, parameters).iterator(); while (i.hasNext()) { String link = (String) i.next(); // Fix relative links starting with "?" String relativeLink = link; if (relativeLink.startsWith("?")) { relativeLink = pageURI + relativeLink; } String absoluteLink = NetUtils.normalize(NetUtils.absolutize(path, relativeLink)); { final TreeMap p = new TreeMap(); absoluteLink = NetUtils.parameterize( NetUtils.deparameterize(absoluteLink, p), p); } String translatedAbsoluteLink = (String) allTranslatedLinks.get(absoluteLink); if (translatedAbsoluteLink == null) { try { translatedAbsoluteLink = this.translateURI(absoluteLink); log.info(" Link translated: " + absoluteLink); allTranslatedLinks.put( absoluteLink, translatedAbsoluteLink); absoluteLinks.add(absoluteLink); } catch (ProcessingException pe) { this.sendBrokenLinkWarning(absoluteLink, pe.getMessage()); } } // I have to add also broken links to the absolute links // to be able to generate the "broken link" page absoluteLinks.add(absoluteLink); final String translatedRelativeLink = NetUtils.relativize(path, translatedAbsoluteLink); translatedLinks.put(link, translatedRelativeLink); } linkCount = translatedLinks.size(); } try { // Process URI DelayedOutputStream output = new DelayedOutputStream(); try { int status = getPage( deparameterizedURI, parameters, confirmExtension ? translatedLinks : null, gatheredLinks, output); if (status >= 400) { throw new ProcessingException( "Resource not found: " + status); } if (followLinks && !confirmExtension) { for (Iterator it = gatheredLinks.iterator(); it.hasNext(); ) { String link = (String) it.next(); if (link.startsWith("?")) { link = pageURI + link; } String absoluteLink = NetUtils.normalize(NetUtils.absolutize(path, link)); { final TreeMap p = new TreeMap(); absoluteLink = NetUtils.parameterize( NetUtils.deparameterize(absoluteLink, p), p); } absoluteLinks.add(absoluteLink); } linkCount = gatheredLinks.size(); } pageGenerated(uri, linkCount, 0); // @todo@ get the number of pages remaining here } catch (ProcessingException pe) { output.close(); output = null; this.resourceUnavailable(target, uri, filename); this.sendBrokenLinkWarning( filename, DefaultNotifyingBuilder.getRootCause(pe).getMessage()); } finally { if (output != null) { ModifiableSource source = target.getSource(filename); try { OutputStream stream = source.getOutputStream(); output.setFileOutputStream(stream); output.flush(); } finally { target.releaseSource(source); } } try { if (output != null) output.close(); } catch (IOException ioex) { log.warn(ioex.toString()); } } } catch (Exception rnfe) { log.warn("Could not process URI: " + deparameterizedURI); this.sendBrokenLinkWarning(deparameterizedURI, "URI not found"); } List targets = new ArrayList(); for (Iterator i = absoluteLinks.iterator(); i.hasNext();) { String link = (String) i.next(); Target derivedTarget = target.getDerivedTarget(link); if (derivedTarget != null) { targets.add(target.getDerivedTarget(link)); } } return targets; }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/9f176e7a73cb3fb3e0a9b93a15684b84c4530bc7/CocoonBean.java/buggy/src/java/org/apache/cocoon/bean/CocoonBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2200, 1207, 2326, 12, 2326, 1018, 13, 1216, 1185, 288, 3639, 514, 2003, 273, 1018, 18, 588, 1830, 3098, 5621, 3639, 509, 1692, 1380, 273, 374, 31, 3639, 368, 968, 1472, 16, 443, 6775, 1235, 3699, 471, 589, 628, 3699, 3639, 727, 16381, 1472, 273, 394, 16381, 5621, 3639, 727, 514, 443, 6775, 1235, 3098, 273, 5411, 8503, 1989, 18, 323, 6775, 554, 12, 1650, 16, 1472, 1769, 3639, 727, 514, 589, 273, 8503, 1989, 18, 588, 743, 12, 1650, 1769, 3639, 727, 514, 272, 1650, 273, 5411, 8503, 1989, 18, 6775, 554, 12, 323, 6775, 1235, 3098, 16, 1472, 1769, 3639, 1472, 18, 458, 2932, 1355, 17, 5629, 3113, 7574, 1769, 3639, 1472, 18, 458, 2932, 9436, 3113, 2791, 1769, 3639, 368, 968, 585, 508, 628, 3699, 261, 13299, 589, 13, 3639, 514, 1363, 3098, 273, 443, 6775, 1235, 3098, 31, 3639, 309, 261, 2433, 3098, 18, 31806, 2932, 4898, 13, 480, 300, 21, 13, 288, 5411, 1363, 3098, 273, 1363, 3098, 18, 28023, 12, 2433, 3098, 18, 2722, 31985, 2932, 4898, 13, 397, 404, 1769, 5411, 309, 261, 2433, 3098, 18, 2469, 1435, 422, 374, 13, 288, 7734, 1363, 3098, 273, 3552, 4898, 31, 5411, 289, 3639, 289, 3639, 514, 1544, 31, 3639, 309, 261, 10927, 3625, 13, 288, 5411, 1544, 273, 261, 780, 13, 777, 20421, 7100, 18, 588, 12, 87, 1650, 1769, 5411, 309, 261, 3459, 422, 446, 13, 288, 7734, 1544, 273, 312, 4341, 12, 87, 1650, 1769, 7734, 727, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2200, 1207, 2326, 12, 2326, 1018, 13, 1216, 1185, 288, 3639, 514, 2003, 273, 1018, 18, 588, 1830, 3098, 5621, 3639, 509, 1692, 1380, 273, 374, 31, 3639, 368, 968, 1472, 16, 443, 6775, 1235, 3699, 471, 589, 628, 3699, 3639, 727, 16381, 1472, 273, 394, 16381, 5621, 3639, 727, 514, 443, 6775, 1235, 3098, 273, 5411, 8503, 1989, 18, 323, 6775, 554, 12, 1650, 16, 1472, 1769, 3639, 727, 514, 589, 273, 8503, 1989, 18, 588, 743, 12, 1650, 1769, 3639, 727, 514, 272, 1650, 273, 5411, 8503, 1989, 18, 6775, 554, 12, 323, 6775, 1235, 3098, 16, 1472, 1769, 3639, 1472, 18, 458, 2932, 1355, 17, 5629, 3113, 7574, 1769, 3639, 1472, 18, 458, 2932, 2 ]
System.out.println( i + ": yTopPos=" + item.yTopPos );
protected void initContent( Container parent, int firstLineWidth, int lineWidth ) { //#debug System.out.println("ContainerView: intialising content for " + this + " with vertical-padding " + this.paddingVertical ); //#if polish.Container.allowCycling != false this.allowCycling = parent.allowCycling; //#endif //#if polish.css.view-type-left-x-offset lineWidth -= this.leftXOffset; //#endif //#if polish.css.view-type-right-x-offset lineWidth -= this.rightXOffset; //#endif this.parentContainer = parent; Item[] myItems = parent.items; //#ifdef tmp.useTable if (this.columnsSetting == NO_COLUMNS || myItems.length <= 1) { //#endif int myContentWidth = 0; int myContentHeight = 0; boolean hasFocusableItem = false; for (int i = 0; i < myItems.length; i++) { Item item = myItems[i]; //System.out.println("initalising " + item.getClass().getName() + ":" + i); int width = item.getItemWidth( firstLineWidth, lineWidth ); int height = item.getItemHeight( firstLineWidth, lineWidth ); // now the item should have a style, so it can be safely focused // without loosing the style information: if (item.appearanceMode != Item.PLAIN) { hasFocusableItem = true; } if (width > myContentWidth) { myContentWidth = width; } item.yTopPos = myContentHeight; item.yBottomPos = myContentHeight + item.itemHeight; myContentHeight += height + this.paddingVertical; } if (hasFocusableItem) { this.appearanceMode = Item.INTERACTIVE; } else { this.appearanceMode = Item.PLAIN; } //#if polish.css.view-type-top-y-offset this.contentHeight = myContentHeight + this.topYOffset; //#else this.contentHeight = myContentHeight; //#endif this.contentWidth = myContentWidth; return; //#ifdef tmp.useTable } //#endif //#ifdef tmp.useTable // columns are used boolean isNormalWidthColumns = (this.columnsSetting == NORMAL_WIDTH_COLUMNS); //#ifdef polish.css.columns-width.star if (this.columnsSetting == STATIC_WIDTH_COLUMNS) { if (this.starIndex != -1) { int combinedWidth = 0; for (int i = 0; i < this.numberOfColumns; i++) { combinedWidth += this.columnsWidths[i]; } this.columnsWidths[this.starIndex] = lineWidth - combinedWidth; } } else { //#else //# if (this.columnsSetting != STATIC_WIDTH_COLUMNS) { //#endif int availableColumnWidth; if (isNormalWidthColumns) { // this.columnsSetting == NORMAL_WIDTH_COLUMNS // each column should use as much space as it can use // without ousting the other columns // (the calculation will be finished below) availableColumnWidth = lineWidth - ((this.numberOfColumns -1) * this.paddingHorizontal); } else { // each column should take an equal share availableColumnWidth = (lineWidth - ((this.numberOfColumns -1) * this.paddingHorizontal)) / this.numberOfColumns; } //System.out.println("available column width: " + availableColumnWidth ); this.columnsWidths = new int[ this.numberOfColumns ]; for (int i = 0; i < this.numberOfColumns; i++) { this.columnsWidths[i] = availableColumnWidth; } } //#if polish.css.colspan ArrayList rowHeightsList = new ArrayList( (myItems.length / this.numberOfColumns) + (myItems.length % 2) + 1 ); //#else this.numberOfRows = (myItems.length / this.numberOfColumns) + (myItems.length % 2); this.rowsHeights = new int[ this.numberOfRows ]; //#endif int maxRowHeight = 0; int columnIndex = 0; int rowIndex = 0; int[] maxColumnWidths = null; if (isNormalWidthColumns) { maxColumnWidths = new int[ this.numberOfColumns ]; } int maxWidth = 0; // important for "equal" columns-width int myContentHeight = 0; boolean hasFocusableItem = false; //System.out.println("starting init of " + myItems.length + " container items."); for (int i=0; i< myItems.length; i++) { Item item = myItems[i]; if (item.appearanceMode != Item.PLAIN) { hasFocusableItem = true; } int availableWidth = this.columnsWidths[columnIndex]; //#if polish.css.colspan int itemColSpan = item.colSpan; if (!item.isInitialised && item.style != null) { Integer colSpanInt = item.style.getIntProperty("colspan"); if ( colSpanInt != null ) { itemColSpan = colSpanInt.intValue(); //System.out.println("colspan of item " + i + "/" + item + ", column " + columnIndex + ": " + itemColSpan); } } //System.out.println("ContainerView.init(): colspan of item " + i + "=" + itemColSpan); if (itemColSpan > 1) { // okay, this item stretched beyond one column, // so let's calculate the correct available cell width // and switch to the right column index: int maxColSpan = this.numberOfColumns - columnIndex; if (itemColSpan > maxColSpan) { //#debug error System.err.println("Warning: colspan " + itemColSpan + " is invalid at column " + columnIndex + " of a table with " + this.numberOfColumns + " columns, now using maximum possible value " + maxColSpan + "."); itemColSpan = maxColSpan; } // adjust the available width only when // each column has an equal size or when // the column widths are static, // otherwise the complete row width // is available anyhow: if (!isNormalWidthColumns) { if (itemColSpan == maxColSpan) { availableWidth = 0; for (int j = 0; j < columnIndex; j++) { availableWidth += this.paddingHorizontal + this.columnsWidths[j]; } availableWidth = lineWidth - availableWidth; } else { for (int j = columnIndex + 1; j < columnIndex + itemColSpan; j++) { availableWidth += this.paddingHorizontal + this.columnsWidths[j]; } } //System.out.println("ContainerView.init(): adjusted availableWidth for item " + i + ": " + availableWidth); } } //#endif //System.out.println( i + ": available with: " + availableWidth + ", item.isInitialized=" + item.isInitialised + ", itemWidth=" + item.getItemWidth( availableWidth, availableWidth )); if (item.isInitialised && item.itemWidth > availableWidth) { item.isInitialised = false; } int width = item.getItemWidth( availableWidth, availableWidth ); //System.out.println("got item width"); int height = item.getItemHeight( availableWidth, availableWidth ); if (height > maxRowHeight) { maxRowHeight = height; } //#if polish.css.colspan if (itemColSpan == 1) { //#endif if (isNormalWidthColumns && width > maxColumnWidths[columnIndex ]) { maxColumnWidths[ columnIndex ] = width; } if (width > maxWidth ) { maxWidth = width; } //#if polish.css.colspan } //#endif //#if polish.css.colspan if (item.colSpan != itemColSpan) { //#debug System.out.println("initializing new colspan of item " + i + "/" + item + ", column " + columnIndex + ": " + itemColSpan); item.colSpan = itemColSpan; item.isInitialised = false; } columnIndex += itemColSpan; //#else columnIndex++; //#endif if (columnIndex == this.numberOfColumns) { //System.out.println("starting new row: rowIndex=" + rowIndex + " numberOfRows: " + numberOfRows); columnIndex = 0; //#if polish.css.colspan //System.out.println("ContainerView.init(): adding new row " + rowIndex + " with height " + maxRowHeight + ", contentHeight=" + myContentHeight + ", item " + i); rowHeightsList.add( new Integer( maxRowHeight ) ); //#else this.rowsHeights[rowIndex] = maxRowHeight; //#endif myContentHeight += maxRowHeight + this.paddingVertical; maxRowHeight = 0; rowIndex++; } } // for each item if (hasFocusableItem) { this.appearanceMode = Item.INTERACTIVE; } else { this.appearanceMode = Item.PLAIN; } //#if polish.css.colspan if (columnIndex != 0) { // last row is not completely filled. rowHeightsList.add( new Integer( maxRowHeight ) ); myContentHeight += maxRowHeight; } this.numberOfRows = rowHeightsList.size(); //System.out.println("ContainerView.init(): numberOfRows=" + this.numberOfRows + ", rowIndex=" + rowIndex); this.rowsHeights = new int[ this.numberOfRows ]; for (int i = 0; i < this.numberOfRows; i++) { this.rowsHeights[i] = ((Integer) rowHeightsList.get(i)).intValue(); } //#endif // now save the worked out dimensions: if (isNormalWidthColumns) { // Each column should use up as much space as // needed in the "normal" columns-width mode. // Each column which takes less than available // the available-row-width / number-of-columns // can keep, but the others might need to be adjusted, // in case the complete width of the table is wider // than the allowed width. int availableRowWidth = lineWidth - ((this.numberOfColumns -1) * this.paddingHorizontal); int availableColumnWidth = availableRowWidth / this.numberOfColumns; int usedUpWidth = 0; int leftColumns = this.numberOfColumns; int completeWidth = 0; for (int i = 0; i < maxColumnWidths.length; i++) { int maxColumnWidth = maxColumnWidths[i]; if (maxColumnWidth <= availableColumnWidth) { usedUpWidth += maxColumnWidth; leftColumns--; } completeWidth += maxColumnWidth; } if (completeWidth <= availableRowWidth) { // okay, the table is fine just how it is this.columnsWidths = maxColumnWidths; } else { // okay, some columns need to be adjusted: // re-initialise the table: int leftAvailableColumnWidth = (availableRowWidth - usedUpWidth) / leftColumns; int[] newMaxColumnWidths = new int[ this.numberOfColumns ]; myContentHeight = 0; columnIndex = 0; rowIndex = 0; maxRowHeight = 0; maxWidth = 0; //System.out.println("starting init of " + myItems.length + " container items."); for (int i = 0; i < myItems.length; i++) { Item item = myItems[i]; int width = item.itemWidth; int height = item.itemHeight; if (maxColumnWidths[ columnIndex ] <= availableColumnWidth) { newMaxColumnWidths[ columnIndex ] = maxColumnWidths[ columnIndex ]; } else { // re-initialise this item, // if it is wider than the left-available-column-width if ( width > leftAvailableColumnWidth ) { item.isInitialised = false; width = item.getItemWidth( leftAvailableColumnWidth, leftAvailableColumnWidth ); height = item.getItemHeight( leftAvailableColumnWidth, leftAvailableColumnWidth ); } if (width > newMaxColumnWidths[ columnIndex ]) { newMaxColumnWidths[ columnIndex ] = width; } } if (height > maxRowHeight) { maxRowHeight = height; } //#if polish.css.colspan columnIndex += item.colSpan; //#else columnIndex++; //#endif item.yTopPos = myContentHeight; item.yBottomPos = myContentHeight + item.itemHeight; System.out.println( i + ": yTopPos=" + item.yTopPos ); if (columnIndex == this.numberOfColumns) { //System.out.println("starting new row: rowIndex=" + rowIndex + " numberOfRows: " + numberOfRows); columnIndex = 0; this.rowsHeights[rowIndex] = maxRowHeight; myContentHeight += maxRowHeight + this.paddingVertical; maxRowHeight = 0; rowIndex++; } } // for each item this.columnsWidths = newMaxColumnWidths; } } else if (this.columnsSetting == EQUAL_WIDTH_COLUMNS) { // Use the maximum used column-width for each column, // unless this table should be expanded, in which // case the above set widths will be used instead. if (!isLayoutExpand()) { for (int i = 0; i < this.columnsWidths.length; i++) { this.columnsWidths[i] = maxWidth; } } } // otherwise the column widths are defined statically. // set content height & width: int myContentWidth = 0; for (int i = 0; i < this.columnsWidths.length; i++) { myContentWidth += this.columnsWidths[i] + this.paddingHorizontal; } this.contentWidth = myContentWidth; this.contentHeight = myContentHeight; //#endif }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/0093f2b145674676e683de169aebc003af70363c/ContainerView.java/clean/j2me/source/src/de/enough/polish/ui/ContainerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1208, 1350, 12, 4039, 982, 16, 509, 24415, 2384, 16, 509, 26162, 262, 288, 202, 202, 759, 7, 4148, 202, 202, 3163, 18, 659, 18, 8222, 2932, 2170, 1767, 30, 509, 649, 13734, 913, 364, 315, 397, 333, 397, 315, 598, 9768, 17, 9598, 315, 397, 333, 18, 9598, 15704, 11272, 202, 202, 759, 7, 430, 2952, 1468, 18, 2170, 18, 5965, 17992, 830, 310, 480, 629, 1082, 202, 2211, 18, 5965, 17992, 830, 310, 273, 982, 18, 5965, 17992, 830, 310, 31, 202, 202, 759, 7, 409, 430, 202, 202, 759, 7, 430, 2952, 1468, 18, 5212, 18, 1945, 17, 723, 17, 4482, 17, 92, 17, 3348, 1082, 202, 1369, 2384, 3947, 333, 18, 4482, 60, 2335, 31, 202, 202, 759, 7, 409, 430, 202, 202, 759, 7, 430, 2952, 1468, 18, 5212, 18, 1945, 17, 723, 17, 4083, 17, 92, 17, 3348, 1082, 202, 1369, 2384, 3947, 333, 18, 4083, 60, 2335, 31, 202, 202, 759, 7, 409, 430, 9506, 202, 2211, 18, 2938, 2170, 273, 982, 31, 202, 202, 1180, 8526, 3399, 3126, 273, 982, 18, 3319, 31, 202, 202, 759, 7, 430, 536, 1853, 18, 1202, 1388, 202, 202, 430, 261, 2211, 18, 5112, 5568, 422, 3741, 67, 25936, 747, 3399, 3126, 18, 2469, 1648, 404, 13, 288, 202, 202, 759, 7, 409, 430, 1082, 202, 474, 3399, 1350, 2384, 273, 374, 31, 1082, 202, 474, 3399, 1350, 2686, 273, 374, 31, 1082, 202, 6494, 711, 9233, 429, 1180, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1208, 1350, 12, 4039, 982, 16, 509, 24415, 2384, 16, 509, 26162, 262, 288, 202, 202, 759, 7, 4148, 202, 202, 3163, 18, 659, 18, 8222, 2932, 2170, 1767, 30, 509, 649, 13734, 913, 364, 315, 397, 333, 397, 315, 598, 9768, 17, 9598, 315, 397, 333, 18, 9598, 15704, 11272, 202, 202, 759, 7, 430, 2952, 1468, 18, 2170, 18, 5965, 17992, 830, 310, 480, 629, 1082, 202, 2211, 18, 5965, 17992, 830, 310, 273, 982, 18, 5965, 17992, 830, 310, 31, 202, 202, 759, 7, 409, 430, 202, 202, 759, 7, 430, 2952, 1468, 18, 5212, 18, 1945, 17, 723, 17, 4482, 17, 92, 17, 3348, 1082, 202, 1369, 2384, 3947, 333, 18, 2 ]
cx.ctorScope = scope;
public Scriptable construct(Context cx, Scriptable scope, Object[] args) throws JavaScriptException { if (method == null || parmsLength == VARARGS_CTOR) { Scriptable result; if (method != null) { // Ugly: allow variable-arg constructors that need access to the // scope to get it from the Context. Cleanest solution would be // to modify the varargs form, but that would require users with // the old form to change their code. cx.ctorScope = scope; result = (Scriptable) callVarargs(cx, null, args, true); cx.ctorScope = null; } else { result = (Scriptable) call(cx, scope, null, args); } if (result.getPrototype() == null) result.setPrototype(getClassPrototype()); if (result.getParentScope() == null) { Scriptable parent = getParentScope(); if (result != parent) result.setParentScope(parent); } return result; } else if (method != null && !isStatic) { Scriptable result; try { result = (Scriptable) method.getDeclaringClass().newInstance(); } catch (IllegalAccessException e) { throw WrappedException.wrapException(e); } catch (InstantiationException e) { throw WrappedException.wrapException(e); } result.setPrototype(getClassPrototype()); result.setParentScope(getParentScope()); Object val = call(cx, scope, result, args); if (val != null && val != Undefined.instance && val instanceof Scriptable) { return (Scriptable) val; } return result; } return super.construct(cx, scope, args); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/d589083a1e05831fd048d3c3f77379559ec628d7/FunctionObject.java/clean/js/rhino/src/org/mozilla/javascript/FunctionObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22780, 4872, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 2039, 422, 446, 747, 17902, 1782, 422, 8350, 22439, 67, 22727, 13, 288, 5411, 22780, 563, 31, 5411, 309, 261, 2039, 480, 446, 13, 288, 7734, 368, 587, 75, 715, 30, 1699, 2190, 17, 3175, 19874, 716, 1608, 2006, 358, 326, 1171, 368, 2146, 358, 336, 518, 628, 326, 1772, 18, 9645, 395, 6959, 4102, 506, 7734, 368, 358, 5612, 326, 19732, 646, 16, 1496, 716, 4102, 2583, 3677, 598, 1171, 368, 326, 1592, 646, 358, 2549, 3675, 981, 18, 21821, 563, 273, 261, 3651, 429, 13, 745, 27232, 12, 71, 92, 16, 446, 16, 833, 16, 638, 1769, 7734, 9494, 18, 30206, 3876, 273, 446, 31, 5411, 289, 469, 288, 7734, 563, 273, 261, 3651, 429, 13, 745, 12, 71, 92, 16, 2146, 16, 446, 16, 833, 1769, 5411, 289, 5411, 309, 261, 2088, 18, 588, 15846, 1435, 422, 446, 13, 7734, 563, 18, 542, 15846, 12, 588, 797, 15846, 10663, 5411, 309, 261, 2088, 18, 588, 3054, 3876, 1435, 422, 446, 13, 288, 7734, 22780, 982, 273, 5089, 3876, 5621, 7734, 309, 261, 2088, 480, 982, 13, 10792, 563, 18, 542, 3054, 3876, 12, 2938, 1769, 5411, 289, 5411, 327, 563, 31, 3639, 289, 469, 309, 261, 2039, 480, 446, 597, 401, 291, 5788, 13, 288, 5411, 22780, 563, 31, 5411, 775, 288, 7734, 563, 273, 261, 3651, 429, 13, 707, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 22780, 4872, 12, 1042, 9494, 16, 22780, 2146, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 2039, 422, 446, 747, 17902, 1782, 422, 8350, 22439, 67, 22727, 13, 288, 5411, 22780, 563, 31, 5411, 309, 261, 2039, 480, 446, 13, 288, 7734, 368, 587, 75, 715, 30, 1699, 2190, 17, 3175, 19874, 716, 1608, 2006, 358, 326, 1171, 368, 2146, 358, 336, 518, 628, 326, 1772, 18, 9645, 395, 6959, 4102, 506, 7734, 368, 358, 5612, 326, 19732, 646, 16, 1496, 716, 4102, 2583, 3677, 598, 1171, 368, 326, 1592, 646, 358, 2549, 3675, 981, 18, 21821, 563, 273, 261, 3651, 429, 13, 745, 27232, 12, 71, 92, 16, 446, 16, 2 ]
if ((PROPERTY + "declaration-handler").equals (propertyId)) return declHandler == base ? null : declHandler;
if ((PROPERTY + "declaration-handler").equals(propertyId)) { return (declHandler == base) ? null : declHandler; }
public Object getProperty (String propertyId) throws SAXNotRecognizedException { if ((PROPERTY + "declaration-handler").equals (propertyId)) return declHandler == base ? null : declHandler; if ((PROPERTY + "lexical-handler").equals (propertyId)) return lexicalHandler == base ? null : lexicalHandler; // unknown properties throw new SAXNotRecognizedException (propertyId); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/24330cfb4cc445da21a71a819ce54efe764fab6e/SAXDriver.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/SAXDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3911, 261, 780, 31894, 13, 565, 1216, 10168, 1248, 5650, 9367, 503, 565, 288, 202, 430, 14015, 9900, 397, 315, 22448, 17, 4176, 20387, 14963, 261, 4468, 548, 3719, 202, 565, 327, 3496, 1503, 422, 1026, 692, 446, 294, 3496, 1503, 31, 202, 430, 14015, 9900, 397, 315, 4149, 1706, 17, 4176, 20387, 14963, 261, 4468, 548, 3719, 202, 565, 327, 5275, 1706, 1503, 422, 1026, 692, 446, 294, 5275, 1706, 1503, 31, 202, 202, 759, 5917, 1790, 202, 12849, 394, 10168, 1248, 5650, 9367, 503, 261, 4468, 548, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 3911, 261, 780, 31894, 13, 565, 1216, 10168, 1248, 5650, 9367, 503, 565, 288, 202, 430, 14015, 9900, 397, 315, 22448, 17, 4176, 20387, 14963, 261, 4468, 548, 3719, 202, 565, 327, 3496, 1503, 422, 1026, 692, 446, 294, 3496, 1503, 31, 202, 430, 14015, 9900, 397, 315, 4149, 1706, 17, 4176, 20387, 14963, 261, 4468, 548, 3719, 202, 565, 327, 5275, 1706, 1503, 422, 1026, 692, 446, 294, 5275, 1706, 1503, 31, 202, 202, 759, 5917, 1790, 202, 12849, 394, 10168, 1248, 5650, 9367, 503, 261, 4468, 548, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void delayOutbound(RouterIdentity peer, int numBytes) {
public void delayOutbound(RouterIdentity peer, int numBytes, boolean pulled) {
public void delayOutbound(RouterIdentity peer, int numBytes) { long delay = 0; while ( (delay = calculateDelayOutbound(peer, numBytes)) > 0) { try { synchronized (_outboundWaitLock) { _outboundWaitLock.wait(delay); } } catch (InterruptedException ie) {} } synchronized (_outboundWaitLock) { _outboundWaitLock.notify(); } consumeOutbound(peer, numBytes); }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/d5bd22040c09a743598dafdbdf9ebc40339e7db1/TrivialBandwidthLimiter.java/buggy/router/java/src/net/i2p/router/transport/TrivialBandwidthLimiter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4624, 17873, 12, 8259, 4334, 4261, 16, 509, 18633, 16, 1250, 30741, 13, 288, 3639, 1525, 4624, 273, 374, 31, 3639, 1323, 261, 261, 10790, 273, 4604, 6763, 17873, 12, 12210, 16, 18633, 3719, 405, 374, 13, 288, 5411, 775, 288, 7734, 3852, 261, 67, 659, 3653, 5480, 2531, 13, 288, 10792, 389, 659, 3653, 5480, 2531, 18, 7048, 12, 10790, 1769, 7734, 289, 5411, 289, 1044, 261, 24485, 503, 9228, 13, 2618, 3639, 289, 3639, 3852, 261, 67, 659, 3653, 5480, 2531, 13, 288, 389, 659, 3653, 5480, 2531, 18, 12336, 5621, 289, 3639, 7865, 17873, 12, 12210, 16, 18633, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4624, 17873, 12, 8259, 4334, 4261, 16, 509, 18633, 16, 1250, 30741, 13, 288, 3639, 1525, 4624, 273, 374, 31, 3639, 1323, 261, 261, 10790, 273, 4604, 6763, 17873, 12, 12210, 16, 18633, 3719, 405, 374, 13, 288, 5411, 775, 288, 7734, 3852, 261, 67, 659, 3653, 5480, 2531, 13, 288, 10792, 389, 659, 3653, 5480, 2531, 18, 7048, 12, 10790, 1769, 7734, 289, 5411, 289, 1044, 261, 24485, 503, 9228, 13, 2618, 3639, 289, 3639, 3852, 261, 67, 659, 3653, 5480, 2531, 13, 288, 389, 659, 3653, 5480, 2531, 18, 12336, 5621, 289, 3639, 7865, 17873, 12, 12210, 16, 18633, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (jj_scan_token(LPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_60()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(RPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_371()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_216() { if (jj_scan_token(SWITCH)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(LPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_60()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(RPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_371()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 22, 2313, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 18746, 25588, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48, 15111, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4848, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 54, 15111, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 12995, 9254, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 3155, 619, 1752, 31, 565, 1323, 261, 3767, 13, 288, 1377, 619, 1752, 273, 10684, 67, 9871, 917, 31, 1377, 309, 261, 78, 78, 67, 23, 54, 67, 6418, 21, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 22, 2313, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 18746, 25588, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 48, 15111, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 422, 10684, 67, 2722, 917, 13, 327, 629, 31, 565, 309, 261, 78, 78, 67, 23, 54, 67, 4848, 10756, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, 67, 9871, 917, 2 ]
Iterator itr = store.iterator(); while (itr.hasNext()) { Object candidate = itr.next();
for (int i = 0, n = store.size(); i < n; i++) { Object candidate = store.get(i);
public ArrayList filter(UnaryPredicate predicate) { ArrayList result = new ArrayList(); Iterator itr = store.iterator(); while (itr.hasNext()) { Object candidate = itr.next(); if (!predicate.execute(candidate)) { result.add(candidate); itr.remove(); } } return result; }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/adc944a31496348743cba1cea4d181e4f2c5dca4/DynamicSortedQueue.java/buggy/core/src/org/cougaar/core/thread/DynamicSortedQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2407, 1034, 12, 15972, 8634, 5641, 13, 288, 202, 19558, 563, 273, 394, 2407, 5621, 202, 3198, 11176, 273, 1707, 18, 9838, 5621, 202, 17523, 261, 305, 86, 18, 5332, 2134, 10756, 288, 202, 565, 1033, 5500, 273, 11176, 18, 4285, 5621, 202, 565, 309, 16051, 18344, 18, 8837, 12, 19188, 3719, 288, 202, 202, 2088, 18, 1289, 12, 19188, 1769, 202, 202, 305, 86, 18, 4479, 5621, 202, 565, 289, 202, 97, 202, 2463, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2407, 1034, 12, 15972, 8634, 5641, 13, 288, 202, 19558, 563, 273, 394, 2407, 5621, 202, 3198, 11176, 273, 1707, 18, 9838, 5621, 202, 17523, 261, 305, 86, 18, 5332, 2134, 10756, 288, 202, 565, 1033, 5500, 273, 11176, 18, 4285, 5621, 202, 565, 309, 16051, 18344, 18, 8837, 12, 19188, 3719, 288, 202, 202, 2088, 18, 1289, 12, 19188, 1769, 202, 202, 305, 86, 18, 4479, 5621, 202, 565, 289, 202, 97, 202, 2463, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertEquals(ProviderB.TOOL_B, (((PaletteEntry) stack.getChildren() .get(index++)).getId()));
assertEquals(ProviderB.TOOL_B, (((PaletteEntry) stackA .getChildren().get(index++)).getId()));
private void validatePaletteEntries(PaletteRoot paletteRoot, boolean providerBEnabled) { PaletteDrawer drawer; PaletteStack stack; int index = 1; drawer = (PaletteDrawer) paletteRoot.getChildren().get(index++); assertEquals(ProviderA.DRAWER_A, drawer.getId()); if (providerBEnabled) { assertEquals(ProviderB.DRAWER_B, (((PaletteDrawer) paletteRoot .getChildren().get(index++)).getId())); } assertEquals(ProviderC.DRAWER_C, (((PaletteDrawer) paletteRoot .getChildren().get(index++)).getId())); index = 0; assertEquals(ProviderA.TOOL_A, (((PaletteEntry) drawer.getChildren() .get(index++)).getId())); stack = (PaletteStack) drawer.getChildren().get(index++); assertEquals(ProviderA.STACK_A, stack.getId()); if (providerBEnabled) { assertEquals(ProviderB.TOOL_B, (((PaletteEntry) drawer .getChildren().get(index++)).getId())); } assertEquals(ProviderC.TOOL_C, (((PaletteEntry) drawer.getChildren() .get(index++)).getId())); index = 0; assertEquals(ProviderA.TOOL_A, (((PaletteEntry) stack.getChildren() .get(index++)).getId())); if (providerBEnabled) { assertEquals(ProviderB.TOOL_B, (((PaletteEntry) stack.getChildren() .get(index++)).getId())); } assertEquals(ProviderC.TOOL_C, (((PaletteEntry) stack.getChildren() .get(index++)).getId())); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/e062fe8f0213714d39cb2e8b560205dfcb5687ee/PaletteServiceTests.java/clean/org.eclipse.gmf.runtime/tests/org.eclipse.gmf.tests.runtime.diagram.ui/src/org/eclipse/gmf/tests/runtime/diagram/ui/services/PaletteServiceTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1954, 25863, 5400, 12, 25863, 2375, 12127, 2375, 16, 1082, 202, 6494, 2893, 38, 1526, 13, 288, 202, 202, 25863, 21631, 23943, 31, 202, 202, 25863, 2624, 2110, 31, 202, 202, 474, 770, 273, 404, 31, 202, 202, 9446, 264, 273, 261, 25863, 21631, 13, 12127, 2375, 18, 588, 4212, 7675, 588, 12, 1615, 9904, 1769, 202, 202, 11231, 8867, 12, 2249, 37, 18, 40, 10821, 654, 67, 37, 16, 23943, 18, 26321, 10663, 202, 202, 430, 261, 6778, 38, 1526, 13, 288, 1082, 202, 11231, 8867, 12, 2249, 38, 18, 40, 10821, 654, 67, 38, 16, 261, 12443, 25863, 21631, 13, 12127, 2375, 9506, 202, 18, 588, 4212, 7675, 588, 12, 1615, 27245, 2934, 26321, 1435, 10019, 202, 202, 97, 202, 202, 11231, 8867, 12, 2249, 39, 18, 40, 10821, 654, 67, 39, 16, 261, 12443, 25863, 21631, 13, 12127, 2375, 1082, 202, 18, 588, 4212, 7675, 588, 12, 1615, 27245, 2934, 26321, 1435, 10019, 202, 202, 1615, 273, 374, 31, 202, 202, 11231, 8867, 12, 2249, 37, 18, 26263, 67, 37, 16, 261, 12443, 25863, 1622, 13, 23943, 18, 588, 4212, 1435, 1082, 202, 18, 588, 12, 1615, 27245, 2934, 26321, 1435, 10019, 202, 202, 3772, 273, 261, 25863, 2624, 13, 23943, 18, 588, 4212, 7675, 588, 12, 1615, 9904, 1769, 202, 202, 11231, 8867, 12, 2249, 37, 18, 21971, 67, 37, 16, 2110, 18, 26321, 10663, 202, 202, 430, 261, 6778, 38, 1526, 13, 288, 1082, 202, 11231, 8867, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 25863, 5400, 12, 25863, 2375, 12127, 2375, 16, 1082, 202, 6494, 2893, 38, 1526, 13, 288, 202, 202, 25863, 21631, 23943, 31, 202, 202, 25863, 2624, 2110, 31, 202, 202, 474, 770, 273, 404, 31, 202, 202, 9446, 264, 273, 261, 25863, 21631, 13, 12127, 2375, 18, 588, 4212, 7675, 588, 12, 1615, 9904, 1769, 202, 202, 11231, 8867, 12, 2249, 37, 18, 40, 10821, 654, 67, 37, 16, 23943, 18, 26321, 10663, 202, 202, 430, 261, 6778, 38, 1526, 13, 288, 1082, 202, 11231, 8867, 12, 2249, 38, 18, 40, 10821, 654, 67, 38, 16, 261, 12443, 25863, 21631, 13, 12127, 2375, 9506, 202, 18, 588, 4212, 7675, 588, 12, 1615, 27245, 2934, 2 ]
s_log += "no way"; System.out.println(sjp.getType() + " " + sjp.getSignature());
s_log += "withincode ";
public void neverCalled(StaticJoinPoint sjp) { s_log += "no way"; System.out.println(sjp.getType() + " " + sjp.getSignature()); }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/af6cfb44501694eefba09ed7c04cdc0dfcdf1d21/InterfaceDefinedMethodTestCase.java/buggy/aspectwerkz4/src/jdk15/test/test/InterfaceDefinedMethodTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 5903, 8185, 12, 5788, 4572, 2148, 272, 21797, 13, 288, 5411, 272, 67, 1330, 1011, 315, 2135, 4031, 14432, 5411, 2332, 18, 659, 18, 8222, 12, 87, 21797, 18, 588, 559, 1435, 397, 315, 315, 397, 272, 21797, 18, 588, 5374, 10663, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 5903, 8185, 12, 5788, 4572, 2148, 272, 21797, 13, 288, 5411, 272, 67, 1330, 1011, 315, 2135, 4031, 14432, 5411, 2332, 18, 659, 18, 8222, 12, 87, 21797, 18, 588, 559, 1435, 397, 315, 315, 397, 272, 21797, 18, 588, 5374, 10663, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new RuntimeException("No struct partner, but it MUST exist here. Otherwise me would"+ "have been deleted whe merging the lists");
;
public void mergeNode( BranchNode a, BranchNode b, ContentHandler ch ) throws SAXException { if( (a != null && ((a.getBaseMatchType() | BranchNode.MATCH_CHILDREN) == 0 )) || (b != null && ((b.getBaseMatchType() | BranchNode.MATCH_CHILDREN) == 0 ) ) ) throw new RuntimeException("mergeNode: match type should be match children, otherwise the node should be null!"); MergeList mlistA = a != null ? makeMergeList( a ) : null; MergeList mlistB = b != null ? makeMergeList( b ) : null;// System.out.println("A = " + a ==null ? "-" : a.getContent().toString());// System.out.println("B = " + b ==null ? "-" : b.getContent().toString());// System.out.println("--------------------------");/* if( mlistA.getEntryCount() > 30 ) debug=1;*/ if(debug>0) { System.out.println("Merge A list"); if( mlistA != null ) mlistA.print(); else System.out.println("--none--"); System.out.println("Merge B list"); if( mlistB != null ) mlistB.print(); else System.out.println("--none--"); } if( mlistA != null && mlistB != null ) { mlistA = mergeLists( mlistA, mlistB ); // Merge lists if(debug>0) {System.out.println("Merged list:");mlistA.print();} } else if( mlistA == null ) { mlistA = mlistB; mlistB = null; // safety precaution } // Now, the merged list is in mlistA // Handle updates & Recurse/*DEBUG if( mlistA == null ) System.out.flush();*/ int _count1=0,_count2=mlistA.getEntryCount()-2; for( int j=0;j<mlistA.getEntryCount();j++) _count2+=mlistA.getEntry(j).getHangonCount(); for( Iterator i = mlistA.getExpandingIterator();i.hasNext();) { _count1++; HangonEntry me = (HangonEntry) i.next(); BranchNode n = me.getNode();// BranchNode nPartner = n.getFirstPartner( BranchNode.MATCH_FULL ); // Merge contents of node and partner (but only if there's a partner)//-------------------// Table// n1 n2 Merge// any null n1// cont cont merge(n1,n2)// cont str n2// cont full merge(n1,n2)// str str FORCED content merge// str full n1 cont// full full merge(n1,n2) BranchNode nPartner = null; if( me instanceof MergeEntry ) nPartner = ((MergeEntry) me).getMergePartner(); else nPartner = n.getFirstPartner(BranchNode.MATCH_FULL);/* if( n.getContent().toString().indexOf("778l8") != -1 ) { debug = 2; System.out.println("???: " + n.getContent().toString() ); }*/ XMLNode mergedNode = null; if( nPartner == null ) mergedNode = n.getContent(); else if( n.isMatch(BranchNode.MATCH_CONTENT) ) { if( !nPartner.isMatch(BranchNode.MATCH_CONTENT) ) mergedNode = nPartner.getContent(); else mergedNode = mergeNodeContent( n, nPartner ); } else { // n doesn't match content if( nPartner.isMatch(BranchNode.MATCH_CONTENT) ) mergedNode = n.getContent(); else // Neither matches content => forced merge mergedNode = mergeNodeContent( n, nPartner ); } if(debug>1) { System.out.println("???:"+mergedNode.toString()); }// XMLNode mergedNode = nPartner != null ? mergeNodeContent( n, nPartner ) : n.getContent(); if( mergedNode instanceof XMLTextNode ) { XMLTextNode text = (XMLTextNode) mergedNode; ch.characters(text.getText(),0,text.getText().length); } else { // It's an element node XMLElementNode mergedElement = (XMLElementNode) mergedNode; ch.startElement(mergedElement.getNamespaceURI(),mergedElement.getLocalName(),mergedElement.getQName(),mergedElement.getAttributes()); // Figure out partners for recurse BranchNode ca = null, cb = null; if( me instanceof MergeEntry && mlistB != null){ //: Earlier this cond, but it's not true- insert childs can have matches // besides, all insert lists should be hangons only // The node was merged, MUST have a partner in the list MergeEntry me2 = (MergeEntry) me;/* if( me2.getMergePartner() == null ) { System.out.println("WARNING: I had to explicitly set mergePartner (should result only from sequencing conflict)"); mlistA.print(); // debug = 1; BranchNode nn = me2.getNode().getFirstPartner(BranchNode.MATCH_CHILDREN); if( nn== null) { nn = me2.getNode().getFirstPartner(BranchNode.MATCH_CONTENT); if( nn == null ) { System.out.println("!!!!SERIOUS ERROR: Node has no partner!"); throw new RuntimeException(); } } me2.setMergePartner(nn); } */ if( (me2.getNode().getBaseMatchType() & BranchNode.MATCH_CHILDREN) == 0 ) { ca=me2.getNode(); // Was content match, so we must use this one if( (me2.getMergePartner().getBaseMatchType() & BranchNode.MATCH_CHILDREN) == 0 ) { // CONFLICTCODE System.out.println("CONFLICTW: I have to try to merge nonrelated childlists; nodes="); try { System.out.println(me2.getNode().getContent().toString()); System.out.println(" "+me2.getNode().getChild(0).getContent().toString()); System.out.println(me2.getMergePartner().getContent().toString()); System.out.println(" "+me2.getMergePartner().getChild(0).getContent().toString()); } catch (Exception e ) {} //Catch nullptrs //System.out.println("CONFLICTW: Currently bailing out by arbitrarly choosing no 1"); cb=me2.getMergePartner(); } else cb = null; } else { // me is structmatched if( (me2.getMergePartner().getBaseMatchType() & BranchNode.MATCH_CHILDREN) == 0 ) { ca=me2.getMergePartner(); cb=null; } else { ca=me2.getNode(); cb=me2.getMergePartner(); } } } else { // me is a hangon entry if( me.getNode().getBaseMatch() == null ) { ca=me.getNode(); cb=null; } else if ( (me.getNode().getBaseMatchType() & BranchNode.MATCH_CHILDREN) == 0 ) { ca=me.getNode(); cb=null; } else { ca = me.getNode(); cb = me.getNode().getFirstPartner( BranchNode.MATCH_CHILDREN ); if( cb== null) // Conflict processing can maybe mess this up by not deleting me throw new RuntimeException("No struct partner, but it MUST exist here. Otherwise me would"+ "have been deleted whe merging the lists"); } }/* BranchNode ca = (n.getBaseMatch() == null) || // if insert, or match children (n.getBaseMatchType() & BranchNode.MATCH_CHILDREN ) != 0 ? n : null; BranchNode cb = n.getFirstPartner( BranchNode.MATCH_CHILDREN );*/ // Recurse! mergeNode(ca,cb,ch); ch.endElement(mergedElement.getNamespaceURI(),mergedElement.getLocalName(),mergedElement.getQName()); } } if(_count1!=_count2) System.out.println("????COUNTS="+_count1+","+_count2); }
7752 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7752/60a3b704e20dc0c9752917fa1c2e733240e78e3a/Merge.java/buggy/3dm/src/tdm/lib/Merge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2691, 907, 12, 15449, 907, 279, 16, 15449, 907, 324, 16, 3697, 1503, 462, 262, 1216, 14366, 288, 565, 309, 12, 261, 69, 480, 446, 597, 14015, 69, 18, 588, 2171, 2060, 559, 1435, 571, 15449, 907, 18, 11793, 67, 27043, 24296, 13, 422, 374, 8623, 747, 3639, 261, 70, 480, 446, 597, 14015, 70, 18, 588, 2171, 2060, 559, 1435, 571, 15449, 907, 18, 11793, 67, 27043, 24296, 13, 422, 374, 262, 262, 262, 1377, 604, 394, 3235, 2932, 2702, 907, 30, 845, 618, 1410, 506, 845, 2325, 16, 3541, 326, 756, 1410, 506, 446, 4442, 1769, 565, 8964, 682, 312, 1098, 37, 273, 279, 480, 446, 692, 1221, 6786, 682, 12, 279, 262, 294, 446, 31, 565, 8964, 682, 312, 1098, 38, 273, 324, 480, 446, 692, 1221, 6786, 682, 12, 324, 262, 294, 446, 31, 759, 565, 2332, 18, 659, 18, 8222, 2932, 37, 273, 315, 397, 279, 422, 2011, 692, 7514, 294, 279, 18, 588, 1350, 7675, 10492, 10663, 759, 565, 2332, 18, 659, 18, 8222, 2932, 38, 273, 315, 397, 324, 422, 2011, 692, 7514, 294, 324, 18, 588, 1350, 7675, 10492, 10663, 759, 565, 2332, 18, 659, 18, 8222, 2932, 1271, 15392, 8863, 20308, 225, 309, 12, 312, 1098, 37, 18, 588, 1622, 1380, 1435, 405, 5196, 262, 1377, 1198, 33, 21, 31, 5549, 565, 309, 12, 4148, 34, 20, 13, 288, 565, 2332, 18, 659, 18, 8222, 2932, 6786, 432, 666, 8863, 565, 309, 12, 312, 1098, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2691, 907, 12, 15449, 907, 279, 16, 15449, 907, 324, 16, 3697, 1503, 462, 262, 1216, 14366, 288, 565, 309, 12, 261, 69, 480, 446, 597, 14015, 69, 18, 588, 2171, 2060, 559, 1435, 571, 15449, 907, 18, 11793, 67, 27043, 24296, 13, 422, 374, 8623, 747, 3639, 261, 70, 480, 446, 597, 14015, 70, 18, 588, 2171, 2060, 559, 1435, 571, 15449, 907, 18, 11793, 67, 27043, 24296, 13, 422, 374, 262, 262, 262, 1377, 604, 394, 3235, 2932, 2702, 907, 30, 845, 618, 1410, 506, 845, 2325, 16, 3541, 326, 756, 1410, 506, 446, 4442, 1769, 565, 8964, 682, 312, 1098, 37, 273, 279, 480, 446, 692, 1221, 6786, 682, 12, 279, 262, 294, 2 ]
title = BirtResources.getString( "birt.viewer.title" );
title = BirtResources .getString( ResourceConstants.BIRT_VIEWER_TITLE );
protected void __init( HttpServletRequest request ) throws Exception { if ( ParameterAccessor.isGetImageOperator( request ) ) { return; } this.category = "BIRT"; //$NON-NLS-1$ this.masterPageContent = ParameterAccessor .isMasterPageContent( request ); this.isDesigner = ParameterAccessor.isDesigner( request ); this.bookmark = ParameterAccessor.getBookmark( request ); this.reportPage = String.valueOf( ParameterAccessor.getPage( request ) ); this.reportDocumentName = ParameterAccessor.getReportDocument( request ); this.reportDesignName = ParameterAccessor.getReport( request ); this.format = ParameterAccessor.getFormat( request ); this.maxRows = ParameterAccessor.getMaxRows( request ); // Set preview report max rows ReportEngineService.getInstance( ).setMaxRows( this.maxRows ); // Determine the report design and doc 's timestamp processReport( request ); // Report title. String title = null; if ( title == null || title.trim( ).length( ) <= 0 ) { title = BirtResources.getString( "birt.viewer.title" ); //$NON-NLS-1$ } this.reportTitle = ParameterAccessor.htmlEncode( title ); this.__initParameters( request ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/3d31c202bcb0ada22143bb650a317de7633d5027/ViewerAttributeBean.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1001, 2738, 12, 9984, 590, 262, 1216, 1185, 202, 95, 202, 202, 430, 261, 5498, 8235, 18, 291, 967, 2040, 5592, 12, 590, 262, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2211, 18, 4743, 273, 315, 38, 7937, 56, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 2211, 18, 7525, 1964, 1350, 273, 5498, 8235, 9506, 202, 18, 291, 7786, 1964, 1350, 12, 590, 11272, 202, 202, 2211, 18, 291, 15478, 264, 273, 5498, 8235, 18, 291, 15478, 264, 12, 590, 11272, 202, 202, 2211, 18, 3618, 3355, 273, 5498, 8235, 18, 588, 22966, 12, 590, 11272, 202, 202, 2211, 18, 6006, 1964, 273, 514, 18, 1132, 951, 12, 5498, 8235, 18, 588, 1964, 12, 590, 262, 11272, 202, 202, 2211, 18, 6006, 2519, 461, 273, 5498, 8235, 18, 588, 4820, 2519, 12, 590, 11272, 202, 202, 2211, 18, 6006, 15478, 461, 273, 5498, 8235, 18, 588, 4820, 12, 590, 11272, 202, 202, 2211, 18, 2139, 273, 5498, 8235, 18, 588, 1630, 12, 590, 11272, 202, 202, 2211, 18, 1896, 4300, 273, 5498, 8235, 18, 588, 2747, 4300, 12, 590, 11272, 202, 202, 759, 1000, 10143, 2605, 943, 2595, 202, 202, 4820, 4410, 1179, 18, 588, 1442, 12, 262, 18, 542, 2747, 4300, 12, 333, 18, 1896, 4300, 11272, 202, 202, 759, 10229, 326, 2605, 8281, 471, 997, 296, 87, 2858, 202, 202, 2567, 4820, 12, 590, 11272, 202, 202, 759, 8706, 2077, 18, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1001, 2738, 12, 9984, 590, 262, 1216, 1185, 202, 95, 202, 202, 430, 261, 5498, 8235, 18, 291, 967, 2040, 5592, 12, 590, 262, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2211, 18, 4743, 273, 315, 38, 7937, 56, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 2211, 18, 7525, 1964, 1350, 273, 5498, 8235, 9506, 202, 18, 291, 7786, 1964, 1350, 12, 590, 11272, 202, 202, 2211, 18, 291, 15478, 264, 273, 5498, 8235, 18, 291, 15478, 264, 12, 590, 11272, 202, 202, 2211, 18, 3618, 3355, 273, 5498, 8235, 18, 588, 22966, 12, 590, 11272, 202, 202, 2211, 18, 6006, 1964, 273, 514, 18, 1132, 2 ]
if( sRC.getDirection() == sRC.VERTICAL ) {
if( sRC.getDirection() == SequenceRenderContext.VERTICAL ) {
public void paint( Graphics2D g, SequenceRenderContext sRC ) { Paint selectedFill = Color.yellow; Paint textColor = Color.black; Paint notSelectedFill = g.getBackground(); Stroke beadStroke = new BasicStroke(); Shape originalClip = g.getClip(); AffineTransform originalTransform = g.getTransform(); Rectangle2D labelArea = new Rectangle2D.Double(); Font font = sRC.getFont(); FontRenderContext fRC = g.getFontRenderContext(); if( sRC.getDirection() == sRC.VERTICAL ) { // rotate the drawing g.rotate( - java.lang.Math.PI / 2 ); g.translate( -width, 0 ); // set the area we should grab mouseclicks in, this could most // likely be cached in som way mouseClickArea.setRect( 0.0 , -width , depth, width ); } else { // set the area that we grab mouseclicks in mouseClickArea.setRect( -width, 0.0, width, depth ); } // all below this is the same for vertical or horizontal drawing, as i am // just using the built in transformation stuff to get text and stuff // at the right possition, as its the simple way of drawing text // set cliping zone so we only can draw in our label area labelArea.setRect( -width , 0.0, width, depth ); g.clip( labelArea ); //RoundRectangle2D labelBackground = new RoundRectangle2D.Double( 5.0, 5.0, width-25, depth-25 , 15.0, 15.0); // darw the label area if( selected ) { g.setPaint( selectedFill ); } else { g.setPaint( notSelectedFill ); } g.fill( labelArea ); g.setPaint( textColor ); // draw text float drawPosY = 3; // initial positions for text placement float drawPosX = (float) (5 - width); // iterate over each string of the label for( Iterator labelIterator = labels.iterator() ; labelIterator.hasNext() ; ) { // get the current string, and setup the drawign crap for it String currentString = ( String )labelIterator.next(); TextLayout tLayout = new TextLayout( currentString, font, fRC ); drawPosY += tLayout.getAscent(); tLayout.draw( g, drawPosX, drawPosY ); drawPosY += ( tLayout.getDescent() + tLayout.getLeading() ); } //g.setTransform( originalTransform ); // reset the clip and transformation so the next renderer can draw its things g.setTransform( originalTransform ); g.setClip( originalClip ); // have the renderer render seqRend.paint( g, sRC ); }
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/fcbeda1e0bc8dc82a3c505af04fa6bb0330580f8/LabelledSequenceRenderer.java/clean/src/org/biojava/bio/gui/sequence/LabelledSequenceRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 12, 16830, 22, 40, 314, 16, 8370, 3420, 1042, 272, 11529, 262, 288, 3639, 30001, 6647, 3170, 8026, 3639, 273, 5563, 18, 19227, 31, 3639, 30001, 6647, 977, 2957, 6647, 273, 5563, 18, 11223, 31, 3639, 30001, 6647, 486, 7416, 8026, 377, 273, 314, 18, 588, 8199, 5621, 3639, 934, 6822, 1850, 506, 361, 14602, 1850, 273, 394, 7651, 14602, 5621, 7734, 12383, 6647, 2282, 15339, 3639, 273, 314, 18, 588, 15339, 5621, 3639, 23906, 558, 4059, 2282, 4059, 282, 273, 314, 18, 588, 4059, 5621, 7734, 13264, 22, 40, 540, 1433, 5484, 4202, 273, 394, 13264, 22, 40, 18, 5265, 5621, 3639, 10063, 7734, 3512, 5411, 273, 272, 11529, 18, 588, 5711, 5621, 3639, 10063, 3420, 1042, 282, 284, 11529, 2398, 273, 314, 18, 588, 5711, 3420, 1042, 5621, 3639, 309, 12, 272, 11529, 18, 588, 8212, 1435, 422, 8370, 3420, 1042, 18, 21654, 10109, 262, 288, 5411, 368, 8534, 326, 16327, 2398, 314, 18, 20342, 12, 300, 2252, 18, 4936, 18, 10477, 18, 1102, 342, 576, 11272, 5411, 314, 18, 13929, 12, 300, 2819, 16, 374, 11272, 5411, 368, 444, 326, 5091, 732, 1410, 11086, 7644, 7475, 87, 316, 16, 333, 3377, 4486, 5411, 368, 10374, 506, 3472, 316, 4737, 4031, 5411, 7644, 6563, 5484, 18, 542, 6120, 12, 374, 18, 20, 269, 300, 2819, 269, 3598, 16, 1835, 11272, 3639, 289, 540, 469, 288, 5411, 368, 444, 326, 5091, 716, 732, 11086, 7644, 7475, 87, 316, 5411, 7644, 6563, 5484, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 12, 16830, 22, 40, 314, 16, 8370, 3420, 1042, 272, 11529, 262, 288, 3639, 30001, 6647, 3170, 8026, 3639, 273, 5563, 18, 19227, 31, 3639, 30001, 6647, 977, 2957, 6647, 273, 5563, 18, 11223, 31, 3639, 30001, 6647, 486, 7416, 8026, 377, 273, 314, 18, 588, 8199, 5621, 3639, 934, 6822, 1850, 506, 361, 14602, 1850, 273, 394, 7651, 14602, 5621, 7734, 12383, 6647, 2282, 15339, 3639, 273, 314, 18, 588, 15339, 5621, 3639, 23906, 558, 4059, 2282, 4059, 282, 273, 314, 18, 588, 4059, 5621, 7734, 13264, 22, 40, 540, 1433, 5484, 4202, 273, 394, 13264, 22, 40, 18, 5265, 5621, 3639, 10063, 7734, 3512, 5411, 273, 272, 11529, 18, 588, 5711, 5621, 3639, 2 ]
v1.spillIfUsing(eContext, EDX); v2.spillIfUsing(eContext, EDX); L1AHelper.requestRegister(eContext, EDX);
v1.spillIfUsing(eContext, EDX); v2.spillIfUsing(eContext, EDX); L1AHelper.requestRegister(eContext, EDX);
public final void visit_idiv() { final X86RegisterPool pool = eContext.getPool(); // Pop the arguments of the vstack final IntItem v2 = vstack.popInt(); final IntItem v1 = vstack.popInt(); // We need v1 in EAX, so if that is not the case, // spill those item using EAX L1AHelper.requestRegister(eContext, EAX, v1); // We need to use EDX, so spill those items using it. v1.spillIfUsing(eContext, EDX); v2.spillIfUsing(eContext, EDX); L1AHelper.requestRegister(eContext, EDX); // Load v2, v1 into a register v2.load(eContext); v1.loadTo(eContext, Register.EAX); // EAX -> sign extend EDX:EAX os.writeCDQ(); // EAX = EDX:EAX / v2.reg os.writeIDIV_EAX(v2.getRegister()); // Free unused registers pool.release(Register.EDX); v2.release(eContext); // And push the result on the vstack. vstack.push(v1); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c9e1b93fdcd3878abf615621ec6a36bf839ab10/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 350, 427, 1435, 288, 202, 202, 6385, 1139, 5292, 3996, 2864, 2845, 273, 425, 1042, 18, 588, 2864, 5621, 202, 202, 759, 10264, 326, 1775, 434, 326, 19510, 202, 202, 6385, 3094, 1180, 331, 22, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 6385, 3094, 1180, 331, 21, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 759, 1660, 1608, 331, 21, 316, 512, 2501, 16, 1427, 309, 716, 353, 486, 326, 648, 16, 202, 202, 759, 1694, 737, 5348, 761, 1450, 512, 2501, 202, 202, 48, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042, 16, 512, 2501, 16, 331, 21, 1769, 202, 202, 759, 1660, 1608, 358, 999, 15585, 60, 16, 1427, 1694, 737, 5348, 1516, 1450, 518, 18, 202, 202, 90, 21, 18, 1752, 737, 2047, 7736, 12, 73, 1042, 16, 15585, 60, 1769, 202, 202, 90, 22, 18, 1752, 737, 2047, 7736, 12, 73, 1042, 16, 15585, 60, 1769, 202, 202, 48, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042, 16, 15585, 60, 1769, 202, 202, 759, 4444, 331, 22, 16, 331, 21, 1368, 279, 1744, 202, 202, 90, 22, 18, 945, 12, 73, 1042, 1769, 202, 202, 90, 21, 18, 945, 774, 12, 73, 1042, 16, 5433, 18, 41, 2501, 1769, 202, 202, 759, 512, 2501, 317, 1573, 2133, 15585, 60, 30, 41, 2501, 202, 202, 538, 18, 2626, 10160, 53, 5621, 202, 202, 759, 512, 2501, 273, 15585, 60, 30, 41, 2501, 342, 331, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 67, 350, 427, 1435, 288, 202, 202, 6385, 1139, 5292, 3996, 2864, 2845, 273, 425, 1042, 18, 588, 2864, 5621, 202, 202, 759, 10264, 326, 1775, 434, 326, 19510, 202, 202, 6385, 3094, 1180, 331, 22, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 6385, 3094, 1180, 331, 21, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 759, 1660, 1608, 331, 21, 316, 512, 2501, 16, 1427, 309, 716, 353, 486, 326, 648, 16, 202, 202, 759, 1694, 737, 5348, 761, 1450, 512, 2501, 202, 202, 48, 21, 37, 2276, 18, 2293, 3996, 12, 73, 1042, 16, 512, 2501, 16, 331, 21, 1769, 202, 202, 759, 1660, 1608, 358, 999, 15585, 60, 16, 2 ]
private IPersistentMap createHashtableMap(Object[] init) {
IPersistentMap createHashtableMap(Object[] init) {
private IPersistentMap createHashtableMap(Object[] init) { return new PersistentHashtableMap(init);}
50603 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50603/1b7ed50694b64f33303145d1c78d8f07481a9560/PersistentHybridMap.java/clean/src/org/clojure/runtime/PersistentHybridMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2971, 6572, 863, 752, 5582, 14544, 863, 12, 921, 8526, 1208, 13, 288, 565, 327, 394, 11049, 5582, 14544, 863, 12, 2738, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2971, 6572, 863, 752, 5582, 14544, 863, 12, 921, 8526, 1208, 13, 288, 565, 327, 394, 11049, 5582, 14544, 863, 12, 2738, 1769, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; }
ITypeHierarchy typeHierarchy = type.newSupertypeHierarchy(null); IType[] types = typeHierarchy.getAllSuperclasses(type); for (int i = 0; i < types.length; i++) { methods = types[i].getMethods(); for (int j = 0; j < methods.length; j++) { if (fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j];
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; } } } return null; }
54619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54619/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/buggy/src/main/org/testng/eclipse/ui/OpenTestAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 467, 1305, 21315, 3125, 1305, 382, 559, 12074, 12, 45, 559, 618, 13, 1216, 5110, 1488, 503, 288, 565, 467, 1305, 8526, 2590, 33, 618, 18, 588, 4712, 5621, 565, 364, 12, 474, 277, 33, 374, 31, 277, 411, 2590, 18, 2469, 31, 277, 27245, 288, 1377, 309, 12, 74, 11666, 18, 14963, 12, 5163, 63, 77, 8009, 21336, 461, 10756, 597, 2590, 63, 77, 8009, 1808, 10756, 288, 3639, 327, 2590, 63, 77, 15533, 1377, 289, 565, 289, 565, 467, 559, 12074, 618, 12074, 33, 618, 18, 2704, 8051, 723, 12074, 12, 2011, 1769, 565, 467, 559, 8526, 1953, 33, 618, 12074, 18, 588, 1595, 8051, 4701, 12, 723, 1769, 565, 364, 261, 474, 277, 33, 374, 31, 277, 411, 1953, 18, 2469, 31, 277, 27245, 288, 1377, 2590, 33, 1953, 63, 77, 8009, 588, 4712, 5621, 3639, 364, 12, 474, 525, 33, 374, 31, 525, 411, 2590, 18, 2469, 31, 525, 27245, 288, 1850, 309, 12, 74, 11666, 18, 14963, 12, 5163, 63, 78, 8009, 21336, 461, 10756, 597, 2590, 63, 78, 8009, 1808, 10756, 288, 5411, 327, 2590, 63, 78, 15533, 1850, 289, 3639, 289, 565, 289, 3639, 327, 446, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 467, 1305, 21315, 3125, 1305, 382, 559, 12074, 12, 45, 559, 618, 13, 1216, 5110, 1488, 503, 288, 565, 467, 1305, 8526, 2590, 33, 618, 18, 588, 4712, 5621, 565, 364, 12, 474, 277, 33, 374, 31, 277, 411, 2590, 18, 2469, 31, 277, 27245, 288, 1377, 309, 12, 74, 11666, 18, 14963, 12, 5163, 63, 77, 8009, 21336, 461, 10756, 597, 2590, 63, 77, 8009, 1808, 10756, 288, 3639, 327, 2590, 63, 77, 15533, 1377, 289, 565, 289, 565, 467, 559, 12074, 618, 12074, 33, 618, 18, 2704, 8051, 723, 12074, 12, 2011, 1769, 565, 467, 559, 8526, 1953, 33, 618, 12074, 18, 588, 1595, 8051, 4701, 12, 723, 1769, 565, 364, 261, 474, 277, 33, 374, 2 ]
secondchar = s.charAt(++i); if (secondchar == '\\')
secondbyte = s[++i]; if (secondbyte == (byte)'\\')
public static byte[] toBytes(String s) throws SQLException { if (s == null) return null; int slength = s.length(); byte[] buf = new byte[slength]; int bufpos = 0; int thebyte; char nextchar; char secondchar; for (int i = 0; i < slength; i++) { nextchar = s.charAt(i); if (nextchar == '\\') { secondchar = s.charAt(++i); if (secondchar == '\\') { //escaped \ buf[bufpos++] = (byte)'\\'; } else { thebyte = (secondchar - 48) * 64 + (s.charAt(++i) - 48) * 8 + (s.charAt(++i) - 48); if (thebyte > 127) thebyte -= 256; buf[bufpos++] = (byte)thebyte; } } else { buf[bufpos++] = (byte)nextchar; } } byte[] l_return = new byte[bufpos]; System.arraycopy(buf, 0, l_return, 0, bufpos); return l_return; }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/734e4212784d7baa3dc809e25f9cb6de8329211f/PGbytea.java/buggy/src/interfaces/jdbc/org/postgresql/util/PGbytea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1160, 8526, 23247, 12, 780, 272, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 87, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 474, 2020, 1288, 273, 272, 18, 2469, 5621, 202, 202, 7229, 8526, 1681, 273, 394, 1160, 63, 2069, 1288, 15533, 202, 202, 474, 1681, 917, 273, 374, 31, 202, 202, 474, 326, 7229, 31, 202, 202, 3001, 1024, 3001, 31, 202, 202, 3001, 2205, 3001, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2020, 1288, 31, 277, 27245, 202, 202, 95, 1082, 202, 4285, 3001, 273, 272, 18, 3001, 861, 12, 77, 1769, 1082, 202, 430, 261, 4285, 3001, 422, 5282, 13, 1082, 202, 95, 9506, 202, 8538, 3001, 273, 272, 18, 3001, 861, 12, 9904, 77, 1769, 9506, 202, 430, 261, 8538, 3001, 422, 5282, 13, 9506, 202, 95, 6862, 202, 759, 16502, 521, 6862, 202, 4385, 63, 4385, 917, 9904, 65, 273, 261, 7229, 2506, 10471, 31, 9506, 202, 97, 9506, 202, 12107, 9506, 202, 95, 6862, 202, 5787, 7229, 273, 261, 8538, 3001, 300, 9934, 13, 380, 5178, 397, 261, 87, 18, 3001, 861, 12, 9904, 77, 13, 300, 9934, 13, 380, 1725, 397, 261, 87, 18, 3001, 861, 12, 9904, 77, 13, 300, 9934, 1769, 6862, 202, 430, 261, 5787, 7229, 405, 12331, 13, 25083, 202, 5787, 7229, 3947, 8303, 31, 6862, 202, 4385, 63, 4385, 917, 9904, 65, 273, 261, 7229, 13, 5787, 7229, 31, 9506, 202, 97, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 23247, 12, 780, 272, 13, 1216, 6483, 202, 95, 202, 202, 430, 261, 87, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 474, 2020, 1288, 273, 272, 18, 2469, 5621, 202, 202, 7229, 8526, 1681, 273, 394, 1160, 63, 2069, 1288, 15533, 202, 202, 474, 1681, 917, 273, 374, 31, 202, 202, 474, 326, 7229, 31, 202, 202, 3001, 1024, 3001, 31, 202, 202, 3001, 2205, 3001, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2020, 1288, 31, 277, 27245, 202, 202, 95, 1082, 202, 4285, 3001, 273, 272, 18, 3001, 861, 12, 77, 1769, 1082, 202, 430, 261, 4285, 3001, 422, 5282, 13, 1082, 202, 95, 2 ]
case LayoutPackage.LEGEND__CHILDREN : getChildren( ).clear( ); return; case LayoutPackage.LEGEND__BOUNDS : setBounds( (Bounds) null ); return; case LayoutPackage.LEGEND__ANCHOR : unsetAnchor( ); return; case LayoutPackage.LEGEND__STRETCH : unsetStretch( ); return; case LayoutPackage.LEGEND__INSETS : setInsets( (Insets) null ); return; case LayoutPackage.LEGEND__ROW : unsetRow( ); return; case LayoutPackage.LEGEND__COLUMN : unsetColumn( ); return; case LayoutPackage.LEGEND__ROWSPAN : unsetRowspan( ); return; case LayoutPackage.LEGEND__COLUMNSPAN : unsetColumnspan( ); return; case LayoutPackage.LEGEND__MIN_SIZE : setMinSize( (Size) null ); return; case LayoutPackage.LEGEND__OUTLINE : setOutline( (LineAttributes) null ); return; case LayoutPackage.LEGEND__BACKGROUND : setBackground( (Fill) null ); return; case LayoutPackage.LEGEND__VISIBLE : unsetVisible( ); return; case LayoutPackage.LEGEND__TRIGGERS : getTriggers( ).clear( ); return;
public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case LayoutPackage.LEGEND__CHILDREN : getChildren( ).clear( ); return; case LayoutPackage.LEGEND__BOUNDS : setBounds( (Bounds) null ); return; case LayoutPackage.LEGEND__ANCHOR : unsetAnchor( ); return; case LayoutPackage.LEGEND__STRETCH : unsetStretch( ); return; case LayoutPackage.LEGEND__INSETS : setInsets( (Insets) null ); return; case LayoutPackage.LEGEND__ROW : unsetRow( ); return; case LayoutPackage.LEGEND__COLUMN : unsetColumn( ); return; case LayoutPackage.LEGEND__ROWSPAN : unsetRowspan( ); return; case LayoutPackage.LEGEND__COLUMNSPAN : unsetColumnspan( ); return; case LayoutPackage.LEGEND__MIN_SIZE : setMinSize( (Size) null ); return; case LayoutPackage.LEGEND__OUTLINE : setOutline( (LineAttributes) null ); return; case LayoutPackage.LEGEND__BACKGROUND : setBackground( (Fill) null ); return; case LayoutPackage.LEGEND__VISIBLE : unsetVisible( ); return; case LayoutPackage.LEGEND__TRIGGERS : getTriggers( ).clear( ); return; case LayoutPackage.LEGEND__HORIZONTAL_SPACING : unsetHorizontalSpacing( ); return; case LayoutPackage.LEGEND__VERTICAL_SPACING : unsetVerticalSpacing( ); return; case LayoutPackage.LEGEND__CLIENT_AREA : setClientArea( (ClientArea) null ); return; case LayoutPackage.LEGEND__TEXT : setText( (Text) null ); return; case LayoutPackage.LEGEND__ORIENTATION : unsetOrientation( ); return; case LayoutPackage.LEGEND__DIRECTION : unsetDirection( ); return; case LayoutPackage.LEGEND__SEPARATOR : setSeparator( (LineAttributes) null ); return; case LayoutPackage.LEGEND__POSITION : unsetPosition( ); return; case LayoutPackage.LEGEND__ITEM_TYPE : unsetItemType( ); return; case LayoutPackage.LEGEND__TITLE : setTitle( (Label) null ); return; case LayoutPackage.LEGEND__TITLE_POSITION : unsetTitlePosition( ); return; case LayoutPackage.LEGEND__SHOW_VALUE : unsetShowValue( ); return; case LayoutPackage.LEGEND__SHOW_PERCENT : unsetShowPercent( ); return; case LayoutPackage.LEGEND__SHOW_TOTAL : unsetShowTotal( ); return; } eDynamicUnset( eFeature ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/LegendImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LegendImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19698, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 27043, 24296, 294, 9506, 202, 588, 4212, 12, 262, 18, 8507, 12, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 5315, 2124, 3948, 294, 9506, 202, 542, 5694, 12, 261, 5694, 13, 446, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 20360, 916, 294, 9506, 202, 18579, 11605, 12, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 882, 10238, 1792, 294, 9506, 202, 18579, 510, 20783, 12, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 706, 28092, 294, 9506, 202, 542, 382, 4424, 12, 261, 382, 4424, 13, 446, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 11226, 294, 9506, 202, 18579, 1999, 12, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 11009, 294, 9506, 202, 18579, 1494, 12, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 28402, 30819, 294, 9506, 202, 18579, 1999, 3969, 12, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 11009, 3118, 1258, 294, 9506, 202, 18579, 1494, 3969, 12, 11272, 9506, 202, 2463, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19698, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 27043, 24296, 294, 9506, 202, 588, 4212, 12, 262, 18, 8507, 12, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 5315, 2124, 3948, 294, 9506, 202, 542, 5694, 12, 261, 5694, 13, 446, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 20360, 916, 294, 9506, 202, 18579, 11605, 12, 11272, 9506, 202, 2463, 31, 1082, 202, 3593, 9995, 2261, 18, 19384, 4415, 972, 882, 10238, 1792, 294, 2 ]
data.setValues(fCurrentEntity.ch, offset, length);
buffer.append (fCurrentEntity.ch, offset, length);
public boolean scanData(String delimiter, XMLString data) throws IOException { if (DEBUG_BUFFER) { System.out.print("(scanData: "); print(); System.out.println(); } // load more characters, if needed int delimLen = delimiter.length(); char charAt0 = delimiter.charAt(0); //int limit = fCurrentEntity.count - delimLen + 1; if (fCurrentEntity.position == fCurrentEntity.count) { load(0, true); } else if (fCurrentEntity.position >= fCurrentEntity.count - delimLen) { System.arraycopy(fCurrentEntity.ch, fCurrentEntity.position, fCurrentEntity.ch, 0, fCurrentEntity.count - fCurrentEntity.position); load(fCurrentEntity.count - fCurrentEntity.position, false); fCurrentEntity.position = 0; } if (fCurrentEntity.position >= fCurrentEntity.count - delimLen) { // something must be wrong with the input: e.g., file ends an unterminated comment int length = fCurrentEntity.count - fCurrentEntity.position; data.setValues(fCurrentEntity.ch, fCurrentEntity.position, length); fCurrentEntity.columnNumber += fCurrentEntity.count; fCurrentEntity.position = fCurrentEntity.count; load(0,true); return false; } // normalize newlines int offset = fCurrentEntity.position; int c = fCurrentEntity.ch[offset]; int newlines = 0; boolean external = fCurrentEntity.isExternal(); if (c == '\n' || (c == '\r' && external)) { if (DEBUG_BUFFER) { System.out.print("[newline, "+offset+", "+fCurrentEntity.position+": "); print(); System.out.println(); } do { c = fCurrentEntity.ch[fCurrentEntity.position++]; if (c == '\r' && external) { newlines++; fCurrentEntity.lineNumber++; fCurrentEntity.columnNumber = 1; /***/ if (fCurrentEntity.position == fCurrentEntity.count) { offset = 0; fCurrentEntity.position = newlines; if (load(newlines, false)) { break; } } /***/ if (fCurrentEntity.ch[fCurrentEntity.position] == '\n') { fCurrentEntity.position++; offset++; } /*** NEWLINE NORMALIZATION ***/ else { newlines++; } /***/ } else if (c == '\n') { newlines++; fCurrentEntity.lineNumber++; fCurrentEntity.columnNumber = 1; /***/ if (fCurrentEntity.position == fCurrentEntity.count) { offset = 0; fCurrentEntity.position = newlines; fCurrentEntity.count = newlines; if (load(newlines, false)) { break; } } /***/ /*** NEWLINE NORMALIZATION *** if (fCurrentEntity.ch[fCurrentEntity.position] == '\r' && external) { fCurrentEntity.position++; offset++; } /***/ } else { fCurrentEntity.position--; break; } } while (fCurrentEntity.position < fCurrentEntity.count - 1); for (int i = offset; i < fCurrentEntity.position; i++) { fCurrentEntity.ch[i] = '\n'; } int length = fCurrentEntity.position - offset; if (fCurrentEntity.position == fCurrentEntity.count - 1) { data.setValues(fCurrentEntity.ch, offset, length); if (DEBUG_BUFFER) { System.out.print("]newline, "+offset+", "+fCurrentEntity.position+": "); print(); System.out.println(); } return true; } if (DEBUG_BUFFER) { System.out.print("]newline, "+offset+", "+fCurrentEntity.position+": "); print(); System.out.println(); } } // iterate over buffer looking for delimiter boolean done = false; OUTER: while (fCurrentEntity.position < fCurrentEntity.count) { c = fCurrentEntity.ch[fCurrentEntity.position++]; if (c == charAt0) { // looks like we just hit the delimiter int delimOffset = fCurrentEntity.position - 1; for (int i = 1; i < delimLen; i++) { if (fCurrentEntity.position == fCurrentEntity.count) { fCurrentEntity.position -= i; break OUTER; } c = fCurrentEntity.ch[fCurrentEntity.position++]; if (delimiter.charAt(i) != c) { fCurrentEntity.position--; break; } } if (fCurrentEntity.position == delimOffset + delimLen) { done = true; break; } } else if (c == '\n' || (external && c == '\r')) { fCurrentEntity.position--; break; } else if (XMLChar.isInvalid(c)) { fCurrentEntity.position--; break; } } int length = fCurrentEntity.position - offset; fCurrentEntity.columnNumber += length - newlines; if (done) { length -= delimLen; } data.setValues(fCurrentEntity.ch, offset, length); // return true if string was skipped if (DEBUG_BUFFER) { System.out.print(")scanData: "); print(); System.out.println(" -> " + done); } return !done; } // scanData(String,XMLString)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/8a5148bc882d9ced0c8afb378808498e928b1b56/XMLEntityManager.java/clean/src/org/apache/xerces/impl/XMLEntityManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 4135, 751, 12, 780, 5654, 16, 3167, 780, 501, 13, 5411, 1216, 1860, 288, 5411, 309, 261, 9394, 67, 11302, 13, 288, 7734, 2332, 18, 659, 18, 1188, 2932, 12, 9871, 751, 30, 315, 1769, 7734, 1172, 5621, 7734, 2332, 18, 659, 18, 8222, 5621, 5411, 289, 5411, 368, 1262, 1898, 3949, 16, 309, 3577, 5411, 509, 10508, 2891, 273, 5654, 18, 2469, 5621, 5411, 1149, 4459, 20, 273, 5654, 18, 3001, 861, 12, 20, 1769, 5411, 368, 474, 1800, 273, 284, 3935, 1943, 18, 1883, 300, 10508, 2891, 397, 404, 31, 5411, 309, 261, 74, 3935, 1943, 18, 3276, 422, 284, 3935, 1943, 18, 1883, 13, 288, 7734, 1262, 12, 20, 16, 638, 1769, 5411, 289, 5411, 469, 309, 261, 74, 3935, 1943, 18, 3276, 1545, 284, 3935, 1943, 18, 1883, 300, 10508, 2891, 13, 288, 7734, 2332, 18, 1126, 3530, 12, 74, 3935, 1943, 18, 343, 16, 284, 3935, 1943, 18, 3276, 16, 4766, 284, 3935, 1943, 18, 343, 16, 374, 16, 284, 3935, 1943, 18, 1883, 300, 284, 3935, 1943, 18, 3276, 1769, 7734, 1262, 12, 74, 3935, 1943, 18, 1883, 300, 284, 3935, 1943, 18, 3276, 16, 629, 1769, 7734, 284, 3935, 1943, 18, 3276, 273, 374, 31, 5411, 289, 2398, 309, 261, 74, 3935, 1943, 18, 3276, 1545, 284, 3935, 1943, 18, 1883, 300, 10508, 2891, 13, 288, 7734, 368, 5943, 1297, 506, 7194, 598, 326, 810, 30, 225, 425, 18, 75, 12990, 585, 3930, 225, 392, 640, 29133, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 4135, 751, 12, 780, 5654, 16, 3167, 780, 501, 13, 5411, 1216, 1860, 288, 5411, 309, 261, 9394, 67, 11302, 13, 288, 7734, 2332, 18, 659, 18, 1188, 2932, 12, 9871, 751, 30, 315, 1769, 7734, 1172, 5621, 7734, 2332, 18, 659, 18, 8222, 5621, 5411, 289, 5411, 368, 1262, 1898, 3949, 16, 309, 3577, 5411, 509, 10508, 2891, 273, 5654, 18, 2469, 5621, 5411, 1149, 4459, 20, 273, 5654, 18, 3001, 861, 12, 20, 1769, 5411, 368, 474, 1800, 273, 284, 3935, 1943, 18, 1883, 300, 10508, 2891, 397, 404, 31, 5411, 309, 261, 74, 3935, 1943, 18, 3276, 422, 284, 3935, 1943, 18, 1883, 13, 288, 7734, 1262, 12, 20, 16, 638, 1769, 5411, 2 ]
public String toString() { String tmp = "" ; String aProp = "" ; String aVal = "" ; for(int i = 0; i < tags.size(); i++) { aProp = tags.get(i).toString() ; aVal = data.get(i).toString() ; tmp = tmp + aProp + "=" + aVal + '\n'; } return tmp ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/60467075711aa2659e43e6d3c30953d0e0293d30/VariableManager.java/clean/server/src/imcode/external/diverse/VariableManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 7734, 514, 1853, 273, 1408, 274, 3639, 514, 279, 4658, 273, 1408, 274, 3639, 514, 279, 3053, 273, 1408, 274, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 2342, 18, 1467, 5621, 277, 27245, 288, 5411, 279, 4658, 273, 2342, 18, 588, 12, 77, 2934, 10492, 1435, 274, 5411, 279, 3053, 273, 501, 18, 588, 12, 77, 2934, 10492, 1435, 274, 5411, 1853, 273, 1853, 397, 279, 4658, 397, 9671, 397, 279, 3053, 397, 2337, 82, 13506, 3639, 289, 3639, 327, 1853, 274, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 7734, 514, 1853, 273, 1408, 274, 3639, 514, 279, 4658, 273, 1408, 274, 3639, 514, 279, 3053, 273, 1408, 274, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 2342, 18, 1467, 5621, 277, 27245, 288, 5411, 279, 4658, 273, 2342, 18, 588, 12, 77, 2934, 10492, 1435, 274, 5411, 279, 3053, 273, 501, 18, 588, 12, 77, 2934, 10492, 1435, 274, 5411, 1853, 273, 1853, 397, 279, 4658, 397, 9671, 397, 279, 3053, 397, 2337, 82, 13506, 3639, 289, 3639, 327, 1853, 274, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
classFile.stopMethod((short)1, null);
cfw.stopMethod((short)1, null);
private void generateScriptCtor(Context cx, String superClassName) { classFile.startMethod("<init>", "()V", ClassFileWriter.ACC_PUBLIC); addByteCode(ByteCode.ALOAD_0); addSpecialInvoke(superClassName, "<init>", "()V"); addByteCode(ByteCode.RETURN); // 1 parameter = this classFile.stopMethod((short)1, null); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 3651, 27425, 12, 1042, 9494, 16, 514, 2240, 3834, 13, 565, 288, 3639, 29728, 18, 1937, 1305, 2932, 32, 2738, 2984, 16, 25605, 58, 3113, 30614, 2289, 18, 31414, 67, 14939, 1769, 3639, 527, 3216, 1085, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 3639, 527, 12193, 10969, 12, 9565, 3834, 16, 3532, 2738, 2984, 16, 25605, 58, 8863, 3639, 527, 3216, 1085, 12, 3216, 1085, 18, 14033, 1769, 3639, 368, 404, 1569, 273, 333, 3639, 6080, 91, 18, 5681, 1305, 12443, 6620, 13, 21, 16, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 3651, 27425, 12, 1042, 9494, 16, 514, 2240, 3834, 13, 565, 288, 3639, 29728, 18, 1937, 1305, 2932, 32, 2738, 2984, 16, 25605, 58, 3113, 30614, 2289, 18, 31414, 67, 14939, 1769, 3639, 527, 3216, 1085, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 3639, 527, 12193, 10969, 12, 9565, 3834, 16, 3532, 2738, 2984, 16, 25605, 58, 8863, 3639, 527, 3216, 1085, 12, 3216, 1085, 18, 14033, 1769, 3639, 368, 404, 1569, 273, 333, 3639, 6080, 91, 18, 5681, 1305, 12443, 6620, 13, 21, 16, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (rsStack.isEmpty())
if ( rsStack.isEmpty( ) )
public IResultSet execute( IBaseQueryDefinition query ) { if ( query == null ) return null; if ( query instanceof IQueryDefinition ) { Scriptable scope = context.getSharedScope( ); IPreparedQuery pQuery = (IPreparedQuery) queryMap.get( query ); assert ( pQuery != null ); if ( pQuery != null ) { try { IQueryResults queryResults = getParentQR( ); if ( queryResults == null ) { queryResults = pQuery.execute( scope ); } else { queryResults = pQuery.execute( queryResults, scope ); } IResultIterator ri = queryResults.getResultIterator( ); assert ri != null; DteResultSet dRS = new DteResultSet( queryResults, this, context ); rsStack.addLast( dRS ); return dRS; } catch ( BirtException e ) { logger.log( Level.SEVERE, e.getMessage( ), e ); context.addException( e ); return null; } } } else if ( query instanceof ISubqueryDefinition ) { //Extension Item may used to create the query stack, so we must do //error handling. if (rsStack.isEmpty()) { return null; } assert ( rsStack.getLast( ) instanceof DteResultSet ); try { IResultIterator ri = ( (DteResultSet) rsStack.getLast( ) ) .getResultIterator( ).getSecondaryIterator( ( (ISubqueryDefinition) query ).getName( ), context.getSharedScope( ) ); assert ri != null; DteResultSet dRS = new DteResultSet( ri, this ); rsStack.addLast( dRS ); return dRS; } catch ( BirtException e ) { logger.log( Level.SEVERE, e.getMessage( ), e ); context.addException( e ); return null; } } assert ( false ); return null; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/223285a5b7d82da9ab4bfb2f5c755c9f974f2aba/DteDataEngine.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DteDataEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 13198, 1836, 12, 467, 2171, 1138, 1852, 843, 262, 202, 95, 202, 202, 430, 261, 843, 422, 446, 262, 1082, 202, 2463, 446, 31, 202, 202, 430, 261, 843, 1276, 467, 1138, 1852, 262, 202, 202, 95, 1082, 202, 3651, 429, 2146, 273, 819, 18, 588, 7887, 3876, 12, 11272, 1082, 202, 45, 15464, 1138, 293, 1138, 273, 261, 45, 15464, 1138, 13, 843, 863, 18, 588, 12, 843, 11272, 1082, 202, 11231, 261, 293, 1138, 480, 446, 11272, 1082, 202, 430, 261, 293, 1138, 480, 446, 262, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 45, 1138, 3447, 843, 3447, 273, 5089, 29853, 12, 11272, 6862, 202, 430, 261, 843, 3447, 422, 446, 262, 6862, 202, 95, 25083, 202, 2271, 3447, 273, 293, 1138, 18, 8837, 12, 2146, 11272, 6862, 202, 97, 6862, 202, 12107, 6862, 202, 95, 25083, 202, 2271, 3447, 273, 293, 1138, 18, 8837, 12, 843, 3447, 16, 2146, 11272, 6862, 202, 97, 6862, 202, 45, 1253, 3198, 12347, 273, 843, 3447, 18, 588, 1253, 3198, 12, 11272, 6862, 202, 11231, 12347, 480, 446, 31, 6862, 202, 40, 736, 13198, 302, 13225, 273, 394, 463, 736, 13198, 12, 843, 3447, 16, 333, 16, 6862, 1082, 202, 2472, 11272, 6862, 202, 5453, 2624, 18, 1289, 3024, 12, 302, 13225, 11272, 6862, 202, 2463, 302, 13225, 31, 9506, 202, 97, 9506, 202, 14683, 261, 605, 2714, 503, 425, 262, 9506, 202, 95, 6862, 202, 4901, 18, 1330, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 13198, 1836, 12, 467, 2171, 1138, 1852, 843, 262, 202, 95, 202, 202, 430, 261, 843, 422, 446, 262, 1082, 202, 2463, 446, 31, 202, 202, 430, 261, 843, 1276, 467, 1138, 1852, 262, 202, 202, 95, 1082, 202, 3651, 429, 2146, 273, 819, 18, 588, 7887, 3876, 12, 11272, 1082, 202, 45, 15464, 1138, 293, 1138, 273, 261, 45, 15464, 1138, 13, 843, 863, 18, 588, 12, 843, 11272, 1082, 202, 11231, 261, 293, 1138, 480, 446, 11272, 1082, 202, 430, 261, 293, 1138, 480, 446, 262, 1082, 202, 95, 9506, 202, 698, 9506, 202, 95, 6862, 202, 45, 1138, 3447, 843, 3447, 273, 5089, 29853, 12, 11272, 6862, 202, 430, 261, 843, 3447, 2 ]
public Process getSessionProcess(ICDITarget target) { MISession miSession = ((Target)target).getMISession(); return miSession.getSessionProcess();
public Process getSessionProcess() throws CDIException { ICDITarget[] targets = getTargets(); if (targets != null && targets.length > 0) { return getSessionProcess(targets[0]); } return null;
public Process getSessionProcess(ICDITarget target) { MISession miSession = ((Target)target).getMISession(); return miSession.getSessionProcess(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/17464c08f4d94cc47098c0d0ca9a1f7ddc481fe8/Session.java/buggy/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/Session.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4389, 7183, 2227, 12, 2871, 40, 1285, 826, 1018, 13, 288, 202, 202, 7492, 2157, 12837, 2157, 273, 14015, 2326, 13, 3299, 2934, 588, 7492, 2157, 5621, 202, 202, 2463, 12837, 2157, 18, 588, 2157, 2227, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4389, 7183, 2227, 12, 2871, 40, 1285, 826, 1018, 13, 288, 202, 202, 7492, 2157, 12837, 2157, 273, 14015, 2326, 13, 3299, 2934, 588, 7492, 2157, 5621, 202, 202, 2463, 12837, 2157, 18, 588, 2157, 2227, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private static void buildText( StringBuffer content, StyleDesign style )
private static void buildText( StringBuffer content, IStyle style )
private static void buildText( StringBuffer content, StyleDesign style ) { buildProperty( content, HTMLTags.ATTR_TEXT_INDENT, style.getTextIndent( ) ); buildProperty( content, HTMLTags.ATTR_TEXT_ALIGN, style.getTextAlign( ) ); buildTextDecoration( content, style.getTextLineThrough( ), style .getTextOverline( ), style.getTextUnderline( ) ); buildProperty( content, HTMLTags.ATTR_LETTER_SPACING, style.getLetterSpacing( ) ); buildProperty( content, HTMLTags.ATTR_WORD_SPACING, style.getWordSpacing( ) ); buildProperty( content, HTMLTags.ATTR_TEXT_TRANSFORM, style.getTextTransform( ) ); buildProperty( content, HTMLTags.ATTR_WHITE_SPACE, style.getWhiteSpace( ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/778c80860c81c271b4b70edb2450e2750fe6c140/AttributeBuilder.java/clean/engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/AttributeBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1361, 1528, 12, 6674, 913, 16, 9767, 15478, 2154, 262, 202, 95, 202, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, 5151, 67, 2356, 2222, 16, 2154, 18, 588, 1528, 7790, 12, 262, 11272, 3196, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, 5151, 67, 26439, 16, 2154, 18, 588, 1528, 10044, 12, 262, 11272, 3196, 202, 3510, 1528, 7859, 367, 12, 913, 16, 2154, 18, 588, 1528, 1670, 14287, 12, 262, 16, 2154, 9506, 202, 18, 588, 1528, 4851, 1369, 12, 262, 16, 2154, 18, 588, 1528, 14655, 1369, 12, 262, 11272, 202, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, 26379, 67, 3118, 2226, 1360, 16, 2154, 18, 588, 13938, 18006, 12, 262, 11272, 3196, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, 7952, 67, 3118, 2226, 1360, 16, 2154, 18, 588, 3944, 18006, 12, 262, 11272, 3196, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, 5151, 67, 16596, 4983, 16, 2154, 18, 588, 1528, 4059, 12, 262, 11272, 3196, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, 16861, 67, 6616, 16, 2154, 18, 588, 23108, 12, 262, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1361, 1528, 12, 6674, 913, 16, 9767, 15478, 2154, 262, 202, 95, 202, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, 5151, 67, 2356, 2222, 16, 2154, 18, 588, 1528, 7790, 12, 262, 11272, 3196, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, 5151, 67, 26439, 16, 2154, 18, 588, 1528, 10044, 12, 262, 11272, 3196, 202, 3510, 1528, 7859, 367, 12, 913, 16, 2154, 18, 588, 1528, 1670, 14287, 12, 262, 16, 2154, 9506, 202, 18, 588, 1528, 4851, 1369, 12, 262, 16, 2154, 18, 588, 1528, 14655, 1369, 12, 262, 11272, 202, 202, 3510, 1396, 12, 913, 16, 3982, 3453, 18, 12043, 67, 26379, 67, 3118, 2 ]
final String key = (String)enum.nextElement(); final String value = (String)mOverrideProps.get(key);
final String key = (String) enum.nextElement(); final String value = (String) mOverrideProps.get(key);
public void startElement(String aNamespaceURI, String aLocalName, String aQName, Attributes aAtts) { mBuf.setLength(0); if ("global".equals(aQName)) { mIsInGlobalElement = true; } else if ("check".equals(aQName)) { //first apply overriding properties if (!mIsInCheckMode) { mIsInCheckMode = true; for (Enumeration enum = mOverrideProps.keys(); enum.hasMoreElements();) { final String key = (String)enum.nextElement(); final String value = (String)mOverrideProps.get(key); mProps.setProperty(key, value); } } mCurrent = new CheckConfiguration(); mCurrent.setClassname(aAtts.getValue("classname")); }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/f31504de9f000564f3af3cca0f42f60863344b88/ConfigurationLoader.java/clean/src/checkstyle/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 780, 279, 3402, 3098, 16, 11794, 514, 279, 29583, 16, 11794, 514, 279, 13688, 16, 11794, 9055, 279, 3075, 87, 13, 565, 288, 3639, 312, 5503, 18, 542, 1782, 12, 20, 1769, 3639, 309, 7566, 6347, 9654, 14963, 12, 69, 13688, 3719, 288, 5411, 312, 2520, 382, 5160, 1046, 273, 638, 31, 3639, 289, 3639, 469, 309, 7566, 1893, 9654, 14963, 12, 69, 13688, 3719, 288, 5411, 368, 3645, 2230, 19488, 1790, 5411, 309, 16051, 81, 2520, 382, 1564, 2309, 13, 288, 7734, 312, 2520, 382, 1564, 2309, 273, 638, 31, 7734, 364, 261, 21847, 2792, 273, 312, 6618, 5047, 18, 2452, 5621, 8227, 2792, 18, 5332, 7417, 3471, 5621, 13, 7734, 288, 10792, 727, 514, 498, 273, 261, 780, 13, 7924, 18, 4285, 1046, 5621, 10792, 727, 514, 460, 273, 261, 780, 13, 81, 6618, 5047, 18, 588, 12, 856, 1769, 10792, 312, 5047, 18, 542, 1396, 12, 856, 16, 460, 1769, 7734, 289, 5411, 289, 5411, 28326, 273, 394, 2073, 1750, 5621, 5411, 28326, 18, 542, 20531, 12, 69, 3075, 87, 18, 24805, 2932, 18340, 7923, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 13591, 12, 780, 279, 3402, 3098, 16, 11794, 514, 279, 29583, 16, 11794, 514, 279, 13688, 16, 11794, 9055, 279, 3075, 87, 13, 565, 288, 3639, 312, 5503, 18, 542, 1782, 12, 20, 1769, 3639, 309, 7566, 6347, 9654, 14963, 12, 69, 13688, 3719, 288, 5411, 312, 2520, 382, 5160, 1046, 273, 638, 31, 3639, 289, 3639, 469, 309, 7566, 1893, 9654, 14963, 12, 69, 13688, 3719, 288, 5411, 368, 3645, 2230, 19488, 1790, 5411, 309, 16051, 81, 2520, 382, 1564, 2309, 13, 288, 7734, 312, 2520, 382, 1564, 2309, 273, 638, 31, 7734, 364, 261, 21847, 2792, 273, 312, 6618, 5047, 18, 2452, 5621, 8227, 2792, 18, 5332, 7417, 3471, 5621, 13, 7734, 288, 10792, 2 ]
NFSDataOutputStream out = NutchFileSystem.getNamed("local").create(file);
NFSDataOutputStream out = NutchFileSystem.getNamed("local", this.jobConf).create(file);
public void readFields(DataInput in) throws IOException { this.mapTaskId = UTF8.readString(in); this.reduceTaskId = UTF8.readString(in); this.partition = in.readInt(); ProgressReporter reporter = (ProgressReporter)REPORTERS.get(); // read the length-prefixed file content into a local file File file = getInputFile(mapTaskId, reduceTaskId); long length = in.readLong(); float progPerByte = 1.0f / length; long unread = length; NFSDataOutputStream out = NutchFileSystem.getNamed("local").create(file); try { byte[] buffer = new byte[8192]; while (unread > 0) { int bytesToRead = (int)Math.min(unread, buffer.length); in.readFully(buffer, 0, bytesToRead); out.write(buffer, 0, bytesToRead); unread -= bytesToRead; if (reporter != null) { reporter.progress((length-unread)*progPerByte); } } } finally { out.close(); } }
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/329ff64e9d7295aff108f85e9a8103f5e5f8f398/MapOutputFile.java/buggy/src/java/org/apache/nutch/mapred/MapOutputFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 2314, 12, 751, 1210, 316, 13, 1216, 1860, 288, 565, 333, 18, 1458, 30182, 273, 6380, 28, 18, 896, 780, 12, 267, 1769, 565, 333, 18, 12498, 30182, 273, 6380, 28, 18, 896, 780, 12, 267, 1769, 565, 333, 18, 10534, 273, 316, 18, 896, 1702, 5621, 565, 10980, 13289, 11528, 273, 261, 5491, 13289, 13, 28879, 916, 2560, 55, 18, 588, 5621, 565, 368, 855, 326, 769, 17, 3239, 329, 585, 913, 1368, 279, 1191, 585, 565, 1387, 585, 273, 12353, 812, 12, 1458, 30182, 16, 5459, 30182, 1769, 565, 1525, 769, 273, 316, 18, 896, 3708, 5621, 565, 1431, 11243, 2173, 3216, 273, 404, 18, 20, 74, 342, 769, 31, 565, 1525, 19541, 273, 769, 31, 565, 31924, 751, 4632, 596, 273, 423, 322, 343, 11785, 18, 588, 7604, 2932, 3729, 3113, 333, 18, 4688, 3976, 2934, 2640, 12, 768, 1769, 565, 775, 288, 1377, 1160, 8526, 1613, 273, 394, 1160, 63, 28, 15561, 15533, 1377, 1323, 261, 318, 896, 405, 374, 13, 288, 1850, 509, 1731, 23321, 273, 261, 474, 13, 10477, 18, 1154, 12, 318, 896, 16, 1613, 18, 2469, 1769, 1850, 316, 18, 896, 16999, 12, 4106, 16, 374, 16, 1731, 23321, 1769, 1850, 596, 18, 2626, 12, 4106, 16, 374, 16, 1731, 23321, 1769, 1850, 19541, 3947, 1731, 23321, 31, 1850, 309, 261, 266, 7988, 480, 446, 13, 288, 5411, 11528, 18, 8298, 12443, 2469, 17, 318, 896, 17653, 14654, 2173, 3216, 1769, 1850, 289, 1377, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 2314, 12, 751, 1210, 316, 13, 1216, 1860, 288, 565, 333, 18, 1458, 30182, 273, 6380, 28, 18, 896, 780, 12, 267, 1769, 565, 333, 18, 12498, 30182, 273, 6380, 28, 18, 896, 780, 12, 267, 1769, 565, 333, 18, 10534, 273, 316, 18, 896, 1702, 5621, 565, 10980, 13289, 11528, 273, 261, 5491, 13289, 13, 28879, 916, 2560, 55, 18, 588, 5621, 565, 368, 855, 326, 769, 17, 3239, 329, 585, 913, 1368, 279, 1191, 585, 565, 1387, 585, 273, 12353, 812, 12, 1458, 30182, 16, 5459, 30182, 1769, 565, 1525, 769, 273, 316, 18, 896, 3708, 5621, 565, 1431, 11243, 2173, 3216, 273, 404, 18, 20, 74, 342, 769, 31, 565, 1525, 19541, 2 ]
yaccValue = "&&";
yaccValue = new Token("&&", getPosition(null, false));
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/clean/src/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082, 202, 474, 946, 273, 5275, 67, 701, 6408, 18, 2670, 780, 12, 2211, 16, 1705, 1769, 1082, 202, 430, 261, 17692, 422, 13899, 18, 88, 5804, 67, 4415, 747, 946, 422, 13899, 18, 88, 28225, 67, 4415, 13, 288, 9506, 565, 5275, 67, 701, 6408, 273, 446, 31, 9506, 565, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 1082, 202, 97, 1082, 202, 2463, 946, 31, 3639, 289, 3639, 783, 1616, 273, 1705, 18, 588, 2555, 5621, 7734, 1296, 1119, 273, 1296, 1685, 31, 3639, 1296, 1685, 273, 629, 31, 7734, 3300, 30, 364, 12, 25708, 13, 288, 5411, 276, 273, 1705, 18, 896, 5621, 5411, 1620, 12, 71, 13, 288, 5411, 648, 2337, 26565, 4278, 202, 202, 20308, 3602, 40, 1195, 5411, 648, 2337, 20, 1578, 4278, 202, 202, 20308, 3602, 62, 1195, 5411, 648, 374, 30, 1082, 202, 20308, 679, 434, 2728, 18, 1195, 7734, 327, 374, 31, 21821, 1748, 9578, 7292, 1195, 5411, 648, 296, 4290, 648, 2337, 88, 4278, 648, 2337, 74, 4278, 648, 2337, 86, 4278, 5411, 648, 2337, 3437, 4278, 1748, 2337, 90, 11, 1195, 7734, 3476, 15160, 273, 638, 31, 7734, 1324, 3300, 31, 5411, 648, 2946, 4278, 202, 202, 20308, 518, 1807, 279, 2879, 1195, 7734, 1323, 14015, 71, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082, 202, 474, 946, 273, 5275, 67, 701, 6408, 18, 2670, 780, 12, 2211, 16, 1705, 1769, 1082, 202, 430, 261, 17692, 422, 13899, 18, 88, 5804, 67, 4415, 747, 946, 422, 13899, 18, 88, 28225, 67, 4415, 13, 288, 9506, 565, 5275, 67, 701, 6408, 273, 446, 31, 9506, 565, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 1082, 202, 97, 1082, 202, 2463, 946, 31, 3639, 289, 3639, 783, 1616, 273, 1705, 18, 588, 2555, 5621, 7734, 1296, 2 ]
/* Nope. */ return false; }
/* Nope. */ return false; }
public static boolean isMagic( byte[] magic ) { int pos; /* UTF-8. */ pos = 0; if ( magic.length > 5 && magic[ pos++ ] == (byte) '<' && magic[ pos++ ] == (byte) '?' && magic[ pos++ ] == (byte) 'x' && magic[ pos++ ] == (byte) 'm' && magic[ pos++ ] == (byte) 'l' ) { return true; } /* Big endian UCS-2. */ pos = 0; if ( magic.length > 12 && magic[ pos++ ] == 0xfe && magic[ pos++ ] == 0xff && magic[ pos++ ] == 0x00 && magic[ pos++ ] == (byte) '<' && magic[ pos++ ] == 0x00 && magic[ pos++ ] == (byte) '?' && magic[ pos++ ] == 0x00 && magic[ pos++ ] == (byte) 'x' && magic[ pos++ ] == 0x00 && magic[ pos++ ] == (byte) 'm' && magic[ pos++ ] == 0x00 && magic[ pos++ ] == (byte) 'l' ) { return true; } /* Little endian UCS-2. */ pos = 0; if ( magic.length > 12 && magic[ pos++ ] == 0xff && magic[ pos++ ] == 0xfe && magic[ pos++ ] == (byte) '<' && magic[ pos++ ] == 0x00 && magic[ pos++ ] == (byte) '?' && magic[ pos++ ] == 0x00 && magic[ pos++ ] == (byte) 'x' && magic[ pos++ ] == 0x00 && magic[ pos++ ] == (byte) 'm' && magic[ pos++ ] == 0x00 && magic[ pos++ ] == (byte) 'l' && magic[ pos++ ] == 0x00 ) { return true; } /* Nope. */ return false; }
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/0e696077f5fc9004ec98b881075f0c4a553460dc/XMLDataNode.java/buggy/treeview/src/main/uk/ac/starlink/treeview/XMLDataNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 19289, 12, 1160, 8526, 8146, 262, 288, 3639, 509, 949, 31, 3639, 1748, 6380, 17, 28, 18, 1195, 3639, 949, 273, 374, 31, 3639, 309, 261, 8146, 18, 2469, 405, 1381, 597, 2868, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 9138, 597, 2398, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 6787, 597, 2398, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 296, 92, 11, 597, 2398, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 296, 81, 11, 597, 2398, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 296, 80, 11, 262, 288, 5411, 327, 638, 31, 3639, 289, 3639, 1748, 4454, 14759, 587, 4596, 17, 22, 18, 1195, 3639, 949, 273, 374, 31, 3639, 309, 261, 8146, 18, 2469, 405, 2593, 597, 2398, 8146, 63, 949, 9904, 308, 422, 374, 26947, 597, 8146, 63, 949, 9904, 308, 422, 374, 5297, 597, 2398, 8146, 63, 949, 9904, 308, 422, 374, 92, 713, 597, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 9138, 597, 2398, 8146, 63, 949, 9904, 308, 422, 374, 92, 713, 597, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 6787, 597, 2398, 8146, 63, 949, 9904, 308, 422, 374, 92, 713, 597, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 296, 92, 11, 597, 2398, 8146, 63, 949, 9904, 308, 422, 374, 92, 713, 597, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 296, 81, 11, 597, 2398, 8146, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 353, 19289, 12, 1160, 8526, 8146, 262, 288, 3639, 509, 949, 31, 3639, 1748, 6380, 17, 28, 18, 1195, 3639, 949, 273, 374, 31, 3639, 309, 261, 8146, 18, 2469, 405, 1381, 597, 2868, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 9138, 597, 2398, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 6787, 597, 2398, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 296, 92, 11, 597, 2398, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 296, 81, 11, 597, 2398, 8146, 63, 949, 9904, 308, 422, 261, 7229, 13, 296, 80, 11, 262, 288, 5411, 327, 638, 31, 3639, 289, 3639, 1748, 4454, 14759, 587, 4596, 17, 22, 18, 2 ]
public void startElement(QName element, XMLAttributes attributes) throws XNIException { try { // SAX1 if (fDocumentHandler != null) { fAttributesProxy.setAttributes(attributes); fDocumentHandler.startElement(element.rawname, fAttributesProxy); } // SAX2 if (fContentHandler != null) { if (!fNamespacePrefixes) { // remove namespace declaration attributes int len = attributes.getLength(); for (int i = len - 1; i >= 0; i--) { attributes.getName(i, fQName); if (fQName.rawname == fXmlnsSymbol || fQName.prefix == fXmlnsSymbol) { attributes.removeAttributeAt(i); } } } String uri = element.uri != null ? element.uri : fEmptySymbol; String localpart = fNamespaces ? element.localpart : fEmptySymbol; fAttributesProxy.setAttributes(attributes); fContentHandler.startElement(uri, localpart, element.rawname, fAttributesProxy); } } catch (SAXException e) { throw new XNIException(e); } } // startElement(QName,XMLAttributes)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/c1347feb11416eb839b46a76d6c41f1d84f3217a/AbstractSAXParser.java/buggy/src/org/apache/xerces/parsers/AbstractSAXParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 13688, 930, 16, 3167, 2498, 1677, 13, 540, 1216, 1139, 50, 45, 503, 288, 3639, 775, 288, 5411, 368, 10168, 21, 5411, 309, 261, 74, 2519, 1503, 480, 446, 13, 288, 7734, 284, 2498, 3886, 18, 542, 2498, 12, 4350, 1769, 7734, 284, 2519, 1503, 18, 1937, 1046, 12, 2956, 18, 1899, 529, 16, 284, 2498, 3886, 1769, 5411, 289, 7734, 368, 10168, 22, 5411, 309, 261, 74, 1350, 1503, 480, 446, 13, 288, 10792, 309, 16051, 74, 3402, 11700, 13, 288, 10792, 368, 1206, 1981, 8266, 1677, 10792, 509, 562, 273, 1677, 18, 588, 1782, 5621, 10792, 364, 261, 474, 277, 273, 562, 300, 404, 31, 277, 1545, 374, 31, 277, 413, 13, 288, 13491, 1677, 18, 17994, 12, 77, 16, 284, 13688, 1769, 13491, 309, 261, 74, 13688, 18, 1899, 529, 422, 284, 4432, 2387, 5335, 747, 18701, 284, 13688, 18, 3239, 422, 284, 4432, 2387, 5335, 13, 288, 18701, 1677, 18, 4479, 1499, 861, 12, 77, 1769, 13491, 289, 10792, 289, 7734, 289, 10792, 514, 2003, 273, 930, 18, 1650, 480, 446, 692, 930, 18, 1650, 294, 284, 1921, 5335, 31, 7734, 514, 1191, 2680, 273, 284, 13180, 692, 930, 18, 3729, 2680, 294, 284, 1921, 5335, 31, 7734, 284, 2498, 3886, 18, 542, 2498, 12, 4350, 1769, 7734, 284, 1350, 1503, 18, 1937, 1046, 12, 1650, 16, 1191, 2680, 16, 930, 18, 1899, 529, 16, 4766, 2868, 284, 2498, 3886, 1769, 5411, 289, 3639, 289, 3639, 1044, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13591, 12, 13688, 930, 16, 3167, 2498, 1677, 13, 540, 1216, 1139, 50, 45, 503, 288, 3639, 775, 288, 5411, 368, 10168, 21, 5411, 309, 261, 74, 2519, 1503, 480, 446, 13, 288, 7734, 284, 2498, 3886, 18, 542, 2498, 12, 4350, 1769, 7734, 284, 2519, 1503, 18, 1937, 1046, 12, 2956, 18, 1899, 529, 16, 284, 2498, 3886, 1769, 5411, 289, 7734, 368, 10168, 22, 5411, 309, 261, 74, 1350, 1503, 480, 446, 13, 288, 10792, 309, 16051, 74, 3402, 11700, 13, 288, 10792, 368, 1206, 1981, 8266, 1677, 10792, 509, 562, 273, 1677, 18, 588, 1782, 5621, 10792, 364, 261, 474, 277, 273, 562, 300, 404, 31, 277, 1545, 374, 31, 277, 413, 13, 2 ]
rubyClass.addMethod(name, newMethod);
containingClass.addMethod(name, newMethod);
public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = threadContext.getRubyClass(); if (rubyClass == null) { throw new TypeError(runtime, "No class to add method."); } String name = iVisited.getName(); if (rubyClass == runtime.getClasses().getObjectClass() && name.equals("initialize")) { runtime.getWarnings().warn("redefining Object#initialize may cause infinite loop"); } Visibility visibility = threadContext.getCurrentVisibility(); if (name.equals("initialize") || visibility.isModuleFunction()) { visibility = Visibility.PRIVATE; } else if (visibility.isPublic() && rubyClass == runtime.getClasses().getObjectClass()) { visibility = iVisited.getVisibility(); } DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), visibility, runtime.getRubyClass()); iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); rubyClass.addMethod(name, newMethod); if (threadContext.getCurrentVisibility().isModuleFunction()) { rubyClass.getSingletonClass().addMethod(name, new WrapperCallable(newMethod, Visibility.PUBLIC)); rubyClass.callMethod("singleton_method_added", builtins.toSymbol(name)); } rubyClass.callMethod("method_added", builtins.toSymbol(name)); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/43e9fa2839b5fdb050b372d628601d8a4bcc43a4/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 2650, 1042, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 13, 288, 5411, 604, 394, 3580, 12, 9448, 16, 315, 2279, 667, 358, 527, 707, 1199, 1769, 3639, 289, 3639, 514, 508, 273, 277, 30019, 18, 17994, 5621, 3639, 309, 261, 27768, 797, 422, 3099, 18, 588, 4818, 7675, 588, 921, 797, 1435, 597, 508, 18, 14963, 2932, 11160, 6, 3719, 288, 5411, 3099, 18, 588, 4312, 7675, 8935, 2932, 266, 5649, 310, 1033, 7, 11160, 2026, 4620, 14853, 2798, 8863, 3639, 289, 3639, 27791, 9478, 273, 2650, 1042, 18, 588, 3935, 10135, 5621, 3639, 309, 261, 529, 18, 14963, 2932, 11160, 7923, 747, 9478, 18, 291, 3120, 2083, 10756, 288, 5411, 9478, 273, 27791, 18, 20055, 31, 3639, 289, 469, 309, 261, 14422, 18, 291, 4782, 1435, 597, 22155, 797, 422, 3099, 18, 588, 4818, 7675, 588, 921, 797, 10756, 288, 5411, 9478, 273, 277, 30019, 18, 588, 10135, 5621, 3639, 289, 3639, 2989, 1305, 394, 1305, 273, 394, 2989, 1305, 12, 77, 30019, 18, 588, 2250, 907, 9334, 4766, 10792, 261, 2615, 907, 13, 277, 30019, 18, 588, 2615, 907, 9334, 4766, 10792, 9478, 16, 4766, 10792, 3099, 18, 588, 54, 10340, 797, 10663, 7734, 277, 30019, 18, 588, 2250, 907, 7675, 9436, 12, 2704, 1788, 26743, 2326, 7413, 12, 2704, 1305, 10019, 7734, 4191, 797, 18, 1289, 1305, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 2650, 1042, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 13, 288, 5411, 604, 394, 3580, 12, 9448, 16, 315, 2279, 667, 358, 527, 707, 1199, 1769, 3639, 289, 3639, 514, 508, 273, 277, 30019, 18, 17994, 5621, 3639, 309, 261, 27768, 797, 422, 3099, 18, 588, 4818, 7675, 588, 921, 797, 1435, 597, 508, 18, 14963, 2932, 11160, 6, 3719, 288, 5411, 3099, 18, 588, 4312, 7675, 8935, 2932, 266, 5649, 310, 1033, 7, 11160, 2026, 4620, 14853, 2798, 8863, 3639, 289, 3639, 27791, 9478, 273, 2650, 1042, 18, 588, 3935, 10135, 2 ]
return decode(encodedString, 0, encodedString.length);
try { if (encoding == null) { return new String(encodedString, offset, length); } else { if (encoding.equals("UTF-8")) { return decodeUTF8(encodedString, offset, length); } return new String(encodedString, offset, length, encoding); } } catch (UnsupportedEncodingException e) { throw new PSQLException("postgresql.stream.encoding", PSQLState.DATA_ERROR, e); }
public String decode(byte[] encodedString) throws SQLException { return decode(encodedString, 0, encodedString.length); }
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/0378a269f3ab3c44e67b14f96414b6ca95263263/Encoding.java/buggy/src/interfaces/jdbc/org/postgresql/core/Encoding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2495, 12, 7229, 8526, 3749, 780, 13, 1216, 6483, 202, 95, 202, 202, 2463, 2495, 12, 10787, 780, 16, 374, 16, 3749, 780, 18, 2469, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2495, 12, 7229, 8526, 3749, 780, 13, 1216, 6483, 202, 95, 202, 202, 2463, 2495, 12, 10787, 780, 16, 374, 16, 3749, 780, 18, 2469, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
VM_Class cls = VM_ClassLoader.findOrCreateType(classDescriptor).asClass();
VM_Class cls = VM_ClassLoader.findOrCreateType(classDescriptor, VM_SystemClassLoader.getVMClassLoader()).asClass();
private static void runClassInitializer(String className) { VM_Atom classDescriptor = VM_Atom.findOrCreateAsciiAtom(className.replace('.','/')).descriptorFromClassName(); VM_Class cls = VM_ClassLoader.findOrCreateType(classDescriptor).asClass(); if (cls.isInBootImage()) { VM_Magic.invokeClassInitializer(cls.getClassInitializerMethod().getMostRecentlyGeneratedInstructions()); cls.setAllFinalStaticJTOCEntries(); } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/220706ac8e24c4eb9124a4025dcee5f246daa751/VM.java/buggy/rvm/src/vm/VM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 1086, 797, 14729, 12, 780, 2658, 13, 288, 565, 8251, 67, 3641, 225, 667, 3187, 273, 3639, 8251, 67, 3641, 18, 4720, 17717, 21363, 3641, 12, 12434, 18, 2079, 2668, 1093, 11189, 2473, 13, 2934, 12628, 1265, 3834, 5621, 565, 8251, 67, 797, 2028, 273, 8251, 67, 7805, 18, 4720, 17717, 559, 12, 1106, 3187, 16, 8251, 67, 3163, 7805, 18, 588, 7397, 7805, 1435, 2934, 345, 797, 5621, 565, 309, 261, 6429, 18, 291, 382, 15817, 2040, 10756, 288, 1377, 8251, 67, 19289, 18, 14407, 797, 14729, 12, 6429, 18, 588, 797, 14729, 1305, 7675, 588, 18714, 17076, 715, 7823, 26712, 10663, 1377, 2028, 18, 542, 1595, 7951, 5788, 46, 4296, 39, 5400, 5621, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 760, 918, 1086, 797, 14729, 12, 780, 2658, 13, 288, 565, 8251, 67, 3641, 225, 667, 3187, 273, 3639, 8251, 67, 3641, 18, 4720, 17717, 21363, 3641, 12, 12434, 18, 2079, 2668, 1093, 11189, 2473, 13, 2934, 12628, 1265, 3834, 5621, 565, 8251, 67, 797, 2028, 273, 8251, 67, 7805, 18, 4720, 17717, 559, 12, 1106, 3187, 16, 8251, 67, 3163, 7805, 18, 588, 7397, 7805, 1435, 2934, 345, 797, 5621, 565, 309, 261, 6429, 18, 291, 382, 15817, 2040, 10756, 288, 1377, 8251, 67, 19289, 18, 14407, 797, 14729, 12, 6429, 18, 588, 797, 14729, 1305, 7675, 588, 18714, 17076, 715, 7823, 26712, 10663, 1377, 2028, 18, 542, 1595, 7951, 5788, 46, 4296, 39, 5400, 5621, 2 ]
rules.add(new SingleLineRule("'", "'", token, '\\'));
rules.add(new SingleLineRule("'", "'", token, '\\'));
protected List createRules() { List rules= new ArrayList(); // Add rule for strings Token token= getToken(ICColorConstants.C_SINGLE_LINE_COMMENT); // Add rule for single line comments. rules.add(new EndOfLineRule("#", token)); token= getToken(ICColorConstants.C_STRING); // Add rule for strings and character constants. rules.add(new SingleLineRule("'", "'", token, '\\')); //rules.add(new SingleLineRule("\"", "\"", token, '\\')); Token other= getToken(ICColorConstants.C_DEFAULT); // Add generic whitespace rule. rules.add(new WhitespaceRule(new CWhitespaceDetector())); // Add word rule for labels WordRule labelRule = new WordRule(new AsmWordDetector(false), other) { private StringBuffer fBuffer= new StringBuffer(); /* * @see IRule#evaluate */ public IToken evaluate(ICharacterScanner scanner) { int c= scanner.read(); if (fDetector.isWordStart((char) c)) { if (fColumn == UNDEFINED || (fColumn == scanner.getColumn() - 1)) { fBuffer.setLength(0); do { fBuffer.append((char) c); c= scanner.read(); } while (fDetector.isWordPart((char) c)); if(c != ':') { unreadBuffer(scanner); return fDefaultToken; } else { fBuffer.append((char) c); IToken token= (IToken) fWords.get(":"); if (token != null) return token; } return fDefaultToken; } } scanner.unread(); return Token.UNDEFINED; } /** * Adds a word and the token to be returned if it is detected. * * @param word the word this rule will search for, may not be <code>null</code> * @param token the token to be returned if the word has been found, may not be <code>null</code> */ public void addWord(String word, IToken token) { fWords.put(word, token); } /** * Returns the characters in the buffer to the scanner. * * @param scanner the scanner to be used */ protected void unreadBuffer(ICharacterScanner scanner) { for (int i= fBuffer.length() - 1; i >= 0; i--) scanner.unread(); } }; token= getToken(ICColorConstants.C_TYPE); labelRule.addWord(":", token); //wordRule.setColumnConstraint(0); rules.add(labelRule); // Add word rule for keywords and types WordRule wordRule= new WordRule(new AsmWordDetector('.'), other); for (int i=0; i<fgKeywords.length; i++) wordRule.addWord(fgKeywords[i], token); for (int i=0; i<fgTypes.length; i++) wordRule.addWord(fgTypes[i], token); rules.add(wordRule); token= getToken(ICColorConstants.C_KEYWORD); WordPatternRule regPattern = new WordPatternRule(new AsmWordDetector('%', (char)0), "%", null, token); rules.add(regPattern); setDefaultReturnToken(getToken(ICColorConstants.C_DEFAULT)); return rules; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/AsmCodeScanner.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/asm/AsmCodeScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 752, 4478, 1435, 288, 25083, 202, 682, 2931, 33, 394, 2407, 5621, 25083, 202, 759, 1436, 1720, 364, 2064, 202, 202, 1345, 1147, 33, 9162, 12, 2871, 2957, 2918, 18, 39, 67, 20184, 67, 5997, 67, 12200, 1769, 9506, 202, 759, 1436, 1720, 364, 2202, 980, 5678, 18, 202, 202, 7482, 18, 1289, 12, 2704, 4403, 951, 1670, 2175, 2932, 7, 3113, 1147, 10019, 9506, 202, 2316, 33, 9162, 12, 2871, 2957, 2918, 18, 39, 67, 5804, 1769, 202, 202, 759, 1436, 1720, 364, 2064, 471, 3351, 6810, 18, 202, 202, 7482, 18, 1289, 12, 2704, 10326, 1670, 2175, 29823, 3113, 2491, 3113, 1147, 16, 5282, 10019, 202, 202, 759, 7482, 18, 1289, 12, 2704, 10326, 1670, 2175, 2932, 2412, 3113, 7023, 3113, 1147, 16, 5282, 10019, 25083, 202, 1345, 1308, 33, 9162, 12, 2871, 2957, 2918, 18, 39, 67, 5280, 1769, 25083, 202, 759, 1436, 5210, 7983, 1720, 18, 202, 202, 7482, 18, 1289, 12, 2704, 3497, 5211, 2175, 12, 2704, 385, 9431, 12594, 1435, 10019, 202, 202, 759, 1436, 2076, 1720, 364, 3249, 202, 202, 3944, 2175, 1433, 2175, 273, 394, 9926, 2175, 12, 2704, 2970, 81, 3944, 12594, 12, 5743, 3631, 1308, 13, 288, 1082, 202, 1152, 6674, 284, 1892, 33, 394, 6674, 5621, 1082, 202, 20308, 9506, 380, 632, 5946, 467, 2175, 7, 21024, 9506, 1195, 1082, 202, 482, 467, 1345, 5956, 12, 45, 7069, 11338, 7683, 13, 288, 9506, 202, 474, 276, 33, 7683, 18, 896, 5621, 9506, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 752, 4478, 1435, 288, 25083, 202, 682, 2931, 33, 394, 2407, 5621, 25083, 202, 759, 1436, 1720, 364, 2064, 202, 202, 1345, 1147, 33, 9162, 12, 2871, 2957, 2918, 18, 39, 67, 20184, 67, 5997, 67, 12200, 1769, 9506, 202, 759, 1436, 1720, 364, 2202, 980, 5678, 18, 202, 202, 7482, 18, 1289, 12, 2704, 4403, 951, 1670, 2175, 2932, 7, 3113, 1147, 10019, 9506, 202, 2316, 33, 9162, 12, 2871, 2957, 2918, 18, 39, 67, 5804, 1769, 202, 202, 759, 1436, 1720, 364, 2064, 471, 3351, 6810, 18, 202, 202, 7482, 18, 1289, 12, 2704, 10326, 1670, 2175, 29823, 3113, 2491, 3113, 1147, 16, 5282, 10019, 202, 202, 759, 7482, 18, 1289, 12, 2704, 2 ]
&& (isKnownView(toID) || isKnownTopic(toID))) { int pref = HelpContribution.NORMAL; if (asType.equals(ActionContributor.INSERT_AS_FIRST_CHILD)) { pref = HelpContribution.FIRST; } else if (asType.equals(ActionContributor.INSERT_AS_LAST_CHILD)) { pref = HelpContribution.LAST; } else if (asType.equals(ActionContributor.INSERT_AS_PREV_SIB)) { pref = HelpContribution.PREV; } else if (asType.equals(ActionContributor.INSERT_AS_NEXT_SIB)) { pref = HelpContribution.NEXT; } if (insertTopic(fromID, toID, view, pref, newLabel))
&& (isKnownView(toID) || isKnownTopic(toID))) { if (insertTopic(fromID, toID, view, insertNode.getMode(), newLabel))
public boolean execute() { String fromID = insertNode.getSource(); String toID = insertNode.getTarget(); String asType = insertNode.getMode(); String newLabel = insertNode.getRawLabel(); // check conditions if (isKnownView(fromID)) return false; if ((isKnownTopic(fromID) || isKnownTopicSet(fromID)) && (isKnownView(toID) || isKnownTopic(toID))) { int pref = HelpContribution.NORMAL; if (asType.equals(ActionContributor.INSERT_AS_FIRST_CHILD)) { pref = HelpContribution.FIRST; } else if (asType.equals(ActionContributor.INSERT_AS_LAST_CHILD)) { pref = HelpContribution.LAST; } else if (asType.equals(ActionContributor.INSERT_AS_PREV_SIB)) { pref = HelpContribution.PREV; } else if (asType.equals(ActionContributor.INSERT_AS_NEXT_SIB)) { pref = HelpContribution.NEXT; } if (insertTopic(fromID, toID, view, pref, newLabel)) return true; } return executeNested(); }
13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/90aa1ba7e47ec2535c1447e5ccce3b6e7b68f82d/InfosetBuilder.java/clean/org.eclipse.help/Eclipse Help/org/eclipse/help/internal/navigation/InfosetBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 1836, 1435, 288, 1082, 202, 780, 628, 734, 273, 2243, 907, 18, 588, 1830, 5621, 1082, 202, 780, 358, 734, 273, 2243, 907, 18, 588, 2326, 5621, 1082, 202, 780, 31658, 273, 2243, 907, 18, 588, 2309, 5621, 1082, 202, 780, 394, 2224, 273, 2243, 907, 18, 588, 4809, 2224, 5621, 1082, 202, 759, 866, 4636, 1082, 202, 430, 261, 291, 11925, 1767, 12, 2080, 734, 3719, 9506, 202, 2463, 629, 31, 1082, 202, 430, 14015, 291, 11925, 6657, 12, 2080, 734, 13, 747, 353, 11925, 6657, 694, 12, 2080, 734, 3719, 9506, 202, 10, 10, 261, 291, 11925, 1767, 12, 869, 734, 13, 747, 353, 11925, 6657, 12, 869, 734, 20349, 288, 9506, 202, 474, 11307, 273, 11288, 442, 4027, 18, 15480, 31, 9506, 202, 430, 261, 345, 559, 18, 14963, 12, 1803, 442, 19293, 18, 11356, 67, 3033, 67, 15354, 67, 27043, 3719, 288, 6862, 202, 25724, 273, 11288, 442, 4027, 18, 15354, 31, 9506, 202, 97, 469, 6862, 202, 430, 261, 345, 559, 18, 14963, 12, 1803, 442, 19293, 18, 11356, 67, 3033, 67, 14378, 67, 27043, 3719, 288, 25083, 202, 25724, 273, 11288, 442, 4027, 18, 14378, 31, 6862, 202, 97, 469, 25083, 202, 430, 261, 345, 559, 18, 14963, 12, 1803, 442, 19293, 18, 11356, 67, 3033, 67, 3670, 58, 67, 9894, 3719, 288, 6862, 1082, 202, 25724, 273, 11288, 442, 4027, 18, 3670, 58, 31, 25083, 202, 97, 469, 6862, 1082, 202, 430, 261, 345, 559, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1836, 1435, 288, 1082, 202, 780, 628, 734, 273, 2243, 907, 18, 588, 1830, 5621, 1082, 202, 780, 358, 734, 273, 2243, 907, 18, 588, 2326, 5621, 1082, 202, 780, 31658, 273, 2243, 907, 18, 588, 2309, 5621, 1082, 202, 780, 394, 2224, 273, 2243, 907, 18, 588, 4809, 2224, 5621, 1082, 202, 759, 866, 4636, 1082, 202, 430, 261, 291, 11925, 1767, 12, 2080, 734, 3719, 9506, 202, 2463, 629, 31, 1082, 202, 430, 14015, 291, 11925, 6657, 12, 2080, 734, 13, 747, 353, 11925, 6657, 694, 12, 2080, 734, 3719, 9506, 202, 10, 10, 261, 291, 11925, 1767, 12, 869, 734, 13, 747, 353, 11925, 6657, 12, 869, 734, 20349, 288, 9506, 202, 2 ]
String oldGroupingUnit = groupingUnit; groupingUnit = newGroupingUnit;
GroupingUnitType oldGroupingUnit = groupingUnit; groupingUnit = newGroupingUnit == null ? GROUPING_UNIT_EDEFAULT : newGroupingUnit; boolean oldGroupingUnitESet = groupingUnitESet; groupingUnitESet = true;
public void setGroupingUnit(String newGroupingUnit) { String oldGroupingUnit = groupingUnit; groupingUnit = newGroupingUnit; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, DataPackage.SERIES_GROUPING__GROUPING_UNIT, oldGroupingUnit, groupingUnit)); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/869b9dc91ef4dd13d07f589c6394484a744642f0/SeriesGroupingImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/SeriesGroupingImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 21014, 2802, 12, 780, 394, 21014, 2802, 13, 565, 288, 3639, 514, 1592, 21014, 2802, 273, 12116, 2802, 31, 3639, 12116, 2802, 273, 394, 21014, 2802, 31, 3639, 309, 261, 73, 21107, 10756, 5411, 22596, 12, 2704, 19953, 12, 2211, 16, 8050, 18, 4043, 16, 1910, 2261, 18, 2123, 8805, 67, 8468, 1360, 972, 8468, 1360, 67, 15736, 16, 7734, 1592, 21014, 2802, 16, 12116, 2802, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 21014, 2802, 12, 780, 394, 21014, 2802, 13, 565, 288, 3639, 514, 1592, 21014, 2802, 273, 12116, 2802, 31, 3639, 12116, 2802, 273, 394, 21014, 2802, 31, 3639, 309, 261, 73, 21107, 10756, 5411, 22596, 12, 2704, 19953, 12, 2211, 16, 8050, 18, 4043, 16, 1910, 2261, 18, 2123, 8805, 67, 8468, 1360, 972, 8468, 1360, 67, 15736, 16, 7734, 1592, 21014, 2802, 16, 12116, 2802, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (fDTDEventHandler != null) { fDTDEventHandler.doctypeDecl(rootElement, publicId, systemId); }
public void doctypeDecl(QName rootElement, int publicId, int systemId) throws Exception { // create doctype decl Element doctypeDecl = fGrammarDocument.createElement("doctypeDecl"); doctypeDecl.setAttribute("name", fStringPool.toString(rootElement.rawname)); if (rootElement.uri != -1) { doctypeDecl.setAttribute("xmlns:"+fStringPool.toString(rootElement.prefix), fStringPool.toString(rootElement.uri)); } doctypeDecl.setAttribute("publicId", fStringPool.toString(publicId)); doctypeDecl.setAttribute("systemId", fStringPool.toString(systemId)); fCurrentElement.appendChild(doctypeDecl); fRootElementQName.setValues(rootElement); // pass-through if (fDTDEventHandler != null) { fDTDEventHandler.doctypeDecl(rootElement, publicId, systemId); } } // doctypeDecl(QName,int,int);
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/3bbd83a7bcddbc34357f71fe08eace8d74b9bc8f/DTDGrammar.java/buggy/src/org/apache/xerces/validators/dtd/DTDGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24909, 3456, 12, 13688, 27575, 16, 509, 1071, 548, 16, 509, 30083, 13, 540, 1216, 1185, 288, 3639, 368, 752, 24909, 3496, 3639, 3010, 24909, 3456, 273, 284, 18576, 2519, 18, 2640, 1046, 2932, 2896, 12387, 3456, 8863, 3639, 24909, 3456, 18, 542, 1499, 2932, 529, 3113, 284, 780, 2864, 18, 10492, 12, 3085, 1046, 18, 1899, 529, 10019, 3639, 309, 261, 3085, 1046, 18, 1650, 480, 300, 21, 13, 288, 5411, 24909, 3456, 18, 542, 1499, 2932, 16741, 2773, 15, 74, 780, 2864, 18, 10492, 12, 3085, 1046, 18, 3239, 3631, 19694, 284, 780, 2864, 18, 10492, 12, 3085, 1046, 18, 1650, 10019, 3639, 289, 3639, 24909, 3456, 18, 542, 1499, 2932, 482, 548, 3113, 284, 780, 2864, 18, 10492, 12, 482, 548, 10019, 3639, 24909, 3456, 18, 542, 1499, 2932, 4299, 548, 3113, 284, 780, 2864, 18, 10492, 12, 4299, 548, 10019, 3639, 284, 3935, 1046, 18, 6923, 1763, 12, 2896, 12387, 3456, 1769, 3639, 284, 2375, 1046, 13688, 18, 542, 1972, 12, 3085, 1046, 1769, 3639, 368, 1342, 17, 10064, 3639, 309, 261, 74, 25728, 16402, 480, 446, 13, 288, 5411, 284, 25728, 16402, 18, 2896, 12387, 3456, 12, 3085, 1046, 16, 1071, 548, 16, 30083, 1769, 3639, 289, 565, 289, 368, 24909, 3456, 12, 13688, 16, 474, 16, 474, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24909, 3456, 12, 13688, 27575, 16, 509, 1071, 548, 16, 509, 30083, 13, 540, 1216, 1185, 288, 3639, 368, 752, 24909, 3496, 3639, 3010, 24909, 3456, 273, 284, 18576, 2519, 18, 2640, 1046, 2932, 2896, 12387, 3456, 8863, 3639, 24909, 3456, 18, 542, 1499, 2932, 529, 3113, 284, 780, 2864, 18, 10492, 12, 3085, 1046, 18, 1899, 529, 10019, 3639, 309, 261, 3085, 1046, 18, 1650, 480, 300, 21, 13, 288, 5411, 24909, 3456, 18, 542, 1499, 2932, 16741, 2773, 15, 74, 780, 2864, 18, 10492, 12, 3085, 1046, 18, 3239, 3631, 19694, 284, 780, 2864, 18, 10492, 12, 3085, 1046, 18, 1650, 10019, 3639, 289, 3639, 24909, 3456, 18, 542, 1499, 2932, 482, 548, 3113, 2 ]
buf.append("(The node will try to fetch a revocation key before updating)");
buf.append("(The node will try to fetch a revocation key before updating)<br>");
public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException { if(data.size() > 1024*1024) { this.writeReply(ctx, 400, "text/plain", "Too big", "Data exceeds 1MB limit"); return; } HTTPRequest request = new HTTPRequest(uri,data,ctx); if(request==null) return; StringBuffer buf = new StringBuffer(); if (request.getParam("shutdownconfirm").length() > 0) { // false for no navigation bars, because that would be very silly ctx.getPageMaker().makeHead(buf, "Node Shutdown", false); buf.append("<div class=\"infobox infobox-information\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("The Freenet node has been successfully shut down\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Thank you for using Freenet\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); this.node.exit(); return; }else if(request.getParam("restartconfirm").length() > 0){ // false for no navigation bars, because that would be very silly ctx.getPageMaker().makeHead(buf, "Node Restart", false); buf.append("<div class=\"infobox infobox-information\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("The Freenet node is beeing restarted\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("The restart process might take up to 3 minutes. <br>"); buf.append("Thank you for using Freenet\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); Logger.normal(this, "Node is restarting"); node.getNodeStarter().restart(); return; }else if(request.getParam("updateconfirm").length() > 0){ // false for no navigation bars, because that would be very silly ctx.getPageMaker().makeHead(buf, "Node Updating", true); buf.append("<div class=\"infobox infobox-information\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("The Freenet node is beeing updated and will self-restart\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("The restart process might take up to 10 minutes. <br>"); buf.append("(The node will try to fetch a revocation key before updating)"); buf.append("Thank you for using Freenet\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); Logger.normal(this, "Node is updating/restarting"); // FIXME run on separate thread node.getNodeUpdater().Update(); return; }else if (request.getParam("restart").length() > 0) { ctx.getPageMaker().makeHead(buf, "Node Restart"); buf.append("<div class=\"infobox infobox-query\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Node Restart?\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Are you sure you wish to restart your Freenet node?\n"); buf.append("<form action=\"/\" method=\"post\">\n"); buf.append("<input type=\"submit\" name=\"cancel\" value=\"Cancel\" />\n"); buf.append("<input type=\"submit\" name=\"restartconfirm\" value=\"Restart\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); return; }else if (request.getParam("update").length() > 0) { ctx.getPageMaker().makeHead(buf, "Node Update"); buf.append("<div class=\"infobox infobox-query\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Update the node?\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Are you sure you wish to update your Freenet node?\n"); buf.append("<form action=\"/\" method=\"post\">\n"); buf.append("<input type=\"submit\" name=\"cancel\" value=\"Cancel\" />\n"); buf.append("<input type=\"submit\" name=\"updateconfirm\" value=\"Update\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); return; } else if (request.getParam("exit").equalsIgnoreCase("true")) { ctx.getPageMaker().makeHead(buf, "Node Shutdown"); buf.append("<div class=\"infobox infobox-query\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Node Shutdown?\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Are you sure you wish to shut down your Freenet node?\n"); buf.append("<form action=\"/\" method=\"post\">\n"); buf.append("<input type=\"submit\" name=\"cancel\" value=\"Cancel\" />\n"); buf.append("<input type=\"submit\" name=\"shutdownconfirm\" value=\"Shut down\" />\n"); buf.append("</form>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); return; } else if (request.isParameterSet("addbookmark")) { try { bookmarks.addBookmark(new Bookmark(request.getParam("key"), request.getParam("name"))); } catch (MalformedURLException mue) { this.sendBookmarkEditPage(ctx, MODE_ADD, null, request.getParam("key"), request.getParam("name"), "Given key does not appear to be a valid Freenet key."); return; } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { } } else if (request.isParameterSet("managebookmarks")) { Enumeration e = bookmarks.getBookmarks(); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); if (request.isParameterSet("delete_"+b.hashCode())) { bookmarks.removeBookmark(b); } else if (request.isParameterSet("edit_"+b.hashCode())) { this.sendBookmarkEditPage(ctx, b); return; } else if (request.isParameterSet("update_"+b.hashCode())) { // removing it and adding means that any USK subscriptions are updated properly try { Bookmark newbkmk = new Bookmark(request.getParam("key"), request.getParam("name")); bookmarks.removeBookmark(b); bookmarks.addBookmark(newbkmk); } catch (MalformedURLException mue) { this.sendBookmarkEditPage(ctx, MODE_EDIT, b, request.getParam("key"), request.getParam("name"), "Given key does not appear to be a valid freenet key."); return; } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { return; } } } try { this.handleGet(new URI("/welcome/?managebookmarks"), ctx); } catch (URISyntaxException ex) { return; } }else if(request.isParameterSet("disable")){ UserAlert[] alerts=node.alerts.getAlerts(); for(int i=0;i<alerts.length;i++){ if(request.getIntParam("disable")==alerts[i].hashCode()){ UserAlert alert = alerts[i]; // Won't be dismissed if it's not allowed anyway if(alert.userCanDismiss() && alert.shouldUnregisterOnDismiss()) { Logger.normal(this,"Unregistering the userAlert "+alert.hashCode()); node.alerts.unregister(alert); } else { Logger.normal(this,"Disabling the userAlert "+alert.hashCode()); alert.isValid(false); } writePermanentRedirect(ctx, "Configuration applied", "/"); } } }else if(request.isPartSet("key")&&request.isPartSet("filename")){ FreenetURI key = new FreenetURI(request.getPartAsString("key",128)); String type = request.getPartAsString("content-type",128); if(type==null) type = "text/plain"; ClientMetadata contentType = new ClientMetadata(type); Bucket bucket = request.getPart("filename"); InsertBlock block = new InsertBlock(bucket, contentType, key); try { ctx.getPageMaker().makeHead(buf, "Insertion"); key = this.insert(block, false); buf.append("<div class=\"infobox infobox-success\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Insert Succeeded\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("The key : <a href=\"/" + key.getKeyType() + "@" + key.getGuessableKey() + "\">" + key.getKeyType() + "@" + key.getGuessableKey() +"</a> has been inserted successfully.<br>"); } catch (InserterException e) { buf.append("<div class=\"infobox infobox-error\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Insert Failed\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Error: "+e.getMessage()+"<br>"); if(e.uri != null) buf.append("URI would have been: "+e.uri+"<br>"); int mode = e.getMode(); if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) { buf.append("Splitfile-specific error:\n"+e.errorCodes.toVerboseString()+"<br>"); } } ctx.getPageMaker().makeBackLink(buf,ctx); buf.append("<br><a href=\"/\" title=\"Node Homepage\">Homepage</a>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); request.freeParts(); bucket.free(); }else { this.handleGet(uri, ctx); } }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/e20fb8245fb08b1f301fad614d29bf93c7e0a791/WelcomeToadlet.java/buggy/src/freenet/clients/http/WelcomeToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 9506, 202, 430, 12, 892, 18, 1467, 1435, 405, 6250, 14, 2163, 3247, 13, 288, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 7409, 16, 315, 955, 19, 7446, 3113, 315, 10703, 5446, 3113, 315, 751, 14399, 404, 7969, 1800, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 16, 892, 16, 5900, 1769, 202, 202, 430, 12, 2293, 631, 2011, 13, 327, 31, 9506, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 9506, 202, 430, 261, 2293, 18, 588, 786, 2932, 15132, 10927, 20387, 2469, 1435, 405, 374, 13, 288, 1082, 202, 759, 629, 364, 1158, 10394, 22252, 16, 2724, 716, 4102, 506, 8572, 17714, 715, 1082, 202, 5900, 18, 588, 1964, 12373, 7675, 6540, 1414, 12, 4385, 16, 315, 907, 17640, 3113, 629, 1769, 1082, 202, 4385, 18, 6923, 2932, 32, 2892, 667, 5189, 1376, 2147, 1123, 2147, 17, 13117, 28219, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 32, 2892, 667, 5189, 1376, 2147, 17, 3374, 28219, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 1986, 478, 2842, 278, 756, 711, 2118, 4985, 9171, 2588, 64, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 1757, 2892, 5333, 82, 8863, 1082, 202, 4385, 18, 6923, 2932, 32, 2892, 667, 5189, 1376, 2147, 17, 1745, 28219, 82, 8863, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 9506, 202, 430, 12, 892, 18, 1467, 1435, 405, 6250, 14, 2163, 3247, 13, 288, 1082, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 7409, 16, 315, 955, 19, 7446, 3113, 315, 10703, 5446, 3113, 315, 751, 14399, 404, 7969, 1800, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 23891, 590, 273, 394, 25238, 12, 1650, 16, 892, 16, 5900, 1769, 202, 202, 430, 12, 2293, 631, 2011, 13, 327, 31, 9506, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 9506, 202, 430, 261, 2293, 18, 588, 786, 2 ]
fontMetrics.stringWidth(label)) / 2), rectBound.y + halfFontHeight +
stringWidth(label, g2)) / 2), rectBound.y + halfFontHeight +
private void paintLabel(Graphics2D g2) { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF); shrinkFont(g2); switch (getLabelSide()) { case 0: g2.drawString(label, rectBound.x + ((rectBound.width - fontMetrics.stringWidth(label)) / 2), rectBound.y + halfFontHeight + rectBound.height / 10); break; case 1: g2.drawString(label, rectBound.x + (rectBound.width - fontMetrics.stringWidth(label)) * 5 / 6, rectBound.y + halfFontHeight + rectBound.height / 8); break; case 2: g2.drawString(label, rectBound.x + (rectBound.width - fontMetrics.stringWidth(label)) * 5 / 6, rectBound.y + halfFontHeight + rectBound.height * 7 / 8); break; case 3: g2.drawString(label, rectBound.x + ((rectBound.width - fontMetrics.stringWidth(label)) / 2), rectBound.y + halfFontHeight + rectBound.height * 9 / 10); break; case 4: g2.drawString(label, rectBound.x + (rectBound.width - fontMetrics.stringWidth(label)) / 6, rectBound.y + halfFontHeight + rectBound.height * 5 / 6); break; case 5: g2.drawString(label, rectBound.x + (rectBound.width - fontMetrics.stringWidth(label)) / 6, rectBound.y + halfFontHeight + rectBound.height / 8); break; } restoreFont(g2); }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/0bed1e2933edf0a6e563ea76611d5fd5d57c72f3/GUIMasterHex.java/buggy/Colossus/net/sf/colossus/client/GUIMasterHex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 12574, 2224, 12, 17558, 22, 40, 314, 22, 13, 377, 288, 3639, 314, 22, 18, 542, 14261, 7002, 12, 14261, 13368, 18, 3297, 67, 6856, 31119, 1360, 16, 5411, 22391, 18, 4051, 67, 6856, 31119, 67, 8797, 1769, 3639, 17697, 5711, 12, 75, 22, 1769, 7734, 1620, 261, 588, 2224, 8895, 10756, 3639, 288, 3639, 648, 374, 30, 5411, 314, 22, 18, 9446, 780, 12, 1925, 16, 4917, 3499, 18, 92, 397, 7734, 14015, 2607, 3499, 18, 2819, 300, 3512, 5653, 18, 1080, 2384, 12, 1925, 3719, 342, 576, 3631, 7734, 4917, 3499, 18, 93, 397, 8816, 5711, 2686, 397, 4917, 3499, 18, 4210, 342, 1728, 1769, 5411, 898, 31, 3639, 648, 404, 30, 5411, 314, 22, 18, 9446, 780, 12, 1925, 16, 4917, 3499, 18, 92, 397, 261, 2607, 3499, 18, 2819, 300, 7734, 3512, 5653, 18, 1080, 2384, 12, 1925, 3719, 380, 1381, 342, 1666, 16, 7734, 4917, 3499, 18, 93, 397, 8816, 5711, 2686, 397, 4917, 3499, 18, 4210, 342, 1725, 1769, 5411, 898, 31, 3639, 648, 576, 30, 5411, 314, 22, 18, 9446, 780, 12, 1925, 16, 4917, 3499, 18, 92, 397, 261, 2607, 3499, 18, 2819, 300, 7734, 3512, 5653, 18, 1080, 2384, 12, 1925, 3719, 380, 1381, 342, 1666, 16, 7734, 4917, 3499, 18, 93, 397, 8816, 5711, 2686, 397, 7734, 4917, 3499, 18, 4210, 380, 2371, 342, 1725, 1769, 5411, 898, 31, 3639, 648, 890, 30, 5411, 314, 22, 18, 9446, 780, 12, 1925, 16, 4917, 3499, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 2224, 12, 17558, 22, 40, 314, 22, 13, 377, 288, 3639, 314, 22, 18, 542, 14261, 7002, 12, 14261, 13368, 18, 3297, 67, 6856, 31119, 1360, 16, 5411, 22391, 18, 4051, 67, 6856, 31119, 67, 8797, 1769, 3639, 17697, 5711, 12, 75, 22, 1769, 7734, 1620, 261, 588, 2224, 8895, 10756, 3639, 288, 3639, 648, 374, 30, 5411, 314, 22, 18, 9446, 780, 12, 1925, 16, 4917, 3499, 18, 92, 397, 7734, 14015, 2607, 3499, 18, 2819, 300, 3512, 5653, 18, 1080, 2384, 12, 1925, 3719, 342, 576, 3631, 7734, 4917, 3499, 18, 93, 397, 8816, 5711, 2686, 397, 4917, 3499, 18, 4210, 342, 1728, 1769, 5411, 898, 31, 3639, 648, 404, 30, 5411, 314, 2 ]
private static synchronized void createSheet(final Component glassPane, final String message) {
private synchronized void createSheet() {
private static synchronized void createSheet(final Component glassPane, final String message) { // Create the content. progressBar.setIndeterminate(true); JComponent content = new JPanel(new BorderLayout(20, 20)); content.add(makeCenteredPanel(progressBar), BorderLayout.CENTER); content.add(makeCenteredPanel(new JLabel(message)), BorderLayout.SOUTH); content.setBorder(progressBar.getBorder()); // Create the sheet itself. sheet = new JDialog(frameOf(glassPane)); sheet.setContentPane(content); sheet.setSize(new Dimension(400, 120)); sheet.setUndecorated(true); sheet.getOwner().addComponentListener(SHEET_PARENT_LISTENER); repositionSheet(); }
10883 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10883/591e100c2ecd9f1131905f241797f1fe73b9b46d/WaitCursor.java/buggy/trunk/src/e/scm/WaitCursor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 752, 8229, 1435, 288, 3639, 368, 1788, 326, 913, 18, 3639, 29101, 18, 542, 3866, 4443, 340, 12, 3767, 1769, 3639, 29058, 913, 273, 394, 24048, 12, 2704, 30814, 12, 3462, 16, 4200, 10019, 3639, 913, 18, 1289, 12, 6540, 8449, 329, 5537, 12, 8298, 5190, 3631, 30814, 18, 19835, 1769, 3639, 913, 18, 1289, 12, 6540, 8449, 329, 5537, 12, 2704, 21403, 12, 2150, 13, 3631, 30814, 18, 3584, 5844, 1769, 3639, 913, 18, 542, 8107, 12, 8298, 5190, 18, 588, 8107, 10663, 7734, 368, 1788, 326, 6202, 6174, 18, 3639, 6202, 273, 394, 804, 6353, 12, 3789, 951, 12, 75, 459, 8485, 10019, 3639, 6202, 18, 542, 1350, 8485, 12, 1745, 1769, 3639, 6202, 18, 542, 1225, 12, 2704, 13037, 12, 16010, 16, 15743, 10019, 3639, 6202, 18, 542, 984, 11880, 690, 12, 3767, 1769, 7734, 6202, 18, 588, 5541, 7675, 1289, 1841, 2223, 12, 2664, 41, 1584, 67, 14943, 67, 26421, 1769, 3639, 283, 3276, 8229, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3852, 918, 752, 8229, 1435, 288, 3639, 368, 1788, 326, 913, 18, 3639, 29101, 18, 542, 3866, 4443, 340, 12, 3767, 1769, 3639, 29058, 913, 273, 394, 24048, 12, 2704, 30814, 12, 3462, 16, 4200, 10019, 3639, 913, 18, 1289, 12, 6540, 8449, 329, 5537, 12, 8298, 5190, 3631, 30814, 18, 19835, 1769, 3639, 913, 18, 1289, 12, 6540, 8449, 329, 5537, 12, 2704, 21403, 12, 2150, 13, 3631, 30814, 18, 3584, 5844, 1769, 3639, 913, 18, 542, 8107, 12, 8298, 5190, 18, 588, 8107, 10663, 7734, 368, 1788, 326, 6202, 6174, 18, 3639, 6202, 273, 394, 804, 6353, 12, 3789, 951, 12, 75, 459, 8485, 10019, 3639, 6202, 18, 542, 1350, 8485, 12, 1745, 1769, 3639, 2 ]