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 |
|---|---|---|---|---|---|---|
public String getDescription(); | String getDescription(); | public String getDescription(); | 15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/Calendar.java/clean/src/java/org/quartz/Calendar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11056,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11056,
5621,
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,
... |
public java.lang.String getShortNetworkName() { return new String(shortNetworkName(nativeData)); | public String getShortNetworkName() { return shortNetworkName(nativeData); | public java.lang.String getShortNetworkName() { return new String(shortNetworkName(nativeData));} | 13401 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13401/b1f2dddc68b4ce0181ca8ca1d2e261d450787564/SINetworkImpl.java/clean/trunk/mhp/java/org/dvb/si/SINetworkImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2252,
18,
4936,
18,
780,
13157,
3906,
461,
1435,
288,
282,
327,
394,
514,
12,
6620,
3906,
461,
12,
13635,
751,
10019,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2252,
18,
4936,
18,
780,
13157,
3906,
461,
1435,
288,
282,
327,
394,
514,
12,
6620,
3906,
461,
12,
13635,
751,
10019,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
int [] result = new int[101]; | int [] result = new int[100]; | private static int [] zzUnpackRowMap() { int [] result = new int[101]; int offset = 0; offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result); return result; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2c49ea79bb140b31bab3192831e0bd8a292164bc/_HtmlLexer.java/clean/source/com/intellij/lexer/_HtmlLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
5378,
11273,
23649,
1999,
863,
1435,
288,
565,
509,
5378,
563,
273,
394,
509,
63,
6625,
15533,
565,
509,
1384,
273,
374,
31,
565,
1384,
273,
11273,
23649,
1999,
863,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
5378,
11273,
23649,
1999,
863,
1435,
288,
565,
509,
5378,
563,
273,
394,
509,
63,
6625,
15533,
565,
509,
1384,
273,
374,
31,
565,
1384,
273,
11273,
23649,
1999,
863,
12,
... |
expectNotCalledCalls.inc(); return this; } | expectNotCalledCalls.inc(); return this; } | public IdentityBuilder expectNotCalled() { expectNotCalledCalls.inc(); return this; } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/MockMatchBuilder.java/buggy/jmock/core/src/test/jmock/builder/testsupport/MockMatchBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7808,
1263,
4489,
1248,
8185,
1435,
288,
3639,
4489,
1248,
8185,
10125,
18,
9523,
5621,
3639,
327,
333,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7808,
1263,
4489,
1248,
8185,
1435,
288,
3639,
4489,
1248,
8185,
10125,
18,
9523,
5621,
3639,
327,
333,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
result = ((Scriptable)result).get(s, (Scriptable)result); | result = ScriptableObject.getProperty((Scriptable)result, s); | static Object lookupQualifiedName(Scriptable scope, String qualifiedName) { StringTokenizer st = new StringTokenizer(qualifiedName, "."); Object result = scope; while (st.hasMoreTokens()) { String s = st.nextToken(); result = ((Scriptable)result).get(s, (Scriptable)result); if (result == null || !(result instanceof Scriptable)) break; } return result; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/9d46a01a210077c2408c9798ffb0d64fe8f898df/ScriptableOutputStream.java/buggy/js/rhino/src/org/mozilla/javascript/serialize/ScriptableOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
3689,
12345,
12,
3651,
429,
2146,
16,
4766,
1377,
514,
24133,
13,
565,
288,
3639,
16370,
384,
273,
394,
16370,
12,
19724,
461,
16,
4585,
1769,
3639,
1033,
563,
273,
2146,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
3689,
12345,
12,
3651,
429,
2146,
16,
4766,
1377,
514,
24133,
13,
565,
288,
3639,
16370,
384,
273,
394,
16370,
12,
19724,
461,
16,
4585,
1769,
3639,
1033,
563,
273,
2146,
31,
... |
if (o == null) return ""; if (o instanceof MExtensionPoint) return generateExtensionPoint((MExtensionPoint) o); if (o instanceof MOperation) return generateOperation((MOperation) o, false); if (o instanceof MAttribute) return generateAttribute((MAttribute) o, false); if (o instanceof MParameter) return generateParameter((MParameter) o); if (o instanceof MPackage) return generatePackage((MPackage) o); if (o instanceof MClassifier) return generateClassifier((MClassifier) o); if (o instanceof MExpression) return generateExpression((MExpression) o); if (o instanceof String) return generateName((String) o); if (o instanceof String) return generateUninterpreted((String) o); if (o instanceof MStereotype) return generateStereotype((MStereotype) o); if (o instanceof MTaggedValue) { /* * 2002-11-07 * Jaap Branderhorst * Added the if statement to test for the testtag. Did it here and not in (for example) GeneratorJava * to have a single point of definition instead of all the generators. * If in the generation of an owner of a taggedvalue, the taggedvalue must be generated the method generating * the owner should call generate(sometag) and not generateTaggedValue(sometag) */ if (_testModus && ((MTaggedValue)o).getTag().equals(getNotation().getName() + TEST_SUFFIX)) { return ""; } return generateTaggedValue((MTaggedValue) o); | if (o == null) return ""; if (o instanceof MExtensionPoint) return generateExtensionPoint((MExtensionPoint)o); if (o instanceof MOperation) return generateOperation((MOperation)o, false); if (o instanceof MAttribute) return generateAttribute((MAttribute)o, false); if (o instanceof MParameter) return generateParameter((MParameter)o); if (o instanceof MPackage) return generatePackage((MPackage)o); if (o instanceof MClassifier) return generateClassifier((MClassifier)o); if (o instanceof MExpression) return generateExpression((MExpression)o); if (o instanceof String) return generateName((String)o); if (o instanceof String) return generateUninterpreted((String)o); if (o instanceof MStereotype) return generateStereotype((MStereotype)o); if (o instanceof MTaggedValue) { /* * 2002-11-07 * Jaap Branderhorst * Added the if statement to test for the testtag. Did it here and not in (for example) GeneratorJava * to have a single point of definition instead of all the generators. * If in the generation of an owner of a taggedvalue, the taggedvalue must be generated the method generating * the owner should call generate(sometag) and not generateTaggedValue(sometag) */ if (_testModus && ((MTaggedValue)o).getTag().equals( getNotation().getName() + TEST_SUFFIX)) { return ""; } return generateTaggedValue((MTaggedValue)o); } if (o instanceof MAssociation) return generateAssociation((MAssociation)o); if (o instanceof MAssociationEnd) return generateAssociationEnd((MAssociationEnd)o); if (o instanceof MMultiplicity) return generateMultiplicity((MMultiplicity)o); if (o instanceof MState) return generateState((MState)o); if (o instanceof MTransition) return generateTransition((MTransition)o); if (o instanceof MAction) return generateAction((MAction)o); if (o instanceof MCallAction) return generateAction((MAction)o); if (o instanceof MGuard) return generateGuard((MGuard)o); if (o instanceof MMessage) return generateMessage((MMessage)o); if (o instanceof MModelElement) return generateName(((MModelElement)o).getName()); if (o == null) return ""; return o.toString(); | public String generate(Object o) { if (o == null) return ""; if (o instanceof MExtensionPoint) return generateExtensionPoint((MExtensionPoint) o); if (o instanceof MOperation) return generateOperation((MOperation) o, false); if (o instanceof MAttribute) return generateAttribute((MAttribute) o, false); if (o instanceof MParameter) return generateParameter((MParameter) o); if (o instanceof MPackage) return generatePackage((MPackage) o); if (o instanceof MClassifier) return generateClassifier((MClassifier) o); if (o instanceof MExpression) return generateExpression((MExpression) o); if (o instanceof String) return generateName((String) o); if (o instanceof String) return generateUninterpreted((String) o); if (o instanceof MStereotype) return generateStereotype((MStereotype) o); if (o instanceof MTaggedValue) { /* * 2002-11-07 * Jaap Branderhorst * Added the if statement to test for the testtag. Did it here and not in (for example) GeneratorJava * to have a single point of definition instead of all the generators. * If in the generation of an owner of a taggedvalue, the taggedvalue must be generated the method generating * the owner should call generate(sometag) and not generateTaggedValue(sometag) */ if (_testModus && ((MTaggedValue)o).getTag().equals(getNotation().getName() + TEST_SUFFIX)) { return ""; } return generateTaggedValue((MTaggedValue) o); } if (o instanceof MAssociation) return generateAssociation((MAssociation)o); if (o instanceof MAssociationEnd) return generateAssociationEnd((MAssociationEnd)o); if (o instanceof MMultiplicity) return generateMultiplicity((MMultiplicity)o); if (o instanceof MState) return generateState((MState)o); if (o instanceof MTransition) return generateTransition((MTransition)o); if (o instanceof MAction) return generateAction((MAction)o); if (o instanceof MCallAction) return generateAction((MAction)o); if (o instanceof MGuard) return generateGuard((MGuard)o); if (o instanceof MMessage) return generateMessage((MMessage)o); if (o instanceof MModelElement) return generateName(((MModelElement)o).getName()); if (o == null) return ""; return o.toString(); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/d4a67e2916bc906adf8073da1df945dfb0df7d96/Generator.java/buggy/src_new/org/argouml/uml/generator/Generator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
320,
13,
288,
565,
309,
261,
83,
422,
446,
13,
1377,
327,
1408,
31,
565,
309,
261,
83,
1276,
490,
3625,
2148,
13,
3639,
327,
2103,
3625,
2148,
12443,
49,
362... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
320,
13,
288,
565,
309,
261,
83,
422,
446,
13,
1377,
327,
1408,
31,
565,
309,
261,
83,
1276,
490,
3625,
2148,
13,
3639,
327,
2103,
3625,
2148,
12443,
49,
362... |
} | } | public void setParent(View a) { parent = a; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/a916d1b4fc01240ad8a7af23152411a4c868c1ce/View.java/clean/javax/swing/text/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12548,
12,
1767,
279,
13,
565,
288,
565,
982,
273,
279,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12548,
12,
1767,
279,
13,
565,
288,
565,
982,
273,
279,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
dumpElement(Long.toHexString(uid) + "; FLAGS="); | if(dump) dumpElement(Long.toHexString(uid) + "; FLAGS="); | protected ObjectStreamClass readClassDescriptor() throws ClassNotFoundException, IOException { dumpElement("CLASSDESC NAME="); String name = this.realInputStream.readUTF(); dumpElement(name + "; UID="); long uid = this.realInputStream.readLong (); dumpElement(Long.toHexString(uid) + "; FLAGS="); byte flags = this.realInputStream.readByte (); dumpElement(Integer.toHexString(flags) + "; FIELD COUNT="); short field_count = this.realInputStream.readShort(); dumpElementln(Short.toString(field_count)); ObjectStreamField[] fields = new ObjectStreamField[field_count]; ObjectStreamClass osc = new ObjectStreamClass(name, uid, flags, fields); assignNewHandle(osc); for (int i = 0; i < field_count; i++) { dumpElement(" TYPE CODE="); char type_code = (char)this.realInputStream.readByte(); dumpElement(type_code + "; FIELD NAME="); String field_name = this.realInputStream.readUTF(); dumpElementln(field_name); String class_name; // If the type code is an array or an object we must // decode a String here. In the other case we convert // the type code and pass it to ObjectStreamField. // Type codes are decoded by gnu.java.lang.reflect.TypeSignature. if (type_code == 'L' || type_code == '[') class_name = (String)readObject(); else class_name = String.valueOf(type_code); fields[i] = new ObjectStreamField(field_name, class_name, currentLoader()); } /* Now that fields have been read we may resolve the class * (and read annotation if needed). */ Class clazz = resolveClass(osc); for (int i = 0; i < field_count; i++) { Field f; try { f = clazz.getDeclaredField(fields[i].getName()); if (f != null && !f.getType().equals(fields[i].getType())) throw new InvalidClassException ("invalid field type for " + fields[i].getName() + " in class " + name + " (requested was \"" + fields[i].getType() + " and found \"" + f.getType() + "\")"); } catch (NoSuchFieldException _) { } } boolean oldmode = setBlockDataMode(true); osc.setClass(clazz, lookupClass(clazz.getSuperclass())); classLookupTable.put(clazz, osc); setBlockDataMode(oldmode); return osc; } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/287ecb3eab399e579158e4cbd037261f67ffbc1b/ObjectInputStream.java/clean/libjava/java/io/ObjectInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1033,
1228,
797,
855,
797,
3187,
1435,
565,
1216,
10403,
16,
1860,
225,
288,
565,
4657,
1046,
2932,
5237,
10964,
6048,
1546,
1769,
565,
514,
508,
273,
333,
18,
7688,
4348,
18,
896,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
1228,
797,
855,
797,
3187,
1435,
565,
1216,
10403,
16,
1860,
225,
288,
565,
4657,
1046,
2932,
5237,
10964,
6048,
1546,
1769,
565,
514,
508,
273,
333,
18,
7688,
4348,
18,
896,
... |
{ return null; } | { return null; } | public Adapter createLabelBlockAdapter() { return null; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/bdab78403751f288b76844a99f50b999c34fb491/LayoutAdapterFactory.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/util/LayoutAdapterFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14238,
752,
2224,
1768,
4216,
1435,
565,
288,
3639,
327,
446,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14238,
752,
2224,
1768,
4216,
1435,
565,
288,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return myText; | return myText.replaceAll(TREE_PATH_SEPARATOR, " "); | protected String getNodeIdentifier() { return myText; } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/525d5aff11c1fa23fc09f0446b3b17cdea7d2fac/MPSTree.java/clean/source/jetbrains/mps/ide/ui/MPSTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
5973,
3004,
1435,
288,
1377,
327,
3399,
1528,
18,
2079,
1595,
12,
26557,
67,
4211,
67,
4550,
16,
315,
315,
1769,
565,
289,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
5973,
3004,
1435,
288,
1377,
327,
3399,
1528,
18,
2079,
1595,
12,
26557,
67,
4211,
67,
4550,
16,
315,
315,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
hits = Compute.missilesHit( hits ); | if (!glancing) { hits = Compute.missilesHit( hits ); } else { hits = Compute.missilesHit(hits, glancingMissileMod, glancing); } | private void resolveWeaponAttack(WeaponResult wr, int lastEntityId) { // System.out.println("rwa"); final Entity ae = game.getEntity(wr.waa.getEntityId()); final Targetable target = game.getTarget(wr.waa.getTargetType(), wr.waa.getTargetId()); Entity entityTarget = null; if (target.getTargetType() == Targetable.TYPE_ENTITY) { entityTarget = (Entity) target; } final Mounted weapon = ae.getEquipment(wr.waa.getWeaponId()); final WeaponType wtype = (WeaponType) weapon.getType(); final boolean isWeaponInfantry = wtype.hasFlag(WeaponType.F_INFANTRY); // 2002-09-16 Infantry weapons have unlimited ammo. final boolean usesAmmo = wtype.getAmmoType() != AmmoType.T_NA && wtype.getAmmoType() != AmmoType.T_BA_MG && wtype.getAmmoType() != AmmoType.T_BA_SMALL_LASER && !isWeaponInfantry; final Mounted ammo = usesAmmo ? weapon.getLinked() : null; final AmmoType atype = ammo == null ? null : (AmmoType) ammo.getType(); Infantry platoon = null; final boolean isBattleArmorAttack = wtype.hasFlag(WeaponType.F_BATTLEARMOR); ToHitData toHit = wr.toHit; boolean bInferno = (usesAmmo && atype.getMunitionType() == AmmoType.M_INFERNO); boolean bFragmentation = (usesAmmo && atype.getMunitionType() == AmmoType.M_FRAGMENTATION); boolean bFlechette = (usesAmmo && atype.getMunitionType() == AmmoType.M_FLECHETTE); boolean bArtillery = target.getTargetType() == Targetable.TYPE_HEX_ARTILLERY; if (!bInferno) { // also check for inferno infantry bInferno = (isWeaponInfantry && wtype.hasFlag(WeaponType.F_INFERNO)); } final boolean targetInBuilding = Compute.isInBuilding(game, entityTarget); if(bArtillery && game.getPhase()==Game.PHASE_FIRING) { //if direct artillery wr.artyAttackerCoords=ae.getPosition(); } // Which building takes the damage? Building bldg = game.board.getBuildingAt(target.getPosition()); if (lastEntityId != ae.getId()) { phaseReport.append("\nWeapons fire for ").append(ae.getDisplayName()). append("\n"); } // Swarming infantry can stop during any weapons phase after start. if (Infantry.STOP_SWARM.equals(wtype.getInternalName())) { // ... but only as their *only* attack action. if (toHit.getValue() == ToHitData.IMPOSSIBLE) { phaseReport.append("Swarm attack can not be ended (" + toHit.getDesc()).append(")\n"); return; } else { phaseReport.append("Swarm attack ended.\n"); // Only apply the "stop swarm 'attack'" to the swarmed Mek. if (ae.getSwarmTargetId() != target.getTargetId()) { Entity other = game.getEntity(ae.getSwarmTargetId()); other.setSwarmAttackerId(Entity.NONE); } else { entityTarget.setSwarmAttackerId(Entity.NONE); } ae.setSwarmTargetId(Entity.NONE); return; } } // Report weapon attack and its to-hit value. phaseReport.append(" ").append(wtype.getName()).append(" at ").append( target.getDisplayName()); if (toHit.getValue() == ToHitData.IMPOSSIBLE) { phaseReport.append(", but the shot is impossible (").append(toHit.getDesc()). append(")\n"); return; } else if (toHit.getValue() == ToHitData.AUTOMATIC_FAIL) { phaseReport.append(", the shot is an automatic miss (").append(toHit. getDesc()).append("), "); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { phaseReport.append(", the shot is an automatic hit (").append(toHit. getDesc()).append("), "); } else { phaseReport.append("; needs ").append(toHit.getValue()).append(", "); } // if firing an HGR unbraced, schedule a PSR if (wtype.getAmmoType() == AmmoType.T_GAUSS_HEAVY && ae.mpUsed > 0) { // the mod is weight-based int nMod; if (ae.getWeight() <= Entity.WEIGHT_LIGHT) { nMod = 2; } else if (ae.getWeight() <= Entity.WEIGHT_MEDIUM) { nMod = 1; } else if (ae.getWeight() <= Entity.WEIGHT_HEAVY) { nMod = 0; } else { nMod = -1; } PilotingRollData psr = new PilotingRollData(ae.getId(), nMod, "fired HeavyGauss unbraced"); psr.setCumulative(false); game.addPSR(psr); } // dice have been rolled, thanks phaseReport.append("rolls ").append(wr.roll).append(" : "); // check for AC jams int nShots = weapon.howManyShots(); if (nShots > 1) { int jamCheck = 0; if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA && weapon.curMode().equals("Ultra")) { jamCheck = 2; } else if (wtype.getAmmoType() == AmmoType.T_AC_ROTARY) { if (nShots == 2) { jamCheck = 2; } else if (nShots == 4) { jamCheck = 3; } else if (nShots == 6) { jamCheck = 4; } } if (jamCheck > 0 && wr.roll <= jamCheck) { phaseReport.append("misses AND THE AUTOCANNON JAMS.\n"); weapon.setJammed(true); // ultras are destroyed by jamming if (wtype.getAmmoType() == AmmoType.T_AC_ULTRA) { weapon.setHit(true); } return; } } // Resolve roll for disengaged field inhibitors on PPCs, if needed if (game.getOptions().booleanOption("maxtech_ppc_inhibitors") && wtype.hasModes() && weapon.curMode().equals("Field Inhibitor OFF") ) { int rollTarget = 0; int dieRoll = Compute.d6(2); int distance = Compute.effectiveDistance(game, ae, target); if (distance>=3) { rollTarget = 3; } else if (distance == 2) { rollTarget = 6; } else if (distance == 1) { rollTarget = 10; } phaseReport.append("\n Fired PPC without field inhibitor, checking for damage:\n"); phaseReport.append(" Needs "); phaseReport.append(rollTarget); phaseReport.append(" to avoid damage, rolls "); phaseReport.append(dieRoll); phaseReport.append(": "); if (dieRoll<rollTarget) { // Oops, we ruined our day... int wlocation = weapon.getLocation(); int wid = ae.getEquipmentNum(weapon); int slot = 0; weapon.setDestroyed (true); for (int i=0; i<ae.getNumberOfCriticals(wlocation); i++) { CriticalSlot slot1 = ae.getCritical (wlocation, i); if (slot1 == null || slot1.getType() != CriticalSlot.TYPE_SYSTEM) { continue; } Mounted mounted = ae.getEquipment(slot1.getIndex()); if (mounted.equals(weapon)) { ae.hitAllCriticals(wlocation,i); } } // Bug 1066147 : damage is *not* like an ammo explosion, // but it *does* get applied directly to the IS. phaseReport.append( "fails." ) .append( damageEntity(ae, new HitData(wlocation), 10, false, 0, true) ) .append( "\n (continuing hit report):" ); } else { phaseReport.append("Succeeds.\n "); } } // do we hit? boolean bMissed = wr.roll < toHit.getValue(); // special case minefield delivery, no damage and scatters if misses. if (target.getTargetType() == Targetable.TYPE_MINEFIELD_DELIVER) { Coords coords = target.getPosition(); if (!bMissed) { phaseReport.append("hits the intended hex ") .append(coords.getBoardNum()) .append("\n"); } else { coords = Compute.scatter(coords); if (game.board.contains(coords)) { phaseReport.append("misses and scatters to hex ") .append(coords.getBoardNum()) .append("\n"); } else { phaseReport.append("misses and scatters off the board\n"); return; } } // Handle the thunder munitions. if (atype.getMunitionType() == AmmoType.M_THUNDER_AUGMENTED) { deliverThunderAugMinefield(coords, ae.getOwner().getId(), atype.getRackSize()); } else if (atype.getMunitionType() == AmmoType.M_THUNDER) { deliverThunderMinefield(coords, ae.getOwner().getId(), atype.getRackSize()); } else if (atype.getMunitionType() == AmmoType.M_THUNDER_INFERNO) deliverThunderInfernoMinefield(coords, ae.getOwner().getId(), atype.getRackSize()); else if (atype.getMunitionType() == AmmoType.M_THUNDER_VIBRABOMB) deliverThunderVibraMinefield(coords, ae.getOwner().getId(), atype.getRackSize(), wr.waa.getOtherAttackInfo()); else if (atype.getMunitionType() == AmmoType.M_THUNDER_ACTIVE) deliverThunderActiveMinefield(coords, ae.getOwner().getId(), atype.getRackSize()); //else //{ //...This is an error, but I'll just ignore it for now. //} return; } // FASCAM Artillery if (target.getTargetType() == Targetable.TYPE_HEX_FASCAM) { Coords coords = target.getPosition(); if (!bMissed) { phaseReport.append("hits the intended hex ") .append(coords.getBoardNum()) .append("\n"); } else { coords = Compute.scatter(coords); if (game.board.contains(coords)) { phaseReport.append("misses and scatters to hex ") .append(coords.getBoardNum()) .append("\n"); } else { phaseReport.append("misses and scatters off the board\n"); return; } } if (game.board.contains(coords)) { deliverFASCAMMinefield(coords, ae.getOwner().getId()); } return; } // Vibrabomb-IV Artillery if (target.getTargetType() == Targetable.TYPE_HEX_VIBRABOMB_IV) { Coords coords = target.getPosition(); if (!bMissed) { phaseReport.append("hits the intended hex ") .append(coords.getBoardNum()) .append("\n"); } else { coords = Compute.scatter(coords); if (game.board.contains(coords)) { phaseReport.append("misses and scatters to hex ") .append(coords.getBoardNum()) .append("\n"); } else { phaseReport.append("misses and scatters off the board\n"); } } if (game.board.contains(coords)) { deliverThunderVibraMinefield(coords, ae.getOwner().getId(), 20, wr.waa.getOtherAttackInfo()); } return; } // Inferno IV artillery if (target.getTargetType() == Targetable.TYPE_HEX_INFERNO_IV) { Coords coords = target.getPosition(); if (!bMissed) { phaseReport.append("hits the intended hex ") .append(coords.getBoardNum()) .append("\n"); } else { coords = Compute.scatter(coords); if (game.board.contains(coords)) { phaseReport.append("misses and scatters to hex ") .append(coords.getBoardNum()) .append("\n"); } else { phaseReport.append("misses and scatters off the board\n"); return; } } Hex h = game.getBoard().getHex(coords); //Unless there is a fire in the hex already, start one. if ( !h.contains( Terrain.FIRE ) ) { phaseReport.append( " Fire started in hex " ) .append( coords.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo( coords, InfernoTracker.INFERNO_IV_ROUND, 1 ); sendChangedHex(coords); for(Enumeration impactHexHits = game.getEntities(coords);impactHexHits.hasMoreElements();) { Entity entity = (Entity)impactHexHits.nextElement(); entity.infernos.add( InfernoTracker.INFERNO_IV_ROUND, 1 ); phaseReport.append( entity.getDisplayName() ) .append( " now on fire for ") .append( entity.infernos.getTurnsLeftToBurn() ) .append(" turns.\n"); } for(int dir=0;dir<=5;dir++) { Coords tempcoords=coords.translated(dir); if(!game.board.contains(tempcoords)) { continue; } if(coords.equals(tempcoords)) { continue; } h = game.getBoard().getHex(tempcoords); // Unless there is a fire in the hex already, start one. if ( !h.contains( Terrain.FIRE ) ) { phaseReport.append( " Fire started in hex " ) .append( tempcoords.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo( tempcoords, InfernoTracker.INFERNO_IV_ROUND, 1 ); sendChangedHex(tempcoords); for(Enumeration splashHexHits = game.getEntities(tempcoords);splashHexHits.hasMoreElements();) { Entity entity = (Entity)splashHexHits.nextElement(); entity.infernos.add( InfernoTracker.INFERNO_IV_ROUND, 1 ); phaseReport.append( entity.getDisplayName() ) .append( " now on fire for ") .append( entity.infernos.getTurnsLeftToBurn() ) .append(" turns.\n"); } } return; } //special case artillery if (target.getTargetType() == Targetable.TYPE_HEX_ARTILLERY) { Coords coords = target.getPosition(); if (!bMissed) { phaseReport.append("hits the intended hex ") .append(coords.getBoardNum()) .append("\n"); } else { coords = Compute.scatter(coords); if (game.board.contains(coords)) { phaseReport.append("misses and scatters to hex ") .append(coords.getBoardNum()) .append("\n"); } else { phaseReport.append("misses and scatters off the board\n"); return; } } int nCluster = 5; for(Enumeration impactHexHits = game.getEntities(coords);impactHexHits.hasMoreElements();) { Entity entity = (Entity)impactHexHits.nextElement(); int hits = wtype.getRackSize(); while(hits>0) { if(wr.artyAttackerCoords!=null) { toHit.setSideTable(Compute.targetSideTable(wr.artyAttackerCoords,entity.getPosition(),entity.getFacing(),entity instanceof Tank)); } HitData hit = entity.rollHitLocation ( toHit.getHitTable(), toHit.getSideTable(), wr.waa.getAimedLocation(), wr.waa.getAimingMode() ); phaseReport.append(damageEntity(entity, hit, Math.min(nCluster, hits), false, 0, false, true) + "\n"); hits -= Math.min(nCluster,hits); } } for(int dir=0;dir<=5;dir++) { Coords tempcoords=coords.translated(dir); if(!game.board.contains(tempcoords)) { continue; } if(coords.equals(tempcoords)) { continue; } Enumeration splashHexHits = game.getEntities(tempcoords); if(splashHexHits.hasMoreElements()) { phaseReport.append("in hex " + tempcoords.getBoardNum()); } for(;splashHexHits.hasMoreElements();) {; Entity entity = (Entity)splashHexHits.nextElement(); int hits = wtype.getRackSize()/2; while(hits>0) { HitData hit = entity.rollHitLocation ( toHit.getHitTable(), toHit.getSideTable(), wr.waa.getAimedLocation(), wr.waa.getAimingMode() ); phaseReport.append(damageEntity(entity, hit, Math.min(nCluster, hits)) + "\n"); hits -= Math.min(nCluster,hits); } } } return; } // End artillery if (bMissed) { // Report the miss. if ( wtype.getAmmoType() == AmmoType.T_SRM_STREAK ) { phaseReport.append( "fails to achieve lock.\n" ); } else { phaseReport.append("misses.\n"); } // Report any AMS action. for (int i=0; i < wr.amsShotDown.length; i++) { if (wr.amsShotDown[i] > 0) { phaseReport.append( "\tAMS activates, firing " ) .append( wr.amsShotDown[i] ) .append( " shot(s).\n" ); } } // Figure out the maximum number of missile hits. // TODO: handle this in a different place. int maxMissiles = 0; if ( usesAmmo ) { maxMissiles = wtype.getRackSize(); if ( wtype.hasFlag(WeaponType.F_DOUBLE_HITS) ) { maxMissiles *= 2; } if ( ae instanceof BattleArmor ) { platoon = (Infantry) ae; maxMissiles *= platoon.getShootingStrength(); } } // If the AMS shot down *all* incoming missiles, if // the shot is an automatic failure, or if it's from // a Streak rack, then Infernos can't ignite the hex // and any building is safe from damage. if ( (usesAmmo && wr.amsShotDownTotal >= maxMissiles) || toHit.getValue() == TargetRoll.AUTOMATIC_FAIL || wtype.getAmmoType() == AmmoType.T_SRM_STREAK ) { return; } // Shots that miss an entity can set fires. // Infernos always set fires. Otherwise // Buildings can't be accidentally ignited, // and some weapons can't ignite fires. if ( entityTarget != null && ( bInferno || ( bldg == null && wtype.getFireTN() != TargetRoll.IMPOSSIBLE ) ) ) { tryIgniteHex(target.getPosition(), bInferno, 11); } // BMRr, pg. 51: "All shots that were aimed at a target inside // a building and miss do full damage to the building instead." if ( !targetInBuilding ) { return; } } // special case NARC hits. No damage, but a beacon is appended if (!bMissed && wtype.getAmmoType() == AmmoType.T_NARC && atype.getMunitionType() != AmmoType.M_NARC_EX) { if (wr.amsShotDownTotal > 0) { phaseReport.append("would hit, but..."); for (int i=0; i < wr.amsShotDown.length; i++) { phaseReport.append("\n\tAMS engages, firing ") .append(wr.amsShotDown[i]).append(" shots"); } phaseReport.append("\nThe pod is destroyed by AMS fire.\n"); } else if (entityTarget == null) { phaseReport.append("hits, but doesn't do anything.\n"); } else { entityTarget.setNarcedBy(ae.getOwner().getTeam()); phaseReport.append("hits. Pod attached.\n"); } return; } // attempt to clear minefield by LRM/MRM fire. if (!bMissed && target.getTargetType() == Targetable.TYPE_MINEFIELD_CLEAR) { int clearAttempt = Compute.d6(2); if (clearAttempt >= Minefield.CLEAR_NUMBER_WEAPON) { phaseReport.append("\n\thits and clears it.\n"); Coords coords = target.getPosition(); Enumeration minefields = game.getMinefields(coords).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); removeMinefield(mf); } } else { phaseReport.append("\n\thits, but fails to clear it.\n"); } return; } // yeech. handle damage. . different weapons do this in very different ways int hits = 1, nCluster = 1, nSalvoBonus = 0; int nDamPerHit = wtype.getDamage(); boolean bSalvo = false; // ecm check is heavy, so only do it once boolean bCheckedECM = false; boolean bECMAffected = false; boolean bMekStealthActive = false; String sSalvoType = " shot(s) "; boolean bAllShotsHit = false; int nRange = ae.getPosition().distance(target.getPosition()); int nMissilesModifier = 0; boolean maxtechmissiles = game.getOptions().booleanOption("maxtech_mslhitpen"); if (maxtechmissiles) { if (nRange<=1) { nMissilesModifier = +1; } else if (nRange <= wtype.getShortRange()) { nMissilesModifier = 0; } else if (nRange <= wtype.getMediumRange()) { nMissilesModifier = -1; } else { nMissilesModifier = -2; } } // All shots fired by a Streak SRM weapon, during // a Mech Swarm hit, or at an adjacent building. if ( wtype.getAmmoType() == AmmoType.T_SRM_STREAK || wtype.getAmmoType() == AmmoType.T_NARC || ae.getSwarmTargetId() == wr.waa.getTargetId() || ( ( target.getTargetType() == Targetable.TYPE_BLDG_IGNITE || target.getTargetType() == Targetable.TYPE_BUILDING ) && ae.getPosition().distance( target.getPosition() ) <= 1 ) ) { bAllShotsHit = true; } // Mek swarms attach the attacker to the target. if ( !bMissed && Infantry.SWARM_MEK.equals( wtype.getInternalName() ) ) { // Is the target already swarmed? if ( Entity.NONE != entityTarget.getSwarmAttackerId() ) { phaseReport.append( "succeds, but the defender is " ); phaseReport.append( "already swarmed by another unit.\n" ); } // Did the target get destroyed by weapons fire? else if ( entityTarget.isDoomed() || entityTarget.isDestroyed() || entityTarget.getCrew().isDead() ) { phaseReport.append( "succeds, but the defender was " ); phaseReport.append( "destroyed by weapons fire.\n" ); } else { phaseReport.append( "succeeds! Defender swarmed.\n" ); ae.setSwarmTargetId( wr.waa.getTargetId() ); entityTarget.setSwarmAttackerId( wr.waa.getEntityId() ); } return; } // Magnetic Mine Launchers roll number of hits on battle armor // hits table but use # mines firing instead of men shooting. else if ( wtype.getInternalName().equals(BattleArmor.MINE_LAUNCHER) ) { hits = nShots; if ( !bAllShotsHit ) { hits = Compute.getBattleArmorHits( hits ); } bSalvo = true; sSalvoType = " mine(s) "; } // Other battle armor attacks use # of men firing to determine hits. // Each hit can be in a new location. The damage per shot comes from // the "racksize". else if ( isBattleArmorAttack ) { bSalvo = true; platoon = (Infantry) ae; nCluster = 1; nDamPerHit = wtype.getRackSize(); hits = platoon.getShootingStrength(); // All attacks during Mek Swarms hit; all // others use the Battle Armor hits table. if ( !bAllShotsHit ) { hits = Compute.getBattleArmorHits( hits ); } // Handle Inferno SRM squads. if (bInferno) { nCluster = hits; nDamPerHit = 0; sSalvoType = " Inferno missle(s) "; bSalvo = false; } } // Infantry damage depends on # men left in platoon. else if (isWeaponInfantry) { bSalvo = true; platoon = (Infantry)ae; nCluster = 5; nDamPerHit = 1; hits = platoon.getDamage(platoon.getShootingStrength()); // Handle Inferno SRM infantry. if (bInferno) { nCluster = hits; nDamPerHit = 0; sSalvoType = " Inferno missle(s) "; bSalvo = false; } } else if (wtype.getDamage() == WeaponType.DAMAGE_MISSILE || wtype.hasFlag(WeaponType.F_MISSILE_HITS) ) { bSalvo = true; // Weapons with ammo type T_BA_MG or T_BA_SMALL_LASER // don't have an atype object. if ( wtype.getAmmoType() == AmmoType.T_BA_MG || wtype.getAmmoType() == AmmoType.T_BA_SMALL_LASER ) { nDamPerHit = Math.abs( wtype.getAmmoType() ); } else { sSalvoType = " missile(s) "; // Get the damage from the linked ammo. nDamPerHit = atype.getDamagePerShot(); } if ( wtype.getAmmoType() == AmmoType.T_LRM || wtype.getAmmoType() == AmmoType.T_MRM || wtype.getAmmoType() == AmmoType.T_ATM || wtype.getAmmoType() == AmmoType.T_ROCKET_LAUNCHER ) { nCluster = 5; } // calculate # of missiles hitting if ( wtype.getAmmoType() == AmmoType.T_LRM || wtype.getAmmoType() == AmmoType.T_SRM || wtype.getAmmoType() == AmmoType.T_ATM ) { // check for artemis, else check for narc Mounted mLinker = weapon.getLinkedBy(); if ( wtype.getAmmoType() == AmmoType.T_ATM || ( mLinker != null && mLinker.getType() instanceof MiscType && !mLinker.isDestroyed() && !mLinker.isMissing() && !mLinker.isBreached() && mLinker.getType().hasFlag(MiscType.F_ARTEMIS) ) ) { // check ECM interference if (!bCheckedECM) { // Attacking Meks using stealth suffer ECM effects. if ( ae instanceof Mech ) { bMekStealthActive = ae.isStealthActive(); } bECMAffected = Compute.isAffectedByECM(ae, ae.getPosition(), target.getPosition()); bCheckedECM = true; } // also no artemis for IDF, and only use standard ammo (excepot for ATMs) if (!bECMAffected&& !bMekStealthActive && (!weapon.getType().hasModes() || !weapon.curMode().equals("Indirect")) && (atype.getMunitionType() == AmmoType.M_STANDARD || atype.getMunitionType() == AmmoType.M_EXTENDED_RANGE || atype.getMunitionType() == AmmoType.M_HIGH_EXPLOSIVE) ) { nSalvoBonus += 2; } } else if (entityTarget != null && entityTarget.isNarcedBy(ae.getOwner().getTeam())) { // check ECM interference if (!bCheckedECM) { // Attacking Meks using stealth suffer ECM effects. if ( ae instanceof Mech ) { bMekStealthActive = ae.isStealthActive(); } bECMAffected = Compute.isAffectedByECM(ae, ae.getPosition(), target.getPosition()); bCheckedECM = true; } // only apply Narc bonus if we're not suffering ECM effect // and we are using standard ammo. if (!bECMAffected && !bMekStealthActive && atype.getMunitionType() == AmmoType.M_STANDARD) { nSalvoBonus += 2; } } } // If dealing with Inferno rounds set damage to zero and reset // all salvo bonuses (cannot mix with other special munitions). if (bInferno) { nDamPerHit = 0; nSalvoBonus = 0; sSalvoType = " inferno missile(s) "; bSalvo = false; } // If dealing with fragmentation missiles, // it does double damage to infantry... if (bFragmentation) { sSalvoType = " fragmentation missile(s) "; } // Large MRM missile racks roll twice. // MRM missiles never recieve hit bonuses. if ( wtype.getRackSize() == 30 || wtype.getRackSize() == 40 ) { hits = Compute.missilesHit(wtype.getRackSize() / 2, nMissilesModifier, maxtechmissiles) + Compute.missilesHit(wtype.getRackSize() / 2, nMissilesModifier, maxtechmissiles); } // Battle Armor units multiply their racksize by the number // of men shooting and they can't get missile hit bonuses. else if ( ae instanceof BattleArmor ) { platoon = (Infantry) ae; int temp = wtype.getRackSize() * platoon.getShootingStrength(); // Do all shots hit? if ( bAllShotsHit ) { hits = temp; } else { // Account for more than 20 missles hitting. hits = 0; while ( temp > 20 ) { hits += Compute.missilesHit( 20, nMissilesModifier, maxtechmissiles ); temp -= 20; } hits += Compute.missilesHit( temp, nMissilesModifier, maxtechmissiles ); } // End not-all-shots-hit } // If all shots hit, use the full racksize. else if ( bAllShotsHit ) { hits = wtype.getRackSize(); } // In all other circumstances, roll for hits. else { hits = Compute.missilesHit(wtype.getRackSize(), nSalvoBonus + nMissilesModifier, maxtechmissiles); } // Advanced SRM's only hit with even numbers of missles. if ( null != atype && atype.getAmmoType() == AmmoType.T_SRM_ADVANCED ) { hits = 2 * (int) Math.floor( (1.0 + (float) hits) / 2.0); } } else if (atype != null && atype.getMunitionType() == AmmoType.M_CLUSTER) { // Cluster shots break into single point clusters. bSalvo = true; hits = wtype.getRackSize(); if ( !bAllShotsHit ) { hits = Compute.missilesHit( hits ); } nDamPerHit = 1; } else if (nShots > 1) { // this should handle multiple attacks from ultra and rotary ACs bSalvo = true; hits = nShots; if ( !bAllShotsHit ) { hits = Compute.missilesHit( hits ); } } else if (wtype.getAmmoType() == AmmoType.T_GAUSS_HEAVY) { // HGR does range-dependent damage if (nRange <= wtype.getShortRange()) { nDamPerHit = 25; } else if (nRange <= wtype.getMediumRange()) { nDamPerHit = 20; } else { nDamPerHit = 10; } } else if (wtype.hasFlag(WeaponType.F_ENERGY)) { // Check for Altered Damage from Energy Weapons (MTR, pg.22) nDamPerHit = wtype.getDamage(); if (game.getOptions().booleanOption("maxtech_altdmg")) { if (nRange<=1) { nDamPerHit++; } else if (nRange <= wtype.getMediumRange()) { // Do NOthing for Short and Medium Range } else if (nRange <= wtype.getLongRange()) { nDamPerHit--; } else if (nRange <= wtype.getExtremeRange()) { nDamPerHit = (int)Math.floor((double)nDamPerHit/2.0); } } } // Some weapons double the number of hits scored. if ( wtype.hasFlag(WeaponType.F_DOUBLE_HITS) ) { hits *= 2; } // We've calculated how many hits. At this point, any missed // shots damage the building instead of the target. if ( bMissed ) { if ( targetInBuilding && bldg != null ) { // Reduce the number of hits by AMS hits. if (wr.amsShotDownTotal > 0) { for (int i=0; i < wr.amsShotDown.length; i++) { int shotDown = Math.min(wr.amsShotDown[i], hits); phaseReport.append("\tAMS shoots down ") .append(shotDown).append(" missile(s).\n"); } hits -= wr.amsShotDownTotal; } // Is the building hit by Inferno rounds? if ( bInferno && hits > 0 ) { // start a fire in the targets hex Coords c = target.getPosition(); Hex h = game.getBoard().getHex(c); // Is there a fire in the hex already? if ( h.contains( Terrain.FIRE ) ) { phaseReport.append( " " ) .append( hits ) .append( " Inferno rounds added to hex " ) .append( c.getBoardNum() ) .append( ".\n" ); } else { phaseReport.append( " " ) .append( hits ) .append( " Inferno rounds start fire in hex " ) .append( c.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo ( c, InfernoTracker.STANDARD_ROUND, hits ); sendChangedHex(c); } // Damage the building in one big lump. else { // Only report if damage was done to the building. int toBldg = hits * nDamPerHit; if ( toBldg > 0 ) { phaseReport.append( " " ) .append( damageBuilding( bldg, toBldg ) ) .append( "\n" ); } } // End rounds-hit } // End missed-target-in-building return; } // End missed-target // The building shields all units from a certain amount of damage. // The amount is based upon the building's CF at the phase's start. int bldgAbsorbs = 0; if ( targetInBuilding && bldg != null ) { bldgAbsorbs = (int) Math.ceil( bldg.getPhaseCF() / 10.0 ); } // All attacks (except from infantry weapons) // during Mek Swarms hit the same location. if ( !isWeaponInfantry && ae.getSwarmTargetId() == wr.waa.getTargetId() ) { nCluster = hits; } // Battle Armor MGs do one die of damage per hit to PBI. if ( wtype.getAmmoType() == AmmoType.T_BA_MG && (target instanceof Infantry) && !(target instanceof BattleArmor) ) { // ASSUMPTION: Building walls protect infantry from BA MGs. if ( bldgAbsorbs > 0 ) { int toBldg = nDamPerHit * hits; phaseReport.append( hits ) .append( sSalvoType ) .append( "hit,\n but " ) .append( damageBuilding( bldg, Math.min( toBldg, bldgAbsorbs ), " absorbs the shots, taking " ) ) .append( "\n" ); return; } nDamPerHit = Compute.d6(hits); phaseReport.append( "riddles the target with " ).append( nDamPerHit ).append( sSalvoType ).append( "and " ); hits = 1; } // Mech and Vehicle MGs do *DICE* of damage to PBI. else if (atype != null && atype.hasFlag(AmmoType.F_MG) && !isWeaponInfantry && (target instanceof Infantry) && !(target instanceof BattleArmor) ) { int dice = wtype.getDamage(); // A building may absorb the entire shot. if ( nDamPerHit <= bldgAbsorbs ) { int toBldg = nDamPerHit * hits; int curCF = bldg.getCurrentCF(); curCF = Math.min( curCF, toBldg ); bldg.setCurrentCF( curCF ); if ( bSalvo ) { phaseReport.append( hits ) .append( sSalvoType ) .append( "hit,\n" ); } else{ phaseReport.append( "hits,\n" ); } phaseReport.append( " but " ) .append( damageBuilding( bldg, Math.min( toBldg, bldgAbsorbs ), " absorbs the shots, taking " ) ) .append( "\n" ); return; } // If a building absorbs partial damage, reduce the dice of damage. else if ( bldgAbsorbs > 0 ) { dice -= bldgAbsorbs; } nDamPerHit = Compute.d6( dice ); phaseReport.append( "riddles the target with " ).append( nDamPerHit ).append( sSalvoType ).append( ".\n" ); bSalvo = true; // If a building absorbed partial damage, report it now // instead of later and then clear the variable. if ( bldgAbsorbs > 0 ) { phaseReport.append( " " ) .append( damageBuilding( bldg, bldgAbsorbs ) ); bldgAbsorbs = 0; } } // Report the number of hits. Infernos have their own reporting else if (bSalvo && !bInferno) { phaseReport.append( hits ).append( sSalvoType ).append( "hit" ) .append( toHit.getTableDesc() ); if (bECMAffected) { phaseReport.append(" (ECM prevents bonus)"); } else if (bMekStealthActive) { phaseReport.append(" (active Stealth prevents bonus)"); } if (nSalvoBonus > 0) { phaseReport.append(" (w/ +") .append(nSalvoBonus) .append(" bonus)"); } phaseReport.append("."); if (wr.amsShotDownTotal > 0) { for (int i=0; i < wr.amsShotDown.length; i++) { int shotDown = Math.min(wr.amsShotDown[i], hits); phaseReport.append("\n\tAMS engages, firing ") .append(wr.amsShotDown[i]).append(" shots, shooting down ") .append(shotDown).append(" missile(s)."); } hits -= wr.amsShotDownTotal; phaseReport.append("\n "); if (hits < 1) { phaseReport.append("AMS shoots down all incoming missiles!"); } else { phaseReport.append(hits); if (1 == hits) { phaseReport.append(" missile gets through."); } else { phaseReport.append(" missiles get through."); }; }; } } // convert the ATM missile damages to LRM type 5 point cluster damage // done here after AMS has been performed if (wtype.getAmmoType() == AmmoType.T_ATM) { hits = nDamPerHit * hits; nDamPerHit = 1; } // Make sure the player knows when his attack causes no damage. if ( hits == 0 ) { phaseReport.append( "attack deals zero damage.\n" ); } // for each cluster of hits, do a chunk of damage while (hits > 0) { int nDamage; // If the attack was with inferno rounds then // do heat and fire instead of damage. if ( bInferno ) { // AMS can shoot down infernos, too. if (wr.amsShotDownTotal > 0) { for (int i=0; i < wr.amsShotDown.length; i++) { int shotDown = Math.min(wr.amsShotDown[i], hits); phaseReport.append("\n\tAMS engages, firing ") .append(wr.amsShotDown[i]).append(" shots, shooting down ") .append(shotDown).append(" missile(s)."); } hits -= wr.amsShotDownTotal; phaseReport.append("\n "); if (hits < 1) { phaseReport.append("AMS shoots down all incoming missiles!"); } else { phaseReport.append(hits); if (1 == hits) { phaseReport.append(" missile gets through."); } else { phaseReport.append(" missiles get through."); }; }; if ( hits <= 0 ) { continue; } } // targeting a hex for ignition if( target.getTargetType() == Targetable.TYPE_HEX_IGNITE || target.getTargetType() == Targetable.TYPE_BLDG_IGNITE ) { phaseReport.append( "hits with " ) .append( hits ) .append( " inferno missles.\n" ); // Unless there a fire in the hex already, start one. Coords c = target.getPosition(); Hex h = game.getBoard().getHex(c); if ( !h.contains( Terrain.FIRE ) ) { phaseReport.append( " Fire started in hex " ) .append( c.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo ( c, InfernoTracker.STANDARD_ROUND, hits ); sendChangedHex(c); return; } // Targeting an entity if (entityTarget != null ) { entityTarget.infernos.add( InfernoTracker.STANDARD_ROUND, hits ); phaseReport.append( "hits with " ) .append( hits ) .append( " inferno missles." ); phaseReport.append("\n " ) .append( target.getDisplayName() ) .append( " now on fire for ") .append( entityTarget.infernos.getTurnsLeftToBurn() ) .append(" turns.\n"); // start a fire in the targets hex Coords c = target.getPosition(); Hex h = game.getBoard().getHex(c); // Unless there a fire in the hex already, start one. if ( !h.contains( Terrain.FIRE ) ) { phaseReport.append( " Fire started in hex " ) .append( c.getBoardNum() ) .append( ".\n" ); h.addTerrain(new Terrain(Terrain.FIRE, 1)); } game.board.addInfernoTo ( c, InfernoTracker.STANDARD_ROUND, 1 ); sendChangedHex(c); return; } } // End is-inferno // targeting a hex for igniting if( target.getTargetType() == Targetable.TYPE_HEX_IGNITE || target.getTargetType() == Targetable.TYPE_BLDG_IGNITE ) { if ( !bSalvo ) { phaseReport.append("hits!"); } // We handle Inferno rounds above. int tn = wtype.getFireTN(); if (tn != TargetRoll.IMPOSSIBLE) { if ( bldg != null ) { tn += bldg.getType() - 1; } phaseReport.append( "\n" ); tryIgniteHex( target.getPosition(), bInferno, tn, true ); } return; } // targeting a hex for clearing if (target.getTargetType() == Targetable.TYPE_HEX_CLEAR) { nDamage = nDamPerHit * hits; if ( !bSalvo ) { phaseReport.append("hits!"); } if (ae instanceof Infantry) { phaseReport.append("\n But infantry cannot try to clear hexes!\n"); return; } phaseReport.append(" Terrain takes " ).append( nDamage ).append( " damage.\n"); // Any clear attempt can result in accidental ignition, even // weapons that can't normally start fires. that's weird. // Buildings can't be accidentally ignited. if ( bldg == null) { boolean alreadyIgnited = game.board.getHex(target.getPosition()).contains(Terrain.FIRE); boolean ignited = tryIgniteHex(target.getPosition(), bInferno, 9); if (!alreadyIgnited && ignited) return; } int tn = 14 - nDamage; tryClearHex(target.getPosition(), tn); return; } // Targeting a building. if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { // The building takes the full brunt of the attack. nDamage = nDamPerHit * hits; if ( !bSalvo ) { phaseReport.append( "hits." ); } phaseReport.append( "\n " ) .append( damageBuilding( bldg, nDamage ) ) .append( "\n" ); // Damage any infantry in the hex. this.damageInfantryIn( bldg, nDamage ); // And we're done! return; } // Battle Armor squads equipped with fire protection // gear automatically avoid flaming death. if ( wtype.hasFlag(WeaponType.F_FLAMER) && target instanceof BattleArmor ) { for ( Enumeration iter = entityTarget.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.FIRE_PROTECTION.equals (equip.getInternalName()) ) { if ( !bSalvo ) { phaseReport.append( "hits." ); } phaseReport.append( "\n However, " ) .append(target.getDisplayName() ) .append( " has fire protection gear so no damage is done.\n" ); // A building may be damaged, even if the squad is not. if ( bldgAbsorbs > 0 ) { int toBldg = nDamPerHit * Math.min( bldgAbsorbs, hits ); phaseReport.append( " " ) .append( damageBuilding( bldg, toBldg ) ) .append( "\n" ); } return; } } } // End target-may-be-immune // Flamers do heat to mechs instead damage if the option is // available and the mode is set. if ( entityTarget != null && (entityTarget instanceof Mech) && wtype.hasFlag(WeaponType.F_FLAMER) && game.getOptions().booleanOption("flamer_heat") && wtype.hasModes() && weapon.curMode().equals("Heat") ) { nDamage = nDamPerHit * hits; if ( !bSalvo ) { phaseReport.append( "hits." ); } phaseReport.append("\n Target gains ").append(nDamage).append(" more heat during heat phase."); entityTarget.heatBuildup += nDamage; hits = 0; } else if (entityTarget != null) { HitData hit = entityTarget.rollHitLocation ( toHit.getHitTable(), toHit.getSideTable(), wr.waa.getAimedLocation(), wr.waa.getAimingMode() ); // If a leg attacks hit a leg that isn't // there, then hit the other leg. if ( wtype.getInternalName().equals("LegAttack") && entityTarget.getInternal(hit) <= 0 ) { if ( hit.getLocation() == Mech.LOC_RLEG ) { hit = new HitData( Mech.LOC_LLEG ); } else { hit = new HitData( Mech.LOC_RLEG ); } } // Mine Launchers automatically hit the // CT of a Mech or the front of a Tank. if ( wtype.getInternalName() .equals(BattleArmor.MINE_LAUNCHER) ) { if ( target instanceof Mech ) { hit = new HitData( Mech.LOC_CT ); } else { // te instanceof Tank hit = new HitData( Tank.LOC_FRONT ); } } // Each hit in the salvo get's its own hit location. if (!bSalvo) { phaseReport.append("hits" ).append( toHit.getTableDesc() ).append( " " ). append( entityTarget.getLocationAbbr(hit)); if (hit.hitAimedLocation()) { phaseReport.append("(hit aimed location)"); } } // Special weapons do criticals instead of damage. if ( nDamPerHit == WeaponType.DAMAGE_SPECIAL ) { // Do criticals. String specialDamage = criticalEntity( entityTarget, hit.getLocation() ); // Replace "no effect" results with 4 points of damage. if ( specialDamage.endsWith(" no effect.") ) { // ASSUMPTION: buildings CAN'T absorb *this* damage. specialDamage = damageEntity(entityTarget, hit, 4); } else { specialDamage = "\n" + specialDamage; } // Report the result phaseReport.append( specialDamage ); } else { // Resolve damage normally. nDamage = nDamPerHit * Math.min(nCluster, hits); // A building may be damaged, even if the squad is not. if ( bldgAbsorbs > 0 ) { int toBldg = Math.min( bldgAbsorbs, nDamage ); nDamage -= toBldg; phaseReport.append( "\n " ) .append( damageBuilding( bldg, toBldg ) ); } // A building may absorb the entire shot. if ( nDamage == 0 ) { phaseReport.append( "\n " ) .append( entityTarget.getDisplayName() ) .append( " suffers no damage." ); } else if (bFragmentation) { // If it's a frag missile... phaseReport.append ( damageEntity(entityTarget, hit, nDamage, false, 1) ); } else if (bFlechette) { // If it's a frag missile... phaseReport.append ( damageEntity(entityTarget, hit, nDamage, false, 2) ); } else { if ((atype != null) && (atype.getMunitionType() == AmmoType.M_ARMOR_PIERCING)) hit.makeArmorPiercing(atype); phaseReport.append ( damageEntity(entityTarget, hit, nDamage) ); } } hits -= nCluster; creditKill(entityTarget, ae); } } // Handle the next cluster. phaseReport.append("\n"); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/e9c9879c067eb6888ee703f97c529969d0f49d37/Server.java/buggy/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
3218,
28629,
3075,
484,
12,
3218,
28629,
1253,
12408,
16,
509,
1142,
18029,
13,
288,
3639,
368,
1377,
2332,
18,
659,
18,
8222,
2932,
21878,
69,
8863,
1377,
727,
3887,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2245,
3218,
28629,
3075,
484,
12,
3218,
28629,
1253,
12408,
16,
509,
1142,
18029,
13,
288,
3639,
368,
1377,
2332,
18,
659,
18,
8222,
2932,
21878,
69,
8863,
1377,
727,
3887,
142... |
public synchronized static void notifyEvent(int id, final int mouseState, final int x, final int y) { | public synchronized static void notifyEvent(int id, final int mouseState, final int x, final int y, final int modifiers) { | public synchronized static void notifyEvent(int id, final int mouseState, final int x, final int y) { final WinTrayIconService instance = (WinTrayIconService) map.get(new Integer(id)); if(instance == null) return; try { EventQueue.invokeLater(new Runnable() { public void run() { instance.processEvent(mouseState, x, y); } }); } catch (Exception e) { e.printStackTrace(); } } | 46042 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46042/7047c58ac0ea8eb8f8361695e507696d53ce494d/WinTrayIconService.java/clean/src/jdic/src/win32/classes/org/jdesktop/jdic/tray/internal/impl/WinTrayIconService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
760,
918,
5066,
1133,
12,
474,
612,
16,
727,
509,
7644,
1119,
16,
727,
509,
619,
16,
727,
509,
677,
16,
727,
509,
10429,
13,
288,
3639,
727,
225,
21628,
56,
435,
5554,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
760,
918,
5066,
1133,
12,
474,
612,
16,
727,
509,
7644,
1119,
16,
727,
509,
619,
16,
727,
509,
677,
16,
727,
509,
10429,
13,
288,
3639,
727,
225,
21628,
56,
435,
5554,
117... |
EditorFactory.getInstance().getEventMulticaster().addDocumentListener(myDocumentsListener); | EditorFactory.getInstance().getEventMulticaster().addDocumentListener(myDocumentsListener, this); | public StructureTreeBuilder(Project project, JTree tree, DefaultTreeModel treeModel, AbstractTreeStructure treeStructure, StructureViewModel structureModel) { super( tree, treeModel, treeStructure, null ); myProject = project; myStructureModel = structureModel; myPsiTreeChangeListener = new MyPsiTreeChangeListener(); myModelListener = new ModelListener() { public void onModelChanged() { addRootToUpdate(); } }; PsiManager.getInstance(myProject).addPsiTreeChangeListener(myPsiTreeChangeListener); myCopyPasteListener = new CopyPasteUtil.DefaultCopyPasteListener(myUpdater); CopyPasteManager.getInstance().addContentChangedListener(myCopyPasteListener); initRootNode(); myStructureModel.addModelListener(myModelListener); myDocumentsListener = new DocumentAdapter() { public void documentChanged(DocumentEvent e) { if (myProject.isDisposed()) return; if (PsiDocumentManager.getInstance(myProject).isUncommited(e.getDocument())) { final boolean hasActiveRequests = myUpdateAlarm.getActiveRequestCount() > 0; myUpdateAlarm.cancelAllRequests(); myUpdateEditorAlarm.cancelAllRequests(); myUpdateEditorAlarm.addRequest(new Runnable() { public void run() { PsiDocumentManager.getInstance(myProject).commitAllDocuments(); if (hasActiveRequests) { setupUpdateAlarm(); } } }, 300, ModalityState.stateForComponent(myTree)); } } }; EditorFactory.getInstance().getEventMulticaster().addDocumentListener(myDocumentsListener); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/f6210347f693e83a93da9a81e1e3c62349691935/StructureTreeBuilder.java/clean/source/com/intellij/ide/structureView/newStructureView/StructureTreeBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13348,
25060,
12,
4109,
1984,
16,
17311,
804,
2471,
2151,
16,
17311,
2989,
2471,
1488,
2151,
1488,
16,
17311,
4115,
2471,
6999,
2151,
6999,
16,
17311,
13348,
1767,
1488,
3695,
1488,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13348,
25060,
12,
4109,
1984,
16,
17311,
804,
2471,
2151,
16,
17311,
2989,
2471,
1488,
2151,
1488,
16,
17311,
4115,
2471,
6999,
2151,
6999,
16,
17311,
13348,
1767,
1488,
3695,
1488,
1... |
-1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, | private static final short[] yyCheck4() { return new short[] { -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, 41, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 336, -1, -1, 339, 340, 341, 342, -1, 10, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, 58, 59, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 60, -1, 62, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, 346, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, 40, -1, 42, 43, -1, 45, 344, 47, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 124, 47, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 257, 258, 259, 260, 261, 262, 263, 264, -1, 344, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, 60, -1, 62, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, 257, 258, 259, -1, 261, -1, -1, 344, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 333, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, }; } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
225,
9131,
23,
16,
225,
576,
5193,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1564,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
300,
21,
16,
282,
300,
21,
16,
282,
300,
21,
16,
225,
9131,
23,
16,
225,
576,
5193,
16,
... |
_t = __t1947; | _t = __t1948; | public final void goon_elem(AST _t) throws RecognitionException { AST goon_elem_AST_in = (_t == ASTNULL) ? null : (AST)_t; { AST tmp2327_AST_in = (AST)_t; match(_t,_tokenSet_11); _t = _t.getNextSibling(); } { boolean synPredMatched1947 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==OF))) { AST __t1947 = _t; synPredMatched1947 = true; inputState.guessing++; try { { AST tmp2328_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); } } catch (RecognitionException pe) { synPredMatched1947 = false; } _t = __t1947;inputState.guessing--; } if ( synPredMatched1947 ) { AST tmp2329_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); gwidget(_t); _t = _retTree; } else if (((_t.getType() >= LEXDATE && _t.getType() <= SYMMETRICENCRYPTIONALGORITHM))) { } else { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1960,
265,
67,
10037,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1960,
265,
67,
10037,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1960,
265,
67,
10037,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1960,
265,
67,
10037,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,... |
for (node = this.content; node != null && node.type != DOCTYPE_TAG; node = node.next) | while (node != null && node.type != DOCTYPE_TAG) | public Node findDocType() { Node node; for (node = this.content; node != null && node.type != DOCTYPE_TAG; node = node.next) { // } return node; } | 3308 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3308/8866666f3c910ea3a3c857a870a0003a6ae41a71/Node.java/buggy/src/main/org/w3c/tidy/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
1104,
1759,
559,
1435,
565,
288,
3639,
2029,
756,
31,
3639,
1323,
261,
2159,
480,
446,
597,
756,
18,
723,
480,
5467,
17331,
67,
7927,
13,
3639,
288,
5411,
368,
3639,
289,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
1104,
1759,
559,
1435,
565,
288,
3639,
2029,
756,
31,
3639,
1323,
261,
2159,
480,
446,
597,
756,
18,
723,
480,
5467,
17331,
67,
7927,
13,
3639,
288,
5411,
368,
3639,
289,
36... |
public Elf(String file, long offset) throws IOException { commonSetup(file, offset); | protected Elf() { | public Elf(String file, long offset) throws IOException { commonSetup(file, offset); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/04dd7a6d963bb9c554ae9d394911b0783a757d09/Elf.java/buggy/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10426,
74,
12,
780,
585,
16,
1525,
1384,
13,
1216,
1860,
288,
202,
202,
6054,
7365,
12,
768,
16,
1384,
1769,
202,
97,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10426,
74,
12,
780,
585,
16,
1525,
1384,
13,
1216,
1860,
288,
202,
202,
6054,
7365,
12,
768,
16,
1384,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public ClientPut getParent() { | public ClientPutter getParent() { | public ClientPut getParent() { return parent; } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/d32229c02576d531c915059f111c468591f30e84/SingleFileInserter.java/clean/src/freenet/client/async/SingleFileInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
6426,
5089,
1435,
288,
202,
202,
2463,
982,
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,... | [
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,
482,
2445,
6426,
5089,
1435,
288,
202,
202,
2463,
982,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
component = typeDef.getItemTypeDefinition(); if (component == null) { List memberTypes = typeDef.getMemberTypeDefinitions(); if (memberTypes != null && memberTypes.size() > 0) | case XSDVariety.ATOMIC : | private XSDConcreteComponent getTargetXSDComponent(XSDSchema xsdSchema, IDOMNode node) { XSDConcreteComponent component = null; XSDConcreteComponent xsdComp = xsdSchema.getCorrespondingComponent((Node) node); if (xsdComp instanceof XSDElementDeclaration) { XSDElementDeclaration elementDecl = (XSDElementDeclaration) xsdComp; if (elementDecl.isElementDeclarationReference()) { component = elementDecl.getResolvedElementDeclaration(); } else { XSDConcreteComponent typeDef = null; if (elementDecl.getAnonymousTypeDefinition() == null) { typeDef = elementDecl.getTypeDefinition(); } XSDConcreteComponent subGroupAffiliation = elementDecl.getSubstitutionGroupAffiliation(); if (typeDef != null && subGroupAffiliation != null) { // we have 2 things we can navigate to, if the // cursor is anywhere on the substitution // attribute // then jump to that, otherwise just go to the // typeDef. if (node instanceof Attr && ((Attr) node).getLocalName().equals(XSDConstants.SUBSTITUTIONGROUP_ATTRIBUTE)) { component = subGroupAffiliation; } else { // try to reveal the type now. On success, // then we return true. // if we fail, set the substitution group // as // the object to reveal as a backup plan. // ISSUE: how to set backup? // if (revealObject(typeDef)) { component = typeDef; // } // else { // objectToReveal = subGroupAffiliation; // } } } else { // one or more of these is null. If the // typeDef is // non-null, use it. Otherwise // try and use the substitution group component = typeDef != null ? typeDef : subGroupAffiliation; } } } else if (xsdComp instanceof XSDModelGroupDefinition) { XSDModelGroupDefinition elementDecl = (XSDModelGroupDefinition) xsdComp; if (elementDecl.isModelGroupDefinitionReference()) { component = elementDecl.getResolvedModelGroupDefinition(); } } else if (xsdComp instanceof XSDAttributeDeclaration) { XSDAttributeDeclaration attrDecl = (XSDAttributeDeclaration) xsdComp; if (attrDecl.isAttributeDeclarationReference()) { component = attrDecl.getResolvedAttributeDeclaration(); } else if (attrDecl.getAnonymousTypeDefinition() == null) { component = attrDecl.getTypeDefinition(); } } else if (xsdComp instanceof XSDAttributeGroupDefinition) { XSDAttributeGroupDefinition attrGroupDef = (XSDAttributeGroupDefinition) xsdComp; if (attrGroupDef.isAttributeGroupDefinitionReference()) { component = attrGroupDef.getResolvedAttributeGroupDefinition(); } } else if (xsdComp instanceof XSDIdentityConstraintDefinition) { XSDIdentityConstraintDefinition idConstraintDef = (XSDIdentityConstraintDefinition) xsdComp; if (idConstraintDef.getReferencedKey() != null) { component = idConstraintDef.getReferencedKey(); } } else if (xsdComp instanceof XSDSimpleTypeDefinition) { XSDSimpleTypeDefinition typeDef = (XSDSimpleTypeDefinition) xsdComp; // Simple types can be one of restriction, list or union. // TODO Is there a better way of determining what type we have? component = typeDef.getBaseTypeDefinition(); if (component == null) { component = typeDef.getItemTypeDefinition(); if (component == null) { // if itemType attribute is not set, then check // for memberTypes List memberTypes = typeDef.getMemberTypeDefinitions(); if (memberTypes != null && memberTypes.size() > 0) { // ISSUE: What if there are more than one type? // This could be a case for multiple hyperlinks at the same location? component = (XSDConcreteComponent) memberTypes.get(0); } } } } else if (xsdComp instanceof XSDTypeDefinition) { XSDTypeDefinition typeDef = (XSDTypeDefinition) xsdComp; component = typeDef.getBaseType(); } else if (xsdComp instanceof XSDSchemaDirective) { XSDSchemaDirective directive = (XSDSchemaDirective) xsdComp; component = directive.getResolvedSchema(); } return component; } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/90f955fd5c8b684d80841511e165859a530fbc17/XSDHyperlinkDetector.java/buggy/bundles/org.eclipse.wst.xsd.ui/src/org/eclipse/wst/xsd/ui/internal/XSDHyperlinkDetector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
26462,
25845,
1841,
8571,
31244,
1841,
12,
31244,
3078,
14802,
3078,
16,
1599,
1872,
907,
756,
13,
225,
288,
565,
26462,
25845,
1841,
1794,
273,
446,
31,
565,
26462,
25845,
1841,
1480... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26462,
25845,
1841,
8571,
31244,
1841,
12,
31244,
3078,
14802,
3078,
16,
1599,
1872,
907,
756,
13,
225,
288,
565,
26462,
25845,
1841,
1794,
273,
446,
31,
565,
26462,
25845,
1841,
1480... |
checkOpen(); checkUpdateable(); updateObject(columnIndex, new Short(x)); | updateObject(columnIndex, new Integer(x)); | public void updateShort(int columnIndex, short x) throws SQLException { checkOpen(); checkUpdateable(); updateObject(columnIndex, new Short(x)); } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/9ae12557f46f75ad625959c50a737311830f5314/JtdsResultSet.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/JtdsResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
4897,
12,
474,
14882,
16,
3025,
619,
13,
1216,
6483,
288,
3639,
866,
3678,
5621,
3639,
866,
1891,
429,
5621,
3639,
1089,
921,
12,
2827,
1016,
16,
394,
7925,
12,
92,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
4897,
12,
474,
14882,
16,
3025,
619,
13,
1216,
6483,
288,
3639,
866,
3678,
5621,
3639,
866,
1891,
429,
5621,
3639,
1089,
921,
12,
2827,
1016,
16,
394,
7925,
12,
92,
100... |
if (jj_scan_token(STRING)) return true; | if (jj_3R_24()) return true; | static final private boolean jj_3R_15() { if (jj_scan_token(STRING)) return true; return false; } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/e8ce9c3ca6da98e2afca9082b04c7ed14168746b/AnnotationParser.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/annotation/expression/ast/AnnotationParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3600,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3247,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3600,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3247,
10756,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-10... |
public org.quickfix.field.MinTradeVol getMinTradeVol() throws FieldNotFound { org.quickfix.field.MinTradeVol value = new org.quickfix.field.MinTradeVol(); | public quickfix.field.MinTradeVol getMinTradeVol() throws FieldNotFound { quickfix.field.MinTradeVol value = new quickfix.field.MinTradeVol(); | public org.quickfix.field.MinTradeVol getMinTradeVol() throws FieldNotFound { org.quickfix.field.MinTradeVol value = new org.quickfix.field.MinTradeVol(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityList.java/buggy/src/java/src/quickfix/fix44/SecurityList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2930,
22583,
17431,
9555,
22583,
17431,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2930,
22583,
17431,
460,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2930,
22583,
17431,
9555,
22583,
17431,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2930,
22583,
17431,
460,
273,
394,
... |
public ASTField(ISymbol newSymbol, IASTAbstractDeclaration abstractDeclaration, IASTInitializerClause initializerClause, IASTExpression bitfieldExpression, int startingOffset, int nameOffset, List references, IASTExpression constructorExpression, ASTAccessVisibility visibility) | public ASTField(ISymbol newSymbol, IASTAbstractDeclaration abstractDeclaration, IASTInitializerClause initializerClause, IASTExpression bitfieldExpression, int startingOffset, int nameOffset, List references, boolean previouslyDeclared, IASTExpression constructorExpression, ASTAccessVisibility visibility) | public ASTField(ISymbol newSymbol, IASTAbstractDeclaration abstractDeclaration, IASTInitializerClause initializerClause, IASTExpression bitfieldExpression, int startingOffset, int nameOffset, List references, IASTExpression constructorExpression, ASTAccessVisibility visibility) { super( newSymbol, abstractDeclaration, initializerClause, bitfieldExpression, startingOffset, nameOffset, references, constructorExpression ); this.visibility = visibility; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ef856ea3e1e1acd7ffeac317801a531de0a75737/ASTField.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/ASTField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
974,
12,
5127,
3284,
394,
5335,
16,
467,
9053,
7469,
6094,
8770,
6094,
16,
467,
9053,
14729,
7044,
12562,
7044,
16,
467,
9053,
2300,
2831,
1518,
2300,
16,
509,
5023,
2335,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
974,
12,
5127,
3284,
394,
5335,
16,
467,
9053,
7469,
6094,
8770,
6094,
16,
467,
9053,
14729,
7044,
12562,
7044,
16,
467,
9053,
2300,
2831,
1518,
2300,
16,
509,
5023,
2335,
16,... |
if (statusItem == null) { tabIcon = SparkRes.getImageIcon(SparkRes.CLEAR_BALL_ICON); } else { String status = presence.getStatus(); if (status != null && status.indexOf("phone") != -1) { tabIcon = SparkRes.getImageIcon(SparkRes.ON_PHONE_IMAGE); } else { tabIcon = statusItem.getIcon(); } } Icon icon = SparkManager.getChatManager().getPresenceIconForContactHandler(presence); if (icon != null) { tabIcon = icon; } | tabIcon = SparkManager.getUserManager().getIconFromPresence(presence); | public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participantJID)); // Register PacketListeners AndFilter messageFilter = new AndFilter(new PacketTypeFilter(Message.class), new FromContainsFilter(participantJID)); SparkManager.getConnection().addPacketListener(this, messageFilter); SparkManager.getConnection().addPacketListener(this, presenceFilter); // The roomname will be the participantJID this.roomname = participantJID; // Use the agents username as the Tab Title this.tabTitle = title; // The name of the room will be the node of the user jid + conversation. final SimpleDateFormat formatter = new SimpleDateFormat("h:mm a"); this.roomTitle = participantNickname; // Add RoomInfo this.getSplitPane().setRightComponent(null); getSplitPane().setDividerSize(0); roster = SparkManager.getConnection().getRoster(); presence = roster.getPresence(participantJID); StatusItem statusItem = SparkManager.getWorkspace().getStatusBar().getItemFromPresence(presence); RosterEntry entry = roster.getEntry(participantJID); if (statusItem == null) { tabIcon = SparkRes.getImageIcon(SparkRes.CLEAR_BALL_ICON); } else { String status = presence.getStatus(); if (status != null && status.indexOf("phone") != -1) { tabIcon = SparkRes.getImageIcon(SparkRes.ON_PHONE_IMAGE); } else { tabIcon = statusItem.getIcon(); } } Icon icon = SparkManager.getChatManager().getPresenceIconForContactHandler(presence); if (icon != null) { tabIcon = icon; } PacketFilter filter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(participantJID)); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(Packet packet) { presence = (Presence)packet; } }, filter); // Create toolbar buttons. ChatRoomButton infoButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.PROFILE_IMAGE_24x24)); infoButton.setToolTipText("View information about this user"); // Create basic toolbar. getToolBar().addChatRoomButton(infoButton); // If the user is not in the roster, then allow user to add them. if (entry == null && !StringUtils.parseResource(participantJID).equals(participantNickname)) { ChatRoomButton addToRosterButton = new ChatRoomButton("", SparkRes.getImageIcon(SparkRes.ADD_IMAGE_24x24)); addToRosterButton.setToolTipText("Add this user to your roster."); getToolBar().addChatRoomButton(addToRosterButton); addToRosterButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { RosterDialog rosterDialog = new RosterDialog(); rosterDialog.setDefaultJID(participantJID); rosterDialog.setDefaultNickname(getParticipantNickname()); rosterDialog.showRosterDialog(SparkManager.getChatManager().getChatContainer().getChatFrame()); } }); } // Show VCard. infoButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { VCardManager vcard = SparkManager.getVCardManager(); vcard.viewProfile(participantJID, SparkManager.getChatManager().getChatContainer()); } }); // If this is a private chat from a group chat room, do not show toolbar. if (StringUtils.parseResource(participantJID).equals(participantNickname)) { getToolBar().setVisible(false); } typingTimer = new Timer(2000, new ActionListener() { public void actionPerformed(ActionEvent e) { long now = System.currentTimeMillis(); if (now - lastTypedCharTime > 2000) { if (!sendNotification) { // send cancel SparkManager.getMessageEventManager().sendCancelledNotification(getParticipantJID(), threadID); sendNotification = true; } } } }); typingTimer.start(); // Add message event request listener messageEventRequestListener = new ChatMessageEventRequestListener(); SparkManager.getMessageEventManager().addMessageEventRequestListener(messageEventRequestListener); lastActivity = System.currentTimeMillis(); // Add VCard Panel final VCardPanel vcardPanel = new VCardPanel(participantJID); getToolBar().add(vcardPanel, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 5, 5, 5), 0, 0)); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/2b67e7302b05b2cf189de97bd46023342930e7c6/ChatRoomImpl.java/clean/src/java/org/jivesoftware/spark/ui/rooms/ChatRoomImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16903,
13646,
2828,
12,
6385,
514,
14188,
46,
734,
16,
514,
14188,
29756,
529,
16,
514,
2077,
13,
288,
3639,
333,
18,
2680,
14265,
46,
734,
273,
14188,
46,
734,
31,
3639,
333,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16903,
13646,
2828,
12,
6385,
514,
14188,
46,
734,
16,
514,
14188,
29756,
529,
16,
514,
2077,
13,
288,
3639,
333,
18,
2680,
14265,
46,
734,
273,
14188,
46,
734,
31,
3639,
333,
18,... |
tuple[7] = null; tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); tuple[11] = r.getBytes(11); tuple[12] = r.getBytes(9); tuple[13] = null; tuple[14] = null; tuple[15] = tuple[6]; tuple[16] = r.getBytes(5); tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); | tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); | public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[ 0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[ 1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[ 2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[ 3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[ 4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[ 5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[ 6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[ 7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[ 8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[ 9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid,4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + " e.description " + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " )" + " left outer join pg_description e on" + " (" + " e.objoid = a.attrelid"); if (connection.haveMinimumServerVersion("7.2")) { sql.append( " and e.objsubid = a.attnum" + " and e.classoid = (select oid from pg_class where relname = \'pg_class\')"); } sql.append( " ) " + "order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = "".getBytes(); // Catalog name tuple[1] = "".getBytes(); // Schema name tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length tuple[8] = "0".getBytes(); // Decimal Digits - how to get this? tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); } | 52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/6b50f9af333a2795b82dd3331df55c7e703f1bea/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
5589,
331,
273,
394,
5589,
5621,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
5589,
331,
273,
394,
5589,
5621,
202... |
{ PixelsStatsEntry[] channelStats = new PixelsStatsEntry[pxsDims.sizeT]; for (int t = 0; t < pxsDims.sizeT; t++) channelStats[t] = pxsStats.getEntry(w, t); return channelStats; } | { PixelsStatsEntry[] channelStats = new PixelsStatsEntry[pxsDims.sizeT]; for (int t = 0; t < pxsDims.sizeT; t++) channelStats[t] = pxsStats.getEntry(w, t); return channelStats; } | PixelsStatsEntry[] getChannelStats(int w) { PixelsStatsEntry[] channelStats = new PixelsStatsEntry[pxsDims.sizeT]; for (int t = 0; t < pxsDims.sizeT; t++) channelStats[t] = pxsStats.getEntry(w, t); return channelStats; } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/RenderingAgt.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgt.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
18079,
4195,
1622,
8526,
16454,
4195,
12,
474,
341,
13,
202,
95,
202,
202,
18079,
4195,
1622,
8526,
1904,
4195,
273,
394,
26070,
87,
4195,
1622,
63,
4430,
87,
25006,
18,
1467,
56,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
18079,
4195,
1622,
8526,
16454,
4195,
12,
474,
341,
13,
202,
95,
202,
202,
18079,
4195,
1622,
8526,
1904,
4195,
273,
394,
26070,
87,
4195,
1622,
63,
4430,
87,
25006,
18,
1467,
56,
... |
public ExprVec checkRequiresVec(RoutineDecl rd) { ExprVec g = ExprVec.make(); requiresDecoration.set(rd, g); TypeSig s = TypeSig.getSig(rd.parent); Assert.precondition(s.state >= TypeSig.PREPPED); // Set up variables for entire traversal sig = s; rootSEnv = makeEnvForTypeSig(s, true); //@ nowarn Invariant rootIEnv = makeEnvForTypeSig(s, false); //@ nowarn Invariant boolean staticContext = Modifiers.isStatic(rd.modifiers); // 10/28 Env env = addGhosts(sig, staticContext ? rootSEnv : rootIEnv); TypeDecl d = s.getTypeDecl(); // Process ModifierPragmas checkModifierPragmaVec( d.pmodifiers, d, env ); leftToRight = false; // add params for(int j = 0; j < rd.args.size(); j++) { FormalParaDecl formal = rd.args.elementAt(j); PrepTypeDeclaration.inst. checkModifiers(formal.modifiers, Modifiers.ACC_FINAL, formal.getStartLoc(), "formal parameter" ); checkModifierPragmaVec( formal.pmodifiers, formal, env ); env = new EnvForLocals(env, formal); } super.checkModifierPragmaVec( rd.pmodifiers, rd, env ); // check overridden expr ved if (rd instanceof MethodDecl) { MethodDecl md = (MethodDecl)rd; Set methods = javafe.tc.PrepTypeDeclaration.inst.getOverrides(md); Enumeration e = methods.elements(); while (e.hasMoreElements()) { MethodDecl m = (MethodDecl)e.nextElement(); ExprVec superExpressions = (ExprVec)getRequiresVec(m); ExprVec expressions = (ExprVec)requiresDecoration.get(rd); for (int i = 0; i < expressions.size(); i++) { Expr expr = expressions.elementAt(i); if (!equality.contains(superExpressions, expr)) { int pragmaLoc = getLocInPragmas(expr, rd.pmodifiers); ErrorMsg.print(sig, "Super", rd.locId,"", pragmaLoc); } } } } return g; } | 46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/da3049db1eb4330268b3c4bcabb61e7ecd42804f/FlowInsensitiveChecks.java/buggy/src/escjava/trunk/ESCTools/Rcc/java/rcc/tc/FlowInsensitiveChecks.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8074,
12991,
866,
21671,
12991,
12,
4583,
558,
3456,
9437,
13,
288,
3639,
8074,
12991,
314,
273,
8074,
12991,
18,
6540,
5621,
7734,
4991,
7859,
367,
18,
542,
12,
13623,
16,
314,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8074,
12991,
866,
21671,
12991,
12,
4583,
558,
3456,
9437,
13,
288,
3639,
8074,
12991,
314,
273,
8074,
12991,
18,
6540,
5621,
7734,
4991,
7859,
367,
18,
542,
12,
13623,
16,
314,
176... | ||
if (WorkbenchLayout.layoutComposite != null) | if (WorkbenchLayout.layoutComposite != null) { | public Point computeSize(int wHint, int hHint, boolean changed) { // If we're doing a 'real' workbench layout then delegate to the // appropriate trim area if (WorkbenchLayout.layoutComposite != null) return WorkbenchLayout.this.computeSize(TRIMID_CMD_PRIMARY, wHint); return super.computeSize(wHint, hHint, changed); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
4686,
3671,
1225,
12,
474,
341,
7002,
16,
509,
366,
7002,
16,
1250,
3550,
13,
288,
9506,
202,
759,
971,
732,
4565,
9957,
279,
296,
7688,
11,
1440,
22144,
3511,
1508,
7152,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
4686,
3671,
1225,
12,
474,
341,
7002,
16,
509,
366,
7002,
16,
1250,
3550,
13,
288,
9506,
202,
759,
971,
732,
4565,
9957,
279,
296,
7688,
11,
1440,
22144,
3511,
1508,
7152,
35... |
case ConstructorId_UTC: case ConstructorId_parse: case Id_constructor: case Id_setTime: case Id_setMilliseconds: case Id_setUTCMilliseconds: case Id_setDate: case Id_setUTCDate: case Id_setYear: return 1; case Id_setSeconds: case Id_setUTCSeconds: case Id_setMonth: case Id_setUTCMonth: return 2; case Id_setMinutes: case Id_setUTCMinutes: case Id_setFullYear: case Id_setUTCFullYear: return 3; case Id_setHours: case Id_setUTCHours: return 4; | case ConstructorId_UTC: return 1; case ConstructorId_parse: 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_toGMTString: return 0; case Id_toUTCString: 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; | public int methodArity(int methodId, IdFunction function) { switch (methodId) { case ConstructorId_UTC: case ConstructorId_parse: case Id_constructor: case Id_setTime: case Id_setMilliseconds: case Id_setUTCMilliseconds: case Id_setDate: case Id_setUTCDate: case Id_setYear: return 1; case Id_setSeconds: case Id_setUTCSeconds: case Id_setMonth: case Id_setUTCMonth: return 2; case Id_setMinutes: case Id_setUTCMinutes: case Id_setFullYear: case Id_setUTCFullYear: return 3; case Id_setHours: case Id_setUTCHours: return 4; } return 0; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/bd685b66b27ece754b26c9606fd2a85effa1567d/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
16,
3124,
2083,
445,
13,
288,
3639,
1620,
261,
2039,
548,
13,
288,
3639,
648,
11417,
548,
67,
11471,
30,
3639,
648,
11417,
548,
67,
2670,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16,
3124,
2083,
445,
13,
288,
3639,
1620,
261,
2039,
548,
13,
288,
3639,
648,
11417,
548,
67,
11471,
30,
3639,
648,
11417,
548,
67,
2670,
... |
null, "", null); | null, "", null); | protected IASTExpression pmExpression(IASTScope scope) throws EndOfFileException, BacktrackException { IASTExpression firstExpression = castExpression(scope); for (;;) { switch (LT(1)) { case IToken.tDOTSTAR : case IToken.tARROWSTAR : IToken t = consume(); IASTExpression secondExpression = castExpression(scope); try { firstExpression = astFactory.createExpression( scope, ((t.getType() == IToken.tDOTSTAR) ? IASTExpression.Kind.PM_DOTSTAR : IASTExpression.Kind.PM_ARROWSTAR), firstExpression, secondExpression, null, null, null, "", null); } catch (ASTSemanticException e) { throw backtrack; } catch (Exception e) { throw backtrack; } break; default : return firstExpression; } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/95f42aeb9e7f38db093795981bd7c7300a3eeeb6/ExpressionParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9053,
2300,
7430,
2300,
12,
45,
9053,
3876,
2146,
13,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
565,
467,
9053,
2300,
1122,
2300,
273,
4812,
2300,
12,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
9053,
2300,
7430,
2300,
12,
45,
9053,
3876,
2146,
13,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
565,
467,
9053,
2300,
1122,
2300,
273,
4812,
2300,
12,
48... |
sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + " e.description " + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); | String query = "select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid" : "a.oid") + ",c.relname,a.attname,a.atttypid," + "a.attnum,a.attnotnull,a.attlen,a.atttypmod,d.adsrc " + "from (pg_class c inner join pg_attribute a " + "on (c.oid=a.attrelid) ) " + "left outer join pg_attrdef d " + "on (c.oid=d.adrelid and d.adnum=a.attnum) " + "where " + "c.relname like '"+tableNamePattern.toLowerCase()+"' and " + "a.attname like '"+columnNamePattern.toLowerCase()+"' and " + "a.attnum>0 " + "order by c.relname,a.attnum"; | public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[ 0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[ 1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[ 2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[ 3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[ 4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[ 5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[ 6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[ 7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[ 8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[ 9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid,4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + " e.description " + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " )" + " left outer join pg_description e on" + " (" + " e.objoid = a.attrelid"); if (connection.haveMinimumServerVersion("7.2")) { sql.append( " and e.objsubid = a.attnum" + " and e.classoid = (select oid from pg_class where relname = \'pg_class\')"); } sql.append( " ) " + "order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = "".getBytes(); // Catalog name tuple[1] = "".getBytes(); // Schema name tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length tuple[8] = "0".getBytes(); // Decimal Digits - how to get this? tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); } | 52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/6b50f9af333a2795b82dd3331df55c7e703f1bea/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
5589,
331,
273,
394,
5589,
5621,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
225,
288,
565,
5589,
331,
273,
394,
5589,
5621,
202... |
if ("WORK".equals(element.getParentNode().getFirstChild().getNodeName())) { | if ("HOME".equals(element.getParentNode().getFirstChild().getNodeName())) { vCard.setEmailHome(getTextContent(element)); } else { | private void setupEmails() { NodeList nodes = document.getElementsByTagName("USERID"); for (int i = 0; i < nodes.getLength(); i++) { Element element = (Element) nodes.item(i); if ("WORK".equals(element.getParentNode().getFirstChild().getNodeName())) { vCard.setEmailWork(getTextContent(element)); } else { vCard.setEmailHome(getTextContent(element)); } } } | 1538 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1538/f8bbe118b474ac928f5235210ce8d75dd4d6d09a/VCardProvider.java/buggy/source/org/jivesoftware/smackx/provider/VCardProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3875,
26614,
1435,
288,
5411,
16781,
2199,
273,
1668,
18,
588,
3471,
10401,
2932,
4714,
734,
8863,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2199,
18,
588,
1782,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3875,
26614,
1435,
288,
5411,
16781,
2199,
273,
1668,
18,
588,
3471,
10401,
2932,
4714,
734,
8863,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2199,
18,
588,
1782,
5621,
... |
protected VM_Member(VM_Class declaringClass, VM_Atom name, VM_Atom descriptor, int dictionaryId) { this.declaringClass = declaringClass; this.name = name; this.descriptor = descriptor; this.dictionaryId = dictionaryId; } | protected VM_Member() { } | protected VM_Member(VM_Class declaringClass, VM_Atom name, VM_Atom descriptor, int dictionaryId) { this.declaringClass = declaringClass; this.name = name; this.descriptor = descriptor; this.dictionaryId = dictionaryId; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/40e21dc6ed844793c7ae07ad49c4ba40eadcacf4/VM_Member.java/clean/rvm/src/vm/classLoader/VM_Member.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
8251,
67,
4419,
12,
7397,
67,
797,
3496,
14682,
16,
8251,
67,
3641,
508,
16,
1875,
1377,
8251,
67,
3641,
4950,
16,
509,
3880,
548,
13,
288,
565,
333,
18,
8840,
14682,
273,
3496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8251,
67,
4419,
12,
7397,
67,
797,
3496,
14682,
16,
8251,
67,
3641,
508,
16,
1875,
1377,
8251,
67,
3641,
4950,
16,
509,
3880,
548,
13,
288,
565,
333,
18,
8840,
14682,
273,
3496,
... |
X509Certificate getCertificate(Attributes attributes) throws CertificateException, NamingException; | X509Certificate getCertificate(Attributes attributes) throws CertificateException, NamingException; | X509Certificate getCertificate(Attributes attributes) throws CertificateException, NamingException; | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/b54b1ee53f4d932472a3a428ed6684294f4f2bf9/CertDirectoryServiceCA.java/clean/securityservices/src/org/cougaar/core/security/crypto/ldap/CertDirectoryServiceCA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1139,
5995,
4719,
27653,
12,
2498,
1677,
13,
1216,
29551,
16,
26890,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1139,
5995,
4719,
27653,
12,
2498,
1677,
13,
1216,
29551,
16,
26890,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
setSize(width, height); | this.width = width; this.height = height; | public void resize(int width, int height) { setSize(width, height); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/ae8c30ebd4d7b20832df50745efebf628509add4/Rectangle.java/clean/java/awt/Rectangle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7041,
12,
474,
1835,
16,
509,
2072,
13,
225,
288,
565,
333,
18,
2819,
273,
1835,
31,
333,
18,
4210,
273,
2072,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7041,
12,
474,
1835,
16,
509,
2072,
13,
225,
288,
565,
333,
18,
2819,
273,
1835,
31,
333,
18,
4210,
273,
2072,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
this.txtNumerator.setEnabled( enabled | this.spnNumerator.setEnabled( enabled | public void setEnabled( boolean enabled ) { this.btnApproximate.setSelection( !getFormatSpecifier( ).isPrecise( ) ); this.btnApproximate.setEnabled( enabled ); this.txtDelimiter.setEnabled( enabled ); this.txtPrefix.setEnabled( enabled ); this.txtSuffix.setEnabled( enabled ); this.btnUseNumerator.setEnabled( enabled && btnApproximate.getSelection( ) ); this.btnUseDenorminator.setEnabled( enabled && btnApproximate.getSelection( ) ); if ( getFormatSpecifier( ).getNumerator( ) > 0 ) { this.btnUseNumerator.setSelection( true ); } else { this.btnUseDenorminator.setSelection( true ); } this.txtNumerator.setEnabled( enabled && btnApproximate.getSelection( ) && btnUseNumerator.getSelection( ) ); this.iscFractionDigits.setEnabled( enabled && btnApproximate.getSelection( ) && btnUseDenorminator.getSelection( ) ); super.setEnabled( enabled ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/2ad0f26f0a3c46f54066f852dc55a774ff5a1072/FormatSpecifierComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
12888,
12,
1250,
3696,
262,
202,
202,
95,
1082,
202,
2211,
18,
11898,
25789,
4988,
18,
542,
6233,
12,
401,
588,
1630,
21416,
12,
262,
18,
291,
1386,
30708,
12,
262,
1127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
12888,
12,
1250,
3696,
262,
202,
202,
95,
1082,
202,
2211,
18,
11898,
25789,
4988,
18,
542,
6233,
12,
401,
588,
1630,
21416,
12,
262,
18,
291,
1386,
30708,
12,
262,
1127... |
if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((DefaultMutableTreeNode) node).getLevel()) * rightChildIndent), y); return new Point(x + ((((DefaultMutableTreeNode) node).getLevel() + 1) * rightChildIndent), y); | if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((DefaultMutableTreeNode) node).getLevel()) * rightChildIndent), y); return new Point(x + ((((DefaultMutableTreeNode) node).getLevel() + 1) * rightChildIndent), y); | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) return new Point(x + ((((DefaultMutableTreeNode) node).getLevel()) * rightChildIndent), y); return new Point(x + ((((DefaultMutableTreeNode) node).getLevel() + 1) * rightChildIndent), y); } if (!mod.isLeaf(startNode) && tree.isExpanded(new TreePath( ((DefaultMutableTreeNode) startNode).getPath()))) { Object child = mod.getChild(startNode, 0); if (child != null) return getCellLocation(x, y + rowHeight, tree, mod, node, child); } return getCellLocation(x, y + rowHeight, tree, mod, node, getNextVisibleNode((DefaultMutableTreeNode) startNode)); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/f5ca4b7d89f5302860ae8a91105c0afc2b7b0e35/BasicTreeUI.java/buggy/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4686,
16458,
2735,
12,
474,
619,
16,
509,
677,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
540,
1033,
756,
16,
1033,
25467,
13,
282,
288,
1377,
509,
1027,
2686,
273,
11835,
2686,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4686,
16458,
2735,
12,
474,
619,
16,
509,
677,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
540,
1033,
756,
16,
1033,
25467,
13,
282,
288,
1377,
509,
1027,
2686,
273,
11835,
2686,
5621... |
return value instanceof Byte && ((Byte) value).byteValue() == 0; | return value instanceof Byte && ((Byte) value) == 0; | private static boolean isZero(PsiExpression expression, PsiType expressionType) { final Object value = ConstantExpressionUtil.computeCastTo(expression, expressionType); if (value == null) { return false; } if (value instanceof Integer && ((Integer) value).intValue() == 0) { return true; } if (value instanceof Long && ((Long) value).longValue() == 0L) { return true; } if (value instanceof Short && ((Short) value).shortValue() == 0) { return true; } if (value instanceof Character && ((Character) value).charValue() == 0) { return true; } return value instanceof Byte && ((Byte) value).byteValue() == 0; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/2d46d291193579a7564649b4881c7ea8e02eda5b/PointlessBitwiseExpressionInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/PointlessBitwiseExpressionInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
353,
7170,
12,
52,
7722,
2300,
2652,
16,
453,
7722,
559,
2652,
559,
13,
288,
3639,
727,
1033,
460,
273,
10551,
2300,
1304,
18,
9200,
9735,
774,
12,
8692,
16,
2652,
559,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
7170,
12,
52,
7722,
2300,
2652,
16,
453,
7722,
559,
2652,
559,
13,
288,
3639,
727,
1033,
460,
273,
10551,
2300,
1304,
18,
9200,
9735,
774,
12,
8692,
16,
2652,
559,... |
if (leftToRead != 0) { if ((Math.min (2 + leftToRead, 32767)) > (bytes.length - offset)) { try { sendBytes (agent.getOutputStream()); } catch (java.io.IOException ioe) { agent.markCommunicationsFailure ("DDMWriter.flushScalarStreamSegment()", | if (leftToRead != 0) { if ((Math.min (2 + leftToRead, 32767)) > (bytes.length - offset)) { try { markDssAsContinued(true); sendBytes (agent.getOutputStream()); } catch (java.io.IOException ioe) { agent.markCommunicationsFailure ("DDMWriter.flushScalarStreamSegment()", | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) > (bytes.length - offset)) { try { sendBytes (agent.getOutputStream()); } catch (java.io.IOException ioe) { agent.markCommunicationsFailure ("DDMWriter.flushScalarStreamSegment()", "", ioe.getMessage(), "*"); } } dssLengthLocation = offset; bytes[offset++] = (byte) (0xff); bytes[offset++] = (byte) (0xff); newBytesToRead = Math.min (leftToRead,32765); } return newBytesToRead; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/d79abcf32a77e90643667b3a117c7e00356e920f/DDMWriter.java/clean/java/drda/org/apache/derby/impl/drda/DDMWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
3663,
13639,
1228,
4131,
261,
474,
2002,
23321,
16,
6862,
6862,
1082,
202,
474,
1731,
23321,
13,
202,
202,
15069,
16801,
9793,
5752,
503,
225,
288,
202,
225,
509,
394,
216... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
3663,
13639,
1228,
4131,
261,
474,
2002,
23321,
16,
6862,
6862,
1082,
202,
474,
1731,
23321,
13,
202,
202,
15069,
16801,
9793,
5752,
503,
225,
288,
202,
225,
509,
394,
216... |
new DataInputStream(fs.open(new File(DATA_DIR, name))); | new DataInputStream(fs.open(new Path(DATA_DIR, name))); | public void map(WritableComparable key, Writable value, OutputCollector collector, Reporter reporter) throws IOException { String name = ((UTF8)key).toString(); long size = ((LongWritable)value).get(); long seed = Long.parseLong(name); random.setSeed(seed); reporter.setStatus("opening " + name); DataInputStream in = new DataInputStream(fs.open(new File(DATA_DIR, name))); long read = 0; try { while (read < size) { long remains = size - read; int n = (remains<=buffer.length) ? (int)remains : buffer.length; in.readFully(buffer, 0, n); read += n; if (fastCheck) { Arrays.fill(check, (byte)random.nextInt(Byte.MAX_VALUE)); } else { random.nextBytes(check); } if (n != buffer.length) { Arrays.fill(buffer, n, buffer.length, (byte)0); Arrays.fill(check, n, check.length, (byte)0); } assertTrue(Arrays.equals(buffer, check)); reporter.setStatus("reading "+name+"@"+read+"/"+size); } } finally { in.close(); } collector.collect(new UTF8("bytes"), new LongWritable(read)); reporter.setStatus("read " + name); } | 49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/ee01fef4b4fb82c7492a4a747793839a4d14cd39/TestFileSystem.java/clean/src/test/org/apache/hadoop/fs/TestFileSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
852,
12,
12061,
799,
10207,
498,
16,
14505,
460,
16,
10792,
3633,
7134,
8543,
16,
25585,
11528,
13,
1377,
1216,
1860,
288,
1377,
514,
508,
273,
14015,
5159,
28,
13,
856,
2934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
852,
12,
12061,
799,
10207,
498,
16,
14505,
460,
16,
10792,
3633,
7134,
8543,
16,
25585,
11528,
13,
1377,
1216,
1860,
288,
1377,
514,
508,
273,
14015,
5159,
28,
13,
856,
2934,
... |
return ( new Character( text.charAt( 0 ) ) ); } else if ( type == Short.class || type == short.class) { | return (new Character( text.charAt( 0 ) )); } else if ( type == Short.class || type == short.class ) { | private Object convert(String text, Class type) { if ( type == Integer.class || type == int.class) { return new Integer( text ) ; } else if ( text == "null" ) { return null; } else if ( type == Character.class || type == char.class ) { return ( new Character( text.charAt( 0 ) ) ); } else if ( type == Short.class || type == short.class) { return new Short( text ); } else if ( type == Long.class || type == long.class ) { return new Long( text ); } else if ( type == Float.class || type == float.class) { return new Float( text ); } else if ( type == Double.class || type == double.class) { return new Double( text ); } else if ( type == Boolean.class || type == boolean.class) { return new Boolean( text ); } else if ( type == Date.class ) { return DateFactory.parseDate( text ); } else if ( type == BigDecimal.class ) { return new BigDecimal(text); } else if ( type == BigInteger.class ) { return new BigInteger(text); } else { throw new IllegalArgumentException("Unable to convert [" + text + "] to type: [" + type.getName() + "]"); } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/952fcbc554d440f1b636c24be032d12e62bbd038/MethodDataProvider.java/clean/drools-core/src/main/java/org/drools/base/dataproviders/MethodDataProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
1765,
12,
780,
977,
16,
21821,
1659,
618,
13,
288,
3639,
309,
261,
618,
422,
2144,
18,
1106,
747,
618,
422,
509,
18,
1106,
13,
288,
5411,
327,
394,
2144,
12,
977,
262,
274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
1765,
12,
780,
977,
16,
21821,
1659,
618,
13,
288,
3639,
309,
261,
618,
422,
2144,
18,
1106,
747,
618,
422,
509,
18,
1106,
13,
288,
5411,
327,
394,
2144,
12,
977,
262,
274... |
Routable r = (Routable)i.next(); if (filter == null || filter.accept(r)) | MessageReference r = (MessageReference)i.next(); if (filter == null || filter.accept(r.getMessage())) | public List undelivered(Filter filter) { if (log.isTraceEnabled()) { log.trace("Getting undelivered unreliable messages"); } List undelivered = new ArrayList(); synchronized(messageRefs) { for(Iterator i = messageRefs.iterator(); i.hasNext(); ) { Routable r = (Routable)i.next(); if (filter == null || filter.accept(r)) { if (log.isTraceEnabled()) { log.trace("Accepted by filter so adding to list"); } undelivered.add(r); } else { if (log.isTraceEnabled()) { log.trace("NOT Accepted by filter so not adding to list"); } } } } if (log.isTraceEnabled()) { log.trace("I have " + undelivered.size() + " undelivered messages"); } return undelivered; } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/96f752d06dba37742f7716ee54f31f1982df763e/UnreliableState.java/buggy/src/main/org/jboss/messaging/core/UnreliableState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
987,
640,
26672,
329,
12,
1586,
1034,
13,
282,
288,
1377,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
1377,
288,
540,
613,
18,
5129,
2932,
19213,
640,
26672,
329,
640,
266,
549,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
987,
640,
26672,
329,
12,
1586,
1034,
13,
282,
288,
1377,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
1377,
288,
540,
613,
18,
5129,
2932,
19213,
640,
26672,
329,
640,
266,
549,
4... |
Item item; String sell, sold; Collection currentItemList, pastItemList; | Item item; StringBuffer sell = new StringBuffer(); Collection currentItemList, pastItemList; | public String listItem(Integer userId, ItemHome iHome) { Item item; String sell, sold; Collection currentItemList, pastItemList; try { currentItemList = iHome.findUserCurrentSellings(userId); pastItemList = iHome.findUserPastSellings(userId); } catch (Exception e) { throw new EJBException("Exception getting item list: " +e+"<br>"); } if ((currentItemList == null) || (currentItemList.isEmpty())) { sell = "<br>"; sell = sell.concat(printHTMLHighlighted("<h3>You are currently selling no item.</h3>")); } else { // display current sellings try { sell = printSellHeader("Items you are currently selling."); Iterator it = currentItemList.iterator(); while (it.hasNext()) { // Get the name of the items item = (Item)it.next(); // display information about the item sell = sell.concat(item.printSell()); } sell = sell.concat(printItemFooter()); } catch (Exception e) { throw new EJBException("Exception getting item: " + e +"<br>"); } } if ((pastItemList == null) || (pastItemList.isEmpty())) { sold = "<br>"; sold = sold.concat("<h3>You didn't sell any item.</h3>"); return sell.concat(sold); } // display past sellings sold = "<br>"; sold = sold.concat(printSellHeader("Items you sold in the last 30 days.")); try { Iterator it = pastItemList.iterator(); while (it.hasNext()) { // Get the name of the items item = (Item)it.next(); // display information about the item sold = sold.concat(item.printSell()); } sold = sold.concat(printItemFooter()); } catch (Exception e) { throw new EJBException("Exception getting item: " + e +"<br>"); } return sell.concat(sold); } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/69c37257a1581e015b5a8a01582a0f0d4a10936c/SB_AboutMeBean.java/buggy/EJB_Session_facade/edu/rice/rubis/beans/SB_AboutMeBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
19859,
12,
4522,
6249,
16,
4342,
8684,
277,
8684,
13,
282,
288,
565,
4342,
4202,
761,
31,
565,
514,
377,
357,
80,
16,
272,
1673,
31,
565,
2200,
27471,
682,
16,
8854,
1180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
19859,
12,
4522,
6249,
16,
4342,
8684,
277,
8684,
13,
282,
288,
565,
4342,
4202,
761,
31,
565,
514,
377,
357,
80,
16,
272,
1673,
31,
565,
2200,
27471,
682,
16,
8854,
1180,
... |
assertEquals("3", taskscape.getActiveNode().getElementHandle()); | assertEquals("2", taskscape.getActiveNode().getElementHandle()); | public void testExternalization() { TaskscapeExternalizer externalizer = new TaskscapeExternalizer(); String path = "test-taskscape.xml"; File file = new File(path); file.deleteOnExit(); ITaskscapeNode node = taskscape.parseEvent(mockSelection("1")); taskscape.parseEvent(mockNavigation("2")); ITaskscapeEdge edge = node.getEdge("2"); assertNotNull(edge); assertEquals(1, node.getEdges().size()); taskscape.parseEvent(mockInterestContribution("3", scaling.getLandmark() + scaling.getDecay().getValue()*3));// System.err.println(doi); assertTrue("interest: " + taskscape.get("3").getDegreeOfInterest().getValue(), taskscape.get("3").getDegreeOfInterest().isLandmark()); float doi = node.getDegreeOfInterest().getValue(); assertNotNull(taskscape.getLandmarks()); assertEquals("3", taskscape.getActiveNode().getElementHandle()); externalizer.writeXMLTaskscapeToFile(taskscape, file); ITaskscape loaded = externalizer.readXMLTaskscapeFromFile(file); assertNotNull(loaded); assertEquals(3, loaded.getInteractionHistory().size()); ITaskscapeNode loadedNode = loaded.get("1"); ITaskscapeEdge edgeNode = loadedNode.getEdge("2"); assertNotNull(edgeNode); assertEquals(1, loadedNode.getEdges().size()); ITaskscapeNode landmark = loaded.get("3"); assertNotNull(loadedNode); assertEquals(doi, loadedNode.getDegreeOfInterest().getValue()); assertTrue(landmark.getDegreeOfInterest().isLandmark()); assertNotNull(loaded.getLandmarks()); assertEquals("3", loaded.getActiveNode().getElementHandle()); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/cd6e5fc752f07083b116da0342375f31a5d5b95e/TaskscapeTest.java/clean/org.eclipse.mylyn.context.tests/src/org/eclipse/mylyn/core/tests/TaskscapeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6841,
1588,
1435,
288,
3639,
3837,
12476,
6841,
1824,
3903,
1824,
273,
394,
3837,
12476,
6841,
1824,
5621,
3639,
514,
589,
273,
315,
3813,
17,
4146,
12476,
18,
2902,
14432,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6841,
1588,
1435,
288,
3639,
3837,
12476,
6841,
1824,
3903,
1824,
273,
394,
3837,
12476,
6841,
1824,
5621,
3639,
514,
589,
273,
315,
3813,
17,
4146,
12476,
18,
2902,
14432,... |
return userParams ; } | return userParams ; } | public Properties getUserParameters(imcode.server.User user) { Properties userParams= new Properties() ; userParams.setProperty("USER_ID", user.getString("user_id")) ; userParams.setProperty("LOGIN_NAME", user.getString("login_name")) ; userParams.setProperty("LOGIN_PASSWORD", user.getString("login_password")) ; userParams.setProperty("FIRST_NAME", user.getString("first_name")) ; userParams.setProperty("LAST_NAME", user.getString("last_name")) ; userParams.setProperty("ADDRESS", user.getString("address")) ; userParams.setProperty("CITY", user.getString("city")) ; userParams.setProperty("ZIP", user.getString("zip")) ; userParams.setProperty("COUNTRY", user.getString("country")) ; userParams.setProperty("COUNTY_COUNCIL", user.getString("county_council")) ; userParams.setProperty("EMAIL", user.getString("email")) ; userParams.setProperty("ADMIN_MODE", user.getString("admin_mode")) ; userParams.setProperty("LAST_PAGE", user.getString("last_page")) ; userParams.setProperty("ARCHIVE_MODE", user.getString("archive_mode")) ; userParams.setProperty("USER_TYPE", user.getString("user_type")) ; userParams.setProperty("LOGIN_TYPE", user.getLoginType()) ; //userParams.setProperty("LANG_ID", user.getString("lang_id")) ; // log("GetUserParameters: " + userParams.toString()) ; return userParams ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/BillBoard.java/buggy/servlets/billBoard/BillBoard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6183,
4735,
2402,
12,
381,
710,
18,
3567,
18,
1299,
729,
13,
202,
95,
202,
202,
2297,
729,
1370,
33,
394,
6183,
1435,
274,
202,
202,
1355,
1370,
18,
542,
1396,
2932,
4714,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6183,
4735,
2402,
12,
381,
710,
18,
3567,
18,
1299,
729,
13,
202,
95,
202,
202,
2297,
729,
1370,
33,
394,
6183,
1435,
274,
202,
202,
1355,
1370,
18,
542,
1396,
2932,
4714,
6... |
if (event.stateMask == SWT.CTRL && event.keyCode == 0 && event.character == 0x20 && fContentAssistAction.isEnabled()) { fContentAssistAction.run(); event.doit= false; | if (event.stateMask == SWT.CTRL && event.keyCode == 0) { if (event.character == 0x20 && fContentAssistAction.isEnabled()) { fContentAssistAction.run(); event.doit= false; } if (event.character == 0x4 && fDisplayAction.isEnabled()) { fDisplayAction.run(); event.doit= false; } if (event.character == 0x11 && fInspectAction.isEnabled()) { fInspectAction.run(); event.doit= false; } | public void verifyKey(VerifyEvent event) { //do code assist for CTRL-SPACE if (event.stateMask == SWT.CTRL && event.keyCode == 0 && event.character == 0x20 && fContentAssistAction.isEnabled()) { fContentAssistAction.run(); event.doit= false; } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/7e5a2d9d7a49222d70478fa6dffad39d9511c9b3/DisplayView.java/clean/org.eclipse.jdt.ui/ui debug/org/eclipse/jdt/internal/debug/ui/display/DisplayView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3929,
653,
12,
8097,
1133,
871,
13,
288,
9506,
202,
759,
2896,
981,
1551,
376,
364,
31568,
48,
17,
6616,
9506,
202,
430,
261,
2575,
18,
2019,
5796,
422,
348,
8588,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3929,
653,
12,
8097,
1133,
871,
13,
288,
9506,
202,
759,
2896,
981,
1551,
376,
364,
31568,
48,
17,
6616,
9506,
202,
430,
261,
2575,
18,
2019,
5796,
422,
348,
8588,
18,
... |
public EndEntityProfile getEndEntityProfile(Admin admin, int id); | public EndEntityProfile getEndEntityProfile(Admin admin, String profilename); | public EndEntityProfile getEndEntityProfile(Admin admin, int id); | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/3645e48069090950c07fac5dff3cbbefb44aa8b9/IRaAdminSessionLocal.java/clean/src/java/se/anatom/ejbca/ra/raadmin/IRaAdminSessionLocal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4403,
1943,
4029,
9968,
1943,
4029,
12,
4446,
3981,
16,
509,
612,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4403,
1943,
4029,
9968,
1943,
4029,
12,
4446,
3981,
16,
509,
612,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (IDialogConstants.HELP_LABEL.equals(buttonLabel)) return IDialogConstants.HELP_ID; | if (IDialogConstants.HELP_LABEL.equals(buttonLabel)) { return IDialogConstants.HELP_ID; } | private int mapButtonLabelToButtonID(String buttonLabel, int defaultId) { // Not pretty but does the job... if (IDialogConstants.OK_LABEL.equals(buttonLabel)) return IDialogConstants.OK_ID; if (IDialogConstants.YES_LABEL.equals(buttonLabel)) return IDialogConstants.YES_ID; if (IDialogConstants.NO_LABEL.equals(buttonLabel)) return IDialogConstants.NO_ID; if (IDialogConstants.CANCEL_LABEL.equals(buttonLabel)) return IDialogConstants.CANCEL_ID; if (IDialogConstants.YES_TO_ALL_LABEL.equals(buttonLabel)) return IDialogConstants.YES_TO_ALL_ID; if (IDialogConstants.SKIP_LABEL.equals(buttonLabel)) return IDialogConstants.SKIP_ID; if (IDialogConstants.STOP_LABEL.equals(buttonLabel)) return IDialogConstants.STOP_ID; if (IDialogConstants.ABORT_LABEL.equals(buttonLabel)) return IDialogConstants.ABORT_ID; if (IDialogConstants.RETRY_LABEL.equals(buttonLabel)) return IDialogConstants.RETRY_ID; if (IDialogConstants.IGNORE_LABEL.equals(buttonLabel)) return IDialogConstants.IGNORE_ID; if (IDialogConstants.PROCEED_LABEL.equals(buttonLabel)) return IDialogConstants.PROCEED_ID; if (IDialogConstants.OPEN_LABEL.equals(buttonLabel)) return IDialogConstants.OPEN_ID; if (IDialogConstants.CLOSE_LABEL.equals(buttonLabel)) return IDialogConstants.CLOSE_ID; if (IDialogConstants.BACK_LABEL.equals(buttonLabel)) return IDialogConstants.BACK_ID; if (IDialogConstants.NEXT_LABEL.equals(buttonLabel)) return IDialogConstants.NEXT_ID; if (IDialogConstants.FINISH_LABEL.equals(buttonLabel)) return IDialogConstants.FINISH_ID; if (IDialogConstants.HELP_LABEL.equals(buttonLabel)) return IDialogConstants.HELP_ID; if (IDialogConstants.NO_TO_ALL_LABEL.equals(buttonLabel)) return IDialogConstants.NO_TO_ALL_ID; // No XXX_LABEL in IDialogConstants for these. Unlikely // they would be used in a message dialog though. // public int DETAILS_ID = 13; // public int SELECT_ALL_ID = 18; // public int DESELECT_ALL_ID = 19; // public int SELECT_TYPES_ID = 20; return defaultId; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/391f2606b4ea2c1fb5052d938ca90877ee7631f6/MessageDialogWithToggle.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/MessageDialogWithToggle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
852,
3616,
2224,
774,
3616,
734,
12,
780,
3568,
2224,
16,
509,
805,
548,
13,
288,
377,
202,
759,
2288,
7517,
1496,
1552,
326,
1719,
2777,
377,
202,
430,
261,
734,
3529,
2918,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
852,
3616,
2224,
774,
3616,
734,
12,
780,
3568,
2224,
16,
509,
805,
548,
13,
288,
377,
202,
759,
2288,
7517,
1496,
1552,
326,
1719,
2777,
377,
202,
430,
261,
734,
3529,
2918,... |
protected ObjectMetaClass(String name, Class builtinClass, RubyClass superClass) { this(name, builtinClass, superClass, superClass.getRuntime().getClass("Object").getCRef()); | public ObjectMetaClass(IRuby runtime) { super(runtime, null /*Would be Class if it existed yet */, null, null, "Object"); this.builtinClass = RubyObject.class; | protected ObjectMetaClass(String name, Class builtinClass, RubyClass superClass) { this(name, builtinClass, superClass, superClass.getRuntime().getClass("Object").getCRef()); } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/2f26287204a60f3482021698ff241ebc949d5d25/ObjectMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/ObjectMetaClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
14648,
797,
12,
780,
508,
16,
1659,
15273,
797,
16,
19817,
797,
18846,
13,
288,
3639,
333,
12,
529,
16,
15273,
797,
16,
18846,
16,
18846,
18,
588,
5576,
7675,
588,
797,
2932,
921,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
14648,
797,
12,
780,
508,
16,
1659,
15273,
797,
16,
19817,
797,
18846,
13,
288,
3639,
333,
12,
529,
16,
15273,
797,
16,
18846,
16,
18846,
18,
588,
5576,
7675,
588,
797,
2932,
921,... |
Enumeration e = Collections.enumeration(v); Vector tmp = new Vector(); for (; e.hasMoreElements();) tmp.add(e.nextElement()); contents = tmp; | protected void sort(Vector v) { Collections.sort(v, comparator); Enumeration e = Collections.enumeration(v); Vector tmp = new Vector(); for (; e.hasMoreElements();) tmp.add(e.nextElement()); contents = tmp; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicDirectoryModel.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicDirectoryModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1524,
12,
5018,
331,
13,
225,
288,
565,
5737,
18,
3804,
12,
90,
16,
8862,
1769,
565,
13864,
425,
273,
5737,
18,
7924,
7067,
12,
90,
1769,
565,
5589,
1853,
273,
394,
5589,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1524,
12,
5018,
331,
13,
225,
288,
565,
5737,
18,
3804,
12,
90,
16,
8862,
1769,
565,
13864,
425,
273,
5737,
18,
7924,
7067,
12,
90,
1769,
565,
5589,
1853,
273,
394,
5589,
5... | |
if (currentGroupNode == null) throw new IllegalStateException("Why?"); | currentGroup.incrementMemberCount(); | private void insertIntoGroup(BugInstance member) { if (currentGroupNode == null) throw new IllegalStateException("Why?"); DefaultMutableTreeNode bugNode = new DefaultMutableTreeNode(member); bugTreeModel.insertNodeInto(bugNode, currentGroupNode, currentGroupNode.getChildCount()); // Insert annotations Iterator j = member.annotationIterator(); while (j.hasNext()) { BugAnnotation annotation = (BugAnnotation) j.next(); DefaultMutableTreeNode annotationNode = new DefaultMutableTreeNode(annotation); bugTreeModel.insertNodeInto(annotationNode, bugNode, bugNode.getChildCount()); } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4c57953f33f307f4334da7750afbbd7593d127fb/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
3238,
918,
2243,
5952,
1114,
12,
19865,
1442,
3140,
13,
288,
202,
202,
430,
261,
2972,
1114,
907,
422,
446,
13,
1082,
565,
604,
394,
5477,
2932,
2888,
93,
7225,
1769,
202,
202,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
565,
3238,
918,
2243,
5952,
1114,
12,
19865,
1442,
3140,
13,
288,
202,
202,
430,
261,
2972,
1114,
907,
422,
446,
13,
1082,
565,
604,
394,
5477,
2932,
2888,
93,
7225,
1769,
202,
202,
18... |
name = ArmAPIUtil.checkRequired(name); identityProperties = ArmAPIUtil.checkOptional(identityProperties); id = ArmAPIUtil.checkOptional(id); return new LTApplicationDefinition(name, identityProperties, id); | return factoryProxy.newArmApplicationDefinition(name, identityProperties, id); | public ArmApplicationDefinition newArmApplicationDefinition(String name, ArmIdentityProperties identityProperties, ArmID id) { name = ArmAPIUtil.checkRequired(name); identityProperties = ArmAPIUtil.checkOptional(identityProperties); id = ArmAPIUtil.checkOptional(id); return new LTApplicationDefinition(name, identityProperties, id); //todo: consider this autogenerated code } | 6331 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6331/bba33b9925c99ca4e51c7b5289b10c915ece5bbf/LTTransactionFactory.java/buggy/nursery/livetribe-arm/src/main/java/org/livetribe/arm/impl/LTTransactionFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1201,
81,
3208,
1852,
394,
25583,
3208,
1852,
12,
780,
508,
16,
1201,
81,
4334,
2297,
4215,
2297,
16,
1201,
81,
734,
612,
13,
565,
288,
3639,
508,
273,
1201,
81,
2557,
1304,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1201,
81,
3208,
1852,
394,
25583,
3208,
1852,
12,
780,
508,
16,
1201,
81,
4334,
2297,
4215,
2297,
16,
1201,
81,
734,
612,
13,
565,
288,
3639,
508,
273,
1201,
81,
2557,
1304,
18,
... |
File webappDirectory = new File( this.webappDirectory ); | public void generateExplodedWebapp() throws IOException { File webappDirectory = new File( this.webappDirectory ); webappDirectory.mkdirs(); File webinfDir = new File( webappDirectory, WEB_INF ); webinfDir.mkdirs(); copyResources( new File( warSourceDirectory ), webappDirectory, warSourceIncludes, warSourceExcludes, webXml ); buildWebapp( project ); } | 47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/e21120a0a4e6c146b4e7302a2240920517aaeb65/WarMojo.java/clean/maven-plugins/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/WarMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
2966,
383,
785,
4079,
2910,
1435,
3639,
1216,
1860,
565,
288,
9079,
28945,
2853,
18,
24816,
8291,
5621,
3639,
1387,
3311,
10625,
1621,
273,
394,
1387,
12,
28945,
2853,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
2966,
383,
785,
4079,
2910,
1435,
3639,
1216,
1860,
565,
288,
9079,
28945,
2853,
18,
24816,
8291,
5621,
3639,
1387,
3311,
10625,
1621,
273,
394,
1387,
12,
28945,
2853,
16,
... | |
org.apache.harmony.beans.tests.java.beans.mock.MockPropertyChangeEvent e); | org.apache.harmony.beans.tests.java.beans.MockPropertyChangeEvent e); | public void mockPropertyChange( org.apache.harmony.beans.tests.java.beans.mock.MockPropertyChangeEvent e); | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/5d1acbd78205789b3ab5d5da8ad3863b1478d639/MockPropertyChangeListener2.java/buggy/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/mock/MockPropertyChangeListener2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5416,
1396,
3043,
12,
1082,
202,
3341,
18,
19211,
18,
30250,
2586,
93,
18,
2196,
634,
18,
16341,
18,
6290,
18,
2196,
634,
18,
22851,
18,
9865,
1396,
20930,
425,
1769,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5416,
1396,
3043,
12,
1082,
202,
3341,
18,
19211,
18,
30250,
2586,
93,
18,
2196,
634,
18,
16341,
18,
6290,
18,
2196,
634,
18,
22851,
18,
9865,
1396,
20930,
425,
1769,
2,
... |
int columnWidth = columns[0].members.length; int rowWidth = 0; if( result.getAxes().length == 2 ) rowWidth = result.getAxes()[1].positions[0].members.length; for (int j=0; j<columnWidth; j++) { html.append("<tr>"); | int columnWidth = columns[0].members.length; int rowWidth = 0; if( result.getAxes().length == 2 ) rowWidth = result.getAxes()[1].positions[0].members.length; | protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { String queryName = request.getParameter("query"); request.setAttribute("query", queryName); if (queryName != null) { processTransform(request,response); return; } String queryString = request.getParameter("queryString"); request.setAttribute("queryString", queryString); mondrian.olap.Connection mdxConnection = null; StringBuffer html = new StringBuffer(); //execute the query try { mdxConnection = DriverManager.getConnection(connectString, getServletContext(), false); Query q = mdxConnection.parseQuery(queryString); Result result = mdxConnection.execute(q); Position slicers[] = result.getSlicerAxis().positions; html.append("<table class='resulttable' cellspacing=1 border=0>"); final String nl = System.getProperty("line.separator"); html.append(nl); Position[] columns = result.getAxes()[0].positions; Position[] rows = null; if( result.getAxes().length == 2 ) rows = result.getAxes()[1].positions; int columnWidth = columns[0].members.length; int rowWidth = 0; if( result.getAxes().length == 2 ) rowWidth = result.getAxes()[1].positions[0].members.length; for (int j=0; j<columnWidth; j++) { html.append("<tr>"); // if it has more than 1 dimension if (j == 0 && result.getAxes().length > 1) { // Print the top-left cell, and fill it with slicer members. html.append("<td nowrap class='slicer' rowspan='" + columnWidth + "' colspan='" + rowWidth + "'>"); for (int i=0; i<slicers.length; i++) { Position position = slicers[i]; for (int k = 0; k < position.members.length; k++) { if (k > 0) { html.append("<br/>"); } Member member = position.members[k]; html.append(member.getUniqueName()); } } html.append(" </td>" + nl); } // Print the column headings. for (int i=0; i<columns.length; i++) { Member member = columns[i].members[j]; int width = 1; while ((i + 1) < columns.length && columns[i + 1].members[j] == member) { i++; width++; } html.append("<td nowrap class='columnheading' colspan='" + width + "'>" + member.getUniqueName() + "</td>"); } html.append("</tr>" + nl); } //if is two axes, show if (result.getAxes().length > 1) { for (int i=0; i<rows.length; i++) { html.append("<tr>"); final Position row = rows[i]; for (int j = 0; j < row.members.length; j++) { Member member = row.members[j]; html.append("<td nowrap class='rowheading'>" + member.getUniqueName() + "</td>"); } for (int j=0; j<columns.length; j++) { showCell(html,result.getCell(new int[]{j,i})); } html.append("</tr>"); } } else { html.append("<tr>"); for (int i=0; i<columns.length; i++) { showCell(html,result.getCell(new int[]{i})); } html.append("</tr>"); } html.append("</table>"); } catch (Throwable e) { final String[] strings = Util.convertStackToString(e); html.append("Error:<pre><blockquote>"); for (int i = 0; i < strings.length; i++) { StringEscaper.htmlEscaper.appendEscapedString(strings[i], html); } html.append("</blockquote></pre>"); } finally { if (mdxConnection != null) { mdxConnection.close(); } } request.setAttribute("result", html.toString()); response.setHeader("Content-Type", "text/html"); getServletContext().getRequestDispatcher("/adhoc.jsp").include(request, response); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/MDXQueryServlet.java/buggy/src/main/mondrian/web/servlet/MDXQueryServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1207,
691,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1082,
202,
15069,
16517,
16,
2252,
18,
1594,
18,
14106,
288,
202,
202,
780,
843,
461,
273,
590,
18,
588,
1662,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
691,
12,
2940,
18572,
590,
16,
12446,
766,
13,
1082,
202,
15069,
16517,
16,
2252,
18,
1594,
18,
14106,
288,
202,
202,
780,
843,
461,
273,
590,
18,
588,
1662,
2932,... |
public CmsFolder createFolder(A_CmsUser user, A_CmsProject project, String folder, | public CmsFolder createFolder(A_CmsUser user, A_CmsProject project, String folder, | public CmsFolder createFolder(A_CmsUser user, A_CmsProject project, String folder, int flags) throws CmsException; | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/95a9c02f06acd3100278d024929b4b0d15ba4341/I_CmsRbFile.java/buggy/src/com/opencms/file/I_CmsRbFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2149,
3899,
752,
3899,
12,
37,
67,
4747,
1299,
729,
16,
432,
67,
4747,
4109,
1984,
16,
514,
3009,
16,
21394,
509,
2943,
13,
6862,
9506,
202,
15069,
11228,
31,
2,
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,
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,
2149,
3899,
752,
3899,
12,
37,
67,
4747,
1299,
729,
16,
432,
67,
4747,
4109,
1984,
16,
514,
3009,
16,
21394,
509,
2943,
13,
6862,
9506,
202,
15069,
11228,
31,
2,
-100,
-100,
... |
{ RollerRequest rreq = RollerRequest.getRollerRequest(); | { | protected WebsiteData validate(String blogid, String username, String password) throws Exception { boolean authenticated = false; boolean userEnabled = false; boolean weblogEnabled = false; boolean apiEnabled = false; boolean weblogFound = false; WebsiteData website = null; UserData user = null; try { // Get Roller request object for current thread RollerRequest rreq = RollerRequest.getRollerRequest(); UserManager userMgr = RollerFactory.getRoller().getUserManager(); user = userMgr.getUserByUserName(username); userEnabled = user.getEnabled().booleanValue(); website = userMgr.getWebsiteByHandle(blogid); if (website != null) { weblogFound = true; weblogEnabled = website.getEnabled().booleanValue(); apiEnabled = website.getEnableBloggerApi().booleanValue(); } if (user != null) { // are passwords encrypted? RollerContext rollerContext = RollerContext.getRollerContext(); String encrypted = RollerConfig.getProperty("passwds.encryption.enabled"); //System.out.print("password was [" + password + "] "); if ("true".equalsIgnoreCase(encrypted)) { password = Utilities.encodePassword(password, RollerConfig.getProperty("passwds.encryption.algorithm")); } //System.out.println("is now [" + password + "]"); authenticated= user.getPassword().equals(password); if (authenticated) { //RollerFactory.getRoller().setUser(user); } } } catch (Exception e) { mLogger.error("ERROR internal error validating user", e); } if ( !authenticated ) { throw new XmlRpcException( AUTHORIZATION_EXCEPTION, AUTHORIZATION_EXCEPTION_MSG); } if ( !userEnabled ) { throw new XmlRpcException( USER_DISABLED, USER_DISABLED_MSG); } if ( !weblogEnabled ) { throw new XmlRpcException( WEBLOG_DISABLED, WEBLOG_DISABLED_MSG); } if ( !weblogFound ) { throw new XmlRpcException( WEBLOG_NOT_FOUND, WEBLOG_NOT_FOUND_MSG); } if ( !apiEnabled ) { throw new XmlRpcException( BLOGGERAPI_DISABLED, BLOGGERAPI_DISABLED_MSG); } return website; } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/970db651290fe4568feaafe91216e5d3d1a55766/BaseAPIHandler.java/buggy/src/org/apache/roller/webservices/xmlrpc/BaseAPIHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1660,
12343,
751,
1954,
12,
780,
10700,
350,
16,
514,
2718,
16,
514,
2201,
13,
377,
1216,
1185,
565,
288,
3639,
1250,
9370,
273,
629,
31,
3639,
1250,
729,
1526,
273,
629,
31,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1660,
12343,
751,
1954,
12,
780,
10700,
350,
16,
514,
2718,
16,
514,
2201,
13,
377,
1216,
1185,
565,
288,
3639,
1250,
9370,
273,
629,
31,
3639,
1250,
729,
1526,
273,
629,
31,
3639... |
"(Ljava/lang/Object;" | "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Object;" | private void generateCodeFromNode(Node node, Node parent, int trueLabel, int falseLabel) { // System.out.println("gen code for " + node.toString()); int type = node.getType(); Node child = node.getFirstChild(); switch (type) { case TokenStream.LOOP: case TokenStream.WITH: case TokenStream.LABEL: visitStatement(node); while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } break; case TokenStream.CASE: case TokenStream.DEFAULT: // XXX shouldn't these be StatementNodes? case TokenStream.SCRIPT: case TokenStream.BLOCK: case TokenStream.VOID: case TokenStream.NOP: // no-ops. visitStatement(node); while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } break; case TokenStream.FUNCTION: if (inFunction || parent.getType() != TokenStream.SCRIPT) { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); OptFunctionNode fn; fn = (OptFunctionNode)scriptOrFn.getFunctionNode(fnIndex); int t = fn.getFunctionType(); if (t != FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, t); } } break; case TokenStream.NAME: visitName(node); break; case TokenStream.NEW: case TokenStream.CALL: visitCall(node, type, child); break; case TokenStream.NUMBER: case TokenStream.STRING: visitLiteral(node); break; case TokenStream.PRIMARY: visitPrimary(node); break; case TokenStream.REGEXP: visitObject(node); break; case TokenStream.TRY: visitTryCatchFinally(node, child); break; case TokenStream.THROW: visitThrow(node, child); break; case TokenStream.RETURN: visitReturn(node, child); break; case TokenStream.SWITCH: visitSwitch(node, child); break; case TokenStream.COMMA: { Node next = child.getNext(); while (next != null) { generateCodeFromNode(child, node, -1, -1); addByteCode(ByteCode.POP); child = next; next = next.getNext(); } generateCodeFromNode(child, node, trueLabel, falseLabel); break; } case TokenStream.NEWSCOPE: addScriptRuntimeInvoke("newScope", "()Lorg/mozilla/javascript/Scriptable;"); break; case TokenStream.ENTERWITH: visitEnterWith(node, child); break; case TokenStream.LEAVEWITH: visitLeaveWith(node, child); break; case TokenStream.ENUMINIT: visitEnumInit(node, child); break; case TokenStream.ENUMNEXT: visitEnumNext(node, child); break; case TokenStream.ENUMDONE: visitEnumDone(node, child); break; case TokenStream.POP: visitStatement(node); if (child.getType() == TokenStream.SETVAR) { /* special case this so as to avoid unnecessary load's & pop's */ visitSetVar(child, child.getFirstChild(), false); } else { while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) addByteCode(ByteCode.POP2); else addByteCode(ByteCode.POP); } break; case TokenStream.POPV: visitStatement(node); while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } astore(scriptResultLocal); break; case TokenStream.TARGET: visitTarget(node); break; case TokenStream.JSR: case TokenStream.GOTO: case TokenStream.IFEQ: case TokenStream.IFNE: visitGOTO(node, type, child); break; case TokenStream.UNARYOP: visitUnary(node, child, trueLabel, falseLabel); break; case TokenStream.TYPEOF: visitTypeof(node, child); break; case TokenStream.INC: visitIncDec(node, true); break; case TokenStream.DEC: visitIncDec(node, false); break; case TokenStream.OR: case TokenStream.AND: { if (trueLabel == -1) { generateCodeFromNode(child, node, trueLabel, falseLabel); addByteCode(ByteCode.DUP); addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); int falseTarget = acquireLabel(); if (type == TokenStream.AND) addByteCode(ByteCode.IFEQ, falseTarget); else addByteCode(ByteCode.IFNE, falseTarget); addByteCode(ByteCode.POP); generateCodeFromNode(child.getNext(), node, trueLabel, falseLabel); markLabel(falseTarget); } else { int interLabel = acquireLabel(); if (type == TokenStream.AND) { generateCodeFromNode(child, node, interLabel, falseLabel); if (!childIsBoolean(child)) { addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); addByteCode(ByteCode.IFNE, interLabel); addByteCode(ByteCode.GOTO, falseLabel); } } else { generateCodeFromNode(child, node, trueLabel, interLabel); if (!childIsBoolean(child)) { addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); addByteCode(ByteCode.IFNE, trueLabel); addByteCode(ByteCode.GOTO, interLabel); } } markLabel(interLabel); child = child.getNext(); generateCodeFromNode(child, node, trueLabel, falseLabel); if (!childIsBoolean(child)) { addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); addByteCode(ByteCode.IFNE, trueLabel); addByteCode(ByteCode.GOTO, falseLabel); } } } break; case TokenStream.ADD: { generateCodeFromNode(child, node, trueLabel, falseLabel); generateCodeFromNode(child.getNext(), node, trueLabel, falseLabel); switch (node.getIntProp(Node.ISNUMBER_PROP, -1)) { case Node.BOTH: addByteCode(ByteCode.DADD); break; case Node.LEFT: addOptRuntimeInvoke("add", "(DLjava/lang/Object;)Ljava/lang/Object;"); break; case Node.RIGHT: addOptRuntimeInvoke("add", "(Ljava/lang/Object;D)Ljava/lang/Object;"); break; default: addScriptRuntimeInvoke("add", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); } } break; case TokenStream.MUL: visitArithmetic(node, ByteCode.DMUL, child, parent); break; case TokenStream.SUB: visitArithmetic(node, ByteCode.DSUB, child, parent); break; case TokenStream.DIV: case TokenStream.MOD: visitArithmetic(node, type == TokenStream.DIV ? ByteCode.DDIV : ByteCode.DREM, child, parent); break; case TokenStream.BITOR: case TokenStream.BITXOR: case TokenStream.BITAND: case TokenStream.LSH: case TokenStream.RSH: case TokenStream.URSH: visitBitOp(node, type, child); break; case TokenStream.CONVERT: { Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) { addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node, trueLabel, falseLabel); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); addDoubleConstructor(); } else { if (toType == ScriptRuntime.DoubleClass) { // cnvt to double // (not Double) generateCodeFromNode(child, node, trueLabel, falseLabel); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); } else { if (toType == ScriptRuntime.ObjectClass) { // convert from double int prop = -1; if (child.getType() == TokenStream.NUMBER) { prop = child.getIntProp(Node.ISNUMBER_PROP, -1); } if (prop != -1) { child.removeProp(Node.ISNUMBER_PROP); generateCodeFromNode(child, node, trueLabel, falseLabel); child.putIntProp(Node.ISNUMBER_PROP, prop); } else { addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node, trueLabel, falseLabel); addDoubleConstructor(); } } else badTree(); } } } break; case TokenStream.RELOP: if (trueLabel == -1) // need a result Object visitRelOp(node, child, parent); else visitGOTOingRelOp(node, child, parent, trueLabel, falseLabel); break; case TokenStream.EQOP: visitEqOp(node, child, parent, trueLabel, falseLabel); break; case TokenStream.GETPROP: visitGetProp(node, child); break; case TokenStream.GETELEM: while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } aload(variableObjectLocal); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { addOptRuntimeInvoke( "getElem", "(Ljava/lang/Object;D" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "getElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } break; case TokenStream.GETVAR: { OptLocalVariable lVar = (OptLocalVariable)(node.getProp(Node.VARIABLE_PROP)); visitGetVar(lVar, node.getIntProp(Node.ISNUMBER_PROP, -1) != -1, node.getString()); } break; case TokenStream.SETVAR: visitSetVar(node, child, true); break; case TokenStream.SETNAME: visitSetName(node, child); break; case TokenStream.SETPROP: visitSetProp(node, child); break; case TokenStream.SETELEM: while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } aload(variableObjectLocal); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { addOptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"D" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } break; case TokenStream.DELPROP: while (child != null) { generateCodeFromNode(child, node, trueLabel, falseLabel); child = child.getNext(); } addScriptRuntimeInvoke("delete", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); break; case TokenStream.BINDNAME: case TokenStream.GETBASE: visitBind(node, type, child); break; case TokenStream.GETTHIS: generateCodeFromNode(child, node, trueLabel, falseLabel); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); break; case TokenStream.PARENT: generateCodeFromNode(child, node, trueLabel, falseLabel); addScriptRuntimeInvoke("getParent", "(Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); break; case TokenStream.NEWTEMP: visitNewTemp(node, child); break; case TokenStream.USETEMP: visitUseTemp(node, child); break; case TokenStream.NEWLOCAL: visitNewLocal(node, child); break; case TokenStream.USELOCAL: visitUseLocal(node, child); break; default: throw new RuntimeException("Unexpected node type " + TokenStream.tokenToName(type)); } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/99d83af296fa2b20ab74c2e8c74b4c4a689be883/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
28570,
12,
907,
756,
16,
2029,
982,
16,
509,
638,
2224,
16,
4766,
1377,
509,
629,
2224,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
28570,
12,
907,
756,
16,
2029,
982,
16,
509,
638,
2224,
16,
4766,
1377,
509,
629,
2224,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
... |
public void visitLNEG(LNEG obj) { } | public void visitLNEG(LNEG obj) { } | public void visitLNEG(LNEG obj) { } // no change | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/BetterTypeFrameModelingVisitor.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/BetterTypeFrameModelingVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
48,
5407,
43,
12,
48,
5407,
43,
1081,
13,
288,
289,
368,
1158,
2549,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
48,
5407,
43,
12,
48,
5407,
43,
1081,
13,
288,
289,
368,
1158,
2549,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException | public Object execMethod(IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { double x; switch (methodId) { case Id_toSource: return "Math"; case Id_abs: x = ScriptRuntime.toNumber(args, 0); // abs(-0.0) should be 0.0, but -0.0 < 0.0 == false x = (x == 0.0) ? 0.0 : (x < 0.0) ? -x : x; break; case Id_acos: case Id_asin: x = ScriptRuntime.toNumber(args, 0); if (x == x && -1.0 <= x && x <= 1.0) { x = (methodId == Id_acos) ? Math.acos(x) : Math.asin(x); } else { x = Double.NaN; } break; case Id_atan: x = ScriptRuntime.toNumber(args, 0); x = Math.atan(x); break; case Id_atan2: x = ScriptRuntime.toNumber(args, 0); x = Math.atan2(x, ScriptRuntime.toNumber(args, 1)); break; case Id_ceil: x = ScriptRuntime.toNumber(args, 0); x = Math.ceil(x); break; case Id_cos: x = ScriptRuntime.toNumber(args, 0); x = (x == Double.POSITIVE_INFINITY || x == Double.NEGATIVE_INFINITY) ? Double.NaN : Math.cos(x); break; case Id_exp: x = ScriptRuntime.toNumber(args, 0); x = (x == Double.POSITIVE_INFINITY) ? x : (x == Double.NEGATIVE_INFINITY) ? 0.0 : Math.exp(x); break; case Id_floor: x = ScriptRuntime.toNumber(args, 0); x = Math.floor(x); break; case Id_log: x = ScriptRuntime.toNumber(args, 0); // Java's log(<0) = -Infinity; we need NaN x = (x < 0) ? Double.NaN : Math.log(x); break; case Id_max: case Id_min: x = (methodId == Id_max) ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY; for (int i = 0; i != args.length; ++i) { double d = ScriptRuntime.toNumber(args[i]); if (d != d) { x = d; // NaN break; } if (methodId == Id_max) { // if (x < d) x = d; does not work due to -0.0 >= +0.0 x = Math.max(x, d); } else { x = Math.min(x, d); } } break; case Id_pow: x = ScriptRuntime.toNumber(args, 0); x = js_pow(x, ScriptRuntime.toNumber(args, 1)); break; case Id_random: x = Math.random(); break; case Id_round: x = ScriptRuntime.toNumber(args, 0); if (x == x && x != Double.POSITIVE_INFINITY && x != Double.NEGATIVE_INFINITY) { // Round only finite x long l = Math.round(x); if (l != 0) { x = (double)l; } else { // We must propagate the sign of d into the result if (x < 0.0) { x = ScriptRuntime.negativeZero; } else if (x != 0.0) { x = 0.0; } } } break; case Id_sin: x = ScriptRuntime.toNumber(args, 0); x = (x == Double.POSITIVE_INFINITY || x == Double.NEGATIVE_INFINITY) ? Double.NaN : Math.sin(x); break; case Id_sqrt: x = ScriptRuntime.toNumber(args, 0); x = Math.sqrt(x); break; case Id_tan: x = ScriptRuntime.toNumber(args, 0); x = Math.tan(x); break; default: return super.execMethod(methodId, f, cx, scope, thisObj, args); } return wrap_double(x); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/4ab02a82029cd37abeb37ef8a90e5c06586ae4f3/NativeMath.java/clean/js/rhino/src/org/mozilla/javascript/NativeMath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
if (!(values[i].equals(mqr.values[i]))) return false; | if (!(values[i].equals(mqr.values[i]))) { return false; } | public boolean equals(Object o) { if (!(o instanceof MarkerQueryResult)) return false; if (o == this) return true; MarkerQueryResult mqr = (MarkerQueryResult) o; if (values.length != mqr.values.length) return false; for (int i = 0; i < values.length; i++) { if (!(values[i].equals(mqr.values[i]))) return false; } return true; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/MarkerQueryResult.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/MarkerQueryResult.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
320,
13,
288,
3639,
309,
16051,
12,
83,
1276,
14742,
23583,
3719,
5411,
327,
629,
31,
3639,
309,
261,
83,
422,
333,
13,
5411,
327,
638,
31,
3639,
14742,
23583... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
320,
13,
288,
3639,
309,
16051,
12,
83,
1276,
14742,
23583,
3719,
5411,
327,
629,
31,
3639,
309,
261,
83,
422,
333,
13,
5411,
327,
638,
31,
3639,
14742,
23583... |
classFile.startMethod("call", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.ALOAD_1); addByteCode(ByteCode.ALOAD_2); addByteCode(ByteCode.ALOAD_3); | cfw.startMethod("call", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.ALOAD_1); cfw.add(ByteCode.ALOAD_2); cfw.add(ByteCode.ALOAD_3); | private void generateCode(Context cx, ScriptOrFnNode scriptOrFn, ObjArray names, ObjArray classFiles) { String superClassName; this.scriptOrFn = scriptOrFn; if (scriptOrFn.getType() == Token.FUNCTION) { inFunction = true; fnCurrent = (OptFunctionNode)scriptOrFn; inDirectCallFunction = fnCurrent.isTargetOfDirectCall(); generatedClassName = fnCurrent.getClassName(); superClassName = FUNCTION_SUPER_CLASS_NAME; } else { // better be a script if (scriptOrFn.getType() != Token.SCRIPT) badTree(); inFunction = false; boolean isPrimary = (nameHelper.getTargetExtends() == null && nameHelper.getTargetImplements() == null); generatedClassName = getScriptClassName(null, isPrimary); superClassName = SCRIPT_SUPER_CLASS_NAME; } generatedClassSignature = classNameToSignature(generatedClassName); itsUseDynamicScope = cx.hasCompileFunctionsWithDynamicScope(); itsSourceFile = null; // default is to generate debug info if (!cx.isGeneratingDebugChanged() || cx.isGeneratingDebug()) { itsSourceFile = scriptOrFn.getSourceName(); } version = cx.getLanguageVersion(); optLevel = cx.getOptimizationLevel(); // Generate nested function code int functionCount = scriptOrFn.getFunctionCount(); for (int i = 0; i != functionCount; ++i) { OptFunctionNode fn = (OptFunctionNode)scriptOrFn.getFunctionNode(i); Codegen codegen = new Codegen(mainCodegen); codegen.generateCode(cx, fn, names, classFiles); } classFile = new ClassFileWriter(generatedClassName, superClassName, itsSourceFile); Node codegenBase; if (inFunction) { generateInit(cx, superClassName); if (inDirectCallFunction) { classFile.startMethod("call", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.ALOAD_1); addByteCode(ByteCode.ALOAD_2); addByteCode(ByteCode.ALOAD_3); for (int i = 0; i < scriptOrFn.getParamCount(); i++) { push(i); addByteCode(ByteCode.ALOAD, 4); addByteCode(ByteCode.ARRAYLENGTH); int undefArg = acquireLabel(); int beyond = acquireLabel(); addByteCode(ByteCode.IF_ICMPGE, undefArg); addByteCode(ByteCode.ALOAD, 4); push(i); addByteCode(ByteCode.AALOAD); push(0.0); addByteCode(ByteCode.GOTO, beyond); markLabel(undefArg); pushUndefined(); push(0.0); markLabel(beyond); } addByteCode(ByteCode.ALOAD, 4); addVirtualInvoke(generatedClassName, "callDirect", fnCurrent.getDirectCallMethodSignature()); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)5, null); // 1 for this, 1 for js this, 1 for args[] emitDirectConstructor(); startCodeBodyMethod("callDirect", fnCurrent.getDirectCallMethodSignature()); assignParameterJRegs(fnCurrent); if (!fnCurrent.getParameterNumberContext()) { // make sure that all parameters are objects itsForcedObjectParameters = true; for (int i = 0; i < fnCurrent.getParamCount(); i++) { OptLocalVariable lVar = fnCurrent.getVar(i); aload(lVar.getJRegister()); classFile.add(ByteCode.GETSTATIC, "java/lang/Void", "TYPE", "Ljava/lang/Class;"); int isObjectLabel = acquireLabel(); addByteCode(ByteCode.IF_ACMPNE, isObjectLabel); addByteCode(ByteCode.NEW,"java/lang/Double"); addByteCode(ByteCode.DUP); dload((short)(lVar.getJRegister() + 1)); addDoubleConstructor(); astore(lVar.getJRegister()); markLabel(isObjectLabel); } } generatePrologue(cx, scriptOrFn.getParamCount()); } else { startCodeBodyMethod("call", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;)Ljava/lang/Object;"); generatePrologue(cx, -1); } codegenBase = scriptOrFn.getLastChild(); } else { // script classFile.addInterface("org/mozilla/javascript/Script"); generateInit(cx, superClassName); generateScriptCtor(cx, superClassName); generateMain(cx); generateExecute(cx); startCodeBodyMethod("call", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;)Ljava/lang/Object;"); generatePrologue(cx, -1); int linenum = scriptOrFn.getEndLineno(); if (linenum != -1) classFile.addLineNumberEntry((short)linenum); scriptOrFn.addChildToBack(new Node(Token.RETURN)); codegenBase = scriptOrFn; } generateCodeFromNode(codegenBase, null); generateEpilogue(); finishMethod(cx, debugVars); emitConstantDudeInitializers(); if (isMainCodegen && mainCodegen.directCallTargets != null) { int N = mainCodegen.directCallTargets.size(); for (int i = 0; i != N; ++i) { OptFunctionNode fn = (OptFunctionNode)directCallTargets.get(i); classFile.addField(getDirectTargetFieldName(i), classNameToSignature(fn.getClassName()), (short)0); } } byte[] bytes = classFile.toByteArray(); names.add(generatedClassName); classFiles.add(bytes); classFile = null; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
12,
1042,
9494,
16,
7739,
1162,
5372,
907,
2728,
1162,
5372,
16,
17311,
18760,
1076,
1257,
16,
18760,
1076,
667,
2697,
13,
565,
288,
3639,
514,
2240,
3834,
31,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
12,
1042,
9494,
16,
7739,
1162,
5372,
907,
2728,
1162,
5372,
16,
17311,
18760,
1076,
1257,
16,
18760,
1076,
667,
2697,
13,
565,
288,
3639,
514,
2240,
3834,
31,
3639... |
yaccValue = new Token(""+c, getPosition(null, false)); | yaccValue = new Token(""+c, getPositionMinusOne()); | private int parseQuote(char c) { char term; char paren; if (!Character.isLetterOrDigit(c)) { term = c; c = 'Q'; } else { term = src.read(); if (Character.isLetterOrDigit(term) /* no mb || ismbchar(term)*/) { throw new SyntaxException(src.getPosition(), "unknown type of %string"); } } if (c == EOF || term == EOF) { throw new SyntaxException(src.getPosition(), "unterminated quoted string meets end of file"); } paren = term; if (term == '(') term = ')'; else if (term == '[') term = ']'; else if (term == '{') term = '}'; else if (term == '<') term = '>'; else paren = '\0'; switch (c) { case 'Q': lex_strterm = new StringTerm(str_dquote, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tSTRING_BEG; case 'q': lex_strterm = new StringTerm(str_squote, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tSTRING_BEG; case 'W': lex_strterm = new StringTerm(str_dquote | STR_FUNC_QWORDS, term, paren); do {c = src.read();} while (Character.isWhitespace(c)); src.unread(c); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tWORDS_BEG; case 'w': lex_strterm = new StringTerm(str_squote | STR_FUNC_QWORDS, term, paren); do {c = src.read();} while (Character.isWhitespace(c)); src.unread(c); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tQWORDS_BEG; case 'x': lex_strterm = new StringTerm(str_xquote, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tXSTRING_BEG; case 'r': lex_strterm = new StringTerm(str_regexp, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tREGEXP_BEG; case 's': lex_strterm = new StringTerm(str_ssym, term, paren); lex_state = LexState.EXPR_FNAME; yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tSYMBEG; default: throw new SyntaxException(src.getPosition(), "Unknown type of %string. Expected 'Q', 'q', 'w', 'x', 'r' or any non letter character, but found '" + c + "'."); } } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/67a441c8ea70c9532cdedb2001a6741b63e793ae/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
10257,
12,
3001,
276,
13,
288,
3639,
1149,
2481,
31,
3639,
1149,
22146,
31,
7734,
309,
16051,
7069,
18,
291,
13938,
1162,
10907,
12,
71,
3719,
288,
5411,
2481,
273,
276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
10257,
12,
3001,
276,
13,
288,
3639,
1149,
2481,
31,
3639,
1149,
22146,
31,
7734,
309,
16051,
7069,
18,
291,
13938,
1162,
10907,
12,
71,
3719,
288,
5411,
2481,
273,
276,
... |
public org.quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { org.quickfix.field.LegStrikeCurrency value = new org.quickfix.field.LegStrikeCurrency(); | public quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { quickfix.field.LegStrikeCurrency value = new quickfix.field.LegStrikeCurrency(); | public org.quickfix.field.LegStrikeCurrency getLegStrikeCurrency() throws FieldNotFound { org.quickfix.field.LegStrikeCurrency value = new org.quickfix.field.LegStrikeCurrency(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AssignmentReport.java/buggy/src/java/src/quickfix/fix44/AssignmentReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
336,
8329,
1585,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623,
336,
8329,
1585,
2547,
7623,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
1585,
2547,
7623... |
p.load (is); is.close (); | p.load(is); is.close(); | protected void init (Hashtable environment) throws NamingException { // FIXME: Is this enough? final String[] properties = { Context.DNS_URL, Context.INITIAL_CONTEXT_FACTORY, Context.OBJECT_FACTORIES, Context.PROVIDER_URL, Context.STATE_FACTORIES, Context.URL_PKG_PREFIXES, }; // Create myProps, cloning environment if needed. if (environment != null) myProps = (Hashtable) environment.clone (); else myProps = new Hashtable (); Applet napplet = (Applet) myProps.get (Context.APPLET); for (int i = properties.length - 1; i >= 0; i--) { Object o = myProps.get (properties[i]); if (o == null) { if (napplet != null) o = napplet.getParameter (properties[i]); if (o == null) o = System.getProperty (properties[i]); if (o != null) myProps.put (properties[i], o); } } try { Enumeration ep = Thread.currentThread().getContextClassLoader().getResources("jndi.naming"); while (ep.hasMoreElements ()) { URL url = (URL) ep.nextElement (); Properties p = new Properties (); try { InputStream is = url.openStream (); p.load (is); is.close (); } catch (IOException e) { } merge (myProps, p); } } catch (IOException e) { } String home = System.getProperty("gnu.classpath.home.url"); if (home != null) { String url = home + "/jndi.properties"; Properties p = new Properties (); try { InputStream is = new URL(url).openStream(); p.load (is); is.close (); } catch (IOException e) { // Ignore. } merge (myProps, p); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/InitialContext.java/clean/core/src/classpath/javax/javax/naming/InitialContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
261,
5582,
14544,
3330,
13,
565,
1216,
26890,
225,
288,
565,
368,
9852,
30,
2585,
333,
7304,
35,
565,
727,
514,
8526,
1790,
273,
288,
1377,
1772,
18,
11602,
67,
1785,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
261,
5582,
14544,
3330,
13,
565,
1216,
26890,
225,
288,
565,
368,
9852,
30,
2585,
333,
7304,
35,
565,
727,
514,
8526,
1790,
273,
288,
1377,
1772,
18,
11602,
67,
1785,
1... |
assertTrue("Returned incorrect size", tVector.size() == 100); | assertEquals("Returned incorrect size", 100, tVector.size()); | public void test_size() { // Test for method int java.util.Vector.size() assertTrue("Returned incorrect size", tVector.size() == 100); final Vector v = new Vector(); v.addElement("initial"); Thread t1 = new Thread() { public void run() { while (v.size() > 0) ; v.addElement("final"); } }; t1.start(); for (int i = 0; i < 10000; i++) { synchronized (v) { v.removeElementAt(0); v.addElement(String.valueOf(i)); } int size; if ((size = v.size()) != 1) { String result = "Size is not 1: " + size + " " + v; // terminate the thread v.removeAllElements(); fail(result); } } // terminate the thread v.removeElementAt(0); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/VectorTest.java/buggy/modules/luni/src/test/java/tests/api/java/util/VectorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
1467,
1435,
288,
202,
202,
759,
7766,
364,
707,
509,
2252,
18,
1367,
18,
5018,
18,
1467,
1435,
202,
202,
11231,
5510,
2932,
22360,
11332,
963,
3113,
268,
5018,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
1467,
1435,
288,
202,
202,
759,
7766,
364,
707,
509,
2252,
18,
1367,
18,
5018,
18,
1467,
1435,
202,
202,
11231,
5510,
2932,
22360,
11332,
963,
3113,
268,
5018,
... |
manager.purgeServerUpdates(); | manager.purge(); | public void testLayoutDataUpdate() { ServerComponentUpdate[] componentUpdates; RowLayoutData rowLayoutData; manager.purgeServerUpdates(); // Setup. Row row = new Row(); rowApp.getRow().add(row); Label label1 = new Label("Label1"); row.add(label1); Label label2 = new Label("Label2"); row.add(label2); label2.setLayoutData(new RowLayoutData()); componentUpdates = manager.getServerComponentUpdates(); assertEquals(1, componentUpdates.length); assertEquals(false, componentUpdates[0].hasUpdatedLayoutDataChildren()); manager.purgeServerUpdates(); rowLayoutData = new RowLayoutData(); rowLayoutData.setAlignment(new Alignment(Alignment.CENTER, Alignment.DEFAULT)); label1.setLayoutData(rowLayoutData); componentUpdates = manager.getServerComponentUpdates(); assertEquals(1, componentUpdates.length); assertEquals(row, componentUpdates[0].getParent()); assertFalse(componentUpdates[0].hasAddedChildren()); assertFalse(componentUpdates[0].hasRemovedChildren()); assertFalse(componentUpdates[0].hasUpdatedProperties()); assertTrue(componentUpdates[0].hasUpdatedLayoutDataChildren()); Component[] components = componentUpdates[0].getUpdatedLayoutDataChildren(); assertEquals(1, components.length); assertEquals(label1, components[0]); } | 45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/5012f95e0a6ff6b1b29b78f97fad461d2bec79f7/UpdateManagerTest.java/buggy/src/app/test/nextapp/echo2/app/test/UpdateManagerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3744,
751,
1891,
1435,
288,
3639,
3224,
1841,
1891,
8526,
1794,
5121,
31,
3639,
6556,
3744,
751,
1027,
3744,
751,
31,
540,
3301,
18,
26422,
5621,
7734,
368,
10939,
18,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3744,
751,
1891,
1435,
288,
3639,
3224,
1841,
1891,
8526,
1794,
5121,
31,
3639,
6556,
3744,
751,
1027,
3744,
751,
31,
540,
3301,
18,
26422,
5621,
7734,
368,
10939,
18,
36... |
+ " with sequence = " + sequence + ", model = \"" + model.getName() | + " with sequence = " + sequenceNumber + ", model = \"" + model.getName() | public ObjectStoreWriterInterMineImpl(ObjectStore os) throws ObjectStoreException { super(null, ((ObjectStoreInterMineImpl) os).getSchema()); this.os = (ObjectStoreInterMineImpl) os; db = this.os.db; everOptimise = false; try { conn = this.os.getConnection(); } catch (SQLException e) { throw new ObjectStoreException("Could not obtain connection to database " + db.getURL() + "(user=" + db.getUser() + ")", e); } this.os.writers.add(this); ShutdownHook.registerObject(new WeakReference(this)); Exception e = new Exception(); e.fillInStackTrace(); StringWriter message = new StringWriter(); PrintWriter pw = new PrintWriter(message); e.printStackTrace(pw); pw.close(); createSituation = message.toString(); int index = createSituation.indexOf("at junit.framework.TestCase.runBare"); createSituation = (index < 0 ? createSituation : createSituation.substring(0, index)); recentSequences = Collections.synchronizedMap(new CacheMap(getClass().getName() + " with sequence = " + sequence + ", model = \"" + model.getName() + "\" recentSequences cache")); batch = new Batch(new BatchWriterPostgresCopyImpl()); tableToInfo = new HashMap(); tableToColNameArray = new HashMap(); tableToCollections = new HashMap(); } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/cebfa929cfe4247615e81071b156621d5f9ee8da/ObjectStoreWriterInterMineImpl.java/buggy/intermine/objectstore/main/src/org/intermine/objectstore/intermine/ObjectStoreWriterInterMineImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2257,
2289,
2465,
49,
558,
2828,
12,
921,
2257,
1140,
13,
1216,
1033,
21151,
288,
3639,
2240,
12,
2011,
16,
14015,
921,
2257,
2465,
49,
558,
2828,
13,
1140,
2934,
588,
3078,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2257,
2289,
2465,
49,
558,
2828,
12,
921,
2257,
1140,
13,
1216,
1033,
21151,
288,
3639,
2240,
12,
2011,
16,
14015,
921,
2257,
2465,
49,
558,
2828,
13,
1140,
2934,
588,
3078,
... |
private boolean isValidUrl(String name) { if (name.startsWith(URL_PREFIX_HTTPS) || name.startsWith(URL_PREFIX_HTTP)) { try { new URL(name); } catch (MalformedURLException e) { return false; } return true; } else { return false; } } | protected abstract boolean isValidUrl(String name); | private boolean isValidUrl(String name) { if (name.startsWith(URL_PREFIX_HTTPS) || name.startsWith(URL_PREFIX_HTTP)) { try { new URL(name); } catch (MalformedURLException e) { return false; } return true; } else { return false; } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b86455249adfd805375ab5ef4f49dc4b9506e0d2/AbstractRepositorySettingsPage.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/AbstractRepositorySettingsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
4908,
1489,
12,
780,
508,
13,
288,
202,
202,
430,
261,
529,
18,
17514,
1190,
12,
1785,
67,
6307,
67,
18657,
13,
747,
508,
18,
17514,
1190,
12,
1785,
67,
6307,
67,
369... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
4908,
1489,
12,
780,
508,
13,
288,
202,
202,
430,
261,
529,
18,
17514,
1190,
12,
1785,
67,
6307,
67,
18657,
13,
747,
508,
18,
17514,
1190,
12,
1785,
67,
6307,
67,
369... |
_peer = peer.getIdentity().getHash(); _found = false; _waitingForId = waitingForId; } | _peer = peer.getIdentity().getHash(); _found = false; _waitingForId = waitingForId; } | public StoreMessageSelector(RouterInfo peer, long waitingForId) { _peer = peer.getIdentity().getHash(); _found = false; _waitingForId = waitingForId; } | 3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/86759d2f9c63d203488c7e8b34e64be162a16ce9/StoreJob.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/StoreJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4994,
1079,
4320,
12,
8259,
966,
4261,
16,
1525,
7336,
1290,
548,
13,
288,
202,
565,
389,
12210,
273,
4261,
18,
588,
4334,
7675,
588,
2310,
5621,
202,
565,
389,
7015,
273,
629... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4994,
1079,
4320,
12,
8259,
966,
4261,
16,
1525,
7336,
1290,
548,
13,
288,
202,
565,
389,
12210,
273,
4261,
18,
588,
4334,
7675,
588,
2310,
5621,
202,
565,
389,
7015,
273,
629... |
private static void incorrect_plug_in(Throwable ex) | static void incorrect_plug_in(Throwable ex) | private static void incorrect_plug_in(Throwable ex) throws NO_IMPLEMENT { NO_IMPLEMENT no = new NO_IMPLEMENT("Incorrect CORBA plug-in"); no.initCause(ex); throw no; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/f7b0a77266671350e38451a50ce054282a5860ef/Vio.java/buggy/core/src/classpath/gnu/gnu/CORBA/CDR/Vio.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
11332,
67,
22045,
67,
267,
12,
15155,
431,
13,
4766,
1216,
3741,
67,
9883,
7618,
225,
288,
565,
3741,
67,
9883,
7618,
1158,
273,
394,
3741,
67,
9883,
7618,
2932,
16268,
28359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
11332,
67,
22045,
67,
267,
12,
15155,
431,
13,
4766,
1216,
3741,
67,
9883,
7618,
225,
288,
565,
3741,
67,
9883,
7618,
1158,
273,
394,
3741,
67,
9883,
7618,
2932,
16268,
28359,
... |
hashCodeComputed = false; hashCode = 0; | hashCode = HASH_INITIAL; | boolean setName(String name) { if (!Util.equals(name, this.name)) { this.name = name; hashCodeComputed = false; hashCode = 0; string = null; return true; } return false; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/656aceed8fe4b7861391608975573bcdfb416f65/Category.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/Category.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
6788,
12,
780,
508,
13,
288,
3639,
309,
16051,
1304,
18,
14963,
12,
529,
16,
333,
18,
529,
3719,
288,
5411,
333,
18,
529,
273,
508,
31,
5411,
13374,
17934,
273,
629,
31,
5411,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
6788,
12,
780,
508,
13,
288,
3639,
309,
16051,
1304,
18,
14963,
12,
529,
16,
333,
18,
529,
3719,
288,
5411,
333,
18,
529,
273,
508,
31,
5411,
13374,
17934,
273,
629,
31,
5411,
1... |
Object last = tree.getLeadSelectionPath().getLastPathComponent(); | TreePath current = tree.getLeadSelectionPath(); if (current == null) return; | public void actionPerformed(ActionEvent e) { Object last = tree.getLeadSelectionPath().getLastPathComponent(); if (e.getActionCommand().equals("selectParent")) { TreePath path = new TreePath(getPathToRoot(last, 0)); Object p = getParent(treeModel.getRoot(), last); if (!treeModel.isLeaf(last)) toggleExpandState(path); else if (p != null) selectPath(tree, new TreePath(getPathToRoot(p, 0))); } else if (e.getActionCommand().equals("selectChild")) { TreePath path = new TreePath(getPathToRoot(last, 0)); if (!treeModel.isLeaf(last)) toggleExpandState(path); else { Object next = getNextVisibleNode(last); if (next != null) selectPath(tree, new TreePath(getPathToRoot(next, 0))); } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8a78b0a127a68dcc6823fee2b8bdb1cbb7ec268d/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
565,
288,
1377,
4902,
743,
783,
273,
2151,
18,
588,
9678,
6233,
743,
5621,
309,
261,
2972,
422,
446,
13,
327,
31,
1377,
309,
261,
73,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
565,
288,
1377,
4902,
743,
783,
273,
2151,
18,
588,
9678,
6233,
743,
5621,
309,
261,
2972,
422,
446,
13,
327,
31,
1377,
309,
261,
73,
18,
58... |
public NamespacesScope(NamespacesHandler handler) { fHandler = handler; fNamespaceMappings[0] = new int[9]; fNamespaceMappings[0][0] = 1; | public NamespacesScope() { this(new NamespacesHandler() { public void startNamespaceDeclScope(int prefix, int uri) throws Exception { } public void endNamespaceDeclScope(int prefix) throws Exception { } }); | public NamespacesScope(NamespacesHandler handler) { fHandler = handler; fNamespaceMappings[0] = new int[9]; fNamespaceMappings[0][0] = 1; } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1f8f76d5e237e732d351582742ba7a1ba30c7278/NamespacesScope.java/buggy/src/org/apache/xerces/utils/NamespacesScope.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5276,
4996,
3876,
12,
13180,
1503,
1838,
13,
288,
3639,
284,
1503,
273,
1838,
31,
3639,
284,
3402,
7742,
63,
20,
65,
273,
394,
509,
63,
29,
15533,
3639,
284,
3402,
7742,
63,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5276,
4996,
3876,
12,
13180,
1503,
1838,
13,
288,
3639,
284,
1503,
273,
1838,
31,
3639,
284,
3402,
7742,
63,
20,
65,
273,
394,
509,
63,
29,
15533,
3639,
284,
3402,
7742,
63,
20,
... |
FileInputStream fis = ss.getFileInputStream(propertiesFile); | fis = ss.getFileInputStream(propertiesFile); | static String lookUpFactoryClassName(String factoryId, String propertiesFilename, String fallbackClassName) { SecuritySupport ss = SecuritySupport.getInstance(); // Use the system property first try { String systemProp = ss.getSystemProperty(factoryId); if (systemProp != null) { debugPrintln("found system property, value=" + systemProp); return systemProp; } } catch (SecurityException se) { // Ignore and continue w/ next location } // Try to read from propertiesFilename, or // $java.home/lib/xalan.properties String factoryClassName = null; // no properties file name specified; use // $JAVA_HOME/lib/xalan.properties: if (propertiesFilename == null) { File propertiesFile = null; boolean propertiesFileExists = false; try { String javah = ss.getSystemProperty("java.home"); propertiesFilename = javah + File.separator + "lib" + File.separator + DEFAULT_PROPERTIES_FILENAME; propertiesFile = new File(propertiesFilename); propertiesFileExists = ss.getFileExists(propertiesFile); } catch (SecurityException e) { // try again... fLastModified = -1; fXalanProperties = null; } synchronized (ObjectFactory.class) { boolean loadProperties = false; try { // file existed last time if(fLastModified >= 0) { if(propertiesFileExists && (fLastModified < (fLastModified = ss.getLastModified(propertiesFile)))) { loadProperties = true; } else { // file has stopped existing... if(!propertiesFileExists) { fLastModified = -1; fXalanProperties = null; } // else, file wasn't modified! } } else { // file has started to exist: if(propertiesFileExists) { loadProperties = true; fLastModified = ss.getLastModified(propertiesFile); } // else, nothing's changed } if(loadProperties) { // must never have attempted to read xalan.properties // before (or it's outdeated) fXalanProperties = new Properties(); FileInputStream fis = ss.getFileInputStream(propertiesFile); fXalanProperties.load(fis); fis.close(); } } catch (Exception x) { fXalanProperties = null; fLastModified = -1; // assert(x instanceof FileNotFoundException // || x instanceof SecurityException) // In both cases, ignore and continue w/ next location } } if(fXalanProperties != null) { factoryClassName = fXalanProperties.getProperty(factoryId); } } else { try { FileInputStream fis = ss.getFileInputStream(new File(propertiesFilename)); Properties props = new Properties(); props.load(fis); fis.close(); factoryClassName = props.getProperty(factoryId); } catch (Exception x) { // assert(x instanceof FileNotFoundException // || x instanceof SecurityException) // In both cases, ignore and continue w/ next location } } if (factoryClassName != null) { debugPrintln("found in " + propertiesFilename + ", value=" + factoryClassName); return factoryClassName; } // Try Jar Service Provider Mechanism return findJarServiceProviderName(factoryId); } // lookUpFactoryClass(String,String):String | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/8715306de914fc3a40ff4ab45e0b32a46907ce9a/ObjectFactory.java/buggy/src/org/apache/xml/serializer/ObjectFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
2324,
1211,
1733,
3834,
12,
780,
3272,
548,
16,
4766,
7734,
514,
1790,
5359,
16,
4766,
7734,
514,
5922,
3834,
13,
565,
288,
3639,
6036,
6289,
5202,
273,
6036,
6289,
18,
588,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
2324,
1211,
1733,
3834,
12,
780,
3272,
548,
16,
4766,
7734,
514,
1790,
5359,
16,
4766,
7734,
514,
5922,
3834,
13,
565,
288,
3639,
6036,
6289,
5202,
273,
6036,
6289,
18,
588,
1... |
logger.debug("Using XML shema at location: " + urlSchema); | logger.debug("Using XML shema: " + urlSchema); | public static ProActiveDescriptorHandler createProActiveDescriptor( String xmlDescriptorUrl, VariableContract variableContract) throws java.io.IOException, org.xml.sax.SAXException { // static method added to replace main method try { InitialHandler h = new InitialHandler(xmlDescriptorUrl, variableContract); String uri = xmlDescriptorUrl; // we get the schema from the class location java.net.URL urlSchema = ProActiveDescriptorHandler.class.getResource( "/DescriptorSchema.xsd"); if (urlSchema == null) { // In case the application is executed neither via the ant // script, nor via the jar file, we need to find the schema // manually urlSchema = ProActiveDescriptorHandler.class.getResource("/"); java.net.URI uriSchema; try { uriSchema = urlSchema.toURI(); uriSchema.resolve(".." + java.io.File.separator + "descriptors" + java.io.File.separator + "DescriptorSchema.xsd"); urlSchema = uriSchema.toURL(); } catch (URISyntaxException e) { // TODO Auto-generated catch block e.printStackTrace(); } } logger.debug("Using XML shema at location: " + urlSchema); org.objectweb.proactive.core.xml.io.StreamReader sr = null; sr = new org.objectweb.proactive.core.xml.io.StreamReader(new org.xml.sax.InputSource( uri), h, urlSchema, new SAXParserErrorHandlerTerminating()); sr.read(); return (ProActiveDescriptorHandler) h.getResultObject(); } catch (org.xml.sax.SAXException e) { // e.printStackTrace(); // logger.fatal( // "a problem occurs when getting the ProActiveDescriptorHandler"); throw e; } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/fb17b96cee473d9992bc20d9232e8be88b3d4425/ProActiveDescriptorHandler.java/buggy/src/org/objectweb/proactive/core/descriptor/xml/ProActiveDescriptorHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1186,
3896,
3187,
1503,
752,
626,
3896,
3187,
12,
3639,
514,
2025,
3187,
1489,
16,
7110,
8924,
2190,
8924,
13,
3639,
1216,
2252,
18,
1594,
18,
14106,
16,
2358,
18,
2902,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1186,
3896,
3187,
1503,
752,
626,
3896,
3187,
12,
3639,
514,
2025,
3187,
1489,
16,
7110,
8924,
2190,
8924,
13,
3639,
1216,
2252,
18,
1594,
18,
14106,
16,
2358,
18,
2902,
18,
... |
log.error("UnicastTest.getNumberOfMessages(): " + e); | System.err.println("UnicastTest.getNumberOfMessages(): " + e); | long getNumberOfMessages() { BufferedReader reader=null; String tmp=null; try { System.out.print("Number of messages to send: "); System.out.flush(); System.in.skip(System.in.available()); reader=new BufferedReader(new InputStreamReader(System.in)); tmp=reader.readLine().trim(); return Long.parseLong(tmp); } catch(Exception e) { log.error("UnicastTest.getNumberOfMessages(): " + e); return 0; } } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/13de68466e3cf7fde6ee0bde0cee09a33e837e89/UnicastTest.java/buggy/tests/other/org/jgroups/tests/UnicastTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1525,
14981,
5058,
1435,
288,
3639,
10633,
2949,
33,
2011,
31,
3639,
514,
1853,
33,
2011,
31,
3639,
775,
288,
5411,
2332,
18,
659,
18,
1188,
2932,
1854,
434,
2743,
358,
1366,
30,
315,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1525,
14981,
5058,
1435,
288,
3639,
10633,
2949,
33,
2011,
31,
3639,
514,
1853,
33,
2011,
31,
3639,
775,
288,
5411,
2332,
18,
659,
18,
1188,
2932,
1854,
434,
2743,
358,
1366,
30,
315,
1... |
public static void cssParse( String msg ) { cssParse( Level.INFO, msg ); } | public static void cssParse(String msg) { cssParse(Level.INFO, msg); } | public static void cssParse( String msg ) { cssParse( Level.INFO, msg ); } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/5447a62138e728955d18cb200a72cbc04251c51f/XRLog.java/buggy/src/java/org/xhtmlrenderer/util/XRLog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
3747,
3201,
12,
514,
1234,
262,
288,
565,
3747,
3201,
12,
4557,
18,
5923,
16,
1234,
11272,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
3747,
3201,
12,
514,
1234,
262,
288,
565,
3747,
3201,
12,
4557,
18,
5923,
16,
1234,
11272,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
_cnt261++; | _cnt289++; | protected final void mDIGITS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = DIGITS; int _saveIndex; { int _cnt261=0; _loop261: do { if ((_tokenSet_3.member(LA(1)))) { mDIGIT(false); } else { if ( _cnt261>=1 ) { break _loop261; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt261++; } while (true); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XPathLexer2.java/buggy/src/org/exist/parser/XPathLexer2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
21243,
10158,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
21243,
10158,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
... |
public static HsqlName makeAutoName(String type, String namepart) { | static HsqlName makeAutoName(String type) { | public static HsqlName makeAutoName(String type, String namepart) { HsqlStringBuffer sbname = new HsqlStringBuffer(); sbname.append("SYS_"); sbname.append(type); sbname.append('_'); sbname.append(namepart); sbname.append('_'); sbname.append(++sysNumber); return new HsqlName(sbname.toString(), false); } | 49087 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49087/06a84b6609c132cbe9732546d6ee94682675eaf5/HsqlName.java/clean/base-one/trunk/src/org/hsqldb/HsqlName.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
31714,
461,
1221,
4965,
461,
12,
780,
618,
13,
288,
3639,
31714,
780,
1892,
2393,
529,
273,
394,
31714,
780,
1892,
5621,
3639,
2393,
529,
18,
6923,
2932,
30664,
67,
8863,
3639,
2393,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
31714,
461,
1221,
4965,
461,
12,
780,
618,
13,
288,
3639,
31714,
780,
1892,
2393,
529,
273,
394,
31714,
780,
1892,
5621,
3639,
2393,
529,
18,
6923,
2932,
30664,
67,
8863,
3639,
2393,... |
throw new SyntaxException("La chaine de caractere ne se ferme pas.", command, start); } | throw new SyntaxException("La chaine de caractere ne se ferme pas.", command, start); } | private int startLitteralString(Command cmd, char[] command, int i) throws SyntaxException { char end = command[i++]; int start = i; for (; i < command.length; i++) { char ch = command[i]; if (ch == end) { cmd.addParameter(new String(command, start, i - start)); return i + 1; } if (ch == '\\') { i++; // ignore le prochain caractere ! } } throw new SyntaxException("La chaine de caractere ne se ferme pas.", command, start); } | 6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/CommandParserIterator.java/buggy/org.rcfaces.core/src/org/rcfaces/core/internal/util/CommandParserIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
787,
48,
6132,
287,
780,
12,
2189,
1797,
16,
1149,
8526,
1296,
16,
509,
277,
13,
1082,
202,
15069,
11517,
503,
288,
202,
202,
3001,
679,
273,
1296,
63,
77,
9904,
15533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
787,
48,
6132,
287,
780,
12,
2189,
1797,
16,
1149,
8526,
1296,
16,
509,
277,
13,
1082,
202,
15069,
11517,
503,
288,
202,
202,
3001,
679,
273,
1296,
63,
77,
9904,
15533,
... |
public void eventOccurred(DebuggerEvent event) { | public void eventOccurred(DebuggerEvent event) { | public void eventOccurred(DebuggerEvent event) { switch(getStatus()) { case STATUS_LAUNCHING: setStatus(STATUS_RUNNING); break; case STATUS_STOPPING: if(event.type == DebuggerEvent.TERMINATE || debuggerReceivedTerminateEvent) { forceStop(); } break; } if(getStatus() == STATUS_RUNNING) { if(event.type == DebuggerEvent.TERMINATE) { SwingUtilities.invokeLater(new Runnable() { public void run() { playEvents(false); } }); debuggerReceivedTerminateEvent = true; } if(event.type == DebuggerEvent.LOCATION) { if(debugger.isBreakpointAtLine(event.int1-1)) { breaksOnEvent(); return; } } if(event.type == DebuggerEvent.COMMENCE || isOnBreakEvent()) { breaksOnEvent(); return; } } } | 4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/3029d954794e560a3676aa391be237fe6c91f4af/DebuggerRecorder.java/buggy/src/org/antlr/works/debugger/DebuggerRecorder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
871,
30096,
12,
24113,
1133,
871,
13,
288,
3639,
1620,
12,
588,
1482,
10756,
288,
5411,
648,
7136,
67,
2534,
2124,
1792,
1360,
30,
7734,
9433,
12,
8608,
67,
29358,
1769,
7734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
871,
30096,
12,
24113,
1133,
871,
13,
288,
3639,
1620,
12,
588,
1482,
10756,
288,
5411,
648,
7136,
67,
2534,
2124,
1792,
1360,
30,
7734,
9433,
12,
8608,
67,
29358,
1769,
7734,
... |
public ApplicationSettings getSettings() { return settings; } | public ApplicationSettings getSettings() { return settings; } | public ApplicationSettings getSettings() { return settings; } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/9a4b9b48d844a9fd7e8882aa552fcfb06d718660/ApplicationStringResourceLoaderTest.java/clean/wicket/src/test/wicket/resource/ApplicationStringResourceLoaderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
4257,
2628,
18283,
1435,
288,
7734,
327,
1947,
31,
5411,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
4257,
2628,
18283,
1435,
288,
7734,
327,
1947,
31,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); | GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); | public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " + toName()); RubyMethodCacheEntry.saveEmptyEntry(getRuby(), this, id); return result; } RubyMethodCacheEntry ent = new RubyMethodCacheEntry(this, methodNode.getNoex()); Node body = methodNode.getBodyNode(); if (body instanceof FBodyNode) { FBodyNode fbody = (FBodyNode) body; ent.setMid(id); ent.setOrigin((RubyModule) fbody.getOrigin()); ent.setMid0(fbody.getMId()); ent.setMethod(fbody.getHeadNode()); result.setRecvClass((RubyModule) fbody.getOrigin()); result.setId(fbody.getMId()); body = fbody.getHeadNode(); } else { ent.setMid(id); ent.setMid0(id); ent.setOrigin(methodNode.getMethodOrigin()); ent.setMethod(body); result.setRecvClass(methodNode.getMethodOrigin()); } RubyMethodCacheEntry.saveEntry(getRuby(), this, id, ent); result.setNoex(ent.getNoex()); result.setBody(body); return result; } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
968,
1305,
2250,
1253,
6272,
2250,
12,
54,
10340,
548,
612,
16,
509,
1158,
338,
13,
288,
202,
202,
967,
1305,
2250,
1253,
563,
273,
394,
968,
1305,
2250,
1253,
12,
2211,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
968,
1305,
2250,
1253,
6272,
2250,
12,
54,
10340,
548,
612,
16,
509,
1158,
338,
13,
288,
202,
202,
967,
1305,
2250,
1253,
563,
273,
394,
968,
1305,
2250,
1253,
12,
2211,
16,
... |
JFrame mainFrame = new JFrame("Mary Expert Interface"); | JFrame mainFrame = new JFrame("Mary GUI Client"); | public static void main(String[] args) throws Exception { JFrame mainFrame = new JFrame("Mary Expert Interface"); mainFrame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) {System.exit(0);} }); MaryGUIClient m = new MaryGUIClient(); mainFrame.setContentPane(m); mainFrame.pack(); mainFrame.setVisible(true); } | 49846 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49846/67ee59d92b05a600393a25ffa5055c304eec371f/MaryGUIClient.java/buggy/java/de/dfki/lt/mary/client/MaryGUIClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
3639,
804,
3219,
2774,
3219,
273,
394,
804,
3219,
2932,
49,
814,
10978,
2445,
8863,
3639,
2774,
3219,
18,
1289,
3829,
2223,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
3639,
804,
3219,
2774,
3219,
273,
394,
804,
3219,
2932,
49,
814,
10978,
2445,
8863,
3639,
2774,
3219,
18,
1289,
3829,
2223,
... |
addAlert(state, rb.getString("cannotfin3")); | Log.warn("chef", e.getMessage() + " authGroupId=" + authzGroupId); | protected int sizeResources(SessionState state) { String mode = (String) state.getAttribute(STATE_MODE); // all the resources for paging List returnResources = new Vector(); boolean allowAddAssignment = AssignmentService.allowAddAssignment((String) state.getAttribute(STATE_CONTEXT_STRING)); if (mode.equalsIgnoreCase(MODE_LIST_ASSIGNMENTS)) { String view = ""; if (state.getAttribute(STATE_SELECTED_VIEW) != null) { view = (String) state.getAttribute(STATE_SELECTED_VIEW); } if (allowAddAssignment && view.equals(MODE_LIST_ASSIGNMENTS)) { // read all Assignments returnResources = AssignmentService.getListAssignmentsForContext((String) state .getAttribute(STATE_CONTEXT_STRING)); } else if (allowAddAssignment && view.equals(MODE_STUDENT_VIEW) || !allowAddAssignment) { // in the student list view of assignments Iterator assignments = AssignmentService .getAssignmentsForContext((String) state.getAttribute(STATE_CONTEXT_STRING)); Time currentTime = TimeService.newTime(); while (assignments.hasNext()) { Assignment a = (Assignment) assignments.next(); try { String deleted = a.getProperties().getProperty(ResourceProperties.PROP_ASSIGNMENT_DELETED); if (deleted == null || deleted.equals("")) { // show not deleted assignments Time openTime = a.getOpenTime(); if (openTime != null && currentTime.after(openTime) && !a.getDraft()) { returnResources.add(a); } } else if (deleted.equalsIgnoreCase(Boolean.TRUE.toString()) && AssignmentService.getSubmission(a.getReference(), (User) state .getAttribute(STATE_USER)) != null) { // and those deleted assignments but the user has made submissions to them returnResources.add(a); } } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot14")); } } } } /* * else if (mode.equalsIgnoreCase(MODE_INSTRUCTOR_VIEW_STUDENTS_ASSIGNMENT)) { Iterator assignments = AssignmentService.getAssignmentsForContext ((String) state.getAttribute (STATE_CONTEXT_STRING)); boolean found = false; while * (assignments.hasNext () && !found) { Assignment a = (Assignment) assignments.next(); String deleted = a.getProperties().getProperty(ResourceProperties.PROP_ASSIGNMENT_DELETED); if ((deleted == null || deleted.equals("")) && (!a.getDraft())) { // * not deleted, show it List users = AssignmentService.allowAddSubmissionUsers (a.getReference ()); // not deleted, show it if (search != null && !search.equals("")) { for (int i=0; i < users.size(); i++) { User u = (User) users.get(i); if * (StringUtil.containsIgnoreCase(u.getDisplayName(),search)) { returnResources.add(u); } } } else { returnResources.add(users); } found = true; } } } */ else if (mode.equalsIgnoreCase(MODE_INSTRUCTOR_REPORT_SUBMISSIONS)) { Vector submissions = new Vector(); Vector assignments = iterator_to_vector(AssignmentService.getAssignmentsForContext((String) state .getAttribute(STATE_CONTEXT_STRING))); if (assignments.size() > 0) { // users = AssignmentService.allowAddSubmissionUsers (((Assignment)assignments.get(0)).getReference ()); } for (int j = 0; j < assignments.size(); j++) { Assignment a = (Assignment) assignments.get(j); String deleted = a.getProperties().getProperty(ResourceProperties.PROP_ASSIGNMENT_DELETED); if ((deleted == null || deleted.equals("")) && (!a.getDraft())) { try { Vector assignmentSubmissions = iterator_to_vector(AssignmentService.getSubmissions(a)); for (int k = 0; k < assignmentSubmissions.size(); k++) { AssignmentSubmission s = (AssignmentSubmission) assignmentSubmissions.get(k); if (s != null && (s.getSubmitted() || (s.getReturned() && (s.getTimeLastModified().before(s .getTimeReturned()))))) { // has been subitted or has been returned and not work on it yet submissions.add(s); } // if-else } } catch (Exception e) { } } } returnResources = submissions; } else if (mode.equalsIgnoreCase(MODE_INSTRUCTOR_GRADE_ASSIGNMENT)) { try { Assignment a = AssignmentService.getAssignment((String) state.getAttribute(EXPORT_ASSIGNMENT_REF)); Vector submissions = iterator_to_vector(AssignmentService.getSubmissions(a)); // iterator to find only submitted ones for (int i = 0; i < submissions.size(); i++) { AssignmentSubmission submission = (AssignmentSubmission) submissions.get(i); if (submission.getSubmitted()) { returnResources.add(submission); } } } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot14")); } } // sort them all String ascending = "true"; String sort = ""; if (mode.equalsIgnoreCase(MODE_INSTRUCTOR_GRADE_ASSIGNMENT) || mode.equalsIgnoreCase(MODE_INSTRUCTOR_REPORT_SUBMISSIONS)) { ascending = (String) state.getAttribute(SORTED_SUBMISSION_ASC); sort = (String) state.getAttribute(SORTED_SUBMISSION_BY); } else { ascending = (String) state.getAttribute(SORTED_ASC); sort = (String) state.getAttribute(SORTED_BY); } if ((returnResources.size() > 1) && !mode.equalsIgnoreCase(MODE_INSTRUCTOR_VIEW_STUDENTS_ASSIGNMENT)) { Collections.sort(returnResources, new AssignmentComparator(sort, ascending)); } // record the total item number state.setAttribute(STATE_PAGEING_TOTAL_ITEMS, returnResources); return returnResources.size(); } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/684208bbbee6aa5b39e80022fafe248a4a1adb34/AssignmentAction.java/clean/assignment/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
963,
3805,
12,
2157,
1119,
919,
13,
202,
95,
202,
202,
780,
1965,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
7038,
1769,
9506,
202,
759,
777,
326,
2703,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
509,
963,
3805,
12,
2157,
1119,
919,
13,
202,
95,
202,
202,
780,
1965,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
7038,
1769,
9506,
202,
759,
777,
326,
2703,
364,... |
map.put("userManager", (UserManager) applicationContext.getBean("userManager")); map.put("mailEngine", (MailEngine) applicationContext.getBean("mailEngine")); map.put("mailMessage", (MailMessage) applicationContext.getBean("mailMessage")); | map.put("userManager", applicationContext.getBean("userManager")); map.put("mailEngine", applicationContext.getBean("mailEngine")); map.put("mailMessage", applicationContext.getBean("mailMessage")); | protected void onSetUp() throws Exception { super.onSetUp(); // these can be mocked if you want a more "pure" unit test Map map = new HashMap(); map.put("userManager", (UserManager) applicationContext.getBean("userManager")); map.put("mailEngine", (MailEngine) applicationContext.getBean("mailEngine")); map.put("mailMessage", (MailMessage) applicationContext.getBean("mailMessage")); page = (PasswordHint) getPage(PasswordHint.class, map); } | 3521 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3521/67d0244aa759db7146f7782451b1d9a0b50e3fae/PasswordHintTest.java/buggy/extras/tapestry/test/web/org/appfuse/webapp/action/PasswordHintTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
694,
1211,
1435,
1216,
1185,
288,
3639,
2240,
18,
265,
694,
1211,
5621,
7734,
368,
4259,
848,
506,
5416,
329,
309,
1846,
2545,
279,
1898,
315,
84,
594,
6,
2836,
1842,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
694,
1211,
1435,
1216,
1185,
288,
3639,
2240,
18,
265,
694,
1211,
5621,
7734,
368,
4259,
848,
506,
5416,
329,
309,
1846,
2545,
279,
1898,
315,
84,
594,
6,
2836,
1842,
36... |
System.out.println("lenVisitFunctionDef:" + node.toString("")); | public Object visitFunctionDef(FunctionDef node) throws Exception { System.out.println("lenVisitFunctionDef:" + node.toString("")); return null; } | 50371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50371/2e0750ff13782bb25064881debe65f22d8f24e7b/LengthEstimator.java/clean/org.python.pydev/src/org/python/pydev/editor/model/LengthEstimator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3757,
2083,
3262,
12,
2083,
3262,
756,
13,
1216,
1185,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1897,
10432,
2083,
3262,
2773,
397,
756,
18,
10492,
2932,
7923,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3757,
2083,
3262,
12,
2083,
3262,
756,
13,
1216,
1185,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
1897,
10432,
2083,
3262,
2773,
397,
756,
18,
10492,
2932,
7923,
1769,
... | |
return selectMessage(newRow); | } return selectMessage(newRow); | public int selectNextMessage() { int selectedRow = messageTable.getSelectedRow(); int newRow = selectedRow + 1; boolean done = false; while (! done && newRow < messageTable.getRowCount() ) { MessageProxy mp = getFolderInfo().getMessageProxy(newRow); try { if (mp.getMessageInfo().getFlags().contains(Flags.Flag.DELETED)) { newRow ++; } else { done = true; } } catch (MessagingException me) { newRow ++; } } return selectMessage(newRow); } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/b10862e33143787efc67116cc951556e91ce97a6/FolderDisplayPanel.java/clean/net/suberic/pooka/gui/FolderDisplayPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2027,
2134,
1079,
1435,
288,
202,
474,
3170,
1999,
273,
883,
1388,
18,
588,
7416,
1999,
5621,
202,
474,
27805,
273,
3170,
1999,
397,
404,
31,
202,
6494,
2731,
273,
629,
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,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2027,
2134,
1079,
1435,
288,
202,
474,
3170,
1999,
273,
883,
1388,
18,
588,
7416,
1999,
5621,
202,
474,
27805,
273,
3170,
1999,
397,
404,
31,
202,
6494,
2731,
273,
629,
31,
2... |
public void mID() throws RecognitionException { try { ruleNestingLevel++; int _type = ID; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1330:4: ( ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))* ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1330:4: ('a'..'z'|'A'..'Z'|'_'|'$'|'\\u00c0'..'\\u00ff') ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))* { if ( input.LA(1)=='$'||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\u00C0' && input.LA(1)<='\u00FF') ) { input.consume(); failed=false; } else { if (backtracking>0) {failed=true; return ;} MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse; } // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1330:52: ( ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff'))* loop16: do { int alt16=2; int LA16_0 = input.LA(1); if ( ((LA16_0>='0' && LA16_0<='9')||(LA16_0>='A' && LA16_0<='Z')||LA16_0=='_'||(LA16_0>='a' && LA16_0<='z')||(LA16_0>='\u00C0' && LA16_0<='\u00FF')) ) { alt16=1; } switch (alt16) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1330:53: ('a'..'z'|'A'..'Z'|'_'|'0'..'9'|'\\u00c0'..'\\u00ff') { if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z')||(input.LA(1)>='\u00C0' && input.LA(1)<='\u00FF') ) { input.consume(); failed=false; } else { if (backtracking>0) {failed=true; return ;} MismatchedSetException mse = new MismatchedSetException(null,input); recover(mse); throw mse; } } break; default : break loop16; } } while (true); } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/c3437c2488c314384990c4282a547e0f92ca02c2/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
734,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
1599,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
734,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
1599,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,
... | ||
return (ERXComponentActionRedirector)responses.valueForKeyPath(request.sessionID() + "." + request.uri()); | ERXComponentActionRedirector redirector = (ERXComponentActionRedirector)responses.valueForKeyPath(request.sessionID() + "." + request.uri()); if(redirector != null) { log.info("Retrieved URL: " + redirector.url()); } else { log.info("No Redirector for request: " + request.uri()); } return redirector; | public static ERXComponentActionRedirector redirectorForRequest(WORequest request) { return (ERXComponentActionRedirector)responses.valueForKeyPath(request.sessionID() + "." + request.uri()); } | 17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/5fb4a30c24ec4b3297ed634421a82ea5ee7bd9ce/ERXComponentActionRedirector.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXComponentActionRedirector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
4232,
60,
1841,
1803,
5961,
280,
3136,
280,
27649,
12,
59,
51,
691,
590,
13,
288,
3639,
4232,
60,
1841,
1803,
5961,
280,
3136,
280,
273,
261,
654,
60,
1841,
1803,
5961,
280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4232,
60,
1841,
1803,
5961,
280,
3136,
280,
27649,
12,
59,
51,
691,
590,
13,
288,
3639,
4232,
60,
1841,
1803,
5961,
280,
3136,
280,
273,
261,
654,
60,
1841,
1803,
5961,
280,
... |
protected static void bitSet(int flag, int bit, boolean set) | protected static int bitSet(int flag, int bit, boolean set) | protected static void bitSet(int flag, int bit, boolean set) { int mask = 1<<bit; if (set) flag |= mask; else flag &= ~mask; } | 1507 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1507/afa0890be098fcd234ea66dd37a858537eda82c7/ILCObject.java/buggy/src/java/hep/lcio/implementation/event/ILCObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
760,
509,
2831,
694,
12,
474,
2982,
16,
509,
2831,
16,
1250,
444,
13,
282,
288,
1377,
509,
3066,
273,
404,
17685,
3682,
31,
1377,
309,
261,
542,
13,
2982,
5626,
3066,
31,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
760,
509,
2831,
694,
12,
474,
2982,
16,
509,
2831,
16,
1250,
444,
13,
282,
288,
1377,
509,
3066,
273,
404,
17685,
3682,
31,
1377,
309,
261,
542,
13,
2982,
5626,
3066,
31,
1377,
... |
grants.put(cube, toInteger(access)); | grants.put(schema, toInteger(access)); | public void grant(Cube cube, int access) { Util.assertPrecondition(cube != null, "cube != null"); Util.assertPrecondition(access == Access.ALL || access == Access.NONE, "access == Access.ALL || access == Access.NONE"); Util.assertPrecondition(isMutable(), "isMutable()"); grants.put(cube, toInteger(access)); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/0cc18052c959f8014f772086b193e28d7a6dd66a/Role.java/buggy/src/main/mondrian/olap/Role.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7936,
12,
39,
4895,
18324,
16,
509,
2006,
13,
288,
3639,
3564,
18,
11231,
1386,
4175,
12,
21186,
480,
446,
16,
315,
21186,
480,
446,
8863,
3639,
3564,
18,
11231,
1386,
4175,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7936,
12,
39,
4895,
18324,
16,
509,
2006,
13,
288,
3639,
3564,
18,
11231,
1386,
4175,
12,
21186,
480,
446,
16,
315,
21186,
480,
446,
8863,
3639,
3564,
18,
11231,
1386,
4175,
... |
out.println("alert('Your browser sent a request that could not be understood.\\nIf you understand how Javascript works in your browser, please help us fix the problem.\\nSee the mailing lists at http: | out.println("DWREngine._handleWarning('Your browser sent a request that could not be understood.\\nIf you understand how Javascript works in your browser, please help us fix the problem.\\nSee the mailing lists at http: | protected void doExec(HttpServletRequest req, HttpServletResponse resp) throws IOException { ExecuteQuery eq = new ExecuteQuery(req, creatorManager, converterManager, accessControl); if (eq.isFailingBrowser()) { resp.setContentType(MIME_HTML); PrintWriter out = resp.getWriter(); out.println("//<script type='text/javascript'>"); //$NON-NLS-1$ out.println("alert('Your browser sent a request that could not be understood.\\nIf you understand how Javascript works in your browser, please help us fix the problem.\\nSee the mailing lists at http://www.getahead.ltd.uk/dwr/ for more information.');"); //$NON-NLS-1$ out.println("//</script>"); //$NON-NLS-1$ out.flush(); return; } Call[] calls = eq.execute(); for (int i = 0; i < calls.length; i++) { Call call = calls[i]; if (call.getThrowable() != null) { log.warn("Erroring: id[" + call.getId() + "] message[" + call.getThrowable().toString() + ']'); //$NON-NLS-1$ //$NON-NLS-2$ } else { log.debug("Returning: id[" + call.getId() + "] init[" + call.getReply().getInitCode() + "] assign[" + call.getReply().getAssignCode() + "] xml[" + eq.isXmlMode() + ']'); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } } // We build the answer up in a StringBuffer because that makes is easier // to debug, and because that's only what the compiler does anyway. StringBuffer buffer = new StringBuffer(); // if we are in html (iframe mode) we need to direct script to the parent String prefix = eq.isXmlMode() ? "" : "window.parent."; //$NON-NLS-1$ //$NON-NLS-2$ // iframe mode starts as HTML, so get into script mode if (!eq.isXmlMode()) { buffer.append("<script type='text/javascript'>\n"); //$NON-NLS-1$ } for (int i = 0; i < calls.length; i++) { Call call = calls[i]; if (call.getThrowable() != null) { String output = jsutil.escapeJavaScript(call.getThrowable().toString()); buffer.append(prefix); buffer.append("DWREngine._handleError('"); //$NON-NLS-1$ buffer.append(call.getId()); buffer.append("', '"); //$NON-NLS-1$ buffer.append(output); buffer.append("');\n"); //$NON-NLS-1$ } else { buffer.append(call.getReply().getInitCode()); buffer.append('\n'); buffer.append(prefix); buffer.append("DWREngine._handleResponse('"); //$NON-NLS-1$ buffer.append(call.getId()); buffer.append("', "); //$NON-NLS-1$ buffer.append(call.getReply().getAssignCode()); buffer.append(");\n"); //$NON-NLS-1$ } } // iframe mode needs to get out of script mode if (!eq.isXmlMode()) { buffer.append("</script>\n"); //$NON-NLS-1$ } String reply = buffer.toString(); log.debug(reply); // LocalUtil.addNoCacheHeaders(resp); resp.setContentType(eq.isXmlMode() ? MIME_XML : MIME_HTML); PrintWriter out = resp.getWriter(); out.print(reply); out.flush(); } | 45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/d58638ac699cd04fdd8d64194898c6edcfa69238/DefaultProcessor.java/clean/java/uk/ltd/getahead/dwr/impl/DefaultProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
1905,
12,
2940,
18572,
1111,
16,
12446,
1718,
13,
1216,
1860,
565,
288,
3639,
7903,
1138,
7555,
273,
394,
7903,
1138,
12,
3658,
16,
11784,
1318,
16,
6027,
1318,
16,
2006,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1905,
12,
2940,
18572,
1111,
16,
12446,
1718,
13,
1216,
1860,
565,
288,
3639,
7903,
1138,
7555,
273,
394,
7903,
1138,
12,
3658,
16,
11784,
1318,
16,
6027,
1318,
16,
2006,
... |
for(int i=0;i<outboundBridges.size();i++){ DestinationBridge bridge=(DestinationBridge) outboundBridges.get(i); | for (int i = 0; i < outboundBridges.size(); i++) { DestinationBridge bridge = (DestinationBridge) outboundBridges.get(i); | public void start() throws Exception{ init(); if (started.compareAndSet(false, true)){ for(int i=0;i<inboundBridges.size();i++){ DestinationBridge bridge=(DestinationBridge) inboundBridges.get(i); bridge.start(); } for(int i=0;i<outboundBridges.size();i++){ DestinationBridge bridge=(DestinationBridge) outboundBridges.get(i); bridge.start(); } log.info("JMS Connector "+getName()+" Started"); } } | 11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/fbad105e7d9ea7ac1635b30918b5e8fc4f986ab5/JmsConnector.java/clean/activemq-core/src/main/java/org/apache/activemq/network/jms/JmsConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
1216,
1185,
95,
3639,
1208,
5621,
3639,
309,
261,
14561,
18,
9877,
13152,
12,
5743,
16,
638,
3719,
95,
5411,
364,
12,
474,
277,
33,
20,
31,
77,
32,
267,
3653,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
1216,
1185,
95,
3639,
1208,
5621,
3639,
309,
261,
14561,
18,
9877,
13152,
12,
5743,
16,
638,
3719,
95,
5411,
364,
12,
474,
277,
33,
20,
31,
77,
32,
267,
3653,
38... |
catch(Throwable ex) { if(log.isErrorEnabled()) log.error("exception=" + Util.print(ex)); | } else { if (log.isErrorEnabled()) { log.error("channel == null"); | public void send(Message msg) throws Exception { if(channel != null) channel.send(msg); else if(adapter != null) { try { if(id != null) adapter.send(id, msg); else adapter.send(msg); } catch(Throwable ex) { if(log.isErrorEnabled()) log.error("exception=" + Util.print(ex)); } } else { if(log.isErrorEnabled()) log.error("channel == null"); } } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/9b133caccdd70cd06c1674ee2a42e75071fdc287/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1366,
12,
1079,
1234,
13,
1216,
1185,
288,
5411,
309,
12,
4327,
480,
446,
13,
7734,
1904,
18,
4661,
12,
3576,
1769,
5411,
469,
309,
12,
10204,
480,
446,
13,
288,
7734,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1366,
12,
1079,
1234,
13,
1216,
1185,
288,
5411,
309,
12,
4327,
480,
446,
13,
7734,
1904,
18,
4661,
12,
3576,
1769,
5411,
469,
309,
12,
10204,
480,
446,
13,
288,
7734,
775,
... |
/* * should not happen */ | public Node node_assign(Node lhs, Node rhs) { if (lhs == null) { return null; } value_expr(rhs); switch (lhs.getType()) { case Constants.NODE_GASGN : case Constants.NODE_IASGN : case Constants.NODE_LASGN : case Constants.NODE_DASGN : case Constants.NODE_DASGN_CURR : case Constants.NODE_MASGN : case Constants.NODE_CDECL : case Constants.NODE_CVDECL : case Constants.NODE_CVASGN : lhs.setValueNode(rhs); break; case Constants.NODE_CALL : lhs.setArgsNode(arg_add(lhs.getArgsNode(), rhs)); break; default : /* * should not happen */ break; } if (rhs != null) { fixpos(lhs, rhs); } return lhs; } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/d31a76ee29d5978a9bec41e3ac9134cee024bcab/ParserHelper.java/buggy/org/jruby/parser/ParserHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
756,
67,
6145,
12,
907,
8499,
16,
2029,
7711,
13,
288,
3639,
309,
261,
80,
4487,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
460,
67,
8638,
12,
86,
4487,
1769,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
756,
67,
6145,
12,
907,
8499,
16,
2029,
7711,
13,
288,
3639,
309,
261,
80,
4487,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
460,
67,
8638,
12,
86,
4487,
1769,... | |
void generateBodyCode(Context cx) | void generateBodyCode() | void generateBodyCode(Context cx) { initBodyGeneration(cx); String methodName, methodDesc; if (inDirectCallFunction) { methodName = "callDirect"; methodDesc = fnCurrent.getDirectCallMethodSignature(); } else { methodName = "call"; methodDesc = "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;)Ljava/lang/Object;"; } cfw.startMethod(methodName, methodDesc, (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); generatePrologue(cx); Node codegenBase; if (fnCurrent != null) { codegenBase = scriptOrFn.getLastChild(); } else { codegenBase = scriptOrFn; } generateCodeFromNode(codegenBase, null); generateEpilogue(); cfw.stopMethod((short)(localsMax + 1), debugVars); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3c9b84173796cf5a1eb1f786e5ba6af89b66fcab/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2103,
2250,
1085,
1435,
565,
288,
3639,
1208,
2250,
13842,
12,
71,
92,
1769,
3639,
514,
4918,
16,
707,
4217,
31,
3639,
309,
261,
267,
5368,
1477,
2083,
13,
288,
5411,
4918,
273,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2103,
2250,
1085,
1435,
565,
288,
3639,
1208,
2250,
13842,
12,
71,
92,
1769,
3639,
514,
4918,
16,
707,
4217,
31,
3639,
309,
261,
267,
5368,
1477,
2083,
13,
288,
5411,
4918,
273,
31... |
if (rect) { | if (rtt && hasRTT) { | public void releasePbufferFromTexture() { if (!rtt) { throw new GLException("Shouldn't try to bind a pbuffer to a texture if render-to-texture hasn't been " + "specified in its GLCapabilities"); } if (rect) { GL gl = getGL(); if (!gl.wglReleaseTexImageARB(buffer, GL.WGL_FRONT_LEFT_ARB)) { throw new GLException("Releasing of pbuffer from texture failed: " + wglGetLastError()); } } } | 47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/d4647dc1d9020f9c7bec2fac06dbb0424cb11c29/WindowsPbufferGLContext.java/buggy/src/net/java/games/jogl/impl/windows/WindowsPbufferGLContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3992,
52,
4106,
1265,
10967,
1435,
288,
565,
309,
16051,
86,
748,
13,
288,
1377,
604,
394,
10252,
503,
2932,
14309,
82,
1404,
775,
358,
1993,
279,
293,
4106,
358,
279,
11428,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3992,
52,
4106,
1265,
10967,
1435,
288,
565,
309,
16051,
86,
748,
13,
288,
1377,
604,
394,
10252,
503,
2932,
14309,
82,
1404,
775,
358,
1993,
279,
293,
4106,
358,
279,
11428,
... |
dest.addElement( files.nextElement() ); | dest.addElement(files.nextElement()); | protected static final void addAllVector(Vector dest, Enumeration files){ while (files.hasMoreElements()) { dest.addElement( files.nextElement() ); } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/8af1905a98b1e04a63ab7473d64a41bfda91f15e/AbstractMetamataTask.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/metamata/AbstractMetamataTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
727,
918,
5428,
5018,
12,
5018,
1570,
16,
13864,
1390,
15329,
3639,
1323,
261,
2354,
18,
5332,
7417,
3471,
10756,
288,
5411,
1570,
18,
1289,
1046,
12,
2354,
18,
4285,
1046,
106... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
727,
918,
5428,
5018,
12,
5018,
1570,
16,
13864,
1390,
15329,
3639,
1323,
261,
2354,
18,
5332,
7417,
3471,
10756,
288,
5411,
1570,
18,
1289,
1046,
12,
2354,
18,
4285,
1046,
106... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.