rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
sTmp = serviceprovider.getValue(sTmp); if (sTmp == null || "".equals(sTmp)) { sTmp = "Key could not be found in Properties file...or properties file not present."; } | sTmp = "Key could not be found in Properties file...or properties file not present."; | public String getValue(String str) { String sTmp = ""; sTmp = getKey(str); if ("".equals(sTmp)) { int iSeparator = str.indexOf(SEPARATOR) + SEPARATOR.length(); if (iSeparator == (-1 + SEPARATOR.length())) { iSeparator = 0; } return str.substring(iSeparator); } else { sTmp = serviceprovider.getValue(sTmp); if (sTmp == null || "".equals(sTmp)) { sTmp = "Key could not be found in Properties file...or properties file not present."; } } return sTmp; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/328c8495576ec950cc922a812ac021ce2d28f134/ExternalizedTextEditorComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/ExternalizedTextEditorComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2366,
12,
780,
609,
13,
565,
288,
3639,
514,
272,
9161,
273,
1408,
31,
3639,
272,
9161,
273,
3579,
12,
701,
1769,
3639,
309,
261,
3660,
18,
14963,
12,
87,
9161,
3719,
3639,
288,
5411,
509,
277,
6581,
273,
609,
18,
31806,
12,
4550,
13,
397,
17620,
18,
2469,
5621,
5411,
309,
261,
77,
6581,
422,
24927,
21,
397,
17620,
18,
2469,
1435,
3719,
5411,
288,
7734,
277,
6581,
273,
374,
31,
5411,
289,
5411,
327,
609,
18,
28023,
12,
77,
6581,
1769,
3639,
289,
3639,
469,
3639,
288,
5411,
272,
9161,
273,
1156,
6778,
18,
24805,
12,
87,
9161,
1769,
5411,
309,
261,
87,
9161,
422,
446,
747,
1408,
18,
14963,
12,
87,
9161,
3719,
5411,
288,
7734,
272,
9161,
273,
315,
653,
3377,
486,
506,
1392,
316,
6183,
585,
2777,
280,
1790,
585,
486,
3430,
1199,
31,
5411,
289,
3639,
289,
3639,
327,
272,
9161,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2366,
12,
780,
609,
13,
565,
288,
3639,
514,
272,
9161,
273,
1408,
31,
3639,
272,
9161,
273,
3579,
12,
701,
1769,
3639,
309,
261,
3660,
18,
14963,
12,
87,
9161,
3719,
3639,
288,
5411,
509,
277,
6581,
273,
609,
18,
31806,
12,
4550,
13,
397,
17620,
18,
2469,
5621,
5411,
309,
261,
77,
6581,
422,
24927,
21,
397,
17620,
18,
2469,
1435,
3719,
5411,
288,
7734,
277,
6581,
273,
374,
31,
5411,
289,
5411,
327,
609,
18,
28023,
12,
77,
6581,
1769,
3639,
289,
3639,
469,
3639,
288,
5411,
272,
9161,
273,
1156,
6778,
18,
24805,
12,
87,
9161,
1769,
5411,
309,
261,
87,
9161,
422,
446,
747,
1408,
18,
14963,
12,
87,
9161,
3719,
2
] |
mockPluginManager.expects(once()).method("getPluginModule").will(returnValue((JiraSoapService) mock.proxy())); | protected void setUp() throws Exception { super.setUp(); Mock mockPluginManager = new Mock(PluginManager.class); mockPluginManager.expects(once()).method("getPluginModule").will(returnValue((JiraSoapService) mock.proxy())); mock = new Mock(JiraSoapService.class); service = new JiraXmlRpcService((PluginManager) mockPluginManager.proxy()); } | 21772 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/21772/b2876cf84888caa7958e8c5e9648338fb2beec50/TestJiraXmlRpcService.java/clean/src/test/java/com/atlassian/jira/rpc/xmlrpc/TestJiraXmlRpcService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
565,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
7867,
5416,
3773,
1318,
273,
394,
7867,
12,
3773,
1318,
18,
1106,
1769,
7734,
5416,
273,
394,
7867,
12,
46,
11547,
20601,
1179,
18,
1106,
1769,
3639,
1156,
273,
394,
804,
11547,
4432,
11647,
1179,
12443,
3773,
1318,
13,
5416,
3773,
1318,
18,
5656,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
1216,
1185,
565,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
7867,
5416,
3773,
1318,
273,
394,
7867,
12,
3773,
1318,
18,
1106,
1769,
7734,
5416,
273,
394,
7867,
12,
46,
11547,
20601,
1179,
18,
1106,
1769,
3639,
1156,
273,
394,
804,
11547,
4432,
11647,
1179,
12443,
3773,
1318,
13,
5416,
3773,
1318,
18,
5656,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
if(log.isInfoEnabled()) log.info("sending handleJoin(" + mbr + ") to " + coord); | if(log.isDebugEnabled()) log.debug("sending handleJoin(" + mbr + ") to " + coord); | public void join(Address mbr) { Address coord=null; JoinRsp rsp=null; Digest tmp_digest=null; join_promise.reset(); while(true) { findInitialMembers(); if(log.isDebugEnabled()) log.debug("initial_mbrs are " + initial_mbrs); if(initial_mbrs.size() == 0) { if(gms.disable_initial_coord) { if(log.isInfoEnabled()) log.info("received an initial membership of 0, but cannot become coordinator (disable_initial_coord=" + gms.disable_initial_coord + "), will retry fetching the initial membership"); continue; } if(log.isInfoEnabled()) log.info("no initial members discovered: creating group as first member"); becomeSingletonMember(mbr); return; } coord=determineCoord(initial_mbrs); if(coord == null) { if(log.isErrorEnabled()) log.error("could not determine coordinator from responses " + initial_mbrs); continue; } try { if(log.isInfoEnabled()) log.info("sending handleJoin(" + mbr + ") to " + coord); sendJoinMessage(coord, mbr); rsp=(JoinRsp)join_promise.getResult(gms.join_timeout); if(rsp == null) { if(log.isWarnEnabled()) log.warn("handleJoin(" + mbr + ") failed, retrying"); } else { // 1. Install digest tmp_digest=rsp.getDigest(); if(tmp_digest != null) { tmp_digest.incrementHighSeqno(coord); // see DESIGN for an explanantion if(log.isInfoEnabled()) log.info("digest is " + tmp_digest); gms.setDigest(tmp_digest); } else if(log.isErrorEnabled()) log.error("digest of JOIN response is null"); // 2. Install view if(log.isDebugEnabled()) log.debug("[" + gms.local_addr + "]: JoinRsp=" + rsp.getView() + " [size=" + rsp.getView().size() + "]\n\n"); if(rsp.getView() != null) { if(!installView(rsp.getView())) { if(log.isErrorEnabled()) log.error("view installation failed, " + "retrying to join group"); continue; } gms.passUp(new Event(Event.BECOME_SERVER)); gms.passDown(new Event(Event.BECOME_SERVER)); return; } else if(log.isErrorEnabled()) log.error("view of JOIN response is null"); } } catch(Exception e) { if(log.isInfoEnabled()) log.info("exception=" + e.toString() + ", retrying"); } Util.sleep(gms.join_retry_timeout); } } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/ClientGmsImpl.java/buggy/src/org/jgroups/protocols/pbcast/ClientGmsImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1233,
12,
1887,
312,
2848,
13,
288,
3639,
5267,
2745,
33,
2011,
31,
3639,
4214,
54,
1752,
12049,
33,
2011,
31,
3639,
15864,
1853,
67,
10171,
33,
2011,
31,
3639,
1233,
67,
20837,
18,
6208,
5621,
3639,
1323,
12,
3767,
13,
288,
5411,
1104,
4435,
6918,
5621,
5411,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
6769,
67,
1627,
5453,
854,
315,
397,
2172,
67,
1627,
5453,
1769,
5411,
309,
12,
6769,
67,
1627,
5453,
18,
1467,
1435,
422,
374,
13,
288,
7734,
309,
12,
75,
959,
18,
8394,
67,
6769,
67,
5732,
13,
288,
10792,
309,
12,
1330,
18,
291,
966,
1526,
10756,
13491,
613,
18,
1376,
2932,
15213,
392,
2172,
12459,
434,
374,
16,
1496,
2780,
12561,
24794,
261,
8394,
67,
6769,
67,
5732,
1546,
397,
27573,
314,
959,
18,
8394,
67,
6769,
67,
5732,
397,
315,
3631,
903,
3300,
16191,
326,
2172,
12459,
8863,
10792,
1324,
31,
7734,
289,
7734,
309,
12,
1330,
18,
291,
966,
1526,
10756,
10792,
613,
18,
1376,
2932,
2135,
2172,
4833,
18238,
30,
4979,
1041,
487,
1122,
3140,
8863,
7734,
12561,
19571,
4419,
12,
1627,
86,
1769,
7734,
327,
31,
5411,
289,
5411,
2745,
33,
24661,
5401,
12,
6769,
67,
1627,
5453,
1769,
5411,
309,
12,
5732,
422,
446,
13,
288,
7734,
309,
12,
1330,
18,
291,
668,
1526,
10756,
10792,
613,
18,
1636,
2932,
15195,
486,
4199,
24794,
628,
7220,
315,
397,
2172,
67,
1627,
5453,
1769,
7734,
1324,
31,
5411,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1233,
12,
1887,
312,
2848,
13,
288,
3639,
5267,
2745,
33,
2011,
31,
3639,
4214,
54,
1752,
12049,
33,
2011,
31,
3639,
15864,
1853,
67,
10171,
33,
2011,
31,
3639,
1233,
67,
20837,
18,
6208,
5621,
3639,
1323,
12,
3767,
13,
288,
5411,
1104,
4435,
6918,
5621,
5411,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
6769,
67,
1627,
5453,
854,
315,
397,
2172,
67,
1627,
5453,
1769,
5411,
309,
12,
6769,
67,
1627,
5453,
18,
1467,
1435,
422,
374,
13,
288,
7734,
309,
12,
75,
959,
18,
8394,
67,
6769,
67,
5732,
13,
288,
10792,
309,
12,
1330,
18,
291,
966,
1526,
10756,
13491,
613,
18,
1376,
2932,
15213,
392,
2172,
2
] |
if ((tree.isVisible(path) && tree.isExpanded(path)) || treeModel.isLeaf(next)) | if ((tree.isVisible(path) && tree.isExpanded(path)) || treeModel.isLeaf(next)) | void updateCurrentVisiblePath() { if (treeModel == null) return; Object next = treeModel.getRoot(); Rectangle bounds = getCellBounds(0, 0, next); boolean rootVisible = isRootVisible(); // If root is not a valid size to be visible, or is // not visible and the tree is expanded, then the next node acts // as the root if ((bounds.width == 0 && bounds.height == 0) || (!rootVisible && tree.isExpanded(new TreePath(next)))) next = getNextNode(next); TreePath current = null; while (next != null) { if (current == null) current = new TreePath(next); else current = current.pathByAddingChild(next); do { TreePath path = new TreePath(getPathToRoot(next, 0)); if ((tree.isVisible(path) && tree.isExpanded(path)) || treeModel.isLeaf(next)) next = getNextNode(next); else next = getNextSibling(next); } while (next != null && !tree.isVisible(new TreePath(getPathToRoot(next, 0)))); } currentVisiblePath = current; if (currentVisiblePath != null) tree.setVisibleRowCount(currentVisiblePath.getPathCount()); else tree.setVisibleRowCount(0); if (tree.getSelectionModel() != null && tree.getSelectionCount() == 0 && currentVisiblePath != null) selectPath(tree, new TreePath(currentVisiblePath.getPathComponent(0))); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/badba23052f905d992da7c32124c28f4339931fc/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1089,
3935,
6207,
743,
1435,
225,
288,
565,
309,
261,
3413,
1488,
422,
446,
13,
1377,
327,
31,
565,
1033,
1024,
273,
2151,
1488,
18,
588,
2375,
5621,
565,
13264,
4972,
273,
16458,
5694,
12,
20,
16,
374,
16,
1024,
1769,
565,
1250,
1365,
6207,
273,
19371,
6207,
5621,
3639,
368,
971,
1365,
353,
486,
279,
923,
963,
358,
506,
6021,
16,
578,
353,
565,
368,
486,
6021,
471,
326,
2151,
353,
8406,
16,
1508,
326,
1024,
756,
22668,
565,
368,
487,
326,
1365,
565,
309,
14015,
10576,
18,
2819,
422,
374,
597,
4972,
18,
4210,
422,
374,
13,
747,
16051,
3085,
6207,
3639,
597,
2151,
18,
291,
17957,
12,
2704,
4902,
743,
12,
4285,
3719,
3719,
1377,
1024,
273,
6927,
907,
12,
4285,
1769,
565,
4902,
743,
783,
273,
446,
31,
565,
1323,
261,
4285,
480,
446,
13,
1377,
288,
3639,
309,
261,
2972,
422,
446,
13,
1850,
783,
273,
394,
4902,
743,
12,
4285,
1769,
3639,
469,
2398,
783,
273,
783,
18,
803,
858,
13962,
1763,
12,
4285,
1769,
3639,
741,
1850,
288,
5411,
4902,
743,
589,
273,
394,
4902,
743,
12,
588,
743,
774,
2375,
12,
4285,
16,
374,
10019,
5411,
309,
14015,
3413,
18,
291,
6207,
12,
803,
13,
597,
2151,
18,
291,
17957,
12,
803,
3719,
747,
7734,
2151,
1488,
18,
291,
9858,
12,
4285,
3719,
1850,
1024,
273,
6927,
907,
12,
4285,
1769,
5411,
469,
2868,
1024,
273,
6927,
10291,
12,
4285,
1769,
1850,
289,
3639,
1323,
261,
4285,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
1089,
3935,
6207,
743,
1435,
225,
288,
565,
309,
261,
3413,
1488,
422,
446,
13,
1377,
327,
31,
565,
1033,
1024,
273,
2151,
1488,
18,
588,
2375,
5621,
565,
13264,
4972,
273,
16458,
5694,
12,
20,
16,
374,
16,
1024,
1769,
565,
1250,
1365,
6207,
273,
19371,
6207,
5621,
3639,
368,
971,
1365,
353,
486,
279,
923,
963,
358,
506,
6021,
16,
578,
353,
565,
368,
486,
6021,
471,
326,
2151,
353,
8406,
16,
1508,
326,
1024,
756,
22668,
565,
368,
487,
326,
1365,
565,
309,
14015,
10576,
18,
2819,
422,
374,
597,
4972,
18,
4210,
422,
374,
13,
747,
16051,
3085,
6207,
3639,
597,
2151,
18,
291,
17957,
12,
2704,
4902,
743,
12,
4285,
3719,
3719,
2
] |
new FilterCalculator( populator, filterByRow ).applyFilters( ); | new FilterCalculator( populator, filterByRow, session ).applyFilters( ); | static void applyFilters( ResultSetPopulator populator, FilterByRow filterByRow ) throws DataException { new FilterCalculator( populator, filterByRow ).applyFilters( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0049044a5bef6d7cacb43d07aaac96e021a89ed5/FilterCalculator.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/pass/FilterCalculator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
2230,
5422,
12,
10842,
7049,
11775,
3650,
639,
16,
4008,
858,
1999,
12219,
1999,
262,
1082,
202,
15069,
1910,
503,
202,
95,
202,
202,
2704,
4008,
19278,
12,
3650,
639,
16,
12219,
1999,
262,
18,
9010,
5422,
12,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3845,
918,
2230,
5422,
12,
10842,
7049,
11775,
3650,
639,
16,
4008,
858,
1999,
12219,
1999,
262,
1082,
202,
15069,
1910,
503,
202,
95,
202,
202,
2704,
4008,
19278,
12,
3650,
639,
16,
12219,
1999,
262,
18,
9010,
5422,
12,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
openTaskEditor.run(); | private void hookOpenAction() { getViewer().addDoubleClickListener(new IDoubleClickListener() { public void doubleClick(DoubleClickEvent event) { openTaskEditor.run(); if (TasksUiPlugin.getDefault().getPreferenceStore().getBoolean( TaskListPreferenceConstants.ACTIVATE_ON_OPEN)) { activateAction.run(); } } }); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d460adfe82e4aba9cf5afcb503903ea75bf610dc/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
3678,
1803,
1435,
288,
202,
202,
588,
18415,
7675,
1289,
5265,
22092,
12,
2704,
1599,
83,
1255,
22092,
1435,
288,
1082,
202,
482,
918,
1645,
6563,
12,
5265,
6563,
1133,
871,
13,
288,
9506,
202,
3190,
2174,
6946,
18,
2681,
5621,
9506,
202,
430,
261,
6685,
13943,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
7675,
588,
5507,
12,
25083,
202,
2174,
682,
9624,
2918,
18,
22271,
1777,
67,
673,
67,
11437,
3719,
288,
6862,
202,
10014,
1803,
18,
2681,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
22938,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
3678,
1803,
1435,
288,
202,
202,
588,
18415,
7675,
1289,
5265,
22092,
12,
2704,
1599,
83,
1255,
22092,
1435,
288,
1082,
202,
482,
918,
1645,
6563,
12,
5265,
6563,
1133,
871,
13,
288,
9506,
202,
3190,
2174,
6946,
18,
2681,
5621,
9506,
202,
430,
261,
6685,
13943,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
7675,
588,
5507,
12,
25083,
202,
2174,
682,
9624,
2918,
18,
22271,
1777,
67,
673,
67,
11437,
3719,
288,
6862,
202,
10014,
1803,
18,
2681,
5621,
9506,
202,
97,
1082,
202,
97,
202,
202,
22938,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
protected String readLine() { | protected String readLine() throws UnsupportedEncodingException { | protected String readLine() { byte[] bufferByte = new byte[bufferSize]; int bytesRead; try { bytesRead = inputStream.readLine(bufferByte, 0, bufferSize); } catch (IOException ioe) { return null; } if (bytesRead == -1) { contentRead = true; return null; } String retString = null; try { retString = new String(bufferByte, 0, bytesRead, "ISO-8859-1"); } catch (UnsupportedEncodingException uee) { retString = new String(bufferByte); } return retString; } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/3f4b77509f0473e154255122a9cbed2ffb1a2bc5/MultipartIterator.java/clean/src/share/org/apache/struts/upload/MultipartIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
12273,
1435,
1216,
15367,
288,
9079,
1160,
8526,
1613,
3216,
273,
394,
1160,
63,
4106,
1225,
15533,
3639,
509,
17244,
31,
7734,
775,
288,
5411,
17244,
273,
10010,
18,
896,
1670,
12,
4106,
3216,
16,
4766,
2398,
374,
16,
4766,
2398,
16939,
1769,
3639,
289,
3639,
1044,
261,
14106,
10847,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
3890,
1994,
422,
300,
21,
13,
288,
5411,
913,
1994,
273,
638,
31,
5411,
327,
446,
31,
3639,
289,
3639,
514,
325,
780,
273,
446,
31,
7734,
775,
288,
5411,
325,
780,
273,
394,
514,
12,
4106,
3216,
16,
374,
16,
17244,
16,
315,
12609,
17,
17258,
17,
21,
8863,
3639,
289,
3639,
1044,
261,
8544,
13836,
17869,
73,
13,
288,
5411,
325,
780,
273,
394,
514,
12,
4106,
3216,
1769,
3639,
289,
3639,
327,
325,
780,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
12273,
1435,
1216,
15367,
288,
9079,
1160,
8526,
1613,
3216,
273,
394,
1160,
63,
4106,
1225,
15533,
3639,
509,
17244,
31,
7734,
775,
288,
5411,
17244,
273,
10010,
18,
896,
1670,
12,
4106,
3216,
16,
4766,
2398,
374,
16,
4766,
2398,
16939,
1769,
3639,
289,
3639,
1044,
261,
14106,
10847,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
3890,
1994,
422,
300,
21,
13,
288,
5411,
913,
1994,
273,
638,
31,
5411,
327,
446,
31,
3639,
289,
3639,
514,
325,
780,
273,
446,
31,
7734,
775,
288,
5411,
325,
780,
273,
394,
514,
12,
4106,
3216,
16,
374,
16,
17244,
16,
315,
12609,
17,
17258,
17,
21,
8863,
3639,
289,
3639,
1044,
261,
2
] |
if (qualifiedNameReference.otherBindings == null || (otherBindingLength - index - 1) < 0) { | if (qualifiedNameReference.otherBindings == null || (index - 2) < 0) { | synchronized IBinding resolveName(Name name) { org.eclipse.jdt.internal.compiler.ast.ASTNode node = (org.eclipse.jdt.internal.compiler.ast.ASTNode) this.newAstToOldAst.get(name); int index = name.index; if (node instanceof QualifiedNameReference) { QualifiedNameReference qualifiedNameReference = (QualifiedNameReference) node; final char[][] tokens = qualifiedNameReference.tokens; int qualifiedNameLength = tokens.length; int indexInQualifiedName = qualifiedNameLength - index; // one-based int indexOfFirstFieldBinding = qualifiedNameReference.indexOfFirstFieldBinding; // one-based int otherBindingLength = qualifiedNameLength - indexOfFirstFieldBinding; if (indexInQualifiedName < indexOfFirstFieldBinding) { // a extra lookup is required BlockScope internalScope = (BlockScope) this.astNodesToBlockScope.get(name); Binding binding = null; try { if (internalScope == null) { binding = this.scope.getTypeOrPackage(CharOperation.subarray(tokens, 0, indexInQualifiedName)); } else { binding = internalScope.getTypeOrPackage(CharOperation.subarray(tokens, 0, indexInQualifiedName)); } } catch (RuntimeException e) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357 // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=63550 // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=64299 } if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) { return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) { // it is a type return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding)binding); } } else if (indexInQualifiedName == indexOfFirstFieldBinding) { if (qualifiedNameReference.isTypeReference()) { return this.getTypeBinding((ReferenceBinding)qualifiedNameReference.binding); } else { Binding binding = qualifiedNameReference.binding; if (binding != null) { if (binding.isValidBinding()) { return this.getVariableBinding((org.eclipse.jdt.internal.compiler.lookup.VariableBinding) binding); } else { if (binding instanceof ProblemFieldBinding) { ProblemFieldBinding problemFieldBinding = (ProblemFieldBinding) binding; switch(problemFieldBinding.problemId()) { case ProblemReasons.NotVisible : case ProblemReasons.NonStaticReferenceInStaticContext : ReferenceBinding declaringClass = problemFieldBinding.declaringClass; if (declaringClass != null) { FieldBinding exactBinding = declaringClass.getField(tokens[tokens.length - 1], true /*resolve*/); if (exactBinding != null) { IVariableBinding variableBinding = (IVariableBinding) this.bindingTables.compilerBindingsToASTBindings.get(exactBinding); if (variableBinding != null) { return variableBinding; } variableBinding = new VariableBinding(this, exactBinding); this.bindingTables.compilerBindingsToASTBindings.put(exactBinding, variableBinding); return variableBinding; } } break; } } } } } } else { /* This is the case for a name which is part of a qualified name that * cannot be resolved. See PR 13063. */ if (qualifiedNameReference.otherBindings == null || (otherBindingLength - index - 1) < 0) { return null; } else { return this.getVariableBinding(qualifiedNameReference.otherBindings[otherBindingLength - index - 1]); } } } else if (node instanceof QualifiedTypeReference) { QualifiedTypeReference qualifiedTypeReference = (QualifiedTypeReference) node; if (qualifiedTypeReference.resolvedType == null) { return null; } if (index == 0) { if (!qualifiedTypeReference.resolvedType.isValidBinding() && qualifiedTypeReference instanceof JavadocQualifiedTypeReference) { JavadocQualifiedTypeReference typeRef = (JavadocQualifiedTypeReference) node; if (typeRef.packageBinding != null) { return getPackageBinding(typeRef.packageBinding); } } return this.getTypeBinding(qualifiedTypeReference.resolvedType.leafComponentType()); } else { int qualifiedTypeLength = qualifiedTypeReference.tokens.length; int indexInQualifiedName = qualifiedTypeLength - index; // one-based if (indexInQualifiedName >= 0) { BlockScope internalScope = (BlockScope) this.astNodesToBlockScope.get(name); Binding binding = null; try { if (internalScope == null) { binding = this.scope.getTypeOrPackage(CharOperation.subarray(qualifiedTypeReference.tokens, 0, indexInQualifiedName)); } else { binding = internalScope.getTypeOrPackage(CharOperation.subarray(qualifiedTypeReference.tokens, 0, indexInQualifiedName)); } } catch (RuntimeException e) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357 } if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) { return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) { // it is a type return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding)binding); } else { return null; } } } } else if (node instanceof ImportReference) { ImportReference importReference = (ImportReference) node; int importReferenceLength = importReference.tokens.length; int indexInImportReference = importReferenceLength - index; // one-based if (indexInImportReference >= 0) { Binding binding = null; if (importReferenceLength == indexInImportReference) { try { binding = this.scope.getImport(CharOperation.subarray(importReference.tokens, 0, indexInImportReference), importReference.onDemand, importReference.isStatic()); } catch (RuntimeException e) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357 } } else { try { binding = this.scope.getImport(CharOperation.subarray(importReference.tokens, 0, indexInImportReference), true, importReference.isStatic()); } catch (RuntimeException e) { // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=53357 } } if (binding != null) { if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.PackageBinding) { return this.getPackageBinding((org.eclipse.jdt.internal.compiler.lookup.PackageBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) { // it is a type return this.getTypeBinding((org.eclipse.jdt.internal.compiler.lookup.TypeBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.FieldBinding) { // it is a type return this.getVariableBinding((org.eclipse.jdt.internal.compiler.lookup.FieldBinding)binding); } else if (binding instanceof org.eclipse.jdt.internal.compiler.lookup.MethodBinding) { // it is a type return this.getMethodBinding((org.eclipse.jdt.internal.compiler.lookup.MethodBinding)binding); } else { return null; } } } } else if (node instanceof CompilationUnitDeclaration) { CompilationUnitDeclaration compilationUnitDeclaration = (CompilationUnitDeclaration) node; org.eclipse.jdt.internal.compiler.ast.TypeDeclaration[] types = compilationUnitDeclaration.types; if (types == null || types.length == 0) { return null; } org.eclipse.jdt.internal.compiler.ast.TypeDeclaration type = types[0]; if (type != null) { ITypeBinding typeBinding = this.getTypeBinding(type.binding); if (typeBinding != null) { return typeBinding.getPackage(); } } } else if (node instanceof AbstractMethodDeclaration) { AbstractMethodDeclaration methodDeclaration = (AbstractMethodDeclaration) node; if (methodDeclaration != null) { IMethodBinding methodBinding = this.getMethodBinding(methodDeclaration.binding); if (methodBinding != null) { return methodBinding; } } } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) { org.eclipse.jdt.internal.compiler.ast.TypeDeclaration typeDeclaration = (org.eclipse.jdt.internal.compiler.ast.TypeDeclaration) node; ITypeBinding typeBinding = this.getTypeBinding(typeDeclaration.binding); if (typeBinding != null) { return typeBinding; } } if (node instanceof SingleNameReference) { SingleNameReference singleNameReference = (SingleNameReference) node; if (singleNameReference.isTypeReference()) { return this.getTypeBinding((ReferenceBinding)singleNameReference.binding); } else { // this is a variable or a field Binding binding = singleNameReference.binding; if (binding != null) { if (binding.isValidBinding()) { return this.getVariableBinding((org.eclipse.jdt.internal.compiler.lookup.VariableBinding) binding); } else { /* * http://dev.eclipse.org/bugs/show_bug.cgi?id=24449 */ if (binding instanceof ProblemFieldBinding) { ProblemFieldBinding problemFieldBinding = (ProblemFieldBinding) binding; switch(problemFieldBinding.problemId()) { case ProblemReasons.NotVisible : case ProblemReasons.NonStaticReferenceInStaticContext : case ProblemReasons.NonStaticReferenceInConstructorInvocation : ReferenceBinding declaringClass = problemFieldBinding.declaringClass; FieldBinding exactBinding = declaringClass.getField(problemFieldBinding.name, true /*resolve*/); if (exactBinding != null) { IVariableBinding variableBinding2 = (IVariableBinding) this.bindingTables.compilerBindingsToASTBindings.get(exactBinding); if (variableBinding2 != null) { return variableBinding2; } variableBinding2 = new VariableBinding(this, exactBinding); this.bindingTables.compilerBindingsToASTBindings.put(exactBinding, variableBinding2); return variableBinding2; } break; } } } } } } else if (node instanceof QualifiedSuperReference) { QualifiedSuperReference qualifiedSuperReference = (QualifiedSuperReference) node; return this.getTypeBinding(qualifiedSuperReference.qualification.resolvedType); } else if (node instanceof LocalDeclaration) { return this.getVariableBinding(((LocalDeclaration)node).binding); } else if (node instanceof JavadocFieldReference) { JavadocFieldReference fieldRef = (JavadocFieldReference) node; if (fieldRef.methodBinding != null) { return getMethodBinding(fieldRef.methodBinding); } return getVariableBinding(fieldRef.binding); } else if (node instanceof FieldReference) { return getVariableBinding(((FieldReference) node).binding); } else if (node instanceof SingleTypeReference) { SingleTypeReference singleTypeReference = (SingleTypeReference) node; org.eclipse.jdt.internal.compiler.lookup.TypeBinding binding = singleTypeReference.resolvedType; if (binding != null) { if (!binding.isValidBinding() && node instanceof JavadocSingleTypeReference) { JavadocSingleTypeReference typeRef = (JavadocSingleTypeReference) node; if (typeRef.packageBinding != null) { return getPackageBinding(typeRef.packageBinding); } } return this.getTypeBinding(binding.leafComponentType()); } } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) { org.eclipse.jdt.internal.compiler.ast.FieldDeclaration fieldDeclaration = (org.eclipse.jdt.internal.compiler.ast.FieldDeclaration) node; return this.getVariableBinding(fieldDeclaration.binding); } else if (node instanceof MessageSend) { MessageSend messageSend = (MessageSend) node; return getMethodBinding(messageSend.binding); } else if (node instanceof AllocationExpression) { AllocationExpression allocation = (AllocationExpression) node; return getMethodBinding(allocation.binding); } else if (node instanceof JavadocImplicitTypeReference) { JavadocImplicitTypeReference implicitRef = (JavadocImplicitTypeReference) node; return getTypeBinding(implicitRef.resolvedType); } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.TypeParameter) { org.eclipse.jdt.internal.compiler.ast.TypeParameter typeParameter = (org.eclipse.jdt.internal.compiler.ast.TypeParameter) node; return this.getTypeBinding(typeParameter.binding); } else if (node instanceof org.eclipse.jdt.internal.compiler.ast.MemberValuePair) { org.eclipse.jdt.internal.compiler.ast.MemberValuePair memberValuePair = (org.eclipse.jdt.internal.compiler.ast.MemberValuePair) node; return getMethodBinding(memberValuePair.binding); } return null; } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/dcf93fb34d4ce9325841c9302bc217b02f49501a/DefaultBindingResolver.java/clean/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/DefaultBindingResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
22043,
467,
5250,
2245,
461,
12,
461,
508,
13,
288,
202,
202,
3341,
18,
20416,
18,
78,
7510,
18,
7236,
18,
9576,
18,
689,
18,
9053,
907,
756,
273,
261,
3341,
18,
20416,
18,
78,
7510,
18,
7236,
18,
9576,
18,
689,
18,
9053,
907,
13,
333,
18,
2704,
21385,
774,
7617,
21385,
18,
588,
12,
529,
1769,
202,
202,
474,
770,
273,
508,
18,
1615,
31,
202,
202,
430,
261,
2159,
1276,
28696,
2404,
13,
288,
1082,
202,
12345,
2404,
24133,
2404,
273,
261,
12345,
2404,
13,
756,
31,
1082,
202,
6385,
1149,
63,
6362,
65,
2430,
273,
24133,
2404,
18,
7860,
31,
1082,
202,
474,
24133,
1782,
273,
2430,
18,
2469,
31,
1082,
202,
474,
770,
382,
12345,
273,
24133,
1782,
300,
770,
31,
368,
1245,
17,
12261,
1082,
202,
474,
3133,
3759,
974,
5250,
273,
24133,
2404,
18,
31806,
3759,
974,
5250,
31,
368,
1245,
17,
12261,
1082,
202,
474,
1308,
5250,
1782,
273,
24133,
1782,
300,
3133,
3759,
974,
5250,
31,
1082,
202,
430,
261,
1615,
382,
12345,
411,
3133,
3759,
974,
5250,
13,
288,
9506,
202,
759,
279,
2870,
3689,
353,
1931,
9506,
202,
1768,
3876,
2713,
3876,
273,
261,
1768,
3876,
13,
333,
18,
689,
3205,
774,
1768,
3876,
18,
588,
12,
529,
1769,
9506,
202,
5250,
5085,
273,
446,
31,
9506,
202,
698,
288,
6862,
202,
430,
261,
7236,
3876,
422,
446,
13,
288,
25083,
202,
7374,
273,
333,
18,
4887,
18,
588,
559,
1162,
2261,
12,
2156,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22043,
467,
5250,
2245,
461,
12,
461,
508,
13,
288,
202,
202,
3341,
18,
20416,
18,
78,
7510,
18,
7236,
18,
9576,
18,
689,
18,
9053,
907,
756,
273,
261,
3341,
18,
20416,
18,
78,
7510,
18,
7236,
18,
9576,
18,
689,
18,
9053,
907,
13,
333,
18,
2704,
21385,
774,
7617,
21385,
18,
588,
12,
529,
1769,
202,
202,
474,
770,
273,
508,
18,
1615,
31,
202,
202,
430,
261,
2159,
1276,
28696,
2404,
13,
288,
1082,
202,
12345,
2404,
24133,
2404,
273,
261,
12345,
2404,
13,
756,
31,
1082,
202,
6385,
1149,
63,
6362,
65,
2430,
273,
24133,
2404,
18,
7860,
31,
1082,
202,
474,
24133,
1782,
273,
2430,
18,
2469,
31,
1082,
202,
474,
2
] |
public NODE newVCall(Object m) { return newDefaultNode(NODE.NODE_VCALL, null, m, null); | public NODE newVCall(RubyId mid) { return newDefaultNode(NODE.NODE_VCALL, null, mid, null); | public NODE newVCall(Object m) { return newDefaultNode(NODE.NODE_VCALL, null, m, null); } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/a6fb3288b71aaedfe3a7b5e8d1e561e0bc249dc6/NodeFactory.java/buggy/org/jruby/interpreter/nodes/NodeFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11922,
394,
58,
1477,
12,
921,
312,
13,
288,
3639,
327,
394,
1868,
907,
12,
8744,
18,
8744,
67,
13464,
4685,
16,
446,
16,
312,
16,
446,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11922,
394,
58,
1477,
12,
921,
312,
13,
288,
3639,
327,
394,
1868,
907,
12,
8744,
18,
8744,
67,
13464,
4685,
16,
446,
16,
312,
16,
446,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Chunk c = trickle(); | try { inFile.position(outstanding); } catch (IOException exn) { logger.warn("could not change file pointer", exn); } outstanding = 0; | private Chunk bufferOrTrickle(Chunk chunk) throws TokenException { ByteBuffer buf = chunk.getData(); try { for (ByteBuffer bb = buf.duplicate(); bb.hasRemaining(); outFile.write(bb)); } catch (IOException e) { logger.warn("Unable to write to buffer file: " + e); throw new TokenException(e); } outstanding += buf.remaining(); totalSize += buf.remaining(); if (buffering) { buffering = TIMEOUT > (System.currentTimeMillis() - bufferingStart) && SIZE_LIMIT > outstanding; if (buffering) { /* remain in buffering mode */ logger.debug("buffering"); return chunk; } else { /* switch to trickle mode */ logger.debug("switching to trickling"); Chunk c = trickle(); releaseResponse(); return c; } } else { /* stay in trickle mode */ logger.debug("trickling"); if (MAX_SCAN_LIMIT < totalSize) { logger.debug("MAX_SCAN_LIMIT exceeded, not scanning"); scan = false; FileChunkStreamer streamer = new FileChunkStreamer (file, inFile, null, EndMarker.MARKER, false); preStream(streamer); return Chunk.EMPTY; } else { logger.debug("continuing to trickle: " + totalSize); Chunk c = trickle(); return c; } } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/1c63635b818b17d4999b985e6ecc16307af11a38/VirusHttpHandler.java/clean/tran/virus/main/com/metavize/tran/virus/VirusHttpHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
13021,
1613,
1162,
1070,
1200,
298,
12,
5579,
2441,
13,
1216,
3155,
503,
565,
288,
3639,
7400,
1681,
273,
2441,
18,
588,
751,
5621,
3639,
775,
288,
5411,
364,
261,
12242,
7129,
273,
1681,
18,
17342,
5621,
7129,
18,
5332,
11429,
5621,
21651,
18,
2626,
12,
9897,
10019,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
1194,
18,
8935,
2932,
3370,
358,
1045,
358,
1613,
585,
30,
315,
397,
425,
1769,
5411,
604,
394,
3155,
503,
12,
73,
1769,
3639,
289,
3639,
20974,
1011,
1681,
18,
17956,
5621,
3639,
24611,
1011,
1681,
18,
17956,
5621,
3639,
309,
261,
4106,
310,
13,
288,
5411,
25056,
273,
24374,
405,
261,
3163,
18,
2972,
28512,
1435,
300,
25056,
1685,
13,
7734,
597,
11963,
67,
8283,
405,
20974,
31,
5411,
309,
261,
4106,
310,
13,
288,
565,
1748,
7232,
316,
25056,
1965,
1195,
7734,
1194,
18,
4148,
2932,
4106,
310,
8863,
7734,
327,
2441,
31,
5411,
289,
469,
288,
5411,
1748,
1620,
358,
28837,
298,
1965,
1195,
7734,
1194,
18,
4148,
2932,
9610,
310,
358,
28837,
2456,
8863,
7734,
775,
288,
316,
812,
18,
3276,
12,
659,
15167,
1769,
289,
1044,
261,
14106,
431,
82,
13,
288,
1194,
18,
8935,
2932,
15195,
486,
2549,
585,
4407,
3113,
431,
82,
1769,
289,
20974,
273,
374,
31,
7734,
3992,
1064,
5621,
7734,
327,
276,
31,
5411,
289,
3639,
289,
469,
288,
7734,
1748,
23449,
316,
28837,
298,
1965,
1195,
5411,
1194,
18,
4148,
2932,
313,
1200,
2456,
8863,
5411,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13021,
1613,
1162,
1070,
1200,
298,
12,
5579,
2441,
13,
1216,
3155,
503,
565,
288,
3639,
7400,
1681,
273,
2441,
18,
588,
751,
5621,
3639,
775,
288,
5411,
364,
261,
12242,
7129,
273,
1681,
18,
17342,
5621,
7129,
18,
5332,
11429,
5621,
21651,
18,
2626,
12,
9897,
10019,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
1194,
18,
8935,
2932,
3370,
358,
1045,
358,
1613,
585,
30,
315,
397,
425,
1769,
5411,
604,
394,
3155,
503,
12,
73,
1769,
3639,
289,
3639,
20974,
1011,
1681,
18,
17956,
5621,
3639,
24611,
1011,
1681,
18,
17956,
5621,
3639,
309,
261,
4106,
310,
13,
288,
5411,
25056,
273,
24374,
405,
261,
3163,
18,
2972,
28512,
1435,
300,
25056,
1685,
2
] |
System.err.println("The filepath was not set. Default path will be used"); FILE_PATH = "C:\\IMCSERVER\\" ; | public void init(ServletConfig config) throws ServletException { super.init(config); FILE_PATH = getInitParameter("file_path"); HTML_TEMPLATE = "AdminSystemMessage.htm"; if( FILE_PATH == null ) { Enumeration initParams = getInitParameterNames(); System.err.println("The init parameters were: "); while (initParams.hasMoreElements()) { System.err.println(initParams.nextElement()); } System.err.println("The filepath was not set. Default path will be used"); FILE_PATH = "C:\\IMCSERVER\\" ; // throw new UnavailableException (this, // "Not given a path to serverhome library") ; } log("Serverhome:" + getInitParameter("file_path")) ; // log("ServletPath:" + getInitParameter("servlet_path")) ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d72dc054ce9c2bf82c53a225a6121803d80768f6/AdminSystemInfo.java/clean/servlets/AdminSystemInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
4745,
809,
642,
13,
1216,
16517,
288,
202,
9565,
18,
2738,
12,
1425,
1769,
202,
3776,
67,
4211,
273,
26458,
1662,
2932,
768,
67,
803,
8863,
202,
4870,
67,
12205,
273,
315,
4446,
3163,
1079,
18,
31180,
14432,
1377,
202,
430,
12,
7527,
67,
4211,
422,
446,
262,
288,
202,
565,
13864,
1208,
1370,
273,
26458,
1662,
1557,
5621,
202,
565,
2332,
18,
370,
18,
8222,
2932,
1986,
1208,
1472,
4591,
30,
315,
1769,
202,
565,
1323,
261,
2738,
1370,
18,
5332,
7417,
3471,
10756,
288,
202,
202,
3163,
18,
370,
18,
8222,
12,
2738,
1370,
18,
4285,
1046,
10663,
202,
565,
289,
202,
565,
2332,
18,
370,
18,
8222,
2932,
1986,
3608,
1703,
486,
444,
18,
2989,
589,
903,
506,
1399,
8863,
202,
565,
7527,
67,
4211,
273,
315,
39,
31027,
3445,
39,
4370,
27576,
274,
202,
565,
368,
604,
394,
1351,
5699,
503,
261,
2211,
16,
202,
565,
368,
315,
1248,
864,
279,
589,
358,
1438,
8712,
5313,
7923,
274,
202,
97,
202,
202,
1330,
2932,
2081,
8712,
2773,
397,
26458,
1662,
2932,
768,
67,
803,
6,
3719,
274,
202,
759,
613,
2932,
4745,
743,
2773,
397,
26458,
1662,
2932,
23231,
67,
803,
6,
3719,
274,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
4745,
809,
642,
13,
1216,
16517,
288,
202,
9565,
18,
2738,
12,
1425,
1769,
202,
3776,
67,
4211,
273,
26458,
1662,
2932,
768,
67,
803,
8863,
202,
4870,
67,
12205,
273,
315,
4446,
3163,
1079,
18,
31180,
14432,
1377,
202,
430,
12,
7527,
67,
4211,
422,
446,
262,
288,
202,
565,
13864,
1208,
1370,
273,
26458,
1662,
1557,
5621,
202,
565,
2332,
18,
370,
18,
8222,
2932,
1986,
1208,
1472,
4591,
30,
315,
1769,
202,
565,
1323,
261,
2738,
1370,
18,
5332,
7417,
3471,
10756,
288,
202,
202,
3163,
18,
370,
18,
8222,
12,
2738,
1370,
18,
4285,
1046,
10663,
202,
565,
289,
202,
565,
2332,
18,
370,
18,
8222,
2932,
1986,
3608,
1703,
2
] | |
return getDOMImplementation().hasFeature(feature, version); } | return getDOMImplementation().hasFeature(feature, version); } | public boolean hasFeature(String feature, String version) { return getDOMImplementation().hasFeature(feature, version); } | 55441 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55441/19ecf80dd539cb3920fc52530e5ddff6102cf9f2/BatikTestDocumentBuilderFactory.java/clean/java/org/w3c/domts/BatikTestDocumentBuilderFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
4595,
12,
780,
2572,
16,
514,
1177,
13,
288,
3639,
327,
2343,
1872,
13621,
7675,
5332,
4595,
12,
7238,
16,
1177,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
711,
4595,
12,
780,
2572,
16,
514,
1177,
13,
288,
3639,
327,
2343,
1872,
13621,
7675,
5332,
4595,
12,
7238,
16,
1177,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} if (w != null) { | } */ /* if (w != null) { | public void handleCompilationDone(Context cx, DebuggableScript fnOrScript, String source) { String sourceName = fnOrScript.getSourceName(); FileWindow w = (FileWindow) fileWindows.get(sourceName); super.handleCompilationDone(cx, fnOrScript, source); if (!treeNodes.containsKey(sourceName)) { createTreeNode(sourceName); } if (w != null) { // renew existing file window int position = w.textArea.getCaretPosition(); // System.err.println(" VISIBLE: " + point); // w.sourceInfo.removeAllBreakpoints(); w.sourceInfo = (SourceInfo) sourceNames.get(sourceName); w.updateText(); w.textArea.setCaretPosition(position); } } | 3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/e5033685db66692b025c727bc12f11dab403a21d/HelmaDebugger.java/clean/src/helma/scripting/rhino/debug/HelmaDebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
19184,
7387,
12,
1042,
9494,
16,
4015,
8455,
3651,
2295,
1162,
3651,
16,
4766,
1377,
514,
1084,
13,
288,
3639,
514,
28337,
273,
2295,
1162,
3651,
18,
588,
1830,
461,
5621,
3639,
1387,
3829,
341,
273,
261,
812,
3829,
13,
585,
10399,
18,
588,
12,
3168,
461,
1769,
3639,
2240,
18,
4110,
19184,
7387,
12,
71,
92,
16,
2295,
1162,
3651,
16,
1084,
1769,
3639,
309,
16051,
3413,
3205,
18,
12298,
653,
12,
3168,
461,
3719,
288,
5411,
752,
12513,
12,
3168,
461,
1769,
3639,
289,
3639,
309,
261,
91,
480,
446,
13,
288,
5411,
368,
15723,
2062,
585,
2742,
5411,
509,
1754,
273,
341,
18,
955,
5484,
18,
588,
39,
20731,
2555,
5621,
5411,
368,
2332,
18,
370,
18,
8222,
2932,
540,
25289,
30,
315,
397,
1634,
1769,
5411,
368,
341,
18,
3168,
966,
18,
4479,
1595,
7634,
4139,
5621,
5411,
341,
18,
3168,
966,
273,
261,
1830,
966,
13,
1084,
1557,
18,
588,
12,
3168,
461,
1769,
5411,
341,
18,
2725,
1528,
5621,
5411,
341,
18,
955,
5484,
18,
542,
39,
20731,
2555,
12,
3276,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
1640,
19184,
7387,
12,
1042,
9494,
16,
4015,
8455,
3651,
2295,
1162,
3651,
16,
4766,
1377,
514,
1084,
13,
288,
3639,
514,
28337,
273,
2295,
1162,
3651,
18,
588,
1830,
461,
5621,
3639,
1387,
3829,
341,
273,
261,
812,
3829,
13,
585,
10399,
18,
588,
12,
3168,
461,
1769,
3639,
2240,
18,
4110,
19184,
7387,
12,
71,
92,
16,
2295,
1162,
3651,
16,
1084,
1769,
3639,
309,
16051,
3413,
3205,
18,
12298,
653,
12,
3168,
461,
3719,
288,
5411,
752,
12513,
12,
3168,
461,
1769,
3639,
289,
3639,
309,
261,
91,
480,
446,
13,
288,
5411,
368,
15723,
2062,
585,
2742,
5411,
509,
1754,
273,
341,
18,
955,
5484,
18,
588,
39,
20731,
2555,
5621,
5411,
2
] |
rv = rb.getString("access.group1") + " "; Collection groups = getGroups(); if(groups == null || groups.isEmpty()) { groups = getInheritedGroups(); } if(groups == null || groups.isEmpty()) { rv = rb.getString("access.site1"); } else { Iterator it = groups.iterator(); while(it.hasNext()) { Group g = (Group) it.next(); rv += g.getTitle(); if(it.hasNext()) { rv += ", "; } } } | rv = (String) rb.getFormattedMessage("access.group1", new Object[]{getGroupNames()}); } else if(AccessMode.PUBLIC.toString().equals(getEffectiveAccess())) { rv = rb.getString("access.public1"); | public String getEffectiveGroups() { String rv = rb.getString("access.site1"); if(AccessMode.GROUPED.toString().equals(getEffectiveAccess())) { rv = rb.getString("access.group1") + " "; Collection groups = getGroups(); if(groups == null || groups.isEmpty()) { groups = getInheritedGroups(); } if(groups == null || groups.isEmpty()) { rv = rb.getString("access.site1"); } else { Iterator it = groups.iterator(); while(it.hasNext()) { Group g = (Group) it.next(); rv += g.getTitle(); if(it.hasNext()) { rv += ", "; } } } } return rv; } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/fb7fc067e28163260fd70805eadda5becfee05f4/ResourcesAction.java/buggy/content/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
29006,
3621,
1435,
202,
202,
95,
1082,
202,
780,
5633,
273,
7138,
18,
588,
780,
2932,
3860,
18,
4256,
21,
8863,
1082,
202,
430,
12,
1862,
2309,
18,
43,
1457,
57,
12120,
18,
10492,
7675,
14963,
12,
588,
28531,
1862,
1435,
3719,
1082,
202,
95,
9506,
202,
4962,
273,
7138,
18,
588,
780,
2932,
3860,
18,
1655,
21,
7923,
397,
315,
13636,
9506,
202,
2532,
3252,
273,
22708,
5621,
9506,
202,
430,
12,
4650,
422,
446,
747,
3252,
18,
291,
1921,
10756,
9506,
202,
95,
6862,
202,
4650,
273,
7854,
3721,
329,
3621,
5621,
9506,
202,
97,
9506,
202,
430,
12,
4650,
422,
446,
747,
3252,
18,
291,
1921,
10756,
9506,
202,
95,
6862,
202,
4962,
273,
7138,
18,
588,
780,
2932,
3860,
18,
4256,
21,
8863,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
3198,
518,
273,
3252,
18,
9838,
5621,
6862,
202,
17523,
12,
305,
18,
5332,
2134,
10756,
6862,
202,
95,
25083,
202,
1114,
314,
273,
261,
1114,
13,
518,
18,
4285,
5621,
25083,
202,
4962,
1011,
314,
18,
588,
4247,
5621,
25083,
202,
430,
12,
305,
18,
5332,
2134,
10756,
25083,
202,
95,
6862,
1082,
202,
4962,
1011,
3104,
13636,
25083,
202,
97,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1082,
202,
2463,
5633,
31,
202,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3196,
202,
482,
514,
29006,
3621,
1435,
202,
202,
95,
1082,
202,
780,
5633,
273,
7138,
18,
588,
780,
2932,
3860,
18,
4256,
21,
8863,
1082,
202,
430,
12,
1862,
2309,
18,
43,
1457,
57,
12120,
18,
10492,
7675,
14963,
12,
588,
28531,
1862,
1435,
3719,
1082,
202,
95,
9506,
202,
4962,
273,
7138,
18,
588,
780,
2932,
3860,
18,
1655,
21,
7923,
397,
315,
13636,
9506,
202,
2532,
3252,
273,
22708,
5621,
9506,
202,
430,
12,
4650,
422,
446,
747,
3252,
18,
291,
1921,
10756,
9506,
202,
95,
6862,
202,
4650,
273,
7854,
3721,
329,
3621,
5621,
9506,
202,
97,
9506,
202,
430,
12,
4650,
422,
446,
747,
3252,
18,
291,
1921,
10756,
9506,
202,
95,
6862,
202,
2
] |
final String message = REZ.getString( "missing-double-slashes.error", uri ); throw new FileSystemException( message ); | throw new FileSystemException( "vfs.provider/missing-double-slashes.error", uri ); | protected void extractToPath( final String uri, final StringBuffer name, final ParsedUri parsedUri ) throws FileSystemException { // Extract the scheme final String scheme = extractScheme( uri, name ); parsedUri.setScheme( scheme ); // Expecting "//" if ( name.length() < 2 || name.charAt( 0 ) != '/' || name.charAt( 1 ) != '/' ) { final String message = REZ.getString( "missing-double-slashes.error", uri ); throw new FileSystemException( message ); } name.delete( 0, 2 ); // Extract userinfo final String userInfo = extractUserInfo( name ); parsedUri.setUserInfo( userInfo ); // Extract hostname final String hostName = extractHostName( name ); if ( hostName == null ) { final String message = REZ.getString( "missing-hostname.error", uri ); throw new FileSystemException( message ); } parsedUri.setHostName( hostName ); // Extract port final String port = extractPort( name ); if ( port != null && port.length() == 0 ) { final String message = REZ.getString( "missing-port.error", uri ); throw new FileSystemException( message ); } parsedUri.setPort( port ); // Expecting '/' or empty name if ( name.length() > 0 && name.charAt( 0 ) != '/' ) { final String message = REZ.getString( "missing-hostname-path-sep.error", uri ); throw new FileSystemException( message ); } } | 50122 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50122/4ee826b62afd102046c4f84d8f2a82bb7210454d/UriParser.java/clean/src/java/org/apache/commons/vfs/provider/UriParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2608,
774,
743,
12,
727,
514,
2003,
16,
21394,
727,
6674,
508,
16,
21394,
727,
19244,
3006,
2707,
3006,
262,
3639,
1216,
10931,
503,
565,
288,
3639,
368,
8152,
326,
4355,
3639,
727,
514,
4355,
273,
2608,
9321,
12,
2003,
16,
508,
11272,
3639,
2707,
3006,
18,
542,
9321,
12,
4355,
11272,
3639,
368,
15510,
310,
31828,
3639,
309,
261,
508,
18,
2469,
1435,
411,
576,
747,
508,
18,
3001,
861,
12,
374,
262,
480,
2023,
747,
508,
18,
3001,
861,
12,
404,
262,
480,
2023,
262,
3639,
288,
5411,
727,
514,
883,
273,
2438,
62,
18,
588,
780,
12,
315,
7337,
17,
9056,
17,
13675,
18,
1636,
3113,
2003,
11272,
5411,
604,
394,
10931,
503,
12,
883,
11272,
3639,
289,
3639,
508,
18,
3733,
12,
374,
16,
576,
11272,
3639,
368,
8152,
18297,
3639,
727,
514,
16753,
273,
2608,
21015,
12,
508,
11272,
3639,
2707,
3006,
18,
542,
21015,
12,
16753,
11272,
3639,
368,
8152,
5199,
3639,
727,
514,
19266,
273,
2608,
20946,
12,
508,
11272,
3639,
309,
261,
19266,
422,
446,
262,
3639,
288,
5411,
727,
514,
883,
273,
2438,
62,
18,
588,
780,
12,
315,
7337,
17,
10358,
18,
1636,
3113,
2003,
11272,
5411,
604,
394,
10931,
503,
12,
883,
11272,
3639,
289,
3639,
2707,
3006,
18,
542,
20946,
12,
19266,
11272,
3639,
368,
8152,
1756,
3639,
727,
514,
1756,
273,
2608,
2617,
12,
508,
11272,
3639,
309,
261,
1756,
480,
446,
597,
1756,
18,
2469,
1435,
422,
374,
262,
3639,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2608,
774,
743,
12,
727,
514,
2003,
16,
21394,
727,
6674,
508,
16,
21394,
727,
19244,
3006,
2707,
3006,
262,
3639,
1216,
10931,
503,
565,
288,
3639,
368,
8152,
326,
4355,
3639,
727,
514,
4355,
273,
2608,
9321,
12,
2003,
16,
508,
11272,
3639,
2707,
3006,
18,
542,
9321,
12,
4355,
11272,
3639,
368,
15510,
310,
31828,
3639,
309,
261,
508,
18,
2469,
1435,
411,
576,
747,
508,
18,
3001,
861,
12,
374,
262,
480,
2023,
747,
508,
18,
3001,
861,
12,
404,
262,
480,
2023,
262,
3639,
288,
5411,
727,
514,
883,
273,
2438,
62,
18,
588,
780,
12,
315,
7337,
17,
9056,
17,
13675,
18,
1636,
3113,
2003,
11272,
5411,
604,
394,
10931,
503,
2
] |
suite.addTestSuite(test.handler.HandlerTest.class); suite.addTestSuite(test.orthogonal.OrthogonalTest.class); | public static Test suite() { TestSuite suite = new TestSuite("All tests"); // definition tests suite.addTestSuite(test.ClassPatternTest.class); suite.addTestSuite(test.MethodPatternTest.class); suite.addTestSuite(test.ConstructorPatternTest.class); suite.addTestSuite(test.FieldPatternTest.class); suite.addTestSuite(test.ExceptionTest.class); suite.addTestSuite(test.MethodComparatorTest.class); suite.addTestSuite(test.StringsTest.class); suite.addTestSuite(test.ExpressionTest.class); suite.addTestSuite(test.ExpressionGrammarTest.class); // transformer and engine tests suite.addTestSuite(test.MemberMethodAdviceTest.class); suite.addTestSuite(test.StaticMethodAdviceTest.class); suite.addTestSuite(test.FieldAdviceTest.class); suite.addTestSuite(test.CallerSideAdviceTest.class); suite.addTestSuite(test.CFlowTest.class); suite.addTestSuite(test.IntroductionTest.class); suite.addTestSuite(test.constructor.ConstructorAdviceTest.class); suite.addTestSuite(test.handler.HandlerTest.class); suite.addTestSuite(test.orthogonal.OrthogonalTest.class); // bug tests suite.addTestSuite(test.abstractclass.AbstractClassTest.class); suite.addTestSuite(test.hierarchicalpattern.HierachicalPatternTest.class); suite.addTestSuite(test.pointcutexpression.PointcutExpressionTest.class); suite.addTestSuite(test.reflection.ReflectionTest.class); suite.addTestSuite(test.staticfield.StaticFieldAdviceTest.class); suite.addTestSuite(test.superclassconstructor.SuperClassConstructorTest.class); suite.addTestSuite(test.mixindeployment.IntroductionDeploymentTest.class); suite.addTestSuite(test.bindingsyntax.AdviceBindingTest.class); // performance tests , suite.addTestSuite(test.performance.PerformanceTest.class); // TODO: deprecated until a better hot deployment model has been implemented// suite.addTestSuite(test.DynamicDeploymentTest.class); return suite; } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/ae789414bacc5c28d3ea17734a2d1dd652c340c7/AllTests.java/buggy/aspectwerkz2/src/test/test/AllTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
2932,
1595,
7434,
8863,
3639,
368,
2379,
7434,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
797,
3234,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
1305,
3234,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
6293,
3234,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
974,
3234,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
503,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
1305,
5559,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
7957,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
2300,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
2300,
18576,
4709,
18,
1106,
1769,
3639,
368,
8360,
471,
4073,
7434,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
4419,
1305,
1871,
633,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
5788,
1305,
1871,
633,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
974,
1871,
633,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
11095,
8895,
1871,
633,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
39,
5249,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7766,
11371,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
2932,
1595,
7434,
8863,
3639,
368,
2379,
7434,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
797,
3234,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
1305,
3234,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
6293,
3234,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
974,
3234,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
503,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
3813,
18,
1305,
5559,
4709,
18,
1106,
1769,
3639,
11371,
18,
1289,
4709,
13587,
12,
2
] | |
public Object run() { ArrayList objects = (ArrayList) views.clone(); for (Iterator i = objects.iterator(); i.hasNext();) { Object object = i.next(); if (object instanceof Edge) { Edge view = (Edge) object; View fromView = view.getSource(); View toView = view.getTarget(); if (fromView == null || toView == null || !isContainedInViews(views, fromView) || !isContainedInViews(views, toView)) { views.remove(view); | public void run() { ArrayList objects = (ArrayList) views.clone(); for (Iterator i = objects.iterator(); i.hasNext();) { Object object = i.next(); if (object instanceof Edge) { Edge view = (Edge) object; View fromView = view.getSource(); View toView = view.getTarget(); if (fromView == null || toView == null || !isContainedInViews(views, fromView) || !isContainedInViews(views, toView)) { views.remove(view); } | public Object run() { ArrayList objects = (ArrayList) views.clone(); for (Iterator i = objects.iterator(); i.hasNext();) { Object object = i.next(); if (object instanceof Edge) { Edge view = (Edge) object; View fromView = view.getSource(); View toView = view.getTarget(); if (fromView == null || toView == null || !isContainedInViews(views, fromView) || !isContainedInViews(views, toView)) { views.remove(view); } } } return null; } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/b4c938d5d97221f8736d44de85b5ab8ff289c7cc/DiagramGlobalActionHandler.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.providers/src/org/eclipse/gmf/runtime/diagram/ui/providers/DiagramGlobalActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
1033,
1086,
1435,
288,
25083,
202,
19558,
2184,
273,
261,
19558,
13,
7361,
18,
14056,
5621,
25083,
202,
1884,
261,
3198,
277,
273,
2184,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
6862,
1082,
202,
921,
733,
273,
277,
18,
4285,
5621,
6862,
1082,
202,
430,
261,
1612,
1276,
11342,
13,
288,
6862,
9506,
202,
6098,
1476,
273,
261,
6098,
13,
733,
31,
6862,
9506,
202,
1767,
628,
1767,
273,
1476,
18,
588,
1830,
5621,
6862,
9506,
202,
1767,
358,
1767,
273,
1476,
18,
588,
2326,
5621,
6862,
9506,
202,
430,
261,
2080,
1767,
422,
446,
747,
358,
1767,
422,
446,
6862,
6862,
202,
20081,
401,
291,
660,
8707,
382,
9959,
12,
7061,
16,
628,
1767,
13,
6862,
6862,
202,
20081,
401,
291,
660,
8707,
382,
9959,
12,
7061,
16,
358,
1767,
3719,
288,
6862,
6862,
202,
7061,
18,
4479,
12,
1945,
1769,
6862,
9506,
202,
97,
6862,
1082,
202,
97,
25083,
202,
97,
25083,
202,
2463,
446,
31,
6862,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4405,
202,
482,
1033,
1086,
1435,
288,
25083,
202,
19558,
2184,
273,
261,
19558,
13,
7361,
18,
14056,
5621,
25083,
202,
1884,
261,
3198,
277,
273,
2184,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
6862,
1082,
202,
921,
733,
273,
277,
18,
4285,
5621,
6862,
1082,
202,
430,
261,
1612,
1276,
11342,
13,
288,
6862,
9506,
202,
6098,
1476,
273,
261,
6098,
13,
733,
31,
6862,
9506,
202,
1767,
628,
1767,
273,
1476,
18,
588,
1830,
5621,
6862,
9506,
202,
1767,
358,
1767,
273,
1476,
18,
588,
2326,
5621,
6862,
9506,
202,
430,
261,
2080,
1767,
422,
446,
747,
358,
1767,
422,
446,
6862,
6862,
202,
20081,
401,
291,
660,
8707,
382,
9959,
12,
7061,
16,
2
] |
else threadNotify(); | } else { /* No more events. If the debugger received the terminate event, play the events so far. Otherwise, notify the thread that it can continue to receive more events from the remote parser. */ if(debuggerReceivedTerminateEvent) playEvents(false); else threadNotify(); } | public void stepForward(Set breakEvents) { setIgnoreBreakpoints(false); stepContinue(breakEvents); if(stepMove(1)) playEvents(false); else threadNotify(); } | 4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/666df2dfad6641238c780159ccbe9448db143f71/DBRecorder.java/clean/src/org/antlr/works/debugger/tivo/DBRecorder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2235,
8514,
12,
694,
898,
3783,
13,
288,
3639,
444,
3777,
7634,
4139,
12,
5743,
1769,
3639,
2235,
12378,
12,
8820,
3783,
1769,
3639,
309,
12,
4119,
7607,
12,
21,
3719,
5411,
6599,
3783,
12,
5743,
1769,
3639,
469,
5411,
2650,
9168,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2235,
8514,
12,
694,
898,
3783,
13,
288,
3639,
444,
3777,
7634,
4139,
12,
5743,
1769,
3639,
2235,
12378,
12,
8820,
3783,
1769,
3639,
309,
12,
4119,
7607,
12,
21,
3719,
5411,
6599,
3783,
12,
5743,
1769,
3639,
469,
5411,
2650,
9168,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (! ( tranatts.containsKey(Description) ) ) tranatts.put( Description, seqd.getDescription() ); } seqWriter.writeSequences(lastTran); osr.close(); | if (! ( tranatts.containsKey(Description) ) ) tranatts.put( Description, seqd.getDescription() ); } if (lastTran.intValue() > 0) seqWriter.writeSequences(lastTran); if (rows < batchLength) moreRows = false; } osr.close(); | public void execute(int limit) throws SequenceException, InvalidQueryException { SequenceDescription seqd = query.getSequenceDescription(); // need to know these indexes specifically int queryIDindex = 0; int rankIndex = 0; int assemblyIndex = 0; int startIndex = 0; int endIndex = 0; int chromIndex = 0; int strandIndex = 0; List displayIDindices = new ArrayList(); List otherIndices = new ArrayList(); queryID = "transcript_id"; coordStart = "coding_start"; coordEnd = "coding_end"; displayIDs.add("transcript_stable_id_v"); displayIDs.add("gene_stable_id_v"); updateQuery(); Attribute[] attributes = query.getAttributes(); try { CompiledSQLQuery csql = new CompiledSQLQuery( conn, query ); String sql = csql.toSQL(); String structure_table = query.getSpecies()+"_core_"+query.getFocus()+"_structure"; sql += " order by "+structure_table+".transcript_id, "+structure_table+".rank"; if (limit > 0) sql = sql+" limit "+limit; logger.info( "QUERY : " + query ); logger.info( "SQL : " +sql ); PreparedStatement ps = conn.prepareStatement( sql ); int p=1; for( int i=0; i<query.getFilters().length; ++i) { Filter f = query.getFilters()[i]; String value = f.getValue(); if ( value!=null ) { logger.info("SQL (prepared statement value) : "+p+" = " + value); ps.setString( p++, value); } } ResultSet rs = ps.executeQuery(); ResultSetMetaData rmeta = rs.getMetaData(); // process columnNames for required attribute indices for (int i = 1, nColumns = rmeta.getColumnCount(); i <= nColumns; ++i) { String column = rmeta.getColumnName(i); if (column.equals(queryID)) queryIDindex = i; else if (column.equals(Rank)) rankIndex = i; else if (column.equals(AssemblyColumn)) assemblyIndex = i; else if (column.equals(coordStart)) startIndex = i; else if (column.equals(coordEnd)) endIndex = i; else if (column.equals(Chr)) chromIndex = i; else if (column.equals(StrandColumn)) strandIndex = i; else if (displayIDs.contains(column)) displayIDindices.add(new Integer(i)); else otherIndices.add(new Integer(i)); } Integer lastTran = new Integer(0); // will hold previous tranID when new tranID is encountered while ( rs.next() ) { Integer tranID = new Integer(rs.getInt(queryIDindex)); Integer rank = new Integer(rs.getInt(rankIndex)); if (! traniDs.containsKey(tranID)) { if (traniDs.size() > 0) { // process the previous tranID, if this isnt the first time through, then refresh the traniDs TreeMap seqWriter.writeSequences(lastTran); traniDs = new TreeMap(); } lastTran = tranID; Hashtable atts = new Hashtable(); atts.put(Locations, new TreeMap()); atts.put(Assembly, rs.getString(assemblyIndex)); traniDs.put(tranID, atts); } Hashtable tranatts = (Hashtable) traniDs.get(tranID); int start = rs.getInt(startIndex); if (start > 0) { // if start is not null, create a new SequenceLocation object from the chr, start, end, and strand String chr = rs.getString(chromIndex); int end = rs.getInt(endIndex); int strand = rs.getInt(strandIndex); // order the locations by their rank in ascending order ((TreeMap) tranatts.get(Locations)).put(rank, new SequenceLocation(chr, start, end, strand)); // keep track of the lowest start and highest end for the gene if (! ( tranatts.containsKey(Geneloc) ) ) { tranatts.put(Geneloc, new SequenceLocation(chr, start, end, strand)); } else { SequenceLocation geneloc = (SequenceLocation) tranatts.get(Geneloc); if (start < geneloc.getStart()) { tranatts.put(Geneloc, new SequenceLocation(chr, start, geneloc.getEnd(), strand)); // overwrite the previous copy if (end > geneloc.getEnd()) tranatts.put(Geneloc, new SequenceLocation(chr, geneloc.getStart(), end, strand)); // overwrite the previous copy } } } // process displayID, if necessary if (! ( tranatts.containsKey(DisplayID) ) ) { StringBuffer displayID = new StringBuffer(); for (int i = 0, n = displayIDindices.size(); i < n; i++) { if (i>0) displayID.append( separator ); int currindex = ((Integer) displayIDindices.get(i)).intValue(); if ( rs.getString(currindex) != null ) displayID.append( rs.getString(currindex) ); } tranatts.put(DisplayID, displayID.toString()); } // Rest can be duplicates, or novel values for a given field, collect lists of values for each field // currindex is now the last index of the DisplayIDs. Increment it, and iterate over the rest of the ResultSet to print the description for (int i = 0, n = otherIndices.size(); i < n; i++) { int currindex = ((Integer) otherIndices.get(i)).intValue(); if (rs.getString(currindex) != null ) { String field = attributes[currindex-1].getName(); if (! fields.contains(field)) fields.add(field); String value = rs.getString(currindex); if ( tranatts.containsKey(field)) { if (! ((ArrayList) tranatts.get(field)).contains(value)) ((ArrayList) tranatts.get(field)).add(value); } else { List values = new ArrayList(); values.add(value); tranatts.put(field, values); } } } // add the description, if necessary if (! ( tranatts.containsKey(Description) ) ) tranatts.put( Description, seqd.getDescription() ); } // write the last transcripts data seqWriter.writeSequences(lastTran); osr.close(); } catch (IOException e) { logger.warn("Couldnt write to IO "+e.getMessage()); throw new SequenceException(e); } catch (SQLException e) { logger.warn(e.getMessage()); throw new InvalidQueryException(e); } } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/16dfde49e7b6eb326a73d7c831e9910a2b1a3f42/CodingSeqQueryRunner.java/buggy/src/java/org/ensembl/mart/explorer/CodingSeqQueryRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
474,
1800,
13,
1216,
8370,
503,
16,
1962,
1138,
503,
288,
202,
202,
4021,
3291,
3833,
72,
273,
843,
18,
588,
4021,
3291,
5621,
202,
202,
759,
1608,
358,
5055,
4259,
5596,
21195,
202,
202,
474,
843,
734,
1615,
273,
374,
31,
202,
202,
474,
6171,
1016,
273,
374,
31,
202,
202,
474,
19931,
1016,
273,
374,
31,
202,
202,
474,
10588,
273,
374,
31,
202,
202,
474,
13818,
273,
374,
31,
202,
202,
474,
8123,
1016,
273,
374,
31,
202,
202,
474,
16706,
1016,
273,
374,
31,
202,
202,
682,
2562,
734,
6836,
273,
394,
2407,
5621,
202,
202,
682,
1308,
8776,
273,
394,
2407,
5621,
540,
202,
202,
2271,
734,
273,
315,
27257,
67,
350,
14432,
202,
202,
5732,
1685,
273,
315,
2014,
67,
1937,
14432,
202,
202,
5732,
1638,
273,
315,
2014,
67,
409,
14432,
202,
202,
5417,
5103,
18,
1289,
2932,
27257,
67,
15021,
67,
350,
67,
90,
8863,
202,
202,
5417,
5103,
18,
1289,
2932,
11857,
67,
15021,
67,
350,
67,
90,
8863,
202,
202,
2725,
1138,
5621,
25083,
202,
1499,
8526,
1677,
273,
843,
18,
588,
2498,
5621,
565,
775,
288,
1082,
225,
25854,
3997,
1138,
2873,
1217,
273,
394,
25854,
3997,
1138,
12,
1487,
16,
843,
11272,
1082,
225,
514,
1847,
273,
2873,
1217,
18,
869,
3997,
5621,
1082,
26924,
225,
514,
3695,
67,
2121,
273,
843,
18,
588,
1990,
606,
1435,
9078,
67,
3644,
9548,
15,
2271,
18,
588,
9233,
1435,
9078,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
474,
1800,
13,
1216,
8370,
503,
16,
1962,
1138,
503,
288,
202,
202,
4021,
3291,
3833,
72,
273,
843,
18,
588,
4021,
3291,
5621,
202,
202,
759,
1608,
358,
5055,
4259,
5596,
21195,
202,
202,
474,
843,
734,
1615,
273,
374,
31,
202,
202,
474,
6171,
1016,
273,
374,
31,
202,
202,
474,
19931,
1016,
273,
374,
31,
202,
202,
474,
10588,
273,
374,
31,
202,
202,
474,
13818,
273,
374,
31,
202,
202,
474,
8123,
1016,
273,
374,
31,
202,
202,
474,
16706,
1016,
273,
374,
31,
202,
202,
682,
2562,
734,
6836,
273,
394,
2407,
5621,
202,
202,
682,
1308,
8776,
273,
394,
2407,
5621,
540,
202,
202,
2271,
734,
273,
2
] |
this.setEnrollmentEnd(calendar.getTime()); | if (calendar.getTime() != null) { this.setEnrollmentEnd(calendar.getTime()); } else { this.setEnrollmentEnd(null); } | public void setEnrollmentEndDate(Calendar calendar) { this.setEnrollmentEnd(calendar.getTime()); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/7b56a334569bb51b44e37ff04712f0c2cb817264/Seminary.java/clean/src/net/sourceforge/fenixedu/domain/Seminaries/Seminary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
664,
17118,
24640,
12,
7335,
5686,
13,
288,
3639,
309,
261,
11650,
18,
588,
950,
1435,
480,
446,
13,
288,
333,
18,
542,
664,
17118,
1638,
12,
11650,
18,
588,
950,
10663,
289,
469,
288,
333,
18,
542,
664,
17118,
1638,
12,
2011,
1769,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
664,
17118,
24640,
12,
7335,
5686,
13,
288,
3639,
309,
261,
11650,
18,
588,
950,
1435,
480,
446,
13,
288,
333,
18,
542,
664,
17118,
1638,
12,
11650,
18,
588,
950,
10663,
289,
469,
288,
333,
18,
542,
664,
17118,
1638,
12,
2011,
1769,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (monitor == null) | if (monitor == null) { | protected void doUndo(IProgressMonitor monitor, IAdaptable info) throws CoreException { if (monitor == null) monitor = new NullProgressMonitor(); monitor.beginTask("", 100); //$NON-NLS-1$ createMarkers(100, monitor); monitor.done(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/DeleteMarkersOperation.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/DeleteMarkersOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
31224,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
13,
1082,
202,
15069,
30015,
288,
202,
202,
430,
261,
10259,
422,
446,
13,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
10259,
18,
10086,
2174,
2932,
3113,
2130,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2640,
21644,
12,
6625,
16,
6438,
1769,
202,
202,
10259,
18,
8734,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
31224,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
13,
1082,
202,
15069,
30015,
288,
202,
202,
430,
261,
10259,
422,
446,
13,
1082,
202,
10259,
273,
394,
4112,
5491,
7187,
5621,
202,
202,
10259,
18,
10086,
2174,
2932,
3113,
2130,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2640,
21644,
12,
6625,
16,
6438,
1769,
202,
202,
10259,
18,
8734,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public long getPeakUsage() { long sum = 0; // problem: sum of the peaks is not necessarily the peak of the sum. // For example, bjects migrate from the 'eden' to the 'survivor' area. for (MemoryPoolMXBean mpBean : mlist) { java.lang.management.MemoryUsage memUsage = mpBean.getPeakUsage(); if (memUsage != null) sum += memUsage.getUsed(); // or getCommitted() System.out.println(mpBean.getType()+", "+mpBean.getName()+", "+memUsage.getUsed()); //System.out.println("Memory type="+mpBean.getType()+", Pool name="+mpBean.getName()+", Memory usage="+mpBean.getPeakUsage()); } System.out.println(); return sum; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/196337a4a129ae06f25c6be399b118093d0f7f7a/Footprint.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/Footprint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1525,
1689,
73,
581,
5357,
1435,
288,
1082,
202,
5748,
2142,
273,
374,
31,
1082,
202,
759,
6199,
30,
2142,
434,
326,
25168,
353,
486,
23848,
326,
11148,
434,
326,
2142,
18,
1082,
202,
759,
2457,
3454,
16,
324,
937,
87,
13187,
628,
326,
296,
329,
275,
11,
358,
326,
296,
10050,
90,
427,
280,
11,
5091,
18,
1082,
202,
1884,
261,
6031,
2864,
13874,
3381,
6749,
3381,
294,
312,
1098,
13,
288,
9506,
202,
6290,
18,
4936,
18,
17381,
18,
6031,
5357,
1663,
5357,
273,
6749,
3381,
18,
588,
11227,
581,
5357,
5621,
9506,
202,
430,
261,
3917,
5357,
480,
446,
13,
2142,
1011,
1663,
5357,
18,
588,
6668,
5621,
368,
578,
336,
27813,
1435,
9506,
202,
3163,
18,
659,
18,
8222,
12,
1291,
3381,
18,
588,
559,
1435,
15,
3113,
13773,
1291,
3381,
18,
17994,
1435,
15,
3113,
13773,
3917,
5357,
18,
588,
6668,
10663,
9506,
202,
759,
3163,
18,
659,
18,
8222,
2932,
6031,
618,
1546,
15,
1291,
3381,
18,
588,
559,
1435,
15,
3113,
8828,
508,
1546,
15,
1291,
3381,
18,
17994,
1435,
15,
3113,
9251,
4084,
1546,
15,
1291,
3381,
18,
588,
11227,
581,
5357,
10663,
1082,
202,
97,
1082,
202,
3163,
18,
659,
18,
8222,
5621,
1082,
202,
2463,
2142,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3196,
202,
482,
1525,
1689,
73,
581,
5357,
1435,
288,
1082,
202,
5748,
2142,
273,
374,
31,
1082,
202,
759,
6199,
30,
2142,
434,
326,
25168,
353,
486,
23848,
326,
11148,
434,
326,
2142,
18,
1082,
202,
759,
2457,
3454,
16,
324,
937,
87,
13187,
628,
326,
296,
329,
275,
11,
358,
326,
296,
10050,
90,
427,
280,
11,
5091,
18,
1082,
202,
1884,
261,
6031,
2864,
13874,
3381,
6749,
3381,
294,
312,
1098,
13,
288,
9506,
202,
6290,
18,
4936,
18,
17381,
18,
6031,
5357,
1663,
5357,
273,
6749,
3381,
18,
588,
11227,
581,
5357,
5621,
9506,
202,
430,
261,
3917,
5357,
480,
446,
13,
2142,
1011,
1663,
5357,
18,
588,
6668,
5621,
368,
578,
336,
27813,
1435,
2
] | ||
private Message rollTech(IntegerMessage msg) { int techRolls = msg.getMessage(); boolean canPay = checkEnoughMoney(techRolls); if(!canPay) return new StringMessage("Not enough money to pay for that many tech rolls", true); chargeForTechRolls(techRolls); int techHits = getTechHits(techRolls); m_bridge.sendMessage( new StringMessage("You got " + techHits + (techHits == 1 ? " hit" : " hits")) ); if(techHits == 0) return null; Collection advances = getTechAdvances(techHits); Iterator iter = advances.iterator(); int count = advances.size(); StringBuffer text = new StringBuffer(); while(iter.hasNext()) { TechAdvance advance = (TechAdvance) iter.next(); advance.perform(m_bridge.getPlayerID(),m_bridge, m_data ); text.append(advance.getName()); count--; if(count > 1) text.append(", "); if(count == 1) text.append(" and "); m_techTracker.addAdvance(m_bridge.getPlayerID(), m_data, m_bridge, advance); } String transcriptText = m_bridge.getPlayerID().getName() + " discover " + text.toString(); m_bridge.getTranscript().write(transcriptText); return new StringMessage("Youre scientists have discovered:" + text); } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/65dc97c8bd1d73da6a21d79d5ad468e6bb971a9b/TechnologyDelegate.java/buggy/src/games/strategy/triplea/delegate/TechnologyDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2350,
5824,
56,
8987,
12,
4522,
1079,
1234,
13,
202,
95,
202,
202,
474,
13878,
4984,
3251,
273,
1234,
18,
24906,
5621,
202,
202,
6494,
848,
9148,
273,
866,
664,
4966,
23091,
12,
28012,
4984,
3251,
1769,
202,
202,
430,
12,
5,
4169,
9148,
13,
1082,
202,
2463,
394,
514,
1079,
2932,
1248,
7304,
15601,
358,
8843,
364,
716,
4906,
13878,
5824,
87,
3113,
638,
1769,
9506,
202,
16385,
1290,
56,
8987,
4984,
3251,
12,
28012,
4984,
3251,
1769,
202,
202,
474,
13878,
20950,
273,
3181,
8987,
20950,
12,
28012,
4984,
3251,
1769,
202,
202,
81,
67,
18337,
18,
4661,
1079,
12,
394,
514,
1079,
2932,
6225,
2363,
315,
397,
13878,
20950,
397,
225,
261,
28012,
20950,
422,
404,
692,
315,
6800,
6,
294,
315,
11076,
6,
3719,
11272,
202,
202,
430,
12,
28012,
20950,
422,
374,
13,
1082,
202,
2463,
446,
31,
9506,
202,
2532,
17825,
6872,
273,
3181,
8987,
28915,
6872,
12,
28012,
20950,
1769,
9506,
202,
3198,
1400,
273,
17825,
6872,
18,
9838,
5621,
202,
202,
474,
1056,
273,
17825,
6872,
18,
1467,
5621,
9506,
202,
780,
1892,
977,
273,
394,
6674,
5621,
202,
202,
17523,
12,
2165,
18,
5332,
2134,
10756,
202,
202,
95,
1082,
202,
56,
8987,
1871,
5882,
8312,
273,
261,
56,
8987,
1871,
5882,
13,
1400,
18,
4285,
5621,
1082,
202,
361,
5882,
18,
16092,
12,
81,
67,
18337,
18,
588,
12148,
734,
9334,
81,
67,
18337,
16,
312,
67,
892,
11272,
1082,
202,
955,
18,
6923,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2350,
5824,
56,
8987,
12,
4522,
1079,
1234,
13,
202,
95,
202,
202,
474,
13878,
4984,
3251,
273,
1234,
18,
24906,
5621,
202,
202,
6494,
848,
9148,
273,
866,
664,
4966,
23091,
12,
28012,
4984,
3251,
1769,
202,
202,
430,
12,
5,
4169,
9148,
13,
1082,
202,
2463,
394,
514,
1079,
2932,
1248,
7304,
15601,
358,
8843,
364,
716,
4906,
13878,
5824,
87,
3113,
638,
1769,
9506,
202,
16385,
1290,
56,
8987,
4984,
3251,
12,
28012,
4984,
3251,
1769,
202,
202,
474,
13878,
20950,
273,
3181,
8987,
20950,
12,
28012,
4984,
3251,
1769,
202,
202,
81,
67,
18337,
18,
4661,
1079,
12,
394,
514,
1079,
2932,
6225,
2363,
315,
397,
13878,
20950,
397,
225,
261,
28012,
2
] | ||
fRegistry.put("binary", new BinaryDatatypeValidator()); fRegistry.put("uriReference", new URIReferenceDatatypeValidator()); | fRegistry.put("hexBinary", new HexBinaryDatatypeValidator()); fRegistry.put("base64Binary", new Base64BinaryDatatypeValidator()); fRegistry.put("anyURI", new AnyURIDatatypeValidator()); | public void expandRegistryToFullSchemaSet() { if (fRegistry == null) { fRegistry = new Hashtable(); // if it is null fRegistryExpanded = false; } //Register Primitive Datatypes if (fRegistryExpanded == false) { DatatypeValidator v; try { //fRegistry.put("string", new StringDatatypeValidator() ); fRegistry.put("boolean", new BooleanDatatypeValidator() ); fRegistry.put("float", new FloatDatatypeValidator()); fRegistry.put("double", new DoubleDatatypeValidator()); fRegistry.put("decimal", new DecimalDatatypeValidator()); fRegistry.put("timeDuration", new TimeDurationDatatypeValidator()); fRegistry.put("recurringDuration", new RecurringDurationDatatypeValidator()); fRegistry.put("binary", new BinaryDatatypeValidator()); fRegistry.put("uriReference", new URIReferenceDatatypeValidator()); fRegistry.put("QName", new QNameDatatypeValidator()); fRegistry.put("duration", new DurationDatatypeValidator()); // need to check if the registry has been "DTD" initilized --ericye // since we share the same instance of DTD attribute validators across the board, // we couldn't afford call the initializeDTDRegistry more than one time. if (fRegistry.get("IDREF") == null) { initializeDTDRegistry(); //Initialize common Schema/DTD Datatype validator set if not already initialized } Hashtable facets = new Hashtable(); facets.put(SchemaSymbols.ELT_WHITESPACE, "replace"); createDatatypeValidator("CDATA", new StringDatatypeValidator(), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_WHITESPACE, "collapse"); createDatatypeValidator("token", getDatatypeValidator("CDATA"), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN , "([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]+)(-[a-zA-Z]+)*" ); createDatatypeValidator("language", getDatatypeValidator("token") , facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN , "\\i\\c*" ); createDatatypeValidator("Name", getDatatypeValidator("token"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN , "[\\i-[:]][\\c-[:]]*" ); createDatatypeValidator("NCName", getDatatypeValidator("token"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_SCALE, "0"); createDatatypeValidator("integer", new DecimalDatatypeValidator(), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "0" ); createDatatypeValidator("nonPositiveInteger", getDatatypeValidator("integer"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "-1" ); createDatatypeValidator("negativeInteger", getDatatypeValidator( "nonPositiveInteger"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "9223372036854775807"); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "-9223372036854775808"); createDatatypeValidator("long", getDatatypeValidator( "integer"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "2147483647"); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "-2147483648"); createDatatypeValidator("int", getDatatypeValidator( "long"), facets,false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "32767"); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "-32768"); createDatatypeValidator("short", getDatatypeValidator( "int"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE , "127"); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "-128"); createDatatypeValidator("byte", getDatatypeValidator( "short"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "0" ); createDatatypeValidator("nonNegativeInteger", getDatatypeValidator( "integer"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE, "18446744073709551615" ); createDatatypeValidator("unsignedLong", getDatatypeValidator( "nonNegativeInteger"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE, "4294967295" ); createDatatypeValidator("unsignedInt", getDatatypeValidator( "unsignedLong"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE, "65535" ); createDatatypeValidator("unsignedShort", getDatatypeValidator( "unsignedInt"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MAXINCLUSIVE, "255" ); createDatatypeValidator("unsignedByte", getDatatypeValidator( "unsignedShort"), facets, false ); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_MININCLUSIVE, "1" ); createDatatypeValidator("positiveInteger", getDatatypeValidator( "nonNegativeInteger"), facets, false ); //REVISIT: it looks like patterns are expensive // should we rely on error reporting for date/times and not use pattern here? facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN,"(-)?(\\d*)-(\\d\\d)-(\\d\\d)T(\\d\\d):(\\d\\d):(\\d\\d)(\\.(\\d)*)?(Z|(([-+])(\\d\\d)(:(\\d\\d))?))?"); createDatatypeValidator("dateTime", new DateTimeDatatypeValidator(), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN,"(\\d\\d):(\\d\\d):(\\d\\d)(\\.(\\d)*)?(Z|(([-+])(\\d\\d)(:(\\d\\d))?))?"); createDatatypeValidator("time", new TimeDatatypeValidator(), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN,"(-)?(\\d*)-(\\d\\d)-(\\d\\d)(Z|(([-+])(\\d\\d)(:(\\d\\d))?))?"); createDatatypeValidator("date", new DateDatatypeValidator(), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN,"--(\\d\\d)-(\\d\\d)(Z|(([-+])(\\d\\d)(:(\\d\\d))?))?"); createDatatypeValidator("gMonthDay", new MonthDayDatatypeValidator(), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN,"(-)?(\\d*)-(\\d\\d)(Z|(([-+])(\\d\\d)(:(\\d\\d))?))?"); createDatatypeValidator("gYearMonth", new YearMonthDatatypeValidator(), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN,"(-)?(\\d*)(Z|(([-+])(\\d\\d)(:(\\d\\d))?))?"); createDatatypeValidator("gYear", new YearDatatypeValidator(), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN,"--(\\d\\d)--(Z)?"); createDatatypeValidator("gMonth", new MonthDatatypeValidator(), facets, false); facets = new Hashtable(); facets.put(SchemaSymbols.ELT_PATTERN,"---(\\d\\d)(Z|(([-+])(\\d\\d)(:(\\d\\d))?))?"); createDatatypeValidator("gDay", new DayDatatypeValidator(), facets, false); fRegistryExpanded = true; } catch (InvalidDatatypeFacetException ex) { ex.printStackTrace(); } } } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/d4d6cb515d1e4da913b4d8d417b56672e59b79da/DatatypeValidatorFactoryImpl.java/buggy/src/org/apache/xerces/validators/datatype/DatatypeValidatorFactoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4542,
4243,
774,
5080,
3078,
694,
1435,
288,
3639,
309,
261,
74,
4243,
422,
446,
13,
288,
5411,
284,
4243,
273,
394,
18559,
5621,
368,
309,
518,
353,
446,
5411,
284,
4243,
17957,
273,
629,
31,
3639,
289,
3639,
368,
3996,
14488,
6168,
13373,
540,
309,
261,
74,
4243,
17957,
422,
629,
13,
288,
5411,
21168,
5126,
331,
31,
5411,
775,
288,
7734,
368,
74,
4243,
18,
458,
2932,
1080,
3113,
5411,
394,
514,
20228,
5126,
1435,
11272,
7734,
284,
4243,
18,
458,
2932,
6494,
3113,
6647,
394,
3411,
20228,
5126,
1435,
225,
11272,
7734,
284,
4243,
18,
458,
2932,
5659,
3113,
2398,
394,
5450,
20228,
5126,
10663,
7734,
284,
4243,
18,
458,
2932,
9056,
3113,
5411,
394,
3698,
20228,
5126,
10663,
7734,
284,
4243,
18,
458,
2932,
12586,
3113,
6647,
394,
11322,
20228,
5126,
10663,
7734,
284,
4243,
18,
458,
2932,
957,
5326,
3113,
1377,
394,
2647,
5326,
20228,
5126,
10663,
7734,
284,
4243,
18,
458,
2932,
266,
21179,
5326,
3113,
394,
868,
21179,
5326,
20228,
5126,
10663,
7734,
284,
4243,
18,
458,
2932,
8578,
3113,
5411,
394,
7896,
20228,
5126,
10663,
7734,
284,
4243,
18,
458,
2932,
1650,
2404,
3113,
1377,
394,
3699,
2404,
20228,
5126,
10663,
7734,
284,
4243,
18,
458,
2932,
13688,
3113,
2398,
394,
16723,
20228,
5126,
10663,
1171,
284,
4243,
18,
458,
2932,
8760,
3113,
1850,
394,
4822,
20228,
5126,
10663,
4766,
1171,
9079,
368,
1608,
358,
866,
309,
326,
4023,
711,
2118,
315,
25728,
6,
1208,
330,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4542,
4243,
774,
5080,
3078,
694,
1435,
288,
3639,
309,
261,
74,
4243,
422,
446,
13,
288,
5411,
284,
4243,
273,
394,
18559,
5621,
368,
309,
518,
353,
446,
5411,
284,
4243,
17957,
273,
629,
31,
3639,
289,
3639,
368,
3996,
14488,
6168,
13373,
540,
309,
261,
74,
4243,
17957,
422,
629,
13,
288,
5411,
21168,
5126,
331,
31,
5411,
775,
288,
7734,
368,
74,
4243,
18,
458,
2932,
1080,
3113,
5411,
394,
514,
20228,
5126,
1435,
11272,
7734,
284,
4243,
18,
458,
2932,
6494,
3113,
6647,
394,
3411,
20228,
5126,
1435,
225,
11272,
7734,
284,
4243,
18,
458,
2932,
5659,
3113,
2398,
394,
5450,
20228,
5126,
10663,
7734,
284,
4243,
18,
458,
2932,
9056,
3113,
2
] |
public void mT41() throws RecognitionException { try { ruleNestingLevel++; int _type = T41; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:21:7: ( 'salience' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:21:7: 'salience' { match("salience"); if (failed) return ; } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
9803,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
399,
9803,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,
509,
389,
1369,
273,
9851,
5621,
5411,
509,
389,
3001,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
389,
4327,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
5340,
30,
27,
30,
261,
296,
21982,
6254,
11,
262,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
5340,
30,
27,
30,
296,
21982,
6254,
11,
5411,
288,
5411,
845,
2932,
21982,
6254,
8863,
309,
261,
7307,
13,
327,
274,
5411,
289,
5411,
309,
261,
6888,
631,
20,
262,
288,
8227,
309,
261,
1147,
631,
2011,
597,
1720,
50,
10100,
2355,
631,
21,
262,
288,
12900,
3626,
24899,
723,
16,
67,
1369,
16,
67,
3001,
2555,
16,
67,
4327,
16,
67,
1937,
16,
588,
2156,
1016,
1435,
17,
21,
1769,
8227,
289,
21394,
289,
565,
289,
3639,
3095,
288,
5411,
1720,
50,
10100,
2355,
413,
31,
3639,
289,
565,
289,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21115,
9803,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
399,
9803,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
5411,
509,
389,
1369,
273,
9851,
5621,
5411,
509,
389,
3001,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
389,
4327,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
5340,
30,
27,
30,
261,
296,
21982,
6254,
11,
262,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
2
] | ||
{ byte signature[] = new byte [4]; | { byte[] signature = new byte[4]; | private void detectEncoding () throws SAXException, IOException { byte signature[] = new byte [4]; // Read the first four bytes for // autodetection. is.mark (4); is.read (signature); is.reset (); // // FIRST: four byte encodings (who uses these?) // if (tryEncoding (signature, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x3c)) { // UCS-4 must begin with "<?xml" // 0x00 0x00 0x00 0x3c: UCS-4, big-endian (1234) // "UTF-32BE" encoding = ENCODING_UCS_4_1234; } else if (tryEncoding (signature, (byte) 0x3c, (byte) 0x00, (byte) 0x00, (byte) 0x00)) { // 0x3c 0x00 0x00 0x00: UCS-4, little-endian (4321) // "UTF-32LE" encoding = ENCODING_UCS_4_4321; } else if (tryEncoding (signature, (byte) 0x00, (byte) 0x00, (byte) 0x3c, (byte) 0x00)) { // 0x00 0x00 0x3c 0x00: UCS-4, unusual (2143) encoding = ENCODING_UCS_4_2143; } else if (tryEncoding (signature, (byte) 0x00, (byte) 0x3c, (byte) 0x00, (byte) 0x00)) { // 0x00 0x3c 0x00 0x00: UCS-4, unusual (3421) encoding = ENCODING_UCS_4_3412; // 00 00 fe ff UCS_4_1234 (with BOM) // ff fe 00 00 UCS_4_4321 (with BOM) } // // SECOND: two byte encodings // note ... with 1/14/2000 errata the XML spec identifies some // more "broken UTF-16" autodetection cases, with no XML decl, // which we don't handle here (that's legal too). // else if (tryEncoding (signature, (byte) 0xfe, (byte) 0xff)) { // UCS-2 with a byte-order marker. (UTF-16) // 0xfe 0xff: UCS-2, big-endian (12) encoding = ENCODING_UCS_2_12; is.read (); is.read (); } else if (tryEncoding (signature, (byte) 0xff, (byte) 0xfe)) { // UCS-2 with a byte-order marker. (UTF-16) // 0xff 0xfe: UCS-2, little-endian (21) encoding = ENCODING_UCS_2_21; is.read (); is.read (); } else if (tryEncoding (signature, (byte) 0x00, (byte) 0x3c, (byte) 0x00, (byte) 0x3f)) { // UTF-16BE (otherwise, malformed UTF-16) // 0x00 0x3c 0x00 0x3f: UCS-2, big-endian, no byte-order mark encoding = ENCODING_UCS_2_12; error ("no byte-order mark for UCS-2 entity"); } else if (tryEncoding (signature, (byte) 0x3c, (byte) 0x00, (byte) 0x3f, (byte) 0x00)) { // UTF-16LE (otherwise, malformed UTF-16) // 0x3c 0x00 0x3f 0x00: UCS-2, little-endian, no byte-order mark encoding = ENCODING_UCS_2_21; error ("no byte-order mark for UCS-2 entity"); } // // THIRD: ASCII-derived encodings, fixed and variable lengths // else if (tryEncoding (signature, (byte) 0x3c, (byte) 0x3f, (byte) 0x78, (byte) 0x6d)) { // ASCII derived // 0x3c 0x3f 0x78 0x6d: UTF-8 or other 8-bit markup (read ENCODING) encoding = ENCODING_UTF_8; prefetchASCIIEncodingDecl (); } else if (signature [0] == (byte) 0xef && signature [1] == (byte) 0xbb && signature [2] == (byte) 0xbf) { // 0xef 0xbb 0xbf: UTF-8 BOM (not part of document text) // this un-needed notion slipped into XML 2nd ed through a // "non-normative" erratum; now required by MSFT and UDDI, // and E22 made it normative. encoding = ENCODING_UTF_8; is.read (); is.read (); is.read (); } else { // 4c 6f a7 94 ... we don't understand EBCDIC flavors // ... but we COULD at least kick in some fixed code page // (default) UTF-8 without encoding/XML declaration encoding = ENCODING_UTF_8; } } | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5966,
4705,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
7229,
3372,
8526,
273,
394,
1160,
306,
24,
15533,
202,
759,
2720,
326,
1122,
12792,
1731,
364,
202,
759,
2059,
369,
278,
794,
18,
202,
291,
18,
3355,
261,
24,
1769,
202,
291,
18,
896,
261,
8195,
1769,
202,
291,
18,
6208,
261,
1769,
202,
759,
202,
759,
21786,
30,
225,
12792,
1160,
24118,
261,
3350,
83,
4692,
4259,
8535,
202,
759,
202,
430,
261,
698,
4705,
261,
8195,
16,
261,
7229,
13,
374,
92,
713,
16,
261,
7229,
13,
374,
92,
713,
16,
9506,
225,
261,
7229,
13,
374,
92,
713,
16,
261,
7229,
13,
374,
92,
23,
71,
3719,
288,
202,
565,
368,
587,
4596,
17,
24,
1297,
2376,
598,
20410,
2902,
6,
202,
565,
368,
374,
92,
713,
374,
92,
713,
374,
92,
713,
374,
92,
23,
71,
30,
587,
4596,
17,
24,
16,
5446,
17,
22910,
261,
28462,
13,
202,
565,
368,
315,
5159,
17,
1578,
5948,
6,
202,
565,
2688,
273,
22810,
67,
57,
4596,
67,
24,
67,
28462,
31,
202,
97,
469,
309,
261,
698,
4705,
261,
8195,
16,
261,
7229,
13,
374,
92,
23,
71,
16,
261,
7229,
13,
374,
92,
713,
16,
6862,
261,
7229,
13,
374,
92,
713,
16,
261,
7229,
13,
374,
92,
713,
3719,
288,
202,
565,
368,
374,
92,
23,
71,
374,
92,
713,
374,
92,
713,
374,
92,
713,
30,
587,
4596,
17,
24,
16,
12720,
17,
22910,
261,
24,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5966,
4705,
1832,
565,
1216,
14366,
16,
1860,
565,
288,
202,
7229,
3372,
8526,
273,
394,
1160,
306,
24,
15533,
202,
759,
2720,
326,
1122,
12792,
1731,
364,
202,
759,
2059,
369,
278,
794,
18,
202,
291,
18,
3355,
261,
24,
1769,
202,
291,
18,
896,
261,
8195,
1769,
202,
291,
18,
6208,
261,
1769,
202,
759,
202,
759,
21786,
30,
225,
12792,
1160,
24118,
261,
3350,
83,
4692,
4259,
8535,
202,
759,
202,
430,
261,
698,
4705,
261,
8195,
16,
261,
7229,
13,
374,
92,
713,
16,
261,
7229,
13,
374,
92,
713,
16,
9506,
225,
261,
7229,
13,
374,
92,
713,
16,
261,
7229,
13,
374,
92,
23,
71,
3719,
288,
202,
565,
368,
2
] |
synchronized( o1 ) | synchronized(o1) | public void run() { ResultSet rs = null; try { rs = stmt.executeQuery("SELECT * FROM #SAfe0003"); assertEquals(null, rs.getWarnings()); assertEquals(null, stmt.getWarnings()); // Synchronize all threads synchronized( o2 ) { synchronized( o1 ) { started++; o1.notify(); } try{ o2.wait(); } catch( InterruptedException e ) {} } assertNotNull("executeQuery should not return null", rs); assertTrue(rs.next()); assertTrue(rs.next()); assertTrue(!rs.next()); assertTrue(rs.previous()); assertTrue(rs.previous()); assertTrue(!rs.previous()); } catch( SQLException e ) { e.printStackTrace(); synchronized (o1) { failed = true; } fail("An SQL Exception occured: "+e); } finally { if( rs != null ) try{ rs.close(); } catch( SQLException e ) {} // Notify that we're done synchronized( o1 ) { done++; o1.notify(); } } } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/662fbbf0e5f04956f22a56e58dae82d6c816a2c6/SAfeTest.java/clean/src/test/net/sourceforge/jtds/test/SAfeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
7734,
288,
10792,
10842,
3597,
273,
446,
31,
10792,
775,
10792,
288,
13491,
3597,
273,
3480,
18,
8837,
1138,
2932,
4803,
380,
4571,
468,
5233,
3030,
30770,
8863,
13491,
1815,
8867,
12,
2011,
16,
3597,
18,
588,
4312,
10663,
13491,
1815,
8867,
12,
2011,
16,
3480,
18,
588,
4312,
10663,
13491,
368,
26535,
554,
777,
7403,
13491,
3852,
12,
320,
22,
262,
13491,
288,
18701,
3852,
12,
83,
21,
13,
18701,
288,
27573,
5746,
9904,
31,
27573,
320,
21,
18,
12336,
5621,
18701,
289,
18701,
775,
95,
320,
22,
18,
7048,
5621,
289,
1044,
12,
7558,
425,
262,
2618,
13491,
289,
13491,
25395,
2932,
8837,
1138,
1410,
486,
327,
446,
3113,
3597,
1769,
13491,
1815,
5510,
12,
5453,
18,
4285,
10663,
13491,
1815,
5510,
12,
5453,
18,
4285,
10663,
13491,
1815,
5510,
12,
5,
5453,
18,
4285,
10663,
13491,
1815,
5510,
12,
5453,
18,
11515,
10663,
13491,
1815,
5510,
12,
5453,
18,
11515,
10663,
13491,
1815,
5510,
12,
5,
5453,
18,
11515,
10663,
10792,
289,
10792,
1044,
12,
6483,
425,
262,
10792,
288,
13491,
425,
18,
1188,
6332,
5621,
13491,
3852,
261,
83,
21,
13,
288,
18701,
2535,
273,
638,
31,
13491,
289,
13491,
2321,
2932,
979,
3063,
1185,
16206,
30,
13773,
73,
1769,
10792,
289,
10792,
3095,
10792,
288,
13491,
309,
12,
3597,
480,
446,
262,
18701,
775,
95,
3597,
18,
4412,
5621,
289,
1044,
12,
6483,
425,
262,
2618,
13491,
368,
10918,
716,
732,
4565,
2731,
13491,
3852,
12,
83,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1086,
1435,
7734,
288,
10792,
10842,
3597,
273,
446,
31,
10792,
775,
10792,
288,
13491,
3597,
273,
3480,
18,
8837,
1138,
2932,
4803,
380,
4571,
468,
5233,
3030,
30770,
8863,
13491,
1815,
8867,
12,
2011,
16,
3597,
18,
588,
4312,
10663,
13491,
1815,
8867,
12,
2011,
16,
3480,
18,
588,
4312,
10663,
13491,
368,
26535,
554,
777,
7403,
13491,
3852,
12,
320,
22,
262,
13491,
288,
18701,
3852,
12,
83,
21,
13,
18701,
288,
27573,
5746,
9904,
31,
27573,
320,
21,
18,
12336,
5621,
18701,
289,
18701,
775,
95,
320,
22,
18,
7048,
5621,
289,
1044,
12,
7558,
425,
262,
2618,
13491,
289,
13491,
25395,
2932,
8837,
1138,
1410,
486,
327,
446,
3113,
3597,
1769,
13491,
2
] |
return getBigDecimal(columnIndex, ((field.mod-4) & 0xffff)); | return getBigDecimal (columnIndex, (field.mod==-1)?-1:((field.mod-4) & 0xffff)); | public Object getObject(int columnIndex) throws SQLException { Field field; if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); field = fields[columnIndex - 1]; // some fields can be null, mainly from those returned by MetaData methods if(field==null) { wasNullFlag=true; return null; } switch (field.getSQLType()) { case Types.BIT: return new Boolean(getBoolean(columnIndex)); case Types.SMALLINT: return new Integer(getInt(columnIndex)); case Types.INTEGER: return new Integer(getInt(columnIndex)); case Types.BIGINT: return new Long(getLong(columnIndex)); case Types.NUMERIC: return getBigDecimal(columnIndex, ((field.mod-4) & 0xffff)); case Types.REAL: return new Float(getFloat(columnIndex)); case Types.DOUBLE: return new Double(getDouble(columnIndex)); case Types.CHAR: case Types.VARCHAR: return getString(columnIndex); case Types.DATE: return getDate(columnIndex); case Types.TIME: return getTime(columnIndex); case Types.TIMESTAMP: return getTimestamp(columnIndex); default: return connection.getObject(field.getTypeName(), getString(columnIndex)); } } | 49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/d42f9b59e93f5b85cb1f7b31f192e8acebfa1e12/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
6455,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
2286,
652,
31,
3639,
309,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
455,
18,
1293,
3676,
8863,
565,
652,
273,
1466,
63,
2827,
1016,
300,
404,
15533,
3639,
368,
2690,
1466,
848,
506,
446,
16,
31457,
628,
5348,
2106,
635,
27512,
2590,
565,
309,
12,
1518,
631,
2011,
13,
288,
1377,
1703,
2041,
4678,
33,
3767,
31,
1377,
327,
446,
31,
565,
289,
3639,
1620,
261,
1518,
18,
588,
3997,
559,
10756,
1377,
288,
1377,
648,
7658,
18,
15650,
30,
202,
2463,
394,
3411,
12,
588,
5507,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
23882,
3217,
30,
202,
2463,
394,
2144,
12,
588,
1702,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
14217,
30,
202,
2463,
394,
2144,
12,
588,
1702,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
19044,
3217,
30,
202,
2463,
394,
3407,
12,
588,
3708,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
22998,
30,
202,
2463,
2882,
360,
5749,
261,
2827,
1016,
16,
261,
1518,
18,
1711,
631,
17,
21,
9945,
17,
21,
30,
12443,
1518,
18,
1711,
17,
24,
13,
473,
374,
20431,
10019,
1377,
648,
7658,
18,
31052,
30,
202,
2463,
394,
5450,
12,
588,
4723,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
17088,
30,
202,
2463,
394,
3698,
12,
588,
5265,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
7305,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
6455,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
2286,
652,
31,
3639,
309,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
455,
18,
1293,
3676,
8863,
565,
652,
273,
1466,
63,
2827,
1016,
300,
404,
15533,
3639,
368,
2690,
1466,
848,
506,
446,
16,
31457,
628,
5348,
2106,
635,
27512,
2590,
565,
309,
12,
1518,
631,
2011,
13,
288,
1377,
1703,
2041,
4678,
33,
3767,
31,
1377,
327,
446,
31,
565,
289,
3639,
1620,
261,
1518,
18,
588,
3997,
559,
10756,
1377,
288,
1377,
648,
7658,
18,
15650,
30,
202,
2463,
394,
3411,
12,
588,
5507,
12,
2827,
1016,
10019,
1377,
2
] |
NNumber dc = d.copy(); NNumber ic = i.copy(); | NDouble dc = (NDouble)d.copy(); NInt ic = (NInt)i.copy(); | public static void main(String argv[]) { NDouble d = new NDouble(3.5); NInt i = new NInt(2); NInt j = virtual_poly.incr(i); // // These two natural 'copy' forms fail, only java and csharp // because no polymorphic return types are supported. // But we can live with this restriction, more or less. // // NDouble dc = d.copy(); // NInt ic = i.copy(); // // These two 'copy' forms work, but we end with plain NNumbers // NNumber dc = d.copy(); NNumber ic = i.copy(); // // The real problem is that there is no way to recover the // original NInt or NDouble objects, even when you try to use the // plain and natural C++ dynamic_cast operation, or the user // downcasting mechanism: // // don't work NDouble ddc = NDouble.narrow(dc); NInt dic = NInt.narrow(ic); } | 45750 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45750/9129f61a3991b180b2b93c76ac3d766f6a6d9931/virtual_poly_runme.java/clean/SWIG/Examples/test-suite/java/virtual_poly_runme.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
423,
5265,
302,
273,
394,
423,
5265,
12,
23,
18,
25,
1769,
565,
423,
1702,
277,
273,
394,
423,
1702,
12,
22,
1769,
565,
423,
1702,
525,
273,
5024,
67,
16353,
18,
267,
3353,
12,
77,
1769,
565,
368,
565,
368,
8646,
2795,
15145,
296,
3530,
11,
10138,
2321,
16,
1338,
2252,
471,
276,
674,
11441,
565,
368,
2724,
1158,
2952,
21976,
327,
1953,
854,
3260,
18,
377,
368,
12484,
732,
848,
8429,
598,
333,
9318,
16,
1898,
578,
5242,
18,
565,
368,
565,
368,
423,
5265,
6744,
273,
302,
18,
3530,
5621,
565,
368,
423,
1702,
13579,
273,
277,
18,
3530,
5621,
565,
368,
565,
368,
8646,
2795,
296,
3530,
11,
10138,
1440,
16,
1496,
732,
679,
225,
598,
7351,
423,
10072,
565,
368,
565,
423,
1854,
6744,
273,
302,
18,
3530,
5621,
565,
423,
1854,
13579,
273,
277,
18,
3530,
5621,
565,
368,
565,
368,
1021,
2863,
6199,
353,
716,
1915,
353,
1158,
4031,
358,
5910,
326,
565,
368,
2282,
423,
1702,
578,
423,
5265,
2184,
16,
5456,
1347,
1846,
775,
358,
999,
326,
565,
368,
7351,
471,
15145,
385,
9904,
5976,
67,
4155,
1674,
16,
578,
326,
729,
565,
368,
2588,
4155,
310,
12860,
30,
565,
368,
565,
368,
2727,
1404,
1440,
565,
423,
5265,
6957,
71,
273,
423,
5265,
18,
82,
7815,
12,
7201,
1769,
565,
423,
1702,
11681,
273,
423,
1702,
18,
82,
7815,
12,
335,
1769,
225,
289,
2,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
423,
5265,
302,
273,
394,
423,
5265,
12,
23,
18,
25,
1769,
565,
423,
1702,
277,
273,
394,
423,
1702,
12,
22,
1769,
565,
423,
1702,
525,
273,
5024,
67,
16353,
18,
267,
3353,
12,
77,
1769,
565,
368,
565,
368,
8646,
2795,
15145,
296,
3530,
11,
10138,
2321,
16,
1338,
2252,
471,
276,
674,
11441,
565,
368,
2724,
1158,
2952,
21976,
327,
1953,
854,
3260,
18,
377,
368,
12484,
732,
848,
8429,
598,
333,
9318,
16,
1898,
578,
5242,
18,
565,
368,
565,
368,
423,
5265,
6744,
273,
302,
18,
3530,
5621,
565,
368,
423,
1702,
13579,
273,
277,
18,
3530,
5621,
565,
368,
565,
368,
2
] |
filecount=files.length; | filecount = files.length; | public void execute() throws BuildException { // first off, make sure that we've got a srcdir if (src == null) { throw new BuildException("srcdir attribute must be set!", location); } String [] list = src.list(); if (list.length == 0) { throw new BuildException("srcdir attribute must be set!", location); } if (destDir != null && !destDir.isDirectory()) { throw new BuildException("destination directory \"" + destDir + "\" does not exist or is not a directory", location); } File dest = getActualDestDir(); //bind to a compiler JspCompilerAdapter compiler = JspCompilerAdapterFactory.getCompiler(compilerName, this); // if the compiler does its own dependency stuff, we just call it right now if(compiler.implementsOwnDependencyChecking()) { doCompilation(compiler); return; } //the remainder of this method is only for compilers that need their dependency work done JspMangler mangler=compiler.createMangler(); // scan source directories and dest directory to build up both copy // lists and compile lists resetFileLists(); int filecount=0; for (int i = 0; i < list.length; i++) { File srcDir = (File)project.resolveFile(list[i]); if (!srcDir.exists()) { throw new BuildException("srcdir \"" + srcDir.getPath() + "\" does not exist!", location); } DirectoryScanner ds = this.getDirectoryScanner(srcDir); String[] files = ds.getIncludedFiles(); filecount=files.length; scanDir(srcDir, dest, mangler, files); } // compile the source files log("compiling "+compileList.size()+" files",Project.MSG_VERBOSE); if (compileList.size() > 0) { log("Compiling " + compileList.size() + " source file" + (compileList.size() == 1 ? "" : "s") + dest); doCompilation(compiler); } else { if(filecount==0) { log("there were no files to compile",Project.MSG_INFO); } else { log("all files are up to date",Project.MSG_VERBOSE); } } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/6154080061f869b4e425d608da3bd61fad967564/JspC.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
3639,
1216,
18463,
288,
3639,
368,
1122,
3397,
16,
1221,
3071,
716,
732,
8081,
2363,
279,
1705,
1214,
3639,
309,
261,
4816,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
4816,
1214,
1566,
1297,
506,
444,
5,
3113,
19694,
2117,
1769,
3639,
289,
3639,
514,
5378,
666,
273,
1705,
18,
1098,
5621,
3639,
309,
261,
1098,
18,
2469,
422,
374,
13,
288,
5411,
604,
394,
18463,
2932,
4816,
1214,
1566,
1297,
506,
444,
5,
3113,
19694,
2117,
1769,
3639,
289,
3639,
309,
261,
10488,
1621,
480,
446,
597,
401,
10488,
1621,
18,
291,
2853,
10756,
288,
5411,
604,
394,
7734,
18463,
2932,
10590,
1867,
11843,
397,
26231,
397,
1171,
9079,
7023,
1552,
486,
1005,
578,
353,
486,
279,
1867,
3113,
1171,
9079,
2117,
1769,
3639,
289,
3639,
1387,
1570,
273,
20208,
9378,
1621,
5621,
3639,
368,
4376,
358,
279,
5274,
3639,
19300,
9213,
4216,
5274,
273,
5411,
19300,
9213,
4216,
1733,
18,
588,
9213,
12,
9576,
461,
16,
333,
1769,
3639,
368,
309,
326,
5274,
1552,
2097,
4953,
4904,
10769,
16,
732,
2537,
745,
518,
2145,
2037,
3639,
309,
12,
9576,
18,
17061,
5460,
7787,
14294,
10756,
288,
5411,
741,
19184,
12,
9576,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
5787,
10022,
434,
333,
707,
353,
1338,
364,
1161,
330,
414,
716,
1608,
3675,
4904,
1440,
2731,
3639,
19300,
49,
539,
749,
29674,
749,
33,
9576,
18,
2640,
49,
539,
749,
5621,
3639,
368,
4135,
1084,
6402,
471,
1570,
1867,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18463,
288,
3639,
368,
1122,
3397,
16,
1221,
3071,
716,
732,
8081,
2363,
279,
1705,
1214,
3639,
309,
261,
4816,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
4816,
1214,
1566,
1297,
506,
444,
5,
3113,
19694,
2117,
1769,
3639,
289,
3639,
514,
5378,
666,
273,
1705,
18,
1098,
5621,
3639,
309,
261,
1098,
18,
2469,
422,
374,
13,
288,
5411,
604,
394,
18463,
2932,
4816,
1214,
1566,
1297,
506,
444,
5,
3113,
19694,
2117,
1769,
3639,
289,
3639,
309,
261,
10488,
1621,
480,
446,
597,
401,
10488,
1621,
18,
291,
2853,
10756,
288,
5411,
604,
394,
7734,
18463,
2932,
10590,
1867,
11843,
397,
26231,
397,
1171,
9079,
7023,
1552,
486,
2
] |
String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); | Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, stringReg, scope); | static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; int indexReg = 0; Loop: for (;;) { int pcJump; try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pcJump = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcJump >= 0) { // Has catch block doCatch = true; } } if (pcJump < 0) { pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcJump < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // go to generic jump code break; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } stack[stackTop] = null; --stackTop; pcJump = getTarget(iCode, pc); break; } case Token.GOTO : pcJump = getTarget(iCode, pc); break; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; pcJump = getTarget(iCode, pc); break; case Icode_RETSUB : { // indexReg: local to store return address Object value = stack[LOCAL_SHFT + indexReg]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pcJump = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pcJump = (int)sDbl[LOCAL_SHFT + indexReg]; } break; } case Token.POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; continue Loop; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; } case Icode_REG_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_REG_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_REG_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; case Icode_REG_IND1: indexReg = 0xFF & iCode[pc]; ++pc; continue Loop; case Icode_REG_IND2: indexReg = getIndex(iCode, pc); pc += 2; continue Loop; case Icode_REG_IND4: indexReg = getInt(iCode, pc); pc += 4; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); continue Loop; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; continue Loop; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; continue Loop; case Icode_PROPINC : case Icode_PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, name, scope, op == Icode_PROPINC); continue Loop; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); continue Loop; } case Token.LOCAL_SAVE : stack[LOCAL_SHFT + indexReg] = stack[stackTop]; sDbl[LOCAL_SHFT + indexReg] = sDbl[stackTop]; --stackTop; continue Loop; case Token.LOCAL_LOAD : ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + indexReg]; sDbl[stackTop] = sDbl[LOCAL_SHFT + indexReg]; continue Loop; case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } // indexReg: number of arguments int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); stackTop -= indexReg; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, indexReg); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 4; continue Loop; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, indexReg, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; continue Loop; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, indexReg, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Icode_NAME_FAST_THIS : case Icode_NAME_SLOW_THIS : stackTop = do_nameAndThis(stack, stackTop, scope, stringReg, op); continue Loop; case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[indexReg]; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(scope, stringReg); continue Loop; case Icode_NAMEINC : case Icode_NAMEDEC : stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, stringReg, op == Icode_NAMEINC); continue Loop; case Token.SETVAR : { int slot = (iCode[pc] & 0xFF); if (!useActivationVars) { stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.GETVAR : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; } else { stack[stackTop] = activationGet(fnOrScript, scope, slot); } ++pc; continue Loop; } case Icode_VARINC : case Icode_VARDEC : { int slot = (iCode[pc] & 0xFF); ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + slot]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + slot]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, slot); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, slot, val); } ++pc; continue Loop; } case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + indexReg] = ScriptRuntime.enumInit(lhs, scope); continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { Object val = stack[LOCAL_SHFT + indexReg]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); continue Loop; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); continue Loop; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE : { InterpreterData closureData = idata.itsNestedFunctions[indexReg]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); continue Loop; } case Token.REGEXP : { Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[indexReg]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[indexReg]; } stack[++stackTop] = regexp; continue Loop; } case Icode_LITERAL_NEW : // indexReg: number of values in the literal ++stackTop; stack[stackTop] = new Object[indexReg]; sDbl[stackTop] = 0; continue Loop; case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Icode_SPARE_ARRAYLIT : case Token.OBJECTLIT : { Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.OBJECTLIT) { Object[] ids = (Object[])idata.literalIds[indexReg]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } else { int[] skipIndexces = null; if (op == Icode_SPARE_ARRAYLIT) { skipIndexces = (int[])idata.literalIds[indexReg]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } stack[stackTop] = val; continue Loop; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } } // end of interpreter switch // This should be reachable only for jump implementation if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } pcPrevBranch = pcJump; } pc = pcJump; continue Loop; } // end of interpreter try catch (Throwable ex) { pcJump = getJavaCatchPC(iCode); if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } pcPrevBranch = pcJump; } javaException = ex; exceptionPC = pc - 1; pc = pcJump; continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bf289c63543f0cc34416017db6f071919cda9b64/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
612,
396,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
888,
18,
1991,
1190,
3748,
12,
350,
396,
18,
7462,
3748,
16,
9494,
16,
2295,
1162,
3651,
16,
29159,
2146,
16,
15261,
16,
833,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
2
] |
super(runtime); } | super(runtime); } | public ThreadDefinition(Ruby runtime) { super(runtime); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/dc7ce748a0710f6824ce88e4621f4479beb195fc/ThreadDefinition.java/buggy/src/org/jruby/internal/runtime/builtin/definitions/ThreadDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4884,
1852,
12,
54,
10340,
3099,
13,
288,
3639,
2240,
12,
9448,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4884,
1852,
12,
54,
10340,
3099,
13,
288,
3639,
2240,
12,
9448,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IMethod meth= JavaModelUtil.findMethodInHierarchy(hierarchy, methName, sig, isConstructor); | IMethod meth= JavaModelUtil.findMethodDeclarationInHierarchy(hierarchy, methName, sig, isConstructor); | private void assertFindMethodInHierarchy(String methName, String[] paramTypeNames, boolean isConstructor, IType type, String declaringTypeName) throws Exception { ITypeHierarchy hierarchy= type.newSupertypeHierarchy(null); String[] sig= new String[paramTypeNames.length]; for (int i= 0; i < paramTypeNames.length; i++) { // create as unresolved String name= Signature.getSimpleName(paramTypeNames[i]); sig[i]= Signature.createTypeSignature(name, false); assertNotNull(methName + "-ts1" + i, sig[i]); } IMethod meth= JavaModelUtil.findMethodInHierarchy(hierarchy, methName, sig, isConstructor); assertElementName(methName, meth, IJavaElement.METHOD); assertTrue("methName-nparam1", meth.getParameterTypes().length == paramTypeNames.length); assertEquals("methName-decltype", declaringTypeName, JavaModelUtil.getFullyQualifiedName(meth.getDeclaringType())); for (int i= 0; i < paramTypeNames.length; i++) { // create as resolved sig[i]= Signature.createTypeSignature(paramTypeNames[i], true); assertNotNull(methName + "-ts2" + i, sig[i]); } meth= JavaModelUtil.findMethodInHierarchy(hierarchy, methName, sig, isConstructor); assertElementName(methName, meth, IJavaElement.METHOD); assertTrue("methName-nparam2", meth.getParameterTypes().length == paramTypeNames.length); assertEquals("methName-decltype", declaringTypeName, JavaModelUtil.getFullyQualifiedName(meth.getDeclaringType())); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/44e3ada50a86dcdd95dd0fe8b42b3b557d174662/JavaModelUtilTest.java/clean/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/JavaModelUtilTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1815,
3125,
1305,
382,
12074,
12,
780,
7917,
461,
16,
514,
8526,
20781,
1557,
16,
1250,
353,
6293,
16,
467,
559,
618,
16,
514,
20845,
7947,
13,
1216,
1185,
288,
202,
202,
45,
559,
12074,
9360,
33,
618,
18,
2704,
8051,
723,
12074,
12,
2011,
1769,
9506,
202,
780,
8526,
3553,
33,
394,
514,
63,
891,
559,
1557,
18,
2469,
15533,
202,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
20781,
1557,
18,
2469,
31,
277,
27245,
288,
1082,
202,
759,
752,
487,
20573,
1082,
202,
780,
508,
33,
9249,
18,
588,
5784,
461,
12,
891,
559,
1557,
63,
77,
19226,
1082,
202,
7340,
63,
77,
65,
33,
9249,
18,
2640,
559,
5374,
12,
529,
16,
629,
1769,
1082,
202,
11231,
5962,
12,
27305,
461,
397,
3701,
3428,
21,
6,
397,
277,
16,
3553,
63,
77,
19226,
202,
202,
97,
202,
202,
45,
1305,
7917,
33,
5110,
1488,
1304,
18,
4720,
1305,
382,
12074,
12,
17937,
16,
7917,
461,
16,
3553,
16,
353,
6293,
1769,
202,
202,
11231,
30584,
12,
27305,
461,
16,
7917,
16,
467,
5852,
1046,
18,
5327,
1769,
202,
202,
11231,
5510,
2932,
27305,
461,
17,
82,
891,
21,
3113,
7917,
18,
588,
1662,
2016,
7675,
2469,
422,
20781,
1557,
18,
2469,
1769,
202,
202,
11231,
8867,
2932,
27305,
461,
17,
8840,
723,
3113,
20845,
7947,
16,
5110,
1488,
1304,
18,
588,
16999,
12345,
12,
27305,
18,
588,
3456,
5968,
559,
1435,
10019,
9506,
202,
1884,
261,
474,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1815,
3125,
1305,
382,
12074,
12,
780,
7917,
461,
16,
514,
8526,
20781,
1557,
16,
1250,
353,
6293,
16,
467,
559,
618,
16,
514,
20845,
7947,
13,
1216,
1185,
288,
202,
202,
45,
559,
12074,
9360,
33,
618,
18,
2704,
8051,
723,
12074,
12,
2011,
1769,
9506,
202,
780,
8526,
3553,
33,
394,
514,
63,
891,
559,
1557,
18,
2469,
15533,
202,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
20781,
1557,
18,
2469,
31,
277,
27245,
288,
1082,
202,
759,
752,
487,
20573,
1082,
202,
780,
508,
33,
9249,
18,
588,
5784,
461,
12,
891,
559,
1557,
63,
77,
19226,
1082,
202,
7340,
63,
77,
65,
33,
9249,
18,
2640,
559,
5374,
2
] |
recommendedPixelFormat = WGL.ChoosePixelFormat(hdc, pfd); | recommendedPixelFormat = WGL.ChoosePixelFormat(hdc, pfd) - 1; | protected void choosePixelFormatAndCreateContext(boolean onscreen) { PIXELFORMATDESCRIPTOR pfd = null; int pixelFormat = 0; if (onscreen) { GLCapabilities[] availableCaps = null; int numFormats = 0; pfd = newPixelFormatDescriptor(); GraphicsDevice device = component.getGraphicsConfiguration().getDevice(); // Produce a recommended pixel format selection for the GLCapabilitiesChooser. // Try to use wglChoosePixelFormatARB if we have it available GL dummyGL = WindowsGLContextFactory.getDummyGLContext(device); int recommendedPixelFormat = -1; boolean haveWGLChoosePixelFormatARB = false; boolean haveWGLARBMultisample = false; if (dummyGL != null) { String availableWGLExtensions = WindowsGLContextFactory.getDummyGLExtensions(device); if (availableWGLExtensions.indexOf("WGL_ARB_pixel_format") >= 0) { haveWGLChoosePixelFormatARB = true; if (availableWGLExtensions.indexOf("WGL_ARB_multisample") >= 0) { haveWGLARBMultisample = true; } } } if (dummyGL != null && haveWGLChoosePixelFormatARB) { int[] iattributes = new int [2 * MAX_ATTRIBS]; int[] iresults = new int [2 * MAX_ATTRIBS]; float[] fattributes = new float[2 * MAX_ATTRIBS]; int niattribs = 0; int nfattribs = 0; iattributes[niattribs++] = GL.WGL_SUPPORT_OPENGL_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_DRAW_TO_WINDOW_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_PIXEL_TYPE_ARB; iattributes[niattribs++] = GL.WGL_TYPE_RGBA_ARB; iattributes[niattribs++] = GL.WGL_DOUBLE_BUFFER_ARB; if (capabilities.getDoubleBuffered()) { iattributes[niattribs++] = GL.GL_TRUE; } else { iattributes[niattribs++] = GL.GL_FALSE; } iattributes[niattribs++] = GL.WGL_STEREO_ARB; if (capabilities.getStereo()) { iattributes[niattribs++] = GL.GL_TRUE; } else { iattributes[niattribs++] = GL.GL_FALSE; } iattributes[niattribs++] = GL.WGL_DEPTH_BITS_ARB; iattributes[niattribs++] = capabilities.getDepthBits(); iattributes[niattribs++] = GL.WGL_RED_BITS_ARB; iattributes[niattribs++] = capabilities.getRedBits(); iattributes[niattribs++] = GL.WGL_GREEN_BITS_ARB; iattributes[niattribs++] = capabilities.getGreenBits(); iattributes[niattribs++] = GL.WGL_BLUE_BITS_ARB; iattributes[niattribs++] = capabilities.getBlueBits(); iattributes[niattribs++] = GL.WGL_ALPHA_BITS_ARB; iattributes[niattribs++] = capabilities.getAlphaBits(); iattributes[niattribs++] = GL.WGL_STENCIL_BITS_ARB; iattributes[niattribs++] = capabilities.getStencilBits(); if (capabilities.getAccumRedBits() > 0 || capabilities.getAccumGreenBits() > 0 || capabilities.getAccumBlueBits() > 0 || capabilities.getAccumAlphaBits() > 0) { iattributes[niattribs++] = GL.WGL_ACCUM_BITS_ARB; iattributes[niattribs++] = (capabilities.getAccumRedBits() + capabilities.getAccumGreenBits() + capabilities.getAccumBlueBits() + capabilities.getAccumAlphaBits()); iattributes[niattribs++] = GL.WGL_ACCUM_RED_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumRedBits(); iattributes[niattribs++] = GL.WGL_ACCUM_GREEN_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumGreenBits(); iattributes[niattribs++] = GL.WGL_ACCUM_BLUE_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumBlueBits(); iattributes[niattribs++] = GL.WGL_ACCUM_ALPHA_BITS_ARB; iattributes[niattribs++] = capabilities.getAccumAlphaBits(); } if (haveWGLARBMultisample) { if (capabilities.getSampleBuffers()) { iattributes[niattribs++] = GL.WGL_SAMPLE_BUFFERS_ARB; iattributes[niattribs++] = GL.GL_TRUE; iattributes[niattribs++] = GL.WGL_SAMPLES_ARB; iattributes[niattribs++] = capabilities.getNumSamples(); } } int[] pformats = new int[MAX_PFORMATS]; int[] numFormatsTmp = new int[1]; if (dummyGL.wglChoosePixelFormatARB(hdc, iattributes, fattributes, MAX_PFORMATS, pformats, numFormatsTmp)) { numFormats = numFormatsTmp[0]; if (numFormats > 0) { recommendedPixelFormat = pformats[0]; if (DEBUG) { System.err.println("Used wglChoosePixelFormatARB to recommend pixel format " + recommendedPixelFormat); } } } if (DEBUG) { if (recommendedPixelFormat < 0) { System.err.print("wglChoosePixelFormatARB didn't recommend a pixel format"); if (capabilities.getSampleBuffers()) { System.err.print(" for multisampled GLCapabilities"); } System.err.println(); } } // Produce a list of GLCapabilities to give to the // GLCapabilitiesChooser. // Use wglGetPixelFormatAttribivARB instead of // DescribePixelFormat to get higher-precision information // about the pixel format (should make the GLCapabilities // more precise as well...i.e., remove the // "HardwareAccelerated" bit, which is basically // meaningless, and put in whether it can render to a // window, to a pbuffer, or to a pixmap) niattribs = 0; iattributes[0] = GL.WGL_NUMBER_PIXEL_FORMATS_ARB; if (!dummyGL.wglGetPixelFormatAttribivARB(hdc, 0, 0, 1, iattributes, iresults)) { throw new GLException("Unable to enumerate pixel formats of window using wglGetPixelFormatAttribivARB"); } numFormats = iresults[0]; // Should we be filtering out the pixel formats which aren't // applicable, as we are doing here? // We don't have enough information in the GLCapabilities to // represent those that aren't... iattributes[niattribs++] = GL.WGL_DRAW_TO_WINDOW_ARB; iattributes[niattribs++] = GL.WGL_ACCELERATION_ARB; iattributes[niattribs++] = GL.WGL_SUPPORT_OPENGL_ARB; iattributes[niattribs++] = GL.WGL_DEPTH_BITS_ARB; iattributes[niattribs++] = GL.WGL_STENCIL_BITS_ARB; iattributes[niattribs++] = GL.WGL_DOUBLE_BUFFER_ARB; iattributes[niattribs++] = GL.WGL_STEREO_ARB; iattributes[niattribs++] = GL.WGL_PIXEL_TYPE_ARB; iattributes[niattribs++] = GL.WGL_RED_BITS_ARB; iattributes[niattribs++] = GL.WGL_GREEN_BITS_ARB; iattributes[niattribs++] = GL.WGL_BLUE_BITS_ARB; iattributes[niattribs++] = GL.WGL_ALPHA_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_RED_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_GREEN_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_BLUE_BITS_ARB; iattributes[niattribs++] = GL.WGL_ACCUM_ALPHA_BITS_ARB; if (haveWGLARBMultisample) { iattributes[niattribs++] = GL.WGL_SAMPLE_BUFFERS_ARB; iattributes[niattribs++] = GL.WGL_SAMPLES_ARB; } availableCaps = new GLCapabilities[numFormats]; for (int i = 0; i < numFormats; i++) { if (!dummyGL.wglGetPixelFormatAttribivARB(hdc, i+1, 0, niattribs, iattributes, iresults)) { throw new GLException("Error getting pixel format attributes for pixel format " + (i + 1) + " of device context"); } availableCaps[i] = iattributes2GLCapabilities(iattributes, iresults, niattribs, true); } } else { if (DEBUG) { System.err.println("Using ChoosePixelFormat because no wglChoosePixelFormatARB: dummyGL = " + dummyGL); } pfd = glCapabilities2PFD(capabilities, onscreen); recommendedPixelFormat = WGL.ChoosePixelFormat(hdc, pfd); numFormats = WGL.DescribePixelFormat(hdc, 1, 0, null); if (numFormats == 0) { throw new GLException("Unable to enumerate pixel formats of window for GLCapabilitiesChooser"); } availableCaps = new GLCapabilities[numFormats]; for (int i = 0; i < numFormats; i++) { if (WGL.DescribePixelFormat(hdc, 1 + i, pfd.size(), pfd) == 0) { throw new GLException("Error describing pixel format " + (1 + i) + " of device context"); } availableCaps[i] = pfd2GLCapabilities(pfd); } } // Supply information to chooser pixelFormat = chooser.chooseCapabilities(capabilities, availableCaps, recommendedPixelFormat); if ((pixelFormat < 0) || (pixelFormat >= numFormats)) { throw new GLException("Invalid result " + pixelFormat + " from GLCapabilitiesChooser (should be between 0 and " + (numFormats - 1) + ")"); } if (DEBUG) { System.err.println("Chosen pixel format (" + pixelFormat + "):"); System.err.println(availableCaps[pixelFormat]); } pixelFormat += 1; // one-base the index if (WGL.DescribePixelFormat(hdc, pixelFormat, pfd.size(), pfd) == 0) { throw new GLException("Error re-describing the chosen pixel format"); } } else { // For now, use ChoosePixelFormat for offscreen surfaces until // we figure out how to properly choose an offscreen- // compatible pixel format pfd = glCapabilities2PFD(capabilities, onscreen); pixelFormat = WGL.ChoosePixelFormat(hdc, pfd); } if (!WGL.SetPixelFormat(hdc, pixelFormat, pfd)) { throw new GLException("Unable to set pixel format"); } hglrc = WGL.wglCreateContext(hdc); if (DEBUG) { System.err.println("!!! Created OpenGL context " + hglrc); } if (hglrc == 0) { throw new GLException("Unable to create OpenGL context"); } } | 53985 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53985/556d51486c1692f124304a4b391c7fc05df576af/WindowsGLContext.java/buggy/src/net/java/games/jogl/impl/windows/WindowsGLContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
9876,
9037,
1630,
1876,
1684,
1042,
12,
6494,
603,
9252,
13,
288,
565,
7024,
60,
2247,
7254,
1639,
27689,
293,
8313,
273,
446,
31,
565,
509,
4957,
1630,
273,
374,
31,
565,
309,
261,
265,
9252,
13,
288,
1377,
10252,
14012,
8526,
2319,
24193,
273,
446,
31,
1377,
509,
818,
8976,
273,
374,
31,
1377,
293,
8313,
273,
394,
9037,
1630,
3187,
5621,
1377,
16830,
3654,
2346,
273,
1794,
18,
588,
17558,
1750,
7675,
588,
3654,
5621,
1377,
368,
23278,
279,
14553,
4957,
740,
4421,
364,
326,
10252,
14012,
17324,
18,
1377,
368,
6161,
358,
999,
341,
7043,
24529,
9037,
1630,
20926,
309,
732,
1240,
518,
2319,
1377,
10252,
9609,
11261,
273,
8202,
11261,
29871,
18,
588,
20094,
11261,
1042,
12,
5964,
1769,
1377,
509,
14553,
9037,
1630,
273,
300,
21,
31,
1377,
1250,
1240,
59,
11261,
24529,
9037,
1630,
20926,
273,
629,
31,
1377,
1250,
1240,
59,
11261,
20926,
5049,
291,
1511,
273,
629,
31,
1377,
309,
261,
21050,
11261,
480,
446,
13,
288,
3639,
514,
2319,
59,
11261,
7513,
273,
8202,
11261,
29871,
18,
588,
20094,
11261,
7513,
12,
5964,
1769,
3639,
309,
261,
5699,
59,
11261,
7513,
18,
31806,
2932,
59,
11261,
67,
20926,
67,
11743,
67,
2139,
7923,
1545,
374,
13,
288,
1850,
1240,
59,
11261,
24529,
9037,
1630,
20926,
273,
638,
31,
1850,
309,
261,
5699,
59,
11261,
7513,
18,
31806,
2932,
59,
11261,
67,
20926,
67,
23978,
1511,
7923,
1545,
374,
13,
288,
5411,
1240,
59,
11261,
20926,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
9876,
9037,
1630,
1876,
1684,
1042,
12,
6494,
603,
9252,
13,
288,
565,
7024,
60,
2247,
7254,
1639,
27689,
293,
8313,
273,
446,
31,
565,
509,
4957,
1630,
273,
374,
31,
565,
309,
261,
265,
9252,
13,
288,
1377,
10252,
14012,
8526,
2319,
24193,
273,
446,
31,
1377,
509,
818,
8976,
273,
374,
31,
1377,
293,
8313,
273,
394,
9037,
1630,
3187,
5621,
1377,
16830,
3654,
2346,
273,
1794,
18,
588,
17558,
1750,
7675,
588,
3654,
5621,
1377,
368,
23278,
279,
14553,
4957,
740,
4421,
364,
326,
10252,
14012,
17324,
18,
1377,
368,
6161,
358,
999,
341,
7043,
24529,
9037,
1630,
20926,
309,
732,
1240,
518,
2319,
1377,
10252,
9609,
11261,
273,
8202,
11261,
29871,
18,
2
] |
} | DispatcherUtils.setPortletSupportActive(true); } | public void setUp() throws Exception { super.setUp(); stack = new OgnlValueStack(); mockHttpReq = mock(HttpServletRequest.class); mockHttpRes = mock(HttpServletResponse.class); mockPortletReq = mock(RenderRequest.class); mockPortletRes = mock(RenderResponse.class); mockPageCtx = mock(PageContext.class); mockPortletUrl = mock(PortletURL.class); mockJspWriter = new MockJspWriter(); mockPageCtx.stubs().method("getRequest").will( returnValue((HttpServletRequest) mockHttpReq.proxy())); mockPageCtx.stubs().method("getResponse").will( returnValue((HttpServletResponse) mockHttpRes.proxy())); mockPageCtx.stubs().method("getOut").will(returnValue(mockJspWriter)); mockHttpReq.stubs().method("getScheme").will(returnValue("http")); mockHttpReq.stubs().method("getAttribute").with( eq("webwork.valueStack")).will(returnValue(stack)); mockHttpReq.stubs().method("getAttribute").with( eq("javax.portlet.response")).will( returnValue((PortletResponse) mockPortletRes.proxy())); mockHttpReq.stubs().method("getAttribute").with( eq("javax.portlet.request")).will( returnValue((PortletRequest) mockPortletReq.proxy())); mockPortletReq.stubs().method("getPortletMode").will(returnValue(PortletMode.VIEW)); mockPortletReq.stubs().method("getWindowState").will(returnValue(WindowState.NORMAL)); mockPortletReq.stubs().method("getContextPath").will(returnValue("/contextPath")); tag.setPageContext((PageContext) mockPageCtx.proxy()); Map modeMap = new HashMap(); modeMap.put(PortletMode.VIEW, "/view"); modeMap.put(PortletMode.HELP, "/help"); modeMap.put(PortletMode.EDIT, "/edit"); Map sessionMap = new HashMap(); Map contextMap = new HashMap(); contextMap.put(ActionContext.SESSION, sessionMap); contextMap.put(PortletActionConstants.REQUEST, mockPortletReq.proxy()); contextMap.put(PortletActionConstants.RESPONSE, mockPortletRes.proxy()); contextMap.put(PortletActionConstants.PHASE, PortletActionConstants.RENDER_PHASE); contextMap.put(PortletActionConstants.MODE_NAMESPACE_MAP, modeMap); ActionContext ctx = new ActionContext(contextMap); ctx.setValueStack(stack); ActionContext.setContext(ctx); } | 15560 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15560/fde7965e85baa5d6c6469f134670661d18e45f1b/PortletUrlTagTest.java/buggy/src/test/com/opensymphony/webwork/views/jsp/PortletUrlTagTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
9506,
202,
3772,
273,
394,
531,
1600,
80,
620,
2624,
5621,
9506,
202,
22851,
2940,
6113,
273,
5416,
12,
2940,
18572,
18,
1106,
1769,
202,
202,
22851,
2940,
607,
273,
5416,
12,
2940,
29910,
18,
1106,
1769,
202,
202,
22851,
18566,
6113,
273,
5416,
12,
3420,
691,
18,
1106,
1769,
202,
202,
22851,
18566,
607,
273,
5416,
12,
3420,
1064,
18,
1106,
1769,
202,
202,
22851,
1964,
6442,
273,
5416,
12,
1964,
1042,
18,
1106,
1769,
202,
202,
22851,
18566,
1489,
273,
5416,
12,
18566,
1785,
18,
1106,
1769,
202,
202,
22851,
21796,
2289,
273,
394,
7867,
21796,
2289,
5621,
202,
202,
22851,
1964,
6442,
18,
31960,
7675,
2039,
2932,
588,
691,
20387,
20194,
12,
9506,
202,
2463,
620,
12443,
2940,
18572,
13,
5416,
2940,
6113,
18,
5656,
1435,
10019,
202,
202,
22851,
1964,
6442,
18,
31960,
7675,
2039,
2932,
588,
1064,
20387,
20194,
12,
9506,
202,
2463,
620,
12443,
2940,
29910,
13,
5416,
2940,
607,
18,
5656,
1435,
10019,
202,
202,
22851,
1964,
6442,
18,
31960,
7675,
2039,
2932,
588,
1182,
20387,
20194,
12,
2463,
620,
12,
22851,
21796,
2289,
10019,
9506,
202,
22851,
2940,
6113,
18,
31960,
7675,
2039,
2932,
588,
9321,
20387,
20194,
12,
2463,
620,
2932,
2505,
7923,
1769,
202,
202,
22851,
2940,
6113,
18,
31960,
7675,
2039,
2932,
588,
1499,
20387,
1918,
12,
9506,
202,
11253,
2932,
4875,
1252,
18,
1132,
2624,
7923,
2934,
20194,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
9506,
202,
3772,
273,
394,
531,
1600,
80,
620,
2624,
5621,
9506,
202,
22851,
2940,
6113,
273,
5416,
12,
2940,
18572,
18,
1106,
1769,
202,
202,
22851,
2940,
607,
273,
5416,
12,
2940,
29910,
18,
1106,
1769,
202,
202,
22851,
18566,
6113,
273,
5416,
12,
3420,
691,
18,
1106,
1769,
202,
202,
22851,
18566,
607,
273,
5416,
12,
3420,
1064,
18,
1106,
1769,
202,
202,
22851,
1964,
6442,
273,
5416,
12,
1964,
1042,
18,
1106,
1769,
202,
202,
22851,
18566,
1489,
273,
5416,
12,
18566,
1785,
18,
1106,
1769,
202,
202,
22851,
21796,
2289,
273,
394,
7867,
21796,
2289,
5621,
202,
202,
22851,
2
] |
System.out.println( "dialogState = " + transaction.getDialog().getState()); | System.out.println("dialogState = " + transaction.getDialog().getState()); | public void processTimeout(javax.sip.TimeoutEvent timeoutEvent) { System.out.println("Transaction Time out" ); Request request = null; Transaction transaction = null; if (timeoutEvent.isServerTransaction()) { transaction = timeoutEvent.getServerTransaction(); request = ((ServerTransaction) transaction).getRequest(); } else { transaction = timeoutEvent.getClientTransaction(); request = ((ClientTransaction) transaction).getRequest(); } System.out.println("state = " + transaction.getState()); System.out.println("dialog = " + transaction.getDialog()); System.out.println( "dialogState = " + transaction.getDialog().getState()); System.out.println("Transaction Time out"); System.out.println("Transaction " + transaction); System.out.println("request " + request); } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/Shootist.java/buggy/trunk/src/test/load/concurrency/Shootist.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
2694,
12,
28384,
18,
28477,
18,
2694,
1133,
2021,
1133,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
3342,
2647,
596,
6,
11272,
202,
202,
691,
590,
273,
446,
31,
202,
202,
3342,
2492,
273,
446,
31,
202,
202,
430,
261,
4538,
1133,
18,
291,
2081,
3342,
10756,
288,
1082,
202,
7958,
273,
2021,
1133,
18,
588,
2081,
3342,
5621,
1082,
202,
2293,
273,
14015,
2081,
3342,
13,
2492,
2934,
588,
691,
5621,
202,
202,
97,
469,
288,
1082,
202,
7958,
273,
2021,
1133,
18,
588,
1227,
3342,
5621,
1082,
202,
2293,
273,
14015,
1227,
3342,
13,
2492,
2934,
588,
691,
5621,
202,
202,
97,
202,
202,
3163,
18,
659,
18,
8222,
2932,
2019,
273,
315,
397,
2492,
18,
588,
1119,
10663,
202,
202,
3163,
18,
659,
18,
8222,
2932,
12730,
273,
315,
397,
2492,
18,
588,
6353,
10663,
202,
202,
3163,
18,
659,
18,
8222,
12,
1082,
202,
6,
12730,
1119,
273,
315,
397,
2492,
18,
588,
6353,
7675,
588,
1119,
10663,
202,
202,
3163,
18,
659,
18,
8222,
2932,
3342,
2647,
596,
8863,
202,
202,
3163,
18,
659,
18,
8222,
2932,
3342,
315,
397,
2492,
1769,
202,
202,
3163,
18,
659,
18,
8222,
2932,
2293,
315,
397,
590,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1207,
2694,
12,
28384,
18,
28477,
18,
2694,
1133,
2021,
1133,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
2932,
3342,
2647,
596,
6,
11272,
202,
202,
691,
590,
273,
446,
31,
202,
202,
3342,
2492,
273,
446,
31,
202,
202,
430,
261,
4538,
1133,
18,
291,
2081,
3342,
10756,
288,
1082,
202,
7958,
273,
2021,
1133,
18,
588,
2081,
3342,
5621,
1082,
202,
2293,
273,
14015,
2081,
3342,
13,
2492,
2934,
588,
691,
5621,
202,
202,
97,
469,
288,
1082,
202,
7958,
273,
2021,
1133,
18,
588,
1227,
3342,
5621,
1082,
202,
2293,
273,
14015,
1227,
3342,
13,
2492,
2934,
588,
691,
5621,
202,
202,
97,
202,
202,
3163,
18,
659,
18,
8222,
2
] |
try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } | if ((string = EvalHelper.evalString("styleClass", getStyleClassExpr(), this, pageContext)) != null) setStyleClass(string); | private void evaluateExpressions() throws JspException { try { setAction((String) evalAttr("action", getActionExpr(), String.class)); } catch (NullAttributeException ex) { } try { setEnctype((String) evalAttr("enctype", getEnctypeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setFocus((String) evalAttr("focus", getFocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setFocusIndex((String) evalAttr("focusIndex", getFocusIndexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setMethod((String) evalAttr("method", getMethodExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnreset((String) evalAttr("onreset", getOnresetExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnsubmit((String) evalAttr("onsubmit", getOnsubmitExpr(), String.class)); } catch (NullAttributeException ex) { } try { setScope((String) evalAttr("scope", getScopeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTarget((String) evalAttr("target", getTargetExpr(), String.class)); } catch (NullAttributeException ex) { } try { setType((String) evalAttr("type", getTypeExpr(), String.class)); } catch (NullAttributeException ex) { } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/022bd23c954cf673e53731849d562b3c295473f1/ELFormTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFormTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
22517,
12443,
780,
13,
5302,
3843,
2932,
1128,
3113,
12473,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
664,
12387,
12443,
780,
13,
5302,
3843,
2932,
275,
12387,
3113,
336,
664,
12387,
4742,
9334,
29159,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
31480,
12443,
780,
13,
5302,
3843,
2932,
13923,
3113,
2812,
4560,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
31480,
1016,
12443,
780,
13,
5302,
3843,
2932,
13923,
1016,
3113,
2812,
4560,
1016,
4742,
9334,
4766,
5411,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
19539,
12443,
780,
13,
5302,
3843,
2932,
2039,
3113,
6272,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
22131,
6208,
12443,
780,
13,
5302,
3843,
2932,
265,
6208,
3113,
30070,
6208,
4742,
9334,
29159,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22517,
12443,
780,
13,
5302,
3843,
2932,
1128,
3113,
12473,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
664,
12387,
12443,
780,
13,
5302,
3843,
2932,
275,
12387,
3113,
336,
664,
12387,
4742,
9334,
29159,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
31480,
12443,
780,
13,
5302,
3843,
2932,
13923,
3113,
2812,
4560,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
31480,
1016,
12443,
2
] |
} | } | public void deleteModelElement(MModelElement elem) { Collection supplierDep = elem.getSupplierDependencies(); Collection clientDep = 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) { UmlFactory.getFactory().delete(dep); } } it = elem.getComments().iterator(); while (it.hasNext()) { MComment comment = (MComment)it.next(); if (comment.getAnnotatedElements().size() == 1) UmlFactory.getFactory().delete(comment); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/CoreFactory.java/buggy/src_new/org/argouml/model/uml/foundation/core/CoreFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1430,
1488,
1046,
12,
49,
1488,
1046,
3659,
13,
288,
202,
202,
2532,
17402,
16316,
273,
3659,
18,
588,
13254,
8053,
5621,
202,
202,
2532,
1004,
16316,
273,
3659,
18,
588,
1227,
8053,
5621,
202,
202,
694,
8740,
273,
394,
6847,
5621,
202,
202,
14877,
18,
1289,
1595,
12,
2859,
5742,
16316,
1769,
202,
202,
14877,
18,
1289,
1595,
12,
2625,
16316,
1769,
202,
202,
3198,
518,
273,
8740,
18,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
49,
7787,
5993,
273,
261,
49,
7787,
13,
305,
18,
4285,
5621,
1082,
202,
2532,
7712,
273,
5993,
18,
588,
12300,
5621,
1082,
202,
2532,
1169,
8127,
414,
273,
5993,
18,
588,
3088,
8127,
414,
5621,
1082,
202,
430,
14015,
16931,
18,
1467,
1435,
397,
1169,
8127,
414,
18,
1467,
10756,
422,
576,
13,
288,
9506,
202,
57,
781,
1733,
18,
588,
1733,
7675,
3733,
12,
15037,
1769,
1082,
202,
97,
202,
202,
97,
3639,
518,
273,
3659,
18,
588,
9051,
7675,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
288,
5411,
490,
4469,
2879,
273,
261,
49,
4469,
13,
305,
18,
4285,
5621,
5411,
309,
261,
3469,
18,
588,
17985,
3471,
7675,
1467,
1435,
422,
404,
13,
7734,
587,
781,
1733,
18,
588,
1733,
7675,
3733,
12,
3469,
1769,
3639,
289,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1430,
1488,
1046,
12,
49,
1488,
1046,
3659,
13,
288,
202,
202,
2532,
17402,
16316,
273,
3659,
18,
588,
13254,
8053,
5621,
202,
202,
2532,
1004,
16316,
273,
3659,
18,
588,
1227,
8053,
5621,
202,
202,
694,
8740,
273,
394,
6847,
5621,
202,
202,
14877,
18,
1289,
1595,
12,
2859,
5742,
16316,
1769,
202,
202,
14877,
18,
1289,
1595,
12,
2625,
16316,
1769,
202,
202,
3198,
518,
273,
8740,
18,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
49,
7787,
5993,
273,
261,
49,
7787,
13,
305,
18,
4285,
5621,
1082,
202,
2532,
7712,
273,
5993,
18,
588,
12300,
5621,
1082,
202,
2532,
1169,
8127,
414,
273,
5993,
18,
2
] |
long time = getContext().clock().now() - _state.getWhenStarted(); | protected void fail() { if (isLocal()) { if (_log.shouldLog(Log.ERROR)) _log.error(getJobId() + ": why did we fail if the target is local?: " + _state.getTarget().toBase64(), new Exception("failure cause")); succeed(); return; } if (_log.shouldLog(Log.INFO)) _log.info(getJobId() + ": Failed search for key " + _state.getTarget()); if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": State of failed search: " + _state); if (_keepStats) { long time = getContext().clock().now() - _state.getWhenStarted(); getContext().statManager().addRateData("netDb.failedTime", time, 0); //_facade.fail(_state.getTarget()); } if (_onFailure != null) getContext().jobQueue().addJob(_onFailure); _facade.searchComplete(_state.getTarget()); handleDeferred(false); } | 27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/deb35f4af44e395f5c9fbd2bc85559092d360018/SearchJob.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/SearchJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2321,
1435,
288,
3639,
309,
261,
291,
2042,
10756,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
12,
588,
23378,
1435,
397,
6398,
11598,
5061,
732,
2321,
309,
326,
1018,
353,
1191,
35,
30,
315,
397,
389,
2019,
18,
588,
2326,
7675,
869,
2171,
1105,
9334,
394,
1185,
2932,
12251,
4620,
7923,
1769,
5411,
12897,
5621,
5411,
327,
31,
3639,
289,
10792,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
5411,
389,
1330,
18,
1376,
12,
588,
23378,
1435,
397,
6398,
11175,
1623,
364,
498,
315,
397,
389,
2019,
18,
588,
2326,
10663,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
9394,
3719,
5411,
389,
1330,
18,
4148,
12,
588,
23378,
1435,
397,
6398,
3287,
434,
2535,
1623,
30,
315,
397,
389,
2019,
1769,
7734,
309,
261,
67,
10102,
4195,
13,
288,
15604,
6474,
7675,
5642,
1318,
7675,
1289,
4727,
751,
2932,
2758,
4331,
18,
7307,
950,
3113,
813,
16,
374,
1769,
5411,
368,
67,
507,
5065,
18,
6870,
24899,
2019,
18,
588,
2326,
10663,
3639,
289,
3639,
309,
261,
67,
265,
5247,
480,
446,
13,
5411,
6474,
7675,
4688,
3183,
7675,
1289,
2278,
24899,
265,
5247,
1769,
7734,
389,
507,
5065,
18,
3072,
6322,
24899,
2019,
18,
588,
2326,
10663,
3639,
1640,
16886,
12,
5743,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
918,
2321,
1435,
288,
3639,
309,
261,
291,
2042,
10756,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
12,
588,
23378,
1435,
397,
6398,
11598,
5061,
732,
2321,
309,
326,
1018,
353,
1191,
35,
30,
315,
397,
389,
2019,
18,
588,
2326,
7675,
869,
2171,
1105,
9334,
394,
1185,
2932,
12251,
4620,
7923,
1769,
5411,
12897,
5621,
5411,
327,
31,
3639,
289,
10792,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
5923,
3719,
5411,
389,
1330,
18,
1376,
12,
588,
23378,
1435,
397,
6398,
11175,
1623,
364,
498,
315,
397,
389,
2019,
18,
588,
2326,
10663,
3639,
309,
261,
67,
1330,
18,
13139,
1343,
2
] | |
UserDomainObject synchedUser = imcmsAuthenticatorAndUserMapper.getUser( loginName ); updateRoleAssignments( synchedUser ); return synchedUser; | return imcmsAuthenticatorAndUserMapper.getUser( loginName ); | private UserDomainObject synchExternalUserInImcms( String loginName, UserDomainObject externalUser, boolean imcmsUserExists ) { externalUser.setImcmsExternal( true ); if( imcmsUserExists ) { imcmsAuthenticatorAndUserMapper.updateUser( loginName, externalUser ); } else { imcmsAuthenticatorAndUserMapper.addUser( externalUser ); } UserDomainObject synchedUser = imcmsAuthenticatorAndUserMapper.getUser( loginName ); updateRoleAssignments( synchedUser ); return synchedUser; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ebf0781020199f986e0621851cc0ceaef92969e2/ExternalizedImcmsAuthenticatorAndUserMapper.java/clean/server/src/imcode/server/user/ExternalizedImcmsAuthenticatorAndUserMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2177,
3748,
921,
272,
2515,
6841,
1299,
382,
1170,
6851,
12,
514,
3925,
461,
16,
2177,
3748,
921,
3903,
1299,
16,
1250,
709,
6851,
1299,
4002,
262,
288,
3639,
3903,
1299,
18,
542,
1170,
6851,
6841,
12,
638,
11272,
3639,
309,
12,
709,
6851,
1299,
4002,
262,
288,
5411,
709,
6851,
18977,
1876,
1299,
4597,
18,
2725,
1299,
12,
3925,
461,
16,
3903,
1299,
11272,
3639,
289,
469,
288,
5411,
709,
6851,
18977,
1876,
1299,
4597,
18,
1289,
1299,
12,
3903,
1299,
11272,
3639,
289,
3639,
2177,
3748,
921,
6194,
2049,
1299,
273,
709,
6851,
18977,
1876,
1299,
4597,
18,
588,
1299,
12,
3925,
461,
11272,
3639,
1089,
2996,
18628,
12,
6194,
2049,
1299,
11272,
3639,
327,
6194,
2049,
1299,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
2177,
3748,
921,
272,
2515,
6841,
1299,
382,
1170,
6851,
12,
514,
3925,
461,
16,
2177,
3748,
921,
3903,
1299,
16,
1250,
709,
6851,
1299,
4002,
262,
288,
3639,
3903,
1299,
18,
542,
1170,
6851,
6841,
12,
638,
11272,
3639,
309,
12,
709,
6851,
1299,
4002,
262,
288,
5411,
709,
6851,
18977,
1876,
1299,
4597,
18,
2725,
1299,
12,
3925,
461,
16,
3903,
1299,
11272,
3639,
289,
469,
288,
5411,
709,
6851,
18977,
1876,
1299,
4597,
18,
1289,
1299,
12,
3903,
1299,
11272,
3639,
289,
3639,
2177,
3748,
921,
6194,
2049,
1299,
273,
709,
6851,
18977,
1876,
1299,
4597,
18,
588,
1299,
12,
3925,
461,
11272,
3639,
1089,
2996,
18628,
12,
6194,
2049,
1299,
11272,
3639,
327,
2
] |
}; | } | protected void validateShouldBeSuperTypes(IEJBValidationContext vc, EnterpriseBean bean, JavaClass clazz) throws InvalidInputException { long[] types = getSupertypes(); if (types != null) { for (int i = 0; i < types.length; i++) { JavaHelpers superType = ClassUtility.getUtility().getSupertype(bean, types[i]); if (superType == null) { // no supertype continue; } if (!ValidationRuleUtility.isAssignableFrom(clazz, superType)) { // IWAD4026 = This class must implement javax.ejb.SessionBean. Read section // 7.5.1, 7.10.2 of the EJB 2.0 specification. // IWAD4379 = This class must implement javax.ejb.MessageDrivenBean. Read // section 15.4.1, 15.7.2 of the EJB 2.0 specification. // IWAD4380 = This class must implement javax.jms.MessageListener. Read section // 15.4.1, 15.7.2 of the EJB 2.0 specification. // IWAD4170 = This class must implement java.ejb.EntityBean. Read section 10.6.2 // of the EJB 2.0 specification. // IWAD4286 = This class must implement java.ejb.EntityBean. Read section 12.2.2 // of the EJB 2.0 specification. IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb20Constants.CHKJ2017, IEJBValidationContext.ERROR, bean, clazz, new String[]{superType.getJavaName()}, this); vc.addMessage(message); }; } } } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/18a2a3b489fef7cefb688b690beaeaf64c4480fd/ATypeVRule.java/clean/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/ATypeVRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1954,
14309,
1919,
8051,
2016,
12,
8732,
8877,
4354,
1042,
12802,
16,
26919,
3381,
3931,
16,
29491,
4003,
13,
1216,
31989,
288,
202,
202,
5748,
8526,
1953,
273,
10755,
1051,
989,
5621,
202,
202,
430,
261,
2352,
480,
446,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
9506,
202,
5852,
13375,
26701,
273,
1659,
6497,
18,
588,
6497,
7675,
588,
8051,
723,
12,
14496,
16,
1953,
63,
77,
19226,
9506,
202,
430,
261,
9565,
559,
422,
446,
13,
288,
6862,
202,
759,
1158,
2240,
723,
6862,
202,
17143,
31,
9506,
202,
97,
9506,
202,
430,
16051,
4354,
2175,
6497,
18,
291,
7961,
1265,
12,
830,
3638,
16,
26701,
3719,
288,
6862,
202,
759,
467,
59,
1880,
24,
3103,
26,
273,
1220,
667,
1297,
2348,
6863,
18,
73,
10649,
18,
2157,
3381,
18,
2720,
2442,
6862,
202,
759,
2371,
18,
25,
18,
21,
16,
2371,
18,
2163,
18,
22,
434,
326,
12157,
576,
18,
20,
7490,
18,
6862,
202,
759,
467,
59,
1880,
24,
6418,
29,
273,
1220,
667,
1297,
2348,
6863,
18,
73,
10649,
18,
1079,
8956,
837,
3381,
18,
2720,
6862,
202,
759,
2442,
4711,
18,
24,
18,
21,
16,
4711,
18,
27,
18,
22,
434,
326,
12157,
576,
18,
20,
7490,
18,
6862,
202,
759,
467,
59,
1880,
8942,
3672,
273,
1220,
667,
1297,
2348,
6863,
18,
78,
959,
18,
1079,
2223,
18,
2720,
2442,
6862,
202,
759,
4711,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
14309,
1919,
8051,
2016,
12,
8732,
8877,
4354,
1042,
12802,
16,
26919,
3381,
3931,
16,
29491,
4003,
13,
1216,
31989,
288,
202,
202,
5748,
8526,
1953,
273,
10755,
1051,
989,
5621,
202,
202,
430,
261,
2352,
480,
446,
13,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1953,
18,
2469,
31,
277,
27245,
288,
9506,
202,
5852,
13375,
26701,
273,
1659,
6497,
18,
588,
6497,
7675,
588,
8051,
723,
12,
14496,
16,
1953,
63,
77,
19226,
9506,
202,
430,
261,
9565,
559,
422,
446,
13,
288,
6862,
202,
759,
1158,
2240,
723,
6862,
202,
17143,
31,
9506,
202,
97,
9506,
202,
430,
16051,
4354,
2175,
6497,
18,
291,
7961,
1265,
2
] |
long seed = NutchConf.get().getLong("test.ndfs.random.seed", 0xB437EF); | long seed = nutchConf.getLong("test.ndfs.random.seed", 0xB437EF); | private Random makeRandomDataGenerator() { long seed = NutchConf.get().getLong("test.ndfs.random.seed", 0xB437EF); try { if (randomDataGeneratorCtor == null) { // lazy init String rndDataGenClassname = NutchConf.get().get("nutch.random.class", "java.util.Random"); Class clazz = Class.forName(rndDataGenClassname); randomDataGeneratorCtor = clazz.getConstructor(new Class[]{Long.TYPE}); } if (randomDataGeneratorCtor != null) { Object arg[] = {new Long(seed)}; return (Random) randomDataGeneratorCtor.newInstance(arg); } } catch (ClassNotFoundException absorb) { } catch (NoSuchMethodException absorb) { } catch (SecurityException absorb) { } catch (InstantiationException absorb) { } catch (IllegalAccessException absorb) { } catch (IllegalArgumentException absorb) { } catch (InvocationTargetException absorb) { } // last resort return new java.util.Random(seed); } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/TestNDFS.java/clean/src/test/org/apache/nutch/ndfs/TestNDFS.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
8072,
1221,
8529,
751,
3908,
1435,
288,
565,
1525,
5009,
273,
290,
322,
343,
3976,
18,
588,
3708,
2932,
3813,
18,
82,
12381,
18,
9188,
18,
12407,
3113,
374,
20029,
24,
6418,
26897,
1769,
565,
775,
288,
1377,
309,
261,
9188,
751,
3908,
27425,
422,
446,
13,
288,
3639,
368,
7962,
1208,
3639,
514,
20391,
751,
7642,
20531,
273,
5411,
423,
322,
343,
3976,
18,
588,
7675,
588,
2932,
82,
322,
343,
18,
9188,
18,
1106,
3113,
315,
6290,
18,
1367,
18,
8529,
8863,
3639,
1659,
4003,
273,
1659,
18,
1884,
461,
12,
86,
4880,
751,
7642,
20531,
1769,
3639,
2744,
751,
3908,
27425,
273,
4003,
18,
588,
6293,
12,
2704,
1659,
63,
7073,
3708,
18,
2399,
22938,
1377,
289,
1377,
309,
261,
9188,
751,
3908,
27425,
480,
446,
13,
288,
3639,
1033,
1501,
8526,
273,
288,
2704,
3407,
12,
12407,
16869,
31,
3639,
327,
261,
8529,
13,
2744,
751,
3908,
27425,
18,
2704,
1442,
12,
3175,
1769,
1377,
289,
565,
289,
1044,
261,
797,
3990,
2417,
16640,
13,
288,
565,
289,
1044,
261,
28341,
14513,
2417,
16640,
13,
288,
565,
289,
1044,
261,
24918,
2417,
16640,
13,
288,
565,
289,
1044,
261,
10675,
7072,
503,
2417,
16640,
13,
288,
565,
289,
1044,
261,
12195,
9773,
2417,
16640,
13,
288,
565,
289,
1044,
261,
31237,
2417,
16640,
13,
288,
565,
289,
1044,
261,
9267,
14950,
2417,
16640,
13,
288,
565,
289,
565,
368,
1142,
400,
499,
565,
327,
394,
2252,
18,
1367,
18,
8529,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8072,
1221,
8529,
751,
3908,
1435,
288,
565,
1525,
5009,
273,
290,
322,
343,
3976,
18,
588,
3708,
2932,
3813,
18,
82,
12381,
18,
9188,
18,
12407,
3113,
374,
20029,
24,
6418,
26897,
1769,
565,
775,
288,
1377,
309,
261,
9188,
751,
3908,
27425,
422,
446,
13,
288,
3639,
368,
7962,
1208,
3639,
514,
20391,
751,
7642,
20531,
273,
5411,
423,
322,
343,
3976,
18,
588,
7675,
588,
2932,
82,
322,
343,
18,
9188,
18,
1106,
3113,
315,
6290,
18,
1367,
18,
8529,
8863,
3639,
1659,
4003,
273,
1659,
18,
1884,
461,
12,
86,
4880,
751,
7642,
20531,
1769,
3639,
2744,
751,
3908,
27425,
273,
4003,
18,
588,
6293,
12,
2704,
1659,
63,
7073,
3708,
18,
2399,
2
] |
if (jj_scan_token(CASE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_90()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(COLON)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_105()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | if (jj_scan_token(LSQUAREBRACKET)) return true; Token xsp; xsp = jj_scanpos; if (jj_3_64()) jj_scanpos = xsp; if (jj_scan_token(RSQUAREBRACKET)) return true; return false; } | static final private boolean jj_3R_231() { if (jj_scan_token(CASE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_90()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(COLON)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_105()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/23e69d576250f417c265d779703b8da08a67aaed/CPPParser.java/clean/pmd/src/net/sourceforge/pmd/cpd/cppast/CPPParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
4366,
21,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
13415,
3719,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
3639,
309,
261,
78,
78,
67,
23,
54,
67,
9349,
10756,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4935,
673,
3719,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
3639,
309,
261,
78,
78,
67,
23,
54,
67,
21661,
10756,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
727,
3238,
1250,
10684,
67,
23,
54,
67,
4366,
21,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
13415,
3719,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
3639,
309,
261,
78,
78,
67,
23,
54,
67,
9349,
10756,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4935,
673,
3719,
327,
638,
31,
3639,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
2
] |
setIcon( "icons/openresult.gif" ); | setImageDescriptor(BugzillaImages.OPEN); | public ViewFavoriteAction( FavoritesView resultsView ) { setToolTipText( "View selected favorites" ); setText( "View selected" ); setIcon( "icons/openresult.gif" ); view = resultsView; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3cbd07c68a8de292d04e74d8df611e51b9eb5935/ViewFavoriteAction.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/favorites/actions/ViewFavoriteAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4441,
31745,
1137,
1803,
12,
478,
9444,
2997,
1767,
1686,
1767,
262,
225,
202,
95,
202,
202,
542,
29250,
1528,
12,
315,
1767,
3170,
18552,
2997,
6,
11272,
202,
202,
542,
1528,
12,
315,
1767,
3170,
6,
11272,
202,
202,
542,
5554,
12,
315,
14516,
19,
3190,
2088,
18,
13905,
6,
11272,
202,
202,
1945,
273,
1686,
1767,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4441,
31745,
1137,
1803,
12,
478,
9444,
2997,
1767,
1686,
1767,
262,
225,
202,
95,
202,
202,
542,
29250,
1528,
12,
315,
1767,
3170,
18552,
2997,
6,
11272,
202,
202,
542,
1528,
12,
315,
1767,
3170,
6,
11272,
202,
202,
542,
5554,
12,
315,
14516,
19,
3190,
2088,
18,
13905,
6,
11272,
202,
202,
1945,
273,
1686,
1767,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print ("TitleAction.start not implemented"); | public void start(HTML.Tag t, MutableAttributeSet a) throws NotImplementedException { // FIXME: Implement. print ("TitleAction.start not implemented"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a3e083d3100ebabbd539297b5cb2118701b9674e/HTMLDocument.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
787,
12,
4870,
18,
1805,
268,
16,
10960,
1499,
694,
279,
13,
3639,
1216,
10051,
503,
1377,
288,
3639,
368,
9852,
30,
10886,
18,
2398,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
787,
12,
4870,
18,
1805,
268,
16,
10960,
1499,
694,
279,
13,
3639,
1216,
10051,
503,
1377,
288,
3639,
368,
9852,
30,
10886,
18,
2398,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
if (parent instanceof TaskCategory) { if (((AbstractTaskContainer) parent) instanceof TaskArchive) { for (ITask task : ((AbstractTaskContainer) parent).getChildren()) { if (contentTaskFilter.shouldAlwaysShow(task)) { ITask t = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask( task.getHandleIdentifier()); if (t == null) children.add(task); } } return children; | if (parent instanceof AbstractTaskContainer && ((AbstractTaskContainer)parent).isLocal()) { if (filter(parent)) { if (((AbstractTaskContainer)parent) instanceof TaskArchive) { for (ITask task : ((AbstractTaskContainer) parent).getChildren()) { if (contentTaskFilter.shouldAlwaysShow(task)) { Set<AbstractQueryHit> existingHits = MylarTaskListPlugin.getTaskListManager().getTaskList().getQueryHitsForHandle(task.getHandleIdentifier()); if (existingHits.isEmpty()) { children.add(task); } } } return children; } | private List<Object> getFilteredChildrenFor(Object parent) { if (containsNoFilterText(((Text) this.view.getFilteredTree().getFilterControl()).getText()) || ((Text) this.view.getFilteredTree().getFilterControl()).getText().startsWith(TaskListView.FILTER_LABEL)) { List<Object> children = new ArrayList<Object>(); if (parent instanceof TaskCategory) { if (((AbstractTaskContainer) parent) instanceof TaskArchive) { for (ITask task : ((AbstractTaskContainer) parent).getChildren()) { if (contentTaskFilter.shouldAlwaysShow(task)) { // TODO: archive logic? ITask t = MylarTaskListPlugin.getTaskListManager().getTaskList().getTask( task.getHandleIdentifier()); if (t == null) children.add(task); } } return children; } Set<? extends ITaskListElement> list = ((AbstractTaskContainer) parent).getChildren(); for (ITaskListElement element : list) { if (!filter(element)) { children.add(element); } } return children; } else if (parent instanceof AbstractRepositoryQuery) { Set<? extends ITaskListElement> list = ((AbstractRepositoryQuery) parent).getHits(); for (ITaskListElement element : list) { if (!filter(element)) { children.add(element); } } return children; } else if (parent instanceof Task) { Set<ITask> subTasks = ((Task) parent).getChildren(); for (ITask t : subTasks) { if (!filter(t)) { children.add(t); } } return children; } } else { List<Object> children = new ArrayList<Object>(); if (parent instanceof TaskCategory) { children.addAll(((AbstractTaskContainer) parent).getChildren()); return children; } else if (parent instanceof AbstractRepositoryQuery) { children.addAll(((AbstractRepositoryQuery) parent).getHits()); return children; } else if (parent instanceof Task) { children.addAll(((Task) parent).getChildren()); return children; } } return new ArrayList<Object>(); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/ec1926cc166d844360fb1244a93d2bb872f645ee/TaskListContentProvider.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
32,
921,
34,
12267,
329,
4212,
1290,
12,
921,
982,
13,
288,
202,
202,
430,
261,
12298,
2279,
1586,
1528,
12443,
12,
1528,
13,
333,
18,
1945,
18,
588,
14478,
2471,
7675,
588,
1586,
3367,
1435,
2934,
588,
1528,
10756,
9506,
202,
20081,
14015,
1528,
13,
333,
18,
1945,
18,
588,
14478,
2471,
7675,
588,
1586,
3367,
1435,
2934,
588,
1528,
7675,
17514,
1190,
12,
2174,
682,
1767,
18,
11126,
67,
13545,
3719,
288,
1082,
202,
682,
32,
921,
34,
2325,
273,
394,
2407,
32,
921,
34,
5621,
1082,
202,
430,
261,
2938,
1276,
3837,
4457,
13,
288,
4697,
202,
430,
261,
12443,
7469,
2174,
2170,
13,
982,
13,
1276,
3837,
7465,
13,
288,
6862,
202,
1884,
261,
1285,
835,
1562,
294,
14015,
7469,
2174,
2170,
13,
982,
2934,
588,
4212,
10756,
288,
25083,
202,
430,
261,
1745,
2174,
1586,
18,
13139,
18806,
5706,
12,
4146,
3719,
288,
6862,
1082,
202,
759,
2660,
30,
5052,
4058,
35,
6862,
1082,
202,
1285,
835,
268,
273,
8005,
7901,
2174,
682,
3773,
18,
588,
2174,
682,
1318,
7675,
588,
2174,
682,
7675,
588,
2174,
12,
6862,
6862,
202,
4146,
18,
588,
3259,
3004,
10663,
6862,
1082,
202,
430,
261,
88,
422,
446,
13,
6862,
9506,
202,
5906,
18,
1289,
12,
4146,
1769,
25083,
202,
97,
6862,
202,
97,
4405,
202,
2463,
2325,
31,
9506,
202,
97,
9506,
202,
694,
12880,
3231,
467,
2174,
682,
1046,
34,
666,
273,
14015,
7469,
2174,
2170,
13,
982,
2934,
588,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
32,
921,
34,
12267,
329,
4212,
1290,
12,
921,
982,
13,
288,
202,
202,
430,
261,
12298,
2279,
1586,
1528,
12443,
12,
1528,
13,
333,
18,
1945,
18,
588,
14478,
2471,
7675,
588,
1586,
3367,
1435,
2934,
588,
1528,
10756,
9506,
202,
20081,
14015,
1528,
13,
333,
18,
1945,
18,
588,
14478,
2471,
7675,
588,
1586,
3367,
1435,
2934,
588,
1528,
7675,
17514,
1190,
12,
2174,
682,
1767,
18,
11126,
67,
13545,
3719,
288,
1082,
202,
682,
32,
921,
34,
2325,
273,
394,
2407,
32,
921,
34,
5621,
1082,
202,
430,
261,
2938,
1276,
3837,
4457,
13,
288,
4697,
202,
430,
261,
12443,
7469,
2174,
2170,
13,
982,
13,
1276,
3837,
7465,
13,
288,
6862,
2
] |
if (status != null) { return BugReport.isResolvedStatus(status); } else { return false; | if (status != null && (status.startsWith("RESO") || status.startsWith("CLO") || status.startsWith("VERI") || status.startsWith("FIXED"))) { return true; | public boolean isCompleted() { if (status != null) { return BugReport.isResolvedStatus(status); } else { return false; }// if (status != null && (status.startsWith("RESO") || status.startsWith("CLO") || status.startsWith("VERI"))) {// return true;// }// return false; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/33361abca5c5ffa2e54d09968988f7e3031a8e10/BugzillaHit.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/tasklist/BugzillaHit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
9556,
1435,
288,
202,
202,
430,
261,
2327,
480,
446,
13,
288,
1082,
202,
2463,
16907,
4820,
18,
291,
12793,
1482,
12,
2327,
1769,
202,
202,
97,
469,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
759,
202,
202,
430,
261,
2327,
480,
446,
597,
261,
2327,
18,
17514,
1190,
2932,
862,
3584,
7923,
747,
1267,
18,
17514,
1190,
2932,
22693,
7923,
747,
1267,
18,
17514,
1190,
2932,
2204,
45,
6,
20349,
288,
759,
1082,
202,
2463,
638,
31,
759,
202,
202,
97,
759,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
9556,
1435,
288,
202,
202,
430,
261,
2327,
480,
446,
13,
288,
1082,
202,
2463,
16907,
4820,
18,
291,
12793,
1482,
12,
2327,
1769,
202,
202,
97,
469,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
759,
202,
202,
430,
261,
2327,
480,
446,
597,
261,
2327,
18,
17514,
1190,
2932,
862,
3584,
7923,
747,
1267,
18,
17514,
1190,
2932,
22693,
7923,
747,
1267,
18,
17514,
1190,
2932,
2204,
45,
6,
20349,
288,
759,
1082,
202,
2463,
638,
31,
759,
202,
202,
97,
759,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!setEventData(event, iDataObject, grfKeyState, pt_x, pt_y, pdwEffect)) { | if (!setEventData(event, iDataObject.getAddress(), grfKeyState, pt_x, pt_y, pdwEffect)) { | private int DragOver(int grfKeyState, int pt_x, int pt_y, int pdwEffect) { int oldKeyOperation = keyOperation; DNDEvent event = new DNDEvent(); if (!setEventData(event, iDataObject, grfKeyState, pt_x, pt_y, pdwEffect)) { keyOperation = -1; OS.MoveMemory(pdwEffect, new int[] {COM.DROPEFFECT_NONE}, 4); return COM.S_OK; } int allowedOperations = event.operations; TransferData[] allowedDataTypes = new TransferData[event.dataTypes.length]; System.arraycopy(event.dataTypes, 0, allowedDataTypes, 0, allowedDataTypes.length); if (keyOperation == oldKeyOperation) { event.type = DND.DragOver; event.dataType = selectedDataType; event.detail = selectedOperation; } else { event.type = DND.DragOperationChanged; event.dataType = selectedDataType; } notifyListeners(event.type, event); if (event.detail == DND.DROP_DEFAULT) { event.detail = (allowedOperations & DND.DROP_MOVE) != 0 ? DND.DROP_MOVE : DND.DROP_NONE; } selectedDataType = null; for (int i = 0; i < allowedDataTypes.length; i++) { if (TransferData.sameType(allowedDataTypes[i], event.dataType)){ selectedDataType = allowedDataTypes[i]; break; } } selectedOperation = DND.DROP_NONE; if (selectedDataType != null && ((allowedOperations & event.detail) == event.detail)) { selectedOperation = event.detail; } effect.show(event.feedback, event.x, event.y); OS.MoveMemory(pdwEffect, new int[] {opToOs(selectedOperation)}, 4); return COM.S_OK;} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/2f96d82c8934e8d30853354664b25afd9de34e3b/DropTarget.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
509,
28425,
4851,
12,
474,
3821,
74,
653,
1119,
16,
509,
5818,
67,
92,
16,
202,
474,
5818,
67,
93,
16,
509,
4863,
91,
12477,
13,
288,
202,
474,
1592,
653,
2988,
273,
498,
2988,
31,
202,
202,
40,
2908,
1133,
871,
273,
394,
463,
2908,
1133,
5621,
202,
430,
16051,
542,
21299,
12,
2575,
16,
277,
21881,
16,
3821,
74,
653,
1119,
16,
5818,
67,
92,
16,
5818,
67,
93,
16,
4863,
91,
12477,
3719,
288,
202,
202,
856,
2988,
273,
300,
21,
31,
202,
202,
4618,
18,
7607,
6031,
12,
22353,
91,
12477,
16,
394,
509,
8526,
288,
4208,
18,
40,
1457,
1423,
2246,
4239,
67,
9826,
5779,
1059,
1769,
202,
202,
2463,
5423,
18,
55,
67,
3141,
31,
202,
97,
202,
202,
474,
2935,
9343,
273,
871,
18,
17542,
31,
202,
5912,
751,
8526,
2935,
751,
2016,
273,
394,
12279,
751,
63,
2575,
18,
892,
2016,
18,
2469,
15533,
202,
3163,
18,
1126,
3530,
12,
2575,
18,
892,
2016,
16,
374,
16,
2935,
751,
2016,
16,
374,
16,
2935,
751,
2016,
18,
2469,
1769,
202,
430,
261,
856,
2988,
422,
1592,
653,
2988,
13,
288,
202,
202,
2575,
18,
723,
273,
463,
2908,
18,
11728,
4851,
31,
202,
202,
2575,
18,
892,
559,
273,
3170,
6273,
31,
202,
202,
2575,
18,
8992,
273,
3170,
2988,
31,
202,
97,
469,
288,
202,
202,
2575,
18,
723,
273,
463,
2908,
18,
11728,
2988,
5033,
31,
202,
202,
2575,
18,
892,
559,
273,
3170,
6273,
31,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
509,
28425,
4851,
12,
474,
3821,
74,
653,
1119,
16,
509,
5818,
67,
92,
16,
202,
474,
5818,
67,
93,
16,
509,
4863,
91,
12477,
13,
288,
202,
474,
1592,
653,
2988,
273,
498,
2988,
31,
202,
202,
40,
2908,
1133,
871,
273,
394,
463,
2908,
1133,
5621,
202,
430,
16051,
542,
21299,
12,
2575,
16,
277,
21881,
16,
3821,
74,
653,
1119,
16,
5818,
67,
92,
16,
5818,
67,
93,
16,
4863,
91,
12477,
3719,
288,
202,
202,
856,
2988,
273,
300,
21,
31,
202,
202,
4618,
18,
7607,
6031,
12,
22353,
91,
12477,
16,
394,
509,
8526,
288,
4208,
18,
40,
1457,
1423,
2246,
4239,
67,
9826,
5779,
1059,
1769,
202,
202,
2463,
5423,
18,
55,
2
] |
VetoableChangeListener[] listeners = getVetoableChangeListeners(); PropertyChangeEvent evt = new PropertyChangeEvent(this, propertyName, oldValue, newValue); for (int i = 0; i < listeners.length; i++) listeners[i].vetoableChange(evt); | protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue) throws PropertyVetoException { // Support for reporting constrained property changes. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
776,
11453,
429,
15744,
8526,
4679,
273,
11031,
11453,
429,
3043,
5583,
5621,
225,
4276,
20930,
6324,
273,
394,
4276,
20930,
12,
2211,
16,
5470,
16,
11144,
16,
6129,
1769,
225,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
4679,
63,
77,
8009,
90,
11453,
429,
3043,
12,
73,
11734,
1769,
776,
11453,
429,
15744,
8526,
4679,
273,
11031,
11453,
429,
3043,
5583,
5621,
225,
4276,
20930,
6324,
273,
394,
4276,
20930,
12,
2211,
16,
5470,
16,
11144,
16,
6129,
1769,
225,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
4679,
63,
77,
8009,
90,
11453,
429,
3043,
12,
73,
11734,
1769,
4750,
58,
11453,
429,
15744,
8526,
4679,
273,
11031,
11453,
429,
3043,
5583,
5621,
225,
4276,
20930,
6324,
273,
394,
4276,
20930,
12,
2211,
16,
5470,
16,
11144,
16,
6129,
1769,
225,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
4679,
63,
77,
8009,
90,
11453,
429,
3043,
12,
73,
11734,
1769,
918,
58,
11453,
429,
15744,
8526,
4679,
273,
11031,
11453,
429,
3043,
5583,
5621,
225,
4276,
20930,
6324,
273,
394,
4276,
20930,
12,
2211,
16,
5470,
16,
11144,
16,
6129,
1769,
225,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
4679,
63,
77,
8009,
90,
11453,
429,
3043,
12,
73,
11734,
1769,
4452,
58,
11453,
429,
3043,
12,
780,
58,
11453,
429,
15744,
8526,
4679,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
776,
11453,
429,
15744,
8526,
4679,
273,
11031,
11453,
429,
3043,
5583,
5621,
225,
4276,
20930,
6324,
273,
394,
4276,
20930,
12,
2211,
16,
5470,
16,
11144,
16,
6129,
1769,
225,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
4679,
63,
77,
8009,
90,
11453,
429,
3043,
12,
73,
11734,
1769,
776,
11453,
429,
15744,
8526,
4679,
273,
11031,
11453,
429,
3043,
5583,
5621,
225,
4276,
20930,
6324,
273,
394,
4276,
20930,
12,
2211,
16,
5470,
16,
11144,
16,
6129,
1769,
225,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
4679,
63,
77,
8009,
90,
11453,
429,
3043,
12,
73,
11734,
1769,
4750,
58,
11453,
2
] | |
page); | page, page.getClientComposite()); | public EditorAreaHelper(WorkbenchPage page) { this.editorArea = new EditorSashContainer(IPageLayout.ID_EDITOR_AREA, page); this.editorArea.createControl(page.getClientComposite()); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0f9e79f0648392aa2d0092033ea11a0726dd9e8d/EditorAreaHelper.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorAreaHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
18451,
5484,
2276,
12,
2421,
22144,
1964,
1363,
13,
288,
3639,
333,
18,
9177,
5484,
273,
394,
18451,
55,
961,
2170,
12,
45,
1964,
3744,
18,
734,
67,
13208,
67,
20933,
16,
7734,
1363,
16,
1363,
18,
588,
1227,
9400,
10663,
3639,
333,
18,
9177,
5484,
18,
2640,
3367,
12,
2433,
18,
588,
1227,
9400,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18451,
5484,
2276,
12,
2421,
22144,
1964,
1363,
13,
288,
3639,
333,
18,
9177,
5484,
273,
394,
18451,
55,
961,
2170,
12,
45,
1964,
3744,
18,
734,
67,
13208,
67,
20933,
16,
7734,
1363,
16,
1363,
18,
588,
1227,
9400,
10663,
3639,
333,
18,
9177,
5484,
18,
2640,
3367,
12,
2433,
18,
588,
1227,
9400,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (master == null) master = getPrevSibling(); | public Language getLanguage() { PsiElement master = getNextSibling(); if (master == null) master = getPrevSibling(); if (master == null) master = getParent(); return master.getLanguage(); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/e935b1d9850de803fd179b588fb9a2adc32894f8/PsiWhiteSpaceImpl.java/buggy/source/com/intellij/psi/impl/source/tree/PsiWhiteSpaceImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9889,
12898,
1435,
288,
565,
453,
7722,
1046,
4171,
273,
6927,
10291,
5621,
4202,
309,
261,
7525,
422,
446,
13,
4171,
273,
5089,
5621,
565,
327,
4171,
18,
588,
3779,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9889,
12898,
1435,
288,
565,
453,
7722,
1046,
4171,
273,
6927,
10291,
5621,
4202,
309,
261,
7525,
422,
446,
13,
4171,
273,
5089,
5621,
565,
327,
4171,
18,
588,
3779,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
bugReporter.reportBug(warning); | bugReporter.reportBug(qw.warning); } if (COUNT_POP_BRANCH_TARGETS) { for (Iterator<Integer> i = popList.iterator(); i.hasNext();) { int pc = i.next().intValue(); if (branchTargetSet.get(pc)) ++popIsBranchTarget; } | public void visitCode(Code code) { // Prescreen to find methods with POP or POP2 instructions, // and at least one method invocation BitSet bytecodeSet = classContext.getBytecodeSet(method); if (!(bytecodeSet.get(Constants.POP) || bytecodeSet.get(Constants.POP2))) return; if (!(bytecodeSet.get(Constants.INVOKEINTERFACE) || bytecodeSet.get(Constants.INVOKESPECIAL) || bytecodeSet.get(Constants.INVOKESTATIC) || bytecodeSet.get(Constants.INVOKEVIRTUAL))) return; if (DEBUG) System.out.println("Visiting " + method); reset(); super.visitCode(code); if (DEBUG)System.out.println( "After visit: " + queuedWarningList.size() + " queued warnings"); for (Iterator<BugInstance> i = queuedWarningList.iterator(); i.hasNext();) { BugInstance warning = i.next(); // TODO: could check to ensure that the POP instruction // was not a branch target. (That should really never // happen, though, so maybe it's not important.) bugReporter.reportBug(warning); } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/d02e84cd21a34b1e0475c1f4ffe1ad6410b9c095/MethodReturnCheck.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/MethodReturnCheck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1085,
12,
1085,
981,
13,
288,
202,
202,
759,
18346,
8780,
358,
1104,
2590,
598,
26839,
578,
26839,
22,
12509,
16,
202,
202,
759,
471,
622,
4520,
1245,
707,
9495,
202,
202,
5775,
694,
22801,
694,
273,
667,
1042,
18,
588,
858,
16651,
694,
12,
2039,
1769,
202,
202,
430,
16051,
12,
1637,
16651,
694,
18,
588,
12,
2918,
18,
30374,
13,
747,
22801,
694,
18,
588,
12,
2918,
18,
30374,
22,
20349,
1082,
202,
2463,
31,
202,
202,
430,
16051,
12,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
41,
18865,
13,
747,
9506,
202,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
3991,
10106,
6365,
13,
747,
9506,
202,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
11027,
11781,
13,
747,
9506,
202,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
41,
26854,
20349,
1082,
202,
2463,
31,
202,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
10432,
310,
315,
397,
707,
1769,
202,
202,
6208,
5621,
202,
202,
9565,
18,
11658,
1085,
12,
710,
1769,
202,
202,
430,
261,
9394,
13,
3163,
18,
659,
18,
8222,
12,
9506,
202,
6,
4436,
3757,
30,
315,
397,
9506,
202,
19499,
6210,
682,
18,
1467,
1435,
397,
315,
12234,
5599,
8863,
202,
202,
1884,
261,
3198,
32,
19865,
1442,
34,
277,
273,
12234,
6210,
682,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
19865,
1442,
3436,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1085,
12,
1085,
981,
13,
288,
202,
202,
759,
18346,
8780,
358,
1104,
2590,
598,
26839,
578,
26839,
22,
12509,
16,
202,
202,
759,
471,
622,
4520,
1245,
707,
9495,
202,
202,
5775,
694,
22801,
694,
273,
667,
1042,
18,
588,
858,
16651,
694,
12,
2039,
1769,
202,
202,
430,
16051,
12,
1637,
16651,
694,
18,
588,
12,
2918,
18,
30374,
13,
747,
22801,
694,
18,
588,
12,
2918,
18,
30374,
22,
20349,
1082,
202,
2463,
31,
202,
202,
430,
16051,
12,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
41,
18865,
13,
747,
9506,
202,
1637,
16651,
694,
18,
588,
12,
2918,
18,
706,
17691,
3991,
10106,
6365,
13,
747,
9506,
2
] |
backtrace.append(RubyString.newString(backtrace.getRuntime(), sb.toString())); | backtrace.append(backtrace.getRuntime().newString(sb.toString())); | private static void addBackTraceElement(RubyArray backtrace, Frame frame, Frame previousFrame) { StringBuffer sb = new StringBuffer(100); SourcePosition position = frame.getPosition(); sb.append(position.getFile()).append(':').append(position.getLine()); if (previousFrame != null && previousFrame.getLastFunc() != null) { sb.append(":in `").append(previousFrame.getLastFunc()).append('\''); } else if (previousFrame == null && frame.getLastFunc() != null) { sb.append(":in `").append(frame.getLastFunc()).append('\''); } backtrace.append(RubyString.newString(backtrace.getRuntime(), sb.toString())); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RaiseException.java/clean/src/org/jruby/exceptions/RaiseException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
527,
2711,
3448,
1046,
12,
54,
10340,
1076,
13902,
16,
8058,
2623,
16,
8058,
2416,
3219,
13,
288,
3639,
6674,
2393,
273,
394,
6674,
12,
6625,
1769,
3639,
4998,
2555,
1754,
273,
2623,
18,
588,
2555,
5621,
3639,
2393,
18,
6923,
12,
3276,
18,
29925,
1435,
2934,
6923,
2668,
2497,
2934,
6923,
12,
3276,
18,
588,
1670,
10663,
3639,
309,
261,
11515,
3219,
480,
446,
597,
2416,
3219,
18,
588,
3024,
2622,
1435,
480,
446,
13,
288,
5411,
2393,
18,
6923,
2932,
30,
267,
1375,
20387,
6923,
12,
11515,
3219,
18,
588,
3024,
2622,
1435,
2934,
6923,
2668,
3730,
8284,
3639,
289,
469,
309,
261,
11515,
3219,
422,
446,
597,
2623,
18,
588,
3024,
2622,
1435,
480,
446,
13,
288,
5411,
2393,
18,
6923,
2932,
30,
267,
1375,
20387,
6923,
12,
3789,
18,
588,
3024,
2622,
1435,
2934,
6923,
2668,
3730,
8284,
3639,
289,
3639,
13902,
18,
6923,
12,
54,
10340,
780,
18,
2704,
780,
12,
18728,
18,
588,
5576,
9334,
2393,
18,
10492,
1435,
10019,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
527,
2711,
3448,
1046,
12,
54,
10340,
1076,
13902,
16,
8058,
2623,
16,
8058,
2416,
3219,
13,
288,
3639,
6674,
2393,
273,
394,
6674,
12,
6625,
1769,
3639,
4998,
2555,
1754,
273,
2623,
18,
588,
2555,
5621,
3639,
2393,
18,
6923,
12,
3276,
18,
29925,
1435,
2934,
6923,
2668,
2497,
2934,
6923,
12,
3276,
18,
588,
1670,
10663,
3639,
309,
261,
11515,
3219,
480,
446,
597,
2416,
3219,
18,
588,
3024,
2622,
1435,
480,
446,
13,
288,
5411,
2393,
18,
6923,
2932,
30,
267,
1375,
20387,
6923,
12,
11515,
3219,
18,
588,
3024,
2622,
1435,
2934,
6923,
2668,
3730,
8284,
3639,
289,
469,
309,
261,
11515,
3219,
422,
446,
597,
2623,
18,
588,
3024,
2
] |
public void testReadText() throws Exception { byte[] byteBuf = new byte[5000]; // Just enough to require more than one READTEXT for (int i = 0; i < byteBuf.length; i++) { byteBuf[i] = (byte) i; } StringBuffer strBuf = new StringBuffer(5000); for (int i = 0; i < 100; i++) { strBuf.append("This is a test line of text that is 50 chars "); if (i < 10) { strBuf.append('0'); } strBuf.append(i); } String data = strBuf.toString(); Statement stmt = con.createStatement(); stmt.execute("CREATE TABLE #TEST (id int, t1 text, t2 ntext, t3 image)"); PreparedStatement pstmt = con.prepareStatement("INSERT INTO #TEST (id, t1, t2, t3) VALUES (?, ?, ?, ?)"); pstmt.setInt(1, 1); try { pstmt.setAsciiStream(2, new ByteArrayInputStream(strBuf.toString().getBytes("US-ASCII")), strBuf.length()); pstmt.setCharacterStream(3, new StringReader(strBuf.toString()), strBuf.length()); pstmt.setBinaryStream(4, new ByteArrayInputStream(byteBuf), byteBuf.length); } catch (UnsupportedEncodingException e) { // Should never happen } assertEquals("First insert failed", 1, pstmt.executeUpdate()); pstmt.setInt(1, 2); try { pstmt.setCharacterStream(2, new StringReader(strBuf.toString()), strBuf.length()); pstmt.setAsciiStream(3, new ByteArrayInputStream(strBuf.toString().getBytes("US-ASCII")), strBuf.length()); pstmt.setBinaryStream(4, new ByteArrayInputStream(byteBuf), byteBuf.length); } catch (UnsupportedEncodingException e) { // Should never happen } assertEquals("Second insert failed", 1, pstmt.executeUpdate()); // Read back the normal way ResultSet rs = stmt.executeQuery("SELECT * FROM #TEST"); validateReadTextResult(rs, data, byteBuf); // Read back using READTEXT // FIXME - Trigger use of READTEXT rs = stmt.executeQuery("SELECT * FROM #TEST"); validateReadTextResult(rs, data, byteBuf); } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/b9018ded623e94f46ccd633e0c0f32d7b3cc45a9/ReadTextTest.java/buggy/src/test/net/sourceforge/jtds/test/ReadTextTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1994,
1528,
1435,
1216,
1185,
288,
3639,
1160,
8526,
1160,
5503,
273,
394,
1160,
63,
25,
3784,
15533,
368,
12526,
7304,
358,
2583,
1898,
2353,
1245,
10746,
5151,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1160,
5503,
18,
2469,
31,
277,
27245,
288,
5411,
1160,
5503,
63,
77,
65,
273,
261,
7229,
13,
277,
31,
3639,
289,
7734,
6674,
609,
5503,
273,
394,
6674,
12,
25,
3784,
1769,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2130,
31,
277,
27245,
288,
5411,
609,
5503,
18,
6923,
2932,
2503,
353,
279,
1842,
980,
434,
977,
716,
353,
6437,
5230,
565,
315,
1769,
13491,
309,
261,
77,
411,
1728,
13,
288,
7734,
609,
5503,
18,
6923,
2668,
20,
8284,
5411,
289,
13491,
609,
5503,
18,
6923,
12,
77,
1769,
3639,
289,
3639,
514,
501,
273,
609,
5503,
18,
10492,
5621,
7734,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3480,
18,
8837,
2932,
9344,
7567,
468,
16961,
261,
350,
509,
16,
268,
21,
977,
16,
268,
22,
290,
955,
16,
268,
23,
1316,
2225,
1769,
7734,
16913,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
11356,
12421,
468,
16961,
261,
350,
16,
268,
21,
16,
268,
22,
16,
268,
23,
13,
13477,
13590,
16,
20033,
20033,
692,
2225,
1769,
7734,
293,
10589,
18,
542,
1702,
12,
21,
16,
404,
1769,
7734,
775,
288,
5411,
293,
10589,
18,
542,
21363,
1228,
12,
22,
16,
394,
16180,
12,
701,
5503,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1994,
1528,
1435,
1216,
1185,
288,
3639,
1160,
8526,
1160,
5503,
273,
394,
1160,
63,
25,
3784,
15533,
368,
12526,
7304,
358,
2583,
1898,
2353,
1245,
10746,
5151,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1160,
5503,
18,
2469,
31,
277,
27245,
288,
5411,
1160,
5503,
63,
77,
65,
273,
261,
7229,
13,
277,
31,
3639,
289,
7734,
6674,
609,
5503,
273,
394,
6674,
12,
25,
3784,
1769,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2130,
31,
277,
27245,
288,
5411,
609,
5503,
18,
6923,
2932,
2503,
353,
279,
1842,
980,
434,
977,
716,
353,
6437,
5230,
565,
315,
1769,
13491,
309,
261,
77,
411,
1728,
13,
288,
7734,
2
] | ||
if (jj_scan_token(FINAL)) return true; return false; } | if (jj_scan_token(ABSTRACT)) return true; return false; } | final private boolean jj_3R_198() { if (jj_scan_token(FINAL)) return true; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/94275a63a29bc394e85b2f505b6478b6f7c76d82/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30234,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
7263,
1013,
3719,
327,
638,
31,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
30234,
1435,
288,
3639,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
7263,
1013,
3719,
327,
638,
31,
3639,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
checkArgumentCount(args, 0, 0); | checkArgumentCount(args, 0, 0); | public IRubyObject execute(IRubyObject self, IRubyObject[] args) { checkArgumentCount(args, 0, 0); IRubyObject variable = self.getInstanceVariable(variableName); return variable == null ? runtime.getNil() : variable; } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
15908,
10340,
921,
1836,
12,
7937,
10340,
921,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
1171,
202,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
374,
1769,
1082,
377,
202,
565,
15908,
10340,
921,
2190,
273,
365,
18,
588,
1442,
3092,
12,
6105,
461,
1769,
1082,
377,
9506,
5411,
327,
2190,
422,
446,
692,
3099,
18,
588,
12616,
1435,
294,
2190,
31,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1171,
1071,
15908,
10340,
921,
1836,
12,
7937,
10340,
921,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
1171,
202,
1893,
1379,
1380,
12,
1968,
16,
374,
16,
374,
1769,
1082,
377,
202,
565,
15908,
10340,
921,
2190,
273,
365,
18,
588,
1442,
3092,
12,
6105,
461,
1769,
1082,
377,
9506,
5411,
327,
2190,
422,
446,
692,
3099,
18,
588,
12616,
1435,
294,
2190,
31,
7734,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MylarPlugin.getContextManager().contextDeleted(task.getHandle(), task.getPath()); | MylarPlugin.getContextManager().contextDeleted(task.getHandleIdentifier(), task.getPath()); | public void run() { // MylarPlugin.getDefault().actionObserved(this); Object selectedObject = ((IStructuredSelection) this.view.getViewer() .getSelection()).getFirstElement(); if(selectedObject instanceof ITaskListElement && MylarTasklistPlugin.getDefault().getTaskHandlerForElement((ITaskListElement)selectedObject) != null){ MylarTasklistPlugin.getDefault().getTaskHandlerForElement((ITaskListElement) selectedObject).itemDeleted((ITaskListElement)selectedObject); }else if (selectedObject instanceof ITask) { ITask task = (ITask) selectedObject; if (task.isActive()) { MessageDialog.openError(Workbench.getInstance() .getActiveWorkbenchWindow().getShell(), "Delete failed", "Task must be deactivated in order to delete."); return; } String message = task.getDeleteConfirmationMessage(); boolean deleteConfirmed = MessageDialog.openQuestion( Workbench.getInstance().getActiveWorkbenchWindow().getShell(), "Confirm delete", message); if (!deleteConfirmed) return; MylarTasklistPlugin.getTaskListManager().deleteTask(task); MylarPlugin.getContextManager().contextDeleted(task.getHandle(), task.getPath()); IWorkbenchPage page = MylarTasklistPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(); // if we couldn't get the page, get out of here if (page == null) return; try { this.view.closeTaskEditors((ITask) selectedObject, page); } catch (Exception e) { MylarPlugin.log(e, " deletion failed"); } } else if (selectedObject instanceof TaskCategory) { boolean deleteConfirmed = MessageDialog.openQuestion( Workbench.getInstance().getActiveWorkbenchWindow().getShell(), "Confirm delete", "Delete the selected category and all contained tasks?"); if (!deleteConfirmed) return; TaskCategory cat = (TaskCategory) selectedObject; for (ITask task : cat.getChildren()) { MylarPlugin.getContextManager().contextDeleted(task.getHandle(), task.getPath()); IWorkbenchPage page = MylarTasklistPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage(); if (page != null) { try { this.view.closeTaskEditors(task, page); } catch (Exception e) { MylarPlugin.log(e, " deletion failed"); } } } MylarTasklistPlugin.getTaskListManager().deleteCategory(cat); } else { MessageDialog.openError(Workbench.getInstance() .getActiveWorkbenchWindow().getShell(), "Delete failed", "Nothing selected."); return; } this.view.getViewer().refresh(); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/8bb2562e67033f820cbda60f5cf69d21ebe18834/DeleteAction.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/DeleteAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
759,
202,
202,
12062,
7901,
3773,
18,
588,
1868,
7675,
1128,
9013,
2155,
12,
2211,
1769,
202,
202,
921,
3170,
921,
273,
14015,
45,
30733,
6233,
13,
333,
18,
1945,
18,
588,
18415,
1435,
9506,
202,
18,
588,
6233,
1435,
2934,
588,
3759,
1046,
5621,
202,
202,
430,
12,
8109,
921,
1276,
467,
2174,
682,
1046,
597,
9506,
202,
12062,
7901,
2174,
1098,
3773,
18,
588,
1868,
7675,
588,
2174,
1503,
1290,
1046,
12443,
1285,
835,
682,
1046,
13,
8109,
921,
13,
480,
446,
15329,
1082,
202,
12062,
7901,
2174,
1098,
3773,
18,
588,
1868,
7675,
588,
2174,
1503,
1290,
1046,
12443,
1285,
835,
682,
1046,
13,
3170,
921,
2934,
1726,
7977,
12443,
1285,
835,
682,
1046,
13,
8109,
921,
1769,
202,
202,
97,
12107,
309,
261,
8109,
921,
1276,
467,
2174,
13,
288,
1082,
202,
1285,
835,
1562,
273,
261,
1285,
835,
13,
3170,
921,
31,
1082,
202,
430,
261,
4146,
18,
291,
3896,
10756,
288,
9506,
202,
1079,
6353,
18,
3190,
668,
12,
2421,
22144,
18,
588,
1442,
1435,
25083,
202,
18,
588,
3896,
2421,
22144,
3829,
7675,
588,
13220,
9334,
315,
2613,
2535,
3113,
25083,
202,
6,
2174,
1297,
506,
443,
18836,
316,
1353,
358,
1430,
1199,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
25083,
202,
780,
883,
273,
1562,
18,
588,
2613,
17597,
1079,
5621,
25083,
202,
6494,
1430,
3976,
11222,
273,
2350,
6353,
18,
3190,
11665,
12,
1082,
5411,
4147,
22144,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
759,
202,
202,
12062,
7901,
3773,
18,
588,
1868,
7675,
1128,
9013,
2155,
12,
2211,
1769,
202,
202,
921,
3170,
921,
273,
14015,
45,
30733,
6233,
13,
333,
18,
1945,
18,
588,
18415,
1435,
9506,
202,
18,
588,
6233,
1435,
2934,
588,
3759,
1046,
5621,
202,
202,
430,
12,
8109,
921,
1276,
467,
2174,
682,
1046,
597,
9506,
202,
12062,
7901,
2174,
1098,
3773,
18,
588,
1868,
7675,
588,
2174,
1503,
1290,
1046,
12443,
1285,
835,
682,
1046,
13,
8109,
921,
13,
480,
446,
15329,
1082,
202,
12062,
7901,
2174,
1098,
3773,
18,
588,
1868,
7675,
588,
2174,
1503,
1290,
1046,
12443,
1285,
835,
682,
1046,
13,
3170,
921,
2934,
2
] |
ed = new EventDistiller(this, "psl/xues/SampleRules.xml", true, true, true); if (output) ed.setOutputFile(new File("psl/xues/currentRulebase.xml")); if(rule.equals("spamblocker")) { sendSpamEvent(1000000); if(fail) { sendSpamEvent(1000200); } else { sendSpamEvent(1000005); } } else if(rule.equals("counter")) { for(int i = 1; i < 10; i++) { sendEvent("counter", i*10); } if (!fail) { sendEvent("counter", 100); } } else if(rule.equals("loop")) { for(int i = 1; i < 10; i++) { sendEvent("loop", i*10); } if (!fail) { sendEvent("end", 100); } } /*try { Thread.currentThread().sleep(600); } catch (Exception ex) { ; }*/ else if(rule.equals("temperature")) { if(fail) { sendTemperatureEvent(90); } else { sendTemperatureEvent(110); } } else { System.out.println("tester for rule '" + rule + "' not found"); System.exit(0); } try { Thread.currentThread().sleep(15000); } catch (Exception ex) { ; } ed.shutdown(); | ed = new EventDistiller(this, "psl/xues/SampleRules.xml", true, true, true); if (output) ed.setOutputFile(new File("psl/xues/currentRulebase.xml")); if(rule.equals("spamblocker")) { sendSpamEvent(1000000); if(fail) { sendSpamEvent(1000200); } else { sendSpamEvent(1000005); } | public EDTestConstruct() { // instantiate new ED ed = new EventDistiller(this, "psl/xues/SampleRules.xml", true, true, true); // and an output -- optional if (output) ed.setOutputFile(new File("psl/xues/currentRulebase.xml")); // test spamblocker rule if(rule.equals("spamblocker")) { sendSpamEvent(1000000); if(fail) { // wait beyond timebound sendSpamEvent(1000200); } else { sendSpamEvent(1000005); } } // test counter feature else if(rule.equals("counter")) { for(int i = 1; i < 10; i++) { sendEvent("counter", i*10); } if (!fail) { sendEvent("counter", 100); } } // test loop feature else if(rule.equals("loop")) { for(int i = 1; i < 10; i++) { sendEvent("loop", i*10); } if (!fail) { sendEvent("end", 100); } } //for (int i = 1; i <= 10; i++) sendSpamEvent(10 * i); // use delay to simulate time-out /*try { Thread.currentThread().sleep(600); } catch (Exception ex) { ; }*/ //sendSpamEvent(); // test the loop rule //double d = (new Random()).nextDouble(); //int n = 10; //(int)(d * 10); //for (int i = 1; i < n; i++) sendLoopEvent(10 * i); //sendEndEvent(n * 10); // test inequality comparison in "temperature" rule else if(rule.equals("temperature")) { if(fail) { sendTemperatureEvent(90); } else { sendTemperatureEvent(110); } } // rule not recognized else { System.out.println("tester for rule '" + rule + "' not found"); System.exit(0); } // let ED run for a bit... try { Thread.currentThread().sleep(15000); } catch (Exception ex) { ; } // then kill it ed.shutdown(); } | 14534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14534/0357c307bd28e9de750dedad44eb509839eece12/EDTestConstruct.java/buggy/EDTestConstruct.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15585,
4709,
7249,
1435,
288,
202,
759,
10275,
394,
15585,
202,
329,
273,
394,
2587,
5133,
24462,
12,
2211,
16,
315,
1121,
80,
19,
92,
3610,
19,
8504,
4478,
18,
2902,
3113,
638,
16,
638,
16,
638,
1769,
202,
759,
471,
392,
876,
1493,
3129,
202,
430,
261,
2844,
13,
1675,
18,
542,
1447,
812,
12,
2704,
1387,
2932,
1121,
80,
19,
92,
3610,
19,
2972,
2175,
1969,
18,
2902,
7923,
1769,
202,
759,
1842,
1694,
2536,
739,
264,
1720,
202,
430,
12,
5345,
18,
14963,
2932,
1752,
2536,
739,
264,
6,
3719,
288,
202,
565,
1366,
3389,
301,
1133,
12,
21,
9449,
1769,
202,
565,
309,
12,
6870,
13,
288,
3196,
202,
759,
2529,
17940,
813,
3653,
202,
202,
4661,
3389,
301,
1133,
12,
6625,
3103,
713,
1769,
202,
565,
289,
202,
565,
469,
288,
202,
202,
4661,
3389,
301,
1133,
12,
23899,
6260,
1769,
202,
565,
289,
202,
97,
202,
3639,
368,
1842,
3895,
2572,
202,
12107,
309,
12,
5345,
18,
14963,
2932,
7476,
6,
3719,
288,
202,
565,
364,
12,
474,
277,
273,
404,
31,
277,
411,
1728,
31,
277,
27245,
288,
202,
202,
4661,
1133,
2932,
7476,
3113,
277,
14,
2163,
1769,
202,
565,
289,
202,
565,
309,
16051,
6870,
13,
288,
202,
202,
4661,
1133,
2932,
7476,
3113,
2130,
1769,
202,
565,
289,
202,
97,
3639,
368,
1842,
2798,
2572,
202,
12107,
309,
12,
5345,
18,
14963,
2932,
6498,
6,
3719,
288,
202,
565,
364,
12,
474,
277,
273,
404,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15585,
4709,
7249,
1435,
288,
202,
759,
10275,
394,
15585,
202,
329,
273,
394,
2587,
5133,
24462,
12,
2211,
16,
315,
1121,
80,
19,
92,
3610,
19,
8504,
4478,
18,
2902,
3113,
638,
16,
638,
16,
638,
1769,
202,
759,
471,
392,
876,
1493,
3129,
202,
430,
261,
2844,
13,
1675,
18,
542,
1447,
812,
12,
2704,
1387,
2932,
1121,
80,
19,
92,
3610,
19,
2972,
2175,
1969,
18,
2902,
7923,
1769,
202,
759,
1842,
1694,
2536,
739,
264,
1720,
202,
430,
12,
5345,
18,
14963,
2932,
1752,
2536,
739,
264,
6,
3719,
288,
202,
565,
1366,
3389,
301,
1133,
12,
21,
9449,
1769,
202,
565,
309,
12,
6870,
13,
288,
3196,
202,
759,
2529,
17940,
813,
2
] |
if(log.isInfoEnabled()) log.info("sending MERGE_REQ to " + coords); | if(log.isDebugEnabled()) log.debug("sending MERGE_REQ to " + coords); | void getMergeDataFromSubgroupCoordinators(Vector coords, long timeout) { Message msg; GMS.GmsHeader hdr; Address coord; long curr_time, time_to_wait=0, end_time; int num_rsps_expected=0; if(coords == null || coords.size() <= 1) { if(log.isErrorEnabled()) log.error("coords == null or size <= 1"); return; } synchronized(merge_rsps) { merge_rsps.removeAllElements(); if(log.isInfoEnabled()) log.info("sending MERGE_REQ to " + coords); for(int i=0; i < coords.size(); i++) { coord=(Address)coords.elementAt(i); if(gms.local_addr != null && gms.local_addr.equals(coord)) { merge_rsps.add(getMergeResponse(gms.local_addr, merge_id)); continue; } msg=new Message(coord, null, null); hdr=new GMS.GmsHeader(GMS.GmsHeader.MERGE_REQ); hdr.mbr=gms.local_addr; hdr.merge_id=merge_id; msg.putHeader(gms.getName(), hdr); gms.passDown(new Event(Event.MSG, msg)); } // wait until num_rsps_expected >= num_rsps or timeout elapsed num_rsps_expected=coords.size(); curr_time=System.currentTimeMillis(); end_time=curr_time + timeout; while(end_time > curr_time) { time_to_wait=end_time - curr_time; if(log.isInfoEnabled()) log.info("waiting for " + time_to_wait + " msecs for merge responses"); if(merge_rsps.size() < num_rsps_expected) { try { merge_rsps.wait(time_to_wait); } catch(Exception ex) { } } if(log.isInfoEnabled()) log.info("num_rsps_expected=" + num_rsps_expected + ", actual responses=" + merge_rsps.size()); if(merge_rsps.size() >= num_rsps_expected) break; curr_time=System.currentTimeMillis(); } } } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/CoordGmsImpl.java/buggy/src/org/jgroups/protocols/pbcast/CoordGmsImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2108,
1583,
751,
1265,
1676,
1655,
5401,
30425,
12,
5018,
6074,
16,
1525,
2021,
13,
288,
3639,
2350,
1234,
31,
3639,
611,
3537,
18,
43,
959,
1864,
7723,
31,
3639,
5267,
2745,
31,
3639,
1525,
4306,
67,
957,
16,
813,
67,
869,
67,
7048,
33,
20,
16,
679,
67,
957,
31,
3639,
509,
818,
67,
5453,
1121,
67,
3825,
33,
20,
31,
3639,
309,
12,
9076,
422,
446,
747,
6074,
18,
1467,
1435,
1648,
404,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
9076,
422,
446,
578,
963,
1648,
404,
8863,
5411,
327,
31,
3639,
289,
3639,
3852,
12,
2702,
67,
5453,
1121,
13,
288,
5411,
2691,
67,
5453,
1121,
18,
4479,
1595,
3471,
5621,
7734,
309,
12,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
87,
2846,
490,
654,
7113,
67,
20373,
358,
315,
397,
6074,
1769,
5411,
364,
12,
474,
277,
33,
20,
31,
277,
411,
6074,
18,
1467,
5621,
277,
27245,
288,
7734,
2745,
28657,
1887,
13,
9076,
18,
2956,
861,
12,
77,
1769,
7734,
309,
12,
75,
959,
18,
3729,
67,
4793,
480,
446,
597,
314,
959,
18,
3729,
67,
4793,
18,
14963,
12,
5732,
3719,
288,
10792,
2691,
67,
5453,
1121,
18,
1289,
12,
588,
6786,
1064,
12,
75,
959,
18,
3729,
67,
4793,
16,
2691,
67,
350,
10019,
10792,
1324,
31,
7734,
289,
7734,
1234,
33,
2704,
2350,
12,
5732,
16,
446,
16,
446,
1769,
7734,
7723,
33,
2704,
611,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2108,
1583,
751,
1265,
1676,
1655,
5401,
30425,
12,
5018,
6074,
16,
1525,
2021,
13,
288,
3639,
2350,
1234,
31,
3639,
611,
3537,
18,
43,
959,
1864,
7723,
31,
3639,
5267,
2745,
31,
3639,
1525,
4306,
67,
957,
16,
813,
67,
869,
67,
7048,
33,
20,
16,
679,
67,
957,
31,
3639,
509,
818,
67,
5453,
1121,
67,
3825,
33,
20,
31,
3639,
309,
12,
9076,
422,
446,
747,
6074,
18,
1467,
1435,
1648,
404,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
613,
18,
1636,
2932,
9076,
422,
446,
578,
963,
1648,
404,
8863,
5411,
327,
31,
3639,
289,
3639,
3852,
12,
2702,
67,
5453,
1121,
13,
288,
5411,
2691,
67,
5453,
1121,
2
] |
AST tmp1080_AST_in = (AST)_t; | AST tmp1079_AST_in = (AST)_t; | public final void defineimagestate(AST _t) throws RecognitionException { AST defineimagestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST __t491 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case IMAGE: case PRIVATE: case PUBLIC: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case IMAGE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1074_AST_in = (AST)_t; match(_t,IMAGE); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineSymbol(IMAGE, def, id)); } { _loop499: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LIKE: { AST __t495 = _t; AST tmp1075_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALIDATE: { AST tmp1076_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t495; _t = _t.getNextSibling(); break; } case FILE: case FROM: case IMAGESIZE: case IMAGESIZECHARS: case IMAGESIZEPIXELS: { imagephrase_opt(_t); _t = _retTree; break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case CONVERT3DCOLORS: { AST tmp1077_AST_in = (AST)_t; match(_t,CONVERT3DCOLORS); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case STRETCHTOFIT: { AST __t497 = _t; AST tmp1078_AST_in = (AST)_t; match(_t,STRETCHTOFIT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RETAINSHAPE: { AST tmp1079_AST_in = (AST)_t; match(_t,RETAINSHAPE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t497; _t = _t.getNextSibling(); break; } case TRANSPARENT: { AST tmp1080_AST_in = (AST)_t; match(_t,TRANSPARENT); _t = _t.getNextSibling(); break; } default: { break _loop499; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } _t = __t491; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
15374,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
15374,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
1652,
273,
446,
31,
202,
202,
9053,
612,
273,
446,
31,
9506,
202,
9053,
1001,
88,
7616,
21,
273,
389,
88,
31,
202,
202,
536,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
12904,
3740,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
12887,
30,
202,
202,
3593,
9777,
5879,
30,
202,
202,
95,
1082,
202,
536,
67,
11574,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
10757,
30,
202,
202,
3593,
23685,
30,
202,
202,
3593,
17187,
30,
202,
202,
3593,
4629,
26729,
30,
202,
202,
95,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
202,
202,
95,
1082,
202,
12849,
394,
17114,
24899,
88,
1769,
202,
202,
97,
202,
202,
97,
202,
202,
97,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
15374,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
15374,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
1652,
273,
446,
31,
202,
202,
9053,
612,
273,
446,
31,
9506,
202,
9053,
1001,
88,
7616,
21,
273,
389,
88,
31,
202,
202,
536,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
12904,
3740,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2
] |
break _loop31; | break _loop34; | public final void letClause() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST letClause_AST = null; AST tmp98_AST = null; tmp98_AST = astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp98_AST); match(LITERAL_let); letVarBinding(); astFactory.addASTChild(currentAST, returnAST); { _loop31: do { if ((LA(1)==COMMA)) { match(COMMA); letVarBinding(); astFactory.addASTChild(currentAST, returnAST); } else { break _loop31; } } while (true); } letClause_AST = (AST)currentAST.root; returnAST = letClause_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/542794bb5fd4ba67897c2c2677f4f663483ba69d/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2231,
7044,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
2231,
7044,
67,
9053,
273,
446,
31,
9506,
202,
9053,
1853,
10689,
67,
9053,
273,
446,
31,
202,
202,
5645,
10689,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
202,
202,
689,
1733,
18,
6540,
9053,
2375,
12,
2972,
9053,
16,
1853,
10689,
67,
9053,
1769,
202,
202,
1916,
12,
23225,
67,
1810,
1769,
202,
202,
1810,
1537,
5250,
5621,
202,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
202,
202,
95,
202,
202,
67,
6498,
6938,
30,
202,
202,
2896,
288,
1082,
202,
430,
14015,
2534,
12,
21,
13,
631,
4208,
5535,
3719,
288,
9506,
202,
1916,
12,
4208,
5535,
1769,
9506,
202,
1810,
1537,
5250,
5621,
9506,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
1082,
202,
97,
1082,
202,
12107,
288,
9506,
202,
8820,
389,
6498,
6938,
31,
1082,
202,
97,
6862,
202,
97,
1323,
261,
3767,
1769,
202,
202,
97,
202,
202,
1810,
7044,
67,
9053,
273,
261,
9053,
13,
2972,
9053,
18,
3085,
31,
202,
202,
2463,
9053,
273,
2231,
7044,
67,
9053,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2231,
7044,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
2231,
7044,
67,
9053,
273,
446,
31,
9506,
202,
9053,
1853,
10689,
67,
9053,
273,
446,
31,
202,
202,
5645,
10689,
67,
9053,
273,
3364,
1733,
18,
2640,
12,
12050,
12,
21,
10019,
202,
202,
689,
1733,
18,
6540,
9053,
2375,
12,
2972,
9053,
16,
1853,
10689,
67,
9053,
1769,
202,
202,
1916,
12,
23225,
67,
1810,
1769,
202,
202,
1810,
1537,
5250,
5621,
202,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
202,
202,
95,
202,
2
] |
if ( parent.canContain( slotId, ( (IElementDefn) list.get( i ) ) .getName( ) ) ) | if ( parent.canContain( slotId, ( (IElementDefn) list.get( i ) ).getName( ) ) ) | public static List getElementSupportList( DesignElementHandle parent, int slotId ) { List list = new ArrayList( ); ISlotDefn slotDefn = parent.getDefn( ).getSlot( slotId ); if ( slotDefn != null ) { list.addAll( slotDefn.getContentExtendedElements( ) ); list.removeAll( notSupportList ); } // Append to validate the type according to the context List availableList = new ArrayList( ); for ( int i = 0; i < list.size( ); i++ ) { if ( parent.canContain( slotId, ( (IElementDefn) list.get( i ) ) .getName( ) ) ) { availableList.add( list.get( i ) ); } } return availableList; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8f4d195ea2cee97486772b52961bc6329e4c409f/DEUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
987,
7426,
6289,
682,
12,
29703,
1046,
3259,
982,
16,
1082,
202,
474,
4694,
548,
262,
202,
95,
202,
202,
682,
666,
273,
394,
2407,
12,
11272,
202,
202,
45,
8764,
3262,
82,
4694,
3262,
82,
273,
982,
18,
588,
3262,
82,
12,
262,
18,
588,
8764,
12,
4694,
548,
11272,
202,
202,
430,
261,
4694,
3262,
82,
480,
446,
262,
202,
202,
95,
1082,
202,
1098,
18,
1289,
1595,
12,
4694,
3262,
82,
18,
588,
1350,
11456,
3471,
12,
262,
11272,
1082,
202,
1098,
18,
4479,
1595,
12,
486,
6289,
682,
11272,
202,
202,
97,
202,
202,
759,
6181,
358,
1954,
326,
618,
4888,
358,
326,
819,
202,
202,
682,
2319,
682,
273,
394,
2407,
12,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
666,
18,
1467,
12,
11272,
277,
9904,
262,
202,
202,
95,
1082,
202,
430,
261,
982,
18,
4169,
22928,
12,
4694,
548,
16,
261,
261,
45,
1046,
3262,
82,
13,
666,
18,
588,
12,
277,
262,
262,
6862,
202,
18,
17994,
12,
262,
262,
262,
1082,
202,
95,
9506,
202,
5699,
682,
18,
1289,
12,
666,
18,
588,
12,
277,
262,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
2319,
682,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
987,
7426,
6289,
682,
12,
29703,
1046,
3259,
982,
16,
1082,
202,
474,
4694,
548,
262,
202,
95,
202,
202,
682,
666,
273,
394,
2407,
12,
11272,
202,
202,
45,
8764,
3262,
82,
4694,
3262,
82,
273,
982,
18,
588,
3262,
82,
12,
262,
18,
588,
8764,
12,
4694,
548,
11272,
202,
202,
430,
261,
4694,
3262,
82,
480,
446,
262,
202,
202,
95,
1082,
202,
1098,
18,
1289,
1595,
12,
4694,
3262,
82,
18,
588,
1350,
11456,
3471,
12,
262,
11272,
1082,
202,
1098,
18,
4479,
1595,
12,
486,
6289,
682,
11272,
202,
202,
97,
202,
202,
759,
6181,
358,
1954,
326,
618,
4888,
358,
326,
819,
202,
202,
682,
2319,
682,
273,
394,
2
] |
.equalsIgnoreCase(filterString)) | .equalsIgnoreCase(filterString)) { | private IContentProposal[] filterProposals( IContentProposal[] proposals, String filterString) { if (filterString.length() == 0) return proposals; // Check each string for a match. Use the string displayed to the // user, // not the proposal content. ArrayList list = new ArrayList(); for (int i = 0; i < proposals.length; i++) { String string = getString(proposals[i]); if (string.length() >= filterString.length() && string.substring(0, filterString.length()) .equalsIgnoreCase(filterString)) list.add(proposals[i]); } return (IContentProposal[]) list.toArray(new IContentProposal[list .size()]); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/391f2606b4ea2c1fb5052d938ca90877ee7631f6/ContentProposalAdapter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/fieldassist/ContentProposalAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
467,
1350,
14592,
8526,
1034,
626,
22536,
12,
9506,
202,
45,
1350,
14592,
8526,
450,
22536,
16,
514,
1034,
780,
13,
288,
1082,
202,
430,
261,
2188,
780,
18,
2469,
1435,
422,
374,
13,
9506,
202,
2463,
450,
22536,
31,
1082,
202,
759,
2073,
1517,
533,
364,
279,
845,
18,
2672,
326,
533,
10453,
358,
326,
1082,
202,
759,
729,
16,
1082,
202,
759,
486,
326,
14708,
913,
18,
1082,
202,
19558,
666,
273,
394,
2407,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
450,
22536,
18,
2469,
31,
277,
27245,
288,
9506,
202,
780,
533,
273,
4997,
12,
685,
22536,
63,
77,
19226,
9506,
202,
430,
261,
1080,
18,
2469,
1435,
1545,
1034,
780,
18,
2469,
1435,
25083,
202,
10,
10,
533,
18,
28023,
12,
20,
16,
1034,
780,
18,
2469,
10756,
6862,
9506,
202,
18,
14963,
5556,
12,
2188,
780,
3719,
6862,
202,
1098,
18,
1289,
12,
685,
22536,
63,
77,
19226,
1082,
202,
97,
1082,
202,
2463,
261,
45,
1350,
14592,
63,
5717,
666,
18,
31447,
12,
2704,
467,
1350,
14592,
63,
1098,
6862,
202,
18,
1467,
1435,
19226,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
467,
1350,
14592,
8526,
1034,
626,
22536,
12,
9506,
202,
45,
1350,
14592,
8526,
450,
22536,
16,
514,
1034,
780,
13,
288,
1082,
202,
430,
261,
2188,
780,
18,
2469,
1435,
422,
374,
13,
9506,
202,
2463,
450,
22536,
31,
1082,
202,
759,
2073,
1517,
533,
364,
279,
845,
18,
2672,
326,
533,
10453,
358,
326,
1082,
202,
759,
729,
16,
1082,
202,
759,
486,
326,
14708,
913,
18,
1082,
202,
19558,
666,
273,
394,
2407,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
450,
22536,
18,
2469,
31,
277,
27245,
288,
9506,
202,
780,
533,
273,
4997,
12,
685,
22536,
63,
77,
19226,
9506,
202,
430,
261,
1080,
18,
2469,
1435,
2
] |
addPropertyOnDelete(); | properties.deletionFound(); | protected Modification handleEntry(List entry) { LOG.debug("VSS history entry BEGIN"); for (Iterator i = entry.iterator(); i.hasNext();) { LOG.debug("entry: " + i.next()); } LOG.debug("VSS history entry END"); final String labelDelimiter = "**********************"; boolean isLabelEntry = labelDelimiter.equals(entry.get(0)); if (isLabelEntry) { LOG.debug("this is a label; ignoring this entry"); return null; } // but need to adjust for cases where Label: line exists // // ***** DateChooser.java ***** // Version 8 // Label: "Completely new version!" // User: Arass Date: 10/21/02 Time: 12:48p // Checked in $/code/development/src/org/ets/cbtidg/common/gui // Comment: This is where I add a completely new, but alot nicer // version of the date chooser. // Label comment: int nameAndDateIndex = 2; if (((String) entry.get(0)).startsWith("***************** ")) { nameAndDateIndex = 1; } String nameAndDateLine = (String) entry.get(nameAndDateIndex); if (nameAndDateLine.startsWith("Label:")) { nameAndDateIndex++; nameAndDateLine = (String) entry.get(nameAndDateIndex); LOG.debug("adjusting for the line that starts with Label"); } Modification modification = new Modification("vss"); modification.userName = parseUser(nameAndDateLine); modification.modifiedTime = parseDate(nameAndDateLine); String folderLine = (String) entry.get(0); int fileIndex = nameAndDateIndex + 1; String fileLine = (String) entry.get(fileIndex); LOG.debug("File line is: " + fileLine); if (fileLine.startsWith("Checked in")) { LOG.debug("this is a checkin"); int commentIndex = fileIndex + 1; modification.comment = parseComment(entry, commentIndex); String fileName = folderLine.substring(7, folderLine.indexOf(" *")); String folderName = fileLine.substring(12); Modification.ModifiedFile modfile = modification.createModifiedFile(fileName, folderName); modfile.action = "checkin"; } else if (fileLine.endsWith("Created")) { modification.type = "create"; LOG.debug("this folder was created"); } else { String fileName; String folderName; if (nameAndDateIndex == 1) { folderName = vssPath; } else { folderName = vssPath + "\\" + folderLine.substring(7, folderLine.indexOf(" *")); } int lastSpace = fileLine.lastIndexOf(" "); if (lastSpace != -1) { fileName = fileLine.substring(0, lastSpace); } else { fileName = fileLine; if (fileName.equals("Branched")) { LOG.debug("Branched file, ignoring as branch directory is handled separately"); return null; } } Modification.ModifiedFile modfile = modification.createModifiedFile(fileName, folderName); if (fileLine.endsWith("added")) { modfile.action = "add"; } else if (fileLine.endsWith("deleted")) { modfile.action = "delete"; addPropertyOnDelete(); } else if (fileLine.endsWith("destroyed")) { modfile.action = "destroy"; addPropertyOnDelete(); } else if (fileLine.endsWith("recovered")) { modfile.action = "recover"; } else if (fileLine.endsWith("shared")) { modfile.action = "share"; } else if (fileLine.endsWith("branched")) { modfile.action = "branch"; } else if (fileLine.indexOf(" renamed to ") != -1) { modfile.fileName = fileLine; modfile.action = "rename"; addPropertyOnDelete(); } else if (fileLine.startsWith("Labeled")) { return null; } else { LOG.warn("Don't know how to handle this line: " + fileLine); return null; } } if (property != null) { properties.put(property, "true"); LOG.debug("setting property " + property + " to be true"); } return modification; } | 52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/c879b70b24afa19e65b4d2d550b27f6e981821f1/Vss.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/Vss.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3431,
1480,
1640,
1622,
12,
682,
1241,
13,
288,
3639,
2018,
18,
4148,
2932,
58,
1260,
4927,
1241,
19270,
8863,
3639,
364,
261,
3198,
277,
273,
1241,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
2018,
18,
4148,
2932,
4099,
30,
315,
397,
277,
18,
4285,
10663,
3639,
289,
3639,
2018,
18,
4148,
2932,
58,
1260,
4927,
1241,
7273,
8863,
3639,
727,
514,
1433,
12007,
273,
315,
2751,
11345,
14432,
3639,
1250,
353,
2224,
1622,
273,
1433,
12007,
18,
14963,
12,
4099,
18,
588,
12,
20,
10019,
3639,
309,
261,
291,
2224,
1622,
13,
288,
5411,
2018,
18,
4148,
2932,
2211,
353,
279,
1433,
31,
14398,
333,
1241,
8863,
5411,
327,
446,
31,
3639,
289,
3639,
368,
1496,
1608,
358,
5765,
364,
6088,
1625,
5287,
30,
980,
1704,
3639,
368,
3639,
368,
380,
1007,
2167,
17324,
18,
6290,
380,
1007,
3639,
368,
4049,
1725,
3639,
368,
5287,
30,
315,
6297,
2357,
394,
1177,
4442,
3639,
368,
2177,
30,
1201,
428,
2167,
30,
1728,
19,
5340,
19,
3103,
2647,
30,
2593,
30,
8875,
84,
3639,
368,
23975,
316,
271,
19,
710,
19,
26630,
19,
4816,
19,
3341,
19,
2413,
19,
7358,
18081,
75,
19,
6054,
19,
20292,
3639,
368,
9821,
30,
1220,
353,
1625,
467,
527,
279,
14416,
394,
16,
1496,
524,
352,
11562,
264,
3639,
368,
1177,
434,
326,
1509,
5011,
13164,
18,
3639,
368,
5287,
2879,
30,
3639,
509,
508,
1876,
1626,
1016,
273,
576,
31,
3639,
309,
261,
12443,
780,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3431,
1480,
1640,
1622,
12,
682,
1241,
13,
288,
3639,
2018,
18,
4148,
2932,
58,
1260,
4927,
1241,
19270,
8863,
3639,
364,
261,
3198,
277,
273,
1241,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
2018,
18,
4148,
2932,
4099,
30,
315,
397,
277,
18,
4285,
10663,
3639,
289,
3639,
2018,
18,
4148,
2932,
58,
1260,
4927,
1241,
7273,
8863,
3639,
727,
514,
1433,
12007,
273,
315,
2751,
11345,
14432,
3639,
1250,
353,
2224,
1622,
273,
1433,
12007,
18,
14963,
12,
4099,
18,
588,
12,
20,
10019,
3639,
309,
261,
291,
2224,
1622,
13,
288,
5411,
2018,
18,
4148,
2932,
2211,
353,
279,
1433,
31,
14398,
333,
1241,
8863,
5411,
327,
446,
31,
3639,
2
] |
final Method getter = findGetterMethod(myAttributeChildrenMethods, attributeName); | final JavaMethod getter = findGetterMethod(myAttributeChildrenMethods, attributeName); | public AttributeChildDescriptionImpl getAttributeChildDescription(String attributeName) { final Method getter = findGetterMethod(myAttributeChildrenMethods, attributeName); if (getter == null) return null; return new AttributeChildDescriptionImpl(attributeName, getter); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/54db96a7e7eb53da6fe993c656f312cdf31aaaa7/GenericInfoImpl.java/clean/dom/impl/src/com/intellij/util/xml/impl/GenericInfoImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3601,
1763,
3291,
2828,
4061,
1763,
3291,
12,
780,
9734,
13,
288,
565,
727,
5110,
1305,
7060,
273,
1104,
8461,
1305,
12,
4811,
1499,
4212,
4712,
16,
9734,
1769,
565,
309,
261,
11990,
422,
446,
13,
327,
446,
31,
565,
327,
394,
3601,
1763,
3291,
2828,
12,
4589,
461,
16,
7060,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3601,
1763,
3291,
2828,
4061,
1763,
3291,
12,
780,
9734,
13,
288,
565,
727,
5110,
1305,
7060,
273,
1104,
8461,
1305,
12,
4811,
1499,
4212,
4712,
16,
9734,
1769,
565,
309,
261,
11990,
422,
446,
13,
327,
446,
31,
565,
327,
394,
3601,
1763,
3291,
2828,
12,
4589,
461,
16,
7060,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ToolBarContributionItem toolBarItem = (ToolBarContributionItem) cbItem; | IToolBarContributionItem toolBarItem = (IToolBarContributionItem) cbItem; | void updatePinActionToolbar() { ICoolBarManager coolBarManager = getActionBarConfigurer() .getCoolBarManager(); IContributionItem cbItem = coolBarManager .find(IWorkbenchActionConstants.TOOLBAR_NAVIGATE); if (!(cbItem instanceof ToolBarContributionItem)) { // This should not happen IDEWorkbenchPlugin .log("Navigation toolbar contribution item is missing"); //$NON-NLS-1$ return; } ToolBarContributionItem toolBarItem = (ToolBarContributionItem) cbItem; IToolBarManager toolBarManager = toolBarItem.getToolBarManager(); if (toolBarManager == null) { // error if this happens, navigation toolbar assumed to always exist IDEWorkbenchPlugin.log("Navigate toolbar is missing"); //$NON-NLS-1$ return; } toolBarManager.update(false); toolBarItem.update(ICoolBarManager.SIZE); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/54532dbf350a8597a32c3325d699ca741a40ef83/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1089,
12178,
1803,
17907,
1435,
288,
3639,
26899,
1371,
5190,
1318,
27367,
5190,
1318,
273,
12473,
5190,
809,
11278,
1435,
7734,
263,
588,
39,
1371,
5190,
1318,
5621,
3639,
467,
442,
4027,
1180,
2875,
1180,
273,
27367,
5190,
1318,
7734,
263,
4720,
12,
45,
2421,
22144,
1803,
2918,
18,
26263,
21908,
67,
50,
5856,
3047,
1777,
1769,
3639,
309,
16051,
12,
7358,
1180,
1276,
13288,
5190,
442,
4027,
1180,
3719,
288,
5411,
368,
1220,
1410,
486,
5865,
5411,
1599,
41,
2421,
22144,
3773,
10792,
263,
1330,
2932,
14301,
12748,
24880,
761,
353,
3315,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
327,
31,
3639,
289,
3639,
467,
6364,
5190,
442,
4027,
1180,
5226,
5190,
1180,
273,
261,
45,
6364,
5190,
442,
4027,
1180,
13,
2875,
1180,
31,
3639,
467,
6364,
5190,
1318,
5226,
5190,
1318,
273,
5226,
5190,
1180,
18,
588,
6364,
5190,
1318,
5621,
3639,
309,
261,
6738,
5190,
1318,
422,
446,
13,
288,
5411,
368,
555,
309,
333,
10555,
16,
10394,
12748,
12034,
358,
3712,
1005,
5411,
1599,
41,
2421,
22144,
3773,
18,
1330,
2932,
50,
20698,
12748,
353,
3315,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
327,
31,
3639,
289,
3639,
5226,
5190,
1318,
18,
2725,
12,
5743,
1769,
3639,
5226,
5190,
1180,
18,
2725,
12,
2871,
1371,
5190,
1318,
18,
4574,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1089,
12178,
1803,
17907,
1435,
288,
3639,
26899,
1371,
5190,
1318,
27367,
5190,
1318,
273,
12473,
5190,
809,
11278,
1435,
7734,
263,
588,
39,
1371,
5190,
1318,
5621,
3639,
467,
442,
4027,
1180,
2875,
1180,
273,
27367,
5190,
1318,
7734,
263,
4720,
12,
45,
2421,
22144,
1803,
2918,
18,
26263,
21908,
67,
50,
5856,
3047,
1777,
1769,
3639,
309,
16051,
12,
7358,
1180,
1276,
13288,
5190,
442,
4027,
1180,
3719,
288,
5411,
368,
1220,
1410,
486,
5865,
5411,
1599,
41,
2421,
22144,
3773,
10792,
263,
1330,
2932,
14301,
12748,
24880,
761,
353,
3315,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
5411,
327,
31,
3639,
289,
3639,
467,
6364,
5190,
442,
4027,
1180,
5226,
5190,
1180,
273,
2
] |
MethodWrapper[] callers= wrapper.getCalls(); | MethodWrapper[] callers= wrapper.getCalls(new NullProgressMonitor()); | public void testInnerClassCallers() throws Exception { helper.createInnerClass(); IMethod someMethod= helper.getType1().getMethod("outerMethod1", EMPTY); IMethod innerMethod1= helper.getType1().getType("Inner").getMethod("innerMethod1", EMPTY); IMethod innerMethod2= helper.getType1().getType("Inner").getMethod("innerMethod2", EMPTY); Collection expectedCallers= new ArrayList(); expectedCallers.add(innerMethod1); MethodWrapper wrapper= CallHierarchy.getDefault().getCallerRoot(someMethod); MethodWrapper[] callers= wrapper.getCalls(); assertRecursive(callers, false); helper.assertCalls(expectedCallers, callers); Collection expectedCallersSecondLevel= new ArrayList(); expectedCallersSecondLevel.add(innerMethod2); helper.assertCalls(expectedCallersSecondLevel, callers[0].getCalls()); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/a4d56989e8f4225c40ceb4ab1f443e89000a9a35/CallHierarchyTest.java/clean/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/CallHierarchyTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2857,
797,
1477,
414,
1435,
1216,
1185,
288,
3639,
4222,
18,
2640,
2857,
797,
5621,
7734,
467,
1305,
2690,
1305,
33,
4222,
18,
588,
559,
21,
7675,
588,
1305,
2932,
14068,
1305,
21,
3113,
8984,
1769,
3639,
467,
1305,
3443,
1305,
21,
33,
4222,
18,
588,
559,
21,
7675,
588,
559,
2932,
2857,
20387,
588,
1305,
2932,
7872,
1305,
21,
3113,
8984,
1769,
3639,
467,
1305,
3443,
1305,
22,
33,
4222,
18,
588,
559,
21,
7675,
588,
559,
2932,
2857,
20387,
588,
1305,
2932,
7872,
1305,
22,
3113,
8984,
1769,
3639,
2200,
2665,
1477,
414,
33,
394,
2407,
5621,
3639,
2665,
1477,
414,
18,
1289,
12,
7872,
1305,
21,
1769,
3639,
2985,
3611,
4053,
33,
3049,
12074,
18,
588,
1868,
7675,
588,
11095,
2375,
12,
19068,
1305,
1769,
3639,
2985,
3611,
8526,
19932,
33,
4053,
18,
588,
10125,
12,
2704,
4112,
5491,
7187,
10663,
3639,
1815,
10483,
12,
1991,
414,
16,
629,
1769,
3639,
4222,
18,
11231,
10125,
12,
3825,
1477,
414,
16,
19932,
1769,
7734,
2200,
2665,
1477,
414,
8211,
2355,
33,
394,
2407,
5621,
3639,
2665,
1477,
414,
8211,
2355,
18,
1289,
12,
7872,
1305,
22,
1769,
3639,
4222,
18,
11231,
10125,
12,
3825,
1477,
414,
8211,
2355,
16,
19932,
63,
20,
8009,
588,
10125,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2857,
797,
1477,
414,
1435,
1216,
1185,
288,
3639,
4222,
18,
2640,
2857,
797,
5621,
7734,
467,
1305,
2690,
1305,
33,
4222,
18,
588,
559,
21,
7675,
588,
1305,
2932,
14068,
1305,
21,
3113,
8984,
1769,
3639,
467,
1305,
3443,
1305,
21,
33,
4222,
18,
588,
559,
21,
7675,
588,
559,
2932,
2857,
20387,
588,
1305,
2932,
7872,
1305,
21,
3113,
8984,
1769,
3639,
467,
1305,
3443,
1305,
22,
33,
4222,
18,
588,
559,
21,
7675,
588,
559,
2932,
2857,
20387,
588,
1305,
2932,
7872,
1305,
22,
3113,
8984,
1769,
3639,
2200,
2665,
1477,
414,
33,
394,
2407,
5621,
3639,
2665,
1477,
414,
18,
1289,
12,
7872,
1305,
21,
1769,
3639,
2985,
3611,
4053,
33,
2
] |
fdlRemove.right= new FormAttachment(middle, -margin); | fdlRemove.right= new FormAttachment(middle, 0); | public JobEntryInterface open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { jobentry.setChanged(); } }; changed = jobentry.hasChanged(); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText("Get files by FTP"); int middle = props.getMiddlePct(); int margin = Const.MARGIN; // Filename line wlName=new Label(shell, SWT.RIGHT); wlName.setText("Job entry name "); props.setLook(wlName); fdlName=new FormData(); fdlName.left = new FormAttachment(0, 0); fdlName.right= new FormAttachment(middle, -margin); fdlName.top = new FormAttachment(0, margin); wlName.setLayoutData(fdlName); wName=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wName); wName.addModifyListener(lsMod); fdName=new FormData(); fdName.left = new FormAttachment(middle, 0); fdName.top = new FormAttachment(0, margin); fdName.right= new FormAttachment(100, 0); wName.setLayoutData(fdName); // ServerName line wlServerName=new Label(shell, SWT.RIGHT); wlServerName.setText("FTP-server name (IP)"); props.setLook(wlServerName); fdlServerName=new FormData(); fdlServerName.left = new FormAttachment(0, 0); fdlServerName.top = new FormAttachment(wName, margin); fdlServerName.right= new FormAttachment(middle, -margin); wlServerName.setLayoutData(fdlServerName); wServerName=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wServerName); wServerName.addModifyListener(lsMod); fdServerName=new FormData(); fdServerName.left = new FormAttachment(middle, 0); fdServerName.top = new FormAttachment(wName, margin); fdServerName.right= new FormAttachment(100, 0); wServerName.setLayoutData(fdServerName); // UserName line wlUserName=new Label(shell, SWT.RIGHT); wlUserName.setText("Username"); props.setLook(wlUserName); fdlUserName=new FormData(); fdlUserName.left = new FormAttachment(0, 0); fdlUserName.top = new FormAttachment(wServerName, margin); fdlUserName.right= new FormAttachment(middle, -margin); wlUserName.setLayoutData(fdlUserName); wUserName=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wUserName); wUserName.addModifyListener(lsMod); fdUserName=new FormData(); fdUserName.left = new FormAttachment(middle, 0); fdUserName.top = new FormAttachment(wServerName, margin); fdUserName.right= new FormAttachment(100, 0); wUserName.setLayoutData(fdUserName); // Password line wlPassword=new Label(shell, SWT.RIGHT); wlPassword.setText("Password"); props.setLook(wlPassword); fdlPassword=new FormData(); fdlPassword.left = new FormAttachment(0, 0); fdlPassword.top = new FormAttachment(wUserName, margin); fdlPassword.right= new FormAttachment(middle, -margin); wlPassword.setLayoutData(fdlPassword); wPassword=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wPassword); wPassword.setEchoChar('*'); wPassword.addModifyListener(lsMod); fdPassword=new FormData(); fdPassword.left = new FormAttachment(middle, 0); fdPassword.top = new FormAttachment(wUserName, margin); fdPassword.right= new FormAttachment(100, 0); wPassword.setLayoutData(fdPassword); // FtpDirectory line wlFtpDirectory=new Label(shell, SWT.RIGHT); wlFtpDirectory.setText("Remote directory"); props.setLook(wlFtpDirectory); fdlFtpDirectory=new FormData(); fdlFtpDirectory.left = new FormAttachment(0, 0); fdlFtpDirectory.top = new FormAttachment(wPassword, margin); fdlFtpDirectory.right= new FormAttachment(middle, -margin); wlFtpDirectory.setLayoutData(fdlFtpDirectory); wFtpDirectory=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wFtpDirectory); wFtpDirectory.addModifyListener(lsMod); fdFtpDirectory=new FormData(); fdFtpDirectory.left = new FormAttachment(middle, 0); fdFtpDirectory.top = new FormAttachment(wPassword, margin); fdFtpDirectory.right= new FormAttachment(100, 0); wFtpDirectory.setLayoutData(fdFtpDirectory); // TargetDirectory line wlTargetDirectory=new Label(shell, SWT.RIGHT); wlTargetDirectory.setText("Target directory"); props.setLook(wlTargetDirectory); fdlTargetDirectory=new FormData(); fdlTargetDirectory.left = new FormAttachment(0, 0); fdlTargetDirectory.top = new FormAttachment(wFtpDirectory, margin); fdlTargetDirectory.right= new FormAttachment(middle, -margin); wlTargetDirectory.setLayoutData(fdlTargetDirectory); wTargetDirectory=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTargetDirectory); wTargetDirectory.addModifyListener(lsMod); fdTargetDirectory=new FormData(); fdTargetDirectory.left = new FormAttachment(middle, 0); fdTargetDirectory.top = new FormAttachment(wFtpDirectory, margin); fdTargetDirectory.right= new FormAttachment(100, 0); wTargetDirectory.setLayoutData(fdTargetDirectory); // Wildcard line wlWildcard=new Label(shell, SWT.RIGHT); wlWildcard.setText("Wildcard (regular expression)"); props.setLook(wlWildcard); fdlWildcard=new FormData(); fdlWildcard.left = new FormAttachment(0, 0); fdlWildcard.top = new FormAttachment(wTargetDirectory, margin); fdlWildcard.right= new FormAttachment(middle, -margin); wlWildcard.setLayoutData(fdlWildcard); wWildcard=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wWildcard); wWildcard.addModifyListener(lsMod); fdWildcard=new FormData(); fdWildcard.left = new FormAttachment(middle, 0); fdWildcard.top = new FormAttachment(wTargetDirectory, margin); fdWildcard.right= new FormAttachment(100, 0); wWildcard.setLayoutData(fdWildcard); // Binary mode selection... wlBinaryMode=new Label(shell, SWT.RIGHT); wlBinaryMode.setText("Use binary mode? "); props.setLook(wlBinaryMode); fdlBinaryMode=new FormData(); fdlBinaryMode.left = new FormAttachment(0, 0); fdlBinaryMode.top = new FormAttachment(wWildcard, margin); fdlBinaryMode.right= new FormAttachment(middle, -margin); wlBinaryMode.setLayoutData(fdlBinaryMode); wBinaryMode=new Button(shell, SWT.CHECK); props.setLook(wBinaryMode); fdBinaryMode=new FormData(); fdBinaryMode.left = new FormAttachment(middle, 0); fdBinaryMode.top = new FormAttachment(wWildcard, margin); fdBinaryMode.right= new FormAttachment(100, 0); wBinaryMode.setLayoutData(fdBinaryMode); // Timeout line wlTimeout=new Label(shell, SWT.RIGHT); wlTimeout.setText("Timeout"); props.setLook(wlTimeout); fdlTimeout=new FormData(); fdlTimeout.left = new FormAttachment(0, 0); fdlTimeout.top = new FormAttachment(wlBinaryMode, margin); fdlTimeout.right= new FormAttachment(middle, -margin); wlTimeout.setLayoutData(fdlTimeout); wTimeout=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTimeout); wTimeout.addModifyListener(lsMod); fdTimeout=new FormData(); fdTimeout.left = new FormAttachment(middle, 0); fdTimeout.top = new FormAttachment(wlBinaryMode, margin); fdTimeout.right= new FormAttachment(100, 0); wTimeout.setLayoutData(fdTimeout); // Remove files after retrieval... wlRemove=new Label(shell, SWT.RIGHT); wlRemove.setText("Remove files after retrieval? "); props.setLook(wlRemove); fdlRemove=new FormData(); fdlRemove.left = new FormAttachment(0, 0); fdlRemove.top = new FormAttachment(wTimeout, margin); fdlRemove.right= new FormAttachment(middle, -margin); wlRemove.setLayoutData(fdlRemove); wRemove=new Button(shell, SWT.CHECK); props.setLook(wRemove); fdRemove=new FormData(); fdRemove.left = new FormAttachment(middle, 0); fdRemove.top = new FormAttachment(wTimeout, margin); fdRemove.right= new FormAttachment(100, 0); wRemove.setLayoutData(fdRemove); // OnlyNew files after retrieval... wlOnlyNew=new Label(shell, SWT.RIGHT); wlOnlyNew.setText("Don't overwrite files"); props.setLook(wlOnlyNew); fdlOnlyNew=new FormData(); fdlOnlyNew.left = new FormAttachment(0, 0); fdlOnlyNew.top = new FormAttachment(wRemove, margin); fdlOnlyNew.right= new FormAttachment(middle, -margin); wlOnlyNew.setLayoutData(fdlOnlyNew); wOnlyNew=new Button(shell, SWT.CHECK); props.setLook(wOnlyNew); fdOnlyNew=new FormData(); fdOnlyNew.left = new FormAttachment(middle, 0); fdOnlyNew.top = new FormAttachment(wRemove, margin); fdOnlyNew.right= new FormAttachment(100, 0); wOnlyNew.setLayoutData(fdOnlyNew); // active connection? wlActive=new Label(shell, SWT.RIGHT); wlActive.setText("Use active FTP connection"); props.setLook(wlActive); fdlActive=new FormData(); fdlActive.left = new FormAttachment(0, 0); fdlActive.top = new FormAttachment(wOnlyNew, margin); fdlActive.right= new FormAttachment(middle, -margin); wlActive.setLayoutData(fdlActive); wActive=new Button(shell, SWT.CHECK); props.setLook(wActive); fdActive=new FormData(); fdActive.left = new FormAttachment(middle, 0); fdActive.top = new FormAttachment(wOnlyNew, margin); fdActive.right= new FormAttachment(100, 0); wActive.setLayoutData(fdActive); wOK=new Button(shell, SWT.PUSH); wOK.setText(" &OK "); wCancel=new Button(shell, SWT.PUSH); wCancel.setText(" &Cancel "); BaseStepDialog.positionBottomButtons(shell, new Button[] { wOK, wCancel }, margin, wActive); // Add listeners lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; wCancel.addListener(SWT.Selection, lsCancel); wOK.addListener (SWT.Selection, lsOK ); lsDef=new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } }; wName.addSelectionListener( lsDef ); wServerName.addSelectionListener( lsDef ); wUserName.addSelectionListener( lsDef ); wPassword.addSelectionListener( lsDef ); wFtpDirectory.addSelectionListener( lsDef ); wTargetDirectory.addSelectionListener( lsDef ); wFtpDirectory.addSelectionListener( lsDef ); wWildcard.addSelectionListener( lsDef ); wTimeout.addSelectionListener( lsDef ); // Detect X or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } ); getData(); BaseStepDialog.setSize(shell); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return jobentry; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/8b5a47cfaf425f046f323ab394c6af5a964992bc/JobEntryFTPDialog.java/buggy/kettle/src/be/ibridge/kettle/job/entry/ftp/JobEntryFTPDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3956,
1622,
1358,
1696,
1435,
202,
95,
202,
202,
13220,
982,
273,
5089,
5621,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
5621,
3639,
5972,
273,
394,
19433,
12,
2938,
16,
348,
8588,
18,
2565,
18683,
67,
6566,
49,
571,
348,
8588,
18,
862,
4574,
571,
348,
8588,
18,
6694,
571,
348,
8588,
18,
6236,
1769,
3196,
202,
9693,
18,
542,
9794,
12,
10304,
1769,
202,
202,
11047,
2223,
7180,
1739,
273,
394,
9518,
2223,
1435,
3196,
202,
95,
1082,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
1875,
202,
95,
9506,
202,
4688,
4099,
18,
542,
5033,
5621,
1082,
202,
97,
202,
202,
20451,
202,
202,
6703,
273,
1719,
4099,
18,
5332,
5033,
5621,
202,
202,
1204,
3744,
646,
3744,
273,
394,
2748,
3744,
261,
1769,
202,
202,
687,
3744,
18,
10107,
2384,
225,
273,
9333,
18,
4983,
67,
19772,
7702,
31,
202,
202,
687,
3744,
18,
10107,
2686,
273,
9333,
18,
4983,
67,
19772,
7702,
31,
202,
202,
10304,
18,
542,
3744,
12,
687,
3744,
1769,
202,
202,
10304,
18,
542,
1528,
2932,
967,
1390,
635,
19324,
8863,
9506,
202,
474,
7689,
273,
3458,
18,
588,
21924,
52,
299,
5621,
202,
202,
474,
7333,
273,
9333,
18,
19772,
7702,
31,
202,
202,
759,
16671,
980,
202,
202,
21504,
461,
33,
2704,
5287,
12,
10304,
16,
348,
8588,
18,
11847,
1769,
202,
202,
21504,
461,
18,
542,
1528,
2932,
2278,
1241,
508,
315,
1769,
3196,
202,
9693,
18,
542,
9794,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3956,
1622,
1358,
1696,
1435,
202,
95,
202,
202,
13220,
982,
273,
5089,
5621,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
5621,
3639,
5972,
273,
394,
19433,
12,
2938,
16,
348,
8588,
18,
2565,
18683,
67,
6566,
49,
571,
348,
8588,
18,
862,
4574,
571,
348,
8588,
18,
6694,
571,
348,
8588,
18,
6236,
1769,
3196,
202,
9693,
18,
542,
9794,
12,
10304,
1769,
202,
202,
11047,
2223,
7180,
1739,
273,
394,
9518,
2223,
1435,
3196,
202,
95,
1082,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
1875,
202,
95,
9506,
202,
4688,
4099,
18,
542,
5033,
5621,
1082,
202,
97,
202,
202,
20451,
202,
202,
6703,
273,
1719,
4099,
18,
5332,
2
] |
Font descriptionFont = themeManager.getCurrentTheme().getFontRegistry().get(AbstractRepositoryTaskEditor.REPOSITORY_TEXT_ID); | Font descriptionFont = themeManager.getCurrentTheme().getFontRegistry().get( AbstractRepositoryTaskEditor.REPOSITORY_TEXT_ID); | protected void createDescriptionLayout(Composite composite) { FormToolkit toolkit = new FormToolkit(composite.getDisplay()); Section section = toolkit.createSection(composite, ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_SECTION_DESCRIPTION); section.setExpanded(true); section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); // section.addExpansionListener(new IExpansionListener() { // public void expansionStateChanging(ExpansionEvent e) { // form.reflow(true); // } // // public void expansionStateChanged(ExpansionEvent e) { // form.reflow(true); // } // }); // Description Area Composite descriptionComposite = toolkit.createComposite(composite); GridLayout descriptionLayout = new GridLayout(); descriptionLayout.numColumns = 4; descriptionComposite.setLayout(descriptionLayout);// descriptionComposite.setBackground(background); GridData descriptionData = new GridData(GridData.FILL_BOTH); descriptionData.horizontalSpan = 1; descriptionData.grabExcessVerticalSpace = false; descriptionComposite.setLayoutData(descriptionData); // End Description Area section.setClient(descriptionComposite); Composite descriptionTitleComposite = toolkit.createComposite(descriptionComposite, SWT.NONE); GridLayout descriptionTitleLayout = new GridLayout(); descriptionTitleLayout.horizontalSpacing = 0; descriptionTitleLayout.marginWidth = 0; descriptionTitleComposite.setLayout(descriptionTitleLayout);// descriptionTitleComposite.setBackground(background); GridData descriptionTitleData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); descriptionTitleData.horizontalSpan = 4; descriptionTitleData.grabExcessVerticalSpace = false; descriptionTitleComposite.setLayoutData(descriptionTitleData); newLayout(descriptionTitleComposite, 4, "Description:", HEADER).addListener(SWT.FocusIn, new DescriptionListener()); descriptionText = new Text(descriptionComposite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP); //descriptionText.setFont(COMMENT_FONT); IThemeManager themeManager = PlatformUI.getWorkbench().getThemeManager(); Font descriptionFont = themeManager.getCurrentTheme().getFontRegistry().get(AbstractRepositoryTaskEditor.REPOSITORY_TEXT_ID); descriptionText.setFont(descriptionFont); GridData descriptionTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); descriptionTextData.horizontalSpan = 4; descriptionTextData.widthHint = DESCRIPTION_WIDTH; descriptionTextData.heightHint = DESCRIPTION_HEIGHT; descriptionText.setLayoutData(descriptionTextData); descriptionText.setText(bug.getDescription()); descriptionText.addListener(SWT.KeyUp, new Listener() { public void handleEvent(Event event) { String sel = descriptionText.getText() + event.character; if (!(newDescription.equals(sel))) { newDescription = sel; changeDirtyStatus(true); } } }); descriptionText.addListener(SWT.FocusIn, new DescriptionListener()); super.descriptionTextBox = descriptionText; this.createSeparatorSpace(descriptionComposite); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/4cf07eeda3b1a1ac7650b983d89611be12f1c342/NewBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
752,
3291,
3744,
12,
9400,
9635,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
27676,
18,
588,
4236,
10663,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
27676,
16,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
13545,
67,
19082,
67,
15911,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
759,
2442,
18,
1289,
2966,
12162,
2223,
12,
2704,
467,
2966,
12162,
2223,
1435,
288,
202,
202,
759,
1071,
918,
17965,
1119,
782,
18183,
12,
2966,
12162,
1133,
425,
13,
288,
202,
202,
759,
646,
18,
1734,
821,
12,
3767,
1769,
202,
202,
759,
289,
202,
202,
759,
202,
202,
759,
1071,
918,
17965,
1119,
5033,
12,
2966,
12162,
1133,
425,
13,
288,
202,
202,
759,
646,
18,
1734,
821,
12,
3767,
1769,
202,
202,
759,
1082,
202,
97,
202,
202,
759,
202,
202,
22938,
6862,
9506,
202,
759,
6507,
16668,
202,
202,
9400,
2477,
9400,
273,
5226,
8691,
18,
2640,
9400,
12,
27676,
1769,
202,
202,
6313,
3744,
2477,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
3384,
3744,
18,
2107,
3380,
273,
1059,
31,
202,
202,
3384,
9400,
18,
542,
3744,
12,
3384,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3291,
3744,
12,
9400,
9635,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
27676,
18,
588,
4236,
10663,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
27676,
16,
16429,
429,
9400,
18,
14123,
67,
21908,
571,
10092,
18,
18869,
5511,
8732,
1769,
202,
202,
3464,
18,
542,
1528,
12,
13545,
67,
19082,
67,
15911,
1769,
202,
202,
3464,
18,
542,
17957,
12,
3767,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
10019,
202,
202,
759,
2442,
18,
1289,
2966,
12162,
2223,
2
] |
this.loadUnit( entity, loaded ); | loadUnit( entity, loaded ); | private void processDeployment(Entity entity, Coords coords, int nFacing, Vector loadVector, boolean assaultDrop) { for (Enumeration i = loadVector.elements(); i.hasMoreElements();) { Entity loaded = (Entity)i.nextElement(); if ( loaded == null || loaded.getPosition() != null || loaded.getTransportId() != Entity.NONE ) { // Something is fishy in Denmark. System.err.println("error: " + entity + " can not load entity #" + loaded ); break; } else { // Have the deployed unit load the indicated unit. this.loadUnit( entity, loaded ); } } entity.setPosition(coords); entity.setFacing(nFacing); entity.setSecondaryFacing(nFacing); IHex hex = game.getBoard().getHex(coords); if(assaultDrop) { entity.setElevation(hex.ceiling() - hex.surface() + 100); //falling from the sky! entity.setAssaultDropInProgress(true); } else if (entity instanceof VTOL) { // We should let players pick, but this simplifies a lot. // Only do it for VTOLs, though; assume everything else is on the ground. entity.setElevation(hex.ceiling()-hex.surface()+1); while ((Compute.stackingViolation(game, entity, coords, null) != null) && (entity.getElevation() <= 50)) { entity.setElevation(entity.getElevation() + 1); } if (entity.getElevation() > 50) { throw new IllegalStateException("Entity #" + entity.getId() + " appears to be in an infinite loop trying to get a legal elevation."); } } else if (entity.getMovementMode() == IEntityMovementMode.SUBMARINE) { // TODO: Submarines should have a selectable height. // For now, pretend they're regular naval. entity.setElevation(0); } else if ((entity.getMovementMode() == IEntityMovementMode.HOVER) || (entity.getMovementMode() == IEntityMovementMode.NAVAL) || (entity.getMovementMode() == IEntityMovementMode.HYDROFOIL)) { // For now, assume they're on the surface. // entity elevation is relative to hex surface entity.setElevation(0); } else if (hex.containsTerrain(Terrains.ICE) || hex.containsTerrain(Terrains.BRIDGE)) { entity.setElevation(0); } else { // For anything else, assume they're on the floor. // entity elevation is relative to hex surface entity.setElevation(hex.floor()-hex.surface()); } entity.setDone(true); entity.setDeployed(true); entityUpdate(entity.getId()); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/c2a90fca192b338ebf5162499c52b535aed6382b/Server.java/clean/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
6733,
12,
1943,
1522,
16,
10320,
87,
6074,
16,
509,
290,
42,
5330,
16,
5589,
1262,
5018,
16,
1250,
1551,
3714,
7544,
13,
288,
3639,
364,
261,
21847,
277,
273,
1262,
5018,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
3887,
4203,
273,
261,
1943,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
4203,
422,
446,
747,
4203,
18,
588,
2555,
1435,
480,
446,
747,
1171,
4203,
18,
588,
6568,
548,
1435,
480,
3887,
18,
9826,
262,
288,
7734,
368,
29116,
353,
284,
1468,
93,
316,
22453,
3355,
18,
7734,
2332,
18,
370,
18,
8222,
2932,
1636,
30,
315,
397,
1522,
397,
315,
848,
486,
1262,
1522,
31526,
397,
4203,
11272,
7734,
898,
31,
5411,
289,
5411,
469,
288,
7734,
368,
21940,
326,
19357,
2836,
1262,
326,
17710,
2836,
18,
7734,
1262,
2802,
12,
1522,
16,
4203,
11272,
5411,
289,
3639,
289,
3639,
1522,
18,
542,
2555,
12,
9076,
1769,
3639,
1522,
18,
542,
42,
5330,
12,
82,
42,
5330,
1769,
3639,
1522,
18,
542,
14893,
42,
5330,
12,
82,
42,
5330,
1769,
3639,
467,
7037,
3827,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
9076,
1769,
3639,
309,
12,
428,
3714,
7544,
13,
288,
5411,
1522,
18,
542,
17274,
7112,
12,
7118,
18,
311,
4973,
1435,
300,
3827,
18,
18266,
1435,
397,
2130,
1769,
368,
25602,
310,
628,
326,
15513,
5,
5411,
1522,
18,
542,
2610,
3714,
7544,
13434,
12,
3767,
1769,
3639,
289,
469,
309,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
6733,
12,
1943,
1522,
16,
10320,
87,
6074,
16,
509,
290,
42,
5330,
16,
5589,
1262,
5018,
16,
1250,
1551,
3714,
7544,
13,
288,
3639,
364,
261,
21847,
277,
273,
1262,
5018,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
3887,
4203,
273,
261,
1943,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
4203,
422,
446,
747,
4203,
18,
588,
2555,
1435,
480,
446,
747,
1171,
4203,
18,
588,
6568,
548,
1435,
480,
3887,
18,
9826,
262,
288,
7734,
368,
29116,
353,
284,
1468,
93,
316,
22453,
3355,
18,
7734,
2332,
18,
370,
18,
8222,
2932,
1636,
30,
315,
397,
1522,
397,
315,
848,
486,
1262,
1522,
31526,
397,
4203,
2
] |
outBuff.append("=== Stratified cross-validation ===\n"); | if (inst.attribute(classIndex).isNominal()) { outBuff.append("=== Stratified cross-validation ===\n"); } else { outBuff.append("=== Cross-validation ===\n"); } | protected void startClassifier() { if (m_RunThread == null) { m_StartBut.setEnabled(false); m_StopBut.setEnabled(true); m_RunThread = new Thread() { public void run() { // Copy the current state of things m_Log.statusMessage("Setting up..."); Instances inst = new Instances(m_Instances); Instances userTest = null; if (m_TestInstances != null) { userTest = new Instances(m_TestInstances); } int testMode = 0; int numFolds = 10, percent = 66; int classIndex = m_ClassCombo.getSelectedIndex(); Classifier classifier = (Classifier) m_ClassifierEditor.getValue(); StringBuffer outBuff = new StringBuffer(); String name = (new SimpleDateFormat("HH:mm:ss - ")) .format(new Date()); String cname = classifier.getClass().getName(); if (cname.startsWith("weka.classifiers.")) { name += cname.substring("weka.classifiers.".length()); } else { name += cname; } try { if (m_CVBut.isSelected()) { testMode = 1; numFolds = Integer.parseInt(m_CVText.getText()); if (numFolds <= 1) { throw new Exception("Number of folds must be greater than 1"); } } else if (m_PercentBut.isSelected()) { testMode = 2; percent = Integer.parseInt(m_PercentText.getText()); if ((percent <= 0) || (percent >= 100)) { throw new Exception("Percentage must be between 0 and 100"); } } else if (m_TrainBut.isSelected()) { testMode = 3; } else if (m_TestSplitBut.isSelected()) { testMode = 4; // Check the test instance compatibility if (userTest == null) { throw new Exception("No user test set has been opened"); } if (!inst.equalHeaders(userTest)) { throw new Exception("Train and test set are not compatible"); } userTest.setClassIndex(classIndex); } else { throw new Exception("Unknown test mode"); } inst.setClassIndex(classIndex); // Output some header information m_Log.logMessage("Started " + cname); outBuff.append("=== Run information ===\n\n"); outBuff.append("Scheme: " + cname); if (classifier instanceof OptionHandler) { String [] o = ((OptionHandler) classifier).getOptions(); outBuff.append(" " + Utils.joinOptions(o)); } outBuff.append("\n"); outBuff.append("Relation: " + inst.relationName() + '\n'); outBuff.append("Instances: " + inst.numInstances() + '\n'); outBuff.append("Attributes: " + inst.numAttributes() + '\n'); for (int i = 0; i < inst.numAttributes(); i++) { outBuff.append(" " + inst.attribute(i).name() + '\n'); } outBuff.append("Test mode: "); switch (testMode) { case 3: // Test on training outBuff.append("evaluate on training data\n"); break; case 1: // CV mode outBuff.append("" + numFolds + "-fold cross-validation\n"); break; case 2: // Percent split outBuff.append("split " + percent + "% train, remainder test\n"); break; case 4: // Test on user split outBuff.append("user supplied test set: " + userTest.numInstances() + " instances\n"); break; } outBuff.append("\n"); m_History.addResult(name, outBuff); m_History.setSingle(name); // Build the model and output it. m_Log.statusMessage("Building model on training data..."); classifier.buildClassifier(inst); outBuff.append("=== Classifier model (full training set) ===\n\n"); outBuff.append(classifier.toString() + '\n'); m_History.updateResult(name); Evaluation eval = null; switch (testMode) { case 3: // Test on training m_Log.statusMessage("Evaluating on training data..."); eval = new Evaluation(inst); eval.evaluateModel(classifier, inst); outBuff.append("=== Evaluation on training set ===\n"); break; case 1: // CV mode m_Log.statusMessage("Randomizing instances..."); inst.randomize(new Random(42)); if (inst.attribute(classIndex).isNominal()) { m_Log.statusMessage("Stratifying instances..."); inst.stratify(numFolds); } eval = new Evaluation(inst); // Make some splits and do a CV for (int fold = 0; fold < numFolds; fold++) { m_Log.statusMessage("Creating splits for fold " + (fold + 1) + "..."); Instances train = inst.trainCV(numFolds, fold); Instances test = inst.testCV(numFolds, fold); m_Log.statusMessage("Building model for fold " + (fold + 1) + "..."); classifier.buildClassifier(train); m_Log.statusMessage("Evaluating model for fold " + (fold + 1) + "..."); eval.evaluateModel(classifier, test); } outBuff.append("=== Stratified cross-validation ===\n"); break; case 2: // Percent split m_Log.statusMessage("Randomizing instances..."); inst.randomize(new Random(42)); int trainSize = inst.numInstances() * percent / 100; int testSize = inst.numInstances() - trainSize; Instances train = new Instances(inst, 0, trainSize); Instances test = new Instances(inst, trainSize, testSize); m_Log.statusMessage("Building model on training split..."); classifier.buildClassifier(train); eval = new Evaluation(train); m_Log.statusMessage("Evaluating on test split..."); eval.evaluateModel(classifier, test); outBuff.append("=== Evaluation on test split ===\n"); break; case 4: // Test on user split m_Log.statusMessage("Evaluating on test data..."); eval = new Evaluation(inst); eval.evaluateModel(classifier, userTest); outBuff.append("=== Evaluation on test set ===\n"); break; default: throw new Exception("Test mode not implemented"); } outBuff.append(eval.toSummaryString()); if (inst.attribute(classIndex).isNominal()) { outBuff.append("\n\n"); outBuff.append(eval.toClassDetailsString()); outBuff.append("\n\n"); outBuff.append(eval.toMatrixString()); } outBuff.append("\n"); m_History.updateResult(name); m_Log.logMessage("Finished " + cname); m_Log.statusMessage("OK"); } catch (Exception ex) { m_Log.logMessage(ex.getMessage()); m_Log.statusMessage("See error log"); } finally { if (isInterrupted()) { m_Log.logMessage("Interrupted " + cname); m_Log.statusMessage("See error log"); } m_RunThread = null; m_StartBut.setEnabled(true); m_StopBut.setEnabled(false); } } }; m_RunThread.setPriority(Thread.MIN_PRIORITY); m_RunThread.start(); } } | 4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/a7b779046512ca4f12e735bde0d864213796cd52/ClassifierPanel.java/buggy/weka/gui/explorer/ClassifierPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
787,
13860,
1435,
288,
565,
309,
261,
81,
67,
1997,
3830,
422,
446,
13,
288,
1377,
312,
67,
1685,
31167,
18,
542,
1526,
12,
5743,
1769,
1377,
312,
67,
4947,
31167,
18,
542,
1526,
12,
3767,
1769,
1377,
312,
67,
1997,
3830,
273,
394,
4884,
1435,
288,
202,
482,
918,
1086,
1435,
288,
202,
225,
368,
5631,
326,
783,
919,
434,
9198,
202,
225,
312,
67,
1343,
18,
2327,
1079,
2932,
5568,
731,
7070,
1769,
202,
225,
18357,
1804,
273,
394,
18357,
12,
81,
67,
5361,
1769,
202,
225,
18357,
729,
4709,
273,
446,
31,
202,
225,
309,
261,
81,
67,
4709,
5361,
480,
446,
13,
288,
202,
565,
729,
4709,
273,
394,
18357,
12,
81,
67,
4709,
5361,
1769,
202,
225,
289,
202,
225,
509,
1842,
2309,
273,
374,
31,
202,
225,
509,
818,
15592,
87,
273,
1728,
16,
5551,
273,
22342,
31,
202,
225,
509,
667,
1016,
273,
312,
67,
797,
16156,
18,
588,
7416,
1016,
5621,
202,
225,
1659,
1251,
14622,
273,
261,
13860,
13,
312,
67,
13860,
6946,
18,
24805,
5621,
202,
225,
6674,
596,
10642,
273,
394,
6674,
5621,
202,
225,
514,
508,
273,
261,
2704,
17005,
2932,
17500,
30,
7020,
30,
1049,
300,
315,
3719,
202,
225,
263,
2139,
12,
2704,
2167,
10663,
202,
225,
514,
18290,
273,
14622,
18,
588,
797,
7675,
17994,
5621,
202,
225,
309,
261,
71,
529,
18,
17514,
1190,
2932,
1814,
7282,
18,
1106,
3383,
1199,
3719,
288,
202,
565,
508,
1011,
18290,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
787,
13860,
1435,
288,
565,
309,
261,
81,
67,
1997,
3830,
422,
446,
13,
288,
1377,
312,
67,
1685,
31167,
18,
542,
1526,
12,
5743,
1769,
1377,
312,
67,
4947,
31167,
18,
542,
1526,
12,
3767,
1769,
1377,
312,
67,
1997,
3830,
273,
394,
4884,
1435,
288,
202,
482,
918,
1086,
1435,
288,
202,
225,
368,
5631,
326,
783,
919,
434,
9198,
202,
225,
312,
67,
1343,
18,
2327,
1079,
2932,
5568,
731,
7070,
1769,
202,
225,
18357,
1804,
273,
394,
18357,
12,
81,
67,
5361,
1769,
202,
225,
18357,
729,
4709,
273,
446,
31,
202,
225,
309,
261,
81,
67,
4709,
5361,
480,
446,
13,
288,
202,
565,
729,
4709,
273,
394,
18357,
12,
81,
2
] |
PortletURL portletURI = res.createRenderURL(); | PortletURL portletURI = res.createActionURL(); | public void doRender(GridSphereEvent event) { super.doRender(event); RenderRequest req = event.getRenderRequest(); RenderResponse res = event.getRenderResponse(); // check permissions if (!requiredRoleName.equals("") && (!req.isUserInRole(requiredRoleName))) return; if (!requiredRoleName.equals("")) return; req.setAttribute(SportletProperties.PORTLET_WINDOW_ID, windowId); if (req.getAttribute(SportletProperties.LAYOUT_EDIT_MODE) != null) { StringBuffer content = new StringBuffer(); PortletURL portletURI = res.createRenderURL(); String link = portletURI.toString(); content.append("<br/><fieldset><a href=\"" + link + "\">" + portletName + "</a></fieldset>"); setBufferedOutput(req, content); return; } // check for render params if (onlyRender) { if ((event.getComponentID().equals(componentIDStr))) { addRenderParams(event.getHttpServletRequest()); } } onlyRender = true; String id = req.getPortletSession(true).getId(); StringBuffer frame = (StringBuffer) cacheService.getCached(this.getComponentID() + portletClass + id); String nocache = (String) req.getAttribute(CacheService.NO_CACHE); if ((frame != null) && (nocache == null)) { setBufferedOutput(req, frame); return; } frame = new StringBuffer(); req.setAttribute(SportletProperties.PORTLETID, portletClass); StringBuffer preframe = frameView.doStart(event, this); StringBuffer postframe = new StringBuffer(); // Render title bar if (!transparent) { titleBar.doRender(event); } else { req.setAttribute(SportletProperties.PORTLET_MODE, titleBar.getPortletMode()); req.setAttribute(SportletProperties.PREVIOUS_MODE, titleBar.getPreviousMode()); req.setAttribute(SportletProperties.PORTLET_WINDOW, titleBar.getWindowState()); } super.doRender(event); if (req.getAttribute(SportletProperties.RESPONSE_COMMITTED) != null) { renderPortlet = false; } String appID = portletRegistryService.getApplicationPortletID(portletClass); ApplicationPortlet appPortlet = portletRegistryService.getApplicationPortlet(appID); if (appPortlet != null) { Set<String> supportedModes = appPortlet.getSupportedModes(event.getClient().getMimeType()); SortedSet<String> mimeTypes = appPortlet.getSupportedMimeTypes(req.getPortletMode()); req.setAttribute(SportletProperties.ALLOWED_MODES, supportedModes); req.setAttribute(SportletProperties.MIME_TYPES, mimeTypes); } req.setAttribute(SportletProperties.PORTLET_WINDOW_ID, windowId); StringWriter storedWriter = new StringWriter(); PrintWriter writer = new PrintWriter(storedWriter); if (renderPortlet) { if (!transparent) { postframe.append(titleBar.getBufferedOutput(req)); } postframe.append(frameView.doStartBorder(event, this)); RenderResponse wrappedResponse = new StoredPortletResponseImpl(event.getHttpServletRequest(), event.getHttpServletResponse(), writer); if (isClosing) { postframe.append(frameView.doRenderCloseFrame(event, this)); } else { //System.err.println("in portlet frame render: class= " + portletClass + " setting prev mode= " + req.getPreviousMode() + " cur mode= " + req.getMode()); if (hasError(req)) { doRenderError(req, wrappedResponse); postframe.append(storedWriter.toString()); } else if ((titleBar != null) && (titleBar.hasRenderError())) { postframe.append(titleBar.getErrorMessage()); } else { try { if (!renderParams.isEmpty()) { //System.err.println("PortletFrame: in " + portletClass + " sending render params"); //System.err.println("in render " + portletClass + " there are render params in the frame setting in request! key= " + SportletProperties.RENDER_PARAM_PREFIX + portletClass + "_" + componentIDStr); req.setAttribute(SportletProperties.RENDER_PARAM_PREFIX + portletClass + "_" + componentIDStr, renderParams); } //req.removeAttribute(SportletProperties.IGNORE_PARAM_PARSING); portletInvoker.service((String)req.getAttribute(SportletProperties.PORTLETID), (HttpServletRequest)req, (HttpServletResponse)wrappedResponse); //req.setAttribute(SportletProperties.IGNORE_PARAM_PARSING, "true"); lastFrame = storedWriter.toString(); postframe.append(lastFrame); } catch (Exception e) { doRenderError(req, wrappedResponse); postframe.append(storedWriter.toString()); } } } postframe.append(frameView.doEndBorder(event, this)); } else { postframe.append(frameView.doRenderMinimizeFrame(event, this)); } postframe.append(frameView.doEnd(event, this)); if (req.getAttribute(SportletProperties.RESPONSE_COMMITTED) != null) { renderPortlet = true; } // piece together portlet frame + title depending on whether title was set during doXXX method // or not frame.append(preframe); if (!transparent) { String titleStr = (String) req.getAttribute(SportletProperties.PORTLET_TITLE); if (titleStr == null) { titleStr = titleBar.getTitle(); } frame.append(titleBar.getPreBufferedTitle(req)); frame.append(titleStr); frame.append(titleBar.getPostBufferedTitle(req)); } req.removeAttribute(SportletProperties.PORTLET_TITLE); frame.append(postframe); setBufferedOutput(req, frame); // check if expiration was set in render response Map props = (Map)req.getAttribute(SportletProperties.PORTAL_PROPERTIES); if (props != null) { List vals = (List)props.get(RenderResponse.EXPIRATION_CACHE); if (vals != null) { String cacheExpiryStr = (String)vals.get(0); if (cacheExpiryStr != null) { try { cacheExpiration = Integer.valueOf(cacheExpiryStr).intValue(); } catch (IllegalArgumentException e) { // do nothing } } } } if (nocache == null) { if ((cacheExpiration > 0) || (cacheExpiration == -1)) { cacheService.cache(this.getComponentID() + portletClass + id, frame, cacheExpiration); } } } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/aa6301406890f534d5ab23f40ef4cfc7255b48d0/PortletFrame.java/buggy/src/org/gridsphere/layout/PortletFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3420,
12,
6313,
22747,
1133,
871,
13,
288,
3639,
2240,
18,
2896,
3420,
12,
2575,
1769,
3639,
6987,
691,
1111,
273,
871,
18,
588,
3420,
691,
5621,
3639,
6987,
1064,
400,
273,
871,
18,
588,
3420,
1064,
5621,
3639,
368,
866,
4371,
3639,
309,
16051,
4718,
31278,
18,
14963,
2932,
7923,
597,
16051,
3658,
18,
291,
1299,
382,
2996,
12,
4718,
31278,
20349,
327,
31,
3639,
309,
16051,
4718,
31278,
18,
14963,
2932,
6,
3719,
327,
31,
3639,
1111,
18,
542,
1499,
12,
55,
655,
1810,
2297,
18,
6354,
15146,
67,
23407,
67,
734,
16,
2742,
548,
1769,
3639,
309,
261,
3658,
18,
588,
1499,
12,
55,
655,
1810,
2297,
18,
7868,
5069,
67,
10776,
67,
7038,
13,
480,
446,
13,
288,
5411,
6674,
913,
273,
394,
6674,
5621,
7734,
21305,
1785,
13114,
3098,
273,
400,
18,
2640,
1803,
1785,
5621,
7734,
514,
1692,
273,
13114,
3098,
18,
10492,
5621,
7734,
913,
18,
6923,
2932,
32,
2848,
19,
4438,
23397,
4438,
69,
3897,
13186,
397,
1692,
397,
7023,
2984,
397,
13114,
461,
397,
6823,
69,
4695,
23397,
2984,
1769,
7734,
444,
17947,
1447,
12,
3658,
16,
913,
1769,
15604,
327,
31,
3639,
289,
3639,
368,
866,
364,
1743,
859,
3639,
309,
261,
3700,
3420,
13,
225,
288,
5411,
309,
14015,
2575,
18,
588,
1841,
734,
7675,
14963,
12,
4652,
734,
1585,
20349,
288,
7734,
527,
3420,
1370,
12,
2575,
18,
588,
2940,
18572,
10663,
5411,
289,
3639,
289,
3639,
1338,
3420,
273,
638,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
3420,
12,
6313,
22747,
1133,
871,
13,
288,
3639,
2240,
18,
2896,
3420,
12,
2575,
1769,
3639,
6987,
691,
1111,
273,
871,
18,
588,
3420,
691,
5621,
3639,
6987,
1064,
400,
273,
871,
18,
588,
3420,
1064,
5621,
3639,
368,
866,
4371,
3639,
309,
16051,
4718,
31278,
18,
14963,
2932,
7923,
597,
16051,
3658,
18,
291,
1299,
382,
2996,
12,
4718,
31278,
20349,
327,
31,
3639,
309,
16051,
4718,
31278,
18,
14963,
2932,
6,
3719,
327,
31,
3639,
1111,
18,
542,
1499,
12,
55,
655,
1810,
2297,
18,
6354,
15146,
67,
23407,
67,
734,
16,
2742,
548,
1769,
3639,
309,
261,
3658,
18,
588,
1499,
12,
55,
655,
1810,
2297,
18,
7868,
5069,
67,
10776,
2
] |
case 346 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } | case 347 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } | protected void consumeRule(int act) { switch ( act ) { case 26 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 40 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 44 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 45 : if (DEBUG) { System.out.println("ClassOrInterface ::= ClassOrInterface TypeArguments DOT"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 46 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= ClassOrInterface..."); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 47 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 48 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 49 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 50 : if (DEBUG) { System.out.println("ArrayType ::= ClassOrInterface TypeArguments Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 55 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 56 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 57 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 58 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 59 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 60 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 65 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 66 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 77 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 79 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 81 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 82 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 83 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 84 : if (DEBUG) { System.out.println("PackageDeclarationName ::= package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 89 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 90 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 91 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 92 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 95 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 99 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 112 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 113 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 114 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 116 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 117 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 118 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 120 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 121 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 124 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 128 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 129 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 130 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 136 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 139 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 141 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 144 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 145 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 146 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 147 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 148 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 153 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 154 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 155 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 156 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(); break; case 157 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(); break; case 158 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 159 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 160 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 161 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 162 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 163 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 165 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 166 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 167 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 169 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 170 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 171 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 172 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 173 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 174 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 175 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 176 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 177 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,ExplicitConstructorCall.This); break; case 178 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,ExplicitConstructorCall.This); break; case 179 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,ExplicitConstructorCall.Super); break; case 180 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,ExplicitConstructorCall.Super); break; case 181 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, ExplicitConstructorCall.Super); break; case 182 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, ExplicitConstructorCall.Super); break; case 183 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, ExplicitConstructorCall.Super); break; case 184 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, ExplicitConstructorCall.Super); break; case 185 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, ExplicitConstructorCall.This); break; case 186 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, ExplicitConstructorCall.This); break; case 187 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, ExplicitConstructorCall.This); break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, ExplicitConstructorCall.This); break; case 189 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 190 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 191 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 193 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 195 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 198 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 199 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 202 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); } //$NON-NLS-1$ ignoreMethodBody(); break; case 203 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(true); break; case 204 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(false); break; case 210 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 211 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 212 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 213 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 215 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 216 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 217 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 219 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 223 : if (DEBUG) { System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); } //$NON-NLS-1$ ignoreInterfaceDeclaration(); break; case 224 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 225 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 226 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 227 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 228 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 254 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 255 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 256 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 257 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 266 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 267 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 268 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 269 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 270 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 273 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 275 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 276 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 278 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 279 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 280 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 281 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 282 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 283 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 284 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 285 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 286 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 290 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 291 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 292 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 293 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 294 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 295 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 296 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 297 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 298 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 299 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 300 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 301 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 302 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 304 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 306 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 307 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 309 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 310 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 315 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 316 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 317 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 320 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 321 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 322 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 323 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 324 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 325 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 328 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 329 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 330 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 331 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 332 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 333 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 334 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 335 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 336 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 338 : if (DEBUG) { System.out.println("ClassBodySimpleNameopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 340 : if (DEBUG) { System.out.println("EnterAnonymousClassBodySimpleName ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBodySimpleName(); break; case 341 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 343 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 344 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 345 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 346 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 347 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 348 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 349 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 351 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 353 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 354 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 357 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 358 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 359 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 360 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 361 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 362 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 363 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 364 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 365 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 366 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 367 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 368 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 370 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 373 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 374 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 375 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 378 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 379 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 381 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 382 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 384 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 385 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 387 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 388 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 389 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 390 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 391 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 392 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 393 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 394 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 395 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 397 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 398 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 399 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 401 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 402 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 404 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 405 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 406 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 408 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 409 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 410 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 411 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 413 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 415 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 416 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 418 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 420 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 422 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 424 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 426 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 428 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 431 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 433 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 434 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 435 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 436 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 437 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 438 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 439 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 440 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 441 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 442 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 443 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 444 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 445 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 449 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 454 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 455 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 456 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 457 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 458 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 460 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 462 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 466 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 470 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 471 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 472 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 473 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 475 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 479 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 481 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 482 : if (DEBUG) { System.out.println("EnumHeader ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 483 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 484 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 485 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 486 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 488 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 489 : if (DEBUG) { System.out.println("EnumConstantHeader ::= Identifier Argumentsopt"); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 490 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ClassBody"); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 491 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 492 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 493 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 496 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 498 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 499 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 500 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(false); break; case 501 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Modifiers Type"); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(true); break; case 502 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 503 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 504 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 505 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 506 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 507 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 509 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 511 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 512 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 516 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 517 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 519 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 522 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 523 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 525 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 528 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 529 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 530 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 531 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 532 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 533 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 534 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 535 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 536 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 537 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 538 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 539 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 540 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 541 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 542 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 543 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 544 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 545 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 546 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 548 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 550 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 551 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 553 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 554 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 556 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 557 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 558 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 559 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 561 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 562 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 568 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 569 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 572 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 573 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 576 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 577 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 578 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 579 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 580 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 581 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 583 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 584 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 585 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 586 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 588 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 589 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 590 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 591 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 592 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 593 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 595 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 596 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 597 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 598 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 599 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 600 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 601 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 602 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 604 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); break; case 605 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 607 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 608 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 609 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 610 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 612 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 613 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 615 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 616 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 618 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 619 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 621 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 622 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 624 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 625 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 627 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 628 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 632 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 633 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= AT PushModifiers..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 634 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 636 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 639 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 640 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationHeader ::= Modifiersopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationHeader() ; break; case 641 : if (DEBUG) { System.out.println("AnnotationTypeMemberHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberHeaderExtendedDims() ; break; case 642 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 645 : if (DEBUG) { System.out.println("DefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyDefaultValue() ; break; case 651 : if (DEBUG) { System.out.println("NormalAnnotation ::= AT Name LPAREN MemberValuePairsopt"); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 652 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 655 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 656 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL MemberValue"); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 660 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 661 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 662 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 663 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 665 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 666 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AT Name"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 667 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AT Name LPAREN MemberValue..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/dbf6159f53c99cb12512816667012e5ec1fdc250/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
10659,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
8063,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
13291,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
24730,
5621,
565,
1082,
202,
8820,
31,
377,
648,
12292,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
1659,
1162,
1358,
1412,
4628,
15772,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
1358,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17077,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
27182,
1190,
23690,
461,
493,
33,
1659,
1162,
1358,
7070,
1769,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
27182,
1190,
23690,
461,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17495,
294,
309,
261,
9394,
13,
288,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
10659,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
8063,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
13291,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
2
] |
return ">SUB_MAX_PING_TIME ("+TimeUtil.formatTime((long)pingTime, 2, true)+")"; | return ">SUB_MAX_PING_TIME ("+TimeUtil.formatTime((long)pingTime, 2, true)+ ')'; | public String shouldRejectRequest(boolean canAcceptAnyway, boolean isInsert, boolean isSSK) { if(logMINOR) dumpByteCostAverages(); if(isInsert) { if(getNumInserts() > MAX_RUNNING_INSERTS) return "Too many running inserts"; } else { if(getNumRequests() > MAX_RUNNING_REQUESTS) return "Too many running requests"; } double bwlimitDelayTime = throttledPacketSendAverage.currentValue(); // If no recent reports, no packets have been sent; correct the average downwards. long now = System.currentTimeMillis(); boolean checkUncontended = false; synchronized(this) { if(now - lastCheckedUncontended > 1000) { checkUncontended = true; lastCheckedUncontended = now; } } if(checkUncontended && throttledPacketSendAverage.lastReportTime() < now - 5000) { // if last report more than 5 seconds ago // shouldn't take long outputThrottle.blockingGrab(ESTIMATED_SIZE_OF_ONE_THROTTLED_PACKET); outputThrottle.recycle(ESTIMATED_SIZE_OF_ONE_THROTTLED_PACKET); long after = System.currentTimeMillis(); // Report time it takes to grab the bytes. throttledPacketSendAverage.report(after - now); now = after; // will have changed, use new value synchronized(this) { bwlimitDelayTime = throttledPacketSendAverage.currentValue(); } } double pingTime = nodePinger.averagePingTime(); synchronized(this) { // Round trip time if(pingTime > MAX_PING_TIME) { if((now - lastAcceptedRequest > MAX_INTERREQUEST_TIME) && canAcceptAnyway) { if(logMINOR) Logger.minor(this, "Accepting request anyway (take one every 10 secs to keep bwlimitDelayTime updated)"); } else { pInstantRejectIncoming.report(1.0); return ">MAX_PING_TIME ("+TimeUtil.formatTime((long)pingTime, 2, true)+")"; } } else if(pingTime > SUB_MAX_PING_TIME) { double x = ((double)(pingTime - SUB_MAX_PING_TIME)) / (MAX_PING_TIME - SUB_MAX_PING_TIME); if(random.nextDouble() < x) { pInstantRejectIncoming.report(1.0); return ">SUB_MAX_PING_TIME ("+TimeUtil.formatTime((long)pingTime, 2, true)+")"; } } // Bandwidth limited packets if(bwlimitDelayTime > MAX_THROTTLE_DELAY) { if((now - lastAcceptedRequest > MAX_INTERREQUEST_TIME) && canAcceptAnyway) { if(logMINOR) Logger.minor(this, "Accepting request anyway (take one every 10 secs to keep bwlimitDelayTime updated)"); } else { pInstantRejectIncoming.report(1.0); return ">MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+")"; } } else if(bwlimitDelayTime > SUB_MAX_THROTTLE_DELAY) { double x = ((double)(bwlimitDelayTime - SUB_MAX_THROTTLE_DELAY)) / (MAX_THROTTLE_DELAY - SUB_MAX_THROTTLE_DELAY); if(random.nextDouble() < x) { pInstantRejectIncoming.report(1.0); return ">SUB_MAX_THROTTLE_DELAY ("+TimeUtil.formatTime((long)bwlimitDelayTime, 2, true)+")"; } } } // Do we have the bandwidth? double expected = (isInsert ? (isSSK ? this.remoteSskInsertBytesSentAverage : this.remoteChkInsertBytesSentAverage) : (isSSK ? this.remoteSskFetchBytesSentAverage : this.remoteChkFetchBytesSentAverage)).currentValue(); int expectedSent = (int)Math.max(expected, 0); if(!requestOutputThrottle.instantGrab(expectedSent)) { pInstantRejectIncoming.report(1.0); return "Insufficient output bandwidth"; } expected = (isInsert ? (isSSK ? this.remoteSskInsertBytesReceivedAverage : this.remoteChkInsertBytesReceivedAverage) : (isSSK ? this.remoteSskFetchBytesReceivedAverage : this.remoteChkFetchBytesReceivedAverage)).currentValue(); int expectedReceived = (int)Math.max(expected, 0); if(!requestInputThrottle.instantGrab(expectedReceived)) { requestOutputThrottle.recycle(expectedSent); pInstantRejectIncoming.report(1.0); return "Insufficient input bandwidth"; } synchronized(this) { if(logMINOR) Logger.minor(this, "Accepting request?"); lastAcceptedRequest = now; } pInstantRejectIncoming.report(0.0); // Accept return null; } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/62fd59041864b4ed1f43adc676de6bfb5ea977f3/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1410,
21705,
691,
12,
6494,
848,
5933,
2961,
1888,
16,
1250,
353,
4600,
16,
1250,
353,
1260,
47,
13,
288,
202,
202,
430,
12,
1330,
6236,
916,
13,
4657,
3216,
8018,
37,
502,
1023,
5621,
9506,
202,
430,
12,
291,
4600,
13,
288,
1082,
202,
430,
12,
588,
2578,
14214,
1435,
405,
4552,
67,
29358,
67,
706,
2123,
8047,
13,
9506,
202,
2463,
315,
10703,
4906,
3549,
15607,
14432,
202,
202,
97,
469,
288,
1082,
202,
430,
12,
588,
2578,
6421,
1435,
405,
4552,
67,
29358,
67,
5519,
55,
13,
9506,
202,
2463,
315,
10703,
4906,
3549,
3285,
14432,
202,
202,
97,
9506,
202,
9056,
12986,
3595,
6763,
950,
273,
27335,
6667,
3826,
17115,
18,
2972,
620,
5621,
9506,
202,
759,
971,
1158,
8399,
10557,
16,
1158,
12640,
1240,
2118,
3271,
31,
3434,
326,
8164,
2588,
6397,
18,
202,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
6494,
866,
984,
1213,
3934,
273,
629,
31,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12,
3338,
300,
1142,
11454,
984,
1213,
3934,
405,
4336,
13,
288,
9506,
202,
1893,
984,
1213,
3934,
273,
638,
31,
9506,
202,
2722,
11454,
984,
1213,
3934,
273,
2037,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
12,
1893,
984,
1213,
3934,
597,
27335,
6667,
3826,
17115,
18,
2722,
4820,
950,
1435,
411,
2037,
300,
20190,
13,
288,
225,
368,
309,
1142,
2605,
1898,
2353,
1381,
3974,
20325,
1082,
202,
759,
12044,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1410,
21705,
691,
12,
6494,
848,
5933,
2961,
1888,
16,
1250,
353,
4600,
16,
1250,
353,
1260,
47,
13,
288,
202,
202,
430,
12,
1330,
6236,
916,
13,
4657,
3216,
8018,
37,
502,
1023,
5621,
9506,
202,
430,
12,
291,
4600,
13,
288,
1082,
202,
430,
12,
588,
2578,
14214,
1435,
405,
4552,
67,
29358,
67,
706,
2123,
8047,
13,
9506,
202,
2463,
315,
10703,
4906,
3549,
15607,
14432,
202,
202,
97,
469,
288,
1082,
202,
430,
12,
588,
2578,
6421,
1435,
405,
4552,
67,
29358,
67,
5519,
55,
13,
9506,
202,
2463,
315,
10703,
4906,
3549,
3285,
14432,
202,
202,
97,
9506,
202,
9056,
12986,
3595,
6763,
950,
273,
27335,
6667,
3826,
17115,
18,
2
] |
integrateGradebook(state, aReference, addUpdateRemoveAssignment, title, Integer .parseInt(gradePoints), dueTime, null, null); | integrateGradebook(state, aReference, addUpdateRemoveAssignment, aOldTitle, title, Integer.parseInt (gradePoints), dueTime, null, null); | private void postOrSaveAssignment(RunData data, String postOrSave) { boolean post = (postOrSave != null && postOrSave.equals("post")) ? true : false; SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid()); String mode = (String) state.getAttribute(STATE_MODE); if (!mode.equals(MODE_INSTRUCTOR_PREVIEW_ASSIGNMENT)) { // read input data if the mode is not preview mode setNewAssignmentParameters(data, true); } if (state.getAttribute(STATE_MESSAGE) == null) { ParameterParser params = data.getParameters(); // put the names and values into vm file String title = (String) state.getAttribute(NEW_ASSIGNMENT_TITLE); // open time int openMonth = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENMONTH)).intValue(); int openDay = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENDAY)).intValue(); int openYear = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENYEAR)).intValue(); int openHour = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENHOUR)).intValue(); int openMin = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENMIN)).intValue(); String openAMPM = (String) state.getAttribute(NEW_ASSIGNMENT_OPENAMPM); if ((openAMPM.equals("PM")) && (openHour != 12)) { openHour = openHour + 12; } if ((openHour == 12) && (openAMPM.equals("AM"))) { openHour = 0; } Time openTime = TimeService.newTimeLocal(openYear, openMonth, openDay, openHour, openMin, 0, 0); // due time int dueMonth = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEMONTH)).intValue(); int dueDay = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEDAY)).intValue(); int dueYear = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEYEAR)).intValue(); int dueHour = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEHOUR)).intValue(); int dueMin = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEMIN)).intValue(); String dueAMPM = (String) state.getAttribute(NEW_ASSIGNMENT_DUEAMPM); if ((dueAMPM.equals("PM")) && (dueHour != 12)) { dueHour = dueHour + 12; } if ((dueHour == 12) && (dueAMPM.equals("AM"))) { dueHour = 0; } Time dueTime = TimeService.newTimeLocal(dueYear, dueMonth, dueDay, dueHour, dueMin, 0, 0); // checks on the times if (dueTime.before(openTime)) { addAlert(state, rb.getString("assig3")); } // close time Time closeTime = TimeService.newTime(); boolean enableCloseDate = ((Boolean) state.getAttribute(NEW_ASSIGNMENT_ENABLECLOSEDATE)).booleanValue(); if (enableCloseDate) { int closeMonth = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEMONTH)).intValue(); int closeDay = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEDAY)).intValue(); int closeYear = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEYEAR)).intValue(); int closeHour = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEHOUR)).intValue(); int closeMin = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEMIN)).intValue(); String closeAMPM = (String) state.getAttribute(NEW_ASSIGNMENT_CLOSEAMPM); if ((closeAMPM.equals("PM")) && (closeHour != 12)) { closeHour = closeHour + 12; } if ((closeHour == 12) && (closeAMPM.equals("AM"))) { closeHour = 0; } closeTime = TimeService.newTimeLocal(closeYear, closeMonth, closeDay, closeHour, closeMin, 0, 0); // if there is a close time, check it if (closeTime.before(openTime)) { addAlert(state, CLOSE_OPEN_DATE_ERROR_MESSAGE); } if (closeTime.before(dueTime)) { addAlert(state, CLOSE_DUE_DATE_ERROR_MESSAGE); } } // sections String s = (String) state.getAttribute(NEW_ASSIGNMENT_SECTION); int submissionType = ((Integer) state.getAttribute(NEW_ASSIGNMENT_SUBMISSION_TYPE)).intValue(); int gradeType = ((Integer) state.getAttribute(NEW_ASSIGNMENT_GRADE_TYPE)).intValue(); String gradePoints = (String) state.getAttribute(NEW_ASSIGNMENT_GRADE_POINTS); String description = (String) state.getAttribute(NEW_ASSIGNMENT_DESCRIPTION); String checkAddDueTime = (String) state.getAttribute(ResourceProperties.NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE); String checkAutoAnnounce = (String) state.getAttribute(ResourceProperties.NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE); String checkAddHonorPledge = (String) state.getAttribute(NEW_ASSIGNMENT_CHECK_ADD_HONOR_PLEDGE); String addtoGradebook = (String) state.getAttribute(NEW_ASSIGNMENT_ADD_TO_GRADEBOOK); // the attachments List attachments = (List) state.getAttribute(ATTACHMENTS); List attachments1 = EntityManager.newReferenceList(attachments); boolean newAssignment = true; // correct inputs if (state.getAttribute(STATE_MESSAGE) == null) { String assignmentId = params.getString("assignmentId"); String assignmentContentId = params.getString("assignmentContentId"); // AssignmentContent object AssignmentContentEdit ac = null; if (assignmentContentId.length() == 0) { // new assignment // only show alert when dealing with new assignment // allow editing assignment after due date if (dueTime.before(TimeService.newTime())) { addAlert(state, rb.getString("assig4")); } else { try { ac = AssignmentService.addAssignmentContent((String) state.getAttribute(STATE_CONTEXT_STRING)); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot3")); } } } else { try { // edit assignment ac = AssignmentService.editAssignmentContent(assignmentContentId); } catch (InUseException e) { addAlert(state, rb.getString("theassicon")); } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin4")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot15")); } } // Assignment AssignmentEdit a = null; if (assignmentId.length() == 0) { // create a new assignment try { a = AssignmentService.addAssignment((String) state.getAttribute(STATE_CONTEXT_STRING)); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot1")); } } else { // not a new assignment newAssignment = false; try { // edit assignment a = AssignmentService.editAssignment(assignmentId); } catch (InUseException e) { addAlert(state, rb.getString("theassicon")); } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot14")); } // try-catch } // if-else if ((state.getAttribute(STATE_MESSAGE) == null) && (ac != null) && (a != null)) { ac.setTitle(title); ac.setInstructions(description); ac.setHonorPledge(Integer.parseInt(checkAddHonorPledge)); ac.setTypeOfSubmission(submissionType); ac.setTypeOfGrade(gradeType); if (gradeType == 3) { try { ac.setMaxGradePoint(Integer.parseInt(gradePoints)); } catch (NumberFormatException e) { alertInvalidPoint(state, gradePoints); } } ac.setGroupProject(true); ac.setIndividuallyGraded(false); if (submissionType != 1) { ac.setAllowAttachments(true); } else { ac.setAllowAttachments(false); } // clear attachments ac.clearAttachments(); // add each attachment Iterator it = EntityManager.newReferenceList(attachments1).iterator(); while (it.hasNext()) { Reference r = (Reference) it.next(); ac.addAttachment(r); } state.setAttribute(ATTACHMENTS_MODIFIED, new Boolean(false)); // commit the changes AssignmentService.commitEdit(ac); } // assignment old title String aOldTitle = a.getTitle(); try { a.setTitle(title); a.setContent(ac); a.setContext((String) state.getAttribute(STATE_CONTEXT_STRING)); a.setSection(s); // old open time Time oldOpenTime = a.getOpenTime(); a.setOpenTime(openTime); // old due time Time oldDueTime = a.getDueTime(); a.setDueTime(dueTime); // set the drop dead date as the due date a.setDropDeadTime(dueTime); if (enableCloseDate) { a.setCloseTime(closeTime); } else { // if editing an old assignment with close date if (a.getCloseTime() != null) { a.setCloseTime(null); } } // post the assignment a.setDraft(!post); // set the auto check/auto announce property ResourcePropertiesEdit aPropertiesEdit = a.getPropertiesEdit(); if (aPropertiesEdit.getProperty("newAssignment") != null) { if (aPropertiesEdit.getProperty("newAssignment").equalsIgnoreCase(Boolean.TRUE.toString())) { // not a newly created assignment, been added. aPropertiesEdit.addProperty("newAssignment", Boolean.FALSE.toString()); } } else { // for newly created assignment aPropertiesEdit.addProperty("newAssignment", Boolean.TRUE.toString()); } aPropertiesEdit.addProperty(ResourceProperties.NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE, checkAddDueTime); aPropertiesEdit.addProperty(ResourceProperties.NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE, checkAutoAnnounce); aPropertiesEdit.addProperty(NEW_ASSIGNMENT_ADD_TO_GRADEBOOK, addtoGradebook); // set group property Site site = null; try { site = SiteService.getSite(ToolManager.getCurrentPlacement().getContext()); } catch (Exception e) { if (Log.getLogger("chef").isDebugEnabled()) Log.debug("chef", this + "doPost_assignment(): cannot find site with id " + ToolManager.getCurrentPlacement().getContext()); } String range = (String) state.getAttribute(NEW_ASSIGNMENT_RANGE); if (range.equals("site")) { a.setAccess(Assignment.AssignmentAccess.SITE); if (site != null) { for (Iterator aGroups = a.getGroups().iterator(); aGroups.hasNext();) { try { a.removeGroup(site.getGroup((String) aGroups.next())); } catch (PermissionException e) { } } } } else if (range.equals("groups")) { Collection groupChoice = (Collection) state.getAttribute(NEW_ASSIGNMENT_GROUPS); // if group has been dropped, remove it from assignment for (Iterator oSIterator = a.getGroups().iterator(); oSIterator.hasNext();) { Reference oGRef = EntityManager.newReference((String) oSIterator.next()); boolean selected = false; for (Iterator gIterator = groupChoice.iterator(); gIterator.hasNext() && !selected;) { if (oGRef.getId().equals((String) gIterator.next())) { selected = true; } } if (!selected && site != null) { try { a.removeGroup(site.getGroup(oGRef.getId())); } catch (Exception ignore) { if (Log.getLogger("chef").isDebugEnabled()) Log.debug("chef", this + "doPost_assignment(): cannot remove group " + oGRef.getId()); } } } // add group to assignment if (groupChoice != null) { a.setAccess(Assignment.AssignmentAccess.GROUPED); for (Iterator gIterator2 = groupChoice.iterator(); gIterator2.hasNext();) { String gString = (String) gIterator2.next(); try { a.addGroup(site.getGroup(gString)); } catch (Exception eIgnore) { if (Log.getLogger("chef").isDebugEnabled()) Log.debug("chef", this + "doPost_assignment(): cannot add group " + gString); } } } } if (state.getAttribute(STATE_MESSAGE) == null) { // commit assignment first AssignmentService.commitEdit(a); if (post) { // add due date to schedule and add open date to announcement only if user is posting the assignment // add the due date to schedule Calendar c = (Calendar) state.getAttribute(CALENDAR); String dueDateScheduled = a.getProperties().getProperty(NEW_ASSIGNMENT_DUE_DATE_SCHEDULED); boolean dueDateEventModified = false; CalendarEvent e = null; if (dueDateScheduled != null && dueDateScheduled.equalsIgnoreCase(Boolean.TRUE.toString())) { // find the old event boolean found = false; String oldEventId = aPropertiesEdit .getProperty(ResourceProperties.PROP_ASSIGNMENT_DUEDATE_CALENDAR_EVENT_ID); if (oldEventId != null && c != null) { try { e = c.getEvent(oldEventId); found = true; } catch (IdUnusedException ee) { Log.warn("chef", "The old event has been deleted: event id=" + oldEventId + ". "); } catch (PermissionException ee) { Log.warn("chef", "You do not have the permission to view the schedule event id= " + oldEventId + "."); } } else { TimeBreakdown b = oldDueTime.breakdownLocal(); // TODO: check- this was new Time(year...), not local! -ggolden Time startTime = TimeService.newTimeLocal(b.getYear(), b.getMonth(), b.getDay(), 0, 0, 0, 0); Time endTime = TimeService.newTimeLocal(b.getYear(), b.getMonth(), b.getDay(), 23, 59, 59, 999); try { Iterator events = c.getEvents(TimeService.newTimeRange(startTime, endTime), null) .iterator(); while ((!found) && (events.hasNext())) { e = (CalendarEvent) events.next(); if (((String) e.getDisplayName()).indexOf(rb.getString("assig1") + " " + title) != -1) { found = true; } } } catch (PermissionException ignore) { // ignore PermissionException } } if (found) { if (oldDueTime != null && (!oldDueTime.toStringLocalFull().equals(dueTime.toStringLocalFull())) // due date changed || !aOldTitle.equals(title) // title changed || (!checkAddDueTime.equalsIgnoreCase(Boolean.TRUE.toString()))) // user choose to not schedule due date { // if the assignment due date or title has been changed, we need to update existing event dueDateEventModified = true; } if (dueDateEventModified && found) { // remove the founded old event try { c.removeEvent(c.editEvent(e.getId())); } catch (PermissionException ee) { Log.warn("chef", rb.getString("cannotrem") + " " + title + ". "); } catch (InUseException ee) { Log.warn("chef", INUSE_ERROR_MESSAGE + rb.getString("calen")); } } } } if (checkAddDueTime.equalsIgnoreCase(Boolean.TRUE.toString())) { if (c != null) { try { e = null; e = c.addEvent(/* TimeRange */TimeService.newTimeRange(dueTime.getTime(), /* 0 duration */ 0 * 60 * 1000), /* title */rb.getString("due") + " " + title, /* description */rb.getString("assig1") + " " + title + " " + "is due on " + dueTime.toStringLocalFull() + ". ", /* type */rb.getString("deadl"), /* location */"", /* attachments */EntityManager.newReferenceList()); aPropertiesEdit.addProperty(NEW_ASSIGNMENT_DUE_DATE_SCHEDULED, Boolean.TRUE.toString()); if (e != null) { aPropertiesEdit.addProperty( ResourceProperties.PROP_ASSIGNMENT_DUEDATE_CALENDAR_EVENT_ID, e.getId()); } } catch (PermissionException ee) { Log.warn("chef", rb.getString("cannotfin1")); } // try-catch } // if } // if // the open date been announced if (checkAutoAnnounce.equalsIgnoreCase(Boolean.TRUE.toString())) { AnnouncementChannel channel = (AnnouncementChannel) state.getAttribute(ANNOUNCEMENT_CHANNEL); if (channel != null) { String openDateAnnounced = a.getProperties().getProperty(NEW_ASSIGNMENT_OPEN_DATE_ANNOUNCED); // open date has been announced or title has been changed? boolean openDateMessageModified = false; if (openDateAnnounced != null && openDateAnnounced.equalsIgnoreCase(Boolean.TRUE.toString())) { if (oldOpenTime != null && (!oldOpenTime.toStringLocalFull().equals(openTime.toStringLocalFull())) // open time changes || !aOldTitle.equals(title)) // assignment title changes { // need to change message openDateMessageModified = true; } } // add the open date to annoucement if (openDateAnnounced == null // no announcement yet || (openDateAnnounced != null && openDateAnnounced.equalsIgnoreCase(Boolean.TRUE.toString()) && openDateMessageModified)) // announced, but open date or announcement title changes { // announcement channel is in place try { AnnouncementMessageEdit message = channel.addAnnouncementMessage(); AnnouncementMessageHeaderEdit header = message.getAnnouncementHeaderEdit(); header.setDraft(/* draft */false); header.replaceAttachments(/* attachment */EntityManager.newReferenceList()); if (!openDateMessageModified) { header.setSubject(/* subject */rb.getString("assig6") + " " + title); message.setBody(/* body */rb.getString("opedat") + " " + FormattedText.convertPlaintextToFormattedText(title) + " is " + openTime.toStringLocalFull() + ". "); } else { header.setSubject(/* subject */rb.getString("assig5") + " " + title); message.setBody(/* body */rb.getString("newope") + " " + FormattedText.convertPlaintextToFormattedText(title) + " is " + openTime.toStringLocalFull() + ". "); } channel.commitMessage(message, NotificationService.NOTI_NONE); aPropertiesEdit .addProperty(NEW_ASSIGNMENT_OPEN_DATE_ANNOUNCED, Boolean.TRUE.toString()); if (message != null) { aPropertiesEdit.addProperty( ResourceProperties.PROP_ASSIGNMENT_OPENDATE_ANNOUNCEMENT_MESSAGE_ID, message.getId()); } } catch (PermissionException ee) { Log.warn("chef", rb.getString("cannotmak")); } } } } // if // integrate with Gradebook String aReference = a.getReference(); String addUpdateRemoveAssignment = "remove"; if (Boolean.valueOf(addtoGradebook).booleanValue()) { if (newAssignment) { addUpdateRemoveAssignment = "add"; } else { addUpdateRemoveAssignment = "update"; } } if (!addUpdateRemoveAssignment.equals("remove") && gradeType == 3) { try { // no assignment committed yet. Use user input data integrateGradebook(state, aReference, addUpdateRemoveAssignment, title, Integer .parseInt(gradePoints), dueTime, null, null); // add all existing grades, if any, into Gradebook integrateGradebook(state, aReference, null, null, -1, null, null, "update"); } catch (NumberFormatException nE) { alertInvalidPoint(state, gradePoints); } } else { integrateGradebook(state, aReference, "remove", null, -1, null, null, null); } state.setAttribute(STATE_MODE, MODE_LIST_ASSIGNMENTS); state.setAttribute(ATTACHMENTS, EntityManager.newReferenceList()); resetAssignment(state); } } // if } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } // try-catch } // if } // if } // doPost_assignment | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/d041f402719800a4443c03d17659794302820f9b/AssignmentAction.java/buggy/assignment/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1603,
1162,
4755,
7729,
12,
1997,
751,
501,
16,
514,
1603,
1162,
4755,
13,
202,
95,
202,
202,
6494,
1603,
273,
261,
2767,
1162,
4755,
480,
446,
597,
1603,
1162,
4755,
18,
14963,
2932,
2767,
6,
3719,
692,
638,
294,
629,
31,
202,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
501,
2934,
588,
18566,
2157,
1119,
12443,
12,
46,
2413,
5868,
1997,
751,
13,
501,
2934,
588,
8382,
67,
347,
350,
10663,
202,
202,
780,
1965,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
7038,
1769,
202,
202,
430,
16051,
3188,
18,
14963,
12,
7038,
67,
706,
13915,
916,
67,
3670,
12145,
67,
23289,
3212,
3719,
202,
202,
95,
1082,
202,
759,
855,
810,
501,
309,
326,
1965,
353,
486,
10143,
1965,
1082,
202,
542,
1908,
7729,
2402,
12,
892,
16,
638,
1769,
202,
202,
97,
202,
202,
430,
261,
2019,
18,
588,
1499,
12,
7998,
67,
8723,
13,
422,
446,
13,
202,
202,
95,
1082,
202,
1662,
2678,
859,
273,
501,
18,
588,
2402,
5621,
1082,
202,
759,
1378,
326,
1257,
471,
924,
1368,
4268,
585,
1082,
202,
780,
2077,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
12917,
67,
23289,
3212,
67,
14123,
1769,
1082,
202,
759,
1696,
813,
1082,
202,
474,
1696,
5445,
273,
14015,
4522,
13,
919,
18,
588,
1499,
12,
12917,
67,
23289,
3212,
67,
11437,
13942,
13,
2934,
474,
620,
5621,
1082,
202,
474,
1696,
4245,
273,
14015,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1603,
1162,
4755,
7729,
12,
1997,
751,
501,
16,
514,
1603,
1162,
4755,
13,
202,
95,
202,
202,
6494,
1603,
273,
261,
2767,
1162,
4755,
480,
446,
597,
1603,
1162,
4755,
18,
14963,
2932,
2767,
6,
3719,
692,
638,
294,
629,
31,
202,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
501,
2934,
588,
18566,
2157,
1119,
12443,
12,
46,
2413,
5868,
1997,
751,
13,
501,
2934,
588,
8382,
67,
347,
350,
10663,
202,
202,
780,
1965,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
7038,
1769,
202,
202,
430,
16051,
3188,
18,
14963,
12,
7038,
67,
706,
13915,
916,
67,
3670,
12145,
67,
23289,
3212,
3719,
202,
2
] |
log.error("Cannot create Task " + e); | log.error("Cannot create Task: ", e); | public Task createTask(Configuration configuration) { try { String className = configuration.getAttribute( "class", "org.wyona.cms.task.TaskSequence"); Class cl = Class.forName(className); Task task = (Task) cl.newInstance(); task.setLabel(configuration.getChild("label").getValue("default task")); task.parameterize(Parameters.fromConfiguration(configuration)); if (task instanceof TaskSequence) ((TaskSequence) task).init(configuration); return task; } catch (Exception e) { log.error("Cannot create Task " + e); return null; } } | 45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/d2c492665565f31600669d5be623d091d48bc1d5/TaskFactory.java/buggy/src/java/org/apache/lenya/cms/task/TaskFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3837,
752,
2174,
12,
1750,
1664,
13,
288,
3639,
775,
288,
5411,
514,
2658,
273,
1664,
18,
588,
1499,
12,
7734,
315,
1106,
3113,
315,
3341,
18,
91,
93,
265,
69,
18,
6851,
18,
4146,
18,
2174,
4021,
8863,
5411,
1659,
927,
273,
1659,
18,
1884,
461,
12,
12434,
1769,
5411,
3837,
1562,
273,
261,
2174,
13,
927,
18,
2704,
1442,
5621,
13491,
1562,
18,
542,
2224,
12,
7025,
18,
588,
1763,
2932,
1925,
20387,
24805,
2932,
1886,
1562,
7923,
1769,
13491,
1562,
18,
6775,
554,
12,
2402,
18,
2080,
1750,
12,
7025,
10019,
5411,
309,
261,
4146,
1276,
3837,
4021,
13,
7734,
14015,
2174,
4021,
13,
1562,
2934,
2738,
12,
7025,
1769,
5411,
327,
1562,
31,
3639,
289,
3639,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
1636,
2932,
4515,
752,
3837,
30,
3104,
425,
1769,
5411,
327,
446,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3837,
752,
2174,
12,
1750,
1664,
13,
288,
3639,
775,
288,
5411,
514,
2658,
273,
1664,
18,
588,
1499,
12,
7734,
315,
1106,
3113,
315,
3341,
18,
91,
93,
265,
69,
18,
6851,
18,
4146,
18,
2174,
4021,
8863,
5411,
1659,
927,
273,
1659,
18,
1884,
461,
12,
12434,
1769,
5411,
3837,
1562,
273,
261,
2174,
13,
927,
18,
2704,
1442,
5621,
13491,
1562,
18,
542,
2224,
12,
7025,
18,
588,
1763,
2932,
1925,
20387,
24805,
2932,
1886,
1562,
7923,
1769,
13491,
1562,
18,
6775,
554,
12,
2402,
18,
2080,
1750,
12,
7025,
10019,
5411,
309,
261,
4146,
1276,
3837,
4021,
13,
7734,
14015,
2174,
4021,
13,
1562,
2934,
2738,
12,
7025,
1769,
5411,
327,
1562,
31,
2
] |
else if ((LA(1)=='<') && (LA(2)=='!')) { mXML_COMMENT(false); | else if ((LA(1)==']') && (LA(2)==']') && (LA(3)=='>') && (true)) { mXML_CDATA_END(false); | public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; Token ncname=null; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } default: boolean synPredMatched421 = false; if (((LA(1)=='(') && (LA(2)==':') && (LA(3)==':') && (LA(4)=='p'))) { int _m421 = mark(); synPredMatched421 = true; inputState.guessing++; try { { match("(::"); } } catch (RecognitionException pe) { synPredMatched421 = false; } rewind(_m421); inputState.guessing--; } if ( synPredMatched421 ) { mPRAGMA(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='(') && (LA(2)==':') && (_tokenSet_7.member(LA(3))) && (_tokenSet_7.member(LA(4)))) { mEXPR_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else { boolean synPredMatched435 = false; if (((_tokenSet_17.member(LA(1))) && (_tokenSet_18.member(LA(2))) && (_tokenSet_19.member(LA(3))) && (true))) { int _m435 = mark(); synPredMatched435 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); { switch ( LA(1)) { case '.': { match('.'); { if ((_tokenSet_3.member(LA(1)))) { mINTEGER_LITERAL(false); } else if ((LA(1)=='E'||LA(1)=='e')) { } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } break; } case 'E': case 'e': { break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched435 = false; } rewind(_m435); inputState.guessing--; } if ( synPredMatched435 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>') && (true)) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)=='<') && (LA(2)=='!')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT; } } else { boolean synPredMatched419 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m419 = mark(); synPredMatched419 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched419 = false; } rewind(_m419); inputState.guessing--; } if ( synPredMatched419 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched423 = false; if ((((LA(1)=='.') && (LA(2)=='.') && (true) && (true))&&( !(inAttributeContent || inElementContent) ))) { int _m423 = mark(); synPredMatched423 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched423 = false; } rewind(_m423); inputState.guessing--; } if ( synPredMatched423 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else if (((LA(1)=='/') && (LA(2)=='/') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if (((LA(1)=='|') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if (((LA(1)=='&') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } } else if (((LA(1)=='!') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if (((LA(1)=='>') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true) && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_20.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent )) { mATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((_tokenSet_21.member(LA(1))) && (true) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true) && (true)) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) { _ttype = WS; text.setLength(_begin); text.append("WS"); } else _ttype = Token.SKIP; } } else if ((_tokenSet_22.member(LA(1))) && (true) && (true) && (true)) { mNCNAME(true); ncname=_returnToken; if ( inputState.guessing==0 ) { _ttype = ncname.getType(); } } else { boolean synPredMatched426 = false; if (((_tokenSet_17.member(LA(1))) && (true) && (true) && (true))) { int _m426 = mark(); synPredMatched426 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched426 = false; } rewind(_m426); inputState.guessing--; } if ( synPredMatched426 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched428 = false; if (((_tokenSet_17.member(LA(1))) && (true) && (true) && (true))) { int _m428 = mark(); synPredMatched428 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched428 = false; } rewind(_m428); inputState.guessing--; } if ( synPredMatched428 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched430 = false; if (((LA(1)=='.') && (true) && (true) && (true))) { int _m430 = mark(); synPredMatched430 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched430 = false; } rewind(_m430); inputState.guessing--; } if ( synPredMatched430 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else { boolean synPredMatched437 = false; if (((_tokenSet_17.member(LA(1))) && (true) && (true) && (true))) { int _m437 = mark(); synPredMatched437 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched437 = false; } rewind(_m437); inputState.guessing--; } if ( synPredMatched437 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((_tokenSet_3.member(LA(1))) && (true) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='?') && (true) && (true) && (true)) { mQUESTION(false); if ( inputState.guessing==0 ) { _ttype = QUESTION; } } else if ((LA(1)=='+') && (true) && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/969210006e6cb9fde8b28d06ed5a9eca60042541/XQueryLexer.java/buggy/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
31,
25083,
202,
67,
88,
723,
273,
511,
26314,
31,
6862,
9506,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
9571,
30,
202,
202,
95,
1082,
202,
81,
11529,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
9506,
202,
67,
88,
723,
273,
534,
26314,
31,
1082,
202,
97,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
1886,
30,
1082,
202,
6494,
6194,
10391,
15400,
24,
5340,
273,
629,
31,
1082,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
2668,
13,
597,
261,
2534,
12,
22,
13,
18920,
2497,
13,
597,
261,
2534,
12,
23,
13,
18920,
2497,
13,
597,
261,
2534,
12,
24,
13,
18920,
84,
11,
20349,
288,
9506,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
19252,
67,
8412,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
1345,
8194,
529,
33,
2011,
31,
9506,
202,
9610,
261,
2928,
12,
21,
3719,
288,
202,
202,
3593,
2292,
4278,
202,
202,
95,
1082,
202,
81,
13394,
1785,
61,
12,
5743,
1769,
1082,
202,
430,
261,
810,
1119,
18,
20885,
310,
631,
20,
262,
288,
6862,
25083,
202,
267,
1046,
1350,
33,
629,
2
] |
columnId); | column.getId()); | public CmsSearchAction(String listId, String columnId, String colName) { this( listId, SEARCH_ACTION_ID, new CmsMessageContainer(Messages.get(), Messages.GUI_LIST_ACTION_SEARCH_NAME_0), Messages.get().key(Messages.GUI_LIST_ACTION_SEARCH_ICON_0), new CmsMessageContainer(Messages.get(), Messages.GUI_LIST_ACTION_SEARCH_HELP_1, new Object[] {"${key." + colName + "}"}), new CmsMessageContainer(Messages.get(), Messages.GUI_LIST_ACTION_SEARCH_CONF_0), columnId); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/72b19557ecc89070c62e4d3fffb735b352ec57f2/CmsSearchAction.java/buggy/src/org/opencms/workplace/list/CmsSearchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26905,
1803,
12,
780,
30790,
16,
514,
1057,
548,
16,
514,
18655,
13,
288,
3639,
333,
12,
5411,
30790,
16,
5411,
24053,
67,
12249,
67,
734,
16,
5411,
394,
2149,
1079,
2170,
12,
5058,
18,
588,
9334,
4838,
18,
43,
5370,
67,
7085,
67,
12249,
67,
17251,
67,
1985,
67,
20,
3631,
5411,
4838,
18,
588,
7675,
856,
12,
5058,
18,
43,
5370,
67,
7085,
67,
12249,
67,
17251,
67,
21745,
67,
20,
3631,
5411,
394,
2149,
1079,
2170,
12,
5058,
18,
588,
9334,
4838,
18,
43,
5370,
67,
7085,
67,
12249,
67,
17251,
67,
27396,
67,
21,
16,
394,
1033,
8526,
12528,
18498,
856,
1199,
7734,
397,
18655,
7734,
397,
11883,
97,
3631,
5411,
394,
2149,
1079,
2170,
12,
5058,
18,
588,
9334,
4838,
18,
43,
5370,
67,
7085,
67,
12249,
67,
17251,
67,
14497,
67,
20,
3631,
5411,
1057,
18,
26321,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26905,
1803,
12,
780,
30790,
16,
514,
1057,
548,
16,
514,
18655,
13,
288,
3639,
333,
12,
5411,
30790,
16,
5411,
24053,
67,
12249,
67,
734,
16,
5411,
394,
2149,
1079,
2170,
12,
5058,
18,
588,
9334,
4838,
18,
43,
5370,
67,
7085,
67,
12249,
67,
17251,
67,
1985,
67,
20,
3631,
5411,
4838,
18,
588,
7675,
856,
12,
5058,
18,
43,
5370,
67,
7085,
67,
12249,
67,
17251,
67,
21745,
67,
20,
3631,
5411,
394,
2149,
1079,
2170,
12,
5058,
18,
588,
9334,
4838,
18,
43,
5370,
67,
7085,
67,
12249,
67,
17251,
67,
27396,
67,
21,
16,
394,
1033,
8526,
12528,
18498,
856,
1199,
7734,
397,
18655,
7734,
397,
11883,
97,
3631,
5411,
394,
2149,
2
] |
row+=1; out.println( "<tr"+(row%2==0 ? " class=\"stripe\"" : "")+"><th colspan=\""+cq+"\">"+label+"</th></tr>"); | out.println("<tr><th colspan=\""+cq+"\">"+label+"</th></tr>"); row=0; | private void titleRow(String label,int cq) { row+=1; out.println( "<tr"+(row%2==0 ? " class=\"stripe\"" : "")+"><th colspan=\""+cq+"\">"+label+"</th></tr>"); } | 50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/2c30372d5bda4ec1fa4ac94eaa43d64f3e1d0a1a/EmailableReporter.java/buggy/src/main/org/testng/reporters/EmailableReporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2077,
1999,
12,
780,
1433,
16,
474,
276,
85,
13,
225,
288,
565,
1027,
15,
33,
21,
31,
565,
596,
18,
8222,
12,
1377,
3532,
313,
6,
15,
12,
492,
9,
22,
631,
20,
1377,
692,
315,
667,
5189,
26991,
8530,
1377,
294,
1408,
13,
9078,
4438,
451,
20856,
13186,
15,
71,
85,
9078,
21121,
15,
1925,
9078,
1757,
451,
4695,
313,
2984,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
918,
2077,
1999,
12,
780,
1433,
16,
474,
276,
85,
13,
225,
288,
565,
1027,
15,
33,
21,
31,
565,
596,
18,
8222,
12,
1377,
3532,
313,
6,
15,
12,
492,
9,
22,
631,
20,
1377,
692,
315,
667,
5189,
26991,
8530,
1377,
294,
1408,
13,
9078,
4438,
451,
20856,
13186,
15,
71,
85,
9078,
21121,
15,
1925,
9078,
1757,
451,
4695,
313,
2984,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "32"); | properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "0"); | public void init() { SipFactory sipFactory = null; sipStack = null; sipFactory = SipFactory.getInstance(); sipFactory.setPathName("gov.nist"); Properties properties = new Properties();//ifdef SIMULATION/* properties.setProperty("javax.sip.IP_ADDRESS","129.6.55.62");//else*/ properties.setProperty("javax.sip.IP_ADDRESS", "127.0.0.1");//endif// properties.setProperty("javax.sip.RETRANSMISSION_FILTER", "true"); properties.setProperty("javax.sip.STACK_NAME", "shootme"); // You need 16 for logging traces. 32 for debug + traces. // Your code will limp at 32 but it is best for debugging. properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "32"); properties.setProperty( "gov.nist.javax.sip.DEBUG_LOG", "shootmedebug.txt"); properties.setProperty( "gov.nist.javax.sip.SERVER_LOG", "shootmelog.txt"); // properties.setProperty("gov.nist.javax.sip.MAX_MESSAGE_SIZE", "4096"); properties.setProperty("gov.nist.javax.sip.CACHE_SERVER_CONNECTIONS", "false"); try { // Create SipStack object sipStack = sipFactory.createSipStack(properties); System.out.println("sipStack = " + sipStack); } catch (PeerUnavailableException e) { // could not find // gov.nist.jain.protocol.ip.sip.SipStackImpl // in the classpath e.printStackTrace(); System.err.println(e.getMessage()); if (e.getCause() != null) e.getCause().printStackTrace(); System.exit(0); } try { headerFactory = sipFactory.createHeaderFactory(); addressFactory = sipFactory.createAddressFactory(); messageFactory = sipFactory.createMessageFactory(); ListeningPoint lp = sipStack.createListeningPoint(5070, "udp"); ListeningPoint lp1 = sipStack.createListeningPoint(5070, "tcp"); Shootme listener = this; SipProvider sipProvider = sipStack.createSipProvider(lp); System.out.println("udp provider " + sipProvider); sipProvider.addSipListener(listener); sipProvider = sipStack.createSipProvider(lp1); System.out.println("tcp provider " + sipProvider); sipProvider.addSipListener(listener); } catch (Exception ex) { System.out.println(ex.getMessage()); ex.printStackTrace(); usage(); } } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/8c8b675e9e6bfa8660b42b2e2bb75c45c5114be4/Shootme.java/buggy/src/examples/shootist/Shootme.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
1435,
288,
202,
202,
17550,
1733,
10341,
1733,
273,
446,
31,
202,
202,
28477,
2624,
273,
446,
31,
202,
202,
28477,
1733,
273,
13475,
1733,
18,
588,
1442,
5621,
202,
202,
28477,
1733,
18,
542,
743,
461,
2932,
75,
1527,
18,
82,
376,
8863,
202,
202,
2297,
1790,
273,
394,
6183,
5621,
759,
430,
536,
31433,
1506,
2689,
20308,
1082,
3639,
1790,
18,
542,
1396,
2932,
28384,
18,
28477,
18,
2579,
67,
15140,
15937,
24886,
18,
26,
18,
2539,
18,
8898,
8863,
759,
12107,
5549,
202,
202,
4738,
18,
542,
1396,
2932,
28384,
18,
28477,
18,
2579,
67,
15140,
3113,
315,
14260,
18,
20,
18,
20,
18,
21,
8863,
759,
409,
430,
759,
202,
202,
4738,
18,
542,
1396,
2932,
28384,
18,
28477,
18,
862,
8989,
7303,
45,
4475,
67,
11126,
3113,
315,
3767,
8863,
202,
202,
4738,
18,
542,
1396,
2932,
28384,
18,
28477,
18,
21971,
67,
1985,
3113,
315,
674,
1632,
3501,
8863,
202,
202,
759,
4554,
1608,
225,
2872,
364,
2907,
19649,
18,
3847,
364,
1198,
397,
19649,
18,
202,
202,
759,
20471,
981,
903,
328,
14532,
622,
3847,
1496,
518,
353,
3796,
364,
10450,
18,
202,
202,
4738,
18,
542,
1396,
2932,
75,
1527,
18,
82,
376,
18,
28384,
18,
28477,
18,
23827,
67,
10398,
3113,
315,
1578,
8863,
202,
202,
4738,
18,
542,
1396,
12,
1082,
202,
6,
75,
1527,
18,
82,
376,
18,
28384,
18,
28477,
18,
9394,
67,
4842,
3113,
1082,
202,
6,
674,
1632,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
1435,
288,
202,
202,
17550,
1733,
10341,
1733,
273,
446,
31,
202,
202,
28477,
2624,
273,
446,
31,
202,
202,
28477,
1733,
273,
13475,
1733,
18,
588,
1442,
5621,
202,
202,
28477,
1733,
18,
542,
743,
461,
2932,
75,
1527,
18,
82,
376,
8863,
202,
202,
2297,
1790,
273,
394,
6183,
5621,
759,
430,
536,
31433,
1506,
2689,
20308,
1082,
3639,
1790,
18,
542,
1396,
2932,
28384,
18,
28477,
18,
2579,
67,
15140,
15937,
24886,
18,
26,
18,
2539,
18,
8898,
8863,
759,
12107,
5549,
202,
202,
4738,
18,
542,
1396,
2932,
28384,
18,
28477,
18,
2579,
67,
15140,
3113,
315,
14260,
18,
20,
18,
20,
18,
21,
8863,
759,
409,
430,
759,
202,
2
] |
synchronized (current) { | synchronized (current) { | public static void invokeAndWait(Runnable runnable) throws InterruptedException, InvocationTargetException { EventQueue eq = Toolkit.getDefaultToolkit().getSystemEventQueue(); Thread current = Thread.currentThread(); if (current == eq.dispatchThread) throw new Error("Can't call invokeAndWait from event dispatch thread"); InvocationEvent ie = new InvocationEvent(eq, runnable, current, true); synchronized (current) { eq.postEvent(ie); current.wait(); } Exception exception; if ((exception = ie.getException()) != null) throw new InvocationTargetException(exception); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/EventQueue.java/buggy/core/src/classpath/java/java/awt/EventQueue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
4356,
1876,
5480,
12,
20013,
14685,
13,
1216,
7558,
16,
15342,
288,
202,
202,
1133,
3183,
7555,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
3163,
1133,
3183,
5621,
202,
202,
3830,
783,
273,
4884,
18,
2972,
3830,
5621,
202,
202,
430,
261,
2972,
422,
7555,
18,
10739,
3830,
13,
1082,
202,
12849,
394,
1068,
2932,
2568,
1404,
745,
4356,
1876,
5480,
628,
871,
3435,
2650,
8863,
202,
202,
9267,
1133,
9228,
273,
394,
11298,
1133,
12,
11253,
16,
14685,
16,
783,
16,
638,
1769,
202,
202,
22043,
261,
2972,
13,
288,
1082,
202,
11253,
18,
2767,
1133,
12,
1385,
1769,
1082,
202,
2972,
18,
7048,
5621,
202,
202,
97,
202,
202,
503,
1520,
31,
202,
202,
430,
14015,
4064,
273,
9228,
18,
588,
503,
10756,
480,
446,
13,
1082,
202,
12849,
394,
15342,
12,
4064,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
918,
4356,
1876,
5480,
12,
20013,
14685,
13,
1216,
7558,
16,
15342,
288,
202,
202,
1133,
3183,
7555,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
3163,
1133,
3183,
5621,
202,
202,
3830,
783,
273,
4884,
18,
2972,
3830,
5621,
202,
202,
430,
261,
2972,
422,
7555,
18,
10739,
3830,
13,
1082,
202,
12849,
394,
1068,
2932,
2568,
1404,
745,
4356,
1876,
5480,
628,
871,
3435,
2650,
8863,
202,
202,
9267,
1133,
9228,
273,
394,
11298,
1133,
12,
11253,
16,
14685,
16,
783,
16,
638,
1769,
202,
202,
22043,
261,
2972,
13,
288,
1082,
202,
11253,
18,
2767,
1133,
12,
1385,
1769,
1082,
202,
2972,
18,
7048,
5621,
202,
202,
97,
202,
202,
2
] |
fireSetChange(diff); | fireSetChange(event.diff); | public void handleSetChange(IObservableSet source, SetDiff diff) { if (!updating) { fireSetChange(diff); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6aecdb31231a8602dbf72944625703c440949c78/DetailObservableSet.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/masterdetail/DetailObservableSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
694,
3043,
12,
4294,
3745,
694,
1084,
16,
1000,
5938,
3122,
13,
288,
1082,
202,
430,
16051,
5533,
1776,
13,
288,
9506,
202,
12179,
694,
3043,
12,
5413,
1769,
1082,
202,
97,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3196,
202,
482,
918,
1640,
694,
3043,
12,
4294,
3745,
694,
1084,
16,
1000,
5938,
3122,
13,
288,
1082,
202,
430,
16051,
5533,
1776,
13,
288,
9506,
202,
12179,
694,
3043,
12,
5413,
1769,
1082,
202,
97,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Parameter parameter = configContext.getAxisConfiguration().getParameter(Constants.ADMIN_SECURITY_DISABLED); return parameter == null || !"true".equals(parameter.getValue()); } | Parameter parameter = configContext.getAxisConfiguration().getParameter(Constants.ADMIN_SECURITY_DISABLED); return parameter == null || !"true".equals(parameter.getValue()); } | private boolean axisSecurityEnabled() { Parameter parameter = configContext.getAxisConfiguration().getParameter(Constants.ADMIN_SECURITY_DISABLED); return parameter == null || !"true".equals(parameter.getValue()); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9cd28cc48911efea6c6eeda6bb202d386774bc29/AdminAgent.java/buggy/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
2654,
4368,
1526,
1435,
288,
565,
5498,
1569,
273,
642,
1042,
18,
588,
6558,
1750,
7675,
588,
1662,
12,
2918,
18,
15468,
67,
29209,
67,
24493,
1769,
565,
327,
1569,
422,
446,
747,
29054,
3767,
9654,
14963,
12,
6775,
18,
24805,
10663,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
1250,
2654,
4368,
1526,
1435,
288,
565,
5498,
1569,
273,
642,
1042,
18,
588,
6558,
1750,
7675,
588,
1662,
12,
2918,
18,
15468,
67,
29209,
67,
24493,
1769,
565,
327,
1569,
422,
446,
747,
29054,
3767,
9654,
14963,
12,
6775,
18,
24805,
10663,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
res.sendError(HttpServletResponse.SC_BAD_REQUEST, "Commands=lastcert | listcerts | crl | revoked"); | res.sendError(HttpServletResponse.SC_BAD_REQUEST, "Commands=lastcert | listcerts | crl | revoked && issuer=<issuerdn>"); | public void doGet(HttpServletRequest req, HttpServletResponse res) throws java.io.IOException, ServletException { log.debug(">doGet()"); String command; // Keep this for logging. String remoteAddr = req.getRemoteAddr(); Admin administrator = new Admin(Admin.TYPE_PUBLIC_WEB_USER, remoteAddr); String issuerdn = null; if(req.getParameter(ISSUER_PROPERTY) != null){ issuerdn = java.net.URLDecoder.decode(req.getParameter(ISSUER_PROPERTY),"UTF-8"); } command = req.getParameter(COMMAND_PROPERTY_NAME); if (command == null) command = ""; if (command.equalsIgnoreCase(COMMAND_CRL) && issuerdn != null) { try { ICertificateStoreSessionRemote store = storehome.create(); byte[] crl = store.getLastCRL(administrator, issuerdn); X509CRL x509crl = CertTools.getCRLfromByteArray(crl); String dn = CertTools.getIssuerDN(x509crl); String filename = CertTools.getPartFromDN(dn,"CN")+".crl"; res.setHeader("Content-disposition", "attachment; filename=" + filename); res.setContentType("application/x-x509-crl"); res.setContentLength(crl.length); res.getOutputStream().write(crl); log.debug("Sent latest CRL to client at " + remoteAddr); } catch (Exception e) { PrintStream ps = new PrintStream(res.getOutputStream()); res.sendError(HttpServletResponse.SC_NOT_FOUND, "Error getting latest CRL."); e.printStackTrace(ps); log.debug("Error sending latest CRL to " + remoteAddr); log.debug(e); return; } } else if ((command.equalsIgnoreCase(COMMAND_CERT) || command.equalsIgnoreCase(COMMAND_LISTCERT)) && issuerdn != null) { String dn = req.getParameter(SUBJECT_PROPERTY); if (dn == null) { res.sendError(HttpServletResponse.SC_BAD_REQUEST, "Usage command=cert?subject=<subjectdn>&issuer=<issuerdn>."); log.debug("Bad request, no 'dn' arg to 'lastcert' or 'listcert' command."); return; } try { log.debug("Looking for certificates for '"+dn+"'."); ICertificateStoreSessionRemote store = storehome.create(); Collection certcoll = store.findCertificatesBySubjectAndIssuer(administrator, dn, issuerdn); Object[] certs = certcoll.toArray(); int latestcertno = -1; if (command.equalsIgnoreCase(COMMAND_CERT)) { long maxdate = 0; for (int i=0;i<certs.length;i++) { if (i == 0) { maxdate = ((X509Certificate)certs[i]).getNotBefore().getTime(); latestcertno = 0; } else if ( ((X509Certificate)certs[i]).getNotBefore().getTime() > maxdate ) { maxdate = ((X509Certificate)certs[i]).getNotBefore().getTime(); latestcertno = i; } } if (latestcertno > -1) { byte[] cert = ((X509Certificate)certs[latestcertno]).getEncoded(); String filename = CertTools.getPartFromDN(dn,"CN")+".cer"; res.setHeader("Content-disposition", "attachment; filename=" + filename); res.setContentType("application/octet-stream"); res.setContentLength(cert.length); res.getOutputStream().write(cert); log.debug("Sent latest certificate for '"+dn+"' to client at " + remoteAddr); } else { res.sendError(HttpServletResponse.SC_NOT_FOUND, "No certificate found for requested subject '"+dn+"'."); log.debug("No certificate found for '"+dn+"'."); } } if (command.equalsIgnoreCase(COMMAND_LISTCERT)) { res.setContentType("text/html"); PrintWriter pout = new PrintWriter(res.getOutputStream()); pout.println("<html><head><title>Certificates for "+dn+"</title></head>"); pout.println("<body><p>"); for (int i=0;i<certs.length;i++) { Date notBefore = ((X509Certificate)certs[i]).getNotBefore(); Date notAfter = ((X509Certificate)certs[i]).getNotAfter(); String subject = CertTools.getSubjectDN((X509Certificate)certs[i]); String issuer = CertTools.getIssuerDN((X509Certificate)certs[i]); BigInteger serno = ((X509Certificate)certs[i]).getSerialNumber(); pout.println("<pre>Subject:"+subject); pout.println("Issuer:"+issuer); pout.println("NotBefore:"+notBefore.toString()); pout.println("NotAfter:"+notAfter.toString()); pout.println("Serial number:"+serno.toString()); pout.println("</pre>"); pout.println("<a href=\"certdist?cmd=revoked&issuer="+issuer+"&serno="+serno.toString()+"\">Check if certificate is revoked</a>"); pout.println("<hr>"); } if (certs.length == 0) { pout.println("No certificates exists for '"+dn+"'."); } pout.println("</body></html>"); pout.close(); } } catch (Exception e) { PrintStream ps = new PrintStream(res.getOutputStream()); e.printStackTrace(ps); res.sendError(HttpServletResponse.SC_NOT_FOUND, "Error getting certificates."); log.debug("Error getting certificates for '"+dn+"' for "+remoteAddr); log.debug(e); return; } } else if ((command.equalsIgnoreCase(COMMAND_NSCACERT) || command.equalsIgnoreCase(COMMAND_IECACERT) || command.equalsIgnoreCase(COMMAND_CACERT)) && issuerdn != null ) { String lev = req.getParameter(LEVEL_PROPERTY); int level = 0; boolean pkcs7 = false; if (lev != null) level = Integer.parseInt(lev); else pkcs7 = true; // Root CA is level 0, next below root level 1 etc etc, -1 returns chain as PKCS7 try { ISignSessionRemote ss = signhome.create(); Certificate[] chain = (Certificate[]) ss.getCertificateChain(administrator, issuerdn.hashCode()).toArray(new Certificate[0]); // chain.length-1 is last cert in chain (root CA) if ( (chain.length-1-level) < 0 ) { PrintStream ps = new PrintStream(res.getOutputStream()); ps.println("No CA certificate of level "+level+"exist."); log.debug("No CA certificate of level "+level+"exist."); return; } X509Certificate cacert = (X509Certificate)chain[chain.length-1-level]; String filename=CertTools.getPartFromDN(CertTools.getSubjectDN(cacert), "CN"); if (filename == null) filename = "ca"; byte[] enccert = null; if (pkcs7) enccert = ss.createPKCS7(administrator, null); else enccert = cacert.getEncoded(); if (command.equalsIgnoreCase(COMMAND_NSCACERT)) { res.setContentType("application/x-x509-ca-cert"); res.setContentLength(enccert.length); res.getOutputStream().write(enccert); log.debug("Sent CA cert to NS client, len="+enccert.length+"."); } else if (command.equalsIgnoreCase(COMMAND_IECACERT)) { if (pkcs7) res.setHeader("Content-disposition", "attachment; filename="+filename+".p7c"); else res.setHeader("Content-disposition", "attachment; filename="+filename+".crt"); res.setContentType("application/octet-stream"); res.setContentLength(enccert.length); res.getOutputStream().write(enccert); log.debug("Sent CA cert to IE client, len="+enccert.length+"."); } else if (command.equalsIgnoreCase(COMMAND_CACERT)) { byte[] b64cert = Base64.encode(enccert); String out; if (pkcs7) out = "-----BEGIN PKCS7-----\n"; else out = "-----BEGIN CERTIFICATE-----\n"; out += new String(b64cert); if (pkcs7) out += "\n-----END PKCS7-----\n"; else out += "\n-----END CERTIFICATE-----\n"; res.setHeader("Content-disposition", "attachment; filename="+filename+".pem"); res.setContentType("application/octet-stream"); res.setContentLength(out.length()); res.getOutputStream().write(out.getBytes()); log.debug("Sent CA cert to client, len="+out.length()+"."); } else { res.setContentType("text/plain"); res.getOutputStream().println("Commands="+COMMAND_NSCACERT+" || "+COMMAND_IECACERT+" || "+COMMAND_CACERT); return; } } catch (Exception e) { PrintStream ps = new PrintStream(res.getOutputStream()); e.printStackTrace(ps); res.sendError(HttpServletResponse.SC_NOT_FOUND, "Error getting CA certificates."); log.debug("Error getting CA certificates."); log.debug(e); return; } } else if (command.equalsIgnoreCase(COMMAND_REVOKED)) { String dn = req.getParameter(ISSUER_PROPERTY); if (dn == null) { res.sendError(HttpServletResponse.SC_BAD_REQUEST, "Usage command=revoked?issuer=<subjectdn>&serno=<serianlnumber>."); log.debug("Bad request, no 'issuer' arg to 'revoked' command."); return; } String serno = req.getParameter(SERNO_PROPERTY); if (serno == null) { res.sendError(HttpServletResponse.SC_BAD_REQUEST, "Usage command=revoked?issuer=<subjectdn>&serno=<serianlnumber>."); log.debug("Bad request, no 'serno' arg to 'revoked' command."); return; } log.debug("Looking for certificate for '"+dn+"' and serno='"+serno+"'."); try { ICertificateStoreSessionRemote store = storehome.create(); RevokedCertInfo revinfo = store.isRevoked(administrator, dn, new BigInteger(serno)); res.setContentType("text/html"); PrintWriter pout = new PrintWriter(res.getOutputStream()); pout.println("<html><head><title>Check revocation</title></head>"); pout.println("<body><p>"); if ( (revinfo != null) && (revinfo.getReason() != RevokedCertInfo.NOT_REVOKED) ) { pout.println("<h1>REVOKED</h1>"); pout.println("Certificate with issuer '"+dn+"' and serial number '"+serno+"' is revoked"); pout.println("RevocationDate is '"+revinfo.getRevocationDate()+"' and reason '"+revinfo.getReason()+"'."); } else { pout.println("<h1>NOT REVOKED</h1>"); pout.println("Certificate with issuer '"+dn+"' and serial number '"+serno+"' is NOT revoked"); } pout.println("</body></html>"); pout.close(); } catch (Exception e) { PrintStream ps = new PrintStream(res.getOutputStream()); e.printStackTrace(ps); res.sendError(HttpServletResponse.SC_NOT_FOUND, "Error checking revocation."); log.debug("Error checking revocation for '"+dn+"' with serno '"+serno+"'."); log.debug(e); return; } } else { res.setContentType("text/plain"); res.sendError(HttpServletResponse.SC_BAD_REQUEST, "Commands=lastcert | listcerts | crl | revoked"); return; } } // doGet | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/105456e89a6e5faef018f231566e29f82bf001f2/CertDistServlet.java/buggy/src/java/se/anatom/ejbca/webdist/CertDistServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
2940,
18572,
1111,
16,
225,
12446,
400,
13,
1216,
2252,
18,
1594,
18,
14106,
16,
16517,
288,
3639,
613,
18,
4148,
2932,
34,
2896,
967,
1435,
8863,
3639,
514,
1296,
31,
3639,
368,
10498,
333,
364,
2907,
18,
3639,
514,
30184,
273,
1111,
18,
588,
5169,
3178,
5621,
3639,
7807,
22330,
273,
394,
7807,
12,
4446,
18,
2399,
67,
14939,
67,
14778,
67,
4714,
16,
30184,
1769,
3639,
514,
9715,
5176,
273,
446,
31,
540,
309,
12,
3658,
18,
588,
1662,
12,
25689,
57,
654,
67,
9900,
13,
480,
446,
15329,
1850,
9715,
5176,
273,
2252,
18,
2758,
18,
1785,
7975,
18,
3922,
12,
3658,
18,
588,
1662,
12,
25689,
57,
654,
67,
9900,
3631,
6,
5159,
17,
28,
8863,
3639,
289,
13491,
1296,
273,
1111,
18,
588,
1662,
12,
19104,
67,
9900,
67,
1985,
1769,
3639,
309,
261,
3076,
422,
446,
13,
5411,
1296,
273,
1408,
31,
3639,
309,
261,
3076,
18,
14963,
5556,
12,
19104,
67,
29524,
13,
597,
9715,
5176,
480,
446,
13,
288,
5411,
775,
288,
7734,
467,
4719,
2257,
2157,
5169,
1707,
273,
1707,
8712,
18,
2640,
5621,
7734,
1160,
8526,
18789,
273,
1707,
18,
588,
3024,
29524,
12,
3666,
14207,
16,
9715,
5176,
1769,
7734,
1139,
5995,
29524,
619,
5995,
71,
1321,
273,
11921,
10348,
18,
588,
29524,
2080,
8826,
12,
71,
1321,
1769,
7734,
514,
8800,
273,
11921,
10348,
18,
588,
16667,
8609,
12,
92,
5995,
71,
1321,
1769,
7734,
514,
1544,
273,
11921,
10348,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23611,
12,
2940,
18572,
1111,
16,
225,
12446,
400,
13,
1216,
2252,
18,
1594,
18,
14106,
16,
16517,
288,
3639,
613,
18,
4148,
2932,
34,
2896,
967,
1435,
8863,
3639,
514,
1296,
31,
3639,
368,
10498,
333,
364,
2907,
18,
3639,
514,
30184,
273,
1111,
18,
588,
5169,
3178,
5621,
3639,
7807,
22330,
273,
394,
7807,
12,
4446,
18,
2399,
67,
14939,
67,
14778,
67,
4714,
16,
30184,
1769,
3639,
514,
9715,
5176,
273,
446,
31,
540,
309,
12,
3658,
18,
588,
1662,
12,
25689,
57,
654,
67,
9900,
13,
480,
446,
15329,
1850,
9715,
5176,
273,
2252,
18,
2758,
18,
1785,
7975,
18,
3922,
12,
3658,
18,
588,
1662,
12,
25689,
57,
654,
67,
9900,
2
] |
List<Node> newChildren) | List<Node> newChildren) | private PropertyList replaceNode(PropertyList target, List<Node> newChildren) throws CdlXmlParsingException { //copy the target element PropertyList replacement = (PropertyList) target.copy(); //strip its children away (a bit wasteful) replacement.removeChildren(); //add the new ones in order for (Node sprog : newChildren) { sprog.detach(); replacement.appendChild(sprog); } replacement.bind(); return replacement; } | 4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/75e23e06e66e01e40e757a292c6579b63f673abb/ExtendsResolver.java/clean/core/extras/cdl/src/org/smartfrog/sfcore/languages/cdl/resolving/ExtendsResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4276,
682,
1453,
907,
12,
1396,
682,
1018,
16,
5411,
987,
32,
907,
34,
394,
4212,
13,
5411,
1216,
385,
5761,
4432,
13963,
503,
288,
3639,
368,
3530,
326,
1018,
930,
3639,
4276,
682,
6060,
273,
261,
1396,
682,
13,
1018,
18,
3530,
5621,
3639,
368,
6406,
2097,
2325,
10804,
261,
69,
2831,
341,
14725,
2706,
13,
3639,
6060,
18,
4479,
4212,
5621,
3639,
368,
1289,
326,
394,
5945,
316,
1353,
3639,
364,
261,
907,
272,
14654,
294,
394,
4212,
13,
288,
5411,
272,
14654,
18,
8238,
497,
5621,
5411,
6060,
18,
6923,
1763,
12,
87,
14654,
1769,
3639,
289,
3639,
6060,
18,
4376,
5621,
3639,
327,
6060,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3238,
4276,
682,
1453,
907,
12,
1396,
682,
1018,
16,
5411,
987,
32,
907,
34,
394,
4212,
13,
5411,
1216,
385,
5761,
4432,
13963,
503,
288,
3639,
368,
3530,
326,
1018,
930,
3639,
4276,
682,
6060,
273,
261,
1396,
682,
13,
1018,
18,
3530,
5621,
3639,
368,
6406,
2097,
2325,
10804,
261,
69,
2831,
341,
14725,
2706,
13,
3639,
6060,
18,
4479,
4212,
5621,
3639,
368,
1289,
326,
394,
5945,
316,
1353,
3639,
364,
261,
907,
272,
14654,
294,
394,
4212,
13,
288,
5411,
272,
14654,
18,
8238,
497,
5621,
5411,
6060,
18,
6923,
1763,
12,
87,
14654,
1769,
3639,
289,
3639,
6060,
18,
4376,
5621,
3639,
327,
6060,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
public AttributeDescr xor_group() throws RecognitionException { AttributeDescr d; Token loc=null; Token name=null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:17: (loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:17: loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,36,FOLLOW_36_in_xor_group1113); following.push(FOLLOW_opt_eol_in_xor_group1115); opt_eol(); following.pop(); name=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_xor_group1119); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:53: ( ';' )? int alt37=2; int LA37_0 = input.LA(1); if ( LA37_0==15 ) { alt37=1; } else if ( LA37_0==EOL||LA37_0==22||LA37_0==27||LA37_0==29||LA37_0==31||(LA37_0>=33 && LA37_0<=38) ) { alt37=2; } else { NoViableAltException nvae = new NoViableAltException("478:53: ( \';\' )?", 37, 0, input); throw nvae; } switch (alt37) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:53: ';' { match(input,15,FOLLOW_15_in_xor_group1121); } break; } following.push(FOLLOW_opt_eol_in_xor_group1124); opt_eol(); following.pop(); d = new AttributeDescr( "xor-group", getString( name ) ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
17586,
67,
1655,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
508,
33,
2011,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
8285,
30,
4033,
30,
261,
1829,
33,
296,
31346,
17,
1655,
11,
2153,
67,
30951,
508,
33,
9469,
261,
7554,
7851,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
8285,
30,
4033,
30,
1515,
33,
296,
31346,
17,
1655,
11,
2153,
67,
30951,
508,
33,
9469,
261,
7554,
7851,
2153,
67,
30951,
5411,
288,
5411,
1515,
28657,
1345,
13,
2630,
18,
12050,
12,
21,
1769,
5411,
845,
12,
2630,
16,
5718,
16,
29890,
67,
5718,
67,
267,
67,
31346,
67,
1655,
2499,
3437,
1769,
2398,
3751,
18,
6206,
12,
29890,
67,
3838,
67,
30951,
67,
267,
67,
31346,
67,
1655,
2499,
3600,
1769,
5411,
2153,
67,
30951,
5621,
5411,
3751,
18,
5120,
5621,
5411,
508,
28657,
1345,
13,
2630,
18,
12050,
12,
21,
1769,
5411,
845,
12,
2630,
16,
5804,
16,
29890,
67,
5804,
67,
267,
67,
31346,
67,
1655,
2499,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
17586,
67,
1655,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
508,
33,
2011,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
8285,
30,
4033,
30,
261,
1829,
33,
296,
31346,
17,
1655,
11,
2153,
67,
30951,
508,
33,
9469,
261,
7554,
7851,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
2
] | ||
public List getSortedColumns(Set colNames) { | public java.util.List getSortedColumns(Set colNames) { | public List getSortedColumns(Set colNames) { Vector v = new Vector(colNames); Collections.sort(v); v.add(0, "Sequence name"); v.add(1, "Total length"); v.add(2, "No of charsets"); sortedColumns = v; return (List) v; } | 47892 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47892/b7ed86750167f5fcabe325b0000697e3cdfe8970/DisplaySequencesMode.java/buggy/TaxonDNA/com/ggvaidya/TaxonDNA/SequenceMatrix/DisplaySequencesMode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
15175,
329,
3380,
12,
694,
645,
1557,
13,
288,
202,
202,
5018,
331,
273,
394,
5589,
12,
1293,
1557,
1769,
1082,
202,
15150,
18,
3804,
12,
90,
1769,
202,
202,
90,
18,
1289,
12,
20,
16,
315,
4021,
508,
8863,
202,
202,
90,
18,
1289,
12,
21,
16,
315,
5269,
769,
8863,
202,
202,
90,
18,
1289,
12,
22,
16,
315,
2279,
434,
1149,
4424,
8863,
202,
202,
10350,
3380,
273,
331,
31,
202,
202,
2463,
261,
682,
13,
331,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
987,
15175,
329,
3380,
12,
694,
645,
1557,
13,
288,
202,
202,
5018,
331,
273,
394,
5589,
12,
1293,
1557,
1769,
1082,
202,
15150,
18,
3804,
12,
90,
1769,
202,
202,
90,
18,
1289,
12,
20,
16,
315,
4021,
508,
8863,
202,
202,
90,
18,
1289,
12,
21,
16,
315,
5269,
769,
8863,
202,
202,
90,
18,
1289,
12,
22,
16,
315,
2279,
434,
1149,
4424,
8863,
202,
202,
10350,
3380,
273,
331,
31,
202,
202,
2463,
261,
682,
13,
331,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Object[] listeners = changeListeners.getListeners(); for (int i = 0; i < listeners.length; i++) { IChangeListener listener = (IChangeListener) listeners[i]; listener.handleChange(this); } | changeSupport.fireEvent(new ChangeEvent(this)); | protected void fireChange() { checkRealm(); Object[] listeners = changeListeners.getListeners(); for (int i = 0; i < listeners.length; i++) { IChangeListener listener = (IChangeListener) listeners[i]; listener.handleChange(this); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservableMap.java/buggy/bundles/org.eclipse.core.databinding.observable/src/org/eclipse/core/databinding/observable/map/AbstractObservableMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
3043,
1435,
288,
202,
202,
1893,
22545,
5621,
202,
202,
921,
8526,
4679,
273,
2549,
5583,
18,
588,
5583,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
288,
1082,
202,
45,
15744,
2991,
273,
261,
45,
15744,
13,
4679,
63,
77,
15533,
1082,
202,
12757,
18,
4110,
3043,
12,
2211,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4452,
3043,
1435,
288,
202,
202,
1893,
22545,
5621,
202,
202,
921,
8526,
4679,
273,
2549,
5583,
18,
588,
5583,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4679,
18,
2469,
31,
277,
27245,
288,
1082,
202,
45,
15744,
2991,
273,
261,
45,
15744,
13,
4679,
63,
77,
15533,
1082,
202,
12757,
18,
4110,
3043,
12,
2211,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
double d = ScriptRuntime.toNumber(id); if (ScriptRuntime.toUint32(d) == d && ScriptRuntime.numberToString(d, 10).equals(id) && this.length <= d && d != 4294967295.0) { this.length = (long)d + 1; | long index = toArrayIndex(id); if (index >= length) { length = index + 1; | public void put(String id, Scriptable start, Object value) { if (start == this) { // only set the array length if given an array index (ECMA 15.4.0) // try to get an array index from id double d = ScriptRuntime.toNumber(id); if (ScriptRuntime.toUint32(d) == d && ScriptRuntime.numberToString(d, 10).equals(id) && this.length <= d && d != 4294967295.0) { this.length = (long)d + 1; } } super.put(id, start, value); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/c30fa8321c95fd94e6211a7173e7f5fbfc876607/NativeArray.java/clean/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1378,
12,
780,
612,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
309,
261,
1937,
422,
333,
13,
288,
5411,
368,
1338,
444,
326,
526,
769,
309,
864,
392,
526,
770,
261,
7228,
5535,
4711,
18,
24,
18,
20,
13,
5411,
368,
775,
358,
336,
392,
526,
770,
628,
612,
5411,
1645,
302,
273,
7739,
5576,
18,
869,
1854,
12,
350,
1769,
5411,
309,
261,
3651,
5576,
18,
869,
5487,
1578,
12,
72,
13,
422,
302,
597,
7734,
7739,
5576,
18,
2696,
5808,
12,
72,
16,
1728,
2934,
14963,
12,
350,
13,
597,
7734,
333,
18,
2469,
1648,
302,
597,
302,
480,
27542,
7616,
9599,
29286,
18,
20,
13,
5411,
288,
7734,
333,
18,
2469,
273,
261,
5748,
13,
72,
397,
404,
31,
5411,
289,
3639,
289,
3639,
2240,
18,
458,
12,
350,
16,
787,
16,
460,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1378,
12,
780,
612,
16,
22780,
787,
16,
1033,
460,
13,
288,
3639,
309,
261,
1937,
422,
333,
13,
288,
5411,
368,
1338,
444,
326,
526,
769,
309,
864,
392,
526,
770,
261,
7228,
5535,
4711,
18,
24,
18,
20,
13,
5411,
368,
775,
358,
336,
392,
526,
770,
628,
612,
5411,
1645,
302,
273,
7739,
5576,
18,
869,
1854,
12,
350,
1769,
5411,
309,
261,
3651,
5576,
18,
869,
5487,
1578,
12,
72,
13,
422,
302,
597,
7734,
7739,
5576,
18,
2696,
5808,
12,
72,
16,
1728,
2934,
14963,
12,
350,
13,
597,
7734,
333,
18,
2469,
1648,
302,
597,
302,
480,
27542,
7616,
9599,
29286,
18,
20,
13,
5411,
288,
7734,
333,
18,
2469,
2
] |
InitialContext jndicontext = new InitialContext(); Object obj1 = jndicontext.lookup("java:comp/env/CertificateStoreSessionLocal"); ICertificateStoreSessionLocalHome certificatesessionhome = (ICertificateStoreSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(obj1, ICertificateStoreSessionLocalHome.class); | ServiceLocator locator = ServiceLocator.getInstance(); ICertificateStoreSessionLocalHome certificatesessionhome = (ICertificateStoreSessionLocalHome) locator.getLocalHome(ICertificateStoreSessionLocalHome.COMP_NAME); | public void initialize(HttpServletRequest request, EjbcaWebBean ejbcawebbean) throws Exception{ if(!initialized){ administrator = new Admin(((X509Certificate[]) request.getAttribute( "javax.servlet.request.X509Certificate" ))[0]); InitialContext jndicontext = new InitialContext(); Object obj1 = jndicontext.lookup("java:comp/env/CertificateStoreSessionLocal"); ICertificateStoreSessionLocalHome certificatesessionhome = (ICertificateStoreSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(obj1, ICertificateStoreSessionLocalHome.class); certificatesession = certificatesessionhome.create(); obj1 = jndicontext.lookup("java:comp/env/CAAdminSessionLocal"); ICAAdminSessionLocalHome caadminsessionhome = (ICAAdminSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(obj1, ICAAdminSessionLocalHome.class); caadminsession = caadminsessionhome.create(); IAuthorizationSessionLocalHome authorizationsessionhome = (IAuthorizationSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("java:comp/env/AuthorizationSessionLocal"), IAuthorizationSessionLocalHome.class); authorizationsession = authorizationsessionhome.create(); obj1 = jndicontext.lookup("java:comp/env/UserAdminSessionLocal"); IUserAdminSessionLocalHome adminsessionhome = (IUserAdminSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(obj1, IUserAdminSessionLocalHome.class); adminsession = adminsessionhome.create(); IRaAdminSessionLocalHome raadminsessionhome = (IRaAdminSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("java:comp/env/RaAdminSessionLocal"), IRaAdminSessionLocalHome.class); raadminsession = raadminsessionhome.create(); ISignSessionLocalHome home = (ISignSessionLocalHome)javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("java:comp/env/SignSessionLocal"), ISignSessionLocalHome.class ); signsession = home.create(); IHardTokenSessionLocalHome hardtokensessionhome = (IHardTokenSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("java:comp/env/HardTokenSessionLocal"), IHardTokenSessionLocalHome.class); hardtokensession = hardtokensessionhome.create(); IPublisherSessionLocalHome publishersessionhome = (IPublisherSessionLocalHome) javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("java:comp/env/PublisherSessionLocal"), IPublisherSessionLocalHome.class); publishersession = publishersessionhome.create(); this.informationmemory = ejbcawebbean.getInformationMemory(); certificateprofiles = new CertificateProfileDataHandler(administrator, certificatesession, authorizationsession, informationmemory); cadatahandler = new CADataHandler(administrator, caadminsession, adminsession, raadminsession, certificatesession, authorizationsession, signsession, ejbcawebbean); publisherdatahandler = new PublisherDataHandler(administrator, publishersession, authorizationsession, caadminsession, certificatesession, informationmemory); initialized =true; } } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/e2ce9fc1def13bb528d4424f283863d5ce3fb112/CAInterfaceBean.java/clean/src/java/se/anatom/ejbca/webdist/cainterface/CAInterfaceBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
12,
2940,
18572,
590,
16,
512,
10649,
5353,
4079,
3381,
18024,
5353,
4875,
14496,
13,
1216,
225,
1185,
95,
1377,
309,
12,
5,
13227,
15329,
3639,
22330,
273,
394,
7807,
12443,
12,
60,
5995,
4719,
63,
5717,
590,
18,
588,
1499,
12,
315,
28384,
18,
23231,
18,
2293,
18,
60,
5995,
4719,
6,
8623,
63,
20,
19226,
3639,
10188,
1042,
525,
4880,
3950,
955,
273,
394,
10188,
1042,
5621,
3639,
1033,
1081,
21,
273,
525,
4880,
3950,
955,
18,
8664,
2932,
6290,
30,
2919,
19,
3074,
19,
4719,
2257,
2157,
2042,
8863,
3639,
467,
4719,
2257,
2157,
2042,
8684,
12522,
893,
8712,
273,
261,
2871,
2543,
2257,
2157,
2042,
8684,
13,
6863,
18,
8864,
77,
18,
2617,
429,
5169,
921,
18,
82,
7815,
12,
2603,
21,
16,
467,
4719,
2257,
2157,
2042,
8684,
18,
1106,
1769,
3639,
12522,
893,
273,
12522,
893,
8712,
18,
2640,
5621,
7734,
1081,
21,
273,
525,
4880,
3950,
955,
18,
8664,
2932,
6290,
30,
2919,
19,
3074,
19,
3587,
4446,
2157,
2042,
8863,
3639,
467,
3587,
4446,
2157,
2042,
8684,
3474,
3666,
3184,
8712,
273,
261,
2871,
37,
4446,
2157,
2042,
8684,
13,
6863,
18,
8864,
77,
18,
2617,
429,
5169,
921,
18,
82,
7815,
12,
2603,
21,
16,
467,
3587,
4446,
2157,
2042,
8684,
18,
1106,
1769,
3639,
3474,
3666,
3184,
273,
3474,
3666,
3184,
8712,
18,
2640,
5621,
7734,
467,
6063,
2157,
2042,
8684,
2869,
7089,
893,
8712,
273,
261,
45,
6063,
2157,
2042,
8684,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2940,
18572,
590,
16,
512,
10649,
5353,
4079,
3381,
18024,
5353,
4875,
14496,
13,
1216,
225,
1185,
95,
1377,
309,
12,
5,
13227,
15329,
3639,
22330,
273,
394,
7807,
12443,
12,
60,
5995,
4719,
63,
5717,
590,
18,
588,
1499,
12,
315,
28384,
18,
23231,
18,
2293,
18,
60,
5995,
4719,
6,
8623,
63,
20,
19226,
3639,
10188,
1042,
525,
4880,
3950,
955,
273,
394,
10188,
1042,
5621,
3639,
1033,
1081,
21,
273,
525,
4880,
3950,
955,
18,
8664,
2932,
6290,
30,
2919,
19,
3074,
19,
4719,
2257,
2157,
2042,
8863,
3639,
467,
4719,
2257,
2157,
2042,
8684,
12522,
893,
8712,
273,
261,
2871,
2543,
2257,
2157,
2042,
8684,
13,
6863,
18,
8864,
77,
2
] |
Integer index = (Integer) indexForm.get("index"); InfoExecutionPeriod selectedInfoExecutionPeriod = null; if (executionPeriods != null && index != null) { selectedInfoExecutionPeriod = (InfoExecutionPeriod) executionPeriods.get(index.intValue()); request.setAttribute( SessionConstants.EXECUTION_PERIOD, selectedInfoExecutionPeriod); request.setAttribute( SessionConstants.EXECUTION_PERIOD_OID, selectedInfoExecutionPeriod.getIdInternal()); } | public ActionForward chooseForViewRoom( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(false); DynaActionForm indexForm = (DynaActionForm) form; IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW); GestorServicos gestor = GestorServicos.manager(); // get selected execution period Object argsReadExecutionPeriods[] = { }; ArrayList executionPeriods = (ArrayList) gestor.executar( userView, "ReadExecutionPeriods", argsReadExecutionPeriods); ComparatorChain chainComparator = new ComparatorChain(); chainComparator.addComparator(new BeanComparator("infoExecutionYear.year")); chainComparator.addComparator(new BeanComparator("semester")); Collections.sort(executionPeriods, chainComparator); Integer index = (Integer) indexForm.get("index"); InfoExecutionPeriod selectedInfoExecutionPeriod = null; if (executionPeriods != null && index != null) { selectedInfoExecutionPeriod = (InfoExecutionPeriod) executionPeriods.get(index.intValue()); request.setAttribute( SessionConstants.EXECUTION_PERIOD, selectedInfoExecutionPeriod); request.setAttribute( SessionConstants.EXECUTION_PERIOD_OID, selectedInfoExecutionPeriod.getIdInternal()); } // set form with selected value if (selectedInfoExecutionPeriod != null) { indexForm = (DynaActionForm) form; indexForm.set( "index", new Integer( executionPeriods.indexOf(selectedInfoExecutionPeriod))); } // create execution periods label/value bean ArrayList executionPeriodsLabelValueList = new ArrayList(); for (int i = 0; i < executionPeriods.size(); i++) { InfoExecutionPeriod infoExecutionPeriod = (InfoExecutionPeriod) executionPeriods.get(i); executionPeriodsLabelValueList.add( new LabelValueBean( infoExecutionPeriod.getName() + " - " + infoExecutionPeriod.getInfoExecutionYear().getYear(), "" + i)); } request.setAttribute( SessionConstants.LABELLIST_EXECUTIONPERIOD, executionPeriodsLabelValueList); // read lessons of (previously selected) room in selected executionPeriod InfoRoom infoRoom = null; Object argsReadRoomByOID[] = new Object[1]; if (request.getParameter(SessionConstants.ROOM_OID) != null) { argsReadRoomByOID[0] = new Integer(request.getParameter(SessionConstants.ROOM_OID)); } else { } try { infoRoom = (InfoRoom) ServiceUtils.executeService( null, "ReadRoomByOID", argsReadRoomByOID); } catch (FenixServiceException e) { throw new FenixActionException(); } request.setAttribute(SessionConstants.ROOM, infoRoom); request.setAttribute(SessionConstants.ROOM_OID, infoRoom.getIdInternal()); Object argsReadLessons[] = { selectedInfoExecutionPeriod, infoRoom }; try { List lessons; lessons = (List) ServiceUtils.executeService( null, "LerAulasDeSalaEmSemestre", argsReadLessons); if (lessons != null) { request.setAttribute(SessionConstants.LESSON_LIST_ATT, lessons); } } catch (FenixServiceException e) { throw new FenixActionException(); } return mapping.findForward("viewRoom"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/9cac7225861fcf1e1b88c1374eca8e4997ff2fc0/ExecutionPeriodDA.java/clean/src/ServidorApresentacao/Action/sop/ExecutionPeriodDA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
9876,
1290,
1767,
13646,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
202,
15069,
1185,
288,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
202,
202,
10419,
69,
1803,
1204,
770,
1204,
273,
261,
10419,
69,
1803,
1204,
13,
646,
31,
202,
202,
45,
1299,
1767,
729,
1767,
273,
261,
45,
1299,
1767,
13,
1339,
18,
588,
1499,
12,
2157,
2918,
18,
57,
67,
12145,
1769,
202,
202,
43,
395,
280,
827,
90,
335,
538,
314,
395,
280,
273,
611,
395,
280,
827,
90,
335,
538,
18,
4181,
5621,
202,
202,
759,
336,
3170,
4588,
3879,
202,
202,
921,
833,
1994,
3210,
30807,
8526,
273,
288,
202,
202,
20451,
202,
202,
19558,
4588,
30807,
273,
1082,
202,
12,
19558,
13,
314,
395,
280,
18,
4177,
322,
297,
12,
9506,
202,
1355,
1767,
16,
9506,
202,
6,
1994,
3210,
30807,
3113,
9506,
202,
1968,
1994,
3210,
30807,
1769,
202,
202,
5559,
3893,
2687,
5559,
273,
394,
13359,
3893,
5621,
202,
202,
5639,
5559,
18,
1289,
5559,
12,
2704,
7704,
5559,
2932,
1376,
3210,
5593,
18,
6874,
7923,
1769,
202,
202,
5639,
5559,
18,
1289,
5559,
12,
2704,
7704,
5559,
2932,
12000,
7654,
7923,
1769,
202,
202,
15150,
18,
3804,
12,
16414,
30807,
16,
2687,
5559,
1769,
202,
202,
4522,
770,
273,
261,
4522,
13,
770,
1204,
18,
588,
2932,
1615,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4382,
8514,
9876,
1290,
1767,
13646,
12,
202,
202,
1803,
3233,
2874,
16,
202,
202,
1803,
1204,
646,
16,
202,
202,
2940,
18572,
590,
16,
202,
202,
2940,
29910,
766,
13,
202,
202,
15069,
1185,
288,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
202,
202,
10419,
69,
1803,
1204,
770,
1204,
273,
261,
10419,
69,
1803,
1204,
13,
646,
31,
202,
202,
45,
1299,
1767,
729,
1767,
273,
261,
45,
1299,
1767,
13,
1339,
18,
588,
1499,
12,
2157,
2918,
18,
57,
67,
12145,
1769,
202,
202,
43,
395,
280,
827,
90,
335,
538,
314,
395,
280,
273,
611,
395,
280,
827,
90,
335,
538,
18,
4181,
5621,
202,
202,
2
] | |
o[j].setValue(fs.get(prefix+"."+configName)); | o[j].setValue(fs.get(prefix+ '.' +configName)); | public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { Config config = node.config; SubConfig[] sc = config.getConfigs(); boolean logMINOR = Logger.shouldLog(Logger.MINOR, this); for(int i=0; i<sc.length ; i++){ Option[] o = sc[i].getOptions(); String prefix = sc[i].getPrefix(); String configName; for(int j=0; j<o.length; j++){ configName=o[j].getName(); if(logMINOR) Logger.minor(this, "Setting "+prefix+"."+configName); // we ignore unreconized parameters if(fs.get(prefix+"."+configName) != null) { if(!(o[j].getValueString().equals(fs.get(prefix+"."+configName)))){ if(logMINOR) Logger.minor(this, "Setting "+prefix+"."+configName+" to "+fs.get(prefix+"."+configName)); try{ o[j].setValue(fs.get(prefix+"."+configName)); }catch(Exception e){ // Bad values silently fail from an FCP perspective, but the FCP client can tell if a change took by comparing ConfigData messages before and after Logger.error(this, "Caught "+e, e); } } } } } node.clientCore.storeConfig(); handler.outputHandler.queue(new ConfigData(node, true)); } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/62fd59041864b4ed1f43adc676de6bfb5ea977f3/ModifyConfig.java/clean/src/freenet/node/fcp/ModifyConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
809,
642,
273,
756,
18,
1425,
31,
202,
202,
1676,
809,
8526,
888,
273,
642,
18,
588,
8062,
5621,
9506,
202,
6494,
613,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
1769,
9506,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
32,
1017,
18,
2469,
274,
277,
27245,
95,
1082,
202,
1895,
8526,
320,
273,
888,
63,
77,
8009,
588,
1320,
5621,
1082,
202,
780,
1633,
273,
888,
63,
77,
8009,
588,
2244,
5621,
1082,
202,
780,
24710,
31,
25083,
202,
1884,
12,
474,
525,
33,
20,
31,
525,
32,
83,
18,
2469,
31,
525,
27245,
95,
9506,
202,
1425,
461,
33,
83,
63,
78,
8009,
17994,
5621,
9506,
202,
430,
12,
1330,
6236,
916,
13,
4242,
18,
17364,
12,
2211,
16,
315,
5568,
13773,
3239,
9078,
1199,
15,
1425,
461,
1769,
6862,
9506,
202,
759,
732,
2305,
640,
266,
591,
1235,
1472,
4697,
202,
430,
12,
2556,
18,
588,
12,
3239,
9078,
1199,
15,
1425,
461,
13,
480,
446,
13,
288,
6862,
202,
430,
12,
5,
12,
83,
63,
78,
8009,
24805,
780,
7675,
14963,
12,
2556,
18,
588,
12,
3239,
9078,
1199,
15,
1425,
461,
3719,
3719,
95,
25083,
202,
430,
12,
1330,
6236,
916,
13,
4242,
18,
17364,
12,
2211,
16,
315,
5568,
13773,
3239,
9078,
1199,
15,
1425,
461,
9078,
358,
13773,
2556,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
12,
42,
4258,
1952,
1503,
1838,
16,
2029,
756,
13,
1216,
2350,
1941,
503,
288,
202,
202,
809,
642,
273,
756,
18,
1425,
31,
202,
202,
1676,
809,
8526,
888,
273,
642,
18,
588,
8062,
5621,
9506,
202,
6494,
613,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
1769,
9506,
202,
1884,
12,
474,
277,
33,
20,
31,
277,
32,
1017,
18,
2469,
274,
277,
27245,
95,
1082,
202,
1895,
8526,
320,
273,
888,
63,
77,
8009,
588,
1320,
5621,
1082,
202,
780,
1633,
273,
888,
63,
77,
8009,
588,
2244,
5621,
1082,
202,
780,
24710,
31,
25083,
202,
1884,
12,
474,
525,
33,
20,
31,
525,
32,
2
] |
nextchar = s.charAt(i); if (nextchar == '\\') | nextbyte = s[i]; if (nextbyte == (byte)'\\') | public static byte[] toBytes(String s) throws SQLException { if (s == null) return null; int slength = s.length(); byte[] buf = new byte[slength]; int bufpos = 0; int thebyte; char nextchar; char secondchar; for (int i = 0; i < slength; i++) { nextchar = s.charAt(i); if (nextchar == '\\') { secondchar = s.charAt(++i); if (secondchar == '\\') { //escaped \ buf[bufpos++] = (byte)'\\'; } else { thebyte = (secondchar - 48) * 64 + (s.charAt(++i) - 48) * 8 + (s.charAt(++i) - 48); if (thebyte > 127) thebyte -= 256; buf[bufpos++] = (byte)thebyte; } } else { buf[bufpos++] = (byte)nextchar; } } byte[] l_return = new byte[bufpos]; System.arraycopy(buf, 0, l_return, 0, bufpos); return l_return; } | 45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/734e4212784d7baa3dc809e25f9cb6de8329211f/PGbytea.java/buggy/src/interfaces/jdbc/org/postgresql/util/PGbytea.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1160,
8526,
23247,
12,
780,
272,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
474,
2020,
1288,
273,
272,
18,
2469,
5621,
202,
202,
7229,
8526,
1681,
273,
394,
1160,
63,
2069,
1288,
15533,
202,
202,
474,
1681,
917,
273,
374,
31,
202,
202,
474,
326,
7229,
31,
202,
202,
3001,
1024,
3001,
31,
202,
202,
3001,
2205,
3001,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2020,
1288,
31,
277,
27245,
202,
202,
95,
1082,
202,
4285,
3001,
273,
272,
18,
3001,
861,
12,
77,
1769,
1082,
202,
430,
261,
4285,
3001,
422,
5282,
13,
1082,
202,
95,
9506,
202,
8538,
3001,
273,
272,
18,
3001,
861,
12,
9904,
77,
1769,
9506,
202,
430,
261,
8538,
3001,
422,
5282,
13,
9506,
202,
95,
6862,
202,
759,
16502,
521,
6862,
202,
4385,
63,
4385,
917,
9904,
65,
273,
261,
7229,
2506,
10471,
31,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
5787,
7229,
273,
261,
8538,
3001,
300,
9934,
13,
380,
5178,
397,
261,
87,
18,
3001,
861,
12,
9904,
77,
13,
300,
9934,
13,
380,
1725,
397,
261,
87,
18,
3001,
861,
12,
9904,
77,
13,
300,
9934,
1769,
6862,
202,
430,
261,
5787,
7229,
405,
12331,
13,
25083,
202,
5787,
7229,
3947,
8303,
31,
6862,
202,
4385,
63,
4385,
917,
9904,
65,
273,
261,
7229,
13,
5787,
7229,
31,
9506,
202,
97,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
23247,
12,
780,
272,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
474,
2020,
1288,
273,
272,
18,
2469,
5621,
202,
202,
7229,
8526,
1681,
273,
394,
1160,
63,
2069,
1288,
15533,
202,
202,
474,
1681,
917,
273,
374,
31,
202,
202,
474,
326,
7229,
31,
202,
202,
3001,
1024,
3001,
31,
202,
202,
3001,
2205,
3001,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2020,
1288,
31,
277,
27245,
202,
202,
95,
1082,
202,
4285,
3001,
273,
272,
18,
3001,
861,
12,
77,
1769,
1082,
202,
430,
261,
4285,
3001,
422,
5282,
13,
1082,
202,
95,
2
] |
c = lex_curline.charAt(lex_p++); if (c == '\r' && lex_p <= lex_pend && lex_curline.charAt(lex_p) == '\n') { lex_p++; | c = lex_curline.charAt(col++); if (c == '\r' && col <= lex_pend && lex_curline.charAt(col) == '\n') { col++; | private int nextc() { int c; if (lex_p == lex_pend) { if (lex_input != null) { RubyObject v = lex_getline(); if (v.isNil()) { return -1; } if (ph.getHeredocEnd() > 0) { ruby.setSourceLine(ph.getHeredocEnd()); ph.setHeredocEnd(0); } ruby.setSourceLine(ruby.getSourceLine() + 1); lex_curline = ((RubyString) v).getValue(); lex_p = lex_pbeg = 0; lex_pend = lex_curline.length(); if (lex_curline.startsWith("__END__") && (lex_pend == 7 || lex_curline.charAt(7) == '\n' || lex_curline.charAt(7) == '\r')) { ph.setRubyEndSeen(true); lex_lastline = null; return -1; } lex_lastline = v; } else { lex_lastline = null; return -1; } } c = lex_curline.charAt(lex_p++); if (c == '\r' && lex_p <= lex_pend && lex_curline.charAt(lex_p) == '\n') { lex_p++; c = '\n'; } return c; } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1024,
71,
1435,
288,
3639,
509,
276,
31,
3639,
309,
261,
4149,
67,
84,
422,
5275,
67,
1302,
13,
288,
5411,
309,
261,
4149,
67,
2630,
480,
446,
13,
288,
7734,
19817,
921,
331,
273,
5275,
67,
588,
1369,
5621,
7734,
309,
261,
90,
18,
291,
12616,
10756,
288,
10792,
327,
300,
21,
31,
7734,
289,
7734,
309,
261,
844,
18,
588,
44,
264,
329,
504,
1638,
1435,
405,
374,
13,
288,
10792,
22155,
18,
542,
1830,
1670,
12,
844,
18,
588,
44,
264,
329,
504,
1638,
10663,
10792,
1844,
18,
542,
44,
264,
329,
504,
1638,
12,
20,
1769,
7734,
289,
7734,
22155,
18,
542,
1830,
1670,
12,
27768,
18,
588,
1830,
1670,
1435,
397,
404,
1769,
7734,
5275,
67,
13504,
558,
273,
14015,
54,
10340,
780,
13,
331,
2934,
24805,
5621,
7734,
5275,
67,
84,
273,
5275,
67,
5733,
1332,
273,
374,
31,
7734,
5275,
67,
1302,
273,
5275,
67,
13504,
558,
18,
2469,
5621,
7734,
309,
261,
4149,
67,
13504,
558,
18,
17514,
1190,
2932,
972,
4415,
972,
7923,
10792,
597,
261,
4149,
67,
1302,
422,
2371,
747,
5275,
67,
13504,
558,
18,
3001,
861,
12,
27,
13,
422,
2337,
82,
11,
747,
5275,
67,
13504,
558,
18,
3001,
861,
12,
27,
13,
422,
2337,
86,
26112,
288,
10792,
1844,
18,
542,
54,
10340,
1638,
15160,
12,
3767,
1769,
10792,
5275,
67,
2722,
1369,
273,
446,
31,
10792,
327,
300,
21,
31,
7734,
289,
7734,
5275,
67,
2722,
1369,
273,
331,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1024,
71,
1435,
288,
3639,
509,
276,
31,
3639,
309,
261,
4149,
67,
84,
422,
5275,
67,
1302,
13,
288,
5411,
309,
261,
4149,
67,
2630,
480,
446,
13,
288,
7734,
19817,
921,
331,
273,
5275,
67,
588,
1369,
5621,
7734,
309,
261,
90,
18,
291,
12616,
10756,
288,
10792,
327,
300,
21,
31,
7734,
289,
7734,
309,
261,
844,
18,
588,
44,
264,
329,
504,
1638,
1435,
405,
374,
13,
288,
10792,
22155,
18,
542,
1830,
1670,
12,
844,
18,
588,
44,
264,
329,
504,
1638,
10663,
10792,
1844,
18,
542,
44,
264,
329,
504,
1638,
12,
20,
1769,
7734,
289,
7734,
22155,
18,
542,
1830,
1670,
12,
27768,
18,
588,
1830,
1670,
1435,
397,
2
] |
UpdateSettingsConfigurable updatesSettings = UpdateSettingsConfigurable.getInstance(); updatesSettings.setCheckNowEnabled(false); ShowSettingsUtil.getInstance().editConfigurable(myNoUpdatesPanel.myPanel, updatesSettings); updatesSettings.setCheckNowEnabled(true); } | UpdateSettingsConfigurable updatesSettings = UpdateSettingsConfigurable.getInstance(); updatesSettings.setCheckNowEnabled(false); ShowSettingsUtil.getInstance().editConfigurable(myNoUpdatesPanel.myPanel, updatesSettings); updatesSettings.setCheckNowEnabled(true); } | public void mouseClicked(MouseEvent e) { UpdateSettingsConfigurable updatesSettings = UpdateSettingsConfigurable.getInstance(); updatesSettings.setCheckNowEnabled(false); ShowSettingsUtil.getInstance().editConfigurable(myNoUpdatesPanel.myPanel, updatesSettings); updatesSettings.setCheckNowEnabled(true); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/b5dc7d13b99a7a38104a2c98155f9f4f33a7f679/NoUpdatesDialog.java/clean/source/com/intellij/openapi/updateSettings/impl/NoUpdatesDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
3639,
2315,
2628,
31660,
4533,
2628,
273,
2315,
2628,
31660,
18,
588,
1442,
5621,
3639,
4533,
2628,
18,
542,
1564,
8674,
1526,
12,
5743,
1769,
3639,
9674,
2628,
1304,
18,
588,
1442,
7675,
4619,
31660,
12,
4811,
2279,
5121,
5537,
18,
4811,
5537,
16,
4533,
2628,
1769,
3639,
4533,
2628,
18,
542,
1564,
8674,
1526,
12,
3767,
1769,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
3639,
2315,
2628,
31660,
4533,
2628,
273,
2315,
2628,
31660,
18,
588,
1442,
5621,
3639,
4533,
2628,
18,
542,
1564,
8674,
1526,
12,
5743,
1769,
3639,
9674,
2628,
1304,
18,
588,
1442,
7675,
4619,
31660,
12,
4811,
2279,
5121,
5537,
18,
4811,
5537,
16,
4533,
2628,
1769,
3639,
4533,
2628,
18,
542,
1564,
8674,
1526,
12,
3767,
1769,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sb.setSearchaction(action); String siteId = ecp.getSiteId(resourceName); if ( siteId == null || siteId.length() == 0 ) { siteId = "none"; } sb.setContext(siteId); sb.setName(resourceName); sb.setSearchstate(SearchBuilderItem.STATE_PENDING); | siteId = "none"; | public void addResource(Notification notification, Event event) { log.debug("Add resource " + notification + "::" + event); String resourceName = event.getResource(); if ( resourceName == null ) { // default if null resourceName = ""; } if ( resourceName.length() > 255 ) { log.warn("Entity Reference is longer than 255 characters, not indexing. Reference="+resourceName); return; } EntityContentProducer ecp = newEntityContentProducer(event); if ( ecp.getSiteId(resourceName) == null ) { log.debug("Not indexing "+resourceName+" as it has no context"); return; } Integer action = ecp.getAction(event); int retries = 5; while (retries > 0) { try { SearchBuilderItem sb = searchBuilderItemDao .findByName(resourceName); if (sb == null) { // new sb = searchBuilderItemDao.create(); sb.setSearchaction(action); sb.setName(resourceName); String siteId = ecp.getSiteId(resourceName); if ( siteId == null || siteId.length() == 0 ) { // default if null should neve happen siteId = "none"; } sb.setContext(siteId); sb.setSearchstate(SearchBuilderItem.STATE_PENDING); } else { sb.setSearchaction(action); String siteId = ecp.getSiteId(resourceName); if ( siteId == null || siteId.length() == 0 ) { // default if null, should never happen siteId = "none"; } sb.setContext(siteId); sb.setName(resourceName); sb.setSearchstate(SearchBuilderItem.STATE_PENDING); } searchBuilderItemDao.update(sb); log.debug("SEARCHBUILDER: Added Resource " + action + " " + sb.getName()); break; } catch (Throwable t) { log.warn("Retrying to register " + resourceName + " with the search engine ", t); retries--; } } if (retries == 0) { log.warn("In trying to register resource " + resourceName + " in search engine, I failed after" + " 5 attempts, this resource will" + " not be indexed untill it is modified"); } searchIndexBuilderWorker.incrementActivity(); restartBuilder(); } | 51480 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51480/79702c52425f3c70abee4bf7fd68f77a099ca30d/SearchIndexBuilderImpl.java/buggy/search-impl/impl/src/java/org/sakaiproject/search/component/service/impl/SearchIndexBuilderImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
23812,
12,
4386,
3851,
16,
2587,
871,
13,
202,
95,
202,
202,
1330,
18,
4148,
2932,
986,
1058,
315,
397,
3851,
397,
31120,
397,
871,
1769,
202,
202,
780,
9546,
273,
871,
18,
588,
1420,
5621,
202,
202,
430,
261,
9546,
422,
446,
262,
288,
1082,
202,
759,
805,
309,
446,
1082,
202,
3146,
461,
273,
1408,
31,
202,
202,
97,
202,
202,
430,
261,
9546,
18,
2469,
1435,
405,
4561,
262,
288,
1082,
202,
1330,
18,
8935,
2932,
1943,
6268,
353,
7144,
2353,
4561,
3949,
16,
486,
14403,
18,
6268,
1546,
15,
3146,
461,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
1943,
1350,
12140,
425,
4057,
273,
394,
1943,
1350,
12140,
12,
2575,
1769,
202,
202,
430,
261,
425,
4057,
18,
588,
4956,
548,
12,
3146,
461,
13,
422,
446,
262,
288,
1082,
202,
1330,
18,
4148,
2932,
1248,
14403,
13773,
3146,
461,
9078,
487,
518,
711,
1158,
819,
8863,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
4522,
1301,
273,
425,
4057,
18,
588,
1803,
12,
2575,
1769,
202,
202,
474,
9453,
273,
1381,
31,
202,
202,
17523,
261,
15215,
405,
374,
13,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
2979,
1263,
1180,
2393,
273,
1623,
1263,
1180,
11412,
25083,
202,
18,
4720,
5911,
12,
3146,
461,
1769,
9506,
202,
430,
261,
18366,
422,
446,
13,
9506,
202,
95,
6862,
202,
759,
394,
6862,
202,
18366,
273,
1623,
1263,
1180,
11412,
18,
2640,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23812,
12,
4386,
3851,
16,
2587,
871,
13,
202,
95,
202,
202,
1330,
18,
4148,
2932,
986,
1058,
315,
397,
3851,
397,
31120,
397,
871,
1769,
202,
202,
780,
9546,
273,
871,
18,
588,
1420,
5621,
202,
202,
430,
261,
9546,
422,
446,
262,
288,
1082,
202,
759,
805,
309,
446,
1082,
202,
3146,
461,
273,
1408,
31,
202,
202,
97,
202,
202,
430,
261,
9546,
18,
2469,
1435,
405,
4561,
262,
288,
1082,
202,
1330,
18,
8935,
2932,
1943,
6268,
353,
7144,
2353,
4561,
3949,
16,
486,
14403,
18,
6268,
1546,
15,
3146,
461,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
1943,
1350,
12140,
425,
4057,
273,
394,
1943,
1350,
12140,
2
] |
return OPERATION_FAILED; | pendingCreates.remove(src); for (int i = 0; i < nrBlocks; i++) { pendingCreateBlocks.remove(pendingBlocks[i]); } synchronized (leases) { Lease lease = (Lease) leases.get(holder); if (lease != null) { lease.completedCreate(src); if (! lease.hasLocks()) { leases.remove(holder); sortedLeases.remove(lease); } } } for (int i = 0; i < nrBlocks; i++) { TreeSet containingNodes = (TreeSet) blocksMap.get(pendingBlocks[i]); if (containingNodes.size() < pendingFile.getReplication()) { synchronized (neededReplications) { LOG.info("Completed file " + src + ", at holder " + holder + ". There is/are only " + containingNodes.size() + " copies of block " + pendingBlocks[i] + ", so replicating up to " + pendingFile.getReplication()); neededReplications.add(pendingBlocks[i]); } } } return COMPLETE_SUCCESS; | public synchronized int completeFile(UTF8 src, UTF8 holder) { if (dir.getFile(src) != null || pendingCreates.get(src) == null) { LOG.info("Failed to complete " + src + " because dir.getFile()==" + dir.getFile(src) + " and " + pendingCreates.get(src)); return OPERATION_FAILED; } else if (! checkFileProgress(src)) { return STILL_WAITING; } else { Vector pendingVector = (Vector) pendingCreates.get(src); Block pendingBlocks[] = (Block[]) pendingVector.toArray(new Block[pendingVector.size()]); // // We have the pending blocks, but they won't have // length info in them (as they were allocated before // data-write took place). So we need to add the correct // length info to each // // REMIND - mjc - this is very inefficient! We should // improve this! // for (int i = 0; i < pendingBlocks.length; i++) { Block b = pendingBlocks[i]; TreeSet containingNodes = (TreeSet) blocksMap.get(b); DatanodeInfo node = (DatanodeInfo) containingNodes.first(); for (Iterator it = node.getBlockIterator(); it.hasNext(); ) { Block cur = (Block) it.next(); if (b.getBlockId() == cur.getBlockId()) { b.setNumBytes(cur.getNumBytes()); break; } } } // // Now we can add the (name,blocks) tuple to the filesystem // if (dir.addFile(src, pendingBlocks)) { // The file is no longer pending pendingCreates.remove(src); for (int i = 0; i < pendingBlocks.length; i++) { pendingCreateBlocks.remove(pendingBlocks[i]); } synchronized (leases) { Lease lease = (Lease) leases.get(holder); if (lease != null) { lease.completedCreate(src); if (! lease.hasLocks()) { leases.remove(holder); sortedLeases.remove(lease); } } } // // REMIND - mjc - this should be done only after we wait a few secs. // The namenode isn't giving datanodes enough time to report the // replicated blocks that are automatically done as part of a client // write. // // Now that the file is real, we need to be sure to replicate // the blocks. for (int i = 0; i < pendingBlocks.length; i++) { TreeSet containingNodes = (TreeSet) blocksMap.get(pendingBlocks[i]); if (containingNodes.size() < this.desiredReplication) { synchronized (neededReplications) { LOG.info("Completed file " + src + ", at holder " + holder + ". There is/are only " + containingNodes.size() + " copies of block " + pendingBlocks[i] + ", so replicating up to " + this.desiredReplication); neededReplications.add(pendingBlocks[i]); } } } return COMPLETE_SUCCESS; } else { System.out.println("AddFile() for " + src + " failed"); } LOG.info("Dropped through on file add...."); } return OPERATION_FAILED; } | 51718 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51718/ba0ca973d8fbf49c1b7c2d29e7763226576364e8/FSNamesystem.java/clean/src/java/org/apache/hadoop/dfs/FSNamesystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
3912,
812,
12,
5159,
28,
1705,
16,
6380,
28,
10438,
13,
288,
3639,
309,
261,
1214,
18,
29925,
12,
4816,
13,
480,
446,
747,
4634,
2729,
18,
588,
12,
4816,
13,
422,
446,
13,
288,
202,
565,
2018,
18,
1376,
2932,
2925,
358,
3912,
315,
397,
1705,
397,
315,
225,
2724,
1577,
18,
29925,
1435,
31713,
397,
1577,
18,
29925,
12,
4816,
13,
397,
315,
471,
315,
397,
4634,
2729,
18,
588,
12,
4816,
10019,
2398,
4634,
2729,
18,
4479,
12,
4816,
1769,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9884,
6450,
31,
277,
27245,
288,
4634,
1684,
6450,
18,
4479,
12,
9561,
6450,
63,
77,
19226,
289,
225,
3852,
261,
298,
3304,
13,
288,
23175,
11863,
273,
261,
17746,
13,
884,
3304,
18,
588,
12,
4505,
1769,
309,
261,
2508,
480,
446,
13,
288,
11863,
18,
13615,
1684,
12,
4816,
1769,
309,
16051,
11863,
18,
5332,
19159,
10756,
288,
884,
3304,
18,
4479,
12,
4505,
1769,
3115,
1682,
3304,
18,
4479,
12,
2508,
1769,
289,
289,
289,
6647,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9884,
6450,
31,
277,
27245,
288,
19461,
4191,
3205,
273,
261,
2471,
694,
13,
4398,
863,
18,
588,
12,
9561,
6450,
63,
77,
19226,
309,
261,
1213,
3280,
3205,
18,
1467,
1435,
411,
4634,
812,
18,
588,
8309,
10756,
288,
3852,
261,
17471,
8309,
87,
13,
288,
2018,
18,
1376,
2932,
9556,
585,
315,
397,
1705,
397,
3104,
622,
10438,
315,
397,
10438,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
509,
3912,
812,
12,
5159,
28,
1705,
16,
6380,
28,
10438,
13,
288,
3639,
309,
261,
1214,
18,
29925,
12,
4816,
13,
480,
446,
747,
4634,
2729,
18,
588,
12,
4816,
13,
422,
446,
13,
288,
202,
565,
2018,
18,
1376,
2932,
2925,
358,
3912,
315,
397,
1705,
397,
315,
225,
2724,
1577,
18,
29925,
1435,
31713,
397,
1577,
18,
29925,
12,
4816,
13,
397,
315,
471,
315,
397,
4634,
2729,
18,
588,
12,
4816,
10019,
2398,
4634,
2729,
18,
4479,
12,
4816,
1769,
364,
261,
474,
277,
273,
374,
31,
277,
411,
9884,
6450,
31,
277,
27245,
288,
4634,
1684,
6450,
18,
4479,
12,
9561,
6450,
63,
77,
19226,
289,
225,
3852,
261,
298,
3304,
2
] |
outMessage = new dnsMessage(); outMessage.getHeader().setID(inMessage.getHeader().getID()); | response = new dnsMessage(); response.getHeader().setID(query.getHeader().getID()); | public dnsMessage sendAXFR(dnsMessage inMessage) throws IOException { byte [] out, in; Socket s; int inLength; DataInputStream dataIn; int soacount = 0; dnsMessage outMessage; try { s = new Socket(addr, dns.PORT); } catch (SocketException e) { System.out.println(e); return null; } out = toBytes(inMessage); new DataOutputStream(s.getOutputStream()).writeShort(out.length); s.getOutputStream().write(out); outMessage = new dnsMessage(); outMessage.getHeader().setID(inMessage.getHeader().getID()); while (true) { dataIn = new DataInputStream(s.getInputStream()); inLength = dataIn.readUnsignedShort(); in = new byte[inLength]; dataIn.readFully(in); dnsMessage m = parse(in); if (m.getHeader().getCount(dns.QUESTION) != 0 || m.getHeader().getCount(dns.ANSWER) <= 0 || m.getHeader().getCount(dns.AUTHORITY) != 0 || m.getHeader().getCount(dns.ADDITIONAL) != 0) throw new IOException("Invalid AXFR message"); Vector v = m.getSection(dns.ANSWER); Enumeration e = v.elements(); while (e.hasMoreElements()) { dnsRecord r = (dnsRecord)e.nextElement(); outMessage.addRecord(dns.ANSWER, r); if (r instanceof dnsSOARecord) soacount++; } if (soacount > 1) break; } s.close(); return outMessage;} | 4227 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4227/d8bfe7d2d31d7077dc3c6150ce92d2805d466832/SimpleResolver.java/clean/DNS/SimpleResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6605,
1079,
1366,
2501,
9981,
12,
14926,
1079,
316,
1079,
13,
1216,
1860,
288,
202,
7229,
5378,
596,
16,
316,
31,
202,
4534,
272,
31,
202,
474,
316,
1782,
31,
202,
751,
4348,
501,
382,
31,
202,
474,
1427,
1077,
592,
273,
374,
31,
202,
14926,
1079,
596,
1079,
31,
202,
698,
288,
202,
202,
87,
273,
394,
8758,
12,
4793,
16,
6605,
18,
6354,
1769,
202,
97,
202,
14683,
261,
4534,
503,
425,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
12,
73,
1769,
202,
202,
2463,
446,
31,
202,
97,
202,
659,
273,
23247,
12,
267,
1079,
1769,
202,
2704,
28680,
12,
87,
18,
588,
4632,
1435,
2934,
2626,
4897,
12,
659,
18,
2469,
1769,
202,
87,
18,
588,
4632,
7675,
2626,
12,
659,
1769,
202,
659,
1079,
273,
394,
6605,
1079,
5621,
202,
659,
1079,
18,
588,
1864,
7675,
542,
734,
12,
267,
1079,
18,
588,
1864,
7675,
588,
734,
10663,
202,
17523,
261,
3767,
13,
288,
202,
202,
892,
382,
273,
394,
29382,
12,
87,
18,
588,
4348,
10663,
202,
202,
267,
1782,
273,
501,
382,
18,
896,
13290,
4897,
5621,
202,
202,
267,
273,
394,
1160,
63,
267,
1782,
15533,
202,
202,
892,
382,
18,
896,
16999,
12,
267,
1769,
202,
202,
14926,
1079,
312,
273,
1109,
12,
267,
1769,
202,
202,
430,
261,
81,
18,
588,
1864,
7675,
588,
1380,
12,
14926,
18,
4740,
1146,
13,
480,
374,
747,
1082,
565,
312,
18,
588,
1864,
7675,
588,
1380,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6605,
1079,
1366,
2501,
9981,
12,
14926,
1079,
316,
1079,
13,
1216,
1860,
288,
202,
7229,
5378,
596,
16,
316,
31,
202,
4534,
272,
31,
202,
474,
316,
1782,
31,
202,
751,
4348,
501,
382,
31,
202,
474,
1427,
1077,
592,
273,
374,
31,
202,
14926,
1079,
596,
1079,
31,
202,
698,
288,
202,
202,
87,
273,
394,
8758,
12,
4793,
16,
6605,
18,
6354,
1769,
202,
97,
202,
14683,
261,
4534,
503,
425,
13,
288,
202,
202,
3163,
18,
659,
18,
8222,
12,
73,
1769,
202,
202,
2463,
446,
31,
202,
97,
202,
659,
273,
23247,
12,
267,
1079,
1769,
202,
2704,
28680,
12,
87,
18,
588,
4632,
1435,
2934,
2626,
4897,
12,
659,
18,
2469,
1769,
2
] |
new TaskDeactivateAction(task, INSTANCE).run(); | new TaskDeactivateAction().run(); | public void modify(Object element, String property, Object value) { int columnIndex = -1; try { columnIndex = Arrays.asList(columnNames).indexOf(property); if (((TreeItem) element).getData() instanceof ITaskListCategory) { ITaskListCategory cat = (ITaskListCategory)((TreeItem) element).getData(); switch (columnIndex) { case 0: // getViewer().setSelection(null); break; case 1: break; case 2: break; case 3: cat.setDescription(((String) value).trim());// getViewer().setSelection(null); break; } } else if (((TreeItem) element).getData() instanceof IQuery) { IQuery cat = (IQuery)((TreeItem) element).getData(); switch (columnIndex) { case 0: // getViewer().setSelection(null); break; case 1: break; case 2: break; case 3: cat.setDescription(((String) value).trim());// getViewer().setSelection(null); break; } } else if (((TreeItem) element).getData() instanceof ITaskListElement) { final ITaskListElement taskListElement = (ITaskListElement) ((TreeItem) element).getData(); ITask task = null; if(taskListElement instanceof ITask){ task = (ITask) taskListElement; } else if(taskListElement instanceof IQueryHit){ if(((IQueryHit)taskListElement).hasCorrespondingActivatableTask()){ task = ((IQueryHit)taskListElement).getOrCreateCorrespondingTask(); } } switch (columnIndex) { case 0: if(taskListElement instanceof IQueryHit){ task = ((IQueryHit)taskListElement).getOrCreateCorrespondingTask(); } if (task != null) { if (task.isActive()) { new TaskDeactivateAction(task, INSTANCE).run(); nextTaskAction.setEnabled(taskHistory.hasNext()); previousTaskAction.setEnabled(taskHistory.hasPrevious()); } else { new TaskActivateAction(task).run(); addTaskToHistory(task); }// getViewer().setSelection(null); } break; case 1: break; case 2: if (task.isDirectlyModifiable()) { Integer intVal = (Integer) value; task.setPriority("P" + (intVal + 1));// getViewer().setSelection(null); } break; case 3: if (task.isDirectlyModifiable()) { task.setDescription(((String) value).trim()); MylarTasklistPlugin.getTaskListManager() .taskPropertyChanged(task, columnNames[3]);// getViewer().setSelection(null); } break; } } } catch (Exception e) { MylarPlugin.fail(e, e.getMessage(), true); } getViewer().refresh(); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/0d11bd44261c1cc06a7a9e516b2338f2dcc82e49/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
5612,
12,
921,
930,
16,
514,
1272,
16,
1033,
460,
13,
288,
1082,
202,
474,
14882,
273,
300,
21,
31,
1082,
202,
698,
288,
9506,
202,
2827,
1016,
273,
5647,
18,
345,
682,
12,
2827,
1557,
2934,
31806,
12,
4468,
1769,
9506,
202,
430,
261,
12443,
2471,
1180,
13,
930,
2934,
588,
751,
1435,
1276,
467,
2174,
682,
4457,
13,
288,
6862,
202,
1285,
835,
682,
4457,
6573,
273,
261,
1285,
835,
682,
4457,
13,
12443,
2471,
1180,
13,
930,
2934,
588,
751,
5621,
6862,
202,
9610,
261,
2827,
1016,
13,
288,
6862,
202,
3593,
374,
30,
25083,
202,
759,
25083,
202,
588,
18415,
7675,
542,
6233,
12,
2011,
1769,
25083,
202,
8820,
31,
6862,
202,
3593,
404,
30,
25083,
202,
8820,
31,
6862,
202,
3593,
576,
30,
25083,
202,
8820,
31,
6862,
202,
3593,
890,
30,
25083,
202,
2574,
18,
542,
3291,
12443,
12,
780,
13,
460,
2934,
5290,
10663,
759,
25083,
202,
588,
18415,
7675,
542,
6233,
12,
2011,
1769,
25083,
202,
8820,
31,
6862,
202,
97,
9506,
202,
97,
469,
309,
261,
12443,
2471,
1180,
13,
930,
2934,
588,
751,
1435,
1276,
467,
1138,
13,
288,
6862,
202,
45,
1138,
6573,
273,
261,
45,
1138,
13,
12443,
2471,
1180,
13,
930,
2934,
588,
751,
5621,
6862,
202,
9610,
261,
2827,
1016,
13,
288,
6862,
202,
3593,
374,
30,
25083,
202,
759,
25083,
202,
588,
18415,
7675,
542,
6233,
12,
2011,
1769,
25083,
202,
8820,
31,
6862,
202,
3593,
404,
30,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5612,
12,
921,
930,
16,
514,
1272,
16,
1033,
460,
13,
288,
1082,
202,
474,
14882,
273,
300,
21,
31,
1082,
202,
698,
288,
9506,
202,
2827,
1016,
273,
5647,
18,
345,
682,
12,
2827,
1557,
2934,
31806,
12,
4468,
1769,
9506,
202,
430,
261,
12443,
2471,
1180,
13,
930,
2934,
588,
751,
1435,
1276,
467,
2174,
682,
4457,
13,
288,
6862,
202,
1285,
835,
682,
4457,
6573,
273,
261,
1285,
835,
682,
4457,
13,
12443,
2471,
1180,
13,
930,
2934,
588,
751,
5621,
6862,
202,
9610,
261,
2827,
1016,
13,
288,
6862,
202,
3593,
374,
30,
25083,
202,
759,
25083,
202,
588,
18415,
7675,
542,
6233,
12,
2011,
1769,
25083,
202,
8820,
31,
6862,
2
] |
resultText = formText; | resultText.setLayoutData(data); } else { resultText = new StyledText(composite, SWT.READ_ONLY); resultText.setText(checkText(text)); resultText.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { StyledText c = (StyledText) e.widget; if (c != null && !c.getSelectionText().equals("")) { if (currentSelectedText != null && !currentSelectedText.equals(c)) { currentSelectedText.setSelectionRange(0, 0); } currentSelectedText = c; } | protected FormText newLayout(Composite composite, int colSpan, String text, String style) {// GridData data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);// data.horizontalSpan = colSpan; FormText resultText; if (style.equalsIgnoreCase(VALUE)) { FormText formText = toolkit.createFormText(composite, true);// new formText.setMenu(contextMenuManager.createContextMenu(formText)); // StyledText(composite, // SWT.MULTI // | // SWT.READ_ONLY); formText.setFont(TEXT_FONT); formText.setWhitespaceNormalized(false); // The extra newline at beginning of text is a hack. // FormText is not displaying short strings unless it // is there. String result = checkText(text); result = "\n"+result+"\n"; formText.setText(result, false, true); // Trying to fingure out how to reduce the space between lines // see FormText class. // GC gc = new GC(formText); // FontMetrics fm = gc.setgetFontMetrics(); // int lineHeight = fm.getHeight(); // formText.setBackground(background);// data.horizontalIndent = HORZ_INDENT; // data.widthHint = DESCRIPTION_WIDTH;// formText.setLayoutData(data); // formText.setEditable(false); // formText.getCaret().setVisible(false); formText.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { FormText c = (FormText) e.widget; if (c != null && c.canCopy()) { currentSelectedText = c; } } }); formText.addHyperlinkListener(new HyperlinkAdapter() { public void linkActivated(HyperlinkEvent event) { String address = (String) event.getHref(); // TODO: how to get proper page title and TaskListUiUtil.openUrl(address, address, address);// try {// // Perhaps should use TaskListUiUtil.openUrl instead?// URL url = new URL((String) event.getHref());// IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();//// support.getExternalBrowser().openURL(url);// } catch (PartInitException e1) {// MessageDialog.openError(null, "Link error", "Could not open browser");// } catch (MalformedURLException e) {// MessageDialog.openError(null, "Link error", "Hyperlink address is malformed");// } } }); formText.setMenu(contextMenuManager.createContextMenu(formText)); resultText = formText; } else if (style.equalsIgnoreCase(PROPERTY)) { FormText formText = toolkit.createFormText(composite, true);// new // StyledText(composite, // SWT.MULTI // | // SWT.READ_ONLY); // formText.setFont(TEXT_FONT); formText.setText(checkText(text), false, false); // formText.setBackground(background); // formText.setLayoutData(data); // StyleRange sr = new StyleRange(0, text.length(), foreground, // background, // SWT.BOLD); // formText.setStyleRange(sr); // formText.getCaret().setVisible(false); // formText.setEnabled(enabled)Enabled(false); formText.setMenu(contextMenuManager.createContextMenu(formText)); resultText = formText; } else { // For a description of how tags work see: // http://www.eclipse.org/articles/Article-Forms/article.html StringBuffer buf = new StringBuffer(); buf.append("<form>"); buf.append("<p>"); // buf.append("<span color=\"header\" font=\"header\">"); buf.append(text); // buf.append("</span>"); buf.append("</p>"); buf.append("</form>"); FormText formText = toolkit.createFormText(composite, true); formText.setWhitespaceNormalized(true); formText.setFont("header", JFaceResources.getDialogFont()); formText.setFont("code", JFaceResources.getTextFont()); formText.setText(buf.toString(), true, false); formText.addHyperlinkListener(new HyperlinkAdapter() { public void linkActivated(HyperlinkEvent event) {// try { // Perhaps should use TaskListUiUtil.openUrl instead?// URL url = new URL((String) event.getHref()); TaskListUiUtil.openUrl("Attachment", "", (String) event.getHref());// IWorkbenchBrowserSupport support = PlatformUI.getWorkbench().getBrowserSupport();//// support.getExternalBrowser().openURL(url);// } catch (PartInitException e1) {// MessageDialog.openError(null, "Link error", "Could not open browser");// } catch (MalformedURLException e) {// MessageDialog.openError(null, "Link error", "Hyperlink address is malformed");// } } }); formText.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { FormText c = (FormText) e.widget; if (c != null && c.canCopy()) { currentSelectedText = c; } } }); resultText = formText; } // } else { // Composite generalTitleGroup = toolkit.createComposite(composite); // generalTitleGroup.setLayoutData(new // GridData(GridData.FILL_HORIZONTAL)); // generalTitleGroup.setLayoutData(data); // GridLayout generalTitleLayout = new GridLayout(); // generalTitleLayout.numColumns = 2; // generalTitleLayout.marginWidth = 0; // generalTitleLayout.marginHeight = 9; // generalTitleGroup.setLayout(generalTitleLayout); // // generalTitleGroup.setBackground(background); // // Label image = toolkit.createLabel(generalTitleGroup, ""); // // image.setBackground(background); // image.setImage(WorkbenchImages.getImage(IDEInternalWorkbenchImages.IMG_OBJS_WELCOME_ITEM)); // // GridData gd = new GridData(GridData.FILL_BOTH); // gd.verticalAlignment = GridData.VERTICAL_ALIGN_BEGINNING; // image.setLayoutData(gd); // // StyledText titleText = new StyledText(generalTitleGroup, SWT.MULTI // | SWT.READ_ONLY); // FormText titleText = toolkit.createFormText(generalTitleGroup, // true);//new StyledText(composite, SWT.MULTI | SWT.READ_ONLY); // // titleText.setText(checkText(text), false, true); // titleText.setText("<form>hello</form>", true, false); // titleText.setFont(HEADER_FONT); // titleText.setLayout(new TableWrapLayout()); // // titleText.setBackground(background); // // StyleRange sr = new StyleRange(titleText.getOffsetAtLine(0), // text.length(), foreground, background, // // SWT.BOLD); // // titleText.setStyleRange(sr); // // titleText.getCaret().setVisible(false); // // titleText.setEditable(false); // titleText.addSelectionListener(new SelectionAdapter() { // // @Override // public void widgetSelected(SelectionEvent e) { // FormText c = (FormText) e.widget; // // if (c != null && c.getSelectionCount() > 0) { // if (c != null && c.canCopy()) { // // if (currentSelectedText != null) { // if (!c.equals(currentSelectedText)) { // currentSelectedText = c; // // currentSelectedText.setSelectionRange(0, 0); // } // // } // } // // currentSelectedText = c; // } // }); // // create context menu // generalTitleGroup.setMenu(contextMenuManager.createContextMenu(generalTitleGroup)); // titleText.setMenu(contextMenuManager.createContextMenu(titleText)); // image.setMenu(contextMenuManager.createContextMenu(image)); // // addHyperlinks(titleText); // resultText = titleText; // } composite.setMenu(contextMenuManager.createContextMenu(composite)); return resultText; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/757e021074a288968263d2a263f11bda88a9a7ca/AbstractBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/AbstractBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2748,
1528,
394,
3744,
12,
9400,
9635,
16,
509,
645,
6952,
16,
514,
977,
16,
514,
2154,
13,
288,
759,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
16061,
15870,
1769,
759,
202,
202,
892,
18,
18396,
6952,
273,
645,
6952,
31,
202,
202,
1204,
1528,
563,
1528,
31,
202,
202,
430,
261,
4060,
18,
14963,
5556,
12,
4051,
3719,
288,
1082,
202,
1204,
1528,
646,
1528,
273,
5226,
8691,
18,
2640,
1204,
1528,
12,
27676,
16,
638,
1769,
759,
394,
1082,
202,
687,
1528,
18,
542,
4599,
12,
2472,
4599,
1318,
18,
2640,
27315,
12,
687,
1528,
10019,
1082,
202,
759,
934,
93,
1259,
1528,
12,
27676,
16,
1082,
202,
759,
348,
8588,
18,
26588,
1082,
202,
759,
571,
1082,
202,
759,
348,
8588,
18,
6949,
67,
10857,
1769,
1082,
202,
687,
1528,
18,
542,
5711,
12,
5151,
67,
25221,
1769,
1082,
202,
687,
1528,
18,
542,
9431,
15577,
12,
5743,
1769,
1082,
202,
759,
1021,
2870,
9472,
622,
8435,
434,
977,
353,
279,
11769,
18,
1082,
202,
759,
2748,
1528,
353,
486,
23620,
3025,
2064,
3308,
518,
1082,
202,
759,
353,
1915,
18,
1082,
202,
780,
563,
273,
866,
1528,
12,
955,
1769,
1082,
202,
2088,
273,
1548,
82,
6,
15,
2088,
9078,
64,
82,
14432,
1082,
202,
687,
1528,
18,
542,
1528,
12,
2088,
16,
629,
16,
638,
1769,
1082,
202,
759,
6161,
310,
358,
284,
310,
594,
596,
3661,
358,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2748,
1528,
394,
3744,
12,
9400,
9635,
16,
509,
645,
6952,
16,
514,
977,
16,
514,
2154,
13,
288,
759,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
12,
6313,
751,
18,
44,
20344,
67,
26439,
67,
16061,
15870,
1769,
759,
202,
202,
892,
18,
18396,
6952,
273,
645,
6952,
31,
202,
202,
1204,
1528,
563,
1528,
31,
202,
202,
430,
261,
4060,
18,
14963,
5556,
12,
4051,
3719,
288,
1082,
202,
1204,
1528,
646,
1528,
273,
5226,
8691,
18,
2640,
1204,
1528,
12,
27676,
16,
638,
1769,
759,
394,
1082,
202,
687,
1528,
18,
542,
4599,
12,
2472,
4599,
1318,
18,
2640,
27315,
12,
687,
1528,
10019,
1082,
202,
759,
934,
93,
1259,
1528,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.