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 |
|---|---|---|---|---|---|---|
return onMatch; | return on_match; | public int decide(Object event) { // let us not throw an exception // see also bug #17. if(!isStarted()) { return NEUTRAL; } try { if (evaluator.evaluate(event)) { return onMatch; } else { return onMismatch; } } catch (EvaluationException e) { addError("Evaluator "+evaluator.getName()+" threw an exception", e); return NEUTRAL; } } | 47463 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47463/7e755b8978a294df3e6d9708c2e25dcac0c5d6c8/EvaluatorFilter.java/buggy/logback-core/src/main/java/ch/qos/logback/core/filter/EvaluatorFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
16288,
12,
921,
871,
13,
288,
565,
368,
2231,
584,
486,
604,
392,
1520,
565,
368,
2621,
2546,
7934,
468,
4033,
18,
565,
309,
12,
5,
291,
9217,
10756,
288,
1377,
327,
12901,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16288,
12,
921,
871,
13,
288,
565,
368,
2231,
584,
486,
604,
392,
1520,
565,
368,
2621,
2546,
7934,
468,
4033,
18,
565,
309,
12,
5,
291,
9217,
10756,
288,
1377,
327,
12901,
... |
if (debug) logger.debug("<" + raw + "> -> " + xpath); | if (debug) logger.debug("<", raw, "> -> ", xpath); | public void startElement(String uri, String local, String raw, Attributes atts) { xpath.push(local); if (debug) logger.debug("<" + raw + "> -> " + xpath); // Detect CML modules, like CRML and CCML if (local.startsWith("reaction")) { // e.g. reactionList, reaction -> CRML module logger.info("Detected CRML module"); conv = new CMLReactionModule(conv); conventionStack.push(conventionStack.current()); } else { // assume CML Core // Detect conventions String convName = ""; for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("convention")) { convName = atts.getValue(i); } } if (convName.length() > 0) { conventionStack.push(convName); if (convName.equals(conventionStack.current())) { logger.debug("Same convention as parent"); } else { logger.info("New Convention: " + convName); if (convName.equals("CML")) { conv = new CMLCoreModule(conv); } else if (convName.equals("PDB")) { conv = new PDBConvention(conv); } else if (convName.equals("PMP")) { conv = new PMPConvention(conv); } else if (convName.equals("MDLMol")) { if (debug) logger.debug("MDLMolConvention instantiated..."); conv = new MDLMolConvention(conv); } else if (convName.equals("JMOL-ANIMATION")) { conv = new JMOLANIMATIONConvention(conv); } else { //unknown convention. userConvention? if (userConventions.containsKey(convName)) { ConventionInterface newconv = (ConventionInterface)userConventions.get(convName); newconv.inherit(conv); conv = newconv; } } } } else { // no convention set/reset: take convention of parent conventionStack.push(conventionStack.current()); } } if (debug) logger.debug("Conventions -> " + conventionStack); conv.startElement(xpath, uri, local, raw, atts); } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/bbeef9e56c9fda56c154c99294fb490aaa5557cb/CMLHandler.java/clean/src/org/openscience/cdk/io/cml/CMLHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
12,
780,
2003,
16,
514,
1191,
16,
514,
1831,
16,
9055,
15687,
13,
288,
3639,
6748,
18,
6206,
12,
3729,
1769,
3639,
309,
261,
4148,
13,
1194,
18,
4148,
2932,
32,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13591,
12,
780,
2003,
16,
514,
1191,
16,
514,
1831,
16,
9055,
15687,
13,
288,
3639,
6748,
18,
6206,
12,
3729,
1769,
3639,
309,
261,
4148,
13,
1194,
18,
4148,
2932,
32,
3113,
... |
scoreMap.put(key, String.valueOf(score)); | s = scoreMap.put(key, String.valueOf(score)); | public double setStoredScore(String key, double score) { Object s = null; scoreMap.put(key, String.valueOf(score)); if (s == null) { return 0; } else { return Double.parseDouble(s.toString()); } } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/5e00f3360a80274d2424ca56fc9ca8f0ec52aeea/JunkScoreImpl.java/buggy/src/java/org/apache/james/util/junkscore/JunkScoreImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
444,
18005,
7295,
12,
780,
498,
16,
1645,
4462,
13,
288,
3639,
1033,
272,
273,
446,
31,
540,
272,
273,
4462,
863,
18,
458,
12,
856,
16,
514,
18,
1132,
951,
12,
6355,
10019... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
444,
18005,
7295,
12,
780,
498,
16,
1645,
4462,
13,
288,
3639,
1033,
272,
273,
446,
31,
540,
272,
273,
4462,
863,
18,
458,
12,
856,
16,
514,
18,
1132,
951,
12,
6355,
10019... |
public static HttpBasicAuthentication getAuthentication(String challenge) { | public static HttpBasicAuthentication getAuthentication(String challenge, NutchConf conf) { | public static HttpBasicAuthentication getAuthentication(String challenge) { if (challenge == null) return null; Matcher basicMatcher = basic.matcher(challenge); if (basicMatcher.matches()) { String realm = basicMatcher.group(1); Object auth = authMap.get(realm); if (auth == null) { HttpBasicAuthentication newAuth = null; try { newAuth = new HttpBasicAuthentication(realm); } catch (HttpAuthenticationException hae) { LOG.fine("HttpBasicAuthentication failed for " + challenge); } authMap.put(realm, newAuth); return newAuth; } else { return (HttpBasicAuthentication) auth; } } return null; } | 50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/329ff64e9d7295aff108f85e9a8103f5e5f8f398/HttpBasicAuthentication.java/clean/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpBasicAuthentication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2541,
8252,
6492,
25275,
12,
780,
12948,
16,
423,
322,
343,
3976,
2195,
13,
288,
3639,
309,
261,
25092,
422,
446,
13,
327,
446,
31,
3639,
9757,
5337,
6286,
273,
5337,
18,
227... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2541,
8252,
6492,
25275,
12,
780,
12948,
16,
423,
322,
343,
3976,
2195,
13,
288,
3639,
309,
261,
25092,
422,
446,
13,
327,
446,
31,
3639,
9757,
5337,
6286,
273,
5337,
18,
227... |
if (address == null) { | if(address==null) { | public UMOEndpointURI build(URI uri) throws MalformedEndpointException { Properties props = getPropertiesForURI(uri); if (address == null) { setEndpoint(uri, props); } UMOEndpointURI ep = new MuleEndpointURI(address, endpointName, connectorName, transformers, createConnector, props, uri, userInfo); address = null; endpointName = null; connectorName = null; transformers = null; createConnector = ConnectorFactory.GET_OR_CREATE_CONNECTOR; return ep; } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/f819b891d2a8b1909fdd663ef2ac20b94d2f172c/AbstractEndpointBuilder.java/clean/src/java/org/mule/impl/endpoint/AbstractEndpointBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
3293,
3098,
1361,
12,
3098,
2003,
13,
1216,
13311,
3293,
503,
565,
288,
3639,
6183,
3458,
273,
9392,
1290,
3098,
12,
1650,
1769,
3639,
309,
12,
2867,
631,
2011,
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,
587,
5980,
3293,
3098,
1361,
12,
3098,
2003,
13,
1216,
13311,
3293,
503,
565,
288,
3639,
6183,
3458,
273,
9392,
1290,
3098,
12,
1650,
1769,
3639,
309,
12,
2867,
631,
2011,
13,
288,
... |
getDoneButton().setEnabled(shouldDoneButtonBeEnabled()); | public void keyTyped(KeyEvent e) { // deliberately does nothing } | 51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/54bc0b19e86a0247f4f79b9ac907713afc5d6a8e/ParameterUpdateDialog.java/clean/yawleditor/trunk/source/au/edu/qut/yawl/editor/swing/data/ParameterUpdateDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2343,
476,
3616,
7675,
542,
1526,
12,
13139,
7387,
3616,
1919,
1526,
10663,
2343,
476,
3616,
7675,
542,
1526,
12,
13139,
7387,
3616,
1919,
1526,
10663,
2343,
476,
3616,
7675,
542,
1526,
12,
1313... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2343,
476,
3616,
7675,
542,
1526,
12,
13139,
7387,
3616,
1919,
1526,
10663,
2343,
476,
3616,
7675,
542,
1526,
12,
13139,
7387,
3616,
1919,
1526,
10663,
2343,
476,
3616,
7675,
542,
1526,
12,
1313... | |
localSeismogram.appendChild(propertyElement); | localSeismogram.appendChild(seismogramAttr); Element data = doc.createElement("data"); data.setAttributeNS(xlinkNS, "xlink:type", "simple"); data.setAttributeNS(xlinkNS, "xlink:href", seisStr); data.setAttribute("seisType", "sac"); | public void addSeismogramRef(LocalSeismogramImpl seis, URL seisURL, String name, Property[] props, ParameterRef[] parm_ids, AuditInfo[] audit) { seismogramNameCache = null; String baseStr = base.toString(); String seisStr = seisURL.toString(); if (seisStr.startsWith(baseStr)) { // use relative URL seisStr = seisStr.substring(baseStr.length()); } // end of if (seisStr.startsWith(baseStr)) Document doc = config.getOwnerDocument(); Element localSeismogram = doc.createElement("localSeismogram"); Element seismogramAttr = doc.createElement("seismogramAttr"); XMLSeismogramAttr.insert(seismogramAttr, (LocalSeismogram)seis); localSeismogram.appendChild(seismogramAttr); Element data = doc.createElement("data"); data.setAttributeNS(xlinkNS, "xlink:type", "simple"); data.setAttributeNS(xlinkNS, "xlink:href", seisStr); data.setAttribute("seisType", "sac"); name = getUniqueName(name); Element propertyElement = doc.createElement("property"); propertyElement.appendChild(XMLUtil.createTextElement(doc, "name", "Name")); propertyElement.appendChild(XMLUtil.createTextElement(doc, "value", name)); localSeismogram.appendChild(propertyElement); //Element nameE = doc.createElement("name"); // Text text = doc.createTextNode(name); //nameE.appendChild(text); //localSeismogram.appendChild(nameE); localSeismogram.appendChild(data); /* Element propE, propNameE, propValueE; for (int i=0; i<props.length; i++) { if (props[i].name != seisNameKey) { propE = doc.createElement("property"); propNameE = doc.createElement("name"); text = doc.createTextNode(props[i].name); propNameE.appendChild(text); propValueE = doc.createElement("value"); text = doc.createTextNode(props[i].value); propValueE.appendChild(text); propE.appendChild(propNameE); propE.appendChild(propValueE); sac.appendChild(propE); } }*/ config.appendChild(localSeismogram); } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/caf867055024df305afafa76e586a90f89ef53e5/XMLDataSet.java/buggy/src/edu/sc/seis/fissuresUtil/xml/XMLDataSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
1761,
6228,
5553,
1957,
12,
2042,
1761,
6228,
5553,
2828,
695,
291,
16,
6862,
1976,
695,
291,
1785,
16,
21394,
514,
508,
16,
21394,
4276,
8526,
3458,
16,
21394,
5498,
1957... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
1761,
6228,
5553,
1957,
12,
2042,
1761,
6228,
5553,
2828,
695,
291,
16,
6862,
1976,
695,
291,
1785,
16,
21394,
514,
508,
16,
21394,
4276,
8526,
3458,
16,
21394,
5498,
1957... |
return getGroup().isMember(new GroupContextFromFunctionality(context), person); | return getGroup().allows(new GroupContextFromFunctionality(context), context.getUserView()); | public boolean isAvailable(FunctionalityContext context, Person person) { try { return getGroup().isMember(new GroupContextFromFunctionality(context), person); } catch (GroupDynamicExpressionException e) { throw e; } catch (Exception e) { throw new GroupDynamicExpressionException(e, "accessControl.group.expression.evaluation.error"); } } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/2c036bcbd9842c9e709dd73aea7a13e88d45f3bd/GroupAvailability.java/clean/src/net/sourceforge/fenixedu/domain/functionalities/GroupAvailability.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
28293,
12,
2083,
7919,
1042,
819,
16,
11573,
6175,
13,
288,
3639,
775,
288,
5411,
327,
11751,
7675,
5965,
87,
12,
2704,
3756,
1042,
1265,
2083,
7919,
12,
2472,
3631,
819,
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,
1250,
28293,
12,
2083,
7919,
1042,
819,
16,
11573,
6175,
13,
288,
3639,
775,
288,
5411,
327,
11751,
7675,
5965,
87,
12,
2704,
3756,
1042,
1265,
2083,
7919,
12,
2472,
3631,
819,
18,
... |
System.out.println("BAD PATTERN: " + e.getPattern()); | public String[] getNames() { try { getFiles(); } catch (PatternSyntaxException e) { System.out.println("BAD PATTERN: " + e.getPattern()); // This can happen if someone does Dir.glob("{") or similiar. return new String[] {}; } Collection allMatchedNames = new TreeSet(); for (Iterator iter = patterns.iterator(); iter.hasNext();) { GlobPattern pattern = (GlobPattern) iter.next(); allMatchedNames.addAll(pattern.getMatchedFiles()); } return (String[]) allMatchedNames.toArray(new String[allMatchedNames.size()]); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/b4a189a27604d62c317938f16a124fb9dab1e94a/Glob.java/buggy/src/org/jruby/util/Glob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
336,
1557,
1435,
288,
3639,
775,
288,
5411,
18262,
5621,
3639,
289,
1044,
261,
3234,
14714,
425,
13,
288,
540,
202,
6647,
368,
1220,
848,
5865,
309,
18626,
1552,
8446,
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,
514,
8526,
336,
1557,
1435,
288,
3639,
775,
288,
5411,
18262,
5621,
3639,
289,
1044,
261,
3234,
14714,
425,
13,
288,
540,
202,
6647,
368,
1220,
848,
5865,
309,
18626,
1552,
8446,
18... | |
public RubyNumeric op_minus(RubyNumeric other) { | public IRubyObject op_minus(IRubyObject other) { | public RubyNumeric op_minus(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_minus(other); } return bigNorm(getRuntime(), getValue().subtract(bigIntValue(other))); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
19601,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
933... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
19601,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327,
19817,
4723,
18,
2704,
4723,
12,
588,
5576,
933... |
m_inspectionClasses.add(UnnecessaryFinalOnParameterInspection.class); m_inspectionClasses.add(UnnecessaryFinalOnLocalVariableInspection.class); | m_inspectionClasses.add(com.siyeh.ig.verbose.UnnecessaryFinalOnParameterInspection.class); m_inspectionClasses.add(com.siyeh.ig.verbose.UnnecessaryFinalOnLocalVariableInspection.class); | private void registerVerboseInspections(){ m_inspectionClasses.add(UnnecessaryLabelOnBreakStatementInspection.class); m_inspectionClasses.add(UnnecessaryLabelOnContinueStatementInspection.class); m_inspectionClasses.add(PointlessBooleanExpressionInspection.class); m_inspectionClasses.add(ReplaceAssignmentWithOperatorAssignmentInspection.class); m_inspectionClasses.add(TrivialIfInspection.class); m_inspectionClasses.add(UnnecessaryConditionalExpressionInspection.class); m_inspectionClasses.add(ConstantConditionalExpressionInspection.class); m_inspectionClasses.add(ConstantIfStatementInspection.class); m_inspectionClasses.add(UnnecessaryParenthesesInspection.class); m_inspectionClasses.add(UnnecessaryLocalVariableInspection.class); m_inspectionClasses.add(UnnecessaryThisInspection.class); m_inspectionClasses.add(UnnecessaryBlockStatementInspection.class); m_inspectionClasses.add(UnnecessaryInterfaceModifierInspection.class); m_inspectionClasses.add(UnnecessaryEnumModifierInspection.class); m_inspectionClasses.add(UnnecessaryReturnInspection.class); m_inspectionClasses.add(UnnecessaryContinueInspection.class); m_inspectionClasses.add(UnnecessarySemicolonInspection.class); m_inspectionClasses.add(UnnecessaryFullyQualifiedNameInspection.class); m_inspectionClasses.add(UnnecessaryQualifierForThisInspection.class); m_inspectionClasses.add(UnusedLabelInspection.class); m_inspectionClasses.add(RedundantFieldInitializationInspection.class); m_inspectionClasses.add(RedundantImplementsInspection.class); m_inspectionClasses.add(ExtendsObjectInspection.class); m_inspectionClasses.add(TypeParameterExtendsObjectInspection.class); m_inspectionClasses.add(PointlessArithmeticExpressionInspection.class); m_inspectionClasses.add(PointlessBitwiseExpressionInspection.class); m_inspectionClasses.add(UnnecessarySuperConstructorInspection.class); m_inspectionClasses.add(UnnecessaryConstructorInspection.class); m_inspectionClasses.add(ForLoopReplaceableByWhileInspection.class); m_inspectionClasses.add(UnnecessaryDefaultInspection.class); m_inspectionClasses.add(UnnecessaryBoxingInspection.class); m_inspectionClasses.add(UnnecessaryUnboxingInspection.class); m_inspectionClasses.add(UnnecessaryFinalOnParameterInspection.class); m_inspectionClasses.add(UnnecessaryFinalOnLocalVariableInspection.class); m_inspectionClasses.add(ForCanBeForeachInspection.class); m_inspectionClasses.add(WhileCanBeForeachInspection.class); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/6ba145fb0f240b22c23ab071ce546e5d315606f1/InspectionGadgetsPlugin.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/InspectionGadgetsPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1744,
14489,
14985,
87,
1435,
95,
3639,
312,
67,
2679,
7017,
4818,
18,
1289,
12,
984,
82,
4128,
2224,
1398,
7634,
3406,
14985,
18,
1106,
1769,
3639,
312,
67,
2679,
7017,
4818,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
14489,
14985,
87,
1435,
95,
3639,
312,
67,
2679,
7017,
4818,
18,
1289,
12,
984,
82,
4128,
2224,
1398,
7634,
3406,
14985,
18,
1106,
1769,
3639,
312,
67,
2679,
7017,
4818,
... |
} | } | public void runInUI(final IRunnableContext context, final IRunnableWithProgress runnable, final ISchedulingRule rule) throws InvocationTargetException, InterruptedException { final IJobManager manager = Platform.getJobManager(); final InvocationTargetException[] exception = new InvocationTargetException[1]; final InterruptedException[] canceled = new InterruptedException[1]; BusyIndicator.showWhile(Display.getDefault(), new Runnable() { public void run() { try { manager.beginRule(rule, ((Workbench) PlatformUI.getWorkbench()) .isStarting() ? new NullProgressMonitor() : getEventLoopMonitor()); context.run(false, false, runnable); } catch (InvocationTargetException e) { exception[0] = e; } catch (InterruptedException e) { canceled[0] = e; } catch (OperationCanceledException e) { canceled[0] = new InterruptedException(e.getMessage()); } finally { manager.endRule(rule); } } /** * Get a progress monitor that forwards to an event loop monitor. * Override #setBlocked() so that we always open the blocked dialog. * * @return the monitor on the event loop */ private IProgressMonitor getEventLoopMonitor() { return new EventLoopProgressMonitor(new NullProgressMonitor()) { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.dialogs.EventLoopProgressMonitor#setBlocked(org.eclipse.core.runtime.IStatus) */ public void setBlocked(IStatus reason) { // Set a shell to open with as we want to create this // even if there is a modal shell. Dialog.getBlockedHandler().showBlocked( ProgressManagerUtil.getDefaultParent(), this, reason, getTaskName()); } }; } }); if (exception[0] != null) { throw exception[0]; } if (canceled[0] != null) { throw canceled[0]; } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/82e45bfb168fa5c37a8ced4976d2cc8fef6ce0f2/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
382,
5370,
12,
6385,
467,
20013,
1042,
819,
16,
1082,
202,
6385,
467,
20013,
1190,
5491,
14685,
16,
727,
4437,
13252,
2175,
1720,
13,
1082,
202,
15069,
15342,
16,
755... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
382,
5370,
12,
6385,
467,
20013,
1042,
819,
16,
1082,
202,
6385,
467,
20013,
1190,
5491,
14685,
16,
727,
4437,
13252,
2175,
1720,
13,
1082,
202,
15069,
15342,
16,
755... |
assertEquals("The number of entries in conn2 should be 1", 1, conn2.getRoster().getEntryCount()); assertEquals("The number of groups in conn2 should be 0", 0, conn2.getRoster().getGroupCount()); | assertEquals("The number of entries in conn2 should be 0", 0, conn2.getRoster().getEntryCount()); assertEquals("The number of groups in conn2 should be 0", 0, conn2.getRoster().getGroupCount()); | public void testDeleteAllRosterGroupEntries() { try { // Add a new roster entry conn1.getRoster().createEntry("gato11@localhost", "gato11", new String[] {"Friends", "Family"}); conn1.getRoster().createEntry("gato12@localhost", "gato12", new String[] {"Family"}); Thread.sleep(200); Iterator it = conn1.getRoster().getEntries(); while (it.hasNext()) { RosterEntry entry = (RosterEntry) it.next(); Iterator groups = entry.getGroups(); while (groups.hasNext()) { RosterGroup rosterGroup = (RosterGroup) groups.next(); rosterGroup.removeEntry(entry); Thread.sleep(250); } } assertEquals("The number of entries in conn1 should be 2", 2, conn1.getRoster().getEntryCount()); assertEquals("The number of groups in conn1 should be 0", 0, conn1.getRoster().getGroupCount()); assertEquals("The number of entries in conn2 should be 1", 1, conn2.getRoster().getEntryCount()); assertEquals("The number of groups in conn2 should be 0", 0, conn2.getRoster().getGroupCount()); assertEquals("The number of entries in conn3 should be 1", 1, conn3.getRoster().getEntryCount()); assertEquals("The number of groups in conn3 should be 0", 0, conn3.getRoster().getGroupCount()); cleanUpRoster(); } catch (Exception e) { fail(e.getMessage()); } } | 7665 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7665/a837f10a0b1188983c8e6738e9c77ec8d785c87f/RosterTest.java/buggy/test/org/jivesoftware/smack/RosterTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2613,
1595,
54,
29811,
1114,
5400,
1435,
288,
3639,
775,
288,
5411,
368,
1436,
279,
394,
721,
8190,
1241,
5411,
1487,
21,
18,
588,
54,
29811,
7675,
2640,
1622,
2932,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2613,
1595,
54,
29811,
1114,
5400,
1435,
288,
3639,
775,
288,
5411,
368,
1436,
279,
394,
721,
8190,
1241,
5411,
1487,
21,
18,
588,
54,
29811,
7675,
2640,
1622,
2932,
75,
... |
this.currentElementRecoder.put(parentPath+Constants.XPATH_SLASH+elementName, new Integer(((Integer)this.currentElementRecoder.get(parentPath+Constants.XPATH_SLASH+elementName)).intValue()+1 )); | this.currentElementRecoder.put(parentPath+UtilConstants.XPATH_SLASH+elementName, new Integer(((Integer)this.currentElementRecoder.get(parentPath+UtilConstants.XPATH_SLASH+elementName)).intValue()+1 )); | public void startElement( String uri, String name, String qName, Attributes atts ) { String elementName = getElementName( uri, qName, name ); String parentPath = pathHolder.getPath(); //Record the occurance of elements if(this.currentElementRecoder.get(parentPath+Constants.XPATH_SLASH+elementName)==null) { this.currentElementRecoder.put(parentPath+Constants.XPATH_SLASH+elementName,new Integer(1)); }else { this.currentElementRecoder.put(parentPath+Constants.XPATH_SLASH+elementName, new Integer(((Integer)this.currentElementRecoder.get(parentPath+Constants.XPATH_SLASH+elementName)).intValue()+1 )); } pathHolder.push( elementName+"["+((Integer)this.currentElementRecoder.get(parentPath+Constants.XPATH_SLASH+elementName)).intValue()+"]" ); for ( int i = 0; i < atts.getLength( ); i++ ) { spConsumer.manipulateData( getAttributePath( atts, i ), atts.getValue( i ) ); spConsumer.detectNewRow( getAttributePath( atts, i ) ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/14ebd25d60158712e98274eae10182535e95f3a3/SaxParser.java/clean/data/org.eclipse.birt.report.data.oda.xml/src/org/eclipse/birt/report/data/oda/xml/util/SaxParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13591,
12,
514,
2003,
16,
514,
508,
16,
514,
22914,
16,
1082,
202,
2498,
15687,
262,
202,
95,
202,
202,
780,
14453,
273,
7426,
461,
12,
2003,
16,
22914,
16,
508,
11272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13591,
12,
514,
2003,
16,
514,
508,
16,
514,
22914,
16,
1082,
202,
2498,
15687,
262,
202,
95,
202,
202,
780,
14453,
273,
7426,
461,
12,
2003,
16,
22914,
16,
508,
11272,
... |
if ( objectClasses.contains( SUBENTRY_OBJECTCLASS ) || objectClasses.contains( SUBENTRY_OBJECTCLASS_OID ) ) { return false; } return true; | return !( objectClasses.contains(SUBENTRY_OBJECTCLASS) || objectClasses.contains(SUBENTRY_OBJECTCLASS_OID) ); | public boolean accept( LdapContext ctx, SearchResult result, SearchControls controls ) { Attribute objectClasses = result.getAttributes().get( "objectClass" ); if ( objectClasses == null ) { return true; } if ( objectClasses.contains( SUBENTRY_OBJECTCLASS ) || objectClasses.contains( SUBENTRY_OBJECTCLASS_OID ) ) { return false; } return true; } | 17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/0a4e276dc33982ba994abc23dfea44d061c4f96a/SubentryService.java/clean/core/src/main/java/org/apache/ldap/server/subtree/SubentryService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
2791,
12,
18053,
1042,
1103,
16,
29740,
563,
16,
5167,
16795,
11022,
262,
3639,
288,
5411,
3601,
733,
4818,
273,
563,
18,
588,
2498,
7675,
588,
12,
315,
1612,
797,
6,
11272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
2791,
12,
18053,
1042,
1103,
16,
29740,
563,
16,
5167,
16795,
11022,
262,
3639,
288,
5411,
3601,
733,
4818,
273,
563,
18,
588,
2498,
7675,
588,
12,
315,
1612,
797,
6,
11272,
... |
this.authContext.setXML('/' + path, fragment); | this.authContext.setXML(path, fragment); | public void setXML(String path, DocumentFragment fragment) throws ProcessingException { if (path == null) { throw new ProcessingException("setXML: Path is required"); } if (!path.startsWith("/")) path = '/' + path; final String applicationName = RequestState.getState().getApplicationName(); if ( path.equals("/") ) { // set all is not allowed with "/" throw new ProcessingException("Path '/' is not allowed"); } else if ( path.startsWith("/authentication") ) { this.cleanParametersCache(); this.authContext.setXML('/' + path, fragment); } else if (path.equals("/application") || path.startsWith("/application/") ) { if (applicationName == null) { throw new ProcessingException("Application is required"); } String appPath; if (path.equals("/application")) { appPath = "/"; } else { appPath = path.substring("/application".length()); } this.authContext.setXML("/applications/" + applicationName + appPath, fragment); } else { this.authContext.setXML("/" + path, fragment); } } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/357cface2a7a05d9693cd4e913044883d90b1145/AuthenticationContext.java/buggy/src/blocks/authentication-fw/java/org/apache/cocoon/webapps/authentication/context/AuthenticationContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4201,
12,
780,
589,
16,
4319,
7456,
5481,
13,
565,
1216,
19652,
503,
288,
3639,
309,
261,
803,
422,
446,
13,
288,
5411,
604,
394,
19652,
503,
2932,
542,
4201,
30,
2666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
4201,
12,
780,
589,
16,
4319,
7456,
5481,
13,
565,
1216,
19652,
503,
288,
3639,
309,
261,
803,
422,
446,
13,
288,
5411,
604,
394,
19652,
503,
2932,
542,
4201,
30,
2666,
... |
setOnchange(null); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setMaxlength((String) evalAttr("maxlength", getMaxlength(), String.class)); } catch (NullAttributeException ex) { setMaxlength(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setReadonly(((Boolean) evalAttr("readonly", getReadonlyExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setReadonly(false); } try { setRedisplay(((Boolean) evalAttr("redisplay", getRedisplayExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setRedisplay(false); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELPasswordTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELPasswordTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
... | |
TickStyle tsGrid = TickStyle.get( cmbTickStyle.getText( ) ); | TickStyle tsGrid = TickStyle.get( LiteralHelper.fullTickStyleSet.getNameByDisplayName( cmbTickStyle.getText( ) ) ); | public void widgetSelected( SelectionEvent e ) { if ( e.getSource( ).equals( cmbTickStyle ) ) { Event eGrid = new Event( ); eGrid.widget = this; eGrid.type = TICK_STYLE_CHANGED_EVENT; TickStyle tsGrid = TickStyle.get( cmbTickStyle.getText( ) ); eGrid.data = tsGrid; fireEvent( eGrid ); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/35e5ac52b1d08645abccb0fa32df6279923b4897/GridAttributesComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/GridAttributesComposite.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,
588,
1830,
12,
262,
18,
14963,
12,
276,
1627,
6264,
2885,
262,
262,
202,
202,
95,
1082,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
276,
1627,
6264,
2885,
262,
262,
202,
202,
95,
1082,
202... |
buf.append(" node="); | buf.append(" node=\""); | public String getChildElementXML() { StringBuffer buf = new StringBuffer(); buf.append("<query xmlns=\"http://jabber.org/protocol/disco#info"); if (getNode() != null) { buf.append(" node="); buf.append(getNode()); } buf.append("\">"); synchronized (identities) { for (int i = 0; i < identities.size(); i++) { Identity identity = (Identity) identities.get(i); buf.append(identity.toXML()); } } synchronized (features) { for (int i = 0; i < features.size(); i++) { Feature feature = (Feature) features.get(i); buf.append(feature.toXML()); } } buf.append("</query>"); return buf.toString(); } | 7665 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7665/110a1f8d44b0502c45368aa129570009ed579374/DiscoverInfo.java/clean/source/org/jivesoftware/smackx/packet/DiscoverInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8154,
1046,
4201,
1435,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
1681,
18,
6923,
2932,
32,
2271,
12302,
5189,
2505,
2207,
78,
378,
744,
18,
3341,
19,
8373,
19,
2251,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8154,
1046,
4201,
1435,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
1681,
18,
6923,
2932,
32,
2271,
12302,
5189,
2505,
2207,
78,
378,
744,
18,
3341,
19,
8373,
19,
2251,
... |
if (selectedResource != null && !enum.hasNext()) { | if (selectedResource != null) { | protected void initializePage() { Iterator enum = currentSelection.iterator(); if (enum.hasNext()) { Object next = enum.next(); IResource selectedResource = null; if (next instanceof IResource) { selectedResource = (IResource)next; } else if (next instanceof IAdaptable) { selectedResource = (IResource)((IAdaptable)next).getAdapter(IResource.class); } if (selectedResource != null && !enum.hasNext()) { // ie.- not a multi-selection if (selectedResource.getType() == IResource.FILE) selectedResource = selectedResource.getParent(); if (selectedResource.isAccessible()) resourceGroup.setContainerFullPath(selectedResource.getFullPath()); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4115861b160d5af961b67ed97875076f151bf8d4/WizardNewFolderMainPage.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/dialogs/WizardNewFolderMainPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
4046,
1964,
1435,
288,
202,
3198,
2792,
273,
783,
6233,
18,
9838,
5621,
202,
430,
261,
7924,
18,
5332,
2134,
10756,
288,
202,
202,
921,
1024,
273,
2792,
18,
4285,
5621,
202,
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,
4750,
918,
4046,
1964,
1435,
288,
202,
3198,
2792,
273,
783,
6233,
18,
9838,
5621,
202,
430,
261,
7924,
18,
5332,
2134,
10756,
288,
202,
202,
921,
1024,
273,
2792,
18,
4285,
5621,
202,
202,
... |
generateRegExpLiterals(cx, scope); itsData.itsNeedsActivation = theFunction.requiresActivation(); generateICodeFromTree(theFunction.getLastChild()); itsData.itsName = theFunction.getFunctionName(); itsData.itsSource = theFunction.getEncodedSource(); if (Token.printICode) dumpICode(itsData); if (cx.debugger != null) { cx.debugger.handleCompilationDone(cx, itsData, debugSource); } debugSource = savedSource; | generateICodeFromTree(cx, scope, theFunction.getLastChild()); | private void generateFunctionICode(Context cx, Scriptable scope) { FunctionNode theFunction = (FunctionNode)scriptOrFn; itsData.itsFunctionType = theFunction.getFunctionType(); // check if function has own source, which is the case // with Function(...) String savedSource = debugSource; debugSource = theFunction.getOriginalSource(); if (debugSource == null) { debugSource = savedSource; } generateNestedFunctions(cx, scope); generateRegExpLiterals(cx, scope); itsData.itsNeedsActivation = theFunction.requiresActivation(); generateICodeFromTree(theFunction.getLastChild()); itsData.itsName = theFunction.getFunctionName(); itsData.itsSource = theFunction.getEncodedSource(); if (Token.printICode) dumpICode(itsData); if (cx.debugger != null) { cx.debugger.handleCompilationDone(cx, itsData, debugSource); } debugSource = savedSource; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/666483b96d42790e5a2f946a7e7ced4a018638b3/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
2083,
45,
1085,
12,
1042,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
4284,
907,
326,
2083,
273,
261,
2083,
907,
13,
4263,
1162,
5372,
31,
3639,
2097,
751,
18,
1282,
208... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
2083,
45,
1085,
12,
1042,
9494,
16,
22780,
2146,
13,
565,
288,
3639,
4284,
907,
326,
2083,
273,
261,
2083,
907,
13,
4263,
1162,
5372,
31,
3639,
2097,
751,
18,
1282,
208... |
return tag.getName().startsWith("testng."); } | return tag.getName().startsWith("testng."); } | private static boolean isTestNGTag(DocletTag tag) { return tag.getName().startsWith("testng."); } | 46463 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46463/75c0741cfb0fc75ef79c70ec78da0a1cd8144089/AnnotationTestConverter.java/buggy/src/main/org/testng/internal/AnnotationTestConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
353,
4709,
4960,
1805,
12,
1759,
1810,
1805,
1047,
13,
288,
202,
202,
2463,
1047,
18,
17994,
7675,
17514,
1190,
2932,
3813,
3368,
1199,
1769,
202,
97,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
353,
4709,
4960,
1805,
12,
1759,
1810,
1805,
1047,
13,
288,
202,
202,
2463,
1047,
18,
17994,
7675,
17514,
1190,
2932,
3813,
3368,
1199,
1769,
202,
97,
2,
-100,
-100,... |
final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { return xmppBackup.readDocumentVersions(userId, uniqueId, versionId, documentUniqueId); | final JabberId userId, final UUID uniqueId, final Long versionId) { return xmppBackup.readDocumentVersions(userId, uniqueId, versionId); | public List<DocumentVersion> readBackupDocumentVersions( final JabberId userId, final UUID uniqueId, final Long versionId, final UUID documentUniqueId) { return xmppBackup.readDocumentVersions(userId, uniqueId, versionId, documentUniqueId); } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/b5545567eecffc0b5a8848cd56f89e81cec7d935/XMPPSessionImpl.java/buggy/client-model/src/main/java/com/thinkparity/ophelia/model/util/xmpp/XMPPSessionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
2519,
1444,
34,
855,
6248,
2519,
5940,
12,
5411,
727,
804,
378,
744,
548,
6249,
16,
727,
5866,
22345,
16,
727,
3407,
15287,
16,
5411,
727,
5866,
1668,
24174,
13,
288,
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,
987,
32,
2519,
1444,
34,
855,
6248,
2519,
5940,
12,
5411,
727,
804,
378,
744,
548,
6249,
16,
727,
5866,
22345,
16,
727,
3407,
15287,
16,
5411,
727,
5866,
1668,
24174,
13,
288,
363... |
throw new ProjectBuildingException( "Missing version element from parent element" ); | throw new ProjectBuildingException( projectId, "Missing version element from parent element" ); | private MavenProject assembleLineage( Model model, LinkedList lineage, ArtifactRepository localRepository, File projectDir, List parentSearchRepositories, Set aggregatedRemoteWagonRepositories, ProfileManager externalProfileManager ) throws ProjectBuildingException { if ( !model.getRepositories().isEmpty() ) { List respositories = buildArtifactRepositories( model ); for ( Iterator it = respositories.iterator(); it.hasNext(); ) { ArtifactRepository repository = (ArtifactRepository) it.next(); if ( !aggregatedRemoteWagonRepositories.contains( repository ) ) { aggregatedRemoteWagonRepositories.add( repository ); } } } ProfileManager profileManager = new DefaultProfileManager( container ); if ( externalProfileManager != null ) { profileManager.explicitlyActivate( externalProfileManager.getExplicitlyActivatedIds() ); profileManager.explicitlyDeactivate( externalProfileManager.getExplicitlyDeactivatedIds() ); } List activeProfiles; try { profileManager.addProfiles( model.getProfiles() ); loadProjectExternalProfiles( profileManager, projectDir ); activeProfiles = injectActiveProfiles( profileManager, model ); } catch ( ProfileActivationException e ) { throw new ProjectBuildingException( "Failed to activate local (project-level) build profiles.", e ); } MavenProject project = new MavenProject( model ); project.setActiveProfiles( activeProfiles ); lineage.addFirst( project ); Parent parentModel = model.getParent(); if ( parentModel != null ) { if ( StringUtils.isEmpty( parentModel.getGroupId() ) ) { throw new ProjectBuildingException( "Missing groupId element from parent element" ); } else if ( StringUtils.isEmpty( parentModel.getArtifactId() ) ) { throw new ProjectBuildingException( "Missing artifactId element from parent element" ); } else if ( StringUtils.isEmpty( parentModel.getVersion() ) ) { throw new ProjectBuildingException( "Missing version element from parent element" ); } // the only way this will have a value is if we find the parent on disk... File parentDescriptor = null; MavenProject p = getCachedProject( parentModel.getGroupId(), parentModel.getArtifactId(), parentModel.getVersion() ); if ( p != null ) { model = p.getModel(); parentDescriptor = p.getFile(); } else { model = null; } String parentRelativePath = parentModel.getRelativePath(); // if we can't find a cached model matching the parent spec, then let's try to look on disk using // <relativePath/> if ( model == null && projectDir != null && StringUtils.isNotEmpty( parentRelativePath ) ) { parentDescriptor = new File( projectDir, parentRelativePath ); try { parentDescriptor = parentDescriptor.getCanonicalFile(); } catch ( IOException e ) { getLogger().debug( "Failed to canonicalize potential parent POM: \'" + parentDescriptor + "\'", e ); parentDescriptor = null; } if ( parentDescriptor != null && parentDescriptor.exists() ) { Model candidateParent = readModel( parentDescriptor ); String candidateParentGroupId = candidateParent.getGroupId(); if ( candidateParentGroupId == null && candidateParent.getParent() != null ) { candidateParentGroupId = candidateParent.getParent().getGroupId(); } String candidateParentVersion = candidateParent.getVersion(); if ( candidateParentVersion == null && candidateParent.getParent() != null ) { candidateParentVersion = candidateParent.getParent().getVersion(); } if ( parentModel.getGroupId().equals( candidateParentGroupId ) && parentModel.getArtifactId().equals( candidateParent.getArtifactId() ) && parentModel.getVersion().equals( candidateParentVersion ) ) { model = candidateParent; getLogger().debug( "Using parent-POM from the project hierarchy at: \'" + parentModel.getRelativePath() + "\' for project: " + project.getId() ); } else { getLogger().debug( "Invalid parent-POM referenced by relative path '" + parentModel.getRelativePath() + "' in parent specification in " + project.getId() + ":" + "\n Specified: " + parentModel.getId() + "\n Found: " + candidateParent.getId() ); } } } Artifact parentArtifact = null; // only resolve the parent model from the repository system if we didn't find it on disk... if ( model == null ) { //!! (**) // ---------------------------------------------------------------------- // Do we have the necessary information to actually find the parent // POMs here?? I don't think so ... Say only one remote repository is // specified and that is ibiblio then this model that we just read doesn't // have any repository information ... I think we might have to inherit // as we go in order to do this. // ---------------------------------------------------------------------- getLogger().debug( "Retrieving parent-POM from the repository for project: " + project.getId() ); parentArtifact = artifactFactory.createParentArtifact( parentModel.getGroupId(), parentModel.getArtifactId(), parentModel.getVersion() ); // we must add the repository this POM was found in too, by chance it may be located where the parent is // we can't query the parent to ask where it is :) List remoteRepositories = new ArrayList( aggregatedRemoteWagonRepositories ); remoteRepositories.addAll( parentSearchRepositories ); model = findModelFromRepository( parentArtifact, remoteRepositories, localRepository, false ); } File parentProjectDir = null; if ( parentDescriptor != null ) { parentProjectDir = parentDescriptor.getParentFile(); } MavenProject parent = assembleLineage( model, lineage, localRepository, parentProjectDir, parentSearchRepositories, aggregatedRemoteWagonRepositories, externalProfileManager ); parent.setFile( parentDescriptor ); project.setParent( parent ); project.setParentArtifact( parentArtifact ); } return project; } | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/f685d8605d2680e70b1ff2895947d2d11787e3c9/DefaultMavenProjectBuilder.java/buggy/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
17176,
4109,
19540,
1670,
410,
12,
3164,
938,
16,
10688,
31766,
16,
14022,
3305,
1191,
3305,
16,
4766,
1850,
1387,
1984,
1621,
16,
987,
982,
2979,
18429,
16,
4766,
1850,
1000,
16165,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17176,
4109,
19540,
1670,
410,
12,
3164,
938,
16,
10688,
31766,
16,
14022,
3305,
1191,
3305,
16,
4766,
1850,
1387,
1984,
1621,
16,
987,
982,
2979,
18429,
16,
4766,
1850,
1000,
16165,
... |
add(newPersp, newPersp.getPluginId()); | add(newPersp); | private void loadCustom() { Reader reader = null; /* Get the entries from the Preference store */ IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); /* Get the space-delimited list of custom perspective ids */ String customPerspectives = store .getString(IPreferenceConstants.PERSPECTIVES); String[] perspectivesList = StringConverter.asArray(customPerspectives); for (int i = 0; i < perspectivesList.length; i++) { try { String xmlString = store.getString(perspectivesList[i] + PERSP); if (xmlString != null && xmlString.length() != 0) reader = new StringReader(xmlString); // Restore the layout state. XMLMemento memento = XMLMemento.createReadRoot(reader); PerspectiveDescriptor newPersp = new PerspectiveDescriptor( null, null, null); newPersp.restoreState(memento); String id = newPersp.getId(); IPerspectiveDescriptor oldPersp = findPerspectiveWithId(id); if (oldPersp == null) add(newPersp, newPersp.getPluginId()); reader.close(); } catch (IOException e) { unableToLoadPerspective(null); } catch (WorkbenchException e) { unableToLoadPerspective(e.getStatus()); } } // bug 69387: don't look for state location if there is no instance // area, i.e., -data @none if (Platform.getInstanceLocation() == null) return; /* Get the entries from files, if any */ IPath path = WorkbenchPlugin.getDefault().getStateLocation(); File folder = path.toFile(); if (folder.isDirectory()) { File[] fileList = folder.listFiles(); int nSize = fileList.length; for (int nX = 0; nX < nSize; nX++) { File file = fileList[nX]; if (file.getName().endsWith(EXT)) { //get the memento InputStream stream = null; try { stream = new FileInputStream(file); reader = new BufferedReader(new InputStreamReader( stream, "utf-8")); //$NON-NLS-1$ // Restore the layout state. XMLMemento memento = XMLMemento.createReadRoot(reader); PerspectiveDescriptor newPersp = new PerspectiveDescriptor( null, null, null); newPersp.restoreState(memento); IPerspectiveDescriptor oldPersp = findPerspectiveWithId(newPersp .getId()); if (oldPersp == null) add(newPersp, newPersp.getPluginId()); //save to the preference store saveCustomPersp(newPersp, memento); //delete the file file.delete(); reader.close(); stream.close(); } catch (IOException e) { unableToLoadPerspective(null); } catch (WorkbenchException e) { unableToLoadPerspective(e.getStatus()); } } } } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/2643ca655274ae30e4ba0c9a52f2b6c959f1f3e8/PerspectiveRegistry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
3802,
1435,
288,
3639,
5393,
2949,
273,
446,
31,
3639,
1748,
968,
326,
3222,
628,
326,
29125,
1707,
1195,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
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,
918,
1262,
3802,
1435,
288,
3639,
5393,
2949,
273,
446,
31,
3639,
1748,
968,
326,
3222,
628,
326,
29125,
1707,
1195,
3639,
467,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
18... |
else if (sSubType.equalsIgnoreCase("Overlay")) | else if (sSubType.equalsIgnoreCase("Overlay")) | public Chart getModel(String sSubType, Orientation orientation, String sDimension, Chart currentChart) { ChartWithAxes newChart = null; if (currentChart != null) { newChart = (ChartWithAxes) getConvertedChart(currentChart, sSubType, orientation, sDimension); if (newChart != null) { return newChart; } } newChart = ChartWithAxesImpl.create(); newChart.setType(sType); newChart.setSubType(sSubType); newChart.setOrientation(orientation); newChart.setDimension(getDimensionFor(sDimension)); newChart.setUnits("Points"); ((Axis) newChart.getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) newChart.getAxes().get(0)).setType(AxisType.TEXT_LITERAL); ((Axis) newChart.getAxes().get(0)).setCategoryAxis(true); SeriesDefinition sdX = SeriesDefinitionImpl.create(); Series categorySeries = SeriesImpl.create(); sdX.getSeries().add(categorySeries); ((Axis) newChart.getAxes().get(0)).getSeriesDefinitions().add(sdX); newChart.getTitle().getLabel().getCaption().setValue("Line Chart Title"); if (sSubType.equalsIgnoreCase("Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).getMarker().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setPercent(true); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).getMarker().setVisible(true); ((LineSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Overlay")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getSeriesPalette().update(0); Series valueSeries = LineSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((LineSeries) valueSeries).getMarker().setVisible(true); ((LineSeries) valueSeries).setStacked(false); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } addSampleData(newChart); return newChart; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/7793e94b4d7fab5891f226c6c937e37d85bebad8/LineChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
16,
14804,
783,
7984,
13,
565,
288,
3639,
14804,
1190,
26494,
394,
7984,
273,
446,
31,
3639,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
16,
14804,
783,
7984,
13,
565,
288,
3639,
14804,
1190,
26494,
394,
7984,
273,
446,
31,
3639,
309,
261,
... |
if(!readyARKFetchers.contains(arkFetcher)) { | if(!hasReadyARKFetcher(arkFetcher)) { | public void removeReadyARKFetcher(ARKFetcher arkFetcher) { synchronized(readyARKFetchers) { if(!readyARKFetchers.contains(arkFetcher)) { return; } readyARKFetchers.remove(arkFetcher); } } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/77822d0009bc5b3740e79cc63928f02870726049/ARKFetchManager.java/buggy/src/freenet/node/ARKFetchManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
8367,
9584,
16855,
12,
9584,
16855,
419,
79,
16855,
13,
288,
202,
202,
22043,
12,
1672,
9584,
5005,
414,
13,
288,
1082,
202,
430,
12,
5,
1672,
9584,
5005,
414,
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,
1206,
8367,
9584,
16855,
12,
9584,
16855,
419,
79,
16855,
13,
288,
202,
202,
22043,
12,
1672,
9584,
5005,
414,
13,
288,
1082,
202,
430,
12,
5,
1672,
9584,
5005,
414,
18,
... |
ResultSet rs = stmt.executeQuery( "select BOARD_ID, NAME, CREATOR, SCENARIOS, " + "PLAYERS, PLAYS from BOARDS"); while (rs.next()) { BoardRecord brec = new BoardRecord(); brec.boardId = rs.getInt(1); brec.name = rs.getString(2); brec.creator = rs.getString(3); brec.scenarios = rs.getString(4); brec.players = rs.getInt(5); brec.plays = rs.getInt(6); blist.add(brec); | stmt.setInt(1, brec.boardId); ResultSet rs = stmt.executeQuery(); if (rs.next()) { brec.data = (byte[])rs.getObject(1); brec.dataHash = (byte[])rs.getObject(2); } else { log.warning("Couldn't find board data! [brec=" + brec + "]."); | public Object invoke (Connection conn, DatabaseLiaison liaison) throws SQLException, PersistenceException { Statement stmt = conn.createStatement(); try { ResultSet rs = stmt.executeQuery( "select BOARD_ID, NAME, CREATOR, SCENARIOS, " + "PLAYERS, PLAYS from BOARDS"); while (rs.next()) { BoardRecord brec = new BoardRecord(); brec.boardId = rs.getInt(1); brec.name = rs.getString(2); brec.creator = rs.getString(3); brec.scenarios = rs.getString(4); brec.players = rs.getInt(5); brec.plays = rs.getInt(6); blist.add(brec); } } finally { JDBCUtil.close(stmt); } return null; } | 8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/b3bbc3947b36bdbed23c5589423c3d5ec9d104a9/BoardRepository.java/buggy/src/java/com/threerings/bang/server/persist/BoardRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
4356,
261,
1952,
1487,
16,
5130,
48,
1155,
4530,
328,
1155,
4530,
13,
7734,
1216,
6483,
16,
13381,
503,
5411,
288,
7734,
8056,
3480,
273,
1487,
18,
2640,
3406,
5621,
7734,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
4356,
261,
1952,
1487,
16,
5130,
48,
1155,
4530,
328,
1155,
4530,
13,
7734,
1216,
6483,
16,
13381,
503,
5411,
288,
7734,
8056,
3480,
273,
1487,
18,
2640,
3406,
5621,
7734,
77... |
int oldIndex = attributesNode.getIndex(selected); Attribute attribute = query.getAttributes()[oldIndex]; query.removeAttribute(attribute); | int oldIndex = attributesNode.getIndex(selected); Attribute attribute = query.getAttributes()[oldIndex]; query.removeAttribute(attribute); | public void drop(DropTargetDropEvent dtde) { TreeNode target = getNodeForLocation(dtde.getLocation()); // remove node from old position int oldIndex = attributesNode.getIndex(selected); Attribute attribute = query.getAttributes()[oldIndex]; query.removeAttribute(attribute); // insert selected node into the tree by adding to the query in the // correct position. int newIndex = -1; if (target == attributesNode) newIndex = 0; else if (attributesNode.isNodeChild(target)) newIndex = attributesNode.getIndex(target) + 1; query.addAttribute(newIndex, attribute); dtde.getDropTargetContext().dropComplete(true); } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/5c72748ff7bd84ebeffdd775a53d50146c100f76/QueryTreeView.java/buggy/src/java/org/ensembl/mart/explorer/QueryTreeView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3640,
12,
7544,
2326,
7544,
1133,
3681,
323,
13,
288,
1377,
20270,
1018,
273,
5973,
1290,
2735,
12,
7510,
323,
18,
588,
2735,
10663,
1377,
368,
1206,
756,
628,
1592,
1754,
1377... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3640,
12,
7544,
2326,
7544,
1133,
3681,
323,
13,
288,
1377,
20270,
1018,
273,
5973,
1290,
2735,
12,
7510,
323,
18,
588,
2735,
10663,
1377,
368,
1206,
756,
628,
1592,
1754,
1377... |
if (gotModel && gotControl) | if (gotModel && gotControl) { | public void readImpl(PipelineContext pipelineContext, ContentHandler contentHandler) { readInputAsSAX(pipelineContext, INPUT_DATA, new ForwardingContentHandler(contentHandler) { private final String HTML_QNAME = Dom4jUtils.buildExplodedQName(XMLConstants.XHTML_NAMESPACE_URI, "html"); private final String HEAD_QNAME = Dom4jUtils.buildExplodedQName(XMLConstants.XHTML_NAMESPACE_URI, "head"); private final String BODY_QNAME = Dom4jUtils.buildExplodedQName(XMLConstants.XHTML_NAMESPACE_URI, "body"); private int level; private String element0; private String element1; private NamespaceSupport2 namespaceSupport = new NamespaceSupport2(); private boolean gotModel; private boolean gotControl; private boolean inModel; private int modelLevel; private boolean inControl; private int controlLevel; public void startDocument() throws SAXException { super.startDocument(); super.startElement("", "static-state", "static-state", XMLUtils.EMPTY_ATTRIBUTES); } public void endDocument() throws SAXException { // Close elements if (gotModel && gotControl) super.endElement("", "controls", "controls"); else if (gotModel) super.endElement("", "models", "models"); super.endElement("", "static-state", "static-state"); super.endDocument(); } public void startElement(String uri, String localname, String qName, Attributes attributes) throws SAXException { namespaceSupport.pushContext(); // Remember first two levels of elements if (level == 0) { element0 = Dom4jUtils.buildExplodedQName(uri, localname); } else if (level == 1) { element1 = Dom4jUtils.buildExplodedQName(uri, localname); } else if (level >= 2 && HTML_QNAME.equals(element0)) { // We are under /xhtml:html if (XFormsConstants.XFORMS_NAMESPACE_URI.equals(uri)) { // This is an XForms element if (!inModel && !inControl && localname.equals("model") && HEAD_QNAME.equals(element1)) { // Start extracting model inModel = true; modelLevel = level; if (gotControl) throw new OXFException("/xhtml:html/xhtml:head//xforms:model occurred after /xhtml:html/xhtml:body//xforms:*"); if (!gotModel) super.startElement("", "models", "models", XMLUtils.EMPTY_ATTRIBUTES); gotModel = true; sendStartPrefixMappings(); } else if (!inModel && !inControl && BODY_QNAME.equals(element1)) { // Start extracting controls inControl = true; controlLevel = level; if (gotModel && !gotControl) super.endElement("", "models", "models"); if (!gotControl) super.startElement("", "controls", "controls", XMLUtils.EMPTY_ATTRIBUTES); gotControl = true; sendStartPrefixMappings(); } if (inControl) { super.startElement(uri, localname, qName, attributes); } } if (inModel) { super.startElement(uri, localname, qName, attributes); } } level++; } private void sendStartPrefixMappings() throws SAXException { for (Enumeration e = namespaceSupport.getPrefixes(); e.hasMoreElements();) { final String namespacePrefix = (String) e.nextElement(); final String namespaceURI = namespaceSupport.getURI(namespacePrefix); super.startPrefixMapping(namespacePrefix, namespaceURI); } } private void sendEndPrefixMappings() throws SAXException { for (Enumeration e = namespaceSupport.getPrefixes(); e.hasMoreElements();) { final String namespacePrefix = (String) e.nextElement(); super.endPrefixMapping(namespacePrefix); } } public void endElement(String uri, String localname, String qName) throws SAXException { level--; if (inModel) { super.endElement(uri, localname, qName); } else if (inControl && XFormsConstants.XFORMS_NAMESPACE_URI.equals(uri)) { super.endElement(uri, localname, qName); } namespaceSupport.popContext(); if (inModel && level == modelLevel) { // Leaving model inModel = false; sendEndPrefixMappings(); } else if (inControl && level == controlLevel) { // Leaving control inControl = false; sendEndPrefixMappings(); } } public void characters(char[] chars, int start, int length) throws SAXException { if (inModel || inControl) super.characters(chars, start, length); } public void startPrefixMapping(String prefix, String uri) throws SAXException { namespaceSupport.declarePrefix(prefix, uri); if (inModel || inControl) super.startPrefixMapping(prefix, uri); } public void endPrefixMapping(String s) throws SAXException { if (inModel || inControl) super.endPrefixMapping(s); } }); } | 54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/91a9ce19696e982f5e643975e325dae503dd6666/XFormsExtractor.java/clean/src/java/org/orbeon/oxf/xforms/processor/XFormsExtractor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
855,
2828,
12,
8798,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
855,
1210,
1463,
55,
2501,
12,
14511,
1042,
16,
12943,
67,
4883,
16,
394,
17206,
310,
1350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
855,
2828,
12,
8798,
1042,
5873,
1042,
16,
3697,
1503,
913,
1503,
13,
288,
7734,
855,
1210,
1463,
55,
2501,
12,
14511,
1042,
16,
12943,
67,
4883,
16,
394,
17206,
310,
1350,
... |
int oldPosition = mEditor.getCaretPosition(); | public void actionPerformed(ActionEvent event) { int ident = mAddressBar.getOptionsPanel().getSelectedIdentity(); Preferences prefs = PreferencesFactory.Get(); String sigFileName = prefs.getString("mail.identity-" + ident + ".signature", ""); Document doc = mEditor.getDocument(); //int position = mEditor.getCaretPosition(); int position = doc.getEndPosition().getOffset() - 1; try { BufferedReader sigReader = new BufferedReader(new FileReader(sigFileName)); String s = "-- "; while (s != null) { System.out.println(s); s = s + "\n"; doc.insertString(position, s, null); position += s.length(); s = sigReader.readLine(); } } catch (FileNotFoundException fnfe) { fnfe.printStackTrace(); } catch (IOException ioe) { ioe.printStackTrace(); } catch (BadLocationException ble) { ble.printStackTrace(); } } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/019b50da906656cdaf8ad6cfb5459202f3965ee1/CompositionPanel.java/buggy/grendel/composition/CompositionPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
509,
1592,
2555,
273,
312,
6946,
18,
588,
39,
20731,
2555,
5621,
509,
1592,
2555,
273,
312,
6946,
18,
588,
39,
20731,
2555,
5621,
509,
1592,
2555,
273,
312,
6946,
18,
588,
39,
20731,
2555,
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,
509,
1592,
2555,
273,
312,
6946,
18,
588,
39,
20731,
2555,
5621,
509,
1592,
2555,
273,
312,
6946,
18,
588,
39,
20731,
2555,
5621,
509,
1592,
2555,
273,
312,
6946,
18,
588,
39,
20731,
2555,
5... | |
super(URL_ROOT); | super(HANDLE_ROOT); | public WebRoot() { super(URL_ROOT); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/0a2cd48ae47ad1ece009a1ad397645a7f8e96c58/WebRoot.java/buggy/sandbox/org.eclipse.mylyn.web.ui/src/org/eclipse/mylyn/internal/hypertext/WebRoot.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2999,
2375,
1435,
288,
202,
202,
9565,
12,
1785,
67,
9185,
1769,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2999,
2375,
1435,
288,
202,
202,
9565,
12,
1785,
67,
9185,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Asserts.notReached(); | assert false; | private static void addVisibility() { final Field[] fields = Visibility.class.getFields(); delegates.put(loadClass("org.jruby.runtime.Visibility"), new PersistenceDelegate() { /** * @see java.beans.PersistenceDelegate#instantiate(Object, Encoder) */ protected Expression instantiate(Object oldInstance, Encoder out) { for (int i = 0; i < 4; i++) { try { if (fields[i].get(null) == oldInstance) { return new Expression(fields[i], "get", new Object[] {null}); } } catch (IllegalAccessException e) { Asserts.notReached("IllegalAccessException: " + e.getMessage()); } } Asserts.notReached(); return null; } }); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/AstPersistenceDelegates.java/clean/src/org/jruby/ast/util/AstPersistenceDelegates.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
527,
10135,
1435,
288,
3639,
727,
2286,
8526,
1466,
273,
27791,
18,
1106,
18,
588,
2314,
5621,
3639,
22310,
18,
458,
12,
945,
797,
2932,
3341,
18,
78,
27768,
18,
9448,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
527,
10135,
1435,
288,
3639,
727,
2286,
8526,
1466,
273,
27791,
18,
1106,
18,
588,
2314,
5621,
3639,
22310,
18,
458,
12,
945,
797,
2932,
3341,
18,
78,
27768,
18,
9448,
1... |
if (jj_3R_260()) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_276()) jj_scanpos = xsp; | if (jj_scan_token(IDENTIFIER)) return true; | final private boolean jj_3R_254() { if (jj_3R_260()) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_276()) jj_scanpos = xsp; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3e3034d7566b0047ef2bf5af2e29ce51f94a2d2e/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
26261,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
4848,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26261,
1435,
288,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
4848,
10756,
327,
638,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
... |
RubyInteger depth = RubyFixnum.newFixnum(ruby, depthLimit); | RubyInteger depth = RubyFixnum.newFixnum(runtime, depthLimit); | private void userMarshal(IRubyObject value) throws IOException { out.write('u'); dumpObject(RubySymbol.newSymbol(ruby, value.getInternalClass().getClassname())); RubyInteger depth = RubyFixnum.newFixnum(ruby, depthLimit); RubyString marshaled = (RubyString) value.callMethod("_dump", depth); dumpString(marshaled.getValue()); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/034747585fcabe56272dd07acab0ab42ce8450d5/MarshalStream.java/buggy/org/jruby/runtime/marshal/MarshalStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
729,
8105,
12,
7937,
10340,
921,
460,
13,
1216,
1860,
288,
3639,
596,
18,
2626,
2668,
89,
8284,
3639,
4657,
921,
12,
54,
10340,
5335,
18,
2704,
5335,
12,
27768,
16,
460,
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,
918,
729,
8105,
12,
7937,
10340,
921,
460,
13,
1216,
1860,
288,
3639,
596,
18,
2626,
2668,
89,
8284,
3639,
4657,
921,
12,
54,
10340,
5335,
18,
2704,
5335,
12,
27768,
16,
460,
18,
... |
phase = Constants.SUMMON; | phase = Constants.BattlePhase.SUMMON; | public void advanceTurn() { if (isOver()) { return; } // Active legion is the one that was striking back. if (activeLegionNum == Constants.ATTACKER) { phase = Constants.SUMMON; Log.event(getActivePlayerName() + "'s battle turn, number " + turnNumber); again = setupSummon(); } else { turnNumber++; if (turnNumber > 7) { timeLoss(); } else { phase = Constants.RECRUIT; again = setupRecruit(); if (getActivePlayer() != null) { Log.event(getActivePlayerName() + "'s battle turn, number " + turnNumber); } } } } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/95fc8b283c4733fb9e761ead12f639e8da0ea57c/Battle.java/buggy/Colossus/core/src/main/java/net/sf/colossus/server/Battle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
8312,
15858,
1435,
3639,
288,
5411,
309,
261,
291,
4851,
10756,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
368,
8857,
4553,
285,
353,
326,
1245,
716,
1703,
609,
1766,
310,
1473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8312,
15858,
1435,
3639,
288,
5411,
309,
261,
291,
4851,
10756,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
368,
8857,
4553,
285,
353,
326,
1245,
716,
1703,
609,
1766,
310,
1473... |
iVisited.accept(_Payload); | _Payload.visitOpAsgnAndNode(iVisited); | public void visitOpAsgnAndNode(OpAsgnAndNode iVisited) { iVisited.accept(_Payload); } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/clean/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
3817,
37,
1055,
82,
1876,
907,
12,
3817,
37,
1055,
82,
1876,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
3817,
37,
1055,
82,
1876,
907,
12,
3817,
37,
1055,
82,
1876,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
-100,
-100,
-... |
throw new MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "PersistentGet goes from server to client not the other way around", identifier); | throw new MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "PersistentGet goes from server to client not the other way around", identifier, global); | public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "PersistentGet goes from server to client not the other way around", identifier); } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/PersistentGet.java/clean/src/freenet/node/fcp/PersistentGet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1082,
202,
15069,
2350,
1941,
503,
288,
202,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
9347,
67,
872... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1082,
202,
15069,
2350,
1941,
503,
288,
202,
202,
12849,
394,
2350,
1941,
503,
12,
5752,
14935,
18,
9347,
67,
872... |
private long getMaxRecentlyUsed() { | private long getMaxRecentlyUsed() { | private long getMaxRecentlyUsed() { long maxRecentlyUsed = 0; try{ Cursor c = chkDB_accessTime.openCursor(null,null); DatabaseEntry keyDBE = new DatabaseEntry(); DatabaseEntry dataDBE = new DatabaseEntry(); if(c.getLast(keyDBE,dataDBE,null)==OperationStatus.SUCCESS) { StoreBlock storeBlock = (StoreBlock) storeBlockTupleBinding.entryToObject(dataDBE); maxRecentlyUsed = storeBlock.getRecentlyUsed(); } c.close(); }catch(DatabaseException ex){ex.printStackTrace();} return maxRecentlyUsed; } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/79d31585331089fa241bcabc60a642461fd7972a/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1525,
7288,
17076,
715,
6668,
1435,
565,
288,
377,
202,
5748,
943,
17076,
715,
6668,
273,
374,
31,
377,
202,
377,
202,
698,
95,
202,
377,
202,
6688,
276,
273,
15000,
2290,
67,
386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1525,
7288,
17076,
715,
6668,
1435,
565,
288,
377,
202,
5748,
943,
17076,
715,
6668,
273,
374,
31,
377,
202,
377,
202,
698,
95,
202,
377,
202,
6688,
276,
273,
15000,
2290,
67,
386... |
declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ, PATH_WIZBAN + "workset_wiz.gif", false); declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_DLGBAN_SAVEAS_DLG, PATH_WIZBAN + "saveas_wiz.gif", false); | declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ, PATH_WIZBAN + "workset_wiz.gif", false); | private void declareWorkbenchImages() { final String ICONS_PATH = "$nl$/icons/full/";//$NON-NLS-1$ final String PATH_ELOCALTOOL = ICONS_PATH + "elcl16/"; //Enabled toolbar icons.//$NON-NLS-1$ final String PATH_ETOOL = ICONS_PATH + "etool16/"; //Enabled toolbar icons.//$NON-NLS-1$ final String PATH_DTOOL = ICONS_PATH + "dtool16/"; //Disabled toolbar icons.//$NON-NLS-1$ final String PATH_OBJECT = ICONS_PATH + "obj16/"; //Model object icons//$NON-NLS-1$ final String PATH_WIZBAN = ICONS_PATH + "wizban/"; //Wizard icons//$NON-NLS-1$ Bundle ideBundle = Platform.getBundle(IDEWorkbenchPlugin.IDE_WORKBENCH); declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC, PATH_ETOOL + "build_exec.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC_HOVER, PATH_ETOOL + "build_exec.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_BUILD_EXEC_DISABLED, PATH_DTOOL + "build_exec.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC, PATH_ETOOL + "search_src.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC_HOVER, PATH_ETOOL + "search_src.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_SEARCH_SRC_DISABLED, PATH_DTOOL + "search_src.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV, PATH_ETOOL + "next_nav.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV, PATH_ETOOL + "prev_nav.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_NEWPRJ_WIZ, PATH_WIZBAN + "newprj_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_NEWFOLDER_WIZ, PATH_WIZBAN + "newfolder_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_NEWFILE_WIZ, PATH_WIZBAN + "newfile_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_IMPORTDIR_WIZ, PATH_WIZBAN + "importdir_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_IMPORTZIP_WIZ, PATH_WIZBAN + "importzip_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_EXPORTDIR_WIZ, PATH_WIZBAN + "exportdir_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_EXPORTZIP_WIZ, PATH_WIZBAN + "exportzip_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_WIZBAN_RESOURCEWORKINGSET_WIZ, PATH_WIZBAN + "workset_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_DLGBAN_SAVEAS_DLG, PATH_WIZBAN + "saveas_wiz.gif", false); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT, PATH_OBJECT + "prj_obj.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PATH_OBJECT + "cprj_obj.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OPEN_MARKER, PATH_ELOCALTOOL + "gotoobj_tsk.gif", true); //$NON-NLS-1$ // task objects //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_HPRIO_TSK, PATH_OBJECT+"hprio_tsk.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_MPRIO_TSK, PATH_OBJECT+"mprio_tsk.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_LPRIO_TSK, PATH_OBJECT+"lprio_tsk.gif"); declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJS_TASK_TSK, PATH_OBJECT + "taskmrk_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDE.SharedImages.IMG_OBJS_BKMRK_TSK, PATH_OBJECT + "bkmrk_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_COMPLETE_TSK, PATH_OBJECT + "complete_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_INCOMPLETE_TSK, PATH_OBJECT + "incomplete_tsk.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_ITEM, PATH_OBJECT + "welcome_item.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_BANNER, PATH_OBJECT + "welcome_banner.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_LCL_FLAT_LAYOUT, PATH_ELOCALTOOL + "flatLayout.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_LCL_HIERARCHICAL_LAYOUT, PATH_ELOCALTOOL + "hierarchicalLayout.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_ETOOL_PROBLEM_CATEGORY, PATH_ETOOL + "problem_category.gif", true); //$NON-NLS-1$ declareWorkbenchImage(ideBundle, IDEInternalWorkbenchImages.IMG_LCL_LINKTO_HELP, PATH_ELOCALTOOL + "linkto_help.gif", false); //$NON-NLS-1$ // synchronization indicator objects //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_WBET_STAT, PATH_OVERLAY+"wbet_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_SBET_STAT, PATH_OVERLAY+"sbet_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_CONFLICT_STAT, PATH_OVERLAY+"conflict_stat.gif"); // content locality indicator objects //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_NOTLOCAL_STAT, PATH_STAT+"notlocal_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_LOCAL_STAT, PATH_STAT+"local_stat.gif"); //declareRegistryImage(IDEInternalWorkbenchImages.IMG_OBJS_FILLLOCAL_STAT, PATH_STAT+"filllocal_stat.gif"); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fdc0bfc5b2792369a886e670b7c019c9a9664acb/IDEWorkbenchAdvisor.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/IDEWorkbenchAdvisor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
14196,
2421,
22144,
8946,
1435,
288,
3639,
727,
514,
467,
2248,
55,
67,
4211,
273,
4662,
14039,
13209,
14516,
19,
2854,
4898,
31,
759,
8,
3993,
17,
5106,
17,
21,
8,
3639,
727... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
14196,
2421,
22144,
8946,
1435,
288,
3639,
727,
514,
467,
2248,
55,
67,
4211,
273,
4662,
14039,
13209,
14516,
19,
2854,
4898,
31,
759,
8,
3993,
17,
5106,
17,
21,
8,
3639,
727... |
public org.quickfix.field.Text getText() throws FieldNotFound { org.quickfix.field.Text value = new org.quickfix.field.Text(); | public quickfix.field.Text getText() throws FieldNotFound { quickfix.field.Text value = new quickfix.field.Text(); | public org.quickfix.field.Text getText() throws FieldNotFound { org.quickfix.field.Text value = new org.quickfix.field.Text(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/clean/src/java/src/quickfix/fix40/NewOrderList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1528,
6701,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1528,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1528,
6701,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1528,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1528... |
public Handler getProvider(); | public Provider getProvider(); | public Handler getProvider(); | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/e3d2304c8033291e4333ef6a97cac9b228cba19b/Service.java/clean/dev/scratch/prototype1/src/java/org/apache/axis/engine/Service.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4663,
16137,
5621,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4663,
16137,
5621,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
_req=new GroupRequest(msg, corr, real_dests, mode, timeout, 0); _req.execute(); | _req = new GroupRequest(msg, corr, real_dests, mode, timeout, 0); _req.execute(); | public RspList castMessage(final Vector dests, Message msg, int mode, long timeout) { GroupRequest _req=null; Vector real_dests; Channel tmp; // we need to clone because we don't want to modify the original // (we remove ourselves if LOCAL is false, see below) ! real_dests=dests != null ? (Vector)dests.clone() : (members != null? (Vector)members.clone() : null); // if local delivery is off, then we should not wait for the message from the local member. // therefore remove it from the membership tmp=channel; if(tmp == null) { if(adapter != null && adapter.getTransport() instanceof Channel) tmp=(Channel)adapter.getTransport(); } if(tmp != null && tmp.getOpt(Channel.LOCAL).equals(Boolean.FALSE)) { if(local_addr == null) local_addr=tmp.getLocalAddress(); if(local_addr != null && real_dests != null) real_dests.removeElement(local_addr); } // don't even send the message if the destination list is empty if(log.isDebugEnabled()) log.debug("real_dests=" + real_dests); if(real_dests == null || real_dests.size() == 0) { { if(log.isInfoEnabled()) log.info("destination list is empty, won't send message"); return new RspList(); // return empty response list } } _req=new GroupRequest(msg, corr, real_dests, mode, timeout, 0); _req.execute(); return _req.getResults(); } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/1c1c7d103f9cfeff6928cd868bac88a3edc0eecf/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
534,
1752,
682,
4812,
1079,
12,
6385,
5589,
1570,
87,
16,
2350,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
288,
4202,
3756,
691,
225,
389,
3658,
33,
2011,
31,
4202,
5589,
3639,
2863... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
534,
1752,
682,
4812,
1079,
12,
6385,
5589,
1570,
87,
16,
2350,
1234,
16,
509,
1965,
16,
1525,
2021,
13,
288,
4202,
3756,
691,
225,
389,
3658,
33,
2011,
31,
4202,
5589,
3639,
2863... |
} else { | } else { | protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request) { // fill the parameter values in the get/set methods fillParamValues(request); // set the dialog type setParamDialogtype(DIALOG_TYPE); // set the action for the JSP switch if (DIALOG_TYPE.equals(getParamAction())) { setAction(ACTION_COPYTOPROJECT); } else if (DIALOG_CANCEL.equals(getParamAction())) { setAction(ACTION_CANCEL); } else { setAction(ACTION_DEFAULT); // build title for copy to project dialog setParamTitle(key(Messages.GUI_COPYTOPROJECT_TITLE_0)); } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/2fa0efcae8f9aa5971c7763269a3b033e9256d4b/CmsCopyToProject.java/clean/src/org/opencms/workplace/commons/CmsCopyToProject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
16514,
691,
1972,
12,
4747,
16514,
2628,
1947,
16,
9984,
590,
13,
288,
3639,
368,
3636,
326,
1569,
924,
316,
326,
336,
19,
542,
2590,
3639,
3636,
786,
1972,
12,
2293,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
16514,
691,
1972,
12,
4747,
16514,
2628,
1947,
16,
9984,
590,
13,
288,
3639,
368,
3636,
326,
1569,
924,
316,
326,
336,
19,
542,
2590,
3639,
3636,
786,
1972,
12,
2293,
1... |
initialized = true; | public void init(Segment seg, TabExpander expander, float x, SyntaxStyle[] styles, FontRenderContext fontRenderContext, byte defaultID) { initialized = true; style = styles[(id == Token.WHITESPACE || id == Token.TAB) ? defaultID : id]; if(length == 1 && seg.array[seg.offset + offset] == '\t') { float newX = expander.nextTabStop(x,offset + length); width = newX - x; } else { str = new String(seg.array,seg.offset + offset,length); gv = style.getFont().createGlyphVector( fontRenderContext,str); width = (float)gv.getLogicalBounds().getWidth(); positions = gv.getGlyphPositions(0,length,null); } } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/faac45fa04c4f138247a7abce92bd13f4e438ef7/Chunk.java/clean/org/gjt/sp/jedit/syntax/Chunk.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
4131,
2291,
16,
9483,
12271,
264,
4542,
264,
16,
1431,
619,
16,
202,
202,
8070,
2885,
8526,
5687,
16,
10063,
3420,
1042,
3512,
3420,
1042,
16,
202,
202,
7229,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
4131,
2291,
16,
9483,
12271,
264,
4542,
264,
16,
1431,
619,
16,
202,
202,
8070,
2885,
8526,
5687,
16,
10063,
3420,
1042,
3512,
3420,
1042,
16,
202,
202,
7229,
8... | |
RolapMember parentMember, RolapLevel level, String name, String formatString) { super(parentMember, level, name); if (formatString == null) { formatString = ""; } setProperty(Property.PROPERTY_FORMAT_EXP, Literal.createString(formatString)); } | RolapMember parentMember, RolapLevel level, String name, String formatString) { super(parentMember, level, name); if (formatString == null) { formatString = ""; } setProperty(Property.PROPERTY_FORMAT_EXP, Literal.createString(formatString)); } | RolapMeasure( RolapMember parentMember, RolapLevel level, String name, String formatString) { super(parentMember, level, name); if (formatString == null) { formatString = ""; } setProperty(Property.PROPERTY_FORMAT_EXP, Literal.createString(formatString)); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/RolapMeasure.java/clean/src/main/mondrian/rolap/RolapMeasure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
4984,
438,
7197,
12,
1082,
202,
4984,
438,
4419,
982,
4419,
16,
11714,
438,
2355,
1801,
16,
514,
508,
16,
1082,
202,
780,
27107,
13,
288,
202,
202,
9565,
12,
2938,
4419,
16,
1801,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4984,
438,
7197,
12,
1082,
202,
4984,
438,
4419,
982,
4419,
16,
11714,
438,
2355,
1801,
16,
514,
508,
16,
1082,
202,
780,
27107,
13,
288,
202,
202,
9565,
12,
2938,
4419,
16,
1801,
... |
System.setProperty("org.xml.sax.driver","org.apache.crimson.parser.XMLReaderImpl"); | String newDefault = "org.apache.crimson.parser.XMLReaderImpl"; XRLog.load(Level.WARNING, "No value for system property 'org.xml.sax.driver'."); | public static final XMLReader newXMLReader() { XMLReader saxParser = null; String xmlReaderClass = Configuration.valueFor("xr.load.xml-reader"); try { if ( xmlReaderClass != null && !xmlReaderClass.toLowerCase().equals("default")) { saxParser = XMLReaderFactory.createXMLReader( xmlReaderClass ); } } catch ( Exception ex ) { XRLog.load(Level.WARNING, "Could not instantiate XMLReader class for XML parsing: " + xmlReaderClass +". Please check classpath. Use value 'default' in " + "FS configuration if necessary. Will now try JDK default.", ex); } if ( saxParser == null ) { try { // JDK default // HACK: if if ( System.getProperty("org.xml.sax.driver") == null ) { System.setProperty("org.xml.sax.driver","org.apache.crimson.parser.XMLReaderImpl"); } saxParser = XMLReaderFactory.createXMLReader(); xmlReaderClass = "{JDK default}"; } catch ( Exception ex ) { XRLog.general(ex.getMessage()); } } if ( saxParser == null ) { throw new XRRuntimeException("Could not instantiate any SAX 2 parser, including JDK default. " + "The name of the class to use should have been read from the org.xml.sax.driver System " + "property, which is set to: " + System.getProperty("org.xml.sax.driver")); } XRLog.load( "SAX XMLReader in use (parser): " + saxParser.getClass().getName() ); return saxParser; } | 53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/a0b19138bfb30ab90dc9cb58bfc2b4dadda06949/XMLResource.java/clean/src/java/org/xhtmlrenderer/resource/XMLResource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
3167,
2514,
394,
4201,
2514,
1435,
288,
3639,
3167,
2514,
20319,
2678,
273,
446,
31,
3639,
514,
2025,
2514,
797,
273,
4659,
18,
1132,
1290,
2932,
92,
86,
18,
945,
18,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
3167,
2514,
394,
4201,
2514,
1435,
288,
3639,
3167,
2514,
20319,
2678,
273,
446,
31,
3639,
514,
2025,
2514,
797,
273,
4659,
18,
1132,
1290,
2932,
92,
86,
18,
945,
18,
29... |
_t = __t181; | _t = __t182; | public final Expression nodeComp(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST nodeComp_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST is = null; org.exist.xquery.parser.XQueryAST isnot = null; org.exist.xquery.parser.XQueryAST before = null; org.exist.xquery.parser.XQueryAST after = null; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_is: { AST __t179 = _t; is = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_is); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step = new NodeComparison(context, left, right, Constants.IS); step.setASTNode(is); path.add(step); _t = __t179; _t = _t.getNextSibling(); break; } case LITERAL_isnot: { AST __t180 = _t; isnot = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_isnot); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step = new NodeComparison(context, left, right, Constants.ISNOT); step.setASTNode(isnot); path.add(step); _t = __t180; _t = _t.getNextSibling(); break; } case BEFORE: { AST __t181 = _t; before = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,BEFORE); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step = new NodeComparison(context, left, right, Constants.BEFORE); step.setASTNode(before); path.add(step); _t = __t181; _t = _t.getNextSibling(); break; } case AFTER: { AST __t182 = _t; after = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,AFTER); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step = new NodeComparison(context, left, right, Constants.AFTER); step.setASTNode(after); path.add(step); _t = __t182; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/10544e5ec103a411822c6180ed81ef38eab15de8/XQueryTreeParser.java/buggy/src/org/exist/xquery/parser/XQueryTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
756,
2945,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
756,
2945,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
22... |
if (kind > 122) kind = 122; jjstateSet[jjnewStateCnt++] = 58; break; case 60: if ((0x3ff000000000000L & l) == 0L) break; | static private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 82; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 32: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 5); else if (curChar == 34) jjCheckNAddStates(6, 8); else if (curChar == 39) jjAddStates(9, 10); else if (curChar == 46) jjCheckNAdd(1); if ((0x3fe000000000000L & l) != 0L) { if (kind > 118) kind = 118; jjCheckNAddStates(11, 18); } else if (curChar == 48) jjAddStates(19, 22); if (curChar == 48) { if (kind > 114) kind = 114; jjCheckNAddStates(23, 30); } break; case 0: if (curChar == 46) jjCheckNAdd(1); break; case 1: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 126) kind = 126; jjCheckNAddStates(31, 33); break; case 3: if ((0x280000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 126) kind = 126; jjCheckNAddTwoStates(4, 5); break; case 6: if (curChar == 39) jjAddStates(9, 10); break; case 7: if ((0xffffff7fffffdbffL & l) != 0L) jjCheckNAdd(8); break; case 8: if (curChar == 39 && kind > 128) kind = 128; break; case 10: if ((0x8000008400000000L & l) != 0L) jjCheckNAdd(8); break; case 11: if (curChar == 48) jjCheckNAddTwoStates(12, 8); break; case 12: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 8); break; case 13: if ((0x3fe000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 8); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 8); break; case 15: if (curChar == 48) jjAddStates(34, 35); break; case 17: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(17, 8); break; case 19: if (curChar == 34) jjCheckNAddStates(6, 8); break; case 20: if ((0xfffffffbffffdbffL & l) != 0L) jjCheckNAddStates(6, 8); break; case 22: if ((0x8000008400000000L & l) != 0L) jjCheckNAddStates(6, 8); break; case 23: if (curChar == 34 && kind > 129) kind = 129; break; case 24: if (curChar == 48) jjCheckNAddStates(36, 39); break; case 25: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(36, 39); break; case 26: if ((0x3fe000000000000L & l) != 0L) jjCheckNAddStates(40, 43); break; case 27: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(40, 43); break; case 28: if (curChar == 48) jjAddStates(44, 45); break; case 30: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(46, 49); break; case 33: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 131) kind = 131; jjstateSet[jjnewStateCnt++] = 33; break; case 34: if (curChar != 48) break; if (kind > 114) kind = 114; jjCheckNAddStates(23, 30); break; case 35: if ((0xff000000000000L & l) == 0L) break; if (kind > 114) kind = 114; jjCheckNAdd(35); break; case 36: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(36, 37); break; case 38: if ((0xff000000000000L & l) != 0L) jjCheckNAddTwoStates(38, 39); break; case 40: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(50, 52); break; case 45: if ((0x3fe000000000000L & l) == 0L) break; if (kind > 118) kind = 118; jjCheckNAddStates(11, 18); break; case 46: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 118) kind = 118; jjCheckNAdd(46); break; case 47: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(47, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(53, 55); break; case 56: if (curChar == 48) jjAddStates(19, 22); break; case 58: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 122) kind = 122; jjstateSet[jjnewStateCnt++] = 58; break; case 60: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 123) kind = 123; jjAddStates(56, 57); break; case 63: if ((0x3ff000000000000L & l) != 0L) jjAddStates(58, 59); break; case 66: if ((0x3ff000000000000L & l) != 0L) jjAddStates(60, 62); break; case 71: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(0, 5); break; case 72: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(72, 73); break; case 73: if (curChar != 46) break; if (kind > 126) kind = 126; jjCheckNAddStates(63, 65); break; case 74: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 126) kind = 126; jjCheckNAddStates(63, 65); break; case 75: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(75, 0); break; case 76: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(76, 77); break; case 78: if ((0x280000000000L & l) != 0L) jjCheckNAdd(79); break; case 79: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 127) kind = 127; jjCheckNAddTwoStates(79, 80); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 32: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 131) kind = 131; jjCheckNAdd(33); } if (curChar == 76) jjAddStates(66, 67); break; case 2: if ((0x2000000020L & l) != 0L) jjAddStates(68, 69); break; case 5: if ((0x104000001040L & l) != 0L && kind > 126) kind = 126; break; case 7: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAdd(8); break; case 9: if (curChar == 92) jjAddStates(70, 73); break; case 10: if ((0x54404610000000L & l) != 0L) jjCheckNAdd(8); break; case 16: if (curChar == 120) jjCheckNAdd(17); break; case 17: if ((0x7e0000007eL & l) != 0L) jjCheckNAddTwoStates(17, 8); break; case 18: if (curChar == 88) jjCheckNAdd(17); break; case 20: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(6, 8); break; case 21: if (curChar == 92) jjAddStates(74, 77); break; case 22: if ((0x54404610000000L & l) != 0L) jjCheckNAddStates(6, 8); break; case 29: if (curChar == 120) jjCheckNAdd(30); break; case 30: if ((0x7e0000007eL & l) != 0L) jjCheckNAddStates(46, 49); break; case 31: if (curChar == 88) jjCheckNAdd(30); break; case 33: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 131) kind = 131; jjCheckNAdd(33); break; case 37: if ((0x100000001000L & l) != 0L && kind > 115) kind = 115; break; case 39: if ((0x20000000200000L & l) != 0L && kind > 116) kind = 116; break; case 41: if ((0x100000001000L & l) != 0L && kind > 117) kind = 117; break; case 42: if ((0x20000000200000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 41; break; case 43: if ((0x20000000200000L & l) != 0L && kind > 117) kind = 117; break; case 44: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 43; break; case 48: if ((0x20100000201000L & l) != 0L && kind > 119) kind = 119; break; case 50: if ((0x20000000200000L & l) != 0L && kind > 120) kind = 120; break; case 52: if ((0x100000001000L & l) != 0L && kind > 121) kind = 121; break; case 53: if ((0x20000000200000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 52; break; case 54: if ((0x20000000200000L & l) != 0L && kind > 121) kind = 121; break; case 55: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 54; break; case 57: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(58); break; case 58: if ((0x7e0000007eL & l) == 0L) break; if (kind > 122) kind = 122; jjCheckNAdd(58); break; case 59: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(60); break; case 60: if ((0x7e0000007eL & l) == 0L) break; if (kind > 123) kind = 123; jjCheckNAddTwoStates(60, 61); break; case 61: if ((0x20100000201000L & l) != 0L && kind > 123) kind = 123; break; case 62: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(63); break; case 63: if ((0x7e0000007eL & l) != 0L) jjCheckNAddTwoStates(63, 64); break; case 64: if ((0x20000000200000L & l) != 0L && kind > 124) kind = 124; break; case 65: if ((0x100000001000000L & l) != 0L) jjCheckNAdd(66); break; case 66: if ((0x7e0000007eL & l) != 0L) jjCheckNAddStates(60, 62); break; case 67: if ((0x100000001000L & l) != 0L && kind > 125) kind = 125; break; case 68: if ((0x20000000200000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 67; break; case 69: if ((0x20000000200000L & l) != 0L && kind > 125) kind = 125; break; case 70: if ((0x100000001000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 69; break; case 77: if ((0x2000000020L & l) != 0L) jjAddStates(78, 79); break; case 80: if ((0x104000001040L & l) != 0L && kind > 127) kind = 127; break; case 81: if (curChar == 76) jjAddStates(66, 67); break; default : break; } } while(i != startsAt); } else { int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 7: if ((jjbitVec0[i2] & l2) != 0L) jjstateSet[jjnewStateCnt++] = 8; break; case 20: if ((jjbitVec0[i2] & l2) != 0L) jjAddStates(6, 8); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 82 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/380243817238f20dded6aa323a249c33dbaceae3/CPPParserTokenManager.java/buggy/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
760,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
760,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
... | |
InputStream in = cl.getResourceAsStream(packagePrefix + "/" + filename); | InputStream in = new FileInputStream(regClass.getResource(filename).getFile()); | private Properties loadProperty(String filename, Class regClass) throws InternalEVerlageError { Properties newProps = new Properties(); try { ClassLoader cl = regClass.getClassLoader(); String packagePrefix = regClass.getPackage().getName(); packagePrefix = packagePrefix.replace('.', '/'); if (CAGlobal.log.isDebugEnabled()) { CAGlobal.log.debug("try to load " + packagePrefix + "/" + filename); } InputStream in = cl.getResourceAsStream(packagePrefix + "/" + filename); newProps.load(in); in.close(); } catch (FileNotFoundException e) { CAGlobal.log.error(e); throw new InternalEVerlageError(e); } catch (IOException e) { CAGlobal.log.error(e); throw new InternalEVerlageError(e); } return newProps; } | 10993 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10993/d2a95e86e2395f17503a1be5204ed4a42ac850dc/PropertyHandler.java/buggy/everlage/src/de/everlage/ca/core/PropertyHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6183,
1262,
1396,
12,
780,
1544,
16,
1659,
960,
797,
13,
1216,
3186,
41,
3945,
80,
410,
668,
288,
202,
202,
2297,
394,
5047,
273,
394,
6183,
5621,
202,
202,
698,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6183,
1262,
1396,
12,
780,
1544,
16,
1659,
960,
797,
13,
1216,
3186,
41,
3945,
80,
410,
668,
288,
202,
202,
2297,
394,
5047,
273,
394,
6183,
5621,
202,
202,
698,
288,
1082,
... |
debug = "openNextFile : set all kinds of parameters"; | private boolean openNextFile() { try { lineNumberInFile = 0; debug = "openNextFile : close last file"; if (!closeLastFile()) return false; if (data.files.nrOfFiles() == 0) return false; // Is this the last file? data.isLastFile = (data.filenr == data.files.nrOfFiles() - 1); data.file = data.files.getFile(data.filenr); data.filename = data.file.getPath(); // Add this files to the result of this transformation. // ResultFile resultFile = new ResultFile(ResultFile.FILE_TYPE_GENERAL, data.file, getTransMeta().getName(), toString()); addResultFile(resultFile); debug = "openNextFile : open file"; logBasic("Opening file: " + data.filename); data.fr = new FileInputStream(data.file); data.dataErrorLineHandler.handleFile(data.file); if (meta.isZipped()) { data.zi = new ZipInputStream(data.fr); data.zi.getNextEntry(); if (meta.getEncoding() != null && meta.getEncoding().length() > 0) { data.isr = new InputStreamReader(new BufferedInputStream(data.zi), meta.getEncoding()); } else { data.isr = new InputStreamReader(new BufferedInputStream(data.zi)); } } else { if (meta.getEncoding() != null && meta.getEncoding().length() > 0) { data.isr = new InputStreamReader(new BufferedInputStream(data.fr), meta.getEncoding()); } else { data.isr = new InputStreamReader(new BufferedInputStream(data.fr)); } } debug = "openNextFile : set all kinds of parameters"; // Move file pointer ahead! data.filenr++; // ///////////////////////////////////////////////////////////////////////////// // Read the first lines... /* Keep track of the status of the file: are there any lines left to read? */ data.doneReading = false; /* OK, read a number of lines in the buffer: The header rows The nr rows in the page : optional The footer rows */ int bufferSize = 1; // try to read at least one line. bufferSize += meta.hasHeader() ? meta.getNrHeaderLines() : 0; bufferSize += meta.isLayoutPaged() ? meta.getNrLinesPerPage() : 0; bufferSize += meta.hasFooter() ? meta.getNrFooterLines() : 0; // See if we need to skip the document header lines... if (meta.isLayoutPaged()) { for (int i = 0; i < meta.getNrLinesDocHeader(); i++) { // Just skip these... getLine(log, data.isr, meta.getFileFormat()); // header and footer: not wrapped lineNumberInFile++; } } String line; for (int i = 0; i < bufferSize && !data.doneReading; i++) { line = getLine(log, data.isr, meta.getFileFormat()); if (line != null) { // logRowlevel("LINE READ: "+line); linesInput++; lineNumberInFile++; // when there is no header, check the filter for the first line if (!meta.hasHeader()) { // Filter row? boolean isFilterLastLine = false; boolean filterOK = checkFilterRow(line, isFilterLastLine); if (filterOK) { data.lineBuffer.add(new TextFileLine(line, lineNumberInFile, data.file)); // Store it in the // line buffer... } else { if (isFilterLastLine) { data.doneReading = true; } bufferSize++; // grab another line, this one got filtered } } else //there is a header, so don�t checkFilterRow { data.lineBuffer.add(new TextFileLine(line, lineNumberInFile, data.file)); // Store it in the // line buffer... } } else { data.doneReading = true; } } // Reset counters etc. data.headerLinesRead = 0; data.footerLinesRead = 0; data.pageLinesRead = 0; // Set a flags data.doneWithHeader = !meta.hasHeader(); } catch (Exception e) { logError("Couldn't open file #" + data.filenr + " : " + data.filename + " (" + debug + ") --> " + e.toString()); stopAll(); setErrors(1); return false; } return true; } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/3f39d037ba2ddf06fc422d6ae1f3add16df6eae5/TextFileInput.java/clean/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1696,
2134,
812,
1435,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
1369,
1854,
382,
812,
273,
374,
31,
1082,
202,
4148,
273,
315,
3190,
2134,
812,
294,
1746,
1142,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
1696,
2134,
812,
1435,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
1369,
1854,
382,
812,
273,
374,
31,
1082,
202,
4148,
273,
315,
3190,
2134,
812,
294,
1746,
1142,... | |
c.kind == Kinds.ERROR || | c.isError() || | public boolean isSubClass(Symbol c) { return this == c || c.kind == Kinds.ERROR || closurePos(c) >= 0 || this == Global.instance.definitions.ALL_CLASS || (this == Global.instance.definitions.ALLREF_CLASS && c != Global.instance.definitions.ALL_CLASS && c.isSubClass(Global.instance.definitions.ANYREF_CLASS)); } | 1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/789d2abd99fe20c9502260d2bda4b7d05b282b36/Symbol.java/clean/sources/scalac/symtab/Symbol.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
16523,
797,
12,
5335,
276,
13,
288,
3639,
327,
333,
422,
276,
747,
5411,
276,
18,
291,
668,
1435,
747,
5411,
7213,
1616,
12,
71,
13,
1545,
374,
747,
5411,
333,
422,
8510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
16523,
797,
12,
5335,
276,
13,
288,
3639,
327,
333,
422,
276,
747,
5411,
276,
18,
291,
668,
1435,
747,
5411,
7213,
1616,
12,
71,
13,
1545,
374,
747,
5411,
333,
422,
8510,
... |
b.setBorderPainted(false); | setButtonProperties(b); | private JToolBar createManagementBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.setBorder(null); JButton b = new JButton(controller.getAction(TreeViewerControl.VIEW)); b.setBorderPainted(false); bar.add(b); TreeViewerAction a = controller.getAction(TreeViewerControl.MANAGER); b = new JButton(a); b.setBorderPainted(false); b.addMouseListener((ManagerAction) a); bar.add(b); bar.add(new JSeparator(SwingConstants.VERTICAL)); return bar; } | 55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/83e42c21eb5c1f3394496ff33c72723a58274a2a/ToolBar.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/ToolBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
804,
6364,
5190,
752,
10998,
5190,
1435,
565,
288,
3639,
804,
6364,
5190,
4653,
273,
394,
804,
6364,
5190,
5621,
3639,
4653,
18,
542,
4723,
429,
12,
5743,
1769,
3639,
4653,
18,
542,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
804,
6364,
5190,
752,
10998,
5190,
1435,
565,
288,
3639,
804,
6364,
5190,
4653,
273,
394,
804,
6364,
5190,
5621,
3639,
4653,
18,
542,
4723,
429,
12,
5743,
1769,
3639,
4653,
18,
542,... |
MessageFilter mf = MessageFilter.create().setType(DMT.missingPacketNotification).setField(DMT.UID, _uid).setTimeout(SEND_TIMEOUT).setSource(_destination). or(MessageFilter.create().setType(DMT.allReceived).setField(DMT.UID, _uid).setTimeout(SEND_TIMEOUT).setSource(_destination)). or(MessageFilter.create().setType(DMT.sendAborted).setField(DMT.UID, _uid).setTimeout(SEND_TIMEOUT).setSource(_destination)); msg = _usm.waitFor(mf); | MessageFilter mfMissingPacketNotification = MessageFilter.create().setType(DMT.missingPacketNotification).setField(DMT.UID, _uid).setTimeout(SEND_TIMEOUT).setSource(_destination); MessageFilter mfAllReceived = MessageFilter.create().setType(DMT.allReceived).setField(DMT.UID, _uid).setTimeout(SEND_TIMEOUT).setSource(_destination); MessageFilter mfSendAborted = MessageFilter.create().setType(DMT.sendAborted).setField(DMT.UID, _uid).setTimeout(SEND_TIMEOUT).setSource(_destination); msg = _usm.waitFor(mfMissingPacketNotification.or(mfAllReceived.or(mfSendAborted))); | public boolean send() { _receiverThread = Thread.currentThread(); PartiallyReceivedBlock.PacketReceivedListener myListener; try { _unsent = _prb.addListener(myListener = new PartiallyReceivedBlock.PacketReceivedListener() {; public void packetReceived(int packetNo) { _unsent.addLast(new Integer(packetNo)); _sentPackets.setBit(packetNo, false); synchronized(_senderThread) { _senderThread.notify(); } } public void receiveAborted(int reason, String description) { try { ((PeerNode)_destination).sendAsync(DMT.createSendAborted(_uid, reason, description), null); } catch (NotConnectedException e) { Logger.minor(this, "Receive aborted and receiver is not connected"); } } }); _senderThread.start(); while (true) { if (_prb.isAborted()) { synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } return false; } Message msg; try { MessageFilter mf = MessageFilter.create().setType(DMT.missingPacketNotification).setField(DMT.UID, _uid).setTimeout(SEND_TIMEOUT).setSource(_destination). or(MessageFilter.create().setType(DMT.allReceived).setField(DMT.UID, _uid).setTimeout(SEND_TIMEOUT).setSource(_destination)). or(MessageFilter.create().setType(DMT.sendAborted).setField(DMT.UID, _uid).setTimeout(SEND_TIMEOUT).setSource(_destination)); msg = _usm.waitFor(mf); } catch (DisconnectedException e) { // Ignore, see below msg = null; } if(!_destination.isConnected()) { Logger.normal(this, "Terminating send "+_uid+" to "+_destination+" from "+_usm.getPortNumber()+" because node disconnected while waiting"); synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } return false; } if(_sendComplete) return false; if (msg == null) { if(timeAllSent > 0 && (System.currentTimeMillis() - timeAllSent) > SEND_TIMEOUT && getNumSent() == _prb.getNumPackets()) { synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } Logger.error(this, "Terminating send "+_uid+" to "+_destination+" from "+_usm.getPortNumber()+" as we haven't heard from receiver in "+SEND_TIMEOUT+"ms."); return false; } else { Logger.minor(this, "Ignoring timeout: timeAllSent="+timeAllSent+" ("+(System.currentTimeMillis() - timeAllSent)+"), getNumSent="+getNumSent()+"/"+_prb.getNumPackets()); continue; } } else if (msg.getSpec().equals(DMT.missingPacketNotification)) { LinkedList missing = (LinkedList) msg.getObject(DMT.MISSING); for (Iterator i = missing.iterator(); i.hasNext();) { Integer packetNo = (Integer) i.next(); if (_prb.isReceived(packetNo.intValue())) { synchronized(_unsent) { _unsent.addFirst(packetNo); } _sentPackets.setBit(packetNo.intValue(), false); synchronized(_senderThread) { _senderThread.notify(); } } } } else if (msg.getSpec().equals(DMT.allReceived)) { synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } return true; } else if (msg.getSpec().equals(DMT.sendAborted)) { // Overloaded: receiver no longer wants the data // Do NOT abort PRB, it's none of its business. // And especially, we don't want a downstream node to // be able to abort our sends to all the others! _prb.removeListener(myListener); synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } return false; } else if(_sendComplete) { // Terminated abnormally return false; } } } catch (AbortedException e) { // Terminate synchronized(_senderThread) { _sendComplete = true; _senderThread.notifyAll(); } return false; } } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/507be95bac7f2ea2c3e7628c8932949b10568ffd/BlockTransmitter.java/buggy/src/freenet/io/xfer/BlockTransmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1366,
1435,
288,
202,
202,
67,
24454,
3830,
273,
4884,
18,
2972,
3830,
5621,
9506,
202,
1988,
6261,
8872,
1768,
18,
6667,
8872,
2223,
3399,
2223,
31,
9506,
202,
698,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1366,
1435,
288,
202,
202,
67,
24454,
3830,
273,
4884,
18,
2972,
3830,
5621,
9506,
202,
1988,
6261,
8872,
1768,
18,
6667,
8872,
2223,
3399,
2223,
31,
9506,
202,
698,
288,
... |
display.asyncExec(uiRunnable); | if(!table.getControl().isDisposed()) table.getControl().getDisplay().asyncExec(uiRunnable); | private void scheduleUIUpdate() { synchronized(this) { if (!updateScheduled) { updateScheduled = true; display.asyncExec(uiRunnable); } } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/174a6cdbe07aba0cc77d88fd5b7455741270174d/ConcurrentTableUpdator.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/deferred/ConcurrentTableUpdator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4788,
5370,
1891,
1435,
288,
3639,
3852,
12,
2211,
13,
288,
202,
3639,
309,
16051,
2725,
10660,
13,
288,
202,
5411,
1089,
10660,
273,
638,
31,
202,
5411,
2562,
18,
3810,
1905,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4788,
5370,
1891,
1435,
288,
3639,
3852,
12,
2211,
13,
288,
202,
3639,
309,
16051,
2725,
10660,
13,
288,
202,
5411,
1089,
10660,
273,
638,
31,
202,
5411,
2562,
18,
3810,
1905,
... |
public Box layoutChildren(Context c, Box box) { //u.p("starting to lay out the children"); /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.getContent().getChildContent(c); if (contentList.size() == 0) return box;//we can do this if there is no content, right? //TODO: unravel the mysteries of the layout hierarchy. Perhaps the Context should know if we are block-laying out or inline laying-out? if (!box.isAnonymous()) {//this check should really be unnecessary when content layout is completed. tobe 2004-12-09 //This where the magic decision of creating AnonymousBlockBox is //if (LayoutUtil.isBlockLayout(box.getElement(), c)) { Object last = contentList.get(contentList.size() - 1); if (last instanceof AnonymousBlockContent || last instanceof BlockContent) {//this should be block layed out return super.layoutChildren(c, box); } } // calculate the initial position and dimensions Box block = (Box) box; Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.padding.right + box.border.right + box.margin.right; validateBounds(bounds); bounds.x = 0; bounds.y = 0; bounds.height = 0; // prepare remaining width and first linebox int remaining_width = bounds.width; LineBox curr_line = newLine(box, bounds, null); c.setFirstLine(true); // account for text-indent CalculatedStyle parentStyle = box.getContent().getStyle();//this should work already remaining_width = TextIndent.doTextIndent(parentStyle, remaining_width, curr_line); // more setup LineBox prev_line = new LineBox(); prev_line.setParent(box); prev_line.y = bounds.y; prev_line.height = 0; InlineBox prev_inline = null; InlineBox prev_align_inline = null; // adjust the first line for float tabs remaining_width = FloatUtil.adjustForTab(c, prev_line, remaining_width); CalculatedStyle currentStyle = parentStyle; CascadedStyle firstLineStyle = null; CascadedStyle firstLetterStyle = null; boolean isFirstLetter = true; // loop until no more nodes while (contentList.size() > 0) { Object o = contentList.get(0); contentList.remove(0); //TODO: can we do this? contentIterator.remove();//chop it off, no need to keep it? if (o instanceof FirstLineStyle) {//can actually only be the first object in list firstLineStyle = ((FirstLineStyle) o).getStyle(); continue; } if (o instanceof FirstLetterStyle) {//can actually only be the first or second object in list firstLetterStyle = ((FirstLetterStyle) o).getStyle(); continue; } Content currentContent = (Content) o; // loop until no more text in this node while (true) { // debugging check if (bounds.width < 0) { u.p("bounds width = " + bounds.width); u.dump_stack(); System.exit(-1); } // the crash warning code if (bounds.width < 1) { u.p("warning. width < 1 " + bounds.width); } // test if there is no more text in the current text node // if there is a prev, and if the prev was part of this current node if (prev_inline != null && prev_inline.getContent() == currentContent) { if (isEndOfBlock(prev_inline, currentContent)) { break; } } currentStyle = currentContent.getStyle(); // look at current inline // break off the longest section that will fit InlineBox new_inline = calculateInline(c, currentContent, remaining_width, bounds.width, prev_inline, prev_align_inline, isFirstLetter, firstLetterStyle, firstLineStyle); // u.p("got back inline: " + new_inline); isFirstLetter = false; firstLetterStyle = null; // if this inline needs to be on a new line if (new_inline.break_before && !new_inline.floated) { remaining_width = bounds.width; saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, block, false); firstLineStyle = null; bounds.height += curr_line.height; prev_line = curr_line; curr_line = newLine(box, bounds, prev_line); remaining_width = FloatUtil.adjustForTab(c, curr_line, remaining_width); } // save the new inline to the list curr_line.addChild(new_inline); // calc new height of the line // don't count the inline towards the line height and // line baseline if it's a floating inline. if (!(currentContent instanceof ReplacedContent)) { if (!(currentContent instanceof FloatedBlockContent)) { adjustLineHeight(curr_line, new_inline); } } // handle float //FloatUtil.handleFloated( c, new_inline, curr_line, bounds.width, elem ); // calc new width of the line curr_line.width += new_inline.width; // reduce the available width remaining_width = remaining_width - new_inline.width; // if the last inline was at the end of a line, then go to next line if (new_inline.break_after) { // then remaining_width = max_width remaining_width = bounds.width; // save the line saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, block, false); firstLineStyle = null; // increase bounds height to account for the new line bounds.height += curr_line.height; prev_line = curr_line; curr_line = newLine(box, bounds, prev_line); remaining_width = FloatUtil.adjustForTab(c, curr_line, remaining_width); } // set the inline to use for left alignment if (!(currentContent instanceof FloatedBlockContent)) { prev_align_inline = new_inline; } prev_inline = new_inline; } } // save the final line saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, block, true); finishBlock(block, curr_line, bounds); return block; } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/c2c5341af3eb3938df77711aeca7bb46a2332118/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3514,
6741,
4212,
12,
1042,
71,
16,
3514,
2147,
15329,
759,
89,
18,
84,
2932,
18526,
3490,
2012,
5787,
5906,
8863,
20308,
11792,
1637,
1350,
1304,
430,
12,
3744,
1304,
18,
291,
9345,
907... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3514,
6741,
4212,
12,
1042,
71,
16,
3514,
2147,
15329,
759,
89,
18,
84,
2932,
18526,
3490,
2012,
5787,
5906,
8863,
20308,
11792,
1637,
1350,
1304,
430,
12,
3744,
1304,
18,
291,
9345,
907... | ||
WordRelation wordRelation) { | WordRelation wordRelation,Item tokenItem) { | public static void expandOrdinal(String rawNumberString, WordRelation wordRelation) { // remove all ','s from the raw number string String numberString = Utilities.deleteChar(rawNumberString, ','); expandNumber(numberString, wordRelation); // get the last in the list of number strings Item lastItem = wordRelation.getTail(); if (lastItem != null) { FeatureSet featureSet = lastItem.getFeatures(); String lastNumber = featureSet.getString("name"); String ordinal = findMatchInArray(lastNumber, digit2num, ord2num); if (ordinal == null) { ordinal = findMatchInArray(lastNumber, digit2teen, ord2teen); } if (ordinal == null) { ordinal = findMatchInArray(lastNumber, digit2enty, ord2enty); } if (lastNumber.equals("hundred")) { ordinal = "hundredth"; } else if (lastNumber.equals("thousand")) { ordinal = "thousandth"; } else if (lastNumber.equals("billion")) { ordinal = "billionth"; } // if there was an ordinal, set the last element of the list // to that ordinal; otherwise, don't do anything if (ordinal != null) { wordRelation.setLastWord(ordinal); } } } | 18648 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18648/460d07833503253a5c476790f8921bd1e3c702a9/NumberExpander.java/buggy/java/de/dfki/lt/mary/modules/en/NumberExpander.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
4542,
22830,
12,
780,
1831,
1854,
780,
16,
6862,
377,
9926,
3963,
2076,
3963,
13,
288,
202,
759,
1206,
777,
3316,
87,
628,
326,
1831,
1300,
533,
202,
780,
1300,
780,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
4542,
22830,
12,
780,
1831,
1854,
780,
16,
6862,
377,
9926,
3963,
2076,
3963,
13,
288,
202,
759,
1206,
777,
3316,
87,
628,
326,
1831,
1300,
533,
202,
780,
1300,
780,
273... |
for (i=0;i<subframeSize;i++) target[i]-=res[i]; | for (i = 0; i < subframeSize; i++) target[i] -= res[i]; | public int encode(final Bits bits, final float[] in) { int i; float[] res, target, mem; float[] syn_resp; float[] orig; /* Copy new data in input buffer */ System.arraycopy(frmBuf, frameSize, frmBuf, 0, bufSize-frameSize); frmBuf[bufSize-frameSize] = in[0] - preemph*pre_mem; for (i=1; i<frameSize; i++) frmBuf[bufSize-frameSize+i] = in[i] - preemph*in[i-1]; pre_mem = in[frameSize-1]; /* Move signals 1 frame towards the past */ System.arraycopy(exc2Buf, frameSize, exc2Buf, 0, bufSize-frameSize); System.arraycopy(excBuf, frameSize, excBuf, 0, bufSize-frameSize); System.arraycopy(swBuf, frameSize, swBuf, 0, bufSize-frameSize); /* Window for analysis */ for (i=0; i<windowSize; i++) buf2[i] = frmBuf[i+frmIdx] * window[i]; /* Compute auto-correlation */ Lpc.autocorr(buf2, autocorr, lpcSize+1, windowSize); autocorr[0] += 10; /* prevents NANs */ autocorr[0] *= lpc_floor; /* Noise floor in auto-correlation domain */ /* Lag windowing: equivalent to filtering in the power-spectrum domain */ for (i=0; i<lpcSize+1; i++) autocorr[i] *= lagWindow[i]; /* Levinson-Durbin */ Lpc.wld(lpc, autocorr, rc, lpcSize); // tmperr System.arraycopy(lpc, 0, lpc, 1, lpcSize); lpc[0]=1; /* LPC to LSPs (x-domain) transform */ int roots=Lsp.lpc2lsp (lpc, lpcSize, lsp, 15, 0.2f); /* Check if we found all the roots */ if (roots==lpcSize) { /* LSP x-domain to angle domain*/ for (i=0;i<lpcSize;i++) lsp[i] = (float)Math.acos(lsp[i]); } else { /* Search again if we can afford it */ if (complexity>1) roots = Lsp.lpc2lsp (lpc, lpcSize, lsp, 11, 0.05f); if (roots==lpcSize) { /* LSP x-domain to angle domain*/ for (i=0;i<lpcSize;i++) lsp[i] = (float)Math.acos(lsp[i]); } else { /*If we can't find all LSP's, do some damage control and use previous filter*/ for (i=0;i<lpcSize;i++) { lsp[i]=old_lsp[i]; } } } float lsp_dist=0; for (i=0;i<lpcSize;i++) lsp_dist += (old_lsp[i] - lsp[i])*(old_lsp[i] - lsp[i]); /* Whole frame analysis (open-loop estimation of pitch and excitation gain) */ float ol_gain; int ol_pitch; float ol_pitch_coef; { if (first != 0) for (i=0; i<lpcSize;i++) interp_lsp[i] = lsp[i]; else for (i=0;i<lpcSize;i++) interp_lsp[i] = .375f*old_lsp[i] + .625f*lsp[i]; Lsp.enforce_margin(interp_lsp, lpcSize, .002f); /* Compute interpolated LPCs (unquantized) for whole frame*/ for (i=0; i<lpcSize; i++) interp_lsp[i] = (float)Math.cos(interp_lsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); /*Open-loop pitch*/ if (submodes[submodeID] == null || vbr_enabled != 0 || vad_enabled != 0 || submodes[submodeID].forced_pitch_gain != 0 || submodes[submodeID].lbr_pitch != -1) { int[] nol_pitch = new int[6]; float[] nol_pitch_coef = new float[6]; Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); Filters.filter_mem2(frmBuf, frmIdx, bw_lpc1, bw_lpc2, swBuf, swIdx, frameSize, lpcSize, mem_sw_whole, 0); Ltp.open_loop_nbest_pitch(swBuf, swIdx, min_pitch, max_pitch, frameSize, nol_pitch, nol_pitch_coef, 6); ol_pitch=nol_pitch[0]; ol_pitch_coef = nol_pitch_coef[0]; /*Try to remove pitch multiples*/ for (i=1;i<6;i++) { if ((nol_pitch_coef[i]>.85*ol_pitch_coef) && (Math.abs(nol_pitch[i]-ol_pitch/2.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/3.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/4.0)<=1 || Math.abs(nol_pitch[i]-ol_pitch/5.0)<=1)) { /*ol_pitch_coef=nol_pitch_coef[i];*/ ol_pitch = nol_pitch[i]; } } /*if (ol_pitch>50) ol_pitch/=2;*/ /*ol_pitch_coef = sqrt(ol_pitch_coef);*/ } else { ol_pitch=0; ol_pitch_coef=0; } /*Compute "real" excitation*/ Filters.fir_mem2(frmBuf, frmIdx, interp_lpc, excBuf, excIdx, frameSize, lpcSize, mem_exc); /* Compute open-loop excitation gain */ ol_gain=0; for (i=0;i<frameSize;i++) ol_gain += excBuf[excIdx+i]*excBuf[excIdx+i]; ol_gain=(float)Math.sqrt(1+ol_gain/frameSize); } /*VBR stuff*/ if (vbr != null && (vbr_enabled != 0 || vad_enabled != 0)) { if (abr_enabled != 0) { float qual_change=0; if (abr_drift2 * abr_drift > 0) { /* Only adapt if long-term and short-term drift are the same sign */ qual_change = -.00001f*abr_drift/(1+abr_count); if (qual_change>.05f) qual_change=.05f; if (qual_change<-.05f) qual_change=-.05f; } vbr_quality += qual_change; if (vbr_quality>10) vbr_quality=10; if (vbr_quality<0) vbr_quality=0; } relative_quality = vbr.analysis(in, frameSize, ol_pitch, ol_pitch_coef); /*if (delta_qual<0)*/ /* delta_qual*=.1*(3+st->vbr_quality);*/ if (vbr_enabled != 0) { int mode; int choice=0; float min_diff=100; mode = 8; while (mode > 0) { int v1; float thresh; v1=(int)Math.floor(vbr_quality); if (v1==10) thresh = Vbr.nb_thresh[mode][v1]; else thresh = (vbr_quality-v1)*Vbr.nb_thresh[mode][v1+1] + (1+v1-vbr_quality)*Vbr.nb_thresh[mode][v1]; if (relative_quality > thresh && relative_quality-thresh<min_diff) { choice = mode; min_diff = relative_quality-thresh; } mode--; } mode=choice; if (mode==0) { if (dtx_count==0 || lsp_dist>.05 || dtx_enabled==0 || dtx_count>20) { mode=1; dtx_count=1; } else { mode=0; dtx_count++; } } else { dtx_count=0; } setMode(mode); if (abr_enabled != 0) { int bitrate; bitrate = getBitRate(); abr_drift+=(bitrate-abr_enabled); abr_drift2 = .95f*abr_drift2 + .05f*(bitrate-abr_enabled); abr_count += 1.0; } } else { /*VAD only case*/ int mode; if (relative_quality<2) { if (dtx_count==0 || lsp_dist>.05 || dtx_enabled == 0 || dtx_count>20) { dtx_count=1; mode=1; } else { mode=0; dtx_count++; } } else { dtx_count = 0; mode=submodeSelect; } /*speex_encoder_ctl(state, SPEEX_SET_MODE, &mode);*/ submodeID=mode; } } else { relative_quality = -1; } /* First, transmit a zero for narrowband */ bits.pack(0, 1); /* Transmit the sub-mode we use for this frame */ bits.pack(submodeID, NB_SUBMODE_BITS); /* If null mode (no transmission), just set a couple things to zero*/ if (submodes[submodeID] == null) { for (i=0;i<frameSize;i++) excBuf[excIdx+i]=exc2Buf[exc2Idx+i]=swBuf[swIdx+i]=VERY_SMALL; for (i=0;i<lpcSize;i++) mem_sw[i]=0; first=1; bounded_pitch = 1; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, excIdx, interp_qlpc, frmBuf, frmIdx, frameSize, lpcSize, mem_sp); in[0] = frmBuf[frmIdx] + preemph*pre_mem2; for (i=1;i<frameSize;i++) in[i]=frmBuf[frmIdx=i] + preemph*in[i-1]; pre_mem2=in[frameSize-1]; return 0; } /* LSP Quantization */ if (first != 0) { for (i=0; i<lpcSize;i++) old_lsp[i] = lsp[i]; } /*Quantize LSPs*///#if 1 /*0 for unquantized*/ submodes[submodeID].lsqQuant.quant(lsp, qlsp, lpcSize, bits);//#else// for (i=0;i<lpcSize;i++)// qlsp[i]=lsp[i];//#endif /*If we use low bit-rate pitch mode, transmit open-loop pitch*/ if (submodes[submodeID].lbr_pitch!=-1) { bits.pack(ol_pitch-min_pitch, 7); } if (submodes[submodeID].forced_pitch_gain != 0) { int quant; quant = (int)Math.floor(.5+15*ol_pitch_coef); if (quant>15) quant=15; if (quant<0) quant=0; bits.pack(quant, 4); ol_pitch_coef=(float) 0.066667*quant; } /*Quantize and transmit open-loop excitation gain*/ { int qe = (int)(Math.floor(0.5+3.5*Math.log(ol_gain))); if (qe<0) qe=0; if (qe>31) qe=31; ol_gain = (float) Math.exp(qe/3.5); bits.pack(qe, 5); } /* Special case for first frame */ if (first != 0) { for (i=0;i<lpcSize;i++) old_qlsp[i] = qlsp[i]; } /* Filter response */ res = new float[subframeSize]; /* Target signal */ target = new float[subframeSize]; syn_resp = new float[subframeSize]; mem = new float[lpcSize]; orig = new float[frameSize]; for (i=0;i<frameSize;i++) orig[i]=frmBuf[frmIdx+i]; /* Loop on sub-frames */ for (int sub=0;sub<nbSubframes;sub++) { float tmp; int offset; int sp, sw, exc, exc2; int pitchval; /* Offset relative to start of frame */ offset = subframeSize*sub; /* Original signal */ sp=frmIdx+offset; /* Excitation */ exc=excIdx+offset; /* Weighted signal */ sw=swIdx+offset; exc2=exc2Idx+offset; /* LSP interpolation (quantized and unquantized) */ tmp = (float) (1.0 + sub)/nbSubframes; for (i=0;i<lpcSize;i++) interp_lsp[i] = (1-tmp)*old_lsp[i] + tmp*lsp[i]; for (i=0;i<lpcSize;i++) interp_qlsp[i] = (1-tmp)*old_qlsp[i] + tmp*qlsp[i]; /* Make sure the filters are stable */ Lsp.enforce_margin(interp_lsp, lpcSize, .002f); Lsp.enforce_margin(interp_qlsp, lpcSize, .002f); /* Compute interpolated LPCs (quantized and unquantized) */ for (i=0;i<lpcSize;i++) interp_lsp[i] = (float) Math.cos(interp_lsp[i]); m_lsp.lsp2lpc(interp_lsp, interp_lpc, lpcSize); for (i=0;i<lpcSize;i++) interp_qlsp[i] = (float) Math.cos(interp_qlsp[i]); m_lsp.lsp2lpc(interp_qlsp, interp_qlpc, lpcSize); /* Compute analysis filter gain at w=pi (for use in SB-CELP) */ tmp=1; pi_gain[sub]=0; for (i=0;i<=lpcSize;i++) { pi_gain[sub] += tmp*interp_qlpc[i]; tmp = -tmp; } /* Compute bandwidth-expanded (unquantized) LPCs for perceptual weighting */ Filters.bw_lpc(gamma1, interp_lpc, bw_lpc1, lpcSize); if (gamma2>=0) Filters.bw_lpc(gamma2, interp_lpc, bw_lpc2, lpcSize); else { bw_lpc2[0]=1; bw_lpc2[1]=-preemph; for (i=2;i<=lpcSize;i++) bw_lpc2[i]=0; } /* Compute impulse response of A(z/g1) / ( A(z)*A(z/g2) )*/ for (i=0;i<subframeSize;i++) excBuf[exc+i]=0; excBuf[exc]=1; Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, syn_resp, subframeSize, lpcSize); /* Reset excitation */ for (i=0;i<subframeSize;i++) excBuf[exc+i]=0; for (i=0;i<subframeSize;i++) exc2Buf[exc2+i]=0; /* Compute zero response of A(z/g1) / ( A(z/g2) * A(z) ) */ for (i=0;i<lpcSize;i++) mem[i]=mem_sp[i]; Filters.iir_mem2(excBuf, exc, interp_qlpc, excBuf, exc, subframeSize, lpcSize, mem); for (i=0;i<lpcSize;i++) mem[i]=mem_sw[i]; Filters.filter_mem2(excBuf, exc, bw_lpc1, bw_lpc2, res, 0, subframeSize, lpcSize, mem, 0); /* Compute weighted signal */ for (i=0;i<lpcSize;i++) mem[i]=mem_sw[i]; Filters.filter_mem2(frmBuf, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem, 0); /* Compute target signal */ for (i=0;i<subframeSize;i++) target[i]=swBuf[sw+i]-res[i]; for (i=0;i<subframeSize;i++) excBuf[exc+i]=exc2Buf[exc2+i]=0; /* If we have a long-term predictor (otherwise, something's wrong) */// if (submodes[submodeID].ltp.quant)// { int pit_min, pit_max; /* Long-term prediction */ if (submodes[submodeID].lbr_pitch != -1) { /* Low bit-rate pitch handling */ int margin; margin = submodes[submodeID].lbr_pitch; if (margin != 0) { if (ol_pitch < min_pitch+margin-1) ol_pitch=min_pitch+margin-1; if (ol_pitch > max_pitch-margin) ol_pitch=max_pitch-margin; pit_min = ol_pitch-margin+1; pit_max = ol_pitch+margin; } else { pit_min=pit_max=ol_pitch; } } else { pit_min = min_pitch; pit_max = max_pitch; } /* Force pitch to use only the current frame if needed */ if (bounded_pitch != 0 && pit_max>offset) pit_max=offset; /* Perform pitch search */ pitchval = submodes[submodeID].ltp.quant(target, swBuf, sw, interp_qlpc, bw_lpc1, bw_lpc2, excBuf, exc, pit_min, pit_max, ol_pitch_coef, lpcSize, subframeSize, bits, exc2Buf, exc2, syn_resp, complexity); pitch[sub]=pitchval;// } else {// speex_error ("No pitch prediction, what's wrong");// } /* Update target for adaptive codebook contribution */ Filters.syn_percep_zero(excBuf, exc, interp_qlpc, bw_lpc1, bw_lpc2, res, subframeSize, lpcSize); for (i=0;i<subframeSize;i++) target[i]-=res[i]; /* Quantization of innovation */ { int innovptr; float ener=0, ener_1; innovptr = sub*subframeSize; for (i=0;i<subframeSize;i++) innov[innovptr+i]=0; Filters.residue_percep_zero(target, 0, interp_qlpc, bw_lpc1, bw_lpc2, buf2, subframeSize, lpcSize); for (i=0;i<subframeSize;i++) ener+=buf2[i]*buf2[i]; ener=(float)Math.sqrt(.1f+ener/subframeSize); /*for (i=0;i<subframeSize;i++) System.out.print(buf2[i]/ener + "\t"); */ ener /= ol_gain; /* Calculate gain correction for the sub-frame (if any) */ if (submodes[submodeID].have_subframe_gain != 0) { int qe; ener=(float)Math.log(ener); if (submodes[submodeID].have_subframe_gain==3) { qe = VQ.index(ener, exc_gain_quant_scal3, 8); bits.pack(qe, 3); ener=exc_gain_quant_scal3[qe]; } else { qe = VQ.index(ener, exc_gain_quant_scal1, 2); bits.pack(qe, 1); ener=exc_gain_quant_scal1[qe]; } ener=(float)Math.exp(ener); } else { ener=1; } ener*=ol_gain; /*System.out.println(ener + " " + ol_gain);*/ ener_1 = 1/ener; /* Normalize innovation */ for (i=0;i<subframeSize;i++) target[i]*=ener_1; /* Quantize innovation */// if (submodes[submodeID].innovation != null)// { /* Codebook search */ submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov, innovptr, syn_resp, bits, complexity); /* De-normalize innovation and update excitation */ for (i=0;i<subframeSize;i++) innov[innovptr+i]*=ener; for (i=0;i<subframeSize;i++) excBuf[exc+i] += innov[innovptr+i];// } else {// speex_error("No fixed codebook");// } /* In some (rare) modes, we do a second search (more bits) to reduce noise even more */ if (submodes[submodeID].double_codebook != 0) { float[] innov2 = new float[subframeSize];// for (i=0;i<subframeSize;i++)// innov2[i]=0; for (i=0;i<subframeSize;i++) target[i]*=2.2; submodes[submodeID].innovation.quant(target, interp_qlpc, bw_lpc1, bw_lpc2, lpcSize, subframeSize, innov2, 0, syn_resp, bits, complexity); for (i=0;i<subframeSize;i++) innov2[i]*=ener*(1/2.2); for (i=0;i<subframeSize;i++) excBuf[exc+i] += innov2[i]; } for (i=0;i<subframeSize;i++) target[i]*=ener; } /*Keep the previous memory*/ for (i=0;i<lpcSize;i++) mem[i]=mem_sp[i]; /* Final signal synthesis from excitation */ Filters.iir_mem2(excBuf, exc, interp_qlpc, frmBuf, sp, subframeSize, lpcSize, mem_sp); /* Compute weighted signal again, from synthesized speech (not sure it's the right thing) */ Filters.filter_mem2(frmBuf, sp, bw_lpc1, bw_lpc2, swBuf, sw, subframeSize, lpcSize, mem_sw, 0); for (i=0;i<subframeSize;i++) exc2Buf[exc2+i]=excBuf[exc+i]; } /* Store the LSPs for interpolation in the next frame */ if (submodeID>=1) { for (i=0;i<lpcSize;i++) old_lsp[i] = lsp[i]; for (i=0;i<lpcSize;i++) old_qlsp[i] = qlsp[i]; } if (submodeID==1) { if (dtx_count != 0) { bits.pack(15, 4); } else { bits.pack(0, 4); } } /* The next frame will not be the first (Duh!) */ first = 0; { float ener=0, err=0; float snr; for (i=0;i<frameSize;i++) { ener+=frmBuf[frmIdx+i]*frmBuf[frmIdx+i]; err += (frmBuf[frmIdx+i]-orig[i])*(frmBuf[frmIdx+i]-orig[i]); } snr = (float) (10*Math.log((ener+1)/(err+1))); /*System.out.println("Frame result: SNR="+snr+" E="+ener+" Err="+err+"\r\n");*/ } /* Replace input by synthesized speech */ in[0] = frmBuf[frmIdx] + preemph*pre_mem2; for (i=1;i<frameSize;i++) in[i]=frmBuf[frmIdx+i] + preemph*in[i-1]; pre_mem2=in[frameSize-1]; if (submodes[submodeID].innovation instanceof NoiseSearch || submodeID==0) bounded_pitch = 1; else bounded_pitch = 0; return 1; } | 6221 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6221/81112208859292bc5ef5f9b0033ab2ea6dab38c0/NbEncoder.java/buggy/main/trunk/codec/src/main/java/org/xiph/speex/NbEncoder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
2017,
12,
6385,
18690,
4125,
16,
727,
1431,
8526,
316,
13,
225,
288,
565,
509,
277,
31,
565,
1431,
8526,
400,
16,
1018,
16,
1663,
31,
565,
1431,
8526,
6194,
67,
12243,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
2017,
12,
6385,
18690,
4125,
16,
727,
1431,
8526,
316,
13,
225,
288,
565,
509,
277,
31,
565,
1431,
8526,
400,
16,
1018,
16,
1663,
31,
565,
1431,
8526,
6194,
67,
12243,
31,
... |
List constantNames = new ArrayList(); | ArrayList constantNames = new ArrayList(); | public RubyArray constants() { List constantNames = new ArrayList(); Iterator iter = getRuby().getClasses().nameIterator(); while (iter.hasNext()) { String name = (String) iter.next(); if (IdUtil.isConstant(name)) { constantNames.add(RubyString.newString(getRuby(), name)); } } return RubyArray.newArray(getRuby(), constantNames); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/a42a5780d9d19f5b3f27bdc079684319c5596e54/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
6810,
1435,
288,
3639,
2407,
5381,
1557,
273,
394,
2407,
5621,
3639,
4498,
1400,
273,
4170,
10340,
7675,
588,
4818,
7675,
529,
3198,
5621,
3639,
1323,
261,
2165,
18,
5332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
1076,
6810,
1435,
288,
3639,
2407,
5381,
1557,
273,
394,
2407,
5621,
3639,
4498,
1400,
273,
4170,
10340,
7675,
588,
4818,
7675,
529,
3198,
5621,
3639,
1323,
261,
2165,
18,
5332... |
if (familyValue == null) { | if ( familyValue == null ) { | private void updatePreview() { if (sample != null) { String fontFamily = name.getValueForName(name.getComboBoxControl( null).getText()); if (fontFamily == null) { fontFamily = "Times New Roman"; //$NON-NLS-1$ } String familyValue = (String) DesignerConstants.familyMap .get(fontFamily); if (familyValue == null) { familyValue = fontFamily; } // set default font size. String fontSize = DesignChoiceConstants.FONT_SIZE_MEDIUM; int sizeValue = Integer.valueOf( (String) DesignerConstants.fontMap.get(fontSize)) .intValue(); if (size.InComboNamesList(size.getComboBoxControl( getFieldEditorParent()).getText())) { fontSize = size.getBoxValueForName(size.getComboBoxControl( getFieldEditorParent()).getText()); if (DesignChoiceConstants.FONT_SIZE_LARGER.equals(fontSize)) { fontSize = DesignChoiceConstants.FONT_SIZE_LARGE; } else if (DesignChoiceConstants.FONT_SIZE_SMALLER .equals(fontSize)) { fontSize = DesignChoiceConstants.FONT_SIZE_SMALL; } sizeValue = Integer.valueOf( (String) DesignerConstants.fontMap.get(fontSize)) .intValue(); } else { String text = size.getComboBoxControl(getFieldEditorParent()) .getText(); String pre = size.getMeasureValueForName(size .getMeasureControl(getFieldEditorParent()).getText()); if (DEUtil.isValidNumber(text)) { sizeValue = (int) CSSUtil .convertToPoint(new DimensionValue(Double .parseDouble(text), pre)); } } boolean italic = false; String fontStyle = style.getValueForName(style.getComboBoxControl( getFieldEditorParent()).getText()); if (DesignChoiceConstants.FONT_STYLE_ITALIC.equals(fontStyle)) { italic = true; } String fontWeight = weight.getValueForName(weight .getComboBoxControl(null).getText()); boolean bold = false; int fw = 400; if (DesignChoiceConstants.FONT_WEIGHT_NORMAL.equals(fontWeight)) { // no change. } else if (DesignChoiceConstants.FONT_WEIGHT_BOLD .equals(fontWeight)) { bold = true; fw = 700; } else if (DesignChoiceConstants.FONT_WEIGHT_BOLDER .equals(fontWeight)) { bold = true; fw = 1000; } else if (DesignChoiceConstants.FONT_WEIGHT_LIGHTER .equals(fontWeight)) { fw = 100; } else { try { fw = Integer.parseInt(fontWeight); } catch (NumberFormatException e) { fw = 400; } if (fw > 700) { bold = true; } } sample.setFontFamily(familyValue); sample.setFontSize(sizeValue); sample.setBold(bold); sample.setItalic(italic); sample.setFontWeight(fw); // sample.setForeground( new Color( Display.getCurrent( ), // color.getColorSelector( ).getColorValue( ) ) ); sample.setForeground(ColorManager.getColor(color.getColorSelector() .getRGB())); sample.setUnderline(docoration.getUnderLinePropControl(null) .getSelection()); sample.setLinethrough(docoration.getLineThroughPropControl(null) .getSelection()); sample.setOverline(docoration.getOverLinePropControl(null) .getSelection()); sample.updateView(); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/9a44d88745cf69dac1395f41e7c3c7bf8bdeb1e6/FontPreferencePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FontPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1089,
11124,
1435,
288,
202,
202,
430,
261,
6358,
480,
446,
13,
288,
1082,
202,
780,
3512,
9203,
273,
508,
18,
24805,
1290,
461,
12,
529,
18,
588,
22199,
3367,
12,
6862,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
11124,
1435,
288,
202,
202,
430,
261,
6358,
480,
446,
13,
288,
1082,
202,
780,
3512,
9203,
273,
508,
18,
24805,
1290,
461,
12,
529,
18,
588,
22199,
3367,
12,
6862,... |
public org.quickfix.field.BenchmarkSecurityIDSource getBenchmarkSecurityIDSource() throws FieldNotFound { org.quickfix.field.BenchmarkSecurityIDSource value = new org.quickfix.field.BenchmarkSecurityIDSource(); | public quickfix.field.BenchmarkSecurityIDSource getBenchmarkSecurityIDSource() throws FieldNotFound { quickfix.field.BenchmarkSecurityIDSource value = new quickfix.field.BenchmarkSecurityIDSource(); | public org.quickfix.field.BenchmarkSecurityIDSource getBenchmarkSecurityIDSource() throws FieldNotFound { org.quickfix.field.BenchmarkSecurityIDSource value = new org.quickfix.field.BenchmarkSecurityIDSource(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusReport.java/clean/src/java/src/quickfix/fix44/QuoteStatusReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
4368,
734,
1830,
2882,
9737,
4368,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
4368,
734,
1830... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
4368,
734,
1830,
2882,
9737,
4368,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
30672,
4368,
734,
1830... |
fGrammar = null; fGrammarNameSpaceIndex = -1; if (fGrammarResolver != null) { fGrammarResolver.clearGrammarResolver(); } fGrammarIsDTDGrammar = false; fGrammarIsSchemaGrammar = false; | fGrammar = null; fGrammarNameSpaceIndex = -1; if (fGrammarResolver != null) { fGrammarResolver.clearGrammarResolver(); } fGrammarIsDTDGrammar = false; fGrammarIsSchemaGrammar = false; | private void resetCommon(StringPool stringPool) throws Exception { fStringPool = stringPool; fValidating = fValidationEnabled; fValidationEnabledByDynamic = false; fDynamicDisabledByValidation = false; poolReset(); fCalledStartDocument = false; fStandaloneReader = -1; fElementChildrenLength = 0; fElementDepth = -1; fSeenRootElement = false; fSeenDoctypeDecl = false; fNamespacesScope = null; fNamespacesPrefix = -1; fRootElement.clear(); fAttrListHandle = -1; fCheckedForSchema = false; fCurrentScope = TOP_LEVEL_SCOPE; fCurrentSchemaURI = -1; fEmptyURI = - 1; fXsiPrefix = - 1; fXsiTypeValidator = null; fGrammar = null; fGrammarNameSpaceIndex = -1; //fGrammarResolver = null; if (fGrammarResolver != null) { fGrammarResolver.clearGrammarResolver(); } fGrammarIsDTDGrammar = false; fGrammarIsSchemaGrammar = false; init(); } // resetCommon(StringPool) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/f2b9ad84920b2015a53c9a67b4dfb5460fa0465e/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2715,
6517,
12,
780,
2864,
533,
2864,
13,
1216,
1185,
288,
3639,
284,
780,
2864,
273,
533,
2864,
31,
3639,
284,
31496,
273,
284,
4354,
1526,
31,
3639,
284,
4354,
1526,
858,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2715,
6517,
12,
780,
2864,
533,
2864,
13,
1216,
1185,
288,
3639,
284,
780,
2864,
273,
533,
2864,
31,
3639,
284,
31496,
273,
284,
4354,
1526,
31,
3639,
284,
4354,
1526,
858,
9... |
VFSManager.error(view,"vfs.not-supported.load",new String[] { name }); | VFSManager.error(view,path,"vfs.not-supported.load",new String[] { name }); | public boolean load(View view, Buffer buffer, String path) { if((getCapabilities() & READ_CAP) == 0) { VFSManager.error(view,"vfs.not-supported.load",new String[] { name }); return false; } Object session = createVFSSession(path,view); if(session == null) return false; BufferIORequest request = new BufferIORequest( BufferIORequest.LOAD,view,buffer,session,this,path); if(buffer.isTemporary()) // this makes HyperSearch much faster request.run(); else VFSManager.runInWorkThread(request); return true; } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/405da7c11efa90794c214a90f5780f9e43d28d6a/VFS.java/clean/org/gjt/sp/jedit/io/VFS.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1262,
12,
1767,
1476,
16,
3525,
1613,
16,
514,
589,
13,
202,
95,
202,
202,
430,
12443,
588,
14012,
1435,
473,
10746,
67,
17296,
13,
422,
374,
13,
202,
202,
95,
1082,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1262,
12,
1767,
1476,
16,
3525,
1613,
16,
514,
589,
13,
202,
95,
202,
202,
430,
12443,
588,
14012,
1435,
473,
10746,
67,
17296,
13,
422,
374,
13,
202,
202,
95,
1082,
2... |
public boolean isRGB(String id) | boolean isRGB(String id) | public boolean isRGB(String id) throws FormatException, IOException; | 49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/5601d0fdf7c2300f9d63c82179cfb05d9ddcf080/IFormatReader.java/clean/loci/formats/IFormatReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
353,
11343,
12,
780,
612,
13,
565,
1216,
4077,
503,
16,
1860,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
353,
11343,
12,
780,
612,
13,
565,
1216,
4077,
503,
16,
1860,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
GroupData g = (GroupData) it.next(); e.linkExperimenterGroup((ExperimenterGroup) mapper.map(g)); | GroupData gd = (GroupData) it.next(); ExperimenterGroup g = (ExperimenterGroup) mapper.map( gd ); if ( ! linked( g.findGroupExperimenterMap( e ))) e.linkExperimenterGroup( g ); | public IObject fillIObject( IObject obj, ReverseModelMapper mapper) { if ( obj instanceof Experimenter) { Experimenter e = (Experimenter) obj; if (super.fill(e)) { e.setFirstName(this.getFirstName()); e.setLastName(this.getLastName()); e.setEmail(this.getEmail()); e.setInstitution(this.getInstitution()); if (this.getGroups() != null) { for (Iterator it = this.getGroups().iterator(); it.hasNext();) { GroupData g = (GroupData) it.next(); e.linkExperimenterGroup((ExperimenterGroup) mapper.map(g)); } } } return e; } else { throw new IllegalArgumentException( "ExperimenterData can only fill Experimenter."); } } | 55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/b7d44d4a82558acd2336a661072dda1f38cfc0b3/ExperimenterData.java/clean/components/shoola-adapter/src/pojos/ExperimenterData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
921,
3636,
45,
921,
12,
467,
921,
1081,
16,
18469,
1488,
4597,
5815,
13,
565,
288,
3639,
309,
261,
1081,
1276,
1312,
457,
381,
2328,
13,
3639,
288,
5411,
1312,
457,
381,
2328... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
921,
3636,
45,
921,
12,
467,
921,
1081,
16,
18469,
1488,
4597,
5815,
13,
565,
288,
3639,
309,
261,
1081,
1276,
1312,
457,
381,
2328,
13,
3639,
288,
5411,
1312,
457,
381,
2328... |
MessageFormat mf = new MessageFormat(message, locale); | MessageFormat mf = buildMessageFormat(message, locale); | private static String getMessage(String bundleName, Locale locale, String key, OgnlValueStack valueStack, Object[] args) { try { ResourceBundle bundle = findResourceBundle(bundleName, locale); reloadBundles(bundle); String message = TextParseUtil.translateVariables(bundle.getString(key), valueStack); MessageFormat mf = new MessageFormat(message, locale); return mf.format(args); } catch (MissingResourceException ex) { return null; } } | 16468 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/16468/a72f31078369301abd184757828fc006489b8e54/LocalizedTextUtil.java/clean/src/java/com/opensymphony/xwork/util/LocalizedTextUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
2381,
12,
780,
20052,
16,
6458,
2573,
16,
514,
498,
16,
531,
1600,
80,
620,
2624,
460,
2624,
16,
1033,
8526,
833,
13,
288,
3639,
775,
288,
5411,
19198,
3440,
273,
1104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
2381,
12,
780,
20052,
16,
6458,
2573,
16,
514,
498,
16,
531,
1600,
80,
620,
2624,
460,
2624,
16,
1033,
8526,
833,
13,
288,
3639,
775,
288,
5411,
19198,
3440,
273,
1104,
... |
.getString("Workbench.propertiesToolTip")); | .getString("Workbench.printToolTip")); | public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } RetargetAction action = new RetargetAction(getId(), WorkbenchMessages.getString("Workbench.properties")); //$NON-NLS-1$ //$NON-NLS-2$ action.setToolTipText(WorkbenchMessages .getString("Workbench.propertiesToolTip")); //$NON-NLS-1$ window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.file.properties"); //$NON-NLS-1$ return action; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a068a7b2f086dec18f37d899ac6f919caaf29048/ActionFactory.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ActionFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
5411,
309,
261,
5668,
422,
446,
13,
288,
7734,
604,
394,
2754,
5621,
5411,
289,
5411,
17100,
826,
1803,
1301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
5411,
309,
261,
5668,
422,
446,
13,
288,
7734,
604,
394,
2754,
5621,
5411,
289,
5411,
17100,
826,
1803,
1301,
... |
log.println("Removing " + key.toString(true, 0) + "\t" + value); | log.println("Removing " + key.toString(true, 0, Integer.MAX_VALUE) + "\t" + value); | private GenerateSidewaysView(String filename, boolean validating) throws SAXException, IOException { this.filename = filename; xmlReader = createXMLReader(validating); // make sure the parents are loaded into cache before we are String parentName = getParentFilename(filename); if (parentName != null) { parent = getCLDR(parentName, validating); } //System.out.println("Creating " + filename); xmlReader.setContentHandler(DEFAULT_HANDLER); xmlReader.setProperty("http://xml.org/sax/properties/lexical-handler",DEFAULT_HANDLER); readFrom(options[SOURCEDIR].value, filename); // walk through the map removing anything that is inherited from a parent. // changed so that we stop when the parent has an element if (parent != null) { Parent parentOut = new Parent(); Map toRemove = new TreeMap(); for (Iterator it = data.iterator(); it.hasNext();) { Object key = it.next(); if (((ElementChain)key).containsElement("identity")) continue; EndNode value = (EndNode) data.get(key); Object inheritedValue = getInheritedValue(key, parentOut); if (value.equals(inheritedValue)) { // debugging: data.get(key); //getInheritedValue(key); //value.equals(inheritedValue); toRemove.put(key, parentOut.parent); } } for (Iterator it = toRemove.keySet().iterator(); it.hasNext();) { ElementChain key = (ElementChain)it.next(); EndNode value = (EndNode) data.get(key); GenerateSidewaysView parent = (GenerateSidewaysView) toRemove.get(key); EndNode parentValue = (EndNode) parent.data.get(key); log.println("Removing " + key.toString(true, 0) + "\t" + value); ElementChain parentKey = (ElementChain) parent.data.getKeyFor(key); log.println("\tIn " + parent.filename + ":\t" + parentKey.toString(true, 0) + "\t"+ parentValue); data.remove(key); } } } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/0a3710fa7a2f36b8fabfad37f7c25e6054e186d8/GenerateSidewaysView.java/clean/icu4j/src/com/ibm/icu/dev/tool/cldr/GenerateSidewaysView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
6654,
8895,
3052,
1767,
12,
780,
1544,
16,
1250,
18075,
13,
1216,
14366,
16,
1860,
288,
3639,
333,
18,
3459,
273,
1544,
31,
3639,
2025,
2514,
273,
752,
4201,
2514,
12,
877,
1776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6654,
8895,
3052,
1767,
12,
780,
1544,
16,
1250,
18075,
13,
1216,
14366,
16,
1860,
288,
3639,
333,
18,
3459,
273,
1544,
31,
3639,
2025,
2514,
273,
752,
4201,
2514,
12,
877,
1776,
... |
if (r.getForeignKey().getTable().equals(this.centralTable)) { containsM1 = true; break; } | if (r.getForeignKey().getTable().equals(this.centralTable)) containsM1 = true; | public void flagSubclassRelation(Relation relation) throws AssociationException { // Sanity check. if (!(relation.getPrimaryKey().getTable().equals(this.centralTable) || relation.getForeignKey().getTable().equals(this.centralTable))) throw new AssociationException(BuilderBundle.getString("subclassNotOnCentralTable")); if (relation.getPrimaryKey().getTable().equals(relation.getForeignKey().getTable())) throw new AssociationException(BuilderBundle.getString("subclassNotBetweenTwoTables")); // Check validity. boolean containsM1 = false; for (Iterator i = this.subclassedRelations.iterator(); i.hasNext(); ) { Relation r = (Relation)i.next(); if (r.getForeignKey().getTable().equals(this.centralTable)) { containsM1 = true; break; // no need to look any further. } } if (containsM1 && (relation.getPrimaryKey().getTable().equals(this.centralTable) || this.subclassedRelations.size()!=0)) throw new AssociationException(BuilderBundle.getString("mixedCardinalitySubclasses")); // Do it. this.subclassedRelations.add(relation); } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/d62084730dd4815e88fd51af28f27b0ea2a251b0/DataSet.java/clean/src/java/org/biomart/builder/model/DataSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2982,
1676,
1106,
3963,
12,
3963,
2533,
13,
1216,
18400,
503,
288,
3639,
368,
23123,
866,
18,
3639,
309,
16051,
12,
5488,
18,
588,
11575,
7675,
588,
1388,
7675,
14963,
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,
2982,
1676,
1106,
3963,
12,
3963,
2533,
13,
1216,
18400,
503,
288,
3639,
368,
23123,
866,
18,
3639,
309,
16051,
12,
5488,
18,
588,
11575,
7675,
588,
1388,
7675,
14963,
12,
2211... |
int lastQuestion = uri.lastIndexOf("?"); String actualQuery = ""; if(lastQuestion != -1) { uri = actual.substring(0,lastQuestion); actualQuery = actual.substring(lastQuestion+1); } if(query != null) assertEquals(assertID, query, actualQuery); | int lastQuestion = uri.lastIndexOf("?"); String actualQuery = ""; if (lastQuestion != -1) { uri = actual.substring(0, lastQuestion); actualQuery = actual.substring(lastQuestion + 1); } if (query != null) assertEquals(assertID, query, actualQuery); | public void assertURIEquals(String assertID, String scheme, String path, String host, String file, String name, String query, String fragment, Boolean isAbsolute, String actual) { // // URI must be non-null assertNotNull(assertID, actual); String uri = actual; int lastPound = actual.lastIndexOf("#"); String actualFragment = ""; if(lastPound != -1) { // // substring before pound // uri = actual.substring(0,lastPound); actualFragment = actual.substring(lastPound+1); } if(fragment != null) assertEquals(assertID,fragment, actualFragment); int lastQuestion = uri.lastIndexOf("?"); String actualQuery = ""; if(lastQuestion != -1) { // // substring before pound // uri = actual.substring(0,lastQuestion); actualQuery = actual.substring(lastQuestion+1); } if(query != null) assertEquals(assertID, query, actualQuery); int firstColon = uri.indexOf(":"); int firstSlash = uri.indexOf("/"); String actualPath = uri; String actualScheme = ""; if(firstColon != -1 && firstColon < firstSlash) { actualScheme = uri.substring(0,firstColon); actualPath = uri.substring(firstColon + 1); } if(scheme != null) { assertEquals(assertID, scheme, actualScheme); } if(path != null) { assertEquals(assertID, path, actualPath); } if(host != null) { String actualHost = ""; if(actualPath.startsWith("//")) { int termSlash = actualPath.indexOf("/",2); actualHost = actualPath.substring(0,termSlash); } assertEquals(assertID, host, actualHost); } String actualFile = actualPath; if(file != null || name != null) { int finalSlash = actualPath.lastIndexOf("/"); if(finalSlash != -1) { actualFile = actualPath.substring(finalSlash+1); } if (file != null) { assertEquals(assertID, file, actualFile); } } if(name != null) { String actualName = actualFile; int finalPeriod = actualFile.lastIndexOf("."); if(finalPeriod != -1) { actualName = actualFile.substring(0, finalPeriod); } assertEquals(assertID, name, actualName); } if(isAbsolute != null) { // // Jar URL's will have any actual path like file:/c:/somedrive... assertEquals(assertID, isAbsolute.booleanValue(), actualPath.startsWith("/") || actualPath.startsWith("file:/")); } } | 55441 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55441/1c337c060f06f2e58a7fb72c742255c663809b9c/DOMTestCase.java/clean/java/org/w3c/domts/DOMTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1815,
3098,
8867,
12,
780,
1815,
734,
16,
514,
4355,
16,
514,
589,
16,
514,
1479,
16,
514,
585,
16,
514,
508,
16,
514,
843,
16,
514,
5481,
16,
3411,
20082,
16,
514,
3214,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1815,
3098,
8867,
12,
780,
1815,
734,
16,
514,
4355,
16,
514,
589,
16,
514,
1479,
16,
514,
585,
16,
514,
508,
16,
514,
843,
16,
514,
5481,
16,
3411,
20082,
16,
514,
3214,
... |
lightVo = cache.getServiceLight(servicePK.getId()); | lightVo = cache.getServiceLight(servicePK); | private AppdefResourceValue getServiceValueImpl(ServicePK servicePK, boolean getLightVO) throws NamingException { ServiceValue vo; ServiceLightValue lightVo; synchronized (cache.getServiceLock()) { if (getLightVO) { lightVo = cache.getServiceLight(servicePK.getId()); if (lightVo != null) { log.debug("Returning cached service light: " + lightVo.getId()); return lightVo; } // lightVo = ejb.getServiceLightValue(); lightVo = (ServiceLightValue) getServiceValueDirectSQL(servicePK, true); // add to cache cache.put(lightVo.getId(), lightVo); return lightVo; } else { vo = cache.getService(servicePK.getId()); if (vo != null) { log.debug("Returning cached service: " + vo.getId()); return vo; } // vo = ejb.getServiceValue(); vo = (ServiceValue) getServiceValueDirectSQL(servicePK, false); // add to cache cache.put(vo.getId(), vo); return vo; } } } | 52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/5b5340cb0d18f5736d423826ddf9afcd22ec015f/ServiceVOHelperEJBImpl.java/clean/src/org/hyperic/hq/appdef/server/session/ServiceVOHelperEJBImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4677,
536,
1420,
620,
6373,
620,
2828,
12,
1179,
8784,
1156,
8784,
16,
4766,
10792,
1250,
9014,
750,
16169,
13,
5411,
1216,
26890,
288,
3639,
1956,
620,
19993,
31,
3639,
1956,
12128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4677,
536,
1420,
620,
6373,
620,
2828,
12,
1179,
8784,
1156,
8784,
16,
4766,
10792,
1250,
9014,
750,
16169,
13,
5411,
1216,
26890,
288,
3639,
1956,
620,
19993,
31,
3639,
1956,
12128,
... |
if (TIMEDEBUG || DEBUG) { long classSetupTime = System.currentTimeMillis() - entireClassAnalysisStart; if (classSetupTime > TIMEQUANTUM) System.out.println("TIME: setup " + className + " " + classSetupTime); } | private void examineClass(AnalysisPass analysisPass, String className) throws InterruptedException { if (DEBUG) System.out.println("Examining class " + className); this.currentClass = className; Detector[] detectors = analysisPass.getDetectorList(); try { JavaClass javaClass = Repository.lookupClass(className); // Notify ClassObservers for (Iterator<ClassObserver> i = classObserverList.iterator(); i.hasNext();) { i.next().observeClass(javaClass); } // Create a ClassContext for the class ClassContext classContext = analysisContext.getClassContext(javaClass); // Run the Detectors for (int i = 0; i < detectors.length; ++i) { if (Thread.interrupted()) throw new InterruptedException(); Detector detector = detectors[i]; if (detector instanceof StatelessDetector) { try { detector = (Detector)((StatelessDetector)detector).clone(); } catch (CloneNotSupportedException cnfe) { detector = detectors[i]; // this shouldn't happen } } try { long start = 0, end; if (DEBUG) { System.out.println(" running " + detector.getClass().getName()); start = System.currentTimeMillis(); } detector.visitClassContext(classContext); if (DEBUG) { end = System.currentTimeMillis(); long delta = end - start; String detectorName = detector.getClass().getName(); Long total = detectorTimings.get(detectorName); if (total == null) total = new Long(delta); else total = new Long(total.longValue() + delta); detectorTimings.put(detectorName, total); } } catch (AnalysisException e) { reportRecoverableDetectorException(className, detector, e); } catch (ArrayIndexOutOfBoundsException e) { reportRecoverableDetectorException(className, detector, e); } catch (ClassCastException e) { reportRecoverableDetectorException(className, detector, e); } } } catch (ClassNotFoundException e) { // This should never happen unless there are bugs in BCEL. bugReporter.reportMissingClass(e); reportRecoverableException(className, e); } catch (ClassFormatException e) { reportRecoverableException(className, e); } catch (RuntimeException re) { RuntimeException annotatedEx; try { String sep = System.getProperty("line.separator"); Constructor<? extends RuntimeException> c = re.getClass().getConstructor(new Class[] { String.class }); String msg = re.getMessage(); msg = sep + "While finding bugs in class: " + className + ((msg == null) ? "" : (sep + msg)); annotatedEx = c.newInstance(new Object[] {msg}); annotatedEx.setStackTrace(re.getStackTrace()); } catch (Exception e) { throw re; } throw annotatedEx; } progressCallback.finishClass(); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/9bb94262e1f51c2ddcf5c741adecf904ba395f70/FindBugs.java/clean/findbugs/src/java/edu/umd/cs/findbugs/FindBugs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
430,
261,
4684,
9394,
747,
6369,
13,
288,
1525,
667,
7365,
950,
273,
2332,
18,
2972,
28512,
1435,
300,
7278,
797,
9418,
1685,
31,
309,
261,
1106,
7365,
950,
405,
8721,
3500,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
430,
261,
4684,
9394,
747,
6369,
13,
288,
1525,
667,
7365,
950,
273,
2332,
18,
2972,
28512,
1435,
300,
7278,
797,
9418,
1685,
31,
309,
261,
1106,
7365,
950,
405,
8721,
3500,
... | |
double _cs = af; | System.out.println("."); int startcandle = candles.size()-2; for ( int i = startcandle; i>=skipdays;i--){ | public double SAR(double af, double max, Vector candles, int skipdays) { double value = 0.0; double hi; double low; hi = low = 0; // find the first boolean uptrend = true; // check first trend Candle cref0 = (Candle) candles.elementAt(candles.size() - 1 - skipdays); Candle cref1 = (Candle) candles.elementAt(candles.size() - 1 - skipdays - 1); if (cref1.close > cref0.close) { uptrend = true; } else { uptrend = false; } // find first extreme point. boolean extremefound = false; int index = 0; while (!extremefound) { cref0 = (Candle) candles.elementAt(candles.size() - 1 - skipdays - index); cref1 = (Candle) candles.elementAt(candles.size() - 1 - skipdays - index - 1); if (uptrend) { if (cref1.close > cref0.close) { } else { extremefound = true; break; } } else { if (cref1.close < cref0.close) { } else { extremefound = true; break; } } index++; } if (cref1.close > cref0.close) { uptrend = true; } else { uptrend = false; } double currentstop = 0.0; double previousstop = 0.0; double extreme = 0.0; double currentacc = af; // set initial values if (uptrend) { extreme = cref0.close; } else { extreme = cref1.close; } // System.out.println("Starting at candle:" + startcandle); double _cs = af; for (int i = 0; i >= skipdays; i--) { Candle c = (Candle) candles.elementAt(i); if (uptrend) { value = value + (_cs * (c.hi - value)); if (c.low < value) { low = c.low; uptrend = false; _cs = af; } else { if (c.hi > hi) { hi = c.hi; if (_cs < max) { _cs += af; } } } } else { value = value + (_cs * (c.low - value)); if (c.hi > value) { hi = c.hi; uptrend = true; _cs = af; } else { if (c.low < low) { low = c.low; if (_cs < max) { _cs += af; } } } } } // System.out.println( // "Break - trend is at the start is in an up:" + uptrend); return value; } | 9106 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9106/daa0f4c551496489f4785682a29d9b9394f50be3/FinancialLibrary.java/buggy/CCAPI/src/CCAPI/FinancialLibrary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1645,
348,
985,
12,
9056,
10073,
16,
1645,
943,
16,
5589,
15350,
1040,
16,
509,
2488,
9810,
13,
288,
3639,
1645,
460,
273,
374,
18,
20,
31,
3639,
1645,
10118,
31,
3639,
1645,
4587... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1645,
348,
985,
12,
9056,
10073,
16,
1645,
943,
16,
5589,
15350,
1040,
16,
509,
2488,
9810,
13,
288,
3639,
1645,
460,
273,
374,
18,
20,
31,
3639,
1645,
10118,
31,
3639,
1645,
4587... |
AspectJUIPlugin .getResourceString("AutoPluginRemoveDialog.noEditor.title"), AspectJUIPlugin .getResourceString("AutoPluginRemoveDialog.noEditor.message")); | UIMessages.AutoPluginRemoveDialog_noEditor_title, UIMessages.AutoPluginRemoveDialog_noEditor_message); | private void removeAJDEPluginDependency(IProject project) { IWorkbenchWindow window = AspectJUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow(); // Attempt to get hold of the open manifest editor // for the current project. //ManifestEditor manEd = AJDTUtils.getPDEManifestEditor(project); ManifestEditor manEd = AJDTUtils.getAndPrepareToChangePDEModel(project); if (manEd != null) { IPluginModel model = (IPluginModel) manEd.getAggregateModel(); try { AJDTUtils.removeImportFromPDEModel(model, "org.aspectj.ajde"); // $NON-NLS-1$ manEd.doSave(new NullProgressMonitor()); } catch (CoreException e) { AspectJUIPlugin .getDefault() .getErrorHandler() .handleError( AspectJUIPlugin .getResourceString("AutoPluginRemoveErrorDialog.title"), AspectJUIPlugin .getResourceString("AutoPluginRemoveErrorDialog.message"), e); } }// end if we got a reference to the manifest editor else { MessageDialog .openError( AspectJUIPlugin.getDefault().getWorkbench() .getActiveWorkbenchWindow().getShell(), AspectJUIPlugin .getResourceString("AutoPluginRemoveDialog.noEditor.title"), AspectJUIPlugin .getResourceString("AutoPluginRemoveDialog.noEditor.message")); } } | 13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/db7704a16405007af064b9eaf64639d601bcfc7c/PluginDependencyMigrationPage.java/clean/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/ui/wizards/migration/PluginDependencyMigrationPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1206,
37,
46,
1639,
3773,
7787,
12,
45,
4109,
1984,
13,
288,
202,
202,
45,
2421,
22144,
3829,
2742,
273,
2970,
1181,
46,
5370,
3773,
18,
588,
1868,
7675,
588,
2421,
2214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
37,
46,
1639,
3773,
7787,
12,
45,
4109,
1984,
13,
288,
202,
202,
45,
2421,
22144,
3829,
2742,
273,
2970,
1181,
46,
5370,
3773,
18,
588,
1868,
7675,
588,
2421,
2214... |
messageImage = new Label(messageArea, SWT.LEFT); messageImage.setBackground(bg); messageImage.setVisible(false); | messageImageLabel = new Label(messageArea, SWT.LEFT); messageImageLabel.setBackground(bg); messageImageLabel.setVisible(false); | private Composite createTitleArea(Composite parent) { // Create the title area which will contain // a title, message, and image. titleArea = new Composite(parent, SWT.NONE); titleArea.setLayout(new TitleAreaLayout()); titleArea.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); // add a dispose listener titleArea.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (titleAreaColor != null) titleAreaColor.dispose(); if (errorMsgAreaBackground != null) errorMsgAreaBackground.dispose(); if (errorMsgAreaBorderColor != null) errorMsgAreaBorderColor.dispose(); } }); // Determine the background color of the title bar Display display = parent.getDisplay(); Color bg; if (titleAreaRGB != null) { titleAreaColor = new Color(display, titleAreaRGB); bg = titleAreaColor; } else { bg = JFaceColors.getBannerBackground(display); } titleArea.setBackground(bg); // Title label @ top, left titleLabel = new Label(titleArea, SWT.LEFT); titleLabel.setBackground(bg); titleLabel.setFont(JFaceResources.getBannerFont()); titleLabel.setText(" ");//$NON-NLS-1$ // Composite to hold message label & icon // Need it to draw background color box when error msg messageArea = new Composite(titleArea, SWT.NONE); messageArea.setBackground(bg); // Draw a border for the top and right side of the msg area messageArea.addPaintListener(new PaintListener() { public void paintControl(PaintEvent event) { if (messageImage.getVisible()) { Rectangle area = messageArea.getClientArea(); GC gc = event.gc; if (errorMsgAreaBorderColor == null) errorMsgAreaBorderColor = JFaceColors.getErrorBorder(messageArea.getDisplay()); gc.setForeground(errorMsgAreaBorderColor); gc.setLineWidth(1); gc.drawLine(area.x, area.y, area.x + area.width - 1, area.y); gc.drawLine(area.x + area.width - 1, area.y, area.x + area.width - 1, area.y + area.height - 1); } } }); // Message image @ bottom, left messageImage = new Label(messageArea, SWT.LEFT); messageImage.setBackground(bg); messageImage.setVisible(false); // Message label @ bottom, center messageLabel = new Label(messageArea, SWT.WRAP); messageLabel.setBackground(bg); messageLabel.setText(" \n "); // two lines//$NON-NLS-1$ messageLabel.setFont(JFaceResources.getDialogFont()); // Dialog image @ right titleImage = new Label(titleArea, SWT.CENTER); titleImage.setBackground(bg); titleImage.setImage(JFaceResources.getImage(DLG_IMG_TITLE_BANNER)); GridData gd = new GridData(); gd.horizontalAlignment = gd.END; titleImage.setLayoutData(gd); return titleArea;} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c4f6eea0242519035d1255fb52958492b9739dbf/TitleAreaDialog.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/dialogs/TitleAreaDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
14728,
752,
4247,
5484,
12,
9400,
982,
13,
288,
202,
759,
1788,
326,
2077,
5091,
1492,
903,
912,
202,
759,
279,
2077,
16,
883,
16,
471,
1316,
18,
202,
2649,
5484,
273,
394,
14728,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
14728,
752,
4247,
5484,
12,
9400,
982,
13,
288,
202,
759,
1788,
326,
2077,
5091,
1492,
903,
912,
202,
759,
279,
2077,
16,
883,
16,
471,
1316,
18,
202,
2649,
5484,
273,
394,
14728,
12,
... |
else | public BigInteger pow(int exponent) { if (exponent <= 0) { if (exponent == 0) return ONE; else throw new ArithmeticException("negative exponent"); } if (isZero()) return this; int plen = words == null ? 1 : ival; // Length of pow2. int blen = ((bitLength() * exponent) >> 5) + 2 * plen; boolean negative = isNegative() && (exponent & 1) != 0; int[] pow2 = new int [blen]; int[] rwords = new int [blen]; int[] work = new int [blen]; getAbsolute(pow2); // pow2 = abs(this); int rlen = 1; rwords[0] = 1; // rwords = 1; for (;;) // for (i = 0; ; i++) { // pow2 == this**(2**i) // prod = this**(sum(j=0..i-1, (exponent>>j)&1)) if ((exponent & 1) != 0) { // r *= pow2 MPN.mul(work, pow2, plen, rwords, rlen); int[] temp = work; work = rwords; rwords = temp; rlen += plen; while (rwords[rlen - 1] == 0) rlen--; } exponent >>= 1; if (exponent == 0) break; // pow2 *= pow2; MPN.mul(work, pow2, plen, pow2, plen); int[] temp = work; work = pow2; pow2 = temp; // swap to avoid a copy plen *= 2; while (pow2[plen - 1] == 0) plen--; } if (rwords[rlen - 1] < 0) rlen++; if (negative) negate(rwords, rwords, rlen); return BigInteger.make(rwords, rlen); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/49e488b8530051383b90b1357fa767c87c9ff7f5/BigInteger.java/buggy/core/src/classpath/java/java/math/BigInteger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10246,
7602,
12,
474,
9100,
13,
225,
288,
565,
309,
261,
24045,
1648,
374,
13,
1377,
288,
202,
430,
261,
24045,
422,
374,
13,
202,
225,
327,
15623,
31,
202,
12107,
202,
225,
604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10246,
7602,
12,
474,
9100,
13,
225,
288,
565,
309,
261,
24045,
1648,
374,
13,
1377,
288,
202,
430,
261,
24045,
422,
374,
13,
202,
225,
327,
15623,
31,
202,
12107,
202,
225,
604,
... | |
assertEquals( "2", rowData.getExpressionValue( "row[\"test\"]" ) ); | public void testWithQuotes( ) throws ScriptException { assertEquals( "2", rowData.getExpressionValue( "row[\"test\"]" ) ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/2fb2d1f0c772873d250e1d25d021730e300b5489/RowDataTest.java/buggy/engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/script/RowDataTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1190,
14292,
12,
262,
1216,
7739,
503,
202,
95,
202,
202,
11231,
8867,
12,
315,
22,
3113,
24124,
18,
588,
2300,
620,
12,
315,
492,
63,
2412,
3813,
2412,
4279,
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,
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,
1842,
1190,
14292,
12,
262,
1216,
7739,
503,
202,
95,
202,
202,
11231,
8867,
12,
315,
22,
3113,
24124,
18,
588,
2300,
620,
12,
315,
492,
63,
2412,
3813,
2412,
4279,
262,
... | |
if (session.getAddress() != null && routingTable != null && session.getAddress().toBareJID().trim().length() != 0) { routingTable.removeRoute(session.getAddress()); if (sessionMap != null) { if (sessionMap.isEmpty()) { routingTable.removeRoute(new JID(session.getAddress().getNode(), session.getAddress().getDomain(), "")); } else { Session defaultSession = sessionMap.getDefaultSession(); routingTable.addRoute(new JID(defaultSession.getAddress().getNode(), defaultSession.getAddress().getDomain(), ""), defaultSession); } } } | public void removeSession(Session session) throws UnauthorizedException { if (session == null) { return; } SessionMap sessionMap = null; if (anonymousSessions.containsValue(session)) { anonymousSessions.remove(session.getAddress().getResource()); sessionCount--; } else { if (session.getAddress() != null && session.getAddress().getNode() != null) { String username = session.getAddress().getNode().toLowerCase(); synchronized (username.intern()) { sessionMap = sessions.get(username); if (sessionMap != null) { sessionMap.removeSession(session); sessionCount--; if (sessionMap.isEmpty()) { sessions.remove(username); } } } } } Presence presence = session.getPresence(); if (presence == null || presence.isAvailable()) { Presence offline = new Presence(); offline.setFrom(session.getAddress()); offline.setTo(new JID(null, serverName, null)); offline.setType(Presence.Type.unavailable); router.route(offline); } if (session.getAddress() != null && routingTable != null && session.getAddress().toBareJID().trim().length() != 0) { // Remove route to the removed session routingTable.removeRoute(session.getAddress()); if (sessionMap != null) { // If all the user sessions are gone then remove the route to the default session if (sessionMap.isEmpty()) { // Remove the route for the session's BARE address routingTable.removeRoute(new JID(session.getAddress().getNode(), session.getAddress().getDomain(), "")); } else { // Update the route for the session's BARE address Session defaultSession = sessionMap.getDefaultSession(); routingTable.addRoute(new JID(defaultSession.getAddress().getNode(), defaultSession.getAddress().getDomain(), ""), defaultSession); } } } } | 6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/ae0aba652838857ab76efa35bdc8f3e05dd67b28/SessionManager.java/clean/src/java/org/jivesoftware/messenger/SessionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
2157,
12,
2157,
1339,
13,
1216,
24830,
288,
3639,
309,
261,
3184,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
3877,
863,
1339,
863,
273,
446,
31,
3639,
309,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
2157,
12,
2157,
1339,
13,
1216,
24830,
288,
3639,
309,
261,
3184,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
3877,
863,
1339,
863,
273,
446,
31,
3639,
309,
261,... | |
setRating(getSelectedTrack(), 0); | setRating(getSelectedTrack(), 5); | public void widgetSelected(SelectionEvent e) { setRating(getSelectedTrack(), 0); } | 11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/81ff79b34cf34b3c59d32a6d086c23c59ca830c5/Client.java/buggy/trunk/irate/irate/swt/Client.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
3639,
444,
20388,
12,
588,
7416,
4402,
9334,
1381,
1769,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
3639,
444,
20388,
12,
588,
7416,
4402,
9334,
1381,
1769,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
{ CritterMove cm1 = (CritterMove)o1; CritterMove cm2 = (CritterMove)o2; return cm2.getValue() - cm1.getValue(); } | { CritterMove cm1 = (CritterMove)o1; CritterMove cm2 = (CritterMove)o2; return cm2.getValue() - cm1.getValue(); } | public int compare(Object o1, Object o2) { CritterMove cm1 = (CritterMove)o1; CritterMove cm2 = (CritterMove)o2; return cm2.getValue() - cm1.getValue(); } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/ff5ea6c1922887595037f5fc301d6137efa9472e/SimpleAI.java/clean/Colossus/net/sf/colossus/client/SimpleAI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
509,
3400,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
7734,
288,
10792,
385,
583,
387,
7607,
5003,
21,
273,
261,
39,
583,
387,
7607,
13,
83,
21,
31,
10792,
385,
583,
387,
7607,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
509,
3400,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
7734,
288,
10792,
385,
583,
387,
7607,
5003,
21,
273,
261,
39,
583,
387,
7607,
13,
83,
21,
31,
10792,
385,
583,
387,
7607,
... |
return (String[])result.toArray (new String[result.size ()]); | return result; | public String[] getArgs () { List result = this.getAttribute (INPUT_PARAMETERS); return (String[])result.toArray (new String[result.size ()]); } | 52706 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52706/b195f83dc0d8521d623a7e2220879bd37a2009cd/JobTemplateImpl.java/buggy/source/classes/com/sun/grid/drmaa/JobTemplateImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
514,
8526,
30169,
1832,
288,
1377,
987,
563,
273,
333,
18,
588,
1499,
261,
15934,
67,
20103,
1769,
5411,
327,
563,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
514,
8526,
30169,
1832,
288,
1377,
987,
563,
273,
333,
18,
588,
1499,
261,
15934,
67,
20103,
1769,
5411,
327,
563,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
renWin.GetRenderer().GetCullers().RemoveAllItems(); | GetRenderer().GetCullers().RemoveAllItems(); | public void setImageData(vtkImageData id) { //The shared picker enables us to use 3 planes at one time //and gets the picking order right vtkCellPicker picker = new vtkCellPicker(); picker.SetTolerance(0.005); //The 3 image plane widgets are used to probe the dataset. vtkImagePlaneWidget planeWidgetX = new vtkImagePlaneWidget(); planeWidgetX.DisplayTextOn(); planeWidgetX.SetInput(id); planeWidgetX.SetInteractor(renWin.getIren()); planeWidgetX.SetPlaneOrientationToXAxes(); planeWidgetX.SetSliceIndex(32); planeWidgetX.SetPicker(picker); planeWidgetX.SetKeyPressActivationValue('x'); planeWidgetX.GetPlaneProperty().SetColor(1, 0, 0); planeWidgetX.On(); vtkImagePlaneWidget planeWidgetY = new vtkImagePlaneWidget(); planeWidgetY.DisplayTextOn(); planeWidgetY.SetInput(id); planeWidgetY.SetInteractor(renWin.getIren()); planeWidgetY.SetPlaneOrientationToYAxes(); planeWidgetY.SetSliceIndex(32); planeWidgetY.SetPicker(picker); planeWidgetY.SetKeyPressActivationValue('y'); planeWidgetY.GetPlaneProperty().SetColor(1, 1, 0); planeWidgetY.SetLookupTable(planeWidgetX.GetLookupTable()); planeWidgetY.On(); //for the z-slice, turn off texture interpolation: //interpolation is now nearest neighbour, to demonstrate //cross-hair cursor snapping to pixel centers vtkImagePlaneWidget planeWidgetZ = new vtkImagePlaneWidget(); planeWidgetZ.DisplayTextOn(); planeWidgetZ.SetInput(id); planeWidgetZ.TextureInterpolateOff(); planeWidgetZ.SetInteractor(renWin.getIren()); planeWidgetZ.SetPlaneOrientationToZAxes(); planeWidgetZ.SetSliceIndex(46); planeWidgetZ.SetPicker(picker); planeWidgetZ.SetKeyPressActivationValue('z'); planeWidgetZ.GetPlaneProperty().SetColor (0, 0, 1); planeWidgetZ.SetLookupTable(planeWidgetX.GetLookupTable()); planeWidgetZ.On(); //An outline is shown for context. vtkOutlineFilter outline = new vtkOutlineFilter(); outline.SetInput (id); vtkPolyDataMapper outlineMapper = new vtkPolyDataMapper(); outlineMapper.SetInput ( outline.GetOutput() ); vtkActor outlineActor = new vtkActor(); outlineActor.SetMapper(outlineMapper); renWin.GetRenderer().AddActor(outlineActor); //Add the outline actor to the renderer, set the background and size renWin.GetRenderer().GetCullers().RemoveAllItems(); renWin.GetRenderer().SetBackground(0.1, 0.1, 0.2); } | 45205 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45205/a498c4a24d08be9a14ecb583bfc09eb98abb52e8/ImagePlaneWidget.java/buggy/Wrapping/Java/ImagePlaneWidget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18893,
751,
12,
11734,
79,
2040,
751,
612,
13,
288,
565,
368,
1986,
5116,
18141,
19808,
584,
358,
999,
890,
31634,
622,
1245,
813,
565,
368,
464,
5571,
326,
6002,
310,
1353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18893,
751,
12,
11734,
79,
2040,
751,
612,
13,
288,
565,
368,
1986,
5116,
18141,
19808,
584,
358,
999,
890,
31634,
622,
1245,
813,
565,
368,
464,
5571,
326,
6002,
310,
1353,
... |
File ttDir = new File(localDir, Integer.toString(taskTrackerPort)); | String mapredDir = ""; File ttDir = new File(localDir, Integer.toString(taskTrackerPort) + "_" + 0); | public void run() { try { JobConf jc = new JobConf(); jc.set("fs.name.node", namenode); jc.set("mapred.job.tracker", "localhost:"+jobTrackerPort); // this timeout seems to control the minimum time for the test, so // set it down at 2 seconds. jc.setInt("ipc.client.timeout", 1000); jc.setInt("mapred.task.tracker.info.port", taskTrackerPort++); jc.setInt("mapred.task.tracker.report.port", taskTrackerPort++); File localDir = new File(jc.get("mapred.local.dir")); File ttDir = new File(localDir, Integer.toString(taskTrackerPort)); ttDir.mkdirs(); this.localDir = ttDir.getAbsolutePath(); jc.set("mapred.local.dir", ttDir.getAbsolutePath()); tt = new TaskTracker(jc); isInitialized = true; tt.run(); } catch (Throwable e) { isDead = true; tt = null; System.err.println("Task tracker crashed:"); e.printStackTrace(); } } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/f275441011ba314856e2f75dc39fb3be3c074603/MiniMRCluster.java/clean/src/test/org/apache/hadoop/mapred/MiniMRCluster.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
3956,
3976,
19807,
273,
394,
3956,
3976,
5621,
7734,
19807,
18,
542,
2932,
2556,
18,
529,
18,
2159,
3113,
15135,
20680,
1769,
7734,
19807,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
3956,
3976,
19807,
273,
394,
3956,
3976,
5621,
7734,
19807,
18,
542,
2932,
2556,
18,
529,
18,
2159,
3113,
15135,
20680,
1769,
7734,
19807,
... |
if (logger.isDebugEnabled()) { logger.debug("P2P node manager is running at " + this.p2pServiceNode.getNodeInformation().getURL()); try { logger.debug("ProActiveRuntime at " + this.proactiveRuntime.getURL()); } catch (ProActiveException e1) { logger.debug("Coudln't get the ProActiveRuntime URL", e1); } | logger.debug("P2P node manager is running at " + this.p2pServiceNode.getNodeInformation().getURL()); try { logger.debug("ProActiveRuntime at " + this.proactiveRuntime.getURL()); } catch (ProActiveException e1) { logger.debug("Coudln't get the ProActiveRuntime URL", e1); | public void initActivity(Body body) { if (logger.isDebugEnabled()) { logger.debug("Entering initActivity"); } try { // Getting reference to the P2P node this.p2pServiceNode = NodeFactory.getNode(body.getNodeURL()); // Getting ProActive runtime this.proactiveRuntime = this.p2pServiceNode.getProActiveRuntime(); } catch (NodeException e) { logger.fatal("Couldn't get reference to the local p2pServiceNode", e); } if (logger.isDebugEnabled()) { logger.debug("P2P node manager is running at " + this.p2pServiceNode.getNodeInformation().getURL()); try { logger.debug("ProActiveRuntime at " + this.proactiveRuntime.getURL()); } catch (ProActiveException e1) { logger.debug("Coudln't get the ProActiveRuntime URL", e1); } } // Creating default shared node this.deployingDefaultSharedNodes(); if (logger.isDebugEnabled()) { logger.debug("Exiting initActivity"); } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/1279458d52679339839158611daec34b4baf800a/P2PNodeManager.java/clean/src/org/objectweb/proactive/p2p/service/node/P2PNodeManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
6193,
12,
2250,
1417,
13,
288,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
10237,
310,
1208,
6193,
8863,
3639,
289,
3639,
775,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
6193,
12,
2250,
1417,
13,
288,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
10237,
310,
1208,
6193,
8863,
3639,
289,
3639,
775,
288,... |
case 'E': if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(stream.ReceiveString(conn.getEncoding())); break; case 'N': conn.addWarning(stream.ReceiveString(conn.getEncoding())); break; | case 'V': int l_nextChar = stream.ReceiveChar(); if (l_nextChar == 'G') { int sz = stream.ReceiveIntegerR(4); if (resulttype) result = new Integer(stream.ReceiveIntegerR(sz)); else { byte buf[] = new byte[sz]; stream.Receive(buf, 0, sz); result = buf; } int l_endChar = stream.ReceiveChar(); } else { } break; | public Object fastpath(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException { // added Oct 7 1998 to give us thread safety synchronized (stream) { // send the function call try { // 70 is 'F' in ASCII. Note: don't use SendChar() here as it adds padding // that confuses the backend. The 0 terminates the command line. stream.SendInteger(70, 1); stream.SendInteger(0, 1); stream.SendInteger(fnid, 4); stream.SendInteger(args.length, 4); for (int i = 0;i < args.length;i++) args[i].send(stream); // This is needed, otherwise data can be lost stream.flush(); } catch (IOException ioe) { throw new PSQLException("postgresql.fp.send", new Integer(fnid), ioe); } // Now handle the result // We should get 'V' on sucess or 'E' on error. Anything else is treated // as an error. //int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); //if (in!='V') { //if (in=='E') //throw new SQLException(stream.ReceiveString(conn.getEncoding())); //throw new SQLException("Fastpath: expected 'V' from backend, got "+((char)in)); //} // Now loop, reading the results Object result = null; // our result StringBuffer errorMessage = null; boolean loop = true; while (loop) { int in = stream.ReceiveChar(); //DriverManager.println("ReceiveChar() = "+in+" '"+((char)in)+"'"); switch (in) { case 'V': break; //------------------------------ // Function returned properly // case 'G': int sz = stream.ReceiveIntegerR(4); //DriverManager.println("G: size="+sz); //debug // Return an Integer if if (resulttype) result = new Integer(stream.ReceiveIntegerR(sz)); else { byte buf[] = new byte[sz]; stream.Receive(buf, 0, sz); result = buf; } break; //------------------------------ // Error message returned case 'E': if ( errorMessage == null ) errorMessage = new StringBuffer(); errorMessage.append(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // Notice from backend case 'N': conn.addWarning(stream.ReceiveString(conn.getEncoding())); break; //------------------------------ // End of results // // Here we simply return res, which would contain the result // processed earlier. If no result, this already contains null case '0': //DriverManager.println("returning "+result); // return result; break; case 'Z': // cause the loop to exit loop = false; break; default: throw new PSQLException("postgresql.fp.protocol", new Character((char)in)); } } if ( errorMessage != null ) throw new PSQLException("postgresql.fp.error", errorMessage.toString()); return result; } } | 11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/ef7d7910745cf2812007668138eaaf0a8e1d8d99/Fastpath.java/buggy/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
14469,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
14469,
12,
474,
2295,
350,
16,
1250,
563,
723,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
202,
95,
202,
202,
759,
3096,
29482,
2371,
23673,
28,
358,
8492,
584,
2650... |
}catch (Exception ex){ ; } | }catch (Exception ex){} | public String process (ProcessingClient client){ String retValue = ""; String host = "localhost"; int port = 0; int oPort = 0; boolean found = false; InetAddress inet = null; ServerSocket socket = null; try{ if (client.getNumFields()>1){ host = client.getFieldContents(0); oPort = Integer.parseInt(client.getFieldContents(1)); }else{ oPort = Integer.parseInt(client.getFieldContents(0)); } }catch (Exception ex){ return getReturnValue(client, null, null); } port = oPort; while (!found){ try{ inet = InetAddress.getByName(host); socket = new ServerSocket(port, 0, inet); if (socket.getLocalPort() > 0){ found = true; retValue = getReturnValue(client, null, String.valueOf(port)); }else{ port++; } }catch (java.net.BindException ex){ port++; }catch (Exception ex){ return getReturnValue(client, null, null); }finally{ try{ socket.close(); }catch (Exception ex){ ; } } } return retValue; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/PortProcessor.java/buggy/src/lib/com/izforge/izpack/util/PortProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1207,
261,
7798,
1227,
1004,
15329,
202,
202,
780,
21236,
273,
1408,
31,
202,
202,
780,
1479,
273,
315,
13014,
14432,
202,
202,
474,
1756,
273,
374,
31,
202,
202,
474,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
261,
7798,
1227,
1004,
15329,
202,
202,
780,
21236,
273,
1408,
31,
202,
202,
780,
1479,
273,
315,
13014,
14432,
202,
202,
474,
1756,
273,
374,
31,
202,
202,
474,
32... |
public String getGroupDisplayName() { | public String getGroupDisplayName(){ | public String getGroupDisplayName() { return GroupNames.IMPORTS_GROUP_NAME; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/d6e7604c0e820eb6080db33dc4f7b731664f07e9/UnusedImportInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/imports/UnusedImportInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11751,
20524,
1435,
95,
3639,
327,
3756,
1557,
18,
20445,
55,
67,
8468,
67,
1985,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11751,
20524,
1435,
95,
3639,
327,
3756,
1557,
18,
20445,
55,
67,
8468,
67,
1985,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
showThread.sleep(1000); | showThread.sleep(2000); | private void refreshLoop() { while (true) { /* try { wait(); } catch (InterruptedException e) {} */ if (recreate) { // Regenerate surface if recreate is true, then display if (topo) topoMap.drawMap(centerCoords); else { if (useUSGSMap) usgsMap.drawMap(centerCoords); else surfMap.drawMap(centerCoords); } recreate = false; repaint(); } else { // Pause for 1000 milliseconds between display refreshs try { showThread.sleep(1000); } catch (InterruptedException e) {} repaint(); } } } | 49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/ece21a1044a057aa5242e5529a35ef068426e03d/MapDisplay.java/clean/org/mars_sim/msp/ui/standard/MapDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4460,
6452,
1435,
288,
3639,
1323,
261,
3767,
13,
288,
5411,
1748,
5411,
775,
288,
2529,
5621,
289,
2398,
1044,
261,
24485,
503,
425,
13,
2618,
5411,
1195,
5411,
309,
261,
266,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
6452,
1435,
288,
3639,
1323,
261,
3767,
13,
288,
5411,
1748,
5411,
775,
288,
2529,
5621,
289,
2398,
1044,
261,
24485,
503,
425,
13,
2618,
5411,
1195,
5411,
309,
261,
266,... |
protected abstract Set extractMojoDescriptors( Map scriptFilesKeyedByBasedir ) throws Exception; | protected abstract Set extractMojoDescriptors( Map scriptFilesKeyedByBasedir, PluginDescriptor pluginDescriptor ) throws PluginToolsException; | protected abstract Set extractMojoDescriptors( Map scriptFilesKeyedByBasedir ) throws Exception; | 47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/24c6328ad361f8e709e2b3fddefd9cde220a0628/AbstractScriptedMojoDescriptorExtractor.java/clean/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/extractor/AbstractScriptedMojoDescriptorExtractor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8770,
1000,
2608,
49,
10007,
12705,
12,
1635,
2728,
2697,
653,
18696,
2171,
1214,
262,
3639,
1216,
1185,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
8770,
1000,
2608,
49,
10007,
12705,
12,
1635,
2728,
2697,
653,
18696,
2171,
1214,
262,
3639,
1216,
1185,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
SwingUtilities.invokeLater( new Runnable(){ public void run(){ start(); }}); | SwingUtilities.invokeAndWait(new Runnable(){ public void run(){ sleepTime = minRunTime - (System.currentTimeMillis()-startTime); }}); | SwingUtilities.invokeLater( new Runnable(){ public void run(){ start(); }}); | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/9e12f8ab70779c1be52e1da54162499f573dad55/InfiniteProgressJComponent.java/buggy/gui/main/com/metavize/gui/util/InfiniteProgressJComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6050,
310,
11864,
18,
14407,
20607,
12,
394,
10254,
1435,
95,
1071,
918,
1086,
1435,
95,
202,
565,
787,
5621,
202,
9090,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6050,
310,
11864,
18,
14407,
20607,
12,
394,
10254,
1435,
95,
1071,
918,
1086,
1435,
95,
202,
565,
787,
5621,
202,
9090,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
RolapLevel level, RolapMember startMember, RolapMember endMember, List list) { Util.assertPrecondition(startMember != null, "startMember != null"); Util.assertPrecondition(endMember != null, "endMember != null"); Util.assertPrecondition(startMember.getLevel() == endMember.getLevel(), "startMember.getLevel() == endMember.getLevel()"); for (int i = startMember.ordinal; i <= endMember.ordinal; i++) { if (members[i].getLevel() == endMember.getLevel()) { list.add(members[i]); } } } | RolapLevel level, RolapMember startMember, RolapMember endMember, List list) { Util.assertPrecondition(startMember != null, "startMember != null"); Util.assertPrecondition(endMember != null, "endMember != null"); Util.assertPrecondition(startMember.getLevel() == endMember.getLevel(), "startMember.getLevel() == endMember.getLevel()"); for (int i = startMember.ordinal; i <= endMember.ordinal; i++) { if (members[i].getLevel() == endMember.getLevel()) { list.add(members[i]); } } } | public void getMemberRange( RolapLevel level, RolapMember startMember, RolapMember endMember, List list) { Util.assertPrecondition(startMember != null, "startMember != null"); Util.assertPrecondition(endMember != null, "endMember != null"); Util.assertPrecondition(startMember.getLevel() == endMember.getLevel(), "startMember.getLevel() == endMember.getLevel()"); for (int i = startMember.ordinal; i <= endMember.ordinal; i++) { if (members[i].getLevel() == endMember.getLevel()) { list.add(members[i]); } } } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/CacheMemberReader.java/clean/src/main/mondrian/rolap/CacheMemberReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18925,
2655,
12,
1082,
202,
4984,
438,
2355,
1801,
16,
11714,
438,
4419,
787,
4419,
16,
11714,
438,
4419,
679,
4419,
16,
1082,
202,
682,
666,
13,
288,
202,
202,
1304,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18925,
2655,
12,
1082,
202,
4984,
438,
2355,
1801,
16,
11714,
438,
4419,
787,
4419,
16,
11714,
438,
4419,
679,
4419,
16,
1082,
202,
682,
666,
13,
288,
202,
202,
1304,
18,... |
arg1 = XDataType.getTypeOf(arg2).cast(arg1); */ | arg1 = str; | public static boolean atomicCompare(int flags, Object arg1, Object arg2, NamedCollator collator) { if (arg1 instanceof Number || arg2 instanceof Number) { if (arg1 instanceof UntypedAtomic) { String str = arg1.toString(); if (arg2 instanceof DateTime) arg1 = DateTime.parse(str, ((DateTime) arg2).components()); else if (arg2 instanceof Duration) arg1 = Duration.parse(str, ((Duration) arg2).unit()); else arg1 = new DFloNum(str); } if (arg2 instanceof UntypedAtomic) { String str = arg2.toString(); if (arg1 instanceof DateTime) arg2 = DateTime.parse(str, ((DateTime) arg1).components()); else if (arg1 instanceof Duration) arg2 = Duration.parse(str, ((Duration) arg1).unit()); else arg2 = new DFloNum(str); } int code = NumberCompare.compare(arg1, arg2, false); if (code == -3) throw new IllegalArgumentException("values cannot be compared"); return NumberCompare.checkCompareCode(code, flags); } if (arg1 instanceof UntypedAtomic) { if (arg2 instanceof String || arg2 instanceof UntypedAtomic) arg1 = arg1.toString(); /* else arg1 = XDataType.getTypeOf(arg2).cast(arg1); */ } if (arg2 instanceof UntypedAtomic) { if (arg1 instanceof String || arg1 instanceof UntypedAtomic) arg2 = arg2.toString(); /* else arg2 = XDataType.getTypeOf(arg1).cast(arg2); */ } int comp; if (arg1 instanceof Symbol && arg2 instanceof Symbol) comp = arg1.equals(arg2) ? 0 : -3; else { String str1 = arg1.toString(); String str2 = arg2.toString(); /* #ifdef JAVA2 */ if (collator != null) comp = collator.compare(str1, str2); else /* #endif */ comp = str1.compareTo(str2); } if (comp < 0) return (flags & TRUE_IF_LSS+TRUE_IF_NEQ) != 0; else if (comp > 0) return (flags & TRUE_IF_GRT+TRUE_IF_NEQ) != 0; else return (flags & TRUE_IF_EQU) != 0; } | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/e4e0f7f794bad804eb285b231d9547683d5ea201/Compare.java/clean/gnu/xquery/util/Compare.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
7960,
8583,
12,
474,
2943,
16,
1033,
1501,
21,
16,
1033,
1501,
22,
16,
4766,
1377,
9796,
13535,
639,
4508,
639,
13,
225,
288,
565,
309,
261,
3175,
21,
1276,
3588,
747,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
7960,
8583,
12,
474,
2943,
16,
1033,
1501,
21,
16,
1033,
1501,
22,
16,
4766,
1377,
9796,
13535,
639,
4508,
639,
13,
225,
288,
565,
309,
261,
3175,
21,
1276,
3588,
747,
... |
super(runtime); | super(runtime, null); this.runtime = runtime; | public RubyNil(Ruby runtime) { super(runtime); } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNil.java/buggy/src/org/jruby/RubyNil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
12616,
12,
54,
10340,
3099,
13,
288,
202,
202,
9565,
12,
9448,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19817,
12616,
12,
54,
10340,
3099,
13,
288,
202,
202,
9565,
12,
9448,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
recv.callMethod("write", RubyString.newString(recv.getRuntime(), "\n")); | recv.callMethod("write", recv.getRuntime().newString("\n")); | public static IRubyObject puts(IRubyObject recv, IRubyObject[] args) { if (args.length == 0) { recv.callMethod("write", RubyString.newString(recv.getRuntime(), "\n")); return recv.getRuntime().getNil(); } for (int i = 0; i < args.length; i++) { String line = null; if (args[i].isNil()) { line = "nil"; } else if (args[i] instanceof RubyArray) { puts(recv, ((RubyArray) args[i]).toJavaArray()); continue; } else { line = args[i].toString(); } recv.callMethod("write", RubyString.newString(recv.getRuntime(), line)); if (!line.endsWith("\n")) { recv.callMethod("write", RubyString.newString(recv.getRuntime(), "\n")); } } return recv.getRuntime().getNil(); } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/clean/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
8200,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
10665,
18,
1991,
1305,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
8200,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
10665,
18,
1991,
1305,... |
try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } | if ((bool = EvalHelper.evalBoolean("disabled", getDisabledExpr(), this, pageContext)) != null) setDisabled(bool.booleanValue()); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } // The "align" attribute is deprecated. This needs to be removed when // the "align" attribute is finally removed. try { setAlign((String) evalAttr("align", getAlignExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBorder((String) evalAttr("border", getBorderExpr(), String.class)); } catch (NullAttributeException ex) { } try { setBundle((String) evalAttr("bundle", getBundleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setLocale((String) evalAttr("locale", getLocaleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPage((String) evalAttr("page", getPageExpr(), String.class)); } catch (NullAttributeException ex) { } try { setPageKey((String) evalAttr("pageKey", getPageKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrc((String) evalAttr("src", getSrcExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSrcKey((String) evalAttr("srcKey", getSrcKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/022bd23c954cf673e53731849d562b3c295473f1/ELImageTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELImageTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
... |
makeMeasure(factUsage, aggColumn); nosOfMeasureColumns++; | if (aggColumn == null) { aggColumn = aggTable.getColumn(aggFK.toLowerCase()); } if (aggColumn == null) { aggColumn = aggTable.getColumn(aggFK.toUpperCase()); } if (aggColumn != null) { makeMeasure(factUsage, aggColumn); nosOfMeasureColumns++; } | protected int checkMeasures() { msgRecorder.pushContextName("ExplicitRecognizer.checkMeasures"); try { int nosOfMeasureColumns = 0; // Look at each aggregate table column. For each measure defined, // see if the measure's column name equals the column's name. // If so, make the aggregate measure usage for that column. for (Iterator it = aggTable.getColumns(); it.hasNext(); ) { JdbcSchema.Table.Column aggColumn = (JdbcSchema.Table.Column) it.next(); // if marked as ignore, then do not consider if (aggColumn.hasUsage(JdbcSchema.IGNORE_COLUMN_TYPE)) { continue; } String aggColumnName = aggColumn.getName(); for (Iterator mit = getTableDef().getMeasures(); mit.hasNext();) { ExplicitRules.TableDef.Measure measure = (ExplicitRules.TableDef.Measure) mit.next(); if (measure.getColumnName().equals(aggColumnName)) { // Ok, got a match, so now make a measue makeMeasure(measure, aggColumn); nosOfMeasureColumns++; } } } // Ok, now look at all of the fact table columns with measure usage // that have a sibling foreign key usage. These can be automagically // generated for the aggregate table as long as it still has the foreign // key. for (Iterator it = dbFactTable.getColumnUsages(JdbcSchema.MEASURE_COLUMN_TYPE); it.hasNext(); ) { JdbcSchema.Table.Column.Usage factUsage = (JdbcSchema.Table.Column.Usage) it.next(); JdbcSchema.Table.Column factColumn = factUsage.getColumn(); if (factColumn.hasUsage(JdbcSchema.FOREIGN_KEY_COLUMN_TYPE)) { // What we've got here is a measure based upon a foreign key String aggFK = getTableDef().getAggregateFK(factColumn.getName()); // OK, not a lost dimension if (aggFK != null) { JdbcSchema.Table.Column aggColumn = aggTable.getColumn(aggFK); makeMeasure(factUsage, aggColumn); nosOfMeasureColumns++; } } } return nosOfMeasureColumns; } finally { msgRecorder.popContextName(); } } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/51853ff46c857708e401209c75f4dd00dccf130d/ExplicitRecognizer.java/clean/src/main/mondrian/rolap/aggmatcher/ExplicitRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
866,
23177,
1823,
1435,
288,
3639,
1234,
10777,
18,
6206,
1042,
461,
2932,
17186,
28131,
18,
1893,
23177,
1823,
8863,
3639,
775,
288,
3639,
509,
26628,
951,
7197,
3380,
273,
374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
866,
23177,
1823,
1435,
288,
3639,
1234,
10777,
18,
6206,
1042,
461,
2932,
17186,
28131,
18,
1893,
23177,
1823,
8863,
3639,
775,
288,
3639,
509,
26628,
951,
7197,
3380,
273,
374,... |
StringBuffer sb = new StringBuffer("item:{"); | StringBuilder sb = new StringBuilder("item:{"); | private String encodeSequence(Set<ImapMessage> i4set, boolean abbreviateAll) { i4set.remove(null); if (i4set.isEmpty()) return "item:none"; else if (abbreviateAll && isAllMessages(i4set)) return "item:all"; StringBuffer sb = new StringBuffer("item:{"); for (ImapMessage i4msg : i4set) sb.append(sb.length() == 6 ? "" : ",").append(i4msg.id); return sb.append('}').toString(); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/4c89ff9f70777fd0b4b98edb0f794c8e0720288c/ImapHandler.java/buggy/ZimbraServer/src/java/com/zimbra/cs/imap/ImapHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2017,
4021,
12,
694,
32,
20827,
1079,
34,
277,
24,
542,
16,
1250,
1223,
7379,
340,
1595,
13,
288,
3639,
277,
24,
542,
18,
4479,
12,
2011,
1769,
3639,
309,
261,
77,
24,
542,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2017,
4021,
12,
694,
32,
20827,
1079,
34,
277,
24,
542,
16,
1250,
1223,
7379,
340,
1595,
13,
288,
3639,
277,
24,
542,
18,
4479,
12,
2011,
1769,
3639,
309,
261,
77,
24,
542,... |
jcrql = "SELECT * FROM * LOCATION /" + TEST_ROOT + " | jcrql = "SELECT * FROM * LOCATION " + TEST_ROOT + " | public void testLikePatternEnd() throws Exception { Node n = testRoot.addNode("node1", NT_UNSTRUCTURED); n.setProperty("value", new String[]{"bli"}); n = testRoot.addNode("node2", NT_UNSTRUCTURED); n.setProperty("value", new String[]{"bla"}); n = testRoot.addNode("node3", NT_UNSTRUCTURED); n.setProperty("value", new String[]{"blub"}); testRoot.save(); String jcrql = "SELECT * FROM * LOCATION /" + TEST_ROOT + "// WHERE value LIKE \"bli\""; Query q = superuser.getWorkspace().getQueryManager().createQuery(jcrql, Query.JCRQL); QueryResult result = q.execute(); checkResult(result, 1); jcrql = "SELECT * FROM * LOCATION /" + TEST_ROOT + "// WHERE value LIKE \"bl?\""; q = superuser.getWorkspace().getQueryManager().createQuery(jcrql, Query.JCRQL); result = q.execute(); checkResult(result, 2); jcrql = "SELECT * FROM * LOCATION /" + TEST_ROOT + "// WHERE value LIKE \"bl*\""; q = superuser.getWorkspace().getQueryManager().createQuery(jcrql, Query.JCRQL); result = q.execute(); checkResult(result, 3); jcrql = "SELECT * FROM * LOCATION /" + TEST_ROOT + "// WHERE value LIKE \"bl_\""; q = superuser.getWorkspace().getQueryManager().createQuery(jcrql, Query.JCRQL); result = q.execute(); checkResult(result, 2); jcrql = "SELECT * FROM * LOCATION /" + TEST_ROOT + "// WHERE value LIKE \"bl%\""; q = superuser.getWorkspace().getQueryManager().createQuery(jcrql, Query.JCRQL); result = q.execute(); checkResult(result, 3); } | 49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/a8e9611452abb1c8c64e644f003af347954188d9/SimpleQueryTest.java/buggy/src/test/org/apache/jackrabbit/test/search/SimpleQueryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8804,
3234,
1638,
1435,
1216,
1185,
288,
3639,
2029,
290,
273,
1842,
2375,
18,
1289,
907,
2932,
2159,
21,
3113,
20064,
67,
2124,
13915,
4830,
40,
1769,
3639,
290,
18,
542... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8804,
3234,
1638,
1435,
1216,
1185,
288,
3639,
2029,
290,
273,
1842,
2375,
18,
1289,
907,
2932,
2159,
21,
3113,
20064,
67,
2124,
13915,
4830,
40,
1769,
3639,
290,
18,
542... |
} | /* * End of transition queue check. } */ } /* * Transition queuing not supported. * | public void generateCode(PrintStream header, PrintStream source, String srcfileBase) throws ParseException { ListIterator mapIt; ListIterator transIt; ListIterator paramIt; SmcMap map; SmcTransition trans; SmcParameter parameter; String javaState; String separator; int index; LinkedList params; LinkedList prev_params; // Dump out the raw source code, if any. if (_source != null && _source.length () > 0) { source.println (_source + "\n"); } // The context clas contains all the state classes as // inner classes, so generate the context first rather // than last. source.println("public final class " + _context + "Context"); source.println(" extends statemap.FSMContext"); source.println("{"); // Generate the context class' constructor. source.println(" public " + _context + "Context(" + _context + " owner)"); source.println(" {"); source.println(" super();\n"); source.println(" _owner = owner;"); // If transition queuing is being done, then allocate // the queue here. if (Smc.isTransQueue() == true) { source.println(" _trans_queue = new java.util.LinkedList();"); } // The state name "map::state" must be changed to // "map.state". if ((index = _start_state.indexOf("::")) >= 0) { javaState = _start_state.substring(0, index) + "." + _start_state.substring(index + 2); source.println(" setState(" + javaState + ");"); } source.println(" }\n"); // getState() method. source.println(" public " + _context + "State getState()"); source.println(" throws java.lang.NullPointerException"); source.println(" {"); source.println(" if (_state == null)"); source.println(" {"); source.println(" throw(new java.lang.NullPointerException(\"Current state not set\"));"); source.println(" }\n"); source.println(" return((" + _context + "State) _state);"); source.println(" }\n"); // getOwner() method. source.println(" public " + _context + " getOwner()"); source.println(" {"); source.println(" return(_owner);"); source.println(" }\n"); // Generate the default transition methods. // Get the transition list. LinkedList transList = new LinkedList(); for (mapIt = _maps.listIterator(); mapIt.hasNext() == true; ) { map = (SmcMap) mapIt.next(); // Merge the new transitions into the current set. transList = Smc.merge(map.getTransitions(), transList, new Comparator() { public int compare(Object o1, Object o2) { return(((SmcTransition) o1).compareTo((SmcTransition) o2)); } }); } for (transIt = transList.listIterator(); transIt.hasNext() == true; ) { trans = (SmcTransition) transIt.next(); if (trans.getName().compareTo("Default") != 0) { source.print(" public void " + trans.getName() + "("); for (paramIt = trans.getParameters().listIterator(), separator = ""; paramIt.hasNext() == true; separator = ", ") { parameter = (SmcParameter) paramIt.next(); source.print(separator); parameter.generateCode(source); } source.println(")"); source.println(" {"); // If transition queuing, then check if _state // is null. If so, enqueue the transition and its // arguments for later. if (Smc.isTransQueue() == true) { String param_type; source.println(" statemap.FSMContext.TransEntry entry;"); source.println(" String method_name;"); source.println(" Class[] params;"); source.println(" Object[] args;"); source.println(" java.lang.reflect.Method method;\n"); // Add debug message re: this transition being // queued. if (Smc.isDebug() == true) { source.println(" if (_debug_flag == true)"); source.println(" {"); source.println(" System.err.println(\"QUEUED : " + trans.getName() + "\");"); source.println(" }\n"); } source.println(" args = new Object[" + Integer.toString(trans.getParameters().size() + 1) + "];"); source.println(" params = new Class[" + Integer.toString(trans.getParameters().size() + 1) + "];\n"); source.println(" args[0] = this;"); source.println(" params[0] = this.getClass();"); for (paramIt = trans.getParameters().listIterator(), index = 1; paramIt.hasNext() == true; ++index) { parameter = (SmcParameter) paramIt.next(); source.print(" args[" + Integer.toString(index) + "] = "); // Is the argument a Java built-in? If yes, // allocate the corresponding class. // Otherwise, clone the object. param_type = parameter.getType(); if (param_type.compareTo("byte") == 0) { source.println("new Byte(" + parameter.getName() + ")"); } else if (param_type.compareTo("short") == 0) { source.println("new Short(" + parameter.getName() + ");"); } else if (param_type.compareTo("int") == 0) { source.println("new Integer(" + parameter.getName() + ");"); } else if (param_type.compareTo("long") == 0) { source.println("new Long(" + parameter.getName() + ");"); } else if (param_type.compareTo("float") == 0) { source.println("new Float(" + parameter.getName() + ");"); } else if (param_type.compareTo("double") == 0) { source.println("new Double(" + parameter.getName() + ");"); } else if (param_type.compareTo("char") == 0) { source.println("new Character(" + parameter.getName() + ");"); } else if (param_type.compareTo("boolean") == 0) { source.println("new Boolean(" + parameter.getName() + ");"); } else { // This is an object. Save its reference. source.println(parameter.getName() + ";"); } source.println(" params[" + Integer.toString(index) + "] = " + param_type + ".class;"); } // Store away the method name and args. source.println("\n entry = new statemap.FSMContext.TransEntry(\"" + trans.getName() + "\", args, params);"); source.println(" _trans_queue.addLast(entry);\n"); source.println(" if (_state != null)"); source.println(" {"); // Now issue any queued up transitions. source.println(" dispatchTransitions();"); source.println(" }\n"); } else { source.print(" getState()." + trans.getName() + "(this"); for (paramIt = trans.getParameters().listIterator(); paramIt.hasNext() == true; ) { parameter = (SmcParameter) paramIt.next(); source.print(", " + parameter.getName()); } source.println(");"); } source.println(" return;"); source.println(" }\n"); } } if (Smc.isTransQueue() == true) { // The following method invokes queued transitions. source.println(" private void dispatchTransitions()"); source.println(" {"); source.println(" statemap.FSMContext.TransEntry entry;"); source.println(" String method_name;"); source.println(" Class[] params;"); source.println(" Object[] args;"); source.println(" java.lang.reflect.Method method;\n"); source.println(" while(_trans_queue.size() > 0)"); source.println(" {"); source.println(" entry = (statemap.FSMContext.TransEntry) _trans_queue.removeFirst();"); source.println(" method_name = entry.getMethodName();"); source.println(" args = entry.getArgs();"); source.println(" params = entry.getParameters();"); source.println(" try"); source.println(" {"); source.println(" try"); source.println(" {"); source.println(" method ="); source.println(" _state.getClass().getDeclaredMethod(method_name,"); source.println(" params);"); source.println(" }"); source.println(" catch (NoSuchMethodException method_ex)"); source.println(" {"); source.println(" method ="); source.println(" _state.getClass().getSuperclass().getDeclaredMethod(method_name,"); source.println(" params);"); source.println(" }\n"); source.println(" method.invoke(_state, args);"); source.println(" entry.free();"); source.println(" }"); if (Smc.isDebug() == false) { source.println(" catch (Exception jex) {}"); } else { source.println(" catch (Exception jex)"); source.println(" {"); source.println(" if (_debug_flag == true)"); source.println(" {"); source.println(" System.err.println(\"INVOKE ERROR : \" + jex);"); source.println(" }"); source.println(" }"); } source.println(" }"); source.println(" }\n"); } // Declare member data. source.println("// Member data.\n"); source.println(" private " + _context + " _owner;"); // If transition queuing, declare the necessary // data. if (Smc.isTransQueue() == true) { source.println(" private java.util.LinkedList _trans_queue;"); } // Declare the inner state class. source.println("\n protected static abstract class " + _context + "State"); source.println(" extends statemap.State"); source.println(" {"); // Constructor. source.println(" protected " + _context + "State(String name)"); source.println(" {"); source.println(" super(name);"); source.println(" }\n"); source.println(" protected void Entry(" + _context + "Context s) {}"); source.println(" protected void Exit(" + _context + "Context s) {}\n"); for (transIt = transList.listIterator(); transIt.hasNext() == true; ) { trans = (SmcTransition) transIt.next(); source.print(" protected void " + trans.getName() + "(" + _context + "Context s"); for (paramIt = trans.getParameters().listIterator(); paramIt.hasNext() == true; ) { parameter = (SmcParameter) paramIt.next(); source.print(", "); parameter.generateCode(source); } source.println(") {}"); } // End of state class. source.println(" }"); // Have each map print out its source code now. for (mapIt = _maps.listIterator(); mapIt.hasNext(); ) { map = (SmcMap) mapIt.next(); map.generateCode(header, source, _context); } // End of context class. source.println("}\n"); return; } | 50995 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50995/57534c3b2864cd1c95a4dbf3a39a9b2eb88ce2c6/SmcParseTreeJava.java/buggy/bin/SmcParseTreeJava.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
1085,
12,
5108,
1228,
1446,
16,
11794,
21677,
1084,
16,
11794,
514,
1705,
768,
2171,
13,
3639,
1216,
10616,
565,
288,
3639,
987,
3198,
852,
7193,
31,
3639,
987,
3198,
906... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
1085,
12,
5108,
1228,
1446,
16,
11794,
21677,
1084,
16,
11794,
514,
1705,
768,
2171,
13,
3639,
1216,
10616,
565,
288,
3639,
987,
3198,
852,
7193,
31,
3639,
987,
3198,
906... |
match(input,42,FOLLOW_42_in_salience882); | match(input,41,FOLLOW_41_in_salience889); if (failed) return d; | public AttributeDescr salience() throws RecognitionException { AttributeDescr d = null; Token loc=null; Token i=null; d = null; try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:527:3: (loc= 'salience' i= INT opt_semicolon ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:527:3: loc= 'salience' i= INT opt_semicolon { loc=(Token)input.LT(1); match(input,42,FOLLOW_42_in_salience882); i=(Token)input.LT(1); match(input,INT,FOLLOW_INT_in_salience886); pushFollow(FOLLOW_opt_semicolon_in_salience888); opt_semicolon(); _fsp--; d = new AttributeDescr( "salience", i.getText() ); d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/c3437c2488c314384990c4282a547e0f92ca02c2/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
12814,
6254,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
273,
446,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
277,
33,
2011,
31,
1171,
202,
202,
72,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
12814,
6254,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
273,
446,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
277,
33,
2011,
31,
1171,
202,
202,
72,
273,
446,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.