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 |
|---|---|---|---|---|---|---|
public MapLayer removeLayerSpecial(int index) { MapLayer layer = null; try { layer = (MapLayer) specialLayers.remove(index); fireMapChanged(); } catch (ArrayIndexOutOfBoundsException e) { } return layer; } | public MapLayer removeLayerSpecial(MapLayer l) { try { if(specialLayers.remove(l)) { fireMapChanged(); } }catch (ArrayIndexOutOfBoundsException e) { } return l; } | public MapLayer removeLayerSpecial(int index) { MapLayer layer = null; try { layer = (MapLayer) specialLayers.remove(index); fireMapChanged(); } catch (ArrayIndexOutOfBoundsException e) { } return layer; } | 6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/bd70b56ce6f32e8484cc8dde3bbb4adb3e14f75f/Map.java/clean/tiled/core/Map.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
4576,
1206,
4576,
12193,
12,
474,
770,
13,
288,
3639,
1635,
4576,
3018,
273,
446,
31,
3639,
775,
288,
5411,
3018,
273,
261,
863,
4576,
13,
4582,
9282,
18,
4479,
12,
1615,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1635,
4576,
1206,
4576,
12193,
12,
474,
770,
13,
288,
3639,
1635,
4576,
3018,
273,
446,
31,
3639,
775,
288,
5411,
3018,
273,
261,
863,
4576,
13,
4582,
9282,
18,
4479,
12,
1615,
17... |
if (!head.isZero()) BlockAllocator.setPrevBlock(head, Address.zero()); | if (!head.isZero()) BlockAllocator.setPrevBlock(head, Address.zero()); | private final void reestablishBlockFreeList(int sizeClass) { Address head = Address.zero(); for (int bucket = 0; bucket < BLOCK_BUCKETS; bucket++) head = addToFreeBlockList(sizeClass, head, bucket); if (!head.isZero()) BlockAllocator.setPrevBlock(head, Address.zero()); firstBlock.set(sizeClass, head); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/SegregatedFreeList.java/buggy/MMTk/src/org/mmtk/utility/alloc/SegregatedFreeList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
918,
283,
395,
23385,
1768,
9194,
682,
12,
474,
963,
797,
13,
288,
565,
5267,
910,
273,
5267,
18,
7124,
5621,
565,
364,
261,
474,
2783,
273,
374,
31,
2783,
411,
14073,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
918,
283,
395,
23385,
1768,
9194,
682,
12,
474,
963,
797,
13,
288,
565,
5267,
910,
273,
5267,
18,
7124,
5621,
565,
364,
261,
474,
2783,
273,
374,
31,
2783,
411,
14073,
67,
... |
return u2 == null ? 0 : ((Integer)u2).intValue(); } | return u2 == null ? 0 : ((Integer) u2).intValue(); } | public int getArgsCount() { return u2 == null ? 0 : ((Integer)u2).intValue(); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Node.java/clean/org/jruby/nodes/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
30169,
1380,
1435,
288,
202,
202,
2463,
582,
22,
422,
446,
692,
374,
294,
14015,
4522,
13,
89,
22,
2934,
474,
620,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
30169,
1380,
1435,
288,
202,
202,
2463,
582,
22,
422,
446,
692,
374,
294,
14015,
4522,
13,
89,
22,
2934,
474,
620,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } | Asserts.assertTrue(!member.isNil(), "uninitialized struct"); | public IRubyObject set(IRubyObject value) { String name = runtime.getCurrentFrame().getLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).toId().equals(name)) { return values[i] = value; } } throw new NameError(runtime, name + " is not struct member"); } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyStruct.java/clean/org/jruby/RubyStruct.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
444,
12,
7937,
10340,
921,
460,
13,
288,
3639,
514,
508,
273,
3099,
18,
588,
3935,
3219,
7675,
588,
3024,
2622,
5621,
3639,
309,
261,
529,
18,
5839,
1190,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
444,
12,
7937,
10340,
921,
460,
13,
288,
3639,
514,
508,
273,
3099,
18,
588,
3935,
3219,
7675,
588,
3024,
2622,
5621,
3639,
309,
261,
529,
18,
5839,
1190,
2932,
... |
final String xmlBaseAttribute = element.attributeValue(XMLConstants.XML_BASE_QNAME); | final String xmlBaseAttribute = currentElement.attributeValue(XMLConstants.XML_BASE_QNAME); | public static URI resolveURI(Element element, String uri) { final List xmlBaseElements = new ArrayList(); // Collect xml:base values Element currentElement = element; do { final String xmlBaseAttribute = element.attributeValue(XMLConstants.XML_BASE_QNAME); if (xmlBaseAttribute != null) xmlBaseElements.add(xmlBaseAttribute); currentElement = currentElement.getParent(); } while(currentElement != null); // Go from root to leaf Collections.reverse(xmlBaseElements); xmlBaseElements.add(uri); // Resolve paths from root to leaf try { URI result = null; for (Iterator i = xmlBaseElements.iterator(); i.hasNext();) { final String currentXMLBase = (String) i.next(); final URI currentXMLBaseURI = new URI(currentXMLBase); result = (result == null) ? currentXMLBaseURI : result.resolve(currentXMLBaseURI); } return result; } catch (URISyntaxException e) { throw new ValidationException("Error while resolving URI: " + uri, e, (LocationData) element.getData()); } } | 10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/7d5f64cdd8f43075e248143706be45d2af32ca88/XFormsUtils.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3699,
2245,
3098,
12,
1046,
930,
16,
514,
2003,
13,
288,
3639,
727,
987,
2025,
2171,
3471,
273,
394,
2407,
5621,
3639,
368,
9302,
2025,
30,
1969,
924,
3639,
3010,
22993,
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,
3699,
2245,
3098,
12,
1046,
930,
16,
514,
2003,
13,
288,
3639,
727,
987,
2025,
2171,
3471,
273,
394,
2407,
5621,
3639,
368,
9302,
2025,
30,
1969,
924,
3639,
3010,
22993,
273,
... |
setCols((String) evalAttr("cols", getCols(), String.class)); | setCols((String) evalAttr("cols", getColsExpr(), String.class)); | 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 { setCols((String) evalAttr("cols", getCols(), String.class)); } catch (NullAttributeException ex) { setCols(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 { 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 { setRows((String) evalAttr("rows", getRows(), String.class)); } catch (NullAttributeException ex) { setRows(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setSize((String) evalAttr("size", getSize(), String.class)); } catch (NullAttributeException ex) { setSize(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 { 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); } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/db064e19656421b94aaf753550935d95f44bd5f9/ELTextareaTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextareaTag.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,
... |
Context cx, String id) | Context cx, Scriptable scope, String id) | public static Object setName(Scriptable bound, Object value, Context cx, String id) { if (bound != null) { if (bound instanceof XMLObject) { XMLObject xmlObject = (XMLObject)bound; xmlObject.ecmaPut(cx, id, value); } else { ScriptableObject.putProperty(bound, id, value); } } else { // "newname = 7;", where 'newname' has not yet // been defined, creates a new property in the // global object. Find the global object by // walking up the scope chain. bound = cx.topCallScope; bound.put(id, bound, value); /* This code is causing immense performance problems in scripts that assign to the variables as a way of creating them. XXX need strict mode String message = getMessage1("msg.assn.create", id); Context.reportWarning(message); */ } return value; } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/ca75e5c0c81d2f89b8230897213f0ba17a232f7c/ScriptRuntime.java/buggy/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
6788,
12,
3651,
429,
2489,
16,
1033,
460,
16,
4766,
1772,
9494,
16,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
309,
261,
3653,
480,
446,
13,
288,
5411,
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,
760,
1033,
6788,
12,
3651,
429,
2489,
16,
1033,
460,
16,
4766,
1772,
9494,
16,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
309,
261,
3653,
480,
446,
13,
288,
5411,
309,
261,
... |
File file) throws IOException | File file) throws IOException | public LifeFTP(LifeBlogger thinlet, String host, String login, String password, String path, String filename, File file) throws IOException { super(thinlet, host, login, password, path, filename, file); } | 32139 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32139/b3a9e880ce16ef6c89aef3371b5b17b42274fd06/LifeFTP.java/buggy/src/net/thauvin/lifeblogger/LifeFTP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
28128,
17104,
12,
15315,
38,
4901,
21936,
1810,
16,
514,
1479,
16,
514,
3925,
16,
514,
2201,
16,
514,
589,
16,
514,
1544,
16,
6862,
282,
1387,
585,
13,
1082,
202,
15069,
1860,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28128,
17104,
12,
15315,
38,
4901,
21936,
1810,
16,
514,
1479,
16,
514,
3925,
16,
514,
2201,
16,
514,
589,
16,
514,
1544,
16,
6862,
282,
1387,
585,
13,
1082,
202,
15069,
1860,... |
List ids = new ArrayList(); String sql = "SELECT ID_PARTITION FROM R_PARTITION WHERE ID_PARTITION_SCHEMA = " + id_partition_schema; ResultSet rs = database.openQuery(sql); Row r = database.getRow(rs); int i = 0; while (r != null) { ids.add(new Long(r.getValue(0).getInteger())); r = database.getRow(rs); i++; } database.closeQuery(rs); return convertLongList(ids); | return getIDs("SELECT ID_PARTITION FROM R_PARTITION WHERE ID_PARTITION_SCHEMA = " + id_partition_schema); | public long[] getPartitionIDs(long id_partition_schema) throws KettleDatabaseException { List ids = new ArrayList(); String sql = "SELECT ID_PARTITION FROM R_PARTITION WHERE ID_PARTITION_SCHEMA = " + id_partition_schema; ResultSet rs = database.openQuery(sql); Row r = database.getRow(rs); int i = 0; while (r != null) { ids.add(new Long(r.getValue(0).getInteger())); r = database.getRow(rs); i++; } database.closeQuery(rs); return convertLongList(ids); } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/50c5632e4f96caa57cb7661b8e82f20c5edf0cb5/Repository.java/clean/src/be/ibridge/kettle/repository/Repository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1525,
8526,
25290,
5103,
12,
5748,
612,
67,
10534,
67,
4821,
13,
1216,
1475,
278,
5929,
4254,
503,
565,
288,
3639,
987,
3258,
273,
394,
2407,
5621,
7734,
514,
1847,
273,
315,
4803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1525,
8526,
25290,
5103,
12,
5748,
612,
67,
10534,
67,
4821,
13,
1216,
1475,
278,
5929,
4254,
503,
565,
288,
3639,
987,
3258,
273,
394,
2407,
5621,
7734,
514,
1847,
273,
315,
4803,
... |
result = db.eval(expr); | result = debugGui.main.eval(expr); | public void setValueAt(Object value, int row, int column) { switch (column) { case 0: String expr = value.toString(); expressions.setElementAt(expr, row); String result = ""; if (expr.length() > 0) { result = db.eval(expr); if (result == null) result = ""; } values.setElementAt(result, row); updateModel(); if (row + 1 == expressions.size()) { expressions.addElement(""); values.addElement(""); fireTableRowsInserted(row + 1, row + 1); } break; case 1: // just reset column 2; ignore edits fireTableDataChanged(); } } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5524,
861,
12,
921,
460,
16,
509,
1027,
16,
509,
1057,
13,
288,
3639,
1620,
261,
2827,
13,
288,
3639,
648,
374,
30,
5411,
514,
3065,
273,
460,
18,
10492,
5621,
5411,
8041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5524,
861,
12,
921,
460,
16,
509,
1027,
16,
509,
1057,
13,
288,
3639,
1620,
261,
2827,
13,
288,
3639,
648,
374,
30,
5411,
514,
3065,
273,
460,
18,
10492,
5621,
5411,
8041,
... |
IViewPart part = (IViewPart) ref.getPart(false); | IViewPart part = (IViewPart) ref.getPart(true); | public IViewPart showView(String viewId, String secondaryId) throws PartInitException { ViewFactory factory = getViewFactory(); IViewReference ref = factory.createView(viewId, secondaryId); IViewPart part = (IViewPart) ref.getPart(false); if (part == null) { IStatus status = factory.restoreView(ref); if (status.getSeverity() == IStatus.ERROR) { if (status.getException() instanceof PartInitException) throw (PartInitException) status.getException(); else throw new PartInitException(status); } else { //No error so the part has been created part = (IViewPart) ref.getPart(false); } } ViewSite site = (ViewSite) part.getSite(); ViewPane pane = (ViewPane) site.getPane(); IPreferenceStore store = WorkbenchPlugin.getDefault() .getPreferenceStore(); int openViewMode = store.getInt(IPreferenceConstants.OPEN_VIEW_MODE); if (presentation.hasPlaceholder(viewId, secondaryId)) { presentation.addPart(pane); } else if (openViewMode == IPreferenceConstants.OVM_EMBED) { presentation.addPart(pane); } else if (openViewMode == IPreferenceConstants.OVM_FLOAT && presentation.canDetach()) { presentation.addDetachedPart(pane); } else { showFastView(ref); addFastView(ref); //Refresh the part as there might have been an error when showing } return part; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/45ab2bee3420234882ba61c9b99fecd868b62e8f/Perspective.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Perspective.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1767,
1988,
2405,
1767,
12,
780,
1476,
548,
16,
514,
9946,
548,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
4441,
1733,
3272,
273,
8893,
1733,
5621,
3639,
467,
1767,
2404,
1278... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1767,
1988,
2405,
1767,
12,
780,
1476,
548,
16,
514,
9946,
548,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
4441,
1733,
3272,
273,
8893,
1733,
5621,
3639,
467,
1767,
2404,
1278... |
((JointSet) innerSet).setNext(FSet.posFSet); | innerSet.setNext(FSet.posFSet); | public PosCompositeGroupQuantifierSet(Quantifier quant, AbstractSet innerSet, AbstractSet next, int type, int setCounter) { super(quant, innerSet, next, type, setCounter); ((JointSet) innerSet).setNext(FSet.posFSet); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/d1890858a3daa4e3cd71861149272d06017ba015/PosCompositeGroupQuantifierSet.java/buggy/modules/regex/src/main/java/java/util/regex/PosCompositeGroupQuantifierSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6818,
9400,
1114,
19471,
1251,
694,
12,
19471,
1251,
10251,
16,
5411,
4115,
694,
3443,
694,
16,
4115,
694,
1024,
16,
509,
618,
16,
509,
444,
4789,
13,
288,
3639,
2240,
12,
17753,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6818,
9400,
1114,
19471,
1251,
694,
12,
19471,
1251,
10251,
16,
5411,
4115,
694,
3443,
694,
16,
4115,
694,
1024,
16,
509,
618,
16,
509,
444,
4789,
13,
288,
3639,
2240,
12,
17753,
... |
public boolean isMacPlatform() { return false; } | public boolean isMacPlatform() { return false; } | public boolean isMacPlatform() { return false; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/9dc40dd0cbfd24b9ef61af3572708c18e3aeae2c/DefaultPlatform.java/buggy/drjava/src/edu/rice/cs/drjava/platform/DefaultPlatform.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
9990,
8201,
1435,
288,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
9990,
8201,
1435,
288,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
InputStream stream, IProgressMonitor monitor ) throws CoreException | String sourceFileName, IProgressMonitor monitor ) throws CoreException | private void doFinish( IPath containerName, String fileName, InputStream stream, IProgressMonitor monitor ) throws CoreException { // create a sample file monitor.beginTask( CREATING + fileName, 2 ); IResource resource = (IContainer) ResourcesPlugin.getWorkspace( ) .getRoot( ).findMember( containerName ); IContainer container = null; if ( resource == null || !resource.exists( ) || !( resource instanceof IContainer ) ) { // create folder if not exist IFolder folder = createFolderHandle( containerName ); UIUtil.createFolder( folder, monitor ); container = folder; } else { container = (IContainer) resource; } final IFile file = container.getFile( new Path( fileName ) ); try { if ( file.exists( ) ) { file.setContents( stream, true, true, monitor ); } else { file.create( stream, true, monitor ); } stream.close( ); } catch ( Exception e ) { } monitor.worked( 1 ); monitor.setTaskName( OPENING_FILE_FOR_EDITING ); getShell( ).getDisplay( ).asyncExec( new Runnable( ) { public void run( ) { IWorkbench workbench = PlatformUI.getWorkbench( ); IWorkbenchWindow window = workbench.getActiveWorkbenchWindow( ); IWorkbenchPage page = window.getActivePage( ); try { IEditorPart editorPart = IDE.openEditor( page, file, true ); ModuleHandle model = SessionHandleAdapter.getInstance( ) .getReportDesignHandle( ); if ( ReportPlugin.getDefault( ) .getEnableCommentPreference( ) ) { model.setStringProperty( ModuleHandle.COMMENTS_PROP, ReportPlugin.getDefault( ) .getCommentPreference( ) ); model.save( ); editorPart.doSave( null ); } // page.openEditor( new FileEditorInput( file ), // LibraryReportEditor.EDITOR_ID, // true ); } catch ( Exception e ) { ExceptionHandler.handle( e ); } } } ); monitor.worked( 1 ); fireLibraryChanged( fileName ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/76ebe408a984f02b49cbaf1597c0c7a0213901fe/NewLibraryWizardAdapterFactory.java/clean/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/internal/ui/ide/adapters/NewLibraryWizardAdapterFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
11641,
12,
467,
743,
20408,
16,
514,
3968,
16,
1082,
202,
4348,
1407,
16,
467,
5491,
7187,
6438,
262,
1216,
30015,
202,
95,
202,
202,
759,
752,
279,
3296,
585,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
741,
11641,
12,
467,
743,
20408,
16,
514,
3968,
16,
1082,
202,
4348,
1407,
16,
467,
5491,
7187,
6438,
262,
1216,
30015,
202,
95,
202,
202,
759,
752,
279,
3296,
585,
202,... |
assertTrue(count == rowsToAdd); | assertEquals(count, rowsToAdd); | public void testBigint0000() throws Exception { Connection cx = getConnection(); dropTable("#t0000"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0000 " + " (i decimal(28,10) not null, " + " s char(10) not null) "); final int rowsToAdd = 20; int count = 0; for (int i = 1; i <= rowsToAdd; i++) { String sql = "insert into #t0000 values (" + i + ", 'row" + i + "')"; count += stmt.executeUpdate(sql); } assertTrue(count == rowsToAdd); PreparedStatement pStmt = cx.prepareStatement("select i from #t0000 where i = ?"); pStmt.setLong(1, 7); ResultSet rs = pStmt.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertTrue(rs.getLong(1) == 7); assertTrue("Expected no result set", !rs.next()); pStmt.setLong(1, 8); rs = pStmt.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertTrue(rs.getLong(1) == 8); assertTrue("Expected no result set", !rs.next()); } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/711d47f475f1fc9d77fbce64a70d11606c38d145/TimestampTest.java/buggy/src/test/net/sourceforge/jtds/test/TimestampTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9901,
474,
2787,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
3640,
1388,
2932,
7,
88,
2787,
8863,
3639,
8056,
3480,
273,
9494,
18,
2640,
3406,
5621,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9901,
474,
2787,
1435,
1216,
1185,
288,
3639,
4050,
9494,
273,
6742,
5621,
3639,
3640,
1388,
2932,
7,
88,
2787,
8863,
3639,
8056,
3480,
273,
9494,
18,
2640,
3406,
5621,
3... |
{ "date_created", makeSqlStringFromDate(document.getCreatedDatetime()) }, { "date_modified", makeSqlStringFromDate(document.getModifiedDatetime())}, | { "date_created", Utility.makeSqlStringFromDate(document.getCreatedDatetime()) }, { "date_modified", Utility.makeSqlStringFromDate(document.getModifiedDatetime())}, | private int sqlInsertIntoMeta(DocumentDomainObject document) { final Number documentId = (Number) database.executeCommand(new InsertIntoTableDatabaseCommand("meta", new String[][]{ { "doc_type", document.getDocumentTypeId() + ""}, { "meta_headline", document.getHeadline()}, { "meta_text", document.getMenuText()}, { "meta_image", document.getMenuImage()}, { "owner_id", document.getCreator().getId() + ""}, { "permissions", makeSqlStringFromBoolean(document.isRestrictedOneMorePrivilegedThanRestrictedTwo())}, { "shared", makeSqlStringFromBoolean(document.isLinkableByOtherUsers())}, { "show_meta", makeSqlStringFromBoolean(document.isVisibleInMenusForUnauthorizedUsers())}, { "lang_prefix", document.getLanguageIso639_2()}, { "date_created", makeSqlStringFromDate(document.getCreatedDatetime()) }, { "date_modified", makeSqlStringFromDate(document.getModifiedDatetime())}, { "disable_search", makeSqlStringFromBoolean(document.isSearchDisabled())}, { "target", document.getTarget()}, { "activate", "1"}, { "archived_datetime", makeSqlStringFromDate(document.getArchivedDatetime())}, { "publisher_id", null != document.getPublisher() ? document.getPublisher().getId() + "" : null}, { "status", "" + document.getStatus()}, { "publication_start_datetime", makeSqlStringFromDate(document.getPublicationStartDatetime())}, { "publication_end_datetime", makeSqlStringFromDate(document.getPublicationEndDatetime())} })); return documentId.intValue(); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/e81260ba4ea5006ddc86c24938cbb4a791b0cc3b/DocumentMapper.java/clean/server/src/imcode/server/document/DocumentMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1847,
4600,
5952,
2781,
12,
2519,
3748,
921,
1668,
13,
288,
3639,
727,
3588,
28573,
273,
261,
1854,
13,
2063,
18,
8837,
2189,
12,
2704,
8040,
5952,
1388,
4254,
2189,
2932,
3901... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1847,
4600,
5952,
2781,
12,
2519,
3748,
921,
1668,
13,
288,
3639,
727,
3588,
28573,
273,
261,
1854,
13,
2063,
18,
8837,
2189,
12,
2704,
8040,
5952,
1388,
4254,
2189,
2932,
3901... |
public String launch(CmsObject cms, Map parameters) throws Exception { CmsMemoryMonitor monitor = OpenCms.getMemoryMonitor(); // make sure job is not launched twice if (m_currentlyRunning) { return null; } try { m_currentlyRunning = true; // update the memory status monitor.updateStatus(); // check if the system is in a low memory condition if (monitor.lowMemory()) { // log warning monitor.monitorWriteLog(true); // send warning email monitor.monitorSendEmail(true); // clean up caches monitor.clearCaches(); } // check if regular a log entry must be written if ((System.currentTimeMillis() - monitor.m_lastLogStatus) > monitor.m_intervalLog) { monitor.monitorWriteLog(false); } // check if the memory status email must be send if ((System.currentTimeMillis() - monitor.m_lastEmailStatus) > monitor.m_intervalEmail) { monitor.monitorSendEmail(false); } } finally { // make sure state is reset even if an error occurs, // otherwise MM will not be executed after an error m_currentlyRunning = false; } return null; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/f12328204dd4cd4c2d95d0595fb352cd0e93c475/CmsMemoryMonitor.java/buggy/src/org/opencms/monitor/CmsMemoryMonitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8037,
12,
4747,
921,
6166,
16,
1635,
1472,
13,
1216,
1185,
288,
3639,
2149,
6031,
7187,
6438,
273,
10319,
18,
588,
6031,
7187,
5621,
3639,
368,
1221,
3071,
1719,
353,
486,
2878... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8037,
12,
4747,
921,
6166,
16,
1635,
1472,
13,
1216,
1185,
288,
3639,
2149,
6031,
7187,
6438,
273,
10319,
18,
588,
6031,
7187,
5621,
3639,
368,
1221,
3071,
1719,
353,
486,
2878... | ||
touch( new File( outputDirectory ), goalItem ); | touch( outDir, goalItem ); } if ( artifactToFile != null ) { Artifact artifact = (Artifact) pluginArtifacts.get( artifactToFile ); File artifactFile = artifact.getFile(); String filename = artifactFile.getAbsolutePath().replace('/', '_').replace(':', '_') + ".txt"; touch( outDir, filename ); | public void execute() throws MojoExecutionException { touch( new File( outputDirectory ), "touch.txt" ); // This parameter should be aligned to the basedir as the parameter type is specified // as java.io.File if ( basedirAlignmentDirectory.getPath().equals( "target/test-basedir-alignment" ) ) { throw new MojoExecutionException( "basedirAlignmentDirectory not aligned" ); } touch( basedirAlignmentDirectory, "touch.txt" ); // Test parameter setting if ( pluginItem != null ) { touch( new File( outputDirectory ), pluginItem ); } if ( goalItem != null ) { touch( new File( outputDirectory ), goalItem ); } project.getBuild().setFinalName( "coreitified" ); } | 47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/73e549b231b86b280deaf4fa649280f5294c827f/CoreItMojo.java/clean/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
18780,
565,
288,
3639,
6920,
12,
394,
1387,
12,
29373,
262,
16,
315,
14084,
18,
5830,
6,
11272,
3639,
368,
1220,
1569,
1410,
506,
13939,
358,
326,
15573... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
1435,
3639,
1216,
18780,
565,
288,
3639,
6920,
12,
394,
1387,
12,
29373,
262,
16,
315,
14084,
18,
5830,
6,
11272,
3639,
368,
1220,
1569,
1410,
506,
13939,
358,
326,
15573... |
public void start(PipelineContext pipelineContext) { try { // Read configuration input final Config config = readConfig(pipelineContext); // Get data input information ProcessorInput dataInput = getInputByName(INPUT_DATA); ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT); final ExternalContext.Response response = externalContext.getResponse(); // Compute headers if (externalContext != null) { // Send an error if needed and return immediately int errorCode = config.errorCode; if (errorCode != DEFAULT_ERROR_CODE) { response.sendError(errorCode); return; } // Get last modification date and compute last modified if possible Object validity = getInputValidity(pipelineContext, dataInput); long lastModified = (validity != null) ? findLastModified(validity) : 0; if (logger.isDebugEnabled()) logger.debug("Last modified: " + lastModified); // Set caching headers and force revalidation response.setCaching(lastModified, true, true); // Check If-Modified-Since (conditional GET) and don't return content if condition is met if (!response.checkIfModifiedSince(lastModified, true)) { response.setStatus(ExternalContext.SC_NOT_MODIFIED); if (logger.isDebugEnabled()) logger.debug("Sending SC_NOT_MODIFIED"); return; } // Set status code response.setStatus(config.statusCode); // Set custom headers if (config.headers != null) { for(Iterator i = config.headers.iterator(); i.hasNext();){ String name = (String) i.next(); String value = (String) i.next(); response.setHeader(name, value); } } } // If we have an empty body, return w/o reading the data input if (config.empty) return; final OutputStream httpOutputStream = response.getOutputStream(); if (config.cacheUseLocalCache) { // If local caching of the data is enabled, use the caching API // We return a ResultStore final boolean[] read = new boolean[1]; ResultStore resultStore = (ResultStore) readCacheInputAsObject(pipelineContext, dataInput, new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { read[0] = true; if (logger.isDebugEnabled()) logger.debug("Output not cached"); try { ResultStoreOutputStream resultStoreOutputStream = new ResultStoreOutputStream(httpOutputStream); readInput(context, response, input, config, resultStoreOutputStream); resultStoreOutputStream.close(); return resultStoreOutputStream; } catch (IOException e) { throw new OXFException(e); } } }); // If the output was obtained from the cache, just write it if (!read[0]) { if (logger.isDebugEnabled()) logger.debug("Serializer output cached"); if (externalContext != null) { String encoding = getEncoding(config, null, DEFAULT_ENCODING); String contentType = getContentType(config, null, getDefaultContentType()); if (contentType != null) response.setContentType(contentType + "; charset=" + encoding); response.setContentLength(resultStore.length(pipelineContext)); } resultStore.replay(pipelineContext); } } else { // Local caching is not enabled readInput(pipelineContext, response, dataInput, config, httpOutputStream); httpOutputStream.close(); } } catch (Exception e) { throw new OXFException(e); } } | 51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/3d817d029c3136925140740dfbbeefc98b7c7cf9/HttpSerializerBase.java/buggy/src/java/org/orbeon/oxf/processor/serializer/HttpSerializerBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
12,
8798,
1042,
5873,
1042,
13,
288,
565,
775,
288,
1377,
368,
2720,
1664,
810,
1377,
727,
1903,
642,
273,
855,
809,
12,
14511,
1042,
1769,
1377,
368,
968,
501,
810,
177... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
12,
8798,
1042,
5873,
1042,
13,
288,
565,
775,
288,
1377,
368,
2720,
1664,
810,
1377,
727,
1903,
642,
273,
855,
809,
12,
14511,
1042,
1769,
1377,
368,
968,
501,
810,
177... | ||
bodyDeclarations = enumConstantDeclaration.bodyDeclarations(); | anonymousClassDeclaration = enumConstantDeclaration.getAnonymousClassDeclaration(); typeBinding = anonymousClassDeclaration.resolveBinding(); assertNotNull("No binding", typeBinding); assertTrue("Not a enum type", typeBinding.isEnum()); assertNotNull("No anonymous class", anonymousClassDeclaration); checkSourceRange(anonymousClassDeclaration, "{\n" + " double eval(double x, double y) { return x - y; }\n" + " }", source); bodyDeclarations = anonymousClassDeclaration.bodyDeclarations(); | public void test0026() throws JavaModelException { ICompilationUnit sourceUnit = getCompilationUnit("Converter15" , "src", "test0026", "X.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runJLS3Conversion(sourceUnit, true, true); assertTrue("Not a compilation unit", result.getNodeType() == ASTNode.COMPILATION_UNIT); CompilationUnit compilationUnit = (CompilationUnit) result; assertProblemsSize(compilationUnit, 0); char[] source = sourceUnit.getSource().toCharArray(); ASTNode node = getASTNode(compilationUnit, 0); assertEquals("Not an enum declaration", ASTNode.ENUM_DECLARATION, node.getNodeType()); EnumDeclaration enumDeclaration = (EnumDeclaration) node; List modifiers = enumDeclaration.modifiers(); assertEquals("Wrong number of modifiers", 2, modifiers.size()); IExtendedModifier extendedModifier = (IExtendedModifier) modifiers.get(0); assertTrue("Not a modifier", extendedModifier instanceof Modifier); Modifier modifier = (Modifier) extendedModifier; checkSourceRange(modifier, "public", source); extendedModifier = (IExtendedModifier) modifiers.get(1); assertTrue("Not a modifier", extendedModifier instanceof Modifier); modifier = (Modifier) extendedModifier; checkSourceRange(modifier, "abstract", source); assertEquals("wrong name", "X", enumDeclaration.getName().getIdentifier()); List enumConstants = enumDeclaration.enumConstants(); assertEquals("wrong size", 4, enumConstants.size()); List bodyDeclarations = enumDeclaration.bodyDeclarations(); assertEquals("wrong size", 2, bodyDeclarations.size()); EnumConstantDeclaration enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(0); checkSourceRange(enumConstantDeclaration.getName(), "PLUS", source); checkSourceRange(enumConstantDeclaration, "PLUS {\n" + " double eval(double x, double y) { return x + y; }\n" + " }", source); assertEquals("wrong size", 0, enumConstantDeclaration.arguments().size()); bodyDeclarations = enumConstantDeclaration.bodyDeclarations(); assertEquals("wrong size", 1, bodyDeclarations.size()); BodyDeclaration bodyDeclaration = (BodyDeclaration) bodyDeclarations.get(0); assertEquals("Not a method declaration", ASTNode.METHOD_DECLARATION, bodyDeclaration.getNodeType()); MethodDeclaration methodDeclaration = (MethodDeclaration) bodyDeclaration; checkSourceRange(methodDeclaration.getName(), "eval", source); checkSourceRange(methodDeclaration, "double eval(double x, double y) { return x + y; }", source); assertEquals("wrong size", 0, enumConstantDeclaration.arguments().size()); enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(1); checkSourceRange(enumConstantDeclaration.getName(), "MINUS", source); checkSourceRange(enumConstantDeclaration, "MINUS {\n" + " double eval(double x, double y) { return x - y; }\n" + " }", source); bodyDeclarations = enumConstantDeclaration.bodyDeclarations(); assertEquals("wrong size", 1, bodyDeclarations.size()); bodyDeclaration = (BodyDeclaration) bodyDeclarations.get(0); assertEquals("Not a method declaration", ASTNode.METHOD_DECLARATION, bodyDeclaration.getNodeType()); methodDeclaration = (MethodDeclaration) bodyDeclaration; checkSourceRange(methodDeclaration.getName(), "eval", source); checkSourceRange(methodDeclaration, "double eval(double x, double y) { return x - y; }", source); assertEquals("wrong size", 0, enumConstantDeclaration.arguments().size()); enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(2); checkSourceRange(enumConstantDeclaration.getName(), "TIMES", source); checkSourceRange(enumConstantDeclaration, "TIMES {\n" + " double eval(double x, double y) { return x * y; }\n" + " }", source); bodyDeclarations = enumConstantDeclaration.bodyDeclarations(); assertEquals("wrong size", 1, bodyDeclarations.size()); bodyDeclaration = (BodyDeclaration) bodyDeclarations.get(0); assertEquals("Not a method declaration", ASTNode.METHOD_DECLARATION, bodyDeclaration.getNodeType()); methodDeclaration = (MethodDeclaration) bodyDeclaration; checkSourceRange(methodDeclaration.getName(), "eval", source); checkSourceRange(methodDeclaration, "double eval(double x, double y) { return x * y; }", source); assertEquals("wrong size", 0, enumConstantDeclaration.arguments().size()); enumConstantDeclaration = (EnumConstantDeclaration) enumConstants.get(3); checkSourceRange(enumConstantDeclaration.getName(), "DIVIDED_BY", source); checkSourceRange(enumConstantDeclaration, "DIVIDED_BY {\n" + " double eval(double x, double y) { return x / y; }\n" + " }", source); bodyDeclarations = enumConstantDeclaration.bodyDeclarations(); assertEquals("wrong size", 1, bodyDeclarations.size()); bodyDeclaration = (BodyDeclaration) bodyDeclarations.get(0); assertEquals("Not a method declaration", ASTNode.METHOD_DECLARATION, bodyDeclaration.getNodeType()); methodDeclaration = (MethodDeclaration) bodyDeclaration; checkSourceRange(methodDeclaration.getName(), "eval", source); checkSourceRange(methodDeclaration, "double eval(double x, double y) { return x / y; }", source); assertEquals("wrong size", 0, enumConstantDeclaration.arguments().size()); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/2978110db99779d239d94c1b0f5bcb0af9289202/ASTConverter15Test.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
713,
5558,
1435,
1216,
5110,
1488,
503,
288,
202,
202,
45,
19184,
2802,
1084,
2802,
273,
336,
19184,
2802,
2932,
5072,
3600,
6,
269,
315,
4816,
3113,
315,
3813,
713,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
713,
5558,
1435,
1216,
5110,
1488,
503,
288,
202,
202,
45,
19184,
2802,
1084,
2802,
273,
336,
19184,
2802,
2932,
5072,
3600,
6,
269,
315,
4816,
3113,
315,
3813,
713,
... |
PsiTypeParameter[] typeParameters = collectionClass.getTypeParameters(); | PsiTypeParameterList typeParameterList = collectionClass.getTypeParameterList(); if (typeParameterList == null) return; PsiTypeParameter[] typeParameters = typeParameterList.getTypeParameters(); | private void suggestNamesForCollectionInheritors(final PsiType type, final VariableKind variableKind, List<String> suggestions) { if (!(type instanceof PsiClassType)) return; PsiClassType classType = (PsiClassType)type; PsiClassType.ClassResolveResult resolved = classType.resolveGenerics(); if (resolved.getElement() == null) return; final PsiManager manager = PsiManager.getInstance(myProject); final PsiClass collectionClass = manager.findClass("java.util.Collection", resolved.getElement().getResolveScope()); if (collectionClass == null) return; if (InheritanceUtil.isInheritorOrSelf(resolved.getElement(), collectionClass, true)) { final PsiSubstitutor substitutor; if (!manager.areElementsEquivalent(resolved.getElement(), collectionClass)) { substitutor = TypeConversionUtil.getClassSubstitutor(collectionClass, resolved.getElement(), PsiSubstitutor.EMPTY); } else { substitutor = PsiSubstitutor.EMPTY; } PsiTypeParameter[] typeParameters = collectionClass.getTypeParameters(); if (typeParameters.length == 0) return; PsiType componentTypeParameter = substitutor.substitute(typeParameters[0]); if (componentTypeParameter instanceof PsiClassType) { PsiClass componentClass = ((PsiClassType)componentTypeParameter).resolve(); if (componentClass instanceof PsiTypeParameter) { if (collectionClass.getManager().areElementsEquivalent(((PsiTypeParameter)componentClass).getOwner(), resolved.getElement())) { PsiType componentType = resolved.getSubstitutor().substitute((PsiTypeParameter)componentClass); if (componentType == null) return; String typeName = normalizeTypeName(getTypeName(componentType)); if (typeName != null) { suggestions.addAll(Arrays.asList(getSuggestionsByName(typeName, variableKind, true))); } } } } } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/dac137e8303a648ac5e23643927e8b76ea1f60e0/CodeStyleManagerImpl.java/clean/source/com/intellij/psi/impl/source/codeStyle/CodeStyleManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
19816,
1557,
1290,
2532,
14216,
1383,
12,
6385,
453,
7722,
559,
618,
16,
4766,
10402,
727,
7110,
5677,
2190,
5677,
16,
4766,
10402,
987,
32,
780,
34,
17969,
13,
288,
565,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
19816,
1557,
1290,
2532,
14216,
1383,
12,
6385,
453,
7722,
559,
618,
16,
4766,
10402,
727,
7110,
5677,
2190,
5677,
16,
4766,
10402,
987,
32,
780,
34,
17969,
13,
288,
565,
309,
... |
return Scriptable.NOT_FOUND; | return null; | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case CONSTRUCTOR_ID: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f).jsFunction_toString(); case Id_valueOf: return wrap_boolean(realThis(thisObj, f).jsFunction_valueOf()); } return Scriptable.NOT_FOUND; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeBoolean.java/buggy/js/rhino/src/org/mozilla/javascript/NativeBoolean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
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,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
iVisited.accept(_Payload); | _Payload.visitFCallNode(iVisited); | public void visitFCallNode(FCallNode iVisited) { iVisited.accept(_Payload); for (Node node = iVisited.getArgsNode(); node != null; node = node.getNextNode()) { node.getHeadNode().accept(this); } } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/buggy/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
42,
1477,
907,
12,
42,
1477,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
202,
1884,
261,
907,
756,
273,
277,
30019,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
42,
1477,
907,
12,
42,
1477,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
202,
1884,
261,
907,
756,
273,
277,
30019,
18,
588,
... |
dataOut.writeShort(info.getCommandId()); bs.readBoolean(); | dataOut.writeShort(info.getCommandId()); bs.readBoolean(); | public void tightMarshal2(OpenWireFormat wireFormat, Object o, DataOutputStream dataOut, BooleanStream bs) throws IOException { super.tightMarshal2(wireFormat, o, dataOut, bs); BaseCommand info = (BaseCommand)o; dataOut.writeShort(info.getCommandId()); bs.readBoolean(); } | 11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/cd0fb615deb6accf8dfdc07fbe58b53cf6b972a2/BaseCommandMarshaller.java/buggy/activemq-core/src/main/java/org/apache/activemq/openwire/v1/BaseCommandMarshaller.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26066,
8105,
22,
12,
3678,
15249,
1630,
6636,
1630,
16,
1033,
320,
16,
28680,
501,
1182,
16,
3411,
1228,
7081,
13,
1216,
1860,
288,
3639,
2240,
18,
88,
750,
8105,
22,
12,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26066,
8105,
22,
12,
3678,
15249,
1630,
6636,
1630,
16,
1033,
320,
16,
28680,
501,
1182,
16,
3411,
1228,
7081,
13,
1216,
1860,
288,
3639,
2240,
18,
88,
750,
8105,
22,
12,
145... |
if (element instanceof Saveable) { Saveable saveable = (Saveable) element; return saveable.getName() + separator + saveable.getToolTipText(); | if (element instanceof IEditorReference) { IEditorReference editorReference = (IEditorReference) element; StringBuffer result = new StringBuffer(); if (editorReference.isDirty()) { result.append(DIRTY_MARK); } result.append(editorReference.getName()); result.append(separator); result.append(editorReference.getTitleToolTip()); return result.toString(); | public String getText(Object element) { String separator = " - "; //$NON-NLS-1$ if (element instanceof Saveable) { Saveable saveable = (Saveable) element; return saveable.getName() + separator + saveable.getToolTipText(); } if (element instanceof IViewDescriptor) { IViewDescriptor viewDescriptor = (IViewDescriptor) element; return viewDescriptor.getLabel(); } if (element instanceof IPerspectiveDescriptor) { IPerspectiveDescriptor perspectiveDescriptor = (IPerspectiveDescriptor) element; return perspectiveDescriptor.getLabel(); } if (element instanceof IPreferenceNode) { IPreferenceNode preferenceNode = (IPreferenceNode) element; IPreferencePage page = preferenceNode.getPage(); if (page != null && page.getDescription() != null && page.getDescription().length() != 0) { return preferenceNode.getLabelText() + separator + page.getDescription(); } return preferenceNode.getLabelText(); } if (element instanceof IWizardDescriptor) { IWizardDescriptor wizardDescriptor = (IWizardDescriptor) element; return wizardDescriptor.getLabel() + separator + wizardDescriptor.getDescription(); } if (element instanceof ActionContributionItem) { ActionContributionItem item = (ActionContributionItem) element; IAction action = item.getAction(); if (action.getToolTipText() != null && action.getToolTipText().length() != 0) { return LegacyActionTools.removeMnemonics(action.getText()) + separator + action.getToolTipText(); } return LegacyActionTools.removeMnemonics(action.getText()); } if (element instanceof ParameterizedCommand) { ParameterizedCommand command = (ParameterizedCommand) element; try { Command nestedCommand = command.getCommand(); if (nestedCommand != null && nestedCommand.getDescription() != null && nestedCommand.getDescription().length() != 0) { return command.getName() + separator + nestedCommand.getDescription(); } return command.getName(); } catch (NotDefinedException e) { return command.toString(); } } return super.getText(element); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d252125e6eaac6b8d8b22129234b01cb5d6d5a19/CtrlEAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/incubator/CtrlEAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
6701,
12,
921,
930,
13,
288,
1082,
202,
780,
4182,
273,
315,
300,
13636,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
430,
261,
2956,
1276,
7074,
429,
13,
288,
9506,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
6701,
12,
921,
930,
13,
288,
1082,
202,
780,
4182,
273,
315,
300,
13636,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
430,
261,
2956,
1276,
7074,
429,
13,
288,
9506,
20... |
if (!viewer.getTable().isDisposed()) viewer.refresh(true); } | IUndoContext context = selectContext(); if (fContext != context) { setContext(context); } } | public void run() { if (!viewer.getTable().isDisposed()) viewer.refresh(true); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/50b0f4b798ee84ccffa054a9faa539415a2fbef7/UndoHistoryView.java/clean/examples/org.eclipse.ui.examples.undo/Eclipse UI Examples Undo/org/eclipse/ui/examples/undo/views/UndoHistoryView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
2398,
202,
430,
16051,
25256,
18,
588,
1388,
7675,
291,
1669,
7423,
10756,
2398,
202,
202,
25256,
18,
9144,
12,
3767,
1769,
2398,
289,
2,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
2398,
202,
430,
16051,
25256,
18,
588,
1388,
7675,
291,
1669,
7423,
10756,
2398,
202,
202,
25256,
18,
9144,
12,
3767,
1769,
2398,
289,
2,
-100,
-100,
-100,
-1... |
asm.emitL (T1, 8, SP); | asm.emitL (T2, 8, SP); | protected final void emit_unresolved_putfield(VM_Field fieldRef) { if (VM_Interface.NEEDS_WRITE_BARRIER && !fieldRef.getType().isPrimitiveType()) { VM_Barriers.compileUnresolvedPutfieldBarrier(asm, spSaveAreaOffset, fieldRef.getDictionaryId()); } emitDynamicLinkingSequence(fieldRef); // leaves field offset in T2 if (fieldRef.getSize() == 4) { // field is one word asm.emitL (T1, 4, SP); // T1 = object reference asm.emitL (T0, 0, SP); // T0 = value asm.emitCAL(SP, 8, SP); asm.emitSTX(T0, T2, T1); } else { // field is two words (double or long) if (VM.VerifyAssertions) VM._assert(fieldRef.getSize() == 8); asm.emitLFD (F0, 0, SP); // F0 = doubleword value asm.emitL (T1, 8, SP); // T1 = object reference asm.emitCAL (SP, 12, SP); asm.emitSTFDX(F0, T2, T1); } } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/65f2883649d25755957e09509515afc9265316f0/VM_Compiler.java/buggy/rvm/src/vm/arch/powerPC/compilers/baseline/VM_Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
318,
11792,
67,
458,
1518,
12,
7397,
67,
974,
652,
1957,
13,
288,
565,
309,
261,
7397,
67,
1358,
18,
5407,
2056,
55,
67,
11677,
67,
21908,
2259,
654,
597,
40... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
918,
3626,
67,
318,
11792,
67,
458,
1518,
12,
7397,
67,
974,
652,
1957,
13,
288,
565,
309,
261,
7397,
67,
1358,
18,
5407,
2056,
55,
67,
11677,
67,
21908,
2259,
654,
597,
40... |
boolean bEnableUI = cbVisible.getSelection(); grpOutline.setEnabled(bEnableUI); if (this.bPositionEnabled) { lblPosition.setEnabled(bEnableUI); cmbPosition.setEnabled(bEnableUI); } lblFill.setEnabled(bEnableUI); lblShadow.setEnabled(bEnableUI); lblFont.setEnabled(bEnableUI); fdcFont.setEnabled(bEnableUI); fccBackground.setEnabled(bEnableUI); fccShadow.setEnabled(bEnableUI); icInsets.setEnabled(bEnableUI); liacOutline.setEnabled(bEnableUI); } fireEvent(eLabel); } | boolean bEnableUI = cbVisible.getSelection( ); grpOutline.setEnabled( bEnableUI ); if ( this.bPositionEnabled ) { lblPosition.setEnabled( bEnableUI ); cmbPosition.setEnabled( bEnableUI ); } lblFill.setEnabled( bEnableUI ); lblShadow.setEnabled( bEnableUI ); lblFont.setEnabled( bEnableUI ); fdcFont.setEnabled( bEnableUI ); fccBackground.setEnabled( bEnableUI ); fccShadow.setEnabled( bEnableUI ); icInsets.setEnabled( bEnableUI ); liacOutline.setEnabled( bEnableUI ); } fireEvent( eLabel ); } | public void widgetSelected(SelectionEvent e) { Event eLabel = new Event(); eLabel.widget = this; if (e.getSource().equals(cmbPosition)) { eLabel.data = Position.get(cmbPosition.getText()); eLabel.type = POSITION_CHANGED_EVENT; } else if (e.getSource().equals(cbVisible)) { eLabel.data = new Boolean(cbVisible.getSelection()); eLabel.type = VISIBILITY_CHANGED_EVENT; boolean bEnableUI = cbVisible.getSelection(); grpOutline.setEnabled(bEnableUI); if (this.bPositionEnabled) { lblPosition.setEnabled(bEnableUI); cmbPosition.setEnabled(bEnableUI); } lblFill.setEnabled(bEnableUI); lblShadow.setEnabled(bEnableUI); lblFont.setEnabled(bEnableUI); fdcFont.setEnabled(bEnableUI); fccBackground.setEnabled(bEnableUI); fccShadow.setEnabled(bEnableUI); icInsets.setEnabled(bEnableUI); liacOutline.setEnabled(bEnableUI); } fireEvent(eLabel); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/bdb7b6c5463f7273d9f1038e97552808a8df1f58/LabelAttributesComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LabelAttributesComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
565,
288,
3639,
2587,
425,
2224,
273,
394,
2587,
5621,
3639,
425,
2224,
18,
6587,
273,
333,
31,
3639,
309,
261,
73,
18,
588,
1830,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
565,
288,
3639,
2587,
425,
2224,
273,
394,
2587,
5621,
3639,
425,
2224,
18,
6587,
273,
333,
31,
3639,
309,
261,
73,
18,
588,
1830,
7675,
... |
if((poissonQty > 0) && | if((taskQty > 0) && | public void generateDemandTasks(long start, long duration, Collection relevantProjectSupplys) { regenerateProjectionHash(relevantProjectSupplys); long end = start + duration; Iterator gpTasksIt = projHash.keySet().iterator(); while (gpTasksIt.hasNext()) { Task gpTask = (Task) gpTasksIt.next(); ArrayList supplyTasks = new ArrayList(); HashMap assetMap = (HashMap) projHash.get(gpTask); Iterator assetsIt = assetMap.keySet().iterator(); while (assetsIt.hasNext()) { Asset consumed = (Asset) assetsIt.next(); Collection projTasks = (Collection) (assetMap.get(consumed)); double totalQty = deriveTotalQty(start,end,projTasks); int poissonQty = poissonGen.nextPoisson(totalQty); Iterator projTaskIt = projTasks.iterator(); //This should not be a while, but an if if((poissonQty > 0) && (projTaskIt.hasNext())) { supplyTasks.add(createNewDemandTask(gpTask, (Task) projTaskIt.next(), consumed, start, end, poissonQty)); } } if(!supplyTasks.isEmpty()){ addToAndPublishExpansion(gpTask,supplyTasks); } } } | 11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/637ce36b714dcae25bae68899760a391942e45bc/DemandTaskGenerator.java/buggy/bbn/src/org/cougaar/logistics/plugin/demand/DemandTaskGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2103,
25461,
6685,
12,
5748,
787,
16,
1525,
3734,
16,
2200,
9368,
4109,
3088,
1283,
87,
13,
288,
565,
20821,
14789,
2310,
12,
27719,
4109,
3088,
1283,
87,
1769,
565,
1525,
679,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
25461,
6685,
12,
5748,
787,
16,
1525,
3734,
16,
2200,
9368,
4109,
3088,
1283,
87,
13,
288,
565,
20821,
14789,
2310,
12,
27719,
4109,
3088,
1283,
87,
1769,
565,
1525,
679,... |
static int getGroupFirstRowIndex( int groupLevel, int groupIndex, List[] groups, ResultSetCache smartCache ) throws DataException | public static int getGroupFirstRowIndex( int groupLevel, int groupIndex, List[] groups, int count ) | static int getGroupFirstRowIndex( int groupLevel, int groupIndex, List[] groups, ResultSetCache smartCache ) throws DataException { int rowIndex; if ( groupIndex < groups[groupLevel - 1].size( ) ) { GroupInfo groupInfo; for ( int i = groupLevel - 1; i < groups.length; i++ ) { groupInfo = findGroup( i, groupIndex, groups ); groupIndex = groupInfo.firstChild; } rowIndex = groupIndex; } else { rowIndex = smartCache.getCount( ); } return rowIndex; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/5ec5d7f41b491569b61310c9e9a0a719aa271a7c/GroupUtil.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/group/GroupUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
509,
11751,
3759,
21769,
12,
509,
1041,
2355,
16,
509,
1041,
1016,
16,
1082,
202,
682,
8526,
3252,
16,
10842,
1649,
13706,
1649,
262,
1216,
1910,
503,
202,
95,
202,
202,
474,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
509,
11751,
3759,
21769,
12,
509,
1041,
2355,
16,
509,
1041,
1016,
16,
1082,
202,
682,
8526,
3252,
16,
10842,
1649,
13706,
1649,
262,
1216,
1910,
503,
202,
95,
202,
202,
474,
... |
Display.getCurrent().asyncExec(updateTextField); | SWTUtil.greedyExec(Display.getCurrent(), updateTextField); | public void verifyText(VerifyEvent e) { // If the edit mask is already full, don't let the user type // any new characters if (editMaskParser.isComplete() && // should eventually be .isFull() to account for optional characters e.start == e.end && e.text.length() > 0) { e.doit=false; return; } oldSelection = selection; Point selectionRange = text.getSelection(); selection = selectionRange.x; if (!updating) { replacedSelectedText = false; if (selectionRange.y - selectionRange.x > 0 && e.text.length() > 0) { replacedSelectedText = true; } Display.getCurrent().asyncExec(updateTextField); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/2f342e01b22cf2178626fb4ebbf0b5fb0fee31f7/EditMask.java/buggy/examples/org.eclipse.jface.examples.databinding/src/org/eclipse/jface/examples/databinding/mask/EditMask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
3929,
1528,
12,
8097,
1133,
425,
13,
288,
540,
368,
971,
326,
3874,
3066,
353,
1818,
1983,
16,
2727,
1404,
2231,
326,
729,
618,
540,
368,
1281,
394,
3949,
540,
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,
3196,
202,
482,
918,
3929,
1528,
12,
8097,
1133,
425,
13,
288,
540,
368,
971,
326,
3874,
3066,
353,
1818,
1983,
16,
2727,
1404,
2231,
326,
729,
618,
540,
368,
1281,
394,
3949,
540,
309,
261,... |
lineStartPos = 0; toSkip = -pos; pos = 0; return toSkip; | int ch; int i = pos; int count = limit - i; if (count > to_do) count = to_do; while (--count >= 0 && (ch = buffer[i]) != '\r' && ch != '\n') i++; to_do -= i - pos; if (to_do <= 0) break; ch = read(); if (ch < 0) break; to_do--; | public long skip(long n) throws IOException { long toSkip = n; if (n < 0) { toSkip += pos; if (toSkip < 0) { lineStartPos = 0; toSkip = -pos; pos = 0; return toSkip; } if (toSkip < lineStartPos) lineStartPos = -1; pos = (int) toSkip; return n; } while (toSkip > 0 && read() >= 0) --toSkip; return n-toSkip; } | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/b771dc468e99200d66f25e9e1505c760debb93cf/LineBufferedReader.java/buggy/kawa/lang/LineBufferedReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1525,
2488,
12,
5748,
290,
13,
1216,
1860,
225,
288,
565,
1525,
358,
6368,
273,
290,
31,
565,
309,
261,
82,
411,
374,
13,
1377,
288,
202,
869,
6368,
1011,
949,
31,
202,
430,
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,
282,
1071,
1525,
2488,
12,
5748,
290,
13,
1216,
1860,
225,
288,
565,
1525,
358,
6368,
273,
290,
31,
565,
309,
261,
82,
411,
374,
13,
1377,
288,
202,
869,
6368,
1011,
949,
31,
202,
430,
261... |
return RubyFixnum.newFixnum(runtime, cal.get(Calendar.DAY_OF_WEEK) - 1); | return getRuntime().newFixnum(cal.get(Calendar.DAY_OF_WEEK) - 1); | public RubyInteger wday() { return RubyFixnum.newFixnum(runtime, cal.get(Calendar.DAY_OF_WEEK) - 1); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyTime.java/buggy/src/org/jruby/RubyTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
341,
2881,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
771,
18,
588,
12,
7335,
18,
10339,
67,
3932,
67,
20274,
13,
300,
404,
1769,
565,
289,
2,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
341,
2881,
1435,
288,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12,
771,
18,
588,
12,
7335,
18,
10339,
67,
3932,
67,
20274,
13,
300,
404,
1769,
565,
289,
2,
-100,
-10... |
vars[i] = theData.itsInArgs[i]; | vars[i] = args[i]; | public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; final Scriptable undefined = Undefined.instance; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = undefined; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = undefined; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; Scriptable theThisObj = theData.itsThisObj; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean( ScriptRuntime.instanceOf(scope, lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(lhs, rhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop--]; lhs = stack[stackTop]; // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : stack[++stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theThisObj; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[stackTop--]; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw jsx; stack[0] = jsx; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) throw jx; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/54e6f7c03ff7e92a44c059a5aaac54521ad9a7db/Interpreter.java/clean/js/rhino/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
... |
return blockNames != null ? blockNames.contains(name) : false || (next != null && next.isDefined(name)); | return (blockNames != null ? blockNames.contains(name) : false) || (next != null && next.isDefined(name)); | public boolean isDefined(String name) { return blockNames != null ? blockNames.contains(name) : false || (next != null && next.isDefined(name)); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/9e6ae9722245fb5d74254985e21d50a65c7e80c3/BlockNamesElement.java/clean/src/org/jruby/parser/BlockNamesElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
25048,
12,
780,
508,
13,
288,
3639,
327,
261,
2629,
1557,
480,
446,
692,
1203,
1557,
18,
12298,
12,
529,
13,
294,
629,
13,
747,
261,
4285,
480,
446,
597,
1024,
18,
291,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
25048,
12,
780,
508,
13,
288,
3639,
327,
261,
2629,
1557,
480,
446,
692,
1203,
1557,
18,
12298,
12,
529,
13,
294,
629,
13,
747,
261,
4285,
480,
446,
597,
1024,
18,
291,
81... |
this.global = global; | this.type = type; | ParameterNode(String name, Expr select, boolean global) { this.name = name; this.select = select; this.global = global; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5498,
907,
12,
780,
508,
16,
8074,
2027,
16,
1250,
2552,
13,
225,
288,
565,
333,
18,
529,
273,
508,
31,
565,
333,
18,
4025,
273,
2027,
31,
565,
333,
18,
723,
273,
618,
31,
225,
289,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5498,
907,
12,
780,
508,
16,
8074,
2027,
16,
1250,
2552,
13,
225,
288,
565,
333,
18,
529,
273,
508,
31,
565,
333,
18,
4025,
273,
2027,
31,
565,
333,
18,
723,
273,
618,
31,
225,
289,... |
sb.append('<' + parser.getName() + '>'); | sb.append('<').append(parser.getName()).append('>'); | public IQ parseIQ(XmlPullParser parser) throws Exception { StringBuffer sb = new StringBuffer(); try { int event = parser.getEventType(); // get the content while (true) { switch (event) { case XmlPullParser.TEXT: sb.append(parser.getText()); break; case XmlPullParser.START_TAG: sb.append('<' + parser.getName() + '>'); break; case XmlPullParser.END_TAG: sb.append("</" + parser.getName() + '>'); break; default: } if (event == XmlPullParser.END_TAG && "vCard".equals(parser.getName())) break; event = parser.next(); } } catch (XmlPullParserException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } String xmlText = sb.toString(); VCard vCard = new VCard(); try { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder(); Document document = documentBuilder.parse(new ByteArrayInputStream(xmlText.getBytes())); new VCardReader(vCard, document).initializeFields(); } catch (Exception e) { e.printStackTrace(System.err); } return vCard; } | 966 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/966/237ab44301a7f04522e1c943e66dc5aad4f17a33/VCardProvider.java/clean/source/org/jivesoftware/smackx/provider/VCardProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
26950,
1109,
45,
53,
12,
4432,
9629,
2678,
2082,
13,
1216,
1185,
288,
1377,
6674,
2393,
273,
394,
6674,
5621,
1377,
775,
288,
1850,
509,
871,
273,
2082,
18,
588,
16346,
5621,
1850,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26950,
1109,
45,
53,
12,
4432,
9629,
2678,
2082,
13,
1216,
1185,
288,
1377,
6674,
2393,
273,
394,
6674,
5621,
1377,
775,
288,
1850,
509,
871,
273,
2082,
18,
588,
16346,
5621,
1850,
... |
return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); | return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); | public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); if (results[0].compareTo(BigInteger.ZERO) <= 0 && results[1].compareTo(BigInteger.ZERO) != 0) { return bigNorm(getRuntime(), results[0].subtract(BigInteger.ONE)); } return bigNorm(getRuntime(), results[0]); } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/a25fc494ea7daeb4b5b479e0173372332cf7d4ac/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
2892,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
2892,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327... |
} | } | public void present(IWContext iwc) { try { try { season = getBusiness().getOngoingSeason(); } catch (FinderException fe) { try { season = getBusiness().getNextSeason(); } catch (FinderException fex) { add(getErrorText(localize("no_season_found", "No season found."))); return; } } switch (parseAction(iwc)) { case ACTION_PHASE_ONE: showPhaseOne(iwc); break; case ACTION_PHASE_TWO: showPhaseTwo(iwc); break; case ACTION_OVERVIEW: showOverview(iwc); break; case ACTION_SAVE: save(iwc); break;} } catch (RemoteException re) { throw new IBORuntimeException(re); } } | 14660 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14660/653fa65f3a2fce03cd3bc1b62ba1786ab8a0d1cf/ServiceOfferApplication.java/clean/src/java/is/idega/idegaweb/egov/serviceoffer/presentation/ServiceOfferApplication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3430,
12,
45,
59,
1042,
25522,
71,
13,
288,
202,
202,
698,
288,
1082,
202,
698,
288,
9506,
202,
30321,
273,
31328,
6336,
7675,
588,
1398,
8162,
1761,
2753,
5621,
1082,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3430,
12,
45,
59,
1042,
25522,
71,
13,
288,
202,
202,
698,
288,
1082,
202,
698,
288,
9506,
202,
30321,
273,
31328,
6336,
7675,
588,
1398,
8162,
1761,
2753,
5621,
1082,
20... |
if (curr instanceof IType) { | if (curr instanceof IType && !TypeFilter.isFiltered((IType) curr)) { | public static void getAmbiguosTypeReferenceProposals(IInvocationContext context, IProblemLocation problem, Collection proposals) throws CoreException { final ICompilationUnit cu= context.getCompilationUnit(); int offset= problem.getOffset(); int len= problem.getLength(); IJavaElement[] elements= cu.codeSelect(offset, len); for (int i= 0; i < elements.length; i++) { IJavaElement curr= elements[i]; if (curr instanceof IType) { String qualifiedTypeName= JavaModelUtil.getFullyQualifiedName((IType) curr); String label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.importexplicit.description", qualifiedTypeName); //$NON-NLS-1$ Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_IMPDECL); CUCorrectionProposal proposal= new CUCorrectionProposal(label, cu, 5, image); TextBuffer buffer= null; try { buffer= TextBuffer.acquire((IFile)WorkingCopyUtil.getOriginal(cu).getResource()); ImportRewrite importRewrite= new ImportRewrite(cu, JavaPreferencesSettings.getCodeGenerationSettings()); importRewrite.addImport(qualifiedTypeName); importRewrite.setFindAmbiguosImports(true); proposal.getRootTextEdit().addChild(importRewrite.createEdit(buffer)); proposals.add(proposal); } finally { if (buffer != null) TextBuffer.release(buffer); } } } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/63c4c3567b856b603ac3174db29857049fedcd1d/UnresolvedElementsSubProcessor.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
4506,
1627,
8810,
538,
7534,
626,
22536,
12,
45,
9267,
1042,
819,
16,
467,
13719,
2735,
6199,
16,
2200,
450,
22536,
13,
1216,
30015,
288,
202,
202,
6385,
467,
19184,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
4506,
1627,
8810,
538,
7534,
626,
22536,
12,
45,
9267,
1042,
819,
16,
467,
13719,
2735,
6199,
16,
2200,
450,
22536,
13,
1216,
30015,
288,
202,
202,
6385,
467,
19184,
... |
if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); | if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); | public int execute(Object key, Object value, Object arg) { // cast args RubyId id = (RubyId) key; MethodNode body = (MethodNode) value; RubyArray ary = (RubyArray) arg; if ((body.getNoex() & (Constants.NOEX_PRIVATE | Constants.NOEX_PROTECTED)) == 0) { RubyString name = RubyString.m_newString(getRuby(), id.toName()); if (ary.m_includes(name).isFalse()) { if (body.getBodyNode() == null) { ary.push(getRuby().getNil()); } ary.push(name); } } else if ( body.getBodyNode() != null && body.getBodyNode() instanceof ZSuperNode) { ary.push(getRuby().getNil()); ary.push(RubyString.m_newString(getRuby(), id.toName())); } return RubyMapMethod.CONTINUE; } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
509,
1836,
12,
921,
498,
16,
1033,
460,
16,
1033,
1501,
13,
288,
9506,
202,
759,
4812,
833,
9506,
202,
54,
10340,
548,
612,
273,
261,
54,
10340,
548,
13,
498,
31,
9506,
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,
1875,
202,
482,
509,
1836,
12,
921,
498,
16,
1033,
460,
16,
1033,
1501,
13,
288,
9506,
202,
759,
4812,
833,
9506,
202,
54,
10340,
548,
612,
273,
261,
54,
10340,
548,
13,
498,
31,
9506,
202... |
return this.cdCurrent; | return cdCurrent == null || cdCurrent.isSetTransparency( ) && cdCurrent.getTransparency( ) == 0 ? null : cdCurrent; | public ColorDefinition getFontColor( ) { return this.cdCurrent; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c60a4815037b62e9358af2625eb6236e7c979d0f/FontDefinitionDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5563,
1852,
18776,
2957,
12,
262,
202,
95,
202,
202,
2463,
333,
18,
4315,
3935,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
5563,
1852,
18776,
2957,
12,
262,
202,
95,
202,
202,
2463,
333,
18,
4315,
3935,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
while (node != null && strtok.hasMoreTokens()) { | while (strtok.hasMoreTokens()) { | protected Object findNode(IPluginModelBase base) { if (fLocationPath == null) return null; // special case for externalizing strings in manifest.mf if (fLocationPath.charAt(0) != '(' && base instanceof IBundlePluginModelBase) { IBundle bundle = ((IBundlePluginModelBase)base).getBundleModel().getBundle(); return bundle.getManifestHeader(fLocationPath); } IDocumentNode node = (IDocumentNode)base.getPluginBase(); StringTokenizer strtok = new StringTokenizer( fLocationPath, Character.toString(XMLErrorReporter.F_CHILD_SEP)); while (node != null && strtok.hasMoreTokens()) { String token = strtok.nextToken(); int childIndex = Integer.parseInt(token.substring(1, token.indexOf(')'))); token = token.substring(token.indexOf(')') + 1); IDocumentNode[] children = node.getChildNodes(); node = children[childIndex]; int attr = token.indexOf(XMLErrorReporter.F_ATT_PREFIX); if (attr != -1) { int valueIndex = token.indexOf(XMLErrorReporter.F_ATT_VALUE_PREFIX); if (valueIndex == -1) return node.getDocumentAttribute(token.substring(attr + 1)); return node.getDocumentAttribute(token.substring(attr + 1, valueIndex)); } } return node; } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/15cfee72eb3bd734b74623d2f80c10cdfdc4e7a3/AbstractXMLMarkerResolution.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/correction/AbstractXMLMarkerResolution.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
1104,
907,
12,
45,
3773,
1488,
2171,
1026,
13,
288,
202,
202,
430,
261,
74,
2735,
743,
422,
446,
13,
1082,
202,
2463,
446,
31,
9506,
202,
759,
4582,
648,
364,
3903,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
1104,
907,
12,
45,
3773,
1488,
2171,
1026,
13,
288,
202,
202,
430,
261,
74,
2735,
743,
422,
446,
13,
1082,
202,
2463,
446,
31,
9506,
202,
759,
4582,
648,
364,
3903,
6... |
return myHasExpectations; } | return myHasExpectations; } | public boolean hasExpectations() { return myHasExpectations; } | 54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/AbstractExpectation.java/clean/jmock/core/src/org/jmock/expectation/AbstractExpectation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
11988,
1012,
1435,
288,
202,
202,
2463,
3399,
5582,
11988,
1012,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
1250,
711,
11988,
1012,
1435,
288,
202,
202,
2463,
3399,
5582,
11988,
1012,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
break _loop729; | break _loop730; | public final void enablestate(AST _t) throws RecognitionException { AST enablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST head = null; AST __t722 = _t; head = _t==ASTNULL ? null :(AST)_t; match(_t,ENABLE); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.frameInitializingStatement(head); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNLESSHIDDEN: { AST tmp1274_AST_in = (AST)_t; match(_t,UNLESSHIDDEN); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ALL: case IN_KW: case WITH: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALL: { AST __t725 = _t; AST tmp1275_AST_in = (AST)_t; match(_t,ALL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t727 = _t; AST tmp1276_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop729: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop729; } } while (true); } _t = __t727; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t725; _t = _t.getNextSibling(); break; } case Form_item: { { int _cnt731=0; _loop731: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { form_item(_t,CQ.SYMBOL); _t = _retTree; } else { if ( _cnt731>=1 ) { break _loop731; } else {throw new NoViableAltException(_t);} } _cnt731++; } while (true); } break; } case EOF: case PERIOD: case IN_KW: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t733 = _t; AST tmp1277_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp1278_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t733; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.frameStatementEnd(); } _t = __t722; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
570,
9237,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
570,
9237,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
570,
9237,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
570,
9237,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
... |
cleanNode(lexer, node); | private boolean nestedList(Lexer lexer, Node node, MutableObject pnode) { Node child, list; if (node.tag == this.tt.tagUl || node.tag == this.tt.tagOl) { child = node.content; if (child == null) { return false; } // check child has no peers if (child.next != null) { return false; } list = child.content; if (list == null) { return false; } if (list.tag != node.tag) { return false; } pnode.setObject(node.next); // move inner list node into position of outer node list.prev = node.prev; list.next = node.next; list.parent = node.parent; fixNodeLinks(list); // get rid of outer ul and its li child.content = null; node.content = null; node.next = null; // If prev node was a list the chances are this node should be appended to that list. Word has no way of // recognizing nested lists and just uses indents if (list.prev != null) { node = list; list = node.prev; if (list.tag == this.tt.tagUl || list.tag == this.tt.tagOl) { list.next = node.next; if (list.next != null) { list.next.prev = list; } child = list.last; /* <li> */ node.parent = child; node.next = null; node.prev = child.last; fixNodeLinks(node); } } cleanNode(lexer, node); return true; } return false; } | 3308 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3308/e0ceaf69b3af3b2a308de3526a65b307b4c4fbba/Clean.java/buggy/src/main/org/w3c/tidy/Clean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
4764,
682,
12,
13356,
8512,
16,
2029,
756,
16,
10960,
921,
293,
2159,
13,
565,
288,
3639,
2029,
1151,
16,
666,
31,
3639,
309,
261,
2159,
18,
2692,
422,
333,
18,
748,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
4764,
682,
12,
13356,
8512,
16,
2029,
756,
16,
10960,
921,
293,
2159,
13,
565,
288,
3639,
2029,
1151,
16,
666,
31,
3639,
309,
261,
2159,
18,
2692,
422,
333,
18,
748,
18,
2... | |
if (SwingUtilities.isEventDispatchThread()) { notifier.run(); } else { SwingUtilities.invokeLater(notifier); } | notifier.run(); | protected void fireTreeNodesChanged(TreeModelEvent e) { final TreeModelEvent ev =e; Runnable notifier = new Runnable(){ public void run() { Iterator it = treeModelListeners.iterator(); while (it.hasNext()) { ((TreeModelListener) it.next()).treeNodesChanged(ev); } } }; if (SwingUtilities.isEventDispatchThread()) { notifier.run(); } else { SwingUtilities.invokeLater(notifier); } } | 53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/1aa6956b251e142598b93f92738ea96859ee5a4f/DBTreeModel.java/buggy/src/ca/sqlpower/architect/swingui/DBTreeModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
2471,
3205,
5033,
12,
2471,
1488,
1133,
425,
13,
288,
202,
202,
6385,
4902,
1488,
1133,
2113,
273,
73,
31,
3196,
202,
20013,
19057,
273,
394,
10254,
1435,
95,
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,
1117,
918,
4452,
2471,
3205,
5033,
12,
2471,
1488,
1133,
425,
13,
288,
202,
202,
6385,
4902,
1488,
1133,
2113,
273,
73,
31,
3196,
202,
20013,
19057,
273,
394,
10254,
1435,
95,
1082,
... |
priority = midPriority; | priority = midPriority; | private int setDownloadPriority(Thread t) { int waiting = toDownload.size(); int priority; if (waiting >= midThreshold) priority = midPriority; else if (waiting >= highThreshold) priority = midPriority; else priority = lowPriority; Generic.setPriority(t, priority); return priority; } | 51914 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51914/c979292671848db81c042530fb5ad27b90d4812d/DownloadMonitor.java/clean/ecologylab/generic/DownloadMonitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
509,
444,
7109,
8183,
12,
3830,
268,
13,
282,
288,
1377,
509,
7336,
202,
33,
358,
7109,
18,
1467,
5621,
1377,
509,
4394,
31,
1377,
309,
261,
20241,
1545,
7501,
7614,
13,
202,
4394... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
509,
444,
7109,
8183,
12,
3830,
268,
13,
282,
288,
1377,
509,
7336,
202,
33,
358,
7109,
18,
1467,
5621,
1377,
509,
4394,
31,
1377,
309,
261,
20241,
1545,
7501,
7614,
13,
202,
4394... |
String justAboveBoundary = repeatChar('X', size + 1); setProperty(p, data, justAboveBoundary); data = getSession().retrieve(id); } catch (Exception e) { s_log.debug("Failure to update string property combinations for property: " + p.getName()); s_log.debug("Column: " + column.getQualifiedName() + " Size: " + column.getSize()); throw e; | String justAboveBoundary = repeatChar('X', size + 1); setProperty(p, data, justAboveBoundary); data = getSession().retrieve(id); } catch (Exception e) { s_log.debug("Failure to update string property combinations for property: " + p.getName()); s_log.debug("Column: " + column.getQualifiedName() + " Size: " + column.getSize()); throw e; } | public void updateAllPropertyCombinations(Property p, DataObject data) throws Exception { super.updateAllPropertyCombinations(p, data); Column column = p.getColumn(); // Verify that the boundary cases for column size are correctly handled. if( column != null && column.getSize() > 0 ) { try { OID id = data.getOID(); final int size = column.getSize(); String justBelowBoundary = repeatChar('X', size - 1); setProperty(p, data, justBelowBoundary); data = getSession().retrieve(id); String atBoundary = repeatChar('X', size); setProperty(p, data, atBoundary); data = getSession().retrieve(id); String justAboveBoundary = repeatChar('X', size + 1); setProperty(p, data, justAboveBoundary); data = getSession().retrieve(id); } catch (Exception e) { s_log.debug("Failure to update string property combinations for property: " + p.getName()); s_log.debug("Column: " + column.getQualifiedName() + " Size: " + column.getSize()); throw e; } } } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/DataObjectManipulator.java/clean/archive/core-platform/test/src/com/arsdigita/persistence/DataObjectManipulator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1089,
1595,
1396,
24107,
1012,
12,
1396,
293,
16,
18914,
501,
13,
1216,
1185,
288,
7734,
2240,
18,
2725,
1595,
1396,
24107,
1012,
12,
84,
16,
501,
1769,
7734,
4753,
1057,
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,
2398,
1071,
918,
1089,
1595,
1396,
24107,
1012,
12,
1396,
293,
16,
18914,
501,
13,
1216,
1185,
288,
7734,
2240,
18,
2725,
1595,
1396,
24107,
1012,
12,
84,
16,
501,
1769,
7734,
4753,
1057,
273,... |
if (MylarTaskListPlugin.getMylarCorePrefs().contains(TaskListPreferenceConstants.FILTER_COMPLETE_MODE)) | if (MylarTaskListPlugin.getDefault().getPreferenceStore().contains(TaskListPreferenceConstants.FILTER_COMPLETE_MODE)) | private void restoreState() { if (taskListMemento != null) { IMemento taskListWidth = taskListMemento.getChild(columnWidthIdentifier); if (taskListWidth != null) { for (int i = 0; i < columnWidths.length; i++) { IMemento m = taskListWidth.getChild("col" + i); if (m != null) { int width = m.getInteger(MEMENTO_KEY_WIDTH); columnWidths[i] = width; columns[i].setWidth(width); } } } IMemento sorterMemento = taskListMemento.getChild(tableSortIdentifier); if (sorterMemento != null) { IMemento m = sorterMemento.getChild(MEMENTO_KEY_SORTER); if (m != null) { sortIndex = m.getInteger(MEMENTO_KEY_SORT_INDEX); Integer sortDirInt = m.getInteger(MEMENTO_KEY_SORT_DIRECTION); if (sortDirInt != null) { sortDirection = sortDirInt.intValue(); } } else { sortIndex = 2; sortDirection = DEFAULT_SORT_DIRECTION; } } else { sortIndex = 2; // default priority sortDirection = DEFAULT_SORT_DIRECTION; } tableSorter.setColumn(columnNames[sortIndex]); getViewer().refresh(false); // getViewer().setSorter(new TaskListTableSorter(this, // columnNames[sortIndex])); } addFilter(FILTER_PRIORITY); // if (MylarTaskListPlugin.getDefault().isFilterInCompleteMode()) // MylarTaskListPlugin.getTaskListManager().getTaskList().addFilter(inCompleteFilter); if (MylarTaskListPlugin.getMylarCorePrefs().contains(TaskListPreferenceConstants.FILTER_COMPLETE_MODE)) addFilter(FILTER_COMPLETE); if (MylarTaskListPlugin.getMylarCorePrefs().contains(TaskListPreferenceConstants.FILTER_ARCHIVE_MODE)) addFilter(FILTER_ARCHIVE); if (MylarTaskListPlugin.getDefault().isMultipleActiveTasksMode()) { togglePreviousAction(false); toggleNextAction(false); } getViewer().refresh(); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/42ccf4da9457897d8441802439e71116889b11bd/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5217,
1119,
1435,
288,
202,
202,
430,
261,
4146,
682,
49,
820,
83,
480,
446,
13,
288,
1082,
202,
3445,
820,
83,
1562,
682,
2384,
273,
1562,
682,
49,
820,
83,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
5217,
1119,
1435,
288,
202,
202,
430,
261,
4146,
682,
49,
820,
83,
480,
446,
13,
288,
1082,
202,
3445,
820,
83,
1562,
682,
2384,
273,
1562,
682,
49,
820,
83,
18,
588,
... |
int status = runInterpreter(commandline.getScriptSource(), commandline.displayedFileName()); | int status = runInterpreter(commandline); | public int run(String[] args) { commandline = new CommandlineParser(this, args); if (commandline.isShowVersion()) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return 0; } long now = -1; if (commandline.isBenchmarking()) { now = System.currentTimeMillis(); } int status = runInterpreter(commandline.getScriptSource(), commandline.displayedFileName()); if (commandline.isBenchmarking()) { out.println("Runtime: " + (System.currentTimeMillis() - now) + " ms"); } return status; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/654f173770fef24a10855574674209b3262a32f7/Main.java/buggy/src/org/jruby/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1086,
12,
780,
8526,
833,
13,
288,
3639,
28305,
273,
394,
3498,
1369,
2678,
12,
2211,
16,
833,
1769,
3639,
309,
261,
3076,
1369,
18,
291,
5706,
1444,
10756,
288,
5411,
2405,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1086,
12,
780,
8526,
833,
13,
288,
3639,
28305,
273,
394,
3498,
1369,
2678,
12,
2211,
16,
833,
1769,
3639,
309,
261,
3076,
1369,
18,
291,
5706,
1444,
10756,
288,
5411,
2405,
... |
if (db.out == null) { System.out.println("db.out null in writeSQLDatum"); } if (xsqlvar.sqldata == null) { System.out.println("sqldata null in writeSQLDatum: " + xsqlvar); } | boolean debug = log.isDebugEnabled(); if (debug) { if (db.out == null) { log.debug("db.out null in writeSQLDatum"); } if (xsqlvar.sqldata == null) { log.debug("sqldata null in writeSQLDatum: " + xsqlvar); } } | private void writeSQLDatum(isc_db_handle_impl db, XSQLVAR xsqlvar) throws GDSException { byte[] buffer; if (db.out == null) { System.out.println("db.out null in writeSQLDatum"); } if (xsqlvar.sqldata == null) { System.out.println("sqldata null in writeSQLDatum: " + xsqlvar); } fixNull(xsqlvar); if (xsqlvar.sqldata == null) { System.out.println("sqldata still null in writeSQLDatum: " + xsqlvar); } try { Object sqldata = xsqlvar.sqldata; switch (xsqlvar.sqltype & ~1) { case SQL_TEXT: //buffer = //fillString((String) sqldata, xsqlvar.sqllen).getBytes(); if (((byte[])sqldata).length != xsqlvar.sqllen) { throw new GDSException(isc_rec_size_err); } db.out.writeOpaque((byte[])sqldata, xsqlvar.sqllen); //db.out.writeOpaque(buffer, buffer.length); break; case SQL_VARYING: if (((byte[])sqldata).length > xsqlvar.sqllen) { throw new GDSException(isc_rec_size_err); } db.out.writeInt(((byte[])sqldata).length); db.out.writeOpaque((byte[])sqldata, ((byte[])sqldata).length); /* int len = Math.min(((String) sqldata).length(), xsqlvar.sqllen); db.out.writeInt(len); buffer = ((String) sqldata).substring(0, len).getBytes(); db.out.writeOpaque(buffer, buffer.length);*/ break; case SQL_SHORT: db.out.writeInt(((Short) sqldata).shortValue()); break; case SQL_LONG: db.out.writeInt(((Integer) sqldata).intValue()); break; case SQL_FLOAT: db.out.writeFloat(((Float) sqldata).floatValue()); break; case SQL_DOUBLE: db.out.writeDouble(((Double) sqldata).doubleValue()); break;// case SQL_D_FLOAT:// break; case SQL_TIMESTAMP: db.out.writeInt(encodeDate((java.sql.Timestamp) sqldata)); db.out.writeInt(encodeTime((java.sql.Timestamp) sqldata)); break; case SQL_BLOB: db.out.writeLong(((Long) sqldata).longValue()); break; case SQL_ARRAY: db.out.writeLong(((Long) sqldata).longValue()); break; case SQL_QUAD: db.out.writeLong(((Long) sqldata).longValue()); break; case SQL_TYPE_TIME: db.out.writeInt(encodeTime((java.sql.Time) sqldata)); break; case SQL_TYPE_DATE: db.out.writeInt(encodeDate((java.sql.Date) sqldata)); break; case SQL_INT64: db.out.writeLong(((Long) sqldata).longValue()); break; default: System.out.println("Unknown sql data type: " + xsqlvar.sqltype); } db.out.writeInt(xsqlvar.sqlind); } catch (IOException ex) { throw new GDSException(isc_net_write_err); } } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/b18191b18fffc6810aaf660a6b13197f4a1370b7/GDS_Impl.java/clean/src/org/firebirdsql/jgds/GDS_Impl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
3997,
18268,
12,
291,
71,
67,
1966,
67,
4110,
67,
11299,
1319,
16,
21394,
1139,
3997,
7716,
619,
4669,
1401,
13,
1216,
611,
3948,
503,
288,
3639,
1160,
8526,
1613,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
3997,
18268,
12,
291,
71,
67,
1966,
67,
4110,
67,
11299,
1319,
16,
21394,
1139,
3997,
7716,
619,
4669,
1401,
13,
1216,
611,
3948,
503,
288,
3639,
1160,
8526,
1613,
31,
... |
m_staticExportPath = CmsFileUtil.normalizePath(m_staticExportPath, '/'); | public void initialize(CmsObject cms) { // initialize static export RFS path (relative to web application) m_staticExportPath = insertContextStrings(m_staticExportPathConfigured); m_staticExportPath = CmsFileUtil.normalizePath(m_staticExportPath, '/'); m_staticExportPath = OpenCms.getSystemInfo().getAbsoluteRfsPathRelativeToWebApplication(m_staticExportPath); if (m_staticExportPath.endsWith(File.separator)) { // ensure export path does NOT end with a File.separator m_staticExportPath = m_staticExportPath.substring(0, m_staticExportPath.length() - 1); } // initialize prefix variables m_rfsPrefix = insertContextStrings(m_rfsPrefixConfigured); m_rfsPrefix = CmsFileUtil.normalizePath(m_rfsPrefix, '/'); if (CmsResource.isFolder(m_rfsPrefix)) { // ensure prefix does NOT end with a folder '/' m_rfsPrefix = m_rfsPrefix.substring(0, m_rfsPrefix.length() - 1); } m_vfsPrefix = insertContextStrings(m_vfsPrefixConfigured); m_vfsPrefix = CmsFileUtil.normalizePath(m_vfsPrefix, '/'); if (CmsResource.isFolder(m_vfsPrefix)) { // ensure prefix does NOT end with a folder '/' m_vfsPrefix = m_vfsPrefix.substring(0, m_vfsPrefix.length() - 1); } if (OpenCms.getLog(CmsLog.CHANNEL_INIT).isDebugEnabled()) { OpenCms.getLog(CmsLog.CHANNEL_INIT).debug( "Created static export manager" + ((cms != null) ? (" with CmsObject " + cms) : "")); } LRUMap lruMap1 = new LRUMap(2048); m_cacheOnlineLinks = Collections.synchronizedMap(lruMap1); if (OpenCms.getMemoryMonitor().enabled()) { // map must be of type "LRUMap" so that memory monitor can acecss all information OpenCms.getMemoryMonitor().register(this.getClass().getName() + "." + "m_cacheOnlineLinks", lruMap1); } LRUMap lruMap2 = new LRUMap(2048); m_cacheExportUris = Collections.synchronizedMap(lruMap2); if (OpenCms.getMemoryMonitor().enabled()) { // map must be of type "LRUMap" so that memory monitor can acecss all information OpenCms.getMemoryMonitor().register(this.getClass().getName() + "." + "m_cacheExportUris", lruMap2); } LRUMap lruMap3 = new LRUMap(2048); m_cacheSecureLinks = Collections.synchronizedMap(lruMap3); if (OpenCms.getMemoryMonitor().enabled()) { // map must be of type "LRUMap" so that memory monitor can acecss all information OpenCms.getMemoryMonitor().register(this.getClass().getName() + "." + "m_cacheSecureUris", lruMap3); } // register this object as event listener OpenCms.addCmsEventListener(this, new int[] { I_CmsEventListener.EVENT_PUBLISH_PROJECT, I_CmsEventListener.EVENT_CLEAR_CACHES, I_CmsEventListener.EVENT_UPDATE_EXPORTS}); m_exportFolderMatcher = new CmsExportFolderMatcher(m_exportFolders, m_testResource); // initialize "exportname" folders setExportnames(); // get the default accept-language header value m_defaultAcceptLanguageHeader = CmsAcceptLanguageHeaderParser.createLanguageHeader(); // get the default accept-charset header value m_defaultAcceptCharsetHeader = OpenCms.getSystemInfo().getDefaultEncoding(); if (OpenCms.getLog(CmsLog.CHANNEL_INIT).isInfoEnabled()) { OpenCms.getLog(CmsLog.CHANNEL_INIT).info( ". Static export : " + (isStaticExportEnabled() ? "enabled" : "disabled")); if (isStaticExportEnabled()) { OpenCms.getLog(CmsLog.CHANNEL_INIT).info(". Export default : " + getExportPropertyDefault()); OpenCms.getLog(CmsLog.CHANNEL_INIT).info(". Export path : " + getExportPath()); OpenCms.getLog(CmsLog.CHANNEL_INIT).info(". Export rfs prefix : " + getRfsPrefix()); OpenCms.getLog(CmsLog.CHANNEL_INIT).info(". Export vfs prefix : " + getVfsPrefix()); OpenCms.getLog(CmsLog.CHANNEL_INIT).info( ". Export link style : " + (relativLinksInExport() ? "relative" : "absolute")); OpenCms.getLog(CmsLog.CHANNEL_INIT).info( ". Export handler : " + (getHandler().getClass().getName())); OpenCms.getLog(CmsLog.CHANNEL_INIT).info(". Export URL : " + (getExportUrl())); OpenCms.getLog(CmsLog.CHANNEL_INIT).info(". Export optimization : " + (getPlainExportOptimization())); OpenCms.getLog(CmsLog.CHANNEL_INIT).info(". Export testresource : " + (getTestResource())); } } } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/442f80ec7b0146678c52b2bceb102266f8cef59a/CmsStaticExportManager.java/clean/src/org/opencms/staticexport/CmsStaticExportManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
12,
4747,
921,
6166,
13,
288,
3639,
368,
4046,
760,
3359,
534,
4931,
589,
261,
11626,
358,
3311,
2521,
13,
3639,
312,
67,
3845,
6144,
743,
273,
2243,
1042,
7957,
12,
81... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4046,
12,
4747,
921,
6166,
13,
288,
3639,
368,
4046,
760,
3359,
534,
4931,
589,
261,
11626,
358,
3311,
2521,
13,
3639,
312,
67,
3845,
6144,
743,
273,
2243,
1042,
7957,
12,
81... | |
(byte)(((word - (c1 * base85_1) - (c2 * base85_2) - (c3 * base85_3)) / base85_4) & 0xFF); | (byte)(((word - (c1 * BASE85_1) - (c2 * BASE85_2) - (c3 * BASE85_3)) / BASE85_4) & 0xFF); | private byte[] convertWord(long word) { word = word & 0xffffffff; if (word == 0) { return ZERO_ARRAY; } else { if (word < 0) { word = -word; } byte c1 = (byte)((word / base85_1) & 0xFF); byte c2 = (byte)(((word - (c1 * base85_1)) / base85_2) & 0xFF); byte c3 = (byte)(((word - (c1 * base85_1) - (c2 * base85_2)) / base85_3) & 0xFF); byte c4 = (byte)(((word - (c1 * base85_1) - (c2 * base85_2) - (c3 * base85_3)) / base85_4) & 0xFF); byte c5 = (byte)(((word - (c1 * base85_1) - (c2 * base85_2) - (c3 * base85_3) - (c4 * base85_4))) & 0xFF); byte[] ret = { (byte)(c1 + START), (byte)(c2 + START), (byte)(c3 + START), (byte)(c4 + START), (byte)(c5 + START) }; if (DEBUG) { for (int i = 0; i < ret.length; i++) { if (ret[i] < 33 || ret[i] > 117) { System.out.println("Illegal char value " + new Integer(ret[i])); } } } return ret; } } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/5343697a42919c5367012d797b6fa9c99cccc9c7/ASCII85OutputStream.java/clean/src/org/apache/fop/render/ps/ASCII85OutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1160,
8526,
1765,
3944,
12,
5748,
2076,
13,
288,
3639,
2076,
273,
2076,
473,
374,
28857,
31,
3639,
309,
261,
1095,
422,
374,
13,
288,
5411,
327,
18449,
67,
8552,
31,
3639,
289,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
1765,
3944,
12,
5748,
2076,
13,
288,
3639,
2076,
273,
2076,
473,
374,
28857,
31,
3639,
309,
261,
1095,
422,
374,
13,
288,
5411,
327,
18449,
67,
8552,
31,
3639,
289,
46... |
s.append(entry.count).append(':').append(entry.seq).append(" ").append( entry.normalized_count).append("\n"); | s.append("[").append(entry.seq) .append("/").append(entry.count) .append("/").append(entry.frequency).append("]\n"); | public String toString() { StringBuffer s = new StringBuffer(); Iterator i = getSorted().iterator(); s.append("NGramProfile: ").append(name).append("\n"); while (i.hasNext()) { NGramEntry entry = (NGramEntry) i.next(); s.append(entry.count).append(':').append(entry.seq).append(" ").append( entry.normalized_count).append("\n"); } return s.toString(); } | 46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/2242f009e69f5462aa35c25150facf524d0f30da/NGramProfile.java/clean/src/plugin/languageidentifier/src/java/org/apache/nutch/analysis/lang/NGramProfile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
6674,
272,
273,
394,
6674,
5621,
565,
4498,
277,
273,
15175,
329,
7675,
9838,
5621,
565,
272,
18,
6923,
2932,
4960,
1940,
4029,
30,
315,
2934,
6923,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1762,
1435,
288,
565,
6674,
272,
273,
394,
6674,
5621,
565,
4498,
277,
273,
15175,
329,
7675,
9838,
5621,
565,
272,
18,
6923,
2932,
4960,
1940,
4029,
30,
315,
2934,
6923,
12,
... |
!isLegalContainedNode( refNode ) ) { | !isLegalContainedNode( refNode ) ) { | public void selectNode(Node refNode) throws RangeException { if( fDetach) { throw new DOMException( DOMException.INVALID_STATE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_STATE_ERR", null)); } if ( !isLegalContainer( refNode.getParentNode() ) || !isLegalContainedNode( refNode ) ) { throw new RangeExceptionImpl( RangeException.INVALID_NODE_TYPE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_NODE_TYPE_ERR", null)); } Node parent = refNode.getParentNode(); if (parent != null ) // REVIST: what to do if it IS null? { fStartContainer = parent; fEndContainer = parent; int i = 0; for (Node n = refNode; n!=null; n = n.getPreviousSibling()) { i++; } fStartOffset = i-1; fEndOffset = fStartOffset+1; } } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/3799b7e4e5aad4a537932828fa67d20478ee6877/RangeImpl.java/buggy/src/org/apache/xerces/dom/RangeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2027,
907,
12,
907,
1278,
907,
13,
3639,
1216,
8086,
503,
565,
288,
377,
202,
430,
12,
284,
17650,
13,
288,
377,
202,
202,
12849,
394,
4703,
503,
12,
377,
202,
202,
8168,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2027,
907,
12,
907,
1278,
907,
13,
3639,
1216,
8086,
503,
565,
288,
377,
202,
430,
12,
284,
17650,
13,
288,
377,
202,
202,
12849,
394,
4703,
503,
12,
377,
202,
202,
8168,
5... |
Location location = new Location(lastInSourceHandle, sourceBlock); ValueNumberFrame prevVnaFrame = vnaDataflow.getFactAtLocation(location); | short lastInSourceOpcode = lastInSourceHandle.getInstruction().getOpcode(); if (nullComparisonInstructionSet.get(lastInSourceOpcode)) { final Location atIf = new Location(lastInSourceHandle, sourceBlock); final IsNullValueFrame prevIsNullValueFrame = getFactAtLocation(atIf); final ValueNumberFrame prevVnaFrame = vnaDataflow.getFactAtLocation(atIf); final int prevNumSlots = prevIsNullValueFrame.getNumSlots(); final IsNullValue conditionValue = prevIsNullValueFrame.getTopValue(); | public void meetInto(IsNullValueFrame fact, Edge edge, IsNullValueFrame result) throws DataflowAnalysisException { if (fact.isValid()) { IsNullValueFrame tmpFact = null; final int numSlots = fact.getNumSlots(); if (!NO_SPLIT_DOWNGRADE_NSP) { // Downgrade NSP to DNR on non-exception control splits if (!edge.isExceptionEdge() && numNonExceptionSuccessorMap[edge.getSource().getId()] > 1) { tmpFact = modifyFrame(fact, tmpFact); for (int i = 0; i < numSlots; ++i) { IsNullValue value = tmpFact.getValue(i); if (value.equals(IsNullValue.nullOnSomePathValue())) tmpFact.setValue(i, IsNullValue.doNotReportValue()); } } } if (!NO_SWITCH_DEFAULT_AS_EXCEPTION) { if (edge.getType() == SWITCH_DEFAULT_EDGE) { tmpFact = modifyFrame(fact, tmpFact); tmpFact.toExceptionValues(); } } final BasicBlock destBlock = edge.getTarget(); if (destBlock.isExceptionHandler()) { // Exception handler - clear stack and push a non-null value // to represent the exception. tmpFact = modifyFrame(fact, tmpFact); tmpFact.clearStack(); // Downgrade NULL and NSP to DNR if the handler is for // CloneNotSupportedException or InterruptedException CodeExceptionGen handler = destBlock.getExceptionGen(); ObjectType catchType = handler.getCatchType(); if (catchType != null) { String catchClass = catchType.getClassName(); if (catchClass.equals("java.lang.CloneNotSupportedException") || catchClass.equals("java.lang.InterruptedException")) { for (int i = 0; i < tmpFact.getNumSlots(); ++i) { IsNullValue value = tmpFact.getValue(i); if (value.isDefinitelyNull() || value.isNullOnSomePath()) tmpFact.setValue(i, IsNullValue.doNotReportValue()); } } } // Mark all values as having occurred on an exception path tmpFact.toExceptionValues(); // Push the exception value tmpFact.pushValue(IsNullValue.nonNullValue()); } else { // Determine if the edge conveys any information about the // null/non-null status of operands in the incoming frame. final BasicBlock sourceBlock = edge.getSource(); final InstructionHandle lastInSourceHandle = sourceBlock.getLastInstruction(); final int edgeType = edge.getType(); // Handle IFNULL, IFNONNULL, IF_ACMPEQ, and IF_ACMPNE to // produce flow-sensitive information about whether or not the // compared value or values were null. if (lastInSourceHandle != null) { Location location = new Location(lastInSourceHandle, sourceBlock); ValueNumberFrame prevVnaFrame = vnaDataflow.getFactAtLocation(location); IsNullConditionDecision conditionDecision = checkCondition(location, edgeType, prevVnaFrame); if (conditionDecision != null) { // Use the information tmpFact = replaceValues(fact, tmpFact, conditionDecision.getValue(), prevVnaFrame, conditionDecision.getDecision()); } } // If this is a fall-through edge from a null check, // then we know the value checked is not null. if (sourceBlock.isNullCheck() && edgeType == FALL_THROUGH_EDGE) { ValueNumberFrame vnaFrame = vnaDataflow.getStartFact(destBlock); if (vnaFrame == null) throw new IllegalStateException("no vna frame at block entry?"); // For all of the instructions which have a null-checked // reference operand, it is pushed onto the stack before // all of the other operands to the instruction. Instruction firstInDest = edge.getTarget().getFirstInstruction().getInstruction(); int numSlotsConsumed = firstInDest.consumeStack(methodGen.getConstantPool()); if (numSlotsConsumed == Constants.UNPREDICTABLE) throw new DataflowAnalysisException("Unpredictable stack consumption for " + firstInDest); ValueNumber replaceMe = vnaFrame.getValue(numSlots - numSlotsConsumed); tmpFact = replaceValues(fact, tmpFact, replaceMe, vnaFrame, IsNullValue.nonNullValue()); } } if (tmpFact != null) fact = tmpFact; } // Normal dataflow merge result.mergeWith(fact); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/8ccee3a550adfb79937cf2dda9e6f76106bfca6d/IsNullValueAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/IsNullValueAnalysis.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18721,
5952,
12,
2520,
2041,
620,
3219,
5410,
16,
11342,
3591,
16,
30230,
620,
3219,
563,
13,
202,
202,
15069,
1910,
2426,
9418,
503,
288,
202,
202,
430,
261,
3493,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18721,
5952,
12,
2520,
2041,
620,
3219,
5410,
16,
11342,
3591,
16,
30230,
620,
3219,
563,
13,
202,
202,
15069,
1910,
2426,
9418,
503,
288,
202,
202,
430,
261,
3493,
18,
2... |
for ( Enumeration direct = super.findResources( name ); direct.hasMoreElements(); ) | for ( Enumeration direct = realm.findRealmResources( name ); direct.hasMoreElements(); ) | public Enumeration findResources( String name ) throws IOException { name = getNormalizedResource( name ); Vector resources = new Vector(); // Load from DefaultStrategy for ( Enumeration direct = super.findResources( name ); direct.hasMoreElements(); ) { resources.addElement( direct.nextElement() ); } // Load from foreign classloader for ( Enumeration direct = foreign.getResources( name ); direct.hasMoreElements(); ) { resources.addElement( direct.nextElement() ); } return resources.elements(); } | 56346 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56346/fe31d59803a705d63feaf033a8488e8ba0036987/ForeignStrategy.java/clean/src/main/java/org/codehaus/plexus/classworlds/strategy/ForeignStrategy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13864,
1104,
3805,
12,
514,
508,
262,
3639,
1216,
1860,
565,
288,
3639,
508,
273,
336,
15577,
1420,
12,
508,
11272,
7734,
5589,
2703,
273,
394,
5589,
5621,
3639,
368,
4444,
628,
298... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13864,
1104,
3805,
12,
514,
508,
262,
3639,
1216,
1860,
565,
288,
3639,
508,
273,
336,
15577,
1420,
12,
508,
11272,
7734,
5589,
2703,
273,
394,
5589,
5621,
3639,
368,
4444,
628,
298... |
if (lCell.isTable()) { lInnerTable = (Table)lCell.getElements().next(); float lTabStop = tabStop; for (int k=0; k < lInnerTable.columns(); k++) { lTabStop = lTabStop + (lInnerTable.widths[k] * thisWidth)/100f; tabSet.add(new Float(lTabStop)); } } } else { } } tabStop = tabStop + widths[j]; } newColumns = tabSet.size()-1; | if (lCell.isTable()) { lInnerTable = (Table)lCell.getElements().next(); float lTabStop = tabStop; for (int k=0; k < lInnerTable.columns(); k++) { lTabStop = lTabStop + (lInnerTable.widths[k] * thisWidth)/100f; tabSet.add(new Float(lTabStop)); } } } else { } } tabStop = tabStop + widths[j]; } newColumns = tabSet.size()-1; | private void mergeInsertedTables() throws DocumentException { // System.out.println(" mergeInsertedTables"); int i=0, j=0; // the new (flattened) table described by new* variables float [] newWidths = null; ArrayList newRows = null; int newColumns = 0; // to keep track in how many new rows each one will be split int[] rowSplitting = new int[rows.size()]; // local helpers int lTotalRows = 0; Table lInnerTable = null; Cell lCell = null; Row lRow = null; // first we'll add new columns when needed // construct a TreeSet of the new widths TreeSet tabSet = new TreeSet(new WidthComparator(1f)); // we always have a tabstop at the left border. (NB. there is // of course also always one at the right border, but it is // computed later) tabSet.add(new Float(0f)); // Note that the order in which the new tabStops are added to // the tabSet is important, due to the snapping mechanism. We // therfore add the tabPositons of the outer table first to // ensure that they remain un-snapped. float tabStop = 0.0f; for (j=0; j < columns; j++) { tabStop = tabStop + widths[j]; tabSet.add(new Float(tabStop)); } tabStop = 0.0f; for (j=0; j < columns; j++) { for (i=0; i < rows.size(); i++) { lRow = (Row)rows.get(i); lCell = lRow.getCell(j); if (!((null == lCell) && (lRow.isReserved(j)))) { float thisWidth = computeCellWidth(lCell, j, widths); if (lCell.isTable()) { // System.out.println(" Inner Table "); lInnerTable = (Table)lCell.getElements().next(); float lTabStop = tabStop; for (int k=0; k < lInnerTable.columns(); k++) { lTabStop = lTabStop + (lInnerTable.widths[k] * thisWidth)/100f; tabSet.add(new Float(lTabStop)); } // end of for (int k; k < lInnerTable.columns; k++) } } else { // skip this over spanned null cell // System.out.println(" overspanned null cell at "+i+","+j); } // end of else // end of if (null == lCell) } tabStop = tabStop + widths[j]; } newColumns = tabSet.size()-1; // next we'll add new rows when needed for (i=0; i < rows.size(); i++) { // holds value in how many rows the current one will be split int rowSplit = 1; for (j=0; j < columns; j++) { lRow = (Row)rows.get(i); lCell = lRow.getCell(j); if ((null != lCell) || (!lRow.isReserved(j))) { if ( lCell.isTable()) { lInnerTable = (Table)lCell.getElements().next(); rowSplit = Math.max(rowSplit, lInnerTable.rows.size() - lCell.rowspan() + 1); // System.out.println(" splitting row "+i+" into "+rowSplit); } } else { // the isReserved is a kind of assertion... if // lCell == null and !isReserved there's something // gone havock, and we'll get a NullPointerException // skip this over spanned null cell } // end of else // end of if (null == lCell) } lTotalRows += rowSplit; rowSplitting[i] = rowSplit; } // if really something changed in the structure of the // table... [the odds are good, unless the user added nothing // but a (1,1)-table to a cell, which would be a stupid thing // to do, wouldn't it?] if ( (newColumns != columns) || (lTotalRows != rows.size()) ) { // compute widths for new columns newWidths = new float [newColumns]; float prev = 0.0f; float cur = 0.0f; int idx = 0; Iterator it = tabSet.iterator(); it.next();// skip the 0 tabstop! while (it.hasNext()) { cur = ((Float)it.next()).floatValue(); newWidths[idx++] = cur-prev; prev = cur; } // end of for (Iterator it = widthSet.iterator(); it.hasNext(); ) // ** FILL NEW TABLE // generate new table // copy old values newRows = new ArrayList(lTotalRows); for (i = 0; i < lTotalRows; i++) { newRows.add(new Row(newColumns)); } // the insertion postion in the new table Point nextInsertion = new Point(0,0); // we iterate row-wise, becasue getNextValidPosition() goes // that way, too. for (i=0; i < rows.size(); i++) { for (j=0; j < columns; j++) { // this is the loop over each lCell in the outer table... lRow = (Row)rows.get(i); lCell = lRow.getCell(j); if ((null != lCell) || (!lRow.isReserved(j))) { float thisWidth = computeCellWidth(lCell,j,widths); Point continueOuter = nextInsertion; if ( lCell.isTable() ) { // this cell contains an entire inner table: // Copy its cells into new large table lInnerTable = (Table)lCell.getElements().next(); Point startNextRow = nextInsertion; for (int k=0; k < lInnerTable.rows.size(); k++) { nextInsertion = startNextRow; for (int l=0; l < lInnerTable.columns(); l++) { Cell copyCell = lInnerTable.getCell(k,l); if (copyCell != null) { // note that I do not check // wheter the cell is also // reseved! That's beacause // this inner table has // already ben complete()'ed. float innerCellWidth = computeCellWidth(copyCell, l, lInnerTable.widths) * thisWidth/100f; copyCell.setColspan( computeColspan(nextInsertion.y, tabSet, innerCellWidth)); // <ea> no rowspan becuase we // take the original rowspan // of the inner cell rowspan // System.out.println(" inner cell at "+(nextInsertion.x+1)+","+(nextInsertion.y+1) // + " colspan " + copyCell.colspan()); placeCell(newRows, copyCell, nextInsertion); nextInsertion = getNextValidPosition(newRows, nextInsertion); } if (k==0) { // save the postion, where the // next outer cell should be // stored (only if we are in // the middle of the outer // table) continueOuter = nextInsertion; } // end of if (k==0) } startNextRow.x++; } // are we in the middle of the outer table? if (nextInsertion.y > 0) { nextInsertion = continueOuter; } // else nextInsertion points to the // leftmost cell on the next row, which // is exacty where we can continue // adding cells ;) } else { // place the lCell in the new grid.. // .. compute new spans ... lCell.setColspan( computeColspan(nextInsertion.y, tabSet, thisWidth)); lCell.setRowspan( lCell.rowspan() + rowSplitting[i] - 1); // ... and place it // System.out.println(" outer cell at "+(nextInsertion.x+1)+","+(nextInsertion.y+1) // +" colspan " + lCell.colspan()); // System.out.println(" "); placeCell(newRows, lCell, nextInsertion); nextInsertion = getNextValidPosition(newRows, nextInsertion); } } else { // skip this over spanned null cell } // end of else // end of if (null == lCell) } } // Set our new matrix columns = newColumns; rows = newRows; widths = newWidths; } } | 4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/4430fd61ccfb4d034e4cd72d51512e2c8f92a804/Table.java/clean/src/com/lowagie/text/Table.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2691,
27329,
6905,
1435,
1216,
4319,
503,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
2691,
27329,
6905,
8863,
3639,
509,
277,
33,
20,
16,
525,
33,
20,
31,
3639,
368,
326,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2691,
27329,
6905,
1435,
1216,
4319,
503,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
2691,
27329,
6905,
8863,
3639,
509,
277,
33,
20,
16,
525,
33,
20,
31,
3639,
368,
326,... |
else if ( ( len - index ) >= 4 && text.substring( index, index + 4 ).equalsIgnoreCase(RTF_PREFIX ) ) | else if ( ( len - index ) >= 4 && text.substring( index, index + 4 ).equalsIgnoreCase( RTF_PREFIX ) ) | public Document parse( String text, String textType ) { // Handle null case if ( text == null || text.length( ) == 0 ) return null; //If the type is null or auto, resets the text type based on the content prefix if ( null == textType || TEXT_TYPE_AUTO.equalsIgnoreCase( textType ) ) { int index = 0; int len = text.length( ); // remove white spaces while ( index < len && Character.isWhitespace( text.charAt( index ) ) ) { index++; } // Checks if the first six characters are "<html>" if ( ( len - index ) >= 6 && text.substring( index, index + 6 ).equalsIgnoreCase(HTML_PREFIX ) ) textType = TEXT_TYPE_HTML; else if ( ( len - index ) >= 4 && text.substring( index, index + 4 ).equalsIgnoreCase(RTF_PREFIX ) ) textType = TEXT_TYPE_RTF; else textType = TEXT_TYPE_PLAIN; // Assume plain text in any other cases } if ( TEXT_TYPE_HTML.equalsIgnoreCase( textType ) ) { try { //Convert input string to an input stream because JTidy accepts a stream only return new HTMLTextParser( ).parseHTML( new ByteArrayInputStream(text.getBytes( "UTF-8" ) ) ); } catch ( UnsupportedEncodingException e ) { logger.error( e ); return null; } } else if ( TEXT_TYPE_RTF.equalsIgnoreCase( textType ) ) { assert false; // Not supported yet return null; } else { if ( !TEXT_TYPE_PLAIN.equalsIgnoreCase( textType ) ) logger.warn( "Invalid text type. The content is treated as plain text." ); return new PlainTextParser( ).parsePlainText( text ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/3797dac7d94fa35f3ec480c611939404776c182d/TextParser.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/TextParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4319,
1109,
12,
514,
977,
16,
514,
977,
559,
262,
202,
95,
202,
202,
759,
5004,
446,
648,
202,
202,
430,
261,
977,
422,
446,
747,
977,
18,
2469,
12,
262,
422,
374,
262,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4319,
1109,
12,
514,
977,
16,
514,
977,
559,
262,
202,
95,
202,
202,
759,
5004,
446,
648,
202,
202,
430,
261,
977,
422,
446,
747,
977,
18,
2469,
12,
262,
422,
374,
262,
10... |
iVisited.accept(_Payload); | _Payload.visitRetryNode(iVisited); | public void visitRetryNode(RetryNode iVisited) { iVisited.accept(_Payload); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/043fa4419ad506aa6f8843684eb8114b226fe4b5/DefaultIteratorVisitor.java/clean/org/jruby/nodes/visitor/DefaultIteratorVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
7539,
907,
12,
7539,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
7539,
907,
12,
7539,
907,
277,
30019,
13,
288,
202,
202,
77,
30019,
18,
9436,
24899,
6110,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
subList(seq, first, length, consumer); | double d2 = arg2 != eof ? Math.round(StringUtils.asDouble(arg2)) : Double.POSITIVE_INFINITY; subList(seq, d1, d1 + d2, consumer); | public void apply (CallContext ctx) { Consumer consumer = ctx.consumer; Object seq = ctx.getNextArg(); int first = ctx.getNextIntArg(); int length = ctx.getNextIntArg(Integer.MAX_VALUE); ctx.lastArg(); subList(seq, first, length, consumer); } | 41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/df7a4d29faac6634d3e669163b1cfa62dcd60c73/SubList.java/clean/gnu/xquery/util/SubList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2230,
261,
22582,
1103,
13,
225,
288,
565,
9326,
4765,
273,
1103,
18,
13230,
31,
565,
1033,
3833,
273,
1103,
18,
588,
2134,
4117,
5621,
565,
509,
1122,
273,
1103,
18,
588,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2230,
261,
22582,
1103,
13,
225,
288,
565,
9326,
4765,
273,
1103,
18,
13230,
31,
565,
1033,
3833,
273,
1103,
18,
588,
2134,
4117,
5621,
565,
509,
1122,
273,
1103,
18,
588,
21... |
c.setPageCount(pageCount); | public void createPDF(OutputStream os) throws DocumentException { List pages = _root.getLayer().getPages(); RenderingContext c = newRenderingContext(); PageBox firstPage = (PageBox)pages.get(0); com.lowagie.text.Rectangle firstPageSize = new com.lowagie.text.Rectangle( 0, 0, firstPage.getWidth(c) / _dotsPerPoint, firstPage.getHeight(c) / _dotsPerPoint); com.lowagie.text.Document doc = new com.lowagie.text.Document(firstPageSize, 0, 0, 0, 0); PdfWriter writer = PdfWriter.getInstance(doc, os); doc.open(); _outputDevice.initializePage(writer.getDirectContent(), firstPageSize.height()); _root.getLayer().assignPagePaintingPositions(c, Layer.PAGED_MODE_PRINT); int pageCount = _root.getLayer().getPages().size(); for (int i = 0; i < pageCount; i++) { PageBox currentPage = (PageBox)pages.get(i); paintPage(c, currentPage); _outputDevice.finishPage(); if (i != pageCount - 1) { PageBox nextPage = (PageBox)pages.get(i+1); com.lowagie.text.Rectangle nextPageSize = new com.lowagie.text.Rectangle( 0, 0, nextPage.getWidth(c) / _dotsPerPoint, nextPage.getHeight(c) / _dotsPerPoint); doc.setPageSize(nextPageSize); doc.newPage(); _outputDevice.initializePage( writer.getDirectContent(), nextPageSize.height()); } } doc.close(); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e900e61ce3c01edb12a8561b3a8ac20539d8450a/ITextRenderer.java/clean/src/java/org/xhtmlrenderer/pdf/ITextRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
276,
18,
542,
1964,
1380,
12,
2433,
1380,
1769,
276,
18,
542,
1964,
1380,
12,
2433,
1380,
1769,
276,
18,
542,
1964,
1380,
12,
2433,
1380,
1769,
276,
18,
542,
1964,
1380,
12,
2433,
1380,
1769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
276,
18,
542,
1964,
1380,
12,
2433,
1380,
1769,
276,
18,
542,
1964,
1380,
12,
2433,
1380,
1769,
276,
18,
542,
1964,
1380,
12,
2433,
1380,
1769,
276,
18,
542,
1964,
1380,
12,
2433,
1380,
1769... | |
if (className != null) { | if (className != null && file != null) { | public static AntElement createAntElement(final AntElement parent, final XmlElement element) { instantiate(); if (element instanceof XmlComment) { return new AntCommentImpl(parent, element); } if (element instanceof XmlEntityRef) { return new AntEntityRefImpl(parent, element); } if (!(element instanceof XmlTag)) return null; final XmlTag tag = (XmlTag)element; AntTypeDefinition typeDef = null; String typeName = tag.getName(); /** * Hardcode for <javadoc> task (IDEADEV-6731). */ if (typeName.equals("javadoc2")) { typeName = "javadoc"; } final AntTypeId id = new AntTypeId(typeName); final AntFile file = parent.getAntFile(); if (parent instanceof AntStructuredElement) { final AntTypeDefinition parentDef = ((AntStructuredElement)parent).getTypeDefinition(); if (parentDef != null) { final String className = parentDef.getNestedClassName(id); if (className != null) { typeDef = file.getBaseTypeDefinition(className); } } } if (typeDef == null) { for (AntTypeDefinition def : file.getBaseTypeDefinitions()) { if (id.equals(def.getTypeId())) { typeDef = def; break; } } } boolean importedType = false; if (typeDef == null) { final AntProject project = parent.getAntProject(); for (final AntFile imported : project.getImportedFiles()) { final AntProject importedProject = imported.getAntProject(); if (!project.equals(importedProject)) { importedProject.getChildren(); for (AntTypeDefinition def : imported.getBaseTypeDefinitions()) { if (id.equals(def.getTypeId())) { importedType = true; typeDef = def; break; } } } } } AntStructuredElementImpl result = null; if (typeDef != null) { AntElementCreator antElementCreator = ourAntTypeToKnownAntElementCreatorMap.get(typeDef.getClassName()); if (antElementCreator != null) { result = (AntStructuredElementImpl)antElementCreator.create(parent, tag); } else if (typeDef.isTask()) { result = new AntTaskImpl(parent, tag, typeDef); } } if (result == null) { result = new AntStructuredElementImpl(parent, tag, typeDef); } result.setImportedTypeDefinition(importedType); return result; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/db3d89fafbfbdf12dac3a5bdc07f24765452cf54/AntElementFactory.java/buggy/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntElementFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
18830,
1046,
752,
14925,
1046,
12,
6385,
18830,
1046,
982,
16,
727,
15412,
930,
13,
288,
565,
10275,
5621,
565,
309,
261,
2956,
1276,
5714,
4469,
13,
288,
1377,
327,
394,
18830... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18830,
1046,
752,
14925,
1046,
12,
6385,
18830,
1046,
982,
16,
727,
15412,
930,
13,
288,
565,
10275,
5621,
565,
309,
261,
2956,
1276,
5714,
4469,
13,
288,
1377,
327,
394,
18830... |
private void moveLeft(TreeContext tree, outlineLayoutManager layout) { | private void moveLeft(TreeContext tree, OutlineLayoutManager layout) { | private void moveLeft(TreeContext tree, outlineLayoutManager layout) { Node currentNode = textArea.node; Node youngestNode = tree.getYoungestInSelection(); Node node = tree.getPrevNode(youngestNode); if (node == null) { return; } // Put the Undoable onto the UndoQueue CompoundUndoableMove undoable = new CompoundUndoableMove(currentNode.getParent(), node.getParent()); int targetIndex = node.currentIndex(); int currentIndexAdj = 0; for (int i = 0; i < tree.selectedNodes.size(); i++) { // Record the Insert in the undoable Node nodeToMove = (Node) tree.selectedNodes.get(i); int currentIndex = nodeToMove.currentIndex() + currentIndexAdj; undoable.addPrimitive(new PrimitiveUndoableMove(undoable, nodeToMove, currentIndex, targetIndex)); if (nodeToMove.getParent() != node.getParent()) { currentIndexAdj--; } targetIndex++; } tree.doc.undoQueue.add(undoable); undoable.redo(); } | 49473 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49473/2361eab2eca8fbf91d8b2ce4fb68e843e088736a/IconKeyListener.java/buggy/outliner/src/com/organic/maynard/outliner/IconKeyListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3635,
3910,
12,
2471,
1042,
2151,
16,
16363,
3744,
1318,
3511,
13,
288,
202,
202,
907,
13425,
273,
977,
5484,
18,
2159,
31,
202,
202,
907,
677,
465,
17592,
907,
273,
215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3635,
3910,
12,
2471,
1042,
2151,
16,
16363,
3744,
1318,
3511,
13,
288,
202,
202,
907,
13425,
273,
977,
5484,
18,
2159,
31,
202,
202,
907,
677,
465,
17592,
907,
273,
215... |
PreparedStatement statement = null; Connection con = null; String usedPool; String usedStatement; int onlineProject = I_CmsConstants.C_PROJECT_ONLINE_ID; if (project.getId() == onlineProject) { usedPool = m_poolNameOnline; usedStatement = "_ONLINE"; } else { usedPool = m_poolName; usedStatement = ""; } try { con = DriverManager.getConnection(usedPool); statement = con.prepareStatement(m_cq.get("C_RESOURCES_UPDATE"+usedStatement)); statement.setInt(1,folder.getType()); statement.setInt(2,folder.getFlags()); statement.setInt(3,folder.getOwnerId()); statement.setInt(4,folder.getGroupId()); statement.setInt(5,folder.getProjectId()); statement.setInt(6,folder.getAccessFlags()); int state=folder.getState(); if ((state == C_STATE_NEW) || (state == C_STATE_CHANGED)) { statement.setInt(7,state); } else { if (changed==true) { statement.setInt(7,C_STATE_CHANGED); } else { statement.setInt(7,folder.getState()); } } statement.setInt(8,folder.isLockedBy()); statement.setInt(9,folder.getLauncherType()); statement.setString(10,folder.getLauncherClassname()); statement.setTimestamp(11,new Timestamp(System.currentTimeMillis())); statement.setInt(12,folder.getResourceLastModifiedBy()); statement.setInt(13,0); statement.setInt(14,C_UNKNOWN_ID); statement.setInt(15,folder.getResourceId()); statement.executeUpdate(); } catch (SQLException e){ throw new CmsException("["+this.getClass().getName()+"] "+e.getMessage(),CmsException.C_SQL_ERROR, e); }finally { if(statement != null) { try { statement.close(); } catch(SQLException exc) { } } if(con != null) { try { con.close(); } catch(SQLException exc) { } } } | writeFolder(project, folder, changed, folder.getResourceLastModifiedBy()); | public void writeFolder(CmsProject project, CmsFolder folder, boolean changed) throws CmsException { PreparedStatement statement = null; Connection con = null; String usedPool; String usedStatement; //int onlineProject = getOnlineProject(project.getId()).getId(); int onlineProject = I_CmsConstants.C_PROJECT_ONLINE_ID; if (project.getId() == onlineProject) { usedPool = m_poolNameOnline; usedStatement = "_ONLINE"; } else { usedPool = m_poolName; usedStatement = ""; } try { con = DriverManager.getConnection(usedPool); // update resource in the database statement = con.prepareStatement(m_cq.get("C_RESOURCES_UPDATE"+usedStatement)); statement.setInt(1,folder.getType()); statement.setInt(2,folder.getFlags()); statement.setInt(3,folder.getOwnerId()); statement.setInt(4,folder.getGroupId()); statement.setInt(5,folder.getProjectId()); statement.setInt(6,folder.getAccessFlags()); int state=folder.getState(); if ((state == C_STATE_NEW) || (state == C_STATE_CHANGED)) { statement.setInt(7,state); } else { if (changed==true) { statement.setInt(7,C_STATE_CHANGED); } else { statement.setInt(7,folder.getState()); } } statement.setInt(8,folder.isLockedBy()); statement.setInt(9,folder.getLauncherType()); statement.setString(10,folder.getLauncherClassname()); statement.setTimestamp(11,new Timestamp(System.currentTimeMillis())); statement.setInt(12,folder.getResourceLastModifiedBy()); statement.setInt(13,0); statement.setInt(14,C_UNKNOWN_ID); statement.setInt(15,folder.getResourceId()); statement.executeUpdate(); } catch (SQLException e){ throw new CmsException("["+this.getClass().getName()+"] "+e.getMessage(),CmsException.C_SQL_ERROR, e); }finally { if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/e9342bc4186022c085c76ddfb9c602a1b1e4f1d0/CmsDbAccess.java/clean/src/com/opencms/file/genericSql/CmsDbAccess.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
3899,
12,
4747,
4109,
1984,
16,
2149,
3899,
3009,
16,
1250,
3550,
13,
3639,
1216,
11228,
288,
3639,
16913,
3021,
273,
446,
31,
3639,
4050,
356,
273,
446,
31,
3639,
514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
3899,
12,
4747,
4109,
1984,
16,
2149,
3899,
3009,
16,
1250,
3550,
13,
3639,
1216,
11228,
288,
3639,
16913,
3021,
273,
446,
31,
3639,
4050,
356,
273,
446,
31,
3639,
514,
... |
LineRange range = whatToMove; | LineRange range = toMove; | protected boolean checkAvailable(Editor editor, PsiFile file) { //if (!(file instanceof PsiJavaFile)) return false; final boolean available = super.checkAvailable(editor, file); if (!available) return false; LineRange range = whatToMove; range = expandLineRangeToCoverPsiElements(range, editor, file); if (range == null) return false; final int startOffset = editor.logicalPositionToOffset(new LogicalPosition(range.startLine, 0)); final int endOffset = editor.logicalPositionToOffset(new LogicalPosition(range.endLine+1, 0)); final PsiElement[] statements = CodeInsightUtil.findStatementsInRange(file, startOffset, endOffset); if (statements.length == 0) return false; range.firstElement = statements[0]; range.lastElement = statements[statements.length-1]; if (!checkMovingInsideOutside(file, editor, range)) { insertOffset = -1; return true; } //calcInsertOffset(file, editor, range); return true; } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/02c2f546504510bdbd05916539ae0061487b89de/StatementMover.java/buggy/source/com/intellij/openapi/editor/actions/moveUpDown/StatementMover.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
866,
5268,
12,
6946,
4858,
16,
453,
7722,
812,
585,
13,
288,
565,
368,
430,
16051,
12,
768,
1276,
453,
7722,
5852,
812,
3719,
327,
629,
31,
565,
727,
1250,
2319,
273,
2240,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
866,
5268,
12,
6946,
4858,
16,
453,
7722,
812,
585,
13,
288,
565,
368,
430,
16051,
12,
768,
1276,
453,
7722,
5852,
812,
3719,
327,
629,
31,
565,
727,
1250,
2319,
273,
2240,
... |
for ( int i = 0; i < end; i++ ) { if ( isFirst ) { isFirst = false; } else { sb.append( ',' ); } | for ( int i = 0; i < end; i++ ) { if ( isFirst ) { isFirst = false; } else { sb.append( ',' ); } | private String getUpNameSuffix( int posn ) { if ( posn > rdns.size() ) { return ""; } int end = rdns.size() - posn; StringBuffer sb = new StringBuffer(); boolean isFirst = true; for ( int i = 0; i < end; i++ ) { if ( isFirst ) { isFirst = false; } else { sb.append( ',' ); } sb.append( ( ( Rdn ) rdns.get( i ) ).getUpName() ); } return sb.toString(); } | 54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/46cb53a5c275e1621f93eedcb952b2ad923f49bd/LdapDN.java/clean/ldap/src/main/java/org/apache/directory/shared/ldap/name/LdapDN.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
336,
1211,
461,
5791,
12,
509,
949,
82,
262,
565,
288,
3639,
309,
261,
949,
82,
405,
9437,
2387,
18,
1467,
1435,
262,
3639,
288,
5411,
327,
1408,
31,
3639,
289,
3639,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
336,
1211,
461,
5791,
12,
509,
949,
82,
262,
565,
288,
3639,
309,
261,
949,
82,
405,
9437,
2387,
18,
1467,
1435,
262,
3639,
288,
5411,
327,
1408,
31,
3639,
289,
3639,
509,
... |
public org.quickfix.field.ExecInst getExecInst() throws FieldNotFound { org.quickfix.field.ExecInst value = new org.quickfix.field.ExecInst(); | public quickfix.field.ExecInst getExecInst() throws FieldNotFound { quickfix.field.ExecInst value = new quickfix.field.ExecInst(); | public org.quickfix.field.ExecInst getExecInst() throws FieldNotFound { org.quickfix.field.ExecInst value = new org.quickfix.field.ExecInst(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ExecutionReport.java/buggy/src/java/src/quickfix/fix44/ExecutionReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
336,
1905,
10773,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
460,
273,
394,
2358,
18,
19525,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
336,
1905,
10773,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1905,
10773,
460,
273,
394,
2358,
18,
19525,... |
ImportParser parser = new ImportParser(parsers, "\t", "\n"); | ImportParser parser = new ImportParser(parsers, "\",\"", "\n\""); | public static void main(String argv[]) throws Exception { Reader r = new java.io.FileReader(argv[0]); int cols = Integer.parseInt(argv[1]); TypeParser[] parsers = new TypeParser[ cols ]; for (int i=0; i < cols; ++i) { parsers[i] = new StringParser(i+1); } ValueRecipient v = new ValueRecipient() { public void setLong(int fieldNumber, long value) { } public void setString(int fieldNumber, String value) { //System.out.println("'" + value + "'"); } public void setDate(int fieldNumber, Calendar cal) { } public void finishRow() { //System.out.println(">>row done..<<"); count++; } }; ImportParser parser = new ImportParser(parsers, "\t", "\n"); parser.parse(r, v); System.err.println("COUNT: " + count); } | 49725 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49725/5f352e328602d4ba6b50e8bcf5f3c2ab13193d5d/ImportParser.java/clean/src/henplus/importparser/ImportParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
1216,
1185,
288,
3639,
5393,
436,
273,
394,
2252,
18,
1594,
18,
812,
2514,
12,
19485,
63,
20,
19226,
3639,
509,
5347,
273,
2144,
18,
2670,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
1216,
1185,
288,
3639,
5393,
436,
273,
394,
2252,
18,
1594,
18,
812,
2514,
12,
19485,
63,
20,
19226,
3639,
509,
5347,
273,
2144,
18,
2670,... |
return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass() .isArray())); | return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass() .isArray())); | public boolean isLeaf() { return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass() .isArray())); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/JTree.java/buggy/core/src/classpath/javax/javax/swing/JTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
31356,
1435,
377,
288,
1082,
202,
2463,
261,
3624,
620,
422,
446,
747,
401,
12,
3624,
620,
1276,
18559,
6862,
202,
20081,
1151,
620,
1276,
5589,
747,
1151,
620,
18,
588,
797,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
31356,
1435,
377,
288,
1082,
202,
2463,
261,
3624,
620,
422,
446,
747,
401,
12,
3624,
620,
1276,
18559,
6862,
202,
20081,
1151,
620,
1276,
5589,
747,
1151,
620,
18,
588,
797,
... |
msgType = message.getHeader().getString(MsgType.FIELD); if (message.getHeader().isSetField(MsgSeqNum.FIELD)) { msgSeqNum = message.getHeader().getInt(MsgSeqNum.FIELD); } if (message.getHeader().isSetField(PossDupFlag.FIELD)) { possDupFlag = message.getHeader().getBoolean(PossDupFlag.FIELD); } reject.setInt(RefSeqNum.FIELD, msgSeqNum); | String msgType = message.getHeader().getString(MsgType.FIELD); String msgSeqNum = message.getHeader().getString(MsgSeqNum.FIELD); | public void generateReject(Message message, int err, int field) throws IOException, FieldNotFound { String reason = SessionRejectReasonText.getMessage(err); if (!state.isLogonReceived()) { throw new SessionException("Tried to send a reject while not logged on: " + reason + " (field " + field + ")"); } String beginString = sessionID.getBeginString(); Message reject = messageFactory.create(beginString, MsgType.REJECT); int msgSeqNum; String msgType; reject.reverseRoute(message.getHeader()); initializeHeader(reject.getHeader()); msgSeqNum = 0; msgType = null; boolean possDupFlag = false; msgType = message.getHeader().getString(MsgType.FIELD); if (message.getHeader().isSetField(MsgSeqNum.FIELD)) { msgSeqNum = message.getHeader().getInt(MsgSeqNum.FIELD); } if (message.getHeader().isSetField(PossDupFlag.FIELD)) { possDupFlag = message.getHeader().getBoolean(PossDupFlag.FIELD); } reject.setInt(RefSeqNum.FIELD, msgSeqNum); if (beginString.compareTo(FixVersions.BEGINSTRING_FIX42) >= 0) { reject.setString(RefMsgType.FIELD, msgType); if ((beginString.equals(FixVersions.BEGINSTRING_FIX42) && err <= SessionRejectReason.INVALID_MSGTYPE) || beginString.compareTo(FixVersions.BEGINSTRING_FIX42) > 0) { reject.setInt(SessionRejectReason.FIELD, err); } } if (!msgType.equals(MsgType.LOGON) && !msgType.equals(MsgType.SEQUENCE_RESET) && (msgSeqNum == getExpectedTargetNum() || !possDupFlag)) { state.incrNextTargetMsgSeqNum(); } if (reason != null && (field != 0 || err == SessionRejectReason.INVALID_TAG_NUMBER)) { populateRejectReason(reject, field, reason); state.logEvent("Message " + msgSeqNum + " Rejected: " + reason + ":" + field); } else if (reason != null) { populateRejectReason(reject, reason); state.logEvent("Message " + msgSeqNum + " Rejected: " + reason); } else state.logEvent("Message " + msgSeqNum + " Rejected"); sendRaw(reject, 0); } | 6257 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6257/ac55ba7609fafdc1ccfff3fc6f9fb357d78bb510/Session.java/buggy/src/quickfix/Session.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
21705,
12,
1079,
883,
16,
509,
393,
16,
509,
652,
13,
1216,
1860,
16,
5411,
2286,
2768,
288,
3639,
514,
3971,
273,
3877,
21705,
8385,
1528,
18,
24906,
12,
370,
1769,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2103,
21705,
12,
1079,
883,
16,
509,
393,
16,
509,
652,
13,
1216,
1860,
16,
5411,
2286,
2768,
288,
3639,
514,
3971,
273,
3877,
21705,
8385,
1528,
18,
24906,
12,
370,
1769,
36... |
return this.value; | return value; | public String getValue() { return this.value; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/c3988bcedc9973ff7f8c24ac6423ecb89f3ada35/RubyString.java/buggy/src/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2366,
1435,
288,
202,
202,
2463,
333,
18,
1132,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2366,
1435,
288,
202,
202,
2463,
333,
18,
1132,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assertTrue(ContainUtil.contains(new MyObject("tm_jee", Integer.valueOf(22)), new MyObject("tm_jee", Integer.valueOf(22)))); | assertTrue(ContainUtil.contains(new MyObject("tm_jee", Integer.valueOf("22")), new MyObject("tm_jee", Integer.valueOf("22")))); | public void testObject() throws Exception { assertFalse(ContainUtil.contains("aaa", "bbb")); assertFalse(ContainUtil.contains(new MyObject("tm_jee", Integer.valueOf(22)), new MyObject("tmjee", Integer.valueOf(22)))); assertTrue(ContainUtil.contains("apple", "apple")); assertTrue(ContainUtil.contains(new MyObject("tm_jee", Integer.valueOf(22)), new MyObject("tm_jee", Integer.valueOf(22)))); } | 15560 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15560/d1c0b842fe38302d25ccc95ee76a6569bcb7df73/ContainUtilTest.java/clean/src/test/com/opensymphony/webwork/util/ContainUtilTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
921,
1435,
1216,
1185,
288,
202,
202,
11231,
8381,
12,
22928,
1304,
18,
12298,
2932,
26676,
3113,
315,
9897,
70,
7923,
1769,
202,
202,
11231,
8381,
12,
22928,
1304,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
921,
1435,
1216,
1185,
288,
202,
202,
11231,
8381,
12,
22928,
1304,
18,
12298,
2932,
26676,
3113,
315,
9897,
70,
7923,
1769,
202,
202,
11231,
8381,
12,
22928,
1304,
1... |
leftType = TypeId.getBuiltInTypeId(Types.VARBINARY); | if (rightOperand.getTypeId().isBlobTypeId()) leftType = TypeId.getBuiltInTypeId(Types.BLOB); else leftType = TypeId.getBuiltInTypeId(Types.VARBINARY); | public ValueNode bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { // deal with binding operands leftOperand = leftOperand.bindExpression(fromList, subqueryList, aggregateVector); rightOperand = rightOperand.bindExpression(fromList, subqueryList, aggregateVector); // deal with operand parameters /* Is there a ? parameter on the left? If so, it's type is the type of the other parameter, with maximum length for that type. */ if (leftOperand.isParameterNode()) { if (rightOperand.isParameterNode()) { throw StandardException.newException(SQLState.LANG_BINARY_OPERANDS_BOTH_PARMS, operator); } TypeId leftType; /* ** A ? on the left gets its type from the right. There are six ** legal types for the concatenation operator: CHAR, VARCHAR, ** LONG VARCHAR, BIT, BIT VARYING, and LONG BIT VARYING. If the ** right type is one of the bit types, set the parameter type to ** BIT VARYING with maximum length. ** ** If the right type is anything else, set it to VARCHAR with ** maximum length. We count on the resolveConcatOperation method to ** catch an illegal type. ** ** NOTE: When I added the long types, I could have changed the ** resulting parameter types to LONG VARCHAR and LONG BIT VARYING, ** but they were already VARCHAR and BIT VARYING, and it wasn't ** clear to me what effect it would have to change it. ** ** - Jeff */ if (rightOperand.getTypeId().isBitTypeId()) { leftType = TypeId.getBuiltInTypeId(Types.VARBINARY); } else { leftType = TypeId.getBuiltInTypeId(Types.VARCHAR); } ((ParameterNode) leftOperand).setDescriptor(new DataTypeDescriptor(leftType, true)); } /* Is there a ? parameter on the right? */ if (rightOperand.isParameterNode()) { TypeId rightType; /* ** A ? on the right gets its type from the left. There are six ** legal types for the concatenation operator: CHAR, VARCHAR, ** LONG VARCHAR, BIT, BIT VARYING, and LONG BIT VARYING. If the ** left type is one of the bit types, set the parameter type to ** BIT VARYING with maximum length. If the left type is anything ** else, set it to VARCHAR with maximum length. We count on the ** resolveConcatOperation method to catch an illegal type. ** ** NOTE: When I added the long types, I could have changed the ** resulting parameter types to LONG VARCHAR and LONG BIT VARYING, ** but they were already VARCHAR and BIT VARYING, and it wasn't ** clear to me what effect it would have to change it. ** ** - Jeff */ if (leftOperand.getTypeId().isBitTypeId()) { rightType = TypeId.getBuiltInTypeId(Types.VARBINARY); } else { rightType = TypeId.getBuiltInTypeId(Types.VARCHAR); } ((ParameterNode) rightOperand).setDescriptor( new DataTypeDescriptor( rightType, true)); } /* If the left operand is not a built-in type, then generate a bound conversion * tree to a built-in type. */ if (! leftOperand.getTypeId().systemBuiltIn()) { leftOperand = leftOperand.genSQLJavaSQLTree(); } /* If the right operand is not a built-in type, then generate a bound conversion * tree to a built-in type. */ if (! rightOperand.getTypeId().systemBuiltIn()) { rightOperand = rightOperand.genSQLJavaSQLTree(); } /* If either the left or right operands are non-string, non-bit types, * then we generate an implicit cast to VARCHAR. */ TypeCompiler tc = leftOperand.getTypeCompiler(); if (! (leftOperand.getTypeId().isStringTypeId() || leftOperand.getTypeId().isBitTypeId())) { leftOperand = (ValueNode) getNodeFactory().getNode( C_NodeTypes.CAST_NODE, leftOperand, DataTypeDescriptor.getBuiltInDataTypeDescriptor(Types.VARCHAR, true, tc.getCastToCharWidth( leftOperand.getTypeServices())), getContextManager()); ((CastNode) leftOperand).bindCastNodeOnly(); } tc = rightOperand.getTypeCompiler(); if (! (rightOperand.getTypeId().isStringTypeId() || rightOperand.getTypeId().isBitTypeId())) { rightOperand = (ValueNode) getNodeFactory().getNode( C_NodeTypes.CAST_NODE, rightOperand, DataTypeDescriptor.getBuiltInDataTypeDescriptor(Types.VARCHAR, true, tc.getCastToCharWidth( rightOperand.getTypeServices())), getContextManager()); ((CastNode) rightOperand).bindCastNodeOnly(); } /* ** Set the result type of this operator based on the operands. ** By convention, the left operand gets to decide the result type ** of a binary operator. */ tc = leftOperand.getTypeCompiler(); setType(resolveConcatOperation( leftOperand.getTypeServices(), rightOperand.getTypeServices())); /* ** Make sure the maximum width set for the result doesn't exceed the result type's maximum width */ if (SanityManager.DEBUG) { if (getTypeServices().getMaximumWidth() > getTypeId().getMaximumMaximumWidth()) { SanityManager.THROWASSERT("The maximum length " + getTypeServices().getMaximumWidth() + " for the result type " + getTypeId().getSQLTypeName() + " can't be greater than it's maximum width of result's typeid" + getTypeId().getMaximumMaximumWidth()); } } /* ** Now that we know the target interface type, set it. This assumes ** that both operands have the same interface type, which is a safe ** assumption for the concatenation operator. */ this.setLeftRightInterfaceType(tc.interfaceName()); return this; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/8809d55922b5fadeaf299aa53c51f8e319fa668e/ConcatenationOperatorNode.java/clean/java/engine/org/apache/derby/impl/sql/compile/ConcatenationOperatorNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1445,
907,
1993,
2300,
12,
202,
202,
1265,
682,
628,
682,
16,
2592,
2271,
682,
20074,
682,
16,
202,
202,
5018,
202,
18573,
5018,
13,
1082,
202,
15069,
8263,
503,
202,
95,
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,
1445,
907,
1993,
2300,
12,
202,
202,
1265,
682,
628,
682,
16,
2592,
2271,
682,
20074,
682,
16,
202,
202,
5018,
202,
18573,
5018,
13,
1082,
202,
15069,
8263,
503,
202,
95,
202,... |
for (int i = 0; i < checked.length; i++) { | calculatingResolutions = true; if (resolution instanceof WorkbenchMarkerResolution) { IMarker[] markers = new IMarker[checked.length]; System.arraycopy(checked, 0, markers, 0, checked.length); ((WorkbenchMarkerResolution) resolution).run(markers, new SubProgressMonitor(progressPart, checked.length)); } else { | protected void okPressed() { IMarkerResolution resolution = getSelectedResolution(); if (resolution == null) return; Object[] checked = markersTable.getCheckedElements(); progressPart.beginTask(MarkerMessages.MarkerResolutionDialog_Fixing, checked.length + 1); progressPart.worked(1); for (int i = 0; i < checked.length; i++) { // Allow paint events and wake up the button getShell().getDisplay().readAndDispatch(); if (progressCancelled()) { break; } IMarker marker = (IMarker) checked[i]; progressPart.subTask(Util.getProperty(IMarker.MESSAGE, marker)); resolution.run(marker); progressPart.worked(1); } progressPart.done(); progressCancelled = false; super.okPressed(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1492a57d6852279927f7d7d06fb9d63f07e376fa/MarkerResolutionDialog.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerResolutionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
1435,
288,
202,
202,
3445,
1313,
264,
11098,
7861,
273,
16625,
11098,
5621,
202,
202,
430,
261,
19182,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
921,
8526,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
1435,
288,
202,
202,
3445,
1313,
264,
11098,
7861,
273,
16625,
11098,
5621,
202,
202,
430,
261,
19182,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
921,
8526,... |
stringClass.defineSingletonMethod("new", getSingletonMethodNew()); stringClass.defineMethod("initialize", getMethodInitialize()); | stringClass.defineSingletonMethod("new", getSingletonMethod("m_new", true)); stringClass.defineMethod("initialize", getMethod("m_replace", RubyString.class)); | public static RubyClass createStringClass(Ruby ruby) { org.jruby.RubyClass stringClass = ruby.defineClass("String", ruby.getObjectClass()); // stringClass.includeModule(ruby.getModules().getComparable()); // stringClass.includeModule(ruby.getModules().getEnumerable()); stringClass.defineSingletonMethod("new", getSingletonMethodNew()); stringClass.defineMethod("initialize", getMethodInitialize());/* rb_define_method(rb_cString, "clone", rb_str_clone, 0); rb_define_method(rb_cString, "dup", rb_str_dup, 0); rb_define_method(rb_cString, "<=>", rb_str_cmp_m, 1); rb_define_method(rb_cString, "==", rb_str_equal, 1); rb_define_method(rb_cString, "===", rb_str_equal, 1); rb_define_method(rb_cString, "eql?", rb_str_equal, 1); rb_define_method(rb_cString, "hash", rb_str_hash_m, 0); rb_define_method(rb_cString, "+", rb_str_plus, 1); rb_define_method(rb_cString, "*", rb_str_times, 1); rb_define_method(rb_cString, "%", rb_str_format, 1); */ stringClass.defineMethod("[]", getMethodSlice()); /*rb_define_method(rb_cString, "[]=", rb_str_aset_m, -1); rb_define_method(rb_cString, "length", rb_str_length, 0); rb_define_method(rb_cString, "size", rb_str_length, 0); rb_define_method(rb_cString, "empty?", rb_str_empty, 0); rb_define_method(rb_cString, "=~", rb_str_match, 1); rb_define_method(rb_cString, "~", rb_str_match2, 0); rb_define_method(rb_cString, "succ", rb_str_succ, 0); rb_define_method(rb_cString, "succ!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "next", rb_str_succ, 0); rb_define_method(rb_cString, "next!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "upto", rb_str_upto_m, 1); rb_define_method(rb_cString, "index", rb_str_index_m, -1); rb_define_method(rb_cString, "rindex", rb_str_rindex, -1); rb_define_method(rb_cString, "replace", rb_str_replace_m, 1); rb_define_method(rb_cString, "to_i", rb_str_to_i, 0); rb_define_method(rb_cString, "to_f", rb_str_to_f, 0); rb_define_method(rb_cString, "to_s", rb_str_to_s, 0); rb_define_method(rb_cString, "to_str", rb_str_to_s, 0); rb_define_method(rb_cString, "inspect", rb_str_inspect, 0); rb_define_method(rb_cString, "dump", rb_str_dump, 0); rb_define_method(rb_cString, "upcase", rb_str_upcase, 0); rb_define_method(rb_cString, "downcase", rb_str_downcase, 0); rb_define_method(rb_cString, "capitalize", rb_str_capitalize, 0); rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0); rb_define_method(rb_cString, "upcase!", rb_str_upcase_bang, 0); rb_define_method(rb_cString, "downcase!", rb_str_downcase_bang, 0); rb_define_method(rb_cString, "capitalize!", rb_str_capitalize_bang, 0); rb_define_method(rb_cString, "swapcase!", rb_str_swapcase_bang, 0); rb_define_method(rb_cString, "hex", rb_str_hex, 0); rb_define_method(rb_cString, "oct", rb_str_oct, 0); rb_define_method(rb_cString, "split", rb_str_split_m, -1);*/ stringClass.defineMethod("reverse", getMethodReverse()); /*rb_define_method(rb_cString, "reverse!", rb_str_reverse_bang, 0); rb_define_method(rb_cString, "concat", rb_str_concat, 1); rb_define_method(rb_cString, "<<", rb_str_concat, 1); rb_define_method(rb_cString, "crypt", rb_str_crypt, 1); rb_define_method(rb_cString, "intern", rb_str_intern, 0); rb_define_method(rb_cString, "include?", rb_str_include, 1); rb_define_method(rb_cString, "scan", rb_str_scan, 1); rb_define_method(rb_cString, "ljust", rb_str_ljust, 1); rb_define_method(rb_cString, "rjust", rb_str_rjust, 1); rb_define_method(rb_cString, "center", rb_str_center, 1); rb_define_method(rb_cString, "sub", rb_str_sub, -1); rb_define_method(rb_cString, "gsub", rb_str_gsub, -1); rb_define_method(rb_cString, "chop", rb_str_chop, 0); rb_define_method(rb_cString, "chomp", rb_str_chomp, -1); rb_define_method(rb_cString, "strip", rb_str_strip, 0); rb_define_method(rb_cString, "sub!", rb_str_sub_bang, -1); rb_define_method(rb_cString, "gsub!", rb_str_gsub_bang, -1); rb_define_method(rb_cString, "strip!", rb_str_strip_bang, 0); rb_define_method(rb_cString, "chop!", rb_str_chop_bang, 0); rb_define_method(rb_cString, "chomp!", rb_str_chomp_bang, -1); rb_define_method(rb_cString, "tr", rb_str_tr, 2); rb_define_method(rb_cString, "tr_s", rb_str_tr_s, 2); rb_define_method(rb_cString, "delete", rb_str_delete, -1); rb_define_method(rb_cString, "squeeze", rb_str_squeeze, -1); rb_define_method(rb_cString, "count", rb_str_count, -1); rb_define_method(rb_cString, "tr!", rb_str_tr_bang, 2); rb_define_method(rb_cString, "tr_s!", rb_str_tr_s_bang, 2); rb_define_method(rb_cString, "delete!", rb_str_delete_bang, -1); rb_define_method(rb_cString, "squeeze!", rb_str_squeeze_bang, -1); rb_define_method(rb_cString, "each_line", rb_str_each_line, -1); rb_define_method(rb_cString, "each", rb_str_each_line, -1); rb_define_method(rb_cString, "each_byte", rb_str_each_byte, 0); rb_define_method(rb_cString, "sum", rb_str_sum, -1); rb_define_global_function("sub", rb_f_sub, -1); rb_define_global_function("gsub", rb_f_gsub, -1); rb_define_global_function("sub!", rb_f_sub_bang, -1); rb_define_global_function("gsub!", rb_f_gsub_bang, -1); rb_define_global_function("chop", rb_f_chop, 0); rb_define_global_function("chop!", rb_f_chop_bang, 0); rb_define_global_function("chomp", rb_f_chomp, -1); rb_define_global_function("chomp!", rb_f_chomp_bang, -1); rb_define_global_function("split", rb_f_split, -1); rb_define_global_function("scan", rb_f_scan, 1);*/ stringClass.defineMethod("slice", getMethodSlice()); /*rb_define_method(rb_cString, "slice!", rb_str_slice_bang, -1); id_to_s = rb_intern("to_s"); rb_fs = Qnil; rb_define_hooked_variable("$;", &rb_fs, 0, rb_str_setter); rb_define_hooked_variable("$-F", &rb_fs, 0, rb_str_setter);*/ return stringClass; } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RbString.java/buggy/org/jruby/core/RbString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
780,
797,
12,
54,
10340,
22155,
13,
288,
3639,
2358,
18,
78,
27768,
18,
54,
10340,
797,
533,
797,
273,
22155,
18,
11255,
797,
2932,
780,
3113,
22155,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
780,
797,
12,
54,
10340,
22155,
13,
288,
3639,
2358,
18,
78,
27768,
18,
54,
10340,
797,
533,
797,
273,
22155,
18,
11255,
797,
2932,
780,
3113,
22155,
18,
588... |
AddNumbersPortType port = new AddNumbersService().getAddNumbersPort (); | AddNumbersPortType port = new AddNumbersService().getAddNumbersPort(); | public static void main (String[] args) { try { AddNumbersPortType port = new AddNumbersService().getAddNumbersPort (); int number1 = 10; int number2 = 20; System.out.printf ("Invoking addNumbers(%d, %d)\n", number1, number2); int result = port.addNumbers (number1, number2); System.out.printf ("The result of adding %d and %d is %d.\n\n", number1, number2, result); number1 = -10; System.out.printf ("Invoking addNumbers(%d, %d)\n", number1, number2); result = port.addNumbers (number1, number2); System.out.printf ("The result of adding %d and %d is %d.\n", number1, number2, result); } catch (AddNumbersFault_Exception ex) { System.out.printf ("Caught AddNumbersFault_Exception: %s\n", ex.getFaultInfo ().getMessage ()); } } | 9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/3948ea080d3763c6472d24ee323c016d3476a5e2/AddNumbersClient.java/clean/jaxws-ri/samples/fromwsdlhandler/src/fromwsdlhandler/client/AddNumbersClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
8526,
833,
13,
288,
3639,
775,
288,
5411,
1436,
10072,
17855,
1756,
273,
394,
1436,
10072,
1179,
7675,
588,
986,
10072,
2617,
5621,
13491,
509,
1300,
21,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
8526,
833,
13,
288,
3639,
775,
288,
5411,
1436,
10072,
17855,
1756,
273,
394,
1436,
10072,
1179,
7675,
588,
986,
10072,
2617,
5621,
13491,
509,
1300,
21,
2... |
return UrlBuilder.buildUrl(host, url); | return UrlBuilder.buildUrl(host+":"+portNumber, url); | private String buildNodeURL(String url) throws java.net.UnknownHostException { int i = url.indexOf('/'); if (i == -1) { //it is an url given by a descriptor String host = getVMInformation().getInetAddress().getHostName(); return UrlBuilder.buildUrl(host, url); } else { return UrlBuilder.checkUrl(url); } } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/c171c3550f70b496c1228bbed45f5f8feea45a9c/RemoteProActiveRuntimeImpl.java/clean/src/org/objectweb/proactive/core/runtime/rmi/RemoteProActiveRuntimeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1361,
907,
1785,
12,
780,
880,
13,
3639,
1216,
2252,
18,
2758,
18,
4874,
29776,
288,
3639,
509,
277,
273,
880,
18,
31806,
2668,
2473,
1769,
3639,
309,
261,
77,
422,
300,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
907,
1785,
12,
780,
880,
13,
3639,
1216,
2252,
18,
2758,
18,
4874,
29776,
288,
3639,
509,
277,
273,
880,
18,
31806,
2668,
2473,
1769,
3639,
309,
261,
77,
422,
300,
21,
... |
calculateTicks(); | TimeScaleCalc (int totalPixels, TimeConfigRegistrar tr){ this.totalPixels = totalPixels; this.timeRegistrar = new TimeConfigRegistrar(tr, this); setTimes(); calculateTicks(); } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/42885160f85f9c93a0754294df5743e2d90e9938/TimeScaleCalc.java/buggy/src/edu/sc/seis/fissuresUtil/display/TimeScaleCalc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2647,
5587,
25779,
261,
474,
2078,
18079,
16,
2647,
809,
30855,
433,
15329,
202,
2211,
18,
4963,
18079,
273,
2078,
18079,
31,
202,
2211,
18,
957,
30855,
273,
394,
2647,
809,
30855,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2647,
5587,
25779,
261,
474,
2078,
18079,
16,
2647,
809,
30855,
433,
15329,
202,
2211,
18,
4963,
18079,
273,
2078,
18079,
31,
202,
2211,
18,
957,
30855,
273,
394,
2647,
809,
30855,
12,
31... | |
Collection supplierDep = ((MModelElement) elem).getSupplierDependencies(); Collection clientDep = ((MModelElement) elem).getClientDependencies(); Set deps = new HashSet(); deps.addAll(supplierDep); deps.addAll(clientDep); Iterator it = deps.iterator(); while (it.hasNext()) { MDependency dep = (MDependency) it.next(); Collection clients = dep.getClients(); Collection suppliers = dep.getSuppliers(); if ((clients.size() + suppliers.size()) == 2) { nsmodel.getUmlFactory().delete(dep); } } | Collection deps = org.argouml.model.Model.getFacade() .getClientDependencies(elem); Iterator it = deps.iterator(); while (it.hasNext()) { MDependency dep = (MDependency) it.next(); if (dep.getClients().size() < 2 && dep.getClients().contains(elem)) { nsmodel.getUmlFactory().delete(dep); } } deps = org.argouml.model.Model.getFacade() .getSupplierDependencies(elem); it = deps.iterator(); while (it.hasNext()) { MDependency dep = (MDependency) it.next(); if (dep.getSuppliers().size() < 2 && dep.getSuppliers().contains(elem)) { nsmodel.getUmlFactory().delete(dep); } } | void deleteModelElement(Object elem) { if (!(elem instanceof MModelElement)) { throw new IllegalArgumentException(); } Collection supplierDep = ((MModelElement) elem).getSupplierDependencies(); Collection clientDep = ((MModelElement) elem).getClientDependencies(); Set deps = new HashSet(); deps.addAll(supplierDep); deps.addAll(clientDep); Iterator it = deps.iterator(); while (it.hasNext()) { MDependency dep = (MDependency) it.next(); Collection clients = dep.getClients(); Collection suppliers = dep.getSuppliers(); if ((clients.size() + suppliers.size()) == 2) { nsmodel.getUmlFactory().delete(dep); } } List ownedBehaviors = new ArrayList(); ownedBehaviors.addAll(((MModelElement) elem).getBehaviors()); it = ownedBehaviors.iterator(); while (it.hasNext()) { nsmodel.getUmlFactory().delete(it.next()); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/b1ccb4cf56c193d43c6dbdfadd937d7aeb13978e/CoreFactoryImpl.java/clean/src_new/org/argouml/model/uml/CoreFactoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1430,
1488,
1046,
12,
921,
3659,
13,
288,
3639,
309,
16051,
12,
10037,
1276,
490,
1488,
1046,
3719,
288,
5411,
604,
394,
2754,
5621,
3639,
289,
202,
2532,
17402,
16316,
273,
202,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1430,
1488,
1046,
12,
921,
3659,
13,
288,
3639,
309,
16051,
12,
10037,
1276,
490,
1488,
1046,
3719,
288,
5411,
604,
394,
2754,
5621,
3639,
289,
202,
2532,
17402,
16316,
273,
202,
565... |
private void logon(String database) | private void logon(String database, String macAddress) | private void logon(String database) throws SQLException, TdsUnknownPacketSubType, java.io.IOException, TdsException { final byte pad = (byte) 0; final byte[] empty = new byte[0]; try { // Added 2000-06-07. if (tdsVer == Tds.TDS70) { send70Login(database); database = ""; } else { comm.startPacket(TdsComm.LOGON); // hostname (offset0) // comm.appendString("TOLEDO", 30, (byte)0); byte[] tmp = encoder.getBytes(getClientName()); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // username (offset 31 0x1f) tmp = encoder.getBytes(user); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // password (offset 62 0x3e) tmp = encoder.getBytes(password); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // hostproc (offset 93 0x5d) tmp = encoder.getBytes("00000116"); comm.appendBytes(tmp, 8, pad); // unused (offset 109 0x6d) comm.appendBytes(empty, (30 - 14), pad); // apptype (offset ) comm.appendByte((byte) 0x0); comm.appendByte((byte) 0xA0); comm.appendByte((byte) 0x24); comm.appendByte((byte) 0xCC); comm.appendByte((byte) 0x50); comm.appendByte((byte) 0x12); // hostproc length (offset ) comm.appendByte((byte) 8); // type of int2 comm.appendByte((byte) 3); // type of int4 comm.appendByte((byte) 1); // type of char comm.appendByte((byte) 6); // type of flt comm.appendByte((byte) 10); // type of date comm.appendByte((byte) 9); // notify of use db comm.appendByte((byte) 1); // disallow dump/load and bulk insert comm.appendByte((byte) 1); // sql interface type comm.appendByte((byte) 0); // type of network connection comm.appendByte((byte) 0); // spare[7] comm.appendBytes(empty, 7, pad); // appname tmp = encoder.getBytes(appName); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // server name tmp = encoder.getBytes(serverName); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // remote passwords comm.appendBytes(empty, 2, pad); tmp = encoder.getBytes(password); comm.appendBytes(tmp, 253, pad); comm.appendByte((byte) (tmp.length < 253 ? tmp.length + 2 : 253 + 2)); // tds version comm.appendByte((byte) 4); comm.appendByte((byte) 2); comm.appendByte((byte) 0); comm.appendByte((byte) 0); // prog name tmp = encoder.getBytes(progName); comm.appendBytes(tmp, 10, pad); comm.appendByte((byte) (tmp.length < 10 ? tmp.length : 10)); // prog version comm.appendByte((byte) 6); // Tell the server we can handle SQLServer version 6 comm.appendByte((byte) 0); // Send zero to tell the server we can't handle any other version comm.appendByte((byte) 0); comm.appendByte((byte) 0); // auto convert short comm.appendByte((byte) 0); // type of flt4 comm.appendByte((byte) 0x0D); // type of date4 comm.appendByte((byte) 0x11); // language tmp = encoder.getBytes("us_english"); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // notify on lang change comm.appendByte((byte) 1); // security label hierachy comm.appendShort((short) 0); // security components comm.appendBytes(empty, 8, pad); // security spare comm.appendShort((short) 0); // security login role comm.appendByte((byte) 0); // charset tmp = encoder.getBytes(charset); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // notify on charset change comm.appendByte((byte) 1); // length of tds packets tmp = encoder.getBytes("512"); comm.appendBytes(tmp, 6, pad); comm.appendByte((byte) 3); // pad out to a longword comm.appendBytes(empty, 8, pad); } moreResults = true; comm.sendPacket(); } finally { comm.packetType = 0; } final SQLWarningChain wChain = new SQLWarningChain(); // Get the reply to the logon packet. while (moreResults) { final PacketResult res = processSubPacket(); if (res instanceof PacketMsgResult) { wChain.addOrReturn((PacketMsgResult) res); } // XXX Should really process some more types of packets. //mdb: handle ntlm challenge by sending a response... if (res instanceof PacketAuthTokenResult) { sendNtlmChallengeResponse((PacketAuthTokenResult) res); } } wChain.checkForExceptions(); // XXX Should we move this to the Connection class? initSettings(database, wChain); wChain.checkForExceptions(); } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/418bf0bd64bae68883676934f3ddec34e3c57d6b/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
613,
265,
12,
780,
2063,
16,
514,
5318,
1887,
13,
5411,
1216,
6483,
16,
399,
2377,
4874,
6667,
30511,
16,
5411,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
288,
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,
613,
265,
12,
780,
2063,
16,
514,
5318,
1887,
13,
5411,
1216,
6483,
16,
399,
2377,
4874,
6667,
30511,
16,
5411,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
288,
3639,
727,... |
ToolRegistry.getRegistry().removeListener(fToolRegistryListener); | NicoUITools.getRegistry().removeListener(fToolRegistryListener); | public void dispose() { if (fToolRegistryListener != null) { ToolRegistry.getRegistry().removeListener(fToolRegistryListener); fToolRegistryListener = null; } if (fCopyAction != null) { fCopyAction.dispose(); fCopyAction = null; } super.dispose(); if (fClipboard != null) { fClipboard.dispose(); fClipboard = null; } fTableViewer = null; } | 47575 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47575/f3ec0418b7a8f15b5fabe0deb56adb554710e666/HistoryView.java/buggy/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/views/HistoryView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
9506,
202,
430,
261,
74,
6364,
4243,
2223,
480,
446,
13,
288,
1082,
202,
6364,
4243,
18,
588,
4243,
7675,
4479,
2223,
12,
74,
6364,
4243,
2223,
1769,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
288,
9506,
202,
430,
261,
74,
6364,
4243,
2223,
480,
446,
13,
288,
1082,
202,
6364,
4243,
18,
588,
4243,
7675,
4479,
2223,
12,
74,
6364,
4243,
2223,
1769,
10... |
FromHeader from = headerFactory.createFromHeader( fromAddress, Integer.toString(srcProvider.hashCode())); | FromHeader from = headerFactory.createFromHeader(fromAddress, Integer .toString(srcProvider.hashCode())); | protected Request createRequest( String method, AddressFactory addressFactory, HeaderFactory headerFactory, MessageFactory messageFactory, SipProvider srcProvider, SipProvider dstProvider, String contentType, String contentSubType, Object content) throws Exception { //Source SipUri SipURI srcSipURI = addressFactory.createSipURI( null, srcProvider.getSipStack().getIPAddress()); srcSipURI.setPort(srcProvider.getListeningPoint().getPort()); srcSipURI.setTransportParam( srcProvider.getListeningPoint().getTransport()); //Destination SipURI SipURI dstSipURI = addressFactory.createSipURI( null, dstProvider.getSipStack().getIPAddress()); dstSipURI.setPort(dstProvider.getListeningPoint().getPort()); dstSipURI.setTransportParam( dstProvider.getListeningPoint().getTransport()); //CallId CallIdHeader callId = srcProvider.getNewCallId(); //CSeq CSeqHeader cSeq = headerFactory.createCSeqHeader(1, method); //From Address fromAddress = addressFactory.createAddress(srcSipURI); FromHeader from = headerFactory.createFromHeader( fromAddress, Integer.toString(srcProvider.hashCode())); //To Address toAddress = addressFactory.createAddress(dstSipURI); ToHeader to = headerFactory.createToHeader(toAddress, null); //Contact ContactHeader contact = headerFactory.createContactHeader(fromAddress); List via = new LinkedList(); ViaHeader viaHeader = headerFactory .createViaHeader( srcProvider.getSipStack().getIPAddress(), srcProvider.getListeningPoint().getPort(), srcProvider.getListeningPoint().getTransport(), // BUG: Use proper RFC3261 branch ID "z9hG4bK" + Long.toString(System.currentTimeMillis()) //branch id ); via.add(viaHeader); MaxForwardsHeader maxForwards = headerFactory.createMaxForwardsHeader(3); Request request = messageFactory.createRequest( dstSipURI, method, callId, cSeq, from, to, via, maxForwards); request.addHeader(contact); if (contentType != null && contentSubType != null && content != null) { ContentTypeHeader contentTypeHdr = headerFactory.createContentTypeHeader( contentType, contentSubType); request.setContent(content, contentTypeHdr); } //pass the headerFactory - issue17 by larryb@dev.java.net addStatus(headerFactory, request); return request; } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/MessageFlowHarness.java/buggy/trunk/src/test/tck/msgflow/MessageFlowHarness.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1567,
15798,
12,
202,
202,
780,
707,
16,
202,
202,
1887,
1733,
1758,
1733,
16,
202,
202,
1864,
1733,
1446,
1733,
16,
202,
202,
1079,
1733,
883,
1733,
16,
202,
202,
17550,
224... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1567,
15798,
12,
202,
202,
780,
707,
16,
202,
202,
1887,
1733,
1758,
1733,
16,
202,
202,
1864,
1733,
1446,
1733,
16,
202,
202,
1079,
1733,
883,
1733,
16,
202,
202,
17550,
224... |
else { throw new WrappedRuntimeException("Could not load '"+resourceName+"' (check CLASSPATH) using just the defaults ", ioe); | else { throw new WrappedRuntimeException("Could not load '"+resourceName+"' (check CLASSPATH), now using just the defaults ", ioe); | static private Properties loadPropertiesFile(String resourceName, Properties defaults) throws IOException { Properties props = new Properties(defaults); InputStream is = null; BufferedInputStream bis = null; try { is = OutputProperties.class.getResourceAsStream(resourceName); bis = new BufferedInputStream(is); props.load(bis); } catch (IOException ioe) { if ( defaults == null ) { throw ioe; } else { throw new WrappedRuntimeException("Could not load '"+resourceName+"' (check CLASSPATH) using just the defaults ", ioe); } } finally { if ( bis != null ) { bis.close(); } if (is != null ) { is.close(); } } // Note that we're working at the HashTable level here, // and not at the Properties level! This is important // because we don't want to modify the default properties. Enumeration keys = props.keys(); while(keys.hasMoreElements()) { String key = (String)keys.nextElement(); // Now check if the given key was specified as a // System property. If so, the system property // overides the default value in the propery file. String value; if ((value = System.getProperty(key)) == null) value = (String)props.get(key); String newKey = fixupPropertyString(key, true); String newValue; if ((newValue = System.getProperty(newKey)) == null) newValue = fixupPropertyString(value, false); else newValue = fixupPropertyString(newValue, false); if(key != newKey || value != newValue) { props.remove(key); props.put(newKey, newValue); } } return props; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/88a204d59f493cb221485b9bcee593b32e4146ae/OutputProperties.java/buggy/src/org/apache/xalan/templates/OutputProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3238,
6183,
1262,
2297,
812,
12,
780,
9546,
16,
6183,
3467,
13,
565,
1216,
1860,
225,
288,
565,
6183,
3458,
273,
394,
6183,
12,
7606,
1769,
565,
5037,
353,
273,
446,
31,
565,
24742... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
3238,
6183,
1262,
2297,
812,
12,
780,
9546,
16,
6183,
3467,
13,
565,
1216,
1860,
225,
288,
565,
6183,
3458,
273,
394,
6183,
12,
7606,
1769,
565,
5037,
353,
273,
446,
31,
565,
24742... |
public General() { super(); setSize(500,354); setDefaultCloseOperation(DISPOSE_ON_CLOSE); getContentPane().setLayout(null); JLabel label = new JLabel("SMTP Server"); label.setBounds(12,12,label.getPreferredSize().width,label.getPreferredSize().height); getContentPane().add(label); tfSMTP = new JTextField(""); tfSMTP.setBounds(100,12,300,tfSMTP.getPreferredSize().height); getContentPane().add(tfSMTP); JButton button = new JButton("Cancel"); button.setBounds(334,290,68,button.getPreferredSize().height); button.addActionListener(new CancelActionListener()); button.setMargin(new Insets(0,0,0,0)); getContentPane().add(button); button = new JButton("Finish"); button.setBounds(414,290,68,button.getPreferredSize().height); button.addActionListener(new FinishActionListener()); button.setMargin(new Insets(0,0,0,0)); getContentPane().add(button); getData(); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/General.java/buggy/grendel/sources/grendel/prefs/ui/General.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9544,
1435,
288,
3639,
2240,
5621,
3639,
19106,
12,
12483,
16,
4763,
24,
1769,
565,
9277,
4605,
2988,
12,
13498,
23757,
67,
673,
67,
13384,
1769,
565,
5154,
8485,
7675,
542,
3744,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9544,
1435,
288,
3639,
2240,
5621,
3639,
19106,
12,
12483,
16,
4763,
24,
1769,
565,
9277,
4605,
2988,
12,
13498,
23757,
67,
673,
67,
13384,
1769,
565,
5154,
8485,
7675,
542,
3744,
1... | ||
public boolean getIgnore() { return isErrorIgnored; } | public boolean getIgnore() { return isErrorIgnored; } | public boolean getIgnore() { return isErrorIgnored; } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/26a2005160d3de38b572957d78e83d591d8b6912/InsertTag.java/buggy/src/share/org/apache/struts/taglib/tiles/InsertTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
336,
3777,
1435,
225,
288,
225,
327,
14574,
15596,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
1250,
336,
3777,
1435,
225,
288,
225,
327,
14574,
15596,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
bgDrawers.add(new BackGroundDrawer (tile,b)); | bgDrawers.addElement(new BackGroundDrawer (tile,b)); | private void setBackGround(){ Image tile = comp.getToolkit().getImage("data/widgets/tile.gif"); PMUtil.setImage(tile, comp); int b = BackGroundDrawer.TILING_BOTH; bgDrawers.add(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.TILING_HORIZONTAL | BackGroundDrawer.VALIGN_TOP; tile = comp.getToolkit().getImage("data/widgets/h_line.gif"); PMUtil.setImage(tile, comp); bgDrawers.add(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.TILING_HORIZONTAL | BackGroundDrawer.VALIGN_BOTTOM; tile = comp.getToolkit().getImage("data/widgets/h_line.gif"); PMUtil.setImage(tile, comp); bgDrawers.add(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.TILING_VERTICAL | BackGroundDrawer.HALIGN_LEFT; tile = comp.getToolkit().getImage("data/widgets/v_line.gif"); PMUtil.setImage(tile, comp); bgDrawers.add(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.TILING_VERTICAL | BackGroundDrawer.HALIGN_RIGHT; tile = comp.getToolkit().getImage("data/widgets/v_line.gif"); PMUtil.setImage(tile, comp); bgDrawers.add(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.NO_TILING | BackGroundDrawer.VALIGN_TOP | BackGroundDrawer.HALIGN_LEFT; tile = comp.getToolkit().getImage("data/widgets/tl_corner.gif"); PMUtil.setImage(tile, comp); bgDrawers.add(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.NO_TILING | BackGroundDrawer.VALIGN_BOTTOM | BackGroundDrawer.HALIGN_LEFT; tile = comp.getToolkit().getImage("data/widgets/bl_corner.gif"); PMUtil.setImage(tile, comp); bgDrawers.add(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.NO_TILING | BackGroundDrawer.VALIGN_TOP | BackGroundDrawer.HALIGN_RIGHT; tile = comp.getToolkit().getImage("data/widgets/tr_corner.gif"); PMUtil.setImage(tile, comp); bgDrawers.add(new BackGroundDrawer (tile,b)); b = BackGroundDrawer.NO_TILING | BackGroundDrawer.VALIGN_BOTTOM | BackGroundDrawer.HALIGN_RIGHT; tile = comp.getToolkit().getImage("data/widgets/br_corner.gif"); PMUtil.setImage(tile, comp); bgDrawers.add(new BackGroundDrawer (tile,b)); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/4664f746b1a10b1b69e9cd37295385bad68f96c6/InfantryMapSet.java/buggy/megamek/src/megamek/client/ui/AWT/widget/InfantryMapSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
444,
2711,
43,
2260,
1435,
95,
3639,
3421,
4769,
273,
1161,
18,
588,
6364,
8691,
7675,
588,
2040,
2932,
892,
19,
18148,
19,
15368,
18,
13905,
8863,
3639,
23544,
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,
1152,
918,
444,
2711,
43,
2260,
1435,
95,
3639,
3421,
4769,
273,
1161,
18,
588,
6364,
8691,
7675,
588,
2040,
2932,
892,
19,
18148,
19,
15368,
18,
13905,
8863,
3639,
23544,
1304,
18,
... |
this.subcriptionName = durableSubscriptionId; | this.subscriptionName = durableSubscriptionId; | public void setSubcriptionName(String durableSubscriptionId) { this.subcriptionName = durableSubscriptionId; } | 17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/333158a031fe2265f0277ddd4e45b4d364233c1c/ConsumerInfo.java/buggy/activemq-core/src/main/java/org/apache/activemq/command/ConsumerInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19942,
24136,
461,
12,
780,
22372,
6663,
548,
13,
288,
3639,
333,
18,
11185,
461,
273,
22372,
6663,
548,
31,
565,
289,
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,
377,
1071,
918,
19942,
24136,
461,
12,
780,
22372,
6663,
548,
13,
288,
3639,
333,
18,
11185,
461,
273,
22372,
6663,
548,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
default: break; } case 0x0333 : switch(d) { case 0x0047 : return 0x01E4; case 0x0048 : return 0x0126; case 0x0054 : return 0x0166; case 0x0067 : return 0x01E5; | case 0x0064 : return 0x1E0F; | public static char getCombiningChar(char c, char d) { switch (c) { case 0x0300 : switch (d) { case 0x0041 : return 0x00C0; case 0x0045 : return 0x00C8; case 0x0049 : return 0x00CC; case 0x004F : return 0x00D2; case 0x0055 : return 0x00D9; case 0x0061 : return 0x00E0; case 0x0065 : return 0x00E8; case 0x0069 : return 0x00EC; case 0x006F : return 0x00F2; case 0x0075 : return 0x00F9; default: break; } case 0x0301 : switch (d) { case 0x0041 : return 0x00C1; case 0x0043 : return 0x0106; case 0x0045 : return 0x00C9; case 0x0047 : return 0x01F4; case 0x0049 : return 0x00CD; case 0x004B : return 0x1E30; case 0x004C : return 0x0139; case 0x004D : return 0x1E3E; case 0x004E : return 0x0143; case 0x004F : return 0x00D3; case 0x0050 : return 0x1E54; case 0x0052 : return 0x0154; case 0x0053 : return 0x015A; case 0x0055 : return 0x00DA; case 0x0059 : return 0x00DD; case 0x005A : return 0x0179; case 0x0061 : return 0x00E1; case 0x0063 : return 0x0107; case 0x0065 : return 0x00E9; case 0x0067 : return 0x01F5; case 0x0069 : return 0x00ED; case 0x006B : return 0x1E31; case 0x006C : return 0x013A; case 0x006D : return 0x1E3F; case 0x006E : return 0x0144; case 0x006F : return 0x00F3; case 0x0070 : return 0x1E55; case 0x0072 : return 0x0155; case 0x0073 : return 0x015B; case 0x0075 : return 0x00FA; case 0x0079 : return 0x00FD; case 0x007A : return 0x017A; case 0x00A2 : return 0x01FE; case 0x00B2 : return 0x01FF; default: break; } case 0x0302 : switch(d) { case 0x0041 : return 0x00C2; case 0x0043 : return 0x0108; case 0x0045 : return 0x00CA; case 0x0047 : return 0x011C; case 0x0048 : return 0x0124; case 0x0049 : return 0x00CE; case 0x004A : return 0x0134; case 0x004B : return 0x01E8; case 0x004C : return 0x1E3C; case 0x004F : return 0x00D4; case 0x0053 : return 0x015C; case 0x0054 : return 0x1E70; case 0x0055 : return 0x00DB; case 0x0057 : return 0x0174; case 0x0059 : return 0x0176; case 0x0061 : return 0x00E2; case 0x0063 : return 0x0109; case 0x0065 : return 0x00EA; case 0x0067 : return 0x011D; case 0x0068 : return 0x0125; case 0x0069 : return 0x00EE; case 0x006A : return 0x0135; case 0x006B : return 0x01E9; case 0x006C : return 0x1E3D; case 0x006F : return 0x00F4; case 0x0073 : return 0x015D; case 0x0074 : return 0x1E71; case 0x0075 : return 0x00FB; case 0x0077 : return 0x0175; case 0x0079 : return 0x0177; default: break; } case 0x0303 : switch(d) { case 0x0041 : return 0x00C3; case 0x0049 : return 0x0128; case 0x004E : return 0x00D1; case 0x004F : return 0x00D5; case 0x0055 : return 0x0168; case 0x0061 : return 0x00E3; case 0x0069 : return 0x0129; case 0x006E : return 0x00F1; case 0x006F : return 0x00F5; case 0x0075 : return 0x0169; default: break; } case 0x0304 : switch(d) { case 0x0041 : return 0x0100; case 0x0045 : return 0x0112; case 0x0049 : return 0x012A; case 0x004F : return 0x014C; case 0x0055 : return 0x016A; case 0x0061 : return 0x0101; case 0x0065 : return 0x0113; case 0x0069 : return 0x012B; case 0x006F : return 0x014D; case 0x0075 : return 0x016B; default: break; } case 0x0306 : switch(d) { case 0x0041 : return 0x0102; case 0x0045 : return 0x0114; case 0x0047 : return 0x011E; case 0x0049 : return 0x012C; case 0x004F : return 0x014E; case 0x0055 : return 0x016C; case 0x0061 : return 0x0103; case 0x0065 : return 0x0115; case 0x0069 : return 0x012D; case 0x006F : return 0x014F; case 0x0075 : return 0x016D; default: break; } case 0x0307 : switch(d) { case 0x0041 : return 0x0226; case 0x0042 : return 0x1E02; case 0x0043 : return 0x010A; case 0x0045 : return 0x0116; case 0x0046 : return 0x1E1E; case 0x0047 : return 0x0120; case 0x0048 : return 0x1E22; case 0x0049 : return 0x0130; case 0x004D : return 0x1E40; case 0x004E : return 0x1E44; case 0x0054 : return 0x1E6A; case 0x0057 : return 0x1E86; case 0x0058 : return 0x1E8A; case 0x0059 : return 0x1E8E; case 0x005A : return 0x017B; case 0x0061 : return 0x0227; case 0x0062 : return 0x1E03; case 0x0063 : return 0x010B; case 0x0065 : return 0x0117; case 0x0066 : return 0x1E1F; case 0x0067 : return 0x0121; case 0x0068 : return 0x1E23; case 0x006D : return 0x1E41; case 0x006E : return 0x1E45; case 0x0074 : return 0x1E6B; case 0x0077 : return 0x1E87; case 0x0078 : return 0x1E8B; case 0x0079 : return 0x1E8F; case 0x007A : return 0x017C; default: break; } case 0x0308 : switch(d) { case 0x0041 : return 0x00C4; case 0x0045 : return 0x00CB; case 0x0049 : return 0x00CF; case 0x004F : return 0x00D6; case 0x0055 : return 0x00DC; case 0x0059 : return 0x0178; case 0x0061 : return 0x00E4; case 0x0065 : return 0x00EB; case 0x0069 : return 0x00EF; case 0x006F : return 0x00F6; case 0x0075 : return 0x00FC; case 0x0079 : return 0x00FF; default: break; } case 0x0309 : switch(d) { case 0x0041 : return 0x1EA2; case 0x0061 : return 0x1EA3; case 0x00C2 : return 0x1EA8; case 0x00E2 : return 0x1EA9; case 0x0102 : return 0x1EB2; case 0x0103 : return 0x1EB3; case 0x0045 : return 0x1EBA; case 0x0065 : return 0x1EBB; case 0x00CA : return 0x1EC0; case 0x00EA : return 0x1EC1; case 0x0049 : return 0x1EC8; case 0x0069 : return 0x1EC9; case 0x004F : return 0x1ECE; case 0x006F : return 0x1ECF; case 0x00D4 : return 0x1ED4; case 0x00F4 : return 0x1ED5; // latin capital letter O with horn and hook above case 0x01A0 : return 0x1EDE; // latin small letter o with horn and hook above case 0x01A1 : return 0x1EDF; // latin capital letter U with hook above case 0x0055 : return 0x1EE6; // latin small letter U with hook above case 0x0075 : return 0x1EE7; // latin capital letter U with horn and hook above case 0x01AF : return 0x1EEC; // latin small letter u with horn and hook above case 0x01B0 : return 0x1EED; // latin capital letter Y with hook above case 0x0059 : return 0x1EF6; // latin small letter y with hook above case 0x0079 : return 0x1EF7; default : break; } case 0x030C : switch(d) { case 0x0043 : return 0x010C; case 0x0044 : return 0x010E; case 0x0045 : return 0x011A; case 0x0047 : return 0x01E6; case 0x004C : return 0x013D; case 0x004E : return 0x0147; case 0x004F : return 0x01D1; case 0x0052 : return 0x0158; case 0x0053 : return 0x0160; case 0x0054 : return 0x0164; case 0x005A : return 0x017D; case 0x0063 : return 0x010D; case 0x0064 : return 0x010F; case 0x0065 : return 0x011B; case 0x0067 : return 0x01E7; case 0x006C : return 0x013E; case 0x006E : return 0x0148; case 0x006F : return 0x01D2; case 0x0072 : return 0x0159; case 0x0073 : return 0x0161; case 0x0074 : return 0x0165; case 0x007A : return 0x017E; default: break; } case 0x030A : switch(d) { case 0x0041 : return 0x00C5; case 0x0055 : return 0x016E; case 0x0061 : return 0x00E5; case 0x0075 : return 0x016F; default: break; } case 0x0315 : switch(d) { case 0x006E : return 0x0149; default: break; } case 0x030B : switch(d) { case 0x004F : return 0x0150; case 0x0055 : return 0x0170; case 0x006F : return 0x0151; case 0x0075 : return 0x0171; default: break; } case 0x0323 : switch(d) { case 0x0041 : return 0x1EA0; case 0x0042 : return 0x1E04; case 0x0044 : return 0x1E0C; case 0x004B : return 0x1E32; case 0x004C : return 0x1E36; case 0x004D : return 0x1E42; case 0x004E : return 0x1E46; case 0x0052 : return 0x1E5A; case 0x0054 : return 0x1E6C; case 0x0056 : return 0x1E7E; case 0x005A : return 0x1E92; case 0x0061 : return 0x1EA1; case 0x0062 : return 0x1E05; case 0x0064 : return 0x1E0D; case 0x0065 : return 0x1EB9; case 0x006B : return 0x1E33; case 0x006C : return 0x1E37; case 0x006D : return 0x1E43; case 0x006E : return 0x1E47; case 0x0072 : return 0x1E5B; case 0x0074 : return 0x1E6D; case 0x0076 : return 0x1E7F; case 0x007A : return 0x1E93; default: break; } case 0x0325 : switch(d) { case 0x0041 : return 0x1E00; case 0x0061 : return 0x1E01; default: break; } case 0x0327 : switch(d) { case 0x0043 : return 0x00C7; case 0x0047 : return 0x0122; case 0x004B : return 0x0136; case 0x004C : return 0x013B; case 0x004E : return 0x0145; case 0x0053 : return 0x015E; case 0x0054 : return 0x0162; case 0x0063 : return 0x00E7; case 0x0067 : return 0x0123; case 0x006B : return 0x0137; case 0x006C : return 0x013C; case 0x006E : return 0x0146; case 0x0072 : return 0x0157; case 0x0073 : return 0x015F; case 0x0074 : return 0x0163; default: break; } case 0x0328 : switch(d) { case 0x0041 : return 0x0104; case 0x0045 : return 0x0118; case 0x0049 : return 0x012E; case 0x004F : return 0x01EA; case 0x0055 : return 0x0172; case 0x0061 : return 0x0105; case 0x0065 : return 0x0119; case 0x0069 : return 0x012F; case 0x006F : return 0x01EB; case 0x0075 : return 0x0173; default: break; } case 0x0331 : switch(d) { case 0x0042 : return 0x1E06; case 0x0062 : return 0x1E07; default: break; } case 0x0333 : switch(d) { case 0x0047 : return 0x01E4; case 0x0048 : return 0x0126; case 0x0054 : return 0x0166; case 0x0067 : return 0x01E5; case 0x0068 : return 0x0127; case 0x0074 : return 0x0167; default: break; } case 0x0332 : switch(d) { case 0x0042 : return 0x1E06; case 0x0044 : return 0x1E0E; case 0x004B : return 0x1E34; case 0x004C : return 0x1E3A; case 0x004E : return 0x1E47; case 0x0052 : return 0x1E5E; case 0x0054 : return 0x1E6E; case 0x0062 : return 0x1E07; case 0x0064 : return 0x1E0F; case 0x006B : return 0x1E35; case 0x006C : return 0x1E3B; case 0x006E : return 0x1E48; case 0x0072 : return 0x1E5F; case 0x0074 : return 0x1E6F; default: break; } case 0x031C : switch(d) { case 0x0052 : return 0x0156; default: break; } case 0x032E : switch(d) { case 0x0048 : return 0x1E2A; case 0x0068 : return 0x1E2B; default: break; } default: break; } return 0; } | 54133 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54133/5a70bb5e1a663b495a4eb352ec7c7510a3bfc2f1/Unicode.java/clean/src/org/marc4j/util/Unicode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1149,
336,
24107,
310,
2156,
12,
3001,
276,
16,
1149,
302,
13,
288,
202,
565,
1620,
261,
71,
13,
288,
3639,
648,
374,
92,
4630,
713,
294,
5411,
1620,
261,
72,
13,
288,
5411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1149,
336,
24107,
310,
2156,
12,
3001,
276,
16,
1149,
302,
13,
288,
202,
565,
1620,
261,
71,
13,
288,
3639,
648,
374,
92,
4630,
713,
294,
5411,
1620,
261,
72,
13,
288,
5411... |
containerLog.error("Could not find the users.xml file", e); | protected synchronized void parse() { //reset the principals cache this.principals = new HashMap(); try { UserFactory.init(); UserManager factory = UserFactory.getInstance(); //this.log.debug("Reloaded the users.xml file into memory"); Map map = factory.getUsers(); //this.log.debug("Loaded " + map.size() + " users into memory"); Iterator iterator = map.keySet().iterator(); while (iterator.hasNext()) { String key = (String) iterator.next(); OpenNMSPrincipal principal = new OpenNMSPrincipal((User) map.get(key)); this.principals.put(key, principal); } //this.log.debug("Loaded the regular users into the principal cache"); } catch (MarshalException e) { //this.log.error("Could not parse the users.xml file", e); } catch (ValidationException e) { //this.log.error("Could not parse the users.xml file", e); } catch (FileNotFoundException e) { //this.log.error("Could not find the users.xml file", e); } catch (Exception e) { //this.log.error("Unexpected exception parsing users.xml file", e); } try { //load the "magic" users Map[] maps = this.parseMagicUsers(); Map magicUserToPasswordMapping = maps[0]; this.magicRoleMapping = maps[1]; //this.log.debug("Loaded the magic user config file"); Iterator iterator = magicUserToPasswordMapping.keySet().iterator(); while (iterator.hasNext()) { String name = (String) iterator.next(); String password = (String) magicUserToPasswordMapping.get(name); User magicUser = new User(); magicUser.setUserId(name); magicUser.setPassword(UserFactory.getInstance().encryptedPassword(password)); this.principals.put(name, new OpenNMSPrincipal(magicUser)); } //this.log.debug("Loaded the magic users into the principal cache"); this.magicUsersLastModified = this.magicUsersFile.lastModified(); //this.log.debug("Updated the magic user file last modified time stamp to " + this.magicUsersLastModified); } catch (FileNotFoundException e) { //this.log.error("Could not find the magic users file", e); } catch (IOException e) { //this.log.error("Could not read the magic users file", e); } catch (Exception e) { //this.log.error("Unexpected exception parsing users.xml file", e); } initialized = true; } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/fe5d3e1e5cf0061245e521f9f1f1756b9a1f54dd/OpenNMSTomcatRealm.java/clean/opennms-tomcat/src/main/java/org/opennms/web/authenticate/OpenNMSTomcatRealm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1478,
1343,
18,
1636,
2932,
4445,
486,
1104,
326,
3677,
18,
2902,
585,
3113,
425,
1769,
1478,
1343,
18,
1636,
2932,
4445,
486,
1104,
326,
3677,
18,
2902,
585,
3113,
425,
1769,
1478,
1343,
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,
1478,
1343,
18,
1636,
2932,
4445,
486,
1104,
326,
3677,
18,
2902,
585,
3113,
425,
1769,
1478,
1343,
18,
1636,
2932,
4445,
486,
1104,
326,
3677,
18,
2902,
585,
3113,
425,
1769,
1478,
1343,
18,
... | |
"Queue: " + queue + ".size: " + queue.size() + | "Queue: " + myqueue + ".size: " + myqueue.size() + | void ensureData (int amount) { boolean tempval = myqueue.size() < amount; while (tempval) { assert source != null; if (maxSize!=-1) { // give a better error message ERROR("ERROR:\n" + "Trying to pop or peek beyond the declared rate in stream " + sink + "\n" + "Make sure that your pop/peek statements match the declared rates.\n" + "\n" + "Internal message:\n" + "maxSize should equal -1 " + "(representing not a scheduled buffer)\n" + "Queue: " + queue + ".size: " + queue.size() + " amount is: " + amount + " and maxSize is: " + maxSize); } source.doWork(); tempval = myqueue.size() < amount; } } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/486f92efca3b6aa5982fed17a4b5b553144e6f83/Channel.java/buggy/streams/src/streamit/library/Channel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3387,
751,
261,
474,
3844,
13,
565,
288,
3639,
1250,
1906,
1125,
273,
3399,
4000,
18,
1467,
1435,
411,
3844,
31,
3639,
1323,
261,
5814,
1125,
13,
5411,
288,
7734,
1815,
1084,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3387,
751,
261,
474,
3844,
13,
565,
288,
3639,
1250,
1906,
1125,
273,
3399,
4000,
18,
1467,
1435,
411,
3844,
31,
3639,
1323,
261,
5814,
1125,
13,
5411,
288,
7734,
1815,
1084,
480,
... |
throw new NameError( ruby, | throw new NameError(ruby, | public RubyObject method_missing(RubyObject symbol, RubyObject[] args) { // +++ // IMPLEMENT THIS METHOD // --- Ruby ruby = getRuby(); throw new NameError( ruby, ruby.getSourceFile() + ":" + ruby.getSourceLine() + " undefined method '" + symbol.toId() + "' for '" + type().toName() + '\''); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/RubyObject.java/buggy/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
707,
67,
7337,
12,
54,
10340,
921,
3273,
16,
19817,
921,
8526,
833,
13,
288,
3639,
368,
965,
15,
3639,
368,
15694,
7618,
20676,
10152,
3639,
368,
9948,
3639,
19817,
2215... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
921,
707,
67,
7337,
12,
54,
10340,
921,
3273,
16,
19817,
921,
8526,
833,
13,
288,
3639,
368,
965,
15,
3639,
368,
15694,
7618,
20676,
10152,
3639,
368,
9948,
3639,
19817,
2215... |
vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); /* Setup a call to SoftByteCodes.allocObject */ helper.writePUSH(Register.EAX); /* vmClass */ helper.writePUSH(-1); /* Size */ helper.invokeJavaMethod(context.getAllocObjectMethod()); /* Result is already on the stack */ vstack.pushItem(RefItem.createStack()); } | vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); /* Setup a call to SoftByteCodes.allocObject */ helper.writePUSH(Register.EAX); /* vmClass */ helper.writePUSH(-1); /* Size */ helper.invokeJavaMethod(context.getAllocObjectMethod()); /* Result is already on the stack */ vstack.pushItem(RefItem.createStack()); } | public final void visit_new(VmConstClass classRef) { //TODO: port to orp-style vstack.push(eContext); writeResolveAndLoadClassToEAX(classRef, S0); /* Setup a call to SoftByteCodes.allocObject */ helper.writePUSH(Register.EAX); /* vmClass */ helper.writePUSH(-1); /* Size */ helper.invokeJavaMethod(context.getAllocObjectMethod()); /* Result is already on the stack */ vstack.pushItem(RefItem.createStack()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d402ee1c5f9ab6d1c5b4f597b70658827f1f304d/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
2704,
12,
22143,
9661,
797,
667,
1957,
13,
288,
202,
202,
759,
6241,
30,
1756,
358,
578,
84,
17,
4060,
202,
202,
90,
3772,
18,
6206,
12,
73,
1042,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
2704,
12,
22143,
9661,
797,
667,
1957,
13,
288,
202,
202,
759,
6241,
30,
1756,
358,
578,
84,
17,
4060,
202,
202,
90,
3772,
18,
6206,
12,
73,
1042,
1769,
... |
System.err.println(cx.toString(result)); | err.println(cx.toString(result)); | public static void processSource(Context cx, String filename) { SourceTextManager stm = cx.getSourceTextManager(); if (filename == null || filename.equals("-")) { BufferedReader in = new BufferedReader (new InputStreamReader(System.in)); if(null != stm) in = new DebugReader(in, stm, "<stdin>"); int lineno = 1; boolean hitEOF = false; while (!hitEOF && !global.quitting) { int startline = lineno; if (filename == null) System.err.print("js> "); System.err.flush(); try { String source = ""; // Collect lines of source to compile. while(true) { String newline; newline = in.readLine(); if (newline == null) { hitEOF = true; break; } source = source + newline + "\n"; lineno++; if (cx.stringIsCompilableUnit(source)) break; } Object result = cx.evaluateString(global, source, "<stdin>", startline, null); if (result != cx.getUndefinedValue()) { System.err.println(cx.toString(result)); } NativeArray h = global.history; h.put((int)h.jsGet_length(), h, source); } catch (WrappedException we) { // Some form of exception was caught by JavaScript and // propagated up. System.err.println(we.getWrappedException().toString()); we.printStackTrace(); } catch (EvaluatorException ee) { // Some form of JavaScript error. // Already printed message, so just fall through. } catch (JavaScriptException jse) { // Need to propagate ThreadDeath exceptions. Object value = jse.getValue(); if (value instanceof ThreadDeath) throw (ThreadDeath) value; Context.reportError(ToolErrorReporter.getMessage( "msg.uncaughtJSException", jse.getMessage())); } catch (IOException ioe) { System.err.println(ioe.toString()); } if (global.quitting) { // The user executed the quit() function. break; } } System.err.println(); } else { Reader in = null; try { in = new PushbackReader(new FileReader(filename)); int c = in.read(); // Support the executable script #! syntax: If // the first line begins with a '#', treat the whole // line as a comment. if (c == '#') { while ((c = in.read()) != -1) { if (c == '\n' || c == '\r') break; } ((PushbackReader) in).unread(c); } else { // No '#' line, just reopen the file and forget it // ever happened. OPT closing and reopening // undoubtedly carries some cost. Is this faster // or slower than leaving the PushbackReader // around? in.close(); in = new FileReader(filename); } if(null != stm) in = new DebugReader(in, stm, filename); } catch (FileNotFoundException ex) { Context.reportError(ToolErrorReporter.getMessage( "msg.couldnt.open", filename)); return; } catch (IOException ioe) { System.err.println(ioe.toString()); } try { // Here we evalute the entire contents of the file as // a script. Text is printed only if the print() function // is called. cx.evaluateReader(global, in, filename, 1, null); } catch (WrappedException we) { System.err.println(we.getWrappedException().toString()); we.printStackTrace(); } catch (EvaluatorException ee) { // Already printed message, so just fall through. } catch (JavaScriptException jse) { // Need to propagate ThreadDeath exceptions. Object value = jse.getValue(); if (value instanceof ThreadDeath) throw (ThreadDeath) value; Context.reportError(ToolErrorReporter.getMessage( "msg.uncaughtJSException", jse.getMessage())); } catch (IOException ioe) { System.err.println(ioe.toString()); } finally { try { in.close(); } catch (IOException ioe) { System.err.println(ioe.toString()); } } } System.gc(); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/de8bedf312b2fad23c19d3781ea5e0b40c31a314/Main.java/clean/js/rhino/org/mozilla/javascript/tools/shell/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1207,
1830,
12,
1042,
9494,
16,
514,
1544,
13,
288,
3639,
4998,
1528,
1318,
28358,
273,
9494,
18,
588,
1830,
1528,
1318,
5621,
3639,
309,
261,
3459,
422,
446,
747,
1544,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
1830,
12,
1042,
9494,
16,
514,
1544,
13,
288,
3639,
4998,
1528,
1318,
28358,
273,
9494,
18,
588,
1830,
1528,
1318,
5621,
3639,
309,
261,
3459,
422,
446,
747,
1544,
... |
public void testManageRequest () { // creation d'une liste de produits en entre List<Product> lInputProduct = new ArrayList<Product>(); lInputProduct.add(new Product("", "produit1", null, null, null)); // creation des requetes Request reqNext = new Request(Request.RequestType.NEXT); Request reqPrevious = new Request(Request.RequestType.PREVIOUS); Request reqAleat = new Request(Request.RequestType.CLOSE_PROCESS); // ajout des produits en entre de l'activit this.activity.setInputProducts(lInputProduct); //on envoie la requete next et on ne doit pas changer d'etat assertFalse("Requete PREVIOUS envoye a l'etat. Aucun changement ", this.state.manageRequest(reqPrevious)); assertTrue ("L'etat actuel doit etre un PreConditionCheckerState", this.activityScheduler.getActivityState() == this.state); //on passe a l'etat suivant et on verifie que c'est un ActivityPresentationState assertTrue ("Requete NEXT envoye a l'etat : changement vers l'etat. ActivityPresentationState", this.state.manageRequest(reqNext)); assertTrue ("L'etat actuel doit etre un ActivityPresentationState", this.activityScheduler.getActivityState() instanceof ActivityPresentationState); // Test de GOTOSTEP // creation d'un ArrayList de step avec une etape ArrayList<Step> arrStep = new ArrayList<Step>(); arrStep.add(new Step("Etape 1", null, new ArrayList<Product>())); // cration d'une activit vide pour les tests this.activity = new Activity("", "", null, null, arrStep, new WorkDefinition("", "", null, null, new ArrayList<Activity>()), new ArrayList<Product>(), new ArrayList<Product>(), new Role("", "", null, null, new ArrayList<Activity>())); // creation d'un ActivityScheduler this.activityScheduler = new ActivityScheduler(this.activity); ArrayList<AbstractActivityState> arrState = new ArrayList<AbstractActivityState>(); // initialisation de l'ArrayList arrState.add(new PreConditionCheckerState(this.activityScheduler, this.activity)); arrState.add(new StepState(this.activityScheduler, this.activity, 0)); arrState.add(new PostConditionCheckerState(this.activityScheduler, this.activity)); // on teste la requete GOTOSTEP for (int i = 0; i < arrState.size(); i++) { // on se met dans le bon etat // creation de l'etat ActivityState this.state = new ActivityPresentationState(this.activityScheduler, this.activity); // on met l'ActivityScheduler dans l'etat ActivityPresentationState this.activityScheduler.setActivityState(this.state); // Creation d'une requete GOTOSTEP Request request = new Request(Request.RequestType.GOTOSTEP, arrState.get(i)); assertTrue("L'etat devrait changer", this.activityScheduler.ManageRequest(request)); assertTrue("L'etat devrait etre celui de tab[i]", this.activityScheduler.getActivityState() == arrState.get(i)); } //avec ou sans steps dans l'activit, on passe ds tous les cas //dans un ActiityPresentationState grce au next //et le bouton previous est dsactiv this.activityScheduler.setState(this.state); //on envoie un ensemble de requetes et on teste si elles ont chang l'tat de la machine assertFalse("Requete CLOSE_PROCESS envoye a l'etat, rien ne doit se passer", this.state.manageRequest(reqAleat)); assertTrue ("L'etat actuel doit etre un PreConditionCheckerState", this.activityScheduler.getActivityState() == this.state); reqAleat = new Request(Request.RequestType.CLOSE_PROJECT); assertFalse("Requete CLOSE_PROJECT envoye a l'etat, rien ne doit se passer", this.state.manageRequest(reqAleat)); assertTrue ("L'etat actuel doit etre un PreConditionCheckerState", this.activityScheduler.getActivityState() == this.state); reqAleat = new Request(Request.RequestType.TERMINATE_ACTIVITY); assertFalse("Requete TERMINATE_ACTIVITY envoye a l'etat, rien ne doit se passer", this.state.manageRequest(reqAleat)); assertTrue ("L'etat actuel doit etre un PreConditionCheckerState", this.activityScheduler.getActivityState() == this.state); } | 9158 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9158/fb348e0d05f3cd190cc56cb0db2b3d5be833594f/PreCondictionCheckerStateTest.java/clean/PAGOD/src/test/pagod/wizard/control/states/activity/PreCondictionCheckerStateTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
21258,
691,
1832,
202,
95,
202,
202,
759,
6710,
302,
11,
7556,
31614,
443,
4810,
1282,
570,
3281,
266,
202,
202,
682,
32,
4133,
34,
328,
1210,
4133,
273,
394,
2407,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
21258,
691,
1832,
202,
95,
202,
202,
759,
6710,
302,
11,
7556,
31614,
443,
4810,
1282,
570,
3281,
266,
202,
202,
682,
32,
4133,
34,
328,
1210,
4133,
273,
394,
2407,... | ||
super(cms, Messages.get().key(cms.getRequestContext().getLocale(), Messages.GUI_MERGE_PAGES_THREAD_NAME_0, null)); | super( cms, Messages.get().key(cms.getRequestContext().getLocale(), Messages.GUI_MERGE_PAGES_THREAD_NAME_0, null)); | public CmsMergePagesThread(CmsObject cms, CmsMergePages mergePages) { super(cms, Messages.get().key(cms.getRequestContext().getLocale(), Messages.GUI_MERGE_PAGES_THREAD_NAME_0, null)); cms.getRequestContext().setUpdateSessionEnabled(false); initHtmlReport(cms.getRequestContext().getLocale()); m_mergePages = mergePages; start(); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/41dcaa9d1a1b8f8fa6c1dd9a04fc8532eb83ebb7/CmsMergePagesThread.java/clean/src-modules/org/opencms/workplace/tools/content/CmsMergePagesThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
6786,
5716,
3830,
12,
4747,
921,
6166,
16,
2149,
6786,
5716,
2691,
5716,
13,
288,
3639,
2240,
12,
6166,
16,
4838,
18,
588,
7675,
856,
12,
6851,
18,
588,
21426,
7675,
588,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
6786,
5716,
3830,
12,
4747,
921,
6166,
16,
2149,
6786,
5716,
2691,
5716,
13,
288,
3639,
2240,
12,
6166,
16,
4838,
18,
588,
7675,
856,
12,
6851,
18,
588,
21426,
7675,
588,
39... |
dag.addEdge( "a", "b" ); | dag.addEdge( "a", "b" ); | public void testGetPredessors() { try { final DAG dag = new DAG(); dag.addEdge( "a", "b" ); // // a --> b --> c --> e // | | | // | V V // --> d <-- f --> g // result d, g, f, c, b, a //force order of nodes dag.addVertex( "c" ); dag.addVertex( "d" ); dag.addEdge( "a", "b" ); dag.addEdge( "b", "c" ); dag.addEdge( "b", "d" ); dag.addEdge( "c", "d" ); dag.addEdge( "c", "e" ); dag.addEdge( "f", "d" ); dag.addEdge( "e", "f" ); dag.addEdge( "f", "g" ); final List actual = dag.getSuccessorLabels( "b" ); final List expected = new ArrayList(); expected.add( "d" ); expected.add( "g" ); expected.add( "f" ); expected.add( "e" ); expected.add( "c" ); expected.add( "b" ); assertEquals( expected, actual ); } catch ( CycleDetectedException e ) { e.printStackTrace(); fail( e.getMessage() ); } } | 53014 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53014/cfabe45e6b0c50369f20b48395947b6f897da030/DAGTest.java/clean/src/test/java/org/codehaus/plexus/util/dag/DAGTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
10391,
403,
1383,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
727,
463,
1781,
22940,
273,
394,
463,
1781,
5621,
5411,
22940,
18,
1289,
6098,
12,
315,
69,
3113,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
967,
10391,
403,
1383,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
727,
463,
1781,
22940,
273,
394,
463,
1781,
5621,
5411,
22940,
18,
1289,
6098,
12,
315,
69,
3113,
315,
... |
int rval = sliceToggler.showDialog(dialog.getVisBio()); | int rval = sliceToggler.showDialog(dialog); | public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if (cmd.equals("stackBox")) { DataTransform trans = (DataTransform) transformList.getSelectedValue(); int axis = stackBox.getSelectedIndex() - 1; StackLink link = (StackLink) handler.getLink(trans); link.setStackAxis(axis); handler.rebuild(); } else if (cmd.equals("highlight")) { DataTransform trans = (DataTransform) transformList.getSelectedValue(); boolean vis = highlight.isSelected(); StackLink link = (StackLink) handler.getLink(trans); link.setBoundingBoxVisible(vis); } else if (cmd.equals("toggleSlices")) { DisplayDialog dialog = handler.getDialog(); DataTransform trans = (DataTransform) transformList.getSelectedValue(); sliceToggler.setTransform(trans); int rval = sliceToggler.showDialog(dialog.getVisBio()); if (rval != SliceToggler.APPROVE_OPTION) return; updateControls(); } else if (cmd.equals("sliceVisible")) { DataTransform trans = (DataTransform) transformList.getSelectedValue(); StackLink link = (StackLink) handler.getLink(trans); int slice = link.getCurrentSlice(); boolean vis = sliceVisible.isSelected(); link.setSliceVisible(slice, vis); updateControls(); } else { if (cmd.equals("transformBox")) updateControls(); super.actionPerformed(e); } } | 49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/1f75fa9ec5c19c0eaed3e699d5c945e7168f87ba/StackPanel.java/clean/loci/visbio/view/StackPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
565,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
565,
309,
261,
4172,
18,
14963,
2932,
3772,
3514,
6,
3719,
288,
1377,
1910,
4059,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
565,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
565,
309,
261,
4172,
18,
14963,
2932,
3772,
3514,
6,
3719,
288,
1377,
1910,
4059,
90... |
public void contextualize(Context context) | public void contextualize(Context context) | public void contextualize(Context context) throws ContextException { Collection serverNames = (Collection)context.get(Constants.SERVER_NAMES); usersDomain = (String)serverNames.iterator().next(); } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/67b0da6d7f302cfacb215cc951083e86c6284cd5/UsersLDAPRepository.java/clean/trunk/src/java/org/apache/james/userrepository/UsersLDAPRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
22724,
554,
12,
1042,
819,
13,
540,
1216,
1772,
503,
288,
3639,
2200,
1438,
1557,
5411,
273,
261,
2532,
13,
2472,
18,
588,
12,
2918,
18,
4370,
67,
16257,
1769,
3639,
3677,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
22724,
554,
12,
1042,
819,
13,
540,
1216,
1772,
503,
288,
3639,
2200,
1438,
1557,
5411,
273,
261,
2532,
13,
2472,
18,
588,
12,
2918,
18,
4370,
67,
16257,
1769,
3639,
3677,
37... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.