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 |
|---|---|---|---|---|---|---|
catch (Exception e) { Logger.log (Logger.ERROR, e); } return null; | String o1 = Util.substitute(matcher, p1, t1, sHTML, Util.SUBSTITUTE_ALL, Util.INTERPOLATE_ALL); String o2 = Util.substitute(matcher, p2, t2, o1, Util.SUBSTITUTE_ALL, Util.INTERPOLATE_ALL); return o2; | protected String replaceRelativeImages (String sHTML) { try { int iStartAt = 0; while (iStartAt >= 0) { int iSrcAt; int iNextSRC = sHTML.indexOf ("SRC", iStartAt); int iNextSrc = sHTML.indexOf ("src", iStartAt); if (iNextSRC < 0 && iNextSrc < 0) iSrcAt = -1; else iSrcAt = iNextSRC < iNextSrc ? iNextSRC : iNextSrc; if (iSrcAt >= 0) { if (! (sHTML.substring (iSrcAt + 4).startsWith ("http://") || sHTML.substring (iSrcAt + 5).startsWith ("http://"))) { if (sHTML.charAt (iSrcAt + 4) == '\"') sHTML = sHTML.substring (0, iSrcAt + 5) + m_sUrl + ((sHTML.charAt (iSrcAt + 5)) == '/' ? "" : "/") + sHTML.substring (iSrcAt + 5); else sHTML = sHTML.substring (0, iSrcAt + 4) + m_sUrl + ((sHTML.charAt (iSrcAt + 4)) == '/' ? "" : "/") + sHTML.substring (iSrcAt + 4); } iStartAt = iSrcAt + 1; } else { iStartAt = -1; } } return sHTML; } catch (Exception e) { Logger.log (Logger.ERROR, e); } return null; } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/1f323471c8077e29c270b3497905818c0a63cd25/CPageRenderer.java/buggy/source/org/jasig/portal/channels/CPageRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
1453,
8574,
8946,
261,
780,
272,
4870,
13,
225,
288,
3639,
775,
377,
288,
1377,
509,
277,
1685,
861,
273,
374,
31,
5411,
1323,
261,
77,
1685,
861,
1545,
374,
13,
1377,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
514,
1453,
8574,
8946,
261,
780,
272,
4870,
13,
225,
288,
3639,
775,
377,
288,
1377,
509,
277,
1685,
861,
273,
374,
31,
5411,
1323,
261,
77,
1685,
861,
1545,
374,
13,
1377,
288,
... |
assertTrue("Wrong pattern", f2.toPattern().equals("'yyyy' MM yy")); | assertEquals("Wrong pattern", "'yyyy' MM yy", f2.toPattern()); | public void test_ConstructorLjava_lang_StringLjava_util_Locale() { // Test for method java.text.SimpleDateFormat(java.lang.String, // java.util.Locale) SimpleDateFormat f2 = new SimpleDateFormat("'yyyy' MM yy", Locale.GERMAN); assertTrue("Wrong class", f2.getClass() == SimpleDateFormat.class); assertTrue("Wrong pattern", f2.toPattern().equals("'yyyy' MM yy")); assertTrue("Wrong symbols", f2.getDateFormatSymbols().equals( new DateFormatSymbols(Locale.GERMAN))); assertTrue("Doesn't work", f2.format(new Date()).getClass() == String.class); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/aa7f5ac38085143bcf2542c95a675411434e9ae6/SimpleDateFormatTest.java/buggy/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/SimpleDateFormatTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
6293,
21159,
67,
4936,
67,
780,
21159,
67,
1367,
67,
3916,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
955,
18,
5784,
11878,
12,
6290,
18,
4936,
18,
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,
918,
1842,
67,
6293,
21159,
67,
4936,
67,
780,
21159,
67,
1367,
67,
3916,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
955,
18,
5784,
11878,
12,
6290,
18,
4936,
18,
7... |
if (oper instanceof SIRFilter && node.inputs > 0 && node.incoming[0] != null) { | if (oper instanceof SIRFilter && node.inputs > 0 && node.incoming[0] != null && CommonUtils.getOutputType(node.incoming[0]) != CStdType.Void) { | public Vector<String> generateRunFunction(String init_f, String main_f, List<String> cleanupCode) { Vector<String> r = new Vector<String>(); r.add("\n"); // +=============================+ // | Init State | // +=============================+ if (!isEliminated) { Iterator iter2 = fusedWith.iterator(); while (iter2.hasNext()) { FlatNode tmp = (FlatNode)iter2.next(); int fid = NodeEnumerator.getFlatNodeId(tmp); r.add("extern void __init_state_"+fid+"();\n"); r.add("\n"); } } if (! KjcOptions.standalone) { //r.add("#ifndef __CLUSTER_STANDALONE\n"); r.add("void __init_state_"+id+"() {\n"); if (!isEliminated) { Iterator iter2 = fusedWith.iterator(); while (iter2.hasNext()) { FlatNode tmp = (FlatNode)iter2.next(); int fid = NodeEnumerator.getFlatNodeId(tmp); r.add(" __init_state_"+fid+"();\n"); } } if (init_f != null) r.add(" "+init_f+"();\n"); r.add(" if (save_state::load_state("+id+", &__steady_"+id+", __read_thread__"+id+") == -1) pthread_exit(NULL);\n"); //r.add(" __number_of_iterations_"+id+" = __max_iteration - __steady_"+id+";\n"); r.add("}\n"); //r.add("#endif // __CLUSTER_STANDALONE\n"); r.add("\n"); } // +=============================+ // | Main Function | // +=============================+ if (! KjcOptions.standalone) { r.add("static void __main__"+id+"() {\n"); r.add(" int _tmp; // modified\n"); r.add(" int _steady = __steady_"+id+";\n"); r.add(" int _number = __max_iteration;\n"); r.add("\n"); if (/*msg_to.size() > 0*/sendsCredits) { r.add(" send_credits__"+id+"();\n"); } r.add(" if (_steady == 0) {\n"); if (oper instanceof SIRJoiner && ClusterCode.feedbackJoineersNeedingPrep.contains(oper)) { r.add (" __feedbackjoiner_"+ id +"_prep();\n"); } if (oper instanceof SIRFilter && node.inputs > 0 && node.incoming[0] != null) { r.add(" __init_pop_buf__"+id+"();\n"); } if (oper instanceof SIRTwoStageFilter) { r.add(" "+((SIRTwoStageFilter)oper).getInitWork().getName()+"__"+id+"();\n"); init_counts--; } if (init_counts > 0) { r.add(" for (_tmp = 0; _tmp < "+init_counts+"; _tmp++) {\n"); if (oper instanceof SIRFilter) { //r.add(" printf(\"thread"+id+" %d/"+init_counts+"\\n\", _tmp);\n"); r.add(" //check_status__"+id+"();\n"); r.add(" if (*__state_flag_"+id+" == EXIT_THREAD) exit_thread(__thread_"+id+");\n"); if (msg_from.size() > 0) { r.add(" check_messages__"+id+"();\n"); } if (node.isFilter() && node.inputs > 0 && node.incoming[0] != null) { r.add(" __update_pop_buf__"+id+"();\n"); } } r.add(" "+work_function+"(1);\n"); if (oper instanceof SIRFilter) { /* if (msg_to.size() > 0 || msg_from.size() > 0) { r.add(" __counter_"+id+"++;"); } */ if (/*msg_to.size() > 0*/sendsCredits) { r.add(" send_credits__"+id+"();\n"); } } r.add(" }\n"); } r.add(" }\n"); r.add(" _steady++;\n"); //r.add("// ClusterCodeGenerator_2\n"); r.add(" for (; _steady <= _number; _steady++) {\n"); if (steady_counts > 1) { r.add(" for (_tmp = 0; _tmp < "+steady_counts+"; _tmp++) {\n"); } if (oper instanceof SIRFilter) { r.add(" //check_status__"+id+"();\n"); r.add(" if (*__state_flag_"+id+" == EXIT_THREAD) exit_thread(__thread_"+id+");\n"); if (msg_from.size() > 0) { r.add(" check_messages__"+id+"();\n"); } if (node.isFilter() && node.inputs > 0 && node.incoming[0] != null) { r.add(" __update_pop_buf__"+id+"();\n"); } } r.add(" "+work_function+"(1);\n"); if (oper instanceof SIRFilter) { /* if (msg_to.size() > 0 || msg_from.size() > 0) { r.add(" __counter_"+id+"++;\n"); } */ if (/*msg_to.size() > 0*/sendsCredits) { r.add(" send_credits__"+id+"();\n"); } } if (steady_counts > 1) { r.add(" }\n"); } r.add("#ifdef __CHECKPOINT_FREQ\n"); r.add(" if (_steady % __CHECKPOINT_FREQ == 0)\n"); r.add(" save_state::save_to_file(__thread_"+id+", _steady, __write_thread__"+id+");\n"); r.add("#endif // __CHECKPOINT_FREQ\n"); r.add(" }\n"); r.add("}\n"); r.add("\n"); } if (msg_to.size() > 0) { r.add("void __init_sdep_"+id+"() {\n"); for (Iterator i = msg_to.iterator(); i.hasNext(); ) { SIRFilter sender = (SIRFilter)oper; SIRFilter receiver = (SIRFilter)i.next(); int fromID = id; int toID = NodeEnumerator.getSIROperatorId(receiver); boolean downstream = LatencyConstraints.isMessageDirectionDownstream(sender, receiver); r.add("\n //SDEP from: "+fromID+" to: "+toID+";\n"); streamit.scheduler2.constrained.Scheduler cscheduler = streamit.scheduler2.constrained.Scheduler.createForSDEP(ClusterBackend.topStreamIter); streamit.scheduler2.iriter.Iterator firstIter = IterFactory.createFactory().createIter(sender); streamit.scheduler2.iriter.Iterator lastIter = IterFactory.createFactory().createIter(receiver); streamit.scheduler2.SDEPData sdep = null; if (downstream) { r.add(" //message sent downstream;\n"); try { sdep = cscheduler.computeSDEP(firstIter, lastIter); } catch (streamit.scheduler2.constrained.NoPathException ex) {} } else { r.add(" //message sent upstream;\n"); try { sdep = cscheduler.computeSDEP(lastIter, firstIter); } catch (streamit.scheduler2.constrained.NoPathException ex) {} } int srcInit = sdep.getNumSrcInitPhases(); int srcSteady = sdep.getNumSrcSteadyPhases(); int dstInit = sdep.getNumDstInitPhases(); int dstSteady = sdep.getNumDstSteadyPhases(); String sdepname = "sdep_"+fromID+"_"+toID; r.add(" "+sdepname+" = new sdep("+ srcInit+","+dstInit+","+ srcSteady+","+dstSteady+");\n"); // This loop can get too large to unroll at compile time: // one example of size 1x10^6 cause gcc to crash. // If > threshold size then find contiguous sections with // the same sdep.getSrcPhase4DstPhase(y) and generate loops // rather than unrolling (ignoring threshold size for now). { int prevVal = sdep.getSrcPhase4DstPhase(0); int prevValAt = 0; final String seg1 = " "+sdepname+"->setDst2SrcDependency("; final String seg2 = ");\n"; for (int y = 0; y < dstInit + dstSteady + 1; y++) { int thisVal = sdep.getSrcPhase4DstPhase(y); if (thisVal != prevVal) { if (y == prevValAt + 1) { r.add(seg1 + prevValAt + "," + prevVal + seg2); } else { r.add(" for (int __i = " + prevValAt + "; __i < " + y + "; __i++) {\n"); r.add(" " + seg1 + "__i," + prevVal + seg2); r.add(" }\n"); } prevValAt = y; prevVal = thisVal; } } r.add(" for (int __i = " + prevValAt + "; __i < " + (dstInit + dstSteady + 1) + "; __i++) {\n"); r.add(" " + seg1 + "__i," + prevVal + seg2); r.add(" }\n"); } } r.add("}\n"); r.add("\n"); } // +======================================+ // | Run Function (not in standalone mode)| // +======================================+ if (! KjcOptions.standalone) { //r.add("#ifndef __CLUSTER_STANDALONE\n"); r.add("void run_"+id+"() {\n"); r.add(" __init_sockets_"+id+"(check_status_during_io__"+id+");\n"); if (msg_to.size() > 0) { r.add(" __init_sdep_"+id+"();\n"); } //r.add(" __steady_"+id+" = __init_iter;\n"); r.add(" __init_state_"+id+"();\n"); r.add("\n"); for (Tape out : data_out) { if (out != null) { r.add(" timer t1;\n"); /* r.add(" //peek one item from all incoming data streams\n"); i = data_in.iterator(); while (i.hasNext()) { Tape in = (Tape)i.next(); r.add(" "+in.getConsumerName()+".peek(0);\n"); } */ r.add(" __peek_sockets_"+id+"();\n"); r.add(" t1.start();\n"); break; } } //if (main_f != null) r.add(" "+main_f+"();\n"); r.add(" __main__"+id+"();\n"); for (Tape out : data_out) { if (out != null) { r.add(" t1.stop();\n"); r.add(" if (__timer_enabled) t1.output(stderr);\n"); break; } } r.add("\n"); for (Iterator cleanIt = cleanupCode.iterator(); cleanIt.hasNext();) { r.add(cleanIt.next().toString()); } r.add(" __flush_sockets_"+id+"();\n"); r.add(" pthread_exit(NULL);\n"); r.add("}\n"); //r.add("#endif // __CLUSTER_STANDALONE\n"); } return r; } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/9a8194eab858e42d60961335b81ff4d4876d825b/ClusterCodeGenerator.java/buggy/streams/src/at/dms/kjc/cluster/ClusterCodeGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
32,
780,
34,
2103,
1997,
2083,
12,
780,
1208,
67,
74,
16,
514,
2774,
67,
74,
16,
4766,
1377,
987,
32,
780,
34,
6686,
1085,
13,
288,
5411,
5589,
32,
780,
34,
436,
273,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
32,
780,
34,
2103,
1997,
2083,
12,
780,
1208,
67,
74,
16,
514,
2774,
67,
74,
16,
4766,
1377,
987,
32,
780,
34,
6686,
1085,
13,
288,
5411,
5589,
32,
780,
34,
436,
273,
39... |
ModelFacade.removeFeature(cls, at); | ProjectManager.getManager().getCurrentProject().moveToTrash(at); TargetManager.getInstance().setTarget(cls); | public void parseAttributeFig(Object cls, Object at, String text) throws ParseException { if (cls == null || at == null) { return; } ParseException pex = null; int start = 0; int end = indexOfNextCheckedSemicolon(text, start); if (end == -1) { //no text? remove attr! ModelFacade.removeFeature(cls, at); return; } String s = text.substring(start, end).trim(); if (s == null || s.length() == 0) { //no non-whitechars in text? remove attr! ModelFacade.removeFeature(cls, at); return; } parseAttribute(s, at); int i = new ArrayList(ModelFacade.getFeatures(cls)).indexOf(at); // check for more attributes (';' separated): start = end + 1; end = indexOfNextCheckedSemicolon(text, start); while (end > start && end <= text.length()) { s = text.substring(start, end).trim(); if (s != null && s.length() > 0) { // yes, there are more: Object newAt = UmlFactory.getFactory().getCore() .buildAttribute(); if (newAt != null) { try { parseAttribute(s, newAt); ModelFacade.setOwnerScope(newAt, ModelFacade .getOwnerScope(at)); if (i != -1) { ModelFacade.addFeature(cls, ++i, newAt); } else { ModelFacade.addFeature(cls, newAt); } } catch (ParseException ex) { if (pex == null) pex = ex; } } } start = end + 1; end = indexOfNextCheckedSemicolon(text, start); } if (pex != null) throw pex; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/0c8f585ad765ccf2fa506d2ed684b42ef114c805/ParserDisplay.java/buggy/src_new/org/argouml/uml/generator/ParserDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
1499,
42,
360,
12,
921,
2028,
16,
1033,
622,
16,
514,
977,
13,
3639,
1216,
10616,
288,
3639,
309,
261,
6429,
422,
446,
747,
622,
422,
446,
13,
288,
5411,
327,
31,
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,
918,
1109,
1499,
42,
360,
12,
921,
2028,
16,
1033,
622,
16,
514,
977,
13,
3639,
1216,
10616,
288,
3639,
309,
261,
6429,
422,
446,
747,
622,
422,
446,
13,
288,
5411,
327,
31,
363... |
public static InputStream getResourceAsStream(AuthToken auth, ItemId iid, Map<String,String> params) throws ServiceException { Provisioning prov = Provisioning.getInstance(); Server server = prov.getServer(prov.get(AccountBy.id, iid.getAccountId())); int port = server.getIntAttr(Provisioning.A_zimbraMailPort, 0); boolean useHTTP = port > 0; if (!useHTTP) port = server.getIntAttr(Provisioning.A_zimbraMailSSLPort, 0); if (port <= 0) throw ServiceException.FAILURE("remote server " + server.getName() + " has neither http nor https port enabled", null); String hostname = server.getAttr(Provisioning.A_zimbraServiceHostname); StringBuffer url = new StringBuffer(useHTTP ? "http" : "https"); url.append(": url.append(SERVLET_PATH).append("/~/?"); url.append(QP_ID).append('=').append(iid.toString()); url.append('&').append(QP_AUTH).append('=').append(AUTH_COOKIE); if (params != null) for (Map.Entry<String, String> param : params.entrySet()) url.append('&').append(param.getKey()).append('=').append(param.getValue()); HttpState state = new HttpState(); try { state.addCookie(new org.apache.commons.httpclient.Cookie(hostname, COOKIE_ZM_AUTH_TOKEN, auth.getEncoded(), "/", null, false)); } catch (AuthTokenException ate) { throw ServiceException.PROXY_ERROR(ate, url.toString()); } HttpClient client = new HttpClient(); client.setState(state); GetMethod get = new GetMethod(url.toString()); try { int statusCode = client.executeMethod(get); if (statusCode != HttpStatus.SC_OK) throw ServiceException.RESOURCE_UNREACHABLE(get.getStatusText(), null); return get.getResponseBodyAsStream(); } catch (HttpException e) { throw ServiceException.RESOURCE_UNREACHABLE(get.getStatusText(), e); } catch (IOException e) { throw ServiceException.RESOURCE_UNREACHABLE(get.getStatusText(), e); } | public static InputStream getResourceAsStream(AuthToken auth, ItemId iid, Map<String, String> params) throws ServiceException { Account target = Provisioning.getInstance().get(AccountBy.id, iid.getAccountId()); Map<String, String> pcopy = new HashMap<String, String>(params); pcopy.put(QP_ID, iid.toString()); return getResourceAsStream(auth, target, null, pcopy); | public static InputStream getResourceAsStream(AuthToken auth, ItemId iid, Map<String,String> params) throws ServiceException { // fetch from remote store Provisioning prov = Provisioning.getInstance(); Server server = prov.getServer(prov.get(AccountBy.id, iid.getAccountId())); int port = server.getIntAttr(Provisioning.A_zimbraMailPort, 0); boolean useHTTP = port > 0; if (!useHTTP) port = server.getIntAttr(Provisioning.A_zimbraMailSSLPort, 0); if (port <= 0) throw ServiceException.FAILURE("remote server " + server.getName() + " has neither http nor https port enabled", null); String hostname = server.getAttr(Provisioning.A_zimbraServiceHostname); StringBuffer url = new StringBuffer(useHTTP ? "http" : "https"); url.append("://").append(hostname).append(':').append(port); url.append(SERVLET_PATH).append("/~/?"); url.append(QP_ID).append('=').append(iid.toString()); url.append('&').append(QP_AUTH).append('=').append(AUTH_COOKIE); if (params != null) for (Map.Entry<String, String> param : params.entrySet()) url.append('&').append(param.getKey()).append('=').append(param.getValue()); // create an HTTP client with the same cookies HttpState state = new HttpState(); try { state.addCookie(new org.apache.commons.httpclient.Cookie(hostname, COOKIE_ZM_AUTH_TOKEN, auth.getEncoded(), "/", null, false)); } catch (AuthTokenException ate) { throw ServiceException.PROXY_ERROR(ate, url.toString()); } HttpClient client = new HttpClient(); client.setState(state); GetMethod get = new GetMethod(url.toString()); try { int statusCode = client.executeMethod(get); if (statusCode != HttpStatus.SC_OK) throw ServiceException.RESOURCE_UNREACHABLE(get.getStatusText(), null); return get.getResponseBodyAsStream(); } catch (HttpException e) { throw ServiceException.RESOURCE_UNREACHABLE(get.getStatusText(), e); } catch (IOException e) { throw ServiceException.RESOURCE_UNREACHABLE(get.getStatusText(), e); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/a5bb3f7050fac9e5ef0eef75681d51f84068110e/UserServlet.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/UserServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5037,
20216,
12,
28967,
1357,
16,
4342,
548,
22819,
16,
1635,
32,
780,
16,
780,
34,
859,
13,
1216,
16489,
288,
3639,
368,
2158,
628,
2632,
1707,
3639,
26423,
17197,
273,
26423,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5037,
20216,
12,
28967,
1357,
16,
4342,
548,
22819,
16,
1635,
32,
780,
16,
780,
34,
859,
13,
1216,
16489,
288,
3639,
368,
2158,
628,
2632,
1707,
3639,
26423,
17197,
273,
26423,... |
public void setResultType(List i) { | public void setResultType(ExpressionResult i) { | public void setResultType(List i) { resultType = i; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/4d7450e8fb4797594ad40f854e825fc886c0798b/ASTExpression.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/ASTExpression.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
21582,
559,
12,
682,
277,
13,
288,
202,
202,
2088,
559,
273,
277,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
21582,
559,
12,
682,
277,
13,
288,
202,
202,
2088,
559,
273,
277,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
WorkflowItem [] wfarray = WorkflowItem.findByCollection(ourContext, this); for( int x = 0; x < wfarray.length; x++ ) { Item myItem = wfarray[x].getItem(); wfarray[x].deleteWrapper(); myItem.delete(); } WorkspaceItem [] wsarray = WorkspaceItem.findByCollection(ourContext, this); for( int x = 0; x < wsarray.length; x++ ) { wsarray[x].deleteAll(); } DatabaseManager.delete(ourContext, collectionRow); | void delete() throws SQLException, AuthorizeException, IOException { log.info(LogManager.getHeader(ourContext, "delete_collection", "collection_id=" + getID())); // remove from index DSIndexer.unIndexContent(ourContext, this); // Remove from cache ourContext.removeCached(this, getID()); HistoryManager.saveHistory(ourContext, this, HistoryManager.REMOVE, ourContext.getCurrentUser(), ourContext.getExtraLogInfo()); // Remove items ItemIterator items = getItems(); while (items.hasNext()) { removeItem(items.next()); } // Delete bitstream logo setLogo(null); // Delete collection row DatabaseManager.delete(ourContext, collectionRow); // Remove all authorization policies AuthorizeManager.removeAllPolicies(ourContext, this); // Remove any workflow groups Group g = null; g = getWorkflowGroup(1); if( g != null ) { g.delete(); } g = getWorkflowGroup(2); if( g != null ) { g.delete(); } g = getWorkflowGroup(3); if( g != null ) { g.delete(); } } | 31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/40fc45c19a40b1806eeb97f5d687ce19ab6d1869/Collection.java/buggy/dspace/src/org/dspace/content/Collection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
11363,
1180,
5378,
11578,
1126,
273,
11363,
1180,
18,
4720,
858,
2532,
12,
477,
1042,
16,
333,
1769,
364,
12,
509,
619,
273,
374,
31,
619,
411,
11578,
1126,
18,
2469,
31,
619,
9904,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11363,
1180,
5378,
11578,
1126,
273,
11363,
1180,
18,
4720,
858,
2532,
12,
477,
1042,
16,
333,
1769,
364,
12,
509,
619,
273,
374,
31,
619,
411,
11578,
1126,
18,
2469,
31,
619,
9904,
262... | |
try { out.write(b, off, len); } catch (InterruptedIOException _) { Thread.currentThread().interrupt(); } catch (IOException _) { error = true; } if (autoFlush) { flush(); } } | try { out.write (oneByte & 0xff); if (auto_flush && (oneByte == '\n')) flush (); } catch (IOException e) { setError (); } } | public void write(byte b[], int off, int len) { if (off < 0 || len < 0 || off + len > b.length) { throw new IndexOutOfBoundsException(); } try { out.write(b, off, len); } catch (InterruptedIOException _) { Thread.currentThread().interrupt(); } catch (IOException _) { error = true; } if (autoFlush) { flush(); }} | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/8d1b3a953b2133b69c8ed157a2032d4d0b99db74/PrintStream.java/buggy/libraries/javalib/java/io/PrintStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1045,
12,
7229,
324,
63,
6487,
509,
3397,
16,
509,
562,
13,
288,
202,
430,
261,
3674,
411,
374,
747,
562,
411,
374,
747,
3397,
397,
562,
405,
324,
18,
2469,
13,
288,
202,
282,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1045,
12,
7229,
324,
63,
6487,
509,
3397,
16,
509,
562,
13,
288,
202,
430,
261,
3674,
411,
374,
747,
562,
411,
374,
747,
3397,
397,
562,
405,
324,
18,
2469,
13,
288,
202,
282,
... |
public boolean isSet(org.quickfix.field.SecurityReqID field) | public boolean isSet(quickfix.field.SecurityReqID field) | public boolean isSet(org.quickfix.field.SecurityReqID field) { return isSetField(field); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityList.java/buggy/src/java/src/quickfix/fix44/SecurityList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
4368,
6113,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
4368,
6113,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
int i = 0; for (; i < valueLen && iter.hasNext(); i++) { | for (int i = 0; i < valueLen && iter.hasNext(); i++) { | public void visitMultipleAsgnNode(MultipleAsgnNode iVisited) { // Make sure value is an array. if (value == null) { value = RubyArray.newArray(ruby, 0); } else if (!(value instanceof RubyArray)) { RubyObject newValue = value.convertToType("Array", "to_ary", false); if (newValue.isNil()) { newValue = RubyArray.newArray(ruby, value); } value = newValue; } // Assign the values. int valueLen = ((RubyArray)value).getLength(); int varLen = ListNodeUtil.getLength(iVisited.getHeadNode()); Iterator iter = iVisited.getHeadNode() != null ? iVisited.getHeadNode().iterator() : Collections.EMPTY_LIST.iterator(); int i = 0; for (; i < valueLen && iter.hasNext(); i++) { new AssignmentVisitor(ruby, self).assign((INode)iter.next(), ((RubyArray)value).entry(i), check); } if (check && varLen > valueLen) { throw new ArgumentError(ruby, "Wrong # of arguments (" + valueLen + " for " + varLen + ")"); } if (iVisited.getArgsNode() != null) { if (iVisited.getArgsNode() instanceof StarNode) { // no check for '*' } else if (varLen < valueLen) { List newList = ((RubyArray)value).getList().subList(varLen, valueLen); new AssignmentVisitor(ruby, self).assign(iVisited.getArgsNode(), RubyArray.newArray(ruby, newList), check); } else { new AssignmentVisitor(ruby, self).assign(iVisited.getArgsNode(), RubyArray.newArray(ruby, 0), check); } } else if (check && valueLen < varLen) { throw new ArgumentError(ruby, "Wrong # of arguments (" + valueLen + " for " + varLen + ")"); } while (iter.hasNext()) { i++; new AssignmentVisitor(ruby, self).assign((INode)iter.next(), ruby.getNil(), check); } result = value; } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/06e8c0888351efa411cfdddbdf48771ce7f584c0/AssignmentVisitor.java/buggy/org/jruby/evaluator/AssignmentVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
8438,
37,
1055,
82,
907,
12,
8438,
37,
1055,
82,
907,
277,
30019,
13,
288,
3639,
368,
4344,
3071,
460,
353,
392,
526,
18,
3639,
309,
261,
1132,
422,
446,
13,
288,
541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
8438,
37,
1055,
82,
907,
12,
8438,
37,
1055,
82,
907,
277,
30019,
13,
288,
3639,
368,
4344,
3071,
460,
353,
392,
526,
18,
3639,
309,
261,
1132,
422,
446,
13,
288,
541... |
rawTag = rawTag.trim (); int kind = -1; for (int i=0; i<tags.length; i++) { if (rawTag.startsWith (tags[i][0])) { kind = i; break; } } | int kind = getTagNumber (rawTag); | public static DocTag parse (String rawTag) throws DocException { rawTag = rawTag.trim (); int kind = -1; for (int i=0; i<tags.length; i++) { if (rawTag.startsWith (tags[i][0])) { kind = i; break; } } if (kind == -1) throw new DocException ("unsupported tag type: " + rawTag); String content = rawTag.substring (tags[kind][0].length ()).trim (); if (kind == 0 || kind==1) { StringTokenizer tok = new StringTokenizer (content); String name = ""; if (tok.hasMoreTokens ()) name = tok.nextToken (); return new DocTag (kind, name, content.substring (name.length ()).trim ()); } else { return new DocTag (kind, "", content); } } | 46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/424b2f802111db6a2d82d0e2cdc8243caab9e324/DocTag.java/buggy/src/helma/doc/DocTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
3521,
1805,
1109,
261,
780,
1831,
1805,
13,
1216,
3521,
503,
288,
202,
202,
1899,
1805,
273,
1831,
1805,
18,
5290,
261,
1769,
202,
202,
474,
3846,
273,
300,
21,
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,
760,
3521,
1805,
1109,
261,
780,
1831,
1805,
13,
1216,
3521,
503,
288,
202,
202,
1899,
1805,
273,
1831,
1805,
18,
5290,
261,
1769,
202,
202,
474,
3846,
273,
300,
21,
31,
202,
... |
refType = methods[i].invoke(refHeader, null); | refType = methods[i].invoke(refHeader, (Object[]) null); | private void testGetMethods(Header refHeader, Header headerToTest) throws IllegalAccessException, InvocationTargetException { try { Class implementationClass; String name = refHeader.getName(); implementationClass = refHeader.getClass(); Class[] implementedInterfaces = implementationClass.getInterfaces(); int j = 0; for (j = 0; j < implementedInterfaces.length; j++) { if (javax .sip .header .Header .class .isAssignableFrom(implementedInterfaces[j])) break; } if (j == implementedInterfaces.length) { System.out.println( "Hmm... could not find it" + refHeader.getClass()); throw new TckInternalError("Header not implemented"); } String jainClassName = implementedInterfaces[j].getName(); checkImplementsInterface( headerToTest.getClass(), implementedInterfaces[j]); // Test the get methods of the interface. Method methods[] = implementedInterfaces[j].getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { String methodName = methods[i].getName(); if ((!methodName.startsWith("get")) || methodName.equals("getParameter")) continue; Class returnType = methods[i].getReturnType(); Object refType = null; try { refType = methods[i].invoke(refHeader, null); } catch (Exception ex) { throw new TckInternalError( "Invocation failure " + methodName); } String ftype = returnType.toString(); if (returnType.isPrimitive()) { Object testValue = methods[i].invoke(headerToTest, null); assertTrue(testValue.equals(refType)); } else { // Non primitive. Object testValue = methods[i].invoke(headerToTest, null); if (refType != null) { assertTrue(testValue != null); } else if (refType == null) { assertTrue(testValue == null); } } } } catch (Exception ex) { throw new TiUnexpectedError(ex.getMessage()); } finally { logTestCompleted("testGetMethods(refHeader,headerToTest)"); } } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/68c0ca844a7d5fe4a7744cbf9898184966ce0680/HeaderFactoryTest.java/buggy/src/test/tck/factory/HeaderFactoryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1842,
967,
4712,
12,
1864,
1278,
1864,
16,
4304,
1446,
774,
4709,
13,
202,
202,
15069,
11900,
16,
15342,
288,
202,
202,
698,
288,
1082,
202,
797,
4471,
797,
31,
1082,
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,
1152,
918,
1842,
967,
4712,
12,
1864,
1278,
1864,
16,
4304,
1446,
774,
4709,
13,
202,
202,
15069,
11900,
16,
15342,
288,
202,
202,
698,
288,
1082,
202,
797,
4471,
797,
31,
1082,
20... |
splitter.getIOField ("streamInput", 0).setChannelSize (schedule.getBufferSizeBetween (body, splitter).intValue ()); | splitter.getIOField ("input", 0).setChannelSize (schedule.getBufferSizeBetween (body, splitter).intValue ()); | void setupBufferLengths (Schedule schedule) { // some of these asserts are restrictions on functionality // of this function and not on what a correct streamit structure would // be ASSERT (body != null); ASSERT (loop != null); ASSERT (joiner != null); ASSERT (splitter != null); // just go through and init the bloody buffers // start with getting body and loop to initialize their interal buffers body.setupBufferLengths (schedule); loop.setupBufferLengths (schedule); // now setup the buffer sizes: // between joiner and body joiner.getIOField ("streamOutput", 0).makePassThrough (); body.getInputChannel ().setChannelSize (schedule.getBufferSizeBetween (joiner, body).intValue ()); // between body and splitter splitter.getIOField ("streamInput", 0).setChannelSize (schedule.getBufferSizeBetween (body, splitter).intValue ()); body.getOutputChannel ().makePassThrough (); // between splitter and loop loop.getInputChannel ().setChannelSize (schedule.getBufferSizeBetween (splitter, loop).intValue ()); // between loop and joiner loop.getOutputChannel ().setChannelSize (schedule.getBufferSizeBetween (loop, joiner).intValue ()); // make sure that the input/output channels push data through right away: if (getInputChannel () != null) getInputChannel ().makePassThrough (); if (getOutputChannel () != null) splitter.getIOField ("streamOutput", 0).makePassThrough (); } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/b12d5aa3454be1beef21c8ab61c3fe13e6841d03/FeedbackLoop.java/clean/streams/src/streamit/library/FeedbackLoop.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3875,
1892,
22406,
261,
6061,
4788,
13,
565,
288,
3639,
368,
2690,
434,
4259,
26124,
854,
17499,
603,
14176,
3639,
368,
434,
333,
445,
471,
486,
603,
4121,
279,
3434,
1407,
305,
3695... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3875,
1892,
22406,
261,
6061,
4788,
13,
565,
288,
3639,
368,
2690,
434,
4259,
26124,
854,
17499,
603,
14176,
3639,
368,
434,
333,
445,
471,
486,
603,
4121,
279,
3434,
1407,
305,
3695... |
buttons.add(Box.createHorizontalStrut(5)); | buttons.add(Box.createHorizontalStrut(2)); | public SearchBar(View view) { this.view = view; setFloatable(false); setLayout(new BorderLayout()); add(new JLabel(jEdit.getProperty("view.search.find")), BorderLayout.WEST); Box box = new Box(BoxLayout.Y_AXIS); box.add(Box.createGlue()); box.add(find = new HistoryTextField("find")); Dimension min = find.getMinimumSize(); min.width = Integer.MAX_VALUE; find.setMaximumSize(min); ActionHandler handler = new ActionHandler(); find.addKeyListener(new KeyHandler()); find.addActionListener(new ActionHandler()); find.getDocument().addDocumentListener(new DocumentHandler()); box.add(Box.createGlue()); add(box,BorderLayout.CENTER); Insets margin = new Insets(1,1,1,1); Box buttons = new Box(BoxLayout.X_AXIS); buttons.add(Box.createHorizontalStrut(5)); buttons.add(incremental = new JCheckBox(jEdit.getProperty( "view.search.incremental"))); incremental.addActionListener(new ActionHandler()); incremental.setMargin(margin); buttons.add(Box.createHorizontalStrut(5)); buttons.add(ignoreCase = new JCheckBox(jEdit.getProperty( "search.ignoreCase"))); ignoreCase.addActionListener(new ActionHandler()); ignoreCase.setMargin(margin); buttons.add(Box.createHorizontalStrut(5)); buttons.add(regexp = new JCheckBox(jEdit.getProperty( "search.regexp"))); regexp.addActionListener(new ActionHandler()); regexp.setMargin(margin); buttons.add(Box.createHorizontalStrut(5)); buttons.add(multifile = new JCheckBox()); multifile.addActionListener(new ActionHandler()); multifile.setMargin(margin); buttons.add(multifileBtn = new JButton(jEdit.getProperty( "search.multifile"))); multifileBtn.addActionListener(new ActionHandler()); multifileBtn.setMargin(margin); update(); add(buttons,BorderLayout.EAST); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/a93dd37609b64b525a261ada694c678713fb5ecb/SearchBar.java/buggy/org/gjt/sp/jedit/gui/SearchBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5167,
5190,
12,
1767,
1476,
13,
202,
95,
202,
202,
2211,
18,
1945,
273,
1476,
31,
202,
202,
542,
4723,
429,
12,
5743,
1769,
202,
202,
542,
3744,
12,
2704,
30814,
10663,
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,
5167,
5190,
12,
1767,
1476,
13,
202,
95,
202,
202,
2211,
18,
1945,
273,
1476,
31,
202,
202,
542,
4723,
429,
12,
5743,
1769,
202,
202,
542,
3744,
12,
2704,
30814,
10663,
202,
... |
protected void setColValue(int colIndex, Object value, int length) | protected void setColValue(int colIndex, int jdbcType, Object value, int length) | protected void setColValue(int colIndex, Object value, int length) throws SQLException { checkUpdateable(); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/280391932d64190b4ee42f49e5f8b60382f2fa03/JtdsResultSet.java/buggy/src/main/net/sourceforge/jtds/jdbc/JtdsResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
914,
620,
12,
474,
25893,
16,
509,
16579,
559,
16,
1033,
460,
16,
509,
769,
13,
3639,
1216,
6483,
288,
3639,
866,
1891,
429,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
918,
444,
914,
620,
12,
474,
25893,
16,
509,
16579,
559,
16,
1033,
460,
16,
509,
769,
13,
3639,
1216,
6483,
288,
3639,
866,
1891,
429,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
... |
return; | return false; | public void submit(final String[] rCommands) throws CoreException { final SubmitType type; if (rCommands.length == 0) type = SubmitType.DONOTHING; else if (rCommands.length == 1) type = SubmitType.SUBMITINPUT; else { if (!copyToClipboard(rCommands)) return; type = SubmitType.PASTECLIPBOARD; } doRunConnector(type, (type == SubmitType.SUBMITINPUT) ? rCommands : null);// StringBuilder rCmd = new StringBuilder();// for (int i = 0; i < rCommands.length; i++) {// rCmd.append(rCommands[i].replace("\"", "\\\""));// rCmd.append("\n");// }// cmd[1] = rCmd.toString(); } | 48482 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48482/d83823f01254ee41f13ac0d4757d43056fcc9f0b/RGWLauncher.java/buggy/de.walware.statet.r.launching.winrgui/src/de/walware/statet/r/launching/winrgui/RGWLauncher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4879,
12,
6385,
514,
8526,
436,
9127,
13,
1216,
30015,
288,
9506,
202,
6385,
17320,
559,
618,
31,
202,
202,
430,
261,
86,
9127,
18,
2469,
422,
374,
13,
1082,
202,
723,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4879,
12,
6385,
514,
8526,
436,
9127,
13,
1216,
30015,
288,
9506,
202,
6385,
17320,
559,
618,
31,
202,
202,
430,
261,
86,
9127,
18,
2469,
422,
374,
13,
1082,
202,
723,
... |
String afterValue = "<br>"; | String afterValue = "<br/>"; | public String getToken(String tokenSource, PlayerCharacter pc, ExportHandler eh) { StringTokenizer tok = new StringTokenizer(tokenSource, "."); tok.nextToken(); StringBuffer sb = new StringBuffer(); String name = tok.nextToken(); List noteList = getNoteList(pc, name); String beforeHeader = "<b>"; String afterHeader = "</b><br>"; String beforeValue = ""; String afterValue = "<br>"; String token = "ALL"; if(tok.hasMoreTokens()) { beforeHeader = tok.nextToken(); if ("NAME".equals(beforeHeader)) { token = "NAME"; beforeHeader = afterHeader = beforeValue = afterValue = ""; if (tok.hasMoreTokens() && !"ALL".equals(token)) { beforeHeader = tok.nextToken(); } if (tok.hasMoreTokens()) { afterHeader = tok.nextToken(); } } else if ("VALUE".equals(beforeHeader)) { token = "VALUE"; beforeHeader = afterHeader = beforeValue = afterValue = ""; if (tok.hasMoreTokens()) { beforeValue = tok.nextToken(); } if (tok.hasMoreTokens()) { afterValue = tok.nextToken(); } } else if ("ALL".equals(beforeHeader)) { token = "ALL"; if (tok.hasMoreTokens()) { beforeHeader = tok.nextToken(); } if (tok.hasMoreTokens()) { afterHeader = tok.nextToken(); } if (tok.hasMoreTokens()) { beforeValue = tok.nextToken(); } if (tok.hasMoreTokens()) { afterValue = tok.nextToken(); } } } for (int i = 0; i < noteList.size(); i++) { NoteItem ni = (NoteItem) noteList.get(i); if ("ALL".equals(token)) { sb.append(ni.getExportString(beforeHeader, afterHeader, beforeValue, afterValue)); } else if ("NAME".equals(token)) { sb.append(ni.getName()); } else if ("VALUE".equals(token)) { StringTokenizer cTok = new StringTokenizer(ni.getValue(), "\r\n"); while (cTok.hasMoreTokens()) { sb.append(beforeValue); sb.append(cTok.nextToken()); sb.append(afterValue); } } } return sb.toString(); } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/f7e7c7687ef6c8ecbb1d277e97ff456a601eb147/NoteToken.java/buggy/code/src/java/plugin/exporttokens/NoteToken.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9162,
12,
780,
1147,
1830,
16,
19185,
7069,
6125,
16,
11054,
1503,
20124,
13,
202,
95,
202,
202,
780,
10524,
946,
273,
394,
16370,
12,
2316,
1830,
16,
4585,
1769,
202,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
9162,
12,
780,
1147,
1830,
16,
19185,
7069,
6125,
16,
11054,
1503,
20124,
13,
202,
95,
202,
202,
780,
10524,
946,
273,
394,
16370,
12,
2316,
1830,
16,
4585,
1769,
202,
20... |
for(int i = 0; i < elements.length; i++){ final PsiJavaCodeReferenceElement element = elements[i]; | for(final PsiJavaCodeReferenceElement element : elements){ | public void visitClass(PsiClass aClass){ final PsiManager manager = aClass.getManager(); final LanguageLevel languageLevel = manager.getEffectiveLanguageLevel(); if(languageLevel.equals(LanguageLevel.JDK_1_3) || languageLevel.equals(LanguageLevel.JDK_1_4)){ return; } if(aClass.isAnnotationType()){ return; } final PsiReferenceList extendsList = aClass.getExtendsList(); if(extendsList != null){ final PsiJavaCodeReferenceElement[] elements = extendsList.getReferenceElements(); for(int i = 0; i < elements.length; i++){ final PsiJavaCodeReferenceElement element = elements[i]; final PsiElement referent = element.resolve(); if(referent instanceof PsiClass){ ((PsiClass) referent).isAnnotationType(); if(((PsiClass) referent).isAnnotationType()){ registerError(element); } } } } final PsiReferenceList implementsList = aClass.getImplementsList(); if(implementsList != null){ final PsiJavaCodeReferenceElement[] elements = implementsList.getReferenceElements(); for(int i = 0; i < elements.length; i++){ final PsiJavaCodeReferenceElement element = elements[i]; final PsiElement referent = element.resolve(); if(referent instanceof PsiClass){ ((PsiClass) referent).isAnnotationType(); if(((PsiClass) referent).isAnnotationType()){ registerError(element); } } } } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/ExtendsAnnotationInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/classlayout/ExtendsAnnotationInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
12,
52,
7722,
797,
20148,
15329,
5411,
727,
453,
7722,
1318,
3301,
273,
20148,
18,
588,
1318,
5621,
5411,
727,
9889,
2355,
2653,
2355,
273,
10792,
3301,
18,
588,
285... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
797,
12,
52,
7722,
797,
20148,
15329,
5411,
727,
453,
7722,
1318,
3301,
273,
20148,
18,
588,
1318,
5621,
5411,
727,
9889,
2355,
2653,
2355,
273,
10792,
3301,
18,
588,
285... |
if (categories[i].getParentId() == null) list.add(categories[i]); | if (categories[i].getParentId() == null) { Set bindings = themeRegistry.getPresentationsBindingsFor(categories[i]); if (bindings == null || bindings.contains(workbench.getPresentationId())) list.add(categories[i]); } | public Object[] getElements(Object inputElement) { ArrayList list = new ArrayList(); Object [] uncatChildren = getCategoryChildren(null); list.addAll(Arrays.asList(uncatChildren)); ThemeElementCategory [] categories = ((IThemeRegistry)inputElement).getCategories(); for (int i = 0; i < categories.length; i++) { if (categories[i].getParentId() == null) list.add(categories[i]); } return list.toArray(new Object [list.size()]); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3412409e3704808dfa733425bd517a44fc3f3daa/ColorsAndFontsPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ColorsAndFontsPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
8526,
8886,
12,
921,
810,
1046,
13,
288,
5411,
2407,
666,
273,
394,
2407,
5621,
5411,
1033,
5378,
6301,
270,
4212,
273,
19110,
4212,
12,
2011,
1769,
5411,
666,
18,
1289,
1595,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
8526,
8886,
12,
921,
810,
1046,
13,
288,
5411,
2407,
666,
273,
394,
2407,
5621,
5411,
1033,
5378,
6301,
270,
4212,
273,
19110,
4212,
12,
2011,
1769,
5411,
666,
18,
1289,
1595,... |
final Method method = VirtualMachineManager.class.getMethod("createVirtualMachine", new Class[]{myDelegateClass}); | final Method method = virtualMachineManager.getClass().getMethod("createVirtualMachine", new Class[]{myDelegateClass}); | public VirtualMachine createVirtualMachine() throws IOException { try { final VirtualMachineManager virtualMachineManager = Bootstrap.virtualMachineManager(); final Method method = VirtualMachineManager.class.getMethod("createVirtualMachine", new Class[]{myDelegateClass}); return (VirtualMachine)method.invoke(virtualMachineManager, new Object[]{myConnection}); } catch (NoSuchMethodException e) { LOG.error(e); } catch (IllegalAccessException e) { LOG.error(e); } catch (InvocationTargetException e) { LOG.error(e); } return null; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d2d118407ce89dada9e31d09ba5b77c6598349a/ConnectionService.java/buggy/source/com/intellij/debugger/apiAdapters/ConnectionService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18452,
752,
27454,
1435,
1216,
1860,
288,
565,
775,
288,
1377,
727,
18452,
1318,
5024,
6981,
1318,
273,
11830,
18,
12384,
6981,
1318,
5621,
1377,
727,
2985,
707,
273,
5024,
6981,
1318... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18452,
752,
27454,
1435,
1216,
1860,
288,
565,
775,
288,
1377,
727,
18452,
1318,
5024,
6981,
1318,
273,
11830,
18,
12384,
6981,
1318,
5621,
1377,
727,
2985,
707,
273,
5024,
6981,
1318... |
jj_la1[57] = jj_gen; | jj_la1[59] = jj_gen; | final public void PrimitiveType() throws ParseException { /*@bgen(jjtree) PrimitiveType */ ASTPrimitiveType jjtn000 = new ASTPrimitiveType(this, JJTPRIMITIVETYPE); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch (jj_nt.kind) { case BOOLEAN: jj_consume_token(BOOLEAN); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("boolean"); break; case CHAR: jj_consume_token(CHAR); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("char"); break; case BYTE: jj_consume_token(BYTE); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("byte"); break; case SHORT: jj_consume_token(SHORT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("short"); break; case INT: jj_consume_token(INT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("int"); break; case LONG: jj_consume_token(LONG); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("long"); break; case FLOAT: jj_consume_token(FLOAT); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("float"); break; case DOUBLE: jj_consume_token(DOUBLE); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage("double"); break; default: jj_la1[57] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } 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,
14488,
559,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
14488,
559,
1195,
225,
9183,
9840,
559,
10684,
5088,
3784,
273,
394,
9183,
9840,
559,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
14488,
559,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
14488,
559,
1195,
225,
9183,
9840,
559,
10684,
5088,
3784,
273,
394,
9183,
9840,
559,
12,
2... |
((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } | ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } | public int execute(Object key, Object value, Object arg) { MethodNode methodNode = (MethodNode) value; ((RubyMap) arg).put( key, nf.newMethod(methodNode.getBodyNode(), methodNode.getNoex())); return RubyMapMethod.CONTINUE; } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
509,
1836,
12,
921,
498,
16,
1033,
460,
16,
1033,
1501,
13,
288,
6862,
202,
1305,
907,
707,
907,
273,
261,
1305,
907,
13,
460,
31,
6862,
202,
12443,
54,
10340,
863,
13,
150... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
509,
1836,
12,
921,
498,
16,
1033,
460,
16,
1033,
1501,
13,
288,
6862,
202,
1305,
907,
707,
907,
273,
261,
1305,
907,
13,
460,
31,
6862,
202,
12443,
54,
10340,
863,
13,
150... |
if(!String.class.isInstance( propertyType ) || !propertyType.isArray()) { | if(!(String.class == propertyType) && !propertyType.isArray()) { | public void setLength(IntRange length) { if(!String.class.isInstance( propertyType ) || !propertyType.isArray()) { throw new MissingPropertyException("Length constraint can only be applied to a String or Array property",LENGTH_CONSTRAINT,owningClass); } Constraint c = (Constraint)this.appliedConstraints.get( LENGTH_CONSTRAINT ); if(length == null) { this.appliedConstraints.remove( LENGTH_CONSTRAINT ); } else { if(c != null) { c.setParameter(length); } else { c = new SizeConstraint(); c.setOwningClass(this.owningClass); c.setPropertyName(this.propertyName); c.setParameter(length); this.appliedConstraints.put( LENGTH_CONSTRAINT, c ); } } } | 51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/55faa39d8581467d7cd6a64d19a66f7faac40cc0/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15683,
12,
1702,
2655,
769,
13,
288,
202,
202,
430,
12,
5,
780,
18,
1106,
18,
291,
1442,
12,
21076,
262,
747,
401,
4468,
559,
18,
291,
1076,
10756,
288,
1082,
202,
1284... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15683,
12,
1702,
2655,
769,
13,
288,
202,
202,
430,
12,
5,
780,
18,
1106,
18,
291,
1442,
12,
21076,
262,
747,
401,
4468,
559,
18,
291,
1076,
10756,
288,
1082,
202,
1284... |
List auxPath = DijkstraShortestPath.findPathBetween(auxGraph1, auxVertex00, auxVertex11); | List auxPath = DijkstraShortestPath.findPathBetween(auxGraph, auxVertex00, auxVertex11); | public List equivalenceClasses() { int[] weight = weightVector(); Object[] cyclesArray = (Object[]) cycles.toArray(); Arrays.sort(cyclesArray, new Comparator() { public int compare(Object o1, Object o2) { return (int) (((Cycle)o1).weight() - ((Cycle)o2).weight()); } }); Collection essentialCycles = essentialCycles(); boolean[][] u = new boolean[cyclesArray.length][edgeList.size()]; boolean[][] a = getCycleEdgeIncidenceMatrix(cyclesArray); boolean[][] ai = inverseBinaryMatrix(a, cyclesArray.length); for (int i=0; i<cyclesArray.length; i++) { for (int j=0; j<cyclesArray.length; j++) { u[i][j] = ai[j][i]; } } UndirectedGraph h = new SimpleGraph(); h.addAllVertices(cycles); ConnectivityInspector connectivityInspector = new ConnectivityInspector(h); int left=0; for (int right=0; right<weight.length; right++) { if ((right<weight.length-1) && (weight[right+1]==weight[right])) continue; // cyclesArray[left] to cyclesArray[right] have same weight for (int i=left; i<=right; i++) { if (essentialCycles.contains((Cycle) cyclesArray[i])) continue; for (int j=i+1; j<=right; j++) { if (essentialCycles.contains((Cycle) cyclesArray[j])) continue; // check if cyclesArray[i] and cyclesArray[j] are already in the same class if (connectivityInspector.pathExists(cyclesArray[i], cyclesArray[j])) continue; boolean sameClass = false; AuxiliaryGraph2 auxGraph = new AuxiliaryGraph2(graph, edgeList, u[i], u[j]); for (Iterator it = graph.vertexSet().iterator(); it.hasNext();) { Object vertex = it.next(); Object auxVertex00 = auxGraph.vertexMap00.get(vertex); Object auxVertex11 = auxGraph.vertexMap11.get(vertex); List auxPath = DijkstraShortestPath.findPathBetween(auxGraph, auxVertex00, auxVertex11); double pathWeight = auxPath.size(); if (pathWeight == weight[left]) { sameClass = true; break; } } if (sameClass) { h.addEdge(cyclesArray[i], cyclesArray[j]); } } } for (int i=left; i<=right; i++) { if (essentialCycles.contains((Cycle) cyclesArray[i])) continue; for (int j=i+1; j<=right; j++) { if (essentialCycles.contains((Cycle) cyclesArray[j])) continue; // check if cyclesArray[i] and cyclesArray[j] are already in the same class if (connectivityInspector.pathExists(cyclesArray[i], cyclesArray[j])) continue; boolean sameClass = false; for (int k=0; ((Cycle)cyclesArray[k]).weight() < weight[left]; k++) { AuxiliaryGraph2 auxGraph1 = new AuxiliaryGraph2(graph, edgeList, u[i], u[k]); boolean shortestPathFound = false; for (Iterator it = graph.vertexSet().iterator(); it.hasNext();) { Object vertex = it.next(); Object auxVertex00 = auxGraph1.vertexMap00.get(vertex); Object auxVertex11 = auxGraph1.vertexMap11.get(vertex); List auxPath = DijkstraShortestPath.findPathBetween(auxGraph1, auxVertex00, auxVertex11); double pathWeight = auxPath.size(); if (pathWeight == weight[left]) { shortestPathFound = true; break; } } if (!shortestPathFound) continue; AuxiliaryGraph2 auxGraph2 = new AuxiliaryGraph2(graph, edgeList, u[j], u[k]); for (Iterator it = graph.vertexSet().iterator(); it.hasNext();) { Object vertex = it.next(); Object auxVertex00 = auxGraph2.vertexMap00.get(vertex); Object auxVertex11 = auxGraph2.vertexMap11.get(vertex); List auxPath = DijkstraShortestPath.findPathBetween(auxGraph2, auxVertex00, auxVertex11); double pathWeight = auxPath.size(); if (pathWeight == weight[left]) { sameClass = true; break; } } if (sameClass) break; } if (sameClass) { h.addEdge(cyclesArray[i], cyclesArray[j]); } } } left=right+1; } return connectivityInspector.connectedSets(); } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/377171c5907bab11cc813de19845b0f9ae108f55/SimpleCycleBasis.java/buggy/src/org/openscience/cdk/ringsearch/cyclebasis/SimpleCycleBasis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
28369,
4818,
1435,
288,
202,
202,
474,
8526,
3119,
273,
3119,
5018,
5621,
9506,
202,
921,
8526,
15139,
1076,
273,
261,
921,
63,
5717,
15139,
18,
31447,
5621,
202,
202,
1272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
28369,
4818,
1435,
288,
202,
202,
474,
8526,
3119,
273,
3119,
5018,
5621,
9506,
202,
921,
8526,
15139,
1076,
273,
261,
921,
63,
5717,
15139,
18,
31447,
5621,
202,
202,
1272... |
jj_la1[78] = jj_gen; | jj_la1[80] = jj_gen; | final public void UnaryExpression() throws ParseException { /*@bgen(jjtree) #UnaryExpression( ( jjtn000 . getImage ( ) != null )) */ ASTUnaryExpression jjtn000 = new ASTUnaryExpression(this, JJTUNARYEXPRESSION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch (jj_nt.kind) { case PLUS: case MINUS: switch (jj_nt.kind) { case PLUS: jj_consume_token(PLUS); jjtn000.setImage("+"); break; case MINUS: jj_consume_token(MINUS); jjtn000.setImage("-"); break; default: jj_la1[78] = jj_gen; jj_consume_token(-1); throw new ParseException(); } UnaryExpression(); break; case INCR: PreIncrementExpression(); break; case DECR: PreDecrementExpression(); break; case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FALSE: case FLOAT: case INT: case LONG: case NEW: case NULL: case SHORT: case SUPER: case THIS: case TRUE: case VOID: case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case CHARACTER_LITERAL: case STRING_LITERAL: case IDENTIFIER: case LPAREN: case BANG: case TILDE: UnaryExpressionNotPlusMinus(); break; default: jj_la1[79] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } 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, ( jjtn000 . getImage ( ) != null )); } } } | 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,
20324,
2300,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
468,
15972,
2300,
12,
261,
10684,
5088,
3784,
263,
10567,
261,
262,
480,
446,
8623,
1195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20324,
2300,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
468,
15972,
2300,
12,
261,
10684,
5088,
3784,
263,
10567,
261,
262,
480,
446,
8623,
1195,
... |
TransportInDescription tranportIn = (TransportInDescription) tranportNames.next(); TransportListener listener = tranportIn.getReceiver(); if (listener != null && startedTranports.get(tranportIn.getName().getLocalPart()) == null) { listener.init(configctx, tranportIn); | TransportInDescription transportIn = (TransportInDescription) transportNames.next(); TransportListener listener = transportIn.getReceiver(); if (listener != null && startedTransports.get(transportIn.getName().getLocalPart()) == null) { listener.init(configctx, transportIn); | public synchronized void start() { Iterator tranportNames = configctx.getAxisConfiguration(). getTransportsIn().values().iterator(); while (tranportNames.hasNext()) { try { TransportInDescription tranportIn = (TransportInDescription) tranportNames.next(); TransportListener listener = tranportIn.getReceiver(); if (listener != null && startedTranports.get(tranportIn.getName().getLocalPart()) == null) { listener.init(configctx, tranportIn); listener.start(); if (startedTranports.get(tranportIn.getName().getLocalPart()) == null) { startedTranports.put(tranportIn.getName().getLocalPart(), listener); } } } catch (Exception e) { log.info(e.getMessage()); } } stopped = false; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9bd137cf9a59fa520a67d44ffb3e52d13f2512c9/ListenerManager.java/buggy/modules/core/src/org/apache/axis2/engine/ListenerManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
787,
1435,
288,
3639,
4498,
13637,
655,
1557,
273,
642,
5900,
18,
588,
6558,
1750,
7675,
7734,
336,
1429,
4363,
382,
7675,
2372,
7675,
9838,
5621,
3639,
1323,
261,
13171,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
787,
1435,
288,
3639,
4498,
13637,
655,
1557,
273,
642,
5900,
18,
588,
6558,
1750,
7675,
7734,
336,
1429,
4363,
382,
7675,
2372,
7675,
9838,
5621,
3639,
1323,
261,
13171,
... |
final LastCallStatus lastCallStatus = runtime.getLastCallStatus(); | final LastCallStatus lastCallStatus = getRuntime().getLastCallStatus(); | public final IRubyObject call(IRubyObject recv, String name, IRubyObject[] args, CallType callType) { if (args == null) { args = IRubyObject.NULL_ARRAY; } CacheEntry entry = getMethodBodyCached(name); final LastCallStatus lastCallStatus = runtime.getLastCallStatus(); if (! entry.isDefined()) { callType.registerCallStatus(lastCallStatus, name); return callMethodMissing(recv, name, args); } RubyModule klass = entry.getOrigin(); name = entry.getOriginalName(); ICallable method = entry.getMethod(); if (!name.equals("method_missing")) { if (method.getVisibility().isPrivate() && callType.isNormal()) { lastCallStatus.setPrivate(); return callMethodMissing(recv, name, args); } else if (method.getVisibility().isProtected()) { RubyModule defined = klass; while (defined.isIncluded()) { defined = defined.getMetaClass(); } if (!runtime.getCurrentFrame().getSelf().isKindOf(defined)) { lastCallStatus.setProtected(); return callMethodMissing(recv, name, args); } } } return klass.call0(recv, name, args, method, false); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyModule.java/buggy/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
15908,
10340,
921,
745,
12,
7937,
10340,
921,
10665,
16,
514,
508,
16,
15908,
10340,
921,
8526,
833,
16,
3049,
559,
745,
559,
13,
288,
3639,
309,
261,
1968,
422,
446,
13,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
15908,
10340,
921,
745,
12,
7937,
10340,
921,
10665,
16,
514,
508,
16,
15908,
10340,
921,
8526,
833,
16,
3049,
559,
745,
559,
13,
288,
3639,
309,
261,
1968,
422,
446,
13,
288... |
this.id = id; this.mWebsite = website; this.mNewParent = parent; this.name = name; this.description = description; this.image = image; | public WeblogCategoryData( java.lang.String id, WebsiteData website, WeblogCategoryData parent, java.lang.String name, java.lang.String description, java.lang.String image) { this.id = id; this.mWebsite = website; this.mNewParent = parent; this.name = name; this.description = description; this.image = image; } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/ed64ab3584f5a23c7d41a8c0956d7dabea7d1e1e/WeblogCategoryData.java/buggy/src/org/roller/pojos/WeblogCategoryData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2999,
1330,
4457,
751,
12,
3639,
2252,
18,
4936,
18,
780,
612,
16,
3639,
1660,
12343,
751,
12504,
16,
3639,
2999,
1330,
4457,
751,
982,
16,
3639,
2252,
18,
4936,
18,
780,
508,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2999,
1330,
4457,
751,
12,
3639,
2252,
18,
4936,
18,
780,
612,
16,
3639,
1660,
12343,
751,
12504,
16,
3639,
2999,
1330,
4457,
751,
982,
16,
3639,
2252,
18,
4936,
18,
780,
508,
16,... | |
curCol[l] = Double.NEGATIVE_INFINITY; | curCol[l] = Double.NaN; | private void calcCell(Cell [][] cells) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException { Cell curCell = cells[0][0]; double[] curCol = curCell.scores; STATELOOP: for (int l = states.length - 1; l >= 0; --l) { //System.out.println("State = " + states[l].getName()); State curState = states[l]; if(initializationHack && (curState instanceof EmissionState)) { if(curState == magicalState) { curCol[l] = 0.0; } else { curCol[l] = Double.NEGATIVE_INFINITY; } continue STATELOOP; } double score = 0.0; int [] tr = transitions[l]; double[] trs = transitionScores[l]; // Calculate probabilities for states with transitions // here. double[] sourceScores = new double[tr.length]; for (int ci = 0; ci < tr.length; ++ci) { double[] sCol; double weight; int destI = tr[ci]; State destS = states[destI]; Cell targetCell; if (destS instanceof EmissionState) { int [] advance = ((EmissionState)destS).getAdvance(); targetCell = cells[advance[0]][advance[1]]; weight = targetCell.emissions[destI]; sCol = targetCell.scores; } else { targetCell = curCell; weight = 0.0; } sourceScores[ci] = targetCell.scores[destI] + weight; } // Find base for addition int ci = 0; while (ci < tr.length && sourceScores[ci] == Double.NEGATIVE_INFINITY) { ++ci; } double constant = (ci < tr.length) ? sourceScores[ci] : 0.0; for (int kc = 0; kc < tr.length; ++kc) { //System.out.println("In from " + states[kc].getName()); //System.out.println("prevScore = " + sourceScores[kc]); int k = tr[kc]; double skc = sourceScores[kc]; if (skc != Double.NEGATIVE_INFINITY) { double t = trs[kc]; score += Math.exp(t + skc - constant); } } curCol[l] = Math.log(score) + constant; //System.out.println(curCol[l]); } } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/f34f99e864e9e8905fb53dcbad1bf1ae9678cc15/PairwiseDP.java/buggy/src/org/biojava/bio/dp/PairwiseDP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7029,
4020,
12,
4020,
5378,
8526,
5983,
13,
565,
1216,
2141,
5335,
503,
16,
2141,
27316,
503,
16,
2141,
8850,
503,
565,
288,
1377,
8614,
662,
4020,
273,
5983,
63,
20,
6362,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7029,
4020,
12,
4020,
5378,
8526,
5983,
13,
565,
1216,
2141,
5335,
503,
16,
2141,
27316,
503,
16,
2141,
8850,
503,
565,
288,
1377,
8614,
662,
4020,
273,
5983,
63,
20,
6362,
2... |
queueProducer = producerSession.createProducer(queue); queueConsumer = consumerSession.createConsumer(queue); | public void setUp() throws Exception { super.setUp(); ServerManagement.startInVMServer(); ServerManagement.deployTopic("Topic"); ServerManagement.deployQueue("Queue"); InitialContext ic = new InitialContext(InVMInitialContextFactory.getJNDIEnvironment()); ConnectionFactory cf = (ConnectionFactory)ic.lookup("/messaging/ConnectionFactory"); Destination topic = (Destination)ic.lookup("/messaging/topics/Topic"); Destination queue = (Destination)ic.lookup("/messaging/queues/Queue"); producerConnection = cf.createConnection(); consumerConnection = cf.createConnection(); producerSession = producerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); consumerSession = consumerConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); topicProducer = producerSession.createProducer(topic); topicConsumer = consumerSession.createConsumer(topic);// queueProducer = producerSession.createProducer(queue);// queueConsumer = consumerSession.createConsumer(queue); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/7e0c3793e9d19c78611111b2867b96d8cfb6a0d3/MessageConsumerTest.java/clean/tests/src/org/jboss/test/messaging/jms/MessageConsumerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2389,
12140,
273,
12608,
2157,
18,
2640,
12140,
12,
4000,
1769,
2389,
5869,
273,
4765,
2157,
18,
2640,
5869,
12,
4000,
1769,
225,
1071,
918,
24292,
1435,
1216,
1185,
4000,
12140,
273,
12608,
215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2389,
12140,
273,
12608,
2157,
18,
2640,
12140,
12,
4000,
1769,
2389,
5869,
273,
4765,
2157,
18,
2640,
5869,
12,
4000,
1769,
225,
1071,
918,
24292,
1435,
1216,
1185,
4000,
12140,
273,
12608,
215... | |
int nrow = y.length; int ncol = x[0].length; if (nrow != x.length) { throw new QSARModelException("The number of values for the dependent variable does not match the number of rows of the design matrix"); } this.nvar = ncol; this.noutput = 1; Double[][] xx = new Double[nrow][ncol]; String[][] yy = new String[nrow][1]; for (int i = 0; i < nrow; i++) { yy[i][0] = new String(y[i]); for (int j = 0; j < ncol; j++) { xx[i][j] = new Double(x[i][j]); } } this.params.put("x", xx); this.params.put("y", yy); this.params.put("size", new Integer(size)); | public CNNClassificationModel(double[][] x, String[] y, int size) throws QSARModelException { super(); this.params = new HashMap(); this.currentID = this.globalID; this.globalID++; this.setModelName("cdkCNNCModel"+this.currentID); int nrow = y.length; int ncol = x[0].length; if (nrow != x.length) { throw new QSARModelException("The number of values for the dependent variable does not match the number of rows of the design matrix"); } this.nvar = ncol; this.noutput = 1; Double[][] xx = new Double[nrow][ncol]; String[][] yy = new String[nrow][1]; for (int i = 0; i < nrow; i++) { yy[i][0] = new String(y[i]); for (int j = 0; j < ncol; j++) { xx[i][j] = new Double(x[i][j]); } } this.params.put("x", xx); this.params.put("y", yy); this.params.put("size", new Integer(size)); this.setDefaults(); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/60377c8e85f1a1fc4a663313d0fd20336f5f7c9e/CNNClassificationModel.java/clean/src/org/openscience/cdk/qsar/model/R/CNNClassificationModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
385,
12225,
19168,
1488,
12,
9056,
63,
6362,
65,
619,
16,
514,
8526,
677,
16,
509,
963,
13,
1216,
2238,
55,
985,
1488,
503,
288,
3639,
2240,
5621,
3639,
333,
18,
2010,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
385,
12225,
19168,
1488,
12,
9056,
63,
6362,
65,
619,
16,
514,
8526,
677,
16,
509,
963,
13,
1216,
2238,
55,
985,
1488,
503,
288,
3639,
2240,
5621,
3639,
333,
18,
2010,
273,
394,
... | |
data.widthHint = width; data.heightHint = height; | if(useHeightHint) data.heightHint = PREFERRED_HEIGHT; | protected void createTreeViewer(Composite parent, int width, int height) { Tree tree = new Tree(parent, SWT.CHECK | SWT.BORDER); GridData data = new GridData(GridData.FILL_BOTH); data.widthHint = width; data.heightHint = height; tree.setLayoutData(data); tree.setFont(parent.getFont()); treeViewer = new CheckboxTreeViewer(tree); treeViewer.setContentProvider(treeContentProvider); treeViewer.setLabelProvider(treeLabelProvider); treeViewer.addTreeListener(this); treeViewer.addCheckStateListener(this); treeViewer.addSelectionChangedListener(this);} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/f107019bb37e50ff7cbe8a61add7b656ad3cadde/ResourceTreeAndListGroup.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceTreeAndListGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
752,
2471,
18415,
12,
9400,
982,
16,
509,
1835,
16,
509,
2072,
13,
288,
202,
2471,
2151,
273,
394,
4902,
12,
2938,
16,
348,
8588,
18,
10687,
571,
348,
8588,
18,
38,
7954,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
752,
2471,
18415,
12,
9400,
982,
16,
509,
1835,
16,
509,
2072,
13,
288,
202,
2471,
2151,
273,
394,
4902,
12,
2938,
16,
348,
8588,
18,
10687,
571,
348,
8588,
18,
38,
7954,
1769,
... |
coreAssetsElement.add(product.serialize()); | coreAssetElement.add(product.serialize()); } if (getRepositoryPath() != null) { Element repositoryPathElement = coreAssetElement.addElement ("repositoryPath"); repositoryPathElement.addText (getRepositoryPath()); | public void serialize(String path, int serializeLevel) { Document document = DocumentHelper.createDocument(); Element root = document.addElement("kobold-Productline"); //serialize all products and coreAssets //now all products Element productsElement = root.addElement("products"); //serialize each product for (Iterator it = this.products.values().iterator(); it.hasNext();) { Product product = (Product) it.next(); productsElement.add(product.serialize()); } //now all coreAssets Element coreAssetsElement = root.addElement("coreAssets"); for (Iterator it = this.coreAssets.values().iterator(); it.hasNext();) { CoreAsset product = (CoreAsset) it.next(); coreAssetsElement.add(product.serialize()); } //write it to an xml-file XMLWriter writer; try { writer = new XMLWriter(new FileWriter(path)); writer.write(document); writer.close(); } catch (IOException e) { Log log = LogFactory.getLog("kobold...."); log.error(e); } } | 9773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9773/e73864794f65c900f84a30a100bd602233bd0c30/Productline.java/clean/kobold/src/kobold.common/src/kobold/common/data/plam/Productline.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4472,
12,
780,
589,
16,
509,
4472,
2355,
13,
288,
202,
202,
2519,
1668,
273,
4319,
2276,
18,
2640,
2519,
5621,
202,
202,
1046,
1365,
273,
1668,
18,
1289,
1046,
2932,
79,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4472,
12,
780,
589,
16,
509,
4472,
2355,
13,
288,
202,
202,
2519,
1668,
273,
4319,
2276,
18,
2640,
2519,
5621,
202,
202,
1046,
1365,
273,
1668,
18,
1289,
1046,
2932,
79,
... |
_name.setLineWidth(0); _name.setMultiLine(true); _name.setFilled(false); Dimension nameMin = _name.getMinimumSize(); _name.setBounds(10, 10, 90, nameMin.height); | _name.setLineWidth(0); _name.setMultiLine(true); _name.setFilled(false); Dimension nameMin = _name.getMinimumSize(); _name.setBounds(10, 10, 90, nameMin.height); | public FigMessage() { _name.setLineWidth(0); _name.setMultiLine(true); _name.setFilled(false); Dimension nameMin = _name.getMinimumSize(); _name.setBounds(10, 10, 90, nameMin.height); _figPoly = new FigPoly(Color.black, Color.black); int[] xpoints = {75,75,77,75,73,75}; int[] ypoints = {33,24,24,15,24,24}; Polygon polygon = new Polygon(xpoints, ypoints, 6); _figPoly.setPolygon(polygon); _figPoly.setBounds(100,10,5,18); ARROW_DIRECTIONS.addElement("North"); ARROW_DIRECTIONS.addElement("South"); ARROW_DIRECTIONS.addElement("East"); ARROW_DIRECTIONS.addElement("West"); // add Figs to the FigNode in back-to-front order addFig(_name); addFig(_figPoly); Rectangle r = getBounds(); setBounds(r.x, r.y, r.width, r.height); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/FigMessage.java/buggy/src_new/org/argouml/uml/diagram/ui/FigMessage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
478,
360,
1079,
1435,
288,
565,
389,
529,
18,
542,
1670,
2384,
12,
20,
1769,
565,
389,
529,
18,
542,
5002,
1670,
12,
3767,
1769,
565,
389,
529,
18,
542,
29754,
12,
5743,
1769,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
478,
360,
1079,
1435,
288,
565,
389,
529,
18,
542,
1670,
2384,
12,
20,
1769,
565,
389,
529,
18,
542,
5002,
1670,
12,
3767,
1769,
565,
389,
529,
18,
542,
29754,
12,
5743,
1769,
5... |
event = new Event(); event.type = SWT.KeyDown; event.character = SWT.CR; display.post(event); event.type = SWT.KeyUp; display.post(event); | Runnable r = new Runnable() { public void run() { try { Thread.sleep(1000); } catch (InterruptedException e) { } char[] chars = String.valueOf(line).toCharArray(); Event event; for (int i = 0; i < chars.length; i++) { char c = chars[i]; event = new Event(); event.type = SWT.KeyDown; event.character = c; display.post(event); | protected void gotoLine(int line) { Event event = new Event(); event.type = SWT.KeyDown; event.keyCode = SWT.CTRL; display.post(event); event = new Event(); event.type = SWT.KeyDown; event.character = 'l'; display.post(event); event.type = SWT.KeyUp; display.post(event); event = new Event(); event.type = SWT.KeyUp; event.keyCode = SWT.CTRL; display.post(event); char[] chars = String.valueOf(line).toCharArray(); for (int i = 0; i < chars.length; i++) { char c = chars[i]; event = new Event(); event.type = SWT.KeyDown; event.character = c; display.post(event); event.type = SWT.KeyUp; display.post(event); } event = new Event(); event.type = SWT.KeyDown; event.character = SWT.CR; display.post(event); event.type = SWT.KeyUp; display.post(event); Utils.waitForJobsToComplete(); } | 13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/ac1388a8f65e23bdbc1519cfd83a011f14e51f91/VisualTestCase.java/clean/org.eclipse.ajdt.ui.tests/src/org/eclipse/ajdt/ui/tests/visual/VisualTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2897,
1670,
12,
474,
980,
13,
288,
202,
202,
1133,
871,
273,
394,
2587,
5621,
202,
202,
2575,
18,
723,
273,
348,
8588,
18,
653,
4164,
31,
202,
202,
2575,
18,
856,
1085... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2897,
1670,
12,
474,
980,
13,
288,
202,
202,
1133,
871,
273,
394,
2587,
5621,
202,
202,
2575,
18,
723,
273,
348,
8588,
18,
653,
4164,
31,
202,
202,
2575,
18,
856,
1085... |
private boolean mungeNewConstructor( BcelClassWeaver weaver, NewConstructorTypeMunger newConstructorTypeMunger) { final LazyClassGen currentClass = weaver.getLazyClassGen(); final InstructionFactory fact = currentClass.getFactory(); ResolvedMember newConstructorMember = newConstructorTypeMunger.getSyntheticConstructor(); TypeX onType = newConstructorMember.getDeclaringType(); if (! onType.equals(currentClass.getType())) return false; ResolvedMember explicitConstructor = newConstructorTypeMunger.getExplicitConstructor(); //int declaredParameterCount = newConstructorTypeMunger.getDeclaredParameterCount(); LazyMethodGen freshConstructor = makeMethodGen(currentClass, newConstructorMember); currentClass.addMethodGen(freshConstructor); //weaver.addLazyMethodGen(freshConstructor); InstructionList body = freshConstructor.getBody(); // add to body: push arts for call to pre, from actual args starting at 1 (skipping this), going to // declared argcount + 1 TypeX[] declaredParams = newConstructorTypeMunger.getSignature().getParameterTypes(); Type[] paramTypes = freshConstructor.getArgumentTypes(); int frameIndex = 1; for (int i = 0, len = declaredParams.length; i < len; i++) { body.append(InstructionFactory.createLoad(paramTypes[i], frameIndex)); frameIndex += paramTypes[i].getSize(); } // do call to pre Member preMethod = AjcMemberMaker.preIntroducedConstructor(aspectType, onType, declaredParams); body.append(Utility.createInvoke(fact, null, preMethod)); // create a local, and store return pre stuff into it. int arraySlot = freshConstructor.allocateLocal(1); body.append(InstructionFactory.createStore(Type.OBJECT, arraySlot)); // put this on the stack body.append(InstructionConstants.ALOAD_0); // unpack pre args onto stack TypeX[] superParamTypes = explicitConstructor.getParameterTypes(); for (int i = 0, len = superParamTypes.length; i < len; i++) { body.append(InstructionFactory.createLoad(Type.OBJECT, arraySlot)); body.append(Utility.createConstant(fact, i)); body.append(InstructionFactory.createArrayLoad(Type.OBJECT)); body.append( Utility.createConversion( fact, Type.OBJECT, BcelWorld.makeBcelType(superParamTypes[i]))); } // call super/this body.append(Utility.createInvoke(fact, null, explicitConstructor)); // put this back on the stack body.append(InstructionConstants.ALOAD_0); // unpack params onto stack Member postMethod = AjcMemberMaker.postIntroducedConstructor(aspectType, onType, declaredParams); TypeX[] postParamTypes = postMethod.getParameterTypes(); for (int i = 1, len = postParamTypes.length; i < len; i++) { body.append(InstructionFactory.createLoad(Type.OBJECT, arraySlot)); body.append(Utility.createConstant(fact, superParamTypes.length + i-1)); body.append(InstructionFactory.createArrayLoad(Type.OBJECT)); body.append( Utility.createConversion( fact, Type.OBJECT, BcelWorld.makeBcelType(postParamTypes[i]))); } // call post body.append(Utility.createInvoke(fact, null, postMethod)); // don't forget to return!! body.append(InstructionConstants.RETURN); return true; } | 7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/7d7e9e2f23dcd0906909dcb8b8a5e40ee3e85d31/BcelTypeMunger.java/clean/org.aspectj/modules/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6494,
81,
25561,
1908,
6293,
12,
202,
202,
38,
2183,
797,
3218,
21851,
1814,
21851,
16,
202,
202,
1908,
6293,
559,
49,
318,
693,
2704,
6293,
559,
49,
318,
693,
13,
202,
95,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6494,
81,
25561,
1908,
6293,
12,
202,
202,
38,
2183,
797,
3218,
21851,
1814,
21851,
16,
202,
202,
1908,
6293,
559,
49,
318,
693,
2704,
6293,
559,
49,
318,
693,
13,
202,
95,
... | ||
final PsiExpression thenExpression = conditional.getThenExpression(); final PsiExpression elseExpression = conditional.getElseExpression(); | final PsiExpression thenExpression = conditional .getThenExpression(); final PsiExpression elseExpression = conditional .getElseExpression(); | private boolean expressionMustAssignVariable(PsiVariable field, PsiExpression expression, Set<MethodSignature> checkedMethods){ if(expression == null){ return false; } if(expression instanceof PsiThisExpression || expression instanceof PsiLiteralExpression || expression instanceof PsiSuperExpression || expression instanceof PsiClassObjectAccessExpression){ return false; } else if(expression instanceof PsiReferenceExpression){ final PsiReferenceExpression refExp = (PsiReferenceExpression) expression; if(field.equals(refExp.resolve())){ if(refExp.getParent() instanceof PsiAssignmentExpression){ final PsiAssignmentExpression pae = (PsiAssignmentExpression) refExp.getParent(); if(pae.getRExpression() != null){ if(pae.getRExpression().equals(refExp)){ if(!refExp.isQualified() || refExp.getQualifierExpression() instanceof PsiThisExpression){ uninitializedReads.add(expression); } } } } else{ if(!refExp.isQualified() || refExp.getQualifierExpression() instanceof PsiThisExpression){ uninitializedReads.add(expression); } } } if(refExp.isQualified()){ return expressionMustAssignVariable(field, refExp.getQualifierExpression(), checkedMethods); } else{ return false; } } else if(expression instanceof PsiMethodCallExpression){ final PsiMethod method = PsiTreeUtil.getParentOfType(expression, PsiMethod.class); if(method != null){ final PsiReferenceExpression methodExpression = ((PsiMethodCallExpression) expression).getMethodExpression(); if(methodExpression != null){ final PsiMethod calledMethod = (PsiMethod) methodExpression.resolve(); if(method.equals(calledMethod)){ // Skip recursive call to self that causes StackOverflowError. return false; } } } return methodCallMustAssignVariable(expression, field, checkedMethods); } else if(expression instanceof PsiNewExpression){ return newExpressionMustAssignVariable(expression, field, checkedMethods); } else if(expression instanceof PsiArrayInitializerExpression){ final PsiArrayInitializerExpression array = (PsiArrayInitializerExpression) expression; final PsiExpression[] initializers = array.getInitializers(); for(final PsiExpression initializer : initializers){ if(expressionMustAssignVariable(field, initializer, checkedMethods)){ return true; } } return false; } else if(expression instanceof PsiTypeCastExpression){ final PsiTypeCastExpression typeCast = (PsiTypeCastExpression) expression; final PsiExpression operand = typeCast.getOperand(); return expressionMustAssignVariable(field, operand, checkedMethods); } else if(expression instanceof PsiArrayAccessExpression){ final PsiArrayAccessExpression accessExpression = (PsiArrayAccessExpression) expression; final PsiExpression arrayExpression = accessExpression.getArrayExpression(); final PsiExpression indexExpression = accessExpression.getIndexExpression(); return expressionMustAssignVariable(field, arrayExpression, checkedMethods) || expressionMustAssignVariable(field, indexExpression, checkedMethods); } else if(expression instanceof PsiPrefixExpression){ final PsiPrefixExpression prefixExpression = (PsiPrefixExpression) expression; final PsiExpression operand = prefixExpression.getOperand(); return expressionMustAssignVariable(field, operand, checkedMethods); } else if(expression instanceof PsiPostfixExpression){ final PsiPostfixExpression postfixExpression = (PsiPostfixExpression) expression; final PsiExpression operand = postfixExpression.getOperand(); return expressionMustAssignVariable(field, operand, checkedMethods); } else if(expression instanceof PsiBinaryExpression){ final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) expression; final PsiExpression lhs = binaryExpression.getLOperand(); final PsiExpression rhs = binaryExpression.getROperand(); return expressionMustAssignVariable(field, lhs, checkedMethods) || expressionMustAssignVariable(field, rhs, checkedMethods); } else if(expression instanceof PsiConditionalExpression){ final PsiConditionalExpression conditional = (PsiConditionalExpression) expression; final PsiExpression condition = conditional.getCondition(); if(expressionMustAssignVariable(field, condition, checkedMethods)){ return true; } final PsiExpression thenExpression = conditional.getThenExpression(); final PsiExpression elseExpression = conditional.getElseExpression(); return expressionMustAssignVariable(field, thenExpression, checkedMethods) && expressionMustAssignVariable(field, elseExpression, checkedMethods); } else if(expression instanceof PsiAssignmentExpression){ final PsiAssignmentExpression assignment = (PsiAssignmentExpression) expression; final PsiExpression lhs = assignment.getLExpression(); if(expressionMustAssignVariable(field, lhs, checkedMethods)){ return true; } final PsiExpression rhs = assignment.getRExpression(); if(expressionMustAssignVariable(field, rhs, checkedMethods)){ return true; } if(lhs instanceof PsiReferenceExpression){ final PsiElement element = ((PsiReference) lhs).resolve(); if(element != null && field != null && element.equals(field)){ return true; } } return false; } else{ return false; } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/fc3fc1341db4aa6d26930bf45116ec44c28fc569/InitializationReadUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationReadUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
2652,
10136,
4910,
3092,
12,
52,
7722,
3092,
652,
16,
4766,
1171,
453,
7722,
2300,
2652,
16,
4766,
1171,
1000,
32,
1305,
5374,
34,
5950,
4712,
15329,
3639,
309,
12,
8692,
422,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
2652,
10136,
4910,
3092,
12,
52,
7722,
3092,
652,
16,
4766,
1171,
453,
7722,
2300,
2652,
16,
4766,
1171,
1000,
32,
1305,
5374,
34,
5950,
4712,
15329,
3639,
309,
12,
8692,
422,... |
public org.quickfix.field.InstrRegistry getInstrRegistry() throws FieldNotFound { org.quickfix.field.InstrRegistry value = new org.quickfix.field.InstrRegistry(); | public quickfix.field.InstrRegistry getInstrRegistry() throws FieldNotFound { quickfix.field.InstrRegistry value = new quickfix.field.InstrRegistry(); | public org.quickfix.field.InstrRegistry getInstrRegistry() throws FieldNotFound { org.quickfix.field.InstrRegistry value = new org.quickfix.field.InstrRegistry(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/clean/src/java/src/quickfix/fix44/Quote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
382,
701,
4243,
7854,
701,
4243,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
382,
701,
4243,
460,
273,
394,
2358,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
382,
701,
4243,
7854,
701,
4243,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
382,
701,
4243,
460,
273,
394,
2358,
18,... |
for (LambdaExp outer = parent; outer != declLambda; ) | for (LambdaExp outer = parent; outer != declLambda && outer != null; ) | public void capture(Declaration decl) { if (! (decl.getCanRead() || decl.getCanCall())) return; LambdaExp curLambda = getCurrentLambda (); LambdaExp declLambda = decl.getContext().currentLambda (); // If curLambda is inlined, the function that actually needs a closure // is its caller. We get its caller using returnContinuation.context. // A complication is that we can have a chain of functions that // recursively call each other, and are hence inlined in each other. // Since a function is only inlined if it has a single call site, // that means there is actually no way to actually enter the chain; // i.e. none of the inlined functions can actually get called. // However, we have to watch out for this possibility, or the loop // here will run forever. For us to have a cycle, all of the functions // must have the same parent. If the loop is executed more times // than the number of child functions of the parent, then we know we // have a cycle. // The `chain' variable is used to catch infinite inline loops by // iterating through the parents children. LambdaExp oldParent = null; LambdaExp chain = null; while (curLambda != declLambda && curLambda.getInlineOnly()) { LambdaExp curParent = curLambda.outerLambda(); if (curParent != oldParent) { // Reset the chain. chain = curParent.firstChild; oldParent = curParent; } ApplyExp curReturn = curLambda.returnContinuation; if (chain == null || curReturn == null) { // Infinite loop of functions that are inlined in each other. curLambda.setCanCall(false); return; } curLambda = curReturn.context; chain = chain.nextSibling; } if (curLambda == declLambda) return; // The logic here is similar to that of decl.ignorable(): Expression value = decl.getValue(); LambdaExp declValue; if (value == null || ! (value instanceof LambdaExp)) declValue = null; else { declValue = (LambdaExp) value; if (declValue.getInlineOnly()) return; if (declValue.isHandlingTailCalls()) declValue = null; else if (declValue == curLambda && ! decl.getCanRead()) return; } if (decl.getFlag(Declaration.STATIC_SPECIFIED)) decl.setSimple(false); else if (decl.getCanRead() || declValue == null) { LambdaExp heapLambda = curLambda; heapLambda.setImportsLexVars(); LambdaExp parent = heapLambda.outerLambda(); for (LambdaExp outer = parent; outer != declLambda; ) { heapLambda = outer; if (! decl.getCanRead() && declValue == outer) break; heapLambda.setNeedsStaticLink(); outer = heapLambda.outerLambda(); } if (decl.base != null) { decl.base.setCanRead(true); capture(decl.base); } if (decl.isSimple()) { if (declLambda instanceof ModuleExp) { declLambda.heapFrameLambda = declLambda; } else if (declLambda.capturedVars == null) { if (heapLambda.isClassGenerated()) declLambda.heapFrameLambda = heapLambda; else { for (LambdaExp child = declLambda.firstChild; ; child = child.nextSibling) { if (child == null) break; if (child.isClassGenerated()) { declLambda.heapFrameLambda = child; break; } } } declLambda.heapFrame = new gnu.bytecode.Variable("heapFrame"); declLambda.heapFrame.setArtificial(true); } decl.setSimple(false); if (! decl.isPublic()) { decl.nextCapturedVar = declLambda.capturedVars; declLambda.capturedVars = decl; } } } } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/9f9877583001bd4238fa2f78b4e9beeaf5703be4/FindCapturedVars.java/buggy/gnu/expr/FindCapturedVars.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7477,
12,
6094,
3496,
13,
225,
288,
565,
309,
16051,
261,
8840,
18,
588,
2568,
1994,
1435,
747,
3496,
18,
588,
2568,
1477,
1435,
3719,
1377,
327,
31,
565,
12801,
2966,
662,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7477,
12,
6094,
3496,
13,
225,
288,
565,
309,
16051,
261,
8840,
18,
588,
2568,
1994,
1435,
747,
3496,
18,
588,
2568,
1477,
1435,
3719,
1377,
327,
31,
565,
12801,
2966,
662,
1... |
help.append("usage: env" + NEWLINE); help.append("Prints out the configuration environment." + NEWLINE); | help.append("usage: env" + Environment.NEWLINE); help.append("Prints out the configuration environment." + Environment.NEWLINE); | public String getHelp() { StringBuffer help = new StringBuffer(); help.append("usage: env" + NEWLINE); help.append("Prints out the configuration environment." + NEWLINE); return help.toString(); } | 3099 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3099/cf5f15c163270749fe5759b86b5e9984ae116faa/env.java/clean/src/com/marklogic/shell/env.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
6696,
1435,
288,
202,
202,
780,
1892,
2809,
273,
394,
6674,
5621,
202,
202,
5201,
18,
6923,
2932,
9167,
30,
1550,
6,
397,
26551,
1769,
202,
202,
5201,
18,
6923,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
6696,
1435,
288,
202,
202,
780,
1892,
2809,
273,
394,
6674,
5621,
202,
202,
5201,
18,
6923,
2932,
9167,
30,
1550,
6,
397,
26551,
1769,
202,
202,
5201,
18,
6923,
2932... |
e.printStackTrace(); M_log.warn(".generatePDF(): " + e); | e.printStackTrace(); M_log.warn(this+".generatePDF(): " + e); | protected void generatePDF(Document doc, String xslFileName, OutputStream streamOut) { Driver driver = new Driver(); org.apache.avalon.framework.logger.Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_ERROR); MessageHandler.setScreenLogger(logger); driver.setLogger(logger); driver.setOutputStream(streamOut); driver.setRenderer(Driver.RENDER_PDF); try { InputStream in = getClass().getClassLoader().getResourceAsStream(xslFileName); Transformer transformer = transformerFactory.newTransformer(new StreamSource(in)); Source src = new DOMSource(doc); transformer.transform(src, new SAXResult(driver.getContentHandler())); } catch (TransformerException e) {e.printStackTrace(); M_log.warn(".generatePDF(): " + e); return; } } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/56de4fae19b2983ad18c3cc50c86297f14f2b743/BaseCalendarService.java/clean/calendar/calendar-impl/impl/src/java/org/sakaiproject/calendar/impl/BaseCalendarService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2103,
17508,
12,
2519,
997,
16,
514,
20791,
4771,
16,
8962,
1407,
1182,
13,
202,
95,
202,
202,
4668,
3419,
273,
394,
9396,
5621,
202,
202,
3341,
18,
19211,
18,
842,
287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
17508,
12,
2519,
997,
16,
514,
20791,
4771,
16,
8962,
1407,
1182,
13,
202,
95,
202,
202,
4668,
3419,
273,
394,
9396,
5621,
202,
202,
3341,
18,
19211,
18,
842,
287,... |
this.op = RSH; return SHOP; } } } else { if (matchChar('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } | this.op = LT; return RELOP; } } case '>': if (matchChar('>')) { if (matchChar('>')) { if (matchChar('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (matchChar('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (matchChar('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (matchChar('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': if (matchChar('/')) { skipLine(); return getToken(); } if (matchChar('*')) { while ((c = getChar()) != -1 && !(c == '*' && matchChar('/'))) { ; } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); } if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = getChar()) != '/') { if (c == '\n' || c == EOF_CHAR) { ungetChar(c); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = getChar(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (matchChar('g')) addToString('g'); else if (matchChar('i')) addToString('i'); else if (matchChar('m')) addToString('m'); else break; } if (isAlpha(peekChar())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (matchChar('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (matchChar('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (matchChar('=')) { this.op = ADD; return ASSIGN; } else if (matchChar('+')) { return INC; } else { return ADD; } case '-': if (matchChar('=')) { this.op = SUB; c = ASSIGN; } else if (matchChar('-')) { if (0 == (flags & TSF_DIRTYLINE)) { if (matchChar('>')) { skipLine(); return getToken(); } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; | public int getToken() throws IOException { int c; tokenno++; // Check for pushed-back token if (this.pushbackToken != EOF) { int result = this.pushbackToken; this.pushbackToken = EOF; return result; } // Eat whitespace, possibly sensitive to newlines. for (;;) { c = getChar(); if (c == EOF_CHAR) { return EOF; } else if (c == '\n') { flags &= ~TSF_DIRTYLINE; if ((flags & TSF_NEWLINES) != 0) { break; } } else if (!isJSSpace(c)) { if (c != '-') { flags |= TSF_DIRTYLINE; } break; } } // identifier/keyword/instanceof? // watch out for starting with a <backslash> boolean identifierStart; boolean isUnicodeEscapeStart = false; if (c == '\\') { c = getChar(); if (c == 'u') { identifierStart = true; isUnicodeEscapeStart = true; stringBufferTop = 0; } else { identifierStart = false; ungetChar(c); c = '\\'; } } else { identifierStart = Character.isJavaIdentifierStart((char)c); if (identifierStart) { stringBufferTop = 0; addToString(c); } } if (identifierStart) { boolean containsEscape = isUnicodeEscapeStart; for (;;) { if (isUnicodeEscapeStart) { // strictly speaking we should probably push-back // all the bad characters if the <backslash>uXXXX // sequence is malformed. But since there isn't a // correct context(is there?) for a bad Unicode // escape sequence in an identifier, we can report // an error here. int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = getChar(); escapeVal = (escapeVal << 4) | xDigitToInt(c); // Next check takes care about c < 0 and bad escape if (escapeVal < 0) { break; } } if (escapeVal < 0) { reportSyntaxError("msg.invalid.escape", null); return ERROR; } addToString(escapeVal); isUnicodeEscapeStart = false; } else { c = getChar(); if (c == '\\') { c = getChar(); if (c == 'u') { isUnicodeEscapeStart = true; containsEscape = true; } else { reportSyntaxError("msg.illegal.character", null); return ERROR; } } else { if (c == EOF_CHAR || !Character.isJavaIdentifierPart((char)c)) { break; } addToString(c); } } } ungetChar(c); String str = getStringFromBuffer(); if (!containsEscape) { // OPT we shouldn't have to make a string (object!) to // check if it's a keyword. // Return the corresponding token if it's a keyword int result = stringToKeyword(str); if (result != EOF) { if (result != RESERVED) { return result; } else if (!Context.getContext().hasFeature( Context.FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER)) { return result; } else { // If implementation permits to use future reserved // keywords in violation with the EcmaScript standard, // treat it as name but issue warning Object[] errArgs = { str }; reportSyntaxWarning("msg.reserved.keyword", errArgs); } } } this.string = (String)allStrings.intern(str); return NAME; } // is it a number? if (isDigit(c) || (c == '.' && isDigit(peekChar()))) { stringBufferTop = 0; int base = 10; if (c == '0') { c = getChar(); if (c == 'x' || c == 'X') { base = 16; c = getChar(); } else if (isDigit(c)) { base = 8; } else { addToString('0'); } } if (base == 16) { while (0 <= xDigitToInt(c)) { addToString(c); c = getChar(); } } else { while ('0' <= c && c <= '9') { /* * We permit 08 and 09 as decimal numbers, which * makes our behavior a superset of the ECMA * numeric grammar. We might not always be so * permissive, so we warn about it. */ if (base == 8 && c >= '8') { Object[] errArgs = { c == '8' ? "8" : "9" }; reportSyntaxWarning("msg.bad.octal.literal", errArgs); base = 10; } addToString(c); c = getChar(); } } boolean isInteger = true; if (base == 10 && (c == '.' || c == 'e' || c == 'E')) { isInteger = false; if (c == '.') { do { addToString(c); c = getChar(); } while (isDigit(c)); } if (c == 'e' || c == 'E') { addToString(c); c = getChar(); if (c == '+' || c == '-') { addToString(c); c = getChar(); } if (!isDigit(c)) { reportSyntaxError("msg.missing.exponent", null); return ERROR; } do { addToString(c); c = getChar(); } while (isDigit(c)); } } ungetChar(c); String numString = getStringFromBuffer(); double dval; if (base == 10 && !isInteger) { try { // Use Java conversion to number from string... dval = (Double.valueOf(numString)).doubleValue(); } catch (NumberFormatException ex) { Object[] errArgs = { ex.getMessage() }; reportSyntaxError("msg.caught.nfe", errArgs); return ERROR; } } else { dval = ScriptRuntime.stringToNumber(numString, 0, base); } this.number = dval; return NUMBER; } // is it a string? if (c == '"' || c == '\'') { // We attempt to accumulate a string the fast way, by // building it directly out of the reader. But if there // are any escaped characters in the string, we revert to // building it out of a StringBuffer. int quoteChar = c; int val = 0; stringBufferTop = 0; c = getChar(); strLoop: while (c != quoteChar) { if (c == '\n' || c == EOF_CHAR) { ungetChar(c); reportSyntaxError("msg.unterminated.string.lit", null); return ERROR; } if (c == '\\') { // We've hit an escaped character c = getChar(); switch (c) { case 'b': c = '\b'; break; case 'f': c = '\f'; break; case 'n': c = '\n'; break; case 'r': c = '\r'; break; case 't': c = '\t'; break; // \v a late addition to the ECMA spec, // it is not in Java, so use 0xb case 'v': c = 0xb; break; case 'u': { /* * Get 4 hex digits; if the u escape is not * followed by 4 hex digits, use 'u' + the literal * character sequence that follows. */ int escapeStart = stringBufferTop; addToString('u'); int escapeVal = 0; for (int i = 0; i != 4; ++i) { c = getChar(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { continue strLoop; } addToString(c); } // prepare for replace of stored 'u' sequence // by escape value stringBufferTop = escapeStart; c = escapeVal; } break; case 'x': { /* Get 2 hex digits, defaulting to 'x' + literal * sequence, as above. */ c = getChar(); int escapeVal = xDigitToInt(c); if (escapeVal < 0) { addToString('x'); continue strLoop; } else { int c1 = c; c = getChar(); escapeVal = (escapeVal << 4) | xDigitToInt(c); if (escapeVal < 0) { addToString('x'); addToString(c1); continue strLoop; } else { // got 2 hex digits c = escapeVal; } } } break; default: if ('0' <= c && c < '8') { val = c - '0'; c = getChar(); if ('0' <= c && c < '8') { val = 8 * val + c - '0'; c = getChar(); if ('0' <= c && c < '8' && val <= 037) { // c is 3rd char of octal sequence only if // the resulting val <= 0377 val = 8 * val + c - '0'; c = getChar(); } } ungetChar(c); c = val; } } } addToString(c); c = getChar(); } String str = getStringFromBuffer(); this.string = (String)allStrings.intern(str); return STRING; } switch (c) { case '\n': return EOL; case ';': return SEMI; case '[': return LB; case ']': return RB; case '{': return LC; case '}': return RC; case '(': return LP; case ')': return RP; case ',': return COMMA; case '?': return HOOK; case ':': return COLON; case '.': return DOT; case '|': if (matchChar('|')) { return OR; } else if (matchChar('=')) { this.op = BITOR; return ASSIGN; } else { return BITOR; } case '^': if (matchChar('=')) { this.op = BITXOR; return ASSIGN; } else { return BITXOR; } case '&': if (matchChar('&')) { return AND; } else if (matchChar('=')) { this.op = BITAND; return ASSIGN; } else { return BITAND; } case '=': if (matchChar('=')) { if (matchChar('=')) this.op = SHEQ; else this.op = EQ; return EQOP; } else { this.op = NOP; return ASSIGN; } case '!': if (matchChar('=')) { if (matchChar('=')) this.op = SHNE; else this.op = NE; return EQOP; } else { this.op = NOT; return UNARYOP; } case '<': /* NB:treat HTML begin-comment as comment-till-eol */ if (matchChar('!')) { if (matchChar('-')) { if (matchChar('-')) { skipLine(); return getToken(); // in place of 'goto retry' } ungetChar('-'); } ungetChar('!'); } if (matchChar('<')) { if (matchChar('=')) { this.op = LSH; return ASSIGN; } else { this.op = LSH; return SHOP; } } else { if (matchChar('=')) { this.op = LE; return RELOP; } else { this.op = LT; return RELOP; } } case '>': if (matchChar('>')) { if (matchChar('>')) { if (matchChar('=')) { this.op = URSH; return ASSIGN; } else { this.op = URSH; return SHOP; } } else { if (matchChar('=')) { this.op = RSH; return ASSIGN; } else { this.op = RSH; return SHOP; } } } else { if (matchChar('=')) { this.op = GE; return RELOP; } else { this.op = GT; return RELOP; } } case '*': if (matchChar('=')) { this.op = MUL; return ASSIGN; } else { return MUL; } case '/': // is it a // comment? if (matchChar('/')) { skipLine(); return getToken(); } if (matchChar('*')) { while ((c = getChar()) != -1 && !(c == '*' && matchChar('/'))) { ; // empty loop body } if (c == EOF_CHAR) { reportSyntaxError("msg.unterminated.comment", null); return ERROR; } return getToken(); // `goto retry' } // is it a regexp? if ((flags & TSF_REGEXP) != 0) { stringBufferTop = 0; while ((c = getChar()) != '/') { if (c == '\n' || c == EOF_CHAR) { ungetChar(c); reportSyntaxError("msg.unterminated.re.lit", null); return ERROR; } if (c == '\\') { addToString(c); c = getChar(); } addToString(c); } int reEnd = stringBufferTop; while (true) { if (matchChar('g')) addToString('g'); else if (matchChar('i')) addToString('i'); else if (matchChar('m')) addToString('m'); else break; } if (isAlpha(peekChar())) { reportSyntaxError("msg.invalid.re.flag", null); return ERROR; } this.string = new String(stringBuffer, 0, reEnd); this.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd); return REGEXP; } if (matchChar('=')) { this.op = DIV; return ASSIGN; } else { return DIV; } case '%': this.op = MOD; if (matchChar('=')) { return ASSIGN; } else { return MOD; } case '~': this.op = BITNOT; return UNARYOP; case '+': if (matchChar('=')) { this.op = ADD; return ASSIGN; } else if (matchChar('+')) { return INC; } else { return ADD; } case '-': if (matchChar('=')) { this.op = SUB; c = ASSIGN; } else if (matchChar('-')) { if (0 == (flags & TSF_DIRTYLINE)) { // treat HTML end-comment after possible whitespace // after line start as comment-utill-eol if (matchChar('>')) { skipLine(); return getToken(); } } c = DEC; } else { c = SUB; } flags |= TSF_DIRTYLINE; return c; default: reportSyntaxError("msg.illegal.character", null); return ERROR; } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b1de655726ffc5e0dce2133a442d2908e9efa092/TokenStream.java/buggy/js/rhino/src/org/mozilla/javascript/TokenStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9162,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
1147,
2135,
9904,
31,
3639,
368,
2073,
364,
18543,
17,
823,
1147,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
9162,
1435,
1216,
1860,
288,
3639,
509,
276,
31,
3639,
1147,
2135,
9904,
31,
3639,
368,
2073,
364,
18543,
17,
823,
1147,
3639,
309,
261,
2211,
18,
6206,
823,
1345,
480,
6431,
... |
JMSDispatcher.instance.registerTarget(new Integer(sessionID), sessionAdvised); | Integer iSessionID = new Integer(sessionID); serverPeer.addSession(iSessionID, ep); JMSDispatcher.instance.registerTarget(iSessionID, sessionAdvised); | public SessionDelegate createSessionDelegate(boolean transacted, int acknowledgmentMode, boolean isXA) throws JMSException { try { log.debug("creating session " + (transacted ? "transacted" :"non transacted")+ ", " + ToString.acknowledgmentMode(acknowledgmentMode) + ", " + (isXA ? "XA": "non XA")); if (closed) { throw new IllegalStateException("Connection is closed"); } int sessionID = serverPeer.getNextObjectID(); // create the corresponding server-side session endpoint and register it with this // connection endpoint instance ServerSessionEndpoint ep = new ServerSessionEndpoint(sessionID, this); synchronized (sessions) { sessions.put(new Integer(sessionID), ep); } SessionAdvised sessionAdvised = new SessionAdvised(ep); JMSDispatcher.instance.registerTarget(new Integer(sessionID), sessionAdvised); ClientSessionDelegate d = new ClientSessionDelegate(sessionID); log.debug("created " + d); log.debug("created and registered " + ep); return d; } catch (Throwable t) { throw ExceptionUtil.handleJMSInvocation(t, this + " createSessionDelegate"); } } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/67a2ce6eee4fecacdc05a35652ffceb168cc2c14/ServerConnectionEndpoint.java/buggy/src/main/org/jboss/jms/server/endpoint/ServerConnectionEndpoint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3877,
9586,
752,
2157,
9586,
12,
6494,
906,
25487,
16,
4766,
7734,
509,
23262,
75,
475,
2309,
16,
4766,
7734,
1250,
353,
17269,
13,
1377,
1216,
20343,
282,
288,
1377,
775,
1377,
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,
565,
1071,
3877,
9586,
752,
2157,
9586,
12,
6494,
906,
25487,
16,
4766,
7734,
509,
23262,
75,
475,
2309,
16,
4766,
7734,
1250,
353,
17269,
13,
1377,
1216,
20343,
282,
288,
1377,
775,
1377,
288... |
synchronized (pool) { | void release() { if (pool != null) { synchronized (pool) { useCount++; Object key = HTTPConnection.getPoolKey(hostname, port, secure); pool.put(key, this); while (pool.size() >= HTTPURLConnection.maxConnections) { // maxConnections must always be >= 1 Object lru = pool.keySet().iterator().next(); HTTPConnection c = (HTTPConnection)pool.remove(lru); try { c.closeConnection(); } catch (IOException ioe) { // Ignore it. We are just cleaning up. } } } } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/HTTPConnection.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/http/HTTPConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3992,
1435,
225,
288,
565,
309,
261,
6011,
480,
446,
13,
1377,
288,
3639,
3852,
261,
6011,
13,
1850,
288,
5411,
999,
1380,
9904,
31,
5411,
1033,
498,
273,
2239,
1952,
18,
588,
2864... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3992,
1435,
225,
288,
565,
309,
261,
6011,
480,
446,
13,
1377,
288,
3639,
3852,
261,
6011,
13,
1850,
288,
5411,
999,
1380,
9904,
31,
5411,
1033,
498,
273,
2239,
1952,
18,
588,
2864... | |
if ( queryStack.get( i ) instanceof GroupDefinition ) return (GroupDefinition) queryStack.get( i ); | return (GroupDefinition) queryStack.getLast( ); | protected GroupDefinition getCurrentGroup( ) { if ( queryStack.isEmpty( ) ) return null; for ( int i = queryStack.size( ) - 1; i >= 0; i-- ) { if ( queryStack.get( i ) instanceof GroupDefinition ) return (GroupDefinition) queryStack.get( i ); } return null; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/df952c9b3a0e802299432865054d0cf1d9b21bd4/ReportQueryBuilder.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
3756,
1852,
5175,
1114,
12,
262,
202,
202,
95,
1082,
202,
430,
261,
843,
2624,
18,
291,
1921,
12,
262,
262,
9506,
202,
2463,
446,
31,
1082,
202,
1884,
261,
509,
277,
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,
3196,
202,
1117,
3756,
1852,
5175,
1114,
12,
262,
202,
202,
95,
1082,
202,
430,
261,
843,
2624,
18,
291,
1921,
12,
262,
262,
9506,
202,
2463,
446,
31,
1082,
202,
1884,
261,
509,
277,
273,
... |
c.childrenWriteAccept(this,false,false,false,false,true,false); | Geometry g = c.getGeometry(); if(g != null && g instanceof IndexedFaceSet && !checkHasTree((IndexedFaceSet) g)) c.childrenWriteAccept(this,false,false,false,false,true,false); else c.childrenAccept(this); | public void visit(SceneGraphComponent c) { if (!c.isVisible()) return; path.push(c); //c.childrenAccept(this); c.childrenWriteAccept(this,false,false,false,false,true,false); path.pop(); } | 25414 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25414/51e79571a7b7c86e1a1861dd690cf401c037471e/AABBPickSystem.java/clean/src-core/de/jreality/scene/pick/AABBPickSystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
12,
14370,
4137,
1841,
276,
13,
288,
1377,
309,
16051,
71,
18,
291,
6207,
10756,
327,
31,
1377,
589,
18,
6206,
12,
71,
1769,
1377,
368,
71,
18,
5906,
5933,
12,
2211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
12,
14370,
4137,
1841,
276,
13,
288,
1377,
309,
16051,
71,
18,
291,
6207,
10756,
327,
31,
1377,
589,
18,
6206,
12,
71,
1769,
1377,
368,
71,
18,
5906,
5933,
12,
2211,
... |
if (line == null) return false; | public synchronized boolean next(Writable key, Writable value) throws IOException { if (!(key instanceof Text)) { throw new IllegalArgumentException("Key should be of type Text but: " + key.getClass().getName()); } if (!(value instanceof Text)) { throw new IllegalArgumentException("Value should be of type Text but: " + value.getClass().getName()); } Text tKey = (Text) key; Text tValue = (Text) value; byte[] line; while (true) { if (gzipped_) { // figure EOS from readLine } else { long pos = in_.getPos(); if (pos >= end_) return false; } line = UTF8ByteArrayUtils.readLine((InputStream) in_); try { Text.validateUTF8(line); } catch (MalformedInputException m) { System.err.println("line=" + line + "|" + new Text(line)); System.out.flush(); } if (line == null) return false; try { int tab = UTF8ByteArrayUtils.findTab(line); if (tab == -1) { tKey.set(line); tValue.set(""); } else { UTF8ByteArrayUtils.splitKeyVal(line, tKey, tValue, tab); } break; } catch (MalformedInputException e) { LOG.warn(StringUtils.stringifyException(e)); } } numRecStats(line, 0, line.length); return true; } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/250ae5f8638bbd5f328aa6e0d1f9fc0a5fb133a9/StreamLineRecordReader.java/buggy/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamLineRecordReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1250,
1024,
12,
12061,
498,
16,
14505,
460,
13,
1216,
1860,
288,
565,
309,
16051,
12,
856,
1276,
3867,
3719,
288,
1377,
604,
394,
2754,
2932,
653,
1410,
506,
434,
618,
3867,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
1250,
1024,
12,
12061,
498,
16,
14505,
460,
13,
1216,
1860,
288,
565,
309,
16051,
12,
856,
1276,
3867,
3719,
288,
1377,
604,
394,
2754,
2932,
653,
1410,
506,
434,
618,
3867,
... | |
String url = getNormilizedUrl(fnOrScript); | String url = getNormalizedUrl(fnOrScript); | FunctionSource getFunctionSource(DebuggableScript fnOrScript) { FunctionSource fsource = functionSource(fnOrScript); if (fsource == null) { String url = getNormilizedUrl(fnOrScript); SourceInfo si = sourceInfo(url); if (si == null) { if (!fnOrScript.isGeneratedScript()) { // Not eval or Function, try to load it from URL String source = loadSource(url); if (source != null) { DebuggableScript top = fnOrScript; for (;;) { DebuggableScript parent = top.getParent(); if (parent == null) { break; } top = parent; } registerTopScript(top, source); fsource = functionSource(fnOrScript); } } } } return fsource; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/2d4fc75b74d717c754829dde488ff0a7456682cc/Dim.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Dim.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4284,
1830,
18697,
1830,
12,
2829,
8455,
3651,
2295,
1162,
3651,
13,
565,
288,
3639,
4284,
1830,
2662,
552,
273,
445,
1830,
12,
4293,
1162,
3651,
1769,
3639,
309,
261,
2556,
552,
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,
4284,
1830,
18697,
1830,
12,
2829,
8455,
3651,
2295,
1162,
3651,
13,
565,
288,
3639,
4284,
1830,
2662,
552,
273,
445,
1830,
12,
4293,
1162,
3651,
1769,
3639,
309,
261,
2556,
552,
422,
446... |
context.enable(); | void enterInterruptImpl(Dim.StackFrame lastFrame, String threadTitle, String alertMessage) { statusBar.setText("Thread: " + threadTitle); showStopLine(lastFrame); if (alertMessage != null) { MessageDialogWrapper.showMessageDialog(this, alertMessage, "Exception in Script", JOptionPane.ERROR_MESSAGE); } ((Menubar)getJMenuBar()).updateEnabled(true); toolBar.setEnabled(true); // raise the debugger window toFront(); Dim.ContextData contextData = lastFrame.contextData(); context.enable(); JComboBox ctx = context.context; Vector toolTips = context.toolTips; context.disableUpdate(); int frameCount = contextData.frameCount(); ctx.removeAllItems(); // workaround for JDK 1.4 bug that caches selected value even after // removeAllItems() is called ctx.setSelectedItem(null); toolTips.removeAllElements(); for (int i = 0; i < frameCount; i++) { Dim.StackFrame frame = contextData.getFrame(i); String url = frame.getUrl(); int lineNumber = frame.getLineNumber(); String shortName = url; if (url.length() > 20) { shortName = "..." + url.substring(url.length() - 17); } String location = "\"" + shortName + "\", line " + lineNumber; ctx.insertItemAt(location, i); location = "\"" + url + "\", line " + lineNumber; toolTips.addElement(location); } context.enableUpdate(); ctx.setSelectedIndex(0); ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height)); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8a6fdf912e96cc292773139de3c88e93e60d1c56/DebugGui.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
6103,
14126,
2828,
12,
5225,
18,
2624,
3219,
1142,
3219,
16,
514,
2650,
4247,
16,
18701,
514,
6881,
1079,
13,
565,
288,
3639,
1267,
5190,
18,
542,
1528,
2932,
3830,
30,
315,
397,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
6103,
14126,
2828,
12,
5225,
18,
2624,
3219,
1142,
3219,
16,
514,
2650,
4247,
16,
18701,
514,
6881,
1079,
13,
565,
288,
3639,
1267,
5190,
18,
542,
1528,
2932,
3830,
30,
315,
397,
2... | |
if (stream == null || encoding == null) return; | protected void consumeBOM(InputStream stream, String encoding) throws IOException { if (stream == null || encoding == null) return; byte[] b = new byte[3]; int count = 0; stream.mark(3); encoding = encoding.toUpperCase(Locale.ENGLISH); if (encoding.equals("UTF-8")) { count = stream.read(b, 0, 3); if (count == 3) { if (b[0] != 0xEF || b[1] != 0xBB || b[2] != 0xBF) { // First three bytes are not BOM, so reset. stream.reset(); } } else { stream.reset(); } } else if (encoding.startsWith("UTF-16")) { count = stream.read(b, 0, 2); if (count == 2) { if ((b[0] != 0xFE || b[1] != 0xFF) && (b[0] != 0xFF || b[1] != 0xFE)) { // First two bytes are not BOM, so reset. stream.reset(); } } else { stream.reset(); } } // We could do UTF-32, but since the getEncodingName() doesn't support that // we won't support it here. // To implement UTF-32, look for: 00 00 FE FF for big-endian // or FF FE 00 00 for little-endian } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/cb7e08116a75ae3e3c63a92d88ee196cec4b9377/XIncludeTextReader.java/buggy/src/org/apache/xerces/xinclude/XIncludeTextReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
7865,
38,
1872,
12,
4348,
1407,
16,
514,
2688,
13,
3639,
1216,
1860,
288,
3639,
309,
261,
3256,
422,
446,
747,
2688,
422,
446,
13,
5411,
327,
31,
3639,
1160,
8526,
324,
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,
4750,
918,
7865,
38,
1872,
12,
4348,
1407,
16,
514,
2688,
13,
3639,
1216,
1860,
288,
3639,
309,
261,
3256,
422,
446,
747,
2688,
422,
446,
13,
5411,
327,
31,
3639,
1160,
8526,
324,
273,
... | |
case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; | } case TokenStream.GETBASE : { String name = strings[getShort(iCode, pc + 1)]; | public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/052726b68e684efc593535d50a73767571084837/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
282,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
282,
16717,
2083,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
3... |
private Vector cloneList() | private ArrayList cloneList() | private Vector cloneList() { Vector clonedList = new Vector(); java.lang.reflect.Method cloneMethod; Object toClone; for ( int i = 0; i < elements.size(); ++i ) clonedList.add( attemptClone( get(i) ) ); return clonedList; } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/cf3fd07f8690b1746f1405d553b05629acf8ca42/LockableListModel.java/buggy/src/net/java/dev/spellcast/utilities/LockableListModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
5589,
3236,
682,
1435,
202,
95,
202,
202,
5018,
13027,
682,
273,
394,
5589,
5621,
202,
202,
6290,
18,
4936,
18,
1734,
1582,
18,
1305,
3236,
1305,
31,
225,
1033,
358,
10930,
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,
225,
202,
1152,
5589,
3236,
682,
1435,
202,
95,
202,
202,
5018,
13027,
682,
273,
394,
5589,
5621,
202,
202,
6290,
18,
4936,
18,
1734,
1582,
18,
1305,
3236,
1305,
31,
225,
1033,
358,
10930,
3... |
public static IntraTraceBuffer getBuffer(InputTraceNode src, FilterTraceNode dst) | public static IntraTraceBuffer getBuffer(FilterTraceNode src, OutputTraceNode dst) | public static IntraTraceBuffer getBuffer(InputTraceNode src, FilterTraceNode dst) { if (!bufferStore.containsKey(src)) { bufferStore.put(src, new IntraTraceBuffer(src, dst)); } assert (((IntraTraceBuffer)bufferStore.get(src)).getDest() == dst) : "Src connected to different dst in buffer store"; return (IntraTraceBuffer)bufferStore.get(src); } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/89873b280b223280338b10758bfb6e6e0651c046/IntraTraceBuffer.java/buggy/streams/src/at/dms/kjc/spacetime/IntraTraceBuffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
657,
2033,
3448,
1892,
22238,
12,
1586,
3448,
907,
1705,
16,
3633,
3448,
907,
3046,
13,
377,
288,
202,
430,
16051,
4106,
2257,
18,
12298,
653,
12,
4816,
3719,
288,
202,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
657,
2033,
3448,
1892,
22238,
12,
1586,
3448,
907,
1705,
16,
3633,
3448,
907,
3046,
13,
377,
288,
202,
430,
16051,
4106,
2257,
18,
12298,
653,
12,
4816,
3719,
288,
202,
565,
... |
try { while (isActive) { LoggingEvent[] events = null; | public void run() { //Category cat = Category.getInstance(Dispatcher.class.getName()); LoggingEvent event; while(true) { synchronized(bf) { if(bf.length() == 0) { // Exit loop if interrupted but only if the the buffer is empty. if(interrupted) { //cat.info("Exiting."); break; } try { //LogLog.debug("Waiting for new event to dispatch."); bf.wait(); } catch(InterruptedException e) { LogLog.error("The dispathcer should not be interrupted."); break; } } event = bf.get(); if(bf.wasFull()) { //LogLog.debug("Notifying AsyncAppender about freed space."); bf.notify(); } } // synchronized // The synchronization on parent is necessary to protect against // operations on the aai object of the parent synchronized(container.aai) { if(aai != null && event != null) { aai.appendLoopOnAppenders(event); } } } // while // close and remove all appenders aai.removeAllAppenders(); } | 45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/a1a4571ce0ba03993fdeb66e293fc1d2c5c37ab6/AsyncAppender.java/clean/src/java/org/apache/log4j/AsyncAppender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
775,
288,
565,
1323,
261,
291,
3896,
13,
288,
10253,
1133,
8526,
2641,
273,
446,
31,
565,
775,
288,
565,
1323,
261,
291,
3896,
13,
288,
10253,
1133,
8526,
2641,
273,
446,
31,
1071,
282,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
775,
288,
565,
1323,
261,
291,
3896,
13,
288,
10253,
1133,
8526,
2641,
273,
446,
31,
565,
775,
288,
565,
1323,
261,
291,
3896,
13,
288,
10253,
1133,
8526,
2641,
273,
446,
31,
1071,
282,... | |
dialog.watchTicks(); return false; } | dialog.watchTicks(); return false; } | public static boolean safeToOpen(ProgressMonitorJobsDialog dialog, Shell excludedShell) { Shell modal = getModalShellExcluding(excludedShell); if (modal == null) { return true; } dialog.watchTicks(); return false; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7506e243e595688c711e578f314dd4c2eaaee9e1/ProgressManagerUtil.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManagerUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
4183,
774,
3678,
12,
5491,
7187,
7276,
6353,
6176,
16,
19433,
8845,
13220,
13,
288,
3639,
19433,
13010,
273,
336,
20191,
13220,
424,
18596,
12,
24602,
13220,
1769,
3639,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
4183,
774,
3678,
12,
5491,
7187,
7276,
6353,
6176,
16,
19433,
8845,
13220,
13,
288,
3639,
19433,
13010,
273,
336,
20191,
13220,
424,
18596,
12,
24602,
13220,
1769,
3639,
30... |
Iterator iter = getTopicItemByCurrentUser(topic); | Iterator iter = getTopicItemsByCurrentUser(topic); | public boolean isDeleteAny(DiscussionTopic topic, DiscussionForum forum) { if (LOG.isDebugEnabled()) { LOG.debug("isDeleteAny(DiscussionTopic " + topic + ", DiscussionForum" + forum + ")"); } if (checkBaseConditions(topic, forum)) { return true; } try { if (checkBaseConditions(topic, forum)) { return true; } if (topic.getLocked() == null || topic.getLocked().equals(Boolean.TRUE)) { LOG.debug("This topic is locked " + topic); return false; } if (topic.getDraft() == null || topic.getDraft().equals(Boolean.TRUE)) { LOG.debug("This topic is at draft stage " + topic); } Iterator iter = getTopicItemByCurrentUser(topic); while (iter.hasNext()) { DBMembershipItem item = (DBMembershipItem) iter.next(); if (item.getPermissionLevel().getDeleteAny().booleanValue() && forum.getDraft().equals(Boolean.FALSE) && forum.getLocked().equals(Boolean.FALSE) && topic.getDraft().equals(Boolean.FALSE) && topic.getLocked().equals(Boolean.FALSE)) { return true; } } } catch (Exception e) { LOG.error(e.getMessage(), e); return false; } return false; } | 48936 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48936/aa024cfddb1213203aaa11130f98f439a9130e2e/UIPermissionsManagerImpl.java/clean/messageforums-component-shared/src/java/org/sakaiproject/component/app/messageforums/ui/UIPermissionsManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
2613,
2961,
12,
24393,
6657,
3958,
16,
20900,
1290,
379,
11283,
13,
225,
288,
565,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
565,
288,
1377,
2018,
18,
4148,
2932,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
2613,
2961,
12,
24393,
6657,
3958,
16,
20900,
1290,
379,
11283,
13,
225,
288,
565,
309,
261,
4842,
18,
291,
2829,
1526,
10756,
565,
288,
1377,
2018,
18,
4148,
2932,
291,
... |
if (args.length == 1 && args[0].getType() == Category.Tuple) { return new ValueFunDef(new int[] {Category.Tuple}); } for (int i = 0; i < args.length; i++) { Exp arg = args[i]; if (!canConvert(arg, Category.Member, conversionCount)) { return null; } } int[] argTypes = new int[args.length]; for (int i = 0; i < argTypes.length; i++) { argTypes[i] = Category.Member; } return new ValueFunDef(argTypes); } | if (args.length == 1 && args[0].getType() == Category.Tuple) { return new ValueFunDef(new int[] {Category.Tuple}); } for (int i = 0; i < args.length; i++) { Exp arg = args[i]; if (!canConvert(arg, Category.Member, conversionCount)) { return null; } } int[] argTypes = new int[args.length]; for (int i = 0; i < argTypes.length; i++) { argTypes[i] = Category.Member; } return new ValueFunDef(argTypes); } | public FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length == 1 && args[0].getType() == Category.Tuple) { return new ValueFunDef(new int[] {Category.Tuple}); } for (int i = 0; i < args.length; i++) { Exp arg = args[i]; if (!canConvert(arg, Category.Member, conversionCount)) { return null; } } int[] argTypes = new int[args.length]; for (int i = 0; i < argTypes.length; i++) { argTypes[i] = Category.Member; } return new ValueFunDef(argTypes); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
478,
318,
3262,
2245,
12,
2966,
8526,
833,
16,
509,
8526,
4105,
1380,
13,
288,
9506,
202,
430,
261,
1968,
18,
2469,
422,
404,
597,
25083,
202,
1968,
63,
20,
8009,
588,
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,
1875,
202,
482,
478,
318,
3262,
2245,
12,
2966,
8526,
833,
16,
509,
8526,
4105,
1380,
13,
288,
9506,
202,
430,
261,
1968,
18,
2469,
422,
404,
597,
25083,
202,
1968,
63,
20,
8009,
588,
559,
... |
public static DDSImage read(File file) throws IOException { DDSImage image = new DDSImage(); image.readFromFile(file); return image; | public static DDSImage read(String filename) throws IOException { return read(new File(filename)); | public static DDSImage read(File file) throws IOException { DDSImage image = new DDSImage(); image.readFromFile(file); return image; } | 47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/437584608fa8e479ba13f209ff42d609bda5c41d/DDSImage.java/buggy/src/classes/com/sun/opengl/util/texture/spi/DDSImage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
463,
3948,
2040,
855,
12,
812,
585,
13,
1216,
1860,
288,
565,
463,
3948,
2040,
1316,
273,
394,
463,
3948,
2040,
5621,
565,
1316,
18,
896,
13087,
12,
768,
1769,
565,
327,
1316... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
463,
3948,
2040,
855,
12,
812,
585,
13,
1216,
1860,
288,
565,
463,
3948,
2040,
1316,
273,
394,
463,
3948,
2040,
5621,
565,
1316,
18,
896,
13087,
12,
768,
1769,
565,
327,
1316... |
result = result + "Real life name : " + firstname + " " + lastname + "<br>"; | result = result + "Real life name : " + firstname + " " + lastname + "<br>"; | public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String value = request.getParameter("userId"); Integer userId; ResultSet rs = null; ServletPrinter sp = null; PreparedStatement stmt = null; Connection conn = null; sp = new ServletPrinter(response, "ViewUserInfo"); if ((value == null) || (value.equals(""))) { sp.printHTMLheader("RUBiS ERROR: View user information"); sp.printHTML("<h3>You must provide a user identifier !<br></h3>"); sp.printHTMLfooter(); return; } else userId = new Integer(value); sp.printHTMLheader("RUBiS: View user information"); // Try to find the user corresponding to the userId try { conn = getConnection(); stmt = conn.prepareStatement("SELECT * FROM users WHERE id=?"); stmt.setInt(1, userId.intValue()); rs = stmt.executeQuery(); } catch (Exception e) { sp.printHTML("Failed to execute Query for user: " + e); closeConnection(stmt, conn); sp.printHTMLfooter(); return; } try { if (!rs.first()) { sp.printHTML("<h2>This user does not exist!</h2>"); closeConnection(stmt, conn); sp.printHTMLfooter(); return; } String firstname = rs.getString("firstname"); String lastname = rs.getString("lastname"); String nickname = rs.getString("nickname"); String email = rs.getString("email"); String date = rs.getString("creation_date"); int rating = rs.getInt("rating"); stmt.close(); String result = new String(); result = result + "<h2>Information about " + nickname + "<br></h2>"; result = result + "Real life name : " + firstname + " " + lastname + "<br>"; result = result + "Email address : " + email + "<br>"; result = result + "User since : " + date + "<br>"; result = result + "Current rating : <b>" + rating + "</b><br>"; sp.printHTML(result); } catch (SQLException s) { sp.printHTML("Failed to get general information about the user: " + s); closeConnection(stmt, conn); sp.printHTMLfooter(); return; } commentList(userId, stmt, conn, sp); sp.printHTMLfooter(); closeConnection(stmt, conn); } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/29aeaa45e490b66677377d97eeed1c49453158fe/ViewUserInfo.java/clean/Servlets/edu/rice/rubis/servlets/ViewUserInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
565,
1216,
1860,
16,
16517,
225,
288,
565,
514,
460,
273,
590,
18,
588,
1662,
2932,
18991,
8863,
565,
2144,
6249,
31,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
12,
2940,
18572,
590,
16,
12446,
766,
13,
565,
1216,
1860,
16,
16517,
225,
288,
565,
514,
460,
273,
590,
18,
588,
1662,
2932,
18991,
8863,
565,
2144,
6249,
31,
565... |
return RubyString.newString(recv.getRuntime(), output.toString()); | return recv.getRuntime().newString(output.toString()); | public static IRubyObject backquote(IRubyObject recv, IRubyObject aString) { StringBuffer output = new StringBuffer(); Ruby runtime = recv.getRuntime(); runtime.getGlobalVariables().set("$?", RubyFixnum.newFixnum(runtime, runInShell(runtime, aString.toString(), output))); return RubyString.newString(recv.getRuntime(), output.toString()); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyKernel.java/clean/src/org/jruby/RubyKernel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1473,
6889,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
279,
780,
13,
288,
3639,
6674,
876,
273,
394,
6674,
5621,
3639,
19817,
3099,
273,
10665,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1473,
6889,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
279,
780,
13,
288,
3639,
6674,
876,
273,
394,
6674,
5621,
3639,
19817,
3099,
273,
10665,
18,
... |
public void testReportDocument(){ | public void testReportDocument( ) { | public void testReportDocument(){ String report_design=path+INPUT_FOLDER+System.getProperty("file.separator")+"report_document.rptdesign"; String report_document=path+OUTPUT_FOLDER+System.getProperty("file.separator")+"report_document"; try{ createReportDocument_param(report_design,report_document); IDocArchiveReader archive=new FileArchiveReader(report_document); IReportDocument reportDoc=engine.openReportDocument(report_document); //checkTOC(done) TOCNode root,tableNode,headerNode,groupNode,detailNode,footerNode; root=reportDoc.findTOC("/"); assertNotNull("get root toc",root); assertNotNull("root contain no children toc",root.getChildren()); tableNode=(TOCNode)root.getChildren().get(0); assertNotNull("table toc doesn't exist.",tableNode); assertEquals("table toc expression isn't TableSection","TableSection",tableNode.getDisplayString() ); assertNotNull("table toc doesn't contain nodes",tableNode.getChildren()); assertEquals("table toc doesn't contain 6 nodes",6,tableNode.getChildren().size()); headerNode=(TOCNode)tableNode.getChildren().get(0); groupNode=(TOCNode)((TOCNode)tableNode.getChildren().get(1)).getChildren().get(0); footerNode=(TOCNode)tableNode.getChildren().get(5); assertNotNull("table header toc doesn't exist",headerNode); assertNotNull("table group toc doesn't exist",groupNode); assertNotNull("table footer toc doesn't exist",footerNode); assertEquals("header toc expression isn't HeaderSection","HeaderSection",headerNode.getDisplayString() ); assertEquals("group toc expression isn't GroupSection","GroupSection",groupNode.getDisplayString() ); assertEquals("footer toc expression isn't FooterSection","FooterSection",footerNode.getDisplayString() ); assertNotNull("table group toc doesn't contain nodes",groupNode.getChildren()); detailNode=(TOCNode)((TOCNode)tableNode.getChildren().get(1)).getChildren().get(1); assertEquals("detail toc expression isn't DetailSection","DetailSection",detailNode.getDisplayString() ); //check Archive(done) IDocArchiveReader arch=reportDoc.getArchive(); assertNotNull("get null document archive",arch); assertEquals("get incorrect document archive",archive.getName(),arch.getName()); //check bookmarks ArrayList bookmarks=(ArrayList)reportDoc.getBookmarks(); String hMark="TableHeaderMark",gMark="TableGroupMark",dMark="TableDetailMark"; String fMark="TableFooterMark",pMark="ParameterMark"; assertNotNull("get no bookmarks",bookmarks); //assertEquals("bookmarks doesn't contain 19 nodes",19,bookmarks.size()); assertTrue("bookmarks doesn't contain "+hMark,bookmarks.contains(hMark)); assertTrue("bookmarks doesn't contain "+gMark,bookmarks.contains(gMark)); assertTrue("bookmarks doesn't contain "+dMark,bookmarks.contains(dMark)); assertTrue("bookmarks doesn't contain "+fMark,bookmarks.contains(fMark)); assertTrue("bookmarks doesn't contain "+pMark,bookmarks.contains(pMark)); //check children(done) List root_children=reportDoc.getChildren("/"); assertNotNull("cannot get root toc's children",root_children); assertNotNull("cannot get table toc",root_children.get(0)); TOCNode table_toc=(TOCNode)root_children.get(0); List table_children=reportDoc.getChildren(table_toc.getNodeID() ); assertNotNull("table toc's children is null",table_children); assertEquals("table toc contains 6 children",6,table_children.size()); //check designStream InputStream designStream=reportDoc.getDesignStream(); FileInputStream designFile=new FileInputStream(report_design); assertNotNull("return null design stream",designStream); //generate design file through designStream. int length=designStream.available(); byte[] fBytes=new byte[length]; designStream.read(fBytes,0,length); //String tempFile="D:/TEMP/workspace3.1/org.eclipse.birt.report.tests.engine/output/report_document_tmp.rptdesign"; String tempFile=path+OUTPUT_FOLDER+"report_document_tmp.rptdesign"; File tmp=new File(tempFile); FileOutputStream fos=new FileOutputStream(tmp); fos.write(fBytes); fos.close(); designStream.close(); designFile.close(); assertEquals("return wrong design stream",-6,new File(report_design).compareTo(tmp)); //remove tmp file. removeFile(tempFile); //check page count(done) assertEquals("return wrong page count",2,reportDoc.getPageCount()); //check getPageNumber(InstanceID) //TODO: //check getPageNumber(bookmark) assertEquals("return wrong page number which contains bookmark",2,reportDoc.getPageNumber(pMark)); //check parameters(done) HashMap params=(HashMap)reportDoc.getParameterValues(); assertNotNull("return no parameters",params); assertEquals("parameter amount isn't 2",2,params.size() ); assertNotNull("p1 parameter returned null",params.get(new String("p1"))); assertNotNull("p2 parameter returned null",params.get(new String("p2"))); assertEquals("p1 parameter returned wrong value","p1string",params.get(new String("p1"))); assertEquals("p1 parameter returned wrong value",new Integer(2),params.get(new String("p2"))); //check report document name String name=report_document; name=name.replace('/','\\'); assertEquals("return wrong report document name",name,reportDoc.getName()); //check reportrunnable IReportRunnable report=reportDoc.getReportRunnable(); assertNotNull("return null reportRunnable",report); assertEquals("return wrong reportRunnable",reportRunnable.getReportEngine(), report.getReportEngine()); }catch(Exception e){ e.printStackTrace(); } } | 58644 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58644/9986640bc1706978adfbcb99f734669ec77eff7b/ReportDocumentTest.java/buggy/plugins/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/ReportDocumentTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4820,
2519,
1435,
95,
202,
202,
780,
2605,
67,
16934,
33,
803,
15,
15934,
67,
17357,
15,
3163,
18,
588,
1396,
2932,
768,
18,
11287,
7923,
9078,
6006,
67,
5457,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4820,
2519,
1435,
95,
202,
202,
780,
2605,
67,
16934,
33,
803,
15,
15934,
67,
17357,
15,
3163,
18,
588,
1396,
2932,
768,
18,
11287,
7923,
9078,
6006,
67,
5457,
18,
... |
if (!ld[i].equals(Const.FILE_SEPARATOR)) | if (!ld[i].equals(RepositoryDirectory.DIRECTORY_SEPARATOR)) | private void addMenuLast() { int idx = msFile.indexOf(miFileSep3); int max = msFile.getItemCount(); // Remove everything until end... for (int i=max-1;i>idx;i--) { MenuItem mi = msFile.getItem(i); mi.dispose(); } // Previously loaded files... String lf[] = props.getLastFiles(); String ld[] = props.getLastDirs(); boolean lt[] = props.getLastTypes(); String lr[] = props.getLastRepositories(); for (int i=0;i<lf.length;i++) { MenuItem miFileLast = new MenuItem(msFile, SWT.CASCADE); char chr = (char)('1'+i ); int accel = SWT.CTRL | chr; String repository = ( lr[i]!=null && lr[i].length()>0 ) ? ( "["+lr[i]+"] " ) : ""; String filename = Const.FILE_SEPARATOR + lf[i]; if (!lt[i]) filename = lf[i]; if (!ld[i].equals(Const.FILE_SEPARATOR)) { filename=ld[i]+filename; } if (i<9) { miFileLast.setAccelerator(accel); miFileLast.setText("&"+chr+" "+repository+filename+ "\tCTRL-"+chr); } else { miFileLast.setText(" "+repository+filename); } final String fn = lf[i]; // filename final String fd = ld[i]; // Repository directory ... final boolean ft = lt[i]; // type: true=repository, false=file final String fr = lr[i]; // repository name Listener lsFileLast = new Listener() { public void handleEvent(Event e) { if (showChangedWarning()) { // If the file comes from a repository and it's not the same as // the one we're connected to, ask for a username/password! // boolean noRepository=false; if (ft && (rep==null || !rep.getRepositoryInfo().getName().equalsIgnoreCase(fr) )) { int perms[] = new int[] { PermissionMeta.TYPE_PERMISSION_JOB }; RepositoriesDialog rd = new RepositoriesDialog(disp, SWT.NONE, perms, APP_NAME); rd.setRepositoryName(fr); if (rd.open()) { // Close the previous connection... if (rep!=null) rep.disconnect(); rep = new Repository(log, rd.getRepository(), rd.getUser()); if (!rep.connect(APP_NAME)) { rep=null; MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage("I was unable to connect to this repository!"); mb.setText("Error!"); mb.open(); } } else { noRepository=true; } } if (ft) { if (!noRepository && rep!=null && rep.getRepositoryInfo().getName().equalsIgnoreCase(fr)) { // OK, we're connected to the new repository... // Load the job... RepositoryDirectory fdRepdir = rep.getDirectoryTree().findDirectory(fd); try { if (fdRepdir!=null) { jobMeta = new JobMeta(log, rep, fn, fdRepdir); } else { throw new KettleException("The directory specified doesn't exist: "+fd); } } catch(KettleException ke) { jobMeta.clear(); new ErrorDialog(shell, props, "Error loading job", "I was unable to load this job from the repository!", ke); } } else { jobMeta.clear(); MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage("Can't load this job. Please connect to the correct repository first."); mb.setText("Error!"); mb.open(); } } else // Load from XML! { try { jobMeta = new JobMeta(log, fn); } catch(KettleException ke) { jobMeta.clear(); new ErrorDialog(shell, props, "Error loading job", "I was unable to load this job from the XML file!", ke); } } refreshTree(); refreshGraph(); } } }; miFileLast.addListener(SWT.Selection, lsFileLast); } } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/57aac50193bcb56732b265a22cbd966d52e9bba4/Chef.java/clean/src/be/ibridge/kettle/chef/Chef.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
4599,
3024,
1435,
202,
95,
202,
202,
474,
2067,
273,
4086,
812,
18,
31806,
12,
9197,
812,
5097,
23,
1769,
202,
202,
474,
943,
273,
4086,
812,
18,
588,
30687,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
4599,
3024,
1435,
202,
95,
202,
202,
474,
2067,
273,
4086,
812,
18,
31806,
12,
9197,
812,
5097,
23,
1769,
202,
202,
474,
943,
273,
4086,
812,
18,
588,
30687,
5621,
... |
warn("PMP Convention error: " + e.toString()); | logger.debug("PMP Convention error: " + e.toString()); | public void characterData (char ch[], int start, int length) { String s = toString(ch, start, length).trim(); System.out.println("Start PMP chardata (" + CurrentElement + ") :" + s); System.out.println(" ElTitle: " + elementTitle); if (CurrentElement == STRING && BUILTIN.equals("spacegroup")) { cdo.setObjectProperty("Crystal", "spacegroup", s); } else if (CurrentElement == FLOATARRAY && (elementTitle.equals("a") || elementTitle.equals("b") || elementTitle.equals("c"))) { String axis = elementTitle + "-axis"; cdo.startObject(axis); try { StringTokenizer st = new StringTokenizer(s); System.out.println("Tokens: " + st.countTokens()); if (st.countTokens() > 2) { String token = st.nextToken(); warn("FloatArray (Token): " + token); cdo.setObjectProperty(axis, "x", token); token = st.nextToken(); warn("FloatArray (Token): " + token); cdo.setObjectProperty(axis, "y", token); token = st.nextToken(); warn("FloatArray (Token): " + token); cdo.setObjectProperty(axis, "z", token); } else { warn("PMP Convention error: incorrect number of cell axis fractions!\n"); } } catch (Exception e) { warn("PMP Convention error: " + e.toString()); } cdo.endObject(axis); } else { super.characterData(ch, start, length); } System.out.println("End PMP chardata"); } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/e04a2bbd6afdac34488441c1ce22ad5f73d254ff/PMPConvention.java/clean/org/openscience/cdk/io/cml/PMPConvention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
3163,
18,
659,
18,
8222,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3351,
751,
261,
3001,
462,
63,
6487,
509,
787,
16,
509,
769,
13,
288,
202,
780,
272,
273,
1762,
12,
343,
16,
787,
16,
769,
2934,
5290,
5621,
202,
3163,
18,
659,
18,
8222,
... |
writer.println(iterBuffer.toString()); | writeLoggedResponse(iterBuffer.toString()); | private void doNEWGROUPS(String argument) { // see section 11.3 // both draft-ietf-nntpext-base-15.txt and rfc977 have only group names // in response lines, but INN sends // '<group name> <last article> <first article> <posting allowed>' // NOTE: following INN over either document. // // TODO: Check this. Audit at http://www.academ.com/pipermail/ietf-nntp/2001-July/002185.html // doesn't mention the supposed discrepancy. Consider changing code to // be in line with spec. Date theDate = null; try { theDate = getDateFrom(argument); } catch (NNTPException nntpe) { getLogger().error("NEWGROUPS had an invalid argument", nntpe); writer.println("501 Syntax error"); return; } Iterator iter = theConfigData.getNNTPRepository().getGroupsSince(theDate); writer.println("231 list of new newsgroups follows"); while ( iter.hasNext() ) { NNTPGroup currentGroup = (NNTPGroup)iter.next(); StringBuffer iterBuffer = new StringBuffer(128) .append(currentGroup.getName()) .append(" ") .append(currentGroup.getLastArticleNumber()) .append(" ") .append(currentGroup.getFirstArticleNumber()) .append(" ") .append((currentGroup.isPostAllowed()?"y":"n")); writer.println(iterBuffer.toString()); } writer.println("."); } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/6b54eac7b4c3f7f951e1d4ead1ff4db387065ce7/NNTPHandler.java/clean/src/java/org/apache/james/nntpserver/NNTPHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
12917,
28977,
12,
780,
1237,
13,
288,
3639,
368,
2621,
2442,
4648,
18,
23,
3639,
368,
3937,
12246,
17,
18508,
17,
82,
496,
84,
408,
17,
1969,
17,
3600,
18,
5830,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
12917,
28977,
12,
780,
1237,
13,
288,
3639,
368,
2621,
2442,
4648,
18,
23,
3639,
368,
3937,
12246,
17,
18508,
17,
82,
496,
84,
408,
17,
1969,
17,
3600,
18,
5830,
471,
... |
iCodeTop = addByte(incrDecrType, iCodeTop); | iCodeTop = addByte(incrDecrMask, iCodeTop); | private int visitIncDec(Node node, Node child, int iCodeTop) { int incrDecrType = node.getExistingIntProp(Node.INCRDECR_PROP); int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addIcode(Icode_SCOPE, iCodeTop); stackChange(1); iCodeTop = addStringOp(Icode_PROP_INC_DEC, name, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addVarOp(Icode_VAR_INC_DEC, i, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); stackChange(1); } break; } case Token.NAME : { String name = child.getString(); iCodeTop = addStringOp(Icode_NAME_INC_DEC, name, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); stackChange(1); break; } case Token.GETPROP : { Node object = child.getFirstChild(); iCodeTop = generateICode(object, iCodeTop); String property = object.getNext().getString(); iCodeTop = addStringOp(Icode_PROP_INC_DEC, property, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); break; } case Token.GETELEM : { Node object = child.getFirstChild(); iCodeTop = generateICode(object, iCodeTop); Node index = object.getNext(); iCodeTop = generateICode(index, iCodeTop); iCodeTop = addIcode(Icode_ELEM_INC_DEC, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); stackChange(-1); break; } case Token.GET_REF : { Node ref = child.getFirstChild(); iCodeTop = generateICode(ref, iCodeTop); iCodeTop = addIcode(Icode_REF_INC_DEC, iCodeTop); iCodeTop = addByte(incrDecrType, iCodeTop); break; } default : { throw badTree(node); } } return iCodeTop; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/a3039484fe39a3dbe840a19951dc87f44221e7eb/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
3757,
14559,
1799,
12,
907,
756,
16,
2029,
1151,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
17633,
1799,
86,
559,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
3757,
14559,
1799,
12,
907,
756,
16,
2029,
1151,
16,
509,
277,
1085,
3401,
13,
565,
288,
3639,
509,
17633,
1799,
86,
559,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
... |
public void setElementName(String elementName); | void setElementName(String elementName); | public void setElementName(String elementName); | 51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/cbaa8d2430c2bf467e589a423fee7c83e3f0eb2f/LocationAware.java/clean/src/java/org/apache/commons/jelly/LocationAware.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26692,
461,
12,
780,
14453,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26692,
461,
12,
780,
14453,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
public void widgetSelected( SelectionEvent e ) { if ( e.widget.equals( btnOK ) ) { applyMarkerIcon = true; shell.dispose( ); } else if ( e.widget.equals( btnCancel ) ) { shell.dispose( ); } else if ( e.widget.equals( btnURL ) ) { switchTo( URI_TYPE ); } else if ( e.widget.equals( btnLocal ) ) { switchTo( LOCAL_TYPE ); } else if ( e.widget.equals( btnAdd ) ) { uriEditor.setText( uriEditor.getText( ).trim( ) ); String path = uriEditor.getText( ); iconList.add( path ); iconList.select( iconList.indexOf( path ) ); addIconToPalette( ); updateButton( ); } else if ( e.widget.equals( btnPreview ) ) { uriEditor.setText( uriEditor.getText( ).trim( ) ); String path = uriEditor.getText( ); preview( convertStringToURL( path ) ); } else if ( e.widget.equals( iconList ) ) { String path = iconList.getSelection( )[0]; if ( path.toLowerCase().startsWith( "h" ) ) //$NON-NLS-1$ { preview( convertStringToURL( path ) ); } else { preview( path.substring(6) ); } updateButton( ); } else if ( e.widget.equals( btnBrowse ) ) { FileDialog fileChooser = new FileDialog( shell, SWT.OPEN ); fileChooser.setText( Messages.getString( "MarkerIconDialog.Chooser.Title" ) ); //$NON-NLS-1$ fileChooser.setFilterExtensions( new String[]{ "*.gif", "*.jpg", "*.png" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } ); try { String path = fileChooser.open( ); if ( path != null ) { if ( iconList.indexOf( path ) != -1 ) { return; } preview( path ); path = new StringBuffer("file:///").append(path).toString(); //$NON-NLS-1$ iconList.add( path ); iconList.select( iconList.indexOf( path ) ); addIconToPalette( ); } } catch ( Throwable ex ) { ex.printStackTrace( ); } updateButton( ); } else if ( e.widget.equals( btnRemove ) ) { if ( iconList.getSelectionCount( ) != 0 ) { iconPalette.getEntries( ) .remove( iconList.getSelectionIndex( ) ); previewCanvas.clear( ); iconList.remove( iconList.getSelectionIndex( ) ); } updateButton( ); } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/35716ab15c704bd8d6af207ac5582799656265b0/MarkerIconDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/MarkerIconDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
6587,
18,
14963,
12,
10638,
3141,
262,
262,
202,
202,
95,
1082,
202,
9010,
7078,
5554,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
6587,
18,
14963,
12,
10638,
3141,
262,
262,
202,
202,
95,
1082,
202,
9010,
7078,
5554,
273,
... | ||
setDataBackground(Color.white); | private void init() { URL markerURL; /* ** Get the passed parameters */ String mfile = "marker.txt"; /* ** Create the Graph instance and modify the default behaviour */ drawzero = true; drawgrid = true; borderTop = 10; setDataBackground(Color.white); /* ** Load a file containing Marker definitions */ try { markerURL = (new File(mfile)).toURL(); setMarkers(new Markers(markerURL)); } catch(Exception e) { try { markerURL = new URL("file:///D:/Alpine/Assessment/" + mfile); setMarkers(new Markers(markerURL)); } catch (Exception e2) { System.out.println("Failed to create Marker URL!"); } } // create xaxis xaxis = createAxis(Axis.BOTTOM); // create yaxis yaxis_left = createAxis(Axis.LEFT); /* ** Attach the second data set to the Right Axis */ /* yaxis_right = graph.createAxis(Axis.RIGHT); yaxis_right.attachDataSet(data2); yaxis_right.setTitleText("y=x^3"); yaxis_right.setTitleFont(new Font("TimesRoman",Font.PLAIN,20)); yaxis_right.setLabelFont(new Font("Helvetica",Font.PLAIN,15)); yaxis_right.setTitleColor(new Color(100,100,255) ); */ regeneratePlots(); tm.addTableModelListener(new TableModelListener() { public void tableChanged(TableModelEvent e) { regeneratePlots(); } }); } | 7169 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7169/28e74209096767ca621515e8d7e09be49b612d88/CLinePlotChart.java/clean/uiframework/src/org/cougaar/lib/uiframework/ui/components/CLinePlotChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1435,
565,
288,
3639,
1976,
5373,
1785,
31,
3639,
1748,
3639,
2826,
1377,
968,
326,
2275,
1472,
3639,
1195,
3639,
514,
312,
768,
565,
273,
315,
11145,
18,
5830,
14432,
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,
3238,
918,
1208,
1435,
565,
288,
3639,
1976,
5373,
1785,
31,
3639,
1748,
3639,
2826,
1377,
968,
326,
2275,
1472,
3639,
1195,
3639,
514,
312,
768,
565,
273,
315,
11145,
18,
5830,
14432,
36... | |
return new JaxenXPath(path); | if (jaxen == null) { try { Class clz = Class.forName("org.jdom.xpath.JaxenXPath"); jaxen = clz.getConstructor(new Class[] {String.class}); } catch (ClassNotFoundException cnfe) { throw new JDOMException(cnfe.toString()); } catch (NoSuchMethodException nsme) { throw new JDOMException(nsme.toString()); } } try { return (XPath) jaxen.newInstance(new Object[] {path}); } catch (IllegalAccessException iae) { throw new JDOMException(iae.toString()); } catch (InstantiationException ie) { throw new JDOMException(ie.toString()); } catch (InvocationTargetException ite) { throw new JDOMException(ite.toString()); } | public static XPath newInstance(String path) throws JDOMException { return new JaxenXPath(path); } | 49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/45f387adaa3ca3a1c55c51c3aabc7dca00fc9427/XPath.java/buggy/core/src/java/org/jdom/xpath/XPath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
10172,
5984,
12,
780,
589,
13,
1216,
804,
8168,
503,
288,
1377,
309,
261,
6482,
275,
422,
446,
13,
288,
775,
288,
1659,
23324,
273,
1659,
18,
1884,
461,
2932,
3341,
18,
78,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
10172,
5984,
12,
780,
589,
13,
1216,
804,
8168,
503,
288,
1377,
309,
261,
6482,
275,
422,
446,
13,
288,
775,
288,
1659,
23324,
273,
1659,
18,
1884,
461,
2932,
3341,
18,
78,
... |
if (jj_scan_token(CONTINUE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | if (jj_3R_135()) return true; | final private boolean jj_3R_126() { if (jj_scan_token(CONTINUE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/da645dc04442445e7ffc49c76d475409ee62c51f/PythonGrammar.java/clean/org/python/parser/PythonGrammar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
25452,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
6067,
26725,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
25452,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
6067,
26725,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
... |
if (node.getType() == Constants.NODE_BLOCK_PASS) { | if (node.getType() == Constants.NODE_ARRAY && node.getNextNode() == null) { return node.getHeadNode(); } else if (node.getType() == Constants.NODE_BLOCK_PASS) { | public Node ret_args(Node node) { if (node != null) { if (node.getType() == Constants.NODE_BLOCK_PASS) { rb_compile_error("block argument should not be given"); } } return node; } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/fe5b7835d80b52a0683d503660a7f722b7af69b1/ParserHelper.java/buggy/org/jruby/parser/ParserHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
325,
67,
1968,
12,
907,
756,
13,
288,
3639,
309,
261,
2159,
480,
446,
13,
288,
5411,
309,
261,
2159,
18,
588,
559,
1435,
422,
5245,
18,
8744,
67,
8552,
597,
756,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
325,
67,
1968,
12,
907,
756,
13,
288,
3639,
309,
261,
2159,
480,
446,
13,
288,
5411,
309,
261,
2159,
18,
588,
559,
1435,
422,
5245,
18,
8744,
67,
8552,
597,
756,
18,
588,
... |
progressViewer.setInput(this); | progressViewer.refresh(true); | public void remove(Object[] elements) { progressViewer.setInput(this); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5d160b6205264478d3a1546cb460bf2521c53a19/ProgressViewerContentProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressViewerContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
12,
921,
8526,
2186,
13,
288,
3639,
4007,
18415,
18,
9144,
12,
3767,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
12,
921,
8526,
2186,
13,
288,
3639,
4007,
18415,
18,
9144,
12,
3767,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
docDecl.DIAG_BAD_LITERAL_WRAPUP, | REDocumentDeclaration.DIAG_BAD_LITERAL_WRAPUP, | private final String diagnoseUnexpectedLiteral( StringToken token ) { final StringRecoveryToken srt = new StringRecoveryToken(token); // this residual corresponds to the expression we get // when we replace thie unexpected token by one of expected tokens. Expression recoveryResidual = docDecl.resCalc.calcResidual(expression,srt); if( recoveryResidual==Expression.nullSet ) // we now know that no string literal was expected at all. return docDecl.localizeMessage( docDecl.DIAG_STRING_NOT_ALLOWED, null ); // keep this.expression untouched. This is equivalent to ignore this token. // there are two possible "recovery" for this error. // (1) ignore this token // (2) replace this token by a valid token. // the following choice implements both of them. expression = docDecl.pool.createChoice( expression, recoveryResidual ); if( srt.failedExps.size()==1 ) { DataOrValueExp texp = (DataOrValueExp)srt.failedExps.iterator().next(); try { // TODO: handle ValueExp nicely texp.getType().checkValid( srt.literal, srt.context ); if(texp instanceof ValueExp) { ValueExp vexp = (ValueExp)texp; if(!vexp.dt.sameValue(vexp.value, vexp.dt.createValue(srt.literal,srt.context))) { // incorrect value return docDecl.localizeMessage( docDecl.DIAG_BAD_LITERAL_INCORRECT_VALUE, vexp.value.toString() ); } } } catch( DatatypeException de ) { // this literal is invalid. if( de.getMessage()!=null ) return de.getMessage(); // return the diagnosis. // we don't know the exact reason, but the value was wrong. return docDecl.localizeMessage( docDecl.DIAG_BAD_LITERAL_GENERIC, null ); } } else { // there are multiple candidates. final Set items = new java.util.HashSet(); boolean more = false; Iterator itr = srt.failedExps.iterator(); while(itr.hasNext()) { DataOrValueExp texp = (DataOrValueExp)itr.next(); if( texp instanceof ValueExp ) // we can list this item as one of the candidates items.add( ((ValueExp)texp).value.toString() ); else // this must be some datatype // that we can't provide diagnosis. more = true; } // no candidates was simple. bail out. if( items.size()==0 ) return null; // at least we have one suggestion. return docDecl.localizeMessage( docDecl.DIAG_BAD_LITERAL_WRAPUP, concatenateMessages( items, more, docDecl.DIAG_BAD_LITERAL_SEPARATOR, docDecl.DIAG_BAD_LITERAL_MORE ) ); } // unable to diagnose the reason of error. return null; // TODO: ID/IDREF violation diagnosis./* // now the literal is valid. // Is this key/keyref constraint violation? if( texp instanceof NGTypedStringExp ) { NGTypedStringExp ntexp = (NGTypedStringExp)texp; if( ntexp.keyName!=null && !token.context.onID( ntexp.keyName.namespaceURI, ntexp.keyName.localName, ntexp.dt.createValue(token.literal,token.context) ) ) { if( ntexp.keyName.localName.length()==0 ) // empty key name indicates that this is an ID. return docDecl.localizeMessage( docDecl.DIAG_BAD_KEY_VALUE, token.literal.trim() ); else return docDecl.localizeMessage( docDecl.DIAG_BAD_KEY_VALUE2, token.literal.trim(), ntexp.keyName ); } }*/ } | 45720 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45720/cfae98bcc8b60a29fd26b6aa2cbf97feedb46bd9/ExpressionAcceptor.java/clean/msv/src/com/sun/msv/verifier/regexp/ExpressionAcceptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
514,
6643,
2135,
307,
7762,
6177,
12,
514,
1345,
1147,
262,
288,
202,
202,
6385,
514,
11548,
1345,
272,
3797,
273,
394,
514,
11548,
1345,
12,
2316,
1769,
9506,
202,
759,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
514,
6643,
2135,
307,
7762,
6177,
12,
514,
1345,
1147,
262,
288,
202,
202,
6385,
514,
11548,
1345,
272,
3797,
273,
394,
514,
11548,
1345,
12,
2316,
1769,
9506,
202,
759,
... |
0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, | 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 43, 44, 45, | private static final short[] yyTable4() { return new short[] { 54, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 56, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 47, 39, 40, 41, 42, 41, 0, 43, 44, 45, 0, 0, 0, 0, 0, 41, 0, 47, 47, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 41, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 0, 0, 0, 0, 41, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 54, 0, 0, 54, 54, 54, 0, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 41, 0, 0, 0, 0, 0, 0, 54, 54, 0, 54, 54, 54, 54, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 56, 0, 0, 56, 56, 56, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 56, 56, 56, 56, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 0, 0, 41, 41, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 41, 41, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 619, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 414, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 615, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 804, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 808, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 812, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 867, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 869, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 881, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 251, 251, 251, 0, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 0, 251, 251, 251, 0, 251, 0, 251, 0, 251, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 268, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 593, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 643, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 769, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 798, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 483, 483, 483, 0, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 483, 483, 0, 0, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 213, 213, 213, 0, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 213, 213, 0, 0, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 0, 213, 213, 213, 0, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 349, 0, 48, 49, 50, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 174, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 286, 287, 199, 288, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, }; } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
22431,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11201,
16,
282,
10213,
16,
282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
22431,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11201,
16,
282,
10213,
16,
282... |
VM.sysWrite(" MCSites[index-1] = "); VM.sysWrite(machCodeOffset - MCSites[index-1]); VM.sysWrite("\n"); | VM.sysWrite(" MCSites[index-1] = "); VM.sysWrite(machCodeOffset.sub(MCSites[index-1])); VM.sysWrite("\n"); | public int locateGCPoint(int machCodeOffset, VM_Method method) { machCodeOffset = machCodeOffset - (1 << VM.LG_INSTRUCTION_WIDTH); // this assumes that machCodeOffset points // to "next" instruction eg bal type instruction if (VM.TraceStkMaps) { VM.sysWrite("VM_ReferenceMaps-locateGCPoint for machine code offset = "); VM.sysWrite(machCodeOffset); VM.sysWrite(" --- in method = "); VM.sysWrite(method.getName()); VM.sysWrite("\n"); } // Scan the list of machine code addresses to find the // closest site offset BEFORE the input machine code index ( offset in the code) int distance = 0; int index = 0; // get the first possible location for (int i = 0; i < mapCount; i++) { // get an initial non zero distance distance = machCodeOffset - MCSites[i]; if (distance >= 0) { index = i; break; } } // scan to find any better location ie closer to the site for(int i = index+1; i < mapCount; i++) { int dist = machCodeOffset- MCSites[i]; if (dist < 0) continue; if (dist <= distance) { index = i; distance = dist; } } if (VM.TraceStkMaps) { showInfo(); VM.sysWrite(" VM_ReferenceMaps-locateGCPoint located index = "); VM.sysWrite(index); VM.sysWrite(" byte = "); VM.sysWrite(referenceMaps[index]); VM.sysWrite( "\n"); if (index - 1 >= 0) { VM.sysWrite(" MCSites[index-1] = "); VM.sysWrite(machCodeOffset - MCSites[index-1]); VM.sysWrite("\n"); } VM.sysWrite(" MCSites[index ] = "); VM.sysWrite(machCodeOffset - MCSites[index ]); VM.sysWrite("\n"); if (index + 1 < MCSites.length) { VM.sysWrite(" MCSites[index+1] = "); VM.sysWrite(machCodeOffset - MCSites[index+1]); VM.sysWrite("\n"); } } // test for a site within a jsr subroutine if ((0x000000FF & (referenceMaps[index*bytesPerMap()] & JSR_MASK)) == (0x000000FF & JSR_MASK)) { // test for jsr map index = -index; // indicate site within a jsr to caller if (VM.TraceStkMaps) { VM.sysWrite(" VM_ReferenceMaps-locateGCPoint jsr mapid = "); VM.sysWrite( -index); VM.sysWrite( "\n"); } } if (VM.TraceStkMaps) { VM.sysWrite(" VM_ReferenceMaps-locateGCPoint machine offset = "); VM.sysWrite( machCodeOffset); VM.sysWrite(" - return map index = "); VM.sysWrite( index); VM.sysWrite( "\n"); } return index; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/511bde1d92a455acafb864be1f3383b0a2d5c0e0/VM_ReferenceMaps.java/buggy/rvm/src/vm/compilers/baseline/GCMap/VM_ReferenceMaps.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
10627,
15396,
2148,
12,
474,
25046,
1085,
2335,
16,
8251,
67,
1305,
707,
13,
225,
288,
565,
25046,
1085,
2335,
273,
25046,
1085,
2335,
300,
261,
21,
2296,
8251,
18,
48,
43,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
10627,
15396,
2148,
12,
474,
25046,
1085,
2335,
16,
8251,
67,
1305,
707,
13,
225,
288,
565,
25046,
1085,
2335,
273,
25046,
1085,
2335,
300,
261,
21,
2296,
8251,
18,
48,
43,
6... |
double score = 0.0; | private void calcCell(Cell [][] cells) throws IllegalSymbolException, IllegalAlphabetException, IllegalTransitionException { Cell curCell = cells[0][0]; double[] curCol = curCell.scores; STATELOOP: for (int l = states.length - 1; l >= 0; --l) { //System.out.println("State = " + states[l].getName()); State curState = states[l]; if(initializationHack && (curState instanceof EmissionState)) { if(curState == magicalState) { curCol[l] = 0.0; } else { curCol[l] = Double.NEGATIVE_INFINITY; } continue STATELOOP; } double score = 0.0; int [] tr = transitions[l]; double[] trs = transitionScores[l]; // Calculate probabilities for states with transitions // here. double[] sourceScores = new double[tr.length]; for (int ci = 0; ci < tr.length; ++ci) { double[] sCol; double weight; int destI = tr[ci]; State destS = states[destI]; Cell targetCell; if (destS instanceof EmissionState) { int [] advance = ((EmissionState)destS).getAdvance(); targetCell = cells[advance[0]][advance[1]]; weight = targetCell.emissions[destI]; sCol = targetCell.scores; } else { targetCell = curCell; weight = 0.0; } sourceScores[ci] = targetCell.scores[destI] + weight; } // Find base for addition int ci = 0; while (ci < tr.length && sourceScores[ci] == Double.NEGATIVE_INFINITY) { ++ci; } double constant = (ci < tr.length) ? sourceScores[ci] : 0.0; for (int kc = 0; kc < tr.length; ++kc) { //System.out.println("In from " + states[kc].getName()); //System.out.println("prevScore = " + sourceScores[kc]); int k = tr[kc]; double skc = sourceScores[kc]; if (skc != Double.NEGATIVE_INFINITY) { double t = trs[kc]; score += Math.exp(t + skc - constant); } } curCol[l] = Math.log(score) + constant; //System.out.println(curCol[l]); } } | 50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/f34f99e864e9e8905fb53dcbad1bf1ae9678cc15/PairwiseDP.java/buggy/src/org/biojava/bio/dp/PairwiseDP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7029,
4020,
12,
4020,
5378,
8526,
5983,
13,
565,
1216,
2141,
5335,
503,
16,
2141,
27316,
503,
16,
2141,
8850,
503,
565,
288,
1377,
8614,
662,
4020,
273,
5983,
63,
20,
6362,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7029,
4020,
12,
4020,
5378,
8526,
5983,
13,
565,
1216,
2141,
5335,
503,
16,
2141,
27316,
503,
16,
2141,
8850,
503,
565,
288,
1377,
8614,
662,
4020,
273,
5983,
63,
20,
6362,
2... | |
column.setToolTipText(oldShell, null, column.toolTipText); column.setToolTipText(newShell, column.toolTipText, null); | column.setToolTipText(oldShell, null); column.setToolTipText(newShell, column.toolTipText); | void fixChildren (Shell newShell, Shell oldShell, Decorations newDecorations, Decorations oldDecorations, Menu [] menus) { super.fixChildren (newShell, oldShell, newDecorations, oldDecorations, menus); for (int i=0; i<columnCount; i++) { TreeColumn column = columns [i]; if (column.toolTipText != null) { column.setToolTipText(oldShell, null, column.toolTipText); column.setToolTipText(newShell, column.toolTipText, null); } }} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/dee160fb77b5c2e7ab5959e6351f379e6f244071/Tree.java/clean/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
2917,
4212,
261,
13220,
394,
13220,
16,
19433,
1592,
13220,
16,
3416,
280,
1012,
394,
7859,
1012,
16,
3416,
280,
1012,
1592,
7859,
1012,
16,
9809,
5378,
21374,
13,
288,
202,
9565,
18,
904... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
2917,
4212,
261,
13220,
394,
13220,
16,
19433,
1592,
13220,
16,
3416,
280,
1012,
394,
7859,
1012,
16,
3416,
280,
1012,
1592,
7859,
1012,
16,
9809,
5378,
21374,
13,
288,
202,
9565,
18,
904... |
if (data != null) { block.setFlags(block.getFlags() | ASTNode.RECOVERED); } | private ASTNode internalCreateASTForKind() { final ASTConverter converter = new ASTConverter(this.compilerOptions, false, null); converter.compilationUnitSource = this.rawSource; converter.compilationUnitSourceLength = this.rawSource.length; converter.scanner.setSource(this.rawSource); AST ast = AST.newAST(this.apiLevel); ast.setDefaultNodeFlag(ASTNode.ORIGINAL); ast.setBindingResolver(new BindingResolver()); converter.setAST(ast); CodeSnippetParsingUtil codeSnippetParsingUtil = new CodeSnippetParsingUtil(); CompilationUnit compilationUnit = ast.newCompilationUnit(); if (this.sourceLength == -1) { this.sourceLength = this.rawSource.length; } switch(this.astKind) { case K_STATEMENTS : ConstructorDeclaration constructorDeclaration = codeSnippetParsingUtil.parseStatements(this.rawSource, this.sourceOffset, this.sourceLength, this.compilerOptions, true, this.statementsRecovery); RecoveryScannerData data = constructorDeclaration.compilationResult.recoveryScannerData; if(data != null) { Scanner scanner = converter.scanner; converter.scanner = new RecoveryScanner(scanner, data.removeUnused()); converter.docParser.scanner = converter.scanner; converter.scanner.setSource(scanner.source); } RecordedParsingInformation recordedParsingInformation = codeSnippetParsingUtil.recordedParsingInformation; int[][] comments = recordedParsingInformation.commentPositions; if (comments != null) { converter.buildCommentsTable(compilationUnit, comments); } compilationUnit.setLineEndTable(recordedParsingInformation.lineEnds); if (constructorDeclaration != null) { Block block = ast.newBlock(); org.eclipse.jdt.internal.compiler.ast.Statement[] statements = constructorDeclaration.statements; if (statements != null) { int statementsLength = statements.length; for (int i = 0; i < statementsLength; i++) { if (statements[i] instanceof org.eclipse.jdt.internal.compiler.ast.LocalDeclaration) { converter.checkAndAddMultipleLocalDeclaration(statements, i, block.statements()); } else { Statement statement = converter.convert(statements[i]); if (statement != null) { block.statements().add(statement); } } } } rootNodeToCompilationUnit(ast, compilationUnit, block, recordedParsingInformation, data); if (data != null) { block.setFlags(block.getFlags() | ASTNode.RECOVERED); } ast.setDefaultNodeFlag(0); ast.setOriginalModificationCount(ast.modificationCount()); return block; } else { CategorizedProblem[] problems = recordedParsingInformation.problems; if (problems != null) { compilationUnit.setProblems(problems); } ast.setDefaultNodeFlag(0); ast.setOriginalModificationCount(ast.modificationCount()); return compilationUnit; } case K_EXPRESSION : org.eclipse.jdt.internal.compiler.ast.Expression expression = codeSnippetParsingUtil.parseExpression(this.rawSource, this.sourceOffset, this.sourceLength, this.compilerOptions, true); recordedParsingInformation = codeSnippetParsingUtil.recordedParsingInformation; comments = recordedParsingInformation.commentPositions; if (comments != null) { converter.buildCommentsTable(compilationUnit, comments); } compilationUnit.setLineEndTable(recordedParsingInformation.lineEnds); if (expression != null) { Expression expression2 = converter.convert(expression); rootNodeToCompilationUnit(expression2.getAST(), compilationUnit, expression2, codeSnippetParsingUtil.recordedParsingInformation, null); ast.setDefaultNodeFlag(0); ast.setOriginalModificationCount(ast.modificationCount()); return expression2; } else { CategorizedProblem[] problems = recordedParsingInformation.problems; if (problems != null) { compilationUnit.setProblems(problems); } ast.setDefaultNodeFlag(0); ast.setOriginalModificationCount(ast.modificationCount()); return compilationUnit; } case K_CLASS_BODY_DECLARATIONS : final org.eclipse.jdt.internal.compiler.ast.ASTNode[] nodes = codeSnippetParsingUtil.parseClassBodyDeclarations(this.rawSource, this.sourceOffset, this.sourceLength, this.compilerOptions, true); recordedParsingInformation = codeSnippetParsingUtil.recordedParsingInformation; comments = recordedParsingInformation.commentPositions; if (comments != null) { converter.buildCommentsTable(compilationUnit, comments); } compilationUnit.setLineEndTable(recordedParsingInformation.lineEnds); if (nodes != null) { TypeDeclaration typeDeclaration = converter.convert(nodes); rootNodeToCompilationUnit(typeDeclaration.getAST(), compilationUnit, typeDeclaration, codeSnippetParsingUtil.recordedParsingInformation, null); ast.setDefaultNodeFlag(0); ast.setOriginalModificationCount(ast.modificationCount()); return typeDeclaration; } else { CategorizedProblem[] problems = recordedParsingInformation.problems; if (problems != null) { compilationUnit.setProblems(problems); } ast.setDefaultNodeFlag(0); ast.setOriginalModificationCount(ast.modificationCount()); return compilationUnit; } } throw new IllegalStateException(); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/6e0e34ccee3902df04c0b7e36099dc48350ccb65/ASTParser.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
9183,
907,
2713,
1684,
9053,
1290,
5677,
1435,
288,
202,
202,
6385,
9183,
5072,
6027,
273,
394,
9183,
5072,
12,
2211,
18,
9576,
1320,
16,
629,
16,
446,
1769,
202,
202,
15747,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9183,
907,
2713,
1684,
9053,
1290,
5677,
1435,
288,
202,
202,
6385,
9183,
5072,
6027,
273,
394,
9183,
5072,
12,
2211,
18,
9576,
1320,
16,
629,
16,
446,
1769,
202,
202,
15747,
... | |
public Axis() { axisBG = new BranchGroup(); textBG = new BranchGroup(); surfaceBG = new BranchGroup(); // create line for X axis ==> MAPPED TO seismic Z direction LineArray axisXLines = new LineArray(2, LineArray.COORDINATES ); axisBG.addChild(new Shape3D(axisXLines)); axisXLines.setCoordinate(0, new Point3f(-1.0f, 0.0f, 0.0f)); axisXLines.setCoordinate(1, new Point3f( 1.0f, 0.0f, 0.0f)); // create line for Y axis ==> MAPPED TO seismic E direction LineArray axisYLines = new LineArray(2, LineArray.COORDINATES ); axisBG.addChild(new Shape3D(axisYLines)); axisYLines.setCoordinate(0, new Point3f( 0.0f,-1.0f, 0.0f)); axisYLines.setCoordinate(1, new Point3f( 0.0f, 1.0f, 0.0f)); // create line for Z axis ==> MAPPED to seismic N direction LineArray axisZLines = new LineArray(2, LineArray.COORDINATES ); axisBG.addChild(new Shape3D(axisZLines)); axisZLines.setCoordinate(0, new Point3f( 0.0f, 0.0f,-1.0f)); axisZLines.setCoordinate(1, new Point3f( 0.0f, 0.0f, 1.0f)); /* Work on the surface */ Appearance SurfaceLook = new Appearance(); TransparencyAttributes SurfaceTransp = new TransparencyAttributes(); SurfaceTransp.setTransparency(0.5f); SurfaceTransp.setTransparencyMode(TransparencyAttributes.BLENDED); ColoringAttributes SurfaceColor = new ColoringAttributes(); SurfaceColor.setColor(0.0f,0.8f,0.0f); SurfaceColor.setShadeModel(ColoringAttributes.SHADE_GOURAUD); SurfaceLook.setTransparencyAttributes(SurfaceTransp); SurfaceLook.setColoringAttributes(SurfaceColor); surfaceBG.addChild(new Box(0.05f,0.75f,0.75f,SurfaceLook)); } // end of axis constructor | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/e08eff9ddb51638dbb1d796669535c05f81f42c2/PartMo.java/clean/src/edu/sc/seis/fissuresUtil/parmo3d/PartMo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6558,
1435,
95,
4890,
30098,
33,
2704,
7108,
1114,
5621,
955,
30098,
33,
2704,
7108,
1114,
5621,
18266,
30098,
33,
2704,
7108,
1114,
5621,
759,
27350,
3027,
1884,
60,
4890,
631,
34,
8352,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6558,
1435,
95,
4890,
30098,
33,
2704,
7108,
1114,
5621,
955,
30098,
33,
2704,
7108,
1114,
5621,
18266,
30098,
33,
2704,
7108,
1114,
5621,
759,
27350,
3027,
1884,
60,
4890,
631,
34,
8352,
... | ||
fDocumentHandler.startDocument(locator, encoding, fNamespaceSupport, augs); | fDocumentHandler.startDocument(locator, encoding, namespaceContext, augs); | public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs) throws XNIException { // call handlers // get initial grammars if(fGrammarPool != null) { Grammar [] grammars = fGrammarPool.retrieveInitialGrammarSet(XMLGrammarDescription.XML_DTD); for(int i = 0; i<grammars.length; i++) { fGrammarBucket.putGrammar((DTDGrammar)grammars[i]); } } fDocLocation = locator; // REVISIT: xni.NamespaceSupport should be read/write, since some // components might want or need to modify the namespace information // if (namespaceContext instanceof NamespaceSupport) { fNamespaceSupport = (NamespaceSupport)namespaceContext; } else { // REVISIT: this is a hack for the case user inserts component before // DTD validator fNamespaceSupport = new NamespaceSupport(); } if (fDocumentHandler != null) { fDocumentHandler.startDocument(locator, encoding, fNamespaceSupport, augs); } } // startDocument(XMLLocator,String) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/41a9eddf1f69a94ac4334a19d85b1a0424c4bcae/XMLDTDValidator.java/buggy/src/org/apache/xerces/impl/dtd/XMLDTDValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
2519,
12,
4201,
5786,
8871,
16,
514,
2688,
16,
1171,
9079,
6005,
1042,
1981,
1042,
16,
432,
14870,
1012,
279,
9024,
13,
377,
1216,
1139,
50,
45,
503,
288,
3639,
368,
745... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
2519,
12,
4201,
5786,
8871,
16,
514,
2688,
16,
1171,
9079,
6005,
1042,
1981,
1042,
16,
432,
14870,
1012,
279,
9024,
13,
377,
1216,
1139,
50,
45,
503,
288,
3639,
368,
745... |
public Object getCell( int i, int j ) | public Object getCell( int rowNumber, int columnNumber, boolean bool ) | public Object getCell( int i, int j ) { return getCell( i, j, true ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2655e49f6bd5f775b5c2b054b48a75ff7be51e76/TableHandleAdapter.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/schematic/TableHandleAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
16458,
12,
509,
277,
16,
509,
525,
262,
202,
95,
202,
202,
2463,
16458,
12,
277,
16,
525,
16,
638,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
16458,
12,
509,
277,
16,
509,
525,
262,
202,
95,
202,
202,
2463,
16458,
12,
277,
16,
525,
16,
638,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
createLabel( propertiesSection, LABEL_LIST_OF_VALUE ); | createLabel( propertiesSection, LABEL_LIST_OF_VALUE, maxStrLengthProperty ); | private void createPropertiesSection( Composite composite ) { Group propertiesSection = new Group( composite, SWT.NONE ); propertiesSection.setText( GROUP_PROPERTIES ); propertiesSection.setLayout( new GridLayout( 2, false ) ); propertiesSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( propertiesSection, LABEL_NAME ); nameEditor = new Text( propertiesSection, SWT.BORDER ); nameEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); nameEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateMessageLine( ); } } ); createLabel( propertiesSection, LABEL_PROMPT_TEXT ); promptTextEditor = new Text( propertiesSection, SWT.BORDER ); promptTextEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( propertiesSection, LABEL_PARAM_DATA_TYPE ); dataTypeChooser = new Combo( propertiesSection, SWT.READ_ONLY | SWT.DROP_DOWN ); dataTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); dataTypeChooser.setItems( ChoiceSetFactory.getDisplayNamefromChoiceSet( dataType ) ); dataTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { changeDataType( ); if ( allowBlank != null && !allowBlank.isDisposed( ) ) { if ( DesignChoiceConstants.PARAM_TYPE_STRING.equals( getSelectedDataType( ) ) ) { allowBlank.setEnabled( true ); } else { allowBlank.setEnabled( false ); allowBlank.setSelection( false ); checkBoxChange( allowBlank, CHECKBOX_ALLOW_BLANK ); } } } } ); createLabel( propertiesSection, LABEL_DISPALY_TYPE ); controlTypeChooser = new Combo( propertiesSection, SWT.READ_ONLY | SWT.DROP_DOWN ); controlTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); controlTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { changeControlType( ); } } ); createLabel( propertiesSection, LABEL_LIST_OF_VALUE ); Composite choiceArea = new Composite( propertiesSection, SWT.NONE ); choiceArea.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); choiceArea.setLayout( UIUtil.createGridLayoutWithoutMargin( 2, true ) ); staticRadio = new Button( choiceArea, SWT.RADIO ); staticRadio.setText( RADIO_STATIC ); staticRadio.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { switchParamterType( ); } } ); dynamicRadio = new Button( choiceArea, SWT.RADIO ); dynamicRadio.setText( RADIO_DYNAMIC ); dynamicRadio.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { switchParamterType( ); } } ); valueArea = new Composite( propertiesSection, SWT.NONE ); valueArea.setLayout( UIUtil.createGridLayoutWithoutMargin( 2, false ) ); GridData gd = new GridData( GridData.FILL_BOTH ); gd.heightHint = 150; gd.widthHint = 550; gd.horizontalSpan = 2; valueArea.setLayoutData( gd ); createLabel( propertiesSection, null ); errorMessageLine = new CLabel( propertiesSection, SWT.NONE ); errorMessageLine.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4fe09b53fc6ad2edcaeb950e226a6b5c999af9a3/ParameterDialog.java/buggy/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,
1152,
918,
752,
2297,
5285,
12,
14728,
9635,
262,
202,
95,
202,
202,
1114,
1790,
5285,
273,
394,
3756,
12,
9635,
16,
348,
8588,
18,
9826,
11272,
202,
202,
4738,
5285,
18,
542,
1528... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
2297,
5285,
12,
14728,
9635,
262,
202,
95,
202,
202,
1114,
1790,
5285,
273,
394,
3756,
12,
9635,
16,
348,
8588,
18,
9826,
11272,
202,
202,
4738,
5285,
18,
542,
1528... |
public static Element encodeWiki(Element parent, ZimbraContext lc, WikiItem wiki, String part) throws ServiceException { Element m; m = encodeMessageCommon(parent, lc, wiki, NOTIFY_FIELDS); m.addAttribute(MailService.A_ID, lc.formatItemId(wiki)); m.addAttribute(MailService.A_SUBJECT, wiki.getSubject()); m.addAttribute(MailService.A_VERSION, wiki.getVersion()); m.addAttribute(MailService.A_CREATOR, wiki.getCreator()); try { byte[] raw = ByteUtil.getContent(wiki.getBlob().getBlob().getFile()); m.setText(new String(raw, "UTF-8")); } catch (IOException ex) { throw ServiceException.FAILURE(ex.getMessage(), ex); } return m; | public static Element encodeWiki(Element parent, ZimbraContext lc, WikiItem wiki) { return encodeWiki(parent, lc, wiki, NOTIFY_FIELDS); | public static Element encodeWiki(Element parent, ZimbraContext lc, WikiItem wiki, String part) throws ServiceException { Element m; m = encodeMessageCommon(parent, lc, wiki, NOTIFY_FIELDS); m.addAttribute(MailService.A_ID, lc.formatItemId(wiki)); m.addAttribute(MailService.A_SUBJECT, wiki.getSubject()); m.addAttribute(MailService.A_VERSION, wiki.getVersion()); m.addAttribute(MailService.A_CREATOR, wiki.getCreator()); try { byte[] raw = ByteUtil.getContent(wiki.getBlob().getBlob().getFile()); m.setText(new String(raw, "UTF-8")); } catch (IOException ex) { throw ServiceException.FAILURE(ex.getMessage(), ex); } return m; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/8d944d6b4492dd133f8272bef1dcf3063482aed7/ToXML.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/mail/ToXML.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
3010,
2017,
25438,
12,
1046,
982,
16,
2285,
381,
15397,
1042,
9109,
16,
28268,
1180,
9050,
16,
514,
1087,
13,
202,
15069,
16489,
288,
3639,
3010,
312,
31,
3639,
312,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
3010,
2017,
25438,
12,
1046,
982,
16,
2285,
381,
15397,
1042,
9109,
16,
28268,
1180,
9050,
16,
514,
1087,
13,
202,
15069,
16489,
288,
3639,
3010,
312,
31,
3639,
312,
273,
... |
logicsheet = new Logicsheet(inputSource, manager, | logicsheet = new Logicsheet(logicsheetName, manager, | protected void addLogicsheetToList(LanguageDescriptor language, String logicsheetLocation) throws IOException, SAXException, ProcessingException { Logicsheet logicsheet = (Logicsheet)logicsheetCache.get(CACHE_PREFIX + logicsheetLocation); if (logicsheet == null) { Source inputSource = null; try { // Logicsheet is reusable (across multiple XSPs) object, // and it is resolved via urlResolver, and not via per-request // temporary resolver. inputSource = this.resolver.resolveURI(logicsheetLocation); // Resolver (local) could not be used as it is temporary // (per-request) object, yet Logicsheet is being cached and reused // across multiple requests. "Global" url-factory-based resolver // passed to the Logicsheet. logicsheet = new Logicsheet(inputSource, manager, resolver, getLogicsheetFilter()); logicsheetCache.store(CACHE_PREFIX + logicsheet.getSystemId(), logicsheet); } catch (SourceException se) { throw SourceUtil.handle(se); } finally { this.resolver.release( inputSource ); } } String logicsheetName = logicsheet.getSystemId(); if (getLogger().isDebugEnabled()) { getLogger().debug("addLogicsheetToList: " + "name: " + logicsheetName + ", location: " + logicsheetLocation + ", instance: " + logicsheet); } if (logicsheetName.startsWith(FILE)) { String filename = logicsheetName.substring(FILE.length()); addDependency(filename); getLogger().debug("addLogicsheetToList: " + "adding dependency on file " + filename); } logicSheetList.add(logicsheet); Map namespaces = logicsheet.getNamespaceURIs(); if(!logicsheetLocation.equals(language.getLogicsheet())) { if(namespaces != null && namespaces.size() > 0) { Iterator iter = namespaces.keySet().iterator(); while(iter.hasNext()) { String namespace = (String) iter.next(); String namedLogicsheetName = language.getNamedLogicsheetByURI(namespace); if(namedLogicsheetName!= null && !logicsheetLocation.equals(namedLogicsheetName)) { getLogger().debug("Adding embedded logic sheet for " + namespace + ": " + namedLogicsheetName); // Add embedded logic sheets too. addLogicsheetToList(language, namedLogicsheetName); } } } } } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/650a07e296374c20579de9787eab9dcdb6a8a9cc/AbstractMarkupLanguage.java/clean/blocks/cocoon-xsp/cocoon-xsp-impl/src/main/java/org/apache/cocoon/components/language/markup/AbstractMarkupLanguage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
1343,
2102,
2963,
25772,
12,
3779,
3187,
2653,
16,
4766,
4202,
514,
613,
2102,
2963,
2735,
13,
3639,
1216,
1860,
16,
14366,
16,
19652,
503,
565,
288,
3639,
1827,
2102,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
1343,
2102,
2963,
25772,
12,
3779,
3187,
2653,
16,
4766,
4202,
514,
613,
2102,
2963,
2735,
13,
3639,
1216,
1860,
16,
14366,
16,
19652,
503,
565,
288,
3639,
1827,
2102,
296... |
label_47: | label_49: | final public void MemberValueArrayInitializer() throws ParseException { /*@bgen(jjtree) MemberValueArrayInitializer */ ASTMemberValueArrayInitializer jjtn000 = new ASTMemberValueArrayInitializer(this, JJTMEMBERVALUEARRAYINITIALIZER); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(LBRACE); switch (jj_nt.kind) { case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FALSE: case FLOAT: case INT: case LONG: case NEW: case NULL: case SHORT: case SUPER: case THIS: case TRUE: case VOID: case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case CHARACTER_LITERAL: case STRING_LITERAL: case IDENTIFIER: case LPAREN: case LBRACE: case AT: case BANG: case TILDE: case INCR: case DECR: case PLUS: case MINUS: MemberValue(); label_47: while (true) { if (jj_2_48(2)) { ; } else { break label_47; } jj_consume_token(COMMA); MemberValue(); } switch (jj_nt.kind) { case COMMA: jj_consume_token(COMMA); break; default: jj_la1[127] = jj_gen; ; } break; default: jj_la1[128] = jj_gen; ; } jj_consume_token(RBRACE); } 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); } } } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
8596,
620,
1076,
14729,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
8596,
620,
1076,
14729,
1195,
225,
9183,
4419,
620,
1076,
14729,
10684,
5088,
378... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8596,
620,
1076,
14729,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
8596,
620,
1076,
14729,
1195,
225,
9183,
4419,
620,
1076,
14729,
10684,
5088,
378... |
public static int getLength(Object array) { | public static int getLength(Object array) { | public static int getLength(Object array) { if (array instanceof Object[]) return ((Object[]) array).length; if (array instanceof boolean[]) return ((boolean[]) array).length; if (array instanceof byte[]) return ((byte[]) array).length; if (array instanceof char[]) return ((char[]) array).length; if (array instanceof short[]) return ((short[]) array).length; if (array instanceof int[]) return ((int[]) array).length; if (array instanceof long[]) return ((long[]) array).length; if (array instanceof float[]) return ((float[]) array).length; if (array instanceof double[]) return ((double[]) array).length; if (array == null) throw new NullPointerException(); throw new IllegalArgumentException(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a7d00a0887a14efd1decaed4a9310cdaa2e752aa/Array.java/buggy/core/src/classpath/java/java/lang/reflect/Array.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
9888,
12,
921,
526,
13,
288,
202,
202,
430,
261,
1126,
1276,
1033,
63,
5717,
1082,
202,
2463,
14015,
921,
63,
5717,
526,
2934,
2469,
31,
202,
202,
430,
261,
1126,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
9888,
12,
921,
526,
13,
288,
202,
202,
430,
261,
1126,
1276,
1033,
63,
5717,
1082,
202,
2463,
14015,
921,
63,
5717,
526,
2934,
2469,
31,
202,
202,
430,
261,
1126,
... |
return table; | return tableViewer.getTable(); | protected Table getTable() { return table; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1b0f37bc4a054e18b1a977d97d5a410a1f6896d6/CustomizationTab.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/filters/CustomizationTab.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3555,
5638,
1435,
288,
202,
202,
2463,
1014,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
3555,
5638,
1435,
288,
202,
202,
2463,
1014,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if(DataFlavor.stringFlavor.equals(flavors[i])) | if(flavors[i].equals( DataFlavor.javaFileListFlavor)) | public boolean canImport(JComponent c, DataFlavor[] flavors) { JEditTextArea textArea = (JEditTextArea)c; if(!textArea.isEditable()) return false; for(int i = 0; i < flavors.length; i++) { if(DataFlavor.stringFlavor.equals(flavors[i])) { return textArea.isEditable(); } else if(DataFlavor.javaFileListFlavor .equals(flavors[i])) { return true; } } return false; } | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/b57dda1d711e69f6c5059ca5b832f64bd791f34e/Java14.java/buggy/org/gjt/sp/jedit/Java14.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
848,
5010,
12,
46,
1841,
276,
16,
1910,
2340,
9444,
8526,
31227,
1383,
13,
202,
202,
95,
1082,
202,
46,
4666,
1528,
5484,
977,
5484,
273,
261,
46,
4666,
1528,
5484,
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,
3196,
202,
482,
1250,
848,
5010,
12,
46,
1841,
276,
16,
1910,
2340,
9444,
8526,
31227,
1383,
13,
202,
202,
95,
1082,
202,
46,
4666,
1528,
5484,
977,
5484,
273,
261,
46,
4666,
1528,
5484,
13,... |
viewContributionCount, commandManager, handlerService, bindingManager, commandImageManager, menuService, sourceProviders); | viewContributionCount); | public final void read() { super.read(); // Create the extension registry mementos. final IExtensionRegistry registry = Platform.getExtensionRegistry(); int actionSetCount = 0; int editorContributionCount = 0; int objectContributionCount = 0; int viewContributionCount = 0; int viewerContributionCount = 0; final IConfigurationElement[][] indexedConfigurationElements = new IConfigurationElement[5][]; // Sort the actionSets extension point. final IConfigurationElement[] actionSetsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_ACTION_SETS); for (int i = 0; i < actionSetsExtensionPoint.length; i++) { final IConfigurationElement element = actionSetsExtensionPoint[i]; final String name = element.getName(); if (ELEMENT_ACTION_SET.equals(name)) { addElementToIndexedArray(element, indexedConfigurationElements, INDEX_ACTION_SETS, actionSetCount++); } } // Sort the editorActions extension point. final IConfigurationElement[] editorActionsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_EDITOR_ACTIONS); for (int i = 0; i < editorActionsExtensionPoint.length; i++) { final IConfigurationElement element = editorActionsExtensionPoint[i]; final String name = element.getName(); if (ELEMENT_EDITOR_CONTRIBUTION.equals(name)) { addElementToIndexedArray(element, indexedConfigurationElements, INDEX_EDITOR_CONTRIBUTIONS, editorContributionCount++); } } // Sort the popupMenus extension point. final IConfigurationElement[] popupMenusExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_POPUP_MENUS); for (int i = 0; i < popupMenusExtensionPoint.length; i++) { final IConfigurationElement element = popupMenusExtensionPoint[i]; final String name = element.getName(); if (ELEMENT_OBJECT_CONTRIBUTION.equals(name)) { addElementToIndexedArray(element, indexedConfigurationElements, INDEX_OBJECT_CONTRIBUTIONS, objectContributionCount++); } else if (ELEMENT_VIEWER_CONTRIBUTION.equals(name)) { addElementToIndexedArray(element, indexedConfigurationElements, INDEX_VIEWER_CONTRIBUTIONS, viewerContributionCount++); } } // Sort the viewActions extension point. final IConfigurationElement[] viewActionsExtensionPoint = registry .getConfigurationElementsFor(EXTENSION_VIEW_ACTIONS); for (int i = 0; i < viewActionsExtensionPoint.length; i++) { final IConfigurationElement element = viewActionsExtensionPoint[i]; final String name = element.getName(); if (ELEMENT_VIEW_CONTRIBUTION.equals(name)) { addElementToIndexedArray(element, indexedConfigurationElements, INDEX_VIEW_CONTRIBUTIONS, viewContributionCount++); } } clearActivations(handlerService); clearContributions(menuService); readActionSets(indexedConfigurationElements[INDEX_ACTION_SETS], actionSetCount, commandManager, handlerService, bindingManager, commandImageManager, menuService, sourceProviders); readEditorContributions( indexedConfigurationElements[INDEX_EDITOR_CONTRIBUTIONS], editorContributionCount, commandManager, handlerService, bindingManager, commandImageManager, menuService, sourceProviders); readObjectContributions( indexedConfigurationElements[INDEX_OBJECT_CONTRIBUTIONS], objectContributionCount, commandManager, handlerService, bindingManager, commandImageManager, menuService, sourceProviders); readViewContributions( indexedConfigurationElements[INDEX_VIEW_CONTRIBUTIONS], viewContributionCount, commandManager, handlerService, bindingManager, commandImageManager, menuService, sourceProviders); readViewerContributions( indexedConfigurationElements[INDEX_VIEWER_CONTRIBUTIONS], viewerContributionCount, commandManager, handlerService, bindingManager, commandImageManager, menuService, sourceProviders); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/97610ef9afbe6c924e048d8d60c2f4721860850b/LegacyActionPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/LegacyActionPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
855,
1435,
288,
202,
202,
9565,
18,
896,
5621,
202,
202,
759,
1788,
326,
2710,
4023,
312,
820,
538,
18,
202,
202,
6385,
467,
3625,
4243,
4023,
273,
11810,
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,
225,
202,
482,
727,
918,
855,
1435,
288,
202,
202,
9565,
18,
896,
5621,
202,
202,
759,
1788,
326,
2710,
4023,
312,
820,
538,
18,
202,
202,
6385,
467,
3625,
4243,
4023,
273,
11810,
18,
588,
... |
return new Integer( rs.getInt( 1 ) ); } | return new Integer( rs.getInt( 1 ) ); } | public Object mapOneRow( ResultSet rs ) throws SQLException { return new Integer( rs.getInt( 1 ) ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/817ca2fc9689d1a8c9687d4f79cc5afb059c2c21/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
2144,
12,
3597,
18,
588,
1702,
12,
404,
262,
11272,
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,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
2144,
12,
3597,
18,
588,
1702,
12,
404,
262,
11272,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (existingPageRecordEntry == null && pageReplacementCache.size() >= ERXSession.MAX_PAGE_REPLACEMENT_CACHE_SIZE) { | if (increasingCacheSize && pageReplacementCache.size() >= ERXSession.MAX_PAGE_REPLACEMENT_CACHE_SIZE * 2) { | public void savePage(WOComponent page) { WOContext context = context(); WOResponse response = context.response(); if (response != null && (response.headerForKey(ERXSession.DONT_STORE_PAGE) != null || (response.userInfo() != null && response.userInfo().objectForKey(ERXSession.DONT_STORE_PAGE) != null))) { String pageCacheKey = response.headerForKey(ERXSession.PAGE_REPLACEMENT_CACHE_LOOKUP_KEY); if (pageCacheKey != null) { String originalContextID = context.request().headerForKey(ERXSession.ORIGINAL_CONTEXT_ID_KEY); pageCacheKey = originalContextID + "_" + pageCacheKey; //System.out.println("Session.savePage: page cache key = " + pageCacheKey); LinkedHashMap pageReplacementCache = (LinkedHashMap) objectForKey(ERXSession.PAGE_REPLACEMENT_CACHE_KEY); if (pageReplacementCache == null) { pageReplacementCache = new LinkedHashMap(); setObjectForKey(pageReplacementCache, ERXSession.PAGE_REPLACEMENT_CACHE_KEY); } Map.Entry existingPageRecordEntry = null; Iterator transactionRecordsEnum = pageReplacementCache.entrySet().iterator(); while (existingPageRecordEntry == null && transactionRecordsEnum.hasNext()) { Map.Entry pageRecordEntry = (Map.Entry)transactionRecordsEnum.next(); TransactionRecord tempPageRecord = (TransactionRecord)pageRecordEntry.getValue(); String transactionRecordKey = tempPageRecord.key(); if (pageCacheKey.equals(transactionRecordKey)) { existingPageRecordEntry = pageRecordEntry; //System.out.println("Session.savePage: replacing old page for " + pageCacheKey); transactionRecordsEnum.remove(); } } if (existingPageRecordEntry == null && pageReplacementCache.size() >= ERXSession.MAX_PAGE_REPLACEMENT_CACHE_SIZE) { Iterator entryIterator = pageReplacementCache.entrySet().iterator(); Map.Entry oldestEntry = (Map.Entry) entryIterator.next(); entryIterator.remove(); //System.out.println("Session.savePage: removing oldest entry: " + ((ERTransactionRecord)oldestEntry.getValue()).key()); } //System.out.println("Session.savePage: adding page for key " + pageCacheKey); TransactionRecord pageRecord = new TransactionRecord(page, context, pageCacheKey); pageReplacementCache.put(context.contextID(), pageRecord); } } else { super.savePage(page); } } | 810 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/810/6472289a227a883fac92f5c0eb4bb97c56b858ff/ERXSession.java/buggy/Wonder/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1964,
12,
59,
51,
1841,
1363,
13,
288,
1377,
678,
51,
1042,
819,
273,
819,
5621,
1377,
678,
51,
1064,
766,
273,
819,
18,
2740,
5621,
1377,
309,
261,
2740,
480,
446,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1964,
12,
59,
51,
1841,
1363,
13,
288,
1377,
678,
51,
1042,
819,
273,
819,
5621,
1377,
678,
51,
1064,
766,
273,
819,
18,
2740,
5621,
1377,
309,
261,
2740,
480,
446,
5... |
public void testIdentifiesPriorCallInDescription() { StringBuffer buf = new StringBuffer(); after.describeTo(buf); assertTrue( "should include 'after <id of prior call>' in description", buf.toString().indexOf("after "+PRIOR_CALL_ID) >= 0 ); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/InvokedAfterMatcherTest.java/buggy/jmock/core/src/test/jmock/core/matcher/InvokedAfterMatcherTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
6106,
5032,
25355,
1477,
382,
3291,
1435,
288,
202,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
9506,
202,
5205,
18,
22748,
774,
12,
4385,
1769,
9506,
202,
11231,
551... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
6106,
5032,
25355,
1477,
382,
3291,
1435,
288,
202,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
9506,
202,
5205,
18,
22748,
774,
12,
4385,
1769,
9506,
202,
11231,
551... | ||
public final void setReadOnly(boolean readOnly) | public void setReadOnly(boolean readOnly) | public final void setReadOnly(boolean readOnly) { setFlag(READ_ONLY,readOnly); } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/070c43f8909fab9e7c16966541614cbaefa7c4c7/Buffer.java/buggy/org/gjt/sp/jedit/Buffer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
444,
12066,
12,
6494,
15075,
13,
202,
95,
202,
202,
542,
4678,
12,
6949,
67,
10857,
16,
896,
3386,
1769,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
727,
918,
444,
12066,
12,
6494,
15075,
13,
202,
95,
202,
202,
542,
4678,
12,
6949,
67,
10857,
16,
896,
3386,
1769,
202,
97,
368,
9090,
97,
2,
-100,
-100,
-100,
-100,
-100,
-... |
case Event.BECOME_SERVER: operational=true; break; | public void down(Event evt) { switch (evt.getType()) { case Event.MSG: // Add UnicastHeader, add to AckSenderWindow and pass down Message msg = (Message) evt.getArg(); Object dst = msg.getDest(); /* only handle unicast messages */ if (dst == null || ((Address) dst).isMulticastAddress()) { break; } if(loopback && dst.equals(local_addr)) { Message copy=msg.copy(); copy.setSrc(local_addr); passUp(new Event(Event.MSG, copy)); return; } Entry entry; synchronized(connections) { entry=(Entry)connections.get(dst); if(entry == null) { entry=new Entry(); connections.put(dst, entry); } } synchronized(entry) { // threads will only sync if they access the same entry UnicastHeader hdr=new UnicastHeader(UnicastHeader.DATA, entry.sent_msgs_seqno); if(entry.sent_msgs == null) { // first msg to peer 'dst' hdr.first=true; entry.sent_msgs=new AckSenderWindow(this, timeout, this, timer); // use the protocol stack's timer } msg.putHeader(name, hdr); if(trace) log.trace(new StringBuffer().append(local_addr).append(" --> DATA(").append(dst).append(": #"). append(entry.sent_msgs_seqno).append(", first=").append(hdr.first).append(')')); if(Global.copy) entry.sent_msgs.add(entry.sent_msgs_seqno, msg.copy()); // add *including* UnicastHeader else entry.sent_msgs.add(entry.sent_msgs_seqno, msg); // add *including* UnicastHeader entry.sent_msgs_seqno++; num_msgs_sent++; num_bytes_sent+=msg.getLength(); } msg=null; return; // AckSenderWindow will send message for us case Event.BECOME_SERVER: operational=true; break; case Event.VIEW_CHANGE: // remove connections to peers that are not members anymore ! Vector new_members=((View)evt.getArg()).getMembers(); Vector left_members; synchronized(members) { left_members=Util.determineLeftMembers(members, new_members); members.removeAllElements(); if(new_members != null) members.addAll(new_members); } // Remove all connections for members that left between the current view and the new view // See DESIGN for details boolean rc; if(use_gms && left_members.size() > 0) { Object mbr; for(int i=0; i < left_members.size(); i++) { mbr=left_members.elementAt(i); rc=removeConnection(mbr); if(rc && trace) log.trace("removed " + mbr + " from connection table, members " + left_members + " left"); } } break; } passDown(evt); // Pass on to the layer below us } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/31d2099f976d601edfa00b3014c000dc94a78887/UNICAST.java/buggy/src/org/jgroups/protocols/UNICAST.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2588,
12,
1133,
6324,
13,
288,
3639,
1620,
261,
73,
11734,
18,
588,
559,
10756,
288,
3639,
648,
2587,
18,
11210,
30,
368,
1436,
1351,
12544,
1864,
16,
527,
358,
22322,
12021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2588,
12,
1133,
6324,
13,
288,
3639,
1620,
261,
73,
11734,
18,
588,
559,
10756,
288,
3639,
648,
2587,
18,
11210,
30,
368,
1436,
1351,
12544,
1864,
16,
527,
358,
22322,
12021,
... | |
Fractal.getComponentParametersController(getFcItfOwner()) | Fractive.getComponentParametersController(getFcItfOwner()) | private void parallelBindFc(String clientItfName, Interface serverItf) throws NoSuchInterfaceException, IllegalBindingException, IllegalLifeCycleException { ProActiveInterface clientItf = (ProActiveInterface) getFcItfOwner() .getFcInterface(clientItfName); // 1. parallel.serverItf -- > subcomponent.serverItf // check : // - whether the client interface is actually a server interface for the parallel component boolean condition1 = !((InterfaceType) clientItf.getFcItfType()).isFcClientItf(); // - whether the targeted server interface belongs to an internal component boolean condition2 = ((ProActiveContentController) (Fractal.getContentController(getFcItfOwner()))).isSubComponent(serverItf.getFcItfOwner()); if (condition1 && condition2) { if (ProActiveGroup.isGroup(clientItf.getFcItfImpl())) { // we do not set the delegatee to null, the delegatee being a group, // but we remove all the elements of this group Group group = ProActiveGroup.getGroup(clientItf.getFcItfImpl()); group.add(serverItf); } else { throw new IllegalBindingException( "illegal binding : server interface " + clientItfName + " of parallel component " + Fractal.getComponentParametersController(getFcItfOwner()) .getComponentParameters().getName() + " should be a collective interface"); } } else if (!condition1 && !condition2) { // 2. parallel.clientItf --> othercomponent.serverItf // it is a standard composite binding compositeBindFc(clientItfName, serverItf); } else { throw new IllegalBindingException("illegal binding of " + Fractal.getComponentParametersController(getFcItfOwner()) .getComponentParameters().getName() + '.' + clientItfName); } // if (!((InterfaceType) serverItf.getFcItfType()).isFcClientItf()) { // // standard case for a composite binding : parallel.clientItf --> othercomponent.serverItf // compositeBindFc(clientItfName, serverItf); // } else { // System.out.println(); // //SHOULD BE A GROUP PROXY??? // // parallel.serverItf--> subcomponent.serverItf // // where subcomponent.serverItf is a group // // if (serverItf.) // } } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/bbc1d088ae52eae09663135caa7bb0eabdd0f47f/ProActiveBindingController.java/clean/src/org/objectweb/proactive/core/component/controller/ProActiveBindingController.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7230,
3357,
42,
71,
12,
780,
1004,
45,
6632,
461,
16,
6682,
1438,
45,
6632,
13,
3639,
1216,
5823,
1358,
503,
16,
2141,
5250,
503,
16,
2398,
2141,
15315,
13279,
503,
288,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7230,
3357,
42,
71,
12,
780,
1004,
45,
6632,
461,
16,
6682,
1438,
45,
6632,
13,
3639,
1216,
5823,
1358,
503,
16,
2141,
5250,
503,
16,
2398,
2141,
15315,
13279,
503,
288,
3639... |
int[] xCoords = {coords[2], newCoords[0], newCoords[2]}; int[] yCoords = {coords[3], newCoords[1], newCoords[3]}; xCoords = getScreenCoordinates(xCoords); yCoords = getScreenCoordinates(yCoords); | int[] xCoords = {screenCoords[2], newScreenCoords[0], newScreenCoords[2]}; int[] yCoords = {screenCoords[3], newScreenCoords[1], newScreenCoords[3]}; | public void paintWedgeBond(Bond bond, Color bondColor, Graphics graphics) { double wedgeWidth = r2dm.getBondWidth() * 2.0; // this value should be made customazible int[] coords = GeometryTools.getBondCoordinates(bond); graphics.setColor(bondColor); int[] newCoords = GeometryTools.distanceCalculator(coords, wedgeWidth); if (bond.getStereo() == CDKConstants.STEREO_BOND_UP) { int[] xCoords = {coords[0], newCoords[6], newCoords[4]}; int[] yCoords = {coords[1], newCoords[7], newCoords[5]}; xCoords = getScreenCoordinates(xCoords); yCoords = getScreenCoordinates(yCoords); graphics.fillPolygon(xCoords, yCoords, 3); } else { int[] xCoords = {coords[2], newCoords[0], newCoords[2]}; int[] yCoords = {coords[3], newCoords[1], newCoords[3]}; xCoords = getScreenCoordinates(xCoords); yCoords = getScreenCoordinates(yCoords); graphics.fillPolygon(xCoords, yCoords, 3); } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/024b5bd543555ab0427fdc6b91c9895dbe18db45/Renderer2D.java/clean/src/org/openscience/cdk/renderer/Renderer2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
12574,
59,
7126,
9807,
12,
9807,
8427,
16,
5563,
8427,
2957,
16,
16830,
17313,
13,
202,
95,
3639,
1645,
341,
7126,
2384,
273,
436,
22,
10956,
18,
588,
9807,
2384,
1435,
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,
225,
202,
482,
918,
12574,
59,
7126,
9807,
12,
9807,
8427,
16,
5563,
8427,
2957,
16,
16830,
17313,
13,
202,
95,
3639,
1645,
341,
7126,
2384,
273,
436,
22,
10956,
18,
588,
9807,
2384,
1435,
3... |
AST tmp1502_AST_in = (AST)_t; | AST tmp1512_AST_in = (AST)_t; | public final void scrollstate(AST _t) throws RecognitionException { AST scrollstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST head = null; AST __t1094 = _t; head = _t==ASTNULL ? null :(AST)_t; match(_t,SCROLL); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.frameInitializingStatement(head); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FROMCURRENT: { AST tmp1501_AST_in = (AST)_t; match(_t,FROMCURRENT); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case DOWN: case UP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UP: { AST tmp1502_AST_in = (AST)_t; match(_t,UP); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case DOWN: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DOWN: { AST tmp1503_AST_in = (AST)_t; match(_t,DOWN); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t1094; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
5532,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
5532,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5532,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
5532,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... |
return s3; | case ID: case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 15: case 16: case 17: case 18: case 19: case 20: case 21: | public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case EOL: return s3; case 22: case 23: return s2; case ID: case 48: return s6; default: NoViableAltException nvae = new NoViableAltException("", 15, 1, input); throw nvae; } } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.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,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
19995,
30,
10792,
648,
1599,
30,
648,
6137,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
19995,
30,
10792,
648,
1599,
30,
648,
6137,
... |
ChannelGroupManager.getInstance().checkForAvailableGroups(win); | ChannelGroupManager.getInstance().checkForAvailableGroupsAndChannels(win); | public void run() { ChannelGroupManager.getInstance().checkForAvailableGroups(win); SwingUtilities.invokeLater(new Runnable() { public void run() { mChannelListModel.refresh(); updateFilterPanel(); fillSubscribedChannelsListBox(); fillAvailableChannelsListBox(); } }); } | 9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/32389b2200cb61276404fcdda6ab4a3ca8ae9bac/ChannelsSettingsTab.java/clean/tvbrowser/src/tvbrowser/ui/settings/ChannelsSettingsTab.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1086,
1435,
288,
3639,
5307,
1114,
1318,
18,
588,
1442,
7675,
1893,
1290,
5268,
3621,
1876,
10585,
12,
8082,
1769,
3639,
26145,
11864,
18,
14407,
20607,
12,
2704,
10254,
1435,
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,
4202,
1071,
918,
1086,
1435,
288,
3639,
5307,
1114,
1318,
18,
588,
1442,
7675,
1893,
1290,
5268,
3621,
1876,
10585,
12,
8082,
1769,
3639,
26145,
11864,
18,
14407,
20607,
12,
2704,
10254,
1435,
2... |
switch ( eDerivedStructuralFeatureID( eFeature ) ) | switch ( featureID ) | public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case ComponentPackage.CHART_PREFERENCES__LABELS : getLabels( ).clear( ); return; case ComponentPackage.CHART_PREFERENCES__BLOCKS : getBlocks( ).clear( ); return; } eDynamicUnset( eFeature ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/ChartPreferencesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ChartPreferencesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
226... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.