rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
String sbVal = (String)sbItem.getConstant(); Object sVal = (Object)i.getConstant(); | Object sbVal = sbItem.getConstant(); Object sVal = i.getConstant(); | private void processMethodCall(DismantleBytecode dbc, int seen) { String clsName = dbc.getClassConstantOperand(); String methodName = dbc.getNameConstantOperand(); String signature = dbc.getSigConstantOperand(); String appenderValue = null; Item sbItem = null; //TODO: stack merging for trinaries kills the constant.. would be nice to maintain. if ("java/lang/StringBuffer".equals(clsName) || "java/lang/StringBuilder".equals(clsName)) { if ("<init>".equals(methodName)) { if ("(Ljava/lang/String;)V".equals(signature)) { Item i = getStackItem(0); appenderValue = (String)i.getConstant(); } else if ("()V".equals(signature)) { appenderValue = ""; } } else if ("toString".equals(methodName)) { Item i = getStackItem(0); appenderValue = (String)i.getConstant(); } else if ("append".equals(methodName)) { sbItem = getStackItem(1); Item i = getStackItem(0); String sbVal = (String)sbItem.getConstant(); Object sVal = (Object)i.getConstant(); if ((sbVal != null) && (sVal != null)) { appenderValue = sbVal + sVal.toString(); } else if (sbItem.registerNumber >= 0) { OpcodeStack.Item item = getLVValue(sbItem.registerNumber); if (item != null) item.constValue = null; } } } pushByInvoke(dbc, seen != INVOKESTATIC); if (appenderValue != null) { Item i = this.getStackItem(0); i.constValue = appenderValue; if (sbItem != null) { i.registerNumber = sbItem.registerNumber; i.field = sbItem.field; i.userValue = sbItem.userValue; if (sbItem.registerNumber >= 0) setLVValue(sbItem.registerNumber, i ); } return; } if (clsName.equals("java/util/Random") && methodName.equals("nextInt") && signature.equals("()I")) { Item i = pop(); i.setSpecialKind(Item.RANDOM_INT); push(i); } else if (methodName.equals("hashCode") && signature.equals("()I")) { Item i = pop(); i.setSpecialKind(Item.HASHCODE_INT); push(i); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/11c43e7812b9d0ebd068ce322701b9ab9da6ae86/OpcodeStack.java/clean/findbugs/src/java/edu/umd/cs/findbugs/OpcodeStack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
202,
1152,
918,
1207,
12592,
12,
1669,
81,
970,
298,
858,
16651,
9881,
16,
509,
5881,
13,
288,
3196,
202,
780,
2028,
461,
273,
9881,
18,
588,
797,
6902,
10265,
5621,
3196,
202,
780,
491... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
202,
1152,
918,
1207,
12592,
12,
1669,
81,
970,
298,
858,
16651,
9881,
16,
509,
5881,
13,
288,
3196,
202,
780,
2028,
461,
273,
9881,
18,
588,
797,
6902,
10265,
5621,
3196,
202,
780,
491... |
if (clazz == null) | if (clazz == null) | public Test getTest(String suiteClassName) { if (suiteClassName.length() <= 0) { clearStatus(); return null; } Class testClass= null; try { testClass= loadSuiteClass(suiteClassName); } catch (ClassNotFoundException e) { String clazz= e.getMessage(); if (clazz == null) clazz= suiteClassName; runFailed("Class not found \""+clazz+"\""); return null; } catch(Exception e) { runFailed("Error: "+e.toString()); return null; } Method suiteMethod= null; try { suiteMethod= testClass.getMethod(SUITE_METHODNAME, new Class[0]); } catch(Exception e) { // try to extract a test suite automatically clearStatus(); return new TestSuite(testClass); } Test test= null; try { test= (Test)suiteMethod.invoke(null, new Class[0]); // static method if (test == null) return test; } catch (InvocationTargetException e) { runFailed("Failed to invoke suite():" + e.getTargetException().toString()); return null; } catch (IllegalAccessException e) { runFailed("Failed to invoke suite():" + e.toString()); return null; } clearStatus(); return test; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/4b4449dde49cdcaed9ae00d1ac057ecfeb8d8c23/BaseTestRunner.java/buggy/org.eclipse.jdt.core.tests.model/workspace/Converter/junit/runner/BaseTestRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7766,
29384,
12,
780,
11371,
3834,
13,
288,
202,
202,
430,
261,
30676,
3834,
18,
2469,
1435,
1648,
374,
13,
288,
1082,
202,
8507,
1482,
5621,
1082,
202,
2463,
446,
31,
202,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7766,
29384,
12,
780,
11371,
3834,
13,
288,
202,
202,
430,
261,
30676,
3834,
18,
2469,
1435,
1648,
374,
13,
288,
1082,
202,
8507,
1482,
5621,
1082,
202,
2463,
446,
31,
202,
20... |
intergenicEnd = chr.getLength().intValue(); | public Object next() { if (!hasNext()) { throw new NoSuchElementException(); } int nextIntergenicStart = bs.nextClearBit(prevEndPos + 1); int intergenicEnd; int nextSetBit = bs.nextSetBit(nextIntergenicStart); if (nextSetBit == -1 || bs.nextClearBit(nextSetBit) > chr.getLength().intValue()) { intergenicEnd = chr.getLength().intValue(); prevEndPos = -1; } else { intergenicEnd = nextSetBit - 1; prevEndPos = intergenicEnd; } IntergenicRegion intergenicRegion = (IntergenicRegion) DynamicUtil.createObject(Collections.singleton(IntergenicRegion.class)); Location location = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); Synonym synonym = (Synonym) DynamicUtil.createObject(Collections.singleton(Synonym.class)); location.setStart(new Integer(nextIntergenicStart)); location.setEnd(new Integer(intergenicEnd)); location.setStrand(new Integer(1)); location.setPhase(new Integer(0)); location.setStartIsPartial(Boolean.FALSE); location.setEndIsPartial(Boolean.FALSE); location.setSubject(intergenicRegion); location.setObject(chr); location.addEvidence(dataSet); intergenicRegion.setChromosomeLocation(location); intergenicRegion.setChromosome(chr); intergenicRegion.setOrganism(chr.getOrganism()); intergenicRegion.addSynonyms(synonym); intergenicRegion.addEvidence(dataSet); synonym.addEvidence(dataSet); synonym.setSource(dataSource); synonym.setSubject(intergenicRegion); synonym.setType("identifier"); int length = location.getEnd().intValue() - location.getStart().intValue() + 1; intergenicRegion.setLength(new Integer(length)); String identifier = "integenic_region_chr" + chr.getIdentifier() + "_" + location.getStart() + ".." + location.getEnd(); intergenicRegion.setIdentifier(identifier); synonym.setValue(intergenicRegion.getIdentifier()); return intergenicRegion; } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/5c6d89a3a874e1bac723208c06714d745e08f6b0/IntergenicRegionUtil.java/clean/flymine/model/genomic/src/java/org/flymine/postprocess/IntergenicRegionUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
1024,
1435,
288,
7734,
309,
16051,
5332,
2134,
10756,
288,
10792,
604,
394,
23104,
5621,
7734,
289,
27573,
509,
1024,
2465,
4507,
335,
1685,
273,
7081,
18,
4285,
9094,
5775,
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,
2398,
1071,
1033,
1024,
1435,
288,
7734,
309,
16051,
5332,
2134,
10756,
288,
10792,
604,
394,
23104,
5621,
7734,
289,
27573,
509,
1024,
2465,
4507,
335,
1685,
273,
7081,
18,
4285,
9094,
5775,
12... | |
init(owner, name, description, readersGroup, writersGroup); | setOjbConcreteClass(this.getClass().getName()); setRootDomainObject(RootDomainObject.getInstance()); | public ExecutionCourseForum(Person owner, String name, String description, Group readersGroup, Group writersGroup) { super(); init(owner, name, description, readersGroup, writersGroup); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/7148367fa5a213e3f8ff5b75cd5b71ffc60dce42/ExecutionCourseForum.java/clean/src/net/sourceforge/fenixedu/domain/messaging/ExecutionCourseForum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8687,
39,
3117,
1290,
379,
12,
8346,
3410,
16,
514,
508,
16,
514,
2477,
16,
3756,
16527,
1114,
16,
5411,
3756,
18656,
1114,
13,
288,
3639,
2240,
5621,
3639,
444,
51,
10649,
25845,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8687,
39,
3117,
1290,
379,
12,
8346,
3410,
16,
514,
508,
16,
514,
2477,
16,
3756,
16527,
1114,
16,
5411,
3756,
18656,
1114,
13,
288,
3639,
2240,
5621,
3639,
444,
51,
10649,
25845,
... |
safeUpdateItem.widget = widget; safeUpdateItem.object = element; safeUpdateItem.fullMap = true; Platform.run(safeUpdateItem); | try { safeUpdateItem.widget = widget; safeUpdateItem.object = element; safeUpdateItem.fullMap = true; Platform.run(safeUpdateItem); } finally { safeUpdateItem.widget = null; safeUpdateItem.object = null; } | protected final void updateItem(Widget widget, Object element) { safeUpdateItem.widget = widget; safeUpdateItem.object = element; safeUpdateItem.fullMap = true; Platform.run(safeUpdateItem);} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/261d540aafcebd3bdea1f5c96684f1a5cd997308/StructuredViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
727,
918,
1089,
1180,
12,
4609,
3604,
16,
1033,
930,
13,
288,
202,
4626,
1891,
1180,
18,
6587,
273,
3604,
31,
202,
4626,
1891,
1180,
18,
1612,
273,
930,
31,
202,
4626,
1891,
1180,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
727,
918,
1089,
1180,
12,
4609,
3604,
16,
1033,
930,
13,
288,
202,
4626,
1891,
1180,
18,
6587,
273,
3604,
31,
202,
4626,
1891,
1180,
18,
1612,
273,
930,
31,
202,
4626,
1891,
1180,
18,
... |
if ( prefix.length()==0 && uriStr.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) | if ( prefix.length()==0 && uriStr.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) | private String resolvePrefixToURI (String prefix) throws Exception { String uriStr = fStringPool.toString(fNamespacesScope.getNamespaceForPrefix(fStringPool.addSymbol(prefix))); if (uriStr == null) { // REVISIT: Localize reportGenericSchemaError("prefix : [" + prefix +"] can not be resolved to a URI"); return ""; } //REVISIT, !!!! a hack: needs to be updated later, cause now we only use localpart to key build-in datatype. if ( prefix.length()==0 && uriStr.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && fTargetNSURIString.length() == 0) { uriStr = ""; } return uriStr; } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/87731f2b2070ba79da173a5e6be82410b096d7c5/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2245,
2244,
774,
3098,
261,
780,
1633,
13,
1216,
1185,
225,
288,
3639,
514,
2003,
1585,
273,
284,
780,
2864,
18,
10492,
12,
74,
13180,
3876,
18,
588,
3402,
1290,
2244,
12,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2245,
2244,
774,
3098,
261,
780,
1633,
13,
1216,
1185,
225,
288,
3639,
514,
2003,
1585,
273,
284,
780,
2864,
18,
10492,
12,
74,
13180,
3876,
18,
588,
3402,
1290,
2244,
12,
74... |
elements.add(0, | elements.add(elements.size(), | private List stmtsForConstructor(FEContext ctx, Expression name, Type type, Expression init, boolean arrayConstructor) { List result = new java.util.ArrayList(); // If the type doesn't involve a constructor, there are no // generated statements. String field_name = null; if (name instanceof ExprVar) field_name = ((ExprVar) name).getName(); if (!needsConstructor(type, init)) return result; // No; generate the constructor. if (!libraryFormat || (arrayConstructor || !(type instanceof TypeArray))) { // Instead of constructing here, as in new int[][], // it should just assign the variable to reference // a global copy initialized to zero. if (libraryFormat && !special_global && type instanceof TypeArray && field_name != null && activeStreamName != null && immutableDetector.isImmutable(activeStreamName, field_name)) { String tempVar = varGen.nextVar(); Expression varExp = new ExprVar(ctx, tempVar); List elements = new ArrayList(); Type base = type; while (base instanceof TypeArray) { elements.add(0, ((TypeArray) base).getLength() ); base = ((TypeArray) base).getBase(); } result.add( new StmtVarDecl( ctx, new TypeArray(new TypePrimitive(TypePrimitive.TYPE_INT), new ExprConstInt(elements.size())), tempVar, new ExprArrayInit(ctx, elements)) ); result.add( new StmtAssign( ctx, name, new ExprTypeCast( ctx, type, new ExprFunCall( ctx, "ArrayMemoizer.initArray", new ExprJavaConstructor( ctx, new TypeArray(((TypeArray) type).getComponent(), new ExprConstInt(0)) ), varExp ) ) ) ); } else { result.add(new StmtAssign(ctx, name, new ExprJavaConstructor(ctx, type))); } } // Now, if this is a structure type, we might need to // recursively generate constructors for the structure // members. if (type instanceof TypeStruct) { TypeStruct ts = (TypeStruct)type; for (int i = 0; i < ts.getNumFields(); i++) { String fname = ts.getField(i); Type ftype = ts.getType(fname); if (needsConstructor(ftype)) { // Construct the new left-hand side: Expression lhs = new ExprField(ctx, name, fname); // Get child constructors and add them: result.addAll(stmtsForConstructor(ctx, lhs, ftype, null, true)); } } } // Or, if this is an array of structures, we might need to // recursively generate constructors. if (libraryFormat && (type instanceof TypeArray)) { TypeArray ta = (TypeArray) type; Type base = ta.getBase(); if (needsConstructor(base)) { // The length might be non-constant. This means that // we need to do this by looping through the array. String tempVar = varGen.nextVar(); Expression varExp = new ExprVar(ctx, tempVar); Statement decl = new StmtVarDecl(ctx, new TypePrimitive(TypePrimitive.TYPE_INT), tempVar, new ExprConstInt(ctx, 0)); Expression cond = new ExprBinary(ctx, ExprBinary.BINOP_LT, varExp, ta.getLength()); Statement incr = new StmtExpr(ctx, new ExprUnary(ctx, ExprUnary.UNOP_POSTINC, varExp)); Expression lhs = new ExprArray(ctx, name, varExp); Statement body = new StmtBlock(ctx, stmtsForConstructor(ctx, lhs, base, null, false)); Statement loop = new StmtFor(ctx, decl, cond, incr, body); result.add(loop); } } return result; } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/2216d7784d19a9def23d6b06edbfacfcbed3a939/InsertInitConstructors.java/clean/streams/src/streamit/frontend/tojava/InsertInitConstructors.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
15452,
1290,
6293,
12,
8090,
1042,
1103,
16,
5371,
508,
16,
19694,
1412,
618,
16,
5371,
1208,
16,
4766,
1377,
1250,
526,
6293,
13,
565,
288,
3639,
987,
563,
273,
394,
2252,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
15452,
1290,
6293,
12,
8090,
1042,
1103,
16,
5371,
508,
16,
19694,
1412,
618,
16,
5371,
1208,
16,
4766,
1377,
1250,
526,
6293,
13,
565,
288,
3639,
987,
563,
273,
394,
2252,
1... |
protected static Boolean proxyEquals(Object aProxy, Object aOther) { | protected static Boolean proxyEquals(Object aProxy, Object aOther) { | protected static Boolean proxyEquals(Object aProxy, Object aOther) { return (aProxy == aOther ? Boolean.TRUE : Boolean.FALSE); } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/c385b2e9fc8073db7044d932ee6cd2f136fea61a/XPCOMJavaProxy.java/buggy/extensions/java/xpcom/XPCOMJavaProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
3411,
2889,
8867,
12,
921,
279,
3886,
16,
1033,
279,
8290,
13,
225,
288,
565,
327,
261,
69,
3886,
422,
279,
8290,
692,
3411,
18,
18724,
294,
3411,
18,
21053,
1769,
225,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
3411,
2889,
8867,
12,
921,
279,
3886,
16,
1033,
279,
8290,
13,
225,
288,
565,
327,
261,
69,
3886,
422,
279,
8290,
692,
3411,
18,
18724,
294,
3411,
18,
21053,
1769,
225,
289,
... |
System.out.println(msg); return; | throw new BuildException(msg); | protected Main(String[] args) throws BuildException { String searchForThis = null; PrintStream logTo = null; // cycle through given args for (int i = 0; i < args.length; i++) { String arg = args[i]; if (arg.equals("-help")) { printUsage(); return; } else if (arg.equals("-version")) { printVersion(); return; } else if (arg.equals("-diagnostics")){ Diagnostics.doReport(System.out); return; } else if (arg.equals("-quiet") || arg.equals("-q")) { msgOutputLevel = Project.MSG_WARN; } else if (arg.equals("-verbose") || arg.equals("-v")) { printVersion(); msgOutputLevel = Project.MSG_VERBOSE; } else if (arg.equals("-debug")) { printVersion(); msgOutputLevel = Project.MSG_DEBUG; } else if (arg.equals("-logfile") || arg.equals("-l")) { try { File logFile = new File(args[i + 1]); i++; logTo = new PrintStream(new FileOutputStream(logFile)); isLogFileUsed = true; } catch (IOException ioe) { String msg = "Cannot write on the specified log file. " + "Make sure the path exists and you have write " + "permissions."; System.out.println(msg); return; } catch (ArrayIndexOutOfBoundsException aioobe) { String msg = "You must specify a log file when " + "using the -log argument"; System.out.println(msg); return; } } else if (arg.equals("-buildfile") || arg.equals("-file") || arg.equals("-f")) { try { buildFile = new File(args[i + 1]); i++; } catch (ArrayIndexOutOfBoundsException aioobe) { String msg = "You must specify a buildfile when " + "using the -buildfile argument"; System.out.println(msg); return; } } else if (arg.equals("-listener")) { try { listeners.addElement(args[i + 1]); i++; } catch (ArrayIndexOutOfBoundsException aioobe) { String msg = "You must specify a classname when " + "using the -listener argument"; System.out.println(msg); return; } } else if (arg.startsWith("-D")) { /* Interestingly enough, we get to here when a user * uses -Dname=value. However, in some cases, the JDK * goes ahead and parses this out to args * {"-Dname", "value"} * so instead of parsing on "=", we just make the "-D" * characters go away and skip one argument forward. * * I don't know how to predict when the JDK is going * to help or not, so we simply look for the equals sign. */ String name = arg.substring(2, arg.length()); String value = null; int posEq = name.indexOf("="); if (posEq > 0) { value = name.substring(posEq + 1); name = name.substring(0, posEq); } else if (i < args.length - 1) { value = args[++i]; } definedProps.put(name, value); } else if (arg.equals("-logger")) { if (loggerClassname != null) { System.out.println("Only one logger class may " + " be specified."); return; } try { loggerClassname = args[++i]; } catch (ArrayIndexOutOfBoundsException aioobe) { System.out.println("You must specify a classname when " + "using the -logger argument"); return; } } else if (arg.equals("-inputhandler")) { if (inputHandlerClassname != null) { System.out.println("Only one input handler class may " + "be specified."); return; } try { inputHandlerClassname = args[++i]; } catch (ArrayIndexOutOfBoundsException aioobe) { System.out.println("You must specify a classname when " + "using the -inputhandler argument"); return; } } else if (arg.equals("-emacs")) { emacsMode = true; } else if (arg.equals("-projecthelp")) { // set the flag to display the targets and quit projectHelp = true; } else if (arg.equals("-find")) { // eat up next arg if present, default to build.xml if (i < args.length - 1) { searchForThis = args[++i]; } else { searchForThis = DEFAULT_BUILD_FILENAME; } } else if (arg.startsWith("-propertyfile")) { try { propertyFiles.addElement(args[i + 1]); i++; } catch (ArrayIndexOutOfBoundsException aioobe) { String msg = "You must specify a property filename when " + "using the -propertyfile argument"; System.out.println(msg); return; } } else if (arg.startsWith("-")) { // we don't have any more args to recognize! String msg = "Unknown argument: " + arg; System.out.println(msg); printUsage(); return; } else { // if it's no other arg, it may be the target targets.addElement(arg); } } // if buildFile was not specified on the command line, if (buildFile == null) { // but -find then search for it if (searchForThis != null) { buildFile = findBuildFile(System.getProperty("user.dir"), searchForThis); } else { buildFile = new File(DEFAULT_BUILD_FILENAME); } } // make sure buildfile exists if (!buildFile.exists()) { System.out.println("Buildfile: " + buildFile + " does not exist!"); throw new BuildException("Build failed"); } // make sure it's not a directory (this falls into the ultra // paranoid lets check everything catagory if (buildFile.isDirectory()) { System.out.println("What? Buildfile: " + buildFile + " is a dir!"); throw new BuildException("Build failed"); } // Load the property files specified by -propertyfile for (int propertyFileIndex = 0; propertyFileIndex < propertyFiles.size(); propertyFileIndex++) { String filename = (String) propertyFiles.elementAt(propertyFileIndex); Properties props = new Properties(); FileInputStream fis = null; try { fis = new FileInputStream(filename); props.load(fis); } catch (IOException e) { System.out.println("Could not load property file " + filename + ": " + e.getMessage()); } finally { if (fis != null) { try { fis.close(); } catch (IOException e){ } } } // ensure that -D properties take precedence Enumeration propertyNames = props.propertyNames(); while (propertyNames.hasMoreElements()) { String name = (String) propertyNames.nextElement(); if (definedProps.getProperty(name) == null) { definedProps.put(name, props.getProperty(name)); } } } if (msgOutputLevel >= Project.MSG_INFO) { System.out.println("Buildfile: " + buildFile); } if (logTo != null) { out = err = logTo; System.setOut(out); System.setErr(out); } readyToRun = true; } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/14787c7ad2f504364300c2646cfd5c9ac1b3676a/Main.java/clean/src/main/org/apache/tools/ant/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
12740,
12,
780,
8526,
833,
13,
1216,
18463,
288,
3639,
514,
1623,
1290,
2503,
273,
446,
31,
3639,
21677,
613,
774,
273,
446,
31,
3639,
368,
8589,
3059,
864,
833,
3639,
364,
261,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
12740,
12,
780,
8526,
833,
13,
1216,
18463,
288,
3639,
514,
1623,
1290,
2503,
273,
446,
31,
3639,
21677,
613,
774,
273,
446,
31,
3639,
368,
8589,
3059,
864,
833,
3639,
364,
261,
4... |
public Collection values() { checkForUpdates(); return super.values(); } | 46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/43b1b5edd8dc5989dbcb09f586341b8b5203d797/Prototype.java/buggy/src/helma/framework/core/Prototype.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2532,
2372,
1435,
95,
1893,
1290,
5121,
5621,
2463,
9565,
18,
2372,
5621,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
2532,
2372,
1435,
95,
1893,
1290,
5121,
5621,
2463,
9565,
18,
2372,
5621,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | ||
if (lockObj == null) { throw new IOException("Given target not held as lock"); } if (sharedLockData == null && nonsharedLockData == null) { throw new IOException("Given target not held as lock"); } | FileLock lockObj; FileInputStream sharedLockData; FileOutputStream nonsharedLockData; synchronized (this) { lockObj = (FileLock) lockObjSet.remove(f); sharedLockData = (FileInputStream) sharedLockDataSet.remove(f); nonsharedLockData = (FileOutputStream) nonsharedLockDataSet.remove(f); } if (lockObj == null) { throw new IOException("Given target not held as lock"); } if (sharedLockData == null && nonsharedLockData == null) { throw new IOException("Given target not held as lock"); } | public synchronized void release(Path p) throws IOException { File f = pathToFile(p); FileLock lockObj = (FileLock) lockObjSet.get(f); FileInputStream sharedLockData = (FileInputStream) sharedLockDataSet.get(f); FileOutputStream nonsharedLockData = (FileOutputStream) nonsharedLockDataSet.get(f); if (lockObj == null) { throw new IOException("Given target not held as lock"); } if (sharedLockData == null && nonsharedLockData == null) { throw new IOException("Given target not held as lock"); } lockObj.release(); lockObjSet.remove(f); if (sharedLockData != null) { sharedLockData.close(); sharedLockDataSet.remove(f); } else { nonsharedLockData.close(); nonsharedLockDataSet.remove(f); } } | 49248 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49248/d0a25f9381dfc8184f87c4f2941a963a78e3c0cc/LocalFileSystem.java/clean/src/java/org/apache/hadoop/fs/LocalFileSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
3992,
12,
743,
293,
13,
1216,
1860,
288,
3639,
1387,
284,
273,
12221,
812,
12,
84,
1769,
3639,
1387,
2531,
2176,
2675,
273,
261,
812,
2531,
13,
2176,
2675,
694,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
3992,
12,
743,
293,
13,
1216,
1860,
288,
3639,
1387,
284,
273,
12221,
812,
12,
84,
1769,
3639,
1387,
2531,
2176,
2675,
273,
261,
812,
2531,
13,
2176,
2675,
694,
18,
588... |
protected void actOnResult(int exitValue, boolean wasKilled) { if(exitValue == -1) { executeHaltTarget(exitValue); throw new BuildException("an error occured when running TestNG tests"); } if((exitValue & TestNG.HAS_NO_TEST) == TestNG.HAS_NO_TEST) { if(m_haltOnFailure) { executeHaltTarget(exitValue); throw new BuildException("No tests were run"); } else { if(null != m_failurePropertyName) { getProject().setNewProperty(m_failurePropertyName, "true"); } log("TestNG haven't found any tests to be run", Project.MSG_DEBUG); } } boolean failed = ((exitValue & TestNG.HAS_FAILURE) == TestNG.HAS_FAILURE) || wasKilled; if(failed) { final String msg = wasKilled ? "The tests timed out and were killed." : "The tests failed."; if(m_haltOnFailure) { executeHaltTarget(exitValue); throw new BuildException(msg); } else { if(null != m_failurePropertyName) { getProject().setNewProperty(m_failurePropertyName, "true"); } log(msg, Project.MSG_DEBUG); } } if((exitValue & TestNG.HAS_SKIPPED) == TestNG.HAS_SKIPPED) { if(m_haltOnSkipped) { executeHaltTarget(exitValue); throw new BuildException("There are TestNG SKIPPED tests"); } else { if(null != m_skippedPropertyName) { getProject().setNewProperty(m_skippedPropertyName, "true"); } log("There are TestNG SKIPPED tests", Project.MSG_DEBUG); } } if((exitValue & TestNG.HAS_FSP) == TestNG.HAS_FSP) { if(m_haltOnFSP) { executeHaltTarget(exitValue); throw new BuildException("There are TestNG FAILED WITHIN SUCCESS PERCENTAGE tests"); } else { if(null != m_fspPropertyName) { getProject().setNewProperty(m_fspPropertyName, "true"); } log("There are TestNG FAILED WITHIN SUCCESS PERCENTAGE tests", Project.MSG_DEBUG); } } } | 50994 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50994/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/TestNGAntTask.java/buggy/src/main/org/testng/TestNGAntTask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1328,
1398,
1253,
12,
474,
2427,
620,
16,
1250,
1703,
47,
13148,
13,
288,
565,
309,
12,
8593,
620,
422,
300,
21,
13,
288,
1377,
1836,
27034,
2326,
12,
8593,
620,
1769,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1328,
1398,
1253,
12,
474,
2427,
620,
16,
1250,
1703,
47,
13148,
13,
288,
565,
309,
12,
8593,
620,
422,
300,
21,
13,
288,
1377,
1836,
27034,
2326,
12,
8593,
620,
1769,
1377,
... | ||
String s = coerce(other); if (s == null) return null; return string.equals(s) ? Py.Zero : Py.One; | return str___ne__(other); | public PyObject __ne__(PyObject other) { String s = coerce(other); if (s == null) return null; return string.equals(s) ? Py.Zero : Py.One; } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/bd5dfaea1f2ba1044526872f414af37b54cbb902/PyString.java/buggy/org/python/core/PyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4707,
921,
1001,
4644,
972,
12,
9413,
921,
1308,
13,
288,
3639,
514,
272,
273,
12270,
12,
3011,
1769,
3639,
309,
261,
87,
422,
446,
13,
5411,
327,
446,
31,
3639,
327,
533,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4707,
921,
1001,
4644,
972,
12,
9413,
921,
1308,
13,
288,
3639,
514,
272,
273,
12270,
12,
3011,
1769,
3639,
309,
261,
87,
422,
446,
13,
5411,
327,
446,
31,
3639,
327,
533,
18,
1... |
REProgState state; state = gData.stateStack[gData.stateStackTop]; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; ++gData.stateStackTop; | pushProgState(gData, 0, 0, null, currentContinuation_pc, currentContinuation_op); | executeREBytecode(REGlobalData gData, char[] chars, int end) { int pc = 0; byte program[] = gData.regexp.program; int op = program[pc++]; int currentContinuation_op; int currentContinuation_pc; boolean result = false; currentContinuation_pc = 0; currentContinuation_op = REOP_END;if (debug) {System.out.println("Input = \"" + new String(chars) + "\", start at " + gData.cp);} for (;;) {if (debug) {System.out.println("Testing at " + gData.cp + ", op = " + op);} switch (op) { case REOP_EMPTY: result = true; break; case REOP_BOL: if (gData.cp != 0) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp - 1])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_EOL: if (gData.cp != end) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_WBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ !((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_WNONBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ ((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_DOT: result = (gData.cp != end && !isLineTerm(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_DIGIT: result = (gData.cp != end && isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONDIGIT: result = (gData.cp != end && !isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_SPACE: result = (gData.cp != end && isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONSPACE: result = (gData.cp != end && !isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_ALNUM: result = (gData.cp != end && isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONALNUM: result = (gData.cp != end && !isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_FLAT: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNMatcher(gData, offset, length, chars, end); } break; case REOP_FLATi: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNIMatcher(gData, offset, length, chars, end); } break; case REOP_FLAT1: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_FLAT1i: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_UCFLAT1: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_UCFLAT1i: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_ALT: { int nextpc; byte nextop; REProgState state; state = gData.stateStack[gData.stateStackTop]; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; ++gData.stateStackTop; nextpc = pc + GET_OFFSET(program, pc); nextop = program[nextpc++]; pushBackTrackState(gData, nextop, nextpc); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_JUMP: { int offset; REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; offset = GET_OFFSET(program, pc); pc += offset; op = program[pc++]; } continue; case REOP_LPAREN: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; gData.set_parens(parenIndex, gData.cp, 0); op = program[pc++]; } continue; case REOP_RPAREN: { int cap_index; int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; cap_index = gData.parens_index(parenIndex); gData.set_parens(parenIndex, cap_index, gData.cp - cap_index); if (parenIndex > gData.lastParen) gData.lastParen = parenIndex; op = program[pc++]; } continue; case REOP_BACKREF: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; result = backrefMatcher(gData, parenIndex, chars, end); } break; case REOP_CLASS: { int index = GET_ARG(program, pc); pc += ARG_LEN; if (gData.cp != end) { if (classMatcher(gData, gData.regexp.classList[index], chars[gData.cp])) { gData.cp++; result = true; break; } } result = false; } break; case REOP_ASSERT: case REOP_ASSERT_NOT: { byte testOp; REProgState state; if (op == REOP_ASSERT) { testOp = REOP_ASSERTTEST; } else { testOp = REOP_ASSERTNOTTEST; } state = gData.stateStack[gData.stateStackTop]; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; state.savedBackTrackLast = gData.backTrackLast; state.index = gData.cp; ++gData.stateStackTop; pushBackTrackState(gData, testOp, pc + GET_OFFSET(program, pc)); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_ASSERTTEST: case REOP_ASSERTNOTTEST: { REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; gData.cp = state.index; gData.backTrackLast = state.savedBackTrackLast; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; if (result) { if (op == REOP_ASSERTTEST) { result = true; } else { result = false; } } else { if (op == REOP_ASSERTTEST) { // Do nothing } else { result = true; } } } break; case REOP_STAR: case REOP_PLUS: case REOP_OPT: case REOP_QUANT: case REOP_MINIMALSTAR: case REOP_MINIMALPLUS: case REOP_MINIMALOPT: case REOP_MINIMALQUANT: { REProgState state; int min, max; boolean greedy = false; switch (op) { case REOP_STAR: greedy = true; // fallthrough case REOP_MINIMALSTAR: min = 0; max = -1; break; case REOP_PLUS: greedy = true; // fallthrough case REOP_MINIMALPLUS: min = 1; max = -1; break; case REOP_OPT: greedy = true; // fallthrough case REOP_MINIMALOPT: min = 0; max = 1; break; case REOP_QUANT: greedy = true; // fallthrough case REOP_MINIMALQUANT: min = GET_ARG(program, pc); pc += ARG_LEN; max = GET_ARG(program, pc); pc += ARG_LEN; break; default: throw Kit.codeBug(); } state = gData.stateStack[gData.stateStackTop]; state.min = min; state.max = max; state.index = gData.cp; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; ++gData.stateStackTop; if (greedy) { currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { if (min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); --gData.stateStackTop; pc += 2 * ARG_LEN; // <parencount> & <parenindex> pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } } } continue; case REOP_ENDCHILD: pc = currentContinuation_pc; op = currentContinuation_op; continue; case REOP_REPEAT: { REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; if (!result) { // // There's been a failure, see if we have enough // children. // if (state.min == 0) result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(program, pc); break; } else { if (state.min == 0 && gData.cp == state.index) { // matched an empty string, that'll get us nowhere result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } if (state.min != 0) state.min--; if (state.max != -1) state.max--; if (state.max == 0) { result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } state.index = gData.cp; ++gData.stateStackTop; currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; op = program[pc++]; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } } } continue; case REOP_MINIMALREPEAT: { REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; if (!result) { // // Non-greedy failure - try to consume another child. // if (state.max == -1 || state.max > 0) { state.index = gData.cp; currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } ++gData.stateStackTop; op = program[pc++]; continue; } else { // Don't need to adjust pc since we're going to pop. currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } } else { if (state.min == 0 && gData.cp == state.index) { // Matched an empty string, that'll get us nowhere. result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } if (state.min != 0) state.min--; if (state.max != -1) state.max--; if (state.min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } state.index = gData.cp; ++gData.stateStackTop; op = program[pc++]; } else { currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; state.index = gData.cp; ++gData.stateStackTop; pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); --gData.stateStackTop; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } continue; } } case REOP_END: return true; default: throw Kit.codeBug(); } /* * If the match failed and there's a backtrack option, take it. * Otherwise this is a complete and utter failure. */ if (!result) { REBackTrackData backTrackData = gData.backTrackLast; if (backTrackData != null) { gData.backTrackLast = backTrackData.previous; gData.lastParen = backTrackData.lastParen; // XXX: If backTrackData will no longer be used, then // there is no need to clone backTrackData.parens if (backTrackData.parens != null) { gData.parens = (long[])backTrackData.parens.clone(); } gData.cp = backTrackData.cp; for (int k = 0; k < backTrackData.precedingStateTop; k++) gData.stateStack[k] = backTrackData.precedingState[k]; gData.stateStackTop = backTrackData.precedingStateTop + 1; gData.stateStack[gData.stateStackTop - 1] = backTrackData.currentState; currentContinuation_op = gData.stateStack[gData.stateStackTop - 1].continuation_op; currentContinuation_pc = gData.stateStack[gData.stateStackTop - 1].continuation_pc; pc = backTrackData.continuation_pc; op = backTrackData.continuation_op; continue; } else return false; } /* * Continue with the expression. If this the end of the child, use * the current continuation. */ op = program[pc++]; if (op == REOP_ENDCHILD) { pc = currentContinuation_pc; op = currentContinuation_op; } } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/bfc17d4124cf8110e97525c9b240855202f5ac65/NativeRegExp.java/clean/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
... |
classFile.fullyQualifiedForm(this.name), "jsK_" + i, "Ljava/lang/" + itsConstantList.itsList[i].itsWrapperType + ";"); } | classFile.fullyQualifiedForm(this.name), constantName, constantType); } | private void emitConstantDudeInitializers() { if (itsConstantList.itsTop == 0) return; classFile.startMethod("<clinit>", "()V", (short)(ClassFileWriter.ACC_STATIC + ClassFileWriter.ACC_FINAL)); for (int i = 0; i < itsConstantList.itsTop; i++) { addByteCode(ByteCode.NEW, "java/lang/" + itsConstantList.itsList[i].itsWrapperType); addByteCode(ByteCode.DUP); if (itsConstantList.itsList[i].itsIsInteger) push(itsConstantList.itsList[i].itsLValue); else push(itsConstantList.itsList[i].itsDValue); addSpecialInvoke("java/lang/" + itsConstantList.itsList[i].itsWrapperType, "<init>", "(" + itsConstantList.itsList[i].itsSignature + ")", "V"); classFile.addField("jsK_" + i, "Ljava/lang/" + itsConstantList.itsList[i].itsWrapperType + ";", ClassFileWriter.ACC_STATIC); classFile.add(ByteCode.PUTSTATIC, classFile.fullyQualifiedForm(this.name), "jsK_" + i, "Ljava/lang/" + itsConstantList.itsList[i].itsWrapperType + ";"); } addByteCode(ByteCode.RETURN); classFile.stopMethod((short)0, null); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/8bb4a031bf2458fe168832974b20133e459d2b98/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
6902,
40,
1317,
4435,
8426,
1435,
288,
3639,
309,
261,
1282,
6902,
682,
18,
1282,
3401,
422,
374,
13,
5411,
327,
31,
3639,
29728,
18,
1937,
1305,
2932,
32,
830,
2738,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
6902,
40,
1317,
4435,
8426,
1435,
288,
3639,
309,
261,
1282,
6902,
682,
18,
1282,
3401,
422,
374,
13,
5411,
327,
31,
3639,
29728,
18,
1937,
1305,
2932,
32,
830,
2738,
2... |
public int hashCode() | public int hashCode() | public int hashCode() { if (id == null) return 0; else return id.intValue(); } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/BidPK.java/clean/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/BidPK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
13374,
1435,
282,
288,
565,
309,
261,
350,
422,
446,
13,
1377,
327,
374,
31,
565,
469,
1377,
327,
612,
18,
474,
620,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
509,
13374,
1435,
282,
288,
565,
309,
261,
350,
422,
446,
13,
1377,
327,
374,
31,
565,
469,
1377,
327,
612,
18,
474,
620,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Button b = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); b.setFocus(); } | Label l = new Label(parent, SWT.NONE); l.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); GridLayout layout = (GridLayout) parent.getLayout(); layout.numColumns++; layout.makeColumnsEqualWidth = false; Button b = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); b.setFocus(); } | protected void createButtonsForButtonBar(Composite parent) { parent.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); createButton(parent, FEATURES_ID, WorkbenchMessages.getString("AboutDialog.featureInfo"), false); //$NON-NLS-1$ createButton(parent, PLUGINS_ID, WorkbenchMessages.getString("AboutDialog.pluginInfo"), false); //$NON-NLS-1$ createButton(parent, INFO_ID, WorkbenchMessages.getString("AboutDialog.systemInfo"), false); //$NON-NLS-1$ Label l = new Label(parent, SWT.NONE); l.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); GridLayout layout = (GridLayout)parent.getLayout(); layout.numColumns++; layout.makeColumnsEqualWidth = false; Button b = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); b.setFocus();} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f77cc9aed5752d58e54872ce2891482f244b1b4b/AboutDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
752,
14388,
1290,
3616,
5190,
12,
9400,
982,
13,
288,
202,
2938,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
2640,
3616,
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,
4750,
918,
752,
14388,
1290,
3616,
5190,
12,
9400,
982,
13,
288,
202,
2938,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
2640,
3616,
12,... |
setModified(); | setModified(true); | public void importLibrary(String jarPath) { // make sure the user didn't hide the sketch folder ensureExistence(); String list[] = Compiler.packageListFromClassPath(jarPath); // import statements into the main sketch file (code[0]) // if the current code is a .java file, insert into current if (current.flavor == PDE) { setCurrent(0); } // could also scan the text in the file to see if each import // statement is already in there, but if the user has the import // commented out, then this will be a problem. StringBuffer buffer = new StringBuffer(); for (int i = 0; i < list.length; i++) { buffer.append("import "); buffer.append(list[i]); buffer.append(".*;\n"); } buffer.append('\n'); buffer.append(editor.getText()); editor.setText(buffer.toString(), 0, 0); // scroll to start setModified(); } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/ae29be0db221b146b96528da02dd34941d80358b/Sketch.java/clean/app/Sketch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1930,
9313,
12,
780,
7334,
743,
13,
288,
565,
368,
1221,
3071,
326,
729,
10242,
1404,
6853,
326,
18534,
3009,
565,
3387,
4786,
802,
5621,
565,
514,
666,
8526,
273,
12972,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1930,
9313,
12,
780,
7334,
743,
13,
288,
565,
368,
1221,
3071,
326,
729,
10242,
1404,
6853,
326,
18534,
3009,
565,
3387,
4786,
802,
5621,
565,
514,
666,
8526,
273,
12972,
18,
... |
acceleratorInit(aWorkbench); | public void init(IWorkbench aWorkbench) { workbench = aWorkbench;// acceleratorInit(aWorkbench); IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); openOnSingleClick = store.getBoolean(IPreferenceConstants.OPEN_ON_SINGLE_CLICK); //$NON-NLS-1$ selectOnHover = store.getBoolean(IPreferenceConstants.SELECT_ON_HOVER); //$NON-NLS-1$ openAfterDelay = store.getBoolean(IPreferenceConstants.OPEN_AFTER_DELAY); //$NON-NLS-1$ } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0ef15779722377b6bbdf52df87370c208bef98e6/WorkbenchPreferencePage.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
30737,
7385,
2570,
12,
69,
2421,
22144,
1769,
918,
30737,
7385,
2570,
12,
69,
2421,
22144,
1769,
1208,
12,
45,
2421,
22144,
30737,
7385,
2570,
12,
69,
2421,
22144,
1769,
279,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
30737,
7385,
2570,
12,
69,
2421,
22144,
1769,
918,
30737,
7385,
2570,
12,
69,
2421,
22144,
1769,
1208,
12,
45,
2421,
22144,
30737,
7385,
2570,
12,
69,
2421,
22144,
1769,
279,
24... | |
throw new BAD_PARAM("Invalid " + NS_PORT + "property, unable to parse '" + props.getProperty(NS_PORT) + "'" ); | BAD_PARAM bad = new BAD_PARAM("Invalid " + NS_PORT + "property, unable to parse '" + props.getProperty(NS_PORT) + "'" ); bad.initCause(ex); throw bad; | protected void set_parameters(Applet app, Properties props) { useProperties(props); String[][] para = app.getParameterInfo(); if (para != null) { for (int i = 0; i < para.length; i++) { if (para [ i ] [ 0 ].equals(LISTEN_ON)) Port = Integer.parseInt(para [ i ] [ 1 ]); if (para [ i ] [ 0 ].equals(REFERENCE)) { StringTokenizer st = new StringTokenizer(para [ i ] [ 1 ], "="); initial_references.put(st.nextToken(), string_to_object(st.nextToken()) ); } if (para [ i ] [ 0 ].equals(NS_HOST)) ns_host = para [ i ] [ 1 ]; if (para [ i ] [ 0 ].equals(START_READING_MESSAGE)) TOUT_START_READING_MESSAGE = Integer.parseInt(para [ i ] [ 1 ]); if (para [ i ] [ 0 ].equals(WHILE_READING)) TOUT_WHILE_READING = Integer.parseInt(para [ i ] [ 1 ]); if (para [ i ] [ 0 ].equals(AFTER_RECEIVING)) TOUT_AFTER_RECEIVING = Integer.parseInt(para [ i ] [ 1 ]); try { if (para [ i ] [ 0 ].equals(NS_PORT)) ns_port = Integer.parseInt(para [ i ] [ 1 ]); } catch (NumberFormatException ex) { throw new BAD_PARAM("Invalid " + NS_PORT + "property, unable to parse '" + props.getProperty(NS_PORT) + "'" ); } } } } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/530b07ccb0c4fb1bf75b0623599a435d741fe9e8/Functional_ORB.java/buggy/libraries/javalib/gnu/CORBA/Functional_ORB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
444,
67,
3977,
12,
23696,
595,
16,
6183,
3458,
13,
225,
288,
565,
999,
2297,
12,
9693,
1769,
565,
514,
63,
6362,
65,
12602,
273,
595,
18,
588,
1662,
966,
5621,
565,
309,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
444,
67,
3977,
12,
23696,
595,
16,
6183,
3458,
13,
225,
288,
565,
999,
2297,
12,
9693,
1769,
565,
514,
63,
6362,
65,
12602,
273,
595,
18,
588,
1662,
966,
5621,
565,
309,
26... |
nSamples += unit.getAudioFrameSize(i); | if (i<0 || i>=pitchmarksInUnit) throw new IllegalArgumentException("Have "+pitchmarksInUnit+" frames, requested number "+i); int translatedI = unit.getUnitStartShift()+i; if (translatedI<0) { nSamples += prevDatagrams[prevUnit.getDuration()+translatedI].getNumResiduals(); } else { nSamples += datagrams[translatedI].getNumResiduals(); } | public AudioInputStream getAudio(List units){ logger.debug("Getting audio for "+units.size()+" units"); List audioStreams = new ArrayList(units.size()); FrameSet sts = database.getAudioFrames(); // Information for LPC resynthesis: FrameSetInfo frameSetInfo = sts.getFrameSetInfo(); if (frameSetInfo == null) { throw new IllegalStateException("UnitConcatenator: FrameSetInfo does not exist"); } int lpcOrder = frameSetInfo.getNumberOfChannels(); FloatList globalLPCHistory = FloatList.createList(lpcOrder + 1); double lpcRangeFactor = (double) frameSetInfo.getCoeffRange() / 65535.0; float lpcMinimum = frameSetInfo.getCoeffMin(); // First loop through all units: collect information and build up preparatory structures for (Iterator it = units.iterator();it.hasNext();) { SelectedUnit unit = (SelectedUnit) it.next(); UnitLPCData lpcData = new UnitLPCData(); unit.setConcatenationData(lpcData); int pitchmarksInUnit = unit.getNumberOfFrames(); assert pitchmarksInUnit > 0; int nSamples = 0; // First of all: Set target pitchmarks, // either by copying from units (data-driven) // or by computing from target (model-driven) int[] pitchmarks; if (unit.getTarget().isSilence()) { int targetLength = unit.targetDurationInSamples(); int unitLength = unit.unitDurationInSamples(); int avgPeriodLength = unitLength / pitchmarksInUnit; // there will be rounding errors here int nTargetPitchmarks = Math.round((float)targetLength / avgPeriodLength); // round to the nearest integer pitchmarks = new int[nTargetPitchmarks]; lpcData.setPitchmarks(pitchmarks); for (int i=0; i<nTargetPitchmarks-1; i++) { nSamples += avgPeriodLength; pitchmarks[i] = nSamples; } // last pitchmark compensates for rounding errors nSamples += targetLength - (nTargetPitchmarks-1)*avgPeriodLength; pitchmarks[nTargetPitchmarks-1] = nSamples; assert pitchmarks[nTargetPitchmarks-1] == unit.targetDurationInSamples(); } else { pitchmarks = new int[pitchmarksInUnit]; lpcData.setPitchmarks(pitchmarks); for (int i = 0; i < pitchmarks.length; i++) { nSamples += unit.getAudioFrameSize(i); pitchmarks[i] = nSamples; } // the following can be assumed only if there is no start or end shift: // assert pitchmarks[pitchmarks.length-1] == unit.unitDurationInSamples(); } int nPitchmarks = pitchmarks.length; short[][] frames = new short[nPitchmarks][]; lpcData.setFrameCoefficients(frames); byte[] residuals = new byte[nSamples]; lpcData.setResiduals(residuals); int unitSize = unit.unitDurationInSamples(); float m = (float)unitSize/(float)(nSamples); // if m==1, copy unit as it is; if != 1, skip or duplicate frames int targetResidualPosition = 0; float uIndex = 0; // counter of imaginary sample position in the unit // for each pitchmark, get frame coefficients and residual for (int i=0; i < nPitchmarks && pitchmarks[i] <= nSamples; i++) { Frame nextFrame = unit.getNearestAudioFrame(uIndex); frames[i] = nextFrame.getCoefficients(); // Get residual by copying, adapting residual length if necessary byte[] residual = nextFrame.getResidualData(); int targetResidualSize = lpcData.getPeriodLength(i); if (residual.length < targetResidualSize) { int targetResidualStart = (targetResidualSize - residual.length) / 2; System.arraycopy(residual, 0, residuals, targetResidualPosition + targetResidualStart, residual.length); } else { int sourcePosition = (residual.length - targetResidualSize) / 2; System.arraycopy(residual, sourcePosition, residuals, targetResidualPosition, targetResidualSize); } targetResidualPosition += targetResidualSize; assert targetResidualPosition == pitchmarks[i]; uIndex += ((float) targetResidualSize * m); } assert targetResidualPosition == nSamples; } // Second loop through all units: Generate audio for (Iterator it = units.iterator();it.hasNext();) { // TODO: verify if this should be inserted into the above loop SelectedUnit unit = (SelectedUnit) it.next(); UnitLPCData lpcData = (UnitLPCData) unit.getConcatenationData(); int nPitchmarks = lpcData.getPitchmarks().length; int nSamples = lpcData.getResiduals().length; byte[] residuals = lpcData.getResiduals(); FloatList outBuffer = globalLPCHistory; byte[] samples = new byte[2*nSamples]; float[] lpcCoefficients = new float[lpcOrder]; int s = 0; // For each frame: for (int r = 0, i = 0; i < nPitchmarks; i++) { // unpack the LPC coefficients short[] frame = lpcData.getFrameCoefficients(i); for (int k = 0; k < lpcOrder; k++) { lpcCoefficients[k] = (float) ((frame[k] + 32768.0) * lpcRangeFactor) + lpcMinimum; } int nSamplesInFrame = lpcData.getPeriodLength(i); // For each sample: for (int j = 0; j < nSamplesInFrame; j++, r++) { FloatList backBuffer = outBuffer.prev; float ob = residualToFloatMap[residuals[r] + 128]; for (int k=0; k<lpcOrder; k++) { ob += lpcCoefficients[k] * backBuffer.value; backBuffer = backBuffer.prev; } int sample = (int) ob; samples[s++] = (byte) hibyte(sample); samples[s++] = (byte) lobyte(sample); outBuffer.value = ob; outBuffer = outBuffer.next; } } ByteArrayInputStream bais = new ByteArrayInputStream(samples); int samplesize = audioformat.getSampleSizeInBits(); if (samplesize == AudioSystem.NOT_SPECIFIED) samplesize = 16; // usually 16 bit data long lengthInSamples = samples.length / (samplesize/8); AudioInputStream ais = new AudioInputStream(bais, audioformat, lengthInSamples); unit.setAudio(ais); audioStreams.add(ais); } return new SequenceAudioInputStream(audioformat, audioStreams); } | 48071 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48071/7873d2d8762d997ab7ec8918af0ef1b743f5925d/ClusterUnitConcatenator.java/clean/java/de/dfki/lt/mary/unitselection/clunits/ClusterUnitConcatenator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15045,
4348,
4506,
4484,
12,
682,
4971,
15329,
3639,
1194,
18,
4148,
2932,
19213,
7447,
364,
13773,
7705,
18,
1467,
1435,
9078,
4971,
8863,
3639,
987,
7447,
10301,
273,
394,
2407,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15045,
4348,
4506,
4484,
12,
682,
4971,
15329,
3639,
1194,
18,
4148,
2932,
19213,
7447,
364,
13773,
7705,
18,
1467,
1435,
9078,
4971,
8863,
3639,
987,
7447,
10301,
273,
394,
2407,
12,... |
if (names != null && names[0].length() > 0) return names[0]; Context cx = Context.getCurrentContext(); if (cx != null && cx.getLanguageVersion() == Context.VERSION_1_2) { | if (names == null) | public String jsGet_name() { if (names != null && names[0].length() > 0) return names[0]; Context cx = Context.getCurrentContext(); if (cx != null && cx.getLanguageVersion() == Context.VERSION_1_2) { return ""; } return "anonymous"; } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/a13e81f0cb05fa14c3aa64e85a6abd2a1d523bde/NativeFunction.java/buggy/src/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3828,
967,
67,
529,
1435,
288,
3639,
309,
261,
1973,
480,
446,
597,
1257,
63,
20,
8009,
2469,
1435,
405,
374,
13,
5411,
327,
1257,
63,
20,
15533,
7734,
1772,
9494,
273,
1772,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3828,
967,
67,
529,
1435,
288,
3639,
309,
261,
1973,
480,
446,
597,
1257,
63,
20,
8009,
2469,
1435,
405,
374,
13,
5411,
327,
1257,
63,
20,
15533,
7734,
1772,
9494,
273,
1772,... |
_t = __t284; | _t = __t289; | public final void createautomationobjectstate(AST _t) throws RecognitionException { AST createautomationobjectstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t284 = _t; AST tmp874_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); AST tmp875_AST_in = (AST)_t; match(_t,QSTRING); _t = _t.getNextSibling(); fld(_t,CQ.UPDATING); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CONNECT: { AST __t286 = _t; AST tmp876_AST_in = (AST)_t; match(_t,CONNECT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST __t288 = _t; AST tmp877_AST_in = (AST)_t; match(_t,TO); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t288; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t286; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp878_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t284; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
752,
5854,
11978,
1612,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
752,
5854,
11978,
1612,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
5854,
11978,
1612,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
752,
5854,
11978,
1612,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
... |
public NutchConf getConf() { return this.nutchConf; | public Configuration getConf() { return this.conf; | public NutchConf getConf() { return this.nutchConf; } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/CCIndexingFilter.java/buggy/src/plugin/creativecommons/src/java/org/creativecommons/nutch/CCIndexingFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
423,
322,
343,
3976,
28836,
1435,
288,
565,
327,
333,
18,
82,
322,
343,
3976,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
423,
322,
343,
3976,
28836,
1435,
288,
565,
327,
333,
18,
82,
322,
343,
3976,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
long lastEd = uskManager.lookup(origUSK); | void onSuccess(USKAttempt att, boolean dontUpdate, ClientSSKBlock block) { LinkedList l = null; synchronized(this) { runningAttempts.remove(att); long curLatest = att.number; long lastEd = uskManager.lookup(origUSK); if(!dontUpdate) uskManager.update(origUSK, curLatest); if(completed || cancelled) return; if(curLatest >= lastEd) { try { this.lastRequestData = block.decode(ctx.bucketFactory, 1025 /* it's an SSK */, true); this.lastCompressionCodec = block.getCompressionCodec(); this.lastWasMetadata = block.isMetadata(); } catch (KeyDecodeException e) { lastRequestData = null; } catch (IOException e) { lastRequestData = null; } } curLatest = Math.max(lastEd, curLatest); Logger.minor(this, "Latest: "+curLatest); long addTo = curLatest + minFailures; long addFrom = Math.max(lastAddedEdition + 1, curLatest + 1); if(addTo >= addFrom) { l = new LinkedList(); for(long i=addFrom;i<=addTo;i++) { Logger.minor(this, "Adding checker for edition "+i); l.add(add(i)); } } cancelBefore(curLatest); if(l == null) return; // If we schedule them here, we don't get icky recursion problems. else if(!cancelled) { for(Iterator i=l.iterator();i.hasNext();) { // We may be called recursively through onSuccess(). // So don't start obsolete requests. USKAttempt a = (USKAttempt) i.next(); lastEd = uskManager.lookup(origUSK); if(lastEd <= a.number && !a.cancelled) a.schedule(); } } } } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/03e3c37737640c23e25aacfa0ab1bf8a0d4b535f/USKFetcher.java/buggy/src/freenet/client/async/USKFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
20613,
12,
3378,
47,
7744,
2403,
16,
1250,
14046,
1891,
16,
2445,
1260,
47,
1768,
1203,
13,
288,
202,
202,
13174,
682,
328,
273,
446,
31,
202,
202,
22043,
12,
2211,
13,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
20613,
12,
3378,
47,
7744,
2403,
16,
1250,
14046,
1891,
16,
2445,
1260,
47,
1768,
1203,
13,
288,
202,
202,
13174,
682,
328,
273,
446,
31,
202,
202,
22043,
12,
2211,
13,
288,
... | |
public static Message createFNPPong(int seqNo) { | public static final Message createFNPPong(int seqNo) { | public static Message createFNPPong(int seqNo) { Message msg = new Message(FNPPong); msg.set(PING_SEQNO, seqNo); return msg; } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/d69dceaa72feee5ece14b8de951841aa9b614188/DMT.java/clean/src/freenet/io/comm/DMT.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
2350,
752,
19793,
6584,
932,
12,
474,
3833,
2279,
13,
288,
3639,
2350,
1234,
273,
394,
2350,
12,
19793,
6584,
932,
1769,
3639,
1234,
18,
542,
12,
20002,
67,
28114,
3417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
2350,
752,
19793,
6584,
932,
12,
474,
3833,
2279,
13,
288,
3639,
2350,
1234,
273,
394,
2350,
12,
19793,
6584,
932,
1769,
3639,
1234,
18,
542,
12,
20002,
67,
28114,
3417,
... |
addByteCode(ByteCode.IFNE, falseTarget); addByteCode(ByteCode.POP); | cfw.add(ByteCode.IFNE, falseTarget); cfw.add(ByteCode.POP); | private void generateCodeFromNode(Node node, Node parent) { // System.out.println("gen code for " + node.toString()); int type = node.getType(); Node child = node.getFirstChild(); switch (type) { case Token.LOOP: case Token.WITH: case Token.LABEL: visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } break; case Token.CASE: case Token.DEFAULT: // XXX shouldn't these be StatementNodes? case Token.SCRIPT: case Token.BLOCK: case Token.EMPTY: case Token.NOP: // no-ops. visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } break; case Token.FUNCTION: if (inFunction || parent.getType() != Token.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 Token.NAME: visitName(node); break; case Token.NEW: case Token.CALL: visitCall(node, type, child); break; case Token.NUMBER: case Token.STRING: visitLiteral(node); break; case Token.THIS: aload(thisObjLocal); break; case Token.THISFN: classFile.add(ByteCode.ALOAD_0); break; case Token.NULL: addByteCode(ByteCode.ACONST_NULL); break; case Token.TRUE: classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); break; case Token.FALSE: classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); break; case Token.UNDEFINED: pushUndefined(); break; case Token.REGEXP: visitObject(node); break; case Token.TRY: visitTryCatchFinally(node, child); break; case Token.THROW: visitThrow(node, child); break; case Token.RETURN: visitReturn(node, child); break; case Token.SWITCH: visitSwitch(node, child); break; case Token.COMMA: { Node next = child.getNext(); while (next != null) { generateCodeFromNode(child, node); addByteCode(ByteCode.POP); child = next; next = next.getNext(); } generateCodeFromNode(child, node); break; } case Token.NEWSCOPE: addScriptRuntimeInvoke("newScope", "()Lorg/mozilla/javascript/Scriptable;"); break; case Token.ENTERWITH: visitEnterWith(node, child); break; case Token.LEAVEWITH: visitLeaveWith(node, child); break; case Token.ENUMINIT: visitEnumInit(node, child); break; case Token.ENUMNEXT: visitEnumNext(node, child); break; case Token.ENUMDONE: visitEnumDone(node, child); break; case Token.POP: visitStatement(node); if (child.getType() == Token.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); child = child.getNext(); } if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) addByteCode(ByteCode.POP2); else addByteCode(ByteCode.POP); } break; case Token.POPV: visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } astore(scriptResultLocal); break; case Token.TARGET: visitTarget(node); break; case Token.JSR: case Token.GOTO: case Token.IFEQ: case Token.IFNE: visitGOTO(node, type, child); break; case Token.NOT: { int trueTarget = acquireLabel(); int falseTarget = acquireLabel(); int beyond = acquireLabel(); generateIfJump(child, node, trueTarget, falseTarget); markLabel(trueTarget); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); addByteCode(ByteCode.GOTO, beyond); markLabel(falseTarget); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); markLabel(beyond); classFile.adjustStackTop(-1); break; } case Token.BITNOT: addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addScriptRuntimeInvoke("toInt32", "(Ljava/lang/Object;)I"); push(-1); // implement ~a as (a ^ -1) addByteCode(ByteCode.IXOR); addByteCode(ByteCode.I2D); addDoubleConstructor(); break; case Token.VOID: generateCodeFromNode(child, node); addByteCode(ByteCode.POP); pushUndefined(); break; case Token.TYPEOF: generateCodeFromNode(child, node); addScriptRuntimeInvoke("typeof", "(Ljava/lang/Object;" +")Ljava/lang/String;"); break; case Token.TYPEOFNAME: visitTypeofname(node); break; case Token.INC: visitIncDec(node, true); break; case Token.DEC: visitIncDec(node, false); break; case Token.OR: case Token.AND: { generateCodeFromNode(child, node); addByteCode(ByteCode.DUP); addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); int falseTarget = acquireLabel(); if (type == Token.AND) addByteCode(ByteCode.IFEQ, falseTarget); else addByteCode(ByteCode.IFNE, falseTarget); addByteCode(ByteCode.POP); generateCodeFromNode(child.getNext(), node); markLabel(falseTarget); } break; case Token.ADD: { generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); 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 Token.MUL: visitArithmetic(node, ByteCode.DMUL, child, parent); break; case Token.SUB: visitArithmetic(node, ByteCode.DSUB, child, parent); break; case Token.DIV: case Token.MOD: visitArithmetic(node, type == Token.DIV ? ByteCode.DDIV : ByteCode.DREM, child, parent); break; case Token.BITOR: case Token.BITXOR: case Token.BITAND: case Token.LSH: case Token.RSH: case Token.URSH: visitBitOp(node, type, child); break; case Token.POS: case Token.NEG: addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); if (type == Token.NEG) { addByteCode(ByteCode.DNEG); } addDoubleConstructor(); break; case Optimizer.TO_DOUBLE: // cnvt to double (not Double) generateCodeFromNode(child, node); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); break; case Optimizer.TO_OBJECT: { // convert from double int prop = -1; if (child.getType() == Token.NUMBER) { prop = child.getIntProp(Node.ISNUMBER_PROP, -1); } if (prop != -1) { child.removeProp(Node.ISNUMBER_PROP); generateCodeFromNode(child, node); child.putIntProp(Node.ISNUMBER_PROP, prop); } else { addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addDoubleConstructor(); } break; } case Token.IN: case Token.INSTANCEOF: case Token.LE: case Token.LT: case Token.GE: case Token.GT: // need a result Object visitRelOp(node, child); break; case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: visitEqOp(node, child); break; case Token.GETPROP: visitGetProp(node, child); break; case Token.GETELEM: while (child != null) { generateCodeFromNode(child, node); 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 Token.GETVAR: { OptLocalVariable lVar = (OptLocalVariable)(node.getProp(Node.VARIABLE_PROP)); visitGetVar(lVar, node.getIntProp(Node.ISNUMBER_PROP, -1) != -1, node.getString()); } break; case Token.SETVAR: visitSetVar(node, child, true); break; case Token.SETNAME: visitSetName(node, child); break; case Token.SETPROP: visitSetProp(node, child); break; case Token.SETELEM: while (child != null) { generateCodeFromNode(child, node); 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 Token.DELPROP: aload(contextLocal); aload(variableObjectLocal); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } addScriptRuntimeInvoke("delete", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); break; case Token.BINDNAME: case Token.GETBASE: visitBind(node, type, child); break; case Token.GETTHIS: generateCodeFromNode(child, node); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); break; case Token.PARENT: generateCodeFromNode(child, node); addScriptRuntimeInvoke("getParent", "(Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); break; case Token.NEWTEMP: visitNewTemp(node, child); break; case Token.USETEMP: visitUseTemp(node, child); break; case Token.NEWLOCAL: visitNewLocal(node, child); break; case Token.USELOCAL: visitUseLocal(node, child); break; default: throw new RuntimeException("Unexpected node type "+type); } } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/buggy/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,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
315,
397,
756,
18,
10492,
10663,
3639,
509,
618,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
28570,
12,
907,
756,
16,
2029,
982,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
315,
397,
756,
18,
10492,
10663,
3639,
509,
618,
273,
... |
if (jj_scan_token(PROTECTED)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_130()) return true; | final private boolean jj_3R_102() { if (jj_scan_token(PROTECTED)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/d42ce7980bc2030e88ae13be5cf1b864eee291da/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
20481,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3373,
26729,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
20481,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3373,
26729,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
... |
av = new AttVal( list, null, null, null, delim.value, attribute, value ); av.dict = AttributeTable.getDefaultAttributeTable().findAttribute(av); | av = new AttVal(list, null, null, null, delim.value, attribute, value); av.dict = AttributeTable.getDefaultAttributeTable().findAttribute(av); | public AttVal parseAttrs(MutableBoolean isempty) { AttVal av, list; String attribute, value; MutableInteger delim = new MutableInteger(); MutableObject asp = new MutableObject(); MutableObject php = new MutableObject(); list = null; for (; !endOfInput();) { attribute = parseAttribute(isempty, asp, php); if (attribute == null) { /* check if attributes are created by ASP markup */ if (asp.getObject() != null) { av = new AttVal(list, null, (Node)asp.getObject(), null, '\0', null, null ); list = av; continue; } /* check if attributes are created by PHP markup */ if (php.getObject() != null) { av = new AttVal(list, null, null, (Node)php.getObject(), '\0', null, null ); list = av; continue; } break; } value = parseValue(attribute, false, isempty, delim); if (attribute != null && isValidAttrName(attribute)) { av = new AttVal( list, null, null, null, delim.value, attribute, value ); av.dict = AttributeTable.getDefaultAttributeTable().findAttribute(av); list = av; } else { av = new AttVal( null, null, null, null, 0, attribute, value ); Report.attrError(this, this.token, value, Report.BAD_ATTRIBUTE_VALUE); } } return list; } | 3308 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3308/996a78dda16e68e3ae71e3f24fde1a98bd1c0178/Lexer.java/clean/src/main/org/w3c/tidy/Lexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6020,
3053,
1109,
8262,
12,
19536,
5507,
277,
12000,
825,
13,
565,
288,
3639,
6020,
3053,
1712,
16,
666,
31,
3639,
514,
1566,
16,
460,
31,
3639,
10960,
4522,
10508,
273,
394,
10960,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6020,
3053,
1109,
8262,
12,
19536,
5507,
277,
12000,
825,
13,
565,
288,
3639,
6020,
3053,
1712,
16,
666,
31,
3639,
514,
1566,
16,
460,
31,
3639,
10960,
4522,
10508,
273,
394,
10960,... |
protected BaseExpression[] getExpressionsOfDefaultQuery() { | protected BaseExpression[] getExpressionsOfDefaultQuery( ) { | protected BaseExpression[] getExpressionsOfDefaultQuery() { return expressions; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a6517270d3ab712ad61d0d7ce18b0f674f02bcdb/APITestCase.java/buggy/testsuites/org.eclipse.birt.tests.data/src/testutil/APITestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
3360,
2300,
8526,
336,
8927,
951,
1868,
1138,
1435,
288,
1082,
202,
2463,
8041,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
3360,
2300,
8526,
336,
8927,
951,
1868,
1138,
1435,
288,
1082,
202,
2463,
8041,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
oos.writeObject(buildNewAccessEvent()); | ae.prepareForDeferredProcessing(); oos.writeObject(ae); | public void test1() throws Exception { // first run for just in time compiler int resetCounter = 0; int pauseCounter = 0; for (int i = 0; i < loopNumber; i++) { try { oos.writeObject(buildNewAccessEvent()); oos.flush(); if (++resetCounter >= resetFrequency) { oos.reset(); resetCounter = 0; } if (++pauseCounter >= pauseFrequency) { Thread.sleep(pauseLengthInMillis); pauseCounter = 0; } } catch (IOException ex) { fail(ex.getMessage()); } } // second run Long t1; Long t2; Long total = 0L; resetCounter = 0; pauseCounter = 0; // System.out.println("Beginning mesured run"); for (int i = 0; i < loopNumber; i++) { try { t1 = System.nanoTime(); oos.writeObject(buildNewAccessEvent()); oos.flush(); t2 = System.nanoTime(); total += (t2 - t1); if (++resetCounter >= resetFrequency) { oos.reset(); resetCounter = 0; } if (++pauseCounter >= pauseFrequency) { Thread.sleep(pauseLengthInMillis); pauseCounter = 0; } } catch (IOException ex) { fail(ex.getMessage()); } } total /= 1000; System.out.println("Loop done : average time = " + total / loopNumber + " microsecs after " + loopNumber + " writes."); } | 45777 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45777/7ce80c3ab84617aa2eae6effa8c36f2a66e688df/SerializationPerfTest.java/buggy/logback-access/src/test/java/ch/qos/logback/access/net/SerializationPerfTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
21,
1435,
1216,
1185,
288,
565,
368,
1122,
1086,
364,
2537,
316,
813,
5274,
565,
509,
2715,
4789,
273,
374,
31,
565,
509,
11722,
4789,
273,
374,
31,
565,
364,
261,
474,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
21,
1435,
1216,
1185,
288,
565,
368,
1122,
1086,
364,
2537,
316,
813,
5274,
565,
509,
2715,
4789,
273,
374,
31,
565,
509,
11722,
4789,
273,
374,
31,
565,
364,
261,
474,... |
hide(); | setVisible(false); | public void actionPerformed(ActionEvent e) { selectedIndex = -1; done = true; synchronized(monitor) { monitor.notify(); } hide(); dispose(); } | 6783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6783/0f6b7600e0b236cd5d42750ebd1421dcf76ca1ae/ScreenResSelector.java/buggy/src/demos/util/ScreenResSelector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
29244,
273,
300,
21,
31,
5411,
2731,
273,
638,
31,
5411,
3852,
12,
10259,
13,
288,
2868,
6438,
18,
12336,
5621,
5411,
289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5411,
29244,
273,
300,
21,
31,
5411,
2731,
273,
638,
31,
5411,
3852,
12,
10259,
13,
288,
2868,
6438,
18,
12336,
5621,
5411,
289,
5411,
1... |
else if (!Character.isLetter(c)) matched &= c >= '0' && c <= '9' && paren != -1; else if (i >= MAX_PREFIX_LENGTH || paren != -1) matched = false; } | else if (!Character.isLetter(c)) matched &= c >= '0' && c <= '9' && paren != -1; else if (i >= MAX_PREFIX_LENGTH || paren != -1) matched = false; } | private static String trimPrefixes(String subject) { while (true) { int length = subject.length(); // first, strip off any "(fwd)" at the end while (subject.endsWith(FWD_TRAILER)) { subject = subject.substring(0, length - FWD_TRAILER.length()).trim(); length = subject.length(); } if (length == 0) return subject; // find the first ':' in the subject boolean braced = subject.charAt(0) == '['; int colon = subject.indexOf(':'); if (colon <= (braced ? 1 : 0)) return subject; // figure out if it's either a known calendar response prefix or a 1-3 letter prefix String prefix = subject.substring(braced ? 1 : 0, colon + 1); boolean matched = true; if (CALENDAR_PREFIXES.contains(prefix)) matched = true; else { // make sure to catch "re(2):" and "fwd[5]:" as well... int paren = -1; for (int i = 0; matched && i < prefix.length() - 1; i++) { char c = prefix.charAt(i); if ((c == '(' || c == '[') && i > 0 && paren == -1) paren = i; else if ((c == ')' || c == ']') && paren != -1) matched &= i > paren + 1 && i == prefix.length() - 2; else if (!Character.isLetter(c)) matched &= c >= '0' && c <= '9' && paren != -1; else if (i >= MAX_PREFIX_LENGTH || paren != -1) matched = false; } } if (!matched) return subject; if (braced && subject.endsWith("]")) subject = subject.substring(colon + 1, length - 1).trim(); else subject = subject.substring(colon + 1).trim(); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/4710c69ca3069efb5e7330dcad5f982a6ea62403/ParsedMessage.java/clean/ZimbraServer/src/java/com/zimbra/cs/mime/ParsedMessage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
2209,
11700,
12,
780,
3221,
13,
288,
202,
202,
17523,
261,
3767,
13,
288,
1082,
202,
474,
769,
273,
3221,
18,
2469,
5621,
5411,
368,
1122,
16,
2569,
3397,
1281,
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,
225,
202,
1152,
760,
514,
2209,
11700,
12,
780,
3221,
13,
288,
202,
202,
17523,
261,
3767,
13,
288,
1082,
202,
474,
769,
273,
3221,
18,
2469,
5621,
5411,
368,
1122,
16,
2569,
3397,
1281,
775... |
if (top() && attribute.shouldPersist(m_params)) attribute.storeAttribute(this); | pushShouldPersist(attribute); storeAttribute(attribute); | public void visitAttribute(Attribute attribute) { if (top() && attribute.shouldPersist(m_params)) attribute.storeAttribute(this); } | 48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/d8ef2b6db460eb42f56ed68e998cfd1f3ae0f7b8/BasePersister.java/buggy/src/services/org/opennms/netmgt/collectd/BasePersister.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1499,
12,
1499,
1566,
13,
288,
3639,
309,
261,
3669,
1435,
597,
1566,
18,
13139,
12771,
12,
81,
67,
2010,
3719,
5411,
1566,
18,
2233,
1499,
12,
2211,
1769,
565,
289,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
1499,
12,
1499,
1566,
13,
288,
3639,
309,
261,
3669,
1435,
597,
1566,
18,
13139,
12771,
12,
81,
67,
2010,
3719,
5411,
1566,
18,
2233,
1499,
12,
2211,
1769,
565,
289,
2,... |
stdTarget = i; | if (maps[realIdx].hasFailedOnMachine(taskTracker)) { if (failedTarget < 0) { failedTarget = realIdx; } } else { stdTarget = realIdx; | public Task obtainNewMapTask(String taskTracker, TaskTrackerStatus tts) { if (! tasksInited) { LOG.info("Cannot create task split for " + profile.getJobId()); return null; } Task t = null; int cacheTarget = -1; int stdTarget = -1; int specTarget = -1; // // We end up creating two tasks for the same bucket, because // we call obtainNewMapTask() really fast, twice in a row. // There's not enough time for the "recentTasks" // // // Compute avg progress through the map tasks // double avgProgress = status.mapProgress() / maps.length; // // See if there is a split over a block that is stored on // the TaskTracker checking in. That means the block // doesn't have to be transmitted from another node. // for (int i = 0; i < maps.length; i++) { if (maps[i].hasTaskWithCacheHit(taskTracker, tts)) { if (cacheTarget < 0) { cacheTarget = i; break; } } } // // If there's no cached target, see if there's // a std. task to run. // if (cacheTarget < 0) { for (int i = 0; i < maps.length; i++) { if (maps[i].hasTask()) { if (stdTarget < 0) { stdTarget = i; break; } } } } // // If no cached-target and no std target, see if // there's a speculative task to run. // if (cacheTarget < 0 && stdTarget < 0) { for (int i = 0; i < maps.length; i++) { if (maps[i].hasSpeculativeTask(avgProgress)) { if (specTarget < 0) { specTarget = i; break; } } } } // // Run whatever we found // if (cacheTarget >= 0) { t = maps[cacheTarget].getTaskToRun(taskTracker, tts, avgProgress); } else if (stdTarget >= 0) { t = maps[stdTarget].getTaskToRun(taskTracker, tts, avgProgress); } else if (specTarget >= 0) { t = maps[specTarget].getTaskToRun(taskTracker, tts, avgProgress); } return t; } | 48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/4ee62812940075bac6919b94b6fb0d20137bd78c/JobInProgress.java/buggy/src/java/org/apache/hadoop/mapred/JobInProgress.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3837,
7161,
1908,
863,
2174,
12,
780,
1562,
8135,
16,
3837,
8135,
1482,
268,
3428,
13,
288,
3639,
309,
16051,
4592,
2570,
329,
13,
288,
5411,
2018,
18,
1376,
2932,
4515,
752,
1562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3837,
7161,
1908,
863,
2174,
12,
780,
1562,
8135,
16,
3837,
8135,
1482,
268,
3428,
13,
288,
3639,
309,
16051,
4592,
2570,
329,
13,
288,
5411,
2018,
18,
1376,
2932,
4515,
752,
1562,
... |
if (sign != val.sign) return sign > val.sign ? 1 : -1; if (sign == 0) return 0; return sign * intComp(val); } | if (sign != val.sign) return sign > val.sign ? 1 : -1; if (sign == 0) return 0; return sign * intComp(val); } | public int compareTo(XDecimal val) { if (sign != val.sign) return sign > val.sign ? 1 : -1; if (sign == 0) return 0; return sign * intComp(val); } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ca2aeab59f3fc18d766b3141f9dc8b74b78f92ce/DecimalDV.java/clean/src/org/apache/xerces/impl/dv/xs/DecimalDV.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9292,
12,
60,
5749,
1244,
13,
288,
3639,
309,
261,
2977,
480,
1244,
18,
2977,
13,
5411,
327,
1573,
405,
1244,
18,
2977,
692,
404,
294,
300,
21,
31,
3639,
309,
261,
2977,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9292,
12,
60,
5749,
1244,
13,
288,
3639,
309,
261,
2977,
480,
1244,
18,
2977,
13,
5411,
327,
1573,
405,
1244,
18,
2977,
692,
404,
294,
300,
21,
31,
3639,
309,
261,
2977,
42... |
ruleMemo = new HashMap[135+1]; | ruleMemo = new HashMap[138+1]; | public DRLParser(TokenStream input) { super(input); ruleMemo = new HashMap[135+1]; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f28aebf2f687a31e4e9c59db745d1344bea3d924/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
27094,
2678,
12,
1345,
1228,
810,
13,
288,
5411,
2240,
12,
2630,
1769,
5411,
1720,
21230,
273,
394,
4317,
63,
26645,
15,
21,
15533,
540,
289,
2,
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,
540,
1071,
27094,
2678,
12,
1345,
1228,
810,
13,
288,
5411,
2240,
12,
2630,
1769,
5411,
1720,
21230,
273,
394,
4317,
63,
26645,
15,
21,
15533,
540,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (node.getNumberChildren() > 1) | if (node != null && node.getNumberChildren() > 1) | private static int getMoveNumberInVariation(Node node) { int moveNumber = 0; while (node != null) { if (node.getMove() != null) ++moveNumber; node = node.getFather(); if (node.getNumberChildren() > 1) break; } return moveNumber; } | 48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/c1f8241fa750ca0f14481b1c05d980426ccc7ede/Writer.java/clean/src/sgf/Writer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
2108,
841,
1854,
382,
23771,
12,
907,
756,
13,
565,
288,
3639,
509,
3635,
1854,
273,
374,
31,
3639,
1323,
261,
2159,
480,
446,
13,
3639,
288,
5411,
309,
261,
2159,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
2108,
841,
1854,
382,
23771,
12,
907,
756,
13,
565,
288,
3639,
509,
3635,
1854,
273,
374,
31,
3639,
1323,
261,
2159,
480,
446,
13,
3639,
288,
5411,
309,
261,
2159,
18,
... |
public void setupSpecialPages(Locale locale, WikiUser user, VirtualWiki virtualWiki) throws Exception { | public static void setupSpecialPages(Locale locale, WikiUser user, VirtualWiki virtualWiki) throws Exception { | public void setupSpecialPages(Locale locale, WikiUser user, VirtualWiki virtualWiki) throws Exception { Connection conn = null; try { conn = this.getConnection(); // create the default topics setupSpecialPage(locale, virtualWiki.getName(), WikiBase.SPECIAL_PAGE_STARTING_POINTS, user, false, conn); setupSpecialPage(locale, virtualWiki.getName(), WikiBase.SPECIAL_PAGE_LEFT_MENU, user, true, conn); setupSpecialPage(locale, virtualWiki.getName(), WikiBase.SPECIAL_PAGE_BOTTOM_AREA, user, true, conn); setupSpecialPage(locale, virtualWiki.getName(), WikiBase.SPECIAL_PAGE_STYLESHEET, user, true, conn); } catch (Exception e) { DatabaseConnection.handleErrors(conn); throw e; } finally { this.releaseParams(conn); } } | 50517 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50517/513a238e3f29ddefa148a3c1e845ad0af9dd6c29/DatabaseHandler.java/buggy/src/java/org/jamwiki/db/DatabaseHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3875,
12193,
5716,
12,
3916,
2573,
16,
28268,
1299,
729,
16,
7269,
25438,
5024,
25438,
13,
1216,
1185,
288,
202,
202,
1952,
1487,
273,
446,
31,
202,
202,
698,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3875,
12193,
5716,
12,
3916,
2573,
16,
28268,
1299,
729,
16,
7269,
25438,
5024,
25438,
13,
1216,
1185,
288,
202,
202,
1952,
1487,
273,
446,
31,
202,
202,
698,
288,
1082,
... |
private LogicStatement parse_body(ParseNode pn) { if (!precheck(pn, "body")) { return null; } if (pn.getChild("and") != null) { /* body AND body */ LogicStatement left, right; left = parse_body(pn.getChild("and").getChild("left").getChild("body")); right = parse_body(pn.getChild("and").getChild("right").getChild("body")); if ((left == null) || (right == null)) { return null; } // what do we want to call the and/or/not body classes? return new LogicStatement(LogicStatement.AND, left, right); } else if (pn.getChild("or") != null) { /* body OR body */ LogicStatement left, right; left = parse_body(pn.getChild("or").getChild("left").getChild("body")); right = parse_body(pn.getChild("or").getChild("right").getChild("body")); if ((left == null) || (right == null)) { return null; } return new LogicStatement(LogicStatement.OR, left, right); } else if (pn.getChild("not") != null) { /* NOT body */ LogicStatement left = parse_body(pn.getChild("not").getChild("body")); if (left == null) { return null; } return new LogicStatement(LogicStatement.NOT, left); } else if (pn.getChild("predicate") != null) { return parse_predicate(pn.getChild("predicate")); } else { throw new IRException(); } } | 2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/28201febc522c0f0e089c33b984043b82c5b9036/SemanticChecker.java/clean/RepairCompiler/MCC/IR/SemanticChecker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
20556,
3406,
2670,
67,
3432,
12,
3201,
907,
7449,
15329,
430,
12,
5,
1484,
1893,
12,
7449,
10837,
3432,
6,
3719,
95,
2463,
2011,
31,
97,
430,
12,
7449,
18,
588,
1763,
2932,
464,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
20556,
3406,
2670,
67,
3432,
12,
3201,
907,
7449,
15329,
430,
12,
5,
1484,
1893,
12,
7449,
10837,
3432,
6,
3719,
95,
2463,
2011,
31,
97,
430,
12,
7449,
18,
588,
1763,
2932,
464,
7923,
... | ||
if (source.charAt(0) == TokenStream.FUNCTION && length > 1 && (source.charAt(1) == TokenStream.NAME || source.charAt(1) == TokenStream.LP)) { | int token = source.charAt(i); ++i; if (token == TokenStream.FUNCTION) { | private static void decompile_r(NativeFunction f, int indent, boolean toplevel, boolean justbody, StringBuffer result) { String source = f.source; if (source == null) { if (!justbody) { result.append("function "); result.append(f.getFunctionName()); result.append("() {\n\t"); } result.append("[native code]\n"); if (!justbody) { result.append("}\n"); } return; } int length = source.length(); // Spew tokens in source, for debugging. // as TYPE number char if (printSource) { System.err.println("length:" + length); for (int i = 0; i < length; ++i) { // Note that tokenToName will fail unless Context.printTrees // is true. String tokenname = TokenStream.tokenToName(source.charAt(i)); if (tokenname == null) tokenname = "---"; String pad = tokenname.length() > 7 ? "\t" : "\t\t"; System.err.println (tokenname + pad + (int)source.charAt(i) + "\t'" + ScriptRuntime.escapeString (source.substring(i, i+1)) + "'"); } System.err.println(); } int i = 0; if (length > 0) { /* special-case FUNCTION as the first token; if it is, * (and it's not followed by a NAME or LP) then we're * decompiling a function (and not the toplevel script.) * FUNCTION appearing elsewhere is an escape that means we'll * need to call toString of the given function (object). * If not at the top level, don't add an initial indent; * let the caller do it, so functions as expressions look * reasonable. */ if (toplevel) { // add an initial newline to exactly match js. if (!justbody) result.append('\n'); for (int j = 0; j < indent; j++) result.append(' '); } if (source.charAt(0) == TokenStream.FUNCTION // make sure it's not a script that begins with a // reference to a function definition. && length > 1 && (source.charAt(1) == TokenStream.NAME || source.charAt(1) == TokenStream.LP)) { if (!justbody) { result.append("function "); /* version != 1.2 Function constructor behavior - if * there's no function name in the source info, and * the names[0] entry is the empty string, then it must * have been created by the Function constructor; * print 'anonymous' as the function name if the * version (under which the function was compiled) is * less than 1.2... or if it's greater than 1.2, because * we need to be closer to ECMA. (ToSource, please?) */ if (nextIs(source, length, i, TokenStream.LP) && f.version != Context.VERSION_1_2 && f.functionName != null && f.functionName.equals("anonymous")) result.append("anonymous"); ++i; } else { /* Skip past the entire function header to the next EOL. * Depends on how NAMEs are encoded. */ while (i < length && (source.charAt(i) != TokenStream.EOL // the length char of a NAME sequence // can look like an EOL. || (i > 0 && source.charAt(i-1) == TokenStream.NAME))) { ++i; } // Skip past the EOL, too. ++i; } } } while (i < length) { int stop; switch(source.charAt(i)) { case TokenStream.NAME: case TokenStream.REGEXP: // re-wrapped in '/'s in parser... /* NAMEs are encoded as NAME, (char) length, string... * Note that lookahead for detecting labels depends on * this encoding; change there if this changes. * Also change function-header skipping code above, * used when decompling under decompileFunctionBody. */ ++i; stop = i + (int)source.charAt(i); result.append(source.substring(i + 1, stop + 1)); i = stop; break; case TokenStream.NUMBER: ++i; long lbits = 0; switch(source.charAt(i)) { case 'S': ++i; result.append((int)source.charAt(i)); break; case 'J': lbits |= (long)source.charAt(++i) << 48; lbits |= (long)source.charAt(++i) << 32; lbits |= (long)source.charAt(++i) << 16; lbits |= (long)source.charAt(++i); result.append(lbits); break; case 'D': lbits |= (long)source.charAt(++i) << 48; lbits |= (long)source.charAt(++i) << 32; lbits |= (long)source.charAt(++i) << 16; lbits |= (long)source.charAt(++i); double dval = Double.longBitsToDouble(lbits); result.append(ScriptRuntime.numberToString(dval, 10)); break; } break; case TokenStream.STRING: ++i; stop = i + (int)source.charAt(i); result.append('"'); result.append(ScriptRuntime.escapeString (source.substring(i + 1, stop + 1))); result.append('"'); i = stop; break; case TokenStream.PRIMARY: ++i; switch(source.charAt(i)) { case TokenStream.TRUE: result.append("true"); break; case TokenStream.FALSE: result.append("false"); break; case TokenStream.NULL: result.append("null"); break; case TokenStream.THIS: result.append("this"); break; case TokenStream.TYPEOF: result.append("typeof"); break; case TokenStream.VOID: result.append("void"); break; case TokenStream.UNDEFINED: result.append("undefined"); break; } break; case TokenStream.FUNCTION: { /* decompile a FUNCTION token as an escape; call * toString on the nth enclosed nested function, * where n is given by the byte that follows. */ ++i; int functionNumber = source.charAt(i); if (f.nestedFunctions == null || functionNumber > f.nestedFunctions.length) { String message; if (f.functionName != null && f.functionName.length() > 0) { message = Context.getMessage2 ("msg.no.function.ref.found.in", new Integer(functionNumber), f.functionName); } else { message = Context.getMessage1 ("msg.no.function.ref.found", new Integer(functionNumber)); } throw Context.reportRuntimeError(message); } decompile_r(f.nestedFunctions[functionNumber], indent, false, false, result); break; } case TokenStream.COMMA: result.append(", "); break; case TokenStream.LC: if (nextIs(source, length, i, TokenStream.EOL)) indent += OFFSET; result.append('{'); break; case TokenStream.RC: /* don't print the closing RC if it closes the * toplevel function and we're called from * decompileFunctionBody. */ if (justbody && toplevel && i + 1 == length) break; if (nextIs(source, length, i, TokenStream.EOL)) indent -= OFFSET; if (nextIs(source, length, i, TokenStream.WHILE) || nextIs(source, length, i, TokenStream.ELSE)) { indent -= OFFSET; result.append("} "); } else result.append('}'); break; case TokenStream.LP: result.append('('); break; case TokenStream.RP: if (nextIs(source, length, i, TokenStream.LC)) result.append(") "); else result.append(')'); break; case TokenStream.LB: result.append('['); break; case TokenStream.RB: result.append(']'); break; case TokenStream.EOL: result.append('\n'); /* add indent if any tokens remain, * less setback if next token is * a label, case or default. */ if (i + 1 < length) { int less = 0; if (nextIs(source, length, i, TokenStream.CASE) || nextIs(source, length, i, TokenStream.DEFAULT)) less = SETBACK; else if (nextIs(source, length, i, TokenStream.RC)) less = OFFSET; /* elaborate check against label... skip past a * following inlined NAME and look for a COLON. * Depends on how NAME is encoded. */ else if (nextIs(source, length, i, TokenStream.NAME)) { int skip = source.charAt(i + 2); if (source.charAt(i + skip + 3) == TokenStream.COLON) less = OFFSET; } for (; less < indent; less++) result.append(' '); } break; case TokenStream.DOT: result.append('.'); break; case TokenStream.NEW: result.append("new "); break; case TokenStream.DELPROP: result.append("delete "); break; case TokenStream.IF: result.append("if "); break; case TokenStream.ELSE: result.append("else "); break; case TokenStream.FOR: result.append("for "); break; case TokenStream.IN: result.append(" in "); break; case TokenStream.WITH: result.append("with "); break; case TokenStream.WHILE: result.append("while "); break; case TokenStream.DO: result.append("do "); break; case TokenStream.TRY: result.append("try "); break; case TokenStream.CATCH: result.append("catch "); break; case TokenStream.FINALLY: result.append("finally "); break; case TokenStream.THROW: result.append("throw "); break; case TokenStream.SWITCH: result.append("switch "); break; case TokenStream.BREAK: if (nextIs(source, length, i, TokenStream.NAME)) result.append("break "); else result.append("break"); break; case TokenStream.CONTINUE: if (nextIs(source, length, i, TokenStream.NAME)) result.append("continue "); else result.append("continue"); break; case TokenStream.CASE: result.append("case "); break; case TokenStream.DEFAULT: result.append("default"); break; case TokenStream.RETURN: if (nextIs(source, length, i, TokenStream.SEMI)) result.append("return"); else result.append("return "); break; case TokenStream.VAR: result.append("var "); break; case TokenStream.SEMI: if (nextIs(source, length, i, TokenStream.EOL)) // statement termination result.append(';'); else // separators in FOR result.append("; "); break; case TokenStream.ASSIGN: ++i; switch(source.charAt(i)) { case TokenStream.NOP: result.append(" = "); break; case TokenStream.ADD: result.append(" += "); break; case TokenStream.SUB: result.append(" -= "); break; case TokenStream.MUL: result.append(" *= "); break; case TokenStream.DIV: result.append(" /= "); break; case TokenStream.MOD: result.append(" %= "); break; case TokenStream.BITOR: result.append(" |= "); break; case TokenStream.BITXOR: result.append(" ^= "); break; case TokenStream.BITAND: result.append(" &= "); break; case TokenStream.LSH: result.append(" <<= "); break; case TokenStream.RSH: result.append(" >>= "); break; case TokenStream.URSH: result.append(" >>>= "); break; } break; case TokenStream.HOOK: result.append(" ? "); break; case TokenStream.OBJLIT: // pun OBJLIT to mean colon in objlit property initialization. // this needs to be distinct from COLON in the general case // to distinguish from the colon in a ternary... which needs // different spacing. result.append(':'); break; case TokenStream.COLON: if (nextIs(source, length, i, TokenStream.EOL)) // it's the end of a label result.append(':'); else // it's the middle part of a ternary result.append(" : "); break; case TokenStream.OR: result.append(" || "); break; case TokenStream.AND: result.append(" && "); break; case TokenStream.BITOR: result.append(" | "); break; case TokenStream.BITXOR: result.append(" ^ "); break; case TokenStream.BITAND: result.append(" & "); break; case TokenStream.EQOP: ++i; switch(source.charAt(i)) { case TokenStream.SHEQ: /* * Emulate the C engine; if we're under version * 1.2, then the == operator behaves like the === * operator (and the source is generated by * decompiling a === opcode), so print the === * operator as ==. */ result.append(f.version == Context.VERSION_1_2 ? " == " : " === "); break; case TokenStream.SHNE: result.append(f.version == Context.VERSION_1_2 ? " != " : " !== "); break; case TokenStream.EQ: result.append(" == "); break; case TokenStream.NE: result.append(" != "); break; } break; case TokenStream.RELOP: ++i; switch(source.charAt(i)) { case TokenStream.LE: result.append(" <= "); break; case TokenStream.LT: result.append(" < "); break; case TokenStream.GE: result.append(" >= "); break; case TokenStream.GT: result.append(" > "); break; case TokenStream.INSTANCEOF: result.append(" instanceof "); break; } break; case TokenStream.SHOP: ++i; switch(source.charAt(i)) { case TokenStream.LSH: result.append(" << "); break; case TokenStream.RSH: result.append(" >> "); break; case TokenStream.URSH: result.append(" >>> "); break; } break; case TokenStream.UNARYOP: ++i; switch(source.charAt(i)) { case TokenStream.TYPEOF: result.append("typeof "); break; case TokenStream.VOID: result.append("void "); break; case TokenStream.NOT: result.append('!'); break; case TokenStream.BITNOT: result.append('~'); break; case TokenStream.ADD: result.append('+'); break; case TokenStream.SUB: result.append('-'); break; } break; case TokenStream.INC: result.append("++"); break; case TokenStream.DEC: result.append("--"); break; case TokenStream.ADD: result.append(" + "); break; case TokenStream.SUB: result.append(" - "); break; case TokenStream.MUL: result.append(" * "); break; case TokenStream.DIV: result.append(" / "); break; case TokenStream.MOD: result.append(" % "); break; default: // If we don't know how to decompile it, raise an exception. throw new RuntimeException(); } ++i; } // add that trailing newline if it's an outermost function. if (toplevel && !justbody) result.append('\n'); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/99c0da59df8a477345ea61355f46260118b3760e/NativeFunction.java/clean/js/rhino/src/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
443,
11100,
67,
86,
12,
9220,
2083,
284,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
443,
11100,
67,
86,
12,
9220,
2083,
284,
16,
509,
3504,
16,
4766,
565,
1250,
28999,
16,
1250,
2537,
3432,
16,
4766,
565,
6674,
563,
13,
565,
288,
3639,
514,
1084,
273,
... |
public Set entrySet(); | Set entrySet(); | public Set entrySet(); | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b37b39a8e8ee762cc74efa7e8d06368d13147150/Map.java/clean/libraries/javalib/java/util/Map.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1000,
6296,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1000,
6296,
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,
-1... |
if( dialog.open() == InputDialog.OK ) { VView.GetInstance().ExecSynchronized(new IVSynchronizedAction() { @Override public void Run() throws RuntimeException { selectedSetting.SetValue(dialog.getValue()); } }); | if( selection != null ) { selectedEntity.Add(new Part(selection)); | public void run() { final Setting selectedSetting = getSelectedSetting(); if( selectedSetting == null ) return; final InputDialog dialog = new InputDialog(myParent.getShell(), "Change value of " + selectedSetting.GetName(), "Value", selectedSetting.GetValue(), new IInputValidator() { public String isValid(String x) { return null; } }); if( dialog.open() == InputDialog.OK ) { VView.GetInstance().ExecSynchronized(new IVSynchronizedAction() { @Override public void Run() throws RuntimeException { selectedSetting.SetValue(dialog.getValue()); } }); } viewer.refresh(); } | 3290 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3290/920a25ca0f7471bb4a0e4a6d86a94fb8367ab626/SceneView.java/buggy/velox/Editor/EclipsePlugin/src/de/velox/editor/views/SceneView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
6385,
13274,
3170,
5568,
273,
16625,
5568,
5621,
6862,
9506,
202,
430,
12,
3170,
5568,
422,
446,
262,
6862,
202,
2463,
31,
6862,
9506,
202,
638... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
9506,
202,
6385,
13274,
3170,
5568,
273,
16625,
5568,
5621,
6862,
9506,
202,
430,
12,
3170,
5568,
422,
446,
262,
6862,
202,
2463,
31,
6862,
9506,
202,
638... |
LoadQuartzServlet.PARAMETER_DOCUMENT_URL, | ServletJob.PARAMETER_DOCUMENT_URL, | public Map createParameters() throws ProcessingException { Map map = new HashMap(); try { TaskWrapper wrapper = new CocoonTaskWrapper(objectModel, parameters); logger.debug("Adding task wrapper parameters"); Parameters wrapperParameters = wrapper.getParameters(); Properties wrapperMap = Parameters.toProperties(wrapperParameters); map.putAll(wrapperMap); NamespaceMap schedulerParameters = new NamespaceMap(LoadQuartzServlet.PREFIX); PageEnvelope envelope = PageEnvelopeFactory.getInstance().getPageEnvelope(objectModel); schedulerParameters.put( LoadQuartzServlet.PARAMETER_DOCUMENT_URL, envelope.getDocument().getCompleteURL()); schedulerParameters.put( LoadQuartzServlet.PARAMETER_PUBLICATION_ID, envelope.getPublication().getId()); map.putAll(schedulerParameters.getPrefixedMap()); } catch (Exception e) { throw new ProcessingException(e); } return map; } | 45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/c8330432e8015005cafb9bea3a94c3cf0e6080d9/SchedulerHelper.java/buggy/src/java/org/apache/lenya/cms/cocoon/scheduler/SchedulerHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
752,
2402,
1435,
1216,
19652,
503,
288,
3639,
1635,
852,
273,
394,
4317,
5621,
3639,
775,
288,
5411,
3837,
3611,
4053,
273,
394,
385,
29571,
265,
2174,
3611,
12,
1612,
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,
377,
1071,
1635,
752,
2402,
1435,
1216,
19652,
503,
288,
3639,
1635,
852,
273,
394,
4317,
5621,
3639,
775,
288,
5411,
3837,
3611,
4053,
273,
394,
385,
29571,
265,
2174,
3611,
12,
1612,
1488,
1... |
if ((bufpos + 1) >= len) System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); else { System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, len - bufpos - 1); System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); } | if ((bufpos + 1) >= len) System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); else { System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, len - bufpos - 1); System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); } | static public char[] GetSuffix(int len) { char[] ret = new char[len]; if ((bufpos + 1) >= len) System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); else { System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, len - bufpos - 1); System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); } return ret; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/23e69d576250f417c265d779703b8da08a67aaed/SimpleCharStream.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/SimpleCharStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
1149,
8526,
968,
5791,
12,
474,
562,
13,
288,
3639,
1149,
8526,
325,
273,
394,
1149,
63,
1897,
15533,
3639,
309,
14015,
4385,
917,
397,
404,
13,
1545,
562,
13,
5411,
2332,
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,
760,
1071,
1149,
8526,
968,
5791,
12,
474,
562,
13,
288,
3639,
1149,
8526,
325,
273,
394,
1149,
63,
1897,
15533,
3639,
309,
14015,
4385,
917,
397,
404,
13,
1545,
562,
13,
5411,
2332,
18... |
} | } | private void findBinomialLimits() { /** * will kick out 66 as the limit for long */ boolean foundLimit = false; int test = 10; while (!foundLimit) { try { double x = MathUtils.binomialCoefficient(test, test / 2); } catch (ArithmeticException ex) { foundLimit = true; System.out.println ("largest n for binomialCoefficient = " + (test - 1) ); } test++; } /** * will kick out 1029 as the limit for double */ foundLimit = false; test = 10; while (!foundLimit) { double x = MathUtils.binomialCoefficientDouble(test, test / 2); if (Double.isInfinite(x)) { foundLimit = true; System.out.println ("largest n for binomialCoefficientD = " + (test - 1) ); } test++; } } | 9305 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9305/aa3e2e9ef49349a9ea3c6af37874345f35b52192/MathUtilsTest.java/buggy/src/test/org/apache/commons/math/MathUtilsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1104,
9913,
11496,
12768,
1435,
288,
3639,
1783,
540,
380,
903,
23228,
596,
22342,
487,
326,
1800,
364,
1525,
540,
1195,
3639,
1250,
1392,
3039,
273,
629,
31,
3639,
509,
1842,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1104,
9913,
11496,
12768,
1435,
288,
3639,
1783,
540,
380,
903,
23228,
596,
22342,
487,
326,
1800,
364,
1525,
540,
1195,
3639,
1250,
1392,
3039,
273,
629,
31,
3639,
509,
1842,
... |
getPageDescriptor().buildInitialLayout( this ); | getPageDescriptor().buildInitialLayout(this); | protected JComponent createControl() { control = new ScrollingDesktopPane(); scrollPane = new JScrollPane( control ); getPageDescriptor().buildInitialLayout( this ); return scrollPane; } | 55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/e9c7e850255019684a2c419797cf55240fc4a209/DesktopApplicationPage.java/buggy/sandbox/src/main/java/org/springframework/richclient/application/mdi/DesktopApplicationPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
29058,
752,
3367,
1435,
288,
3639,
3325,
273,
394,
2850,
15742,
27583,
8485,
5621,
3639,
5532,
8485,
273,
394,
804,
26360,
12,
3325,
11272,
3639,
8957,
3187,
7675,
3510,
4435,
3744,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
29058,
752,
3367,
1435,
288,
3639,
3325,
273,
394,
2850,
15742,
27583,
8485,
5621,
3639,
5532,
8485,
273,
394,
804,
26360,
12,
3325,
11272,
3639,
8957,
3187,
7675,
3510,
4435,
3744,
1... |
addMeasureButton.setIcon(new ImageIcon(resources.getString("addMeasure"))); | addMeasureButton.setIcon(new ImageIcon(myClassLoader.getResource(resources.getString("addMeasure")))); | private void initComponents() { jSplitPane1 = new JSplitPane(); jPanel1 = new JPanel(); jScrollPane2 = new JScrollPane(); propertyTable = new JTable(); targetLabel = new javax.swing.JLabel(); jPanel2 = new JPanel(); jScrollPane1 = new JScrollPane(); tree = new JTree(); jToolBar1 = new JToolBar(); addCubeButton = new JButton(); addDimensionButton = new JButton(); addMeasureButton = new JButton(); addLevelButton = new JButton(); addPropertyButton = new JButton(); cutButton = new JButton(); copyButton = new JButton(); pasteButton = new JButton(); setLayout(new BorderLayout()); jSplitPane1.setDividerLocation(200); jPanel1.setLayout(new BorderLayout()); propertyTable.setModel(new DefaultTableModel(new Object[][] { }, new String[] { "Property", "Value" }) { Class[] types = new Class[] { java.lang.String.class, java.lang.Object.class }; boolean[] canEdit = new boolean[] { false, true }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } public boolean isCellEditable(int rowIndex, int columnIndex) { return canEdit[columnIndex]; } }); jScrollPane2.setViewportView(propertyTable); jPanel1.add(jScrollPane2, java.awt.BorderLayout.CENTER); targetLabel.setFont(new Font("Dialog", 1, 14)); targetLabel.setForeground((Color) UIManager.getDefaults().get("CheckBoxMenuItem.acceleratorForeground")); targetLabel.setHorizontalAlignment(SwingConstants.CENTER); targetLabel.setText("Schema"); targetLabel.setBorder(new EtchedBorder()); jPanel1.add(targetLabel, java.awt.BorderLayout.NORTH); jSplitPane1.setRightComponent(jPanel1); jPanel2.setLayout(new java.awt.BorderLayout()); jScrollPane1.setViewportView(tree); jPanel2.add(jScrollPane1, java.awt.BorderLayout.CENTER); jSplitPane1.setLeftComponent(jPanel2); //======================================================== // actions //======================================================== addCube = new AbstractAction("Add cube") { public void actionPerformed(ActionEvent e) { addCube(e); } }; addDimension = new AbstractAction("Add Dimension") { public void actionPerformed(ActionEvent e) { addDimension(e); } }; addMeasure = new AbstractAction("Add Measure") { public void actionPerformed(ActionEvent e) { addMeasure(e); } }; addLevel = new AbstractAction("Add Level") { public void actionPerformed(ActionEvent e) { addLevel(e); } }; addProperty = new AbstractAction("Add Property") { public void actionPerformed(ActionEvent e) { addProperty(e); } }; ResourceBundle resources = ResourceBundle.getBundle("mondrian.gui.resources.gui"); //======================================================== // toolbar buttons //======================================================== addCubeButton.setIcon(new ImageIcon(resources.getString("addCube"))); addCubeButton.setToolTipText("Add Cube"); addCubeButton.addActionListener(addCube); addDimensionButton.setIcon(new ImageIcon(resources.getString("addDimension"))); addDimensionButton.setToolTipText("Add Dimension"); addDimensionButton.addActionListener(addDimension); addMeasureButton.setIcon(new ImageIcon(resources.getString("addMeasure"))); addMeasureButton.setToolTipText("Add Measure"); addMeasureButton.addActionListener(addMeasure); addLevelButton.setIcon(new ImageIcon(resources.getString("addLevel"))); addLevelButton.setToolTipText("Add Level"); addLevelButton.addActionListener(addLevel); addPropertyButton.setIcon(new ImageIcon(resources.getString("addProperty"))); addPropertyButton.setToolTipText("Add Property"); addPropertyButton.addActionListener(addProperty); cutButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/toolbarButtonGraphics/general/Cut24.gif"))); cutButton.setToolTipText("Cut"); copyButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/toolbarButtonGraphics/general/Copy24.gif"))); copyButton.setToolTipText("Copy"); pasteButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/toolbarButtonGraphics/general/Paste24.gif"))); pasteButton.setToolTipText("Paste"); jToolBar1.add(addCubeButton); jToolBar1.add(addDimensionButton); jToolBar1.add(addMeasureButton); jToolBar1.add(addLevelButton); jToolBar1.add(addPropertyButton); jToolBar1.add(cutButton); jToolBar1.add(copyButton); jToolBar1.add(pasteButton); //======================================================== // popup menu //======================================================== jPopupMenu = new JPopupMenu(); //======================================================== // tree mouse listener //======================================================== tree.addMouseListener(new PopupTrigger()); //======================================================== // jpanel //======================================================== this.add(jSplitPane1, java.awt.BorderLayout.CENTER); this.add(jToolBar1, java.awt.BorderLayout.NORTH); updater = new JTreeUpdater(tree); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/d4a93c3315c8aa9b9d64e1c03577610a1dbca61d/SchemaExplorer.java/clean/src/main/mondrian/gui/SchemaExplorer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
7171,
1435,
288,
202,
202,
78,
5521,
8485,
21,
273,
394,
804,
5521,
8485,
5621,
202,
202,
78,
5537,
21,
273,
394,
24048,
5621,
202,
202,
78,
26360,
22,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
7171,
1435,
288,
202,
202,
78,
5521,
8485,
21,
273,
394,
804,
5521,
8485,
5621,
202,
202,
78,
5537,
21,
273,
394,
24048,
5621,
202,
202,
78,
26360,
22,
273,
394,
... |
} else if ((tokenVal.equals("a") || tokenVal.equals("A")) && ((tokenItem.getNext() == null) || !(tokenVal.equals(itemName)) || !(((String) tokenItem.findFeature("punc")).equals("")))) { /* if A is a sub part of a token, then its ey not ah */ wordRelation.addWord("_a"); | if (tokenFeatures.isPresent("phones")) { wordRelation.addWord(tokenItem, tokenVal); | private void tokenToWords(String tokenVal) { FeatureSet tokenFeatures = tokenItem.getFeatures(); String itemName = tokenFeatures.getString("name"); int tokenLength = tokenVal.length(); if (tokenFeatures.isPresent("phones")) { wordRelation.addWord(tokenVal); } else if ((tokenVal.equals("a") || tokenVal.equals("A")) && ((tokenItem.getNext() == null) || !(tokenVal.equals(itemName)) || !(((String) tokenItem.findFeature("punc")).equals("")))) { /* if A is a sub part of a token, then its ey not ah */ wordRelation.addWord("_a"); } else if (matches(alphabetPattern, tokenVal)) { if (matches(romanNumbersPattern, tokenVal)) { /* XVIII */ romanToWords(tokenVal); } else if (matches(illionPattern, tokenVal) && matches(usMoneyPattern, (String) tokenItem.findFeature("p.name"))) { /* $ X -illion */ wordRelation.addWord(tokenVal); wordRelation.addWord("dollars"); } else if (matches(drStPattern, tokenVal)) { /* St Andrew's St, Dr King Dr */ drStToWords(tokenVal); } else if (tokenVal.equals("Mr")) { tokenItem.getFeatures().setString("punc", ""); wordRelation.addWord("mister"); } else if (tokenVal.equals("Mrs")) { tokenItem.getFeatures().setString("punc", ""); wordRelation.addWord("missus"); } else if (tokenLength == 1 && isUppercaseLetter(tokenVal.charAt(0)) && ((String)tokenItem.findFeature("n.whitespace")).equals(" ") && isUppercaseLetter (((String) tokenItem.findFeature("n.name")).charAt(0))) { tokenFeatures.setString("punc", ""); String aaa = tokenVal.toLowerCase(); if (aaa.equals("a")) { wordRelation.addWord("_a"); } else { wordRelation.addWord(aaa); } } else if (isStateName(tokenVal)) { /* The name of a US state isStateName() has already added the full name of the state, so we're all set. */ } else if (tokenLength > 1 && !isPronounceable(tokenVal)) { /* Need common exception list */ /* unpronouncable list of alphas */ NumberExpander.expandLetters (tokenVal, wordRelation); } else { /* just a word */ wordRelation.addWord(tokenVal.toLowerCase()); } } else if (matches(dottedAbbrevPattern, tokenVal)) { /* U.S.A. */ // remove all dots String aaa = Utilities.deleteChar(tokenVal, '.'); NumberExpander.expandLetters(aaa, wordRelation); } else if (matches(commaIntPattern, tokenVal)) { /* 99,999,999 */ String aaa = Utilities.deleteChar(tokenVal, ','); NumberExpander.expandReal(aaa, wordRelation); } else if (matches(sevenPhoneNumberPattern, tokenVal)) { /* 234-3434 telephone numbers */ int dashIndex = tokenVal.indexOf('-'); String aaa = tokenVal.substring(0, dashIndex); String bbb = tokenVal.substring(dashIndex+1); NumberExpander.expandDigits(aaa, wordRelation); wordRelation.addBreak(); NumberExpander.expandDigits(bbb, wordRelation); } else if (matchesPartPhoneNumber(tokenVal)) { /* part of a telephone number */ String punctuation = (String) tokenItem.findFeature("punc"); if (punctuation.equals("")) { tokenItem.getFeatures().setString("punc", ","); } NumberExpander.expandDigits(tokenVal, wordRelation); wordRelation.addBreak(); } else if (matches(numberTimePattern, tokenVal)) { /* 12:35 */ int colonIndex = tokenVal.indexOf(':'); String aaa = tokenVal.substring(0, colonIndex); String bbb = tokenVal.substring(colonIndex+1); NumberExpander.expandNumber(aaa, wordRelation); if (!(bbb.equals("00"))) { NumberExpander.expandID(bbb, wordRelation); } } else if (matches(digits2DashPattern, tokenVal)) { /* 999-999-999 */ digitsDashToWords(tokenVal); } else if (matches(digitsPattern, tokenVal)) { digitsToWords(tokenVal); } else if (tokenLength == 1 && isUppercaseLetter(tokenVal.charAt(0)) && ((String)tokenItem.findFeature("n.whitespace")).equals (" ") && isUppercaseLetter (((String) tokenItem.findFeature("n.name")).charAt(0))) { tokenFeatures.setString("punc", ""); String aaa = tokenVal.toLowerCase(); if (aaa.equals("a")) { wordRelation.addWord("_a"); } else { wordRelation.addWord(aaa); } } else if (matches(doublePattern, tokenVal)) { NumberExpander.expandReal(tokenVal, wordRelation); } else if (matches(ordinalPattern, tokenVal)) { /* explicit ordinals */ String aaa = tokenVal.substring(0, tokenLength - 2); NumberExpander.expandOrdinal(aaa, wordRelation); } else if (matches(usMoneyPattern, tokenVal)) { /* US money */ usMoneyToWords(tokenVal); } else if (tokenLength > 0 && tokenVal.charAt(tokenLength - 1) == '%') { /* Y% */ tokenToWords(tokenVal.substring(0, tokenLength - 1)); wordRelation.addWord("per"); wordRelation.addWord("cent"); } else if (matches(numessPattern, tokenVal)) { /* 60s and 7s and 9s */ tokenToWords(tokenVal.substring(0, tokenLength - 1)); wordRelation.addWord("'s"); } else if (tokenVal.indexOf('\'') != -1) { postropheToWords(tokenVal); } else if (matches(digitsSlashDigitsPattern, tokenVal) && tokenVal.equals(itemName)) { digitsSlashDigitsToWords(tokenVal); } else if (tokenVal.indexOf('-') != -1) { dashToWords(tokenVal); } else if (tokenLength > 1 && !matches(alphabetPattern, tokenVal)) { notJustAlphasToWords(tokenVal); } else { /* just a word */ wordRelation.addWord(tokenVal.toLowerCase()); } } | 18648 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18648/6a55df45b5e749262e5610405145a505d38c6c9e/TokenToWords.java/buggy/java/de/dfki/lt/mary/modules/en/TokenToWords.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1147,
774,
7363,
12,
780,
1147,
3053,
13,
288,
3639,
202,
4595,
694,
1147,
8696,
273,
1147,
1180,
18,
588,
8696,
5621,
202,
780,
23488,
273,
1147,
8696,
18,
588,
780,
2932,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1147,
774,
7363,
12,
780,
1147,
3053,
13,
288,
3639,
202,
4595,
694,
1147,
8696,
273,
1147,
1180,
18,
588,
8696,
5621,
202,
780,
23488,
273,
1147,
8696,
18,
588,
780,
2932,
5... |
int i, n = Integer.parseInt(args[0]); | public static void main(String args[]) { //@START int i, n = Integer.parseInt(args[0]); int x[] = new int[n]; int y[] = new int[n]; for (i = 0; i < n;) { x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; } for (i = n-1; i >= 0;) { y[i] = x[i]; --i; y[i] = x[i]; --i; y[i] = x[i]; --i; y[i] = x[i]; --i; y[i] = x[i]; --i; y[i] = x[i]; --i; y[i] = x[i]; --i; y[i] = x[i]; --i; y[i] = x[i]; --i; y[i] = x[i]; --i; } System.out.println(y[n-1]); //@END } | 48167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48167/e5bbfb923dd26b1f0852e4d364e54bb8fca49315/ary2.java/clean/tests/shootout/java-start/ary2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
202,
759,
36,
7570,
202,
474,
277,
16,
290,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
20,
19226,
202,
474,
619,
8526,
273,
394,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
202,
759,
36,
7570,
202,
474,
277,
16,
290,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
20,
19226,
202,
474,
619,
8526,
273,
394,
509,
... | |
alwaysAddresses.add(always); | alwaysList.add(always); alwaysAddresses = (Always[]) alwaysList.toArray(new Always[0]); | public Object createAlways() { Always always = new Always(); alwaysAddresses.add(always); return always; } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/29ae39b9ec7a4c1db60c2956b2ad8d1ba3677ae7/EmailPublisher.java/buggy/main/src/net/sourceforge/cruisecontrol/publishers/EmailPublisher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
752,
18806,
1435,
288,
3639,
14178,
3712,
273,
394,
14178,
5621,
3639,
3712,
682,
18,
1289,
12,
17737,
1769,
225,
3712,
7148,
273,
261,
18806,
63,
5717,
3712,
682,
18,
31447,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
752,
18806,
1435,
288,
3639,
14178,
3712,
273,
394,
14178,
5621,
3639,
3712,
682,
18,
1289,
12,
17737,
1769,
225,
3712,
7148,
273,
261,
18806,
63,
5717,
3712,
682,
18,
31447,
... |
/* Too much data to dump - truncate at 4M. */ dump = new char[4 * 1024 * 1024]; | /* Too much data to dump - truncate. */ dump = new char[MAX_DUMP]; | String dataHexDump(String lineDelimiter) { if (image == null) return ""; boolean truncated = false; char[] dump = null; try { dump = new char[imageData.height * (6 + 3 * imageData.bytesPerLine + lineDelimiter.length())]; } catch (OutOfMemoryError e) { /* Too much data to dump - truncate at 4M. */ dump = new char[4 * 1024 * 1024]; truncated = true; } int index = 0; try { for (int i = 0; i < imageData.data.length; i++) { if (i % imageData.bytesPerLine == 0) { int line = i / imageData.bytesPerLine; dump[index++] = Character.forDigit(line / 1000 % 10, 10); dump[index++] = Character.forDigit(line / 100 % 10, 10); dump[index++] = Character.forDigit(line / 10 % 10, 10); dump[index++] = Character.forDigit(line % 10, 10); dump[index++] = ':'; dump[index++] = ' '; } byte b = imageData.data[i]; dump[index++] = Character.forDigit((b & 0xF0) >> 4, 16); dump[index++] = Character.forDigit(b & 0x0F, 16); dump[index++] = ' '; if ((i + 1) % imageData.bytesPerLine == 0) { dump[index++] = lineDelimiter.charAt(0); if (lineDelimiter.length() > 1) dump[index++] = lineDelimiter.charAt(1); } } } catch (IndexOutOfBoundsException e) {} String result = ""; try { result = new String(dump); } catch (OutOfMemoryError e) { /* Too much data to display in the text widget - truncate at 4M. */ result = new String(dump, 0, 4 * 1024 * 1024); truncated = true; } if (truncated) result += "\n ...data dump truncated at 4M..."; return result; } | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/8ee6a2737471949aa2c79eae075d6eeff898cb7a/ImageAnalyzer.java/buggy/examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
501,
7037,
10628,
12,
780,
980,
12007,
13,
288,
202,
202,
430,
261,
2730,
422,
446,
13,
327,
1408,
31,
202,
202,
6494,
15282,
273,
629,
31,
202,
202,
3001,
8526,
4657,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
780,
501,
7037,
10628,
12,
780,
980,
12007,
13,
288,
202,
202,
430,
261,
2730,
422,
446,
13,
327,
1408,
31,
202,
202,
6494,
15282,
273,
629,
31,
202,
202,
3001,
8526,
4657,
273,
... |
protected Type parseMetaMethod() { locals = new Scope(); try { nextToken(); Symbol[] smbls = null; //System.out.println("parse meta method " + token); if ("[".equals(token)) { Vector syms = new Vector(); do { nextToken(); if ("]".equals(token)) break; assert token.startsWith("?"); Symbol s = getTVar(token, owner); if (s == Symbol.NONE) return defaultType; nextToken(); //System.out.println("new var " + s + ", " + token); if (token.equals("<")) { nextToken(); s.setInfo(parseType(), parser.phaseId); } syms.add(s); } while (token.equals(",")); assert "]".equals(token); nextToken(); smbls = (Symbol[])syms.toArray(new Symbol[syms.size()]); } if ("(".equals(token)) { int i = 0; Vector params = new Vector(); do { nextToken(); if (")".equals(token)) break; int flags = Modifiers.PARAM; if ("def".equals(token)) { nextToken(); flags |= Modifiers.DEF; } params.add(new TermSymbol( Position.NOPOS, Name.fromString("x" + (i++)), owner, flags).setInfo(parseType(), parser.phaseId)); //System.out.println(" + " + token); } while (token.equals(",")); assert ")".equals(token); nextToken(); //System.out.println("+++ method " + token); Type restpe = parseType(); assert ";".equals(token); if (smbls == null) return Type.MethodType( (Symbol[])params.toArray(new Symbol[params.size()]), restpe); else return Type.PolyType( smbls, Type.MethodType( (Symbol[])params.toArray(new Symbol[params.size()]), restpe)); } else { Type res = parseType(); assert ";".equals(token); if (smbls == null) return Type.PolyType(Symbol.EMPTY_ARRAY, res); else return Type.PolyType(smbls, res); } } catch (NoSuchElementException e) { return defaultType; } finally { locals = null; } } | 5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/7838f436eeeece1608d0d1252d9be3652118273a/AttributeParser.java/clean/sources/scalac/symtab/classfile/AttributeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
559,
2670,
2781,
1305,
1435,
95,
17977,
33,
2704,
3876,
5621,
698,
95,
4285,
1345,
5621,
5335,
8526,
87,
1627,
3251,
33,
2011,
31,
759,
3163,
18,
659,
18,
8222,
2932,
2670,
10578,
301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
559,
2670,
2781,
1305,
1435,
95,
17977,
33,
2704,
3876,
5621,
698,
95,
4285,
1345,
5621,
5335,
8526,
87,
1627,
3251,
33,
2011,
31,
759,
3163,
18,
659,
18,
8222,
2932,
2670,
10578,
301,
... | ||
public ActionForward showCandidacyValidateData(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) throws FenixServiceException, FenixFilterException{ DynaActionForm form = (DynaActionForm) actionForm; Integer candidacyNumber = (Integer) form.get("candidacyNumber"); Candidacy candidacy = Candidacy.readByCandidacyNumber(candidacyNumber); if(candidacy == null){ addActionMessage(request, "error.no.candidacy", candidacyNumber.toString()); return prepareValidateCandidacyData(mapping, actionForm, request, response); } if(!candidacy.getActiveCandidacySituation().canCandidacyDataBeValidated()){ addActionMessage(request, "error.candidacy.data.not.filled", null); return prepareValidateCandidacyData(mapping, actionForm, request, response); } request.setAttribute("candidacy", candidacy); return mapping.findForward("showCandidacyValidateData"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/5c3dc2c3719b5088c690a493b9a51c7dbe70de86/DFACandidacyDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/administrativeOffice/candidacy/DFACandidacyDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1803,
8514,
4500,
39,
3339,
3505,
4270,
751,
12,
1803,
3233,
6770,
16,
1803,
1204,
1128,
1204,
16,
2940,
18572,
2293,
16,
2940,
4745,
607,
500,
550,
281,
575,
13,
15069,
42,
275,
697,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1803,
8514,
4500,
39,
3339,
3505,
4270,
751,
12,
1803,
3233,
6770,
16,
1803,
1204,
1128,
1204,
16,
2940,
18572,
2293,
16,
2940,
4745,
607,
500,
550,
281,
575,
13,
15069,
42,
275,
697,
... | ||
m_instances = new IndividualInstances(instances, m_parts); | m_instances = new IndividualInstances(new Instances(instances), m_parts); | public void buildAssociations(Instances instances) throws Exception { Frame valuesFrame = null; /* Frame to display the current values. */ /* Initialization of the search. */ if (m_parts == null) { m_instances = instances; } else { m_instances = new IndividualInstances(instances, m_parts); } m_results = new SimpleLinkedList(); m_hypotheses = 0; m_explored = 0; m_status = NORMAL; if (m_classIndex == -1) m_instances.setClassIndex(m_instances.numAttributes()-1); else if (m_classIndex < m_instances.numAttributes() && m_classIndex >= 0) m_instances.setClassIndex(m_classIndex); else throw new Exception("Invalid class index."); // can associator handle the data? getCapabilities().testWithFail(m_instances); /* Initialization of the window for current values. */ if (m_printValues == WINDOW) { m_valuesText = new TextField(37); m_valuesText.setEditable(false); m_valuesText.setFont(new Font("Monospaced", Font.PLAIN, 12)); Label valuesLabel = new Label("Best and worst current values:"); Button stop = new Button("Stop search"); stop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { /* Signal the interruption to the search. */ m_status = STOP; } }); valuesFrame = new Frame("Tertius status"); valuesFrame.setResizable(false); valuesFrame.add(m_valuesText, BorderLayout.CENTER); valuesFrame.add(stop, BorderLayout.SOUTH); valuesFrame.add(valuesLabel, BorderLayout.NORTH); valuesFrame.pack(); valuesFrame.setVisible(true); } else if (m_printValues == OUT) { System.out.println("Best and worst current values:"); } Date start = new Date(); /* Build the predicates and launch the search. */ m_predicates = buildPredicates(); beginSearch(); Date end = new Date(); if (m_printValues == WINDOW) { valuesFrame.dispose(); } m_time = new Date(end.getTime() - start.getTime()); } | 48918 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48918/54e8d7f074f0ea9739d56dd24a83cb56a71472c6/Tertius.java/buggy/weka/associations/Tertius.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
15143,
12,
5361,
3884,
13,
1216,
1185,
288,
565,
8058,
924,
3219,
273,
446,
31,
1748,
8058,
358,
2562,
326,
783,
924,
18,
1195,
565,
1748,
26586,
434,
326,
1623,
18,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1361,
15143,
12,
5361,
3884,
13,
1216,
1185,
288,
565,
8058,
924,
3219,
273,
446,
31,
1748,
8058,
358,
2562,
326,
783,
924,
18,
1195,
565,
1748,
26586,
434,
326,
1623,
18,
11... |
if(index > currentVisibleIndex) currentVisibleIndex = index; | virtualElements[index] = DISPLAYED_TOKEN; | public void handleEvent(Event event) { TableItem item = (TableItem) event.item; int index = table.indexOf(item); Object element = findVirtualElement(index); if(element == null) throw new NullPointerException(); associate(element,item); updateItem(item,element); if(index > currentVisibleIndex) currentVisibleIndex = index; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e209ba9846065fd325acc3d99d0fba59ebc1ca65/TableViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1640,
1133,
12,
1133,
871,
13,
288,
6862,
202,
1388,
1180,
761,
273,
261,
1388,
1180,
13,
871,
18,
1726,
31,
6862,
202,
474,
770,
273,
1014,
18,
31806,
12,
1726,
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,
4697,
202,
482,
918,
1640,
1133,
12,
1133,
871,
13,
288,
6862,
202,
1388,
1180,
761,
273,
261,
1388,
1180,
13,
871,
18,
1726,
31,
6862,
202,
474,
770,
273,
1014,
18,
31806,
12,
1726,
1769,
... |
log.error(ex); | System.err.println(ex); | void sendGossip() { int tmp[]=new int[1]; tmp[0]=0; Command comm; ObjectOutputStream os; Vector dests=(Vector)members.clone(); try { selectColor(); // set a new randomly chosen color dests.removeElement(local_addr); dests=Util.pickSubset(dests, subset); if(dests == null || dests.size() == 0) { // only apply new color locally // System.out.println("-- local"); colorPanel(red, green, blue); return; } colorPanel(red, green, blue); comm=new Command(Command.GOSSIP, red, green, blue); comm.not_seen=(Vector)members.clone(); comm.not_seen.removeElement(local_addr); out.reset(); os=new ObjectOutputStream(out); os.writeObject(comm); os.flush(); for(int i=0; i < dests.size(); i++) { channel.send(new Message((Address)dests.elementAt(i), null, out.toByteArray())); } } catch(Exception ex) { log.error(ex); } } | 49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/13de68466e3cf7fde6ee0bde0cee09a33e837e89/Gossip.java/clean/src/org/jgroups/demos/Gossip.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1366,
43,
15616,
1435,
288,
3639,
509,
1853,
8526,
33,
2704,
509,
63,
21,
15533,
3639,
1853,
63,
20,
65,
33,
20,
31,
3639,
3498,
1543,
31,
3639,
23438,
1140,
31,
3639,
5589,
1570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1366,
43,
15616,
1435,
288,
3639,
509,
1853,
8526,
33,
2704,
509,
63,
21,
15533,
3639,
1853,
63,
20,
65,
33,
20,
31,
3639,
3498,
1543,
31,
3639,
23438,
1140,
31,
3639,
5589,
1570,
... |
suite.addTestSuite(org.xins.tests.common.util.collections.SingleEntryMapTests.class); | public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(org.xins.tests.common.collections.BasicPropertyReaderTests.class); suite.addTestSuite(org.xins.tests.common.ExceptionUtilsTests.class); suite.addTestSuite(org.xins.tests.common.util.collections.SingleEntryMapTests.class); suite.addTestSuite(org.xins.tests.common.util.net.IPAddressUtilsTests.class); suite.addTestSuite(org.xins.tests.common.util.net.URLEncodingTests.class); suite.addTestSuite(org.xins.tests.common.util.service.DescriptorBuilderTests.class); suite.addTestSuite(org.xins.tests.common.util.text.HexConverterTests.class); suite.addTestSuite(org.xins.tests.common.util.text.PatternParserTests.class); suite.addTestSuite(org.xins.tests.common.util.text.ReplacerTests.class); suite.addTestSuite(org.xins.tests.common.util.text.SimplePatternParserTests.class); suite.addTestSuite(org.xins.tests.common.types.standard.PropertiesTests.class); suite.addTestSuite(org.xins.tests.common.text.FastStringBufferTest.class); suite.addTestSuite(org.xins.tests.server.IPFilterTests.class); suite.addTestSuite(org.xins.tests.server.AccessRuleTests.class); suite.addTestSuite(org.xins.tests.server.AccessRuleListTests.class); suite.addTestSuite(org.xins.tests.client.CallIOExceptionTests.class); return suite; } | 45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/bb95e5e001f7ebf3407634b325a82242af9bfb3e/AllTests.java/clean/src/tests/org/xins/tests/AllTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
7766,
11371,
1435,
288,
1377,
7766,
13587,
11371,
273,
394,
7766,
13587,
5621,
1377,
11371,
18,
1289,
4709,
13587,
12,
3341,
18,
92,
2679,
18,
16341,
18,
6054,
18,
19246,
18,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
7766,
11371,
1435,
288,
1377,
7766,
13587,
11371,
273,
394,
7766,
13587,
5621,
1377,
11371,
18,
1289,
4709,
13587,
12,
3341,
18,
92,
2679,
18,
16341,
18,
6054,
18,
19246,
18,
8... | |
IExtension extension = extensions[i]; if (!disabledPlugins.contains(extension.getNamespace())) { monitor.subTask(extension.getNamespace()); Platform.run(new EarlyStartupRunnable(extension)); } monitor.worked(1); } monitor.done(); return Status.OK_STATUS; } | }}); | protected IStatus run(IProgressMonitor monitor) { HashSet disabledPlugins = new HashSet(Arrays.asList(getDisabledEarlyActivatedPlugins())); monitor.beginTask(WorkbenchMessages.Workbench_startingPlugins, extensions.length); for (int i = 0; i < extensions.length; ++i) { if (monitor.isCanceled() || !isRunning()) { return Status.CANCEL_STATUS; } IExtension extension = extensions[i]; // if the plugin is not in the set of disabled plugins, then // execute the code to start it if (!disabledPlugins.contains(extension.getNamespace())) { monitor.subTask(extension.getNamespace()); Platform.run(new EarlyStartupRunnable(extension)); } monitor.worked(1); } monitor.done(); return Status.OK_STATUS; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/75ec763366f8b2daceae7a8cb2180d4d251f0611/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
1875,
3639,
6847,
5673,
9461,
273,
394,
6847,
12,
12726,
18,
345,
682,
12,
588,
8853,
41,
20279,
28724,
9461,
1435,
10019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
1875,
3639,
6847,
5673,
9461,
273,
394,
6847,
12,
12726,
18,
345,
682,
12,
588,
8853,
41,
20279,
28724,
9461,
1435,
10019,
... |
if (index == text.length() - 1) index--; | boolean addLeadingWordWidth(String text, int[] width) { // Changes to this algorithm should be verified with LookAheadTest BreakIterator lineBreaker = BreakIterator.getLineInstance(); lineBreaker.setText(text); if (Character.isWhitespace(text.charAt(0))) return true; int index = FlowUtilities.findPreviousNonWS(text, lineBreaker.next()); boolean result = index < text.length() - 1; // An optimization to prevent unnecessary invocation of String.substring and // getStringExtents() if (index == 0) return result; text = text.substring(0, index); if (bidiInfo == null) width[0] += FlowUtilities.getStringExtents(text, getFont()).width - 1; else { org.eclipse.swt.graphics.TextLayout textLayout = FlowUtilities.getTextLayout(); textLayout.setFont(getFont()); textLayout.setText(text); width[0] += textLayout.getBounds().width; } return result;} | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/e83061e2be9963b0b1e27f093171d1bf3059893c/TextFlow.java/clean/org.eclipse.draw2d/src/org/eclipse/draw2d/text/TextFlow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1250,
430,
261,
1615,
422,
977,
18,
2469,
1435,
300,
404,
13,
770,
413,
31,
527,
19112,
3944,
2384,
12,
780,
430,
261,
1615,
422,
977,
18,
2469,
1435,
300,
404,
13,
770,
413,
31,
977,
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,
1250,
430,
261,
1615,
422,
977,
18,
2469,
1435,
300,
404,
13,
770,
413,
31,
527,
19112,
3944,
2384,
12,
780,
430,
261,
1615,
422,
977,
18,
2469,
1435,
300,
404,
13,
770,
413,
31,
977,
16,
... | |
created[i] = new EndPointCreated( RemoteMethodCall.classesToString(endPoint.getClasses()), name, endPoint.isSingleThreaded()); i++; | Map nodesWithImplementors = new HashMap(m_remoteNodesWithImplementors); nodesWithImplementors.put(m_messenger.getLocalNode(), localNodesWithImplementors); init = new UnifiedInitMessage(created, nodesWithImplementors); | public void messageReceived(Serializable msg, INode from) { if(msg instanceof UnifiedInitRequest) { List localNodesWithImplementors = new ArrayList(); EndPointCreated[] created = new EndPointCreated[m_localEndPoints.keySet().size()]; Iterator names = m_localEndPoints.keySet().iterator(); int i = 0; while(names.hasNext()) { String name = (String) names.next(); EndPoint endPoint = (EndPoint) m_localEndPoints.get(name); if(endPoint.hasImplementors()) { localNodesWithImplementors.add(endPoint.getName()); } created[i] = new EndPointCreated( RemoteMethodCall.classesToString(endPoint.getClasses()), name, endPoint.isSingleThreaded()); i++; } Map nodesWithImplementors = new HashMap(m_remoteNodesWithImplementors); nodesWithImplementors.put(m_messenger.getLocalNode(),localNodesWithImplementors ); UnifiedInitMessage init = new UnifiedInitMessage(created, nodesWithImplementors); m_messenger.send(init, from); } } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/ca34366b9a3865cf25362f630569c84db100c969/UnifiedMessenger.java/clean/src/games/strategy/engine/message/UnifiedMessenger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
883,
8872,
12,
21682,
1234,
16,
21176,
628,
13,
3639,
288,
4766,
565,
309,
12,
3576,
1276,
1351,
939,
2570,
691,
13,
5411,
288,
7734,
987,
1191,
3205,
1190,
5726,
1383,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
883,
8872,
12,
21682,
1234,
16,
21176,
628,
13,
3639,
288,
4766,
565,
309,
12,
3576,
1276,
1351,
939,
2570,
691,
13,
5411,
288,
7734,
987,
1191,
3205,
1190,
5726,
1383,
273,
... |
public ChiSquaredDistributionImpl(double degreesOfFreedom){ | public ChiSquaredDistributionImpl(double degreesOfFreedom) { | public ChiSquaredDistributionImpl(double degreesOfFreedom){ super(); setGamma(DistributionFactory.newInstance().createGammaDistribution( degreesOfFreedom / 2.0, 2.0)); } | 9305 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9305/16c19dcec036ef933bcc6a46ef9b4bea3267546f/ChiSquaredDistributionImpl.java/buggy/src/java/org/apache/commons/math/distribution/ChiSquaredDistributionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1680,
77,
20888,
9003,
2828,
12,
9056,
10904,
951,
42,
15656,
362,
13,
288,
3639,
2240,
5621,
3639,
26770,
7102,
12,
9003,
1733,
18,
2704,
1442,
7675,
2640,
31300,
9003,
12,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1680,
77,
20888,
9003,
2828,
12,
9056,
10904,
951,
42,
15656,
362,
13,
288,
3639,
2240,
5621,
3639,
26770,
7102,
12,
9003,
1733,
18,
2704,
1442,
7675,
2640,
31300,
9003,
12,
5411,
1... |
final Enumeration props = properties.keys(); | final Enumeration props = (properties != null) ? properties.keys() : (new Hashtable()).keys(); | void loadPredefinedProperties(final Hashtable properties, final Map<String, String> externalProps) { final Enumeration props = properties.keys(); @NonNls final StringBuilder builder = StringBuilderSpinAllocator.alloc(); builder.append("<project name=\"fake\">"); try { while (props.hasMoreElements()) { final String name = (String)props.nextElement(); final String value = (String)properties.get(name); builder.append("<property name=\""); builder.append(name); builder.append("\" value=\""); builder.append(value); builder.append("\"/>"); } final Map<String, String> envMap = System.getenv(); for (final String name : envMap.keySet()) { final String value = envMap.get(name); builder.append("<property name=\""); builder.append(name); builder.append("\" value=\""); builder.append(value); builder.append("\"/>"); } if (externalProps != null) { for (final String name : externalProps.keySet()) { final String value = externalProps.get(name); builder.append("<property name=\""); builder.append(name); builder.append("\" value=\""); builder.append(value); builder.append("\"/>"); } } String basedir = getBaseDir(); if (basedir == null) { basedir = "."; } builder.append("<property name=\"basedir\" value=\""); builder.append(basedir); builder.append("\"/>"); final VirtualFile file = getContainingFile().getVirtualFile(); if (file != null) { builder.append("<property name=\"ant.file\" value=\""); builder.append(file.getPath()); builder.append("\"/>"); } // TODO: remove this fake: builder.append("<property name=\"ant.home\" value=\"\">"); builder.append("<property name=\"ant.version\" value=\"1.6"); builder.append("\"/>"); builder.append("<property name=\"ant.project.name\" value=\""); final String name = getName(); builder.append((name == null) ? "" : name); builder.append("\"/>"); builder.append("<property name=\"ant.java.version\" value=\""); builder.append(SystemInfo.JAVA_VERSION); builder.append("\"/>"); builder.append("</project>"); final PsiElementFactory elementFactory = getManager().getElementFactory(); final XmlFile fakeFile = (XmlFile)elementFactory.createFileFromText("dummy.xml", builder.toString()); final XmlDocument document = fakeFile.getDocument(); if (document == null) return; final XmlTag rootTag = document.getRootTag(); if (rootTag == null) return; AntTypeDefinition propertyDef = getAntFile().getBaseTypeDefinition(Property.class.getName()); AntProject fakeProject = new AntProjectImpl(null, rootTag, myDefinition); for (XmlTag tag : rootTag.getSubTags()) { final AntPropertyImpl property = new AntPropertyImpl(fakeProject, tag, propertyDef) { public PsiFile getContainingFile() { return getSourceElement().getContainingFile(); } }; myPredefinedProps.add(property); } } finally { StringBuilderSpinAllocator.dispose(builder); } setPredefinedProperties(); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/099a338ee935d942c8353e19753c15c09fc8ce84/AntProjectImpl.java/clean/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntProjectImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1262,
1386,
2178,
2297,
12,
6385,
18559,
1790,
16,
727,
1635,
32,
780,
16,
514,
34,
3903,
5047,
13,
288,
565,
727,
13864,
3458,
273,
261,
4738,
480,
446,
13,
692,
1790,
18,
2452,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1262,
1386,
2178,
2297,
12,
6385,
18559,
1790,
16,
727,
1635,
32,
780,
16,
514,
34,
3903,
5047,
13,
288,
565,
727,
13864,
3458,
273,
261,
4738,
480,
446,
13,
692,
1790,
18,
2452,
... |
synchronized (distributorLock) { | synchronized (transactionLock) { | public void invokeABAChangeLPs(Set communities) { assert Thread.holdsLock(distributorLock); assert !Thread.holdsLock(transactionLock); synchronized (distributorLock) { try { blackboard.startTransaction(); blackboard.invokeABAChangeLPs(communities); } finally { blackboard.stopTransaction(); } } } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/1362042bf63030d9f37510f4ed3bba38bac9da0f/Distributor.java/clean/core/src/org/cougaar/core/blackboard/Distributor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4356,
2090,
37,
3043,
14461,
87,
12,
694,
8391,
1961,
13,
288,
565,
1815,
225,
4884,
18,
21056,
87,
2531,
12,
2251,
19293,
2531,
1769,
565,
1815,
401,
3830,
18,
21056,
87,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4356,
2090,
37,
3043,
14461,
87,
12,
694,
8391,
1961,
13,
288,
565,
1815,
225,
4884,
18,
21056,
87,
2531,
12,
2251,
19293,
2531,
1769,
565,
1815,
401,
3830,
18,
21056,
87,
25... |
throws SAXException, IOException, ParserConfigurationException { | throws SAXException, IOException, ParserConfigurationException { | public void testDataModel() throws SAXException, IOException, ParserConfigurationException { DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); String fileName = System.getProperty("test.model.uml13"); if (fileName == null) return; File file = new File(fileName); if (!file.exists()) return; Document doc = builder.parse(new File(System.getProperty("test.model.uml13"))); NodeList list = doc.getElementsByTagName("Model:Class"); assertEquals(refs.size(), list.getLength()); for (int i = 0; i < list.getLength(); i++) { processClassNode ("", list.item(i)); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5f6191c876d7ba33373fe98de4e3c7d94a09c303/OptionalTestAgainstUmlModel.java/clean/tests/org/argouml/model/uml/OptionalTestAgainstUmlModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
26349,
1435,
565,
1216,
14366,
16,
6647,
1860,
16,
202,
282,
6783,
10737,
288,
202,
2519,
1263,
2089,
273,
30236,
18,
2704,
1442,
7675,
2704,
2519,
1263,
5621,
565,
514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26349,
1435,
565,
1216,
14366,
16,
6647,
1860,
16,
202,
282,
6783,
10737,
288,
202,
2519,
1263,
2089,
273,
30236,
18,
2704,
1442,
7675,
2704,
2519,
1263,
5621,
565,
514,
... |
new_ranges.add(new Integer(ranges[j])); | new_ranges.add (new Integer (ranges[j])); | protected void mergeAttributes(HashMap[] attributes, int[] ranges) { Vector new_ranges = new Vector(); Vector new_attributes = new Vector(); int i = 0, j = 0; while (i < this.ranges.length && j < ranges.length) { if (this.attributes[i] != null) { new_attributes.add(this.attributes[i]); if (attributes[j] != null) this.attributes[i].putAll(attributes[j]); } else { new_attributes.add(attributes[j]); } if (this.ranges[i] == ranges[j]) { new_ranges.add(new Integer(ranges[j])); i++; j++; } else if (this.ranges[i] < ranges[j]) { new_ranges.add(new Integer(this.ranges[i])); i++; } else { new_ranges.add(new Integer(ranges[j])); j++; } } if (i != this.ranges.length) { for (;i<this.ranges.length;i++) { new_attributes.add(this.attributes[i]); new_ranges.add(new Integer(this.ranges[i])); } } if (j != ranges.length) { for (;j<ranges.length;j++) { new_attributes.add(attributes[j]); new_ranges.add(new Integer(ranges[j])); } } this.attributes = new HashMap[new_attributes.size()]; this.ranges = new int[new_ranges.size()]; System.arraycopy(new_attributes.toArray(), 0, this.attributes, 0, this.attributes.length); for (i=0;i<new_ranges.size();i++) { this.ranges[i] = ((Integer)new_ranges.elementAt(i)).intValue(); } } | 56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/905252cb2827a39c9de9ec6f60a2dd0fb655254d/FormatCharacterIterator.java/buggy/libjava/java/text/FormatCharacterIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
2691,
2498,
12,
8658,
8526,
1677,
16,
509,
8526,
7322,
13,
225,
288,
565,
5589,
394,
67,
14530,
273,
394,
5589,
5621,
565,
5589,
394,
67,
4350,
273,
394,
5589,
5621,
565,
509... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
2691,
2498,
12,
8658,
8526,
1677,
16,
509,
8526,
7322,
13,
225,
288,
565,
5589,
394,
67,
14530,
273,
394,
5589,
5621,
565,
5589,
394,
67,
4350,
273,
394,
5589,
5621,
565,
509... |
opLabel.setText(""); | opLabel.setText(" "); | public void stopUnpack() { parent.releaseGUI(); parent.lockPrevButton(); installButton.setIcon(parent.icons.getImageIcon("empty")); installButton.setEnabled(false); progressBar.setString(parent.langpack.getString("InstallPanel.finished")); progressBar.setEnabled(false); opLabel.setText(""); opLabel.setEnabled(false); idata.installSuccess = true; idata.canClose = true; validated = true; if (idata.panels.indexOf(this) != (idata.panels.size() - 1)) parent.unlockNextButton(); } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/6d9b15f649e5234a8b818afb3194b32c4bdd47a3/InstallPanel.java/clean/izpack-src/trunk/src/lib/com/izforge/izpack/panels/InstallPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
23649,
1435,
565,
288,
3639,
982,
18,
9340,
43,
5370,
5621,
3639,
982,
18,
739,
9958,
3616,
5621,
3639,
3799,
3616,
18,
542,
5554,
12,
2938,
18,
14516,
18,
588,
2040,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2132,
23649,
1435,
565,
288,
3639,
982,
18,
9340,
43,
5370,
5621,
3639,
982,
18,
739,
9958,
3616,
5621,
3639,
3799,
3616,
18,
542,
5554,
12,
2938,
18,
14516,
18,
588,
2040,
5... |
this.validPeers.add( BoundVariableDescr.class ); | this.validPeers.add( VariableDescr.class ); | LiteralHandler(final XmlPackageReader xmlPackageReader) { this.xmlPackageReader = xmlPackageReader; if ( (this.validParents == null) && (this.validPeers == null) ) { this.validParents = new HashSet(); this.validParents.add( ColumnDescr.class ); this.validPeers = new HashSet(); this.validPeers.add( null ); this.validPeers.add( LiteralDescr.class ); this.validPeers.add( PredicateDescr.class ); this.validPeers.add( ReturnValueDescr.class ); this.validPeers.add( FieldBindingDescr.class ); this.validPeers.add( BoundVariableDescr.class ); this.allowNesting = false; } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/66a59ebfb9077b4628cfb4aa31cf2f6a38c41bcf/LiteralHandler.java/buggy/drools-compiler/src/main/java/org/drools/xml/LiteralHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
14392,
1503,
12,
6385,
5714,
2261,
2514,
2025,
2261,
2514,
13,
288,
3639,
333,
18,
2902,
2261,
2514,
273,
2025,
2261,
2514,
31,
3639,
309,
261,
261,
2211,
18,
877,
13733,
422,
446,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
14392,
1503,
12,
6385,
5714,
2261,
2514,
2025,
2261,
2514,
13,
288,
3639,
333,
18,
2902,
2261,
2514,
273,
2025,
2261,
2514,
31,
3639,
309,
261,
261,
2211,
18,
877,
13733,
422,
446,
13,
... |
Properties p = new Properties(); | Properties props = new Properties(); | private Properties loadProperties() throws Exception { Properties p = new Properties(); FileInputStream fis = new FileInputStream(m_scenFile); p.load(fis); fis.close(); return p; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/bc3963980d1d06f917e1945181c23d0cae39d09e/ScenarioLoader.java/buggy/megamek/src/megamek/server/ScenarioLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
6183,
1262,
2297,
1435,
3639,
1216,
1185,
565,
288,
3639,
6183,
3458,
273,
394,
6183,
5621,
3639,
11907,
15324,
273,
394,
11907,
12,
81,
67,
1017,
275,
812,
1769,
3639,
293,
18,
945... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
6183,
1262,
2297,
1435,
3639,
1216,
1185,
565,
288,
3639,
6183,
3458,
273,
394,
6183,
5621,
3639,
11907,
15324,
273,
394,
11907,
12,
81,
67,
1017,
275,
812,
1769,
3639,
293,
18,
945... |
super ("UserTransaction", userTransaction); Context iContext = new InitialContext(); Context compContext = (Context)iContext.lookup("java:comp"); bind(compContext); | super (USER_TRANSACTION, userTransaction); | public Transaction (UserTransaction userTransaction) throws NamingException { super ("UserTransaction", userTransaction); Context iContext = new InitialContext(); Context compContext = (Context)iContext.lookup("java:comp"); //bind into the jndi a UserTransaction at java:comp/UserTransaction bind(compContext); } | 13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/11b80b66c7bb4248815268fb1ff430a16ba75a7c/Transaction.java/buggy/trunk/modules/plus/src/main/java/org/mortbay/jetty/plus/naming/Transaction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5947,
261,
1299,
3342,
729,
3342,
13,
565,
1216,
26890,
565,
288,
3639,
2240,
7566,
1299,
3342,
3113,
729,
3342,
1769,
3639,
1772,
277,
1042,
273,
394,
10188,
1042,
5621,
3639,
1772,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5947,
261,
1299,
3342,
729,
3342,
13,
565,
1216,
26890,
565,
288,
3639,
2240,
7566,
1299,
3342,
3113,
729,
3342,
1769,
3639,
1772,
277,
1042,
273,
394,
10188,
1042,
5621,
3639,
1772,
... |
result.addResourceToUpdate(resource); | if (isResourceInTimeWindow(resource)) { result.addResourceToUpdate(resource); } | public CmsSearchIndexUpdateData getUpdateData(CmsSearchIndexSource source, List publishedResources) { // create a new update collection from this indexer and the given index source CmsSearchIndexUpdateData result = new CmsSearchIndexUpdateData(source, this); Iterator i = publishedResources.iterator(); while (i.hasNext()) { // check all published resources if they match this indexer / source CmsPublishedResource resource = (CmsPublishedResource)i.next(); // VFS resources will always have a structure id if (!resource.getStructureId().isNullUUID()) { // use utility method from CmsProject to check if published resource is "inside" this index source if (CmsProject.isInsideProject(source.getResourcesNames(), resource.getRootPath())) { // the resource is "inside" this index source if (resource.isNew()) { // new resource just needs to be updated result.addResourceToUpdate(resource); } else if (resource.isDeleted()) { // deleted resource just needs to be removed result.addResourceToDelete(resource); } else if (resource.isChanged()) { // changed resource must be removed first, and then updated result.addResourceToDelete(resource); result.addResourceToUpdate(resource); } } } } return result; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/8b9facd883743a62ecbe31eff744f24bd411ab42/CmsVfsIndexer.java/buggy/src/org/opencms/search/CmsVfsIndexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26905,
1016,
1891,
751,
23866,
751,
12,
4747,
2979,
1016,
1830,
1084,
16,
987,
9487,
3805,
13,
288,
3639,
368,
752,
279,
394,
1089,
1849,
628,
333,
12635,
471,
326,
864,
770,
1084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26905,
1016,
1891,
751,
23866,
751,
12,
4747,
2979,
1016,
1830,
1084,
16,
987,
9487,
3805,
13,
288,
3639,
368,
752,
279,
394,
1089,
1849,
628,
333,
12635,
471,
326,
864,
770,
1084,
... |
StringUtils.printException(t); | StringUtil.printException(t); | public static void main(String[] args) { int exitStatus = 0; Process process = null; SerialPort port = null; InputStream in = null; OutputStream out = null; try { String options[] = { "baud:", "color:", "config:", "device:", "flow:", "help", "list", "simple", "size:", "verbose", "wait", "version" }; Options opt = Options.parse(args, options); if (opt.isSet("help")) { String helpText = "Usage: java -jar gmptogtp.jar [options]\n" + "\n" + "-baud speed of serial device (default 2400)\n" + "-color color (black|white)\n" + "-config config file\n" + "-device serial device file\n" + "-flow flow control (none|rtscts(default)|xonxoff)\n" + "-help display this help and exit\n" + "-list list serial devices and exit\n" + "-simple use simple version of the protocol\n" + "-size board size\n" + "-verbose print logging messages\n" + "-version print version and exit\n" + "-wait wait for first newgame command\n"; System.out.print(helpText); return; } if (opt.isSet("version")) { System.out.println("GmpToGtp " + Version.get()); return; } if (opt.isSet("list")) { listDevices(); return; } String color = opt.getString("color", ""); if (! color.equals("") && ! color.equalsIgnoreCase("black") && ! color.equalsIgnoreCase("white")) throw new Exception("invalid color"); String device = opt.getString("device", ""); int size = opt.getInteger("size", GoPoint.DEFAULT_SIZE); if (size < 1 || size > 22) throw new Exception("invalid size"); int baud = opt.getInteger("baud", 2400); if (baud <= 0) throw new Exception("invalid baud value"); boolean verbose = opt.isSet("verbose"); boolean simple = opt.isSet("simple"); boolean wait = opt.isSet("wait"); String program = null; ArrayList arguments = opt.getArguments(); if (arguments.size() == 1) program = (String)arguments.get(0); else if (arguments.size() > 1) { System.err.println("Only one program argument allowed"); System.exit(-1); } else if (device.equals("")) { System.err.println("Missing program argument"); System.exit(-1); } String title = "Go Modem "; String flow = opt.getString("flow", "rtscts"); if (device.equals("")) { Runtime runtime = Runtime.getRuntime(); process = runtime.exec(StringUtils.splitArguments(program)); Thread stdErrThread = new ProcessUtils.StdErrThread(process); stdErrThread.start(); title = title + program; in = process.getInputStream(); out = process.getOutputStream(); } else { port = openPort(device, baud, flow); title = title + device; in = port.getInputStream(); out = port.getOutputStream(); } int colorIndex = 0; if (! color.equals("")) { if (color.equalsIgnoreCase("black")) colorIndex = 1; else if (color.equalsIgnoreCase("white")) colorIndex = 2; } GmpToGtp gmpToGtp = new GmpToGtp(title, in, out, verbose, size, colorIndex, wait, simple); gmpToGtp.mainLoop(System.in, System.out); } catch (Throwable t) { StringUtils.printException(t); exitStatus = -1; } finally { try { if (in != null) in.close(); if (out != null) out.close(); } catch (IOException e) { StringUtils.printException(e); } if (process != null) { process.destroy(); try { process.waitFor(); } catch (InterruptedException e) { System.err.println("Interrupted"); } } if (port != null) port.close(); } System.exit(exitStatus); } | 48906 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48906/1f50ffb219183ddaf94720a4aba453e11f412425/Main.java/clean/src/net/sf/gogui/gmptogtp/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
565,
288,
3639,
509,
2427,
1482,
273,
374,
31,
3639,
4389,
1207,
273,
446,
31,
3639,
7366,
2617,
1756,
273,
446,
31,
3639,
5037,
316,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
565,
288,
3639,
509,
2427,
1482,
273,
374,
31,
3639,
4389,
1207,
273,
446,
31,
3639,
7366,
2617,
1756,
273,
446,
31,
3639,
5037,
316,
273,
... |
public LocalFSFileOutputStream(File f) throws IOException { this.fos = new FileOutputStream(f); | public LocalFSFileOutputStream(Path f) throws IOException { this.fos = new FileOutputStream(pathToFile(f)); | public LocalFSFileOutputStream(File f) throws IOException { this.fos = new FileOutputStream(f); } | 53958 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53958/ee01fef4b4fb82c7492a4a747793839a4d14cd39/LocalFileSystem.java/buggy/src/java/org/apache/hadoop/fs/LocalFileSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
3566,
4931,
812,
4632,
12,
812,
284,
13,
1216,
1860,
288,
3639,
333,
18,
5075,
273,
394,
12942,
12,
74,
1769,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
3566,
4931,
812,
4632,
12,
812,
284,
13,
1216,
1860,
288,
3639,
333,
18,
5075,
273,
394,
12942,
12,
74,
1769,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
locusTokens.nextToken(); saveSeqAnno2(GenbankFormat.LOCUS_TAG, locusTokens.nextToken()); saveSeqAnno2(GenbankFormat.SIZE_TAG, locusTokens.nextToken()); locusTokens.nextToken(); String strandString = locusTokens.nextToken(); StringTokenizer strandTokens = new StringTokenizer(strandString, "-"); if(strandTokens.countTokens() > 1) { saveSeqAnno2(GenbankFormat.STRAND_NUMBER_TAG, strandTokens.nextToken()); } saveSeqAnno2(GenbankFormat.TYPE_TAG, strandTokens.nextToken()); saveSeqAnno2(GenbankFormat.CIRCULAR_TAG, locusTokens.nextToken()); saveSeqAnno2(GenbankFormat.DIVISION_TAG, locusTokens.nextToken()); saveSeqAnno2(GenbankFormat.DATE_TAG, locusTokens.nextToken()); | private void parseLocusLinePost127(String theLine) throws ParseException { if (theLine.length() < 79) { throw new ParseException("LOCUS line too short [" + theLine + "]"); } StringTokenizer locusTokens = new StringTokenizer(theLine); if(locusTokens.countTokens() != 8) { throw new ParseException("LOCUS line incorrectly tokenized [" + theLine + "]"); } // LOCUS tag; not stored locusTokens.nextToken(); // Locus name saveSeqAnno2(GenbankFormat.LOCUS_TAG, locusTokens.nextToken()); // Sequence length saveSeqAnno2(GenbankFormat.SIZE_TAG, locusTokens.nextToken()); // "bp"; not stored locusTokens.nextToken(); // Strand information // Both the strand and type are in the same token. The strand // information is an optional part, so this is a bit hairy String strandString = locusTokens.nextToken(); StringTokenizer strandTokens = new StringTokenizer(strandString, "-"); if(strandTokens.countTokens() > 1) { saveSeqAnno2(GenbankFormat.STRAND_NUMBER_TAG, strandTokens.nextToken()); } saveSeqAnno2(GenbankFormat.TYPE_TAG, strandTokens.nextToken()); // Circularity saveSeqAnno2(GenbankFormat.CIRCULAR_TAG, locusTokens.nextToken()); // Division code saveSeqAnno2(GenbankFormat.DIVISION_TAG, locusTokens.nextToken()); // Date in dd-MMM-yyyy format saveSeqAnno2(GenbankFormat.DATE_TAG, locusTokens.nextToken()); } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/61b3a9a0f878db0e3ffd8a884fe3b31433ee5d61/GenbankFormat.java/buggy/src/org/biojava/bio/seq/io/GenbankFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1333,
407,
1670,
3349,
14260,
12,
780,
326,
1670,
13,
377,
202,
15069,
10616,
565,
288,
202,
202,
430,
261,
5787,
1670,
18,
2469,
1435,
411,
26517,
13,
202,
202,
95,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
1333,
407,
1670,
3349,
14260,
12,
780,
326,
1670,
13,
377,
202,
15069,
10616,
565,
288,
202,
202,
430,
261,
5787,
1670,
18,
2469,
1435,
411,
26517,
13,
202,
202,
95,
10... | |
if (rootLocation.equals(Platform.getLocation())) newDescription.setLocation(null); else newDescription.setLocation(rootLocation); | if (rootLocation.equals(Platform.getLocation())) { newDescription.setLocation(null); } else { newDescription.setLocation(rootLocation); } | private IProjectDescription createProjectDescription(IProject project, String projectName, IPath rootLocation) throws CoreException { //Get a copy of the current description and modify it IProjectDescription newDescription = project.getDescription(); newDescription.setName(projectName); //If the location is the default then set the location to null if (rootLocation.equals(Platform.getLocation())) newDescription.setLocation(null); else newDescription.setLocation(rootLocation); return newDescription; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CopyProjectOperation.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyProjectOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
4109,
3291,
752,
4109,
3291,
12,
45,
4109,
1984,
16,
5411,
514,
17234,
16,
467,
743,
1365,
2735,
13,
1216,
30015,
288,
3639,
368,
967,
279,
1610,
434,
326,
783,
2477,
471,
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,
377,
3238,
467,
4109,
3291,
752,
4109,
3291,
12,
45,
4109,
1984,
16,
5411,
514,
17234,
16,
467,
743,
1365,
2735,
13,
1216,
30015,
288,
3639,
368,
967,
279,
1610,
434,
326,
783,
2477,
471,
56... |
public void loadScript( RubyString scriptName, RubyString source, boolean wrap) { | public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { | public void loadScript( RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSecurityLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(fname); } // volatile ID last_func; // ruby_errinfo = Qnil; /* ensure */ RubyVarmap.push(ruby); ruby.pushClass(); RubyModule wrapper = ruby.getWrapper(); ruby.setCRef(ruby.getTopCRef()); if (!wrap) { ruby.secure(4); /* should alter global state */ ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby.setWrapper(null); } else { /* load in anonymous module as toplevel */ ruby.setWrapper(RubyModule.m_newModule(ruby)); ruby.setRubyClass(ruby.getWrapper()); self = ruby.getRubyTopSelf().m_clone(); self.extendObject(ruby.getRubyClass()); ruby.getCRef().push(ruby.getWrapper()); } ruby.getRubyFrame().push(); ruby.getRubyFrame().setLastFunc(null); ruby.getRubyFrame().setLastClass(null); ruby.getRubyFrame().setSelf(self); ruby.getRubyFrame().setCbase(new CRefNode(ruby.getRubyClass(), null)); ruby.getRubyScope().push(); /* default visibility is private at loading toplevel */ ruby.setActMethodScope(Constants.SCOPE_PRIVATE); RubyId last_func = ruby.getRubyFrame().getLastFunc(); try { // RubyId last_func = ruby.getRubyFrame().getLastFunc(); // DEFER_INTS; ruby.setInEval(ruby.getInEval() + 1); ruby.getRubyParser().compileString(scriptName.getValue(), source, 0); // --- ruby.setInEval(ruby.getInEval() - 1); self.evalNode(ruby.getParserHelper().getEvalTree()); } catch (Exception excptn) { excptn.printStackTrace(getErrorStream()); } finally { ruby.getRubyFrame().setLastFunc(last_func); /*if (ruby.getRubyScope().getFlags() == SCOPE_ALLOCA && ruby.getRubyClass() == ruby.getClasses().getObjectClass()) { if (ruby_scope->local_tbl) free(ruby_scope->local_tbl); }*/ ruby.setCRef(savedCRef); ruby.getRubyScope().pop(); ruby.getRubyFrame().pop(); ruby.popClass(); RubyVarmap.pop(ruby); ruby.setWrapper(wrapper); } /*if (ruby_nerrs > 0) { ruby_nerrs = 0; rb_exc_raise(ruby_errinfo); }*/ } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/ec719ef82be7ea6956b3d139a2ce2d236eed4568/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
3651,
12,
3639,
19817,
780,
31008,
16,
3639,
19817,
780,
1084,
16,
3639,
1250,
2193,
13,
288,
3639,
19817,
921,
365,
273,
22155,
18,
588,
54,
10340,
3401,
10084,
5621,
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,
1262,
3651,
12,
3639,
19817,
780,
31008,
16,
3639,
19817,
780,
1084,
16,
3639,
1250,
2193,
13,
288,
3639,
19817,
921,
365,
273,
22155,
18,
588,
54,
10340,
3401,
10084,
5621,
36... |
} | } | void setDefaultZT(int t, int z, int sizeT, int sizeZ) { ToolBarManager tbm = toolBar.getManager(); tbm.onTChange(t); tbm.onZChange(z); int maxZ = sizeZ-1; int maxT = sizeT-1; tbm.setMaxT(maxT); tbm.setMaxZ(maxZ); toolBar.getZLabel().setText("/"+maxZ); toolBar.getTLabel().setText("/"+maxT); resetSliders(maxT, t, maxZ, z); boolean bT = false, bZ = false; if (maxT != 0) bT = true; if (maxZ != 0) bZ = true; toolBar.getTField().setEditable(bT); toolBar.getZField().setEditable(bZ); toolBar.getViewer3D().setEnabled(bZ); viewer3DItem.setEnabled(bZ); if (bZ && bT) movieItem.setEnabled(true); } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/a81a5a58f8e54d006d057455465766c8d3d72998/ViewerUIF.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
9277,
62,
56,
12,
474,
268,
16,
509,
998,
16,
509,
963,
56,
16,
509,
963,
62,
13,
202,
95,
202,
202,
6364,
5190,
1318,
8739,
81,
273,
5226,
5190,
18,
588,
1318,
5621,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
9277,
62,
56,
12,
474,
268,
16,
509,
998,
16,
509,
963,
56,
16,
509,
963,
62,
13,
202,
95,
202,
202,
6364,
5190,
1318,
8739,
81,
273,
5226,
5190,
18,
588,
1318,
5621,
202... |
cfw.addInvoke(ByteCode.INVOKEVIRTUAL, generatedClassName, "initScript", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); | cfw.addInvoke(ByteCode.INVOKEVIRTUAL, cfw.getClassName(), "initScript", SCRIPT_INIT_SIGNATURE); | private void generateExecute(Context cx) { cfw.startMethod("exec", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;", (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); final byte ALOAD_CONTEXT = ByteCode.ALOAD_1; final byte ALOAD_SCOPE = ByteCode.ALOAD_2; // to begin a script, call the initScript method cfw.add(ByteCode.ALOAD_0); // load 'this' cfw.add(ALOAD_SCOPE); cfw.add(ALOAD_CONTEXT); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, generatedClassName, "initScript", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); cfw.add(ByteCode.ALOAD_0); // load 'this' cfw.add(ALOAD_CONTEXT); cfw.add(ALOAD_SCOPE); cfw.add(ByteCode.DUP); cfw.add(ByteCode.ACONST_NULL); cfw.addInvoke(ByteCode.INVOKEVIRTUAL, generatedClassName, "call", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Scriptable;" +"[Ljava/lang/Object;" +")Ljava/lang/Object;"); cfw.add(ByteCode.ARETURN); // 3 = this + context + scope cfw.stopMethod((short)3, null); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/7de4ae25f0fd144cbc3ddabc47e7a327a747af5a/Codegen.java/buggy/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
5289,
12,
1042,
9494,
13,
565,
288,
3639,
6080,
91,
18,
1937,
1305,
2932,
4177,
3113,
17311,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
17311,
397,
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,
377,
3238,
918,
2103,
5289,
12,
1042,
9494,
13,
565,
288,
3639,
6080,
91,
18,
1937,
1305,
2932,
4177,
3113,
17311,
7751,
48,
3341,
19,
8683,
15990,
19,
11242,
19,
1042,
4868,
17311,
397,
6,
... |
refs.add(new AntPropertyReference(this, result, propName, | refs.add(new AntPropertyReference(this, element, propName, | private void getAttributeReferences(final AntElement element, final XmlAttribute attr, final List<PsiReference> refs) { if (element == null) return; final String value = attr.getValue(); final int offsetInPosition = attr.getValueElement().getTextRange().getStartOffset() - element.getTextRange().getStartOffset() + 1; int startIndex; int endIndex = -1; while ((startIndex = value.indexOf("${", endIndex + 1)) > endIndex) { endIndex = value.indexOf('}', startIndex); if (endIndex < 0) break; startIndex += 2; if (endIndex > startIndex) { final String propName = value.substring(startIndex, endIndex - startIndex); AntElement temp = element; AntProperty result = null; while (temp != null && (result = temp.getProperty(propName)) == null) { temp = temp.getAntParent(); } if (result != null) { refs.add(new AntPropertyReference(this, result, propName, new TextRange(offsetInPosition + startIndex, offsetInPosition + endIndex), attr)); } } } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8f621ad387becfe33317a27613c7e45f3128b94b/AntPropertyValueReferenceProvider.java/clean/plugins/ant/src/com/intellij/lang/ant/psi/impl/reference/providers/AntPropertyValueReferenceProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
4061,
8221,
12,
6385,
18830,
1046,
930,
16,
727,
5714,
1499,
1604,
16,
727,
987,
32,
52,
7722,
2404,
34,
9047,
13,
288,
565,
309,
261,
2956,
422,
446,
13,
327,
31,
565,
727... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
4061,
8221,
12,
6385,
18830,
1046,
930,
16,
727,
5714,
1499,
1604,
16,
727,
987,
32,
52,
7722,
2404,
34,
9047,
13,
288,
565,
309,
261,
2956,
422,
446,
13,
327,
31,
565,
727... |
case 133: | public final void parenthesizedExpr() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST parenthesizedExpr_AST = null; org.exist.xquery.parser.XQueryAST e_AST = null; match(LPAREN); { switch ( LA(1)) { case LPAREN: case NCNAME: case LITERAL_module: case LITERAL_namespace: case STRING_LITERAL: case XQUERY: case VERSION: case LITERAL_default: case LITERAL_function: case LITERAL_variable: case LITERAL_element: case DOLLAR: case LITERAL_import: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case STAR: case PLUS: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_order: case LITERAL_by: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case LITERAL_is: case LITERAL_isnot: case MINUS: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 123: case 124: case LITERAL_parent: case LITERAL_ancestor: case 127: case 128: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_comment: case 133: case 134: case XML_PI: case LITERAL_document: case LITERAL_collection: { expr(); e_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); break; } case RPAREN: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(RPAREN); if ( inputState.guessing==0 ) { parenthesizedExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; parenthesizedExpr_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(PARENTHESIZED,"Parenthesized")).add(e_AST)); currentAST.root = parenthesizedExpr_AST; currentAST.child = parenthesizedExpr_AST!=null &&parenthesizedExpr_AST.getFirstChild()!=null ? parenthesizedExpr_AST.getFirstChild() : parenthesizedExpr_AST; currentAST.advanceChildToEnd(); } parenthesizedExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = parenthesizedExpr_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b97968ea5c7509390e358e4f2e731907b80df01b/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
15231,
1235,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15231,
1235,
4742,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
... | |
LOG.info("[Spring] Scaffolding disabled for controller ["+simpleControllers[i].getFullName()+"], no equivalent domain class named ["+simpleControllers[i].getName()+"]"); | LOG.debug("[RuntimeConfiguration] Scaffolding disabled for controller ["+simpleControllers[i].getFullName()+"], no equivalent domain class named ["+simpleControllers[i].getName()+"]"); | private void populateScaffoldingReferences(RuntimeSpringConfiguration springConfig) { // go through all the controllers GrailsControllerClass[] simpleControllers = application.getControllers(); for (int i = 0; i < simpleControllers.length; i++) { // retrieve appropriate domain class Class scaffoldedClass = simpleControllers[i].getScaffoldedClass(); GrailsDomainClass domainClass; if(scaffoldedClass == null) { domainClass = application.getGrailsDomainClass(simpleControllers[i].getName()); if(domainClass != null) { scaffoldedClass = domainClass.getClazz(); } } if(scaffoldedClass == null) { LOG.info("[Spring] Scaffolding disabled for controller ["+simpleControllers[i].getFullName()+"], no equivalent domain class named ["+simpleControllers[i].getName()+"]"); } else { BeanConfiguration scaffolder = springConfig.addSingletonBean(simpleControllers[i].getFullName() + "Scaffolder",DefaultGrailsScaffolder.class); // create scaffold domain Collection constructorArguments = new ManagedList(); constructorArguments.add(scaffoldedClass.getName()); constructorArguments.add(new RuntimeBeanReference(SESSION_FACTORY_BEAN)); springConfig .addSingletonBean( scaffoldedClass.getName() + "ScaffoldDomain", GrailsScaffoldDomain.class, constructorArguments ); // create and configure request handler BeanConfiguration requestHandler = springConfig .createSingletonBean(DefaultScaffoldRequestHandler.class) .addProperty("scaffoldDomain", new RuntimeBeanReference(scaffoldedClass.getName() + "ScaffoldDomain")); // create response factory constructorArguments = new ArrayList(); constructorArguments.add(new RuntimeBeanReference(GrailsApplication.APPLICATION_ID,true)); // configure default response handler BeanConfiguration defaultResponseHandler = springConfig .createSingletonBean(ViewDelegatingScaffoldResponseHandler.class); // configure a simple view delegating resolver BeanConfiguration defaultViewResolver = springConfig .createSingletonBean(DefaultGrailsScaffoldViewResolver.class,constructorArguments); defaultResponseHandler.addProperty("scaffoldViewResolver", defaultViewResolver.getBeanDefinition()); // create constructor arguments response handler factory constructorArguments = new ArrayList(); constructorArguments.add(new RuntimeBeanReference(GrailsApplication.APPLICATION_ID,true)); constructorArguments.add(defaultResponseHandler.getBeanDefinition()); BeanConfiguration responseHandlerFactory = springConfig.createSingletonBean( DefaultGrailsResponseHandlerFactory.class,constructorArguments ); scaffolder.addProperty( "scaffoldResponseHandlerFactory", responseHandlerFactory.getBeanDefinition() ); scaffolder.addProperty("scaffoldRequestHandler", requestHandler.getBeanDefinition()); } } } | 55385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55385/c70680781f92c301d7b9fc3bace8056922e74b46/GrailsRuntimeConfigurator.java/buggy/src/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfigurator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
1541,
14847,
310,
8221,
12,
5576,
55,
11638,
1750,
25974,
809,
13,
288,
202,
202,
759,
1960,
3059,
777,
326,
12403,
202,
202,
14571,
14573,
2933,
797,
8526,
4143,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
1541,
14847,
310,
8221,
12,
5576,
55,
11638,
1750,
25974,
809,
13,
288,
202,
202,
759,
1960,
3059,
777,
326,
12403,
202,
202,
14571,
14573,
2933,
797,
8526,
4143,
13... |
roundReport.append("\n" + entity.getDisplayName() + " is underwater with damaged life support. Mechwarrior takes 1 damage.\n"); | roundReport.append("\n" ).append( entity.getDisplayName() ).append( " is underwater with damaged life support. Mechwarrior takes 1 damage.\n"); | private void checkForSuffocation() { for (Enumeration i = game.getEntities(); i.hasMoreElements();) { final Entity entity = (Entity)i.nextElement(); if ( null == entity.getPosition() ) { continue; } final Hex curHex = game.board.getHex(entity.getPosition()); if ((curHex.levelOf(Terrain.WATER) > 1 || (curHex.levelOf(Terrain.WATER) == 1 && entity.isProne())) && entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_LIFE_SUPPORT, Mech.LOC_HEAD) > 0) { roundReport.append("\n" + entity.getDisplayName() + " is underwater with damaged life support. Mechwarrior takes 1 damage.\n"); damageCrew(entity, 1); } } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/5d0e30fa3cd546d131099baade0769a0a19c983e/Server.java/clean/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13855,
55,
3809,
4431,
1435,
288,
3639,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
727,
3887,
1522,
273,
261,
1943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13855,
55,
3809,
4431,
1435,
288,
3639,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
727,
3887,
1522,
273,
261,
1943,
... |
runQueryCheckResult("WITH" + nl + " MEMBER [Time].[1st Half Sales] AS 'Aggregate({Time.[1997].[Q1], Time.[1997].[Q2]})'" + nl + " MEMBER [Time].[2nd Half Sales] AS 'Aggregate({Time.[1997].[Q3], Time.[1997].[Q4]})'" + nl + " MEMBER [Time].[Difference] AS 'Time.[2nd Half Sales] - Time.[1st Half Sales]'" + nl + "SELECT" + nl + " { [Store].[Store State].Members} ON COLUMNS," + nl + " { Time.[1st Half Sales], Time.[2nd Half Sales], Time.[Difference]} ON ROWS" + nl + "FROM Sales" + nl + "WHERE [Measures].[Store Sales]", "Axis #0:" + nl + "{[Measures].[Store Sales]}" + nl + "Axis #1:" + nl + "{[Store].[All Stores].[Canada].[BC]}" + nl + "{[Store].[All Stores].[Mexico].[DF]}" + nl + "{[Store].[All Stores].[Mexico].[Guerrero]}" + nl + "{[Store].[All Stores].[Mexico].[Jalisco]}" + nl + "{[Store].[All Stores].[Mexico].[Veracruz]}" + nl + "{[Store].[All Stores].[Mexico].[Yucatan]}" + nl + "{[Store].[All Stores].[Mexico].[Zacatecas]}" + nl + "{[Store].[All Stores].[USA].[CA]}" + nl + "{[Store].[All Stores].[USA].[OR]}" + nl + "{[Store].[All Stores].[USA].[WA]}" + nl + "Axis #2:" + nl + "{[Time].[1st Half Sales]}" + nl + "{[Time].[2nd Half Sales]}" + nl + "{[Time].[Difference]}" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: 74,571.95" + nl + "Row #0: 71,943.17" + nl + "Row #0: 125,779.50" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: 84,595.89" + nl + "Row #1: 70,333.90" + nl + "Row #1: 138,013.72" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: 10,023.94" + nl + "Row #2: -1,609.27" + nl + "Row #2: 12,234.22" + nl); | assertQueryReturns( wrap(new String[] { "WITH", " MEMBER [Time].[1st Half Sales] AS 'Aggregate({Time.[1997].[Q1], Time.[1997].[Q2]})'", " MEMBER [Time].[2nd Half Sales] AS 'Aggregate({Time.[1997].[Q3], Time.[1997].[Q4]})'", " MEMBER [Time].[Difference] AS 'Time.[2nd Half Sales] - Time.[1st Half Sales]'", "SELECT", " { [Store].[Store State].Members} ON COLUMNS,", " { Time.[1st Half Sales], Time.[2nd Half Sales], Time.[Difference]} ON ROWS", "FROM Sales", "WHERE [Measures].[Store Sales]"}), wrap(new String[] { "Axis #0:", "{[Measures].[Store Sales]}", "Axis #1:", "{[Store].[All Stores].[Canada].[BC]}", "{[Store].[All Stores].[Mexico].[DF]}", "{[Store].[All Stores].[Mexico].[Guerrero]}", "{[Store].[All Stores].[Mexico].[Jalisco]}", "{[Store].[All Stores].[Mexico].[Veracruz]}", "{[Store].[All Stores].[Mexico].[Yucatan]}", "{[Store].[All Stores].[Mexico].[Zacatecas]}", "{[Store].[All Stores].[USA].[CA]}", "{[Store].[All Stores].[USA].[OR]}", "{[Store].[All Stores].[USA].[WA]}", "Axis #2:", "{[Time].[1st Half Sales]}", "{[Time].[2nd Half Sales]}", "{[Time].[Difference]}", "Row #0: (null)", "Row #0: (null)", "Row #0: (null)", "Row #0: (null)", "Row #0: (null)", "Row #0: (null)", "Row #0: (null)", "Row #0: 74,571.95", "Row #0: 71,943.17", "Row #0: 125,779.50", "Row #1: (null)", "Row #1: (null)", "Row #1: (null)", "Row #1: (null)", "Row #1: (null)", "Row #1: (null)", "Row #1: (null)", "Row #1: 84,595.89", "Row #1: 70,333.90", "Row #1: 138,013.72", "Row #2: (null)", "Row #2: (null)", "Row #2: (null)", "Row #2: (null)", "Row #2: (null)", "Row #2: (null)", "Row #2: (null)", "Row #2: 10,023.94", "Row #2: -1,609.27", "Row #2: 12,234.22" + nl})); | public void testAggregate2() { runQueryCheckResult("WITH" + nl + " MEMBER [Time].[1st Half Sales] AS 'Aggregate({Time.[1997].[Q1], Time.[1997].[Q2]})'" + nl + " MEMBER [Time].[2nd Half Sales] AS 'Aggregate({Time.[1997].[Q3], Time.[1997].[Q4]})'" + nl + " MEMBER [Time].[Difference] AS 'Time.[2nd Half Sales] - Time.[1st Half Sales]'" + nl + "SELECT" + nl + " { [Store].[Store State].Members} ON COLUMNS," + nl + " { Time.[1st Half Sales], Time.[2nd Half Sales], Time.[Difference]} ON ROWS" + nl + "FROM Sales" + nl + "WHERE [Measures].[Store Sales]", "Axis #0:" + nl + "{[Measures].[Store Sales]}" + nl + "Axis #1:" + nl + "{[Store].[All Stores].[Canada].[BC]}" + nl + "{[Store].[All Stores].[Mexico].[DF]}" + nl + "{[Store].[All Stores].[Mexico].[Guerrero]}" + nl + "{[Store].[All Stores].[Mexico].[Jalisco]}" + nl + "{[Store].[All Stores].[Mexico].[Veracruz]}" + nl + "{[Store].[All Stores].[Mexico].[Yucatan]}" + nl + "{[Store].[All Stores].[Mexico].[Zacatecas]}" + nl + "{[Store].[All Stores].[USA].[CA]}" + nl + "{[Store].[All Stores].[USA].[OR]}" + nl + "{[Store].[All Stores].[USA].[WA]}" + nl + "Axis #2:" + nl + "{[Time].[1st Half Sales]}" + nl + "{[Time].[2nd Half Sales]}" + nl + "{[Time].[Difference]}" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: (null)" + nl + "Row #0: 74,571.95" + nl + "Row #0: 71,943.17" + nl + "Row #0: 125,779.50" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: (null)" + nl + "Row #1: 84,595.89" + nl + "Row #1: 70,333.90" + nl + "Row #1: 138,013.72" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: (null)" + nl + "Row #2: 10,023.94" + nl + "Row #2: -1,609.27" + nl + "Row #2: 12,234.22" + nl); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/3041f930b5fc4bf6aa3339845b828801c1d8b366/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11490,
22,
1435,
288,
3639,
1086,
1138,
1564,
1253,
2932,
9147,
6,
397,
7741,
397,
7734,
315,
225,
18990,
6271,
306,
950,
8009,
63,
21,
334,
670,
6186,
25996,
65,
5355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11490,
22,
1435,
288,
3639,
1086,
1138,
1564,
1253,
2932,
9147,
6,
397,
7741,
397,
7734,
315,
225,
18990,
6271,
306,
950,
8009,
63,
21,
334,
670,
6186,
25996,
65,
5355,
... |
match(input,82,FOLLOW_82_in_parameterModifier1160); | match(input,82,FOLLOW_82_in_parameterModifier1160); | public void parameterModifier() throws RecognitionException { try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:313:17: ( ( 'final' )? ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:313:17: ( 'final' )? { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:313:17: ( 'final' )? int alt34=2; int LA34_0 = input.LA(1); if ( LA34_0==82 ) { alt34=1; } else if ( LA34_0==IDENT||(LA34_0>=68 && LA34_0<=76) ) { alt34=2; } else { NoViableAltException nvae = new NoViableAltException("313:17: ( \'final\' )?", 34, 0, input); throw nvae; } switch (alt34) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/semantics/java/parser/java.g:313:18: 'final' { match(input,82,FOLLOW_82_in_parameterModifier1160); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParser.java/clean/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1569,
9829,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1569,
9829,
1435,
1216,
9539,
288,
6647,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19... |
out.println("<table>"); | out.println("<table width=\"100%\" bgcolor=\"#BBBBBB\">"); out.println("<tr><td>"); out.println("<table bgcolor=\"#BBBBBB\">"); | public MessageParser(BufferedReader in, PrintWriter out, String file) throws IOException, MessageParseException { file = file.substring(0, file.length() - 5); MessageHeaderParser mhp = new MessageHeaderParser(); mhp.parse(in); out.println("<html>"); out.println("<body>"); out.println("<table>"); if (mhp.getHeaderField("Date") != null) { DateParser dp = new DateParser(); dp.setTargetFormat(YAMM.getString("longdate")); String date = null; try { date = dp.parse(mhp.getHeaderField("Date")); } catch (ParseException pe) { date = ""; } out.println("<tr><td>" + YAMM.getString("mail.date") + "</td><td>" + date + "</td></tr>"); } if (mhp.getHeaderField("From") != null) { String from = makeClickable(mhp.getHeaderField("From")); out.println("<tr><td>" + YAMM.getString("mail.from") + "</td><td>" + from + "</td></tr>"); } if (mhp.getHeaderField("To") != null) { String to = makeClickable(mhp.getHeaderField("To")); out.println("<tr><td>" + YAMM.getString("mail.to") + "</td><td>" + to + "</td></tr>"); } if (mhp.getHeaderField("cc") != null) { String cc = makeClickable(mhp.getHeaderField("cc")); out.println("<tr><td>cc:</td><td>" + cc + "</td></tr>"); } if (mhp.getHeaderField("Reply-To") != null) { String replyto = makeClickable( mhp.getHeaderField("Reply-To")); out.println("<tr><td>" + YAMM.getString("mail.reply_to") + "</td><td>" + replyto + "</td></tr>"); } if (mhp.getHeaderField("Subject") != null) { out.println("<tr><td>" + YAMM.getString("mail.subject") + "</td><td>" + Mailbox.unMime(mhp.getHeaderField("Subject")) + "</td></tr>"); } out.println("</table>"); out.println("<br><pre>"); String boundary = null; String temp = mhp.getHeaderField("Content-Type"); String contentType = ""; if (temp != null) { contentType = temp.toLowerCase(); if (contentType.indexOf("boundary=") != -1) { boundary = temp.substring(contentType.indexOf("boundary=") + 9, temp.length()); if (boundary.startsWith("\"")) { boundary = boundary.substring(1, boundary.length() - 1); } if (boundary.indexOf("\"") != -1) { boundary = boundary.substring(0, boundary.indexOf("\"")); } } } if (mhp.getHeaderField("MIME-Version") != null) { // expect a little mime message if (boundary != null) { for (;;) { if (in.readLine().equals("--" + boundary)) { new Attachment().parse(in, null); break; } } } } MessageBodyParser mbp = new MessageBodyParser(true); bigLoop: for (;;) { int test = mbp.parse(in, out, boundary); if (test == MessageBodyParser.ATTACHMENT && contentType.indexOf("multipart/alternative") == -1) { Attachment a = new Attachment(); PrintWriter atOut = null; try { atOut = new PrintWriter( new BufferedOutputStream( new FileOutputStream(file + ".attach." + attachments) ) ); for (;;) { // Attachment found test = a.parse(in, atOut); if (test == Attachment.MESSAGE && contentType.indexOf("multipart/alternative") == -1) { break; } else if (test == Attachment.ATTACHMENT) { attachments++; atOut.close(); atOut = new PrintWriter( new BufferedOutputStream( new FileOutputStream( file + ".attach." + attachments ) ) ); continue; } else /* if (test == Attachment.END) */{ break bigLoop; } } } finally { if (atOut != null) { atOut.close(); } } } else if (test == MessageBodyParser.END) { // end reached break; } else if (test == MessageBodyParser.ATTACHMENT) { break; } } out.println("</pre></body>"); out.println("</html>"); } | 3248 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3248/92d3d7e8755da6b1356bc22c2c897d2fa0dbfe38/MessageParser.java/clean/mail/MessageParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2350,
2678,
12,
17947,
2514,
316,
16,
14071,
596,
16,
514,
585,
13,
202,
202,
15069,
1860,
16,
2350,
13047,
202,
95,
202,
202,
768,
273,
585,
18,
28023,
12,
20,
16,
585,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2350,
2678,
12,
17947,
2514,
316,
16,
14071,
596,
16,
514,
585,
13,
202,
202,
15069,
1860,
16,
2350,
13047,
202,
95,
202,
202,
768,
273,
585,
18,
28023,
12,
20,
16,
585,
18,... |
if (!store.fetchInfo().exists()) store = null; | if (!store.fetchInfo().exists()) { store = null; } | private void handleLinkTargetBrowseButtonPressed() { IFileStore store = null; String selection = null; if (linkTarget.length() > 0) { store = IDEResourceInfoUtils.getFileStore(linkTarget); if (!store.fetchInfo().exists()) store = null; } if (type == IResource.FILE) { FileDialog dialog = new FileDialog(linkTargetField.getShell()); if (store != null) { if (store.fetchInfo().isDirectory()) dialog.setFilterPath(linkTarget); else dialog.setFileName(linkTarget); } selection = dialog.open(); } else { DirectoryDialog dialog = new DirectoryDialog(linkTargetField .getShell()); if (store != null) { IFileStore path = store; if (!store.fetchInfo().isDirectory()) path = store.getParent(); if (path != null) dialog.setFilterPath(store.toString()); } dialog .setMessage(IDEWorkbenchMessages.CreateLinkedResourceGroup_targetSelectionLabel); selection = dialog.open(); } if (selection != null) linkTargetField.setText(selection); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/CreateLinkedResourceGroup.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateLinkedResourceGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
2098,
2326,
27304,
3616,
24624,
1435,
288,
3639,
467,
812,
2257,
1707,
273,
446,
31,
3639,
514,
4421,
273,
446,
31,
3639,
309,
261,
1232,
2326,
18,
2469,
1435,
405,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
2098,
2326,
27304,
3616,
24624,
1435,
288,
3639,
467,
812,
2257,
1707,
273,
446,
31,
3639,
514,
4421,
273,
446,
31,
3639,
309,
261,
1232,
2326,
18,
2469,
1435,
405,
374,
... |
void handleStartElement(QName element, XMLAttributes attributes) { // whether to do validatoin // REVISIT: consider DynamicValidation if (fElementDepth == -1) { fDoValidation = fValidation; } // if we are in the content of "skip", then just skip this element if (fSkipValidationDepth >= 0) { fElementDepth++; return; } // if it's not the root element, we push the current states in the stacks if (fElementDepth != -1) { ensureStackCapacity(); fChildCountStack[fElementDepth] = fChildCount+1; fChildCount = 0; fElemDeclStack[fElementDepth] = fCurrentElemDecl; fTypeStack[fElementDepth] = fCurrentType; fCMStack[fElementDepth] = fCurrentCM; fBufferStack[fElementDepth] = fBuffer; } // get xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes, // parser them to get the grammars // REVISIT: we'll defer this operation until there is a reference to // a component from that namespace String sLocation = attributes.getValue(URI_XSI, XSI_SCHEMALOCACTION); String nsLocation = attributes.getValue(URI_XSI, XSI_NONAMESPACESCHEMALOCACTION); if (sLocation != null) { StringTokenizer t = new StringTokenizer(sLocation, " \n\t\r"); String namespace, location; while (t.hasMoreTokens()) { namespace = t.nextToken (); if (!t.hasMoreTokens()) { // REVISIT: report error for wrong number of uris break; } location = t.nextToken(); if (fGrammarResolver.getGrammar(namespace) == null) fSchemaHandler.parseSchema(namespace, location); } } if (nsLocation != null) { if (fGrammarResolver.getGrammar(fSchemaHandler.EMPTY_STRING) == null) fSchemaHandler.parseSchema(fSchemaHandler.EMPTY_STRING, nsLocation); } // get the element decl for this element fCurrentElemDecl = null; XSWildcardDecl wildcard = null; // if there is a content model, then get the decl from that if (fCurrentCM != null) { Object decl = fCurrentCM.oneTransition(element, fCurrCMState); // it could be an element decl or a wildcard decl // REVISIT: is there a more effecient way than 'instanceof' if (decl instanceof XSElementDecl) { fCurrentElemDecl = (XSElementDecl)decl; } else if (decl instanceof XSWildcardDecl) { wildcard = (XSWildcardDecl)decl; } else if (fCurrCMState[0] == XSCMValidator.FIRST_ERROR && fDoValidation) { // REVISIT: report error: invalid content XSComplexTypeDecl ctype = (XSComplexTypeDecl)fCurrentType; reportGenericSchemaError("invlid content starting with element '"+element.rawname+"', the content must match ("+ctype.fParticle.toString()+")"); fCurrCMState[0] = XSCMValidator.SUBSEQUENT_ERROR; } } // save the current content model state in the stack if (fElementDepth != -1) fCMStateStack[fElementDepth] = fCurrCMState; // increase the element depth after we've saved all states for the // parent element fElementDepth++; // if the wildcard is skip, then return if (wildcard != null && wildcard.fProcessContents == XSWildcardDecl.WILDCARD_SKIP) { fSkipValidationDepth = fElementDepth; return; } // try again to get the element decl if (fCurrentElemDecl == null) { // REVISIT: null or "" SchemaGrammar sGrammar = fGrammarResolver.getGrammar(element.uri == null ? "" : element.uri); if (sGrammar != null) fCurrentElemDecl = sGrammar.getGlobalElementDecl(element.localpart); } // get the type for the current element fCurrentType = null; if (fCurrentElemDecl != null) { // Check whether this element is abstract. If so, an error if (fCurrentElemDecl.isAbstract()) { reportGenericSchemaError("A member of abstract element " + element.rawname + "'s substitution group must be specified"); } // then get the type fCurrentType = fCurrentElemDecl.fType; } // get type from xsi:type String xsiType = attributes.getValue(URI_XSI, XSI_TYPE); if (xsiType != null) { getAndCheckXsiType(element, xsiType); } else if (fCurrentType != null) { // if no xsi:type is specified, check whether the type of // the element is abstract if ((fCurrentType.getXSType() & XSTypeDecl.COMPLEX_TYPE) != 0) { XSComplexTypeDecl ctype = (XSComplexTypeDecl)fCurrentType; if (ctype.isAbstractType()) { reportGenericSchemaError("Element " + element.rawname + " is declared with a type that is abstract. Use xsi:type to specify a non-abstract type"); } } } // if the element decl is not found if (fCurrentType == null && fDoValidation) { // if this is the root element, or wildcard = strict, report error if (fElementDepth == 0) { // REVISIT: report error, because it's root element reportGenericSchemaError("can't find decl for root element '"+element.rawname+"'"); } else if (wildcard != null && wildcard.fProcessContents == XSWildcardDecl.WILDCARD_STRICT) { // REVISIT: report error, because wilcard = strict reportGenericSchemaError("can't find decl for strict wildcard '"+element.rawname+"'"); } // no element decl found, have to skip this element fSkipValidationDepth = fElementDepth; return; } // then try to get the content model fCurrentCM = null; if (fCurrentType != null) { if ((fCurrentType.getXSType() & XSTypeDecl.COMPLEX_TYPE) != 0) { fCurrentCM = ((XSComplexTypeDecl)fCurrentType).getContentModel(); } } // and get the initial content model state fCurrCMState = null; if (fCurrentCM != null) fCurrCMState = fCurrentCM.startContentModel(); // and the buffer to hold the value of the element fBuffer = new StringBuffer(); // get information about xsi:nil String xsiNil = attributes.getValue(URI_XSI, XSI_NIL); if (xsiNil != null) getXsiNil(element, xsiNil); // now validate everything related with the attributes // first, get the attribute group XSAttributeGroupDecl attrGrp = null; if ((fCurrentType.getXSType() & XSTypeDecl.COMPLEX_TYPE) != 0) { XSComplexTypeDecl ctype = (XSComplexTypeDecl)fCurrentType; attrGrp = ctype.fAttrGrp; } processAttributes(element, attributes, attrGrp); } // handleStartElement(QName,XMLAttributes,boolean) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/860cb3b9c2ad281211d6d52beb871b2439720fa5/SchemaValidator.java/buggy/src/org/apache/xerces/impl/v2/SchemaValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
4110,
1685,
1046,
12,
13688,
2956,
16,
4201,
2498,
4350,
15329,
759,
3350,
546,
1051,
7370,
877,
270,
885,
759,
862,
26780,
1285,
30,
8559,
3585,
9791,
4354,
430,
12,
74,
1046,
6148,
631,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
4110,
1685,
1046,
12,
13688,
2956,
16,
4201,
2498,
4350,
15329,
759,
3350,
546,
1051,
7370,
877,
270,
885,
759,
862,
26780,
1285,
30,
8559,
3585,
9791,
4354,
430,
12,
74,
1046,
6148,
631,... | ||
int bytes, int allocator) throws InlinePragma { switch (allocator) { case Plan.ALLOC_LOS: Plan.loSpace.initializeHeader(ref); return; case Plan.ALLOC_IMMORTAL: Plan.immortalSpace.postAlloc(ref); return; default: if (Assert.VERIFY_ASSERTIONS) Assert.fail("No such allocator"); } } | int bytes, int allocator) throws InlinePragma { switch (allocator) { case Plan.ALLOC_LOS: Plan.loSpace.initializeHeader(ref); return; case Plan.ALLOC_IMMORTAL: Plan.immortalSpace.postAlloc(ref); return; default: if (Assert.VERIFY_ASSERTIONS) Assert.fail("No such allocator"); } } | public void postAlloc(ObjectReference ref, ObjectReference typeRef, int bytes, int allocator) throws InlinePragma { switch (allocator) { case Plan.ALLOC_LOS: Plan.loSpace.initializeHeader(ref); return; case Plan.ALLOC_IMMORTAL: Plan.immortalSpace.postAlloc(ref); return; default: if (Assert.VERIFY_ASSERTIONS) Assert.fail("No such allocator"); } } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/MutatorContext.java/buggy/MMTk/src/org/mmtk/plan/MutatorContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1603,
8763,
12,
22101,
1278,
16,
31321,
618,
1957,
16,
1082,
202,
474,
1731,
16,
509,
26673,
13,
1216,
16355,
2050,
9454,
288,
202,
202,
9610,
261,
9853,
639,
13,
288,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1603,
8763,
12,
22101,
1278,
16,
31321,
618,
1957,
16,
1082,
202,
474,
1731,
16,
509,
26673,
13,
1216,
16355,
2050,
9454,
288,
202,
202,
9610,
261,
9853,
639,
13,
288,
20... |
String[] srcDirs = null; String[] srcFiles = null; | String[] srcDirs = new String[0]; String[] srcFiles = new String[0]; | private static void compile(final String srcDirList, final String srcFileList, final String srcFileIncludes, final String classPath, String destDir, final String annotationPropetiesFile) { if (srcDirList == null && srcFileList == null && srcFileIncludes == null) { throw new IllegalArgumentException("one of src or srcfiles or srcincludes must be not null"); } if ((srcDirList != null && srcFileList != null) || (srcDirList != null && srcFileIncludes != null) || (srcFileList != null && srcFileIncludes != null)) { // FIXME: refactor throw new IllegalArgumentException("maximum one of src, srcfiles or srcincludes must be not null"); } if (classPath == null) { throw new IllegalArgumentException("class path can not be null"); } if (destDir == null) { destDir = classPath; } String[] srcDirs = null; String[] srcFiles = null; if (srcDirList != null) { srcDirs = split(srcDirList, File.pathSeparator); } else if (srcFileList != null) { srcFiles = split(srcFileList, FILE_SEPARATOR); } else { srcFiles = loadSourceList(srcFileIncludes); } boolean isDir = (srcDirs != null); compile(s_verbose, srcDirs, srcFiles, split(classPath, File.pathSeparator), destDir, annotationPropetiesFile); } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a5b42f6b1dca45b7c4c7e0042533d20a0ecfe409/AnnotationC.java/buggy/aspectwerkz3/src/main/org/codehaus/aspectwerkz/annotation/AnnotationC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4074,
12,
6385,
514,
30585,
682,
16,
27573,
727,
514,
24672,
682,
16,
27573,
727,
514,
24672,
16815,
16,
27573,
727,
514,
22503,
16,
27573,
514,
26231,
16,
27573,
727,
514... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
4074,
12,
6385,
514,
30585,
682,
16,
27573,
727,
514,
24672,
682,
16,
27573,
727,
514,
24672,
16815,
16,
27573,
727,
514,
22503,
16,
27573,
514,
26231,
16,
27573,
727,
514... |
addJarButtonActionPerformed(evt); } | addJarButtonActionPerformed(evt); } | public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
527,
10813,
3616,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
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,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
527,
10813,
3616,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
new NoViableAltException("471:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 38, 0, input); | new NoViableAltException("482:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 39, 0, input); | public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:475:17: (id= ID | 'import' | 'use' | 'rule' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt38=10; switch ( input.LA(1) ) { case ID: alt38=1; break; case 17: alt38=2; break; case 43: alt38=3; break; case 19: alt38=4; break; case 26: alt38=5; break; case 27: alt38=6; break; case 20: alt38=7; break; case 23: alt38=8; break; case 24: alt38=9; break; case STRING: alt38=10; break; default: NoViableAltException nvae = new NoViableAltException("471:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 38, 0, input); throw nvae; } switch (alt38) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:475:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word1713); word=id.getText(); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:476:17: 'import' { match(input,17,FOLLOW_17_in_word1725); word="import"; } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:477:17: 'use' { match(input,43,FOLLOW_43_in_word1734); word="use"; } break; case 4 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:478:17: 'rule' { match(input,19,FOLLOW_19_in_word1746); word="rule"; } break; case 5 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:479:17: 'salience' { match(input,26,FOLLOW_26_in_word1757); word="salience"; } break; case 6 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:480:17: 'no-loop' { match(input,27,FOLLOW_27_in_word1765); word="no-loop"; } break; case 7 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:481:17: 'when' { match(input,20,FOLLOW_20_in_word1773); word="when"; } break; case 8 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:482:17: 'then' { match(input,23,FOLLOW_23_in_word1784); word="then"; } break; case 9 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:483:17: 'end' { match(input,24,FOLLOW_24_in_word1795); word="end"; } break; case 10 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/java/org/drools/lang/drl.g:484:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word1809); word=str.getText(); word=word.substring( 1, word.length()-1 ); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/23e6345ce1df19444a51fe623f6e8f8a637abc8b/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
... |
public void setMediareaderUnindexedSignal(int user_data){ SWIGTYPE_p_xmmsc_result_St result = Xmmsclient.xmmsc_signal_mediainfo_reader_unindexed(myConnection); Xmmsclient.xmmsc_result_notifier_set(result, XmmsclientConstants.SIGNAL_MEDIAREADER_UNINDEXED, user_data); Xmmsclient.xmmsc_result_unref(result); } | public void setMediareaderUnindexedSignal(int user_data) { SWIGTYPE_p_xmmsc_result_St result = Xmmsclient .xmmsc_signal_mediainfo_reader_unindexed(myConnection); Xmmsclient.xmmsc_result_notifier_set(result, XmmsclientConstants.SIGNAL_MEDIAREADER_UNINDEXED, user_data); Xmmsclient.xmmsc_result_unref(result); } | public void setMediareaderUnindexedSignal(int user_data){ SWIGTYPE_p_xmmsc_result_St result = Xmmsclient.xmmsc_signal_mediainfo_reader_unindexed(myConnection); Xmmsclient.xmmsc_result_notifier_set(result, XmmsclientConstants.SIGNAL_MEDIAREADER_UNINDEXED, user_data); Xmmsclient.xmmsc_result_unref(result); } | 2034 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2034/402d9111e257c0d0287af966f956df357886940a/JMain.java/clean/src/clients/lib/java/src/org/xmms2/JMain.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
13265,
77,
834,
1143,
984,
19626,
11208,
12,
474,
729,
67,
892,
15329,
202,
202,
18746,
3047,
2399,
67,
84,
67,
92,
81,
959,
71,
67,
2088,
67,
510,
563,
273,
1139,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
13265,
77,
834,
1143,
984,
19626,
11208,
12,
474,
729,
67,
892,
15329,
202,
202,
18746,
3047,
2399,
67,
84,
67,
92,
81,
959,
71,
67,
2088,
67,
510,
563,
273,
1139,... |
taglets.put("bug", singleton); taglets.put("test", singleton); taglets.put("summary", singleton); } | public static void register(Map taglets) { if (singleton == null) { singleton = new ICUIgnoreTaglet(); } taglets.put("bug", singleton); taglets.put("test", singleton); taglets.put("summary", singleton); } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/475c03442ff87bf255ce02ee1854f62acc1ea7e1/ICUTaglet.java/buggy/icu4j/src/com/ibm/icu/dev/tool/docs/ICUTaglet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1744,
12,
863,
1047,
17307,
13,
288,
3639,
309,
261,
24487,
422,
446,
13,
288,
3639,
6396,
273,
394,
28009,
3777,
1805,
1810,
5621,
3639,
289,
3639,
1047,
17307,
18,
458,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
12,
863,
1047,
17307,
13,
288,
3639,
309,
261,
24487,
422,
446,
13,
288,
3639,
6396,
273,
394,
28009,
3777,
1805,
1810,
5621,
3639,
289,
3639,
1047,
17307,
18,
458,
... | |
public Goal ExitPathsChecked(final Job job) { | public Goal ExitPathsChecked(Job job) { | public Goal ExitPathsChecked(final Job job) { TypeSystem ts = extInfo.typeSystem(); NodeFactory nf = extInfo.nodeFactory(); Goal g = internGoal(new VisitorGoal(job, new ExitChecker(job, ts, nf)) { public Collection prerequisiteGoals(Scheduler scheduler) { List l = new ArrayList(); l.addAll(super.prerequisiteGoals(scheduler)); l.add(ReachabilityChecked(job)); return l; } }); return g; } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/afcd70fac03893116cd8f7aaabfbcafe455bd6ae/JLScheduler.java/clean/src/polyglot/frontend/JLScheduler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4220,
287,
9500,
4466,
11454,
12,
2278,
1719,
13,
288,
3639,
1412,
3163,
3742,
273,
1110,
966,
18,
723,
3163,
5621,
3639,
2029,
1733,
13958,
273,
1110,
966,
18,
2159,
1733,
5621,
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,
4220,
287,
9500,
4466,
11454,
12,
2278,
1719,
13,
288,
3639,
1412,
3163,
3742,
273,
1110,
966,
18,
723,
3163,
5621,
3639,
2029,
1733,
13958,
273,
1110,
966,
18,
2159,
1733,
5621,
36... |
memento.putString(IWorkbenchConstants.TAG_TITLE, title); | public void saveState(IMemento memento) { if (getShell() != null) { title = getShell().getText(); bounds = getShell().getBounds(); } // Save the title. memento.putString(IWorkbenchConstants.TAG_TITLE, title); // Save the bounds. memento.putInteger(IWorkbenchConstants.TAG_X, bounds.x); memento.putInteger(IWorkbenchConstants.TAG_Y, bounds.y); memento.putInteger(IWorkbenchConstants.TAG_WIDTH, bounds.width); memento.putInteger(IWorkbenchConstants.TAG_HEIGHT, bounds.height); // Save the views. IMemento childMem = memento.createChild(IWorkbenchConstants.TAG_FOLDER); folder.saveState(childMem); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/80e6a58b9521acc6646cf804db97ef343f3b4fb7/DetachedWindow.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/DetachedWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1119,
12,
3445,
820,
83,
312,
820,
83,
13,
288,
3639,
309,
261,
588,
13220,
1435,
480,
446,
13,
288,
5411,
2077,
273,
7932,
1165,
7675,
588,
1528,
5621,
5411,
4972,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1119,
12,
3445,
820,
83,
312,
820,
83,
13,
288,
3639,
309,
261,
588,
13220,
1435,
480,
446,
13,
288,
5411,
2077,
273,
7932,
1165,
7675,
588,
1528,
5621,
5411,
4972,
273... | |
fw.setBusy(false); | fw.setBusy(false); | public void actionPerformed(ActionEvent e) { if (getMessageUI() != null) getMessageUI().setBusy(true); FolderDisplayUI fw = getFolderDisplayUI(); if (fw != null) fw.setBusy(true);; openWindowAsNew(false); if (fw != null) fw.setBusy(false); if (getMessageUI() != null) getMessageUI().setBusy(false); } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/MessageProxy.java/buggy/src/net/suberic/pooka/gui/MessageProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1377,
309,
261,
24906,
5370,
1435,
480,
446,
13,
202,
24906,
5370,
7675,
542,
29289,
12,
3767,
1769,
1377,
12623,
4236,
5370,
7600,
273,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
1377,
309,
261,
24906,
5370,
1435,
480,
446,
13,
202,
24906,
5370,
7675,
542,
29289,
12,
3767,
1769,
1377,
12623,
4236,
5370,
7600,
273,
29... |
array = RubyArray.newArray(ruby, Arrays.asList(args).subList(i, args.length)); | ArrayList list = new ArrayList(args.length - i); for (int j = i; j < args.length; j++) { list.add(args[j]); } array = RubyArray.newArray(ruby, list); | final public RubyObject execute(final Ruby ruby, final RubyObject receiver, final String name, RubyObject[] args, final boolean noSuper) { if (args == null) { args = new RubyObject[0]; } RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && ruby.isBlockGiven()) { optionalBlockArg = RubyProc.newProc(ruby, ruby.getClasses().getProcClass()); } ruby.getScope().push(); Namespace savedNamespace = null; if (namespace != null) { savedNamespace = ruby.getNamespace(); ruby.setNamespace(namespace); ruby.getActFrame().setNamespace(namespace); } if (body.getLocalNames() != null) { ruby.getScope().setLocalValues(new ArrayList(Collections.nCopies(body.getLocalNames().size(), ruby.getNil()))); ruby.getScope().setLocalNames(body.getLocalNames()); } RubyVarmap.push(ruby); try { if (argsNode != null) { int i = argsNode.getArgsCount(); if (i > args.length) { throw new ArgumentError(ruby, "Wrong # of arguments(" + args.length + " for " + i + ")"); } if (argsNode.getRestArg() == -1 && argsNode.getOptArgs() != null) { int opt = i; IListNode optNode = argsNode.getOptArgs(); Iterator iter = optNode.iterator(); while (iter.hasNext()) { iter.next(); opt++; } if (opt < args.length) { throw new ArgumentError(ruby, "wrong # of arguments(" + args.length + " for " + opt + ")"); } ruby.getActFrame().setArgs(args); } if (ruby.getScope().getLocalValues() != null) { if (i > 0) { for (int j = 0; j < i; j++) { ruby.getScope().setValue(j + 2, args[j]); } } if (argsNode.getOptArgs() != null) { IListNode optArgs = argsNode.getOptArgs(); Iterator iter = optArgs.iterator(); for (int j = i; j < args.length && iter.hasNext(); j++) { new AssignmentVisitor(ruby, receiver).assign((INode)iter.next(), args[j], true); i++; } // assign the default values. while (iter.hasNext()) { EvaluateVisitor.createVisitor(receiver).eval((INode)iter.next()); } } if (argsNode.getRestArg() >= 0) { RubyArray array = null; if (args.length > i) { array = RubyArray.newArray(ruby, Arrays.asList(args).subList(i, args.length)); } else { array = RubyArray.newArray(ruby, 0); } ruby.getScope().setValue(argsNode.getRestArg(), array); } } } if (optionalBlockArg != null) { ruby.getScope().setValue(argsNode.getBlockArgNode().getCount(), optionalBlockArg); } if (ruby.getRuntime().getTraceFunction() != null) { //a lot of complication to try to get a line number and a file name //without a NullPointerException ISourcePosition lPos = null; if (body != null) if (body.getBodyNode() != null) if(body.getBodyNode().getPosition() != null) lPos = body.getBodyNode().getPosition(); else ; else if (body.getPosition() != null) lPos = body.getPosition(); else ; else if (argsNode != null) lPos = argsNode.getPosition(); String lFile = ruby.getSourceFile(); int lLine = ruby.getSourceLine(); if (lPos != null) { lFile = lPos.getFile(); lLine = lPos.getLine(); } ruby.getRuntime().callTraceFunction("call", lFile, lLine, receiver, name, getImplementationClass()); // XXX } return receiver.eval(body.getBodyNode()); // skip scope assignment } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } finally { RubyVarmap.pop(ruby); ruby.getScope().pop(); if (savedNamespace != null) { ruby.setNamespace(savedNamespace); } if (ruby.getRuntime().getTraceFunction() != null) { String file = ruby.getFrameStack().getPrevious().getFile(); int line = ruby.getFrameStack().getPrevious().getLine(); if (file == null) { file = ruby.getSourceFile(); line = ruby.getSourceLine(); } ruby.getRuntime().callTraceFunction("return", file, line, receiver, name, getImplementationClass()); // XXX } } } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/a42a5780d9d19f5b3f27bdc079684319c5596e54/DefaultMethod.java/buggy/org/jruby/internal/runtime/methods/DefaultMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
1071,
19817,
921,
1836,
12,
6385,
19817,
22155,
16,
727,
19817,
921,
5971,
16,
727,
514,
508,
16,
19817,
921,
8526,
833,
16,
727,
1250,
1158,
8051,
13,
288,
3639,
309,
261,
1968,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
1071,
19817,
921,
1836,
12,
6385,
19817,
22155,
16,
727,
19817,
921,
5971,
16,
727,
514,
508,
16,
19817,
921,
8526,
833,
16,
727,
1250,
1158,
8051,
13,
288,
3639,
309,
261,
1968,
4... |
public org.quickfix.field.EncodedSecurityDescLen getEncodedSecurityDescLen() throws FieldNotFound { org.quickfix.field.EncodedSecurityDescLen value = new org.quickfix.field.EncodedSecurityDescLen(); | public quickfix.field.EncodedSecurityDescLen getEncodedSecurityDescLen() throws FieldNotFound { quickfix.field.EncodedSecurityDescLen value = new quickfix.field.EncodedSecurityDescLen(); | public org.quickfix.field.EncodedSecurityDescLen getEncodedSecurityDescLen() throws FieldNotFound { org.quickfix.field.EncodedSecurityDescLen value = new org.quickfix.field.EncodedSecurityDescLen(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelRequest.java/clean/src/java/src/quickfix/fix44/OrderCancelRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
4368,
4217,
2891,
28799,
4368,
4217,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
4368,
4217,
2891,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10397,
4368,
4217,
2891,
28799,
4368,
4217,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
4368,
4217,
2891,
... |
order[i] = keys[piv]; | order[i] = piv; | boolean pqInit() { int p, r, i, j; int piv; Stack[] stack = new Stack[50]; for (int k = 0; k < stack.length; k++) { stack[k] = new Stack(); } int top = 0; int seed = 2016473283; /* Create an array of indirect pointers to the keys, so that we * the handles we have returned are still valid. */ order = new Object[size + 1];/* the previous line is a patch to compensate for the fact that IBM *//* machines return a null on a malloc of zero bytes (unlike SGI), *//* so we have to put in this defense to guard against a memory *//* fault four lines down. from fossum@austin.ibm.com. */ p = 0; r = size - 1; for (piv = 0, i = p; i <= r; ++piv, ++i) { order[i] = keys[piv]; } /* Sort the indirect pointers in descending order, * using randomized Quicksort */ stack[top].p = p; stack[top].r = r; ++top; while (--top >= 0) { p = stack[top].p; r = stack[top].r; while (r > p + 10) { seed = Math.abs(seed * 1539415821 + 1); i = p + seed % (r - p + 1); keys[piv] = order[i]; order[i] = order[p]; order[p] = keys[piv]; i = p - 1; j = r + 1; do { do { ++i; } while (GT(leq, order[i], keys[piv])); do { --j; } while (LT(leq, order[j], keys[piv])); Swap(order, i, j); } while (i < j); Swap(order, i, j); /* Undo last swap */ if (i - p < r - j) { stack[top].p = j + 1; stack[top].r = r; ++top; r = i - 1; } else { stack[top].p = p; stack[top].r = i - 1; ++top; p = j + 1; } } /* Insertion sort small lists */ for (i = p + 1; i <= r; ++i) { keys[piv] = order[i]; for (j = i; j > p && LT(leq, order[j - 1], keys[piv]); --j) { order[j] = order[j - 1]; } order[j] = keys[piv]; } } max = size; initialized = true; heap.pqInit(); /* always succeeds *//* #ifndef NDEBUG p = order; r = p + size - 1; for (i = p; i < r; ++i) { assert (LEQ( * * (i + 1), **i )); } #endif*/ return true; } | 53985 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53985/4c6d717f37d4a6cf50fd06056f1a2357815a9ccf/PriorityQSort.java/clean/src/net/java/games/jogl/impl/tesselator/PriorityQSort.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
14619,
2570,
1435,
288,
3639,
509,
293,
16,
436,
16,
277,
16,
525,
31,
3639,
509,
293,
427,
31,
3639,
7283,
8526,
2110,
273,
394,
7283,
63,
3361,
15533,
3639,
364,
261,
474,
417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14619,
2570,
1435,
288,
3639,
509,
293,
16,
436,
16,
277,
16,
525,
31,
3639,
509,
293,
427,
31,
3639,
7283,
8526,
2110,
273,
394,
7283,
63,
3361,
15533,
3639,
364,
261,
474,
417,
... |
if(LOG.isTraceEnabled()) { LOG.trace("[DynamicMethods] Static method matched, marking and invoking"); | if(LOG.isDebugEnabled()) { LOG.debug("[DynamicMethods] Static method matched, attempting to invoke"); | public Object invokeStaticMethod(Object object, String methodName, Object[] arguments, InvocationCallback callBack) { if(LOG.isTraceEnabled()) { LOG.trace("[DynamicMethods] Attempting invocation of dynamic static method ["+methodName+"] on target ["+object+"] with arguments ["+ArrayUtils.toString( arguments )+"]"); //LOG.trace("[DynamicMethods] Registered dynamic static methods: ["+this.staticMethodInvocations+"]"); } for (Iterator iter = this.staticMethodInvocations.iterator(); iter.hasNext();) { StaticMethodInvocation methodInvocation = (StaticMethodInvocation)iter.next(); if (methodInvocation.isMethodMatch(methodName)) { if(LOG.isTraceEnabled()) { LOG.trace("[DynamicMethods] Static method matched, marking and invoking"); } callBack.markInvoked(); return methodInvocation.invoke(this.clazz, methodName, arguments); } } return null; } | 52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/19fd3a2d78bdfd2993d82b610221e3802ffcaf52/AbstractDynamicMethods.java/clean/src/commons/org/codehaus/groovy/grails/commons/metaclass/AbstractDynamicMethods.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
4356,
5788,
1305,
12,
921,
733,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
16,
11298,
2428,
745,
2711,
13,
288,
202,
202,
430,
12,
4842,
18,
291,
3448,
1526,
10756,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
4356,
5788,
1305,
12,
921,
733,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
16,
11298,
2428,
745,
2711,
13,
288,
202,
202,
430,
12,
4842,
18,
291,
3448,
1526,
10756,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.