rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
jj_la1[44] = jj_gen; | jj_la1[46] = jj_gen; | final public void FormalParameter() throws ParseException { /*@bgen(jjtree) FormalParameter */ ASTFormalParameter jjtn000 = new ASTFormalParameter(this, JJTFORMALPARAMETER); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { label_16: while (true) { switch (jj_nt.kind) { case FINAL: case AT: ; break; default: jj_la1[43] = jj_gen; break label_16; } switch (jj_nt.kind) { case FINAL: jj_consume_token(FINAL); jjtn000.setFinal(); break; case AT: Annotation(); break; default: jj_la1[44] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } Type(); switch (jj_nt.kind) { case ELLIPSIS: jj_consume_token(ELLIPSIS); checkForBadVariableArgumentsUsage(); break; default: jj_la1[45] = jj_gen; ; } VariableDeclaratorId(); } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
478,
1687,
1662,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
478,
1687,
1662,
1195,
225,
9183,
13985,
10684,
5088,
3784,
273,
394,
9183,
13985,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
478,
1687,
1662,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
478,
1687,
1662,
1195,
225,
9183,
13985,
10684,
5088,
3784,
273,
394,
9183,
13985,
12,
... |
if(failonerror) | if(failonerror) { | protected void removeDir(File d) { String[] list = d.list(); if (list == null) list = new String[0]; for (int i = 0; i < list.length; i++) { String s = list[i]; File f = new File(d, s); if (f.isDirectory()) { removeDir(f); } else { log("Deleting " + f.getAbsolutePath(), verbosity); if (!f.delete()) { String message="Unable to delete file " + f.getAbsolutePath(); if(failonerror) throw new BuildException(message); else log(message, quiet ? Project.MSG_VERBOSE : Project.MSG_WARN); } } } log("Deleting directory " + d.getAbsolutePath(), verbosity); if (!d.delete()) { String message="Unable to delete directory " + dir.getAbsolutePath(); if(failonerror) throw new BuildException(message); else log(message, quiet ? Project.MSG_VERBOSE : Project.MSG_WARN); } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/e3b6d1fe768d87352d3d0348638911045fc4668e/Delete.java/buggy/src/main/org/apache/tools/ant/taskdefs/Delete.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1206,
1621,
12,
812,
302,
13,
288,
3639,
514,
8526,
666,
273,
302,
18,
1098,
5621,
3639,
309,
261,
1098,
422,
446,
13,
666,
273,
394,
514,
63,
20,
15533,
3639,
364,
261,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
1621,
12,
812,
302,
13,
288,
3639,
514,
8526,
666,
273,
302,
18,
1098,
5621,
3639,
309,
261,
1098,
422,
446,
13,
666,
273,
394,
514,
63,
20,
15533,
3639,
364,
261,
47... |
customer, "ian@darwinsys.com", "OpenBSD", messageBody); | customer, "ian@darwinsys.com", subject, messageBody); | public void sendMails() { Iterator it = custList.iterator(); while (it.hasNext()) { String customer = (String)it.next(); try { Mailer.send("mailhost", customer, "ian@darwinsys.com", "OpenBSD", messageBody); System.out.println(customer + " HANDOFF OK"); } catch (MessagingException e) { System.out.println(customer + " barfed: " + e.toString()); } } } | 9469 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9469/235186a078ce66d9108bc369cd038431ef020387/BatchMailer.java/clean/src/main/java/email/BatchMailer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1366,
6759,
87,
1435,
288,
202,
202,
3198,
518,
273,
276,
641,
682,
18,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
6666,
273,
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,
225,
202,
482,
918,
1366,
6759,
87,
1435,
288,
202,
202,
3198,
518,
273,
276,
641,
682,
18,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
780,
6666,
273,
261,... |
{ Integer sqlType = (Integer)sqlTypeCache.get(new Integer(oid)); | { Integer sqlType = (Integer)sqlTypeCache.get(new Integer(oid)); | public int getSQLType(int oid) throws SQLException { Integer sqlType = (Integer)sqlTypeCache.get(new Integer(oid)); // it's not in the cache, so perform a query, and add the result to the cache if (sqlType == null) { ResultSet result = (org.postgresql.ResultSet)ExecSQL("select typname from pg_type where oid = " + oid); if (result.getColumnCount() != 1 || result.getTupleCount() != 1) throw new PSQLException("postgresql.unexpected"); result.next(); String pgType = result.getString(1); Integer iOid = new Integer(oid); sqlType = new Integer(getSQLType(result.getString(1))); sqlTypeCache.put(iOid, sqlType); pgTypeCache.put(iOid, pgType); result.close(); } return sqlType.intValue(); } | 47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/e25c93c7eb4a9a1a50b771cc33448b9d3519f403/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
21708,
559,
12,
474,
7764,
13,
1216,
6483,
202,
95,
202,
202,
4522,
1847,
559,
273,
261,
4522,
13,
4669,
559,
1649,
18,
588,
12,
2704,
2144,
12,
839,
10019,
202,
202,
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,
225,
202,
482,
509,
21708,
559,
12,
474,
7764,
13,
1216,
6483,
202,
95,
202,
202,
4522,
1847,
559,
273,
261,
4522,
13,
4669,
559,
1649,
18,
588,
12,
2704,
2144,
12,
839,
10019,
202,
202,
7... |
results.append(" checked=\"true\""); | results.append(" checked=\"checked\""); | public int doStartTag() throws JspException { // Create an appropriate "input" element based on our parameters StringBuffer results = new StringBuffer("<input type=\"checkbox\""); results.append(" name=\""); results.append(this.property); results.append("\""); if (accesskey != null) { results.append(" accesskey=\""); results.append(accesskey); results.append("\""); } if (tabindex != null) { results.append(" tabindex=\""); results.append(tabindex); results.append("\""); } results.append(" value=\""); if (value == null) results.append("on"); else results.append(value); results.append("\""); Object result = RequestUtils.lookup(pageContext, name, property, null); if (result == null) result = ""; if (!(result instanceof String)) result = result.toString(); String checked = (String) result; if (checked.equalsIgnoreCase("true") || checked.equalsIgnoreCase("yes") || checked.equalsIgnoreCase("on")) results.append(" checked=\"true\""); results.append(prepareEventHandlers()); results.append(prepareStyles()); results.append(">"); // Print this field to our output writer ResponseUtils.write(pageContext, results.toString()); // Continue processing this page this.text = null; return (EVAL_BODY_TAG); } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/a7f8f9b496877b9652c91fba0d452f3c56b07358/CheckboxTag.java/clean/src/share/org/apache/struts/taglib/html/CheckboxTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
202,
759,
1788,
392,
5505,
315,
2630,
6,
930,
2511,
603,
3134,
1472,
202,
780,
1892,
1686,
273,
394,
6674,
2932,
32,
2630,
618,
5189,
12017,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
202,
759,
1788,
392,
5505,
315,
2630,
6,
930,
2511,
603,
3134,
1472,
202,
780,
1892,
1686,
273,
394,
6674,
2932,
32,
2630,
618,
5189,
12017,... |
DocumentSet out_docs = getExpression(0).preselect(in_docs); | DocumentSet out_docs = getExpression(0).preselect(in_docs, context); | public DocumentSet preselect(DocumentSet in_docs) throws XPathException { if (getLength() == 0) return in_docs; DocumentSet out_docs = getExpression(0).preselect(in_docs); for (int i = 1; i < getLength(); i++) out_docs = out_docs.intersection(getExpression(i).preselect(out_docs)); return out_docs; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bfcf33dba9c98234a0edaa282c8909b27b6a6ac4/OpAnd.java/buggy/src/org/exist/xpath/OpAnd.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4319,
694,
4075,
13759,
12,
2519,
694,
316,
67,
8532,
13,
1216,
10172,
503,
288,
202,
202,
430,
261,
588,
1782,
1435,
422,
374,
13,
1082,
202,
2463,
316,
67,
8532,
31,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4319,
694,
4075,
13759,
12,
2519,
694,
316,
67,
8532,
13,
1216,
10172,
503,
288,
202,
202,
430,
261,
588,
1782,
1435,
422,
374,
13,
1082,
202,
2463,
316,
67,
8532,
31,
202,
... |
super("Group by Packages", null, IconLoader.getIcon("/general/smallConfigurableVcs.png")); | super("Group by Packages", null, Icons.GROUP_BY_PACKAGES); | public MyGroupByPackagesAction() { super("Group by Packages", null, IconLoader.getIcon("/general/smallConfigurableVcs.png")); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/1993fea826590feeda4a427f6fa53a2d386fd979/UpdateInfoTree.java/buggy/source/com/intellij/openapi/vcs/update/UpdateInfoTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8005,
26257,
11425,
1803,
1435,
288,
1377,
2240,
2932,
1114,
635,
7930,
1023,
3113,
446,
16,
467,
8559,
18,
8468,
67,
6486,
67,
19077,
55,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
8005,
26257,
11425,
1803,
1435,
288,
1377,
2240,
2932,
1114,
635,
7930,
1023,
3113,
446,
16,
467,
8559,
18,
8468,
67,
6486,
67,
19077,
55,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,... |
System.out.println("We recommend you move your old <filename>-<portnumber> files to <filename>, otherwise the node won't use them!"); | public static void main(String[] args) throws IOException { if(args.length>1) { System.out.println("Usage: $ java freenet.node.Node <configFile>"); System.out.println("We recommend you move your old <filename>-<portnumber> files to <filename>, otherwise the node won't use them!"); return; } File configFilename; if(args.length == 0) { System.out.println("Using default config filename freenet.ini"); configFilename = new File("freenet.ini"); } else configFilename = new File(args[0]); FilePersistentConfig cfg = new FilePersistentConfig(configFilename); // First, set up logging. It is global, and may be shared between several nodes. SubConfig loggingConfig = new SubConfig("logger", cfg); try { logConfigHandler = new LoggingConfigHandler(loggingConfig); } catch (InvalidConfigValueException e) { System.err.println("Error: could not set up logging: "+e.getMessage()); e.printStackTrace(); return; } // Setup RNG RandomSource random = new Yarrow(); DiffieHellman.init(random); Thread t = new Thread(new MemoryChecker(), "Memory checker"); t.setPriority(Thread.MAX_PRIORITY); t.start(); /* SimpleToadletServer server = new SimpleToadletServer(port+2000); FproxyToadlet fproxy = new FproxyToadlet(n.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); PproxyToadlet pproxy = new PproxyToadlet(n.makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS), n.pluginManager); server.register(fproxy, "/", false); server.register(pproxy, "/plugins/", true); System.out.println("Starting fproxy on port "+(port+2000)); new FCPServer(port+3000, n); System.out.println("Starting FCP server on port "+(port+3000)); SNMPAgent.setSNMPPort(port+4000); System.out.println("Starting SNMP server on port "+(port+4000)); SNMPStarter.initialize(); //server.register(fproxy, "/SSK@", false); //server.register(fproxy, "/KSK@", false); */ Node node; try { node = new Node(cfg, random); node.start(false); } catch (NodeInitException e) { System.err.println("Failed to load node: "+e.getMessage()); e.printStackTrace(); System.exit(e.exitCode); } } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/dcaa5bd222ef3a65ace770cee5fb953ee6d36f8d/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
377,
202,
430,
12,
1968,
18,
2469,
34,
21,
13,
288,
377,
202,
202,
3163,
18,
659,
18,
8222,
2932,
5357,
30,
271,
2252,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
377,
202,
430,
12,
1968,
18,
2469,
34,
21,
13,
288,
377,
202,
202,
3163,
18,
659,
18,
8222,
2932,
5357,
30,
271,
2252,
... | |
super( value, name ); | super( value, name, literal ); | private DateFormatType( int value, String name ) { super( value, name ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/DateFormatType.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/DateFormatType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
18371,
559,
12,
509,
460,
16,
514,
508,
262,
202,
95,
202,
202,
9565,
12,
460,
16,
508,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
18371,
559,
12,
509,
460,
16,
514,
508,
262,
202,
95,
202,
202,
9565,
12,
460,
16,
508,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
aboutItemActionPerformed(evt); | mediumPriorityButtonActionPerformed(evt); | public void actionPerformed(java.awt.event.ActionEvent evt) { aboutItemActionPerformed(evt); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/b7b4e4fb9f856b650413cac6c569db73fe6addca/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
16212,
8183,
3616,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
16212,
8183,
3616,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
loc = tickRect.y; | loc = tickRect.y + 0.5; | public void paintTicks(Graphics g) { int max = slider.getMaximum(); int min = slider.getMinimum(); int majorSpace = slider.getMajorTickSpacing(); int minorSpace = slider.getMinorTickSpacing(); if (majorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x; double increment = (max == min) ? 0 : majorSpace * (double) tickRect.width / (max - min); if (drawInverted()) { loc += tickRect.width; increment *= -1; } for (int i = min; i <= max; i += majorSpace) { paintMajorTickForHorizSlider(g, tickRect, (int) loc); loc += increment; } } else { double loc = tickRect.height + tickRect.y; double increment = (max == min) ? 0 : -majorSpace * (double) tickRect.height / (max - min); if (drawInverted()) { loc = tickRect.y; increment *= -1; } for (int i = min; i <= max; i += majorSpace) { paintMajorTickForVertSlider(g, tickRect, (int) loc); loc += increment; } } } if (minorSpace > 0) { if (slider.getOrientation() == JSlider.HORIZONTAL) { double loc = tickRect.x; double increment = (max == min) ? 0 : minorSpace * (double) tickRect.width / (max - min); if (drawInverted()) { loc += tickRect.width; increment *= -1; } for (int i = min; i <= max; i += minorSpace) { paintMinorTickForHorizSlider(g, tickRect, (int) loc); loc += increment; } } else { double loc = tickRect.height + tickRect.y; double increment = (max == min) ? 0 : -minorSpace * (double) tickRect.height / (max - min); if (drawInverted()) { loc = tickRect.y; increment *= -1; } for (int i = min; i <= max; i += minorSpace) { paintMinorTickForVertSlider(g, tickRect, (int) loc); loc += increment; } } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c4eda97e6e5feb8e7650d83d5066d85580f1249c/BasicSliderUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSliderUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
16610,
12,
17558,
314,
13,
225,
288,
565,
509,
943,
273,
18442,
18,
588,
13528,
5621,
565,
509,
1131,
273,
18442,
18,
588,
13042,
5621,
565,
509,
7888,
3819,
273,
18442,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12574,
16610,
12,
17558,
314,
13,
225,
288,
565,
509,
943,
273,
18442,
18,
588,
13528,
5621,
565,
509,
1131,
273,
18442,
18,
588,
13042,
5621,
565,
509,
7888,
3819,
273,
18442,... |
setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } | setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } | public void run() { setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } | 56962 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56962/816096641504ba96db7bef449fe01a4b67ff0d37/OutputPinName2EditPart.java/clean/plugins/org.eclipse.uml2.diagram.activity/src/org/eclipse/uml2/diagram/activity/edit/parts/OutputPinName2EditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
17322,
202,
482,
918,
1086,
1435,
288,
6862,
25083,
202,
542,
1253,
12,
4288,
18,
26810,
4666,
780,
12,
2704,
8091,
4216,
12,
2956,
3631,
261,
780,
13,
460,
10019,
6862,
6862,
202,
97,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17322,
202,
482,
918,
1086,
1435,
288,
6862,
25083,
202,
542,
1253,
12,
4288,
18,
26810,
4666,
780,
12,
2704,
8091,
4216,
12,
2956,
3631,
261,
780,
13,
460,
10019,
6862,
6862,
202,
97,
2,
-1... |
new MSCursorResultSet(this, sql, spName, params, resultSetType, resultSetConcurrency); | new MSCursorResultSet(this, sql, spName, params, resultSetType, resultSetConcurrency); | protected ResultSet executeSQLQuery(String sql, String spName, ParamInfo[] params, boolean readAhead) throws SQLException { closeCurrentResultSet(); updateCount = -1; genKeyResultSet = null; // // Try to open a cursor result set if required // if (resultSetType != ResultSet.TYPE_FORWARD_ONLY || resultSetConcurrency != ResultSet.CONCUR_READ_ONLY) { try { if (connection.getServerType() == Driver.SQLSERVER) { JtdsResultSet rs = new MSCursorResultSet(this, sql, spName, params, resultSetType, resultSetConcurrency); currentResult = rs; return rs; } else { // Sybase cursor logic goes here (one day). } } catch (SQLException e) { if (connection == null || connection.isClosed()) { // Serious error so return exception to caller throw e; } } } // // Could not open a Cursor so try a direct select // tds.executeSQL(sql, spName, params, false, queryTimeout, maxRows); while (!tds.getMoreResults() && !tds.isEndOfResponse()); if (tds.isResultSet()) { JtdsResultSet rs = new JtdsResultSet(this, ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY, tds.getColumns(), readAhead); currentResult = rs; } else { throw new SQLException( Messages.get("error.statement.noresult"), "24000"); } return currentResult; } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/f18464865cbac496cd34ae72689b9db6c38ac640/JtdsStatement.java/clean/src/main/net/sourceforge/jtds/jdbc/JtdsStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
10842,
1836,
3997,
1138,
12,
780,
1847,
16,
4766,
3639,
514,
1694,
461,
16,
4766,
3639,
3014,
966,
8526,
859,
16,
4766,
3639,
1250,
855,
24250,
13,
3639,
1216,
6483,
288,
3639,
1746... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10842,
1836,
3997,
1138,
12,
780,
1847,
16,
4766,
3639,
514,
1694,
461,
16,
4766,
3639,
3014,
966,
8526,
859,
16,
4766,
3639,
1250,
855,
24250,
13,
3639,
1216,
6483,
288,
3639,
1746... |
((ExtendFileSelector)dynselector).setParameters(paramArray); | ((ExtendFileSelector) dynselector).setParameters(paramArray); | public boolean isSelected(File basedir, String filename, File file) throws BuildException { validate(); if (paramVec.size() > 0 && dynselector instanceof ExtendFileSelector) { Parameter[] paramArray = new Parameter[paramVec.size()]; paramVec.copyInto(paramArray); // We know that dynselector must be non-null if no error message ((ExtendFileSelector)dynselector).setParameters(paramArray); } return dynselector.isSelected(basedir,filename,file); } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/f83f5c68c975f31a384cc24e94be4e5ebfa2da4d/ExtendSelector.java/clean/src/main/org/apache/tools/ant/types/selectors/ExtendSelector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
20956,
12,
812,
15573,
16,
514,
1544,
16,
1387,
585,
13,
5411,
1216,
18463,
288,
3639,
1954,
5621,
3639,
309,
261,
891,
12991,
18,
1467,
1435,
405,
374,
597,
19417,
9663,
1276... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
20956,
12,
812,
15573,
16,
514,
1544,
16,
1387,
585,
13,
5411,
1216,
18463,
288,
3639,
1954,
5621,
3639,
309,
261,
891,
12991,
18,
1467,
1435,
405,
374,
597,
19417,
9663,
1276... |
if (path.segmentCount() == 1 && !binIncl.contains(libraryName)) | if (path.segmentCount() == 1 && !binIncl.contains(libraryName)) | protected void addAllJarsToBinIncludes(IBuildEntry binIncl, IProject project, IBuildModel model) { try { IResource[] members = project.members(); for (int i = 0; i < members.length; i++) { if (!(members[i] instanceof IFolder) && members[i].getFileExtension().equals("jar")) { //$NON-NLS-1$ binIncl.addToken(members[i].getName()); } } IBuildEntry[] libraries = BuildUtil.getBuildLibraries(model .getBuild().getBuildEntries()); if (libraries.length != 0) { for (int j = 0; j < libraries.length; j++) { String libraryName = libraries[j].getName().substring(7); IPath path = project.getFile(libraryName).getProjectRelativePath(); if (path.segmentCount() == 1 && !binIncl.contains(libraryName)) binIncl.addToken(libraryName); } } binIncl.removeToken("*.jar"); //$NON-NLS-1$ } catch (CoreException e) { PDEPlugin.logException(e); } } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/8ef0d6ed33a0ada7aa654f23bd5c2b63fd6d7fd6/RuntimeInfoSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/RuntimeInfoSection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5428,
46,
5913,
774,
9913,
16815,
12,
45,
3116,
1622,
4158,
382,
830,
16,
1082,
202,
45,
4109,
1984,
16,
467,
3116,
1488,
938,
13,
288,
202,
202,
698,
288,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5428,
46,
5913,
774,
9913,
16815,
12,
45,
3116,
1622,
4158,
382,
830,
16,
1082,
202,
45,
4109,
1984,
16,
467,
3116,
1488,
938,
13,
288,
202,
202,
698,
288,
1082,
202,
... |
"mapred.child.heap.size instead. Meantime, interpolated " + "child.heap.size into child.java.opt: " + javaOpts); | "mapred.child.java.opt instead. Meantime, mapred.child.heap.size " + "is interpolated into mapred.child.java.opt: " + javaOpts); | private String handleDeprecatedHeapSize(String javaOpts, final String heapSize) { if (heapSize == null || heapSize.length() <= 0) { return javaOpts; } final String MX = "-Xmx"; int index = javaOpts.indexOf(MX); if (index < 0) { javaOpts = javaOpts + " " + MX + heapSize; } else { int end = javaOpts.indexOf(" ", index + MX.length()); javaOpts = javaOpts.substring(0, index + MX.length()) + heapSize + ((end < 0)? "": javaOpts.substring(end)); } LOG.warning("mapred.child.heap.size is deprecated. Use " + "mapred.child.heap.size instead. Meantime, interpolated " + "child.heap.size into child.java.opt: " + javaOpts); return javaOpts; } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/6b2aeb579b1af69afcbca129775ca37668003182/TaskRunner.java/buggy/src/java/org/apache/hadoop/mapred/TaskRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
514,
1640,
13534,
15648,
1225,
12,
780,
2252,
5476,
16,
1850,
727,
514,
10500,
1225,
13,
288,
565,
309,
261,
25506,
1225,
422,
446,
747,
10500,
1225,
18,
2469,
1435,
1648,
374,
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,
3238,
514,
1640,
13534,
15648,
1225,
12,
780,
2252,
5476,
16,
1850,
727,
514,
10500,
1225,
13,
288,
565,
309,
261,
25506,
1225,
422,
446,
747,
10500,
1225,
18,
2469,
1435,
1648,
374,
13,
... |
SearchFor searchFor = getSearchForFromNode(node); ICSearchPattern pattern = SearchEngine.createSearchPattern( selNode.selText,searchFor,ICSearchConstants.DECLARATIONS,true); try { searchEngine.search(CUIPlugin.getWorkspace(), pattern, scope, resultCollector, true); } catch (InterruptedException e) { } elementsFound.addAll(resultCollector.getSearchResults()); | public void run(IProgressMonitor monitor) { BasicSearchResultCollector resultCollector = new BasicSearchResultCollector(monitor); IWorkingCopyManager fManager = CUIPlugin.getDefault().getWorkingCopyManager(); ITranslationUnit unit = fManager.getWorkingCopy(fEditor.getEditorInput()); //TODO: Change to Project Scope ICElement[] projectScopeElement = new ICElement[1]; projectScopeElement[0] = unit.getCProject();//(ICElement)currentScope.getCProject(); ICSearchScope scope = SearchEngine.createCSearchScope(projectScopeElement, true); IFile resourceFile = fEditor.getInputFile(); IParser parser = setupParser(resourceFile); IASTNode node = null; try{ int selectionStart = selNode.selStart; int selectionEnd = selNode.selEnd; node = parser.parse(selectionStart,selectionEnd); } catch (ParseError er){} catch ( VirtualMachineError vmErr){ if (vmErr instanceof OutOfMemoryError){ org.eclipse.cdt.internal.core.model.Util.log(null, "Open Declarations Out Of Memory error: " + vmErr.getMessage() + " on File: " + resourceFile.getName(), ICLogConstants.CDT); //$NON-NLS-1$ //$NON-NLS-2$ } } catch (Exception ex){} finally{ if (node == null){ return; } SearchFor searchFor = getSearchForFromNode(node); ICSearchPattern pattern = SearchEngine.createSearchPattern( selNode.selText,searchFor,ICSearchConstants.DECLARATIONS,true); try { searchEngine.search(CUIPlugin.getWorkspace(), pattern, scope, resultCollector, true); } catch (InterruptedException e) { } elementsFound.addAll(resultCollector.getSearchResults()); } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/7a2c6de5fb3f720d4ccf6d80c100a157056f2b77/OpenDeclarationsAction.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/actions/OpenDeclarationsAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
8252,
24916,
7134,
225,
563,
7134,
273,
225,
394,
7651,
24916,
7134,
12,
10259,
1769,
1082,
3196,
202,
45,
14836,
2951,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
8252,
24916,
7134,
225,
563,
7134,
273,
225,
394,
7651,
24916,
7134,
12,
10259,
1769,
1082,
3196,
202,
45,
14836,
2951,... | |
TestTextureState.class.getClassLoader().getResource("jmetest/data/images/Monkey.jpg"), | TestTextureState.class.getClassLoader().getResource("jmetest/data/model/marble.bmp"), | protected void initGame() { Vector3f[] verts = new Vector3f[3]; ColorRGBA[] color = new ColorRGBA[3]; Vector2f[] tex = new Vector2f[3]; verts[0] = new Vector3f(); verts[0].x = -50; verts[0].y = 0; verts[0].z = 0; verts[1] = new Vector3f(); verts[1].x = -50; verts[1].y = 25; verts[1].z = 25; verts[2] = new Vector3f(); verts[2].x = -50; verts[2].y = 25; verts[2].z = 0; tex[0] = new Vector2f(); tex[0].x = 1; tex[0].y = 0; tex[1] = new Vector2f(); tex[1].x = 1; tex[1].y = 1; tex[2] = new Vector2f(); tex[2].x = 0; tex[2].y = 1; color[0] = new ColorRGBA(); color[0].r = 1; color[0].g = 0; color[0].b = 0; color[0].a = 1; color[1] = new ColorRGBA(); color[1].r = 0; color[1].g = 1; color[1].b = 0; color[1].a = 1; color[2] = new ColorRGBA(); color[2].r = 0; color[2].g = 0; color[2].b = 1; color[2].a = 1; int[] indices = { 0, 1, 2 }; t = new TriMesh("Triangle", verts, null, color, tex, indices); t.setModelBound(new BoundingSphere()); t.updateModelBound(); Vector3f[] verts2 = new Vector3f[3]; ColorRGBA[] color2 = new ColorRGBA[3]; verts2[0] = new Vector3f(); verts2[0].x = -40; verts2[0].y = 10; verts2[0].z = 0; verts2[1] = new Vector3f(); verts2[1].x = -40; verts2[1].y = 35; verts2[1].z = 15; verts2[2] = new Vector3f(); verts2[2].x = -10; verts2[2].y = 35; verts2[2].z = -10; color2[0] = new ColorRGBA(); color2[0].r = 1; color2[0].g = 0; color2[0].b = 0; color2[0].a = 1; color2[1] = new ColorRGBA(); color2[1].r = 0; color2[1].g = 1; color2[1].b = 0; color2[1].a = 1; color2[2] = new ColorRGBA(); color2[2].r = 0; color2[2].g = 0; color2[2].b = 1; color2[2].a = 1; int[] indices2 = { 0, 1, 2 }; t2 = new TriMesh("Triangle 2", verts2, null, color2, tex, indices2); t2.setModelBound(new BoundingSphere()); t2.updateModelBound(); System.out.println(t.getModelBound()); cam.update(); scene = new Node("Scene Node"); scene.attachChild(t); scene.attachChild(t2); scene.setLocalTranslation(new Vector3f(0, -25, 0)); TextureState ts = display.getRenderer().getTextureState(); ts.setEnabled(true); ts.setTexture( TextureManager.loadTexture( TestTextureState.class.getClassLoader().getResource("jmetest/data/images/Monkey.jpg"), Texture.MM_LINEAR, Texture.FM_LINEAR, true)); t2.setRenderState(ts); cam.update(); scene.updateGeometricState(0.0f, true); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/d34ad38a04f226f79e9314b91900031570c9cc0a/TestTextureState.java/buggy/src/jmetest/renderer/state/TestTextureState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
12496,
1435,
288,
3639,
5589,
23,
74,
8526,
19853,
273,
394,
5589,
23,
74,
63,
23,
15533,
3639,
5563,
23263,
8526,
2036,
273,
394,
5563,
23263,
63,
23,
15533,
3639,
5589,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
12496,
1435,
288,
3639,
5589,
23,
74,
8526,
19853,
273,
394,
5589,
23,
74,
63,
23,
15533,
3639,
5563,
23263,
8526,
2036,
273,
394,
5563,
23263,
63,
23,
15533,
3639,
5589,... |
new NoViableAltException("910:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 61, 0, input); | new NoViableAltException("920:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 61, 0, input); | public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:914:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt61=11; switch ( input.LA(1) ) { case ID: alt61=1; break; case 17: alt61=2; break; case 57: alt61=3; break; case 28: alt61=4; break; case 26: alt61=5; break; case 33: alt61=6; break; case 34: alt61=7; break; case 29: alt61=8; break; case 31: alt61=9; break; case 27: alt61=10; break; case STRING: alt61=11; break; default: NoViableAltException nvae = new NoViableAltException("910:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 61, 0, input); throw nvae; } switch (alt61) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:914:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2643); word=id.getText(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:915:17: 'import' { match(input,17,FOLLOW_17_in_word2655); word="import"; } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:916:17: 'use' { match(input,57,FOLLOW_57_in_word2664); word="use"; } break; case 4 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:917:17: 'rule' { match(input,28,FOLLOW_28_in_word2676); word="rule"; } break; case 5 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:918:17: 'query' { match(input,26,FOLLOW_26_in_word2687); word="query"; } break; case 6 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:919:17: 'salience' { match(input,33,FOLLOW_33_in_word2697); word="salience"; } break; case 7 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:920:17: 'no-loop' { match(input,34,FOLLOW_34_in_word2705); word="no-loop"; } break; case 8 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:921:17: 'when' { match(input,29,FOLLOW_29_in_word2713); word="when"; } break; case 9 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:922:17: 'then' { match(input,31,FOLLOW_31_in_word2724); word="then"; } break; case 10 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:923:17: 'end' { match(input,27,FOLLOW_27_in_word2735); word="end"; } break; case 11 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:924:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word2749); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/ca87e40b5754cd366785b207f8cd109258275f53/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
... |
assert Debug.log("java mirror", Debug.show(symbol) + " -> " + mirror); | assert Debug.log("java mirror: ", symbol, " -> ", mirror); | public Field getField(Symbol symbol) { Object value = fields.get(symbol); if (value != null) return (Field)value; Field mirror = getField0(symbol); assert Debug.log("java mirror", Debug.show(symbol) + " -> " + mirror); fields.put(symbol, mirror); return mirror; } | 32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/8f1264daa9a230a81dc4b0a9b9f2c4751ed24229/JavaMirror.java/buggy/sources/scala/tools/scalai/JavaMirror.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2286,
5031,
12,
5335,
3273,
13,
288,
3639,
1033,
460,
273,
1466,
18,
588,
12,
7175,
1769,
3639,
309,
261,
1132,
480,
446,
13,
327,
261,
974,
13,
1132,
31,
3639,
2286,
15593,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2286,
5031,
12,
5335,
3273,
13,
288,
3639,
1033,
460,
273,
1466,
18,
588,
12,
7175,
1769,
3639,
309,
261,
1132,
480,
446,
13,
327,
261,
974,
13,
1132,
31,
3639,
2286,
15593,
273,
... |
ScheduleUtil.assert(period > 0, "period must be positive"); | ScheduleUtil.assertTrue(period > 0, "period must be positive"); | WeeklyDateSchedule(Calendar begin, int period, int daysOfWeekBitmap) { this.period = period; ScheduleUtil.assert(period > 0, "period must be positive"); this.beginOrdinal = ScheduleUtil.julianDay( begin == null ? ScheduleUtil.epochDay : begin) / 7; this.daysOfWeekBitmap = daysOfWeekBitmap; ScheduleUtil.assert( (daysOfWeekBitmap & Schedule.allDaysOfWeekBitmap) != 0, "weekly schedule must have at least one day set"); ScheduleUtil.assert( (daysOfWeekBitmap & Schedule.allDaysOfWeekBitmap) == daysOfWeekBitmap, "weekly schedule has bad bits set: " + daysOfWeekBitmap); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/9b986104ae6648c216be1c5a4796621e92b2fccf/Schedule.java/clean/src/main/mondrian/util/Schedule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6630,
715,
1626,
6061,
12,
7335,
2376,
16,
509,
3879,
16,
509,
4681,
12250,
12224,
13,
288,
202,
202,
2211,
18,
6908,
273,
3879,
31,
202,
202,
6061,
1304,
18,
11231,
12,
6908,
405,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6630,
715,
1626,
6061,
12,
7335,
2376,
16,
509,
3879,
16,
509,
4681,
12250,
12224,
13,
288,
202,
202,
2211,
18,
6908,
273,
3879,
31,
202,
202,
6061,
1304,
18,
11231,
12,
6908,
405,... |
schemaName = tableName.substring(0, index); tableName = tableName.substring( index + 1); | schemaName = tableName.substring( 0, index ); tableName = tableName.substring( index + 1 ); | private void showTable(Event event) { TreeItem item = (TreeItem)event.item; if (item == null) return; if( item == rootNode ) return; if ( isSchemaNode( item ) ) { populateTableList( item.getText( ), item ); return; }//TODO String tableName = Utility.getTreeItemsName( item ); String catalogName = metaDataProvider.getCatalog(); String schemaName = null; String schemaSeparator = "."; if (metaDataProvider.isSchemaSupported()) { // remove the schema name from the fully qualified name int index = -1; if ((index = tableName.lastIndexOf(schemaSeparator)) != -1) { schemaName = tableName.substring(0, index); tableName = tableName.substring( index + 1); } } if ( item.getData( ) instanceof DbObject ) { DbObject obj = (DbObject) item.getData( ); if ( obj.getType( ) == DbObject.TABLE_TYPE || obj.getType( ) == DbObject.VIEW_TYPE ) { ArrayList columnList = metaDataProvider.getColumns( catalogName, schemaName, tableName, null ); TreeItem[] items = item.getItems( ); if ( items != null ) { for ( int i = 0; i < items.length; i++ ) { items[i].dispose( ); } } Utility.createTreeItems( item, columnList, SWT.NONE, columnImage ); } else if ( obj.getType( ) == DbObject.PROCEDURE_TYPE ) { ArrayList procedureList = metaDataProvider.getAllProcedure( catalogName, schemaName, getTailoredSearchText( searchTxt.getText() ) ); TreeItem[] items = item.getItems( ); if ( items != null ) { for ( int i = 0; i < items.length; i++ ) { items[i].dispose( ); } } Utility.createTreeItems( item, procedureList, SWT.NONE, columnImage ); //expand procedure TreeItem } } else if ( item.getData( ) instanceof Procedure ) { Procedure obj = (Procedure) item.getData( ); { ArrayList columnList = metaDataProvider.getProcedureColumns( obj.getCatalog( ), schemaName, tableName, getTailoredSearchText(null) ); TreeItem[] items = item.getItems( ); if ( items != null ) { for ( int i = 0; i < items.length; i++ ) { items[i].dispose( ); } } Utility.createTreeItems( item, columnList, SWT.NONE, columnImage ); } } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/8887f296b0d9adc032ae9020f3349938893f43a3/SQLDataSetEditorPage.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
918,
2405,
1388,
12,
1133,
871,
13,
1082,
202,
95,
9506,
202,
2471,
1180,
761,
273,
261,
2471,
1180,
13,
2575,
18,
1726,
31,
9506,
202,
430,
261,
1726,
422,
446,
13,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
918,
2405,
1388,
12,
1133,
871,
13,
1082,
202,
95,
9506,
202,
2471,
1180,
761,
273,
261,
2471,
1180,
13,
2575,
18,
1726,
31,
9506,
202,
430,
261,
1726,
422,
446,
13,
327,
... |
public void addProperty(String name, String strValue) { if (strValue == null) { return; } name = capitalizeFirstLetter(name); Method adderMethod = getMethod("add" + name); if (adderMethod == null) { addError("No adder for property [" + name + "]."); return; } Class[] paramTypes = adderMethod.getParameterTypes(); if (paramTypes.length != 1) { addError("#params for setter != 1"); return; } Object arg; try { arg = convertArg(strValue, paramTypes[0]); } catch (Throwable t) { addError("Conversion to type [" + paramTypes[0] + "] failed. ", t); return; } if (arg == null) { addError("Conversion to type [" + paramTypes[0] + "] failed."); } else { try { adderMethod.invoke(obj, new Object[] { arg }); } catch (Exception ex) { addError("Failed to invoke adder for " + name, ex); } } } | 48264 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48264/cd5686d976f1993d6cc606a0b2d7b9f8ae6f1a31/PropertySetter.java/clean/logback-core/src/main/java/ch/qos/logback/core/util/PropertySetter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
1289,
1396,
12,
780,
529,
16,
780,
701,
620,
15329,
430,
12,
701,
620,
631,
2011,
15329,
2463,
31,
97,
529,
33,
5909,
7053,
554,
3759,
13938,
12,
529,
1769,
1305,
361,
765,
1305,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
1289,
1396,
12,
780,
529,
16,
780,
701,
620,
15329,
430,
12,
701,
620,
631,
2011,
15329,
2463,
31,
97,
529,
33,
5909,
7053,
554,
3759,
13938,
12,
529,
1769,
1305,
361,
765,
1305,... | ||
public AbstractExpectationCollection(String name) { super(name); } | public AbstractExpectationCollection( String name ) { super(name); } | public AbstractExpectationCollection(String name) { super(name); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/AbstractExpectationCollection.java/buggy/jmock/core/src/org/jmock/expectation/AbstractExpectationCollection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4115,
11988,
367,
2532,
12,
780,
508,
13,
288,
3639,
2240,
12,
529,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4115,
11988,
367,
2532,
12,
780,
508,
13,
288,
3639,
2240,
12,
529,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
ModelItem anObject = (ModelItem)enumerator.nextElement(); | ModelItem anObject = (ModelItem)enumerator.next(); | public void showTypes(boolean value) { for (Enumeration enumerator = array.elements(); enumerator.hasMoreElements(); ) { ModelItem anObject = (ModelItem)enumerator.nextElement(); if (anObject.isNode()) { ((Node) anObject).setShowType(value); } } controller.modelChanged(); } | 364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/364/03c9e81600733191aa231cee1b47ab99ba816b6b/ArcNodeList.java/buggy/rdfweb.org/RDFAuthor/ArcNodeList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2405,
2016,
12,
6494,
460,
13,
565,
288,
3639,
364,
261,
21847,
24679,
273,
526,
18,
6274,
5621,
24679,
18,
5332,
7417,
3471,
5621,
262,
3639,
288,
5411,
3164,
1180,
392,
921,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2405,
2016,
12,
6494,
460,
13,
565,
288,
3639,
364,
261,
21847,
24679,
273,
526,
18,
6274,
5621,
24679,
18,
5332,
7417,
3471,
5621,
262,
3639,
288,
5411,
3164,
1180,
392,
921,
... |
Object[] errArgs = { ((NativeFunction) funObj).js_getName() }; | Object[] errArgs = { ((NativeFunction) funObj).jsGet_name() }; | private static Object execSub(Context cx, Scriptable thisObj, Object[] args, Scriptable scopeObj, boolean test, Function funObj) { if (!(thisObj instanceof NativeRegExp)) { Object[] errArgs = { ((NativeFunction) funObj).js_getName() }; throw Context.reportRuntimeError( ScriptRuntime.getMessage("msg.incompat.call", errArgs)); } NativeRegExp re = (NativeRegExp) thisObj; String str; if (args.length == 0) { str = getImpl(cx).input; if (str == null) { Object[] errArgs = { re.toString() }; throw Context.reportRuntimeError(ScriptRuntime.getMessage ("msg.no.re.input.for", errArgs)); } } else { str = ScriptRuntime.toString(args[0]); } int i; if ((re.flags & GLOB) != 0) { i = re.lastIndex; } else { i = 0; } int indexp[] = { i }; Object rval = re.executeRegExp(scopeObj, str, indexp, test); if ((re.flags & GLOB) != 0) re.lastIndex = (rval == null) ? 0 : indexp[0]; return rval; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/75d18cd3322ae42f1bf6a1ed46bb0d9ff1286810/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
1196,
1676,
12,
1042,
9494,
16,
22780,
15261,
16,
21394,
1033,
8526,
833,
16,
22780,
2146,
2675,
16,
21394,
1250,
1842,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
309,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
1196,
1676,
12,
1042,
9494,
16,
22780,
15261,
16,
21394,
1033,
8526,
833,
16,
22780,
2146,
2675,
16,
21394,
1250,
1842,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
309,
160... |
this.pack(); this.setSize(370, 240); | public AuthenticationWindow(MainFrame mainFrame, ProtocolProviderService protocolProvider, String realm, UserCredentials userCredentials) { super(mainFrame); this.userCredentials = userCredentials; this.realm = realm; this.setModal(true); backgroundPanel = new LoginWindowBackground( Constants.getProtocolBigIcon( protocolProvider.getProtocolName())); this.backgroundPanel.setLayout(new FlowLayout(FlowLayout.RIGHT)); this.backgroundPanel.setBorder( BorderFactory.createEmptyBorder(45, 5, 5, 5)); this.getContentPane().setLayout(new BorderLayout()); this.init(); this.getContentPane().add(backgroundPanel, BorderLayout.CENTER); this.pack(); this.setSize(370, 240); this.setResizable(false); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); this.setTitle(Messages.getString("authenticationWindowTitle")); this.enableKeyActions(); } | 27035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27035/54489a0aa7ab17d7b2e10707203f786e9ae9b1f7/AuthenticationWindow.java/buggy/src/net/java/sip/communicator/impl/gui/main/login/AuthenticationWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8665,
3829,
12,
6376,
3219,
2774,
3219,
16,
7734,
4547,
2249,
1179,
1771,
2249,
16,
7734,
514,
11319,
16,
7734,
2177,
6163,
729,
6163,
13,
288,
3639,
2240,
12,
5254,
3219,
1769,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8665,
3829,
12,
6376,
3219,
2774,
3219,
16,
7734,
4547,
2249,
1179,
1771,
2249,
16,
7734,
514,
11319,
16,
7734,
2177,
6163,
729,
6163,
13,
288,
3639,
2240,
12,
5254,
3219,
1769,
363... | |
public NewsChannelContentDefinition(String name) throws CmsException { Connection con = null; PreparedStatement statement = null; ResultSet res = null; try { con = DriverManager.getConnection(c_pool); statement = con.prepareStatement(C_SELECT_NAME); statement.setString(1, name); res = statement.executeQuery(); if(res.next()){ m_id = res.getInt(1); m_name = res.getString(2); m_descr = res.getString(3); m_lockstate = res.getInt(4); } }catch(SQLException e) { throw new CmsException("[" + this.getClass().getName() + "] " + e.getMessage(), CmsException.C_SQL_ERROR, e); }finally{ try{ res.close(); }catch (Exception e) { } try{ statement.close(); }catch (Exception e) { } try{ con.close(); }catch (Exception e) { } } | public NewsChannelContentDefinition() { super(); | public NewsChannelContentDefinition(String name) throws CmsException { //System.err.println("NewsChannelContentDefinition: will lesen, name= "+name); Connection con = null; PreparedStatement statement = null; ResultSet res = null; try { con = DriverManager.getConnection(c_pool); statement = con.prepareStatement(C_SELECT_NAME); statement.setString(1, name); // choose id of the Element "where id == " res = statement.executeQuery(); if(res.next()){ // read the items from the resultset m_id = res.getInt(1); m_name = res.getString(2); m_descr = res.getString(3); m_lockstate = res.getInt(4); } }catch(SQLException e) { throw new CmsException("[" + this.getClass().getName() + "] " + e.getMessage(), CmsException.C_SQL_ERROR, e); }finally{ try{ res.close(); }catch (Exception e) { // ignore the exception } try{ statement.close(); }catch (Exception e) { // ignore the exception } try{ con.close(); }catch (Exception e) { // ignore the exception } } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/a80dad293083ec36179f99a238625d3037b6083c/NewsChannelContentDefinition.java/buggy/modules/news/src/com/opencms/modules/homepage/news/NewsChannelContentDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27061,
2909,
1350,
1852,
12,
780,
508,
13,
1216,
11228,
288,
202,
202,
759,
3163,
18,
370,
18,
8222,
2932,
17948,
2909,
1350,
1852,
30,
903,
18022,
275,
16,
508,
33,
13773,
52... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27061,
2909,
1350,
1852,
12,
780,
508,
13,
1216,
11228,
288,
202,
202,
759,
3163,
18,
370,
18,
8222,
2932,
17948,
2909,
1350,
1852,
30,
903,
18022,
275,
16,
508,
33,
13773,
52... |
} | } | protected void showList(Shell parentShell, int x, int y) { // final R21PaneFolder tabFolder = getTabFolder(); // // int shellStyle = SWT.RESIZE | SWT.ON_TOP | SWT.NO_TRIM; // int tableStyle = SWT.V_SCROLL | SWT.H_SCROLL; // final BasicStackList editorList = new BasicStackList(tabFolder.getControl().getShell(), // shellStyle, tableStyle); // editorList.setInput(this); // Point size = editorList.computeSizeHint(); // // Rectangle bounds = Display.getCurrent().getBounds(); // if (x + size.x > bounds.width) x = bounds.width - size.x; // if (y + size.y > bounds.height) y = bounds.height - size.y; // editorList.setLocation(new Point(x, y)); // editorList.setVisible(true); // editorList.setFocus(); // editorList.getTableViewer().getTable().getShell().addListener( // SWT.Deactivate, new Listener() { // // public void handleEvent(Event event) { // editorList.setVisible(false); // } // }); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21BasicStackPresentation.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2405,
682,
12,
13220,
982,
13220,
16,
509,
619,
16,
509,
677,
13,
288,
3639,
368,
3639,
727,
534,
5340,
8485,
3899,
3246,
3899,
273,
3181,
378,
3899,
5621,
3639,
368,
3639,
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,
4750,
918,
2405,
682,
12,
13220,
982,
13220,
16,
509,
619,
16,
509,
677,
13,
288,
3639,
368,
3639,
727,
534,
5340,
8485,
3899,
3246,
3899,
273,
3181,
378,
3899,
5621,
3639,
368,
3639,
3... |
if (itemName == null || insertItemOrder == null || itemUrgent == null || insertItemOrder == null) { | if (itemName == null || insertItemOrder == null || insertItemOrder == null) { | public void insertItem(String itemName, String itemInformation, Boolean itemUrgent, Integer insertItemOrder) throws DomainException { if (itemName == null || insertItemOrder == null || itemUrgent == null || insertItemOrder == null) { throw new NullPointerException(); } for (Item item : this.getAssociatedItems()) { if (item.getName().equals(itemName)) throw new DomainException("error.duplicate.item"); } Item item = new Item(); // item.setInformation(itemInformation); // item.setName(itemName); item.setUrgent(itemUrgent); Integer itemOrder = new Integer(organizeExistingItemsOrder(insertItemOrder.intValue())); item.setItemOrder(itemOrder); item.setSection(this); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/af85e8f72a4392e5e1b7c9b91b136c3b815b9988/Section.java/clean/src/net/sourceforge/fenixedu/domain/Section.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2243,
1180,
12,
780,
23488,
16,
514,
761,
5369,
16,
3411,
761,
57,
26876,
319,
16,
202,
565,
2144,
2243,
1180,
2448,
13,
1216,
24569,
288,
202,
430,
261,
1726,
461,
422,
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,
2243,
1180,
12,
780,
23488,
16,
514,
761,
5369,
16,
3411,
761,
57,
26876,
319,
16,
202,
565,
2144,
2243,
1180,
2448,
13,
1216,
24569,
288,
202,
430,
261,
1726,
461,
422,
446,... |
public MethodInfo getMethod(String name) { ArrayList list = methods; int n = list.size(); for (int i = 0; i < n; ++i) { MethodInfo minfo = (MethodInfo)list.get(i); if (minfo.getName().equals(name)) return minfo; } | public MethodInfo getMethod(String name) { ArrayList list = methods; int n = list.size(); for (int i = 0; i < n; ++i) { MethodInfo minfo = (MethodInfo) list.get(i); if (minfo.getName().equals(name)) return minfo; } | public MethodInfo getMethod(String name) { ArrayList list = methods; int n = list.size(); for (int i = 0; i < n; ++i) { MethodInfo minfo = (MethodInfo)list.get(i); if (minfo.getName().equals(name)) return minfo; } return null; } | 56357 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56357/f5d84c890b70def694dbd2904f1e6d2f7f1b70e3/ClassFile.java/buggy/src/main/javassist/bytecode/ClassFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2985,
966,
6272,
12,
780,
508,
13,
288,
3639,
2407,
666,
273,
2590,
31,
3639,
509,
290,
273,
666,
18,
1467,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
965,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2985,
966,
6272,
12,
780,
508,
13,
288,
3639,
2407,
666,
273,
2590,
31,
3639,
509,
290,
273,
666,
18,
1467,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
290,
31,
965,... |
ChemModel model = panel.getChemModel(); | ChemModel model = (ChemModel)panel.getChemModel(); | private void maybeShowPopup(MouseEvent e) { if (e.isPopupTrigger()) { popupMenu.show(e.getComponent(), e.getX(), e.getY()); } else { JFrame frame = null; if (e.getButton() == 1 && e.getClickCount() == 2) { if (panel instanceof JChemPaintViewerOnlyPanel) { frame = new JFrame(); frame.addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { parent.add(panel); parent.repaint(); } }); parent=panel.getParent(); panel.getParent().remove(panel); frame.getContentPane().add(panel); } else if (panel instanceof JChemPaintEditorPanel) { panel = (JChemPaintEditorPanel) panel; ChemModel model = panel.getChemModel(); frame =JChemPaintEditorPanel.getNewFrame(new JChemPaintModel(model)); JChemPaintEditorPanel newPanel = (JChemPaintEditorPanel) frame.getContentPane().getComponent(0); newPanel.scaleAndCenterMolecule(model); newPanel.addChangeListener(panel); newPanel.setEmbedded(); newPanel.setIsOpenedByViewer(true); JViewport viewPort =((JScrollPane) ((Container) panel.getComponent(0)).getComponent(0)).getViewport(); DrawingPanel draw = (DrawingPanel) (viewPort.getView()); panel.drawingPanel = draw; viewPort.remove(draw); } frame.show(); frame.pack(); } } } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/c4db5e797f99f4c93f7d431c899e4e7cffe22bb4/JChemPaintPanel.java/buggy/src/org/openscience/cdk/applications/jchempaint/JChemPaintPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
1152,
918,
6944,
5706,
13770,
12,
9186,
1133,
425,
13,
288,
377,
202,
565,
309,
261,
73,
18,
291,
13770,
6518,
10756,
288,
377,
1082,
202,
16086,
4599,
18,
4500,
12,
73,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
1152,
918,
6944,
5706,
13770,
12,
9186,
1133,
425,
13,
288,
377,
202,
565,
309,
261,
73,
18,
291,
13770,
6518,
10756,
288,
377,
1082,
202,
16086,
4599,
18,
4500,
12,
73,
18,
588,
... |
return String.valueOf(element.isDerived()); | if (element.isDerived()) return IDEPropertiesMessages.ResourceProperty_true; return IDEPropertiesMessages.ResourceProperty_false; | public Object getPropertyValue(Object name) { if (name.equals(IBasicPropertyConstants.P_TEXT)) { return element.getName(); } if (name.equals(IResourcePropertyConstants.P_PATH_RES)) { return TextProcessor.process(element.getFullPath().toString()); } if (name.equals(IResourcePropertyConstants.P_LAST_MODIFIED_RES)) { return IDEResourceInfoUtils.getDateStringValue(element); } if (name.equals(IResourcePropertyConstants.P_EDITABLE_RES)) { final ResourceAttributes attributes = element.getResourceAttributes(); if (attributes == null || attributes.isReadOnly()) { return IDEPropertiesMessages.ResourceProperty_false; } return IDEPropertiesMessages.ResourceProperty_true; } if (name.equals(IResourcePropertyConstants.P_DERIVED_RES)) { return String.valueOf(element.isDerived()); } if (name.equals(IResourcePropertyConstants.P_LINKED_RES)) { return String.valueOf(element.isLinked()); } if (name.equals(IResourcePropertyConstants.P_LOCATION_RES)) { return TextProcessor.process(IDEResourceInfoUtils.getLocationText(element)); } if (name.equals(IResourcePropertyConstants.P_RESOLVED_LOCATION_RES)) { return TextProcessor.process(IDEResourceInfoUtils.getResolvedLocationText(element)); } return null; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/48814f3fd774c98204cc7ddc625bcaf81f1cb75d/ResourcePropertySource.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/ResourcePropertySource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
21694,
12,
921,
508,
13,
288,
3639,
309,
261,
529,
18,
14963,
12,
45,
8252,
1396,
2918,
18,
52,
67,
5151,
3719,
288,
5411,
327,
930,
18,
17994,
5621,
3639,
289,
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,
1071,
1033,
21694,
12,
921,
508,
13,
288,
3639,
309,
261,
529,
18,
14963,
12,
45,
8252,
1396,
2918,
18,
52,
67,
5151,
3719,
288,
5411,
327,
930,
18,
17994,
5621,
3639,
289,
3639,
309,
... |
public String getName() { return "Rebuild tunnel"; } | public String getName() { if (_pool.getSettings().isExploratory()) { if (_pool.getSettings().isInbound()) { return "Rebuild exploratory inbound tunnel"; } else { return "Rebuild exploratory outbound tunnel"; } } else { StringBuffer rv = new StringBuffer(32); if (_pool.getSettings().isInbound()) rv.append("Rebuild inbound client tunnel for "); else rv.append("Rebuild outbound client tunnel for "); if (_pool.getSettings().getDestinationNickname() != null) rv.append(_pool.getSettings().getDestinationNickname()); else rv.append(_pool.getSettings().getDestination().toBase64().substring(0,4)); return rv.toString(); } } | public String getName() { return "Rebuild tunnel"; } | 45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/ab4f3008cb78a7ef0ea6b25b04e9b6eeb83f8443/RebuildJob.java/clean/router/java/src/net/i2p/router/tunnel/pool/RebuildJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
288,
327,
315,
426,
3510,
14825,
14432,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
288,
327,
315,
426,
3510,
14825,
14432,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
iVisited.accept(_Payload); | _Payload.visitDRegxOnceNode(iVisited); | public void visitDRegxOnceNode(DRegxOnceNode iVisited) { iVisited.accept(_Payload); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/buggy/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
40,
1617,
92,
12212,
907,
12,
40,
1617,
92,
12212,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
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,
225,
202,
482,
918,
3757,
40,
1617,
92,
12212,
907,
12,
40,
1617,
92,
12212,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
... |
public synchronized int getNumPackets() { | public synchronized int getNumPackets() throws AbortedException { | public synchronized int getNumPackets() { if (_aborted) { throw new RuntimeException("PRB is aborted"); } return _packets; } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/b4ecaa4055b5835413830d4125c72de27d68e306/PartiallyReceivedBlock.java/clean/src/freenet/io/xfer/PartiallyReceivedBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
509,
11187,
27328,
1435,
288,
202,
202,
430,
261,
67,
18623,
329,
13,
288,
1082,
202,
12849,
394,
3235,
2932,
8025,
38,
353,
18166,
8863,
202,
202,
97,
202,
202,
2463,
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,
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,
3852,
509,
11187,
27328,
1435,
288,
202,
202,
430,
261,
67,
18623,
329,
13,
288,
1082,
202,
12849,
394,
3235,
2932,
8025,
38,
353,
18166,
8863,
202,
202,
97,
202,
202,
2463,
3... |
result = ServiceUtil.returnSuccess(); | result = ServiceUtil.returnSuccess(); | public Map setCheckOutDates(Timestamp shipBefore, Timestamp shipAfter) { List errorMessages = new ArrayList(); Map result = null; String errMsg = null; if (this.cart != null && this.cart.size() > 0) { this.cart.setShipBeforeDate(shipBefore); this.cart.setShipAfterDate(shipAfter); } else { errMsg = UtilProperties.getMessage(resource,"checkhelper.no_items_in_cart", (cart != null ? cart.getLocale() : Locale.getDefault())); errorMessages.add(errMsg); } if (errorMessages.size() == 1) { result = ServiceUtil.returnError(errorMessages.get(0).toString()); } else if (errorMessages.size() > 0) { result = ServiceUtil.returnError(errorMessages); } else { result = ServiceUtil.returnSuccess(); } return result; } | 45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/72622be566e2f1898c139be1ad31c7eefd06d2fe/CheckOutHelper.java/clean/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
444,
1564,
1182,
15578,
12,
4921,
24316,
4649,
16,
8159,
24316,
4436,
13,
288,
1850,
987,
22241,
273,
394,
2407,
5621,
1850,
1635,
563,
273,
446,
31,
1850,
514,
12412,
273,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
444,
1564,
1182,
15578,
12,
4921,
24316,
4649,
16,
8159,
24316,
4436,
13,
288,
1850,
987,
22241,
273,
394,
2407,
5621,
1850,
1635,
563,
273,
446,
31,
1850,
514,
12412,
273,
44... |
MavenExecutionResponse response = processProject( request, project, dispatcher ); | MavenExecutionResponse response = processProject( session, goals, project, dispatcher ); | public MavenExecutionResponse execute( MavenExecutionRequest request ) throws ReactorException { if ( request.getSettings().isOffline() ) { getLogger().info( "Maven is running in offline mode." ); } try { resolveParameters( request.getSettings() ); } catch ( ComponentLookupException e ) { throw new ReactorException( "Unable to configure Maven for execution", e ); } catch ( ComponentLifecycleException e ) { throw new ReactorException( "Unable to configure Maven for execution", e ); } EventDispatcher dispatcher = request.getEventDispatcher(); String event = MavenEvents.REACTOR_EXECUTION; dispatcher.dispatchStart( event, request.getBaseDirectory() ); List projects; try { projects = collectProjects( request.getFiles(), request.getLocalRepository(), request.isRecursive(), request.getSettings() ); projects = ProjectSorter.getSortedProjects( projects ); if ( projects.isEmpty() ) { List externalProfiles = getActiveExternalProfiles( null, request.getSettings() ); projects.add( projectBuilder.buildStandaloneSuperProject( request.getLocalRepository(), externalProfiles ) ); } } catch ( IOException e ) { throw new ReactorException( "Error processing projects for the reactor: ", e ); } catch ( CycleDetectedException e ) { throw new ReactorException( "Error processing projects for the reactor: ", e ); } catch ( ArtifactResolutionException e ) { dispatcher.dispatchError( event, request.getBaseDirectory(), e ); MavenExecutionResponse response = new MavenExecutionResponse(); response.setStart( new Date() ); response.setFinish( new Date() ); response.setException( e ); logFailure( response, e, null ); return response; } catch ( ProjectBuildingException e ) { dispatcher.dispatchError( event, request.getBaseDirectory(), e ); MavenExecutionResponse response = new MavenExecutionResponse(); response.setStart( new Date() ); response.setFinish( new Date() ); response.setException( e ); logFailure( response, e, null ); return response; } try { for ( Iterator iterator = projects.iterator(); iterator.hasNext(); ) { MavenProject project = (MavenProject) iterator.next(); line(); getLogger().info( "Building " + project.getName() ); line(); try { MavenExecutionResponse response = processProject( request, project, dispatcher ); if ( response.isExecutionFailure() ) { dispatcher.dispatchError( event, request.getBaseDirectory(), response.getException() ); return response; } } catch ( LifecycleExecutionException e ) { throw new ReactorException( "Error executing project within the reactor", e ); } } dispatcher.dispatchEnd( event, request.getBaseDirectory() ); // TODO: not really satisfactory return null; } catch ( ReactorException e ) { dispatcher.dispatchError( event, request.getBaseDirectory(), e ); throw e; } } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/701ef520a30c7b30dcdf2e4a4f06548cc06fbf0b/DefaultMaven.java/clean/maven-core/src/main/java/org/apache/maven/DefaultMaven.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17176,
3210,
1064,
1836,
12,
17176,
3210,
691,
590,
262,
3639,
1216,
868,
3362,
503,
565,
288,
3639,
309,
261,
590,
18,
588,
2628,
7675,
291,
23106,
1435,
262,
3639,
288,
5411,
7156... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17176,
3210,
1064,
1836,
12,
17176,
3210,
691,
590,
262,
3639,
1216,
868,
3362,
503,
565,
288,
3639,
309,
261,
590,
18,
588,
2628,
7675,
291,
23106,
1435,
262,
3639,
288,
5411,
7156... |
manager = CacheManager.create(); cache = new Cache(CACHE_NAME, Integer.MAX_VALUE, false, false, minutesToIdle * 60, minutesToIdle * 60); manager.addCache(cache); | public void afterPropertiesSet() throws Exception { if (CacheManager.getInstance().cacheExists(CACHE_NAME)) { CacheManager.getInstance().removeCache(CACHE_NAME); } manager = CacheManager.create(); // Cache name, max memory, overflowToDisk, eternal, timeToLive, timeToIdle cache = new Cache(CACHE_NAME, Integer.MAX_VALUE, false, false, minutesToIdle * 60, minutesToIdle * 60); manager.addCache(cache); } | 57740 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57740/3648073461474b43e108b9969549f2648feb3e07/EhCacheBasedTicketCache.java/buggy/core/src/main/java/org/acegisecurity/providers/cas/cache/EhCacheBasedTicketCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1839,
2297,
694,
1435,
1216,
1185,
288,
3639,
309,
261,
27706,
18,
588,
1442,
7675,
2493,
4002,
12,
8495,
67,
1985,
3719,
288,
5411,
4379,
1318,
18,
588,
1442,
7675,
4479,
1649... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1839,
2297,
694,
1435,
1216,
1185,
288,
3639,
309,
261,
27706,
18,
588,
1442,
7675,
2493,
4002,
12,
8495,
67,
1985,
3719,
288,
5411,
4379,
1318,
18,
588,
1442,
7675,
4479,
1649... | |
return MOVE_FOLDED; | return DefUseEffect.MOVE_FOLDED; | private static byte instanceOfNotNull(OPT_Instruction s) { { OPT_Operand ref = InstanceOf.getRef(s); VM_TypeReference lhsType = InstanceOf.getType(s).getTypeRef(); VM_TypeReference rhsType = ref.getType(); byte ans = OPT_ClassLoaderProxy.includesType(lhsType, rhsType); if (ans == OPT_Constants.YES) { Move.mutate(s, INT_MOVE, InstanceOf.getClearResult(s), IC(1)); return MOVE_FOLDED; } else if (ans == OPT_Constants.NO) { VM_Type rType = rhsType.peekResolvedType(); if (rType != null && rType.isClassType() && rType.asClass().isFinal()) { // only final (or precise) rhs types can be optimized since rhsType may be conservative Move.mutate(s, INT_MOVE, InstanceOf.getClearResult(s), IC(0)); return MOVE_FOLDED; } } } return UNCHANGED; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/eb4369b6f8fdd0cd15c56bc3cbfa8673171db226/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
1160,
28397,
5962,
12,
15620,
67,
11983,
272,
13,
288,
282,
288,
1377,
16456,
67,
10265,
1278,
273,
5180,
951,
18,
588,
1957,
12,
87,
1769,
1377,
8251,
67,
7534,
8499,
559,
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,
282,
3238,
760,
1160,
28397,
5962,
12,
15620,
67,
11983,
272,
13,
288,
282,
288,
1377,
16456,
67,
10265,
1278,
273,
5180,
951,
18,
588,
1957,
12,
87,
1769,
1377,
8251,
67,
7534,
8499,
559,
2... |
} | } | private void setValueMembers(org.omg.CORBA.ValueMember[] members) { member_count = (members != null) ? members.length : 0; member_name = new String[member_count]; member_type = new TypeCode[member_count]; member_visibility = new short[member_count]; for( int i = 0; i < member_count; i++ ) { member_name[i] = members[i].name; member_type[i] = (TypeCode)members[i].type; member_visibility[i] = members[i].access; } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7271c3cbb78470b90b072d36661a5ab67199cc91/TypeCode.java/buggy/src/org/jacorb/orb/TypeCode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5524,
6918,
12,
3341,
18,
362,
75,
18,
9428,
12536,
18,
620,
4419,
8526,
4833,
13,
565,
288,
3639,
3140,
67,
1883,
273,
261,
7640,
480,
446,
13,
692,
4833,
18,
2469,
294,
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,
5524,
6918,
12,
3341,
18,
362,
75,
18,
9428,
12536,
18,
620,
4419,
8526,
4833,
13,
565,
288,
3639,
3140,
67,
1883,
273,
261,
7640,
480,
446,
13,
692,
4833,
18,
2469,
294,
3... |
SetCurrentEditModelCommand c = new SetCurrentEditModelCommand( getNewObject() ); | SetCurrentEditModelCommand c = new SetCurrentEditModelCommand( getNewObject(),LibraryHandleAdapter.CREATE_ELEMENT ); | protected org.eclipse.gef.commands.Command getCreateCommand( CreateRequest request ) { List list = getHost( ).getChildren( ); Boolean direct = (Boolean) request.getExtendedData( ).get( DesignerConstants.DIRECT_CREATEITEM ); if ( list.size( ) != 0 && !( list.get( 0 ) instanceof EmptyEditPart ) && (direct == null || !direct.booleanValue( ))) { return UnexecutableCommand.INSTANCE; } // EditPart after = getInsertionReference( request );// final DesignElementHandle newObject = (DesignElementHandle) request.getExtendedData( )// .get( DesignerConstants.KEY_NEWOBJECT ); CreateCommand command = new CreateCommand( request.getExtendedData( ) ) { public void execute( ) { super.execute( ); Display.getCurrent( ) .asyncExec( new Runnable( ) { public void run( ) { SetCurrentEditModelCommand c = new SetCurrentEditModelCommand( getNewObject() ); c.execute( ); } } ); } }; Object model = this.getHost( ).getModel( ); if ( model instanceof ReportElementModel ) { command.setParent( ( (ReportElementModel) model ).getSlotHandle( ) ); } else if ( model instanceof ListBandProxy ) { command.setParent( ( (ListBandProxy) model ).getSlotHandle( ) ); } else { command.setParent( model ); } // No previous edit part // if ( after != null ) // { // command.setAfter( after.getModel( ) ); // } return command; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d280151a56995a114d6763867c3153a929db34ad/LibraryReportDesignEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui.lib/src/org/eclipse/birt/report/designer/internal/lib/editparts/LibraryReportDesignEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
1117,
2358,
18,
20416,
18,
908,
74,
18,
7847,
18,
2189,
25667,
2189,
12,
6862,
1082,
202,
1684,
691,
590,
262,
6862,
202,
95,
25083,
202,
682,
666,
273,
8580,
12,
262,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
1117,
2358,
18,
20416,
18,
908,
74,
18,
7847,
18,
2189,
25667,
2189,
12,
6862,
1082,
202,
1684,
691,
590,
262,
6862,
202,
95,
25083,
202,
682,
666,
273,
8580,
12,
262,
18,
588,
... |
message = REZ.getString( "property.no-value.error" ); executeTargetExpectError( projectFile, "missing-value", message ); | messages = new String[] { null, REZ.getString( "property.no-value.error" ) }; executeTargetExpectError( projectFile, "missing-value", messages ); | public void testValidation() throws Exception { final File projectFile = getTestResource( "property.ant" ); // Missing name String message = REZ.getString( "property.no-name.error" ); executeTargetExpectError( projectFile, "missing-name", message ); // Missing value message = REZ.getString( "property.no-value.error" ); executeTargetExpectError( projectFile, "missing-value", message ); // Too many values String[] messages = { null, null, REZ.getString( "property.multi-set.error" ) }; executeTargetExpectError( projectFile, "too-many-values1", messages ); executeTargetExpectError( projectFile, "too-many-values2", messages ); } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/5b87919be6a8db15efe30f2de6e617aba31ef619/PropertyTest.java/buggy/proposal/myrmidon/src/testcases/org/apache/antlib/core/PropertyTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4354,
1435,
3639,
1216,
1185,
565,
288,
3639,
727,
1387,
1984,
812,
273,
29384,
1420,
12,
315,
4468,
18,
970,
6,
11272,
3639,
368,
10230,
508,
3639,
514,
883,
273,
2438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4354,
1435,
3639,
1216,
1185,
565,
288,
3639,
727,
1387,
1984,
812,
273,
29384,
1420,
12,
315,
4468,
18,
970,
6,
11272,
3639,
368,
10230,
508,
3639,
514,
883,
273,
2438,
... |
int index = getIndex(namespaceURI, qualifiedName); if (index<0) { | boolean found = false; for (int i = 0; i < attrsEnd; i++) { AttrImpl attr = (AttrImpl)m_children[i]; if (attr.getLocalName().equals(attrImpl.getLocalName()) && attr.getNamespaceURI().equals(attrImpl.getNamespaceURI())) { m_children[i] = attrImpl; found = true; break; } } if (!found) { | public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { // System.out.println("qualifiedName: "+qualifiedName); AttrImplNS attrImpl = new AttrImplNS(namespaceURI, qualifiedName, ""); int index = getIndex(namespaceURI, qualifiedName); if (index<0) { appendChild(attrImpl); attrsEnd++; } else m_children[index] = attrImpl; return (Attr)attrImpl; } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/403d05e3a5696c2205daae1562647b66950ac9d5/ElementImpl.java/clean/src/org/apache/xalan/stree/ElementImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
11289,
9079,
752,
1499,
3156,
12,
780,
19421,
16,
4766,
2868,
514,
24133,
13,
565,
1216,
4703,
503,
225,
288,
565,
368,
2332,
18,
659,
18,
8222,
2932,
19724,
461,
30,
13773,
19724,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11289,
9079,
752,
1499,
3156,
12,
780,
19421,
16,
4766,
2868,
514,
24133,
13,
565,
1216,
4703,
503,
225,
288,
565,
368,
2332,
18,
659,
18,
8222,
2932,
19724,
461,
30,
13773,
19724,
... |
if (super.checkParameters(req, res, params) == false) { | if (super.checkParameters(req, res, params) == false){ | public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets validate the session, e.g has the user logged in to Janus? //mste kolla s att metoden funkar i ChatBase if (super.checkSession(req,res) == false) return ; // Lets get the standard SESSION parameters and validate them //mste ox kollas s att de funkar Properties params = this.getSessionParameters(req) ; if (params == null) { log("the params was null so return"); return; } //log("params :"+params); if (super.checkParameters(req, res, params) == false) { log("return i checkparameters"); return ; } // Lets get the user object //mste kolla s att metoden funkar i ChatBase imcode.server.User user = super.getUserObj(req,res) ; if(user == null) return ; if ( !isUserAuthorized( req, res, user ) ) { log("user not authorized"); return; } // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; String confPoolServer = Utility.getDomainPref("chat_server",host) ; // Lets get the url to the servlets directory //mste kolla s att det r till rtt server String servletHome = MetaInfo.getServletPath(req) ; servletHome += "ChatBoard"; // Lets get parameters String metaId = params.getProperty("META_ID") ; //log("metaId = "+metaId); // int metaId = Integer.parseInt( metaId ); String aChatId = params.getProperty("CHAT_ID") ;//=id strngen fr chatten ???? // log("aChatId = "+aChatId); HttpSession session = req.getSession(false) ; ServletContext myContext = getServletContext(); //ok lets get the settings //this buffer is used to store all the msgs to send to the page StringBuffer sendMsgString = new StringBuffer(""); String chatRefresh = ""; //ok let's get all the messages and add them into the buffer if (true)//(req.getParameter("ROOM_ID") != null ) { //log("nu r vi inne"); if(session == null) { log("session was null so return"); return; } ChatMember myMember = (ChatMember)session.getValue("theChatMember"); if (myMember==null) { log("membern was null so return"); return; } Chat myChat = myMember.getMyParent(); if (myChat==null) { log("myChat was null so return"); return; } ChatGroup myGrupp = myMember.getMyGroup(); if (myGrupp==null) { log("myGrupp was null so return"); return; } File templetUrl = super.getExternalTemplateFolder(req); HtmlGenerator generator = new HtmlGenerator(templetUrl,HTML_LINE); //lets get all the settings for this page Hashtable theSettings = (Hashtable) session.getValue("ChatBoardHashTable"); if (theSettings == null) { log("chatHashTable was null so return"); return; } //lets get it all out from it boolean dateOn = ((Boolean)theSettings.get("dateTimeBoolean")).booleanValue(); boolean publicMsg = ((Boolean)theSettings.get("publicMsgBoolean")).booleanValue(); boolean privateMsg = ((Boolean)theSettings.get("privateMsgBoolean")).booleanValue(); boolean autoReload = ((Boolean)theSettings.get("reloadBoolean")).booleanValue(); boolean inOut = ((Boolean)theSettings.get("inOutBoolean")).booleanValue(); int fontSizeInt = ((Integer)theSettings.get("fontSizeInteger")).intValue(); //log("%%%= "+ fontSizeInt); String time = ((Integer)theSettings.get("reloadInteger")).toString(); //log("reload"+time); String fontSize = Integer.toString(fontSizeInt); //log("autoReload = "+autoReload); //lets set up the autoreload or not if (autoReload) { chatRefresh = "<META HTTP-EQUIV=\"Refresh\" CONTENT=\""+time+";URL="+servletHome +"\">"; } //lets get the ignore-list //doesnt have one yet int lastMsgInt = myMember.getLastMsgNr(); //let's get all the messages ListIterator msgIter = myMember.getMessages(); Vector dataV = new Vector(); //lets fix the html-string containing all messags while(msgIter.hasNext()) { VariableManager vm = new VariableManager(); boolean parse = false; ChatMsg tempMsg = (ChatMsg) msgIter.next(); //must check if it is a public msg if (tempMsg.getMsgType() == 101) { if (privateMsg)//show private messages { if (tempMsg.getReciever() == myMember.getUserId())//ok it's to mee { vm.addProperty("color","Green"); vm.addProperty("size",fontSize); if (dateOn)//show dateTime { vm.addProperty("date",tempMsg.getDateTime()); } else { vm.addProperty("date",""); } vm.addProperty("sender",tempMsg.getSenderStr()); vm.addProperty("msgType",tempMsg.getMsgTypeStr()); vm.addProperty("reciever",tempMsg.getRecieverStr()); vm.addProperty("message",tempMsg.getMessage() ); parse = true; }else if(tempMsg.getSender()== myMember.getUserId())//it's was I who sent it { vm.addProperty("color","Blue"); vm.addProperty("size",fontSize); if (dateOn)//show dateTime { vm.addProperty("date",tempMsg.getDateTime()); } else { vm.addProperty("date",""); } vm.addProperty("sender",tempMsg.getSenderStr()); vm.addProperty("msgType",tempMsg.getMsgTypeStr()); vm.addProperty("reciever",tempMsg.getRecieverStr()); vm.addProperty("message",tempMsg.getMessage() ); parse = true; } }//end privateMsg }else //it was a public message { if (tempMsg.getMsgType() == CHAT_ENTER_LEAVE_INT)//it's a enter/leave msg { if (inOut)//show enter/leave messages { vm.addProperty("color","Black"); vm.addProperty("size",fontSize); if (dateOn)//show dateTime { vm.addProperty("date",tempMsg.getDateTime()); } else { vm.addProperty("date",""); } vm.addProperty("sender",tempMsg.getSenderStr()); vm.addProperty("msgType",tempMsg.getMsgTypeStr()); vm.addProperty("reciever",tempMsg.getRecieverStr()); vm.addProperty("message",tempMsg.getMessage() ); parse = true; } }else { if (true)//(publicMsg)//show public messages { vm.addProperty("color","Black"); vm.addProperty("size",fontSize); if (dateOn)//show dateTime { vm.addProperty("date",tempMsg.getDateTime()); } else { vm.addProperty("date",""); } vm.addProperty("sender",tempMsg.getSenderStr()); vm.addProperty("msgType",tempMsg.getMsgTypeStr()); vm.addProperty("reciever",tempMsg.getRecieverStr()); vm.addProperty("message",tempMsg.getMessage() ); parse = true; } } }//end it was a public message //lets parse this line if (parse) { sendMsgString.append(generator.createHtmlString(vm, req)+"<br>\n"); if (lastMsgInt == tempMsg.getIdNumber()) { sendMsgString.append("<a name='#bottom'></a><hr>\n"); } } }//end while loop }//end if (req.getParameter("ROOM_ID") != null ) res.setHeader("Cashe-Control","no-cache"); res.setHeader("Pragma","no-cache"); //<META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.????.com"> //log("chatRefresh = "+chatRefresh); VariableManager vm = new VariableManager() ; vm.addProperty("CHAT_REFRESH", chatRefresh); vm.addProperty("CHAT_MESSAGES", sendMsgString.toString() ); this.sendHtml(req,res,vm, HTML_TEMPLATE) ; // this.showSession(req) ; //log("ChatBoard doGet r frdig") ; } //*** end DoGet ***** end doGet ***** end doGet ***** end doGet *** | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/430d9ed54a9461e77ea6e2de9ce4a477357217e2/ChatBoard.java/buggy/servlets/chat/ChatBoard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
23611,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
202,
95,
202,
202,
759,
511,
2413,
1954,
326,
1339,
16,
425,
18,
75,
711,
326,
729,
7545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
23611,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
202,
95,
202,
202,
759,
511,
2413,
1954,
326,
1339,
16,
425,
18,
75,
711,
326,
729,
7545,
... |
final MondrianProperties properties = MondrianProperties.instance(); Test test = suite(); if (properties.getWarmup()) { System.out.println("Starting warmup run..."); MondrianTestRunner runner = new MondrianTestRunner(); TestResult tres = runner.doRun(test); if (!tres.wasSuccessful()) { System.out.println("Warmup run failed. Regular tests will not be run."); System.exit(1); } System.out.println("Warmup run complete. Starting regular run..."); } MondrianTestRunner runner = new MondrianTestRunner(); runner.setIterations(properties.getIterations()); runner.setVUsers(properties.getVUsers()); runner.setTimeLimit(properties.getTimeLimit()); | final MondrianProperties properties = MondrianProperties.instance(); Test test = suite(); if (properties.getWarmup()) { System.out.println("Starting warmup run..."); MondrianTestRunner runner = new MondrianTestRunner(); TestResult tres = runner.doRun(test); if (!tres.wasSuccessful()) { System.out.println("Warmup run failed. Regular tests will not be run."); System.exit(1); } System.out.println("Warmup run complete. Starting regular run..."); } MondrianTestRunner runner = new MondrianTestRunner(); runner.setIterations(properties.getIterations()); runner.setVUsers(properties.getVUsers()); runner.setTimeLimit(properties.getTimeLimit()); | void run(String[] args) throws Exception { final MondrianProperties properties = MondrianProperties.instance(); Test test = suite(); if (properties.getWarmup()) { System.out.println("Starting warmup run..."); MondrianTestRunner runner = new MondrianTestRunner(); TestResult tres = runner.doRun(test); if (!tres.wasSuccessful()) { System.out.println("Warmup run failed. Regular tests will not be run."); System.exit(1); } System.out.println("Warmup run complete. Starting regular run..."); } MondrianTestRunner runner = new MondrianTestRunner(); runner.setIterations(properties.getIterations()); runner.setVUsers(properties.getVUsers()); runner.setTimeLimit(properties.getTimeLimit()); TestResult tres = runner.doRun(test); if (!tres.wasSuccessful()) System.exit(1); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/Main.java/clean/testsrc/main/mondrian/test/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1086,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
6385,
490,
1434,
566,
304,
2297,
1790,
273,
490,
1434,
566,
304,
2297,
18,
1336,
5621,
202,
202,
4709,
1842,
273,
113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1086,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
6385,
490,
1434,
566,
304,
2297,
1790,
273,
490,
1434,
566,
304,
2297,
18,
1336,
5621,
202,
202,
4709,
1842,
273,
113... |
{ if (isReadOnly(column)) return true; else return false; } | { if (isReadOnly(column)) return true; else return false; } | public boolean isWritable(int column) throws SQLException { if (isReadOnly(column)) return true; else return false; } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSetMetaData.java/clean/src/interfaces/jdbc/postgresql/ResultSetMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
12061,
12,
474,
1057,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
291,
12066,
12,
2827,
3719,
1082,
202,
2463,
638,
31,
202,
202,
12107,
1082,
202,
2463,
629,
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,
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,
1250,
353,
12061,
12,
474,
1057,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
291,
12066,
12,
2827,
3719,
1082,
202,
2463,
638,
31,
202,
202,
12107,
1082,
202,
2463,
629,
31,
... |
public void setVisibleRowCount(int visibleRowCount) { visibles = visibleRowCount; invalidate(); repaint(); } | public void setVisibleRowCount(int vc) { visibleRowCount = vc; revalidate(); repaint(); } | public void setVisibleRowCount(int visibleRowCount) { visibles = visibleRowCount; invalidate(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0788b89b7368770a1157f825d60dd8c5a9df183e/JList.java/buggy/core/src/classpath/javax/javax/swing/JList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
16697,
26359,
12,
474,
6021,
26359,
13,
565,
288,
202,
3516,
495,
1040,
273,
225,
6021,
26359,
31,
202,
5387,
340,
5621,
202,
14462,
1598,
5621,
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,
16697,
26359,
12,
474,
6021,
26359,
13,
565,
288,
202,
3516,
495,
1040,
273,
225,
6021,
26359,
31,
202,
5387,
340,
5621,
202,
14462,
1598,
5621,
565,
289,
2,
-100,
-100,
-100,
... |
if (getTable() != null) { | if (getTable() != null) { | public RubyObject eval(Ruby ruby, RubyObject self) { CRefNode savedCRef = null; ruby.getRubyFrame().tmpPush(); ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { savedCRef = ruby.getCRef(); ruby.setCRef(lRefValue); ruby.getRubyFrame().setCbase(lRefValue); } if (getTable() != null) { ruby.getScope().setLocalValues(new ArrayList(Collections.nCopies(getTable().size(), ruby.getNil()))); ruby.getScope().setLocalNames(getTable()); } /* else { ruby.getRubyScope().setLocalValues(null); ruby.getRubyScope().setLocalNames(null); }*/ // unneeded, it is done in RubyScope.push() Benoit RubyObject result = getNextNode().eval(ruby, self); ruby.getScope().pop(); ruby.getRubyFrame().tmpPop(); if (savedCRef != null) { ruby.setCRef(savedCRef); } return result; } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/7798138390a306a202dcec9bde45928dae2e852e/ScopeNode.java/buggy/org/jruby/nodes/ScopeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
202,
202,
39,
1957,
907,
5198,
39,
1957,
273,
446,
31,
202,
202,
27768,
18,
588,
54,
10340,
3219,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
202,
202,
39,
1957,
907,
5198,
39,
1957,
273,
446,
31,
202,
202,
27768,
18,
588,
54,
10340,
3219,
7675,
... |
public abstract long getLength(File f) throws IOException; | public long getLength(File f) throws IOException { return getLength(new Path(f.toString())); } | public abstract long getLength(File f) throws IOException; | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/ee01fef4b4fb82c7492a4a747793839a4d14cd39/FileSystem.java/buggy/src/java/org/apache/hadoop/fs/FileSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
1525,
9888,
12,
812,
284,
13,
1216,
1860,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
1525,
9888,
12,
812,
284,
13,
1216,
1860,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for(Bot b : this.botsToStop) | for(Bot b : this.botsToStop) { | private synchronized void startBots() { // TODO: Shuold be a set? for(Bot b : this.botsToStart) this.botList.add(b); for(Bot b : this.botsToStop) b.stop(); for(Bot b : this.botsToStart) { b.start(); // TODO: //((CtBot)b).setSensRc5(CtBot.RC5_CODE_5); System.out.println("Bot gestartet: "+b.getName()); //$NON-NLS-1$ } this.botsToStart = new ArrayList<Bot>(); } | 49082 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49082/d5082b658b3a52a12a04b5b29a9d86877a2f2b55/Controller.java/buggy/ctSim/controller/Controller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
787,
6522,
87,
1435,
288,
9506,
202,
759,
2660,
30,
2638,
89,
1673,
506,
279,
444,
35,
202,
202,
1884,
12,
6522,
324,
294,
333,
18,
4819,
11634,
1685,
13,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
787,
6522,
87,
1435,
288,
9506,
202,
759,
2660,
30,
2638,
89,
1673,
506,
279,
444,
35,
202,
202,
1884,
12,
6522,
324,
294,
333,
18,
4819,
11634,
1685,
13,
1082,
... |
AST tmp616_AST_in = (AST)_t; | AST tmp615_AST_in = (AST)_t; | public final void array_subscript(AST _t) throws RecognitionException { AST array_subscript_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1598 = _t; AST tmp614_AST_in = (AST)_t; match(_t,Array_subscript); _t = _t.getFirstChild(); AST tmp615_AST_in = (AST)_t; match(_t,LEFTBRACE); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST tmp616_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); expression(_t); _t = _retTree; break; } case RIGHTBRACE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp617_AST_in = (AST)_t; match(_t,RIGHTBRACE); _t = _t.getNextSibling(); _t = __t1598; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
526,
67,
1717,
4263,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
526,
67,
1717,
4263,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
526,
67,
1717,
4263,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
526,
67,
1717,
4263,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
... |
System.getProperty("line.separator") + methodCall.getReifiedMethod(); | System.getProperty("line.separator") + methodCall.getReifiedMethod(); | private Object invokeOnBody(MethodCall methodCall) throws Exception, RenegotiateSessionException, Throwable { // Now gives the MethodCall object to the body try { if (isOneWayCall(methodCall)) { reifyAsOneWay(methodCall); return null; } String reason = methodCall.getSynchronousReason(); if (reason == null) { return reifyAsAsynchronous(methodCall); } if (syncCallLogger.isEnabledFor(Level.WARN)) { String msg = "SYNC: Synchronous Method Call: " + reason + System.getProperty("line.separator") + methodCall.getReifiedMethod(); if (loggedSyncCalls.add(msg)) { syncCallLogger.warn(msg); } } return reifyAsSynchronous(methodCall); } catch (MethodCallExecutionFailedException e) { throw new ProActiveRuntimeException(e.getMessage(), e.getTargetException()); } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/e49bec3d5af79e5511e71fa2ce4235855b0d0324/AbstractBodyProxy.java/buggy/src/org/objectweb/proactive/core/body/proxy/AbstractBodyProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
4356,
1398,
2250,
12,
12592,
707,
1477,
13,
3639,
1216,
1185,
16,
25921,
27445,
3840,
2157,
503,
16,
4206,
288,
3639,
368,
4494,
14758,
326,
2985,
1477,
733,
358,
326,
1417,
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,
1033,
4356,
1398,
2250,
12,
12592,
707,
1477,
13,
3639,
1216,
1185,
16,
25921,
27445,
3840,
2157,
503,
16,
4206,
288,
3639,
368,
4494,
14758,
326,
2985,
1477,
733,
358,
326,
1417,
3... |
mComponent.setSize(currentSize); | public int print(Graphics g, PageFormat pageFormat, int pageIndex){ System.out.println("PRIIIIINT"); if (pageIndex > 0) return NO_SUCH_PAGE; pageFormat.setOrientation(PageFormat.LANDSCAPE); Graphics2D g2 = (Graphics2D)g; g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY()); boolean wasBuffered = disableDoubleBuffering(mComponent); Dimension currentSize = mComponent.getSize(); System.out.println((int)pageFormat.getImageableWidth() + " " + (int)pageFormat.getImageableHeight()); //mComponent.setSize(new Dimension((int)pageFormat.getImageableWidth(), (int)pageFormat.getImageableHeight())); mComponent.paint(g2); mComponent.setSize(currentSize); restoreDoubleBuffering(mComponent, wasBuffered); return PAGE_EXISTS; } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/05fbd6f8f93e8d8ee584af92a8f3b25af932b163/ComponentPrintable.java/buggy/src/edu/sc/seis/fissuresUtil/display/ComponentPrintable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1172,
12,
17558,
314,
16,
3460,
1630,
1363,
1630,
16,
509,
1363,
1016,
15329,
202,
3163,
18,
659,
18,
8222,
2932,
7698,
6954,
45,
3217,
8863,
202,
430,
261,
2433,
1016,
405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1172,
12,
17558,
314,
16,
3460,
1630,
1363,
1630,
16,
509,
1363,
1016,
15329,
202,
3163,
18,
659,
18,
8222,
2932,
7698,
6954,
45,
3217,
8863,
202,
430,
261,
2433,
1016,
405,
... | |
if (Character.isLetterOrDigit(type)) { openQuote = support.read(); } else { type = 'Q'; } | if (Character.isLetterOrDigit(type)) { openQuote = support.read(); } else { type = 'Q'; } | private int parseQuotation() { char type = support.read(); char openQuote = type; if (Character.isLetterOrDigit(type)) { openQuote = support.read(); } else { type = 'Q'; } if (type == '\0' || openQuote == '\0') { errorHandler.handleError(IErrors.COMPILE_ERROR, support.getPosition(), Messages.getString("unterminated_quoted_string")); //$NON-NLS-1$ return 0; } char closeQuote = openQuote; if (openQuote == '(') { closeQuote = ')'; } else if (openQuote == '[') { closeQuote = ']'; } else if (openQuote == '{') { closeQuote = '}'; } else if (openQuote == '<') { closeQuote = '>'; } else { openQuote = '\0'; } switch (type) { case 'Q' : return parseString('"', closeQuote, openQuote); case 'q' : return parseSingleQuotedString(closeQuote, openQuote); case 'w' : return parseQuotedWords(closeQuote, openQuote); case 'x' : return parseString('`', closeQuote, openQuote); case 'r' : return parseRegexp(closeQuote, openQuote); default : errorHandler.handleError(IErrors.SYNTAX_ERROR, support.getPosition(), Messages.getString("unknown_quotation_type", Character.toString(type))); //$NON-NLS-1$ return 0; } } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
509,
1109,
7678,
367,
1435,
288,
1082,
202,
3001,
618,
273,
2865,
18,
896,
5621,
1082,
202,
3001,
1696,
10257,
273,
618,
31,
1082,
202,
430,
261,
7069,
18,
291,
13938,
1162,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
509,
1109,
7678,
367,
1435,
288,
1082,
202,
3001,
618,
273,
2865,
18,
896,
5621,
1082,
202,
3001,
1696,
10257,
273,
618,
31,
1082,
202,
430,
261,
7069,
18,
291,
13938,
1162,
... |
for(int i=0;i<dataURIs.length;i++) { if(dataURIs[i] == null) { Logger.error(this, "Data URI "+i+" is null"); return; | for(int i=0;i<dataURIs.length;i++) { if(dataURIs[i] == null) { Logger.error(this, "Data URI "+i+" is null"); return; } | public void onEncode(ClientKey key, ClientPutState state) { SingleBlockInserter sbi = (SingleBlockInserter)state; int x = sbi.token; synchronized(this) { if(finished) return; if(x >= dataBlocks.length) { if(checkURIs[x-dataBlocks.length] != null) { Logger.normal(this, "Got uri twice for check block "+x+" on "+this); return; } checkURIs[x-dataBlocks.length] = key.getURI(); } else { if(dataURIs[x] != null) { Logger.normal(this, "Got uri twice for data block "+x+" on "+this); return; } dataURIs[x] = key.getURI(); } blocksGotURI++; if(blocksGotURI != dataBlocks.length + checkBlocks.length) return; } // Double check for(int i=0;i<checkURIs.length;i++) if(checkURIs[i] == null) { Logger.error(this, "Check URI "+i+" is null"); return; } for(int i=0;i<dataURIs.length;i++) { if(dataURIs[i] == null) { Logger.error(this, "Data URI "+i+" is null"); return; } } parent.segmentHasURIs(this); } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/4ca04e00097bc75c6db60d8f51a8350367f45de2/SplitFileInserterSegment.java/clean/src/freenet/client/async/SplitFileInserterSegment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
603,
5509,
12,
1227,
653,
498,
16,
2445,
6426,
1119,
919,
13,
288,
202,
202,
5281,
1768,
382,
550,
387,
2393,
77,
273,
261,
5281,
1768,
382,
550,
387,
13,
2019,
31,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
603,
5509,
12,
1227,
653,
498,
16,
2445,
6426,
1119,
919,
13,
288,
202,
202,
5281,
1768,
382,
550,
387,
2393,
77,
273,
261,
5281,
1768,
382,
550,
387,
13,
2019,
31,
202... |
if(max == null) { this.appliedConstraints.remove( MAX_CONSTRAINT ); return; } | if(max == null) { this.appliedConstraints.remove( MAX_CONSTRAINT ); return; } | public void setMax(Comparable max) { if(max == null) { this.appliedConstraints.remove( MAX_CONSTRAINT ); return; } if(!propertyType.equals( max.getClass() )) { throw new MissingPropertyException(MAX_CONSTRAINT,propertyType); } Range r = getRange(); if(r != null) { LOG.warn("Range constraint already set ignoring constraint ["+MAX_CONSTRAINT+"] for value ["+max+"]"); return; } Constraint c = (MaxConstraint)this.appliedConstraints.get( MAX_CONSTRAINT ); if(c != null) { c.setParameter(max); } else { c = new MaxConstraint(); c.setOwningClass(this.owningClass); c.setPropertyName(this.propertyName); c.setParameter(max); this.appliedConstraints.put( MAX_CONSTRAINT, c ); } } | 6460 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6460/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/buggy/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10851,
12,
799,
10207,
943,
13,
288,
202,
202,
430,
12,
1896,
422,
446,
13,
288,
1082,
202,
2211,
18,
438,
3110,
4878,
18,
4479,
12,
4552,
67,
15199,
11272,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10851,
12,
799,
10207,
943,
13,
288,
202,
202,
430,
12,
1896,
422,
446,
13,
288,
1082,
202,
2211,
18,
438,
3110,
4878,
18,
4479,
12,
4552,
67,
15199,
11272,
1082,
202,
... |
assert _annoAstNode != null : "annotation ast node missing."; | assert _domAnnotation != null : "annotation node missing."; | public AnnotationMirrorImpl(Annotation annotationAstNode, DeclarationImpl decl, ProcessorEnvImpl env) { _annoAstNode = annotationAstNode; _env = env; _annotated = decl; assert _annoAstNode != null : "annotation ast node missing."; assert _annotated != null : "missing the declaration that is annotated with this annotation."; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/2ed8d2842cd060fd2ed1992ac37d7e3f157e19c9/AnnotationMirrorImpl.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/declaration/AnnotationMirrorImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6090,
13035,
2828,
12,
3257,
3204,
21385,
907,
16,
16110,
4302,
2828,
3496,
16,
15476,
3491,
2828,
1550,
13,
565,
288,
3639,
389,
1072,
83,
21385,
907,
273,
3204,
21385,
907,
31,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6090,
13035,
2828,
12,
3257,
3204,
21385,
907,
16,
16110,
4302,
2828,
3496,
16,
15476,
3491,
2828,
1550,
13,
565,
288,
3639,
389,
1072,
83,
21385,
907,
273,
3204,
21385,
907,
31,
36... |
void last( int groupLevel ) throws DataException | public void last( int groupLevel ) throws DataException | void last( int groupLevel ) throws DataException { if ( groupLevel > groups.length || groupLevel < 0 ) throw new DataException( ResourceConstants.INVALID_GROUP_LEVEL, new Integer( groupLevel ) ); groupLevel--; // change to 0-based index // First find current group at the specified group level int currentGroupIdx = -1; if ( groupLevel >= 0 ) currentGroupIdx = findCurrentGroup( groupLevel ); if ( groupLevel < 0 || // an input of 0 means moving to last row in // list currentGroupIdx >= groups[groupLevel].size( ) - 1 ) { // Move to last row in entire list // Last row is in the last leaf group int currentRowID = cacheProvider.getCount( ) - 1; cacheProvider.moveTo( currentRowID ); if ( groups.length > 0 ) leafGroupIdx = groups[groups.length - 1].size( ) - 1; return; } // Find first row in the next group ++currentGroupIdx; for ( int i = groupLevel + 1; i < groups.length; i++ ) { currentGroupIdx = findGroup( i - 1, currentGroupIdx ).firstChild; } // Move back one row and one leaf group int currentRowID = findGroup( groups.length - 1, currentGroupIdx ).firstChild - 1; cacheProvider.moveTo( currentRowID ); leafGroupIdx = currentGroupIdx - 1; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/5ec5d7f41b491569b61310c9e9a0a719aa271a7c/RDGroupUtil.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/RDGroupUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1142,
12,
509,
1041,
2355,
262,
1216,
1910,
503,
202,
95,
202,
202,
430,
261,
1041,
2355,
405,
3252,
18,
2469,
747,
1041,
2355,
411,
374,
262,
1082,
202,
12849,
394,
1910,
50... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1142,
12,
509,
1041,
2355,
262,
1216,
1910,
503,
202,
95,
202,
202,
430,
261,
1041,
2355,
405,
3252,
18,
2469,
747,
1041,
2355,
411,
374,
262,
1082,
202,
12849,
394,
1910,
50... |
} else { | } else { | protected Version getCvsServerVersion() { if (cvsServerVersion == null) { Commandline commandLine = getCommandline(); commandLine.setExecutable("cvs"); if (cvsroot != null) { commandLine.createArgument().setValue("-d"); commandLine.createArgument().setValue(cvsroot); } commandLine.createArgument().setLine("version"); Process p = null; try { if (local != null) { commandLine.setWorkingDirectory(local); } p = commandLine.execute(); logErrorStream(p); InputStream is = p.getInputStream(); BufferedReader in = new BufferedReader(new InputStreamReader(is)); String line = in.readLine(); if (line.startsWith("Client:")) { line = in.readLine(); if (!line.startsWith("Server:")) { System.err.println("Warning expected a line starting with \"Server:\" but got " + line); // we try anyway } } log.debug("server version line: " + line); int nameBegin = line.indexOf(" ("); int nameEnd = line.indexOf(") ", nameBegin); final String name; final String version; if (nameBegin == -1 || nameEnd < nameBegin || nameBegin + 2 >= line.length()) { name = ""; } else { name = line.substring(nameBegin + 2, nameEnd); } int verEnd = line.indexOf(" ", nameEnd + 2); if (verEnd < nameEnd + 2) { version = ""; } else { version = line.substring(nameEnd + 2, verEnd); } cvsServerVersion = new Version(name, version); log.debug("cvs server version: " + cvsServerVersion); p.waitFor(); p.getInputStream().close(); p.getOutputStream().close(); p.getErrorStream().close(); } catch (Exception e) { log.error("Failed reading cvs server version", e); } if (p == null || p.exitValue() != 0) { if (p == null) { log.debug("Process p was null in CVS.getCvsServerVersion()"); } else { log.debug("Process exit value = " + p.exitValue()); } cvsServerVersion = new Version(OFFICIAL_CVS_NAME, "1.11"); log.warn("problem getting cvs server version; using " + cvsServerVersion); } } return cvsServerVersion; } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/3dc2955cbddc28afb10935d8a683adfc2d687708/CVS.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/CVS.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4049,
1927,
6904,
2081,
1444,
1435,
288,
3639,
309,
261,
71,
6904,
2081,
1444,
422,
446,
13,
288,
5411,
3498,
1369,
20894,
273,
12856,
1369,
5621,
5411,
20894,
18,
542,
17709,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4049,
1927,
6904,
2081,
1444,
1435,
288,
3639,
309,
261,
71,
6904,
2081,
1444,
422,
446,
13,
288,
5411,
3498,
1369,
20894,
273,
12856,
1369,
5621,
5411,
20894,
18,
542,
17709,
2932,
... |
protected Object generateSignature() throws IllegalStateException { // 1. EMSA-PKCS1-v1_5 encoding: Apply the EMSA-PKCS1-v1_5 encoding // operation (Section 9.2) to the message M to produce an encoded // message EM of length k octets: // // EM = EMSA-PKCS1-V1_5-ENCODE (M, k). // // If the encoding operation outputs "message too long," output // "message too long" and stop. If the encoding operation outputs // "intended encoded message length too short," output "RSA modulus // too short" and stop. final int modBits = ((RSAPrivateKey) privateKey).getModulus().bitLength(); final int k = (modBits + 7) / 8; final byte[] EM = pkcs1.encode(md.digest(), k); // 2. RSA signature: // a. Convert the encoded message EM to an integer message epresentative // m (see Section 4.2): m = OS2IP (EM). final BigInteger m = new BigInteger(1, EM); // b. Apply the RSASP1 signature primitive (Section 5.2.1) to the RSA // private key K and the message representative m to produce an // integer signature representative s: s = RSASP1 (K, m). final BigInteger s = RSA.sign(privateKey, m); // c. Convert the signature representative s to a signature S of length // k octets (see Section 4.1): S = I2OSP (s, k). // 3. Output the signature S. return RSA.I2OSP(s, k); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAPKCS1V1_5Signature.java/buggy/core/src/classpath/gnu/gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
921,
7163,
5374,
1435,
15069,
12195,
5060,
95,
759,
21,
18,
3375,
5233,
17,
26044,
21,
17,
90,
21,
67,
25,
5999,
30,
7001,
5787,
3375,
5233,
17,
26044,
21,
17,
90,
21,
67,
25,
5999,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
921,
7163,
5374,
1435,
15069,
12195,
5060,
95,
759,
21,
18,
3375,
5233,
17,
26044,
21,
17,
90,
21,
67,
25,
5999,
30,
7001,
5787,
3375,
5233,
17,
26044,
21,
17,
90,
21,
67,
25,
5999,
... | ||
int total_inf_and_proto_turns = 0; int total_oth_turns = 0; int idx; | int total_last_turns = 0; int total_normal_turns = 0; int index; | public static TurnVectors generateTurnOrder(Vector v, boolean infAndProtosLast) { int[] num_inf_and_proto_turns = new int[v.size()]; int[] num_oth_turns = new int[v.size()]; int total_inf_and_proto_turns = 0; int total_oth_turns = 0; int idx; TurnOrdered[] order = new TurnOrdered[v.size()]; int oi = 0; com.sun.java.util.collections.ArrayList plist = new com.sun.java.util.collections.ArrayList(v.size()); for (Enumeration i = v.elements(); i.hasMoreElements();) { Object item = i.nextElement(); plist.add(item); } com.sun.java.util.collections.Collections.sort(plist, new com.sun.java.util.collections.Comparator() { public int compare(Object o1, Object o2) { return ((TurnOrdered)o1).getInitiative().compareTo(((TurnOrdered)o2).getInitiative()); } }); for (com.sun.java.util.collections.Iterator i = plist.iterator(); i.hasNext();) { final TurnOrdered item = (TurnOrdered)i.next(); order[oi] = item; // If infantry/protos are last, separate them. // Otherwise, place all 'turns' in one pile if (infAndProtosLast) { num_inf_and_proto_turns[oi] = item.getInfantryAndProtomechCount(); num_oth_turns[oi] = item.getTankCount() + item.getMechCount(); } else { num_inf_and_proto_turns[oi] = 0; num_oth_turns[oi] = item.getTankCount() + item.getMechCount() + item.getInfantryAndProtomechCount(); } total_inf_and_proto_turns += num_inf_and_proto_turns[oi]; total_oth_turns += num_oth_turns[oi]; oi++; } int min; int turns_left; TurnVectors turns = new TurnVectors(total_oth_turns, total_inf_and_proto_turns); // We will do the 'other' units first (mechs and vehicles, and // if infAndProtosLast is false, infantry and protomechs) min = Integer.MAX_VALUE; for(idx = 0; idx < oi ; idx++) { if ( num_oth_turns[idx] != 0 && num_oth_turns[idx] < min) min = num_oth_turns[idx]; } turns_left = total_oth_turns; while(turns_left > 0) { for(idx = 0; idx < oi; idx++) { // If you have no turns here, skip if (num_oth_turns[idx] == 0) continue; /* If you have less than twice the lowest, move 1. Otherwise, move more. */ int ntm = (int)Math.floor( ((double)num_oth_turns[idx]) / ((double)min) ); for (int j = 0; j < ntm; j++) { turns.non_infantry_non_protomechs.addElement(order[idx]); num_oth_turns[idx]--; turns_left--; } } // Since the smallest unit count had to place 1, reduce min) min--; } // Now, we do the 'infantry/protomech' turns. if (infAndProtosLast) { min = Integer.MAX_VALUE; for(idx = 0; idx < oi ; idx++) { if ( num_inf_and_proto_turns[idx] != 0 && num_inf_and_proto_turns[idx] < min) min = num_inf_and_proto_turns[idx]; } turns_left = total_inf_and_proto_turns; while(turns_left > 0) { for(idx = 0; idx < oi; idx++) { // If you have no turns here, skip if (num_inf_and_proto_turns[idx] == 0) continue; /* If you have less than twice the lowest, move 1. Otherwise, move more. */ int ntm = (int)Math.floor( ((double)num_inf_and_proto_turns[idx]) / ((double)min) ); for (int j = 0; j < ntm; j++) { turns.infantry_and_protomechs.addElement(order[idx]); num_inf_and_proto_turns[idx]--; turns_left--; } } // Since the smallest unit count had to place 1, reduce min) min--; } } return turns; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/6fa7a915a9c48dac94fa163b03ae6a0e99765cad/TurnOrdered.java/clean/megamek/src/megamek/common/TurnOrdered.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22425,
21680,
2103,
15858,
2448,
12,
5018,
331,
16,
1250,
8286,
1876,
626,
14627,
3024,
13,
565,
288,
202,
474,
8526,
818,
67,
10625,
67,
464,
67,
9393,
67,
20922,
87,
273,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22425,
21680,
2103,
15858,
2448,
12,
5018,
331,
16,
1250,
8286,
1876,
626,
14627,
3024,
13,
565,
288,
202,
474,
8526,
818,
67,
10625,
67,
464,
67,
9393,
67,
20922,
87,
273,
3... |
public void execute(JobExecutionContext context) throws JobExecutionException { String jobName = context.getJobDetail().getFullName(); // if the job is recovering print a message if (context.isRecovering()) { _log.info("SimpleRecoveryJob: " + jobName + " RECOVERING at " + new Date()); } else { _log.info("SimpleRecoveryJob: " + jobName + " starting at " + new Date()); } // delay for ten seconds long delay = 10L * 1000L; try { Thread.sleep(delay); } catch (Exception e) { } JobDataMap data = context.getJobDetail().getJobDataMap(); int count; if (data.containsKey(COUNT)) { count = data.getInt(COUNT); } else { count = 0; } count++; data.put(COUNT, count); _log.info("SimpleRecoveryJob: " + jobName + " done at " + new Date() + "\n Execution #" + count); } | 3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/8441c8be6e16f3f87693ab6cfeae2bf90caf7159/SimpleRecoveryJob.java/buggy/examples/src/java/org/quartz/examples/example13/SimpleRecoveryJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
31498,
1042,
819,
13,
1082,
202,
15069,
3956,
14576,
288,
202,
202,
780,
17833,
273,
819,
18,
588,
2278,
6109,
7675,
588,
19223,
5621,
202,
202,
759,
309,
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,
225,
202,
482,
918,
1836,
12,
31498,
1042,
819,
13,
1082,
202,
15069,
3956,
14576,
288,
202,
202,
780,
17833,
273,
819,
18,
588,
2278,
6109,
7675,
588,
19223,
5621,
202,
202,
759,
309,
326,
... | ||
protected void setKeyboardActions() { Action deleteAction = new AbstractAction() { public void actionPerformed(ActionEvent evt) { MatrixTreeNode[] nodes = getSelectionNodes(); if (nodes == null) { return; } DeleteDialog deleteDialog = DeleteDialog.getDeleteDialog(nodes, getLocationOnScreen(), getSize()); deleteDialog.show(); //deleteDialog.setVisible(true); //GUIUtilities.showInScreenCenter(deleteDialog); } }; Action searchAction = new AbstractAction() { public void actionPerformed(ActionEvent evt) { Point topLeft = new Point(getLocationOnScreen()); SearchDialog searchDialog = SearchDialog.getSearchDialog(topLeft, getSize()); searchDialog.show(); } }; /* Action openSelectionAction = new AbstractAction() { public void actionPerformed(ActionEvent evt) { MatrixTreeNode[] nodes = getSelectionNodes(); if (nodes == null) { return; } SelectionDialog selectionDialog = SelectionDialog.getSelectionDialog(nodes); GUIUtilities.showInScreenCenter(selectionDialog); } }; Action createSelectionAction = new AbstractAction() { public void actionPerformed(ActionEvent evt) { createSelection(); } };*/ /*Action findAssetAction = new AbstractAction() { public void actionPerformed(ActionEvent evt) { } };*/ getInputMap().put(KeyStroke.getKeyStroke("DELETE"), "delete"); getActionMap().put("delete", deleteAction); getInputMap().put(KeyStroke.getKeyStroke("shift ctrl J"), "search"); getActionMap().put("search", searchAction); /*getInputMap().put(KeyStroke.getKeyStroke("shift ctrl S"), "open selection"); getActionMap().put("open selection", openSelectionAction); getInputMap().put(KeyStroke.getKeyStroke("shift ctrl C"), "create selection"); getActionMap().put("create selection", createSelectionAction); getInputMap().put(KeyStroke.getKeyStroke("shift ctrl A"), "find asset"); getActionMap().put("find asset", findAssetAction);*/ } | 7783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7783/2e0ba0f92c19c555d277beef3df40501c8214d09/MatrixTree.java/buggy/core/lib/asset_map/java/src/net/squiz/matrix/matrixtree/MatrixTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
16696,
3752,
6100,
1435,
288,
202,
202,
1803,
1430,
1803,
273,
394,
4115,
1803,
1435,
288,
1082,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
9506,
202,
4635,
1251... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
16696,
3752,
6100,
1435,
288,
202,
202,
1803,
1430,
1803,
273,
394,
4115,
1803,
1435,
288,
1082,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
9506,
202,
4635,
1251... | ||
super(config); configure(config); } | super(config); configure(config); } | public Max(final Configuration config) throws ConfigurationException, GeneralException { super(config); //long t = System.currentTimeMillis(); configure(config); // System.err.println("init: " + // Long.toString(System.currentTimeMillis() - // t) + "ms"); } | 9123 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9123/cd4ac13f5edb5c26f1268369583e74137315d1bd/Max.java/clean/ExTeX/src/java/de/dante/extex/interpreter/max/Max.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4238,
12,
6385,
4659,
642,
13,
5411,
1216,
22196,
16,
7734,
9544,
503,
288,
3639,
2240,
12,
1425,
1769,
3639,
368,
5748,
268,
273,
2332,
18,
2972,
28512,
5621,
3639,
5068,
12,
1425,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4238,
12,
6385,
4659,
642,
13,
5411,
1216,
22196,
16,
7734,
9544,
503,
288,
3639,
2240,
12,
1425,
1769,
3639,
368,
5748,
268,
273,
2332,
18,
2972,
28512,
5621,
3639,
5068,
12,
1425,... |
public final void addChangeListener(Feature f, ChangeListener cl, ChangeType ct) { if (!f.isUnchanging(ct)) { PFChangeForwarder forwarder = (PFChangeForwarder) forwardersByFeature.get(f); if (forwarder == null) { forwarder = new PFChangeForwarder(f); forwardersByFeature.put(f, forwarder); f.addChangeListener(forwarder, ChangeType.UNKNOWN); } forwarder.addChangeListener(cl, ct); } } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/6af69e6d2e15b3553ee1bc70f261ad615ee61682/ReparentContext.java/clean/src/org/biojava/bio/seq/projection/ReparentContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6385,
6459,
1289,
15744,
12,
4595,
74,
16,
15744,
830,
16,
3043,
559,
299,
15329,
430,
12,
5,
74,
18,
291,
984,
343,
18183,
12,
299,
3719,
95,
22026,
3043,
30839,
1884,
20099,
28657,
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,
1071,
6385,
6459,
1289,
15744,
12,
4595,
74,
16,
15744,
830,
16,
3043,
559,
299,
15329,
430,
12,
5,
74,
18,
291,
984,
343,
18183,
12,
299,
3719,
95,
22026,
3043,
30839,
1884,
20099,
28657,
2... | ||
try | try | public ResultSet executeQuery(String sql) throws SQLException { try { c.ensureInTransaction(); if (!internalExecute(sql)) { throw new SQLException("query did not return a result set: " + sql); } if (c.willEndTransaction()) { ResultSet rs = getCachedResultSet(false); //autocommits. return rs; } // end of if () else { return getResultSet(); } // end of else } catch (ResourceException re) { log.warn("resource exception", re); throw new SQLException("ResourceException: " + re); } // end of try-catch catch (GDSException ge) { throw new SQLException("GDSException: " + ge); } // end of try-catch finally { c.checkEndTransaction(); } // end of finally } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/9cf27406d17b25f7d34d0bda4d11841de282d260/FBStatement.java/buggy/src/org/firebirdsql/jdbc/FBStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10842,
14304,
12,
780,
1847,
13,
1216,
225,
6483,
288,
3639,
775,
540,
288,
5411,
276,
18,
15735,
382,
3342,
5621,
5411,
309,
16051,
7236,
5289,
12,
4669,
3719,
288,
7734,
604,
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,
377,
1071,
10842,
14304,
12,
780,
1847,
13,
1216,
225,
6483,
288,
3639,
775,
540,
288,
5411,
276,
18,
15735,
382,
3342,
5621,
5411,
309,
16051,
7236,
5289,
12,
4669,
3719,
288,
7734,
604,
394,... |
VMRunnerConfiguration config= new VMRunnerConfiguration("org.eclipse.jdt.internal.ui.snippeteditor.ScrapbookMain", classPath); | private boolean doLaunch(IJavaProject p, String mode, IFile page, String[] classPath, ILauncher launcherProxy) { try { IVMRunner runner= getVMRunner(p, mode); if (runner == null) { return false; } VMRunnerConfiguration config= new VMRunnerConfiguration("org.eclipse.jdt.internal.ui.snippeteditor.ScrapbookMain", classPath); //$NON-NLS-1$ ISourceLocator sl= new ProjectSourceLocator(p); try { IPath outputLocation = p.getOutputLocation(); IResource outputFolder = p.getProject().getWorkspace().getRoot().findMember(outputLocation); if (outputFolder == null) { return false; } IPath osPath = outputFolder.getLocation(); java.io.File f = new java.io.File(osPath.toOSString()); URL u = null; try { u = f.toURL(); } catch (MalformedURLException e) { return false; } String url = u.toExternalForm(); config.setProgramArguments(new String[] {url}); } catch (JavaModelException e) { return false; } VMRunnerResult result= runner.run(config); if (result != null) { IDebugTarget dt = result.getDebugTarget(); IBreakpoint magicBreakpoint = createMagicBreakpoint(getMainType(p)); fScrapbookToVMs.put(page, dt); fVMsToScrapbooks.put(dt, page); fVMsToBreakpoints.put(dt, magicBreakpoint); dt.breakpointAdded(magicBreakpoint); Launch newLaunch= new Launch(launcherProxy, mode, page, sl,result.getProcesses(), dt); IDebugUIEventFilter filter = new ScrapbookEventFilter(newLaunch); fVMsToFilters.put(dt, filter); DebugUITools.addEventFilter(filter); DebugPlugin.getDefault().getLaunchManager().registerLaunch(newLaunch); return true; } } catch (CoreException e) { JavaPlugin.log(e); ErrorDialog.openError(JavaPlugin.getActiveWorkbenchShell(), SnippetMessages.getString("ScrapbookLauncher.error.title"), SnippetMessages.getString("ScrapbookLauncher.error.exception"), e.getStatus()); //$NON-NLS-2$ //$NON-NLS-1$ } return false; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/2db0904a35cd95a4d061961dc64f7371c0fa3588/ScrapbookLauncherDelegate.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/snippeteditor/ScrapbookLauncherDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
741,
9569,
12,
45,
5852,
4109,
293,
16,
514,
1965,
16,
467,
812,
1363,
16,
514,
8526,
22503,
16,
467,
28820,
26618,
3886,
13,
288,
202,
202,
698,
288,
1082,
202,
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,
225,
202,
1152,
1250,
741,
9569,
12,
45,
5852,
4109,
293,
16,
514,
1965,
16,
467,
812,
1363,
16,
514,
8526,
22503,
16,
467,
28820,
26618,
3886,
13,
288,
202,
202,
698,
288,
1082,
202,
45,
... | |
{ | { | public Element getElement() { return elt; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3010,
7426,
1435,
565,
288,
565,
327,
11572,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3010,
7426,
1435,
565,
288,
565,
327,
11572,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public static <T extends Enum&NamedEnum> T getEnumElementByValue(final Class<T> enumClass, final String value) { for (final T t : enumClass.getEnumConstants()) { if (Comparing.equal(t.getValue(), value)) { return t; | public static <T extends Enum> T getEnumElementByValue(final Class<T> enumClass, final String value) { if (NamedEnum.class.isAssignableFrom(enumClass)) { for (final T t : enumClass.getEnumConstants()) { if (Comparing.equal(((NamedEnum)t).getValue(), value)) { return t; } | public static <T extends Enum&NamedEnum> T getEnumElementByValue(final Class<T> enumClass, final String value) { for (final T t : enumClass.getEnumConstants()) { if (Comparing.equal(t.getValue(), value)) { return t; } } return null; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4f8dac39610170c27c1c3aa26dad4382b5bfea7d/NamedEnumUtil.java/buggy/source/com/intellij/util/xml/NamedEnumUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
411,
56,
3231,
6057,
10,
7604,
3572,
34,
399,
26813,
1046,
30110,
12,
6385,
1659,
32,
56,
34,
2792,
797,
16,
727,
514,
460,
13,
288,
565,
364,
261,
6385,
399,
268,
294,
279... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
411,
56,
3231,
6057,
10,
7604,
3572,
34,
399,
26813,
1046,
30110,
12,
6385,
1659,
32,
56,
34,
2792,
797,
16,
727,
514,
460,
13,
288,
565,
364,
261,
6385,
399,
268,
294,
279... |
synthetic.reflection.Field m_nsSupport= tClass.declareField("m_nsSupport"); m_nsSupport.setType(tClass.forClass(org.xml.sax.helpers.NamespaceSupport.class)); m_nsSupport.setInitializer("new org.xml.sax.helpers.NamespaceSupport()"); | synthetic.reflection.Field m_nsThreadContexts= tClass.declareField("m_nsThreadContexts"); m_nsThreadContexts.setType(tClass.forClass(java.util.Hashtable.class)); m_nsThreadContexts.setInitializer("new java.util.Hashtable()"); | ElemTemplate compileTemplate(ElemTemplate source) { ElemTemplate instance=source; String className=generateUniqueClassName(); try { // public class ACompiledTemplate000... extends ElemTemplate // implements CompiledTemplate synthetic.Class tClass= synthetic.Class.declareClass(className); tClass.setModifiers(java.lang.reflect.Modifier.PUBLIC); tClass.setSuperClass(ElemTemplate.class); tClass.addImplements(tClass.forName("org.apache.xalan.processor.CompiledTemplate")); // Object[] interpretArray is used to // bind to nodes we don't yet know how to compile. // Set at construction. ElemTemplateElements and AVTs... // Synthesis needs a more elegant way to declare array classes // given a base class... synthetic.reflection.Field interpretArray= tClass.declareField("interpretArray"); // org.apache.xalan.templates.ElemTemplateElement interpretArray.setType(tClass.forName("java.lang.Object[]")); // Namespace context tracking. Note that this is dynamic state // during execution, _NOT_ the static state tied to a single // ElemTemplateElement during parsing//GONK// // TODO: ***** PROBLEM: THIS ISN'T THREADSAFE. It needs to be // a class field rather than an automatic in order to support // callback via getNamespaceForPrefix. But it also needs to be // thread-specific. Unfortunately, that callback doesn't pass // the xctxt as a parameter, so we can't stash it there. // Best thought I've got is a Thread-indexed hashtable... ugh. synthetic.reflection.Field m_nsSupport= tClass.declareField("m_nsSupport"); m_nsSupport.setType(tClass.forClass(org.xml.sax.helpers.NamespaceSupport.class)); m_nsSupport.setInitializer("new org.xml.sax.helpers.NamespaceSupport()"); // And accessor, to let kids query current state synthetic.reflection.Method getNSURI = tClass.declareMethod("getNamespaceForPrefix"); getNSURI.addParameter(tClass.forClass(java.lang.String.class),"nsprefix"); getNSURI.setReturnType(tClass.forClass(java.lang.String.class)); getNSURI.setModifiers(java.lang.reflect.Modifier.PUBLIC); getNSURI.getBody().append( "String nsuri=m_nsSupport.getURI(nsprefix);\n" +"if(null==nsuri || nsuri.length()==0)\n" +"nsuri=m_parentNode.getNamespaceForPrefix(nsprefix);\n" +"return nsuri;\n" ); // public constructor: Copy values from original // template object, pick up "uncompiled children" // array from compilation/instantiation process. synthetic.reflection.Constructor ctor= tClass.declareConstructor(); ctor.setModifiers(java.lang.reflect.Modifier.PUBLIC); ctor.addParameter(tClass.getSuperclass(),"original"); ctor.addParameter(interpretArray.getType(),"interpretArray"); // It'd be easiest in most cases to copy values direct from the // "original" template during instantiation. However, I want to make // as many as possible into literals, for efficiency and debugability. ctor.getBody().append( "org.xml.sax.helpers.LocatorImpl locator=new org.xml.sax.helpers.LocatorImpl();\n" +"locator.setLineNumber("+source.getLineNumber()+");\n" +"locator.setColumnNumber("+source.getColumnNumber()+");\n" +"locator.setPublicId("+makeQuotedString(source.getPublicId())+");\n" +"locator.setSystemId("+makeQuotedString(source.getSystemId())+");\n" +"setLocaterInfo(locator); // yes, or/er clash\n" +"// uncompiled descendents/children\n" +"this.interpretArray=interpretArray;\n" +"// other context values which seem to be needed\n" +"setMatch(original.getMatch());\n" +"setMode(original.getMode());\n" +"setName(original.getName());\n" +"setPriority(original.getPriority());\n" +"setStylesheet(original.getStylesheet());\n\n" //+"setLocatorInfo(new Locator(original.getPublicID(),original.getSystemID()));\n" // Reparent the interpreted ElemTemplateElements, // to break their dependency on interpretive code. // AVTs in this array don't need proceessing, as they are // apparently not directly aware of their Elements. +"for(int i=0;i<interpretArray.length;++i)\n{\n" +"\tif(interpretArray[i] instanceof org.apache.xalan.templates.ElemTemplateElement)\n" +"\t{\n" +"\torg.apache.xalan.templates.ElemTemplateElement ete=(org.apache.xalan.templates.ElemTemplateElement)interpretArray[i];\n" // Append alone is not enough; it's lightweight, and assumes // the child had no previous parent. Need to remove first. // (We know that there _was_ a previous parent, of course!) +"\tappendChild(ete.getParentElem().removeChild(ete));\n" +"\t}\n}\n" ); // Corresponding vector built during compilation Vector interpretVector=new Vector(); // Now for the big guns: the execute() method is where all the // actual work of the template is performed, and is what we've // really set out to compile. // public void execute(TransformerImpl transformer, // Node sourceNode, QName mode) synthetic.reflection.Method exec= tClass.declareMethod("execute"); exec.setModifiers(java.lang.reflect.Modifier.PUBLIC); exec.addParameter( tClass.forClass(org.apache.xalan.transformer.TransformerImpl.class), "transformer"); exec.addParameter( tClass.forClass(org.w3c.dom.Node.class),"sourceNode"); exec.addParameter( tClass.forClass(org.apache.xalan.utils.QName.class),"mode"); exec.addExceptionType( tClass.forClass(org.xml.sax.SAXException.class)); // If there are no kids, the body is a no-op. ElemTemplateElement firstChild = source.getFirstChildElem(); if(null == firstChild) { exec.getBody().append("//empty template"); } else { // Body startup // **** FIRST DRAFT, I'm continuing to use ResultTreeHandler // In future we might want to move toward direct SAX generation, // (though that requires reordering data into normal SAX // event order, generating trace events, and figuring // out how to cooperate w/ template fragments not yet // switched over to compiled mode)... or to raw text output, // though I doubt that's significantly faster than SAX and it's // definitely less convenient if further processing is desired. StringBuffer body=exec.getBody().append( "if(transformer.S_DEBUG)\n" +" transformer.getTraceManager().fireTraceEvent(sourceNode, mode, this);\n" +"org.apache.xalan.transformer.ResultTreeHandler rhandler = transformer.getResultTreeHandler();\n" +"org.xml.sax.ContentHandler saxChandler = rhandler.getContentHandler();\n" +"if(null == sourceNode) {\n" // throws(org.xml.sax.SAXException +" transformer.getMsgMgr().error(this, sourceNode,\n" +" org.apache.xalan.res.XSLTErrorResources.ER_NULL_SOURCENODE_HANDLEAPPLYTEMPLATES);\n" //sourceNode is null in handleApplyTemplatesInstruction! +" return; }\n" +"org.apache.xpath.XPathContext xctxt = transformer.getXPathContext();\n" +"// Check for infinite loops if requested\n" +"boolean check = (transformer.getRecursionLimit() > -1);\n" +"if (check)\n" +" transformer.getStackGuard().push(this, sourceNode);\n" +"String avtStringedValue; // ***** Optimize away?\n\n" ); compileChildTemplates(source,body,interpretVector); body.append( "// Decrement infinite-loop check\n" +"if (check)\n" +" transformer.getStackGuard().pop();\n" ); } // Compile the new class // TODO: ***** ISSUE: Where write out the class? Needs to // be somewhere on the classpath. // TODO: ***** ISSUE: What if file already exists? // I think the answer in this case is "overwrite it.". Class realclass=compileSyntheticClass(tClass,"."); // Prepare the array of execute()ables Object[] eteParms=new Object[interpretVector.size()]; interpretVector.copyInto(eteParms); // Instantiate -- note that this will be a singleton, // as each template is probably unique synthetic.reflection.Constructor c= tClass.getConstructor(ctor.getParameterTypes()); Object[] parms={source,eteParms}; instance=(ElemTemplate)c.newInstance(parms); } catch(synthetic.SynthesisException e) { System.out.println("CompilingStylesheetHandler class synthesis error"); e.printStackTrace(); } catch(java.lang.ClassNotFoundException e) { System.out.println("CompilingStylesheetHandler class resolution error"); e.printStackTrace(); } catch(java.lang.IllegalAccessException e) { System.out.println("CompilingStylesheetHandler class comilation error"); e.printStackTrace(); } catch(java.lang.NoSuchMethodException e) { System.out.println("CompilingStylesheetHandler constructor resolution error"); e.printStackTrace(); } catch(java.lang.InstantiationException e) { System.out.println("CompilingStylesheetHandler constructor invocation error"); e.printStackTrace(); } catch(java.lang.reflect.InvocationTargetException e) { System.out.println("CompilingStylesheetHandler constructor invocation error"); e.printStackTrace(); } return instance; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/0f57c9713ed827ec1bd216de89080c15e075ea16/CompilingStylesheetHandler.java/buggy/src/org/apache/xalan/processor/CompilingStylesheetHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
10223,
2283,
4074,
2283,
12,
7498,
2283,
1084,
13,
225,
288,
565,
10223,
2283,
791,
33,
3168,
31,
565,
514,
2658,
33,
7163,
6303,
3834,
5621,
5411,
775,
565,
288,
3639,
368,
1071,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10223,
2283,
4074,
2283,
12,
7498,
2283,
1084,
13,
225,
288,
565,
10223,
2283,
791,
33,
3168,
31,
565,
514,
2658,
33,
7163,
6303,
3834,
5621,
5411,
775,
565,
288,
3639,
368,
1071,
667,
... |
rows[i]=posX++; cols[i]=posY; | rows[idx]=posX++; cols[idx]=posY; | public static SpaceTimeSchedule layout(Trace[] traces,int row,int col) { SpaceTimeSchedule sched=new SpaceTimeSchedule(row,col); final int len=row*2+col*2-4; int[] rows=new int[len]; int[] cols=new int[len]; rows[0]=0; cols[0]=0; row--; col--; int idx=1; int posX=0; int posY=1; for(;idx<row;idx++) { rows[idx]=posX; cols[idx]=posY++; //System.out.println("("+rows[idx]+","+cols[idx]+")"); } for(int i=0;i<col;i++,idx++) { rows[i]=posX++; cols[i]=posY; //System.out.println("("+rows[i]+","+cols[i]+")"); } for(int i=0;i<row;i++,idx++) { rows[i]=posX; cols[i]=posY--; //System.out.println("("+rows[i]+","+cols[i]+")"); } for(int i=0;i<col;i++,idx++) { rows[i]=posX--; cols[i]=posY; //System.out.println("("+rows[i]+","+cols[i]+")"); } idx=0; final int tracesLen=traces.length; for(int i=0;i<tracesLen;i++) { Trace trace=traces[i]; //System.out.println("Laying out: "+trace); int size=trace.size(); TraceNode filter=trace.getHead().getNext(); //System.out.println(idx); int curRow=rows[idx]; int curCol=cols[idx]; ((FilterTraceNode)filter).setXY(curRow,curCol); sched.addHead(trace,curRow,curCol); idx++; if(idx==len) idx=0; filter=filter.getNext(); for(int j=1;j<size;j++) { //System.out.println(idx); curRow=rows[idx]; curCol=cols[idx]; ((FilterTraceNode)filter).setXY(curRow,curCol); sched.add(trace,curRow,curCol); idx++; if(idx==len) idx=0; filter=filter.getNext(); } } return sched; } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/179ae535baf9a54e1126bc0cf311731f60f77700/TestLayout.java/buggy/streams/src/at/dms/kjc/spacetime/TestLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
14059,
950,
6061,
3511,
12,
3448,
8526,
19649,
16,
474,
1027,
16,
474,
645,
13,
288,
202,
3819,
950,
6061,
23964,
33,
2704,
14059,
950,
6061,
12,
492,
16,
1293,
1769,
202,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14059,
950,
6061,
3511,
12,
3448,
8526,
19649,
16,
474,
1027,
16,
474,
645,
13,
288,
202,
3819,
950,
6061,
23964,
33,
2704,
14059,
950,
6061,
12,
492,
16,
1293,
1769,
202,
63... |
} catch (InterruptedException e) { | } catch (InterruptedException e) { | public void run() { while(!disposing.get()) { if(connector.isStarted()) { UMOEvent event = null; try { try { event = (UMOEvent)queue.take(); UMOMessageAdapter adapter = connector.getMessageAdapter(new MuleMessage(event.getTransformedMessage(), event.getProperties())); routeMessage(new MuleMessage(adapter), event.isSynchronous()); } catch (InterruptedException e) { //ignore } } catch (Exception e) { logger.error("Failed to dispatch event from VM receiver: " + e.getMessage(), e); if(e instanceof UMOException) { connector.getExceptionListener().exceptionThrown(e); } else { connector.getExceptionListener().exceptionThrown(new DispatchException(event.getMessage(), event.getEndpoint(), e)); } } finally { if(event!=null) { queue.remove(event); } } } } } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/28ad5cc0383797e69228b99706befc2cab2cb907/VMMessageReceiver.java/clean/providers/vm/src/java/org/mule/providers/vm/VMMessageReceiver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
565,
288,
3639,
1323,
12,
5,
2251,
24014,
18,
588,
10756,
3639,
288,
5411,
309,
12,
23159,
18,
291,
9217,
10756,
5411,
288,
7734,
587,
5980,
1133,
871,
273,
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,
1086,
1435,
565,
288,
3639,
1323,
12,
5,
2251,
24014,
18,
588,
10756,
3639,
288,
5411,
309,
12,
23159,
18,
291,
9217,
10756,
5411,
288,
7734,
587,
5980,
1133,
871,
273,
446,
... |
if (doDistanceSort) { calculateWeights(molecule); System.out.println("listing atom weights before sorting..."); for (int f = 0; f < atomsToDraw.size(); f++) { atom = (Atom)atomsToDraw.elementAt(f); System.out.println("Atom " + (f + 1) + ": " + atom.getProperty("Weight")); } System.out.println("...done."); Collections.sort(atomsToDraw, ATOM_ORDER); System.out.println("listing atom weights after sorting..."); for (int f = 0; f < atomsToDraw.size(); f++) { atom = (Atom)atomsToDraw.elementAt(f); System.out.println("Atom " + (f + 1) + ": " + atom.getProperty("Weight")); } System.out.println("...done."); } | public void populatePolygonCorners(Vector atomsToDraw, Point2d rotationCenter, double startAngle, double addAngle, double radius, boolean doDistanceSort) { Atom connectAtom = null; double angle = startAngle; double newX; double newY; double x; double y; logger.debug("populatePolygonCorners->startAngle: " + Math.toDegrees(angle)); Vector points = new Vector(); Atom atom = null; if (doDistanceSort) { calculateWeights(molecule); System.out.println("listing atom weights before sorting..."); for (int f = 0; f < atomsToDraw.size(); f++) { atom = (Atom)atomsToDraw.elementAt(f); System.out.println("Atom " + (f + 1) + ": " + atom.getProperty("Weight")); } System.out.println("...done."); Collections.sort(atomsToDraw, ATOM_ORDER); System.out.println("listing atom weights after sorting..."); for (int f = 0; f < atomsToDraw.size(); f++) { atom = (Atom)atomsToDraw.elementAt(f); System.out.println("Atom " + (f + 1) + ": " + atom.getProperty("Weight")); } System.out.println("...done."); } for (int i = 0; i < atomsToDraw.size(); i++) { angle = angle + addAngle; if (angle >= 2 * Math.PI) { angle -= 2 * Math.PI; } logger.debug("populatePolygonCorners->angle: " + Math.toDegrees(angle)); x = Math.cos(angle) * radius; y = Math.sin(angle) * radius; newX = x + rotationCenter.x; newY = y + rotationCenter.y; points.addElement(new Point2d(newX, newY)); try { logger.debug("populatePolygonCorners->connectAtom: " + (molecule.getAtomNumber(connectAtom) + 1) + " placed at " + connectAtom.getPoint2D()); } catch (Exception exc) { //nothing to catch here. This is just for logging } } for (int i = 0; i < atomsToDraw.size(); i++) { connectAtom = (Atom) atomsToDraw.elementAt(i); connectAtom.setPoint2D((Point2d)points.elementAt(i)); connectAtom.setFlag(CDKConstants.ISPLACED, true); } } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/eebdc3ba3a09a01afe679873d6b9f2d6f48e4950/AtomPlacer.java/clean/src/org/openscience/cdk/layout/AtomPlacer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
16,
1250,
741,
7200,
4416,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
16,
1250,
741,
7200,
4416,
13,... | |
String key = (String)i.next(); String value = (String)queryHash.get(key); request.setAttribute(key, value); } | String key = (String)i.next(); String value = (String)queryHash.get(key); request.setAttribute(key, value); } | protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { // Get the query String query = request.getParameter("query"); int start = UIUtil.getIntParameter(request, "start"); String advanced = request.getParameter("advanced"); String fromAdvanced = request.getParameter("from_advanced"); String advancedQuery = ""; HashMap queryHash = new HashMap(); // can't start earlier than 0 in the results! if( start < 0 ) { start = 0; } List itemHandles = new ArrayList(); List collectionHandles = new ArrayList(); List communityHandles = new ArrayList(); Item [] resultsItems; Collection [] resultsCollections; Community [] resultsCommunities; QueryResults qResults = null; QueryArgs qArgs = new QueryArgs(); // if the "advanced" flag is set, build the query string from the // multiple query fields if (advanced != null) { query = qArgs.buildQuery(request); advancedQuery = qArgs.buildHTTPQuery(request); } // Ensure the query is non-null if (query == null) { query = ""; } // Get the location parameter, if any String location = request.getParameter("location"); String newURL; // If there is a location parameter, we should redirect to // do the search with the correct location. if (location != null && !location.equals("")) { String url = ""; if (!location.equals("/")) { // Location is a Handle url = "/handle/" + location; } // Encode the query query = URLEncoder.encode(query); if (advancedQuery.length() > 0) { query = query + "&from_advanced=true&" + advancedQuery; } // Do the redirect response.sendRedirect(response.encodeRedirectURL( request.getContextPath() + url + "/simple-search?query=" + query)); return; } // Build log information String logInfo = ""; // Get our location Community community = UIUtil.getCommunityLocation(request); Collection collection = UIUtil.getCollectionLocation(request); // get the start of the query results page // List resultObjects = null; qArgs.setQuery( query ); qArgs.setStart( start ); // Perform the search try { if (collection != null) { logInfo = "collection_id=" + collection.getID() + ","; // Values for drop-down box request.setAttribute("community", community ); request.setAttribute("collection", collection); qResults = DSQuery.doQuery(context, qArgs, collection); } else if (community != null) { logInfo = "community_id=" + community.getID() + ","; request.setAttribute("community", community); // Get the collections within the community for the dropdown box request.setAttribute("collection.array", community.getCollections()); qResults = DSQuery.doQuery(context, qArgs, community); } else { // Get all communities for dropdown box Community[] communities = Community.findAll(context); request.setAttribute("community.array", communities); qResults = DSQuery.doQuery(context, qArgs); } // now instantiate the results and put them in their buckets for( int i = 0; i < qResults.getHitHandles().size(); i++ ) { String myHandle = (String )qResults.getHitHandles().get(i); Integer myType = (Integer)qResults.getHitTypes().get(i); // add the handle to the appropriate lists switch( myType.intValue() ) { case Constants.ITEM: itemHandles.add( myHandle ); break; case Constants.COLLECTION: collectionHandles.add( myHandle ); break; case Constants.COMMUNITY: communityHandles.add( myHandle ); break; } } int numCommunities = communityHandles.size(); int numCollections = collectionHandles.size(); int numItems = itemHandles.size(); // Make objects from the handles - make arrays, fill them out resultsCommunities = new Community [numCommunities]; resultsCollections = new Collection[numCollections]; resultsItems = new Item [numItems ]; for (int i = 0; i < numItems; i++) { String myhandle = (String) itemHandles.get(i); Object o = HandleManager.resolveToObject(context, myhandle); resultsItems[i] = (Item)o; if (resultsItems[i] == null) { throw new SQLException("Query \"" + query + "\" returned unresolvable handle: " + myhandle); } } for (int i = 0; i < collectionHandles.size(); i++) { String myhandle = (String) collectionHandles.get(i); Object o = HandleManager.resolveToObject(context, myhandle); resultsCollections[i] = (Collection)o; if (resultsCollections[i] == null) { throw new SQLException("Query \"" + query + "\" returned unresolvable handle: " + myhandle); } } for (int i = 0; i < communityHandles.size(); i++) { String myhandle = (String) communityHandles.get(i); Object o = HandleManager.resolveToObject(context, myhandle); resultsCommunities[i] = (Community)o; if (resultsCommunities[i] == null) { throw new SQLException("Query \"" + query + "\" returned unresolvable handle: " + myhandle); } } // Log log.info(LogManager.getHeader(context, "search", logInfo + "query=\"" + query + "\",results=(" + resultsCommunities.length + "," + resultsCollections.length + "," + resultsItems.length + ")")); } catch (ParseException pe) { /* * A parse exception means there were some weird characters in * the query we couldn't resolve. We'll pretend the search went * OK but with no results for the user, but log the error, since * this shouldn't really happen. */ log.warn(LogManager.getHeader(context, "search_exception", logInfo + "query=\"" + query + "\""), pe); // Empty results resultsItems = new Item [0]; resultsCommunities = new Community [0]; resultsCollections = new Collection[0]; } catch (TokenMgrError tme) { // Similar to parse exception log.warn(LogManager.getHeader(context, "search_exception", logInfo + "query=\"" + query + "\""), tme); // Empty results resultsItems = new Item [0]; resultsCommunities = new Community [0]; resultsCollections = new Collection[0]; } // Pass in some page qualities // total number of pages int pageTotal = 1 + (qResults.getHitCount() - 1)/qResults.getPageSize(); // current page being displayed int pageCurrent= 1 + (qResults.getStart()/qResults.getPageSize()); // pageLast = min(pageCurrent+9,pageTotal) int pageLast = (pageCurrent + 9) > pageTotal ? pageTotal : (pageCurrent+9); // pageFirst = max(1,pageCurrent-9) int pageFirst = (pageCurrent - 9) > 1 ? (pageCurrent - 9) : 1; // Pass the results to the display JSP request.setAttribute("items", resultsItems ); request.setAttribute("communities", resultsCommunities); request.setAttribute("collections", resultsCollections); request.setAttribute("pagetotal", new Integer(pageTotal ) ); request.setAttribute("pagecurrent", new Integer(pageCurrent) ); request.setAttribute("pagelast", new Integer(pageLast ) ); request.setAttribute("pagefirst", new Integer(pageFirst ) ); request.setAttribute("queryresults", qResults ); // And the original query string request.setAttribute("query", query); if ((fromAdvanced != null) && (qResults.getHitCount() == 0)) { // send back to advanced form if no results Community[] communities = Community.findAll(context); request.setAttribute("communities", communities); request.setAttribute("no_results", "yes"); queryHash = qArgs.buildQueryHash(request); Iterator i = queryHash.keySet().iterator(); while(i.hasNext()) { String key = (String)i.next(); String value = (String)queryHash.get(key); request.setAttribute(key, value); } JSPManager.showJSP(request, response, "/search/advanced.jsp"); } else { JSPManager.showJSP(request, response, "/search/results.jsp"); } } | 1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/2d4d8c52c85a4e3ae8a0730741d5c00415955b7e/SimpleSearchServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/SimpleSearchServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3948,
967,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
368,
968,
326,
843,
3639,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3948,
967,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
368,
968,
326,
843,
3639,... |
public void endCDATA(Augmentations augs) throws XNIException { | public void endCDATA (Augmentations augs) throws XNIException { | public void endCDATA(Augmentations augs) throws XNIException { fInCDATASection = false; if (!fDeferNodeExpansion) { if (fFilterReject) { return; } if (fCurrentCDATASection !=null) { if (fDOMFilter !=null && (fDOMFilter.getWhatToShow() & NodeFilter.SHOW_CDATA_SECTION)!= 0) { short code = fDOMFilter.acceptNode(fCurrentCDATASection); switch (code) { case LSParserFilter.FILTER_INTERRUPT:{ throw new RuntimeException("The normal processing of the document was interrupted."); } case LSParserFilter.FILTER_REJECT:{ // fall through to SKIP since CDATA section has no children. } case LSParserFilter.FILTER_SKIP: { Node parent = fCurrentNode.getParentNode(); parent.removeChild(fCurrentCDATASection); fCurrentNode = parent; return; } default: { // accept node } } } fCurrentNode = fCurrentNode.getParentNode(); fCurrentCDATASection = null; } } else { if (fCurrentCDATASectionIndex !=-1) { fCurrentNodeIndex = fDeferredDocumentImpl.getParentNode(fCurrentNodeIndex, false); fCurrentCDATASectionIndex = -1; } } } // endCDATA() | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/9d1dbf89c75cf6f564facc2b605dd9f2cf2dac4d/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
18375,
261,
37,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
284,
382,
10160,
789,
3033,
794,
273,
629,
31,
3639,
309,
16051,
74,
758,
586,
907,
2966,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
18375,
261,
37,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
284,
382,
10160,
789,
3033,
794,
273,
629,
31,
3639,
309,
16051,
74,
758,
586,
907,
2966,... |
Template template = templateEngine.createTemplate(new File("src/grails/templates/grails-app/views/scaffolding/java.util.Locale.template")); | Template template = templateEngine.createTemplate(new File("src/grails/templates/grails-app/views/scaffolding/java.util.Locale.gsp")); | public void testLocaleTemplate() throws Exception { SimpleTemplateEngine templateEngine = new SimpleTemplateEngine(); Template template = templateEngine.createTemplate(new File("src/grails/templates/grails-app/views/scaffolding/java.util.Locale.template")); Map binding = new HashMap(); binding.put("name", "testLocale"); binding.put("value", Locale.getDefault()); binding.put("constraints", null); System.out.println(template.make(binding).toString()); Document xml = DocumentHelper.parseText(template.make(binding).toString()); } | 50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/e1e00078eb06a5b2e8559d10769ae85a32065cd3/ScaffoldTemplateTests.java/clean/test/scaffolding/org/codehaus/groovy/grails/scaffolding/ScaffoldTemplateTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3916,
2283,
1435,
1216,
1185,
288,
3639,
4477,
2283,
4410,
1542,
4410,
273,
394,
4477,
2283,
4410,
5621,
3639,
5035,
1542,
273,
1542,
4410,
18,
2640,
2283,
12,
2704,
1387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3916,
2283,
1435,
1216,
1185,
288,
3639,
4477,
2283,
4410,
1542,
4410,
273,
394,
4477,
2283,
4410,
5621,
3639,
5035,
1542,
273,
1542,
4410,
18,
2640,
2283,
12,
2704,
1387,
... |
} else { | } else if (other instanceof RubyNumeric) { | public IRubyObject op_minus(IRubyObject other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_minus(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), value).op_minus(other); } else { long otherValue = ((RubyNumeric) other).getLongValue(); long result = value - otherValue; if ((value <= 0 && otherValue >= 0 && (result > 0 || result < -MAX)) || (value >= 0 && otherValue <= 0 && (result < 0 || result > MAX))) { return RubyBignum.newBignum(getRuntime(), value).op_minus(other); } return newFixnum(result); } } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/df3ba2646cbb9e6b1bf4f1687ed12226cdf7b3ad/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
19601,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
19601,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
933... |
long time = (_context.clock().now() - _msg.getArrival().getTime()); | long time = (getContext().clock().now() - _msg.getArrival().getTime()); | public void runJob() { long time = (_context.clock().now() - _msg.getArrival().getTime()); if (_log.shouldLog(Log.INFO)) _log.info("Test of tunnel " + _primaryId+ " successfull after " + time + "ms waiting for " + _nonce); TunnelInfo info = _pool.getTunnelInfo(_primaryId); if (info != null) { TestTunnelJob.this._context.messageHistory().tunnelValid(info, time); updateProfiles(info, time); } info = _pool.getTunnelInfo(_secondaryId); if (info != null) { TestTunnelJob.this._context.messageHistory().tunnelValid(info, time); updateProfiles(info, time); } _context.statManager().addRateData("tunnel.testSuccessTime", time, time); } | 27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/e737e5c9507ed0d463dc9e45a8f63657f466b177/TestTunnelJob.java/clean/router/java/src/net/i2p/router/tunnelmanager/TestTunnelJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
2278,
1435,
288,
5411,
1525,
813,
273,
261,
29120,
7675,
18517,
7675,
3338,
1435,
300,
389,
3576,
18,
588,
5715,
5162,
7675,
588,
950,
10663,
5411,
309,
261,
67,
1330,
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,
540,
1071,
918,
1086,
2278,
1435,
288,
5411,
1525,
813,
273,
261,
29120,
7675,
18517,
7675,
3338,
1435,
300,
389,
3576,
18,
588,
5715,
5162,
7675,
588,
950,
10663,
5411,
309,
261,
67,
1330,
18... |
logger.debug( | if (debug) logger.debug( | protected void storeAtomData() { logger.debug("No atoms: " + atomCounter); if (atomCounter == 0) { return; } boolean hasID = false; boolean has3D = false; boolean has3Dfract = false; boolean has2D = false; boolean hasFormalCharge = false; boolean hasPartialCharge = false; boolean hasHCounts = false; boolean hasSymbols = false; boolean hasTitles = false; boolean hasIsotopes = false; boolean hasDictRefs = false; if (elid.size() == atomCounter) { hasID = true; } else { logger.debug( "No atom ids: " + elid.size() + " != " + atomCounter); } if (elsym.size() == atomCounter) { hasSymbols = true; } else { logger.debug( "No atom symbols: " + elsym.size() + " != " + atomCounter); } if (eltitles.size() == atomCounter) { hasTitles = true; } else { logger.debug( "No atom titles: " + eltitles.size() + " != " + atomCounter); } if ((x3.size() == atomCounter) && (y3.size() == atomCounter) && (z3.size() == atomCounter)) { has3D = true; } else { logger.debug( "No 3D info: " + x3.size() + " " + y3.size() + " " + z3.size() + " != " + atomCounter); } if ((xfract.size() == atomCounter) && (yfract.size() == atomCounter) && (zfract.size() == atomCounter)) { has3Dfract = true; } else { logger.debug( "No 3D fractional info: " + xfract.size() + " " + yfract.size() + " " + zfract.size() + " != " + atomCounter); } if ((x2.size() == atomCounter) && (y2.size() == atomCounter)) { has2D = true; } else { logger.debug( "No 2D info: " + x2.size() + " " + y2.size() + " != " + atomCounter); } if (formalCharges.size() == atomCounter) { hasFormalCharge = true; } else { logger.debug( "No formal Charge info: " + formalCharges.size() + " != " + atomCounter); } if (partialCharges.size() == atomCounter) { hasPartialCharge = true; } else { logger.debug( "No partial Charge info: " + partialCharges.size() + " != " + atomCounter); } if (hCounts.size() == atomCounter) { hasHCounts = true; } else { logger.debug( "No hydrogen Count info: " + hCounts.size() + " != " + atomCounter); } if (atomDictRefs.size() == atomCounter) { hasDictRefs = true; } else { logger.debug( "No dictRef info: " + atomDictRefs.size() + " != " + atomCounter); } if (isotope.size() == atomCounter) { hasIsotopes = true; } else { logger.debug( "No isotope info: " + isotope.size() + " != " + atomCounter); } for (int i = 0; i < atomCounter; i++) { logger.info("Storing atom: " + i); cdo.startObject("Atom"); if (hasID) { cdo.setObjectProperty("Atom", "id", (String)elid.elementAt(i)); } if (hasTitles) { if (hasSymbols) { String symbol = (String)elsym.elementAt(i); if (symbol.equals("Du") || symbol.equals("Dummy")) { cdo.setObjectProperty("PseudoAtom", "label", (String)eltitles.elementAt(i)); } else { cdo.setObjectProperty("Atom", "title", (String)eltitles.elementAt(i)); } } else { cdo.setObjectProperty("Atom", "title", (String)eltitles.elementAt(i)); } } // store optional atom properties if (hasSymbols) { String symbol = (String)elsym.elementAt(i); if (symbol.equals("Du") || symbol.equals("Dummy")) { symbol = "R"; } cdo.setObjectProperty("Atom", "type", symbol); } if (has3D) { cdo.setObjectProperty("Atom", "x3", (String)x3.elementAt(i)); cdo.setObjectProperty("Atom", "y3", (String)y3.elementAt(i)); cdo.setObjectProperty("Atom", "z3", (String)z3.elementAt(i)); } if (has3Dfract) { // ok, need to convert fractional into eucledian coordinates double[] coord = new double[3]; coord[0] = Double.parseDouble((String)xfract.elementAt(i)); coord[1] = Double.parseDouble((String)yfract.elementAt(i)); coord[2] = Double.parseDouble((String)zfract.elementAt(i)); if (!cartesianAxesSet) { logger.error("Cannot convert fractional atomic coord to cartesian if axes are not known"); } else { double[] cartCoord = CrystalGeometryTools.fractionalToCartesian(a,b,c,coord); cdo.setObjectProperty("Atom", "x3", new Double(cartCoord[0]).toString()); cdo.setObjectProperty("Atom", "y3", new Double(cartCoord[1]).toString()); cdo.setObjectProperty("Atom", "z3", new Double(cartCoord[2]).toString()); } } if (hasFormalCharge) { cdo.setObjectProperty("Atom", "formalCharge", (String)formalCharges.elementAt(i)); } if (hasPartialCharge) { logger.debug("Storing partial atomic charge..."); cdo.setObjectProperty("Atom", "partialCharge", (String)partialCharges.elementAt(i)); } if (hasHCounts) { cdo.setObjectProperty("Atom", "hydrogenCount", (String)hCounts.elementAt(i)); } if (has2D) { if (x2.elementAt(i) != null) cdo.setObjectProperty("Atom", "x2", (String)x2.elementAt(i)); if (y2.elementAt(i) != null) cdo.setObjectProperty("Atom", "y2", (String)y2.elementAt(i)); } if (hasDictRefs) { cdo.setObjectProperty("Atom", "dictRef", (String)atomDictRefs.elementAt(i)); } if (hasIsotopes) { cdo.setObjectProperty("Atom", "massNumber", (String)isotope.elementAt(i)); } cdo.endObject("Atom"); } if (elid.size() > 0) { // assume this is the current working list bondElid = elid; } newAtomData(); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/85b1def8500569c307eef07a73f9886549ea9364/CMLCoreModule.java/buggy/src/org/openscience/cdk/io/cml/CMLCoreModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1707,
3641,
751,
1435,
288,
3639,
1194,
18,
4148,
2932,
2279,
9006,
30,
315,
397,
3179,
4789,
1769,
3639,
309,
261,
7466,
4789,
422,
374,
13,
288,
5411,
327,
31,
3639,
289,
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,
4750,
918,
1707,
3641,
751,
1435,
288,
3639,
1194,
18,
4148,
2932,
2279,
9006,
30,
315,
397,
3179,
4789,
1769,
3639,
309,
261,
7466,
4789,
422,
374,
13,
288,
5411,
327,
31,
3639,
289,
3... |
int limit = offsets.contextLimit; | int limit = offsets.limit; | protected void handleTransliterate(Replaceable text, Position offsets, boolean incremental) { /** * Performs transliteration changing all characters to * Unicode hexadecimal escapes. For example, '@' -> "U+0040", * assuming the prefix is "U+". */ int cursor = offsets.start; int limit = offsets.contextLimit; UnicodeFilter filter = getFilter(); StringBuffer hex = new StringBuffer(prefix); int prefixLen = prefix.length(); while (cursor < limit) { char c = text.charAt(cursor); if (filter != null && !filter.contains(c)) { ++cursor; continue; } hex.setLength(prefixLen); boolean showRest = false; for (int i=3; i>=0; --i) { int d = (c >> (i*4)) & 0xF; if (showRest || (d != 0) || minDigits > i) { hex.append(HEX_DIGITS[uppercase ? (d|16) : d]); showRest = true; } } hex.append(suffix); text.replace(cursor, cursor+1, hex.toString()); int len = hex.length(); cursor += len; // Advance cursor by 1 and adjust for new text --len; limit += len; } offsets.contextLimit = limit; offsets.start = cursor; } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/0067d14bf080468f732888d0970cb818e7c7fdf3/UnicodeToHexTransliterator.java/clean/icu4j/src/com/ibm/icu/text/UnicodeToHexTransliterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
3873,
18793,
12,
5729,
429,
977,
16,
4766,
4202,
11010,
8738,
16,
1250,
20649,
13,
288,
3639,
1783,
540,
380,
27391,
2162,
16108,
12770,
777,
3949,
358,
540,
380,
9633,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
3873,
18793,
12,
5729,
429,
977,
16,
4766,
4202,
11010,
8738,
16,
1250,
20649,
13,
288,
3639,
1783,
540,
380,
27391,
2162,
16108,
12770,
777,
3949,
358,
540,
380,
9633,
2... |
setPaused(playButton.getLabel().equals("Pause")); | player.setPaused(playButton.getLabel().equals("Pause")); | public void actionPerformed(ActionEvent evt) { if (evt.getSource() == playButton) { setPaused(playButton.getLabel().equals("Pause")); } else if (evt.getSource() == posText) { player.setPos(Integer.parseInt(posText.getText())); } } | 5301 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5301/972c25718c13f963dbd1d4ce6a885f3e66f2931f/ButtonPanel.java/clean/java/src/com/tightvnc/rfbplayer/ButtonPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
565,
309,
261,
73,
11734,
18,
588,
1830,
1435,
422,
6599,
3616,
13,
288,
1377,
7291,
18,
542,
28590,
12,
1601,
3616,
18,
588,
2224,
7675... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
565,
309,
261,
73,
11734,
18,
588,
1830,
1435,
422,
6599,
3616,
13,
288,
1377,
7291,
18,
542,
28590,
12,
1601,
3616,
18,
588,
2224,
7675... |
configuration.addResolution(String.copyValueOf(ch, start, length)); | parsedValue.append(String.copyValueOf(ch, start, length)); | public void characters(char[] ch, int start, int length) throws SAXException { switch (state) { case IN_PRODUCTS | IN_LI | IN_NAME: configuration.addProduct(String.copyValueOf(ch, start, length)); //configuration.addAttributeValue(BugzillaReportElement.PRODUCT.getKeyString(), String.copyValueOf(ch, start, length)); currentProduct = String.copyValueOf(ch, start, length); break; case IN_COMPONENTS | IN_LI | IN_COMPONENT | IN_NAME: String comp = String.copyValueOf(ch, start, length); if (about != null) { componentNames.put(about, comp); // System.err.println("Component: "+about+" ---> "+name); } //configuration.addAttributeValue(BugzillaReportElement.COMPONENT.getKeyString(), comp); break; case IN_VERSIONS | IN_LI | IN_VERSION | IN_NAME: String ver = String.copyValueOf(ch, start, length); if (about != null) { versionNames.put(about, ver); // System.err.println("Version: "+about+" ---> "+name); } //configuration.addAttributeValue(BugzillaReportElement.VERSION.getKeyString(), ver); break; case IN_TARGET_MILESTONES | IN_LI | IN_TARGET_MILESTONE | IN_NAME: String target = String.copyValueOf(ch, start, length); if (about != null) { milestoneNames.put(about, target); // System.err.println("Version: "+about+" ---> "+name); } //configuration.addAttributeValue(BugzillaReportElement.TARGET_MILESTONE.getKeyString(), target); break; case IN_PLATFORM | IN_LI: configuration.addPlatform(String.copyValueOf(ch, start, length)); //configuration.addAttributeValue(BugzillaReportElement.REP_PLATFORM.getKeyString(), String.copyValueOf(ch, start, length)); break; case IN_OP_SYS | IN_LI: configuration.addOS(String.copyValueOf(ch, start, length)); //configuration.addAttributeValue(BugzillaReportElement.OP_SYS.getKeyString(), String.copyValueOf(ch, start, length)); break; case IN_PRIORITY | IN_LI: //configuration.addAttributeValue(BugzillaReportElement.PRIORITY.getKeyString(), String.copyValueOf(ch, start, length)); configuration.addPriority(String.copyValueOf(ch, start, length)); break; case IN_SEVERITY | IN_LI: //configuration.addAttributeValue(BugzillaReportElement.BUG_SEVERITY.getKeyString(), String.copyValueOf(ch, start, length)); configuration.addSeverity(String.copyValueOf(ch, start, length)); break; case IN_INSTALL_VERSION: //configuration.addAttributeValue(BugzillaReportElement.INSTALL_VERSION.getKeyString(), String.copyValueOf(ch, start, length)); configuration.setInstallVersion(String.copyValueOf(ch, start, length)); break; case IN_STATUS | IN_LI: //configuration.addAttributeValue(BugzillaReportElement.BUG_STATUS.getKeyString(), String.copyValueOf(ch, start, length)); configuration.addStatus(String.copyValueOf(ch, start, length)); break; case IN_RESOLUTION | IN_LI: //configuration.addAttributeValue(BugzillaReportElement.RESOLUTION.getKeyString(), String.copyValueOf(ch, start, length)); configuration.addResolution(String.copyValueOf(ch, start, length)); break; case IN_KEYWORD | IN_LI: //configuration.addAttributeValue(BugzillaReportElement.KEYWORDS.getKeyString(), String.copyValueOf(ch, start, length)); configuration.addKeyword(String.copyValueOf(ch, start, length)); break; case IN_STATUS_OPEN | IN_LI: //configuration.addAttributeValue(BugzillaReportElement.STATUS_OPEN.getKeyString(), String.copyValueOf(ch, start, length)); configuration.addOpenStatusValue(String.copyValueOf(ch, start, length)); break; } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/584278fd36588570d799890a990adc5ef6e02a9d/SaxConfigurationContentHandler.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/SaxConfigurationContentHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3949,
12,
3001,
8526,
462,
16,
509,
787,
16,
509,
769,
13,
1216,
14366,
288,
202,
202,
9610,
261,
2019,
13,
288,
202,
202,
3593,
2120,
67,
25883,
55,
571,
2120,
67,
205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3949,
12,
3001,
8526,
462,
16,
509,
787,
16,
509,
769,
13,
1216,
14366,
288,
202,
202,
9610,
261,
2019,
13,
288,
202,
202,
3593,
2120,
67,
25883,
55,
571,
2120,
67,
205... |
AST tmp18_AST_in = (AST)_t; | AST tmp22_AST_in = (AST)_t; | public final Expression pathExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException { Expression step; AST pathExpr_AST_in = (AST)_t; AST c = null; AST i = null; AST dec = null; AST dbl = null; AST qn = null; AST nc1 = null; AST nc = null; AST attr = null; AST nc2 = null; AST nc3 = null; Expression rightStep = null; step = null; int axis = Constants.CHILD_AXIS; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STRING_LITERAL: { c = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); step = new Literal(c.getText()); path.add(step); break; } case INTEGER_LITERAL: { i = (AST)_t; match(_t,INTEGER_LITERAL); _t = _t.getNextSibling(); step = new IntNumber(Integer.parseInt(i.getText())); path.add(step); break; } case DOUBLE_LITERAL: case DECIMAL_LITERAL: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DECIMAL_LITERAL: { dec = (AST)_t; match(_t,DECIMAL_LITERAL); _t = _t.getNextSibling(); step = new IntNumber(Double.parseDouble(dec.getText())); break; } case DOUBLE_LITERAL: { dbl = (AST)_t; match(_t,DOUBLE_LITERAL); _t = _t.getNextSibling(); step = new IntNumber(Double.parseDouble(dbl.getText())); break; } default: { throw new NoViableAltException(_t); } } } path.add(step); break; } case FUNCTION: { step=functionCall(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case NCNAME: case LITERAL_text: case LITERAL_node: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: { axis=forwardAxis(_t); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case NCNAME: case LITERAL_text: case LITERAL_node: { break; } default: { throw new NoViableAltException(_t); } } } NodeTest test; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn = (AST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname = QName.parse(context, qn.getText()); test = new NameTest(Type.ELEMENT, qname); break; } case PREFIX_WILDCARD: { AST __t106 = _t; AST tmp9_AST_in = (AST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc1 = (AST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t106; _t = _t.getNextSibling(); QName qname = new QName(nc1.getText(), null, null); test = new NameTest(Type.ELEMENT, qname); break; } case NCNAME: { AST __t107 = _t; nc = _t==ASTNULL ? null :(AST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); AST tmp10_AST_in = (AST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t107; _t = _t.getNextSibling(); String namespaceURI = context.getURIForPrefix(nc.getText()); QName qname = new QName(null, namespaceURI, null); test = new NameTest(Type.ELEMENT, qname); break; } case WILDCARD: { AST tmp11_AST_in = (AST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); test = new TypeTest(Type.ELEMENT); break; } case LITERAL_node: { AST tmp12_AST_in = (AST)_t; match(_t,LITERAL_node); _t = _t.getNextSibling(); test = new AnyNodeTest(); break; } case LITERAL_text: { AST tmp13_AST_in = (AST)_t; match(_t,LITERAL_text); _t = _t.getNextSibling(); test = new TypeTest(Type.TEXT); break; } default: { throw new NoViableAltException(_t); } } } step = new LocationStep(axis, test); path.add(step); { _loop109: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep)step); _t = _retTree; } else { break _loop109; } } while (true); } break; } case AT: { AST tmp14_AST_in = (AST)_t; match(_t,AT); _t = _t.getNextSibling(); QName qname; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { attr = (AST)_t; match(_t,QNAME); _t = _t.getNextSibling(); qname = QName.parse(context, attr.getText()); break; } case PREFIX_WILDCARD: { AST __t111 = _t; AST tmp15_AST_in = (AST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc2 = (AST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t111; _t = _t.getNextSibling(); qname = new QName(nc2.getText(), null, null); break; } case NCNAME: { AST __t112 = _t; nc3 = _t==ASTNULL ? null :(AST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); AST tmp16_AST_in = (AST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t112; _t = _t.getNextSibling(); String namespaceURI = context.getURIForPrefix(nc3.getText()); if(namespaceURI == null) throw new EXistException("No namespace defined for prefix " + nc.getText()); qname = new QName(null, namespaceURI, null); break; } default: { throw new NoViableAltException(_t); } } } step = new LocationStep(Constants.ATTRIBUTE_AXIS, new NameTest(Type.ATTRIBUTE, qname)); path.add(step); { _loop114: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep)step); _t = _retTree; } else { break _loop114; } } while (true); } break; } case SELF: { AST tmp17_AST_in = (AST)_t; match(_t,SELF); _t = _t.getNextSibling(); step = new LocationStep(Constants.SELF_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop116: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep)step); _t = _retTree; } else { break _loop116; } } while (true); } break; } case PARENT: { AST tmp18_AST_in = (AST)_t; match(_t,PARENT); _t = _t.getNextSibling(); step = new LocationStep(Constants.PARENT_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop118: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep)step); _t = _retTree; } else { break _loop118; } } while (true); } break; } case SLASH: { AST __t119 = _t; AST tmp19_AST_in = (AST)_t; match(_t,SLASH); _t = _t.getFirstChild(); step=pathExpr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { rightStep=pathExpr(_t,path); _t = _retTree; if(rightStep instanceof LocationStep && ((LocationStep)rightStep).getAxis() == -1) ((LocationStep)rightStep).setAxis(Constants.CHILD_AXIS); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t119; _t = _t.getNextSibling(); if(rightStep instanceof LocationStep && ((LocationStep)rightStep).getAxis() == -1) ((LocationStep)step).setAxis(Constants.CHILD_AXIS); break; } case DSLASH: { AST __t121 = _t; AST tmp20_AST_in = (AST)_t; match(_t,DSLASH); _t = _t.getFirstChild(); step=pathExpr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { rightStep=pathExpr(_t,path); _t = _retTree; if(rightStep instanceof LocationStep) { LocationStep rs = (LocationStep)rightStep; if(rs.getAxis() == Constants.ATTRIBUTE_AXIS) rs.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else rs.setAxis(Constants.DESCENDANT_SELF_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t121; _t = _t.getNextSibling(); if(step instanceof LocationStep) ((LocationStep)step).setAxis(Constants.DESCENDANT_SELF_AXIS); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
589,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
288,
202,
202,
2300,
2235,
31,
9506,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
589,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
288,
202,
202,
2300,
2235,
31,
9506,
20... |
if(Logger.shouldLog(Logger.DEBUG, this)) Logger.debug(this, "Encrypting with "+HexUtil.bytesToHex(kt.sessionKey)); | Logger.minor(this, "Encrypting with "+HexUtil.bytesToHex(kt.sessionKey)); | private void processOutgoingFullyFormatted(byte[] plaintext, KeyTracker kt, AsyncMessageCallback[] callbacks) { BlockCipher sessionCipher = kt.sessionCipher; if(Logger.shouldLog(Logger.DEBUG, this)) Logger.debug(this, "Encrypting with "+HexUtil.bytesToHex(kt.sessionKey)); if(sessionCipher == null) { Logger.error(this, "Dropping packet send - have not handshaked yet"); return; } int blockSize = sessionCipher.getBlockSize() >> 3; if(sessionCipher.getKeySize() != sessionCipher.getBlockSize()) throw new IllegalStateException("Block size must be half key size: blockSize="+ sessionCipher.getBlockSize()+", keySize="+sessionCipher.getKeySize()); MessageDigest md; try { md = MessageDigest.getInstance("SHA-256"); } catch (NoSuchAlgorithmException e) { throw new Error(e); } int digestLength = md.getDigestLength(); if(digestLength != blockSize) throw new IllegalStateException("Block size must be digest length!"); byte[] output = new byte[plaintext.length + digestLength]; System.arraycopy(plaintext, 0, output, digestLength, plaintext.length); md.update(plaintext); //Logger.minor(this, "Plaintext:\n"+HexUtil.bytesToHex(plaintext)); byte[] digestTemp; digestTemp = md.digest(); //Logger.minor(this, "\nHash: "+HexUtil.bytesToHex(digestTemp)); // Put plaintext in output System.arraycopy(digestTemp, 0, output, 0, digestLength); sessionCipher.encipher(digestTemp, digestTemp); // Now copy it back System.arraycopy(digestTemp, 0, output, 0, digestLength); // Yay, we have an encrypted hash //Logger.minor(this, "\nEncrypted: "+HexUtil.bytesToHex(digestTemp)+" ("+plaintext.length+" bytes plaintext)"); PCFBMode pcfb = new PCFBMode(sessionCipher, digestTemp); pcfb.blockEncipher(output, digestLength, plaintext.length); //Logger.minor(this, "Ciphertext:\n"+HexUtil.bytesToHex(output, digestLength, plaintext.length)); // We have a packet // Send it Logger.minor(this,"Sending packet of length "+output.length+" to "+kt.pn); // pn.getPeer() cannot be null usm.sendPacket(output, kt.pn.getPeer()); kt.pn.sentPacket(); } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/32291975fc543ab3b9ddc50a4bcd992394800348/FNPPacketMangler.java/buggy/src/freenet/node/FNPPacketMangler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
24866,
16999,
18298,
12,
7229,
8526,
11917,
16,
1929,
8135,
417,
88,
16,
9672,
1079,
2428,
8526,
6689,
13,
288,
3639,
3914,
13896,
1339,
13896,
273,
417,
88,
18,
3184,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
24866,
16999,
18298,
12,
7229,
8526,
11917,
16,
1929,
8135,
417,
88,
16,
9672,
1079,
2428,
8526,
6689,
13,
288,
3639,
3914,
13896,
1339,
13896,
273,
417,
88,
18,
3184,
13... |
inputParameter.setDisplayName( UIUtil.convertToModelString( promptTextEditor.getText( ), | inputParameter.setPromptText( UIUtil.convertToModelString( promptTextEditor.getText( ), | protected void okPressed( ) { try { inputParameter.setName( nameEditor.getText( ) ); inputParameter.setDisplayName( UIUtil.convertToModelString( promptTextEditor.getText( ), true ) ); if ( !isStatic( ) && !StringUtil.isBlank( listLimit.getText( ) ) ) { try { inputParameter.setListlimit( Integer.parseInt( listLimit.getText( ) ) ); } catch ( NumberFormatException ex ) { ExceptionHandler.openErrorMessageBox( ERROR_TITLE_INVALID_LIST_LIMIT, MessageFormat.format( ERROR_MSG_INVALID_LIST_LIMIT, new Object[]{ Integer.toString( Integer.MAX_VALUE ) } ) ); } } else { inputParameter.setProperty( ScalarParameterHandle.LIST_LIMIT_PROP, null ); } String newControlType = getSelectedControlType( ); if ( PARAM_CONTROL_COMBO.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; inputParameter.setMustMatch( true ); } else if ( PARAM_CONTROL_LIST.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; inputParameter.setMustMatch( false ); } else { inputParameter.setProperty( ScalarParameterHandle.MUCH_MATCH_PROP, null ); } inputParameter.setControlType( newControlType ); String format = formatCategroy; if ( formatPattern != null ) { format += ":" + formatPattern; //$NON-NLS-1$ } inputParameter.setFormat( format ); if ( isStatic( ) && ( PARAM_CONTROL_COMBO.equals( getSelectedControlType( ) ) || DesignChoiceConstants.PARAM_CONTROL_RADIO_BUTTON.equals( getSelectedControlType( ) ) ) && !containValue( null, defaultValue, COLUMN_VALUE ) ) { defaultValue = null; } if ( ( isStatic( ) && !getSelectedControlType( ).equals( DesignChoiceConstants.PARAM_CONTROL_TEXT_BOX ) ) && ( DesignChoiceConstants.PARAM_TYPE_DATETIME.equals( getSelectedDataType( ) ) || DesignChoiceConstants.PARAM_TYPE_STRING.equals( getSelectedDataType( ) ) ) && defaultValue != null ) { inputParameter.setDefaultValue( "\"" + defaultValue + "\"" );//$NON-NLS-1$//$NON-NLS-2$ } else { inputParameter.setDefaultValue( defaultValue ); } if ( dirtyProperties.containsKey( CHECKBOX_HIDDEN ) ) { inputParameter.setHidden( getProperty( CHECKBOX_HIDDEN ) ); } inputParameter.setHelpText( UIUtil.convertToModelString( helpTextEditor.getText( ), false ) ); if ( PARAM_CONTROL_LIST.equals( getSelectedControlType( ) ) || DesignChoiceConstants.PARAM_CONTROL_TEXT_BOX.equals( getSelectedControlType( ) ) ) { if ( dirtyProperties.containsKey( CHECKBOX_ALLOW_BLANK ) ) { inputParameter.setAllowBlank( getProperty( CHECKBOX_ALLOW_BLANK ) ); } if ( dirtyProperties.containsKey( CHECKBOX_ALLOW_NULL ) ) { inputParameter.setAllowNull( getProperty( CHECKBOX_ALLOW_NULL ) ); } } else { inputParameter.setProperty( ScalarParameterHandle.ALLOW_BLANK_PROP, null ); inputParameter.setProperty( ScalarParameterHandle.ALLOW_NULL_PROP, null ); } if ( DesignChoiceConstants.PARAM_CONTROL_TEXT_BOX.equals( getSelectedControlType( ) ) ) { if ( dirtyProperties.containsKey( CHECKBOX_DO_NOT_ECHO ) ) { inputParameter.setConcealValue( getProperty( CHECKBOX_DO_NOT_ECHO ) ); } } else { inputParameter.setProperty( ScalarParameterHandle.CONCEAL_VALUE_PROP, null ); } if ( DesignChoiceConstants.PARAM_CONTROL_TEXT_BOX.equals( newControlType ) || DesignChoiceConstants.PARAM_CONTROL_CHECK_BOX.equals( newControlType ) ) { inputParameter.setProperty( ScalarParameterHandle.FIXED_ORDER_PROP, null ); } else { if ( dirtyProperties.containsKey( CHECKBOX_SORT ) ) { inputParameter.setFixedOrder( !getProperty( CHECKBOX_SORT ) ); } } PropertyHandle selectionChioceList = inputParameter.getPropertyHandle( ScalarParameterHandle.SELECTION_LIST_PROP ); selectionChioceList.setValue( null ); inputParameter.setDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) ) .getName( ) ); if ( isStatic( ) ) { inputParameter.setValueType( DesignChoiceConstants.PARAM_VALUE_TYPE_STATIC ); if ( !DesignChoiceConstants.PARAM_CONTROL_TEXT_BOX.equals( newControlType ) && !DesignChoiceConstants.PARAM_CONTROL_CHECK_BOX.equals( newControlType ) ) { for ( Iterator iter = choiceList.iterator( ); iter.hasNext( ); ) { SelectionChoice choice = (SelectionChoice) iter.next( ); if ( isValidValue( choice.getValue( ) ) == null ) { selectionChioceList.addItem( choice ); } } } inputParameter.setDataSetName( null ); inputParameter.setValueExpr( null ); inputParameter.setLabelExpr( null ); } else { inputParameter.setValueType( DesignChoiceConstants.PARAM_VALUE_TYPE_DYNAMIC ); inputParameter.setDataSetName( dataSetChooser.getText( ) ); inputParameter.setValueExpr( getExpression( columnChooser.getText( ) ) ); inputParameter.setLabelExpr( getExpression( displayTextChooser.getText( ) ) ); } } catch ( Exception e ) { ExceptionHandler.handle( e ); return; } setResult( inputParameter ); super.okPressed( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/6fb13bbf69174d2503824b9dbe1439147b493bfa/ParameterDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
2630,
1662,
18,
542,
461,
12,
508,
6946,
18,
588,
1528,
12,
262,
11272,
1082,
202,
2630,
1662,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
2630,
1662,
18,
542,
461,
12,
508,
6946,
18,
588,
1528,
12,
262,
11272,
1082,
202,
2630,
1662,
1... |
public org.quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityType value = new org.quickfix.field.UnderlyingSecurityType(); | public quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { quickfix.field.UnderlyingSecurityType value = new quickfix.field.UnderlyingSecurityType(); | public org.quickfix.field.UnderlyingSecurityType getUnderlyingSecurityType() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityType value = new org.quickfix.field.UnderlyingSecurityType(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinitionRequest.java/buggy/src/java/src/quickfix/fix42/SecurityDefinitionRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
10833,
765,
6291,
4368,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559,
10833,
765,
6291,
4368,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
559... |
XMLUtil.writeXmlFile(lineCountsBuilder.getDocument(), "lineCounts.xml"); | XMLUtil.writeXmlFile(lineCountsBuilder.getDocument(), lineCountsFileName); | protected void handleLineCounts(SAXParserFactory factory) throws IOException { long startTime = System.currentTimeMillis(); LineCountsBuilder lineCountsBuilder = new LineCountsBuilder(builder); try { FileInputStream lineCountsFile = new FileInputStream("lineCounts.xml"); SAXParser parser = factory.newSAXParser(); parser.parse(lineCountsFile, new SvnXmlLineCountsFileHandler(lineCountsBuilder)); // XMLUtil.writeXmlFile(lineCountsBuilder.getDocument(), // "lineCounts2.xml"); } catch (ParserConfigurationException e) { } catch (SAXException e) { } catch (IOException e) { } logger.fine("parsing line counts finished in " + (System.currentTimeMillis() - startTime) + " ms."); startTime = System.currentTimeMillis(); int limit = 20000; int c = 0; Collection fileBuilders = builder.getFileBuilders().values(); for (Iterator iter = fileBuilders.iterator(); iter.hasNext();) { FileBuilder fileBuilder = (FileBuilder) iter.next(); if (fileBuilder.isBinary()) continue; String fileName = fileBuilder.getName(); List revisions = fileBuilder.getRevisions(); for (int i = 0; i < revisions.size(); i++) { if (i + 1 < revisions.size() && ((RevisionData) revisions.get(i)).hasNoLines() && !((RevisionData) revisions.get(i)).isDeletion()) { if (((RevisionData) revisions.get(i + 1)).isDeletion()) continue; String revNrNew = ((RevisionData) revisions.get(i)).getRevisionNumber(); String revNrOld = ((RevisionData) revisions.get(i + 1)).getRevisionNumber(); int lineDiff[] = repositoryFileManager.getLineDiff(revNrOld, revNrNew, fileName); if (lineDiff[0] != -1 && lineDiff[1] != -1) { builder.updateRevision(fileName, revNrNew, lineDiff[0], lineDiff[1]); lineCountsBuilder.newRevision(fileName, revNrNew, lineDiff[0] + "", lineDiff[1] + ""); } else { // file is binary and has been deleted fileBuilder.setBinary(true); break; } } } if (c++ > limit) break; } XMLUtil.writeXmlFile(lineCountsBuilder.getDocument(), "lineCounts.xml"); logger.fine("parsing svn diff finished in " + (System.currentTimeMillis() - startTime) + " ms."); } | 48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/2dabe7da69e8662d2a708d5acda18737663ff88e/SvnLogfileParser.java/buggy/statsvn/src/net/sf/statcvs/input/SvnLogfileParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1640,
1670,
9211,
12,
55,
2501,
2678,
1733,
3272,
13,
1216,
1860,
288,
3639,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
5377,
9211,
1263,
980,
9211,
1263,
273,
394,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1670,
9211,
12,
55,
2501,
2678,
1733,
3272,
13,
1216,
1860,
288,
3639,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
5377,
9211,
1263,
980,
9211,
1263,
273,
394,
53... |
StylesheetHandler handler, String uri, String name, String rawName, String value) | StylesheetHandler handler, String uri, String name, String rawName, String value, ElemTemplateElement owner) | Object processCHAR( StylesheetHandler handler, String uri, String name, String rawName, String value) throws org.xml.sax.SAXException { if (value.length() != 1) { handler.error( XSLMessages.createMessage(XSLTErrorResources.ER_ATTR_T_CHAR_ONE_CHAR, null), null); //"An XSLT attribute of type T_CHAR must be only 1 character!", null); } return new Character(value.charAt(0)); } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/24e9e48ff438546502d53b30fd9e53ba9f7d107f/XSLTAttributeDef.java/buggy/src/org/apache/xalan/processor/XSLTAttributeDef.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1033,
1207,
7305,
12,
1850,
29483,
2963,
1503,
1838,
16,
514,
2003,
16,
514,
508,
16,
514,
1831,
461,
16,
514,
460,
16,
10223,
2283,
1046,
3410,
13,
5411,
1216,
2358,
18,
2902,
18,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
1207,
7305,
12,
1850,
29483,
2963,
1503,
1838,
16,
514,
2003,
16,
514,
508,
16,
514,
1831,
461,
16,
514,
460,
16,
10223,
2283,
1046,
3410,
13,
5411,
1216,
2358,
18,
2902,
18,
87,
... |
return address; | return address; | public String getAddress() { return address; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f2ed60b5417a9a7d4bcf5fcf0cdc3f70cc3c9b8f/BookBean.java/buggy/src/net/sourceforge/fenixedu/dataTransferObject/research/result/publication/BookBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
14808,
1435,
288,
3639,
327,
1758,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
14808,
1435,
288,
3639,
327,
1758,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
StringBuffer buffer = new StringBuffer("const int x = 10;\n"); buffer.append("int y [ const static x ];"); ICASTArrayModifier mod = (ICASTArrayModifier) ((IASTArrayDeclarator) ((IASTSimpleDeclaration) parse( buffer.toString(), ParserLanguage.C).getDeclarations()[1]) .getDeclarators()[0]).getArrayModifiers()[0]; assertTrue(mod.isConst()); assertTrue(mod.isStatic()); assertFalse(mod.isRestrict()); assertFalse(mod.isVolatile()); assertFalse(mod.isVariableSized()); } | StringBuffer buffer = new StringBuffer("const int x = 10;\n"); buffer.append("int y [ const static x ];"); ICASTArrayModifier mod = (ICASTArrayModifier) ((IASTArrayDeclarator) ((IASTSimpleDeclaration) parse( buffer.toString(), ParserLanguage.C).getDeclarations()[1]) .getDeclarators()[0]).getArrayModifiers()[0]; assertTrue(mod.isConst()); assertTrue(mod.isStatic()); assertFalse(mod.isRestrict()); assertFalse(mod.isVolatile()); assertFalse(mod.isVariableSized()); } | public void testBug80992() throws Exception { StringBuffer buffer = new StringBuffer("const int x = 10;\n"); //$NON-NLS-1$ buffer.append("int y [ const static x ];"); //$NON-NLS-1$ ICASTArrayModifier mod = (ICASTArrayModifier) ((IASTArrayDeclarator) ((IASTSimpleDeclaration) parse( buffer.toString(), ParserLanguage.C).getDeclarations()[1]) .getDeclarators()[0]).getArrayModifiers()[0]; assertTrue(mod.isConst()); assertTrue(mod.isStatic()); assertFalse(mod.isRestrict()); assertFalse(mod.isVolatile()); assertFalse(mod.isVariableSized()); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/98145350e052e39e57313251e0f805a20472a08d/AST2Tests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
19865,
3672,
2733,
22,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
2932,
10248,
509,
619,
273,
1728,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
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,
565,
1071,
918,
1842,
19865,
3672,
2733,
22,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
2932,
10248,
509,
619,
273,
1728,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
... |
{ _group_template = group_template_name; } | { _group_template_name = group_template_name; } | public void set_group_template(IIR_Name group_template_name) { _group_template = group_template_name; } | 2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/453557ab1ab1101b4851d4adfa20619e571d1462/IIR_GroupDeclaration.java/clean/IR/AIRE/IIR_GroupDeclaration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
67,
1655,
67,
3202,
12,
6954,
54,
67,
461,
1041,
67,
3202,
67,
529,
13,
565,
288,
389,
1655,
67,
3202,
273,
1041,
67,
3202,
67,
529,
31,
289,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
67,
1655,
67,
3202,
12,
6954,
54,
67,
461,
1041,
67,
3202,
67,
529,
13,
565,
288,
389,
1655,
67,
3202,
273,
1041,
67,
3202,
67,
529,
31,
289,
2,
-100,
-100,
-100,
-1... |
refreshLeftArea( ); DataDefinitionTextManager.getInstance( ).refreshAll( ); | public void run( ) { manageColorAndQuery( query ); refreshLeftArea( ); // Refresh all data definition text DataDefinitionTextManager.getInstance( ).refreshAll( ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ee7f46f4c99fefba65a0acb1d1f4be2f89a57d3c/TaskSelectData.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
12,
262,
202,
202,
95,
1082,
202,
12633,
2957,
1876,
1138,
12,
843,
11272,
1082,
202,
9144,
3910,
5484,
12,
11272,
1082,
202,
759,
14179,
777,
501,
2379,
977,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
12,
262,
202,
202,
95,
1082,
202,
12633,
2957,
1876,
1138,
12,
843,
11272,
1082,
202,
9144,
3910,
5484,
12,
11272,
1082,
202,
759,
14179,
777,
501,
2379,
977,
1082,
... | |
factory[i].makeVerifier(nonce, 3, 2048, bad, 9); | factory[i].makeVerifier(nonce, 7, 256, 2, bad, 9); | public void testExceptions() { byte[] nonce = new byte[4]; rand.nextBytes(nonce); for (int i = 0; i < factory.length; i++) { try { int[] bad = new int[12]; MemoryBoundFunction mbf = factory[i].makeVerifier(nonce, 3, 2048, bad, 9); fail(names[i] + ": didn't throw exception on too-long proof"); } catch (MemoryBoundFunctionException ex) { // No action intended } catch (Exception ex) { fail(names[i] + ": threw " + ex.toString()); } } } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ac1c43b2f21056159f71ff537fe5d6c109bf20b7/TestMemoryBoundFunction.java/buggy/test/src/org/lockss/mbf/TestMemoryBoundFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
11416,
1435,
288,
565,
1160,
8526,
7448,
273,
394,
1160,
63,
24,
15533,
565,
5605,
18,
4285,
2160,
12,
12824,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
11416,
1435,
288,
565,
1160,
8526,
7448,
273,
394,
1160,
63,
24,
15533,
565,
5605,
18,
4285,
2160,
12,
12824,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
327... |
int LA16_307 = input.LA(1); if ( LA16_307=='t' ) {return s372;} return s50; | int LA16_308 = input.LA(1); if ( LA16_308=='t' ) {return s373;} return s51; | public DFA.State transition(IntStream input) throws RecognitionException { int LA16_307 = input.LA(1); if ( LA16_307=='t' ) {return s372;} return s50; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/cb210a30853642e270a3bba6ce570409f6046852/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
2313,
67,
5082,
27,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
2313,
67,
5082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
509,
2928,
2313,
67,
5082,
27,
273,
810,
18,
2534,
12,
21,
1769,
7734,
309,
261,
2928,
2313,
67,
5082,
... |
public static String jsFunction_toLocaleString(Context cx, Scriptable thisObj, Object[] args, Function funObj) | private static String jsFunction_toLocaleString(Context cx, Scriptable thisObj, Object[] args) | public static String jsFunction_toLocaleString(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws JavaScriptException { return toStringHelper(cx, thisObj, false, true); } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
869,
3916,
780,
12,
1042,
9494,
16,
4766,
10792,
22780,
15261,
16,
4766,
10402,
1033,
8526,
833,
16,
4766,
10792,
4284,
9831,
2675,
13,
3639,
1216,
11905,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
869,
3916,
780,
12,
1042,
9494,
16,
4766,
10792,
22780,
15261,
16,
4766,
10402,
1033,
8526,
833,
16,
4766,
10792,
4284,
9831,
2675,
13,
3639,
1216,
11905,
... |
StringTokenizer agtArr = new StringTokenizer(agt, " "); | StringTokenizer agtArr = new StringTokenizer(agt, " ;()"); | private static Map<String,String> parseUserAgent(String agent) { Map<String,String> macros = new HashMap<String,String>(); // state double browserVersion = -1.0; double geckoDate = 0; double mozVersion = -1; boolean isMac = false; boolean isWindows = false; boolean isLinux = false; boolean isNav = false; boolean isIE = false; boolean isNav4 = false; boolean trueNs = true; boolean isNav6 = false; boolean isNav6up = false; boolean isNav7 = false; boolean isIE3 = false; boolean isIE4 = false; boolean isIE4up = false; boolean isIE5 = false; boolean isIE5_5 = false; boolean isIE5up = false; boolean isIE5_5up = false; boolean isIE6 = false; boolean isIE6up = false; boolean isFirefox = false; boolean isFirefox1up = false; boolean isFirefox1_5up = false; boolean isMozilla = false; boolean isMozilla1_4up = false; boolean isSafari = false; boolean isGeckoBased = false; boolean isOpera = false; // parse user agent String agt = agent.toLowerCase(); //System.err.println("USER-AGENT: "+agt); StringTokenizer agtArr = new StringTokenizer(agt, " "); int i = 0; int index = -1; boolean isSpoofer = false; boolean isWebTv = false; boolean isHotJava = false; boolean beginsWithMozilla = false; boolean isCompatible = false; if (agtArr.hasMoreTokens()) { String token = agtArr.nextToken(); Pattern pattern = Pattern.compile("\\s*mozilla"); Matcher mozilla = pattern.matcher(token); if (mozilla.find()){ index = mozilla.start(); beginsWithMozilla = true; browserVersion = parseFloat(token.substring(index + 8)); isNav = true; } do { //System.err.println("TOKEN: "+token); if (token.indexOf("compatible") != -1 ) { isCompatible = true; isNav = false; } else if ((token.indexOf("opera")) != -1){ isOpera = true; isNav = false; if (agtArr.hasMoreTokens()) { browserVersion = parseFloat(agtArr.nextToken()); } token = agtArr.hasMoreTokens() ? agtArr.nextToken() : null; continue; } else if ((token.indexOf("spoofer")) != -1){ isSpoofer = true; isNav = false; } else if ((token.indexOf("webtv")) != -1) { isWebTv = true; isNav = false; } else if ((token.indexOf("hotjava")) != -1) { isHotJava = true; isNav = false; } else if ((index = token.indexOf("msie")) != -1) { isIE = true; if (agtArr.hasMoreTokens()) { browserVersion = parseFloat(agtArr.nextToken()); } token = agtArr.hasMoreTokens() ? agtArr.nextToken() : null; continue; } else if ((index = token.indexOf("gecko/")) != -1){ isGeckoBased = true; geckoDate = Float.parseFloat(token.substring(index + 6)); } else if ((index = token.indexOf("rv:")) != -1){ mozVersion = parseFloat(token.substring(index + 3)); browserVersion = mozVersion; } else if ((index = token.indexOf("firefox/")) != -1){ isFirefox = true; browserVersion = parseFloat(token.substring(index + 8)); } else if ((index = token.indexOf("netscape6/")) != -1){ trueNs = true; browserVersion = parseFloat(token.substring(index + 10)); } else if ((index = token.indexOf("netscape/")) != -1){ trueNs = true; browserVersion = parseFloat(token.substring(index + 9)); } else if ((index = token.indexOf("safari/")) != -1){ isSafari = true; browserVersion = parseFloat(token.substring(index + 7)); } else if (token.indexOf("windows") != -1){ isWindows = true; } else if ((token.indexOf("macintosh") != -1) || (token.indexOf("mac_") != -1)){ isMac = true; } else if (token.indexOf("linux") != -1){ isLinux = true; } token = agtArr.hasMoreTokens() ? agtArr.nextToken() : null; } while (token != null); // Note: Opera and WebTV spoof Navigator. // We do strict client detection. isNav = (beginsWithMozilla && !isSpoofer && !isCompatible && !isOpera && !isWebTv && !isHotJava && !isSafari); isIE = (isIE && !isOpera); isNav4 = (isNav && (browserVersion == 4) && (!isIE)); isNav6 = (isNav && trueNs && (browserVersion >=6.0) && (browserVersion < 7.0)); isNav6up = (isNav && trueNs && (browserVersion >= 6.0)); isNav7 = (isNav && trueNs && (browserVersion == 7.0)); isIE3 = (isIE && (browserVersion < 4)); isIE4 = (isIE && (browserVersion == 4) && (browserVersion == 4.0)); isIE4up = (isIE && (browserVersion >= 4)); isIE5 = (isIE && (browserVersion == 4) && (browserVersion == 5.0)); isIE5_5 = (isIE && (browserVersion == 4) && (browserVersion == 5.5)); isIE5up = (isIE && (browserVersion >= 5.0)); isIE5_5up =(isIE && (browserVersion >= 5.5)); isIE6 = (isIE && (browserVersion == 6.0)); isIE6up = (isIE && (browserVersion >= 6.0)); isMozilla = ((isNav && mozVersion > -1.0 && isGeckoBased && (geckoDate != 0))); isMozilla1_4up = (isMozilla && (mozVersion >= 1.4)); isFirefox = ((isMozilla && isFirefox)); isFirefox1up = (isFirefox && browserVersion >= 1.0); isFirefox1_5up = (isFirefox && browserVersion >= 1.5); // operating systems define(macros, "WINDOWS", isWindows); define(macros, "MACINTOSH", isMac); define(macros, "LINUX", isLinux); // browser variants define(macros, "NAVIGATOR", isNav); define(macros, "NAVIGATOR_4", isNav4); define(macros, "NAVIGATOR_6", isNav6); define(macros, "NAVIGATOR_6_OR_HIGHER", isNav6up); define(macros, "NAVIGATOR_7", isNav7); define(macros, "NAVIGATOR_COMPATIBLE", isCompatible); define(macros, "MOZILLA", isMozilla); define(macros, "MOZILLA_1_4_OR_HIGHER", isMozilla1_4up); define(macros, "FIREFOX", isFirefox); define(macros, "FIREFOX_1_OR_HIGHER", isFirefox1up); define(macros, "FIREFOX_1_5_OR_HIGHER", isFirefox1_5up); define(macros, "GECKO", isGeckoBased); define(macros, "MSIE", isIE); define(macros, "MSIE_3", isIE3); define(macros, "MSIE_4", isIE4); define(macros, "MSIE_4_OR_HIGHER", isIE4up); define(macros, "MSIE_5", isIE5); define(macros, "MSIE_5_OR_HIGHER", isIE5up); define(macros, "MSIE_5_5", isIE5_5); define(macros, "MSIE_5_5_OR_HIGHER", isIE5_5up); define(macros, "MSIE_6", isIE6); define(macros, "MSIE_6_OR_HIGHER", isIE6up); define(macros, "SAFARI", isSafari); define(macros, "WEBTV", isWebTv); define(macros, "HOTJAVA", isHotJava); } return macros; } // parseUserAgent(String,Map<String,String>) | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/fea247a33b2a39b897009b172ac6c4ac114a6142/SkinResources.java/clean/ZimbraWebClient/src/com/zimbra/webClient/servlet/SkinResources.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1635,
32,
780,
16,
780,
34,
1109,
12276,
12,
780,
4040,
13,
288,
202,
202,
863,
32,
780,
16,
780,
34,
24302,
273,
394,
4317,
32,
780,
16,
780,
34,
5621,
202,
202,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1635,
32,
780,
16,
780,
34,
1109,
12276,
12,
780,
4040,
13,
288,
202,
202,
863,
32,
780,
16,
780,
34,
24302,
273,
394,
4317,
32,
780,
16,
780,
34,
5621,
202,
202,
75... |
oprops.setIndenting( true ); | oprops.setIndent( true ); | public static void exampleOutputFormat(String sourceID, String xslID) throws ProcessorException, ProcessorFactoryException, TransformException, SAXException, IOException { Processor processor = Processor.newInstance("xslt"); Templates templates = processor.process(new InputSource(xslID)); OutputFormat oprops = templates.getOutputFormat(); oprops.setIndenting( true ); Transformer transformer = templates.newTransformer(); transformer.setOutputFormat(oprops); transformer.transform(new InputSource(sourceID), new Result(System.out)); } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/0a59c863c802607a229820e928e851db21b9d055/Examples.java/clean/src/trax/Examples.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
3454,
1447,
1630,
12,
780,
1084,
734,
16,
514,
20791,
734,
13,
565,
1216,
15476,
503,
16,
15476,
1733,
503,
16,
5411,
11514,
503,
16,
14366,
16,
1860,
225,
288,
1377,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
3454,
1447,
1630,
12,
780,
1084,
734,
16,
514,
20791,
734,
13,
565,
1216,
15476,
503,
16,
15476,
1733,
503,
16,
5411,
11514,
503,
16,
14366,
16,
1860,
225,
288,
1377,
15... |
s += (b[i] == '\r' ? "\\r" : b[i] == '\n' ? "\\n" : b[i] == '\t' ? "\\t" : | s += (b[i] == (byte)'\r' ? "\\r" : b[i] == (byte)'\n' ? "\\n" : b[i] == (byte)(byte)'\t' ? "\\t" : | protected synchronized void readLine(ByteBuf into_buf) throws IOException { flushDotStream(); // Note that `input' is a LineBufferingInputStream, which means that // `read' will only return chunks consisting of a single line (or // max_bytes, whichever is smaller.) // into_buf.setLength(0); into_buf.read(input, 10240); // NNTP spec limits lines to 1000 characters if (DEBUG) { String s = "NNTP: <== "; byte b[] = into_buf.toBytes(); for (int i = 0; i < into_buf.length(); i++) s += (b[i] == '\r' ? "\\r" : b[i] == '\n' ? "\\n" : b[i] == '\t' ? "\\t" : b[i] == '\\' ? "\\\\" : new String(b, i, 1)); System.err.print(s + "\n"); } // strip off trailing newlines (really, all ctl chars) int i = into_buf.length(); int j = i; while (j > 0 && (into_buf.byteAt(j-1) == '\r' || into_buf.byteAt(j-1) == '\n')) j--; if (i != j) into_buf.setLength(j); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/384bf6d0fb445a73c9ef52dc035e7b964ea203af/NNTPConnection.java/clean/grendel/storage/NNTPConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
12273,
12,
3216,
5503,
1368,
67,
4385,
13,
1216,
1860,
288,
565,
3663,
10412,
1228,
5621,
565,
368,
3609,
716,
1375,
2630,
11,
353,
279,
5377,
1892,
310,
4348,
16,
1492,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3852,
918,
12273,
12,
3216,
5503,
1368,
67,
4385,
13,
1216,
1860,
288,
565,
3663,
10412,
1228,
5621,
565,
368,
3609,
716,
1375,
2630,
11,
353,
279,
5377,
1892,
310,
4348,
16,
1492,
... |
static void setupProcessor (VM_Processor st) { | static void setupProcessor(VM_Processor st) throws VM_PragmaInterruptible { | static void setupProcessor (VM_Processor st) { // for the PRIMORDIAL processor allocation of sizes, etc occurs // during init(), nothing more needs to be done // if (st.id > VM_Scheduler.PRIMORDIAL_PROCESSOR_ID) smallHeap.setupProcessor(st); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/6cf275a6b609ccc0eb35537fbd0223d5fd08340b/VM_Allocator.java/buggy/rvm/src/vm/memoryManagers/watson/markAndSweep/VM_Allocator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
3875,
5164,
12,
7397,
67,
5164,
384,
13,
1216,
8251,
67,
2050,
9454,
14126,
1523,
288,
565,
368,
364,
326,
10365,
49,
916,
2565,
1013,
6659,
13481,
434,
8453,
16,
5527,
9938,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
918,
3875,
5164,
12,
7397,
67,
5164,
384,
13,
1216,
8251,
67,
2050,
9454,
14126,
1523,
288,
565,
368,
364,
326,
10365,
49,
916,
2565,
1013,
6659,
13481,
434,
8453,
16,
5527,
9938,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.