rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyNumeric op_plus(RubyNumeric other) { | public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); return RubyFloat.newFloat(getRuntime(), getDoubleValue() + other.getDoubleValue()); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyFloat.java/buggy/src/org/jruby/RubyFloat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
10103,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
933... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
10103,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
933... |
String sig = c.getName() + '.' + functionName + '(' + | String sig = c.getName() + '.' + getFunctionName() + '(' + | public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { // Find a method that matches the types given. if (methods.length == 0) { throw new RuntimeException("No methods defined for call"); } int index = findFunction(cx, methods, args); if (index < 0) { Class c = methods[0].method().getDeclaringClass(); String sig = c.getName() + '.' + functionName + '(' + scriptSignature(args) + ')'; throw Context.reportRuntimeError1("msg.java.no_such_method", sig); } MemberBox meth = methods[index]; Class[] argTypes = meth.argTypes; // First, we marshall the args. Object[] origArgs = args; for (int i = 0; i < args.length; i++) { Object arg = args[i]; Object coerced = Context.jsToJava(arg, argTypes[i]); if (coerced != arg) { if (origArgs == args) { args = (Object[])args.clone(); } args[i] = coerced; } } Object javaObject; if (meth.isStatic()) { javaObject = null; // don't need an object } else { Scriptable o = thisObj; Class c = meth.getDeclaringClass(); for (;;) { if (o == null) { throw Context.reportRuntimeError3( "msg.nonjava.method", functionName, ScriptRuntime.toString(thisObj), c.getName()); } if (o instanceof Wrapper) { javaObject = ((Wrapper)o).unwrap(); if (c.isInstance(javaObject)) { break; } } o = o.getPrototype(); } } if (debug) { printDebug("Calling ", meth, args); } Object retval = meth.invoke(javaObject, args); Class staticType = meth.method().getReturnType(); if (debug) { Class actualType = (retval == null) ? null : retval.getClass(); System.err.println(" ----- Returned " + retval + " actual = " + actualType + " expect = " + staticType); } Object wrapped = cx.getWrapFactory().wrap(cx, scope, retval, staticType); if (debug) { Class actualType = (wrapped == null) ? null : wrapped.getClass(); System.err.println(" ----- Wrapped as " + wrapped + " class = " + actualType); } if (wrapped == Undefined.instance) return wrapped; if (wrapped == null && staticType == Void.TYPE) return Undefined.instance; return wrapped; } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/271fb8a31366d1ed2d5e5b21b321497a48f75694/NativeJavaMethod.java/clean/src/org/mozilla/javascript/NativeJavaMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
565,
288,
3639,
368,
4163,
279,
707,
716,
1885,
326,
1953,
864,
18,
3639,
309,
261,
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,
1033,
745,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
15604,
1033,
8526,
833,
13,
565,
288,
3639,
368,
4163,
279,
707,
716,
1885,
326,
1953,
864,
18,
3639,
309,
261,
5... |
.append(row.getLeft()).append(" AND ").append(table.getRightColName()).append(" = ") .append(row.getRight()).append(")"); | .append(row.getLeft()).append(" AND ").append(table.getRightColName()) .append(" = ").append(row.getRight()).append(")"); | protected void doIndirectionDeletes(String name, IndirectionTableBatch table) throws SQLException { Set rows = new CombinedSet(table.getRowsToDelete(), table.getRowsToInsert()); if (!rows.isEmpty()) { StringBuffer sql = new StringBuffer("DELETE FROM ").append(name).append(" WHERE ("); boolean needComma = false; Iterator dIter = rows.iterator(); while (dIter.hasNext()) { Row row = (Row) dIter.next(); if (needComma) { sql.append(" OR "); } sql.append("(").append(table.getLeftColName()).append(" = ") .append(row.getLeft()).append(" AND ").append(table.getRightColName()).append(" = ") .append(row.getRight()).append(")"); needComma = true; } sql.append(")"); addToSimpleBatch(sql.toString()); } } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/53b56eff2dde780fc290657336dffb8165afe975/BatchWriterSimpleImpl.java/buggy/intermine/src/java/org/intermine/sql/writebatch/BatchWriterSimpleImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3866,
2769,
7551,
12,
780,
508,
16,
5411,
9223,
2769,
1388,
4497,
1014,
13,
1216,
6483,
288,
3639,
1000,
2595,
273,
394,
27301,
694,
12,
2121,
18,
588,
4300,
14976,
9334,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3866,
2769,
7551,
12,
780,
508,
16,
5411,
9223,
2769,
1388,
4497,
1014,
13,
1216,
6483,
288,
3639,
1000,
2595,
273,
394,
27301,
694,
12,
2121,
18,
588,
4300,
14976,
9334,
... |
if (n.getKey().toLowerCase().equals(RepositoryTaskOutlineNode.LABEL_COMMENTS)) { | if (n.getKey().equals(RepositoryTaskOutlineNode.LABEL_COMMENTS)) { | public void selectionChanged(IWorkbenchPart part, ISelection selection) { if ((part instanceof ContentOutline) && (selection instanceof StructuredSelection)) { Object select = ((StructuredSelection) selection).getFirstElement(); if (select instanceof RepositoryTaskOutlineNode) { RepositoryTaskOutlineNode n = (RepositoryTaskOutlineNode) select; if (n != null && lastSelected != null && ContentOutlineTools.getHandle(n).equals(ContentOutlineTools.getHandle(lastSelected))) { // we don't need to set the selection if it is already // set return; } lastSelected = n; Object data = n.getData(); boolean highlight = true; if (n.getKey().toLowerCase().equals(RepositoryTaskOutlineNode.LABEL_COMMENTS)) { highlight = false; } if (n.getKey().toLowerCase().equals(RepositoryTaskOutlineNode.LABEL_NEW_COMMENT)) { selectNewComment(); } else if (n.getKey().toLowerCase().equals(RepositoryTaskOutlineNode.LABEL_DESCRIPTION)) { selectDescription(); } else if (data != null) { select(data, highlight); } } } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/5928ec25de2aeffe0559c8cba06cdab95296c329/AbstractRepositoryTaskEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
4421,
5033,
12,
45,
2421,
22144,
1988,
1087,
16,
467,
6233,
4421,
13,
288,
1082,
202,
430,
14015,
2680,
1276,
3697,
21805,
13,
597,
261,
10705,
1276,
7362,
2862,
6233,
371... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
4421,
5033,
12,
45,
2421,
22144,
1988,
1087,
16,
467,
6233,
4421,
13,
288,
1082,
202,
430,
14015,
2680,
1276,
3697,
21805,
13,
597,
261,
10705,
1276,
7362,
2862,
6233,
371... |
public XMLObject(Scriptable scope, Scriptable prototype) | public XMLObject() | public XMLObject(Scriptable scope, Scriptable prototype) { super(scope, prototype); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b16bf0fa43a29881dfe8132bcad7227d97b161ae/XMLObject.java/buggy/js/rhino/src/org/mozilla/javascript/xml/XMLObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3167,
921,
1435,
565,
288,
3639,
2240,
12,
4887,
16,
4409,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3167,
921,
1435,
565,
288,
3639,
2240,
12,
4887,
16,
4409,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
resetSorted(); fireTableRowsUpdated(row,row); } | resetSorted(); fireTableRowsUpdated(row, row); } | public void chgSession(int row) { resetSorted(); fireTableRowsUpdated(row,row); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d2b23250c95f45ef098e021cba0d970cd4733e3e/Connect.java/buggy/tn5250j/src/org/tn5250j/Connect.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
462,
75,
2157,
12,
474,
1027,
13,
288,
540,
2715,
11739,
5621,
540,
4452,
1388,
4300,
7381,
12,
492,
16,
492,
1769,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
918,
462,
75,
2157,
12,
474,
1027,
13,
288,
540,
2715,
11739,
5621,
540,
4452,
1388,
4300,
7381,
12,
492,
16,
492,
1769,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public IPatch getPatch(IPatch bank, int patchNum) { | public Patch getPatch(Patch bank, int patchNum) { | public IPatch getPatch(IPatch bank, int patchNum) { byte sysex[] = new byte[singleSize]; System.arraycopy(((Patch)bank).sysex, patchNum * singleSize, sysex, 0, singleSize); IPatch p = new Patch(sysex); return p; } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/8de9e9d107eb8c0487bbadf2f24d3a5cc9bc1add/NLPatchBankDriver.java/clean/JSynthLib/synthdrivers/NordLead/NLPatchBankDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12042,
1689,
505,
12,
7332,
11218,
16,
509,
4729,
2578,
13,
288,
565,
1160,
1393,
20909,
8526,
273,
394,
1160,
63,
7526,
1225,
15533,
565,
2332,
18,
1126,
3530,
12443,
12,
7332,
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,
282,
1071,
12042,
1689,
505,
12,
7332,
11218,
16,
509,
4729,
2578,
13,
288,
565,
1160,
1393,
20909,
8526,
273,
394,
1160,
63,
7526,
1225,
15533,
565,
2332,
18,
1126,
3530,
12443,
12,
7332,
13,... |
currentParam = param.substring(0, equals); param = param.substring(equals + 1); | currentParam = queryString.substring(0, equals); queryString = queryString.substring(equals + 1); | private int addParameters(String param, PostMethod postMethod) { //Parse the HTTP argument list and convert to a NameValuePair collection if(param==null || "".equals(param)) { return 0; } int equals; String currentParam; equals = param.indexOf("&"); if(equals > -1) { currentParam = param.substring(0, equals); param = param.substring(equals + 1); } else { currentParam = param; param = ""; } int parameterIndex = -1; while (currentParam != "") { String paramName, paramValue; equals = currentParam.indexOf("="); if (equals > -1) { paramName = currentParam.substring(0, equals); paramValue = currentParam.substring(equals + 1); parameterIndex ++; postMethod.addParameter(paramName, paramValue); } equals = param.indexOf("&"); if(equals > -1) { currentParam = param.substring(0, equals); param = param.substring(equals + 1); } else { currentParam = param; param = ""; } } return parameterIndex + 1; } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/aed1b8073b932d131d9ca8b3dcc198d77e9678b6/ObjectToHttpClientMethodRequest.java/clean/providers/http/src/java/org/mule/providers/http/transformers/ObjectToHttpClientMethodRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
2402,
12,
780,
579,
16,
5616,
1305,
1603,
1305,
13,
565,
288,
3639,
368,
3201,
326,
2239,
1237,
666,
471,
1765,
358,
279,
1770,
20337,
1849,
3639,
309,
12,
891,
631,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
527,
2402,
12,
780,
579,
16,
5616,
1305,
1603,
1305,
13,
565,
288,
3639,
368,
3201,
326,
2239,
1237,
666,
471,
1765,
358,
279,
1770,
20337,
1849,
3639,
309,
12,
891,
631,
201... |
match(63); | match(64); | public final void setter() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST setter_AST = null; Token defc = null; org.exist.xquery.parser.XQueryAST defc_AST = null; Token defu = null; org.exist.xquery.parser.XQueryAST defu_AST = null; Token deff = null; org.exist.xquery.parser.XQueryAST deff_AST = null; { boolean synPredMatched38 = false; if (((LA(1)==LITERAL_declare))) { int _m38 = mark(); synPredMatched38 = true; inputState.guessing++; try { { match(LITERAL_declare); match(LITERAL_default); } } catch (RecognitionException pe) { synPredMatched38 = false; } rewind(_m38); inputState.guessing--; } if ( synPredMatched38 ) { match(LITERAL_declare); match(LITERAL_default); { switch ( LA(1)) { case LITERAL_collation: { match(LITERAL_collation); defc = LT(1); defc_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(defc); astFactory.addASTChild(currentAST, defc_AST); match(STRING_LITERAL); if ( inputState.guessing==0 ) { setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; setter_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(DEF_COLLATION_DECL,"defaultCollationDecl")).add(defc_AST)); currentAST.root = setter_AST; currentAST.child = setter_AST!=null &&setter_AST.getFirstChild()!=null ? setter_AST.getFirstChild() : setter_AST; currentAST.advanceChildToEnd(); } break; } case LITERAL_element: { match(LITERAL_element); match(LITERAL_namespace); defu = LT(1); defu_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(defu); astFactory.addASTChild(currentAST, defu_AST); match(STRING_LITERAL); if ( inputState.guessing==0 ) { setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; setter_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(DEF_NAMESPACE_DECL,"defaultNamespaceDecl")).add(defu_AST)); currentAST.root = setter_AST; currentAST.child = setter_AST!=null &&setter_AST.getFirstChild()!=null ? setter_AST.getFirstChild() : setter_AST; currentAST.advanceChildToEnd(); } break; } case LITERAL_function: { match(LITERAL_function); match(LITERAL_namespace); deff = LT(1); deff_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(deff); astFactory.addASTChild(currentAST, deff_AST); match(STRING_LITERAL); if ( inputState.guessing==0 ) { setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; setter_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(DEF_FUNCTION_NS_DECL,"defaultFunctionNSDecl")).add(deff_AST)); currentAST.root = setter_AST; currentAST.child = setter_AST!=null &&setter_AST.getFirstChild()!=null ? setter_AST.getFirstChild() : setter_AST; currentAST.advanceChildToEnd(); } break; } case LITERAL_order: { org.exist.xquery.parser.XQueryAST tmp68_AST = null; tmp68_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp68_AST); match(LITERAL_order); match(LITERAL_empty); { switch ( LA(1)) { case LITERAL_greatest: { org.exist.xquery.parser.XQueryAST tmp70_AST = null; tmp70_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp70_AST); match(LITERAL_greatest); break; } case LITERAL_least: { org.exist.xquery.parser.XQueryAST tmp71_AST = null; tmp71_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp71_AST); match(LITERAL_least); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } else { boolean synPredMatched42 = false; if (((LA(1)==LITERAL_declare))) { int _m42 = mark(); synPredMatched42 = true; inputState.guessing++; try { { match(LITERAL_declare); match(63); } } catch (RecognitionException pe) { synPredMatched42 = false; } rewind(_m42); inputState.guessing--; } if ( synPredMatched42 ) { match(LITERAL_declare); org.exist.xquery.parser.XQueryAST tmp73_AST = null; tmp73_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp73_AST); match(63); { switch ( LA(1)) { case LITERAL_preserve: { org.exist.xquery.parser.XQueryAST tmp74_AST = null; tmp74_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp74_AST); match(LITERAL_preserve); break; } case LITERAL_strip: { org.exist.xquery.parser.XQueryAST tmp75_AST = null; tmp75_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp75_AST); match(LITERAL_strip); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } else { boolean synPredMatched45 = false; if (((LA(1)==LITERAL_declare))) { int _m45 = mark(); synPredMatched45 = true; inputState.guessing++; try { { match(LITERAL_declare); match(66); } } catch (RecognitionException pe) { synPredMatched45 = false; } rewind(_m45); inputState.guessing--; } if ( synPredMatched45 ) { match(LITERAL_declare); org.exist.xquery.parser.XQueryAST tmp77_AST = null; tmp77_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp77_AST); match(66); org.exist.xquery.parser.XQueryAST tmp78_AST = null; tmp78_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp78_AST); match(STRING_LITERAL); } else { boolean synPredMatched47 = false; if (((LA(1)==LITERAL_declare))) { int _m47 = mark(); synPredMatched47 = true; inputState.guessing++; try { { match(LITERAL_declare); match(LITERAL_ordering); } } catch (RecognitionException pe) { synPredMatched47 = false; } rewind(_m47); inputState.guessing--; } if ( synPredMatched47 ) { match(LITERAL_declare); org.exist.xquery.parser.XQueryAST tmp80_AST = null; tmp80_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp80_AST); match(LITERAL_ordering); { switch ( LA(1)) { case LITERAL_ordered: { org.exist.xquery.parser.XQueryAST tmp81_AST = null; tmp81_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp81_AST); match(LITERAL_ordered); break; } case LITERAL_unordered: { org.exist.xquery.parser.XQueryAST tmp82_AST = null; tmp82_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp82_AST); match(LITERAL_unordered); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } else { boolean synPredMatched50 = false; if (((LA(1)==LITERAL_declare))) { int _m50 = mark(); synPredMatched50 = true; inputState.guessing++; try { { match(LITERAL_declare); match(LITERAL_construction); } } catch (RecognitionException pe) { synPredMatched50 = false; } rewind(_m50); inputState.guessing--; } if ( synPredMatched50 ) { match(LITERAL_declare); org.exist.xquery.parser.XQueryAST tmp84_AST = null; tmp84_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp84_AST); match(LITERAL_construction); { switch ( LA(1)) { case LITERAL_preserve: { org.exist.xquery.parser.XQueryAST tmp85_AST = null; tmp85_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp85_AST); match(LITERAL_preserve); break; } case LITERAL_strip: { org.exist.xquery.parser.XQueryAST tmp86_AST = null; tmp86_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp86_AST); match(LITERAL_strip); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } else { boolean synPredMatched53 = false; if (((LA(1)==LITERAL_declare))) { int _m53 = mark(); synPredMatched53 = true; inputState.guessing++; try { { match(LITERAL_declare); match(67); } } catch (RecognitionException pe) { synPredMatched53 = false; } rewind(_m53); inputState.guessing--; } if ( synPredMatched53 ) { match(LITERAL_declare); org.exist.xquery.parser.XQueryAST tmp88_AST = null; tmp88_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp88_AST); match(67); preserveMode(); astFactory.addASTChild(currentAST, returnAST); match(COMMA); inheritMode(); astFactory.addASTChild(currentAST, returnAST); } else { throw new NoViableAltException(LT(1), getFilename()); } }}}}} } setter_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = setter_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/68bb69fc2bc91cbece43dcdf563e1be3ba003e1b/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
7794,
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,
202,
3341,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7794,
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,
202,
3341,
1... |
asm.emitMOV_Reg_RegDisp(S0, S0, cm.getOsrJTOCoffset()); | asm.emitMOV_Reg_RegDisp(S0, S0, Offset.fromIntSignExtend(cm.getOsrJTOCoffset())); | public static boolean install(OSR_ExecutionState state, VM_CompiledMethod cm) { VM_Thread thread = state.getThread(); byte[] stack = thread.stack; Offset tsfromFPOffset = state.getTSFPOffset(); Offset fooFPOffset = state.getFPOffset(); int foomid = VM_Magic.getIntAtOffset(stack, fooFPOffset.add(STACKFRAME_METHOD_ID_OFFSET)); VM_CompiledMethod foo = VM_CompiledMethods.getCompiledMethod(foomid); int cType = foo.getCompilerType(); int SW_WIDTH = 4; // this offset is used to adjust SP to FP right after return // from a call. 4 bytes for return address and // 4 bytes for saved FP of tsfrom. int sp2fpOffset = fooFPOffset.toInt() - tsfromFPOffset.toInt() - 2*SW_WIDTH; // should given an estimated length, and print the instructions // for debugging VM_Assembler asm = new VM_Assembler(50, VM.TraceOnStackReplacement); // 1. generate bridge instructions to recover saved registers if (cType == VM_CompiledMethod.BASELINE) {// asm.emitINT_Imm(3); // break here for debugging // unwind stack pointer, SP is FP now asm.emitADD_Reg_Imm(SP, sp2fpOffset); // before restoring caller's JTOC (maybe from opt compiler), we need // to use the true JTOC to get target address // use scratch register S0 to hold the address // ASSUMPTION: JTOC is really a JTOC, it is true for baseline compiler// VM_ProcessorLocalState.emitMoveFieldToReg(asm, JTOC, VM_Entrypoints.jtocField.getOffsetAsInt()); asm.emitMOV_Reg_RegDisp(S0, JTOC, cm.getOsrJTOCoffset()); // restore the caller's JTOC asm.emitMOV_Reg_RegDisp(JTOC, SP, JTOC_SAVE_OFFSET); // this is the caller's JTOC // restore saved EBX asm.emitMOV_Reg_RegDisp(EBX, SP, EBX_SAVE_OFFSET); // restore frame pointer asm.emitPOP_RegDisp(PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // donot pop return address and parameters, // we make a faked call to newly compiled method asm.emitJMP_Reg(S0); } else if (cType == VM_CompiledMethod.OPT) { /////////////////////////////////////////////////// // recover saved registers from foo's stack frame /////////////////////////////////////////////////// VM_OptCompiledMethod fooOpt = (VM_OptCompiledMethod)foo; // foo definitely not save volatile boolean saveVolatile = fooOpt.isSaveVolatile(); if (VM.VerifyAssertions) { VM._assert(!saveVolatile); } // assume SP is on foo's stack frame, int firstNonVolatile = fooOpt.getFirstNonVolatileGPR(); int nonVolatiles = fooOpt.getNumberOfNonvolatileGPRs(); int nonVolatileOffset = fooOpt.getUnsignedNonVolatileOffset(); for (int i = firstNonVolatile; i < firstNonVolatile + nonVolatiles; i++) { asm.emitMOV_Reg_RegDisp(NONVOLATILE_GPRS[i], SP, sp2fpOffset-nonVolatileOffset); nonVolatileOffset += SW_WIDTH; } // adjust SP to frame pointer asm.emitADD_Reg_Imm(SP, sp2fpOffset); // restore frame pointer asm.emitPOP_RegDisp(PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // we need a scratch registers here, using scratch register here // get JTOC content into S0 (ECX) asm.emitMOV_Reg_RegDisp(S0, PR, VM_Entrypoints.jtocField.getOffsetAsInt()); // move the address to S0 asm.emitMOV_Reg_RegDisp(S0, S0, cm.getOsrJTOCoffset()); // branch to the newly compiled instructions asm.emitJMP_Reg(S0); } if (VM.TraceOnStackReplacement) { VM.sysWrite("new CM instr addr "); VM.sysWriteHex(VM_Statics.getSlotContentsAsInt(cm.getOsrJTOCoffset() >> 2)); VM.sysWriteln(); VM.sysWrite("JTOC register "); VM.sysWriteHex(VM_Magic.getTocPointer()); VM.sysWriteln(); VM.sysWrite("Processor register "); VM.sysWriteHex(VM_Magic.objectAsAddress(VM_Magic.getProcessorRegister())); VM.sysWriteln(); VM.sysWriteln("tsfromFPOffset "+Integer.toHexString(tsfromFPOffset.toInt())); VM.sysWriteln("fooFPOffset " + Integer.toHexString(fooFPOffset.toInt())); VM.sysWriteln("SP + "+ (sp2fpOffset+4)); } // 3. set thread flags thread.isWaitingForOsr = true; thread.bridgeInstructions = asm.getMachineCodes(); thread.fooFPOffset = fooFPOffset; thread.tsFPOffset = tsfromFPOffset; Address bridgeaddr = VM_Magic.objectAsAddress(thread.bridgeInstructions); VM_Memory.sync(bridgeaddr, thread.bridgeInstructions.length() << LG_INSTRUCTION_WIDTH); if (VM.LogAOSEvents) { VM_AOSLogging.logOsrEvent("OSR code installation succeeded"); } return true; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/c19269673fcdd14e39a92c30e8ccef4cb7ce0402/OSR_CodeInstaller.java/clean/rvm/src/vm/arch/intel/executionState/OSR_CodeInstaller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
3799,
12,
4618,
54,
67,
3210,
1119,
919,
16,
7682,
8251,
67,
20733,
1305,
5003,
13,
288,
565,
8251,
67,
3830,
2650,
273,
919,
18,
588,
3830,
5621,
565,
1160,
8526,
2110... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
3799,
12,
4618,
54,
67,
3210,
1119,
919,
16,
7682,
8251,
67,
20733,
1305,
5003,
13,
288,
565,
8251,
67,
3830,
2650,
273,
919,
18,
588,
3830,
5621,
565,
1160,
8526,
2110... |
sender=random_member; | dest=random_member; | public void retransmit(long first_seqno, long last_seqno, Address sender) { NakAckHeader hdr; Message retransmit_msg; if(xmit_from_random_member && !local_addr.equals(sender)) { Address random_member=(Address)Util.pickRandomElement(members); if(random_member != null && !local_addr.equals(random_member)) { sender=random_member; if(log.isTraceEnabled()) log.trace("picked random member " + random_member + " to send XMIT request to"); } } retransmit_msg=new Message(sender, null, null); if(log.isTraceEnabled()) log.trace(local_addr + ": sending XMIT_REQ ([" + first_seqno + ", " + last_seqno + "]) to " + sender); hdr=new NakAckHeader(NakAckHeader.XMIT_REQ, first_seqno, last_seqno, sender); retransmit_msg.putHeader(name, hdr); passDown(new Event(Event.MSG, retransmit_msg)); } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/b85e2de5b1f645881680c96fb57e604eb54bd500/NAKACK.java/clean/src/org/jgroups/protocols/pbcast/NAKACK.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
283,
2338,
1938,
12,
5748,
1122,
67,
5436,
2135,
16,
1525,
1142,
67,
5436,
2135,
16,
5267,
5793,
13,
288,
3639,
423,
581,
11931,
1864,
7723,
31,
3639,
2350,
283,
2338,
1938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
283,
2338,
1938,
12,
5748,
1122,
67,
5436,
2135,
16,
1525,
1142,
67,
5436,
2135,
16,
5267,
5793,
13,
288,
3639,
423,
581,
11931,
1864,
7723,
31,
3639,
2350,
283,
2338,
1938,
... |
IResource resource = root.getUnderlyingResource(); | IResource resource= root.getUnderlyingResource(); | public Object[] getChildren(Object parentElement) { try { if (parentElement instanceof IJavaElement) { IJavaElement iJavaElement= (IJavaElement) parentElement; int type= iJavaElement.getElementType(); switch (type) { case IJavaElement.JAVA_PROJECT: { IJavaProject project= (IJavaProject)iJavaElement; IProject proj= project.getProject(); List children= new ArrayList(); IPackageFragmentRoot defaultroot= project.getPackageFragmentRoot(proj); if(defaultroot.exists()){ IJavaElement[] els= defaultroot.getChildren(); children= getTopLevelChildrenByElementName(els); } return filter(children.toArray()); } case IJavaElement.PACKAGE_FRAGMENT_ROOT : { IPackageFragmentRoot root = (IPackageFragmentRoot) parentElement; if (root.exists()) { IResource resource = root.getUnderlyingResource(); if (root.isArchive()) { IJavaElement[] els = root.getChildren(); return filter(getTopLevelChildrenByElementName(els).toArray()); } else if (resource instanceof IFolder) { IFolder folder = (IFolder) resource; IResource[] reses = folder.members(); List children = getFolders(reses); IPackageFragment defaultPackage= root.getPackageFragment(""); //$NON-NLS-1$ if(defaultPackage.exists()) children.add(defaultPackage); return filter(children.toArray()); } } break; } case IJavaElement.PACKAGE_FRAGMENT : { IPackageFragment packageFragment = (IPackageFragment) parentElement; if (!packageFragment.isDefaultPackage()) { IResource resource = packageFragment.getUnderlyingResource(); if (resource != null && resource instanceof IFolder) { IFolder folder = (IFolder) resource; IResource[] reses = folder.members(); Object[] children = getFolders(reses).toArray(); return filter(children); //if the resource is null, maybe member of an archive } else { IJavaElement parent = packageFragment.getParent(); if (parent instanceof IPackageFragmentRoot) { IPackageFragmentRoot root = (IPackageFragmentRoot) parent; Object[] children = findNextLevelChildrenByElementName(root, packageFragment); return filter(children); } } } break; } default : // do nothing } } } catch (JavaModelException e) { JavaPlugin.log(e); } catch (CoreException e) { JavaPlugin.log(e); } return new Object[0]; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/9918e71be64a3cdd6cfae5e7a3fb41d7eaddabd4/PackageFragmentProvider.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageFragmentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
8526,
10268,
12,
921,
30363,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
2938,
1046,
1276,
467,
5852,
1046,
13,
288,
9506,
202,
45,
5852,
1046,
277,
5852,
1046,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
8526,
10268,
12,
921,
30363,
13,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
2938,
1046,
1276,
467,
5852,
1046,
13,
288,
9506,
202,
45,
5852,
1046,
277,
5852,
1046,
33... |
closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); | closeProjectItem.setFont(BUTTON_FONT); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; priorityButtonGroup = new javax.swing.ButtonGroup(); effortButtonGroup = new javax.swing.ButtonGroup(); consoleSplitter = new javax.swing.JSplitPane(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); reportPanel = new javax.swing.JPanel(); editProjectPanel = new javax.swing.JPanel(); jarFileLabel = new javax.swing.JLabel(); jarNameTextField = new javax.swing.JTextField(); addJarButton = new javax.swing.JButton(); jarFileListLabel = new javax.swing.JLabel(); sourceDirLabel = new javax.swing.JLabel(); srcDirTextField = new javax.swing.JTextField(); addSourceDirButton = new javax.swing.JButton(); sourceDirListLabel = new javax.swing.JLabel(); removeJarButton = new javax.swing.JButton(); removeSrcDirButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); browseJarButton = new javax.swing.JButton(); browseSrcDirButton = new javax.swing.JButton(); editProjectLabel = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); findBugsButton = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jarFileListScrollPane = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); sourceDirListScrollPane = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); classpathEntryLabel = new javax.swing.JLabel(); classpathEntryListLabel = new javax.swing.JLabel(); classpathEntryTextField = new javax.swing.JTextField(); browseClasspathEntryButton = new javax.swing.JButton(); addClasspathEntryButton = new javax.swing.JButton(); removeClasspathEntryButton = new javax.swing.JButton(); classpathEntryListScrollPane = new javax.swing.JScrollPane(); classpathEntryList = new javax.swing.JList(); jSeparator5 = new javax.swing.JSeparator(); sourceUpButton = new javax.swing.JButton(); sourceDownButton = new javax.swing.JButton(); classpathUpButton = new javax.swing.JButton(); classpathDownButton = new javax.swing.JButton(); bugTreePanel = new javax.swing.JPanel(); bugTreeBugDetailsSplitter = new javax.swing.JSplitPane(); groupByTabbedPane = new javax.swing.JTabbedPane(); byClassScrollPane = new javax.swing.JScrollPane(); byClassBugTree = new javax.swing.JTree(); byPackageScrollPane = new javax.swing.JScrollPane(); byPackageBugTree = new javax.swing.JTree(); byBugTypeScrollPane = new javax.swing.JScrollPane(); byBugTypeBugTree = new javax.swing.JTree(); byBugCategoryScrollPane = new javax.swing.JScrollPane(); byBugCategoryBugTree = new javax.swing.JTree(); bySummary = new javax.swing.JScrollPane(); bugSummaryEditorPane = new javax.swing.JEditorPane(); bugDetailsTabbedPane = new javax.swing.JTabbedPane(); bugDescriptionScrollPane = new javax.swing.JScrollPane(); bugDescriptionEditorPane = new javax.swing.JEditorPane(); sourceTextAreaScrollPane = new javax.swing.JScrollPane(); sourceTextArea = new javax.swing.JTextArea(); annotationTextAreaScrollPane = new javax.swing.JScrollPane(); annotationTextArea = new javax.swing.JTextArea(); consoleScrollPane = new javax.swing.JScrollPane(); consoleMessageArea = new javax.swing.JTextArea(); urlLabel = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); logoLabel = new javax.swing.JLabel(); growBoxSpacer = new javax.swing.JLabel(); theMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); recentProjectsMenu = new javax.swing.JMenu(); jSeparator9 = new javax.swing.JSeparator(); closeProjectItem = new javax.swing.JMenuItem(); saveProjectItem = new javax.swing.JMenuItem(); saveProjectAsItem = new javax.swing.JMenuItem(); reloadProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); loadBugsItem = new javax.swing.JMenuItem(); saveBugsItem = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); editMenu = new javax.swing.JMenu(); cutItem = new javax.swing.JMenuItem(); copyItem = new javax.swing.JMenuItem(); pasteItem = new javax.swing.JMenuItem(); jSeparator10 = new javax.swing.JSeparator(); selectAllItem = new javax.swing.JMenuItem(); viewMenu = new javax.swing.JMenu(); viewConsoleItem = new javax.swing.JCheckBoxMenuItem(); viewBugDetailsItem = new javax.swing.JCheckBoxMenuItem(); fullDescriptionsItem = new javax.swing.JCheckBoxMenuItem(); jSeparator7 = new javax.swing.JSeparator(); filterWarningsMenu = new javax.swing.JMenu(); expPriorityButton = new javax.swing.JRadioButtonMenuItem(); lowPriorityButton = new javax.swing.JRadioButtonMenuItem(); mediumPriorityButton = new javax.swing.JRadioButtonMenuItem(); highPriorityButton = new javax.swing.JRadioButtonMenuItem(); jSeparator11 = new javax.swing.JSeparator(); jSeparator8 = new javax.swing.JSeparator(); viewProjectItem = new javax.swing.JRadioButtonMenuItem(); viewBugsItem = new javax.swing.JRadioButtonMenuItem(); settingsMenu = new javax.swing.JMenu(); configureDetectorsItem = new javax.swing.JMenuItem(); effortMenu = new javax.swing.JMenu(); minEffortItem = new javax.swing.JCheckBoxMenuItem(); normalEffortItem = new javax.swing.JCheckBoxMenuItem(); maxEffortItem = new javax.swing.JCheckBoxMenuItem(); helpMenu = new javax.swing.JMenu(); aboutItem = new javax.swing.JMenuItem(); getContentPane().setLayout(new java.awt.GridBagLayout()); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } }); consoleSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); consoleSplitter.setResizeWeight(1.0); consoleSplitter.setOneTouchExpandable(true); consoleSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { consoleSplitterPropertyChange(evt); } }); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Archive or directory:"); jarFileLabel.setText(L10N.getLocalString("dlg.jarfile_lbl", "Archive or Directory:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); jarNameTextField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); addJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); addJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); addJarButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Archives/directories:"); jarFileListLabel.setText(L10N.getLocalString("dlg.jarlist_lbl", "Archives/Directories:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source directory:"); sourceDirLabel.setText(L10N.getLocalString("dlg.srcfile_lbl", "Source directory:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); srcDirTextField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 8; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source directories:"); sourceDirListLabel.setText(L10N.getLocalString("dlg.srclist_lbl", "Source directories:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeJarButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseJarButton.setText("Browse"); browseJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseJarButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse...")); browseJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseSrcDirButton.setText("Browse"); browseSrcDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse...")); browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 8; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseSrcDirButton, gridBagConstraints); editProjectLabel.setBackground(new java.awt.Color(0, 0, 204)); editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24)); editProjectLabel.setForeground(new java.awt.Color(255, 255, 255)); editProjectLabel.setText("Project"); editProjectLabel.setOpaque(true); editProjectLabel.setText(L10N.getLocalString("dlg.project_lbl", "Project")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setMnemonic('B'); findBugsButton.setText("Find Bugs!"); findBugsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findBugsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 21; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(findBugsButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 14; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jarFileListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); jarFileList.setFont(new java.awt.Font("Dialog", 0, 12)); disableEditKeyBindings(jarFileList); jarFileList.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); jarFileListScrollPane.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.4; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListScrollPane, gridBagConstraints); sourceDirListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12)); disableEditKeyBindings(sourceDirList); sourceDirList.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); sourceDirListScrollPane.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.1; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListScrollPane, gridBagConstraints); classpathEntryLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryLabel.setText("Classpath entry:"); classpathEntryLabel.setText(L10N.getLocalString("dlg.classpathfile_lbl", "Classpath entry:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 15; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryLabel, gridBagConstraints); classpathEntryListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListLabel.setText("Classpath entries:"); classpathEntryListLabel.setText(L10N.getLocalString("dlg.classpathlist_lbl", "Classpath entries:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryListLabel, gridBagConstraints); classpathEntryTextField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 15; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(classpathEntryTextField, gridBagConstraints); browseClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseClasspathEntryButton.setText("Browse"); browseClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse...")); browseClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 15; editProjectPanel.add(browseClasspathEntryButton, gridBagConstraints); addClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); addClasspathEntryButton.setText("Add"); addClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 15; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(addClasspathEntryButton, gridBagConstraints); removeClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeClasspathEntryButton.setText("Remove"); removeClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(removeClasspathEntryButton, gridBagConstraints); classpathEntryListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); classpathEntryList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); classpathEntryList.setFont(new java.awt.Font("Dialog", 0, 12)); disableEditKeyBindings(classpathEntryList); classpathEntryList.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); classpathEntryListScrollPane.setViewportView(classpathEntryList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 16; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.1; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(classpathEntryListScrollPane, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 20; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); editProjectPanel.add(jSeparator5, gridBagConstraints); sourceUpButton.setFont(new java.awt.Font("Dialog", 0, 12)); sourceUpButton.setText("Up"); sourceUpButton.setMaximumSize(new java.awt.Dimension(90, 25)); sourceUpButton.setMinimumSize(new java.awt.Dimension(90, 25)); sourceUpButton.setPreferredSize(new java.awt.Dimension(90, 25)); sourceUpButton.setText(L10N.getLocalString("dlg.up_btn", "Up")); sourceUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sourceUpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 10; gridBagConstraints.weighty = 0.2; editProjectPanel.add(sourceUpButton, gridBagConstraints); sourceDownButton.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDownButton.setText("Down"); sourceDownButton.setMaximumSize(new java.awt.Dimension(90, 25)); sourceDownButton.setMinimumSize(new java.awt.Dimension(90, 25)); sourceDownButton.setPreferredSize(new java.awt.Dimension(90, 25)); sourceDownButton.setText(L10N.getLocalString("dlg.down_btn", "Down")); sourceDownButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sourceDownButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 11; editProjectPanel.add(sourceDownButton, gridBagConstraints); classpathUpButton.setFont(new java.awt.Font("Dialog", 0, 12)); classpathUpButton.setText("Up"); classpathUpButton.setMaximumSize(new java.awt.Dimension(90, 25)); classpathUpButton.setMinimumSize(new java.awt.Dimension(90, 25)); classpathUpButton.setPreferredSize(new java.awt.Dimension(90, 25)); classpathUpButton.setText(L10N.getLocalString("dlg.up_btn", "Up")); classpathUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { classpathUpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 17; gridBagConstraints.weighty = 0.2; editProjectPanel.add(classpathUpButton, gridBagConstraints); classpathDownButton.setFont(new java.awt.Font("Dialog", 0, 12)); classpathDownButton.setText("Down"); classpathDownButton.setMaximumSize(new java.awt.Dimension(90, 25)); classpathDownButton.setMinimumSize(new java.awt.Dimension(90, 25)); classpathDownButton.setPreferredSize(new java.awt.Dimension(90, 25)); classpathDownButton.setText(L10N.getLocalString("dlg.down_btn", "Down")); classpathDownButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { classpathDownButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 18; editProjectPanel.add(classpathDownButton, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); bugTreePanel.setLayout(new java.awt.GridBagLayout()); bugTreeBugDetailsSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); bugTreeBugDetailsSplitter.setResizeWeight(1.0); bugTreeBugDetailsSplitter.setOneTouchExpandable(true); bugTreeBugDetailsSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { bugTreeBugDetailsSplitterPropertyChange(evt); } }); byClassBugTree.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); byClassScrollPane.setViewportView(byClassBugTree); groupByTabbedPane.addTab("By Class", byClassScrollPane); byPackageBugTree.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); byPackageScrollPane.setViewportView(byPackageBugTree); groupByTabbedPane.addTab("By Package", byPackageScrollPane); byBugTypeBugTree.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); byBugTypeScrollPane.setViewportView(byBugTypeBugTree); groupByTabbedPane.addTab("By Bug Type", byBugTypeScrollPane); byBugCategoryBugTree.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); byBugCategoryScrollPane.setViewportView(byBugCategoryBugTree); groupByTabbedPane.addTab("By Category Type", byBugCategoryScrollPane); bugSummaryEditorPane.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); bySummary.setViewportView(bugSummaryEditorPane); groupByTabbedPane.addTab("Summary", bySummary); bugTreeBugDetailsSplitter.setTopComponent(groupByTabbedPane); bugDescriptionEditorPane.setEditable(false); bugDescriptionEditorPane.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); bugDescriptionScrollPane.setViewportView(bugDescriptionEditorPane); bugDetailsTabbedPane.addTab("Details", bugDescriptionScrollPane); sourceTextAreaScrollPane.setMinimumSize(new java.awt.Dimension(22, 180)); sourceTextAreaScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); sourceTextArea.setEditable(false); sourceTextArea.setFont(new java.awt.Font("Monospaced", 0, 12)); sourceTextArea.setEnabled(false); sourceTextArea.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); sourceTextAreaScrollPane.setViewportView(sourceTextArea); bugDetailsTabbedPane.addTab("Source code", sourceTextAreaScrollPane); annotationTextArea.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); annotationTextAreaScrollPane.setViewportView(annotationTextArea); bugDetailsTabbedPane.addTab("Annotations", annotationTextAreaScrollPane); bugTreeBugDetailsSplitter.setBottomComponent(bugDetailsTabbedPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; bugTreePanel.add(bugTreeBugDetailsSplitter, gridBagConstraints); viewPanel.add(bugTreePanel, "BugTree"); consoleSplitter.setTopComponent(viewPanel); { equalizeControls( new JComponent[] { addJarButton, addSourceDirButton, addClasspathEntryButton, removeJarButton, removeSrcDirButton, removeClasspathEntryButton, browseJarButton, browseSrcDirButton, browseClasspathEntryButton, sourceUpButton, sourceDownButton, classpathUpButton, classpathDownButton }); groupByTabbedPane.setTitleAt(0, L10N.getLocalString( "dlg.byclass_tab", "By Class")); groupByTabbedPane.setTitleAt(1, L10N.getLocalString( "dlg.bypackage_tab", "By Package")); groupByTabbedPane.setTitleAt(2, L10N.getLocalString( "dlg.bybugtype_tab", "By Bug Type")); groupByTabbedPane.setTitleAt(3, L10N.getLocalString( "dlg.bybugcategory_tab", "By Bug Category")); groupByTabbedPane.setTitleAt(4, L10N.getLocalString( "dlg.summary_tab", "Summary")); bugDetailsTabbedPane.setTitleAt(0, L10N.getLocalString( "dlg.details_tab", "Details")); bugDetailsTabbedPane.setTitleAt(1, L10N.getLocalString( "dlg.sourcecode_tab", "Source Code")); bugDetailsTabbedPane.setTitleAt(2, L10N.getLocalString( "dlg.annotations_tab", "Annotations")); } consoleScrollPane.setMinimumSize(new java.awt.Dimension(22, 100)); consoleScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); consoleMessageArea.setBackground(new java.awt.Color(204, 204, 204)); consoleMessageArea.setEditable(false); consoleMessageArea.setFont(new java.awt.Font("Monospaced", 0, 12)); consoleMessageArea.setAutoscrolls(false); consoleMessageArea.setMinimumSize(new java.awt.Dimension(0, 0)); consoleMessageArea.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); consoleScrollPane.setViewportView(consoleMessageArea); consoleSplitter.setBottomComponent(consoleScrollPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(consoleSplitter, gridBagConstraints); urlLabel.setFont(new java.awt.Font("Dialog", 0, 12)); urlLabel.setText("FindBugs - http://findbugs.sourceforge.net/"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 0); getContentPane().add(urlLabel, gridBagConstraints); jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.X_AXIS)); jPanel1.add(logoLabel); growBoxSpacer.setMaximumSize(new java.awt.Dimension(16, 16)); jPanel1.add(growBoxSpacer); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHEAST; gridBagConstraints.insets = new java.awt.Insets(2, 0, 2, 2); getContentPane().add(jPanel1, gridBagConstraints); theMenuBar.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(fileMenu, "menu.file_menu", "&File", true); fileMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { fileMenuMenuSelected(evt); } }); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setText("New Project"); localiseButton(newProjectItem, "menu.new_item", "&New Project", true); newProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newProjectItemActionPerformed(evt); } }); fileMenu.add(newProjectItem); openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); openProjectItem.setText("Open Project..."); localiseButton(openProjectItem, "menu.open_item", "&Open Project...", true); openProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openProjectItemActionPerformed(evt); } }); fileMenu.add(openProjectItem); recentProjectsMenu.setText("Recent Projects"); recentProjectsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(recentProjectsMenu, "menu.recent_menu", "R&ecent Projects", true); rebuildRecentProjectsMenu(); fileMenu.add(recentProjectsMenu); fileMenu.add(jSeparator9); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setText("Close Project"); localiseButton(closeProjectItem, "menu.close_item", "&Close Project", true); closeProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeProjectItemActionPerformed(evt); } }); fileMenu.add(closeProjectItem); saveProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectItem.setText("Save Project"); localiseButton(saveProjectItem, "menu.save_item", "&Save Project", true); saveProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectItemActionPerformed(evt); } }); fileMenu.add(saveProjectItem); saveProjectAsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectAsItem.setText("Save Project As..."); localiseButton(saveProjectAsItem, "menu.saveas_item", "Save Project &As...", true); saveProjectAsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectAsItemActionPerformed(evt); } }); fileMenu.add(saveProjectAsItem); reloadProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); reloadProjectItem.setText("Reload Project"); localiseButton(reloadProjectItem, "menu.reload_item", "&Reload Project", true); reloadProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { reloadProjectItemActionPerformed(evt); } }); fileMenu.add(reloadProjectItem); fileMenu.add(jSeparator3); loadBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); loadBugsItem.setText("Load Bugs..."); localiseButton(loadBugsItem, "menu.loadbugs_item", "&Load Bugs...", true); loadBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadBugsItemActionPerformed(evt); } }); fileMenu.add(loadBugsItem); saveBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveBugsItem.setText("Save Bugs"); localiseButton(saveBugsItem, "menu.savebugs_item", "Save &Bugs...", true); saveBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveBugsItemActionPerformed(evt); } }); fileMenu.add(saveBugsItem); fileMenu.add(jSeparator6); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setText("Exit"); localiseButton(exitItem, "menu.exit_item", "E&xit", true); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); theMenuBar.add(fileMenu); editMenu.setText("Edit"); editMenu.setFont(new java.awt.Font("Dialog", 0, 12)); editMenu.setEnabled(false); localiseButton(editMenu, "menu.edit_menu", "&Edit", true); cutItem.setFont(new java.awt.Font("Dialog", 0, 12)); cutItem.setText("Cut"); localiseButton(cutItem, "menu.cut_item", "Cut", true); cutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cutActionPerformed(evt); } }); editMenu.add(cutItem); copyItem.setFont(new java.awt.Font("Dialog", 0, 12)); copyItem.setText("Copy"); localiseButton(copyItem, "menu.copy_item", "Copy", true); copyItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { copyActionPerformed(evt); } }); editMenu.add(copyItem); pasteItem.setFont(new java.awt.Font("Dialog", 0, 12)); pasteItem.setText("Paste"); localiseButton(pasteItem, "menu.paste_item", "Paste", true); pasteItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pasteActionPerformed(evt); } }); editMenu.add(pasteItem); editMenu.add(jSeparator10); selectAllItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK)); selectAllItem.setFont(new java.awt.Font("Dialog", 0, 12)); selectAllItem.setText("Select All"); localiseButton(selectAllItem, "menu.selectall_item", "Select &All", true); selectAllItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { selectAllActionPerformed(evt); } }); editMenu.add(selectAllItem); theMenuBar.add(editMenu); viewMenu.setText("View"); viewMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(viewMenu, "menu.view_menu", "&View", true); viewMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { viewMenuMenuSelected(evt); } }); viewConsoleItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewConsoleItem.setText("Console"); localiseButton(viewConsoleItem, "menu.console_item", "&Console", true); viewConsoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewConsoleItemActionPerformed(evt); } }); viewMenu.add(viewConsoleItem); viewBugDetailsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugDetailsItem.setSelected(true); viewBugDetailsItem.setText("Bug Details"); localiseButton(viewBugDetailsItem, "menu.bugdetails_item", "Bug &Details", true); viewBugDetailsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugDetailsItemActionPerformed(evt); } }); viewMenu.add(viewBugDetailsItem); fullDescriptionsItem.setFont(new java.awt.Font("Dialog", 0, 12)); fullDescriptionsItem.setSelected(true); fullDescriptionsItem.setText("Full Descriptions"); localiseButton(fullDescriptionsItem, "menu.fulldescriptions_item", "&Full Descriptions", true); fullDescriptionsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fullDescriptionsItemActionPerformed(evt); } }); viewMenu.add(fullDescriptionsItem); viewMenu.add(jSeparator7); filterWarningsMenu.setText("Filter Warnings"); filterWarningsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(filterWarningsMenu, "menu.filterwarnings_menu", "Filter &Warnings", true); expPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); expPriorityButton.setText("Experimental Priority"); priorityButtonGroup.add(expPriorityButton); localiseButton(expPriorityButton, "menu.exppriority_item", "&Experimental Priority", true); expPriorityButton.setSelected(getPriorityThreshold() == Detector.EXP_PRIORITY); expPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { expPriorityButtonActionPerformed(evt); } }); filterWarningsMenu.add(expPriorityButton); lowPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); lowPriorityButton.setText("Low Priority"); priorityButtonGroup.add(lowPriorityButton); localiseButton(lowPriorityButton, "menu.lowpriority_item", "&Low Priority", true); lowPriorityButton.setSelected(getPriorityThreshold() == Detector.LOW_PRIORITY); lowPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lowPriorityButtonActionPerformed(evt); } }); filterWarningsMenu.add(lowPriorityButton); mediumPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); mediumPriorityButton.setText("Medium Priority"); priorityButtonGroup.add(mediumPriorityButton); localiseButton(mediumPriorityButton, "menu.mediumpriority_item", "&Medium Priority", true); mediumPriorityButton.setSelected(getPriorityThreshold() == Detector.NORMAL_PRIORITY); mediumPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mediumPriorityButtonActionPerformed(evt); } }); filterWarningsMenu.add(mediumPriorityButton); highPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); highPriorityButton.setText("High Priority"); priorityButtonGroup.add(highPriorityButton); localiseButton(highPriorityButton, "menu.highpriority_item", "&High Priority", true); highPriorityButton.setSelected(getPriorityThreshold() == Detector.HIGH_PRIORITY); highPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { highPriorityButtonActionPerformed(evt); } }); filterWarningsMenu.add(highPriorityButton); filterWarningsMenu.add(jSeparator11); viewMenu.add(filterWarningsMenu); ButtonGroup bg = new ButtonGroup(); bg.add(expPriorityButton); bg.add(lowPriorityButton); bg.add(mediumPriorityButton); bg.add(highPriorityButton); viewMenu.add(jSeparator8); viewProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewProjectItem.setText("View Project Details"); viewProjectItem.setEnabled(false); localiseButton(viewProjectItem, "menu.viewprojectdetails_item", "View Project Details", true); viewProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewProjectItemActionPerformed(evt); } }); viewMenu.add(viewProjectItem); viewBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugsItem.setText("View Bugs"); viewBugsItem.setEnabled(false); localiseButton(viewBugsItem, "menu.viewbugs_item", "View Bugs", true); viewBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugsItemActionPerformed(evt); } }); viewMenu.add(viewBugsItem); theMenuBar.add(viewMenu); settingsMenu.setText("Settings"); settingsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(settingsMenu, "menu.settings_menu", "&Settings", true); settingsMenu.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { settingsMenuActionPerformed(evt); } }); configureDetectorsItem.setFont(new java.awt.Font("Dialog", 0, 12)); configureDetectorsItem.setText("Configure Detectors..."); localiseButton(configureDetectorsItem, "menu.configure_item", "&Configure Detectors...", true); configureDetectorsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { configureDetectorsItemActionPerformed(evt); } }); settingsMenu.add(configureDetectorsItem); effortMenu.setText("Effort"); effortMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(effortMenu, "menu.effort_menu", "Effort", true); minEffortItem.setFont(new java.awt.Font("Dialog", 0, 12)); minEffortItem.setText("Minimum"); effortButtonGroup.add(minEffortItem); localiseButton(minEffortItem, "menu.mineffort_item", "&Minimum", true); minEffortItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { minEffortItemActionPerformed(evt); } }); effortMenu.add(minEffortItem); normalEffortItem.setFont(new java.awt.Font("Dialog", 0, 12)); normalEffortItem.setSelected(true); normalEffortItem.setText("Normal"); effortButtonGroup.add(normalEffortItem); localiseButton(normalEffortItem, "menu.normaleffort_item", "&Normal", true); normalEffortItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { normalEffortItemActionPerformed(evt); } }); effortMenu.add(normalEffortItem); maxEffortItem.setFont(new java.awt.Font("Dialog", 0, 12)); maxEffortItem.setText("Maximum"); effortButtonGroup.add(maxEffortItem); localiseButton(maxEffortItem, "menu.maxeffort_item", "&Maximum", true); maxEffortItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { maxEffortItemActionPerformed(evt); } }); effortMenu.add(maxEffortItem); settingsMenu.add(effortMenu); theMenuBar.add(settingsMenu); helpMenu.setText("Help"); helpMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(helpMenu, "menu.help_menu", "&Help", true); aboutItem.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setText("About..."); localiseButton(aboutItem, "menu.about_item", "&About", true); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutItemActionPerformed(evt); } }); helpMenu.add(aboutItem); theMenuBar.add(helpMenu); setJMenuBar(theMenuBar); pack(); }//GEN-END:initComponents | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/80d967c9649d3622d6bc8048e607b8632deca07f/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
4394,
3616,
1114,
273,
394,
6863,
18,
5328,
310,
18,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
4394,
3616,
1114,
273,
394,
6863,
18,
5328,
310,
18,
3... |
boolean stealFocus = !button.getVisible(); | public void layout(boolean changed) { if (isInState(STATE_PINNED_OPEN)) { title.setVisible(false); button.setVisible(false); return; } boolean stealFocus = !button.getVisible(); title.setVisible(true); button.setVisible(true); Rectangle area = getClientArea(); // 1 pixel margin all around to draw the raised border area.x += 1; area.y += 1; area.width -= 2; area.height -= 2; if (button.getVisible()) { button.setBounds(area.x, area.y, area.width, area.width); // 5-pixel spacing area.y += area.width + 3; } if (title.getVisible()) { title.setBounds(area.x, area.y, area.width, title.computeSize(-1, -1).y); } if (stealFocus) Display.getCurrent().asyncExec(new Runnable() { public void run() { button.setFocus(); } }); } | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/8e276709980e6747863c5e8c5cd56760bc92622e/FlyoutPaletteComposite.java/buggy/org.eclipse.gef/src/org/eclipse/gef/ui/palette/FlyoutPaletteComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3511,
12,
6494,
3550,
13,
288,
202,
202,
430,
261,
291,
382,
1119,
12,
7998,
67,
52,
706,
50,
2056,
67,
11437,
3719,
288,
1082,
202,
2649,
18,
542,
6207,
12,
5743,
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,
225,
202,
482,
918,
3511,
12,
6494,
3550,
13,
288,
202,
202,
430,
261,
291,
382,
1119,
12,
7998,
67,
52,
706,
50,
2056,
67,
11437,
3719,
288,
1082,
202,
2649,
18,
542,
6207,
12,
5743,
1769... | |
return new SoapPartDocXobj( l ); | xo = new SoapPartDocXobj( l ); if (l._ownerDoc == null) l._ownerDoc = xo.getDom(); return xo; | static Xobj createDomDocumentRootXobj ( Locale l ) { if (l._saaj == null) return new DocumentXobj( l ); else return new SoapPartDocXobj( l ); } | 3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/27081c668e322799a7f2cb75e553f2f5ceca0497/Cur.java/clean/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/Cur.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1139,
2603,
752,
8832,
2519,
2375,
60,
2603,
261,
6458,
328,
262,
565,
288,
3639,
309,
261,
80,
6315,
13098,
4365,
422,
446,
13,
5411,
327,
394,
4319,
60,
2603,
12,
328,
11272,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1139,
2603,
752,
8832,
2519,
2375,
60,
2603,
261,
6458,
328,
262,
565,
288,
3639,
309,
261,
80,
6315,
13098,
4365,
422,
446,
13,
5411,
327,
394,
4319,
60,
2603,
12,
328,
11272,
363... |
SimpleDateFormat sdf = null; | IDateFormatWrapper sdf = null; | public final double computeStaggeredAxisLabelOffset( IDisplayServer xs, Label la, int iOrientation ) throws ChartException { if ( !la.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.unset.label.visibility", //$NON-NLS-1$ new Object[]{ la.getCaption( ).getValue( ) }, ResourceBundle.getBundle( Messages.ENGINE, rtc.getULocale( ) .toLocale( ) ) ); } if ( !la.isVisible( ) || !isAxisLabelStaggered( ) ) { return 0; } String sText; double[] da = getTickCordinates( ); if ( iOrientation == VERTICAL ) { double dW, dMaxW = 0; if ( ( getType( ) & TEXT ) == TEXT || bCategoryScale ) { final DataSetIterator dsi = getData( ); final int iDateTimeUnit = ( getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; dsi.reset( ); int i = 0; while ( dsi.hasNext( ) ) { la.getCaption( ).setValue( formatCategoryValue( getType( ), dsi.next( ), iDateTimeUnit ) ); if ( !baTickLabelStaggered[i] ) { dW = computeWidth( xs, la ); if ( dW > dMaxW ) { dMaxW = dW; } } i++; } } else if ( ( getType( ) & LINEAR ) == LINEAR ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; if ( fs == null ) { df = new DecimalFormat( getNumericPattern( ) ); } for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); if ( !baTickLabelStaggered[i] ) { dW = computeWidth( xs, la ); if ( dW > dMaxW ) { dMaxW = dW; } } dAxisValue += dAxisStep; } } else if ( ( getType( ) & LOGARITHMIC ) == LOGARITHMIC ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); if ( !baTickLabelStaggered[i] ) { dW = computeWidth( xs, la ); if ( dW > dMaxW ) { dMaxW = dW; } } dAxisValue *= dAxisStep; } } else if ( ( getType( ) & DATE_TIME ) == DATE_TIME ) { CDateTime cdtAxisValue = asDateTime( getMinimum( ) ); int iStep = asInteger( getStep( ) ); int iUnit = asInteger( getUnit( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdtAxisValue, fs, rtc.getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); if ( !baTickLabelStaggered[i] ) { dW = computeWidth( xs, la ); if ( dW > dMaxW ) { dMaxW = dW; } } cdtAxisValue = cdtAxisValue.forward( iUnit, iStep ); } } return dMaxW; } else if ( iOrientation == HORIZONTAL ) { double dH, dMaxH = 0; if ( ( getType( ) & TEXT ) == TEXT || bCategoryScale ) { final DataSetIterator dsi = getData( ); final int iDateTimeUnit = ( getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; dsi.reset( ); int i = 0; while ( dsi.hasNext( ) ) { la.getCaption( ).setValue( formatCategoryValue( getType( ), dsi.next( ), iDateTimeUnit ) ); if ( !baTickLabelStaggered[i] ) { dH = computeHeight( xs, la ); if ( dH > dMaxH ) { dMaxH = dH; } } i++; } } else if ( ( getType( ) & LINEAR ) == LINEAR ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; if ( fs == null ) { df = new DecimalFormat( getNumericPattern( ) ); } for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); if ( !baTickLabelStaggered[i] ) { dH = computeHeight( xs, la ); if ( dH > dMaxH ) { dMaxH = dH; } } dAxisValue += dAxisStep; } } else if ( ( getType( ) & LOGARITHMIC ) == LOGARITHMIC ) { final NumberDataElement nde = NumberDataElementImpl.create( 0 ); double dAxisValue = asDouble( getMinimum( ) ).doubleValue( ); final double dAxisStep = asDouble( getStep( ) ).doubleValue( ); DecimalFormat df = null; for ( int i = 0; i < da.length; i++ ) { if ( fs == null ) { df = new DecimalFormat( getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, rtc.getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); if ( !baTickLabelStaggered[i] ) { dH = computeHeight( xs, la ); if ( dH > dMaxH ) { dMaxH = dH; } } dAxisValue *= dAxisStep; } } else if ( ( getType( ) & DATE_TIME ) == DATE_TIME ) { CDateTime cdtAxisValue = asDateTime( getMinimum( ) ); final int iStep = asInteger( getStep( ) ); final int iUnit = asInteger( getUnit( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdtAxisValue, fs, rtc.getULocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); if ( !baTickLabelStaggered[i] ) { dH = computeHeight( xs, la ); if ( dH > dMaxH ) { dMaxH = dH; } } cdtAxisValue.forward( iUnit, iStep ); } } return dMaxH; } return 0; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ab3897f47c7eefef909be75bfd6314187ef29fb9/AutoScale.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1645,
3671,
510,
7594,
329,
6558,
2224,
2335,
12,
1599,
291,
1601,
2081,
9280,
16,
1082,
202,
2224,
7125,
16,
509,
277,
14097,
262,
1216,
14804,
503,
202,
95,
202,
202,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
1645,
3671,
510,
7594,
329,
6558,
2224,
2335,
12,
1599,
291,
1601,
2081,
9280,
16,
1082,
202,
2224,
7125,
16,
509,
277,
14097,
262,
1216,
14804,
503,
202,
95,
202,
202,
4... |
log.entering(this.getClass().getName(), "decodePrivateKey()", input); | if (Configuration.DEBUG) log.entering(this.getClass().getName(), "decodePrivateKey()", input); | public PrivateKey decodePrivateKey(byte[] input) { log.entering(this.getClass().getName(), "decodePrivateKey()", input); if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger version, n, e, d, p, q, dP, dQ, qInv; DERReader der = new DERReader(input); try { DERValue derPKI = der.read(); DerUtil.checkIsConstructed(derPKI, "Wrong PrivateKeyInfo field"); DERValue derVersion = der.read(); DerUtil.checkIsBigInteger(derVersion, "Wrong Version field"); version = (BigInteger) derVersion.getValue(); if (version.compareTo(BigInteger.ZERO) != 0) throw new InvalidParameterException("Unexpected Version: " + version); DERValue derAlgoritmID = der.read(); DerUtil.checkIsConstructed(derAlgoritmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(RSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue val = der.read(); byte[] pkBytes = (byte[]) val.getValue(); der = new DERReader(pkBytes); DERValue derRSAPrivateKey = der.read(); DerUtil.checkIsConstructed(derRSAPrivateKey, "Wrong RSAPrivateKey field"); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong RSAPrivateKey Version field"); version = (BigInteger) val.getValue(); if (version.compareTo(BigInteger.ZERO) != 0) throw new InvalidParameterException("Unexpected RSAPrivateKey Version: " + version); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong modulus field"); n = (BigInteger) val.getValue(); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong publicExponent field"); e = (BigInteger) val.getValue(); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong privateExponent field"); d = (BigInteger) val.getValue(); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong prime1 field"); p = (BigInteger) val.getValue(); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong prime2 field"); q = (BigInteger) val.getValue(); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong exponent1 field"); dP = (BigInteger) val.getValue(); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong exponent2 field"); dQ = (BigInteger) val.getValue(); val = der.read(); DerUtil.checkIsBigInteger(val, "Wrong coefficient field"); qInv = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException y = new InvalidParameterException(); y.initCause(x); throw y; } PrivateKey result = new GnuRSAPrivateKey(Registry.PKCS8_ENCODING_ID, n, e, d, p, q, dP, dQ, qInv); log.exiting(this.getClass().getName(), "decodePrivateKey()", result); return result; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8ace3af577b4314374a3cc74fdeae04a0733f7de/RSAKeyPairPKCS8Codec.java/buggy/gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14018,
2495,
10824,
12,
7229,
8526,
810,
13,
225,
288,
565,
309,
261,
1750,
18,
9394,
13,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
3922,
10824,
1435,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14018,
2495,
10824,
12,
7229,
8526,
810,
13,
225,
288,
565,
309,
261,
1750,
18,
9394,
13,
613,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
315,
3922,
10824,
1435,
31... |
else if (fromType instanceof ArrayType || toType instanceof ArrayType) { return toType.equals(CLONEABLE_) || toType.equals(OBJECT_); | else if (fromType instanceof ArrayType) { return toType.equals(CLONEABLE_) || toType.equals(SERIALIZABLE_) || toType.equals(OBJECT_); } else if (toType instanceof ArrayType) { return fromType.equals(CLONEABLE_) || fromType.equals(SERIALIZABLE_) || fromType.equals(OBJECT_); | public boolean isCastValid(Type fromType, Type toType) throws TypeCheckException { // Are they distinct? if (fromType.equals(toType)) return true; // Are they primitive? if (fromType instanceof PrimitiveType) { if (! (toType instanceof PrimitiveType)) return false; // Distinct primitive types are only convertable if type are numeric. if (((PrimitiveType)fromType).isNumeric() && ((PrimitiveType)toType).isNumeric()) return true; return false; } if (toType instanceof PrimitiveType) return false; if (fromType instanceof NullType) return true; // Array cases. if (fromType instanceof ArrayType && toType instanceof ArrayType) { // FIXME: Make this iterative. Type fromBase = extendArrayDims((ArrayType)fromType,-1); Type toBase = extendArrayDims((ArrayType)toType,-1); if (fromBase instanceof PrimitiveType) { return toBase.equals(fromBase); } else if (toBase instanceof PrimitiveType) { return false; } // Both bases are reference types. return isCastValid(fromBase, toBase); } else if (fromType instanceof ArrayType || toType instanceof ArrayType) { // From an array to a non-array. return toType.equals(CLONEABLE_) || toType.equals(OBJECT_); } if( fromType instanceof NullType) { return (toType instanceof ClassType); } // From and to are neither primitive nor an array. They are distinct. boolean fromInterface = ((ClassType)fromType).getAccessFlags().isInterface(); boolean toInterface = ((ClassType)toType).getAccessFlags().isInterface(); boolean fromFinal = ((ClassType)fromType).getAccessFlags().isFinal(); boolean toFinal = ((ClassType)toType).getAccessFlags().isFinal(); // This is taken from Section 5.5 of the JLS. if (!fromInterface) { // From is not an interface. if (!toInterface) { // Nether from nor to is an interface. return descendsFrom(fromType, toType) || descendsFrom(toType, fromType); } else if (fromFinal) { // From is a final class, and to is an interface return descendsFrom(fromType, toType); } else { // From is a non-final class, and to is an interface. return true; } } else { // From is an interface if (!toInterface && !toFinal) { // To is a non-final class. return true; } else if (toFinal) { // To is a final class. return descendsFrom(toType, fromType); } else { // To and From are both interfaces. return true; } } } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/2965ae13e9d838385069f6bbaaa4ebe8a2020706/StandardTypeSystem.java/clean/src/polyglot/types/StandardTypeSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
9735,
1556,
12,
559,
628,
559,
16,
1412,
28234,
13,
565,
1216,
1412,
1564,
503,
225,
288,
565,
368,
12520,
2898,
10217,
35,
565,
309,
261,
2080,
559,
18,
14963,
12,
869... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
9735,
1556,
12,
559,
628,
559,
16,
1412,
28234,
13,
565,
1216,
1412,
1564,
503,
225,
288,
565,
368,
12520,
2898,
10217,
35,
565,
309,
261,
2080,
559,
18,
14963,
12,
869... |
System.out.println("Add "+Integer.toHexString(theOpCode & 0xFF) | System.out.println("Add "+bytecodeStr(theOpCode) | public void addInvoke(byte theOpCode, String className, String methodName, String methodType) { if (DEBUGCODE) { System.out.println("Add "+Integer.toHexString(theOpCode & 0xFF) +", "+className+", "+methodName+", " +methodType); } int parameterInfo = sizeOfParameters(methodType); int parameterCount = parameterInfo >>> 16; int stackDiff = (short)parameterInfo; int newStack = itsStackTop + stackDiff; newStack += ByteCode.stackChange(theOpCode); // adjusts for 'this' if (newStack < 0 || Short.MAX_VALUE < newStack) badStack(newStack); switch (theOpCode) { case ByteCode.INVOKEVIRTUAL : case ByteCode.INVOKESPECIAL : case ByteCode.INVOKESTATIC : case ByteCode.INVOKEINTERFACE : { addToCodeBuffer(theOpCode); if (theOpCode == ByteCode.INVOKEINTERFACE) { short ifMethodRefIndex = itsConstantPool.addInterfaceMethodRef( className, methodName, methodType); addToCodeInt16(ifMethodRefIndex); addToCodeBuffer((byte)(parameterCount + 1)); addToCodeBuffer((byte)0); } else { short methodRefIndex = itsConstantPool.addMethodRef( className, methodName, methodType); addToCodeInt16(methodRefIndex); } } break; default : throw new IllegalArgumentException( "bad opcode for method reference"); } itsStackTop = (short)newStack; if (newStack > itsMaxStack) itsMaxStack = (short)newStack; if (DEBUGSTACK) { System.out.println("After "+Integer.toHexString(theOpCode & 0xFF) +" stack = "+itsStackTop); } } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/8d675d86a23a722e77a45f3e299cb939b149d8b2/ClassFileWriter.java/clean/src/org/mozilla/classfile/ClassFileWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
10969,
12,
7229,
326,
3817,
1085,
16,
514,
2658,
16,
514,
4918,
16,
12900,
514,
707,
559,
13,
565,
288,
3639,
309,
261,
9394,
5572,
13,
288,
5411,
2332,
18,
659,
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,
377,
1071,
918,
527,
10969,
12,
7229,
326,
3817,
1085,
16,
514,
2658,
16,
514,
4918,
16,
12900,
514,
707,
559,
13,
565,
288,
3639,
309,
261,
9394,
5572,
13,
288,
5411,
2332,
18,
659,
18,
8... |
codeGenConfig.getAxisService().addParameter(new Parameter(Constants.DATABINDING_SERVICE_DETAILS, bindinit)); | details.add(bindinit); for (Iterator iter = objins.iterator(); iter.hasNext();) { String classname = (String)iter.next(); Element detail = doc.createElement("object-input"); detail.setAttribute("type", classname); details.add(detail); } for (Iterator iter = objouts.iterator(); iter.hasNext();) { String classname = (String)iter.next(); Element detail = doc.createElement("object-output"); detail.setAttribute("type", classname); details.add(detail); } for (Iterator iter = objfaults.iterator(); iter.hasNext();) { String classname = (String)iter.next(); Element detail = doc.createElement("object-fault"); detail.setAttribute("type", classname); details.add(detail); } codeGenConfig.getAxisService().addParameter(new Parameter(Constants.DATABINDING_SERVICE_DETAILS, details)); | public void engage(String path) { // make sure the binding definition file is present File file = new File(path); if (!file.exists()) { throw new RuntimeException("jibx binding definition file " + path + " not found");// CodegenMessages.getMessage("extension.encodedNotSupported")); } // Read the JiBX binding definition into memory. The binding definition // is only prevalidated so as not to require the user to have all // the referenced classes in the classpath, though this does make for // added work in finding the namespaces. try { ValidationContext vctx = BindingElement.newValidationContext(); BindingElement binding = BindingElement.readBinding(new FileInputStream(file), path, vctx); binding.setBaseUrl(file.toURL()); vctx.setBindingRoot(binding); IncludePrevalidationVisitor ipv = new IncludePrevalidationVisitor(vctx); vctx.tourTree(binding, ipv); if (vctx.getErrorCount() != 0 || vctx.getFatalCount() != 0) { throw new RuntimeException("invalid jibx binding definition file " + path); } // make sure classes will be generated for abstract mappings boolean unwrap = !codeGenConfig.isParametersWrapped(); if (unwrap && !binding.isForceClasses()) { throw new RuntimeException("unwrapped binding must use force-classes='true' option in " + path); } // create table with all built-in format definitions Map simpleTypeMap = new HashMap(); buildFormat("byte", "byte", "org.jibx.runtime.Utility.serializeByte", "org.jibx.runtime.Utility.parseByte", "0", simpleTypeMap); buildFormat("unsignedShort", "char", "org.jibx.runtime.Utility.serializeChar", "org.jibx.runtime.Utility.parseChar", "0", simpleTypeMap); buildFormat("double", "double", "org.jibx.runtime.Utility.serializeDouble", "org.jibx.runtime.Utility.parseDouble", "0.0", simpleTypeMap); buildFormat("float", "float", "org.jibx.runtime.Utility.serializeFloat", "org.jibx.runtime.Utility.parseFloat", "0.0", simpleTypeMap); buildFormat("int", "int", "org.jibx.runtime.Utility.serializeInt", "org.jibx.runtime.Utility.parseInt", "0", simpleTypeMap); buildFormat("long", "long", "org.jibx.runtime.Utility.serializeLong", "org.jibx.runtime.Utility.parseLong", "0", simpleTypeMap); buildFormat("short", "short", "org.jibx.runtime.Utility.serializeShort", "org.jibx.runtime.Utility.parseShort", "0", simpleTypeMap); buildFormat("boolean", "boolean", "org.jibx.runtime.Utility.serializeBoolean", "org.jibx.runtime.Utility.parseBoolean", "false", simpleTypeMap); buildFormat("dateTime", "java.util.Date", "org.jibx.runtime.Utility.serializeDateTime", "org.jibx.runtime.Utility.deserializeDateTime", null, simpleTypeMap); buildFormat("date", "java.sql.Date", "org.jibx.runtime.Utility.serializeSqlDate", "org.jibx.runtime.Utility.deserializeSqlDate", null, simpleTypeMap); buildFormat("time", "java.sql.Time", "org.jibx.runtime.Utility.serializeSqlTime", "org.jibx.runtime.Utility.deserializeSqlTime", null, simpleTypeMap); buildFormat("base64Binary", "byte[]", "org.jibx.runtime.Utility.serializeBase64", "org.jibx.runtime.Utility.deserializeBase64", null, simpleTypeMap); buildFormat("string","java.lang.String", null, null, null, simpleTypeMap); // collect all the top-level mapping and format definitions Map elementMap = new HashMap(); Map complexTypeMap = new HashMap(); collectTopLevelComponents(binding, null, elementMap, complexTypeMap, simpleTypeMap); // force off inappropriate option (set by error in options handling) codeGenConfig.setPackClasses(false); // configure handling for all operations of service codeGenConfig.setTypeMapper(new NamedParameterTypeMapper()); Iterator operations = codeGenConfig.getAxisService().getOperations(); Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); int opindex = 0; Map typeMappedClassMap = new HashMap(); String mappedclass = null; while (operations.hasNext()) { // get the basic operation information AxisOperation op = (AxisOperation)operations.next(); String mep = op.getMessageExchangePattern(); AxisMessage inmsg = null; AxisMessage outmsg = null; if (WSDLUtil.isInputPresentForMEP(mep)) { inmsg = op.getMessage(WSDLConstants.MESSAGE_LABEL_IN_VALUE); if (inmsg == null) { throw new RuntimeException("Expected input message not found for operation " + op.getName()); } } if (WSDLUtil.isOutputPresentForMEP(mep)) { outmsg = op.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE); if (outmsg == null) { throw new RuntimeException("Expected output message not found for operation " + op.getName()); } } if (unwrap) { // use unwrapping for both input and output String receivername = "jibxReceiver" + opindex++; Element dbmethod = doc.createElement("dbmethod"); dbmethod.setAttribute("receiver-name", receivername); dbmethod.setAttribute("method-name", op.getName().getLocalPart()); Set nameset = new HashSet(); if (inmsg != null) { dbmethod.appendChild(unwrapMessage(inmsg, false, simpleTypeMap, complexTypeMap, typeMappedClassMap, nameset, doc)); } if (outmsg != null) { dbmethod.appendChild(unwrapMessage(outmsg, true, simpleTypeMap, complexTypeMap, typeMappedClassMap, nameset, doc)); } // save unwrapping information for use in code generation op.addParameter(new Parameter(Constants.DATABINDING_GENERATED_RECEIVER, receivername)); op.addParameter(new Parameter(Constants.DATABINDING_GENERATED_IMPLEMENTATION, Boolean.TRUE)); op.addParameter(new Parameter(Constants.DATABINDING_OPERATION_DETAILS, dbmethod)); } else { // concrete mappings, just save the mapped class name(s) if (inmsg != null) { mappedclass = mapMessage(inmsg, elementMap); } if (outmsg != null) { mappedclass = mapMessage(outmsg, elementMap); } } } // add type usage information as service parameter Element bindinit = doc.createElement("initialize-binding"); if (!typeMappedClassMap.isEmpty()) { for (Iterator iter = typeMappedClassMap.keySet().iterator(); iter.hasNext();) { QName tname = (QName)iter.next(); String clsindex = ((Integer)typeMappedClassMap.get(tname)).toString(); Element detail = doc.createElement("abstract-type"); detail.setAttribute("ns", tname.getNamespaceURI()); detail.setAttribute("name", tname.getLocalPart()); detail.setAttribute("type-index", clsindex); bindinit.appendChild(detail); if (mappedclass == null) { MappingElement mapping = (MappingElement)complexTypeMap.get(tname); mappedclass = mapping.getClassName(); } } } bindinit.setAttribute("bound-class", mappedclass); codeGenConfig.getAxisService().addParameter(new Parameter(Constants.DATABINDING_SERVICE_DETAILS, bindinit)); } catch (FileNotFoundException e) { throw new RuntimeException(e); } catch (JiBXException e) { throw new RuntimeException(e); } catch (ParserConfigurationException e) { throw new RuntimeException(e); } catch (AxisFault e) { throw new RuntimeException(e); } catch (MalformedURLException e) { throw new RuntimeException(e); } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/5a1b8ffcb58eafa07304c3d3912b25dc7975b1ad/CodeGenerationUtility.java/buggy/modules/jibx/src/org/apache/axis2/jibx/CodeGenerationUtility.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24691,
410,
12,
780,
589,
13,
288,
7734,
368,
1221,
3071,
326,
5085,
2379,
585,
353,
3430,
3639,
1387,
585,
273,
394,
1387,
12,
803,
1769,
3639,
309,
16051,
768,
18,
1808,
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,
1071,
918,
24691,
410,
12,
780,
589,
13,
288,
7734,
368,
1221,
3071,
326,
5085,
2379,
585,
353,
3430,
3639,
1387,
585,
273,
394,
1387,
12,
803,
1769,
3639,
309,
16051,
768,
18,
1808,
10... |
else | } else { | private void consumeBinding(IConfigurationElement element, boolean isContent) { IConfigurationElement[] includesElement = element .getChildren(TAG_INCLUDES); if (includesElement.length == 1) { if (isContent) contentBinding.consumeIncludes(includesElement[0], true); else actionBinding.consumeIncludes(includesElement[0], false); } else if (includesElement.length >= 1) { NavigatorPlugin.logError(0, NLS.bind( CommonNavigatorMessages.Too_many_elements_Warning, new Object[] { TAG_INCLUDES, element.getDeclaringExtension() .getUniqueIdentifier(), element.getDeclaringExtension().getNamespace() }), null); } IConfigurationElement[] excludesElement = element .getChildren(TAG_EXCLUDES); if (excludesElement.length == 1) { if (isContent) contentBinding.consumeExcludes(excludesElement[0]); else actionBinding.consumeExcludes(excludesElement[0]); } else if (excludesElement.length >= 1) { NavigatorPlugin.logError(0, NLS.bind( CommonNavigatorMessages.Too_many_elements_Warning, new Object[] { TAG_EXCLUDES, element.getDeclaringExtension() .getUniqueIdentifier(), element.getDeclaringExtension().getNamespace() }), null); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/NavigatorViewerDescriptor.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/NavigatorViewerDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
7865,
5250,
12,
45,
1750,
1046,
930,
16,
1250,
353,
1350,
13,
288,
202,
202,
45,
1750,
1046,
8526,
6104,
1046,
273,
930,
9506,
202,
18,
588,
4212,
12,
7927,
67,
26003,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7865,
5250,
12,
45,
1750,
1046,
930,
16,
1250,
353,
1350,
13,
288,
202,
202,
45,
1750,
1046,
8526,
6104,
1046,
273,
930,
9506,
202,
18,
588,
4212,
12,
7927,
67,
26003,
... |
wrap(new String[] { | fold(new String[] { | public void testOrderCrossJoinBreak() { assertQueryReturns( wrap(new String[] { "select {[Measures].[Unit Sales]} on columns,", " Order(", " CrossJoin(", " [Gender].children,", " [Marital Status].children),", " [Measures].[Unit Sales],", " BDESC) on rows", "from Sales", "where [Time].[1997].[Q1]"}), wrap(new String[] { "Axis #0:", "{[Time].[1997].[Q1]}", "Axis #1:", "{[Measures].[Unit Sales]}", "Axis #2:", "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[S]}", "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[M]}", "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[M]}", "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[S]}", "Row #0: 17,070", "Row #1: 16,790", "Row #2: 16,311", "Row #3: 16,120" + nl})); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/bb703add381acf854e2d5aed1045911b7ab143b4/FunctionTest.java/buggy/testsrc/main/mondrian/olap/fun/FunctionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2448,
13941,
4572,
7634,
1435,
288,
3639,
1815,
1138,
1356,
12,
7734,
11590,
12,
2704,
514,
8526,
288,
10792,
315,
4025,
288,
63,
23177,
1823,
8009,
63,
2802,
25996,
18322,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2448,
13941,
4572,
7634,
1435,
288,
3639,
1815,
1138,
1356,
12,
7734,
11590,
12,
2704,
514,
8526,
288,
10792,
315,
4025,
288,
63,
23177,
1823,
8009,
63,
2802,
25996,
18322,... |
if (source == null) source = ResourcesPlugin.getWorkspace().getRoot(); | if (source == null) { source = ResourcesPlugin.getWorkspace().getRoot(); } | protected void handleResourceDetailsButtonPressed() { IAdaptable source = getSourceResource(); if (source == null) source = ResourcesPlugin.getWorkspace().getRoot(); selectAppropriateResources(source); if (source instanceof IFile) { source = ((IFile) source).getParent(); setResourceToDisplay((IResource) source); } Object[] newlySelectedResources = queryIndividualResourcesToExport(source); if (newlySelectedResources != null) { selectedResources = Arrays.asList(newlySelectedResources); displayResourcesSelectedCount(selectedResources.size()); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WizardExportPage.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardExportPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1420,
3790,
3616,
24624,
1435,
288,
3639,
467,
13716,
429,
1084,
273,
7889,
1420,
5621,
3639,
309,
261,
3168,
422,
446,
13,
5411,
1084,
273,
8128,
3773,
18,
588,
8241,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1420,
3790,
3616,
24624,
1435,
288,
3639,
467,
13716,
429,
1084,
273,
7889,
1420,
5621,
3639,
309,
261,
3168,
422,
446,
13,
5411,
1084,
273,
8128,
3773,
18,
588,
8241,
76... |
int len = args.length; if (len < min || (max > -1 && len > max)) { throw new RubyArgumentException(getRuby(), "wrong number of arguments"); } return len; } | int len = args.length; if (len < min || (max > -1 && len > max)) { throw new RubyArgumentException(getRuby(), "wrong number of arguments"); } return len; } | protected int argCount(RubyObject[] args, int min, int max) { int len = args.length; if (len < min || (max > -1 && len > max)) { throw new RubyArgumentException(getRuby(), "wrong number of arguments"); } return len; } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyObject.java/clean/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
1501,
1380,
12,
54,
10340,
921,
8526,
833,
16,
509,
1131,
16,
509,
943,
13,
288,
3639,
509,
562,
273,
833,
18,
2469,
31,
3639,
309,
261,
1897,
411,
1131,
747,
261,
1896,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1501,
1380,
12,
54,
10340,
921,
8526,
833,
16,
509,
1131,
16,
509,
943,
13,
288,
3639,
509,
562,
273,
833,
18,
2469,
31,
3639,
309,
261,
1897,
411,
1131,
747,
261,
1896,
40... |
if (!(obj instanceof RubyModule)) { throw new RubyTypeException(getRuby(), "compared with non class/module"); } | if (!(obj instanceof RubyModule)) { throw new RubyTypeException(getRuby(), "compared with non class/module"); } | public RubyBoolean op_ge(RubyObject obj) { if (!(obj instanceof RubyModule)) { throw new RubyTypeException(getRuby(), "compared with non class/module"); } return ((RubyModule) obj).op_le(this); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
5507,
1061,
67,
908,
12,
54,
10340,
921,
1081,
13,
288,
202,
202,
430,
16051,
12,
2603,
1276,
19817,
3120,
3719,
288,
1082,
202,
12849,
394,
19817,
14144,
12,
588,
54,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
5507,
1061,
67,
908,
12,
54,
10340,
921,
1081,
13,
288,
202,
202,
430,
16051,
12,
2603,
1276,
19817,
3120,
3719,
288,
1082,
202,
12849,
394,
19817,
14144,
12,
588,
54,
... |
this.ok = false; | void reportError(String messageId) { this.ok = false; ts.reportCurrentLineError(Context.getMessage0(messageId)); // Throw a ParserException exception to unwind the recursive descent // parse. throw new ParserException(); } | 19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/4414205de51bdf42acaabd12132990e8acd9fea0/Parser.java/clean/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
17887,
12,
780,
19090,
13,
565,
288,
9079,
3742,
18,
6006,
3935,
1670,
668,
12,
1042,
18,
24906,
20,
12,
2150,
548,
10019,
3639,
368,
3743,
279,
27990,
1520,
358,
640,
10094,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
17887,
12,
780,
19090,
13,
565,
288,
9079,
3742,
18,
6006,
3935,
1670,
668,
12,
1042,
18,
24906,
20,
12,
2150,
548,
10019,
3639,
368,
3743,
279,
27990,
1520,
358,
640,
10094,
326,
... | |
return new ASTTemplateInstantiation( scope ); | ASTTemplateInstantiation inst = new ASTTemplateInstantiation( scope ); inst.setStartingOffsetAndLineNumber( startingOffset, startingLine ); return inst; | public IASTTemplateInstantiation createTemplateInstantiation( IASTScope scope, int startingOffset, int startingLine) { return new ASTTemplateInstantiation( scope ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/dc66afff944b6393738cab96cb13e7495e784196/CompleteParseASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
2283,
10675,
7072,
752,
2283,
10675,
7072,
12,
3639,
467,
9053,
3876,
2146,
16,
3639,
509,
5023,
2335,
16,
509,
5023,
1670,
13,
565,
288,
3639,
9183,
2283,
10675,
7072,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
9053,
2283,
10675,
7072,
752,
2283,
10675,
7072,
12,
3639,
467,
9053,
3876,
2146,
16,
3639,
509,
5023,
2335,
16,
509,
5023,
1670,
13,
565,
288,
3639,
9183,
2283,
10675,
7072,
1... |
0, 0, 278, 278, 87, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 278, 0, 0, 278, 0, 0, 0, 655, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 473, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 327, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 278, 278, 278, 473, 473, 0, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 0, 0, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 0, 473, 473, 473, 473, 492, 473, 473, 473, 473, 473, 473, 473, 473, 0, 492, 0, 0, 473, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 251, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 473, 0, 0, 473, 0, 0, 0, 278, 278, 0, 473, 278, 278, 278, 79, 278, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 87, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 278, 0, 0, 278, 0, 0, 0, 655, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 473, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 327, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 278, 278, 278, 473, 473, 0, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 0, 0, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 0, 473, 473, 473, 473, 492, 473, 473, 473, 473, 473, 473, 473, 473, 0, 492, 0, 0, 473, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 251, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 492, 492, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 251, | private static final short[] yyTable2() { return new short[] { 472, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 327, 472, 476, 476, 476, 472, 472, 0, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 0, 0, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 473, 472, 472, 472, 472, 472, 472, 472, 472, 0, 473, 0, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 473, 0, 0, 0, 473, 473, 0, 473, 473, 473, 473, 78, 473, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 86, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 473, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 473, 0, 0, 473, 0, 0, 0, 278, 278, 0, 473, 278, 278, 278, 79, 278, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 87, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 278, 0, 0, 278, 0, 0, 0, 655, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 473, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 327, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 278, 278, 278, 473, 473, 0, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 0, 0, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 0, 473, 473, 473, 473, 492, 473, 473, 473, 473, 473, 473, 473, 473, 0, 492, 0, 0, 473, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 251, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 251, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 469, 0, 0, 0, 0, 0, 412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 412, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 326, 0, 325, 324, 0, 0, 469, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 0, 492, 327, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 251, 0, 58, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 90, 0, 90, 90, 90, 90, 90, 90, 90, 0, 469, 0, 0, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 0, 0, 0, 0, 0, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 90, 90, 0, 90, 90, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 412, 90, 0, 0, 90, 90, 90, 90, 0, 90, 91, 90, 90, 90, 90, 90, 90, 470, 0, 678, 0, 90, 0, 415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 91, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 470, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 0, 0, 476, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 90, 90, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 476, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 476, 0, 0, 90, 207, 0, 0, 106, 47, 48, 49, 0, 619, 232, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 0, 0, 14, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 91, 14, 91, 91, 91, 91, 91, 91, 91, 0, 470, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 0, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 91, 14, 0, 91, 91, 91, 91, 0, 91, 0, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 90, 0, 90, 90, 90, 90, 90, 90, 90, 0, 476, 0, 0, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 0, 0, 0, 0, 0, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 90, 90, 0, 90, 90, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 476, 90, 0, 0, 90, 90, 90, 90, 0, 90, 91, 90, 90, 90, 90, 90, 90, 473, 0, 0, 0, 90, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 91, 14, 14, 14, 0, 0, 0, 14, 14, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 91, 91, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 279, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 323, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 323, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 323, 0, 91, 91, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 0, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 323, 278, 91, 0, 0, 91, 91, 91, 91, 0, 91, 492, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 492, 0, 91, 91, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 492, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 91, 0, 0, 91, 91, 91, 91, 0, 91, 52, 91, 91, 91, 91, 91, 91, 0, 0, 0, 52, 91, 0, 0, 0, 492, 0, 0, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 0, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 52, 0, 0, 0, 323, 323, 323, 323, 323, 323, 323, 0, 0, 323, 0, 0, 0, 52, 52, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 0, 323, 323, 0, 323, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 52, 0, 0, 0, 0, 323, 0, 0, 323, 323, 323, 323, 0, 323, 0, 323, 323, 323, 323, 323, 323, 0, 492, 0, 0, 323, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 216, 492, 492, 0, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 492, 0, 0, 492, 492, 492, 492, 0, 492, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 52, 0, 0, 52, 52, 52, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 52, 52, 52, 52, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 41, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 0, 0, 0, 41, 41, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 492, 492, 492, 492, 0, 492, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 41, 0, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 350, 350, 0, 0, 350, 350, 350, 350, 350, 350, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 350, 350, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 0, 0, 41, 41, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 423, 41, 350, 0, 350, 350, 0, 0, 0, 0, 423, 0, 0, 41, 41, 41, 41, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 423, 423, 0, 0, 423, 423, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 82, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 423, 0, 423, 423, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 492, 492, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 0, 350, 350, 350, 492, 350, 492, 492, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 0, 0, 0, 0, 0, 0, 350, 350, 0, 350, 350, 350, 350, 350, 0, 0, 32, 0, 492, 492, 492, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 0, 0, 350, 0, 0, 32, 0, 350, 261, 0, 0, 0, 0, 0, 0, 423, 423, 423, 0, 0, 423, 423, 423, 32, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 0, 0, 423, 423, 423, 32, 424, 423, 0, 0, 0, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 0, 492, 492, 492, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 492, 492, 492, 492, 492, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 0, 0, 492, 0, 273, 273, 0, 492, 273, 273, 273, 273, 273, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 89, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 0, 0, 279, 32, 32, 0, 32, 0, 273, 0, 273, 273, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 32, 32, 0, 0, 0, 0, 0, 0, 279, 279, 273, 273, 279, 279, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 88, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 279, 279, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 280, 280, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 280, 83, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 0, 0, 273, 273, 273, 0, 273, 280, 0, 280, 280, 0, 0, 0, 0, 0, 273, 273, 0, 0, 0, 0, 0, 0, 0, 273, 273, 0, 273, 273, 273, 273, 273, 0, 494, 0, 0, 0, 0, 0, 280, 280, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 0, 0, 273, 273, 273, 0, 0, 273, 0, 494, 0, 0, 273, 0, 0, 0, 279, 279, 279, 0, 0, 279, 279, 279, 0, 279, 494, 494, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 197, 0, 0, 0, 494, 0, 0, 0, 0, 0, 197, 0, 0, 0, 0, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 0, 0, 279, 279, 279, 0, 0, 279, 494, 0, 0, 0, 279, 197, 0, 0, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 280, 197, 197, 280, 280, 280, 197, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 197, 0, 0, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 0, 0, 0, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 197, 280, 280, 280, 0, 0, 280, 0, 373, 373, 0, 280, 373, 373, 373, 373, 373, 373, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 0, 373, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 494, 494, 0, 0, 494, 494, 494, 216, 494, 0, 0, 0, 0, 373, 0, 373, 373, 216, 494, 494, 0, 0, 0, 0, 0, 0, 0, 494, 494, 0, 494, 494, 494, 494, 494, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 216, 373, 373, 216, 216, 216, 216, 216, 322, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 216, 216, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0, 197, 197, 197, 0, 0, 197, 197, 197, 0, 197, 322, 0, 216, 216, 0, 290, 0, 0, 0, 197, 197, 0, 0, 0, 0, 290, 0, 0, 197, 197, 0, 197, 197, 197, 197, 197, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 0, 290, 290, 290, 290, 290, 290, 290, 197, 197, 0, 0, 197, 197, 0, 0, 0, 0, 290, 290, 290, 197, 290, 290, 0, 0, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 0, 0, 373, 373, 373, 0, 373, 290, 0, 290, 290, 0, 0, 0, 0, 0, 373, 373, 0, 0, 0, 0, 0, 0, 0, 373, 373, 0, 373, 373, 373, 373, 373, 0, 56, 0, 0, 0, 0, 0, 290, 290, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 0, 0, 373, 373, 373, 0, 0, 373, 0, 56, 0, 0, 373, 0, 0, 0, 216, 216, 216, 0, 0, 216, 216, 216, 0, 216, 56, 56, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 216, 216, 216, 216, 216, 0, 0, 0, 0, 0, 202, 0, 0, 0, 56, 0, 0, 0, 0, 0, 202, 0, 0, 0, 0, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 0, 0, 216, 216, 322, 0, 0, 216, 56, 0, 0, 0, 216, 202, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 290, 290, 202, 202, 290, 290, 290, 202, 290, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 290, 290, 290, 290, 290, 0, 0, 202, 0, 0, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 0, 0, 0, 0, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 0, 202, 290, 290, 290, 0, 0, 290, 0, 286, 286, 0, 290, 286, 286, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 56, 0, 0, 56, 56, 56, 410, 56, 0, 0, 0, 0, 286, 0, 286, 286, 410, 56, 56, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 56, 56, 56, 56, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 286, 286, 410, 410, 410, 410, 410, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 410, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 202, 202, 202, 0, 0, 202, 202, 202, 0, 202, 410, 0, 410, 410, 0, 411, 0, 0, 0, 202, 202, 0, 0, 0, 0, 411, 0, 0, 202, 202, 0, 202, 202, 202, 202, 202, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 0, 411, 411, 411, 411, 411, 411, 411, 202, 202, 0, 0, 202, 202, 0, 0, 0, 0, 411, 411, 411, 202, 411, 411, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 0, 286, 286, 286, 0, 286, 411, 0, 411, 411, 0, 0, 0, 0, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 286, 286, 0, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 0, 0, 286, 0, 0, 0, 0, 286, 0, 0, 0, 410, 410, 410, 0, 0, 410, 410, 410, 0, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 410, 410, 410, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 0, 0, 410, 410, 410, 0, 0, 410, 0, 0, 0, 0, 410, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 411, 411, 411, 0, 0, 411, 411, 411, 0, 411, 0, 175, 0, 174, 0, 0, 0, 0, 0, 411, 411, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 411, 411, 411, 411, 411, 0, 0, 0, 0, 0, 193, 0, 0, 0, 177, 0, 185, 0, 0, 0, 193, 0, 0, 0, 0, 0, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 0, 0, 411, 411, 411, 0, 176, 411, 184, 193, 193, 0, 411, 193, 193, 193, 193, 193, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 193, 0, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 0, 0, 189, 189, 189, 189, 189, 0, 189, 0, 0, 0, 193, 193, 0, 0, 0, 0, 0, 189, 189, 189, 0, 189, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 189, 189, 0, 0, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 186, 186, 0, 0, 186, 186, 186, 186, 186, 0, 186, 0, 0, 0, 0, 508, 509, 0, 0, 510, 0, 186, 186, 186, 0, 186, 186, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 186, 186, 0, 0, 0, 0, 0, 193, 193, 193, 0, 0, 193, 193, 193, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 0, 0, 0, 186, 186, 0, 0, 193, 193, 0, 193, 193, 193, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 0, 0, 193, 193, 189, 189, 189, 193, 0, 189, 189, 189, 193, 189, 0, 0, 0, 0, 0, 0, 334, 329, 0, 189, 189, 332, 330, 608, 331, 0, 333, 0, 189, 189, 0, 189, 189, 189, 189, 189, 0, 0, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 187, 0, 189, 189, 328, 0, 0, 189, 0, 0, 187, 0, 189, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 0, 0, 186, 186, 186, 0, 186, 0, 0, 0, 0, 327, 0, 0, 187, 187, 186, 186, 187, 187, 187, 187, 187, 0, 187, 186, 186, 0, 186, 186, 186, 186, 186, 0, 0, 187, 187, 187, 0, 187, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 188, 0, 186, 186, 187, 187, 0, 186, }; } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
1059,
9060,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
22,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
1850,
1059,
9060,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565... |
case PARENT: return "PARENT"; | public static String name(int token) { if (printNames) { switch (token) { case ERROR: return "ERROR"; case EOF: return "EOF"; case EOL: return "EOL"; case POPV: return "POPV"; case ENTERWITH: return "ENTERWITH"; case LEAVEWITH: return "LEAVEWITH"; case RETURN: return "RETURN"; case GOTO: return "GOTO"; case IFEQ: return "IFEQ"; case IFNE: return "IFNE"; case SETNAME: return "SETNAME"; case BITOR: return "BITOR"; case BITXOR: return "BITXOR"; case BITAND: return "BITAND"; case EQ: return "EQ"; case NE: return "NE"; case LT: return "LT"; case LE: return "LE"; case GT: return "GT"; case GE: return "GE"; case LSH: return "LSH"; case RSH: return "RSH"; case URSH: return "URSH"; case ADD: return "ADD"; case SUB: return "SUB"; case MUL: return "MUL"; case DIV: return "DIV"; case MOD: return "MOD"; case NOT: return "NOT"; case BITNOT: return "BITNOT"; case POS: return "POS"; case NEG: return "NEG"; case NEW: return "NEW"; case DELPROP: return "DELPROP"; case TYPEOF: return "TYPEOF"; case GETPROP: return "GETPROP"; case SETPROP: return "SETPROP"; case GETELEM: return "GETELEM"; case SETELEM: return "SETELEM"; case CALL: return "CALL"; case NAME: return "NAME"; case NUMBER: return "NUMBER"; case STRING: return "STRING"; case ZERO: return "ZERO"; case ONE: return "ONE"; case NULL: return "NULL"; case THIS: return "THIS"; case FALSE: return "FALSE"; case TRUE: return "TRUE"; case SHEQ: return "SHEQ"; case SHNE: return "SHNE"; case REGEXP: return "OBJECT"; case POP: return "POP"; case BINDNAME: return "BINDNAME"; case THROW: return "THROW"; case IN: return "IN"; case INSTANCEOF: return "INSTANCEOF"; case LOCAL_SAVE: return "LOCAL_SAVE"; case LOCAL_LOAD: return "LOCAL_LOAD"; case GETBASE: return "GETBASE"; case GETVAR: return "GETVAR"; case SETVAR: return "SETVAR"; case UNDEFINED: return "UNDEFINED"; case GETTHIS: return "GETTHIS"; case TRY: return "TRY"; case CATCH_SCOPE: return "CATCH_SCOPE"; case ENUM_INIT: return "ENUM_INIT"; case ENUM_NEXT: return "ENUM_NEXT"; case ENUM_ID: return "ENUM_ID"; case THISFN: return "THISFN"; case RETURN_POPV: return "RETURN_POPV"; case SEMI: return "SEMI"; case LB: return "LB"; case RB: return "RB"; case LC: return "LC"; case RC: return "RC"; case LP: return "LP"; case RP: return "RP"; case COMMA: return "COMMA"; case ASSIGN: return "ASSIGN"; case ASSIGNOP: return "ASSIGNOP"; case HOOK: return "HOOK"; case COLON: return "COLON"; case OR: return "OR"; case AND: return "AND"; case INC: return "INC"; case DEC: return "DEC"; case DOT: return "DOT"; case FUNCTION: return "FUNCTION"; case EXPORT: return "EXPORT"; case IMPORT: return "IMPORT"; case IF: return "IF"; case ELSE: return "ELSE"; case SWITCH: return "SWITCH"; case CASE: return "CASE"; case DEFAULT: return "DEFAULT"; case WHILE: return "WHILE"; case DO: return "DO"; case FOR: return "FOR"; case BREAK: return "BREAK"; case CONTINUE: return "CONTINUE"; case VAR: return "VAR"; case WITH: return "WITH"; case CATCH: return "CATCH"; case FINALLY: return "FINALLY"; case RESERVED: return "RESERVED"; case EMPTY: return "EMPTY"; case BLOCK: return "BLOCK"; case ARRAYLIT: return "ARRAYLIT"; case OBJLIT: return "OBJLIT"; case LABEL: return "LABEL"; case TARGET: return "TARGET"; case LOOP: return "LOOP"; case EXPRSTMT: return "EXPRSTMT"; case PARENT: return "PARENT"; case JSR: return "JSR"; case NEWTEMP: return "NEWTEMP"; case USETEMP: return "USETEMP"; case SCRIPT: return "SCRIPT"; case TYPEOFNAME: return "TYPEOFNAME"; case USE_STACK: return "USE_STACK"; case SETPROP_OP: return "SETPROP_OP"; case SETELEM_OP: return "SETELEM_OP"; case INIT_LIST: return "INIT_LIST"; case LOCAL_BLOCK: return "LOCAL_BLOCK"; } return "<unknown="+token+">"; } return null; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8423b14b48dfb9008e0af93d8f396109a0eeb68c/Token.java/clean/js/rhino/src/org/mozilla/javascript/Token.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
508,
12,
474,
1147,
13,
565,
288,
3639,
309,
261,
1188,
1557,
13,
288,
5411,
1620,
261,
2316,
13,
288,
7734,
648,
5475,
30,
6647,
327,
315,
3589,
14432,
7734,
648,
6431,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
508,
12,
474,
1147,
13,
565,
288,
3639,
309,
261,
1188,
1557,
13,
288,
5411,
1620,
261,
2316,
13,
288,
7734,
648,
5475,
30,
6647,
327,
315,
3589,
14432,
7734,
648,
6431,... | |
public er.bugtracker.Priority priority() { return (er.bugtracker.Priority)storedValueForKey("priority"); | public Priority priority() { return (Priority)storedValueForKey("priority"); | public er.bugtracker.Priority priority() { return (er.bugtracker.Priority)storedValueForKey("priority"); } | 17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/e2f6d086a1ca4f9bae07e93767b99fcb6f6fa2ac/_Bug.java/buggy/Common/Applications/BugTracker/Frameworks/BTBusinessLogic/Sources/er/bugtracker/_Bug.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6445,
18,
925,
16543,
18,
8183,
4394,
1435,
288,
3639,
327,
261,
264,
18,
925,
16543,
18,
8183,
13,
22601,
620,
19759,
2932,
8457,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6445,
18,
925,
16543,
18,
8183,
4394,
1435,
288,
3639,
327,
261,
264,
18,
925,
16543,
18,
8183,
13,
22601,
620,
19759,
2932,
8457,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
... |
protected void emitAttribute (String attrName, String attrval ) { if (outputResults) testLogWriter.println(attrName + EQUALS + "\"" + attrval + "\"" ); | protected void emitAttribute(String attrName, String attrval) { if (outputResults) testLogWriter.println(attrName + EQUALS + "\"" + attrval + "\""); | protected void emitAttribute (String attrName, String attrval ) { if (outputResults) testLogWriter.println(attrName + EQUALS + "\"" + attrval + "\"" ); } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/Torture.java/buggy/src/test/torture/Torture.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3626,
1499,
261,
780,
11583,
16,
514,
1604,
1125,
262,
288,
202,
202,
430,
261,
2844,
3447,
13,
3196,
202,
3813,
1343,
2289,
18,
8222,
12,
1747,
461,
397,
27557,
397,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
3626,
1499,
261,
780,
11583,
16,
514,
1604,
1125,
262,
288,
202,
202,
430,
261,
2844,
3447,
13,
3196,
202,
3813,
1343,
2289,
18,
8222,
12,
1747,
461,
397,
27557,
397,
11... |
assertEquals("search-match-test", report.getAttribute(BugzillaReportElement.SHORT_DESC.getKeyString()).getValue()); | assertEquals("search-match-test", report.getAttribute(BugzillaReportElement.SHORT_DESC.getKeyString()) .getValue()); | public void testReadingReport220() throws Exception { int bugid = 1; TaskRepository repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND, IBugzillaConstants.TEST_BUGZILLA_220_URL); RepositoryTaskData report = new RepositoryTaskData(attributeFactory, BugzillaPlugin.REPOSITORY_KIND, repository.getUrl(), bugid); BugzillaRepositoryUtil.setupExistingBugAttributes(repository.getUrl(), report); factory.populateReport(report, repository.getUrl(), null, repository.getUserName(), repository.getPassword(), null); assertNotNull(report); assertEquals("1", report.getAttribute(BugzillaReportElement.BUG_ID.getKeyString()).getValue()); assertEquals("search-match-test", report.getAttribute(BugzillaReportElement.SHORT_DESC.getKeyString()).getValue()); assertEquals("TestProduct", report.getAttribute(BugzillaReportElement.PRODUCT.getKeyString()).getValue()); assertEquals("TestComponent", report.getAttribute(BugzillaReportElement.COMPONENT.getKeyString()).getValue()); assertEquals("PC", report.getAttribute(BugzillaReportElement.REP_PLATFORM.getKeyString()).getValue()); assertEquals("Windows", report.getAttribute(BugzillaReportElement.OP_SYS.getKeyString()).getValue()); assertEquals("other", report.getAttribute(BugzillaReportElement.VERSION.getKeyString()).getValue()); assertEquals("P2", report.getAttribute(BugzillaReportElement.PRIORITY.getKeyString()).getValue()); assertEquals("normal", report.getAttribute(BugzillaReportElement.BUG_SEVERITY.getKeyString()).getValue()); assertEquals("NEW", report.getAttribute(BugzillaReportElement.BUG_STATUS.getKeyString()).getValue()); assertEquals("2006-03-02 17:30", report.getAttribute(BugzillaReportElement.CREATION_TS.getKeyString()).getValue()); assertEquals("2006-04-20 15:13:43", report.getAttribute(BugzillaReportElement.DELTA_TS.getKeyString()).getValue()); assertEquals("---", report.getAttribute(BugzillaReportElement.TARGET_MILESTONE.getKeyString()).getValue()); assertEquals("relves@cs.ubc.ca", report.getAttribute(BugzillaReportElement.REPORTER.getKeyString()).getValue()); assertEquals("relves@cs.ubc.ca", report.getAttribute(BugzillaReportElement.ASSIGNED_TO.getKeyString()).getValue()); assertEquals("relves@cs.ubc.ca", report.getAttribute(BugzillaReportElement.CC.getKeyString()).getValue()); assertEquals(3, report.getComments().size()); assertEquals("relves@cs.ubc.ca", report.getComments().get(0).getAttribute(BugzillaReportElement.WHO.getKeyString()).getValue()); assertEquals("2006-03-02 17:30", report.getComments().get(0).getAttribute(BugzillaReportElement.BUG_WHEN.getKeyString()) .getValue()); assertEquals("search-match-test", report.getComments().get(0).getAttribute(BugzillaReportElement.THETEXT.getKeyString()) .getValue()); assertEquals(0, report.getAttachments().size()); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/80e089f4d6c734be365650a618f4b52caa8f4291/RepositoryReportFactoryTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryReportFactoryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
15714,
4820,
27246,
1435,
1216,
1185,
288,
202,
202,
474,
7934,
350,
273,
404,
31,
202,
202,
2174,
3305,
3352,
273,
394,
3837,
3305,
12,
19865,
15990,
3773,
18,
862,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
15714,
4820,
27246,
1435,
1216,
1185,
288,
202,
202,
474,
7934,
350,
273,
404,
31,
202,
202,
2174,
3305,
3352,
273,
394,
3837,
3305,
12,
19865,
15990,
3773,
18,
862,
... |
Image getMissingImage() { if (missingImage == null) { missingImage = getImage(ImageDescriptor.getMissingImageDescriptor()); } return missingImage; } | private final Image getMissingImage() { if (missingImage == null) { missingImage = getImage(ImageDescriptor .getMissingImageDescriptor()); } return missingImage; } | Image getMissingImage() { if (missingImage == null) { missingImage = getImage(ImageDescriptor.getMissingImageDescriptor()); } return missingImage; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/6338be710df7b26cfcf30c8e9ac883d8cada8712/ActionContributionItem.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
2040,
2108,
2169,
2040,
1435,
288,
1082,
202,
430,
261,
7337,
2040,
422,
446,
13,
288,
9506,
202,
7337,
2040,
273,
10567,
12,
2040,
3187,
18,
588,
4841,
2040,
3187,
10663,
1082,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
2040,
2108,
2169,
2040,
1435,
288,
1082,
202,
430,
261,
7337,
2040,
422,
446,
13,
288,
9506,
202,
7337,
2040,
273,
10567,
12,
2040,
3187,
18,
588,
4841,
2040,
3187,
10663,
1082,
202... |
public void setDefaultSettings() { this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; this.alignment_for_assignment = Alignment.M_NO_ALIGNMENT; this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; this.alignment_for_enum_constants = Alignment.NONE; this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; this.alignment_for_superclass_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; this.align_type_members_on_columns = false; this.brace_position_for_array_initializer = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_block = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_block_in_case = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_constructor_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_enum_constant = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_enum_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_method_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_type_declaration = DefaultCodeFormatterConstants.END_OF_LINE; this.brace_position_for_switch = DefaultCodeFormatterConstants.END_OF_LINE;// this.comment_clear_blank_lines = false;// this.comment_format = true;// this.comment_format_header = false;// this.comment_format_html = true;// this.comment_format_source = true;// this.comment_indent_parameter_description = true;// this.comment_indent_root_tags = true;// this.comment_insert_empty_line_before_root_tags = true;// this.comment_insert_new_line_for_parameter = true;// this.comment_line_length = 80; this.continuation_indentation = 2; this.continuation_indentation_for_array_initializer = 2;// this.blank_lines_after_imports = 0;// this.blank_lines_after_package = 0;// this.blank_lines_before_field = 0;// this.blank_lines_before_first_class_body_declaration = 0;// this.blank_lines_before_imports = 0;// this.blank_lines_before_member_type = 0;// this.blank_lines_before_method = 0;// this.blank_lines_before_new_chunk = 0;// this.blank_lines_before_package = 0;// this.blank_lines_between_type_declarations = 0;// this.blank_lines_at_beginning_of_method_body = 0; this.indent_statements_compare_to_block = true; this.indent_statements_compare_to_body = true; this.indent_body_declarations_compare_to_enum_constant_header = true; this.indent_body_declarations_compare_to_enum_declaration_header = true; this.indent_body_declarations_compare_to_access_specifier = true; this.indent_breaks_compare_to_cases = true; this.indent_empty_lines = false; this.indent_switchstatements_compare_to_cases = true; this.indent_switchstatements_compare_to_switch = true; this.indentation_size = 4;// this.insert_new_line_after_opening_brace_in_array_initializer = false;// this.insert_new_line_at_end_of_file_if_missing = false;// this.insert_new_line_before_catch_in_try_statement = false;// this.insert_new_line_before_closing_brace_in_array_initializer = false;// this.insert_new_line_before_else_in_if_statement = false;// this.insert_new_line_before_finally_in_try_statement = false;// this.insert_new_line_before_while_in_do_statement = false;// this.insert_new_line_in_empty_block = true;// this.insert_new_line_in_empty_enum_constant = true;// this.insert_new_line_in_empty_enum_declaration = true;// this.insert_new_line_in_empty_method_body = true;// this.insert_new_line_in_empty_type_declaration = true;// this.insert_space_after_and_in_type_parameter = true;// this.insert_space_after_assignment_operator = true;// this.insert_space_after_binary_operator = true;// this.insert_space_after_closing_angle_bracket_in_type_arguments = true;// this.insert_space_after_closing_angle_bracket_in_type_parameters = true;// this.insert_space_after_closing_paren_in_cast = true;// this.insert_space_after_closing_brace_in_block = true;// this.insert_space_after_colon_in_assert = true;// this.insert_space_after_colon_in_case = true;// this.insert_space_after_colon_in_conditional = true;// this.insert_space_after_colon_in_for = true;// this.insert_space_after_colon_in_labeled_statement = true;// this.insert_space_after_comma_in_allocation_expression = true;// this.insert_space_after_comma_in_array_initializer = true;// this.insert_space_after_comma_in_constructor_declaration_parameters = true;// this.insert_space_after_comma_in_constructor_declaration_throws = true;// this.insert_space_after_comma_in_enum_constant_arguments = true;// this.insert_space_after_comma_in_enum_declarations = true;// this.insert_space_after_comma_in_explicit_constructor_call_arguments = true;// this.insert_space_after_comma_in_for_increments = true;// this.insert_space_after_comma_in_for_inits = true;// this.insert_space_after_comma_in_method_invocation_arguments = true;// this.insert_space_after_comma_in_method_declaration_parameters = true;// this.insert_space_after_comma_in_method_declaration_throws = true;// this.insert_space_after_comma_in_multiple_field_declarations = true;// this.insert_space_after_comma_in_multiple_local_declarations = true;// this.insert_space_after_comma_in_parameterized_type_reference = true;// this.insert_space_after_comma_in_superinterfaces = true;// this.insert_space_after_comma_in_type_arguments = true;// this.insert_space_after_comma_in_type_parameters = true;// this.insert_space_after_ellipsis = true;// this.insert_space_after_opening_angle_bracket_in_parameterized_type_reference = false;// this.insert_space_after_opening_angle_bracket_in_type_arguments = false;// this.insert_space_after_opening_angle_bracket_in_type_parameters = false;// this.insert_space_after_opening_bracket_in_array_allocation_expression = false;// this.insert_space_after_opening_bracket_in_array_reference = false;// this.insert_space_after_opening_brace_in_array_initializer = false;// this.insert_space_after_opening_paren_in_cast = false;// this.insert_space_after_opening_paren_in_catch = false;// this.insert_space_after_opening_paren_in_constructor_declaration = false;// this.insert_space_after_opening_paren_in_enum_constant = false;// this.insert_space_after_opening_paren_in_for = false;// this.insert_space_after_opening_paren_in_if = false;// this.insert_space_after_opening_paren_in_method_declaration = false;// this.insert_space_after_opening_paren_in_method_invocation = false;// this.insert_space_after_opening_paren_in_parenthesized_expression = false;// this.insert_space_after_opening_paren_in_switch = false;// this.insert_space_after_opening_paren_in_synchronized = false;// this.insert_space_after_opening_paren_in_while = false;// this.insert_space_after_postfix_operator = false;// this.insert_space_after_prefix_operator = false;// this.insert_space_after_question_in_conditional = true;// this.insert_space_after_question_in_wilcard = false;// this.insert_space_after_semicolon_in_for = true;// this.insert_space_after_unary_operator = false;// this.insert_space_before_and_in_type_parameter = true;// this.insert_space_before_assignment_operator = true;// this.insert_space_before_binary_operator = true;// this.insert_space_before_closing_angle_bracket_in_parameterized_type_reference = false;// this.insert_space_before_closing_angle_bracket_in_type_arguments = false;// this.insert_space_before_closing_angle_bracket_in_type_parameters = false;// this.insert_space_before_closing_brace_in_array_initializer = false;// this.insert_space_before_closing_bracket_in_array_allocation_expression = false;// this.insert_space_before_closing_bracket_in_array_reference = false;// this.insert_space_before_closing_paren_in_cast = false;// this.insert_space_before_closing_paren_in_catch = false;// this.insert_space_before_closing_paren_in_constructor_declaration = false;// this.insert_space_before_closing_paren_in_enum_constant = false;// this.insert_space_before_closing_paren_in_for = false;// this.insert_space_before_closing_paren_in_if = false;// this.insert_space_before_closing_paren_in_method_declaration = false;// this.insert_space_before_closing_paren_in_method_invocation = false;// this.insert_space_before_closing_paren_in_parenthesized_expression = false;// this.insert_space_before_closing_paren_in_switch = false;// this.insert_space_before_closing_paren_in_synchronized = false;// this.insert_space_before_closing_paren_in_while = false;// this.insert_space_before_colon_in_assert = true;// this.insert_space_before_colon_in_case = true;// this.insert_space_before_colon_in_conditional = true;// this.insert_space_before_colon_in_default = true;// this.insert_space_before_colon_in_for = true;// this.insert_space_before_colon_in_labeled_statement = true;// this.insert_space_before_comma_in_allocation_expression = false;// this.insert_space_before_comma_in_array_initializer = false;// this.insert_space_before_comma_in_constructor_declaration_parameters = false;// this.insert_space_before_comma_in_constructor_declaration_throws = false;// this.insert_space_before_comma_in_enum_constant_arguments = false;// this.insert_space_before_comma_in_enum_declarations = false;// this.insert_space_before_comma_in_explicit_constructor_call_arguments = false;// this.insert_space_before_comma_in_for_increments = false;// this.insert_space_before_comma_in_for_inits = false;// this.insert_space_before_comma_in_method_invocation_arguments = false;// this.insert_space_before_comma_in_method_declaration_parameters = false;// this.insert_space_before_comma_in_method_declaration_throws = false;// this.insert_space_before_comma_in_multiple_field_declarations = false;// this.insert_space_before_comma_in_multiple_local_declarations = false;// this.insert_space_before_comma_in_parameterized_type_reference = false;// this.insert_space_before_comma_in_superinterfaces = false;// this.insert_space_before_comma_in_type_arguments = false;// this.insert_space_before_comma_in_type_parameters = false;// this.insert_space_before_ellipsis = false;// this.insert_space_before_parenthesized_expression_in_return = true;// this.insert_space_before_opening_angle_bracket_in_parameterized_type_reference = false;// this.insert_space_before_opening_angle_bracket_in_type_arguments = false;// this.insert_space_before_opening_angle_bracket_in_type_parameters = false;// this.insert_space_before_opening_brace_in_array_initializer = false;// this.insert_space_before_opening_brace_in_block = true;// this.insert_space_before_opening_brace_in_constructor_declaration = true;// this.insert_space_before_opening_brace_in_enum_constant = true;// this.insert_space_before_opening_brace_in_enum_declaration = true;// this.insert_space_before_opening_brace_in_method_declaration = true;// this.insert_space_before_opening_brace_in_switch = true;// this.insert_space_before_opening_brace_in_type_declaration = true;// this.insert_space_before_opening_bracket_in_array_allocation_expression = false;// this.insert_space_before_opening_bracket_in_array_reference = false;// this.insert_space_before_opening_bracket_in_array_type_reference = false;// this.insert_space_before_opening_paren_in_catch = true;// this.insert_space_before_opening_paren_in_constructor_declaration = false;// this.insert_space_before_opening_paren_in_enum_constant = false;// this.insert_space_before_opening_paren_in_for = true;// this.insert_space_before_opening_paren_in_if = true;// this.insert_space_before_opening_paren_in_method_invocation = false;// this.insert_space_before_opening_paren_in_method_declaration = false;// this.insert_space_before_opening_paren_in_switch = true;// this.insert_space_before_opening_paren_in_synchronized = true;// this.insert_space_before_opening_paren_in_parenthesized_expression = false;// this.insert_space_before_opening_paren_in_while = true;// this.insert_space_before_postfix_operator = false;// this.insert_space_before_prefix_operator = false;// this.insert_space_before_question_in_conditional = true;// this.insert_space_before_question_in_wilcard = false;// this.insert_space_before_semicolon = false;// this.insert_space_before_semicolon_in_for = false;// this.insert_space_before_unary_operator = false;// this.insert_space_between_brackets_in_array_type_reference = false;// this.insert_space_between_empty_braces_in_array_initializer = false;// this.insert_space_between_empty_brackets_in_array_allocation_expression = false;// this.insert_space_between_empty_parens_in_constructor_declaration = false;// this.insert_space_between_empty_parens_in_enum_constant = false;// this.insert_space_between_empty_parens_in_method_declaration = false;// this.insert_space_between_empty_parens_in_method_invocation = false;// this.compact_else_if = true;// this.keep_guardian_clause_on_one_line = false;// this.keep_else_statement_on_same_line = false;// this.keep_empty_array_initializer_on_one_line = false;// this.keep_simple_if_on_one_line = false;// this.keep_then_statement_on_same_line = false;// this.number_of_empty_lines_to_preserve = 1;// this.put_empty_statement_on_new_line = false; this.tab_size = 4; this.page_width = 80; this.tab_char = TAB; // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=49081 this.use_tabs_only_for_leading_indentations = false; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/12f3dd59c579048e11942c9768bb3f6c6a45e156/DefaultCodeFormatterOptions.java/buggy/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/DefaultCodeFormatterOptions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9277,
2628,
1435,
288,
202,
202,
2211,
18,
14409,
67,
1884,
67,
7099,
67,
267,
67,
29299,
67,
8692,
273,
17804,
18,
49,
67,
4208,
4066,
1268,
67,
17482,
31,
202,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
9277,
2628,
1435,
288,
202,
202,
2211,
18,
14409,
67,
1884,
67,
7099,
67,
267,
67,
29299,
67,
8692,
273,
17804,
18,
49,
67,
4208,
4066,
1268,
67,
17482,
31,
202,
202,
2... | ||
return checkcast(regpool, s); | result = checkcast(regpool, s); break; | public static byte simplify(OPT_AbstractRegisterPool regpool, OPT_Instruction s) { switch (s.getOpcode()) { //////////////////// // GUARD operations //////////////////// case GUARD_COMBINE_opcode: return guardCombine(s); //////////////////// // TRAP operations //////////////////// case TRAP_IF_opcode: return trapIf(s); case NULL_CHECK_opcode: return nullCheck(s); case INT_ZERO_CHECK_opcode: return intZeroCheck(s); case LONG_ZERO_CHECK_opcode: return longZeroCheck(s); case CHECKCAST_opcode: return checkcast(regpool, s); case CHECKCAST_UNRESOLVED_opcode: return checkcast(regpool, s); case CHECKCAST_NOTNULL_opcode: return checkcastNotNull(s); case INSTANCEOF_opcode: return instanceOf(regpool, s); case INSTANCEOF_NOTNULL_opcode: return instanceOfNotNull(s); case OBJARRAY_STORE_CHECK_opcode: return objarrayStoreCheck(s); case OBJARRAY_STORE_CHECK_NOTNULL_opcode: return objarrayStoreCheckNotNull(s); case MUST_IMPLEMENT_INTERFACE_opcode: return mustImplementInterface(s); //////////////////// // Conditional moves //////////////////// case INT_COND_MOVE_opcode: return intCondMove(s); case LONG_COND_MOVE_opcode: return longCondMove(s); case FLOAT_COND_MOVE_opcode: return floatCondMove(s); case DOUBLE_COND_MOVE_opcode: return doubleCondMove(s); case REF_COND_MOVE_opcode: return refCondMove(s); case GUARD_COND_MOVE_opcode: return guardCondMove(s); //////////////////// // INT ALU operations //////////////////// case BOOLEAN_NOT_opcode: return booleanNot(s); case BOOLEAN_CMP_INT_opcode: return booleanCmpInt(s); case BOOLEAN_CMP_ADDR_opcode: return booleanCmpAddr(s); case INT_ADD_opcode: return intAdd(s); case INT_AND_opcode: return intAnd(s); case INT_DIV_opcode: return intDiv(s); case INT_MUL_opcode: return intMul(regpool, s); case INT_NEG_opcode: return intNeg(s); case INT_NOT_opcode: return intNot(s); case INT_OR_opcode: return intOr(s); case INT_REM_opcode: return intRem(s); case INT_SHL_opcode: return intShl(s); case INT_SHR_opcode: return intShr(s); case INT_SUB_opcode: return intSub(s); case INT_USHR_opcode: return intUshr(s); case INT_XOR_opcode: return intXor(s); //////////////////// // WORD ALU operations //////////////////// case REF_ADD_opcode: return refAdd(s); case REF_AND_opcode: return refAnd(s); case REF_SHL_opcode: return refShl(s); case REF_SHR_opcode: return refShr(s); case REF_NOT_opcode: return refNot(s); case REF_OR_opcode: return refOr(s); case REF_SUB_opcode: return refSub(s); case REF_USHR_opcode: return regUshr(s); case REF_XOR_opcode: return refXor(s); //////////////////// // LONG ALU operations //////////////////// case LONG_ADD_opcode: return longAdd(s); case LONG_AND_opcode: return longAnd(s); case LONG_CMP_opcode: return longCmp(s); case LONG_DIV_opcode: return longDiv(s); case LONG_MUL_opcode: return longMul(s); case LONG_NEG_opcode: return longNeg(s); case LONG_NOT_opcode: return longNot(s); case LONG_OR_opcode: return longOr(s); case LONG_REM_opcode: return longRem(s); case LONG_SHL_opcode: return longShl(s); case LONG_SHR_opcode: return longShr(s); case LONG_SUB_opcode: return longSub(s); case LONG_USHR_opcode: return longUshr(s); case LONG_XOR_opcode: return longXor(s); //////////////////// // FLOAT ALU operations //////////////////// case FLOAT_ADD_opcode: return floatAdd(s); case FLOAT_CMPG_opcode: return floatCmpg(s); case FLOAT_CMPL_opcode: return floatCmpl(s); case FLOAT_DIV_opcode: return floatDiv(s); case FLOAT_MUL_opcode: return floatMul(s); case FLOAT_NEG_opcode: return floatNeg(s); case FLOAT_REM_opcode: return floatRem(s); case FLOAT_SUB_opcode: return floatSub(s); //////////////////// // DOUBLE ALU operations //////////////////// case DOUBLE_ADD_opcode: return doubleAdd(s); case DOUBLE_CMPG_opcode: return doubleCmpg(s); case DOUBLE_CMPL_opcode: return doubleCmpl(s); case DOUBLE_DIV_opcode: return doubleDiv(s); case DOUBLE_MUL_opcode: return doubleMul(s); case DOUBLE_NEG_opcode: return doubleNeg(s); case DOUBLE_REM_opcode: return doubleRem(s); case DOUBLE_SUB_opcode: return doubleSub(s); //////////////////// // CONVERSION operations //////////////////// case DOUBLE_2FLOAT_opcode: return double2Float(s); case DOUBLE_2INT_opcode: return double2Int(s); case DOUBLE_2LONG_opcode: return double2Long(s); case DOUBLE_AS_LONG_BITS_opcode: return doubleAsLongBits(s); case INT_2DOUBLE_opcode: return int2Double(s); case INT_2BYTE_opcode: return int2Byte(s); case INT_2USHORT_opcode: return int2UShort(s); case INT_2FLOAT_opcode: return int2Float(s); case INT_2LONG_opcode: return int2Long(s); case INT_2ADDRSigExt_opcode: return int2AddrSigExt(s); case INT_2ADDRZerExt_opcode: return int2AddrZerExt(s); //-#if RVM_FOR_64_ADDR case LONG_2ADDR_opcode: return long2Addr(s); //-#endif case INT_2SHORT_opcode: return int2Short(s); case INT_BITS_AS_FLOAT_opcode: return intBitsAsFloat(s); case ADDR_2INT_opcode: return addr2Int(s); case ADDR_2LONG_opcode: return addr2Long(s); case FLOAT_2DOUBLE_opcode: return float2Double(s); case FLOAT_2INT_opcode: return float2Int(s); case FLOAT_2LONG_opcode: return float2Long(s); case FLOAT_AS_INT_BITS_opcode: return floatAsIntBits(s); case LONG_2FLOAT_opcode: return long2Float(s); case LONG_2INT_opcode: return long2Int(s); case LONG_2DOUBLE_opcode: return long2Double(s); case LONG_BITS_AS_DOUBLE_opcode: return longBitsAsDouble(s); //////////////////// // Field operations //////////////////// case ARRAYLENGTH_opcode: return arrayLength(s); case BOUNDS_CHECK_opcode: return boundsCheck(s); case CALL_opcode: return call(s); case GETFIELD_opcode: return getField(s); case GET_OBJ_TIB_opcode: return getObjTib(s); case GET_CLASS_TIB_opcode: return getClassTib(s); case GET_TYPE_FROM_TIB_opcode: return getTypeFromTib(s); case GET_ARRAY_ELEMENT_TIB_FROM_TIB_opcode: return getArrayElementTibFromTib(s); case GET_SUPERCLASS_IDS_FROM_TIB_opcode: return getSuperclassIdsFromTib(s); case GET_DOES_IMPLEMENT_FROM_TIB_opcode: return getDoesImplementFromTib(s); case REF_LOAD_opcode: return refLoad(s); default: return UNCHANGED; } } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/582eb14323a5e74a2c99b6035e34aa59e229d896/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1160,
16499,
12,
15620,
67,
7469,
3996,
2864,
960,
6011,
16,
16456,
67,
11983,
272,
13,
288,
565,
1620,
261,
87,
18,
588,
22808,
10756,
288,
1377,
368,
3517,
759,
1377,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1160,
16499,
12,
15620,
67,
7469,
3996,
2864,
960,
6011,
16,
16456,
67,
11983,
272,
13,
288,
565,
1620,
261,
87,
18,
588,
22808,
10756,
288,
1377,
368,
3517,
759,
1377,
368,
... |
else { unit = bean.getUnit(); } | else { unit = bean.getUnit(); } | public ResultUnitAssociation run(ResultUnitAssociationCreationBean bean) throws ExcepcaoPersistencia, FenixServiceException { final Result result = bean.getResult(); if(result == null){ throw new InvalidArgumentsServiceException(); } final Person person = AccessControl.getUserView().getPerson(); final Unit unit; if (bean.getUnit() == null) { unit = Unit.createNewExternalInstitution(bean.getUnitName()); } else { unit = bean.getUnit(); } ResultUnitAssociation association = null; try { association = new ResultUnitAssociation(result, unit, bean.getRole(), person.getName()); } catch (DomainException e) { //If a new unit was created for this purpose and the association was not created, unit will be deleted. if (unit!=null && bean.getUnit()==null) { unit.delete(); } throw new FenixServiceException(e.getKey()); } return association; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/179a336416588f68edb5e41862665afb8821be99/CreateResultUnitAssociation.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/research/result/CreateResultUnitAssociation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3438,
2802,
7174,
1086,
12,
1253,
2802,
7174,
9906,
3381,
3931,
13,
1216,
1312,
311,
2436,
6033,
12771,
28115,
16,
478,
275,
697,
15133,
288,
3639,
727,
3438,
563,
273,
3931,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3438,
2802,
7174,
1086,
12,
1253,
2802,
7174,
9906,
3381,
3931,
13,
1216,
1312,
311,
2436,
6033,
12771,
28115,
16,
478,
275,
697,
15133,
288,
3639,
727,
3438,
563,
273,
3931,
18,
58... |
out.write(null); | serializer.write(null); | public void testNullDocument() throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); Canonicalizer serializer = new Canonicalizer(out); try { out.write(null); fail("Wrote null document"); } catch (NullPointerException success) { // success } byte[] result = out.toByteArray(); assertEquals(0, result.length); } | 8327 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8327/ce43689bc7b6bd671082e3d1f6a767afaed7e79c/CanonicalizerTest.java/clean/src/nu/xom/tests/CanonicalizerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2041,
2519,
1435,
4202,
1216,
1860,
288,
3639,
11559,
596,
273,
394,
11559,
5621,
3639,
19413,
1824,
6340,
273,
394,
19413,
1824,
12,
659,
1769,
3639,
775,
288,
5411,
6340,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2041,
2519,
1435,
4202,
1216,
1860,
288,
3639,
11559,
596,
273,
394,
11559,
5621,
3639,
19413,
1824,
6340,
273,
394,
19413,
1824,
12,
659,
1769,
3639,
775,
288,
5411,
6340,... |
i = j + 1; } while ( j != -1 && j < s.length( ) ); | tl.dispose( ); al = nal; } | private String[] splitOnBreaks( String s, double maxSize ) { final ArrayList al = new ArrayList( ); if ( maxSize > 0 ) { gc.setFont( getFont( ) ); } int i = 0, j; do { j = s.indexOf( '\n', i ); if ( j == -1 ) { j = s.length( ); } String ss = s.substring( i, j ).trim( ); if ( ss != null && ss.length( ) > 0 ) { // check max size. if ( maxSize > 0 ) { Point size = gc.textExtent( ss ); if ( size.x > maxSize ) { // try fuzzy match first int estCount = (int) ( maxSize / size.x ) * ss.length( ); if ( estCount < 1 ) { estCount = ss.length( ); } String fs; Point fsize; int curPos = 0; while ( ss.length( ) > 0 ) { fs = ss.substring( 0, Math.min( estCount, ss.length( ) ) ); fsize = gc.textExtent( fs ); if ( fsize.x <= maxSize ) { al.add( fs ); curPos = fs.length( ); } else { boolean matched = false; // decrease the count and test again. int curCount = Math.min( estCount - 1, ss.length( ) ); while ( curCount > 1 ) { fs = ss.substring( 0, curCount ); fsize = gc.textExtent( fs ); if ( fsize.x <= maxSize ) { al.add( fs ); curPos = fs.length( ); matched = true; break; } else { curCount--; } } if ( !matched ) { al.add( fs ); curPos = fs.length( ); } } ss = ss.substring( curPos ); curPos = 0; } } else { al.add( ss ); } } else { al.add( ss ); } } i = j + 1; } while ( j != -1 && j < s.length( ) ); final int n = al.size( ); if ( n == 1 || n == 0 ) { return null; } final String[] sa = new String[n]; for ( i = 0; i < al.size( ); i++ ) { sa[i] = (String) al.get( i ); } return sa; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/965db3fb082531b7248f7576d1afac6784a91423/SwtTextMetrics.java/buggy/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtTextMetrics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
1416,
1398,
26806,
12,
514,
272,
16,
1645,
14777,
262,
202,
95,
202,
202,
6385,
2407,
524,
273,
394,
2407,
12,
11272,
202,
202,
430,
261,
14777,
405,
374,
262,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
1416,
1398,
26806,
12,
514,
272,
16,
1645,
14777,
262,
202,
95,
202,
202,
6385,
2407,
524,
273,
394,
2407,
12,
11272,
202,
202,
430,
261,
14777,
405,
374,
262,
202... |
buffer = new byte[BUFFER_LENGTH]; code = new byte[BUFFER_LENGTH]; randomer = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM); key = (byte)0; | userID = new byte[USER_ID_LENGTH]; serverKey = new byte[KEY_LENGTH]; | protected SCApplet() { buffer = new byte[BUFFER_LENGTH]; code = new byte[BUFFER_LENGTH]; randomer = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM); key = (byte)0; register(); } | 11039 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11039/42227b086f9b2eb06dfed743179f70361cc75d0d/SCApplet.java/clean/trunk/src/de/berlios/jmds/applet/SCApplet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8795,
23696,
1435,
288,
3639,
1613,
273,
394,
1160,
63,
11302,
67,
7096,
15533,
3639,
981,
273,
394,
1160,
63,
11302,
67,
7096,
15533,
3639,
2744,
264,
273,
8072,
751,
18,
588,
1442... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8795,
23696,
1435,
288,
3639,
1613,
273,
394,
1160,
63,
11302,
67,
7096,
15533,
3639,
981,
273,
394,
1160,
63,
11302,
67,
7096,
15533,
3639,
2744,
264,
273,
8072,
751,
18,
588,
1442... |
if (!s.isSuspended()) count++; | if (!s.isSuspended()) { count++; } | public int getWeight() { int count = 0; for (Subscription s : _subscriptions) { if (!s.isSuspended()) count++; } return count; } | 45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/5a914f818635425089ea0378120fa27aa6bc211b/SubscriptionSet.java/clean/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SubscriptionSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
30535,
1435,
565,
288,
3639,
509,
1056,
273,
374,
31,
3639,
364,
261,
6663,
272,
294,
389,
19964,
13,
3639,
288,
5411,
309,
16051,
87,
18,
291,
55,
22942,
10756,
288,
1056,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
30535,
1435,
565,
288,
3639,
509,
1056,
273,
374,
31,
3639,
364,
261,
6663,
272,
294,
389,
19964,
13,
3639,
288,
5411,
309,
16051,
87,
18,
291,
55,
22942,
10756,
288,
1056,
9... |
public void addRouter(UMOResponseRouter router) | public void addRouter(UMORouter router) | public void addRouter(UMOResponseRouter router) { router.setTimeout(getTimeout()); routers.add(router); } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/c66d03db1796825e723bd73b6671b7833ed90af8/ResponseMessageRouter.java/buggy/src/java/org/mule/routing/response/ResponseMessageRouter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
8259,
12,
2799,
916,
14068,
4633,
13,
565,
288,
3639,
4633,
18,
542,
2694,
12,
588,
2694,
10663,
3639,
28944,
18,
1289,
12,
10717,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
8259,
12,
2799,
916,
14068,
4633,
13,
565,
288,
3639,
4633,
18,
542,
2694,
12,
588,
2694,
10663,
3639,
28944,
18,
1289,
12,
10717,
1769,
565,
289,
2,
-100,
-100,
-100,
-... |
Object[] arguments) { | final Object[] arguments) { | protected Object doInvokeInternal(final Class clazz, String methodName, Object[] arguments) { if(arguments.length == 0) throw new MissingMethodException(methodName,clazz,arguments); final Object arg = arguments[0]; // if the arg is an instance of the class find by example if(clazz.isInstance( arg.getClass() )) { return super.getHibernateTemplate().executeFind( new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { Example example = Example.create(arg) .ignoreCase(); Criteria crit = session.createCriteria(clazz); return crit .add(example) .list(); } }); } throw new MissingMethodException(methodName,clazz,arguments); } | 46315 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46315/760b70588642e776ca9c480b1b8bdcf5c0780746/FindPersistentMethod.java/buggy/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/FindPersistentMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
9506,
202,
430,
12,
7099,
18,
2469,
422,
374,
13,
1082,
202,
12849,
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,
1117,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
9506,
202,
430,
12,
7099,
18,
2469,
422,
374,
13,
1082,
202,
12849,
394,... |
arkNo = Long.parseLong(arkNumber); | arkNo = Long.parseLong(arkNumber) + 1; | private boolean parseARK(SimpleFieldSet fs) { USK ark = null; long arkNo = 0; try { String arkNumber = fs.get("ark.number"); if(arkNumber != null) { arkNo = Long.parseLong(arkNumber); } String arkPubKey = fs.get("ark.pubURI"); if(arkPubKey != null) { FreenetURI uri = new FreenetURI(arkPubKey); ClientSSK ssk = new ClientSSK(uri); ark = new USK(ssk, arkNo); } } catch (MalformedURLException e) { Logger.error(this, "Couldn't parse ARK info for "+this+": "+e, e); } catch (NumberFormatException e) { Logger.error(this, "Couldn't parse ARK info for "+this+": "+e, e); } if(ark != null) { if(myARK == null || (myARK != ark && !myARK.equals(ark))) { myARK = ark; return true; } } return false; } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/c68f335b2e7b5963f848fe98c5fdf9f7c71ba69f/PeerNode.java/buggy/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1109,
9584,
12,
5784,
974,
694,
2662,
13,
288,
3639,
587,
11129,
419,
79,
273,
446,
31,
3639,
1525,
419,
79,
2279,
273,
374,
31,
3639,
775,
288,
540,
202,
780,
419,
79,
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,
1250,
1109,
9584,
12,
5784,
974,
694,
2662,
13,
288,
3639,
587,
11129,
419,
79,
273,
446,
31,
3639,
1525,
419,
79,
2279,
273,
374,
31,
3639,
775,
288,
540,
202,
780,
419,
79,
18... |
return null; | return getDatabase(JCIPAnnotationDatabase.class); | public JCIPAnnotationDatabase getJCIPAnnotationDatabase() { // TODO return null; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/179cbe24d8db3bfa7d7d04ce2ad387fa6dfc6d25/AnalysisCacheToAnalysisContextAdapter.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/AnalysisCacheToAnalysisContextAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13032,
2579,
3257,
4254,
9285,
39,
2579,
3257,
4254,
1435,
288,
202,
202,
759,
2660,
3196,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
13032,
2579,
3257,
4254,
9285,
39,
2579,
3257,
4254,
1435,
288,
202,
202,
759,
2660,
3196,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return true; } | result = true; break; | public boolean containsCertificate(String alias) { if (!containsAlias(alias)) { return false; } List l = get(alias); for (Iterator it = l.iterator(); it.hasNext();) { if (it.next() instanceof CertificateEntry) { return true; } } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/abad947539d38da7392ff914207d1bb7d5538320/GnuPublicKeyring.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/keyring/GnuPublicKeyring.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
4719,
12,
780,
2308,
13,
225,
288,
565,
309,
16051,
12298,
2936,
12,
4930,
3719,
1377,
288,
3639,
327,
629,
31,
1377,
289,
565,
987,
328,
273,
336,
12,
4930,
1769,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1914,
4719,
12,
780,
2308,
13,
225,
288,
565,
309,
16051,
12298,
2936,
12,
4930,
3719,
1377,
288,
3639,
327,
629,
31,
1377,
289,
565,
987,
328,
273,
336,
12,
4930,
1769,
565... |
clearUserSettings = true; List encodings = WorkbenchEncoding.getDefinedEncodings(); Collections.sort(encodings); populateEncodingsCombo(encodings,null); updateEncodingState(true); super.performDefaults(); } | clearUserSettings = true; List encodings = WorkbenchEncoding.getDefinedEncodings(); Collections.sort(encodings); encodingEditor.doLoadDefault(); super.performDefaults(); } | protected void performDefaults() { clearUserSettings = true; List encodings = WorkbenchEncoding.getDefinedEncodings(); Collections.sort(encodings); populateEncodingsCombo(encodings,null); updateEncodingState(true); super.performDefaults(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/22b03e49369c0d636219d7fbdbd8bd91ecb4078b/IDEEditorsPreferencePage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEEditorsPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3073,
7019,
1435,
288,
7734,
2424,
1299,
2628,
273,
638,
31,
7734,
987,
24118,
273,
4147,
22144,
4705,
18,
588,
8116,
25100,
899,
5621,
3639,
5737,
18,
3804,
12,
1331,
369,
899... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3073,
7019,
1435,
288,
7734,
2424,
1299,
2628,
273,
638,
31,
7734,
987,
24118,
273,
4147,
22144,
4705,
18,
588,
8116,
25100,
899,
5621,
3639,
5737,
18,
3804,
12,
1331,
369,
899... |
if (editPageId == null) { return false; } WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry(); WorkingSetDescriptor descriptor= registry.getWorkingSetDescriptor(editPageId); | WorkingSetDescriptor descriptor = getDescriptor(null); | public boolean isSelfUpdating() { if (editPageId == null) { return false; } WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry(); WorkingSetDescriptor descriptor= registry.getWorkingSetDescriptor(editPageId); return descriptor != null && descriptor.getUpdaterClassName() != null; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/66dc803fa941d09658c3a87c45b70cc6302dc9f4/WorkingSet.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
10084,
17858,
1435,
288,
202,
202,
430,
261,
4619,
23053,
422,
446,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
14836,
694,
4243,
4023,
273,
4147,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
10084,
17858,
1435,
288,
202,
202,
430,
261,
4619,
23053,
422,
446,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
14836,
694,
4243,
4023,
273,
4147,
22... |
public void setInterval(String intervalName) { | public void setInterval(String intervalName) throws IntervalParseException { | public void setInterval(String intervalName) { StringBuffer sb = new StringBuffer(intervalName.length()); for(int i=0;i<intervalName.length();i++) { char c = intervalName.charAt(i); if(!Character.isDigit(c)) break; sb.append(c); } if(sb.length() > 0) { String prefix = sb.toString(); intervalName = intervalName.substring(prefix.length()); INTERVAL_MULTIPLIER = Integer.parseInt(prefix); } else { INTERVAL_MULTIPLIER = 1; } if (intervalName.endsWith("S")) { intervalName = intervalName.substring(0, intervalName.length()-1); } if (intervalName.equalsIgnoreCase("MINUTE")) INTERVAL = Calendar.MINUTE; else if (intervalName.equalsIgnoreCase("HOUR")) INTERVAL = Calendar.HOUR; else if (intervalName.equalsIgnoreCase("DAY")) INTERVAL = Calendar.DAY_OF_MONTH; else if (intervalName.equalsIgnoreCase("WEEK")) INTERVAL = Calendar.WEEK_OF_YEAR; else if (intervalName.equalsIgnoreCase("MONTH")) INTERVAL = Calendar.MONTH; else if (intervalName.equalsIgnoreCase("YEAR")) INTERVAL = Calendar.YEAR; else throw new IllegalArgumentException( "invalid interval " + intervalName); } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/2d2b5012400f5bab60d65d3d26d67efa9cf7d1d6/FileLoggerHook.java/clean/src/freenet/support/FileLoggerHook.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
27058,
12,
780,
3673,
461,
13,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
6624,
461,
18,
2469,
10663,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
6624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27058,
12,
780,
3673,
461,
13,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
6624,
461,
18,
2469,
10663,
202,
202,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
6624,
... |
return myIncludes = includeDirectives; | return myIncludes = includeDirectives.toArray(new XmlTag[includeDirectives.size()]); | public Set<XmlTag> getIncludeDirectivesInScope() { if(myIncludes != null) return myIncludes; final TextRange textRange = getTextRange(); final JspFile jspFile = (JspFile)getContainingFile(); final XmlTag[] directiveTags = jspFile.getDirectiveTags(JspDirectiveKind.INCLUDE, false); final Set<XmlTag> includeDirectives = new HashSet<XmlTag>(); for (int i = 0; i < directiveTags.length; i++) { final XmlTag directiveTag = directiveTags[i]; if(directiveTag.getNode().getStartOffset() < textRange.getStartOffset()) continue; if(directiveTag.getNode().getStartOffset() >= textRange.getEndOffset()) break; includeDirectives.add(directiveTag); } return myIncludes = includeDirectives; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/f9e72e184e8e77a49c2e2768691fcde24a81dabb/JspText.java/buggy/source/com/intellij/psi/impl/source/jsp/jspJava/JspText.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1000,
32,
4432,
1805,
34,
7854,
1571,
25343,
382,
3876,
1435,
288,
565,
309,
12,
4811,
16815,
480,
446,
13,
327,
3399,
16815,
31,
565,
727,
3867,
2655,
977,
2655,
273,
6701,
2655,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1000,
32,
4432,
1805,
34,
7854,
1571,
25343,
382,
3876,
1435,
288,
565,
309,
12,
4811,
16815,
480,
446,
13,
327,
3399,
16815,
31,
565,
727,
3867,
2655,
977,
2655,
273,
6701,
2655,
... |
accept.setMnemonic(getApproveButtonMnemonic(filechooser)); | accept.setMnemonic(getApproveButtonMnemonic(filechooser)); | public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection // bug. if (e.getPropertyName().equals( JFileChooser.SELECTED_FILE_CHANGED_PROPERTY)) { if (filechooser.getSelectedFile() == null) setFileName(null); else setFileName(filechooser.getSelectedFile().toString()); int index = -1; File file = filechooser.getSelectedFile(); for (index = 0; index < model.getSize(); index++) if (((File) model.getElementAt(index)).equals(file)) break; if (index == -1) return; filelist.setSelectedIndex(index); filelist.ensureIndexIsVisible(index); filelist.revalidate(); filelist.repaint(); } else if (e.getPropertyName().equals( JFileChooser.DIRECTORY_CHANGED_PROPERTY)) { filelist.clearSelection(); filelist.revalidate(); filelist.repaint(); setDirectorySelected(false); setDirectory(filechooser.getCurrentDirectory()); boxEntries(); } else if (e.getPropertyName().equals( JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) filterEntries(); else if (e.getPropertyName().equals( JFileChooser.DIALOG_TYPE_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.DIALOG_TITLE_CHANGED_PROPERTY)) { Window owner = SwingUtilities.windowForComponent(filechooser); if (owner instanceof JDialog) ((JDialog) owner).setTitle(getDialogTitle(filechooser)); accept.setText(getApproveButtonText(filechooser)); accept.setToolTipText(getApproveButtonToolTipText(filechooser)); accept.setMnemonic(getApproveButtonMnemonic(filechooser)); } else if (e.getPropertyName().equals( JFileChooser.APPROVE_BUTTON_TEXT_CHANGED_PROPERTY)) accept.setText(getApproveButtonText(filechooser)); else if (e.getPropertyName().equals( JFileChooser.APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY)) accept.setToolTipText(getApproveButtonToolTipText(filechooser)); else if (e.getPropertyName().equals( JFileChooser.APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY)) accept.setMnemonic(getApproveButtonMnemonic(filechooser)); else if (e.getPropertyName().equals( JFileChooser.CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY)) { if (filechooser.getControlButtonsAreShown()) { GridBagConstraints c = new GridBagConstraints(); c.gridy = 1; bottomPanel.add(filters, c); c.fill = GridBagConstraints.BOTH; c.gridy = 2; c.anchor = GridBagConstraints.EAST; bottomPanel.add(closePanel, c); bottomPanel.revalidate(); bottomPanel.repaint(); bottomPanel.doLayout(); } else bottomPanel.remove(closePanel); } else if (e.getPropertyName().equals( JFileChooser.ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY)) { if (filechooser.isAcceptAllFileFilterUsed()) filechooser.addChoosableFileFilter(getAcceptAllFileFilter(filechooser)); else filechooser.removeChoosableFileFilter(getAcceptAllFileFilter(filechooser)); } else if (e.getPropertyName().equals( JFileChooser.ACCESSORY_CHANGED_PROPERTY)) { JComponent old = (JComponent) e.getOldValue(); if (old != null) getAccessoryPanel().remove(old); JComponent newval = (JComponent) e.getNewValue(); if (newval != null) getAccessoryPanel().add(newval); } if (e.getPropertyName().equals(JFileChooser.DIRECTORY_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.FILE_FILTER_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.FILE_HIDING_CHANGED_PROPERTY)) rescanCurrentDirectory(filechooser); filechooser.revalidate(); filechooser.repaint(); } }; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4276,
15744,
31318,
15744,
12,
46,
812,
17324,
8036,
13,
225,
288,
565,
327,
394,
4276,
15744,
1435,
1377,
288,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
202,
95,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4276,
15744,
31318,
15744,
12,
46,
812,
17324,
8036,
13,
225,
288,
565,
327,
394,
4276,
15744,
1435,
1377,
288,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
202,
95,
3639,
... |
public SetExp (Declaration decl, Expression val) { this.binding = decl; symbol = decl.getSymbol(); new_value = val; } | public SetExp (Object symbol, Expression val) { this.symbol = symbol; new_value = val; } | public SetExp (Declaration decl, Expression val) { this.binding = decl; symbol = decl.getSymbol(); new_value = val; } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/04f7f370283c2213d97652bc3ab173922437a5a8/SetExp.java/buggy/gnu/expr/SetExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1000,
2966,
261,
6094,
3496,
16,
5371,
1244,
13,
225,
288,
565,
333,
18,
7374,
273,
3496,
31,
565,
3273,
273,
3496,
18,
588,
5335,
5621,
565,
394,
67,
1132,
273,
1244,
31,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1000,
2966,
261,
6094,
3496,
16,
5371,
1244,
13,
225,
288,
565,
333,
18,
7374,
273,
3496,
31,
565,
3273,
273,
3496,
18,
588,
5335,
5621,
565,
394,
67,
1132,
273,
1244,
31,
225,
... |
BigInteger bigInt = new BigInteger(signum, bytes); | final BigInteger bigInt = new BigInteger(signum, bytes); | private Object getDecimalValue(int scale) throws TdsException, java.io.IOException, NumberFormatException { int len = comm.getByte() & 0xff; if (--len < 1) { return null; } // RMK 2000-06-10. Deduced from some testing/packet sniffing. byte[] bytes = new byte[len]; int signum = comm.getByte() == 0 ? -1 : 1; while (len > 0) { bytes[--len] = comm.getByte(); } BigInteger bigInt = new BigInteger(signum, bytes); return new BigDecimal(bigInt, scale); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/2be0656d7edb1ef1bceb7cc4bdad62540713e416/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
336,
5749,
620,
12,
474,
3159,
13,
5411,
1216,
399,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
16,
12100,
288,
3639,
509,
562,
273,
1543,
18,
588,
3216,
1435,
473,
374,
5297,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
336,
5749,
620,
12,
474,
3159,
13,
5411,
1216,
399,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
16,
12100,
288,
3639,
509,
562,
273,
1543,
18,
588,
3216,
1435,
473,
374,
5297,... |
else argObjs = packageParameterFromVarArg(mth, varargAddress); | } else { if (isDotDotStyle) { VM_Address varargAddress = pushVarArgToSpillArea(methodID, false); argObjs = packageParameterFromVarArg(mth, varargAddress); VM_Address gluefp = VM_Magic.getCallerFramePointer(VM_Magic.getCallerFramePointer(VM_Magic.getFramePointer())); argObjs = packageParameterFromDotArgSVR4(mth, gluefp, false); } else { argObjs = packageParameterFromVarArg(mth, argAddress); argObjs = packageParameterFromVarArgSVR4(mth, argAddress); } } | public static Object invokeInitializer(Class cls, int methodID, VM_Address argAddress, boolean isJvalue, boolean isDotDotStyle) throws Exception { // get the parameter list as Java class VM_Method mth = VM_MemberReference.getMemberRef(methodID).asMethodReference().resolve(); VM_TypeReference[] argTypes = mth.getParameterTypes(); Class[] argClasses = new Class[argTypes.length]; for (int i=0; i<argClasses.length; i++) { argClasses[i] = argTypes[i].resolve(true).getClassForType(); } Constructor constMethod = cls.getConstructor(argClasses); if (constMethod==null) throw new Exception("Constructor not found"); // Package the parameters for the constructor VM_Address varargAddress; if (isDotDotStyle) // flag is false because this JNI function has 3 args before the var args varargAddress = pushVarArgToSpillArea(methodID, false); else varargAddress = argAddress; Object argObjs[]; if (isJvalue) argObjs = packageParameterFromJValue(mth, argAddress); else argObjs = packageParameterFromVarArg(mth, varargAddress); // construct the new object Object newobj = constMethod.newInstance(argObjs); return newobj; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/84e99898036221f1c0ed5e72e060bc3e0803769c/VM_JNIEnvironment.java/buggy/rvm/src/vm/arch/powerPC/jni/VM_JNIEnvironment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
4356,
14729,
12,
797,
2028,
16,
509,
707,
734,
16,
8251,
67,
1887,
1501,
1887,
16,
9944,
1250,
353,
46,
1132,
16,
1250,
353,
10412,
10412,
2885,
13,
377,
1216,
1185,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
4356,
14729,
12,
797,
2028,
16,
509,
707,
734,
16,
8251,
67,
1887,
1501,
1887,
16,
9944,
1250,
353,
46,
1132,
16,
1250,
353,
10412,
10412,
2885,
13,
377,
1216,
1185,
28... |
private void initializeHighlighters() { String hlist = getPreferenceStore().getString(ContextUiPrefContstants.HIGHLIGHTER_PREFIX); if (hlist != null && hlist.length() != 0) { highlighters = new HighlighterList(hlist); } else { // Only get here if it is the first time running // mylar. load default colors highlighters = new HighlighterList(); highlighters.setToDefaultList(); getPreferenceStore().setValue(ContextUiPrefContstants.HIGHLIGHTER_PREFIX, this.highlighters.externalizeToString()); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c82d93721a5e17f5fc9fa7d3734eea313c58bb0c/ContextUiPlugin.java/buggy/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/context/ui/ContextUiPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4046,
8573,
80,
2031,
5432,
1435,
288,
202,
202,
780,
366,
1098,
273,
336,
9624,
2257,
7675,
588,
780,
12,
1042,
13943,
23218,
660,
2087,
18,
29996,
2053,
16715,
2560,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4046,
8573,
80,
2031,
5432,
1435,
288,
202,
202,
780,
366,
1098,
273,
336,
9624,
2257,
7675,
588,
780,
12,
1042,
13943,
23218,
660,
2087,
18,
29996,
2053,
16715,
2560,
67,... | ||
return nodeForPackage(o, userRoot()); | return nodeForPackage(c, userRoot()); | public static Preferences userNodeForPackage(Object o) throws SecurityException { return nodeForPackage(o, userRoot()); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/71bd4a234ff464b217036c28c910b8210f375bad/Preferences.java/clean/core/src/classpath/java/java/util/prefs/Preferences.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
28310,
729,
907,
1290,
2261,
12,
921,
320,
13,
5411,
1216,
17780,
565,
288,
3639,
327,
756,
1290,
2261,
12,
71,
16,
729,
2375,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
28310,
729,
907,
1290,
2261,
12,
921,
320,
13,
5411,
1216,
17780,
565,
288,
3639,
327,
756,
1290,
2261,
12,
71,
16,
729,
2375,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-10... |
if (Options.getAssocTest() != 0){ | if (Options.getAssocTest() != ASSOC_NONE){ | public ExportDialog(HaploView h){ super(h, "Export Data"); hv = h; JPanel contents = new JPanel(); contents.setLayout(new BoxLayout(contents, BoxLayout.Y_AXIS)); JPanel tabPanel = new JPanel(); int currTab = hv.tabs.getSelectedIndex(); tabPanel.setBorder(new TitledBorder("Tab to Export")); tabPanel.setLayout(new BoxLayout(tabPanel,BoxLayout.Y_AXIS)); tabPanel.setAlignmentX(CENTER_ALIGNMENT); ButtonGroup g1 = new ButtonGroup(); dpButton = new JRadioButton("LD"); dpButton.setActionCommand("ldtab"); dpButton.addActionListener(this); g1.add(dpButton); tabPanel.add(dpButton); if (currTab == VIEW_D_NUM){ dpButton.setSelected(true); } hapButton = new JRadioButton("Haplotypes"); hapButton.setActionCommand("haptab"); hapButton.addActionListener(this); g1.add(hapButton); tabPanel.add(hapButton); if (currTab == VIEW_HAP_NUM){ hapButton.setSelected(true); } if (hv.checkPanel != null){ checkButton = new JRadioButton("Data Checks"); checkButton.setActionCommand("checktab"); checkButton.addActionListener(this); g1.add(checkButton); tabPanel.add(checkButton); if (currTab == VIEW_CHECK_NUM){ checkButton.setSelected(true); } } if (Options.getAssocTest() != 0){ assocButton = new JRadioButton("Association Tests"); assocButton.setActionCommand("assoctab"); assocButton.addActionListener(this); g1.add(assocButton); tabPanel.add(assocButton); if (currTab == VIEW_TDT_NUM){ assocButton.setSelected(true); } } contents.add(tabPanel); JPanel formatPanel = new JPanel(); formatPanel.setBorder(new TitledBorder("Output Format")); ButtonGroup g2 = new ButtonGroup(); txtButton = new JRadioButton("Text"); txtButton.addActionListener(this); formatPanel.add(txtButton); g2.add(txtButton); txtButton.setSelected(true); pngButton = new JRadioButton("PNG Image"); pngButton.addActionListener(this); formatPanel.add(pngButton); g2.add(pngButton); compressCheckBox = new JCheckBox("Compress image (smaller file)"); formatPanel.add(compressCheckBox); compressCheckBox.setEnabled(false); if (currTab == VIEW_CHECK_NUM || currTab == VIEW_TDT_NUM){ pngButton.setEnabled(false); } contents.add(formatPanel); JPanel rangePanel = new JPanel(); rangePanel.setBorder(new TitledBorder("Range")); ButtonGroup g3 = new ButtonGroup(); allButton = new JRadioButton("All"); allButton.addActionListener(this); rangePanel.add(allButton); g3.add(allButton); allButton.setSelected(true); someButton = new JRadioButton("Marker "); someButton.addActionListener(this); rangePanel.add(someButton); g3.add(someButton); lowRange = new NumberTextField("",5,false); rangePanel.add(lowRange); rangePanel.add(new JLabel(" to ")); upperRange = new NumberTextField("",5,false); rangePanel.add(upperRange); upperRange.setEnabled(false); lowRange.setEnabled(false); adjButton = new JRadioButton("Adjacent markers only"); adjButton.addActionListener(this); rangePanel.add(adjButton); g3.add(adjButton); if (currTab != VIEW_D_NUM){ someButton.setEnabled(false); adjButton.setEnabled(false); } contents.add(rangePanel); JPanel choicePanel = new JPanel(); JButton okButton = new JButton("OK"); okButton.addActionListener(this); choicePanel.add(okButton); JButton cancelButton = new JButton("Cancel"); cancelButton.addActionListener(this); choicePanel.add(cancelButton); contents.add(choicePanel); this.setContentPane(contents); this.setLocation(this.getParent().getX() + 100, this.getParent().getY() + 100); this.setModal(true); } | 51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/f8f34aa4f0ace8092ba1fa18efb4d719ba00759a/ExportDialog.java/buggy/edu/mit/wi/haploview/ExportDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11054,
6353,
12,
44,
438,
383,
1767,
366,
15329,
3639,
2240,
12,
76,
16,
315,
6144,
1910,
8863,
3639,
366,
90,
273,
366,
31,
3639,
24048,
2939,
273,
394,
24048,
5621,
3639,
2939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11054,
6353,
12,
44,
438,
383,
1767,
366,
15329,
3639,
2240,
12,
76,
16,
315,
6144,
1910,
8863,
3639,
366,
90,
273,
366,
31,
3639,
24048,
2939,
273,
394,
24048,
5621,
3639,
2939,
... |
Extension[] extensions = X_POINT.getExtensions(); | Extension[] extensions = this.extensionPoint.getExtensions(); | private static Extension findExtension(String name) throws PluginRuntimeException { Extension[] extensions = X_POINT.getExtensions(); for (int i = 0; i < extensions.length; i++) { Extension extension = extensions[i]; if (name.equals(extension.getId())) return extension; } return null; } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/OntologyFactory.java/buggy/src/java/org/apache/nutch/ontology/OntologyFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
10021,
1104,
3625,
12,
780,
508,
13,
565,
1216,
6258,
11949,
288,
565,
10021,
8526,
4418,
273,
333,
18,
6447,
2148,
18,
588,
7513,
5621,
565,
364,
261,
474,
277,
273,
374,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
10021,
1104,
3625,
12,
780,
508,
13,
565,
1216,
6258,
11949,
288,
565,
10021,
8526,
4418,
273,
333,
18,
6447,
2148,
18,
588,
7513,
5621,
565,
364,
261,
474,
277,
273,
374,
31... |
_t = __t980; | _t = __t981; | public final void defineimagestate(AST _t) throws RecognitionException { AST defineimagestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t974 = _t; AST tmp663_AST_in = (AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case IMAGE: case PRIVATE: case PUBLIC: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case IMAGE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp664_AST_in = (AST)_t; match(_t,IMAGE); _t = _t.getNextSibling(); AST tmp665_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop982: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LIKE: { AST __t978 = _t; AST tmp666_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALIDATE: { AST tmp667_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t978; _t = _t.getNextSibling(); break; } case FILE: case FROM: case IMAGESIZE: case IMAGESIZECHARS: case IMAGESIZEPIXELS: { imagephrase_opt(_t); _t = _retTree; break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case CONVERT3DCOLORS: { AST tmp668_AST_in = (AST)_t; match(_t,CONVERT3DCOLORS); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case STRETCHTOFIT: { AST __t980 = _t; AST tmp669_AST_in = (AST)_t; match(_t,STRETCHTOFIT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RETAINSHAPE: { AST tmp670_AST_in = (AST)_t; match(_t,RETAINSHAPE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t980; _t = _t.getNextSibling(); break; } case TRANSPARENT: { AST tmp671_AST_in = (AST)_t; match(_t,TRANSPARENT); _t = _t.getNextSibling(); break; } default: { break _loop982; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t974; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
15374,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
15374,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
15374,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
15374,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
69... |
for(int n=0; n<mainPanel.getTabCount(); n++) { GearView view = (GearView)mainPanel.getComponentAt(n); | int skippedTabs = 1; while(mainPanel.getTabCount() > skippedTabs) { GearView view = (GearView)mainPanel.getComponentAt(skippedTabs-1); | private void closeAll() { for(int n=0; n<mainPanel.getTabCount(); n++) { GearView view = (GearView)mainPanel.getComponentAt(n); if(view.close()) { comparisonView.removeModel(((DriveTrainPanel)view).getModel()); } } if(mainPanel.getTabCount() == 1) { setActionsEnabled(false); } } | 10395 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10395/36eebaa06c07bccfc979b59ba8876d15f3c032f1/Main.java/clean/trunk/de/mutantenzoo/gcu/ui/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1746,
1595,
1435,
288,
202,
202,
1884,
12,
474,
290,
33,
20,
31,
290,
32,
5254,
5537,
18,
588,
5661,
1380,
5621,
290,
27245,
288,
1082,
202,
43,
2091,
1767,
1476,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1746,
1595,
1435,
288,
202,
202,
1884,
12,
474,
290,
33,
20,
31,
290,
32,
5254,
5537,
18,
588,
5661,
1380,
5621,
290,
27245,
288,
1082,
202,
43,
2091,
1767,
1476,
273,
... |
return u2 == null ? 0 : ((Integer)u2).intValue(); } | return u2 == null ? 0 : ((Integer) u2).intValue(); } | public int getNth() { return u2 == null ? 0 : ((Integer)u2).intValue(); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/buggy/org/jruby/nodes/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11069,
451,
1435,
288,
202,
202,
2463,
582,
22,
422,
446,
692,
374,
294,
14015,
4522,
13,
89,
22,
2934,
474,
620,
5621,
202,
97,
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,
225,
202,
482,
509,
11069,
451,
1435,
288,
202,
202,
2463,
582,
22,
422,
446,
692,
374,
294,
14015,
4522,
13,
89,
22,
2934,
474,
620,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
while (st.hasMoreTokens()) | while (st.hasMoreTokens()) { | public ClassPathIterator(File parent, String classPath) { this.parent = parent; StringTokenizer st = new StringTokenizer(classPath, ":"); while (st.hasMoreTokens()) parts.add(st.nextElement()); advance(); } | 28177 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28177/237108d8c7026e48c58b9e2c8f91a68dbf677382/ClassPathIterator.java/buggy/jarjar/src/main/com/tonicsystems/jarjar/ClassPathIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
743,
3198,
12,
812,
982,
16,
514,
22503,
13,
565,
288,
3639,
333,
18,
2938,
273,
982,
31,
3639,
16370,
384,
273,
394,
16370,
12,
1106,
743,
16,
6153,
1769,
3639,
1323,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
743,
3198,
12,
812,
982,
16,
514,
22503,
13,
565,
288,
3639,
333,
18,
2938,
273,
982,
31,
3639,
16370,
384,
273,
394,
16370,
12,
1106,
743,
16,
6153,
1769,
3639,
1323,
261,
... |
Object data[]; | public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("cvi: wrong arguments"); } if (data[0] instanceof Number) { int d; d = ( (Number) data[0]).intValue(); context.operands.push(new Integer(d)); } else { String s; s = (String) data[0]; context.operands.push(new Integer(s)); } } | 4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/3c314818d71d25f7c37e4f26642c8ef894a7fcd4/PAContext.java/clean/src/com/lowagie/text/pdf/codec/postscript/PAContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
9079,
501,
273,
819,
18,
5120,
3542,
5708,
12,
21,
1769,
3639,
309,
16051,
261,
892,
63,
20,
65,
1276,
3588,
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,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
9079,
501,
273,
819,
18,
5120,
3542,
5708,
12,
21,
1769,
3639,
309,
16051,
261,
892,
63,
20,
65,
1276,
3588,
13,
... | |
: d + int16; | : d + int16; | public static char toUint16(Object val) { long int16 = 0x10000; double d = toNumber(val); if (d != d || d == 0.0 || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY) { return 0; } d = Math.IEEEremainder(d, int16); d = d >= 0 ? d : d + int16; return (char) Math.floor(d); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/5e0b2ebaed49fc9dc92fb0127fd9256424173c6e/ScriptRuntime.java/buggy/js/rhino/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1149,
358,
5487,
2313,
12,
921,
1244,
13,
288,
202,
5748,
509,
2313,
273,
374,
92,
23899,
31,
202,
9056,
302,
273,
358,
1854,
12,
1125,
1769,
202,
430,
261,
72,
480,
302,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1149,
358,
5487,
2313,
12,
921,
1244,
13,
288,
202,
5748,
509,
2313,
273,
374,
92,
23899,
31,
202,
9056,
302,
273,
358,
1854,
12,
1125,
1769,
202,
430,
261,
72,
480,
302,
7... |
if(USE_DEBUGGER) { debugger2=new Debugger(channel2, "channel 2"); debugger2.start(); } | protected void setUp() throws Exception { super.setUp(); printSelectedOptions(); channel1=new JChannel(properties); System.out.print("Connecting to channel..."); channel1.connect(groupName); System.out.println("channel1 connected, view is " + channel1.getView()); adapter1=new PullPushAdapter(channel1); if(USE_DEBUGGER) { debugger1=new Debugger(channel1, "channel 1"); debugger1.start(); } // sleep one second before second member joins try { Thread.sleep(1000); } catch(InterruptedException ex) { } channel2=new JChannel(properties); channel2.connect(groupName); System.out.println("channel2 connected, view is " + channel2.getView()); adapter2=new PullPushAdapter(channel2); if(USE_DEBUGGER) { debugger2=new Debugger(channel2, "channel 2"); debugger2.start(); } // sleep one second before processing continues try { Thread.sleep(1000); } catch(InterruptedException ex) { } } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/28be62b4097e0b01b17ca403d23ca6a4aac01eca/EncryptMessageOrderTestCase.java/buggy/tests/junit/org/jgroups/tests/EncryptMessageOrderTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
1172,
7416,
1320,
5621,
1171,
1904,
21,
33,
2704,
804,
2909,
12,
4738,
1769,
3639,
2332,
18,
659,
18,
1188,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
1172,
7416,
1320,
5621,
1171,
1904,
21,
33,
2704,
804,
2909,
12,
4738,
1769,
3639,
2332,
18,
659,
18,
1188,... | |
results = compare(retEnv, tempPath); assertTrue(results); | compareXML(retEnv, tempPath); | public void testR2GCEchoHexBinary() throws AxisFault { url = "http://www.whitemesa.net/interop/r2/groupC"; soapAction = "http://soapinterop.org/"; util = new WMRound2Soap12GroupcHexBinaryUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "WMRound2Soap12GroupcHexBinaryRes.xml"; results = compare(retEnv, tempPath); assertTrue(results); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/WMRound2Soap12InteropTest.java/buggy/modules/integration/itest/test/interop/whitemesa/round2/Soap12/WMRound2Soap12InteropTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
22,
43,
1441,
2599,
7037,
5905,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
5591,
18,
3350,
1726,
281,
69,
18,
2758,
19,
30376,
19,
86,
22,
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,
1842,
54,
22,
43,
1441,
2599,
7037,
5905,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
5591,
18,
3350,
1726,
281,
69,
18,
2758,
19,
30376,
19,
86,
22,
19,
... |
zoomOut(); | return; | public void bringToTop(IWorkbenchPart part) { // Sanity check. if (!certifyPart(part)) return; // If zoomed unzoom. if (isZoomed() && partChangeAffectsZoom(part)) zoomOut(); // Move part. boolean broughtToTop = false; if (part instanceof IEditorPart) { broughtToTop = getEditorManager().setVisibleEditor((IEditorPart)part, false); if (lastActiveEditor != null && broughtToTop) { String newID = part.getSite().getId(); String oldID = lastActiveEditor.getSite().getId(); if (newID != oldID) { deactivateLastEditor(); lastActiveEditor = null; updateActionBars(); } } } else if (part instanceof IViewPart) { broughtToTop = getPersp().bringToTop((IViewPart)part); } if (broughtToTop) firePartBroughtToTop(part);} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8fe046d61ffe811705f28871ea56ed7bb69415e9/WorkbenchPage.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
5186,
310,
774,
3401,
12,
45,
2421,
22144,
1988,
1087,
13,
288,
202,
759,
23123,
866,
18,
202,
430,
16051,
7593,
1164,
1988,
12,
2680,
3719,
202,
202,
2463,
31,
1082,
202,
759,
97... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
5186,
310,
774,
3401,
12,
45,
2421,
22144,
1988,
1087,
13,
288,
202,
759,
23123,
866,
18,
202,
430,
16051,
7593,
1164,
1988,
12,
2680,
3719,
202,
202,
2463,
31,
1082,
202,
759,
97... |
public void removeEvent(GLOReference<PDTimerEvent> eventRef) { | void removeEvent(GLOReference<PDTimerEvent> eventRef) { | public void removeEvent(GLOReference<PDTimerEvent> eventRef) { Iterator<Entry<Long, HashSet<GLOReference<PDTimerEvent>>>> it; for (it = timerEvents.entrySet().iterator(); it.hasNext();) { Entry<Long, HashSet<GLOReference<PDTimerEvent>>> entry = it.next(); if (entry.getValue().contains(eventRef)) { if (entry.getValue().size() == 1) it.remove(); else entry.getValue().remove(eventRef); return; } } } | 55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/5eed2f58cbb9e172c778bd8b5278c391493a7e30/PDTimerEventList.java/clean/src/com/sun/gi/gloutils/pdtimer/PDTimerEventList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1206,
1133,
12,
43,
1502,
2404,
32,
21527,
6777,
1133,
34,
871,
1957,
13,
288,
3639,
4498,
32,
1622,
32,
3708,
16,
6847,
32,
43,
1502,
2404,
32,
21527,
6777,
1133,
9778,
9778,
518,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
1133,
12,
43,
1502,
2404,
32,
21527,
6777,
1133,
34,
871,
1957,
13,
288,
3639,
4498,
32,
1622,
32,
3708,
16,
6847,
32,
43,
1502,
2404,
32,
21527,
6777,
1133,
9778,
9778,
518,... |
BoardNewDialog bnd = new BoardNewDialog(frame, lisTerrain.getItems(), lisTerrain.getSelectedIndex()); bnd.setLocation(frame.getLocation().x + 150, frame.getLocation().y + 100); bnd.show(); | RandomMapDialog rmd = new RandomMapDialog(frame, this, mapSettings); rmd.show(); | public void boardNew() { // display new board dialog BoardNewDialog bnd = new BoardNewDialog(frame, lisTerrain.getItems(), lisTerrain.getSelectedIndex()); bnd.setLocation(frame.getLocation().x + 150, frame.getLocation().y + 100); bnd.show(); if(bnd.getX() > 0 || bnd.getY() > 0) { IHex[] newHexes = new IHex[ bnd.getX() * bnd.getY() ]; for(int i = 0; i < newHexes.length; i++) { newHexes[i] = new Hex(); } board.newData(bnd.getX(), bnd.getY(), newHexes); curpath = null; curfile = null; frame.setTitle(Messages.getString("BoardEditor.title")); //$NON-NLS-1$ menuBar.setBoard( true ); } } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/e9ce52cf4ac6ccd0c5936ad5d873e83c9c1bb9c3/BoardEditor.java/clean/megamek/src/megamek/client/ui/AWT/BoardEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11094,
1908,
1435,
288,
3639,
368,
2562,
394,
11094,
6176,
3639,
17980,
1060,
1908,
6353,
324,
4880,
273,
394,
17980,
1060,
1908,
6353,
12,
3789,
16,
328,
291,
56,
264,
7596,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11094,
1908,
1435,
288,
3639,
368,
2562,
394,
11094,
6176,
3639,
17980,
1060,
1908,
6353,
324,
4880,
273,
394,
17980,
1060,
1908,
6353,
12,
3789,
16,
328,
291,
56,
264,
7596,
1... |
if (c == CODE_EOT) return EOT; if (c == '\n') return LINEFEED; if ( c==' '|| c == '\r' || c=='\t' ) return XMLWHITESPACE; if (isAnySpace(c)) return UCWHITESPACE; return NONWHITESPACE; | if (c == CODE_EOT) { return EOT; } if (c == '\n') { return LINEFEED; } if (c == ' '|| c == '\r' || c == '\t' ) { return XMLWHITESPACE; } if (isAnySpace(c)) { return UCWHITESPACE; } return NONWHITESPACE; | public static int classOf(char c) { if (c == CODE_EOT) return EOT; if (c == '\n') return LINEFEED; if ( c==' '|| c == '\r' || c=='\t' ) return XMLWHITESPACE; if (isAnySpace(c)) return UCWHITESPACE; return NONWHITESPACE; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/392781f30969e4da0b510da16b96099a320089ba/CharUtilities.java/clean/src/org/apache/fop/util/CharUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
667,
951,
12,
3001,
276,
13,
288,
202,
430,
261,
71,
422,
11128,
67,
41,
1974,
13,
327,
512,
1974,
31,
202,
430,
261,
71,
422,
2337,
82,
6134,
327,
14340,
29195,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
667,
951,
12,
3001,
276,
13,
288,
202,
430,
261,
71,
422,
11128,
67,
41,
1974,
13,
327,
512,
1974,
31,
202,
430,
261,
71,
422,
2337,
82,
6134,
327,
14340,
29195,
31,
... |
assertEquals(1 + OFFSET, test.getHourOfDay()); | assertEquals(date.getHours(), test.getHourOfDay()); | public void testConstructor_Object_nullChronology() throws Throwable { Date date = new Date(TEST_TIME1); TimeOfDay test = new TimeOfDay(date, null); assertEquals(ISO_UTC, test.getChronology()); assertEquals(1 + OFFSET, test.getHourOfDay()); assertEquals(2, test.getMinuteOfHour()); assertEquals(3, test.getSecondOfMinute()); assertEquals(4, test.getMillisOfSecond()); } | 52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/a14ace7f3ca5c8b9dba675d99db1b253eb7004c4/TestTimeOfDay_Constructors.java/buggy/JodaTime/src/test/org/joda/time/TestTimeOfDay_Constructors.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6293,
67,
921,
67,
2011,
23809,
1435,
1216,
4206,
288,
3639,
2167,
1509,
273,
394,
2167,
12,
16961,
67,
4684,
21,
1769,
3639,
2647,
17263,
1842,
273,
394,
2647,
17263,
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,
918,
1842,
6293,
67,
921,
67,
2011,
23809,
1435,
1216,
4206,
288,
3639,
2167,
1509,
273,
394,
2167,
12,
16961,
67,
4684,
21,
1769,
3639,
2647,
17263,
1842,
273,
394,
2647,
17263,
12... |
int ch; | int ch; int unreadCount = 1; | public IToken evaluate(ICharacterScanner scanner) { int startCh = scanner.read(); int ch; if (isNumberStart(startCh)) { ch = scanner.read(); boolean hexNumber = ch == 'x'; boolean decNumber = false; if (!hexNumber) { decNumber = Character.isDigit((char)ch); } if (!hexNumber && !decNumber) { scanner.unread(); // If minus only it should be qualified as operator. if (startCh == '-') { scanner.unread(); return Token.UNDEFINED; } return token; } if (hexNumber) { do { ch = scanner.read(); } while (isHexNumberPart((char)ch)); } else if (decNumber) { do { ch = scanner.read(); } while (Character.isDigit((char)ch)); } scanner.unread(); return token; } scanner.unread(); return Token.UNDEFINED; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0ae9539298fcf91e5d8d9c3ff354b40cf88f49d7/NumberRule.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/NumberRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1345,
5956,
12,
45,
7069,
11338,
7683,
13,
565,
288,
3639,
509,
787,
782,
273,
7683,
18,
896,
5621,
3639,
509,
462,
31,
509,
19541,
1380,
273,
404,
31,
1171,
309,
261,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
1345,
5956,
12,
45,
7069,
11338,
7683,
13,
565,
288,
3639,
509,
787,
782,
273,
7683,
18,
896,
5621,
3639,
509,
462,
31,
509,
19541,
1380,
273,
404,
31,
1171,
309,
261,
291,
... |
_usm.send(BlockTransmitter.this._destination, DMT.createPing()); | ((PeerNode)_destination).sendAsync(DMT.createPing(), null); | public void run() { int sentSinceLastPing = 0; while (!_sendComplete) { long delay = throttle.getDelay(); long waitUntil = System.currentTimeMillis() + delay; Logger.minor(this, "Waiting for "+delay+" ms for "+_uid+" : "+throttle); try { while (waitUntil > System.currentTimeMillis()) { if(_sendComplete) return; synchronized (_senderThread) { long x = waitUntil - System.currentTimeMillis(); if(x > 0) _senderThread.wait(x); } } while (_unsent.size() == 0) { if(_sendComplete) return; synchronized (_senderThread) { _senderThread.wait(); } } } catch (InterruptedException e) { } int packetNo = ((Integer) _unsent.removeFirst()).intValue(); _sentPackets.setBit(packetNo, true); try { _usm.send(BlockTransmitter.this._destination, DMT.createPacketTransmit(_uid, packetNo, _sentPackets, _prb.getPacket(packetNo))); // We accelerate the ping rate during the transfer to keep a closer eye on round-trip-time sentSinceLastPing++; if (sentSinceLastPing >= PING_EVERY) { sentSinceLastPing = 0; _usm.send(BlockTransmitter.this._destination, DMT.createPing()); } } catch (NotConnectedException e) { Logger.normal(this, "Terminating send: "+e); _sendComplete = true; } catch (AbortedException e) { Logger.normal(this, "Terminating send due to abort: "+e); _sendComplete = true; } } } | 46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/fdf669488c24d21eae5028919f2bca683a8061e2/BlockTransmitter.java/buggy/src/freenet/io/xfer/BlockTransmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
474,
3271,
9673,
3024,
17223,
273,
374,
31,
9506,
202,
17523,
16051,
67,
4661,
6322,
13,
288,
25083,
202,
5748,
4624,
273,
18304,
18,
588,
6763... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
474,
3271,
9673,
3024,
17223,
273,
374,
31,
9506,
202,
17523,
16051,
67,
4661,
6322,
13,
288,
25083,
202,
5748,
4624,
273,
18304,
18,
588,
6763... |
RubyString name = RubyString.newString(getRuntime(), | RubyString name = getRuntime().newString( | private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = RubyArray.newArray(getRuntime()); for (RubyModule p = this; p != null; p = p.getSuperClass()) { for (Iterator iter = p.getMethods().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); ICallable method = (ICallable) entry.getValue(); if (method.getVisibility().is(visibility) && !method.isUndefined()) { RubyString name = RubyString.newString(getRuntime(), (String) entry.getKey()); if (!ary.includes(name)) { ary.append(name); } } } if (!includeSuper) { break; } } return ary; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyModule.java/buggy/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
1076,
791,
67,
5163,
12,
7937,
10340,
921,
8526,
833,
16,
727,
27791,
9478,
13,
288,
3639,
1250,
2341,
8051,
273,
833,
18,
2469,
405,
374,
692,
833,
63,
20,
8009,
291,
5510... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
1076,
791,
67,
5163,
12,
7937,
10340,
921,
8526,
833,
16,
727,
27791,
9478,
13,
288,
3639,
1250,
2341,
8051,
273,
833,
18,
2469,
405,
374,
692,
833,
63,
20,
8009,
291,
5510... |
if ( table.getItemCount( ) > 1 ) selectIndex = ( table.getItemCount( ) - 2 ); | if ( table.getItemCount( ) > 0 ) selectIndex = ( table.getItemCount( ) - 1 ); | protected Control createDialogArea( Composite parent ) { UIUtil.bindHelp( parent, IHelpContextIds.COLUMNBINDING_DIALOG_ID ); Composite parentComposite = (Composite) super.createDialogArea( parent ); if ( this.canSelect ) { /** * Label & button */ Composite composite = new Composite( parentComposite, SWT.NONE ); composite.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); composite.setLayout( UIUtil.createGridLayoutWithoutMargin( 2, false ) ); CLabel warnLabel = new CLabel( composite, SWT.NONE ); warnLabel.setImage( PlatformUI.getWorkbench( ) .getSharedImages( ) .getImage( ISharedImages.IMG_OBJS_WARN_TSK ) ); warnLabel.setText( WARN_COLUMN_BINDINGS ); GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; warnLabel.setLayoutData( gd ); Label label = new Label( composite, SWT.NONE ); label.setText( LABEL_COLUMN_BINDINGS ); label.setLayoutData( new GridData( GridData.BEGINNING ) ); // add data set combo selection. final CCombo combo = new CCombo( composite, SWT.READ_ONLY | SWT.BORDER ); combo.setBackground( PlatformUI.getWorkbench( ) .getDisplay( ) .getSystemColor( SWT.COLOR_LIST_BACKGROUND ) ); String[] dataSets = ChoiceSetFactory.getDataSets( ); String[] newList = new String[dataSets.length + 1]; newList[0] = NullChoice; System.arraycopy( dataSets, 0, newList, 1, dataSets.length ); combo.setItems( newList ); String dataSetName = getDataSetName( ); combo.deselectAll( ); if ( dataSetName != null ) { combo.setText( dataSetName ); } else { combo.select( 0 ); } combo.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); gd = new GridData( ); gd.widthHint = 250; combo.setLayoutData( gd ); combo.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent event ) { String value = null; if ( combo.getSelectionIndex( ) != 0 ) { value = combo.getText( ); } int rCode = canChangeDataSet( value ); if ( rCode == 2 ) { String newName = getDataSetName( ); if ( newName != null ) { combo.setText( newName ); } else { combo.select( 0 ); } } else { try { DataSetHandle dataSet = null; if ( value != null ) { dataSet = inputElement.getModuleHandle( ) .findDataSet( value ); } inputElement.setDataSet( dataSet ); getParameterBindingPropertyHandle( ).clearValue( ); if ( rCode == 0 ) { inputElement.getColumnBindings( ).clearValue( ); } generateBindingColumns( ); setHihtLightColumn( ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } } } } ); } Composite contentComposite = new Composite( parentComposite, SWT.NONE ); contentComposite.setLayoutData( new GridData( GridData.FILL_BOTH ) ); contentComposite.setLayout( UIUtil.createGridLayoutWithoutMargin( 2, false ) ); /** * Binding table */ final Table table = new Table( contentComposite, SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER | ( canSelect ? SWT.CHECK : 0 ) ); GridData gd = new GridData( GridData.FILL_BOTH ); gd.heightHint = 200; gd.verticalSpan = 3; table.setLayoutData( gd ); table.setLinesVisible( true ); table.setHeaderVisible( true ); // table.addKeyListener( new KeyAdapter( ) { // // /** // * @see // org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent) // */ // public void keyReleased( KeyEvent e ) // { // // If Delete pressed, delete the selected row // if ( e.keyCode == SWT.DEL ) // { // IStructuredSelection selection = (IStructuredSelection) // bindingTable.getSelection( ); // if ( selection.getFirstElement( ) instanceof ComputedColumnHandle ) // { // deleteRow( (ComputedColumnHandle) selection.getFirstElement( ) ); // } // } // } // } ); table.addKeyListener( new KeyAdapter( ) { public void keyPressed( KeyEvent e ) { if ( e.keyCode == SWT.DEL ) { int itemCount = table.getItemCount( ); if ( selectIndex == itemCount - 1 ) { return; } if ( selectIndex == itemCount - 2 ) { selectIndex--; } try { handleDelEvent( ); } catch ( Exception e1 ) { WidgetUtil.processError( getShell( ), e1 ); } refreshBindingTable( ); } } } ); table.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { selectIndex = table.getSelectionIndex( ); updateButtons( ); } } ); String[] columns = null; int[] columnWidth = null; CellEditor[] cellEditors; expressionCellEditor = new ExpressionCellEditor( table ); columns = new String[]{ null, COLUMN_NAME, COLUMN_DATATYPE, COLUMN_EXPRESSION, COLUMN_AGGREGATEON }; columnWidth = new int[]{ canSelect ? 25 : 20, 150, 70, 150, 150, }; groups = new String[groupList.size( ) + 1]; groups[0] = ALL; for ( int i = 0; i < groupList.size( ); i++ ) { groups[i + 1] = ( (GroupHandle) groupList.get( i ) ).getName( ); } cellEditors = new CellEditor[]{ null, new TextCellEditor( table ), new ComboBoxCellEditor( table, dataTypeDisplayNames ), expressionCellEditor, new ComboBoxCellEditor( table, groups, SWT.READ_ONLY ), }; for ( int i = 0; i < columns.length; i++ ) { TableColumn column = new TableColumn( table, SWT.LEFT ); column.setResizable( columns[i] != null ); if ( columns[i] != null ) { column.setText( columns[i] ); } column.setWidth( columnWidth[i] ); } if ( canSelect ) { bindingTable = new CheckboxTableViewer( table ); ( (CheckboxTableViewer) bindingTable ).addCheckStateListener( new ICheckStateListener( ) { public void checkStateChanged( CheckStateChangedEvent event ) { if ( event.getElement( ) instanceof ComputedColumnHandle ) { ComputedColumnHandle handle = (ComputedColumnHandle) event.getElement( ); if ( handle.getName( ).equals( selectedColumnName ) ) { selectedColumnName = null; } else { selectedColumnName = handle.getName( ); } updateSelection( ); updateButtons( ); } else { ( (CheckboxTableViewer) bindingTable ).setChecked( dummyChoice, false ); } } } ); } else { bindingTable = new TableViewer( table ); } bindingTable.setCellEditors( cellEditors ); bindingTable.setColumnProperties( columns ); bindingTable.setContentProvider( contentProvider ); bindingTable.setLabelProvider( labelProvider ); bindingTable.setCellModifier( cellModifier ); bindingTable.setInput( inputElement ); bindingTable.addSelectionChangedListener( new ISelectionChangedListener( ) { public void selectionChanged( SelectionChangedEvent event ) { if ( !bindingTable.getSelection( ).isEmpty( ) ) { Object obj = ( (IStructuredSelection) bindingTable.getSelection( ) ).getFirstElement( ); if ( obj == dummyChoice && !existHighLightColumn( ) ) { bindingTable.refresh( ); setHihtLightColumn( ); } else if ( obj instanceof ComputedColumnHandle ) { if ( expressionProvider != null ) expressionCellEditor.setExpressionProvider( expressionProvider ); else { ComputedColumnHandle column = (ComputedColumnHandle) obj; BindingExpressionProvider provider = new BindingExpressionProvider( column.getElementHandle( ) ); provider.addFilter( new ComputedColumnExpressionFilter( bindingTable ) ); expressionCellEditor.setExpressionProvider( provider ); } } } updateButtons( ); } } ); btnAdd = new Button( contentComposite, SWT.PUSH ); btnAdd.setText( MSG_ADD ); GridData data = new GridData( ); data.widthHint = Math.max( 60, btnAdd.computeSize( SWT.DEFAULT, SWT.DEFAULT, true ).x ); btnAdd.setLayoutData( data ); btnAdd.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { handleAddEvent( ); refreshBindingTable( ); if ( table.getItemCount( ) > 1 ) selectIndex = ( table.getItemCount( ) - 2 ); updateButtons( ); } } ); btnEdit = new Button( contentComposite, SWT.PUSH ); btnEdit.setText( MSG_EDIT ); data = new GridData( ); data.widthHint = Math.max( 60, btnEdit.computeSize( SWT.DEFAULT, SWT.DEFAULT, true ).x ); btnEdit.setLayoutData( data ); btnEdit.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { handleEditEvent( ); refreshBindingTable( ); } } ); btnDel = new Button( contentComposite, SWT.PUSH ); btnDel.setText( MSG_DELETE ); data = new GridData( GridData.VERTICAL_ALIGN_BEGINNING | GridData.GRAB_VERTICAL ); data.widthHint = Math.max( 60, btnDel.computeSize( SWT.DEFAULT, SWT.DEFAULT, true ).x ); btnDel.setLayoutData( data ); btnDel.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { if ( bindingTable.isCellEditorActive( ) ) { bindingTable.cancelEditing( ); } int pos = bindingTable.getTable( ).getSelectionIndex( ); if ( pos == -1 ) { bindingTable.getTable( ).setFocus( ); return; } selectIndex = pos; int itemCount = bindingTable.getTable( ).getItemCount( ); if ( selectIndex == itemCount - 2 ) { selectIndex--; } try { handleDelEvent( ); } catch ( Exception e1 ) { WidgetUtil.processError( getShell( ), e1 ); } refreshBindingTable( ); updateButtons( ); } } ); // initTableCellColor( ); return parentComposite; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/3b41216aa808a0ccb866132e891808d5483de7be/ColumnBindingDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
5370,
1304,
18,
4376,
6696,
12,
982,
16,
467,
6696,
1042,
2673,
18,
11009,
2739,
67,
2565,
18683,
67,
734,
1127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
5370,
1304,
18,
4376,
6696,
12,
982,
16,
467,
6696,
1042,
2673,
18,
11009,
2739,
67,
2565,
18683,
67,
734,
1127... |
if (_log.shouldLog(Log.WARN)) _log.warn("Consecutive failure #" + consecutive + " sending to " + msg.getPeer()); if (consecutive > MAX_CONSECUTIVE_FAILED) dropPeer(msg.getPeer()); | if (_log.shouldLog(Log.WARN)) _log.warn("Consecutive failure #" + consecutive + " sending to " + msg.getPeer()); if (consecutive > MAX_CONSECUTIVE_FAILED) dropPeer(msg.getPeer()); } | public void failed(OutboundMessageState msg) { if (msg == null) return; int consecutive = 0; if (msg.getPeer() != null) consecutive = msg.getPeer().incrementConsecutiveFailedSends(); if (_log.shouldLog(Log.WARN)) _log.warn("Consecutive failure #" + consecutive + " sending to " + msg.getPeer()); if (consecutive > MAX_CONSECUTIVE_FAILED) dropPeer(msg.getPeer()); failed(msg.getMessage()); } | 3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/4ce51261f1b36eeb8bc0e9d51c3abee10d9a4440/UDPTransport.java/buggy/router/java/src/net/i2p/router/transport/udp/UDPTransport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2535,
12,
17873,
1079,
1119,
1234,
13,
288,
3639,
309,
261,
3576,
422,
446,
13,
327,
31,
3639,
509,
18221,
273,
374,
31,
3639,
309,
261,
3576,
18,
588,
6813,
1435,
480,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2535,
12,
17873,
1079,
1119,
1234,
13,
288,
3639,
309,
261,
3576,
422,
446,
13,
327,
31,
3639,
509,
18221,
273,
374,
31,
3639,
309,
261,
3576,
18,
588,
6813,
1435,
480,
446,
... |
gbc.anchor=gbc.WEST; | gbc.anchor=GridBagConstraints.WEST; | public MidiConfigPanel(AppConfig appConfig) { super(appConfig); driverChangeListeners = new Vector(); setLayout (new core.ColumnLayout ()); setPreferredSize(new Dimension(500,250)); cbxEnMidi = new JCheckBox ("Enable MIDI Interface"); cbxEnMidi.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent e) { setContainerEnabled(channelPanel, cbxEnMidi.isSelected()); cbMC.setEnabled(cbxEnMC.isSelected()); } }); add(cbxEnMidi); // MIDI wrapper selection Combobox if (!PatchEdit.newMidiAPI) { // only Javasound JLabel l2 = new JLabel ("MIDI Access Method:"); add (l2); cbDriver=new JComboBox (); add (cbDriver); // Fill the combo box with all Midi wrappers in the midiimps vector Vector midiImps = appConfig.midiWrappers; for(int i=0; i<midiImps.size(); i++) { cbDriver.addItem(midiImps.elementAt(i)); } cbDriver.addItemListener (new ItemListener () { public void itemStateChanged (ItemEvent e) { if (e.getStateChange ()==ItemEvent.SELECTED) { System.out.println("itemStateChanged"); resetMidiDriver(); //resetPortComboBoxes(); //midiDriverSelected((MidiWrapper) ((JComboBox)e.getSource()).getSelectedItem()); } } }); } // panel for other settings channelPanel = new JPanel(); channelPanel.setLayout(new core.ColumnLayout()); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints gbc = new GridBagConstraints(); cbPanel = new JPanel(gridbag); gbc.fill=gbc.HORIZONTAL; gbc.ipadx=1; gbc.anchor=gbc.WEST; // make a space gbc.gridx=0; gbc.gridy=2; gbc.gridheight=1; gbc.gridwidth=1; JLabel l3=new JLabel (" "); gridbag.setConstraints(l3, gbc); cbPanel.add (l3); // Output Port/Input Port selection gbc.gridx=0; gbc.gridy=3; gbc.gridheight=1; gbc.gridwidth=3; //gbc.gridwidth=gbc.REMAINDER; JLabel cbLabel = new JLabel ("Run Startup Initialization on MIDI Ports:"); gridbag.setConstraints(cbLabel, gbc); cbPanel.add (cbLabel); gbc.gridx=0; gbc.gridy=4; gbc.gridheight=1; gbc.gridwidth=1; JLabel cbOutLabel = new JLabel("Out Port:"); gridbag.setConstraints(cbOutLabel, gbc); cbPanel.add (cbOutLabel); if (PatchEdit.newMidiAPI) cbOut = new JComboBox(MidiUtil.getOutputMidiDeviceInfo()); else cbOut = new JComboBox(); gbc.gridx=1; gbc.gridy=4; gbc.gridheight=1; gbc.gridwidth=gbc.REMAINDER; gridbag.setConstraints(cbOut, gbc); cbPanel.add (cbOut); gbc.gridx=0; gbc.gridy=5; gbc.gridheight=1; gbc.gridwidth=1; JLabel cbInLabel = new JLabel("In Port:"); gridbag.setConstraints(cbInLabel, gbc); cbPanel.add (cbInLabel); if (PatchEdit.newMidiAPI) cbIn = new JComboBox(MidiUtil.getInputMidiDeviceInfo()); else cbIn = new JComboBox(); gbc.gridx=1; gbc.gridy=5; gbc.gridheight=1; gbc.gridwidth=gbc.REMAINDER; gridbag.setConstraints(cbIn, gbc); cbPanel.add (cbIn); // MIDI loopback test gbc.gridx=1; gbc.gridy=6; gbc.gridheight=1; gbc.gridwidth=1;gbc.fill=gbc.NONE; JButton testButton = new JButton("MIDI Loopback Test..."); testButton.addActionListener (new ActionListener () { public void actionPerformed (ActionEvent e) { MidiTest.runLoopbackTest(AppConfig.getMidiWrapper(), cbIn.getSelectedIndex(), cbOut.getSelectedIndex()); } }); gridbag.setConstraints(testButton, gbc); cbPanel.add(testButton); // make a space gbc.gridx=0; gbc.gridy=7; gbc.gridheight=1; gbc.gridwidth=1; gbc.fill=gbc.HORIZONTAL; JLabel l0=new JLabel (" "); gridbag.setConstraints(l0, gbc); cbPanel.add (l0); // master controller selection gbc.gridx=0; gbc.gridy=8; gbc.gridheight=1; gbc.gridwidth=gbc.REMAINDER; // gbc.gridwidth=3; JLabel l1=new JLabel ("Receive from Master Controller on MIDI Port:"); gridbag.setConstraints(l1, gbc); cbPanel.add (l1); cbxEnMC = new JCheckBox ("Enable Master Controller"); gbc.gridx = 1; gbc.gridy = 9; gbc.gridwidth = 1; gbc.gridheight = 1; cbPanel.add(cbxEnMC, gbc); cbxEnMC.addActionListener(new ActionListener() { public void actionPerformed (ActionEvent e) { cbMC.setEnabled(cbxEnMC.isSelected()); } }); gbc.gridx=1; gbc.gridy=10; gbc.gridheight=1; gbc.gridwidth=gbc.REMAINDER; if (PatchEdit.newMidiAPI) cbMC = new JComboBox(MidiUtil.getInputMidiDeviceInfo()); else cbMC = new JComboBox(); gridbag.setConstraints(cbMC, gbc); cbPanel.add (cbMC); channelPanel.add(cbPanel); add(channelPanel); //init(); } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/8d7588be6e6745429cbfd1d615757595b087e7e2/MidiConfigPanel.java/clean/JSynthLib/core/MidiConfigPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
490,
350,
77,
809,
5537,
12,
31904,
20782,
13,
288,
202,
9565,
12,
2910,
809,
1769,
202,
7407,
3043,
5583,
273,
394,
5589,
5621,
202,
542,
3744,
261,
2704,
2922,
18,
1494,
3744,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
490,
350,
77,
809,
5537,
12,
31904,
20782,
13,
288,
202,
9565,
12,
2910,
809,
1769,
202,
7407,
3043,
5583,
273,
394,
5589,
5621,
202,
542,
3744,
261,
2704,
2922,
18,
1494,
3744,
1... |
_log.error("No reply inbound tunnels available!"); | _log.warn("No reply inbound tunnels available!"); | private void sendStoreThroughGarlic(DatabaseStoreMessage msg, RouterInfo peer, long expiration) { long token = getContext().random().nextLong(I2NPMessage.MAX_ID_VALUE); TunnelInfo replyTunnel = selectInboundTunnel(); if (replyTunnel == null) { _log.error("No reply inbound tunnels available!"); return; } TunnelId replyTunnelId = replyTunnel.getReceiveTunnelId(0); if (replyTunnel == null) { _log.error("No reply inbound tunnels available!"); return; } msg.setReplyToken(token); msg.setReplyTunnel(replyTunnelId); msg.setReplyGateway(replyTunnel.getPeer(0)); if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": send(dbStore) w/ token expected " + token); _state.addPending(peer.getIdentity().getHash()); TunnelInfo outTunnel = selectOutboundTunnel(); if (outTunnel != null) { //if (_log.shouldLog(Log.DEBUG)) // _log.debug(getJobId() + ": Sending tunnel message out " + outTunnelId + " to " // + peer.getIdentity().getHash().toBase64()); TunnelId targetTunnelId = null; // not needed Job onSend = null; // not wanted SendSuccessJob onReply = new SendSuccessJob(getContext(), peer, outTunnel, msg.getMessageSize()); FailedJob onFail = new FailedJob(getContext(), peer, getContext().clock().now()); StoreMessageSelector selector = new StoreMessageSelector(getContext(), getJobId(), peer, token, expiration); if (_log.shouldLog(Log.DEBUG)) _log.debug("sending store to " + peer.getIdentity().getHash() + " through " + outTunnel + ": " + msg); getContext().messageRegistry().registerPending(selector, onReply, onFail, (int)(expiration - getContext().clock().now())); getContext().tunnelDispatcher().dispatchOutbound(msg, outTunnel.getSendTunnelId(0), null, peer.getIdentity().getHash()); } else { if (_log.shouldLog(Log.ERROR)) _log.error("No outbound tunnels to send a dbStore out!"); fail(); } } | 27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/1eebd5463f5a4783008b5ae42ea8091e4d54fe7f/StoreJob.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/StoreJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
2257,
14287,
43,
13007,
335,
12,
4254,
2257,
1079,
1234,
16,
9703,
966,
4261,
16,
1525,
7686,
13,
288,
3639,
1525,
1147,
273,
6474,
7675,
9188,
7675,
4285,
3708,
12,
45,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1366,
2257,
14287,
43,
13007,
335,
12,
4254,
2257,
1079,
1234,
16,
9703,
966,
4261,
16,
1525,
7686,
13,
288,
3639,
1525,
1147,
273,
6474,
7675,
9188,
7675,
4285,
3708,
12,
45,
... |
try { if (!sketch.handleRun(new Target( System.getProperty("user.dir") + File.separator + "lib" + File.separator + "targets", Preferences.get("build.target")))) return; | SwingUtilities.invokeLater(new Runnable() { public void run() { try { if (!sketch.handleRun(new Target( System.getProperty("user.dir") + File.separator + "lib" + File.separator + "targets", Preferences.get("build.target")))) return; watcher = new RunButtonWatcher(); message("Done compiling."); if(watcher != null) watcher.stop(); } catch (RunnerException e) { message("Error compiling..."); error(e); | public void handleRun(boolean present) { doClose(); running = true; buttons.activate(EditorButtons.RUN); message("Compiling..."); // do this for the terminal window / dos prompt / etc for (int i = 0; i < 10; i++) System.out.println(); // clear the console on each run, unless the user doesn't want to //if (Base.getBoolean("console.auto_clear", true)) { //if (Preferences.getBoolean("console.auto_clear", true)) { if (Preferences.getBoolean("console.auto_clear")) { console.clear(); } presenting = present; if (presenting && Base.isMacOS()) { // check to see if osx 10.2, if so, show a warning String osver = System.getProperty("os.version").substring(0, 4); if (osver.equals("10.2")) { Base.showWarning("Time for an OS Upgrade", "The \"Present\" feature may not be available on\n" + "Mac OS X 10.2, because of what appears to be\n" + "a bug in the Java 1.4 implementation on 10.2.\n" + "In case it works on your machine, present mode\n" + "will start, but if you get a flickering white\n" + "window, using Command-Q to quit the sketch", null); } } try { if (!sketch.handleRun(new Target( System.getProperty("user.dir") + File.separator + "lib" + File.separator + "targets", Preferences.get("build.target")))) return; //runtime = new Runner(sketch, Editor.this); //runtime.start(appletLocation); watcher = new RunButtonWatcher(); message("Done compiling."); if(watcher != null) watcher.stop(); } catch (RunnerException e) { message("Error compiling..."); error(e); } catch (Exception e) { e.printStackTrace(); } // this doesn't seem to help much or at all /* final SwingWorker worker = new SwingWorker() { public Object construct() { try { if (!sketch.handleRun()) return null; runtime = new Runner(sketch, Editor.this); runtime.start(presenting ? presentLocation : appletLocation); watcher = new RunButtonWatcher(); message("Done compiling."); } catch (RunnerException e) { message("Error compiling..."); error(e); } catch (Exception e) { e.printStackTrace(); } return null; // needn't return anything } }; worker.start(); */ //sketch.cleanup(); // where does this go? buttons.clear(); } | 47565 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47565/b8923cfeee58eb44e10777e724bb177e6a77b146/Editor.java/buggy/app/Editor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1640,
1997,
12,
6494,
3430,
13,
288,
565,
741,
4605,
5621,
565,
3549,
273,
638,
31,
565,
9502,
18,
10014,
12,
6946,
14388,
18,
15238,
1769,
565,
883,
2932,
2945,
4973,
7070,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
1997,
12,
6494,
3430,
13,
288,
565,
741,
4605,
5621,
565,
3549,
273,
638,
31,
565,
9502,
18,
10014,
12,
6946,
14388,
18,
15238,
1769,
565,
883,
2932,
2945,
4973,
7070,
... |
map(method.substring(start, end).trim()); | sb.append(map(method.substring(start, end).trim())); | public static Method getMethod (final String method) { int space = method.indexOf(' '); int start = method.indexOf('(', space) + 1; int end = method.indexOf(')', start); String returnType = method.substring(0, space); String methodName = method.substring(space + 1, start - 1).trim(); StringBuffer sb = new StringBuffer(); sb.append('('); int p; do { p = method.indexOf(',', start); if (p == -1) { map(method.substring(start, end).trim()); } else { map(method.substring(start, p).trim()); start = p + 1; } } while (p != -1); sb.append(')'); sb.append(map(returnType)); return new Method(methodName, sb.toString()); } | 8320 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8320/c4c2519dc667ffa81d9a7f13a177422d8c3fe3a5/Method.java/buggy/asm/src/org/objectweb/asm/commons/Method.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2985,
6272,
261,
6385,
514,
707,
13,
288,
565,
509,
3476,
273,
707,
18,
31806,
2668,
28005,
565,
509,
787,
273,
707,
18,
31806,
2668,
12,
2187,
3476,
13,
397,
404,
31,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2985,
6272,
261,
6385,
514,
707,
13,
288,
565,
509,
3476,
273,
707,
18,
31806,
2668,
28005,
565,
509,
787,
273,
707,
18,
31806,
2668,
12,
2187,
3476,
13,
397,
404,
31,
565,
... |
IDE.openEditor( page, file, true ); | IEditorPart editorPart = IDE.openEditor( page, file, true ); setReportSettings(((IDEReportEditor)editorPart).getModel()); editorPart.doSave(null); | public void run( ) { IWorkbench workbench = PlatformUI.getWorkbench( ); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( ); IWorkbenchPage page = window.getActivePage( ); try { IDE.openEditor( page, file, true ); BasicNewProjectResourceWizard.updatePerspective( configElement ); if ( showCheat && !cheatId.equals( "" ) ) //$NON-NLS-1$ { OpenCheatSheetAction action = null; // Temporary remark the choice page for that feature is // not supported in R1 // if ( choicePage.isCustom( ) ) // { // action = new OpenCheatSheetAction( file.getName( ), // file.getName( ), // new URL( cheatId ) ); //$NON-NLS-1$ // } // else // { action = new OpenCheatSheetAction( cheatId ); // } action.run( ); } } catch ( Exception e ) { ExceptionHandler.handle( e ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/3e0d05ef79eee05e482cd34050fc3688a513255c/NewReportWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewReportWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
262,
1082,
202,
95,
9506,
202,
45,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
22144,
12,
11272,
9506,
202,
45,
2421,
22144,
3829,
2742,
273,
1440... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
262,
1082,
202,
95,
9506,
202,
45,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
22144,
12,
11272,
9506,
202,
45,
2421,
22144,
3829,
2742,
273,
1440... |
if (jj_3R_82()) return true; | if (jj_scan_token(LBRACE)) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_3_38()) { jj_scanpos = xsp; break; } } if (jj_scan_token(RBRACE)) return true; | final private boolean jj_3R_104() { if (jj_3R_82()) return true; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3e3034d7566b0047ef2bf5af2e29ce51f94a2d2e/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,
21869,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
12995,
9254,
3719,
327,
638,
31,
3155,
619,
1752,
31,
1323,
261,
3767,
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,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
21869,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
12995,
9254,
3719,
327,
638,
31,
3155,
619,
1752,
31,
1323,
261,
3767,
13,
288... |
dom.setDocumentURI(systemId); | dom.setDocumentURI(_sourceSystemId); | private DOMImpl getDOM(Source source, int mask) throws TransformerException { try { DOMImpl dom = null; DTDMonitor dtd = null; // Handle SAXSource input if (source instanceof SAXSource) { // Get all info from the input SAXSource object final SAXSource sax = (SAXSource)source; XMLReader reader = sax.getXMLReader(); final InputSource input = sax.getInputSource(); final String systemId = sax.getSystemId(); // if reader was not set with setXMLReader by user, // then we must create one ourselves. if (reader == null) { SAXParserFactory pfactory= SAXParserFactory.newInstance(); pfactory.setNamespaceAware(true); reader = pfactory.newSAXParser().getXMLReader(); } // Create a DTD monitor to trap all DTD/declarative events dtd = new DTDMonitor(); dtd.handleDTD(reader); // Create a new internal DOM and set up its builder to trap // all content/lexical events dom = new DOMImpl(); final DOMBuilder builder = dom.getBuilder(); try { reader.setProperty(LEXICAL_HANDLER_PROPERTY, builder); } catch (SAXException e) { // quitely ignored } reader.setContentHandler(builder); // Parse the input and build the internal DOM reader.parse(input); dom.setDocumentURI(systemId); } // Handle DOMSource input else if (source instanceof DOMSource) { final DOMSource domsrc = (DOMSource)source; final org.w3c.dom.Node node = domsrc.getNode(); boolean isComplete = true; if (node.getNodeType() != org.w3c.dom.Node.DOCUMENT_NODE) { isComplete = false; } final DOM2SAX dom2sax = new DOM2SAX(node); final InputSource input = null; final String systemId = domsrc.getSystemId(); // Create a DTD monitor to trap all DTD/declarative events dtd = new DTDMonitor(); dtd.handleDTD(dom2sax); // Create a new internal DOM and set up its builder to trap // all content/lexical events dom = new DOMImpl(); final DOMBuilder builder = dom.getBuilder(); dom2sax.setContentHandler(builder); // Parse the input and build the internal DOM if (!isComplete) { builder.startDocument(); } dom2sax.parse(input); // need this parameter? if (!isComplete) { builder.endDocument(); } dom.setDocumentURI(systemId); } // Handle StreamSource input else if (source instanceof StreamSource) { // Get all info from the input StreamSource object final StreamSource stream = (StreamSource)source; final InputStream streamInput = stream.getInputStream(); final Reader streamReader = stream.getReader(); final String systemId = stream.getSystemId(); // With a StreamSource we need to create our own parser final SAXParserFactory factory = SAXParserFactory.newInstance(); try { factory.setFeature(NAMESPACE_FEATURE,true); } catch (Exception e) { factory.setNamespaceAware(true); } final SAXParser parser = factory.newSAXParser(); final XMLReader reader = parser.getXMLReader(); // Create a DTD monitor to trap all DTD/declarative events dtd = new DTDMonitor(); dtd.handleDTD(reader); // Create a new internal DOM and set up its builder to trap // all content/lexical events dom = new DOMImpl(); final DOMBuilder builder = dom.getBuilder(); try { reader.setProperty(LEXICAL_HANDLER_PROPERTY, builder); } catch (SAXException e) { // quitely ignored } reader.setContentHandler(builder); InputSource input; if (streamInput != null) { input = new InputSource(streamInput); input.setSystemId(systemId); } else if (streamReader != null) { input = new InputSource(streamReader); input.setSystemId(systemId); } else if (systemId != null) { input = new InputSource(systemId); } else { ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_SOURCE_ERR); throw new TransformerException(err.toString()); } // Parse the input and build the internal DOM reader.parse(input); dom.setDocumentURI(systemId); } // Handle XSLTC-internal Source input else if (source instanceof XSLTCSource) { final XSLTCSource xsltcsrc = (XSLTCSource)source; dtd = xsltcsrc.getDTD(); dom = xsltcsrc.getDOM(); } // DOM already set via a call to setDOM() else if (_dom != null) { dtd = _dtdMonitor; // must be set via setDTDMonitor() dom = _dom; _dom = null; // use only once, so reset to 'null' } else { return null; } // Set size of key/id indices _translet.setIndexSize(dom.getSize()); // If there are any elements with ID attributes, build an index dtd.buildIdIndex(dom, mask, _translet); // Pass unparsed entity URIs to the translet _translet.setDTDMonitor(dtd); return dom; } catch (FileNotFoundException e) { if (_errorListener != null) postErrorToListener(e.getMessage()); throw new TransformerException(e); } catch (MalformedURLException e) { if (_errorListener != null) postErrorToListener(e.getMessage()); throw new TransformerException(e); } catch (UnknownHostException e) { if (_errorListener != null) postErrorToListener(e.getMessage()); throw new TransformerException(e); } catch (Exception e) { if (_errorListener != null) postErrorToListener(e.getMessage()); throw new TransformerException(e); } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/9fa52c94bb58eefc8b27b300e34d85f640d7f869/TransformerImpl.java/buggy/src/org/apache/xalan/xsltc/trax/TransformerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4703,
2828,
2343,
1872,
12,
1830,
1084,
16,
509,
3066,
13,
202,
15069,
21684,
377,
288,
202,
698,
288,
202,
565,
4703,
2828,
4092,
273,
446,
31,
202,
565,
10696,
40,
7187,
3681,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4703,
2828,
2343,
1872,
12,
1830,
1084,
16,
509,
3066,
13,
202,
15069,
21684,
377,
288,
202,
698,
288,
202,
565,
4703,
2828,
4092,
273,
446,
31,
202,
565,
10696,
40,
7187,
3681,
7... |
public void paint(Context c, Box box) { //u.p("BoxLayout.paint " + box);//+box.getElement().getNodeName()+") " + block); BlockBox block = (BlockBox)box; // copy the bounds to we don't mess it up Rectangle oldBounds = new Rectangle(c.getExtents()); if (block.relative) { paintRelative(c,block); } else if (block.fixed) { paintFixed(c,block); } else { paintNormal(c,block); } //u.p("here it's : " + c.getListCounter()); if(isListItem(c,box)) { paintListItem(c,box); } // move the origin down to account for the contents plus the margin, borders, and padding oldBounds.y = oldBounds.y + block.height; c.setExtents(oldBounds); if(c.debugDrawBoxes()) { GraphicsUtil.drawBox(c.getGraphics(),block,Color.red); } } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/07ab625b03cad242caa27ac48e830592130b24a1/BoxLayout.java/clean/src/java/org/joshy/html/BoxLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
84,
1598,
12,
1042,
71,
16,
3514,
2147,
15329,
759,
89,
18,
84,
2932,
3514,
3744,
18,
84,
1598,
6,
15,
2147,
1769,
759,
15,
2147,
18,
21336,
7675,
588,
18948,
1435,
9078,
2225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
84,
1598,
12,
1042,
71,
16,
3514,
2147,
15329,
759,
89,
18,
84,
2932,
3514,
3744,
18,
84,
1598,
6,
15,
2147,
1769,
759,
15,
2147,
18,
21336,
7675,
588,
18948,
1435,
9078,
2225,
... | ||
{ Territory t = (Territory) o; return t.equals(test); } | { Unit unit = (Unit) o; if(unit.getOwner().equals(player)) return true; return data.getAllianceTracker().isAllied(player, unit.getOwner()); } | public boolean match(Object o) { Territory t = (Territory) o; return t.equals(test); } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/2583b4f5670808ca7b4f3986743c218f706a4e92/Matches.java/clean/src/games/strategy/triplea/delegate/Matches.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3639,
1071,
1250,
845,
12,
921,
320,
13,
4202,
288,
540,
399,
25313,
268,
273,
261,
56,
25313,
13,
320,
31,
540,
327,
268,
18,
14963,
12,
3813,
1769,
4202,
289,
2,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3639,
1071,
1250,
845,
12,
921,
320,
13,
4202,
288,
540,
399,
25313,
268,
273,
261,
56,
25313,
13,
320,
31,
540,
327,
268,
18,
14963,
12,
3813,
1769,
4202,
289,
2,
-100,
-100,
-100,
-100,
... |
Logger.debug(this, "updateHandshakeIPs: calling getAddress(false) on Peer '"+localHandshakeIPs[i]+"' for PeerNode '"+getPeer()+"' named '"+getName()+"' ("+ignoreHostnames+")"); | Logger.debug(this, "updateHandshakeIPs: calling getAddress(false) on Peer '"+localHandshakeIPs[i]+"' for PeerNode '"+getPeer()+"' named '"+getName()+"' ("+ignoreHostnames+ ')'); | private Peer[] updateHandshakeIPs(Peer[] localHandshakeIPs, boolean ignoreHostnames) { for(int i=0;i<localHandshakeIPs.length;i++) { if(ignoreHostnames) { // Don't do a DNS request on the first cycle through PeerNodes by DNSRequest // upon startup (I suspect the following won't do anything, but just in case) if(logMINOR) Logger.debug(this, "updateHandshakeIPs: calling getAddress(false) on Peer '"+localHandshakeIPs[i]+"' for PeerNode '"+getPeer()+"' named '"+getName()+"' ("+ignoreHostnames+")"); localHandshakeIPs[i].getAddress(false); } else { // Actually do the DNS request for the member Peer of localHandshakeIPs if(logMINOR) Logger.debug(this, "updateHandshakeIPs: calling getHandshakeAddress() on Peer '"+localHandshakeIPs[i]+"' for PeerNode '"+getPeer()+"' named '"+getName()+"' ("+ignoreHostnames+")"); localHandshakeIPs[i].getHandshakeAddress(); } } return localHandshakeIPs; } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/62fd59041864b4ed1f43adc676de6bfb5ea977f3/PeerNode.java/buggy/src/freenet/node/PeerNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
10669,
8526,
1089,
14545,
18246,
12,
6813,
8526,
1191,
14545,
18246,
16,
1250,
2305,
2594,
1973,
13,
288,
3639,
364,
12,
474,
277,
33,
20,
31,
77,
32,
3729,
14545,
18246,
18,
2469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10669,
8526,
1089,
14545,
18246,
12,
6813,
8526,
1191,
14545,
18246,
16,
1250,
2305,
2594,
1973,
13,
288,
3639,
364,
12,
474,
277,
33,
20,
31,
77,
32,
3729,
14545,
18246,
18,
2469,
... |
logger.debug("adding killer to header: " + killer); | if (logger.isDebugEnabled()) { logger.debug("adding killer to header: " + killer); } | private Header addCookieKillers(RequestLineToken rl, Header h) { List<String> cookieKillers = killers.remove(rl); if (null == cookieKillers) { return h; } for (Iterator i = cookieKillers.iterator(); i.hasNext(); ) { String killer = (String)i.next(); logger.debug("adding killer to header: " + killer); h.addField("Set-Cookie", killer); } return h; } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/115e144444f9e3e5b13e66a4e36937ed2f6c876a/SpywareHttpHandler.java/clean/tran/spyware/main/com/metavize/tran/spyware/SpywareHttpHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4304,
527,
6151,
19045,
414,
12,
691,
1670,
1345,
11618,
16,
4304,
366,
13,
565,
288,
3639,
987,
32,
780,
34,
3878,
19045,
414,
273,
8673,
414,
18,
4479,
12,
1321,
1769,
3639,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4304,
527,
6151,
19045,
414,
12,
691,
1670,
1345,
11618,
16,
4304,
366,
13,
565,
288,
3639,
987,
32,
780,
34,
3878,
19045,
414,
273,
8673,
414,
18,
4479,
12,
1321,
1769,
3639,
309... |
case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); | } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5bd7d96787b00e369ca7776d1b88e375b0d13a79/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... |
useFallback = true; | useFallbackLevel++; | protected void processXIncludeElement(String href, String parse, String xpointer) throws SAXException, ProcessingException, IOException { if (getLogger().isDebugEnabled()) { getLogger().debug("Processing XInclude element: href="+href+", parse="+parse+", xpointer="+xpointer); } // Default for @parse is "xml" if (parse == null) { parse = "xml"; } Source url = null; try { int fragmentIdentifierPos = href.indexOf('#'); if (fragmentIdentifierPos != -1) { getLogger().warn("Fragment identifer found in 'href' attribute: " + href + "\nFragment identifiers are forbidden by the XInclude specification. " + "They are still handled by XIncludeTransformer for backward " + "compatibility, but their use is deprecated and will be prohibited " + "in a future release. Use the 'xpointer' attribute instead."); if (xpointer == null) { xpointer = href.substring(fragmentIdentifierPos + 1); } href = href.substring(0, fragmentIdentifierPos); } // An empty or absent href is a reference to the current document -- this can be different than the current base if (href == null || href.length() == 0) { if (this.href == null) { throw new SAXException("XIncludeTransformer: encountered empty href (= href pointing to the current document) but the location of the current document is unknown."); } // The following can be simplified once fragment identifiers are prohibited int fragmentIdentifierPos2 = this.href.indexOf('#'); if (fragmentIdentifierPos2 != -1) href = this.href.substring(0, fragmentIdentifierPos2); else href = this.href; } url = xmlBaseSupport.makeAbsolute(href); if (getLogger().isDebugEnabled()) { getLogger().debug("URL: " + url.getURI() + "\nXPointer: " + xpointer); } // add the source to the SourceValidity validity.addSource(url); if (parse.equals("text")) { getLogger().debug("Parse type is text"); if (xpointer != null) { throw new SAXException("xpointer attribute must not be present when parse='text': " + getLocation()); } InputStream is = null; InputStreamReader isr = null; Reader reader = null; try { is = url.getInputStream(); isr = new InputStreamReader(is); reader = new BufferedReader(isr); int read; char ary[] = new char[1024 * 4]; while ((read = reader.read(ary)) != -1) { super.characters(ary,0,read); } } catch (SourceNotFoundException e) { useFallback = true; fallBackException = new CascadingException("Resource not found: " + url.getURI()); getLogger().error("xIncluded resource not found: " + url.getURI(), e); } finally { if (reader != null) reader.close(); if (isr != null) isr.close(); if (is != null) is.close(); } } else if (parse.equals("xml")) { getLogger().debug("Parse type is XML"); // Check loop inclusion if (isLoopInclusion(url.getURI(), xpointer)) { throw new ProcessingException("Detected loop inclusion of href=" + url.getURI() + ", xpointer=" + xpointer); } XIncludePipe subPipe = new XIncludePipe(); subPipe.enableLogging(getLogger()); subPipe.init(url.getURI(), xpointer); subPipe.setConsumer(xmlConsumer); subPipe.setParent(this); try { if (xpointer != null && xpointer.length() > 0) { XPointer xptr; xptr = XPointerFrameworkParser.parse(NetUtils.decodePath(xpointer)); XPointerContext context = new XPointerContext(xpointer, url, subPipe, getLogger(), manager); xptr.process(context); } else { SourceUtil.toSAX(url, new IncludeXMLConsumer(subPipe)); } // restore locator on the consumer if (locator != null) xmlConsumer.setDocumentLocator(locator); } catch (ResourceNotFoundException e) { useFallback = true; fallBackException = new CascadingException("Resource not found: " + url.getURI()); getLogger().error("xIncluded resource not found: " + url.getURI(), e); } catch (ParseException e) { // this exception is thrown in case of an invalid xpointer expression useFallback = true; fallBackException = new CascadingException("Error parsing xPointer expression", e); fallBackException.fillInStackTrace(); getLogger().error("Error parsing XPointer expression, will try to use fallback.", e); } catch(SAXException e) { getLogger().error("Error in processXIncludeElement", e); throw e; } catch(ProcessingException e) { getLogger().error("Error in processXIncludeElement", e); throw e; } catch(MalformedURLException e) { useFallback = true; fallBackException = e; getLogger().error("Error processing an xInclude, will try to use fallback.", e); } catch(IOException e) { useFallback = true; fallBackException = e; getLogger().error("Error processing an xInclude, will try to use fallback.", e); } } else { throw new SAXException("Found 'parse' attribute with unknown value " + parse + " at " + getLocation()); } } catch (SourceException se) { throw SourceUtil.handle(se); } finally { if (url != null) { resolver.release(url); } } } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/bb4ec8469d225cd9698840dda6f8e3091e13314e/XIncludeTransformer.java/buggy/core/cocoon-core/src/main/java/org/apache/cocoon/transformation/XIncludeTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
1207,
60,
8752,
1046,
12,
780,
3897,
16,
514,
1109,
16,
514,
619,
10437,
13,
3639,
1216,
14366,
16,
19652,
503,
16,
1860,
288,
5411,
309,
261,
588,
3328,
7675,
291,
2829,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
1207,
60,
8752,
1046,
12,
780,
3897,
16,
514,
1109,
16,
514,
619,
10437,
13,
3639,
1216,
14366,
16,
19652,
503,
16,
1860,
288,
5411,
309,
261,
588,
3328,
7675,
291,
2829,
152... |
public void addSequenceProperty(Object key, Object value) throws ParseException { try { // Tidy up any end-of-block jobbies if (features.inFeature() && !key.equals("FT")) { features.endFeature(); } if (key.equals("FT")) { String featureLine = value.toString(); if (featureLine.charAt(0) != ' ') { // This is a featuretype field if (features.inFeature()) features.endFeature(); features.startFeature(featureLine.substring(0, 15).trim()); } features.featureData(featureLine.substring(16)); } else { getDelegate().addSequenceProperty(key, value); if (key.equals("AC")) { String acc= value.toString(); StringTokenizer toke = new StringTokenizer(acc, "; "); while (toke.hasMoreTokens()) accessions.add(toke.nextToken()); } } } catch (BioException ex) { throw new BioError(ex, "FIXME"); } } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/fde307a314ac551375901ce876635e7d0dc1031a/EmblProcessor.java/buggy/src/org/biojava/bio/seq/io/EmblProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
4021,
1396,
12,
921,
498,
16,
1033,
460,
13,
1216,
10616,
288,
202,
698,
288,
202,
565,
368,
399,
29609,
731,
1281,
679,
17,
792,
17,
2629,
1719,
70,
606,
202,
377,
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,
377,
1071,
918,
527,
4021,
1396,
12,
921,
498,
16,
1033,
460,
13,
1216,
10616,
288,
202,
698,
288,
202,
565,
368,
399,
29609,
731,
1281,
679,
17,
792,
17,
2629,
1719,
70,
606,
202,
377,
20... | ||
set.add(__FORWARD_PATH_INFO); | if (_pathInfo!=null) set.add(__FORWARD_PATH_INFO); else set.remove(__FORWARD_PATH_INFO); | public Enumeration getAttributeNames() { HashSet set=new HashSet(); Enumeration e=_attr.getAttributeNames(); while(e.hasMoreElements()) set.add(e.nextElement()); if (_named==null) { set.add(__FORWARD_PATH_INFO); set.add(__FORWARD_REQUEST_URI); set.add(__FORWARD_SERVLET_PATH); set.add(__FORWARD_CONTEXT_PATH); set.add(__FORWARD_QUERY_STRING); } return Collections.enumeration(set); } | 13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/98166b755dcbd64ef2461dbd2453bfa01e052ec9/Dispatcher.java/clean/trunk/modules/jetty/src/main/java/org/mortbay/jetty/servlet/Dispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
13864,
4061,
1557,
1435,
3639,
288,
5411,
6847,
444,
33,
2704,
6847,
5621,
5411,
13864,
425,
33,
67,
1747,
18,
588,
26080,
5621,
5411,
1323,
12,
73,
18,
5332,
7417,
3471,
10756,
773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13864,
4061,
1557,
1435,
3639,
288,
5411,
6847,
444,
33,
2704,
6847,
5621,
5411,
13864,
425,
33,
67,
1747,
18,
588,
26080,
5621,
5411,
1323,
12,
73,
18,
5332,
7417,
3471,
10756,
773... |
assertTrue(rs.getLong(1) == 7); | assertEquals(rs.getLong(1), 7); | public void testBigint0000() throws Exception { Connection cx = getConnection(); dropTable("#t0000"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0000 " + " (i decimal(28,10) not null, " + " s char(10) not null) "); final int rowsToAdd = 20; int count = 0; for (int i = 1; i <= rowsToAdd; i++) { String sql = "insert into #t0000 values (" + i + ", 'row" + i + "')"; count += stmt.executeUpdate(sql); } assertTrue(count == rowsToAdd); PreparedStatement pStmt = cx.prepareStatement("select i from #t0000 where i = ?"); pStmt.setLong(1, 7); ResultSet rs = pStmt.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertTrue(rs.getLong(1) == 7); assertTrue("Expected no result set", !rs.next()); pStmt.setLong(1, 8); rs = pStmt.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertTrue(rs.getLong(1) == 8); assertTrue("Expected no result set", !rs.next()); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/3536f07067bcf3c572aa820c500e64c50499f6c5/TimestampTest.java/buggy/src/test/net/sourceforge/jtds/test/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9901,
474,
2787,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
3640,
1388,
2932,
7,
88,
2787,
8863,
3639,
8056,
3480,
273,
9494,
18,
2640,
3406,
5621,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9901,
474,
2787,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
3640,
1388,
2932,
7,
88,
2787,
8863,
3639,
8056,
3480,
273,
9494,
18,
2640,
3406,
5621,
3... |
if (memories == null) { parse(); } | public long getTotalBytes() { if (memories == null) { parse(); } return totalBytes; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1354f9e661fc35bfd0d47664f5c71e5127b46a99/MIDataReadMemoryInfo.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIDataReadMemoryInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
12831,
2160,
1435,
288,
202,
202,
430,
225,
261,
3917,
2401,
422,
446,
13,
288,
1082,
202,
2670,
5621,
202,
202,
97,
202,
202,
2463,
29937,
31,
202,
97,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
12831,
2160,
1435,
288,
202,
202,
430,
225,
261,
3917,
2401,
422,
446,
13,
288,
1082,
202,
2670,
5621,
202,
202,
97,
202,
202,
2463,
29937,
31,
202,
97,
2,
-100,
-100,
... | |
StackMapFrame currentFrame = ((StackMapFrameCodeStream) codeStream).frames; while (currentFrame.prevFrame != null) { currentFrame = currentFrame.prevFrame; } currentFrame = currentFrame.nextFrame; while (currentFrame != null && currentFrame.pc < code_length) { | ArrayList frames = ((StackMapFrameCodeStream) codeStream).frames; StackMapFrame currentFrame = (StackMapFrame) frames.get(0); StackMapFrame prevFrame = null; int framesSize = frames.size(); int frameIndex = 0; for (int j = 0; j < framesPositionsSize && ((Integer) framePositions.get(j)).intValue() < code_length; j++) { prevFrame = currentFrame; currentFrame = null; for (; frameIndex < framesSize; frameIndex++) { currentFrame = (StackMapFrame) frames.get(frameIndex); if (currentFrame.pc == ((Integer) framePositions.get(j)).intValue()) { break; } } if (currentFrame == null) break; | public void completeCodeAttribute(int codeAttributeOffset) { // reinitialize the localContents with the byte modified by the code stream this.contents = codeStream.bCodeStream; int localContentsOffset = codeStream.classFileOffset; // codeAttributeOffset is the position inside localContents byte array before we started to write // any information about the codeAttribute // That means that to write the attribute_length you need to offset by 2 the value of codeAttributeOffset // to get the right position, 6 for the max_stack etc... int code_length = codeStream.position; if (code_length > 65535) { codeStream.methodDeclaration.scope.problemReporter().bytecodeExceeds64KLimit( codeStream.methodDeclaration); } if (localContentsOffset + 20 >= this.contents.length) { resizeContents(20); } int max_stack = codeStream.stackMax; this.contents[codeAttributeOffset + 6] = (byte) (max_stack >> 8); this.contents[codeAttributeOffset + 7] = (byte) max_stack; int max_locals = codeStream.maxLocals; this.contents[codeAttributeOffset + 8] = (byte) (max_locals >> 8); this.contents[codeAttributeOffset + 9] = (byte) max_locals; this.contents[codeAttributeOffset + 10] = (byte) (code_length >> 24); this.contents[codeAttributeOffset + 11] = (byte) (code_length >> 16); this.contents[codeAttributeOffset + 12] = (byte) (code_length >> 8); this.contents[codeAttributeOffset + 13] = (byte) code_length; // write the exception table ExceptionLabel[] exceptionLabels = codeStream.exceptionLabels; int exceptionHandlersCount = 0; // each label holds one handler per range (start/end contiguous) for (int i = 0, length = codeStream.exceptionLabelsCounter; i < length; i++) { exceptionHandlersCount += codeStream.exceptionLabels[i].count / 2; } int exSize = exceptionHandlersCount * 8 + 2; if (exSize + localContentsOffset >= this.contents.length) { resizeContents(exSize); } // there is no exception table, so we need to offset by 2 the current offset and move // on the attribute generation this.contents[localContentsOffset++] = (byte) (exceptionHandlersCount >> 8); this.contents[localContentsOffset++] = (byte) exceptionHandlersCount; for (int i = 0, max = codeStream.exceptionLabelsCounter; i < max; i++) { ExceptionLabel exceptionLabel = exceptionLabels[i]; if (exceptionLabel != null) { int iRange = 0, maxRange = exceptionLabel.count; if ((maxRange & 1) != 0) { codeStream.methodDeclaration.scope.problemReporter().abortDueToInternalError( Messages.bind(Messages.abort_invalidExceptionAttribute, new String(codeStream.methodDeclaration.selector)), codeStream.methodDeclaration); } while (iRange < maxRange) { int start = exceptionLabel.ranges[iRange++]; // even ranges are start positions this.contents[localContentsOffset++] = (byte) (start >> 8); this.contents[localContentsOffset++] = (byte) start; int end = exceptionLabel.ranges[iRange++]; // odd ranges are end positions this.contents[localContentsOffset++] = (byte) (end >> 8); this.contents[localContentsOffset++] = (byte) end; int handlerPC = exceptionLabel.position; this.contents[localContentsOffset++] = (byte) (handlerPC >> 8); this.contents[localContentsOffset++] = (byte) handlerPC; if (exceptionLabel.exceptionType == null) { // any exception handler this.contents[localContentsOffset++] = 0; this.contents[localContentsOffset++] = 0; } else { int nameIndex; if (exceptionLabel.exceptionType == TypeBinding.NULL) { /* represents ClassNotFoundException, see class literal access*/ nameIndex = constantPool.literalIndexForType(ConstantPool.JavaLangClassNotFoundExceptionConstantPoolName); } else { nameIndex = constantPool.literalIndexForType(exceptionLabel.exceptionType.constantPoolName()); } this.contents[localContentsOffset++] = (byte) (nameIndex >> 8); this.contents[localContentsOffset++] = (byte) nameIndex; } } } } // debug attributes int codeAttributeAttributeOffset = localContentsOffset; int attributeNumber = 0; // leave two bytes for the attribute_length localContentsOffset += 2; if (localContentsOffset + 2 >= this.contents.length) { resizeContents(2); } // first we handle the linenumber attribute if ((this.produceAttributes & ClassFileConstants.ATTR_LINES) != 0) { /* Create and add the line number attribute (used for debugging) * Build the pairs of: * (bytecodePC lineNumber) * according to the table of start line indexes and the pcToSourceMap table * contained into the codestream */ int[] pcToSourceMapTable; if (((pcToSourceMapTable = codeStream.pcToSourceMap) != null) && (codeStream.pcToSourceMapSize != 0)) { int lineNumberNameIndex = constantPool.literalIndex(AttributeNamesConstants.LineNumberTableName); if (localContentsOffset + 8 >= this.contents.length) { resizeContents(8); } this.contents[localContentsOffset++] = (byte) (lineNumberNameIndex >> 8); this.contents[localContentsOffset++] = (byte) lineNumberNameIndex; int lineNumberTableOffset = localContentsOffset; localContentsOffset += 6; // leave space for attribute_length and line_number_table_length int numberOfEntries = 0; int length = codeStream.pcToSourceMapSize; for (int i = 0; i < length;) { // write the entry if (localContentsOffset + 4 >= this.contents.length) { resizeContents(4); } int pc = pcToSourceMapTable[i++]; this.contents[localContentsOffset++] = (byte) (pc >> 8); this.contents[localContentsOffset++] = (byte) pc; int lineNumber = pcToSourceMapTable[i++]; this.contents[localContentsOffset++] = (byte) (lineNumber >> 8); this.contents[localContentsOffset++] = (byte) lineNumber; numberOfEntries++; } // now we change the size of the line number attribute int lineNumberAttr_length = numberOfEntries * 4 + 2; this.contents[lineNumberTableOffset++] = (byte) (lineNumberAttr_length >> 24); this.contents[lineNumberTableOffset++] = (byte) (lineNumberAttr_length >> 16); this.contents[lineNumberTableOffset++] = (byte) (lineNumberAttr_length >> 8); this.contents[lineNumberTableOffset++] = (byte) lineNumberAttr_length; this.contents[lineNumberTableOffset++] = (byte) (numberOfEntries >> 8); this.contents[lineNumberTableOffset++] = (byte) numberOfEntries; attributeNumber++; } } // then we do the local variable attribute if ((this.produceAttributes & ClassFileConstants.ATTR_VARS) != 0) { int numberOfEntries = 0; int localVariableNameIndex = constantPool.literalIndex(AttributeNamesConstants.LocalVariableTableName); final boolean methodDeclarationIsStatic = codeStream.methodDeclaration.isStatic(); int maxOfEntries = 8 + 10 * (methodDeclarationIsStatic ? 0 : 1); for (int i = 0; i < codeStream.allLocalsCounter; i++) { maxOfEntries += 10 * codeStream.locals[i].initializationCount; } // reserve enough space if (localContentsOffset + maxOfEntries >= this.contents.length) { resizeContents(maxOfEntries); } this.contents[localContentsOffset++] = (byte) (localVariableNameIndex >> 8); this.contents[localContentsOffset++] = (byte) localVariableNameIndex; int localVariableTableOffset = localContentsOffset; // leave space for attribute_length and local_variable_table_length localContentsOffset += 6; int nameIndex; int descriptorIndex; SourceTypeBinding declaringClassBinding = null; if (!methodDeclarationIsStatic) { numberOfEntries++; this.contents[localContentsOffset++] = 0; // the startPC for this is always 0 this.contents[localContentsOffset++] = 0; this.contents[localContentsOffset++] = (byte) (code_length >> 8); this.contents[localContentsOffset++] = (byte) code_length; nameIndex = constantPool.literalIndex(ConstantPool.This); this.contents[localContentsOffset++] = (byte) (nameIndex >> 8); this.contents[localContentsOffset++] = (byte) nameIndex; declaringClassBinding = (SourceTypeBinding) codeStream.methodDeclaration.binding.declaringClass; descriptorIndex = constantPool.literalIndex( declaringClassBinding.signature()); this.contents[localContentsOffset++] = (byte) (descriptorIndex >> 8); this.contents[localContentsOffset++] = (byte) descriptorIndex; this.contents[localContentsOffset++] = 0;// the resolved position for this is always 0 this.contents[localContentsOffset++] = 0; } // used to remember the local variable with a generic type int genericLocalVariablesCounter = 0; LocalVariableBinding[] genericLocalVariables = null; int numberOfGenericEntries = 0; for (int i = 0, max = codeStream.allLocalsCounter; i < max; i++) { LocalVariableBinding localVariable = codeStream.locals[i]; final TypeBinding localVariableTypeBinding = localVariable.type; boolean isParameterizedType = localVariableTypeBinding.isParameterizedType() || localVariableTypeBinding.isTypeVariable(); if (localVariable.initializationCount != 0 && isParameterizedType) { if (genericLocalVariables == null) { // we cannot have more than max locals genericLocalVariables = new LocalVariableBinding[max]; } genericLocalVariables[genericLocalVariablesCounter++] = localVariable; } for (int j = 0; j < localVariable.initializationCount; j++) { int startPC = localVariable.initializationPCs[j << 1]; int endPC = localVariable.initializationPCs[(j << 1) + 1]; if (startPC != endPC) { // only entries for non zero length if (endPC == -1) { localVariable.declaringScope.problemReporter().abortDueToInternalError( Messages.bind(Messages.abort_invalidAttribute, new String(localVariable.name)), (ASTNode) localVariable.declaringScope.methodScope().referenceContext); } if (isParameterizedType) { numberOfGenericEntries++; } // now we can safely add the local entry numberOfEntries++; this.contents[localContentsOffset++] = (byte) (startPC >> 8); this.contents[localContentsOffset++] = (byte) startPC; int length = endPC - startPC; this.contents[localContentsOffset++] = (byte) (length >> 8); this.contents[localContentsOffset++] = (byte) length; nameIndex = constantPool.literalIndex(localVariable.name); this.contents[localContentsOffset++] = (byte) (nameIndex >> 8); this.contents[localContentsOffset++] = (byte) nameIndex; descriptorIndex = constantPool.literalIndex(localVariableTypeBinding.signature()); this.contents[localContentsOffset++] = (byte) (descriptorIndex >> 8); this.contents[localContentsOffset++] = (byte) descriptorIndex; int resolvedPosition = localVariable.resolvedPosition; this.contents[localContentsOffset++] = (byte) (resolvedPosition >> 8); this.contents[localContentsOffset++] = (byte) resolvedPosition; } } } int value = numberOfEntries * 10 + 2; this.contents[localVariableTableOffset++] = (byte) (value >> 24); this.contents[localVariableTableOffset++] = (byte) (value >> 16); this.contents[localVariableTableOffset++] = (byte) (value >> 8); this.contents[localVariableTableOffset++] = (byte) value; this.contents[localVariableTableOffset++] = (byte) (numberOfEntries >> 8); this.contents[localVariableTableOffset] = (byte) numberOfEntries; attributeNumber++; final boolean currentInstanceIsGeneric = !methodDeclarationIsStatic && declaringClassBinding != null && declaringClassBinding.typeVariables != Binding.NO_TYPE_VARIABLES; if (genericLocalVariablesCounter != 0 || currentInstanceIsGeneric) { // add the local variable type table attribute numberOfGenericEntries += (currentInstanceIsGeneric ? 1 : 0); maxOfEntries = 8 + numberOfGenericEntries * 10; // reserve enough space if (localContentsOffset + maxOfEntries >= this.contents.length) { resizeContents(maxOfEntries); } int localVariableTypeNameIndex = constantPool.literalIndex(AttributeNamesConstants.LocalVariableTypeTableName); this.contents[localContentsOffset++] = (byte) (localVariableTypeNameIndex >> 8); this.contents[localContentsOffset++] = (byte) localVariableTypeNameIndex; value = numberOfGenericEntries * 10 + 2; this.contents[localContentsOffset++] = (byte) (value >> 24); this.contents[localContentsOffset++] = (byte) (value >> 16); this.contents[localContentsOffset++] = (byte) (value >> 8); this.contents[localContentsOffset++] = (byte) value; this.contents[localContentsOffset++] = (byte) (numberOfGenericEntries >> 8); this.contents[localContentsOffset++] = (byte) numberOfGenericEntries; if (currentInstanceIsGeneric) { this.contents[localContentsOffset++] = 0; // the startPC for this is always 0 this.contents[localContentsOffset++] = 0; this.contents[localContentsOffset++] = (byte) (code_length >> 8); this.contents[localContentsOffset++] = (byte) code_length; nameIndex = constantPool.literalIndex(ConstantPool.This); this.contents[localContentsOffset++] = (byte) (nameIndex >> 8); this.contents[localContentsOffset++] = (byte) nameIndex; descriptorIndex = constantPool.literalIndex(declaringClassBinding.genericTypeSignature()); this.contents[localContentsOffset++] = (byte) (descriptorIndex >> 8); this.contents[localContentsOffset++] = (byte) descriptorIndex; this.contents[localContentsOffset++] = 0;// the resolved position for this is always 0 this.contents[localContentsOffset++] = 0; } for (int i = 0; i < genericLocalVariablesCounter; i++) { LocalVariableBinding localVariable = genericLocalVariables[i]; for (int j = 0; j < localVariable.initializationCount; j++) { int startPC = localVariable.initializationPCs[j << 1]; int endPC = localVariable.initializationPCs[(j << 1) + 1]; if (startPC != endPC) { // only entries for non zero length // now we can safely add the local entry this.contents[localContentsOffset++] = (byte) (startPC >> 8); this.contents[localContentsOffset++] = (byte) startPC; int length = endPC - startPC; this.contents[localContentsOffset++] = (byte) (length >> 8); this.contents[localContentsOffset++] = (byte) length; nameIndex = constantPool.literalIndex(localVariable.name); this.contents[localContentsOffset++] = (byte) (nameIndex >> 8); this.contents[localContentsOffset++] = (byte) nameIndex; descriptorIndex = constantPool.literalIndex(localVariable.type.genericTypeSignature()); this.contents[localContentsOffset++] = (byte) (descriptorIndex >> 8); this.contents[localContentsOffset++] = (byte) descriptorIndex; int resolvedPosition = localVariable.resolvedPosition; this.contents[localContentsOffset++] = (byte) (resolvedPosition >> 8); this.contents[localContentsOffset++] = (byte) resolvedPosition; } } } attributeNumber++; } } if ((this.produceAttributes & ClassFileConstants.ATTR_STACK_MAP) != 0) { int numberOfFrames = ((StackMapFrameCodeStream) codeStream).framesCounter; if (numberOfFrames >=2) { int stackMapTableAttributeOffset = localContentsOffset; // add the stack map table attribute if (localContentsOffset + 8 >= this.contents.length) { resizeContents(8); } int stackMapTableAttributeNameIndex = constantPool.literalIndex(AttributeNamesConstants.StackMapTableName); this.contents[localContentsOffset++] = (byte) (stackMapTableAttributeNameIndex >> 8); this.contents[localContentsOffset++] = (byte) stackMapTableAttributeNameIndex; int stackMapTableAttributeLengthOffset = localContentsOffset; // generate the attribute localContentsOffset += 4; if (localContentsOffset + 4 >= this.contents.length) { resizeContents(4); } numberOfFrames = 0; int numberOfFramesOffset = localContentsOffset; localContentsOffset += 2; if (localContentsOffset + 2 >= this.contents.length) { resizeContents(2); } // generate all frames StackMapFrame currentFrame = ((StackMapFrameCodeStream) codeStream).frames; while (currentFrame.prevFrame != null) { currentFrame = currentFrame.prevFrame; } currentFrame = currentFrame.nextFrame; while (currentFrame != null && currentFrame.pc < code_length) { // generate current frame // need to find differences between the current frame and the previous frame numberOfFrames++; int offsetDelta = currentFrame.getOffsetDelta(); switch (currentFrame.getFrameType()) { case StackMapFrame.APPEND_FRAME : if (localContentsOffset + 3 >= this.contents.length) { resizeContents(3); } int numberOfDifferentLocals = currentFrame.numberOfDifferentLocals(); this.contents[localContentsOffset++] = (byte) (251 + numberOfDifferentLocals); this.contents[localContentsOffset++] = (byte) (offsetDelta >> 8); this.contents[localContentsOffset++] = (byte) offsetDelta; int index = currentFrame.getIndexOfDifferentLocals(numberOfDifferentLocals); int numberOfLocals = currentFrame.getNumberOfLocals(); for (int i = index; i < currentFrame.locals.length && numberOfDifferentLocals > 0; i++) { if (localContentsOffset + 6 >= this.contents.length) { resizeContents(6); } VerificationTypeInfo info = currentFrame.locals[i]; if (info == null) { this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(info.id()) { case T_boolean : case T_byte : case T_char : case T_int : case T_short : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_INTEGER; break; case T_float : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_FLOAT; break; case T_long : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_LONG; i++; break; case T_double : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_DOUBLE; i++; break; case T_null : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_NULL; break; default: this.contents[localContentsOffset++] = (byte) info.tag; switch (info.tag) { case VerificationTypeInfo.ITEM_UNINITIALIZED : int offset = info.offset; this.contents[localContentsOffset++] = (byte) (offset >> 8); this.contents[localContentsOffset++] = (byte) offset; break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType; } } numberOfDifferentLocals--; } } break; case StackMapFrame.SAME_FRAME : if (localContentsOffset + 1 >= this.contents.length) { resizeContents(1); } this.contents[localContentsOffset++] = (byte) offsetDelta; break; case StackMapFrame.SAME_FRAME_EXTENDED : if (localContentsOffset + 3 >= this.contents.length) { resizeContents(3); } this.contents[localContentsOffset++] = (byte) 251; this.contents[localContentsOffset++] = (byte) (offsetDelta >> 8); this.contents[localContentsOffset++] = (byte) offsetDelta; break; case StackMapFrame.CHOP_FRAME : if (localContentsOffset + 3 >= this.contents.length) { resizeContents(3); } numberOfDifferentLocals = -currentFrame.numberOfDifferentLocals(); this.contents[localContentsOffset++] = (byte) (251 - numberOfDifferentLocals); this.contents[localContentsOffset++] = (byte) (offsetDelta >> 8); this.contents[localContentsOffset++] = (byte) offsetDelta; break; case StackMapFrame.SAME_LOCALS_1_STACK_ITEMS : if (localContentsOffset + 4 >= this.contents.length) { resizeContents(4); } this.contents[localContentsOffset++] = (byte) (offsetDelta + 64); if (currentFrame.stackItems[0] == null) { this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(currentFrame.stackItems[0].id()) { case T_boolean : case T_byte : case T_char : case T_int : case T_short : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_INTEGER; break; case T_float : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_FLOAT; break; case T_long : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_LONG; break; case T_double : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_DOUBLE; break; case T_null : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_NULL; break; default: VerificationTypeInfo info = currentFrame.stackItems[0]; byte tag = (byte) info.tag; this.contents[localContentsOffset++] = tag; switch (tag) { case VerificationTypeInfo.ITEM_UNINITIALIZED : int offset = info.offset; this.contents[localContentsOffset++] = (byte) (offset >> 8); this.contents[localContentsOffset++] = (byte) offset; break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType; } } } break; case StackMapFrame.SAME_LOCALS_1_STACK_ITEMS_EXTENDED : if (localContentsOffset + 6 >= this.contents.length) { resizeContents(6); } this.contents[localContentsOffset++] = (byte) 247; this.contents[localContentsOffset++] = (byte) (offsetDelta >> 8); this.contents[localContentsOffset++] = (byte) offsetDelta; if (currentFrame.stackItems[0] == null) { this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(currentFrame.stackItems[0].id()) { case T_boolean : case T_byte : case T_char : case T_int : case T_short : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_INTEGER; break; case T_float : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_FLOAT; break; case T_long : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_LONG; break; case T_double : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_DOUBLE; break; case T_null : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_NULL; break; default: VerificationTypeInfo info = currentFrame.stackItems[0]; byte tag = (byte) info.tag; this.contents[localContentsOffset++] = tag; switch (tag) { case VerificationTypeInfo.ITEM_UNINITIALIZED : int offset = info.offset; this.contents[localContentsOffset++] = (byte) (offset >> 8); this.contents[localContentsOffset++] = (byte) offset; break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType; } } } break; default : // FULL_FRAME if (localContentsOffset + 5 >= this.contents.length) { resizeContents(5); } this.contents[localContentsOffset++] = (byte) 255; this.contents[localContentsOffset++] = (byte) (offsetDelta >> 8); this.contents[localContentsOffset++] = (byte) offsetDelta; int numberOfLocalOffset = localContentsOffset; localContentsOffset += 2; // leave two spots for number of locals int numberOfLocalEntries = 0; numberOfLocals = currentFrame.getNumberOfLocals(); int numberOfEntries = 0; int localsLength = currentFrame.locals == null ? 0 : currentFrame.locals.length; for (int i = 0; i < localsLength && numberOfLocalEntries < numberOfLocals; i++) { if (localContentsOffset + 3 >= this.contents.length) { resizeContents(3); } VerificationTypeInfo info = currentFrame.locals[i]; if (info == null) { this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(info.id()) { case T_boolean : case T_byte : case T_char : case T_int : case T_short : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_INTEGER; break; case T_float : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_FLOAT; break; case T_long : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_LONG; i++; break; case T_double : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_DOUBLE; i++; break; case T_null : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_NULL; break; default: this.contents[localContentsOffset++] = (byte) info.tag; switch (info.tag) { case VerificationTypeInfo.ITEM_UNINITIALIZED : int offset = info.offset; this.contents[localContentsOffset++] = (byte) (offset >> 8); this.contents[localContentsOffset++] = (byte) offset; break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType; } } numberOfLocalEntries++; } numberOfEntries++; } if (localContentsOffset + 4 >= this.contents.length) { resizeContents(4); } this.contents[numberOfLocalOffset++] = (byte) (numberOfEntries >> 8); this.contents[numberOfLocalOffset] = (byte) numberOfEntries; int numberOfStackItems = currentFrame.numberOfStackItems; this.contents[localContentsOffset++] = (byte) (numberOfStackItems >> 8); this.contents[localContentsOffset++] = (byte) numberOfStackItems; for (int i = 0; i < numberOfStackItems; i++) { if (localContentsOffset + 3 >= this.contents.length) { resizeContents(3); } VerificationTypeInfo info = currentFrame.stackItems[i]; if (info == null) { this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(info.id()) { case T_boolean : case T_byte : case T_char : case T_int : case T_short : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_INTEGER; break; case T_float : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_FLOAT; break; case T_long : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_LONG; break; case T_double : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_DOUBLE; break; case T_null : this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_NULL; break; default: this.contents[localContentsOffset++] = (byte) info.tag; switch (info.tag) { case VerificationTypeInfo.ITEM_UNINITIALIZED : int offset = info.offset; this.contents[localContentsOffset++] = (byte) (offset >> 8); this.contents[localContentsOffset++] = (byte) offset; break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType; } } } } } currentFrame = currentFrame.nextFrame; } if (numberOfFrames != 0) { this.contents[numberOfFramesOffset++] = (byte) (numberOfFrames >> 8); this.contents[numberOfFramesOffset] = (byte) numberOfFrames; int attributeLength = localContentsOffset - stackMapTableAttributeLengthOffset - 4; this.contents[stackMapTableAttributeLengthOffset++] = (byte) (attributeLength >> 24); this.contents[stackMapTableAttributeLengthOffset++] = (byte) (attributeLength >> 16); this.contents[stackMapTableAttributeLengthOffset++] = (byte) (attributeLength >> 8); this.contents[stackMapTableAttributeLengthOffset] = (byte) attributeLength; attributeNumber++; } else { localContentsOffset = stackMapTableAttributeOffset; } } } this.contents[codeAttributeAttributeOffset++] = (byte) (attributeNumber >> 8); this.contents[codeAttributeAttributeOffset] = (byte) attributeNumber; // update the attribute length int codeAttributeLength = localContentsOffset - (codeAttributeOffset + 6); this.contents[codeAttributeOffset + 2] = (byte) (codeAttributeLength >> 24); this.contents[codeAttributeOffset + 3] = (byte) (codeAttributeLength >> 16); this.contents[codeAttributeOffset + 4] = (byte) (codeAttributeLength >> 8); this.contents[codeAttributeOffset + 5] = (byte) codeAttributeLength; contentsOffset = localContentsOffset; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/8f4037084194a0a8c6b51e4ac889744e5d6e68a8/ClassFile.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3912,
1085,
1499,
12,
474,
981,
1499,
2335,
13,
288,
202,
202,
759,
283,
11160,
326,
1191,
6323,
598,
326,
1160,
4358,
635,
326,
981,
1407,
202,
202,
2211,
18,
3980,
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,
482,
918,
3912,
1085,
1499,
12,
474,
981,
1499,
2335,
13,
288,
202,
202,
759,
283,
11160,
326,
1191,
6323,
598,
326,
1160,
4358,
635,
326,
981,
1407,
202,
202,
2211,
18,
3980,
273,... |
final String indentString = newChars.substring(lineStart, newOffset); | public void execute(final Editor editor, DataContext dataContext) { CodeInsightSettings settings = CodeInsightSettings.getInstance(); if (!settings.SMART_END_ACTION){ if (myOriginalHandler != null){ myOriginalHandler.execute(editor, dataContext); } return; } final Project project = (Project)DataManager.getInstance().getDataContext(editor.getComponent()).getData(DataConstants.PROJECT); if (project == null){ if (myOriginalHandler != null){ myOriginalHandler.execute(editor, dataContext); } return; } final Document document = editor.getDocument(); final PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(document); if (file == null){ if (myOriginalHandler != null){ myOriginalHandler.execute(editor, dataContext); } return; } final CaretModel caretModel = editor.getCaretModel(); final int caretOffset = caretModel.getOffset(); CharSequence chars = editor.getDocument().getCharsSequence(); int length = editor.getDocument().getTextLength(); if (caretOffset < length){ final int offset1 = CharArrayUtil.shiftBackward(chars, caretOffset - 1, " \t"); if (offset1 < 0 || chars.charAt(offset1) == '\n' || chars.charAt(offset1) == '\r'){ int offset2 = CharArrayUtil.shiftForward(chars, offset1 + 1, " \t"); boolean isEmptyLine = offset2 >= length || chars.charAt(offset2) == '\n' || chars.charAt(offset2) == '\r'; if (isEmptyLine){ PsiDocumentManager.getInstance(project).commitAllDocuments(); ApplicationManager.getApplication().runWriteAction(new Runnable() { public void run() { try { final PsiFile fileCopy = (PsiFile)file.copy(); CodeStyleManager styleManager = CodeStyleManager.getInstance(project); int newOffset = styleManager.adjustLineIndent(fileCopy, caretOffset); String newChars = fileCopy.getText(); int lineStart = offset1 + 1; int tabSize = editor.getSettings().getTabSize(project); int col = EditorUtil.calcColumnNumber(editor, newChars, lineStart, newOffset, tabSize); int line = caretModel.getLogicalPosition().line; caretModel.moveToLogicalPosition(new LogicalPosition(line, col)); if (caretModel.getLogicalPosition().column != col){ if (!document.isWritable() && !FileDocumentManager.fileForDocumentCheckedOutSuccessfully(document, project)) { return; } final String indentString = newChars.substring(lineStart, newOffset); editor.getSelectionModel().removeSelection(); EditorModificationUtil.insertStringAtCaret(editor, indentString); } editor.getScrollingModel().scrollToCaret(ScrollType.RELATIVE); editor.getSelectionModel().removeSelection(); } catch (IncorrectOperationException e) { LOG.error(e); } } }); return; } } } if (myOriginalHandler != null){ myOriginalHandler.execute(editor, dataContext); } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/3b85fe28c93f37278939c8d6fb7041de30874798/EndHandler.java/clean/source/com/intellij/codeInsight/editorActions/EndHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
12,
6385,
18451,
4858,
16,
1910,
1042,
501,
1042,
13,
288,
565,
3356,
5048,
750,
2628,
1947,
273,
3356,
5048,
750,
2628,
18,
588,
1442,
5621,
565,
309,
16051,
4272,
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,
1836,
12,
6385,
18451,
4858,
16,
1910,
1042,
501,
1042,
13,
288,
565,
3356,
5048,
750,
2628,
1947,
273,
3356,
5048,
750,
2628,
18,
588,
1442,
5621,
565,
309,
16051,
4272,
18,
... | |
SQLDelete = "DELETE FROM UP_SS_USER_PARM WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); | SQLDelete = "DELETE FROM UP_SS_USER_PARM WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); | public void removePortalUID(int uPortalUID) throws Exception { Connection con = RDBMServices.getConnection(); try { Statement stmt = con.createStatement(); if (RDBMServices.supportsTransactions) con.setAutoCommit(false); try { // START of Addition after bug declaration (bug id 1516) // Permissions delete // must be made before delete user in UP_USER ResultSet rs = stmt.executeQuery("SELECT USER_NAME FROM UP_USER WHERE USER_ID="+uPortalUID); String name = ""; if ( rs.next() ) name = rs.getString(1); rs.close(); rs = stmt.executeQuery("SELECT ENTITY_TYPE_ID FROM UP_ENTITY_TYPE WHERE ENTITY_TYPE_NAME = 'org.jasig.portal.security.IPerson'"); int type = -1; if ( rs.next() ) type = rs.getInt(1); rs.close(); String SQLDelete = "DELETE FROM UP_PERMISSION WHERE PRINCIPAL_KEY='"+name+"' AND PRINCIPAL_TYPE="+type; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); rs = stmt.executeQuery("SELECT M.GROUP_ID " + "FROM UP_GROUP_MEMBERSHIP M, UP_GROUP G, UP_ENTITY_TYPE E " + "WHERE M.GROUP_ID = G.GROUP_ID " + " AND G.ENTITY_TYPE_ID = E.ENTITY_TYPE_ID " + " AND E.ENTITY_TYPE_NAME = 'org.jasig.portal.security.IPerson'" + " AND M.MEMBER_KEY ='"+name+"' AND M.MEMBER_IS_GROUP = 'F'"); java.util.Vector groups = new java.util.Vector(); while ( rs.next() ) groups.add(rs.getString(1)); rs.close(); // Remove from local group // Delete from DeleteUser.java and place here // must be made before delete user in UP_USER java.sql.PreparedStatement ps = con.prepareStatement("DELETE FROM UP_GROUP_MEMBERSHIP WHERE MEMBER_KEY='"+name+"' AND GROUP_ID=?"); for ( int i = 0; i < groups.size(); i++ ) { String group = (String) groups.get(i); ps.setString(1,group); ps.executeUpdate(); } if ( ps != null ) ps.close(); // END of Addition after bug declaration (bug id 1516) SQLDelete = "DELETE FROM UP_USER WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_USER_LAYOUT WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_USER_PARAM WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_USER_PROFILE WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_USER_LAYOUT WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_SS_USER_ATTS WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_SS_USER_PARM WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_LAYOUT_PARAM WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_USER_UA_MAP WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_LAYOUT_STRUCT WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); // START of Addition after bug declaration (bug id 1516) SQLDelete = "DELETE FROM UP_USER_LOCALE WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_USER_PROFILE_MDATA WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_USER_PROFILE_LOCALE WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_USER_LAYOUT_AGGR WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_USER_LAYOUT_MDATA WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_LAYOUT_STRUCT_AGGR WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_LAYOUT_STRUCT_MDATA WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); SQLDelete = "DELETE FROM UP_LAYOUT_RESTRICTIONS WHERE USER_ID = " + uPortalUID; LogService.log(LogService.DEBUG, "RDBMUserIdentityStore::removePortalUID(): " + SQLDelete); stmt.executeUpdate(SQLDelete); // END of Addition after bug declaration (bug id 1516) if (RDBMServices.supportsTransactions) con.commit(); } finally { stmt.close(); } try { IPortletPreferencesStore portletPrefStore = PortletPreferencesStoreFactory.getPortletPreferencesStoreImpl(); portletPrefStore.deletePortletPreferencesByUser(uPortalUID); } catch (Exception e) { } } catch (SQLException se) { try { LogService.log(LogService.ERROR, "RDBMUserIdentityStore::removePortalUID(): " + se); if (RDBMServices.supportsTransactions) con.rollback(); } catch (SQLException e) { LogService.log(LogService.ERROR, "RDBMUserIdentityStore::removePortalUID(): " + e); } if (DEBUG>0) { System.err.println("SQLException: " + se.getMessage()); System.err.println("SQLState: " + se.getSQLState()); System.err.println("Message: " + se.getMessage()); System.err.println("Vendor: " + se.getErrorCode()); } throw se; } finally { RDBMServices.releaseConnection(con); } } | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/09dc8c80d161495463fc9d6c3c57215c4012fc94/RDBMUserIdentityStore.java/buggy/source/org/jasig/portal/RDBMUserIdentityStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
24395,
3060,
12,
474,
582,
24395,
3060,
13,
1216,
1185,
288,
565,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
565,
775,
288,
1377,
8056,
3480,
273,
356,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
24395,
3060,
12,
474,
582,
24395,
3060,
13,
1216,
1185,
288,
565,
4050,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
565,
775,
288,
1377,
8056,
3480,
273,
356,
1... |
InternalVersionHistoryImpl vh = (InternalVersionHistoryImpl) historyImpl.getInternalVersionHistory(); InternalVersion v = setVersionLabel(vh, version, label, move); | InternalVersionHistoryImpl vh = (InternalVersionHistoryImpl) historyImpl.getInternalVersionHistory(); v = setVersionLabel(vh, version, label, move); } | public synchronized Version setVersionLabel(VersionHistory history, QName version, QName label, boolean move) throws RepositoryException { AbstractVersionHistory historyImpl = (AbstractVersionHistory) history; eventSource = (SessionImpl) history.getSession(); InternalVersionHistoryImpl vh = (InternalVersionHistoryImpl) historyImpl.getInternalVersionHistory(); InternalVersion v = setVersionLabel(vh, version, label, move); if (v == null) { return null; } else { return (Version) eventSource.getNodeByUUID(v.getId()); } } | 49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/20a7aa8fef6331a191d4c06b3b2b2aa1d3511c1c/VersionManagerImpl.java/buggy/jackrabbit/src/main/java/org/apache/jackrabbit/core/version/VersionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
4049,
16770,
2224,
12,
1444,
5623,
4927,
16,
4766,
7734,
16723,
1177,
16,
16723,
1433,
16,
4766,
7734,
1250,
3635,
13,
5411,
1216,
13367,
288,
3639,
4115,
1444,
5623,
4927,
2828... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4049,
16770,
2224,
12,
1444,
5623,
4927,
16,
4766,
7734,
16723,
1177,
16,
16723,
1433,
16,
4766,
7734,
1250,
3635,
13,
5411,
1216,
13367,
288,
3639,
4115,
1444,
5623,
4927,
2828... |
Logger.minor(this, "Acknowledged packet (synced): "+realSeqNo); | Logger.minor(this, "Acknowledged packet: "+realSeqNo); | public void acknowledgedPacket(int realSeqNo) { AsyncMessageCallback[] callbacks; Logger.minor(this, "Acknowledged packet (synced): "+realSeqNo); try { removeAckRequest(realSeqNo); } catch (UpdatableSortedLinkedListKilledException e) { // Ignore, we are processing an incoming packet } Logger.minor(this, "Removed ack request"); callbacks = sentPacketsContents.getCallbacks(realSeqNo); sentPacketsContents.remove(realSeqNo); if(callbacks != null) { for(int i=0;i<callbacks.length;i++) callbacks[i].acknowledged(); Logger.minor(this, "Executed "+callbacks.length+" callbacks"); } } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/d764310ce0592a5fd06db73c2ccf0b083791a0b2/KeyTracker.java/clean/src/freenet/node/KeyTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23262,
2423,
6667,
12,
474,
2863,
6926,
2279,
13,
288,
3639,
9672,
1079,
2428,
8526,
6689,
31,
3639,
202,
3328,
18,
17364,
12,
2211,
16,
315,
11931,
10378,
2423,
4414,
30,
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,
377,
1071,
918,
23262,
2423,
6667,
12,
474,
2863,
6926,
2279,
13,
288,
3639,
9672,
1079,
2428,
8526,
6689,
31,
3639,
202,
3328,
18,
17364,
12,
2211,
16,
315,
11931,
10378,
2423,
4414,
30,
1377... |
myPrefetchingRelationshipKeyPaths = new PropertyListSet(); | myPrefetchingRelationshipKeyPaths = new TreeSet(); | public EOFetchSpecification(String _name) { myName = _name; myClass = "EOFetchSpecification"; mySortOrderings = new LinkedList(); myFetchSpecMap = new EOModelMap(); myPrefetchingRelationshipKeyPaths = new PropertyListSet(); } | 50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/8124a2eab3b65cb02a74dc08a8def0fb75ca9f7d/EOFetchSpecification.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOFetchSpecification.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6431,
1593,
8615,
12,
780,
389,
529,
13,
288,
565,
3399,
461,
273,
389,
529,
31,
565,
3399,
797,
273,
315,
12706,
1593,
8615,
14432,
565,
3399,
31460,
899,
273,
394,
10688,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
6431,
1593,
8615,
12,
780,
389,
529,
13,
288,
565,
3399,
461,
273,
389,
529,
31,
565,
3399,
797,
273,
315,
12706,
1593,
8615,
14432,
565,
3399,
31460,
899,
273,
394,
10688,
5621,
... |
public EntityBean fetchFreeInstance(ThreadContext callContext) throws IllegalAccessException, InvocationTargetException, InstantiationException{ | public EntityBean fetchFreeInstance( ThreadContext callContext ) throws IllegalAccessException, InvocationTargetException, InstantiationException { | public EntityBean fetchFreeInstance(ThreadContext callContext) throws IllegalAccessException, InvocationTargetException, InstantiationException{ org.openejb.core.DeploymentInfo deploymentInfo = callContext.getDeploymentInfo(); /* Obtain the stack of instances of this deployment that are in the method ready state. */ Stack methodReadyPool = (Stack)methodReadyPoolMap.get(deploymentInfo.getDeploymentID()); if ( methodReadyPool == null ) { // TODO:3: Localize this message throw new java.lang.RuntimeException("Invalid deployment id "+deploymentInfo.getDeploymentID()+" for this container"); } /* Get a method ready instance from the top of the stack. */ //DMB: This is funny, pop will always return null because we _never_ add // any instances to the stack. What is the point of this pool? EntityBean bean = (EntityBean)methodReadyPool.pop(); if ( bean == null ) { byte currentOperation = callContext.getCurrentOperation(); try { bean = (EntityBean)deploymentInfo.getBeanClass().newInstance(); /* setEntityContext executes in an unspecified transactional context. In this case we choose to allow it to have what every transaction context is current. Better then suspending it unnecessarily. */ callContext.setCurrentOperation(Operations.OP_SET_CONTEXT); Object[] params = new javax.ejb.EntityContext []{(javax.ejb.EntityContext)deploymentInfo.getEJBContext()}; //logger.debug(bean + ".setEntityContext("+params[0]+")"); this.SET_ENTITY_CONTEXT_METHOD.invoke( bean, params ); } finally { callContext.setCurrentOperation(currentOperation); } } else { // Here we need to reset all fields to their default values ( 0 for primitive types, null for pointers ) resetBeanFields(bean, deploymentInfo); } // move the bean instance to the tx method ready pool txReadyPoolMap.put(bean, methodReadyPool); return bean; } | 47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/573534e5a220c625cf2ee9c177d1c12d1949a023/CastorCMP11_EntityContainer.java/clean/openejb0/src/facilities/org/openejb/alt/containers/castor_cmp11/CastorCMP11_EntityContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3887,
3381,
2158,
9194,
1442,
12,
4884,
1042,
745,
1042,
262,
1216,
11900,
16,
15342,
16,
19248,
288,
3639,
2358,
18,
3190,
73,
10649,
18,
3644,
18,
6733,
966,
6314,
966,
273,
745,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3887,
3381,
2158,
9194,
1442,
12,
4884,
1042,
745,
1042,
262,
1216,
11900,
16,
15342,
16,
19248,
288,
3639,
2358,
18,
3190,
73,
10649,
18,
3644,
18,
6733,
966,
6314,
966,
273,
745,
... |
tmpGram.getMarkStyle() ); | tmpSeries.getMarkStyle() ); | public void actionPerformed(ActionEvent e) { debugManager.print( "\nDumping '" + thisName + "'...\n"); // grab the GramComp object GramComp tmpComp = gramManager.getGram(thisName); debugManager.print( " Number of Gram = " + tmpComp.count() + "\n" ); // grab the number of Gram objects in the gramComp // and loop round grabbing each Gram in turn and // printing interesting things about them for ( int i = 0; i < tmpComp.count(); i++ ) { // grab Gram object Gram tmpGram = tmpComp.get( i ); debugManager.print( " Gram [" + i + "]" ); debugManager.print( " Full Name = " + tmpGram.getFullName() ); debugManager.print( " Short Name = " + tmpGram.getShortName() ); debugManager.print( " Gram Type = " + tmpGram.getType() ); debugManager.print( " Has Errors? = " + tmpGram.haveYDataErrors() ); debugManager.print( " Draw Errors? = " + tmpGram.isDrawErrorBars() ); debugManager.print( " Data Points = " + tmpGram.size() ); debugManager.print( " Data Format = " + tmpGram.getDataFormat() ); debugManager.print( " Plot Style = " + tmpGram.getPlotStyle() ); debugManager.print( " Mark Style = " + tmpGram.getMarkStyle() ); debugManager.print( " Mark Size = " + tmpGram.getMarkSize() ); debugManager.print( "\n Data\n ----" ); double xData[] = tmpGram.getXData(); double yData[] = tmpGram.getYData(); double errors[] = tmpGram.getYDataErrors(); for ( int j = 0; j < xData.length; j++ ) { if ( errors != null ) { debugManager.print( " " + j + ": " + xData[j]+" "+yData[j]+" "+errors[j] ); } else { debugManager.print( " " + j + ": " + xData[j] + " " + yData[j] ); } } } } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/840f838a35baaf19be406b1889992fb4849bcd51/Frog.java/buggy/frog/src/main/uk/ac/starlink/frog/Frog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5375,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5397,
1198,
1318,
18,
1188,
12,
1548,
82,
11232,
1382,
2119,
397,
333,
461,
397,
2491,
2777,
64,
82,
8863,
4766,
3639,
368,
11086,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5375,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
5397,
1198,
1318,
18,
1188,
12,
1548,
82,
11232,
1382,
2119,
397,
333,
461,
397,
2491,
2777,
64,
82,
8863,
4766,
3639,
368,
11086,
326,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.