rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
PermissionsData[] pds = new PermissionsData[] { pd }; EntrySet es = toMemberEntrySet(pds);
|
PermissionsData[] pds; if (pd == null) { throw new NotFoundException("ERROR: Permissions do not exist for weblog handle: " + handle + ", user name: " + username); } pds = new PermissionsData[] { pd };
|
private EntrySet deleteEntry() throws Exception { MemberURI muri = (MemberURI)getUri(); String handle = muri.getHandle(); String username = muri.getUsername(); if (username == null) { throw new Exception("ERROR: No user name supplied in URI"); } try { getRoller().setUser(UserData.SYSTEM_USER); PermissionsData pd = getPermissionsData(handle, username); PermissionsData[] pds = new PermissionsData[] { pd }; EntrySet es = toMemberEntrySet(pds); pd.remove(); getRoller().commit(); UserData ud = getRoller().getUserManager().getUser(username); CacheManager.invalidate(ud); WebsiteData wd = getRoller().getUserManager().getWebsiteByHandle(handle); CacheManager.invalidate(wd); return es; } catch (RollerException re) { throw new Exception(re); } }
|
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/eaebdd5c7cdc38fa5ae99dfde71ea15c5592adde/RollerMemberHandler.java/clean/sandbox/atomadminprotocol/src/org/roller/presentation/atomadminapi/RollerMemberHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3841,
694,
1430,
1622,
1435,
1216,
1185,
288,
3639,
8596,
3098,
312,
1650,
273,
261,
4419,
3098,
13,
588,
3006,
5621,
7734,
514,
1640,
273,
312,
1650,
18,
588,
3259,
5621,
3639,
514,
2718,
273,
312,
1650,
18,
588,
8575,
5621,
9079,
309,
261,
5053,
422,
446,
13,
288,
5411,
604,
394,
1185,
2932,
3589,
30,
2631,
729,
508,
4580,
316,
3699,
8863,
3639,
289,
7734,
775,
288,
5411,
4170,
355,
749,
7675,
542,
1299,
12,
19265,
18,
14318,
67,
4714,
1769,
5411,
15684,
751,
4863,
273,
25021,
751,
12,
4110,
16,
2718,
1769,
5411,
15684,
751,
8526,
293,
2377,
273,
394,
15684,
751,
8526,
288,
4863,
289,
31,
21821,
3841,
694,
5001,
273,
358,
4419,
1622,
694,
12,
84,
2377,
1769,
10792,
4863,
18,
4479,
5621,
5411,
4170,
355,
749,
7675,
7371,
5621,
5411,
31109,
23969,
273,
4170,
355,
749,
7675,
588,
1299,
1318,
7675,
588,
1299,
12,
5053,
1769,
13491,
4379,
1318,
18,
5387,
340,
12,
1100,
1769,
5411,
1660,
12343,
751,
14452,
273,
4170,
355,
749,
7675,
588,
1299,
1318,
7675,
588,
19186,
858,
3259,
12,
4110,
1769,
5411,
4379,
1318,
18,
5387,
340,
12,
3623,
1769,
13491,
327,
5001,
31,
10792,
289,
1044,
261,
4984,
749,
503,
283,
13,
288,
5411,
604,
394,
1185,
12,
266,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3841,
694,
1430,
1622,
1435,
1216,
1185,
288,
3639,
8596,
3098,
312,
1650,
273,
261,
4419,
3098,
13,
588,
3006,
5621,
7734,
514,
1640,
273,
312,
1650,
18,
588,
3259,
5621,
3639,
514,
2718,
273,
312,
1650,
18,
588,
8575,
5621,
9079,
309,
261,
5053,
422,
446,
13,
288,
5411,
604,
394,
1185,
2932,
3589,
30,
2631,
729,
508,
4580,
316,
3699,
8863,
3639,
289,
7734,
775,
288,
5411,
4170,
355,
749,
7675,
542,
1299,
12,
19265,
18,
14318,
67,
4714,
1769,
5411,
15684,
751,
4863,
273,
25021,
751,
12,
4110,
16,
2718,
1769,
5411,
15684,
751,
8526,
293,
2377,
273,
394,
15684,
751,
8526,
288,
4863,
289,
31,
21821,
3841,
694,
5001,
273,
358,
4419,
1622,
2
] |
if (c != null)
|
if (c != null) {
|
private void createTreeModel(final LdapWorker c) { TreeNode root = null; if (c != null) root = new LdapTreeNode(c.getContext(), null, c.getBaseDN()); else root = new DefaultMutableTreeNode(NOT_CONNECTED); treeModel = new DefaultTreeModel(root); }
|
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/ff5678dc75580368e49d8bd30d7257eb7b7ea047/LdapClient.java/clean/wings/demo/ldap/LdapClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
2471,
1488,
12,
6385,
18053,
6671,
276,
13,
288,
202,
12513,
1365,
273,
446,
31,
202,
430,
261,
71,
480,
446,
13,
202,
565,
1365,
273,
394,
18053,
12513,
12,
71,
18,
29120,
9334,
446,
16,
276,
18,
588,
2171,
8609,
10663,
202,
12107,
202,
565,
1365,
273,
394,
2989,
19536,
12513,
12,
4400,
67,
29011,
1769,
202,
3413,
1488,
273,
394,
2989,
2471,
1488,
12,
3085,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
2471,
1488,
12,
6385,
18053,
6671,
276,
13,
288,
202,
12513,
1365,
273,
446,
31,
202,
430,
261,
71,
480,
446,
13,
202,
565,
1365,
273,
394,
18053,
12513,
12,
71,
18,
29120,
9334,
446,
16,
276,
18,
588,
2171,
8609,
10663,
202,
12107,
202,
565,
1365,
273,
394,
2989,
19536,
12513,
12,
4400,
67,
29011,
1769,
202,
3413,
1488,
273,
394,
2989,
2471,
1488,
12,
3085,
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
] |
targetMove = Math.max(-distance, getMaxRankMove(targetSet, true)); sourceMove = Math.min(distance + targetMove, getMaxRankMove(sourceSet, false));
|
targetMove = Math.max(-slack, getMaxRankMove(targetSet, true)); if(targetMove != -slack) { sourceMove = Math.min(slack + targetMove, getMaxRankMove(sourceSet, false)); }
|
protected boolean tightenEdge(Object edge, Set sourceSet, Set targetSet) { assert (sourceSet != targetSet); assert (sourceSet != null); assert (targetSet != null); int edgeLength = getEdgeLength(edge); int minimumEdgeLength = getMinimumEdgeLength(edge); if (edgeLength != minimumEdgeLength) { int sourceMove = 0; int targetMove = 0; int distance = edgeLength - minimumEdgeLength; if (distance < 0) { // Edge too short, try to move source set away to compensate sourceMove = Math.max(distance, getMaxRankMove(sourceSet, true)); targetMove = Math.min(sourceMove - distance, getMaxRankMove(targetSet, false)); } else { // Edge too long, try to move target set closer to compensate targetMove = Math.max(-distance, getMaxRankMove(targetSet, true)); sourceMove = Math.min(distance + targetMove, getMaxRankMove(sourceSet, false)); } if (sourceMove - targetMove != distance) { return false; } moveNodes(sourceSet, sourceMove); moveNodes(targetSet, targetMove); edgeLength = getEdgeLength(edge); // assert getEdgeLength(edge) == minimumEdgeLength : edge; } return true; }
|
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/1b3622d98ec41573b97302b74e810698b477b3ba/GraphSpanningTree.java/buggy/trunk/taverna1.0/src/org/embl/ebi/escience/scuflui/graph/GraphSpanningTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
26066,
275,
6098,
12,
921,
3591,
16,
1000,
1084,
694,
16,
1000,
1018,
694,
13,
202,
95,
202,
202,
11231,
261,
3168,
694,
480,
1018,
694,
1769,
202,
202,
11231,
261,
3168,
694,
480,
446,
1769,
202,
202,
11231,
261,
3299,
694,
480,
446,
1769,
202,
202,
474,
3591,
1782,
273,
336,
6098,
1782,
12,
7126,
1769,
202,
202,
474,
5224,
6098,
1782,
273,
30665,
6098,
1782,
12,
7126,
1769,
202,
202,
430,
261,
7126,
1782,
480,
5224,
6098,
1782,
13,
202,
202,
95,
1082,
202,
474,
1084,
7607,
273,
374,
31,
1082,
202,
474,
1018,
7607,
273,
374,
31,
1082,
202,
474,
3888,
273,
3591,
1782,
300,
5224,
6098,
1782,
31,
1082,
202,
430,
261,
8969,
411,
374,
13,
1082,
202,
95,
9506,
202,
759,
11342,
4885,
3025,
16,
775,
358,
3635,
1084,
444,
10804,
358,
1161,
773,
340,
9506,
202,
3168,
7607,
273,
2361,
18,
1896,
12,
8969,
16,
7288,
12925,
7607,
12,
3168,
694,
16,
638,
10019,
9506,
202,
3299,
7607,
273,
2361,
18,
1154,
12,
3168,
7607,
300,
3888,
16,
7288,
12925,
7607,
12,
3299,
694,
16,
629,
10019,
1082,
202,
97,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
759,
11342,
4885,
1525,
16,
775,
358,
3635,
1018,
444,
13306,
358,
1161,
773,
340,
9506,
202,
3299,
7607,
273,
2361,
18,
1896,
19236,
8969,
16,
7288,
12925,
7607,
12,
3299,
694,
16,
638,
10019,
9506,
202,
3168,
7607,
273,
2361,
18,
1154,
12,
8969,
397,
1018,
7607,
16,
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,
1250,
26066,
275,
6098,
12,
921,
3591,
16,
1000,
1084,
694,
16,
1000,
1018,
694,
13,
202,
95,
202,
202,
11231,
261,
3168,
694,
480,
1018,
694,
1769,
202,
202,
11231,
261,
3168,
694,
480,
446,
1769,
202,
202,
11231,
261,
3299,
694,
480,
446,
1769,
202,
202,
474,
3591,
1782,
273,
336,
6098,
1782,
12,
7126,
1769,
202,
202,
474,
5224,
6098,
1782,
273,
30665,
6098,
1782,
12,
7126,
1769,
202,
202,
430,
261,
7126,
1782,
480,
5224,
6098,
1782,
13,
202,
202,
95,
1082,
202,
474,
1084,
7607,
273,
374,
31,
1082,
202,
474,
1018,
7607,
273,
374,
31,
1082,
202,
474,
3888,
273,
3591,
1782,
300,
5224,
6098,
1782,
31,
1082,
202,
430,
2
] |
query = connection.parseQuery(mdx); setDirty(); }
|
query = connection.parseQuery(mdx); setDirty(); }
|
public void parse(String mdx) { query = connection.parseQuery(mdx); setDirty(); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/ResultCache.java/buggy/src/main/mondrian/web/taglib/ResultCache.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1109,
12,
780,
3481,
92,
13,
288,
202,
202,
2271,
273,
1459,
18,
2670,
1138,
12,
1264,
92,
1769,
202,
202,
542,
10785,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1109,
12,
780,
3481,
92,
13,
288,
202,
202,
2271,
273,
1459,
18,
2670,
1138,
12,
1264,
92,
1769,
202,
202,
542,
10785,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return subActionBars; }
|
return subActionBars; }
|
public IActionBars getActionBars() { return subActionBars; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9ff1117bd4d0d76888bfb35def7ce85f6378a2d3/PageSite.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/PageSite.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1803,
5190,
87,
12473,
5190,
87,
1435,
288,
3639,
327,
720,
1803,
5190,
87,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
1803,
5190,
87,
12473,
5190,
87,
1435,
288,
3639,
327,
720,
1803,
5190,
87,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.validators = new Vector();
|
public ObjectInputStream(InputStream in) throws IOException, StreamCorruptedException { if (DEBUG) { String val = System.getProperty("gcj.dumpobjects"); if (dump == false && val != null && !val.equals("")) { dump = true; System.out.println ("Serialization debugging enabled"); } else if (dump == true && (val == null || val.equals(""))) { dump = false; System.out.println ("Serialization debugging disabled"); } } this.resolveEnabled = false; this.isDeserializing = false; this.blockDataPosition = 0; this.blockDataBytes = 0; this.blockData = new byte[BUFFER_SIZE]; this.blockDataInput = new DataInputStream(this); this.realInputStream = new DataInputStream(in); this.nextOID = baseWireHandle; this.objectLookupTable = new Hashtable(); this.validators = new Vector(); this.classLookupTable = new Hashtable(); setBlockDataMode(true); readStreamHeader(); }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/ca0ce8a9364b5ef0a98d9a228497375949fc26b9/ObjectInputStream.java/clean/java/io/ObjectInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22726,
12,
4348,
316,
13,
565,
1216,
1860,
16,
3961,
22701,
329,
503,
225,
288,
565,
309,
261,
9394,
13,
1377,
288,
202,
780,
1244,
273,
2332,
18,
588,
1396,
2932,
13241,
78,
18,
8481,
6911,
8863,
202,
430,
261,
8481,
422,
629,
597,
1244,
480,
446,
597,
401,
1125,
18,
14963,
2932,
6,
3719,
202,
225,
288,
202,
565,
4657,
273,
638,
31,
202,
565,
2332,
18,
659,
18,
8222,
7566,
16764,
10450,
3696,
8863,
202,
225,
289,
202,
12107,
309,
261,
8481,
422,
638,
597,
261,
1125,
422,
446,
747,
1244,
18,
14963,
2932,
6,
20349,
202,
225,
288,
202,
565,
4657,
273,
629,
31,
202,
565,
2332,
18,
659,
18,
8222,
7566,
16764,
10450,
5673,
8863,
202,
225,
289,
1377,
289,
565,
333,
18,
10828,
1526,
273,
629,
31,
565,
333,
18,
291,
20765,
6894,
273,
629,
31,
565,
333,
18,
2629,
751,
2555,
273,
374,
31,
565,
333,
18,
2629,
751,
2160,
273,
374,
31,
565,
333,
18,
2629,
751,
273,
394,
1160,
63,
11302,
67,
4574,
15533,
565,
333,
18,
2629,
751,
1210,
273,
394,
29382,
12,
2211,
1769,
565,
333,
18,
7688,
4348,
273,
394,
29382,
12,
267,
1769,
565,
333,
18,
4285,
12945,
273,
1026,
15249,
3259,
31,
565,
333,
18,
1612,
6609,
1388,
273,
394,
18559,
5621,
4202,
333,
18,
1106,
6609,
1388,
273,
394,
18559,
5621,
565,
444,
1768,
751,
2309,
12,
3767,
1769,
565,
855,
1228,
1864,
5621,
225,
289,
2,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
22726,
12,
4348,
316,
13,
565,
1216,
1860,
16,
3961,
22701,
329,
503,
225,
288,
565,
309,
261,
9394,
13,
1377,
288,
202,
780,
1244,
273,
2332,
18,
588,
1396,
2932,
13241,
78,
18,
8481,
6911,
8863,
202,
430,
261,
8481,
422,
629,
597,
1244,
480,
446,
597,
401,
1125,
18,
14963,
2932,
6,
3719,
202,
225,
288,
202,
565,
4657,
273,
638,
31,
202,
565,
2332,
18,
659,
18,
8222,
7566,
16764,
10450,
3696,
8863,
202,
225,
289,
202,
12107,
309,
261,
8481,
422,
638,
597,
261,
1125,
422,
446,
747,
1244,
18,
14963,
2932,
6,
20349,
202,
225,
288,
202,
565,
4657,
273,
629,
31,
202,
565,
2332,
18,
659,
18,
8222,
7566,
16764,
10450,
2
] |
|
return errorObject.getName();
|
return NativeError.getName(errorObject);
|
public String getName() { return errorObject.getName(); }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/12a288b564a6dcaf8b3301ecbad16dcaab0fb347/EcmaError.java/buggy/js/rhino/src/org/mozilla/javascript/EcmaError.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
288,
3639,
327,
16717,
668,
18,
17994,
12,
1636,
921,
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
] |
[
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1723,
1435,
288,
3639,
327,
16717,
668,
18,
17994,
12,
1636,
921,
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
] |
return StringUtil.trimString( (String) value );
|
return stringValue;
|
public Object validateValue( Module module, PropertyDefn defn, Object value ) throws PropertyValueException { assert defn != null; if ( value == null ) { if ( defn.isStructureMember( ) ) throw new PropertyValueException( value, PropertyValueException.DESIGN_EXCEPTION_VALUE_REQUIRED, NAME_TYPE ); return null; } if ( value instanceof String ) { if ( StringUtil.isBlank( (String) value ) && defn.isStructureMember( ) ) throw new PropertyValueException( value, PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE, NAME_TYPE ); return StringUtil.trimString( (String) value ); } throw new PropertyValueException( value, PropertyValueException.DESIGN_EXCEPTION_INVALID_VALUE, NAME_TYPE ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/9d419acd882ff99c489d3d2d83b6b6986c4290c5/NamePropertyType.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/metadata/NamePropertyType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1954,
620,
12,
5924,
1605,
16,
4276,
3262,
82,
1652,
82,
16,
1082,
202,
921,
460,
262,
1216,
4276,
9738,
202,
95,
202,
202,
11231,
1652,
82,
480,
446,
31,
202,
202,
430,
261,
460,
422,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
1652,
82,
18,
291,
6999,
4419,
12,
262,
262,
9506,
202,
12849,
394,
4276,
9738,
12,
460,
16,
25083,
202,
1396,
9738,
18,
1639,
11260,
67,
12658,
67,
4051,
67,
14977,
16,
25083,
202,
1985,
67,
2399,
11272,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
261,
460,
1276,
514,
262,
202,
202,
95,
1082,
202,
430,
261,
14205,
18,
291,
7796,
12,
261,
780,
13,
460,
262,
6862,
202,
10,
10,
1652,
82,
18,
291,
6999,
4419,
12,
262,
262,
9506,
202,
12849,
394,
4276,
9738,
12,
460,
16,
25083,
202,
1396,
9738,
18,
1639,
11260,
67,
12658,
67,
9347,
67,
4051,
16,
25083,
202,
1985,
67,
2399,
11272,
1082,
202,
2463,
14205,
18,
5290,
780,
12,
261,
780,
13,
460,
11272,
202,
202,
97,
202,
202,
12849,
394,
4276,
9738,
12,
460,
16,
9506,
202,
1396,
9738,
18,
1639,
11260,
67,
12658,
67,
9347,
67,
4051,
16,
9506,
202,
1985,
67,
2399,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
1954,
620,
12,
5924,
1605,
16,
4276,
3262,
82,
1652,
82,
16,
1082,
202,
921,
460,
262,
1216,
4276,
9738,
202,
95,
202,
202,
11231,
1652,
82,
480,
446,
31,
202,
202,
430,
261,
460,
422,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
1652,
82,
18,
291,
6999,
4419,
12,
262,
262,
9506,
202,
12849,
394,
4276,
9738,
12,
460,
16,
25083,
202,
1396,
9738,
18,
1639,
11260,
67,
12658,
67,
4051,
67,
14977,
16,
25083,
202,
1985,
67,
2399,
11272,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
261,
460,
1276,
514,
262,
202,
202,
95,
1082,
202,
430,
261,
14205,
18,
291,
7796,
12,
261,
780,
13,
460,
2
] |
result[i] = (byte[])bytecodes.elementAt(i);
|
result[i] = (byte[])bytecodes.get(i);
|
private byte[][] getBytecodesFromJar(Source source, String fullClassName) { String xslFileName = getStylesheetFileName(source); File xslFile = null; if (xslFileName != null) xslFile = new File(xslFileName); // Construct the path for the jar file String jarPath = null; if (_destinationDirectory != null) jarPath = _destinationDirectory + "/" + _jarFileName; else { if (xslFile != null && xslFile.getParent() != null) jarPath = xslFile.getParent() + "/" + _jarFileName; else jarPath = _jarFileName; } // Return null if the jar file does not exist. File file = new File(jarPath); if (!file.exists()) return null; // Compare the timestamps of the jar file and the xsl file. Return null // if the xsl file is newer than the jar file. if (xslFile != null && xslFile.exists()) { long xslTimestamp = xslFile.lastModified(); long transletTimestamp = file.lastModified(); if (transletTimestamp < xslTimestamp) return null; } // Create a ZipFile object for the jar file ZipFile jarFile = null; try { jarFile = new ZipFile(file); } catch (IOException e) { return null; } String transletPath = fullClassName.replace('.', '/'); String transletAuxPrefix = transletPath + "$"; String transletFullName = transletPath + ".class"; Vector bytecodes = new Vector(); // Iterate through all entries in the jar file to find the // translet and auxiliary classes. Enumeration entries = jarFile.entries(); while (entries.hasMoreElements()) { ZipEntry entry = (ZipEntry)entries.nextElement(); String entryName = entry.getName(); if (entry.getSize() > 0 && (entryName.equals(transletFullName) || (entryName.endsWith(".class") && entryName.startsWith(transletAuxPrefix)))) { try { InputStream input = jarFile.getInputStream(entry); int size = (int)entry.getSize(); byte[] bytes = new byte[size]; readFromInputStream(bytes, input, size); input.close(); bytecodes.addElement(bytes); } catch (IOException e) { return null; } } } // Convert the Vector of byte[] to byte[][]. final int count = bytecodes.size(); if (count > 0) { final byte[][] result = new byte[count][1]; for (int i = 0; i < count; i++) { result[i] = (byte[])bytecodes.elementAt(i); } return result; } else return null; }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/e7c45b504f6bd71f4b598a65c546f09c95bef9f5/TransformerFactoryImpl.java/buggy/src/org/apache/xalan/xsltc/trax/TransformerFactoryImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1160,
63,
6362,
65,
9979,
14537,
1145,
1265,
10813,
12,
1830,
1084,
16,
514,
1983,
3834,
13,
565,
288,
377,
202,
780,
20791,
4771,
273,
336,
24656,
4771,
12,
3168,
1769,
377,
202,
812,
20791,
812,
273,
446,
31,
377,
202,
430,
261,
30903,
4771,
480,
446,
13,
377,
202,
565,
20791,
812,
273,
394,
1387,
12,
30903,
4771,
1769,
2398,
202,
759,
14291,
326,
589,
364,
326,
7334,
585,
4202,
202,
780,
7334,
743,
273,
446,
31,
4202,
202,
430,
261,
67,
10590,
2853,
480,
446,
13,
5411,
7334,
743,
273,
389,
10590,
2853,
397,
4016,
397,
389,
11930,
4771,
31,
4202,
202,
12107,
288,
4202,
202,
565,
309,
261,
30903,
812,
480,
446,
597,
20791,
812,
18,
588,
3054,
1435,
480,
446,
13,
377,
202,
377,
202,
11930,
743,
273,
20791,
812,
18,
588,
3054,
1435,
397,
4016,
397,
389,
11930,
4771,
31,
377,
202,
565,
469,
377,
202,
377,
202,
11930,
743,
273,
389,
11930,
4771,
31,
377,
202,
97,
10402,
202,
759,
2000,
446,
309,
326,
7334,
585,
1552,
486,
1005,
18,
4202,
202,
812,
585,
273,
394,
1387,
12,
11930,
743,
1769,
4202,
202,
430,
16051,
768,
18,
1808,
10756,
5411,
327,
446,
31,
1377,
202,
759,
11051,
326,
11267,
434,
326,
7334,
585,
471,
326,
20791,
585,
18,
2000,
446,
1377,
202,
759,
309,
326,
20791,
585,
353,
16069,
2353,
326,
7334,
585,
18,
377,
202,
430,
261,
30903,
812,
480,
446,
597,
20791,
812,
18,
1808,
10756,
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,
377,
3238,
1160,
63,
6362,
65,
9979,
14537,
1145,
1265,
10813,
12,
1830,
1084,
16,
514,
1983,
3834,
13,
565,
288,
377,
202,
780,
20791,
4771,
273,
336,
24656,
4771,
12,
3168,
1769,
377,
202,
812,
20791,
812,
273,
446,
31,
377,
202,
430,
261,
30903,
4771,
480,
446,
13,
377,
202,
565,
20791,
812,
273,
394,
1387,
12,
30903,
4771,
1769,
2398,
202,
759,
14291,
326,
589,
364,
326,
7334,
585,
4202,
202,
780,
7334,
743,
273,
446,
31,
4202,
202,
430,
261,
67,
10590,
2853,
480,
446,
13,
5411,
7334,
743,
273,
389,
10590,
2853,
397,
4016,
397,
389,
11930,
4771,
31,
4202,
202,
12107,
288,
4202,
202,
565,
309,
261,
30903,
812,
480,
446,
597,
20791,
2
] |
if (flavor.getRepresentationClass().equals(ConfigElement.class)) { return true; } return false;
|
return flavor.getRepresentationClass().equals(ConfigElement.class);
|
public boolean isDataFlavorSupported(DataFlavor flavor) { if (flavor.getRepresentationClass().equals(ConfigElement.class)) { return true; } return false; }
|
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/b04bf75693ebb48de502e187ede5f4f33fdc76c5/ElementTree.java/buggy/modules/jackal/editors/org/vrjuggler/jccl/editors/ElementTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1250,
353,
751,
2340,
9444,
7223,
12,
751,
2340,
9444,
19496,
13,
565,
288,
1377,
309,
261,
2242,
9444,
18,
588,
13742,
797,
7675,
14963,
12,
809,
1046,
18,
1106,
3719,
1377,
288,
540,
327,
638,
31,
1377,
289,
1377,
327,
629,
31,
282,
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,
565,
1071,
1250,
353,
751,
2340,
9444,
7223,
12,
751,
2340,
9444,
19496,
13,
565,
288,
1377,
309,
261,
2242,
9444,
18,
588,
13742,
797,
7675,
14963,
12,
809,
1046,
18,
1106,
3719,
1377,
288,
540,
327,
638,
31,
1377,
289,
1377,
327,
629,
31,
282,
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
] |
filter.replay(context);
|
filter.replay(fileOutputStream);
|
public void start(PipelineContext context) { try { // Read config final Config config = (Config) readCacheInputAsObject(context, getInputByName(INPUT_CONFIG), new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { return new Config(readInputAsDOM4J(context, input)); } }); ProcessorInput dataInput = getInputByName(INPUT_DATA); // Check that directory is ok File file; String directoryProperty = getPropertySet().getString(DIRECTORY_PROPERTY); if (directoryProperty == null && config.getDirectory() == null) { // No base directory specified file = new File(config.getFile()); } else { // Base directory specified File baseDirectory = directoryProperty != null ? new File(directoryProperty) : new File(config.getDirectory()); if (!baseDirectory.isDirectory() || !baseDirectory.canWrite()) throw new OXFException(baseDirectory + "is not a directory or is not writeable"); file = new File(baseDirectory, config.getFile()); } // NOTE: Caching here is broken. This is what we need to do: // o for a given file, store a hash of the content stored (or the input key?) // o then when we check whether we need to modify the file, check against the key // AND the validity // Compute last modified// Object validity = getInputValidity(context, dataInput);// long now = System.currentTimeMillis();// long lastModified = (validity != null) ? findLastModified(validity) : now;// boolean cacheable = validity != null && lastModified != 0;// if (lastModified == 0)// lastModified = now;//// if (logger.isDebugEnabled())// logger.debug("Last modified: " + lastModified);//// // Check lastModified and don't return content if condition is met// if (cacheable && (lastModified <= (file.lastModified() + 1000))) {// if (logger.isDebugEnabled())// logger.debug("File doesn't need rewrite");// return;// } // Delete file if it exists if (file.exists() && file.canWrite()) file.delete(); // Create file if (!file.createNewFile()) throw new OXFException("Can't create file: " + file); // Create Writer and make sure it is closed when the pipeline terminates final OutputStream fileOutputStream = new FileOutputStream(file); context.addContextListener(new PipelineContext.ContextListenerAdapter() { public void contextDestroyed(boolean success) { try { fileOutputStream.close(); } catch (IOException e) { throw new OXFException(e); } } }); if (config.cacheUseLocalCache) { // If caching of the data is enabled, use the caching API // We return a ResultStore final boolean[] read = new boolean[1]; ResultStore filter = (ResultStore) readCacheInputAsObject(context, dataInput, new CacheableInputReader() { public Object read(PipelineContext context, ProcessorInput input) { read[0] = true; if (logger.isDebugEnabled()) logger.debug("Output not cached"); try { ResultStoreOutputStream resultStoreOutputStream = new ResultStoreOutputStream(fileOutputStream); readInput(context, null, input, config, resultStoreOutputStream); resultStoreOutputStream.close(); return resultStoreOutputStream; } catch (IOException e) { throw new OXFException(e); } } }); // If the output was obtained from the cache, just write it if (!read[0]) { if (logger.isDebugEnabled()) logger.debug("Serializer output cached"); filter.replay(context); } } else { // Caching is not enabled readInput(context, null, dataInput, config, fileOutputStream); fileOutputStream.close(); } } catch (Exception e) { throw new OXFException(e); } }
|
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/b959346f1cc069c1171caa8979e9092a093bdc5c/FileSerializer.java/buggy/src/java/org/orbeon/oxf/processor/serializer/FileSerializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12,
8798,
1042,
819,
13,
288,
3639,
775,
288,
5411,
368,
2720,
642,
5411,
727,
1903,
642,
273,
261,
809,
13,
855,
1649,
1210,
1463,
921,
12,
2472,
16,
12353,
5911,
12,
15934,
67,
7203,
3631,
394,
4379,
429,
1210,
2514,
1435,
288,
7734,
1071,
1033,
855,
12,
8798,
1042,
819,
16,
15476,
1210,
810,
13,
288,
10792,
327,
394,
1903,
12,
896,
1210,
1463,
8168,
24,
46,
12,
2472,
16,
810,
10019,
7734,
289,
5411,
15549,
5411,
15476,
1210,
501,
1210,
273,
12353,
5911,
12,
15934,
67,
4883,
1769,
5411,
368,
2073,
716,
1867,
353,
1529,
5411,
1387,
585,
31,
5411,
514,
1867,
1396,
273,
3911,
694,
7675,
588,
780,
12,
17229,
67,
9900,
1769,
5411,
309,
261,
5149,
1396,
422,
446,
597,
642,
18,
588,
2853,
1435,
422,
446,
13,
288,
7734,
368,
2631,
1026,
1867,
1269,
7734,
585,
273,
394,
1387,
12,
1425,
18,
29925,
10663,
5411,
289,
469,
288,
7734,
368,
3360,
1867,
1269,
7734,
1387,
1026,
2853,
273,
1867,
1396,
480,
446,
692,
394,
1387,
12,
5149,
1396,
13,
294,
394,
1387,
12,
1425,
18,
588,
2853,
10663,
7734,
309,
16051,
1969,
2853,
18,
291,
2853,
1435,
747,
401,
1969,
2853,
18,
4169,
3067,
10756,
10792,
604,
394,
531,
60,
42,
503,
12,
1969,
2853,
397,
315,
291,
486,
279,
1867,
578,
353,
486,
30223,
8863,
7734,
585,
273,
394,
1387,
12,
1969,
2853,
16,
642,
18,
29925,
10663,
5411,
289,
5411,
368,
5219,
30,
23782,
310,
2674,
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,
787,
12,
8798,
1042,
819,
13,
288,
3639,
775,
288,
5411,
368,
2720,
642,
5411,
727,
1903,
642,
273,
261,
809,
13,
855,
1649,
1210,
1463,
921,
12,
2472,
16,
12353,
5911,
12,
15934,
67,
7203,
3631,
394,
4379,
429,
1210,
2514,
1435,
288,
7734,
1071,
1033,
855,
12,
8798,
1042,
819,
16,
15476,
1210,
810,
13,
288,
10792,
327,
394,
1903,
12,
896,
1210,
1463,
8168,
24,
46,
12,
2472,
16,
810,
10019,
7734,
289,
5411,
15549,
5411,
15476,
1210,
501,
1210,
273,
12353,
5911,
12,
15934,
67,
4883,
1769,
5411,
368,
2073,
716,
1867,
353,
1529,
5411,
1387,
585,
31,
5411,
514,
1867,
1396,
273,
3911,
694,
7675,
588,
780,
12,
17229,
67,
9900,
2
] |
System.out.println("--------------------------------");
|
if (! (data[1] instanceof Number)) { throw new PainterException("setdash: wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue(); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), dashpattern, dashoffset); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, dashpattern, dashoffset); } context.pencil.graphics.setStroke(newStroke);
|
public void execute(PAContext context) throws PainterException { Enumeration enumx = context.operands.elements(); System.out.println("-------------Stack--------------"); while (enumx.hasMoreElements()) { System.out.println(enumx.nextElement()); } System.out.println("--------------------------------"); }
|
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/daa5304636a08f20e2545b070a8a5d968b0ebfb8/PAContext.java/buggy/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
13864,
2792,
92,
273,
819,
18,
4063,
5708,
18,
6274,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
16982,
2624,
17908,
8863,
3639,
1323,
261,
7924,
92,
18,
5332,
7417,
3471,
10756,
288,
1850,
2332,
18,
659,
18,
8222,
12,
7924,
92,
18,
4285,
1046,
10663,
3639,
289,
3639,
309,
16051,
261,
892,
63,
21,
65,
1276,
3588,
3719,
288,
604,
394,
453,
11606,
503,
2932,
542,
21817,
30,
7194,
1775,
8863,
289,
225,
2407,
666,
273,
261,
19558,
13,
501,
63,
20,
15533,
225,
309,
261,
1098,
18,
1467,
1435,
422,
374,
13,
288,
327,
31,
289,
1431,
8526,
12558,
4951,
273,
394,
1431,
63,
1098,
18,
1467,
1435,
15533,
364,
261,
474,
277,
273,
374,
31,
277,
411,
12558,
4951,
18,
2469,
31,
277,
27245,
288,
12558,
4951,
63,
77,
65,
273,
261,
261,
1854,
13,
666,
18,
588,
12,
77,
13,
2934,
5659,
620,
5621,
289,
1431,
12558,
3348,
273,
261,
261,
1854,
13,
501,
63,
21,
65,
2934,
5659,
620,
5621,
309,
261,
1673,
14602,
1276,
7651,
14602,
13,
288,
394,
14602,
273,
394,
7651,
14602,
12,
261,
261,
8252,
14602,
13,
1592,
14602,
2934,
588,
1670,
2384,
9334,
261,
261,
8252,
14602,
13,
1592,
14602,
2934,
588,
1638,
4664,
9334,
261,
261,
8252,
14602,
13,
1592,
14602,
2934,
588,
1670,
4572,
9334,
261,
261,
8252,
14602,
13,
1592,
14602,
2934,
588,
49,
2165,
3039,
9334,
12558,
4951,
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,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
13864,
2792,
92,
273,
819,
18,
4063,
5708,
18,
6274,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
16982,
2624,
17908,
8863,
3639,
1323,
261,
7924,
92,
18,
5332,
7417,
3471,
10756,
288,
1850,
2332,
18,
659,
18,
8222,
12,
7924,
92,
18,
4285,
1046,
10663,
3639,
289,
3639,
309,
16051,
261,
892,
63,
21,
65,
1276,
3588,
3719,
288,
604,
394,
453,
11606,
503,
2932,
542,
21817,
30,
7194,
1775,
8863,
289,
225,
2407,
666,
273,
261,
19558,
13,
501,
63,
20,
15533,
225,
309,
261,
1098,
18,
1467,
1435,
422,
374,
13,
288,
327,
31,
289,
1431,
8526,
12558,
4951,
273,
394,
2
] |
PropertyValue[] dynamicProperties = gBeanDefinition.getDynamicPropertyValues().getPropertyValues(); for (int i = 0; i < dynamicProperties.length; i++) { PropertyValue dynamicPropertyValue = dynamicProperties[i]; gbeanData.setAttribute(dynamicPropertyValue.getName(), dynamicPropertyValue.getValue()); } for (Iterator iterator = gBeanDefinition.getConstructorArgumentValues().getIndexedArgumentValues().entrySet().iterator(); iterator.hasNext();) {
|
for (Iterator iterator = serviceFactory.getDynamicProperties().entrySet().iterator(); iterator.hasNext();) {
|
public static GBeanData createGBeanData(GBeanDefinition gBeanDefinition) { GBeanData gbeanData = new GBeanData(gBeanDefinition.getObjectName(), createGBeanInfo(gBeanDefinition)); gbeanData.setAttribute("gbeanEnabled", Boolean.valueOf(gBeanDefinition.isEnabled())); // add the normal properties PropertyValue[] properties = gBeanDefinition.getPropertyValues().getPropertyValues(); for (int i = 0; i < properties.length; i++) { PropertyValue propertyValue = properties[i]; gbeanData.setAttribute(propertyValue.getName(), propertyValue.getValue()); } // add the dynamic properties PropertyValue[] dynamicProperties = gBeanDefinition.getDynamicPropertyValues().getPropertyValues(); for (int i = 0; i < dynamicProperties.length; i++) { PropertyValue dynamicPropertyValue = dynamicProperties[i]; gbeanData.setAttribute(dynamicPropertyValue.getName(), dynamicPropertyValue.getValue()); } // add the constructor arguments for (Iterator iterator = gBeanDefinition.getConstructorArgumentValues().getIndexedArgumentValues().entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); ConstructorArgumentValues.ValueHolder valueHolder = (ConstructorArgumentValues.ValueHolder) entry.getValue(); String constructorArgName; if (valueHolder instanceof NamedValueHolder) { NamedValueHolder namedValueHolder = (NamedValueHolder) valueHolder; constructorArgName = namedValueHolder.getName(); } else { int index = ((Integer) entry.getKey()).intValue(); constructorArgName = "constructor-argument-" + index; } gbeanData.setAttribute(constructorArgName, valueHolder.getValue()); } // add the dependencies String[] dependsOn = gBeanDefinition.getDependsOn(); for (int i = 0; i < dependsOn.length; i++) { String dependencyString = dependsOn[i]; Map map = stringToDependency(dependencyString); Map.Entry entry = ((Map.Entry) map.entrySet().iterator().next()); String dependencyName = (String) entry.getKey(); Set patterns = (Set) entry.getValue(); gbeanData.setReferencePatterns(dependencyName, patterns); } return gbeanData; }
|
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/GeronimoUtil.java/buggy/kernel/src/java/org/gbean/geronimo/GeronimoUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
611,
3381,
751,
752,
43,
3381,
751,
12,
43,
3381,
1852,
314,
3381,
1852,
13,
288,
3639,
611,
3381,
751,
314,
14496,
751,
273,
394,
611,
3381,
751,
12,
75,
3381,
1852,
18,
588,
16707,
9334,
752,
43,
3381,
966,
12,
75,
3381,
1852,
10019,
3639,
314,
14496,
751,
18,
542,
1499,
2932,
75,
14496,
1526,
3113,
3411,
18,
1132,
951,
12,
75,
3381,
1852,
18,
291,
1526,
1435,
10019,
3639,
368,
527,
326,
2212,
1790,
3639,
4276,
620,
8526,
1790,
273,
314,
3381,
1852,
18,
588,
1396,
1972,
7675,
588,
1396,
1972,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1790,
18,
2469,
31,
277,
27245,
288,
5411,
4276,
620,
12337,
273,
1790,
63,
77,
15533,
5411,
314,
14496,
751,
18,
542,
1499,
12,
4468,
620,
18,
17994,
9334,
12337,
18,
24805,
10663,
3639,
289,
3639,
368,
527,
326,
5976,
1790,
3639,
4276,
620,
8526,
5976,
2297,
273,
314,
3381,
1852,
18,
588,
9791,
1396,
1972,
7675,
588,
1396,
1972,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
5976,
2297,
18,
2469,
31,
277,
27245,
288,
5411,
4276,
620,
5976,
16107,
273,
5976,
2297,
63,
77,
15533,
5411,
314,
14496,
751,
18,
542,
1499,
12,
14507,
16107,
18,
17994,
9334,
5976,
16107,
18,
24805,
10663,
3639,
289,
3639,
368,
527,
326,
3885,
1775,
3639,
364,
261,
3198,
2775,
273,
314,
3381,
1852,
18,
588,
6293,
1379,
1972,
7675,
588,
15034,
1379,
1972,
7675,
4099,
694,
7675,
9838,
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,
611,
3381,
751,
752,
43,
3381,
751,
12,
43,
3381,
1852,
314,
3381,
1852,
13,
288,
3639,
611,
3381,
751,
314,
14496,
751,
273,
394,
611,
3381,
751,
12,
75,
3381,
1852,
18,
588,
16707,
9334,
752,
43,
3381,
966,
12,
75,
3381,
1852,
10019,
3639,
314,
14496,
751,
18,
542,
1499,
2932,
75,
14496,
1526,
3113,
3411,
18,
1132,
951,
12,
75,
3381,
1852,
18,
291,
1526,
1435,
10019,
3639,
368,
527,
326,
2212,
1790,
3639,
4276,
620,
8526,
1790,
273,
314,
3381,
1852,
18,
588,
1396,
1972,
7675,
588,
1396,
1972,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1790,
18,
2469,
31,
277,
27245,
288,
5411,
4276,
620,
12337,
273,
2
] |
cx.isGeneratingDebug();
|
(cx.isGeneratingDebugChanged() && cx.isGeneratingDebug());
|
generateFunctionICode(Context cx, Scriptable scope, FunctionNode theFunction, Object securityDomain) { itsFunctionList = (Vector) theFunction.getProp(Node.FUNCTION_PROP); if (itsFunctionList != null) generateNestedFunctions(scope, cx, securityDomain); Object[] regExpLiterals = null; Vector regexps = (Vector)theFunction.getProp(Node.REGEXP_PROP); if (regexps != null) regExpLiterals = generateRegExpLiterals(cx, scope, regexps); VariableTable varTable = theFunction.getVariableTable(); boolean needsActivation = theFunction.requiresActivation() || cx.isGeneratingDebug(); generateICodeFromTree(theFunction.getLastChild(), varTable, needsActivation, securityDomain); itsData.itsName = theFunction.getFunctionName(); itsData.itsSourceFile = (String) theFunction.getProp( Node.SOURCENAME_PROP); itsData.itsSource = (String)theFunction.getProp(Node.SOURCE_PROP); itsData.itsNestedFunctions = itsNestedFunctions; itsData.itsRegExpLiterals = regExpLiterals; if (printICode) dumpICode(itsData); InterpretedFunction result = new InterpretedFunction(itsData, cx); if (cx.debugger != null) { cx.debugger.handleCompilationDone(cx, result, debugSource); } return result; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/5425d1691bf0027c3411689a78202b7f4d1cc124/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2103,
2083,
45,
1085,
12,
1042,
9494,
16,
22780,
2146,
16,
21821,
4284,
907,
326,
2083,
16,
1033,
4373,
3748,
13,
565,
288,
3639,
2097,
2083,
682,
273,
261,
5018,
13,
326,
2083,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
3639,
309,
261,
1282,
2083,
682,
480,
446,
13,
2398,
2103,
8649,
7503,
12,
4887,
16,
9494,
16,
4373,
3748,
1769,
3639,
1033,
8526,
31223,
48,
11235,
273,
446,
31,
3639,
5589,
3936,
1121,
273,
261,
5018,
13,
5787,
2083,
18,
588,
4658,
12,
907,
18,
28225,
67,
15811,
1769,
3639,
309,
261,
7584,
1121,
480,
446,
13,
2398,
31223,
48,
11235,
273,
2103,
13673,
48,
11235,
12,
71,
92,
16,
2146,
16,
3936,
1121,
1769,
3639,
7110,
1388,
569,
1388,
273,
326,
2083,
18,
588,
3092,
1388,
5621,
3639,
1250,
4260,
14857,
273,
326,
2083,
18,
18942,
14857,
1435,
747,
21394,
261,
71,
92,
18,
291,
21755,
2829,
5033,
1435,
597,
9494,
18,
291,
21755,
2829,
10663,
3639,
2103,
45,
1085,
1265,
2471,
12,
5787,
2083,
18,
588,
3024,
1763,
9334,
1171,
9079,
569,
1388,
16,
4260,
14857,
16,
17311,
4373,
3748,
1769,
10792,
2097,
751,
18,
1282,
461,
273,
326,
2083,
18,
588,
25258,
5621,
3639,
2097,
751,
18,
1282,
31150,
273,
261,
780,
13,
326,
2083,
18,
588,
4658,
12,
4766,
565,
2029,
18,
3584,
1099,
39,
21150,
67,
15811,
1769,
3639,
2097,
751,
18,
1282,
1830,
273,
261,
780,
13,
5787,
2083,
18,
588,
4658,
12,
907,
18,
6537,
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,
2103,
2083,
45,
1085,
12,
1042,
9494,
16,
22780,
2146,
16,
21821,
4284,
907,
326,
2083,
16,
1033,
4373,
3748,
13,
565,
288,
3639,
2097,
2083,
682,
273,
261,
5018,
13,
326,
2083,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
3639,
309,
261,
1282,
2083,
682,
480,
446,
13,
2398,
2103,
8649,
7503,
12,
4887,
16,
9494,
16,
4373,
3748,
1769,
3639,
1033,
8526,
31223,
48,
11235,
273,
446,
31,
3639,
5589,
3936,
1121,
273,
261,
5018,
13,
5787,
2083,
18,
588,
4658,
12,
907,
18,
28225,
67,
15811,
1769,
3639,
309,
261,
7584,
1121,
480,
446,
13,
2398,
31223,
48,
11235,
273,
2103,
13673,
48,
11235,
12,
71,
92,
16,
2146,
16,
3936,
1121,
2
] |
Type receiverType = typeFrame.getInstance(invokeInstruction, cpg);
|
int instanceSlot = typeFrame.getInstanceSlot(invokeInstruction, cpg); Type receiverType = typeFrame.getValue(instanceSlot);
|
public static Set<XMethod> resolveMethodCallTargets( InvokeInstruction invokeInstruction, TypeFrame typeFrame, ConstantPoolGen cpg) throws DataflowAnalysisException, ClassNotFoundException { if (invokeInstruction.getOpcode() == Constants.INVOKESTATIC) { HashSet<XMethod> result = new HashSet<XMethod>(); result.add(new StaticMethod( invokeInstruction.getClassName(cpg), invokeInstruction.getName(cpg), invokeInstruction.getSignature(cpg), Constants.ACC_STATIC | Constants.ACC_PUBLIC )); return result; } if (!typeFrame.isValid()) { return new HashSet<XMethod>(); } Type receiverType = typeFrame.getInstance(invokeInstruction, cpg); if (!(receiverType instanceof ReferenceType)) { return new HashSet<XMethod>(); } // XXX: check whether or not type is exact return resolveMethodCallTargets((ReferenceType) receiverType, invokeInstruction, cpg, false); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/4b2340f43a24630a39d1e3cf394c3e3f87f27243/Hierarchy.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/Hierarchy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1000,
32,
60,
1305,
34,
2245,
12592,
9432,
12,
1082,
202,
10969,
11983,
4356,
11983,
16,
1082,
202,
559,
3219,
618,
3219,
16,
1082,
202,
6902,
2864,
7642,
3283,
75,
13,
1216,
1910,
2426,
9418,
503,
16,
10403,
288,
9506,
202,
430,
261,
14407,
11983,
18,
588,
22808,
1435,
422,
5245,
18,
706,
17691,
11027,
11781,
13,
288,
1082,
202,
13482,
32,
60,
1305,
34,
563,
273,
394,
6847,
32,
60,
1305,
34,
5621,
1082,
202,
2088,
18,
1289,
12,
2704,
10901,
1305,
12,
6862,
202,
14407,
11983,
18,
588,
3834,
12,
4057,
75,
3631,
6862,
202,
14407,
11983,
18,
17994,
12,
4057,
75,
3631,
6862,
202,
14407,
11983,
18,
588,
5374,
12,
4057,
75,
3631,
6862,
202,
2918,
18,
31414,
67,
22741,
571,
5245,
18,
31414,
67,
14939,
6862,
202,
10019,
1082,
202,
2463,
563,
31,
202,
202,
97,
9506,
202,
430,
16051,
723,
3219,
18,
26810,
10756,
288,
1082,
202,
2463,
394,
6847,
32,
60,
1305,
34,
5621,
202,
202,
97,
202,
202,
559,
5971,
559,
273,
618,
3219,
18,
588,
1442,
12,
14407,
11983,
16,
3283,
75,
1769,
202,
202,
430,
16051,
12,
24454,
559,
1276,
6268,
559,
3719,
288,
1082,
202,
2463,
394,
6847,
32,
60,
1305,
34,
5621,
202,
202,
97,
202,
202,
759,
11329,
30,
866,
2856,
578,
486,
618,
353,
5565,
202,
202,
2463,
2245,
12592,
9432,
12443,
2404,
559,
13,
5971,
559,
16,
4356,
11983,
16,
3283,
75,
16,
629,
1769,
202,
97,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1000,
32,
60,
1305,
34,
2245,
12592,
9432,
12,
1082,
202,
10969,
11983,
4356,
11983,
16,
1082,
202,
559,
3219,
618,
3219,
16,
1082,
202,
6902,
2864,
7642,
3283,
75,
13,
1216,
1910,
2426,
9418,
503,
16,
10403,
288,
9506,
202,
430,
261,
14407,
11983,
18,
588,
22808,
1435,
422,
5245,
18,
706,
17691,
11027,
11781,
13,
288,
1082,
202,
13482,
32,
60,
1305,
34,
563,
273,
394,
6847,
32,
60,
1305,
34,
5621,
1082,
202,
2088,
18,
1289,
12,
2704,
10901,
1305,
12,
6862,
202,
14407,
11983,
18,
588,
3834,
12,
4057,
75,
3631,
6862,
202,
14407,
11983,
18,
17994,
12,
4057,
75,
3631,
6862,
202,
14407,
11983,
18,
588,
5374,
12,
4057,
75,
2
] |
if (hbodyPath.equals(bodyPath)){ checkFolders(cms, newFolder);
|
if (hbodyPath.equals(bodyPath)){ String contentPath=newFolder+newFile; contentPath=contentPath.substring(0,contentPath.lastIndexOf("/")+1); checkFolders(cms, contentPath);
|
private void copyFile(A_CmsObject cms,CmsFile file, String newFolder, String newFile,String flags) throws CmsException { // copy the file and set the access flags if nescessary cms.copyFile(file.getAbsolutePath(),newFolder+newFile); //is file type plain if( (cms.getResourceType(file.getType()).getResourceName()).equals(C_TYPE_PAGE_NAME) ){ String bodyPath = getBodyPath(cms, (CmsFile)file); int help = C_CONTENTBODYPATH.lastIndexOf("/"); String hbodyPath=(C_CONTENTBODYPATH.substring(0,help))+(file.getAbsolutePath()); if (hbodyPath.equals(bodyPath)){ checkFolders(cms, newFolder); String newbodyPath=(C_CONTENTBODYPATH.substring(0,help))+newFolder+newFile; CmsFile newContent = cms.readFile(newFolder+newFile); changeContent(cms, newContent, newbodyPath); cms.copyFile(bodyPath,newbodyPath); } else { // unlock the template file, to prevent access errors, because // new template file will automatically be locked to the user //cms.unlockResource(file.getAbsolutePath()); } } CmsFile newfile=cms.readFile(newFolder,newFile); checkFlags(cms,newfile.getAbsolutePath(),flags); }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8f630bfc5dad65876e449420ae633be47d3d6085/CmsCopy.java/clean/src/com/opencms/workplace/CmsCopy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
26955,
12,
37,
67,
4747,
921,
6166,
16,
4747,
812,
585,
16,
514,
394,
3899,
16,
514,
20592,
16,
780,
2943,
13,
540,
1216,
11228,
288,
3639,
368,
1610,
326,
585,
471,
444,
326,
2006,
2943,
309,
290,
281,
614,
814,
3639,
6166,
18,
3530,
812,
12,
768,
18,
588,
10368,
743,
9334,
2704,
3899,
15,
2704,
812,
1769,
202,
565,
368,
291,
585,
618,
7351,
202,
202,
430,
12,
261,
6851,
18,
588,
15631,
12,
768,
18,
588,
559,
1435,
2934,
588,
19327,
1435,
2934,
14963,
12,
39,
67,
2399,
67,
11219,
67,
1985,
13,
262,
95,
3196,
3639,
514,
1417,
743,
273,
7587,
743,
12,
6851,
16,
261,
4747,
812,
13,
768,
1769,
1082,
202,
474,
2809,
273,
385,
67,
9689,
16691,
4211,
18,
2722,
31985,
2932,
4898,
1769,
1082,
202,
780,
366,
3432,
743,
28657,
39,
67,
9689,
16691,
4211,
18,
28023,
12,
20,
16,
5201,
3719,
15,
12,
768,
18,
588,
10368,
743,
10663,
26924,
202,
430,
261,
76,
3432,
743,
18,
14963,
12,
3432,
743,
3719,
95,
1171,
9506,
3639,
866,
14885,
12,
6851,
16,
394,
3899,
1769,
6862,
565,
514,
394,
3432,
743,
28657,
39,
67,
9689,
16691,
4211,
18,
28023,
12,
20,
16,
5201,
3719,
15,
2704,
3899,
15,
2704,
812,
31,
1082,
5411,
28118,
24358,
273,
6166,
18,
896,
812,
12,
2704,
3899,
15,
2704,
812,
1769,
1850,
9506,
3639,
2549,
1350,
12,
6851,
16,
24358,
16,
394,
3432,
743,
1769,
2398,
6862,
565,
6166,
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,
3238,
918,
26955,
12,
37,
67,
4747,
921,
6166,
16,
4747,
812,
585,
16,
514,
394,
3899,
16,
514,
20592,
16,
780,
2943,
13,
540,
1216,
11228,
288,
3639,
368,
1610,
326,
585,
471,
444,
326,
2006,
2943,
309,
290,
281,
614,
814,
3639,
6166,
18,
3530,
812,
12,
768,
18,
588,
10368,
743,
9334,
2704,
3899,
15,
2704,
812,
1769,
202,
565,
368,
291,
585,
618,
7351,
202,
202,
430,
12,
261,
6851,
18,
588,
15631,
12,
768,
18,
588,
559,
1435,
2934,
588,
19327,
1435,
2934,
14963,
12,
39,
67,
2399,
67,
11219,
67,
1985,
13,
262,
95,
3196,
3639,
514,
1417,
743,
273,
7587,
743,
12,
6851,
16,
261,
4747,
812,
13,
768,
1769,
1082,
2
] |
public void rule_attributes(RuleDescr rule) throws RecognitionException { AttributeDescr a = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:500:4: ( ( ( 'attributes' ':' )=> 'attributes' ':' )? ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )* ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:500:4: ( ( 'attributes' ':' )=> 'attributes' ':' )? ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )* { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:500:4: ( ( 'attributes' ':' )=> 'attributes' ':' )? int alt15=2; int LA15_0 = input.LA(1); if ( (LA15_0==40) ) { alt15=1; } switch (alt15) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:500:5: ( 'attributes' ':' )=> 'attributes' ':' { match(input,40,FOLLOW_40_in_rule_attributes739); if (failed) return ; match(input,39,FOLLOW_39_in_rule_attributes741); if (failed) return ; } break; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:501:4: ( ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute )* loop17: do { int alt17=2; int LA17_0 = input.LA(1); if ( (LA17_0==33||(LA17_0>=41 && LA17_0<=46)) ) { alt17=1; } switch (alt17) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:501:6: ( ( ( ',' )=> ',' )? rule_attribute )=> ( ( ',' )=> ',' )? a= rule_attribute { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:501:6: ( ( ',' )=> ',' )? int alt16=2; int LA16_0 = input.LA(1); if ( (LA16_0==33) ) { alt16=1; } switch (alt16) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:0:0: ( ',' )=> ',' { match(input,33,FOLLOW_33_in_rule_attributes750); if (failed) return ; } break; } pushFollow(FOLLOW_rule_attribute_in_rule_attributes755); a=rule_attribute(); _fsp--; if (failed) return ; if ( backtracking==0 ) { rule.addAttribute( a ); } } break; default : break loop17; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/63bc7036e62ae854cec463d59712c173f74e984c/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
67,
4350,
12,
2175,
16198,
1720,
13,
1216,
9539,
288,
6647,
3601,
16198,
279,
273,
446,
31,
3639,
775,
288,
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,
12483,
30,
24,
30,
261,
261,
261,
296,
4350,
11,
3921,
13216,
296,
4350,
11,
3921,
7851,
261,
261,
261,
261,
3316,
13216,
3316,
7851,
1720,
67,
4589,
13216,
261,
261,
3316,
13216,
3316,
7851,
279,
33,
1720,
67,
4589,
8618,
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,
12483,
30,
24,
30,
261,
261,
296,
4350,
11,
3921,
13216,
296,
4350,
11,
3921,
7851,
261,
261,
261,
261,
3316,
13216,
3316,
7851,
1720,
67,
4589,
13216,
261,
261,
3316,
13216,
3316,
7851,
279,
33,
1720,
67,
4589,
8618,
5411,
288,
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,
12483,
30,
24,
30,
261,
261,
296,
4350,
11,
3921,
13216,
296,
4350,
11,
3921,
7851,
5411,
509,
3770,
3600,
33,
22,
31,
5411,
509,
2928,
3600,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
5411,
309,
261,
261,
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,
1720,
67,
4350,
12,
2175,
16198,
1720,
13,
1216,
9539,
288,
6647,
3601,
16198,
279,
273,
446,
31,
3639,
775,
288,
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,
12483,
30,
24,
30,
261,
261,
261,
296,
4350,
11,
3921,
13216,
296,
4350,
11,
3921,
7851,
261,
261,
261,
261,
3316,
13216,
3316,
7851,
1720,
67,
4589,
13216,
261,
261,
3316,
13216,
3316,
7851,
279,
33,
1720,
67,
4589,
8618,
262,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
2
] |
||
if (lhs == null || rhs == null) {
|
if (rhs == null) {
|
private boolean isNegation(PsiExpression condition) { if (condition instanceof PsiPrefixExpression) { final PsiPrefixExpression prefixExpression = (PsiPrefixExpression) condition; final PsiJavaToken sign = prefixExpression.getOperationSign(); final IElementType tokenType = sign.getTokenType(); return tokenType.equals(JavaTokenType.EXCL); } else if (condition instanceof PsiBinaryExpression) { final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) condition; final PsiJavaToken sign = binaryExpression.getOperationSign(); final PsiExpression lhs = binaryExpression.getLOperand(); final PsiExpression rhs = binaryExpression.getROperand(); if (lhs == null || rhs == null) { return false; } final IElementType tokenType = sign.getTokenType(); if (tokenType.equals(JavaTokenType.NE)) { if (m_ignoreNegatedNullComparison) { final String lhsText = lhs.getText(); final String rhsText = rhs.getText(); return !"null".equals(lhsText) && !"null".equals(rhsText); } else { return true; } } else { return false; } } else { return false; } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/10dfc0821a579a6a0ff949a64d378572f57a4625/NegatedIfElseInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/controlflow/NegatedIfElseInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
8197,
1332,
367,
12,
52,
7722,
2300,
2269,
13,
288,
5411,
309,
261,
4175,
1276,
453,
7722,
2244,
2300,
13,
288,
7734,
727,
453,
7722,
2244,
2300,
1633,
2300,
273,
261,
52,
7722,
2244,
2300,
13,
2269,
31,
7734,
727,
453,
7722,
5852,
1345,
1573,
273,
1633,
2300,
18,
588,
2988,
2766,
5621,
7734,
727,
467,
17481,
22302,
273,
1573,
18,
588,
28675,
5621,
7734,
327,
22302,
18,
14963,
12,
5852,
28675,
18,
2294,
5017,
1769,
5411,
289,
469,
309,
261,
4175,
1276,
453,
7722,
5905,
2300,
13,
288,
7734,
727,
453,
7722,
5905,
2300,
3112,
2300,
273,
261,
52,
7722,
5905,
2300,
13,
2269,
31,
7734,
727,
453,
7722,
5852,
1345,
1573,
273,
3112,
2300,
18,
588,
2988,
2766,
5621,
7734,
727,
453,
7722,
2300,
8499,
273,
3112,
2300,
18,
588,
1502,
457,
464,
5621,
7734,
727,
453,
7722,
2300,
7711,
273,
3112,
2300,
18,
588,
1457,
457,
464,
5621,
7734,
309,
261,
86,
4487,
422,
446,
13,
288,
10792,
327,
629,
31,
7734,
289,
7734,
727,
467,
17481,
22302,
273,
1573,
18,
588,
28675,
5621,
7734,
309,
261,
2316,
559,
18,
14963,
12,
5852,
28675,
18,
5407,
3719,
288,
10792,
309,
261,
81,
67,
6185,
14337,
690,
2041,
16059,
13,
288,
13491,
727,
514,
8499,
1528,
273,
8499,
18,
588,
1528,
5621,
13491,
727,
514,
7711,
1528,
273,
7711,
18,
588,
1528,
5621,
13491,
327,
29054,
2011,
9654,
14963,
12,
80,
4487,
1528,
13,
597,
29054,
2011,
9654,
14963,
12,
86,
4487,
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,
540,
3238,
1250,
8197,
1332,
367,
12,
52,
7722,
2300,
2269,
13,
288,
5411,
309,
261,
4175,
1276,
453,
7722,
2244,
2300,
13,
288,
7734,
727,
453,
7722,
2244,
2300,
1633,
2300,
273,
261,
52,
7722,
2244,
2300,
13,
2269,
31,
7734,
727,
453,
7722,
5852,
1345,
1573,
273,
1633,
2300,
18,
588,
2988,
2766,
5621,
7734,
727,
467,
17481,
22302,
273,
1573,
18,
588,
28675,
5621,
7734,
327,
22302,
18,
14963,
12,
5852,
28675,
18,
2294,
5017,
1769,
5411,
289,
469,
309,
261,
4175,
1276,
453,
7722,
5905,
2300,
13,
288,
7734,
727,
453,
7722,
5905,
2300,
3112,
2300,
273,
261,
52,
7722,
5905,
2300,
13,
2269,
31,
7734,
727,
453,
7722,
5852,
1345,
1573,
273,
3112,
2300,
2
] |
Listener lsEditOptions = new Listener() { public void handleEvent(Event e) { editOptions(); } };
|
Listener lsEditUnselectAll = new Listener() { public void handleEvent(Event e) { editUnselectAll(); } };
|
Listener lsEditOptions = new Listener() { public void handleEvent(Event e) { editOptions(); } };
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/3407e1c953a175ae95b8f8869519858341ca2b24/Chef.java/clean/src/be/ibridge/kettle/chef/Chef.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
2223,
7180,
4666,
1320,
377,
273,
394,
10652,
1435,
288,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
3874,
1320,
5621,
377,
289,
289,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3196,
202,
2223,
7180,
4666,
1320,
377,
273,
394,
10652,
1435,
288,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
3874,
1320,
5621,
377,
289,
289,
31,
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
] |
private void __builtin_unsigned_long() { //unsigned long ICASTSimpleDeclSpecifier parmSds = new CASTSimpleDeclSpecifier(); parmSds.setType(IASTSimpleDeclSpecifier.t_unspecified); parmSds.setUnsigned(true); parmSds.setLong(true); IType c_unsigned_long = new CQualifierType(parmSds); IType cpp_unsigned_long = new CPPBasicType(IBasicType.t_unspecified, CPPBasicType.IS_UNSIGNED & CPPBasicType.IS_LONG); //int __builtin_ffsl(unsigned int x) IBinding temp = null; IFunctionType functionType = null; IParameter[] theParms = new IParameter[1]; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_int); IType returnType = new CBasicType(sds); IType[] parms = new IType[1]; parms[0] = c_unsigned_long; functionType = new CFunctionType(returnType, parms); theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_FFSL, scope, functionType, theParms, false); } else { IType returnType = new CPPBasicType( IBasicType.t_int, 0 ); IType[] parms = new IType[1]; parms[0] = cpp_unsigned_long; functionType = new CPPFunctionType(returnType, parms); theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_FFSL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_clzl(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_CLZL, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_CLZL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_ctzl(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_CTZL, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_CTZL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_popcountl(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_POPCOUNTL, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_POPCOUNTL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //int __builtin_parityl(unsigned int x) temp = null; if (lang == ParserLanguage.C) { temp = new CImplicitFunction(__BUILTIN_PARITYL, scope, functionType, theParms, false); } else { temp = new CPPImplicitFunction(__BUILTIN_PARITYL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e5e342776ddb4235e342044729523a01bf8c688b/GCCBuiltinSymbolProvider.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/GCCBuiltinSymbolProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
972,
24553,
67,
22297,
67,
5748,
1435,
95,
759,
22297,
5748,
202,
202,
2871,
9053,
5784,
3456,
21416,
1065,
81,
55,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621,
202,
202,
1065,
81,
55,
2377,
18,
542,
559,
12,
45,
9053,
5784,
3456,
21416,
18,
88,
67,
318,
13827,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
13290,
12,
3767,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
3708,
12,
3767,
1769,
202,
202,
45,
559,
71,
67,
22297,
67,
5748,
33,
2704,
39,
16185,
559,
12,
1065,
81,
55,
2377,
1769,
202,
202,
45,
559,
4057,
84,
67,
22297,
67,
5748,
33,
2704,
4258,
52,
8252,
559,
12,
45,
8252,
559,
18,
88,
67,
318,
13827,
16,
4258,
52,
8252,
559,
18,
5127,
67,
2124,
21049,
10,
4258,
52,
8252,
559,
18,
5127,
67,
14639,
1769,
9506,
202,
759,
474,
972,
24553,
67,
1403,
2069,
12,
22297,
474,
92,
13,
202,
202,
45,
5250,
5814,
33,
2011,
31,
202,
202,
45,
2083,
559,
915,
559,
33,
2011,
31,
202,
202,
45,
1662,
8526,
5787,
28572,
33,
2704,
45,
1662,
63,
21,
15533,
202,
202,
430,
12,
4936,
631,
2678,
3779,
18,
39,
15329,
1082,
202,
2871,
9053,
5784,
3456,
1990,
3383,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621,
1082,
202,
87,
2377,
18,
542,
559,
12,
45,
9053,
5784,
3456,
21416,
18,
88,
67,
474,
1769,
1082,
202,
1285,
8300,
851,
559,
33,
2704,
39,
8252,
559,
12,
87,
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,
6459,
972,
24553,
67,
22297,
67,
5748,
1435,
95,
759,
22297,
5748,
202,
202,
2871,
9053,
5784,
3456,
21416,
1065,
81,
55,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621,
202,
202,
1065,
81,
55,
2377,
18,
542,
559,
12,
45,
9053,
5784,
3456,
21416,
18,
88,
67,
318,
13827,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
13290,
12,
3767,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
3708,
12,
3767,
1769,
202,
202,
45,
559,
71,
67,
22297,
67,
5748,
33,
2704,
39,
16185,
559,
12,
1065,
81,
55,
2377,
1769,
202,
202,
45,
559,
4057,
84,
67,
22297,
67,
5748,
33,
2704,
4258,
52,
8252,
559,
12,
45,
8252,
559,
18,
2
] |
||
ref.append( line ).append( "\n" );
|
ref.append( line ).append('\n');
|
public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { if(data.size() > 1024*1024) { this.writeReply(ctx, 400, "text/plain", "Too big", "Too much data, darknet toadlet limited to 1MB"); return; } HTTPRequest request = new HTTPRequest(uri, data, ctx); boolean logMINOR = Logger.shouldLog(Logger.MINOR, this); String pass = request.getPartAsString("formPassword", 32); if((pass == null) || !pass.equals(core.formPassword)) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); if(logMINOR) Logger.minor(this, "No password ("+pass+" should be "+core.formPassword+")"); return; } if (request.isPartSet("add")) { // add a new node String urltext = request.getPartAsString("url", 100); urltext = urltext.trim(); String reftext = request.getPartAsString("ref", 2000); reftext = reftext.trim(); if (reftext.length() < 200) { reftext = request.getPartAsString("reffile", 2000); reftext = reftext.trim(); } String privateComment = request.getPartAsString("peerPrivateNote", 250).trim(); StringBuffer ref = new StringBuffer(1024); if (urltext.length() > 0) { // fetch reference from a URL BufferedReader in = null; try { URL url = new URL(urltext); URLConnection uc = url.openConnection(); in = new BufferedReader(new InputStreamReader(uc.getInputStream())); String line; while ( (line = in.readLine()) != null) { ref.append( line ).append( "\n" ); } } catch (IOException e) { this.sendErrorPage(ctx, 200, "Failed To Add Node", "Unable to retrieve node reference from " + urltext + ". Please try again."); return; } finally { if( in != null ){ in.close(); } } } else if (reftext.length() > 0) { // read from post data or file upload // this slightly scary looking regexp chops any extra characters off the beginning or ends of lines and removes extra line breaks ref = new StringBuffer(reftext.replaceAll(".*?((?:[\\w,\\.]+\\=[^\r\n]+?)|(?:End))[ \\t]*(?:\\r?\\n)+", "$1\n")); } else { this.sendErrorPage(ctx, 200, "Failed To Add Node", "Could not detect either a node reference or a URL. Please try again."); request.freeParts(); return; } ref = new StringBuffer(ref.toString().trim()); request.freeParts(); // we have a node reference in ref SimpleFieldSet fs; try { fs = new SimpleFieldSet(ref.toString(), true); fs.setEndMarker("End"); // It's always End ; the regex above doesn't always grok this } catch (IOException e) { this.sendErrorPage(ctx, 200, "Failed To Add Node", "Unable to parse the given text as a node reference ("+e+"). Please try again."); return; } PeerNode pn; try { pn = new PeerNode(fs, this.node, false); pn.setPrivateDarknetCommentNote(privateComment); } catch (FSParseException e1) { this.sendErrorPage(ctx, 200, "Failed To Add Node", "Unable to parse the given text as a node reference ("+e1+"). Please try again."); return; } catch (PeerParseException e1) { this.sendErrorPage(ctx, 200, "Failed To Add Node", "Unable to parse the given text as a node reference ("+e1+"). Please try again."); return; } catch (ReferenceSignatureVerificationException e1){ HTMLNode node = new HTMLNode("div"); node.addChild("#", "Unable to verify the signature of the given reference ("+e1+")."); node.addChild("br"); this.sendErrorPage(ctx, 200, "Failed To Add Node", node); return; } if(pn.getIdentityHash()==node.getIdentityHash()) { this.sendErrorPage(ctx, 200, "Failed To Add Node", "You can\u2019t add your own node to the list of remote peers."); return; } if(!this.node.addDarknetConnection(pn)) { this.sendErrorPage(ctx, 200, "Failed To Add Node", "We already have the given reference."); return; } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("send_n2ntm")) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Send Node to Node Text Message"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); PeerNode[] peerNodes = node.getDarknetConnections(); HashMap peers = new HashMap(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { PeerNode pn = peerNodes[i]; String peer_name = pn.getName(); String peer_hash = "" + pn.hashCode(); if(!peers.containsKey(peer_hash)) { peers.put(peer_hash, peer_name); } } } String resultString = N2NTMToadlet.createN2NTMSendForm( pageNode, contentNode, ctx, peers, core.formPassword); if(resultString != null) { // was there an error in createN2NTMSendForm()? this.writeReply(ctx, 200, "text/html", "OK", resultString); return; } StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("update_notes")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("peerPrivateNote_"+peerNodes[i].hashCode())) { if(!request.getPartAsString("peerPrivateNote_"+peerNodes[i].hashCode(),250).equals(peerNodes[i].getPrivateDarknetCommentNote())) { peerNodes[i].setPrivateDarknetCommentNote(request.getPartAsString("peerPrivateNote_"+peerNodes[i].hashCode(),250)); } } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("enable")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { peerNodes[i].enablePeer(); } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("disable")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { peerNodes[i].disablePeer(); } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("set_burst_only")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { peerNodes[i].setBurstOnly(true); } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("clear_burst_only")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { peerNodes[i].setBurstOnly(false); } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("set_listen_only")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { peerNodes[i].setListenOnly(true); } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("clear_listen_only")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { peerNodes[i].setListenOnly(false); } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("set_allow_local")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { peerNodes[i].setAllowLocalAddresses(true); } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("clear_allow_local")) { //int hashcode = Integer.decode(request.getParam("node")).intValue(); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { peerNodes[i].setAllowLocalAddresses(false); } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else if (request.isPartSet("remove") || (request.isPartSet("doAction") && request.getPartAsString("action",25).equals("remove"))) { if(logMINOR) Logger.minor(this, "Remove node"); PeerNode[] peerNodes = node.getDarknetConnections(); for(int i = 0; i < peerNodes.length; i++) { if (request.isPartSet("node_"+peerNodes[i].hashCode())) { if((peerNodes[i].timeLastConnectionCompleted() < (System.currentTimeMillis() - 1000*60*60*24*7) /* one week */) || (peerNodes[i].peerNodeStatus == Node.PEER_NODE_STATUS_NEVER_CONNECTED) || request.isPartSet("forceit")){ this.node.removeDarknetConnection(peerNodes[i]); if(logMINOR) Logger.minor(this, "Removed node: node_"+peerNodes[i].hashCode()); }else{ if(logMINOR) Logger.minor(this, "Refusing to remove : node_"+peerNodes[i].hashCode()+" (trying to prevent network churn) : let's display the warning message."); HTMLNode pageNode = ctx.getPageMaker().getPageNode("Please confirm"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-warning", "Node removal")); HTMLNode content = ctx.getPageMaker().getContentNode(infobox); content.addChild("p").addChild("#", "Are you sure you wish to remove "+peerNodes[i].getName()+" ? Before it has at least one week downtime, it's not recommended to do so, as it may be down only temporarily, and many users cannot run their nodes 24x7."); HTMLNode removeForm = content.addChild("p").addChild("form", new String[] { "action", "method" }, new String[] { "/darknet/", "post" }); removeForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "node_"+peerNodes[i].hashCode(), "remove" }); removeForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); removeForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "cancel", "Cancel" }); removeForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "remove", "Remove it!" }); removeForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "forceit", "Force" }); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; // FIXME: maybe it breaks multi-node removing } } else { if(logMINOR) Logger.minor(this, "Part not set: node_"+peerNodes[i].hashCode()); } } MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/darknet/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } else { this.handleGet(uri, ctx); } }
|
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/62fd59041864b4ed1f43adc676de6bfb5ea977f3/DarknetConnectionsToadlet.java/buggy/src/freenet/clients/http/DarknetConnectionsToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
10703,
9816,
501,
16,
23433,
2758,
358,
361,
1810,
13594,
358,
404,
7969,
8863,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
501,
16,
1103,
1769,
9506,
202,
6494,
613,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
16,
333,
1769,
9506,
202,
780,
1342,
273,
590,
18,
588,
1988,
8092,
2932,
687,
3913,
3113,
3847,
1769,
202,
202,
430,
12443,
5466,
422,
446,
13,
747,
401,
5466,
18,
14963,
12,
3644,
18,
687,
3913,
3719,
288,
1082,
202,
5002,
620,
1388,
1607,
273,
394,
5991,
620,
1388,
5621,
1082,
202,
2485,
18,
458,
2932,
2735,
3113,
2206,
25045,
2758,
4898,
1769,
1082,
202,
5900,
18,
4661,
7817,
3121,
12,
23,
3103,
16,
315,
2043,
3113,
1607,
16,
446,
16,
374,
1769,
1082,
202,
430,
12,
1330,
6236,
916,
13,
4242,
18,
17364,
12,
2211,
16,
315,
2279,
2201,
7566,
15,
5466,
9078,
1410,
506,
13773,
3644,
18,
687,
3913,
9078,
2225,
1769,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
430,
261,
2293,
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,
1640,
3349,
12,
3098,
2003,
16,
7408,
501,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
430,
12,
892,
18,
1467,
1435,
405,
6250,
14,
2163,
3247,
13,
288,
1082,
202,
2211,
18,
2626,
7817,
12,
5900,
16,
7409,
16,
315,
955,
19,
7446,
3113,
315,
10703,
5446,
3113,
315,
10703,
9816,
501,
16,
23433,
2758,
358,
361,
1810,
13594,
358,
404,
7969,
8863,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
16,
501,
16,
1103,
1769,
9506,
202,
6494,
613,
6236,
916,
273,
4242,
18,
13139,
1343,
12,
3328,
18,
6236,
916,
2
] |
private static ObjectSerializer makeAuStateSerializer() {
|
private ObjectSerializer makeAuStateSerializer() {
|
private static ObjectSerializer makeAuStateSerializer() { // CASTOR: Phase out with Castor return makeObjectSerializer(AuStateBean.class); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/322ef92ed296394c2702ea09f9138469fd1c85c1/HistoryRepositoryImpl.java/buggy/src/org/lockss/state/HistoryRepositoryImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1033,
6306,
1221,
37,
89,
1119,
6306,
1435,
288,
565,
368,
6425,
882,
916,
30,
19459,
596,
598,
19782,
280,
565,
327,
1221,
921,
6306,
12,
37,
89,
1119,
3381,
18,
1106,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
6306,
1221,
37,
89,
1119,
6306,
1435,
288,
565,
368,
6425,
882,
916,
30,
19459,
596,
598,
19782,
280,
565,
327,
1221,
921,
6306,
12,
37,
89,
1119,
3381,
18,
1106,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
handleAdmin(user, req);
|
if (authAction) { handleAdmin(user, req);
|
public void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { req.setCharacterEncoding("UTF-8"); resp.setCharacterEncoding("UTF-8"); resp.setContentType("text/html"); User user = (User)req.getSession().getAttribute("user"); String login = req.getParameter("login"); String pass = req.getParameter("password"); String action = req.getParameter("action"); boolean forceNewIndex = false; if (req.getParameter("regenerateIndex") != null) forceNewIndex = true; User oldUser = user; user = handleRegister(user, req); if (oldUser != user) forceNewIndex = true; if (user == null) { if ("Login".equals(action)) { user = BlogManager.instance().login(login, pass); // ignore failures - user will just be unauthorized if (!user.getAuthenticated()) user = BlogManager.instance().getDefaultUser(); } else { user = BlogManager.instance().getDefaultUser(); } forceNewIndex = true; } else if ("Login".equals(action)) { user = BlogManager.instance().login(login, pass); // ignore failures - user will just be unauthorized if (!user.getAuthenticated()) user = BlogManager.instance().getDefaultUser(); forceNewIndex = true; } else if ("Logout".equals(action)) { user = BlogManager.instance().getDefaultUser(); forceNewIndex = true; } req.getSession().setAttribute("user", user); handleAdmin(user, req); forceNewIndex = handleAddressbook(user, req) || forceNewIndex; forceNewIndex = handleBookmarking(user, req) || forceNewIndex; handleUpdateProfile(user, req); FilteredThreadIndex index = (FilteredThreadIndex)req.getSession().getAttribute("threadIndex"); Collection tags = getFilteredTags(req); Collection filteredAuthors = getFilteredAuthors(req); if (forceNewIndex || (index == null) || (!index.getFilteredTags().equals(tags)) || (!index.getFilteredAuthors().equals(filteredAuthors))) { index = new FilteredThreadIndex(user, BlogManager.instance().getArchive(), getFilteredTags(req), filteredAuthors); req.getSession().setAttribute("threadIndex", index); } render(user, req, resp.getWriter(), index); }
|
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/ddd438de35fbe3d75565ba0a1660cac2e44a66b7/BaseServlet.java/clean/apps/syndie/java/src/net/i2p/syndie/web/BaseServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1156,
12,
2940,
18572,
1111,
16,
12446,
1718,
13,
1216,
16517,
16,
1860,
288,
3639,
1111,
18,
542,
7069,
4705,
2932,
5159,
17,
28,
8863,
3639,
1718,
18,
542,
7069,
4705,
2932,
5159,
17,
28,
8863,
3639,
1718,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
7734,
2177,
729,
273,
261,
1299,
13,
3658,
18,
588,
2157,
7675,
588,
1499,
2932,
1355,
8863,
3639,
514,
3925,
273,
1111,
18,
588,
1662,
2932,
5819,
8863,
3639,
514,
1342,
273,
1111,
18,
588,
1662,
2932,
3664,
8863,
3639,
514,
1301,
273,
1111,
18,
588,
1662,
2932,
1128,
8863,
3639,
1250,
2944,
1908,
1016,
273,
629,
31,
7734,
309,
261,
3658,
18,
588,
1662,
2932,
1574,
14681,
1016,
7923,
480,
446,
13,
5411,
2944,
1908,
1016,
273,
638,
31,
3639,
2177,
1592,
1299,
273,
729,
31,
3639,
729,
273,
1640,
3996,
12,
1355,
16,
1111,
1769,
3639,
309,
261,
1673,
1299,
480,
729,
13,
5411,
2944,
1908,
1016,
273,
638,
31,
7734,
309,
261,
1355,
422,
446,
13,
288,
5411,
309,
7566,
5358,
9654,
14963,
12,
1128,
3719,
288,
7734,
729,
273,
25464,
1318,
18,
1336,
7675,
5819,
12,
5819,
16,
1342,
1769,
368,
2305,
11720,
300,
729,
903,
2537,
506,
640,
8434,
7734,
309,
16051,
1355,
18,
588,
15606,
10756,
10792,
729,
273,
25464,
1318,
18,
1336,
7675,
588,
1868,
1299,
5621,
5411,
289,
469,
288,
7734,
729,
273,
25464,
1318,
18,
1336,
7675,
588,
1868,
1299,
5621,
5411,
289,
5411,
2944,
1908,
1016,
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,
1156,
12,
2940,
18572,
1111,
16,
12446,
1718,
13,
1216,
16517,
16,
1860,
288,
3639,
1111,
18,
542,
7069,
4705,
2932,
5159,
17,
28,
8863,
3639,
1718,
18,
542,
7069,
4705,
2932,
5159,
17,
28,
8863,
3639,
1718,
18,
542,
8046,
2932,
955,
19,
2620,
8863,
7734,
2177,
729,
273,
261,
1299,
13,
3658,
18,
588,
2157,
7675,
588,
1499,
2932,
1355,
8863,
3639,
514,
3925,
273,
1111,
18,
588,
1662,
2932,
5819,
8863,
3639,
514,
1342,
273,
1111,
18,
588,
1662,
2932,
3664,
8863,
3639,
514,
1301,
273,
1111,
18,
588,
1662,
2932,
1128,
8863,
3639,
1250,
2944,
1908,
1016,
273,
629,
31,
7734,
309,
261,
3658,
18,
588,
1662,
2932,
1574,
14681,
1016,
7923,
2
] |
if (parent == null) {
|
if (parent == null) {
|
public void resetPropertyValue() { if (parent == null) { // root does not have a default value return; } // Use our parent's values to reset our values. boolean change = false; Object[] objects = parent.getValues(); for (int i = 0; i < objects.length; i++) { IPropertySource source = getPropertySource(objects[i]); if (source.isPropertySet(descriptor.getId())) { // fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=21756 if (source instanceof IPropertySource2) { IPropertySource2 extendedSource = (IPropertySource2) source; // continue with next if property is not resettable if (!extendedSource .isPropertyResettable(descriptor.getId())) { continue; } } source.resetPropertyValue(descriptor.getId()); change = true; } } if (change) { refreshFromRoot(); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ccb6f8ddf35b3b40ebd3ebe3e7982aa947ec045/PropertySheetEntry.java/buggy/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetEntry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
16107,
1435,
288,
3639,
309,
261,
2938,
422,
446,
13,
288,
1082,
202,
759,
1365,
1552,
486,
1240,
279,
805,
460,
5411,
327,
31,
202,
202,
97,
3639,
368,
202,
3727,
3134,
982,
1807,
924,
358,
2715,
3134,
924,
18,
3639,
1250,
2549,
273,
629,
31,
3639,
1033,
8526,
2184,
273,
982,
18,
588,
1972,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2184,
18,
2469,
31,
277,
27245,
288,
5411,
467,
1396,
1830,
1084,
273,
3911,
1830,
12,
6911,
63,
77,
19226,
5411,
309,
261,
3168,
18,
291,
1396,
694,
12,
12628,
18,
26321,
1435,
3719,
288,
7734,
368,
2917,
364,
2333,
2207,
19381,
18,
20416,
18,
3341,
19,
19381,
19,
4500,
67,
925,
18,
19062,
35,
350,
33,
22,
4033,
4313,
7734,
309,
261,
3168,
1276,
467,
1396,
1830,
22,
13,
288,
10792,
467,
1396,
1830,
22,
7021,
1830,
273,
261,
45,
1396,
1830,
22,
13,
1084,
31,
10792,
368,
1324,
598,
1024,
309,
1272,
353,
486,
2715,
2121,
10792,
309,
16051,
14948,
1830,
18701,
263,
291,
1396,
7013,
2121,
12,
12628,
18,
26321,
1435,
3719,
288,
25083,
202,
17143,
31,
6862,
202,
97,
7734,
289,
7734,
1084,
18,
6208,
16107,
12,
12628,
18,
26321,
10663,
7734,
2549,
273,
638,
31,
5411,
289,
3639,
289,
3639,
309,
261,
3427,
13,
288,
1082,
202,
9144,
1265,
2375,
5621,
202,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
16107,
1435,
288,
3639,
309,
261,
2938,
422,
446,
13,
288,
1082,
202,
759,
1365,
1552,
486,
1240,
279,
805,
460,
5411,
327,
31,
202,
202,
97,
3639,
368,
202,
3727,
3134,
982,
1807,
924,
358,
2715,
3134,
924,
18,
3639,
1250,
2549,
273,
629,
31,
3639,
1033,
8526,
2184,
273,
982,
18,
588,
1972,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2184,
18,
2469,
31,
277,
27245,
288,
5411,
467,
1396,
1830,
1084,
273,
3911,
1830,
12,
6911,
63,
77,
19226,
5411,
309,
261,
3168,
18,
291,
1396,
694,
12,
12628,
18,
26321,
1435,
3719,
288,
7734,
368,
2917,
364,
2333,
2207,
19381,
18,
20416,
18,
3341,
19,
19381,
19,
2
] |
int slot = VM_Statics.findOrCreateFloatLiteral(ibits); int offset = slot << LOG_BYTES_IN_INT;
|
Offset offset = VM_Statics.findOrCreateFloatLiteral(ibits);
|
protected final VM_MachineCode genCode () { emit_prologue(); while (bcodes.hasMoreBytecodes()) { biStart = bcodes.index(); bytecodeMap[biStart] = asm.getMachineCodeIndex(); asm.resolveForwardReferences(biStart); //-#if RVM_WITH_OSR asm.patchLoadRetAddrConst(biStart); //-#endif starting_bytecode(); int code = bcodes.nextInstruction(); switch (code) { case JBC_nop: { if (shouldPrint) asm.noteBytecode(biStart, "nop"); break; } case JBC_aconst_null: { if (shouldPrint) asm.noteBytecode(biStart, "aconst_null"); emit_aconst_null(); break; } case JBC_iconst_m1: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_m1"); emit_iconst(-1); break; } case JBC_iconst_0: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_0"); emit_iconst(0); break; } case JBC_iconst_1: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_1"); emit_iconst(1); break; } case JBC_iconst_2: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_2"); emit_iconst(2); break; } case JBC_iconst_3: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_3"); emit_iconst(3); break; } case JBC_iconst_4: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_4"); emit_iconst(4); break; } case JBC_iconst_5: { if (shouldPrint) asm.noteBytecode(biStart, "iconst_5"); emit_iconst(5); break; } case JBC_lconst_0: { if (shouldPrint) asm.noteBytecode(biStart, "lconst_0"); // floating-point 0 is long 0 emit_lconst(0); break; } case JBC_lconst_1: { if (shouldPrint) asm.noteBytecode(biStart, "lconst_1"); emit_lconst(1); break; } case JBC_fconst_0: { if (shouldPrint) asm.noteBytecode(biStart, "fconst_0"); emit_fconst_0(); break; } case JBC_fconst_1: { if (shouldPrint) asm.noteBytecode(biStart, "fconst_1"); emit_fconst_1(); break; } case JBC_fconst_2: { if (shouldPrint) asm.noteBytecode(biStart, "fconst_2"); emit_fconst_2(); break; } case JBC_dconst_0: { if (shouldPrint) asm.noteBytecode(biStart, "dconst_0"); emit_dconst_0(); break; } case JBC_dconst_1: { if (shouldPrint) asm.noteBytecode(biStart, "dconst_1"); emit_dconst_1(); break; } case JBC_bipush: { int val = bcodes.getByteValue(); if (shouldPrint) asm.noteBytecode(biStart, "bipush", val); emit_iconst(val); break; } case JBC_sipush: { int val = bcodes.getShortValue(); if (shouldPrint) asm.noteBytecode(biStart, "sipush", val); emit_iconst(val); break; } case JBC_ldc: { int index = bcodes.getConstantIndex(); if (shouldPrint) asm.noteBytecode(biStart, "ldc", index); int offset = klass.getLiteralOffset(index); emit_ldc(offset); break; } case JBC_ldc_w: { int index = bcodes.getWideConstantIndex(); if (shouldPrint) asm.noteBytecode(biStart, "ldc_w", index); int offset = klass.getLiteralOffset(index); emit_ldc(offset); break; } case JBC_ldc2_w: { int index = bcodes.getWideConstantIndex(); if (shouldPrint) asm.noteBytecode(biStart, "ldc2_w", index); int offset = klass.getLiteralOffset(index); emit_ldc2(offset); break; } case JBC_iload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "iload" , index); emit_iload(index); break; } case JBC_lload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "lload", index); emit_lload(index); break; } case JBC_fload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "fload", index); emit_fload(index); break; } case JBC_dload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "dload", index); emit_dload(index); break; } case JBC_aload: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "aload", index); emit_aload(index); break; } case JBC_iload_0: { if (shouldPrint) asm.noteBytecode(biStart, "iload_0"); emit_iload(0); break; } case JBC_iload_1: { if (shouldPrint) asm.noteBytecode(biStart, "iload_1"); emit_iload(1); break; } case JBC_iload_2: { if (shouldPrint) asm.noteBytecode(biStart, "iload_2"); emit_iload(2); break; } case JBC_iload_3: { if (shouldPrint) asm.noteBytecode(biStart, "iload_3"); emit_iload(3); break; } case JBC_lload_0: { if (shouldPrint) asm.noteBytecode(biStart, "lload_0"); emit_lload(0); break; } case JBC_lload_1: { if (shouldPrint) asm.noteBytecode(biStart, "lload_1"); emit_lload(1); break; } case JBC_lload_2: { if (shouldPrint) asm.noteBytecode(biStart, "lload_2"); emit_lload(2); break; } case JBC_lload_3: { if (shouldPrint) asm.noteBytecode(biStart, "lload_3"); emit_lload(3); break; } case JBC_fload_0: { if (shouldPrint) asm.noteBytecode(biStart, "fload_0"); emit_fload(0); break; } case JBC_fload_1: { if (shouldPrint) asm.noteBytecode(biStart, "fload_1"); emit_fload(1); break; } case JBC_fload_2: { if (shouldPrint) asm.noteBytecode(biStart, "fload_2"); emit_fload(2); break; } case JBC_fload_3: { if (shouldPrint) asm.noteBytecode(biStart, "fload_3"); emit_fload(3); break; } case JBC_dload_0: { if (shouldPrint) asm.noteBytecode(biStart, "dload_0"); emit_dload(0); break; } case JBC_dload_1: { if (shouldPrint) asm.noteBytecode(biStart, "dload_1"); emit_dload(1); break; } case JBC_dload_2: { if (shouldPrint) asm.noteBytecode(biStart, "dload_2"); emit_dload(2); break; } case JBC_dload_3: { if (shouldPrint) asm.noteBytecode(biStart, "dload_3"); emit_dload(3); break; } case JBC_aload_0: { if (shouldPrint) asm.noteBytecode(biStart, "aload_0"); emit_aload(0); break; } case JBC_aload_1: { if (shouldPrint) asm.noteBytecode(biStart, "aload_1"); emit_aload(1); break; } case JBC_aload_2: { if (shouldPrint) asm.noteBytecode(biStart, "aload_2"); emit_aload(2); break; } case JBC_aload_3: { if (shouldPrint) asm.noteBytecode(biStart, "aload_3"); emit_aload(3); break; } case JBC_iaload: { if (shouldPrint) asm.noteBytecode(biStart, "iaload"); emit_iaload(); break; } case JBC_laload: { if (shouldPrint) asm.noteBytecode(biStart, "laload"); emit_laload(); break; } case JBC_faload: { if (shouldPrint) asm.noteBytecode(biStart, "faload"); emit_faload(); break; } case JBC_daload: { if (shouldPrint) asm.noteBytecode(biStart, "daload"); emit_daload(); break; } case JBC_aaload: { if (shouldPrint) asm.noteBytecode(biStart, "aaload"); emit_aaload(); break; } case JBC_baload: { if (shouldPrint) asm.noteBytecode(biStart, "baload"); emit_baload(); break; } case JBC_caload: { if (shouldPrint) asm.noteBytecode(biStart, "caload"); emit_caload(); break; } case JBC_saload: { if (shouldPrint) asm.noteBytecode(biStart, "saload"); emit_saload(); break; } case JBC_istore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "istore", index); emit_istore(index); break; } case JBC_lstore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "lstore", index); emit_lstore(index); break; } case JBC_fstore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "fstore", index); emit_fstore(index); break; } case JBC_dstore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "dstore", index); emit_dstore(index); break; } case JBC_astore: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "astore", index); emit_astore(index); break; } case JBC_istore_0: { if (shouldPrint) asm.noteBytecode(biStart, "istore_0"); emit_istore(0); break; } case JBC_istore_1: { if (shouldPrint) asm.noteBytecode(biStart, "istore_1"); emit_istore(1); break; } case JBC_istore_2: { if (shouldPrint) asm.noteBytecode(biStart, "istore_2"); emit_istore(2); break; } case JBC_istore_3: { if (shouldPrint) asm.noteBytecode(biStart, "istore_3"); emit_istore(3); break; } case JBC_lstore_0: { if (shouldPrint) asm.noteBytecode(biStart, "lstore_0"); emit_lstore(0); break; } case JBC_lstore_1: { if (shouldPrint) asm.noteBytecode(biStart, "lstore_1"); emit_lstore(1); break; } case JBC_lstore_2: { if (shouldPrint) asm.noteBytecode(biStart, "lstore_2"); emit_lstore(2); break; } case JBC_lstore_3: { if (shouldPrint) asm.noteBytecode(biStart, "lstore_3"); emit_lstore(3); break; } case JBC_fstore_0: { if (shouldPrint) asm.noteBytecode(biStart, "fstore_0"); emit_fstore(0); break; } case JBC_fstore_1: { if (shouldPrint) asm.noteBytecode(biStart, "fstore_1"); emit_fstore(1); break; } case JBC_fstore_2: { if (shouldPrint) asm.noteBytecode(biStart, "fstore_2"); emit_fstore(2); break; } case JBC_fstore_3: { if (shouldPrint) asm.noteBytecode(biStart, "fstore_3"); emit_fstore(3); break; } case JBC_dstore_0: { if (shouldPrint) asm.noteBytecode(biStart, "dstore_0"); emit_dstore(0); break; } case JBC_dstore_1: { if (shouldPrint) asm.noteBytecode(biStart, "dstore_1"); emit_dstore(1); break; } case JBC_dstore_2: { if (shouldPrint) asm.noteBytecode(biStart, "dstore_2"); emit_dstore(2); break; } case JBC_dstore_3: { if (shouldPrint) asm.noteBytecode(biStart, "dstore_3"); emit_dstore(3); break; } case JBC_astore_0: { if (shouldPrint) asm.noteBytecode(biStart, "astore_0"); emit_astore(0); break; } case JBC_astore_1: { if (shouldPrint) asm.noteBytecode(biStart, "astore_1"); emit_astore(1); break; } case JBC_astore_2: { if (shouldPrint) asm.noteBytecode(biStart, "astore_2"); emit_astore(2); break; } case JBC_astore_3: { if (shouldPrint) asm.noteBytecode(biStart, "astore_3"); emit_astore(3); break; } case JBC_iastore: { if (shouldPrint) asm.noteBytecode(biStart, "iastore"); emit_iastore(); break; } case JBC_lastore: { if (shouldPrint) asm.noteBytecode(biStart, "lastore"); emit_lastore(); break; } case JBC_fastore: { if (shouldPrint) asm.noteBytecode(biStart, "fastore"); emit_fastore(); break; } case JBC_dastore: { if (shouldPrint) asm.noteBytecode(biStart, "dastore"); emit_dastore(); break; } case JBC_aastore: { if (shouldPrint) asm.noteBytecode(biStart, "aastore"); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("aastore"); emit_aastore(); break; } case JBC_bastore: { if (shouldPrint) asm.noteBytecode(biStart, "bastore"); emit_bastore(); break; } case JBC_castore: { if (shouldPrint) asm.noteBytecode(biStart, "castore"); emit_castore(); break; } case JBC_sastore: { if (shouldPrint) asm.noteBytecode(biStart, "sastore"); emit_sastore(); break; } case JBC_pop: { if (shouldPrint) asm.noteBytecode(biStart, "pop"); emit_pop(); break; } case JBC_pop2: { if (shouldPrint) asm.noteBytecode(biStart, "pop2"); emit_pop2(); break; } case JBC_dup: { if (shouldPrint) asm.noteBytecode(biStart, "dup"); emit_dup(); break; } case JBC_dup_x1: { if (shouldPrint) asm.noteBytecode(biStart, "dup_x1"); emit_dup_x1(); break; } case JBC_dup_x2: { if (shouldPrint) asm.noteBytecode(biStart, "dup_x2"); emit_dup_x2(); break; } case JBC_dup2: { if (shouldPrint) asm.noteBytecode(biStart, "dup2"); emit_dup2(); break; } case JBC_dup2_x1: { if (shouldPrint) asm.noteBytecode(biStart, "dup2_x1"); emit_dup2_x1(); break; } case JBC_dup2_x2: { if (shouldPrint) asm.noteBytecode(biStart, "dup2_x2"); emit_dup2_x2(); break; } case JBC_swap: { if (shouldPrint) asm.noteBytecode(biStart, "swap"); emit_swap(); break; } case JBC_iadd: { if (shouldPrint) asm.noteBytecode(biStart, "iadd"); emit_iadd(); break; } case JBC_ladd: { if (shouldPrint) asm.noteBytecode(biStart, "ladd"); emit_ladd(); break; } case JBC_fadd: { if (shouldPrint) asm.noteBytecode(biStart, "fadd"); emit_fadd(); break; } case JBC_dadd: { if (shouldPrint) asm.noteBytecode(biStart, "dadd"); emit_dadd(); break; } case JBC_isub: { if (shouldPrint) asm.noteBytecode(biStart, "isub"); emit_isub(); break; } case JBC_lsub: { if (shouldPrint) asm.noteBytecode(biStart, "lsub"); emit_lsub(); break; } case JBC_fsub: { if (shouldPrint) asm.noteBytecode(biStart, "fsub"); emit_fsub(); break; } case JBC_dsub: { if (shouldPrint) asm.noteBytecode(biStart, "dsub"); emit_dsub(); break; } case JBC_imul: { if (shouldPrint) asm.noteBytecode(biStart, "imul"); emit_imul(); break; } case JBC_lmul: { if (shouldPrint) asm.noteBytecode(biStart, "lmul"); emit_lmul(); break; } case JBC_fmul: { if (shouldPrint) asm.noteBytecode(biStart, "fmul"); emit_fmul(); break; } case JBC_dmul: { if (shouldPrint) asm.noteBytecode(biStart, "dmul"); emit_dmul(); break; } case JBC_idiv: { if (shouldPrint) asm.noteBytecode(biStart, "idiv"); emit_idiv(); break; } case JBC_ldiv: { if (shouldPrint) asm.noteBytecode(biStart, "ldiv"); emit_ldiv(); break; } case JBC_fdiv: { if (shouldPrint) asm.noteBytecode(biStart, "fdiv"); emit_fdiv(); break; } case JBC_ddiv: { if (shouldPrint) asm.noteBytecode(biStart, "ddiv"); emit_ddiv(); break; } case JBC_irem: { if (shouldPrint) asm.noteBytecode(biStart, "irem"); emit_irem(); break; } case JBC_lrem: { if (shouldPrint) asm.noteBytecode(biStart, "lrem"); emit_lrem(); break; } case JBC_frem: { if (shouldPrint) asm.noteBytecode(biStart, "frem"); emit_frem(); break; } case JBC_drem: { if (shouldPrint) asm.noteBytecode(biStart, "drem"); emit_drem(); break; } case JBC_ineg: { if (shouldPrint) asm.noteBytecode(biStart, "ineg"); emit_ineg(); break; } case JBC_lneg: { if (shouldPrint) asm.noteBytecode(biStart, "lneg"); emit_lneg(); break; } case JBC_fneg: { if (shouldPrint) asm.noteBytecode(biStart, "fneg"); emit_fneg(); break; } case JBC_dneg: { if (shouldPrint) asm.noteBytecode(biStart, "dneg"); emit_dneg(); break; } case JBC_ishl: { if (shouldPrint) asm.noteBytecode(biStart, "ishl"); emit_ishl(); break; } case JBC_lshl: { if (shouldPrint) asm.noteBytecode(biStart, "lshl"); // l >> n emit_lshl(); break; } case JBC_ishr: { if (shouldPrint) asm.noteBytecode(biStart, "ishr"); emit_ishr(); break; } case JBC_lshr: { if (shouldPrint) asm.noteBytecode(biStart, "lshr"); emit_lshr(); break; } case JBC_iushr: { if (shouldPrint) asm.noteBytecode(biStart, "iushr"); emit_iushr(); break; } case JBC_lushr: { if (shouldPrint) asm.noteBytecode(biStart, "lushr"); emit_lushr(); break; } case JBC_iand: { if (shouldPrint) asm.noteBytecode(biStart, "iand"); emit_iand(); break; } case JBC_land: { if (shouldPrint) asm.noteBytecode(biStart, "land"); emit_land(); break; } case JBC_ior: { if (shouldPrint) asm.noteBytecode(biStart, "ior"); emit_ior(); break; } case JBC_lor: { if (shouldPrint) asm.noteBytecode(biStart, "lor"); emit_lor(); break; } case JBC_ixor: { if (shouldPrint) asm.noteBytecode(biStart, "ixor"); emit_ixor(); break; } case JBC_lxor: { if (shouldPrint) asm.noteBytecode(biStart, "lxor"); emit_lxor(); break; } case JBC_iinc: { int index = bcodes.getLocalNumber(); int val = bcodes.getIncrement(); if (shouldPrint) asm.noteBytecode(biStart, "iinc",index, val); emit_iinc(index, val); break; } case JBC_i2l: { if (shouldPrint) asm.noteBytecode(biStart, "i2l"); emit_i2l(); break; } case JBC_i2f: { if (shouldPrint) asm.noteBytecode(biStart, "i2f"); emit_i2f(); break; } case JBC_i2d: { if (shouldPrint) asm.noteBytecode(biStart, "i2d"); emit_i2d(); break; } case JBC_l2i: { if (shouldPrint) asm.noteBytecode(biStart, "l2i"); emit_l2i(); break; } case JBC_l2f: { if (shouldPrint) asm.noteBytecode(biStart, "l2f"); emit_l2f(); break; } case JBC_l2d: { if (shouldPrint) asm.noteBytecode(biStart, "l2d"); emit_l2d(); break; } case JBC_f2i: { if (shouldPrint) asm.noteBytecode(biStart, "f2i"); emit_f2i(); break; } case JBC_f2l: { if (shouldPrint) asm.noteBytecode(biStart, "f2l"); emit_f2l(); break; } case JBC_f2d: { if (shouldPrint) asm.noteBytecode(biStart, "f2d"); emit_f2d(); break; } case JBC_d2i: { if (shouldPrint) asm.noteBytecode(biStart, "d2i"); emit_d2i(); break; } case JBC_d2l: { if (shouldPrint) asm.noteBytecode(biStart, "d2l"); emit_d2l(); break; } case JBC_d2f: { if (shouldPrint) asm.noteBytecode(biStart, "d2f"); emit_d2f(); break; } case JBC_int2byte: { if (shouldPrint) asm.noteBytecode(biStart, "i2b"); emit_i2b(); break; } case JBC_int2char: { if (shouldPrint) asm.noteBytecode(biStart, "i2c"); emit_i2c(); break; } case JBC_int2short: { if (shouldPrint) asm.noteBytecode(biStart, "i2s"); emit_i2s(); break; } case JBC_lcmp: { if (shouldPrint) asm.noteBytecode(biStart, "lcmp"); // a ? b emit_lcmp(); break; } case JBC_fcmpl: { if (shouldPrint) asm.noteBytecode(biStart, "fcmpl"); emit_fcmpl(); break; } case JBC_fcmpg: { if (shouldPrint) asm.noteBytecode(biStart, "fcmpg"); emit_fcmpg(); break; } case JBC_dcmpl: { if (shouldPrint) asm.noteBytecode(biStart, "dcmpl"); emit_dcmpl(); break; } case JBC_dcmpg: { if (shouldPrint) asm.noteBytecode(biStart, "dcmpg"); emit_dcmpg(); break; } case JBC_ifeq: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifeq", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifeq(bTarget); break; } case JBC_ifne: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifne", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifne(bTarget); break; } case JBC_iflt: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "iflt", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_iflt(bTarget); break; } case JBC_ifge: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifge", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifge(bTarget); break; } case JBC_ifgt: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifgt", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifgt(bTarget); break; } case JBC_ifle: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifle", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifle(bTarget); break; } case JBC_if_icmpeq: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmpeq", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmpeq(bTarget); break; } case JBC_if_icmpne: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmpne", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmpne(bTarget); break; } case JBC_if_icmplt: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmplt", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmplt(bTarget); break; } case JBC_if_icmpge: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmpge", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmpge(bTarget); break; } case JBC_if_icmpgt: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmpgt", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmpgt(bTarget); break; } case JBC_if_icmple: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_icmple", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_icmple(bTarget); break; } case JBC_if_acmpeq: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_acmpeq", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_acmpeq(bTarget); break; } case JBC_if_acmpne: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "if_acmpne", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_if_acmpne(bTarget); break; } case JBC_goto: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; // bi has been bumped by 3 already if (shouldPrint) asm.noteBranchBytecode(biStart, "goto", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_goto(bTarget); break; } case JBC_jsr: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "jsr", offset, bTarget); emit_jsr(bTarget); break; } case JBC_ret: { int index = bcodes.getLocalNumber(); if (shouldPrint) asm.noteBytecode(biStart, "ret ", index); emit_ret(index); break; } case JBC_tableswitch: { bcodes.alignSwitch(); int defaultval = bcodes.getDefaultSwitchOffset(); int low = bcodes.getLowSwitchValue(); int high = bcodes.getHighSwitchValue(); if (shouldPrint) asm.noteTableswitchBytecode(biStart, low, high, defaultval); emit_tableswitch(defaultval, low, high); break; } case JBC_lookupswitch: { bcodes.alignSwitch(); int defaultval = bcodes.getDefaultSwitchOffset(); int npairs = bcodes.getSwitchLength(); if (shouldPrint) asm.noteLookupswitchBytecode(biStart, npairs, defaultval); emit_lookupswitch(defaultval, npairs); break; } case JBC_ireturn: { if (shouldPrint) asm.noteBytecode(biStart, "ireturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_ireturn(); break; } case JBC_lreturn: { if (shouldPrint) asm.noteBytecode(biStart, "lreturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_lreturn(); break; } case JBC_freturn: { if (shouldPrint) asm.noteBytecode(biStart, "freturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_freturn(); break; } case JBC_dreturn: { if (shouldPrint) asm.noteBytecode(biStart, "dreturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_dreturn(); break; } case JBC_areturn: { if (shouldPrint) asm.noteBytecode(biStart, "areturn"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_areturn(); break; } case JBC_return: { if (shouldPrint) asm.noteBytecode(biStart, "return"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); emit_return(); break; } case JBC_getstatic: { VM_FieldReference fieldRef = bcodes.getFieldReference(); if (shouldPrint) asm.noteBytecode(biStart, "getstatic", fieldRef); if (fieldRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved getstatic ", fieldRef); emit_unresolved_getstatic(fieldRef); } else { emit_resolved_getstatic(fieldRef); } break; } case JBC_putstatic: { VM_FieldReference fieldRef = bcodes.getFieldReference(); if (shouldPrint) asm.noteBytecode(biStart, "putstatic", fieldRef); if (fieldRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved putstatic ", fieldRef); emit_unresolved_putstatic(fieldRef); } else { emit_resolved_putstatic(fieldRef); } break; } case JBC_getfield: { VM_FieldReference fieldRef = bcodes.getFieldReference(); if (shouldPrint) asm.noteBytecode(biStart, "getfield", fieldRef); if (fieldRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved getfield ", fieldRef); emit_unresolved_getfield(fieldRef); } else { emit_resolved_getfield(fieldRef); } break; } case JBC_putfield: { VM_FieldReference fieldRef = bcodes.getFieldReference(); if (shouldPrint) asm.noteBytecode(biStart, "putfield", fieldRef); if (fieldRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved putfield ", fieldRef); emit_unresolved_putfield(fieldRef); } else { emit_resolved_putfield(fieldRef); } break; } case JBC_invokevirtual: { //-#if RVM_WITH_OSR VM_ForwardReference xx = null; if (biStart == this.pendingIdx) { VM_ForwardReference x = emit_pending_goto(0); // goto X this.pendingRef.resolve(asm); // pendingIdx: (target of pending goto in prologue) VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(this.pendingCMID); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); // invoke_cmid xx = emit_pending_goto(0); // goto XX x.resolve(asm); // X: } //-#endif VM_MethodReference methodRef = bcodes.getMethodReference(); if (shouldPrint) asm.noteBytecode(biStart, "invokevirtual", methodRef); if (methodRef.getType().isMagicType()) { if (emit_Magic(methodRef)) { break; } } if (methodRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved invokevirtual ", methodRef); emit_unresolved_invokevirtual(methodRef); } else { if (VM.VerifyUnint && !isInterruptible) checkTarget(methodRef.peekResolvedMethod()); emit_resolved_invokevirtual(methodRef); } //-#if RVM_WITH_OSR if (xx != null) { xx.resolve(asm); // XX: } //-#endif break; } case JBC_invokespecial: { //-#if RVM_WITH_OSR VM_ForwardReference xx = null; if (biStart == this.pendingIdx) { VM_ForwardReference x = emit_pending_goto(0); // goto X this.pendingRef.resolve(asm); // pendingIdx: (target of pending goto in prologue) VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(this.pendingCMID); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); // invoke_cmid xx = emit_pending_goto(0); // goto XX x.resolve(asm); // X: } //-#endif VM_MethodReference methodRef = bcodes.getMethodReference(); if (shouldPrint) asm.noteBytecode(biStart, "invokespecial", methodRef); VM_Method target = methodRef.resolveInvokeSpecial(); if (target != null) { if (VM.VerifyUnint && !isInterruptible) checkTarget(target); emit_resolved_invokespecial(methodRef, target); } else { emit_unresolved_invokespecial(methodRef); } //-#if RVM_WITH_OSR if (xx != null) { xx.resolve(asm); // XX: } //-#endif break; } case JBC_invokestatic: { //-#if RVM_WITH_OSR VM_ForwardReference xx = null; if (biStart == this.pendingIdx) { VM_ForwardReference x = emit_pending_goto(0); // goto X this.pendingRef.resolve(asm); // pendingIdx: (target of pending goto in prologue) VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(this.pendingCMID); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); // invoke_cmid xx = emit_pending_goto(0); // goto XX x.resolve(asm); // X: } //-#endif VM_MethodReference methodRef = bcodes.getMethodReference(); if (shouldPrint) asm.noteBytecode(biStart, "invokestatic", methodRef); if (methodRef.getType().isMagicType()) { if (emit_Magic(methodRef)) { break; } } if (methodRef.needsDynamicLink(method)) { if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("unresolved invokestatic ", methodRef); emit_unresolved_invokestatic(methodRef); } else { if (VM.VerifyUnint && !isInterruptible) checkTarget(methodRef.peekResolvedMethod()); emit_resolved_invokestatic(methodRef); } //-#if RVM_WITH_OSR if (xx != null) { xx.resolve(asm); // XX: } //-#endif break; } case JBC_invokeinterface: { //-#if RVM_WITH_OSR VM_ForwardReference xx = null; if (biStart == this.pendingIdx) { VM_ForwardReference x = emit_pending_goto(0); // goto X this.pendingRef.resolve(asm); // pendingIdx: (target of pending goto in prologue) VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(this.pendingCMID); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); // invoke_cmid xx = emit_pending_goto(0); // goto XX x.resolve(asm); // X: } //-#endif VM_MethodReference methodRef = bcodes.getMethodReference(); bcodes.alignInvokeInterface(); if (shouldPrint) asm.noteBytecode(biStart, "invokeinterface", methodRef); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("invokeinterface ", methodRef); emit_invokeinterface(methodRef); //-#if RVM_WITH_OSR if (xx != null) { xx.resolve(asm); // XX: } //-#endif break; } case JBC_xxxunusedxxx: { if (shouldPrint) asm.noteBytecode(biStart, "unused"); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } case JBC_new: { VM_TypeReference typeRef = bcodes.getTypeReference(); if (shouldPrint) asm.noteBytecode(biStart, "new", typeRef); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("new ", typeRef); VM_Type type = typeRef.peekResolvedType(); if (type != null && (type.isInitialized() || type.isInBootImage())) { emit_resolved_new(type.asClass()); } else { emit_unresolved_new(typeRef); } break; } case JBC_newarray: { int atype = bcodes.getArrayElementType(); VM_Array array = VM_Array.getPrimitiveArrayType(atype); if (VM.VerifyAssertions) VM._assert(array.isResolved()); if (shouldPrint) asm.noteBytecode(biStart, "newarray", array.getTypeRef()); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("new ", array); emit_resolved_newarray(array); break; } case JBC_anewarray: { VM_TypeReference elementTypeRef = bcodes.getTypeReference(); VM_TypeReference arrayRef = elementTypeRef.getArrayTypeForElementType(); if (shouldPrint) asm.noteBytecode(biStart, "anewarray new", arrayRef); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("new ", arrayRef); if (VM.VerifyAssertions && elementTypeRef.isWordType()) { VM._assert(false, "During compilation of " + method + " found an anewarray of "+ elementTypeRef + "\n" + "You must use the 'create' function to create an array of this type"); } // We can do early resolution of the array type if the element type // is already initialized. VM_Array array = (VM_Array)arrayRef.peekResolvedType(); if (array != null && !(array.isInitialized() || array.isInBootImage()) && VM_Type.JavaLangObjectType.isInstantiated()) { VM_Type elementType = elementTypeRef.peekResolvedType(); if (elementType != null && (elementType.isInitialized() || elementType.isInBootImage())) { array.resolve(); array.instantiate(); } if (array.isInitialized() || array.isInBootImage()) { emit_resolved_newarray(array); break; } } emit_unresolved_newarray(arrayRef); break; } case JBC_arraylength: { if (shouldPrint) asm.noteBytecode(biStart, "arraylength"); emit_arraylength(); break; } case JBC_athrow: { if (shouldPrint) asm.noteBytecode(biStart, "athrow"); if (VM.UseEpilogueYieldPoints) emit_threadSwitchTest(VM_Thread.EPILOGUE); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("athrow"); emit_athrow(); break; } case JBC_checkcast: { VM_TypeReference typeRef = bcodes.getTypeReference(); if (shouldPrint) asm.noteBytecode(biStart, "checkcast", typeRef); VM_Type type = typeRef.peekResolvedType(); if (type != null) { if (type.isClassType()) { if (type.asClass().isFinal()) { emit_checkcast_final(type); break; } else if (type.isResolved() && !type.asClass().isInterface()) { emit_checkcast_resolvedClass(type); break; } // else fall through to emit_checkcast } else if (type.isArrayType()) { VM_Type elemType = type.asArray().getElementType(); if (elemType.isPrimitiveType() || (elemType.isClassType() && elemType.asClass().isFinal())) { emit_checkcast_final(type); break; } // else fall through to emit_checkcast } else { // checkcast to a primitive. Must be a word type. if (VM.VerifyAssertions) VM._assert(type.isWordType()); break; } } if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("checkcast ", typeRef); emit_checkcast(typeRef); break; } case JBC_instanceof: { VM_TypeReference typeRef = bcodes.getTypeReference(); if (shouldPrint) asm.noteBytecode(biStart, "instanceof", typeRef); VM_Type type = typeRef.peekResolvedType(); if (type != null) { if (type.isClassType()) { if (type.asClass().isFinal()) { emit_instanceof_final(type); break; } else if (type.isResolved() && !type.asClass().isInterface()) { emit_instanceof_resolvedClass(type); break; } } else if (type.isArrayType()) { VM_Type elemType = type.asArray().getElementType(); if (elemType.isPrimitiveType() || (elemType.isClassType() && elemType.asClass().isFinal())) { emit_instanceof_final(type); break; } } } if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("instanceof ", typeRef); emit_instanceof(typeRef); break; } case JBC_monitorenter: { if (shouldPrint) asm.noteBytecode(biStart, "monitorenter"); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("monitorenter"); emit_monitorenter(); break; } case JBC_monitorexit: { if (shouldPrint) asm.noteBytecode(biStart, "monitorexit"); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("monitorexit"); emit_monitorexit(); break; } case JBC_wide: { int widecode = bcodes.getWideOpcode(); int index = bcodes.getWideLocalNumber(); switch (widecode) { case JBC_iload: { if (shouldPrint) asm.noteBytecode(biStart, "wide iload", index); emit_iload(index); break; } case JBC_lload: { if (shouldPrint) asm.noteBytecode(biStart, "wide lload", index); emit_lload(index); break; } case JBC_fload: { if (shouldPrint) asm.noteBytecode(biStart, "wide fload", index); emit_fload(index); break; } case JBC_dload: { if (shouldPrint) asm.noteBytecode(biStart, "wide dload", index); emit_dload(index); break; } case JBC_aload: { if (shouldPrint) asm.noteBytecode(biStart, "wide aload", index); emit_aload(index); break; } case JBC_istore: { if (shouldPrint) asm.noteBytecode(biStart, "wide istore", index); emit_istore(index); break; } case JBC_lstore: { if (shouldPrint) asm.noteBytecode(biStart, "wide lstore", index); emit_lstore(index); break; } case JBC_fstore: { if (shouldPrint) asm.noteBytecode(biStart, "wide fstore", index); emit_fstore(index); break; } case JBC_dstore: { if (shouldPrint) asm.noteBytecode(biStart, "wide dstore", index); emit_dstore(index); break; } case JBC_astore: { if (shouldPrint) asm.noteBytecode(biStart, "wide astore", index); emit_astore(index); break; } case JBC_iinc: { int val = bcodes.getWideIncrement(); if (shouldPrint) asm.noteBytecode(biStart, "wide inc", index, val); emit_iinc(index, val); break; } case JBC_ret: { if (shouldPrint) asm.noteBytecode(biStart, "wide ret", index); emit_ret(index); break; } default: if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); } break; } case JBC_multianewarray: { VM_TypeReference typeRef = bcodes.getTypeReference(); int dimensions = bcodes.getArrayDimension(); if (shouldPrint) asm.noteBytecode(biStart, "multianewarray", typeRef); if (VM.VerifyUnint && !isInterruptible) forbiddenBytecode("multianewarray"); emit_multianewarray(typeRef, dimensions); break; } case JBC_ifnull: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifnull", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifnull(bTarget); break; } case JBC_ifnonnull: { int offset = bcodes.getBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "ifnonnull", offset, bTarget); if (offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_ifnonnull(bTarget); break; } case JBC_goto_w: { int offset = bcodes.getWideBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "goto_w", offset, bTarget); if(offset < 0) emit_threadSwitchTest(VM_Thread.BACKEDGE); emit_goto(bTarget); break; } case JBC_jsr_w: { int offset = bcodes.getWideBranchOffset(); int bTarget = biStart + offset; if (shouldPrint) asm.noteBranchBytecode(biStart, "jsr_w", offset, bTarget); emit_jsr(bTarget); break; } //-#if RVM_WITH_OSR /* CAUTION: can not use JBC_impdep1, which is 0xfffffffe ( signed ), * this is not consistant with OPT compiler. */ case JBC_impdep1: /* --- pseudo bytecode --- */ { int pseudo_opcode = bcodes.nextPseudoInstruction(); // pseudo instruction switch (pseudo_opcode) { case PSEUDO_LoadIntConst: { int value = bcodes.readIntConst(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_int", value); int slot = VM_Statics.findOrCreateIntLiteral(value); int offset = slot << LOG_BYTES_IN_INT; emit_ldc(offset); break; } case PSEUDO_LoadLongConst: { long value = bcodes.readLongConst(); // fetch8BytesUnsigned(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_long", value); int slot = VM_Statics.findOrCreateLongLiteral(value); int offset = slot << LOG_BYTES_IN_INT; emit_ldc2(offset); break; } case PSEUDO_LoadWordConst: { //-#if RVM_FOR_32_ADDR int value = bcodes.readIntConst(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_word " + Integer.toHexString(value)); int slot = VM_Statics.findOrCreateIntLiteral(value); int offset = slot << LOG_BYTES_IN_INT; emit_ldc(offset); //-#endif //-#if RVM_FOR_64_ADDR long value = bcodes.readLongConst(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_word " + Long.toHexString(value)); int slot = VM_Statics.findOrCreateLongLiteral(value); int offset = slot << LOG_BYTES_IN_INT; emit_ldc2(offset); emit_l2i(); //dirty hack //-#endif break; } case PSEUDO_LoadFloatConst: { int ibits = bcodes.readIntConst(); // fetch4BytesSigned(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_float", ibits); int slot = VM_Statics.findOrCreateFloatLiteral(ibits); int offset = slot << LOG_BYTES_IN_INT; emit_ldc(offset); break; } case PSEUDO_LoadDoubleConst: { long lbits = bcodes.readLongConst(); // fetch8BytesUnsigned(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_double", lbits); int slot = VM_Statics.findOrCreateDoubleLiteral(lbits); int offset = slot << LOG_BYTES_IN_INT; emit_ldc2(offset); break; } case PSEUDO_LoadRetAddrConst: { int bcIndex = bcodes.readIntConst(); // fetch4BytesSigned(); if (shouldPrint) asm.noteBytecode(biStart, "pseudo_load_retaddr", bcIndex); // for bytecode to get future bytecode's address // we register it and patch it later. emit_loadretaddrconst(bcIndex); break; } case PSEUDO_InvokeStatic: { VM_Method methodRef = null; int targetidx = bcodes.readIntConst(); // fetch4BytesSigned(); switch (targetidx) { case GETREFAT: methodRef = VM_Entrypoints.osrGetRefAtMethod; break; case CLEANREFS: methodRef = VM_Entrypoints.osrCleanRefsMethod; break; default: if (VM.TraceOnStackReplacement) VM.sysWriteln("pseudo_invokstatic with unknown target index "+targetidx); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } if (shouldPrint) asm.noteBytecode(biStart, "pseudo_invokestatic", methodRef); emit_resolved_invokestatic(methodRef.getMemberRef().asMethodReference()); break; } /* case PSEUDO_CheckCast: { if (shouldPrint) asm.noteBytecode(biStart, "pseudo_checkcast"); // fetch 4 byte type id int tid = bcodes.readIntConst(); // fetch4BytesSigned(); // do nothing now break; } */ case PSEUDO_InvokeCompiledMethod: { int cmid = bcodes.readIntConst(); // fetch4BytesSigned(); // callee's cmid int origIdx = bcodes.readIntConst(); // fetch4BytesSigned(); // orginal bytecode index of this call (for build gc map) if (shouldPrint) asm.noteBytecode(biStart, "pseudo_invoke_cmid", cmid); this.pendingCMID = cmid; this.pendingIdx = origIdx+this.method.getOsrPrologueLength(); this.pendingRef = emit_pending_goto(this.pendingIdx); /* VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(cmid); if (VM.VerifyAssertions) VM._assert(cm.isSpecialForOSR()); emit_invoke_compiledmethod(cm); */ break; } case PSEUDO_ParamInitEnd: { if (shouldPrint) asm.noteBytecode(biStart, "pseudo_paraminitend"); // now we can inserted stack overflow check, emit_deferred_prologue(); break; } default: if (VM.TraceOnStackReplacement) VM.sysWrite("Unexpected PSEUDO code " +VM.intAsHexString(pseudo_opcode)+"\n"); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); break; } break; } //-#endif default: VM.sysWrite("VM_Compiler: unexpected bytecode: " + VM_Services.getHexString((int)code, false) + "\n"); if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); } ending_bytecode(); } bytecodeMap[bcodes.length()] = asm.getMachineCodeIndex(); return asm.finalizeMachineCode(bytecodeMap); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/d1d1434574eb350f48cb1d82f04917a27eea9bdc/VM_CompilerFramework.java/buggy/rvm/src/vm/compilers/baseline/VM_CompilerFramework.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
8251,
67,
6981,
1085,
3157,
1085,
1832,
288,
565,
3626,
67,
685,
1330,
344,
5621,
565,
1323,
261,
70,
7000,
18,
5332,
7417,
858,
14537,
1145,
10756,
288,
1377,
10054,
1685,
273,
6533,
1145,
18,
1615,
5621,
1377,
22801,
863,
63,
13266,
1685,
65,
273,
20415,
18,
588,
6981,
1085,
1016,
5621,
1377,
20415,
18,
10828,
8514,
8221,
12,
13266,
1685,
1769,
1377,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
4618,
54,
1377,
20415,
18,
2272,
2563,
7055,
3178,
9661,
12,
13266,
1685,
1769,
1377,
368,
17,
7,
409,
430,
1377,
5023,
67,
1637,
16651,
5621,
1377,
509,
981,
273,
6533,
1145,
18,
4285,
11983,
5621,
1377,
1620,
261,
710,
13,
288,
1377,
648,
804,
16283,
67,
82,
556,
30,
288,
3639,
309,
261,
13139,
5108,
13,
20415,
18,
7652,
858,
16651,
12,
13266,
1685,
16,
315,
82,
556,
8863,
3639,
898,
31,
1377,
289,
1377,
648,
804,
16283,
67,
69,
10248,
67,
2011,
30,
288,
3639,
309,
261,
13139,
5108,
13,
20415,
18,
7652,
858,
16651,
12,
13266,
1685,
16,
315,
69,
10248,
67,
2011,
8863,
3639,
3626,
67,
69,
10248,
67,
2011,
5621,
3639,
898,
31,
1377,
289,
1377,
648,
804,
16283,
67,
3950,
334,
67,
81,
21,
30,
288,
3639,
309,
261,
13139,
5108,
13,
20415,
18,
7652,
858,
16651,
12,
13266,
1685,
16,
315,
3950,
334,
67,
81,
21,
8863,
3639,
3626,
67,
3950,
334,
19236,
21,
1769,
3639,
898,
31,
1377,
289,
1377,
648,
804,
16283,
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,
282,
4750,
727,
8251,
67,
6981,
1085,
3157,
1085,
1832,
288,
565,
3626,
67,
685,
1330,
344,
5621,
565,
1323,
261,
70,
7000,
18,
5332,
7417,
858,
14537,
1145,
10756,
288,
1377,
10054,
1685,
273,
6533,
1145,
18,
1615,
5621,
1377,
22801,
863,
63,
13266,
1685,
65,
273,
20415,
18,
588,
6981,
1085,
1016,
5621,
1377,
20415,
18,
10828,
8514,
8221,
12,
13266,
1685,
1769,
1377,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
4618,
54,
1377,
20415,
18,
2272,
2563,
7055,
3178,
9661,
12,
13266,
1685,
1769,
1377,
368,
17,
7,
409,
430,
1377,
5023,
67,
1637,
16651,
5621,
1377,
509,
981,
273,
6533,
1145,
18,
4285,
11983,
5621,
1377,
1620,
261,
710,
13,
288,
1377,
648,
2
] |
if(totalZeros == 0 && totalOnes == 0)
|
if((totalZeros == 0) && (totalOnes == 0))
|
public synchronized double currentValue() { if(totalZeros < 0 || totalOnes < 0) { Logger.error(this, "Argh in currentValue(): "+this, new Exception("debug")); calculateTotalOnesZeros(); } if(totalZeros == 0 && totalOnes == 0) return defaultValue; return ((double)totalOnes) / (double)(totalZeros + totalOnes); }
|
50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SimpleBinaryRunningAverage.java/clean/src/freenet/support/math/SimpleBinaryRunningAverage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
1645,
14794,
1435,
288,
202,
565,
309,
12,
4963,
20801,
411,
374,
747,
2078,
1398,
281,
411,
374,
13,
288,
202,
3639,
4242,
18,
1636,
12,
2211,
16,
315,
4117,
76,
316,
14794,
13332,
13773,
2211,
16,
202,
7734,
394,
1185,
2932,
4148,
7923,
1769,
202,
3639,
4604,
5269,
1398,
281,
20801,
5621,
202,
565,
289,
202,
202,
430,
12,
4963,
20801,
422,
374,
597,
2078,
1398,
281,
422,
374,
13,
1082,
202,
2463,
4593,
31,
202,
202,
2463,
14015,
9056,
13,
4963,
1398,
281,
13,
342,
261,
9056,
21433,
4963,
20801,
397,
2078,
1398,
281,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3852,
1645,
14794,
1435,
288,
202,
565,
309,
12,
4963,
20801,
411,
374,
747,
2078,
1398,
281,
411,
374,
13,
288,
202,
3639,
4242,
18,
1636,
12,
2211,
16,
315,
4117,
76,
316,
14794,
13332,
13773,
2211,
16,
202,
7734,
394,
1185,
2932,
4148,
7923,
1769,
202,
3639,
4604,
5269,
1398,
281,
20801,
5621,
202,
565,
289,
202,
202,
430,
12,
4963,
20801,
422,
374,
597,
2078,
1398,
281,
422,
374,
13,
1082,
202,
2463,
4593,
31,
202,
202,
2463,
14015,
9056,
13,
4963,
1398,
281,
13,
342,
261,
9056,
21433,
4963,
20801,
397,
2078,
1398,
281,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_notifyObject(_notifierLock);
|
_notifyLock();
|
public void threadLocationUpdated(OpenDefinitionsDocument doc, int lineNumber) { // EventHandler's thread: test should wait synchronized(_notifierLock) { threadLocationUpdatedCount++; if (printEvents) System.out.println("threadUpdated " + threadLocationUpdatedCount); _notifyObject(_notifierLock); } }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/da5a0dd68bcb282274a520304e64e7f255ef6c4e/DebugTest.java/clean/drjava/src/edu/rice/cs/drjava/model/debug/DebugTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2650,
2735,
7381,
12,
3678,
7130,
2519,
997,
16,
4766,
4202,
509,
13629,
13,
288,
1377,
368,
26012,
1807,
2650,
30,
1842,
1410,
2529,
1377,
3852,
24899,
902,
1251,
2531,
13,
288,
3639,
2650,
2735,
7381,
1380,
9904,
31,
3639,
309,
261,
1188,
3783,
13,
2332,
18,
659,
18,
8222,
2932,
5930,
7381,
315,
397,
2650,
2735,
7381,
1380,
1769,
3639,
389,
12336,
2531,
5621,
1377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2650,
2735,
7381,
12,
3678,
7130,
2519,
997,
16,
4766,
4202,
509,
13629,
13,
288,
1377,
368,
26012,
1807,
2650,
30,
1842,
1410,
2529,
1377,
3852,
24899,
902,
1251,
2531,
13,
288,
3639,
2650,
2735,
7381,
1380,
9904,
31,
3639,
309,
261,
1188,
3783,
13,
2332,
18,
659,
18,
8222,
2932,
5930,
7381,
315,
397,
2650,
2735,
7381,
1380,
1769,
3639,
389,
12336,
2531,
5621,
1377,
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
] |
changeBlocks(currentBlockDef);
|
if (currentBlockDef != BLOX_CUSTOM){ changeBlocks(currentBlockDef); }else{ Vector theBlocks = new Vector(); for (int x = 0; x < currentBlocks.size(); x++){ Vector goodies = new Vector(); int currentBlock[] = (int[])currentBlocks.elementAt(x); for (int marker = 0; marker < currentBlock.length; marker++){ for (int y = 0; y < Chromosome.realIndex.length; y++){ if (Chromosome.realIndex[y] == currentBlock[marker]){ goodies.add(new Integer(y)); } } } int thisBlock[] = new int[goodies.size()]; for (int marker = 0; marker < thisBlock.length; marker++){ thisBlock[marker] = ((Integer)goodies.elementAt(marker)).intValue(); } theBlocks.add(thisBlock); } theData.guessBlocks(BLOX_CUSTOM, theBlocks); }
|
public void stateChanged(ChangeEvent e) { int tabNum = tabs.getSelectedIndex(); if (tabNum == VIEW_D_NUM || tabNum == VIEW_HAP_NUM){ exportMenuItems[0].setEnabled(true); exportMenuItems[1].setEnabled(true); }else if (tabNum == VIEW_TDT_NUM || tabNum == VIEW_CHECK_NUM){ exportMenuItems[0].setEnabled(true); exportMenuItems[1].setEnabled(false); }else{ exportMenuItems[0].setEnabled(false); exportMenuItems[1].setEnabled(false); } if (tabNum == VIEW_D_NUM){ keyMenu.setEnabled(true); }else{ keyMenu.setEnabled(false); } viewMenuItems[tabs.getSelectedIndex()].setSelected(true); if (checkPanel != null && checkPanel.changed){ window.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); JTable table = checkPanel.getTable(); boolean[] markerResults = new boolean[table.getRowCount()]; for (int i = 0; i < table.getRowCount(); i++){ markerResults[i] = ((Boolean)table.getValueAt(i,CheckDataPanel.STATUS_COL)).booleanValue(); } int count = 0; for (int i = 0; i < Chromosome.getSize(); i++){ if (markerResults[i]){ count++; } } Chromosome.realIndex = new int[count]; int k = 0; for (int i =0; i < Chromosome.getSize(); i++){ if (markerResults[i]){ Chromosome.realIndex[k] = i; k++; } } theData.filteredDPrimeTable = theData.getFilteredTable(); //after editing the filtered marker list, needs to be prodded into //resizing correctly Dimension size = dPrimeDisplay.getSize(); Dimension pref = dPrimeDisplay.getPreferredSize(); Rectangle visRect = dPrimeDisplay.getVisibleRect(); if (size.width != pref.width && pref.width > visRect.width){ ((JViewport)dPrimeDisplay.getParent()).setViewSize(pref); } dPrimeDisplay.colorDPrime(currentScheme); hapDisplay.theData = theData; changeBlocks(currentBlockDef); if (tdtPanel != null){ tdtPanel.refreshTable(); } setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); checkPanel.changed=false; } if (hapDisplay != null && theData.blocksChanged){ setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); try{ hapDisplay.getHaps(); }catch(HaploViewException hv){ JOptionPane.showMessageDialog(window, hv.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); } hapScroller.setViewportView(hapDisplay); setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); theData.blocksChanged = false; } }
|
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/9a4fb36184c8a01d77b1ff8cbfeb789183ae2c46/HaploView.java/clean/edu/mit/wi/haploview/HaploView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
919,
5033,
12,
20930,
425,
13,
288,
5411,
509,
3246,
2578,
273,
10920,
18,
588,
7416,
1016,
5621,
5411,
309,
261,
7032,
2578,
422,
21794,
67,
40,
67,
6069,
747,
3246,
2578,
422,
21794,
67,
44,
2203,
67,
6069,
15329,
7734,
3359,
4599,
3126,
63,
20,
8009,
542,
1526,
12,
3767,
1769,
7734,
3359,
4599,
3126,
63,
21,
8009,
542,
1526,
12,
3767,
1769,
5411,
289,
12107,
309,
261,
7032,
2578,
422,
21794,
67,
56,
9081,
67,
6069,
747,
3246,
2578,
422,
21794,
67,
10687,
67,
6069,
15329,
7734,
3359,
4599,
3126,
63,
20,
8009,
542,
1526,
12,
3767,
1769,
7734,
3359,
4599,
3126,
63,
21,
8009,
542,
1526,
12,
5743,
1769,
5411,
289,
12107,
95,
7734,
3359,
4599,
3126,
63,
20,
8009,
542,
1526,
12,
5743,
1769,
7734,
3359,
4599,
3126,
63,
21,
8009,
542,
1526,
12,
5743,
1769,
5411,
289,
5411,
309,
261,
7032,
2578,
422,
21794,
67,
40,
67,
6069,
15329,
7734,
498,
4599,
18,
542,
1526,
12,
3767,
1769,
5411,
289,
12107,
95,
7734,
498,
4599,
18,
542,
1526,
12,
5743,
1769,
5411,
289,
5411,
1476,
4599,
3126,
63,
16056,
18,
588,
7416,
1016,
1435,
8009,
542,
7416,
12,
3767,
1769,
5411,
309,
261,
1893,
5537,
480,
446,
597,
866,
5537,
18,
6703,
15329,
7734,
2742,
18,
542,
6688,
12,
6688,
18,
588,
1386,
2178,
6688,
12,
6688,
18,
19046,
67,
7509,
55,
916,
10019,
7734,
804,
1388,
1014,
273,
866,
5537,
18,
588,
1388,
5621,
7734,
1250,
8526,
5373,
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,
540,
1071,
918,
919,
5033,
12,
20930,
425,
13,
288,
5411,
509,
3246,
2578,
273,
10920,
18,
588,
7416,
1016,
5621,
5411,
309,
261,
7032,
2578,
422,
21794,
67,
40,
67,
6069,
747,
3246,
2578,
422,
21794,
67,
44,
2203,
67,
6069,
15329,
7734,
3359,
4599,
3126,
63,
20,
8009,
542,
1526,
12,
3767,
1769,
7734,
3359,
4599,
3126,
63,
21,
8009,
542,
1526,
12,
3767,
1769,
5411,
289,
12107,
309,
261,
7032,
2578,
422,
21794,
67,
56,
9081,
67,
6069,
747,
3246,
2578,
422,
21794,
67,
10687,
67,
6069,
15329,
7734,
3359,
4599,
3126,
63,
20,
8009,
542,
1526,
12,
3767,
1769,
7734,
3359,
4599,
3126,
63,
21,
8009,
542,
1526,
12,
5743,
1769,
5411,
289,
12107,
95,
2
] |
AboutFeaturesDialog d = new AboutFeaturesDialog(getShell(), primaryInfo, featureInfos); d.setInitialSelection((AboutInfo) event.widget.getData());
|
AboutFeaturesDialog d = new AboutFeaturesDialog( getShell(), primaryInfo, featureInfos); d.setInitialSelection( (AboutInfo) event.widget.getData());
|
protected Control createDialogArea(Composite parent) { setHandCursor(new Cursor(parent.getDisplay(), SWT.CURSOR_HAND)); setBusyCursor(new Cursor(parent.getDisplay(), SWT.CURSOR_WAIT)); getShell().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { if (getHandCursor() != null) getHandCursor().dispose(); if (getBusyCursor() != null) getBusyCursor().dispose(); } }); ImageDescriptor imageDescriptor = null; if (primaryInfo != null) { imageDescriptor = primaryInfo.getAboutImage(); // may be null } if (imageDescriptor != null) { image = imageDescriptor.createImage(); } if (image == null || image.getBounds().width <= MAX_IMAGE_WIDTH_FOR_TEXT) { // show text String aboutText = null; if (primaryInfo != null) { aboutText = primaryInfo.getAboutText(); // may be null } if (aboutText != null) { // get an about item setItem(scan(aboutText)); } } // page group Composite outer = (Composite) super.createDialogArea(parent); outer.setSize(outer.computeSize(SWT.DEFAULT, SWT.DEFAULT)); GridLayout layout = new GridLayout(); outer.setLayout(layout); outer.setLayoutData(new GridData(GridData.FILL_BOTH)); // the image & text Composite topContainer = new Composite(outer, SWT.NONE); layout = new GridLayout(); layout.numColumns = (image == null || getItem() == null ? 1 : 2); layout.marginWidth = 0; topContainer.setLayout(layout); GridData data = new GridData(); data.horizontalAlignment = GridData.FILL; data.grabExcessHorizontalSpace = true; topContainer.setLayoutData(data); //image on left side of dialog if (image != null) { Label imageLabel = new Label(topContainer, SWT.NONE); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.BEGINNING; data.grabExcessHorizontalSpace = false; imageLabel.setLayoutData(data); imageLabel.setImage(image); } if (getItem() != null) { // text on the right text = new StyledText(topContainer, SWT.MULTI | SWT.READ_ONLY); text.setCaret(null); text.setFont(parent.getFont()); data = new GridData(); data.horizontalAlignment = GridData.FILL; data.verticalAlignment = GridData.BEGINNING; data.grabExcessHorizontalSpace = true; text.setText(getItem().getText()); text.setLayoutData(data); text.setCursor(null); text.setBackground(topContainer.getBackground()); setLinkRanges(text, getItem().getLinkRanges()); addListeners(text); } // horizontal bar Label bar = new Label(outer, SWT.HORIZONTAL | SWT.SEPARATOR); data = new GridData(); data.horizontalAlignment = GridData.FILL; bar.setLayoutData(data); // feature images Composite featureContainer = new Composite(outer, SWT.NONE); RowLayout rowLayout = new RowLayout(); rowLayout.wrap = true; featureContainer.setLayout(rowLayout); data = new GridData(); data.horizontalAlignment = GridData.FILL; featureContainer.setLayoutData(data); final AboutInfo[] infoArray = getFeaturesInfo(); for (int i = 0; i < infoArray.length; i++) { ImageDescriptor desc = infoArray[i].getFeatureImage(); Image image = null; if (desc != null) { Button button = new Button(featureContainer, SWT.FLAT | SWT.PUSH); button.setData(infoArray[i]); image = desc.createImage(); images.add(image); button.setImage(image); String name = infoArray[i].getProviderName(); if (name == null) name = ""; //$NON-NLS-1$ button.setToolTipText(name); button.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { AboutFeaturesDialog d = new AboutFeaturesDialog(getShell(), primaryInfo, featureInfos); d.setInitialSelection((AboutInfo) event.widget.getData()); d.open(); } }); } } // spacer bar = new Label(outer, SWT.NONE); data = new GridData(); data.horizontalAlignment = GridData.FILL; bar.setLayoutData(data); return outer; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5c11908886291f25042ef1f3737171d1d18c38c5/AboutDialog.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/AboutDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
542,
1144,
6688,
12,
2704,
13949,
12,
2938,
18,
588,
4236,
9334,
348,
8588,
18,
7509,
55,
916,
67,
12346,
10019,
202,
202,
542,
29289,
6688,
12,
2704,
13949,
12,
2938,
18,
588,
4236,
9334,
348,
8588,
18,
7509,
55,
916,
67,
19046,
10019,
202,
202,
588,
13220,
7675,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
425,
13,
288,
9506,
202,
430,
261,
588,
1144,
6688,
1435,
480,
446,
13,
6862,
202,
588,
1144,
6688,
7675,
2251,
4150,
5621,
9506,
202,
430,
261,
588,
29289,
6688,
1435,
480,
446,
13,
6862,
202,
588,
29289,
6688,
7675,
2251,
4150,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
2040,
3187,
1316,
3187,
273,
446,
31,
202,
202,
430,
261,
8258,
966,
480,
446,
13,
288,
1082,
202,
2730,
3187,
273,
3354,
966,
18,
588,
24813,
2040,
5621,
368,
2026,
506,
446,
202,
202,
97,
202,
202,
430,
261,
2730,
3187,
480,
446,
13,
288,
1082,
202,
2730,
273,
1316,
3187,
18,
2640,
2040,
5621,
202,
202,
97,
202,
202,
430,
261,
2730,
422,
446,
747,
1316,
18,
588,
5694,
7675,
2819,
1648,
4552,
67,
13603,
67,
10023,
67,
7473,
67,
5151,
13,
288,
1082,
202,
759,
2405,
977,
1082,
202,
780,
2973,
1528,
273,
446,
31,
1082,
202,
430,
261,
8258,
966,
480,
446,
13,
288,
9506,
202,
21071,
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,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
542,
1144,
6688,
12,
2704,
13949,
12,
2938,
18,
588,
4236,
9334,
348,
8588,
18,
7509,
55,
916,
67,
12346,
10019,
202,
202,
542,
29289,
6688,
12,
2704,
13949,
12,
2938,
18,
588,
4236,
9334,
348,
8588,
18,
7509,
55,
916,
67,
19046,
10019,
202,
202,
588,
13220,
7675,
1289,
1669,
4150,
2223,
12,
2704,
3035,
4150,
2223,
1435,
288,
1082,
202,
482,
918,
3604,
1669,
7423,
12,
1669,
4150,
1133,
425,
13,
288,
9506,
202,
430,
261,
588,
1144,
6688,
1435,
480,
446,
13,
6862,
202,
588,
1144,
6688,
7675,
2251,
4150,
5621,
9506,
202,
430,
261,
588,
29289,
6688,
1435,
480,
446,
13,
2
] |
if(targetFilename != null) { HashMap hm = new HashMap(); hm.put(targetFilename, meta); meta = Metadata.mkRedirectionManifestWithMetadata(hm); }
|
public void onMetadata(Metadata meta, ClientPutState state) { InserterException e = null; synchronized(this) { if(finished) return; if(reportMetadataOnly) { if(state != sfi) { Logger.error(this, "Got metadata from unknown object "+state+" when expecting to report metadata"); return; } metaInsertSuccess = true; } else if(state == metadataPutter) { Logger.error(this, "Got metadata for metadata"); e = new InserterException(InserterException.INTERNAL_ERROR, "Did not expect to get metadata for metadata inserter", null); } else if(state != sfi) { Logger.error(this, "Got metadata from unknown state "+state); e = new InserterException(InserterException.INTERNAL_ERROR, "Did not expect to get metadata for metadata inserter", null); } else { // Already started metadata putter ? (in which case we've got the metadata twice) if(metadataPutter != null) return; } } if(reportMetadataOnly) { cb.onMetadata(meta, this); return; } if(e != null) { onFailure(e, state); return; } if(targetFilename != null) { HashMap hm = new HashMap(); hm.put(targetFilename, meta); meta = Metadata.mkRedirectionManifestWithMetadata(hm); } Bucket metadataBucket; try { metadataBucket = BucketTools.makeImmutableBucket(ctx.bf, meta.writeToByteArray()); } catch (IOException e1) { InserterException ex = new InserterException(InserterException.BUCKET_ERROR, e1, null); fail(ex); return; } catch (MetadataUnresolvedException e1) { Logger.error(this, "Impossible: "+e, e); InserterException ex = new InserterException(InserterException.INTERNAL_ERROR, "MetadataUnresolvedException in SingleFileInserter.SplitHandler: "+e1, null); ex.initCause(e1); fail(ex); return; } InsertBlock newBlock = new InsertBlock(metadataBucket, null, block.desiredURI); try { synchronized(this) { metadataPutter = new SingleFileInserter(parent, this, newBlock, true, ctx, false, getCHKOnly, false, token, false, true, null); if(!dataFetchable) return; } if(logMINOR) Logger.minor(this, "Putting metadata on "+metadataPutter+" from "+sfi+" ("+((SplitFileInserter)sfi).getLength()+")"); } catch (InserterException e1) { cb.onFailure(e1, this); return; } startMetadata(); }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/81b762ce6e8800908f20fdd1c6a8abe2d7d6c32c/SingleFileInserter.java/clean/src/freenet/client/async/SingleFileInserter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
603,
2277,
12,
2277,
2191,
16,
2445,
6426,
1119,
919,
13,
288,
1082,
202,
382,
550,
387,
503,
425,
273,
446,
31,
1082,
202,
22043,
12,
2211,
13,
288,
9506,
202,
430,
12,
13527,
13,
327,
31,
9506,
202,
430,
12,
6006,
2277,
3386,
13,
288,
6862,
202,
430,
12,
2019,
480,
9033,
77,
13,
288,
25083,
202,
3328,
18,
1636,
12,
2211,
16,
315,
15617,
1982,
628,
5917,
733,
13773,
2019,
9078,
1347,
17012,
358,
2605,
1982,
8863,
25083,
202,
2463,
31,
6862,
202,
97,
6862,
202,
3901,
4600,
4510,
273,
638,
31,
9506,
202,
97,
469,
309,
12,
2019,
422,
1982,
6426,
387,
13,
288,
6862,
202,
3328,
18,
1636,
12,
2211,
16,
315,
15617,
1982,
364,
1982,
8863,
6862,
202,
73,
273,
394,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
1769,
9506,
202,
97,
469,
309,
12,
2019,
480,
9033,
77,
13,
288,
6862,
202,
3328,
18,
1636,
12,
2211,
16,
315,
15617,
1982,
628,
5917,
919,
13773,
2019,
1769,
6862,
202,
73,
273,
394,
657,
550,
387,
503,
12,
382,
550,
387,
503,
18,
14005,
67,
3589,
16,
315,
18250,
486,
4489,
358,
336,
1982,
364,
1982,
316,
550,
387,
3113,
446,
1769,
9506,
202,
97,
469,
288,
6862,
202,
759,
17009,
5746,
1982,
1378,
387,
692,
261,
267,
1492,
648,
732,
8081,
2363,
326,
1982,
13605,
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,
3196,
202,
482,
918,
603,
2277,
12,
2277,
2191,
16,
2445,
6426,
1119,
919,
13,
288,
1082,
202,
382,
550,
387,
503,
425,
273,
446,
31,
1082,
202,
22043,
12,
2211,
13,
288,
9506,
202,
430,
12,
13527,
13,
327,
31,
9506,
202,
430,
12,
6006,
2277,
3386,
13,
288,
6862,
202,
430,
12,
2019,
480,
9033,
77,
13,
288,
25083,
202,
3328,
18,
1636,
12,
2211,
16,
315,
15617,
1982,
628,
5917,
733,
13773,
2019,
9078,
1347,
17012,
358,
2605,
1982,
8863,
25083,
202,
2463,
31,
6862,
202,
97,
6862,
202,
3901,
4600,
4510,
273,
638,
31,
9506,
202,
97,
469,
309,
12,
2019,
422,
1982,
6426,
387,
13,
288,
6862,
202,
3328,
18,
1636,
12,
2211,
16,
2
] |
|
VM_Finalizer.setup();
|
static void boot (VM_BootRecord bootrecord) { verbose = bootrecord.verboseGC; smallHeapSize = bootrecord.smallSpaceSize; int largeSize = bootrecord.largeSpaceSize; int immortalSize = VM_Memory.roundUpPage((4 * largeSize / VM_Memory.getPagesize()) + 4 * VM_Memory.getPagesize()); int nurserySize = bootrecord.nurserySize; int oneSpaceSize = VM_Memory.roundUpPage(smallHeapSize / 2); // set delta for triggering major gc to .25 of nursery size (this is a guess) if (nurserySize > 20*1024*1024) { MAJOR_GC_DELTA = nurserySize/4; // .25 of nursery for large nursery // for measurement runs with LARGE nursery sizes, limit delta to fixed 10MB if (MAJOR_GC_DELTA > 10*1024*1024) MAJOR_GC_DELTA = 10*1024*1024; } else MAJOR_GC_DELTA = nurserySize/2; // .50 of nursery for small nursery VM_Heap.boot(bootHeap, /* no malloc heap with this collector*/ null, bootrecord); immortalHeap.attach(immortalSize); largeHeap.attach(largeSize); if (variableNursery) { appelHeap.attach(smallHeapSize, nurseryHeap, fromHeap, toHeap); } else { appelHeap = null; nurseryHeap.attach(nurserySize); fromHeap.attach(oneSpaceSize); toHeap.attach(oneSpaceSize); } if (COMPILE_FOR_TIMING_RUN) { largeHeap.touchPages(); toHeap.touchPages(); fromHeap.touchPages(); nurseryHeap.touchPages(); } if (VM.ParanoidGCCheck) toHeap.protect(); // initialize pointers used for allocation in the nursery VM_Processor st = VM_Processor.getCurrentProcessor(); if (PROCESSOR_LOCAL_ALLOCATE) VM_Chunk.resetChunk1(st, nurseryHeap, false); if (PROCESSOR_LOCAL_MATURE_ALLOCATE) VM_Chunk.resetChunk2(st, fromHeap, false); // check for inconsistent heap & nursery sizes if (smallHeapSize < nurserySize) { VM.sysWrite("\nNursery size is too large for the specified Heap size:\n"); VM.sysWrite(" Small Object Heap Size = "); VM.sysWrite(smallHeapSize,false); VM.sysWrite("\n"); VM.sysWrite(" Nursery Size = "); VM.sysWrite(nurserySize,false); VM.sysWrite("\n"); VM.sysWrite("Use -X:h=nnn & -X:nh=nnn to specify a heap size at least twice as big as the nursery\n"); VM.sysWrite("Remember, the nursery is subtracted from the specified heap size\n"); VM.shutdown(-5); } VM_GCUtil.boot(); VM_Finalizer.setup(); if (verbose >= 1) showParameter(); } // boot()
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/4dcaa02ef21feff3a95d1fa7e3d6759c55f8eac0/VM_Allocator.java/buggy/rvm/src/vm/memoryManagers/watson/copyGen/VM_Allocator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
760,
918,
4835,
261,
7397,
67,
15817,
2115,
4835,
3366,
13,
288,
377,
3988,
273,
4835,
3366,
18,
11369,
15396,
31,
565,
5264,
15648,
1225,
273,
4835,
3366,
18,
12019,
3819,
1225,
31,
565,
509,
7876,
1225,
273,
4835,
3366,
18,
14095,
3819,
1225,
31,
565,
509,
709,
81,
499,
287,
1225,
273,
8251,
67,
6031,
18,
2260,
1211,
1964,
12443,
24,
380,
7876,
1225,
342,
8251,
67,
6031,
18,
588,
5716,
554,
10756,
397,
1059,
380,
8251,
67,
6031,
18,
588,
5716,
554,
10663,
565,
509,
290,
295,
550,
93,
1225,
273,
4835,
3366,
18,
82,
295,
550,
93,
1225,
31,
377,
509,
1245,
3819,
1225,
273,
8251,
67,
6031,
18,
2260,
1211,
1964,
12,
12019,
15648,
1225,
342,
576,
1769,
4202,
368,
444,
3622,
364,
27411,
7888,
8859,
358,
263,
2947,
434,
290,
295,
550,
93,
963,
261,
2211,
353,
279,
7274,
13,
565,
309,
261,
82,
295,
550,
93,
1225,
405,
4200,
14,
2163,
3247,
14,
2163,
3247,
13,
288,
1377,
19316,
46,
916,
67,
15396,
67,
24733,
9833,
273,
290,
295,
550,
93,
1225,
19,
24,
31,
282,
368,
263,
2947,
434,
290,
295,
550,
93,
364,
7876,
290,
295,
550,
93,
1377,
368,
364,
12464,
7597,
598,
511,
28847,
290,
295,
550,
93,
8453,
16,
1800,
3622,
358,
5499,
1728,
7969,
1377,
309,
261,
26976,
916,
67,
15396,
67,
24733,
9833,
405,
1728,
14,
2163,
3247,
14,
2163,
3247,
13,
19316,
46,
916,
67,
15396,
67,
24733,
9833,
273,
1728,
14,
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,
760,
918,
4835,
261,
7397,
67,
15817,
2115,
4835,
3366,
13,
288,
377,
3988,
273,
4835,
3366,
18,
11369,
15396,
31,
565,
5264,
15648,
1225,
273,
4835,
3366,
18,
12019,
3819,
1225,
31,
565,
509,
7876,
1225,
273,
4835,
3366,
18,
14095,
3819,
1225,
31,
565,
509,
709,
81,
499,
287,
1225,
273,
8251,
67,
6031,
18,
2260,
1211,
1964,
12443,
24,
380,
7876,
1225,
342,
8251,
67,
6031,
18,
588,
5716,
554,
10756,
397,
1059,
380,
8251,
67,
6031,
18,
588,
5716,
554,
10663,
565,
509,
290,
295,
550,
93,
1225,
273,
4835,
3366,
18,
82,
295,
550,
93,
1225,
31,
377,
509,
1245,
3819,
1225,
273,
8251,
67,
6031,
18,
2260,
1211,
1964,
12,
12019,
15648,
2
] |
|
/************************************************************************* * SELECTMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.SELECT && wasDragged) { Atom currentAtom; Bond currentBond; AtomContainer selectedPart = new AtomContainer(); r2dm.setSelectedPart(selectedPart); r2dm.setSelectedPart(getContainedAtoms(r2dm.getSelectRect())); r2dm.setSelectRect(null); } /************************************************************************* * ERASERMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.ERASER) { Atom highlightedAtom = r2dm.getHighlightedAtom(); Bond highlightedBond = r2dm.getHighlightedBond(); if (highlightedAtom != null) { try { atomCon.removeAtom(highlightedAtom); Bond[] conBonds = atomCon.getConnectedBonds(highlightedAtom); for (int i = 0; i < conBonds.length; i++) { atomCon.removeBond(conBonds[i]); } } catch (Exception exc) { exc.printStackTrace(); } } else if (highlightedBond != null) { atomCon.removeBond(highlightedBond); } r2dm.fireChange(); } /************************************************************************* * RINGMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.RING) { Ring newRing; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX, pointerMarkY; double ringRadius, angle, xDiff, yDiff, distance1 = 0, distance2 = 0; Atom firstAtom, secondAtom, spiroAtom; Point2d conAtomsCenter = null, newPoint1, newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDefaultElementSymbol(); AtomContainer sharedAtoms = getHighlighted(); /******************** NO ATTACHMENT ************************************/ if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new AtomContainer(); newRing = new Ring(ringSize, symbol); bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) /Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2D(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); atomCon.add(newRing); } /*********************** SPIRO *****************************************/ else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = sharedAtoms.get2DCenter(); newRing = createAttachRing(sharedAtoms, ringSize, symbol); bondLength = 50; conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2D())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { exc.printStackTrace(); } atomCon.add(newRing); } /*********************** FUSED *****************************************/ else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = sharedAtoms.get2DCenter(); firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2D() - firstAtom.getX2D(); yDiff = secondAtom.getY2D() - firstAtom.getY2D(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); if (distance1 == distance2) { System.out.println("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } newRing = createAttachRing(sharedAtoms, ringSize, symbol); ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); try { newRing.remove(sharedAtoms); } catch (Exception exc) { exc.printStackTrace(); } atomCon.add(newRing); } } r2dm.fireChange(); } /************************************************************************* * LASSOMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.LASSO) { if (wasDragged) { Vector lassoPoints = r2dm.getLassoPoints(); r2dm.addLassoPoint(new Point((Point)lassoPoints.elementAt(0))); int number = lassoPoints.size(); int[] xPoints = new int[number]; int[] yPoints = new int[number]; Point currentPoint; for (int i = 0; i < number; i++) { currentPoint = (Point)lassoPoints.elementAt(i); xPoints[i] = currentPoint.x; yPoints[i] = currentPoint.y; } Polygon polygon = new Polygon(xPoints, yPoints, number); r2dm.setSelectedPart(getContainedAtoms(polygon)); r2dm.getLassoPoints().removeAllElements(); r2dm.fireChange(); } } wasDragged = false; }
|
public void mouseReleased(MouseEvent e) { int mouseX = e.getX(), mouseY = e.getY(); /************************************************************************* * DRAWBONDMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.DRAWBOND) { Atom atomInRange, newAtom1, newAtom2; Bond newBond; int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; atomInRange = getAtomInRange(startX, startY); if (atomInRange != null) { newAtom1 = atomInRange; } else { newAtom1 = new Atom(c2dm.getDefaultElementSymbol(), new Point2d(startX,startY)); atomCon.addAtom(newAtom1); } if (wasDragged) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; atomInRange = getAtomInRange(endX, endY); if (atomInRange != null) { newAtom2 = atomInRange; } else { newAtom2 = new Atom(c2dm.getDefaultElementSymbol(), new Point2d(endX,endY)); atomCon.addAtom(newAtom2); } newBond = new Bond(newAtom1, newAtom2, 1); atomCon.addBond(newBond); } r2dm.fireChange(); } /************************************************************************* * SELECTMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.SELECT && wasDragged) { Atom currentAtom; Bond currentBond; AtomContainer selectedPart = new AtomContainer(); r2dm.setSelectedPart(selectedPart); r2dm.setSelectedPart(getContainedAtoms(r2dm.getSelectRect())); r2dm.setSelectRect(null);// System.out.println("selected stuff "+ selectedPart); } /************************************************************************* * ERASERMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.ERASER) { Atom highlightedAtom = r2dm.getHighlightedAtom(); Bond highlightedBond = r2dm.getHighlightedBond(); if (highlightedAtom != null) { try { atomCon.removeAtom(highlightedAtom); Bond[] conBonds = atomCon.getConnectedBonds(highlightedAtom); for (int i = 0; i < conBonds.length; i++) { atomCon.removeBond(conBonds[i]); } } catch (Exception exc) { exc.printStackTrace(); } } else if (highlightedBond != null) { atomCon.removeBond(highlightedBond); } r2dm.fireChange(); } /************************************************************************* * RINGMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.RING) { Ring newRing; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX, pointerMarkY; double ringRadius, angle, xDiff, yDiff, distance1 = 0, distance2 = 0; Atom firstAtom, secondAtom, spiroAtom; Point2d conAtomsCenter = null, newPoint1, newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDefaultElementSymbol(); AtomContainer sharedAtoms = getHighlighted(); /******************** NO ATTACHMENT ************************************/ if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new AtomContainer(); newRing = new Ring(ringSize, symbol); bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) /Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2D(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); atomCon.add(newRing); } /*********************** SPIRO *****************************************/ else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = sharedAtoms.get2DCenter(); newRing = createAttachRing(sharedAtoms, ringSize, symbol); bondLength = 50; conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2D())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed atom from the ring to add only the new placed // atoms to the AtomContainer. try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { exc.printStackTrace(); } atomCon.add(newRing); } /*********************** FUSED *****************************************/ else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = sharedAtoms.get2DCenter(); // calculate two points that are perpendicular to the highlighted bond // and have a certain distance from the bondcenter firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2D() - firstAtom.getX2D(); yDiff = secondAtom.getY2D() - firstAtom.getY2D(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { // check which one of the two points is nearest to the endpoint of the pointer // vector that was dragged to make the ringCenterVector point into the right direction. pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { // check which one of the two points is nearest to the center of the // connected atoms to make the ringCenterVector point into the right direction. conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); // no ring is attached if the two ditances are equal if (distance1 == distance2) { System.out.println("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } // construct a new Ring that contains the highlighted bond an its two atoms newRing = createAttachRing(sharedAtoms, ringSize, symbol); // place the new atoms of the new ring to the right position ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed bond and its atoms from the ring to add only // the new placed atoms to the AtomContainer. try { newRing.remove(sharedAtoms); } catch (Exception exc) { exc.printStackTrace(); } atomCon.add(newRing); } } r2dm.fireChange(); } /************************************************************************* * LASSOMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.LASSO) { if (wasDragged) { Vector lassoPoints = r2dm.getLassoPoints(); r2dm.addLassoPoint(new Point((Point)lassoPoints.elementAt(0))); int number = lassoPoints.size(); int[] xPoints = new int[number]; int[] yPoints = new int[number]; Point currentPoint; for (int i = 0; i < number; i++) { currentPoint = (Point)lassoPoints.elementAt(i); xPoints[i] = currentPoint.x; yPoints[i] = currentPoint.y; } Polygon polygon = new Polygon(xPoints, yPoints, number); r2dm.setSelectedPart(getContainedAtoms(polygon)); r2dm.getLassoPoints().removeAllElements(); r2dm.fireChange(); } } wasDragged = false; }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/140582839d7e1009fd8e33ac1853155e7be004a2/JCPController2D.java/buggy/src/org/openscience/cdk/controller/JCPController2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
3639,
288,
7734,
509,
7644,
60,
273,
425,
18,
588,
60,
9334,
7644,
61,
273,
425,
18,
588,
61,
5621,
7734,
342,
11125,
1644,
14,
1171,
380,
15604,
463,
10821,
38,
673,
40,
7038,
4766,
565,
380,
1171,
19756,
1644,
19,
7734,
309,
261,
71,
22,
10956,
18,
588,
6493,
2309,
1435,
422,
276,
22,
10956,
18,
40,
10821,
38,
673,
40,
13,
7734,
288,
13491,
7149,
3179,
25277,
16,
394,
3641,
21,
16,
394,
3641,
22,
31,
13491,
605,
1434,
394,
9807,
31,
13491,
509,
787,
60,
273,
436,
22,
10956,
18,
588,
4926,
5018,
1685,
7675,
92,
31,
13491,
509,
787,
61,
273,
436,
22,
10956,
18,
588,
4926,
5018,
1685,
7675,
93,
31,
13491,
3179,
25277,
273,
12358,
25277,
12,
1937,
60,
16,
787,
61,
1769,
13491,
309,
261,
7466,
25277,
480,
446,
13,
7682,
288,
27573,
394,
3641,
21,
273,
3179,
25277,
31,
13491,
289,
13491,
469,
13491,
288,
27573,
394,
3641,
21,
273,
394,
7149,
12,
71,
22,
10956,
18,
588,
1868,
1046,
5335,
9334,
394,
4686,
22,
72,
12,
1937,
60,
16,
1937,
61,
10019,
27573,
3179,
442,
18,
1289,
3641,
12,
2704,
3641,
21,
1769,
13491,
289,
4766,
7734,
309,
261,
17416,
11728,
2423,
13,
13491,
288,
27573,
509,
679,
60,
273,
436,
22,
10956,
18,
588,
4926,
5018,
1638,
7675,
92,
31,
27573,
509,
679,
61,
273,
436,
22,
10956,
18,
588,
4926,
5018,
1638,
7675,
93,
31,
27573,
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,
540,
1071,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
3639,
288,
7734,
509,
7644,
60,
273,
425,
18,
588,
60,
9334,
7644,
61,
273,
425,
18,
588,
61,
5621,
7734,
342,
11125,
1644,
14,
1171,
380,
15604,
463,
10821,
38,
673,
40,
7038,
4766,
565,
380,
1171,
19756,
1644,
19,
7734,
309,
261,
71,
22,
10956,
18,
588,
6493,
2309,
1435,
422,
276,
22,
10956,
18,
40,
10821,
38,
673,
40,
13,
7734,
288,
13491,
7149,
3179,
25277,
16,
394,
3641,
21,
16,
394,
3641,
22,
31,
13491,
605,
1434,
394,
9807,
31,
13491,
509,
787,
60,
273,
436,
22,
10956,
18,
588,
4926,
5018,
1685,
7675,
92,
31,
13491,
509,
787,
61,
273,
436,
22,
10956,
18,
2
] |
|
final String uri = _uriArray[_namespace[type]];
|
final String uri = _uriArray[ui];
|
private String copyElement(int node, int type, TransletOutputHandler handler) throws TransletException { type = type - NTYPES; String name = _namesArray[type]; final int pi = _prefix[node]; if (pi > 0) { final String prefix = _prefixArray[pi]; final String uri = _uriArray[_namespace[type]]; final String local = getLocalName(node); if (prefix.equals(EMPTYSTRING)) name = local; else name = prefix+':'+local; handler.startElement(name); handler.namespace(prefix, uri); } else { handler.startElement(name); } return name; }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/95944ab187ccf2b1ec8b57622051789f780f7d59/DOMImpl.java/buggy/src/org/apache/xalan/xsltc/dom/DOMImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1610,
1046,
12,
474,
756,
16,
509,
618,
16,
9506,
4202,
2604,
1810,
30796,
1838,
13,
202,
15069,
2604,
1810,
503,
288,
202,
723,
273,
618,
300,
423,
10564,
31,
202,
780,
508,
273,
389,
1973,
1076,
63,
723,
15533,
202,
6385,
509,
4790,
273,
389,
3239,
63,
2159,
15533,
202,
430,
261,
7259,
405,
374,
13,
288,
202,
565,
727,
514,
1633,
273,
389,
3239,
1076,
63,
7259,
15533,
202,
565,
727,
514,
2003,
273,
389,
1650,
1076,
63,
67,
4937,
63,
723,
13563,
31,
202,
565,
727,
514,
1191,
273,
25345,
12,
2159,
1769,
202,
565,
309,
261,
3239,
18,
14963,
12,
13625,
5804,
3719,
202,
202,
529,
273,
1191,
31,
202,
565,
469,
202,
202,
529,
273,
1633,
6797,
2497,
15,
3729,
31,
202,
565,
1838,
18,
1937,
1046,
12,
529,
1769,
202,
565,
1838,
18,
4937,
12,
3239,
16,
2003,
1769,
202,
97,
202,
12107,
288,
202,
565,
1838,
18,
1937,
1046,
12,
529,
1769,
202,
97,
202,
2463,
508,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1610,
1046,
12,
474,
756,
16,
509,
618,
16,
9506,
4202,
2604,
1810,
30796,
1838,
13,
202,
15069,
2604,
1810,
503,
288,
202,
723,
273,
618,
300,
423,
10564,
31,
202,
780,
508,
273,
389,
1973,
1076,
63,
723,
15533,
202,
6385,
509,
4790,
273,
389,
3239,
63,
2159,
15533,
202,
430,
261,
7259,
405,
374,
13,
288,
202,
565,
727,
514,
1633,
273,
389,
3239,
1076,
63,
7259,
15533,
202,
565,
727,
514,
2003,
273,
389,
1650,
1076,
63,
67,
4937,
63,
723,
13563,
31,
202,
565,
727,
514,
1191,
273,
25345,
12,
2159,
1769,
202,
565,
309,
261,
3239,
18,
14963,
12,
13625,
5804,
3719,
202,
202,
529,
273,
1191,
31,
202,
565,
469,
2
] |
VM.assert(BIG_GCI_IDX_ADJ == 1 &&
|
VM._assert(BIG_GCI_IDX_ADJ == 1 &&
|
private void generateMCInformation(OPT_GCIRMap irMap) throws VM_PragmaInterruptible { OPT_CallSiteTree inliningMap = new OPT_CallSiteTree(); int numEntries = 0; // (1) Count how many entries we are going to have and // construct and encode the inlining information for those entries. for (OPT_GCIRMapEnumerator irMapEnum = irMap.enumerator(); irMapEnum.hasMoreElements(); numEntries++) { OPT_GCIRMapElement irMapElem = (OPT_GCIRMapElement)irMapEnum.nextElement(); OPT_Instruction instr = irMapElem.getInstruction(); if (instr.position == null && instr.bcIndex != INSTRUMENTATION_BCI) { if (MIR_Call.conforms(instr) && MIR_Call.hasMethod(instr)) { throw new OPT_OptimizingCompilerException("position required for all call instructions " + instr); } } else { inliningMap.addLocation(instr.position); } } if (numEntries == 0) return; // if no entries, then we are done. inlineEncoding = VM_OptEncodedCallSiteTree.getEncoding(inliningMap); // (2) Encode the primary machine code mapping information and the GCMaps. VM_OptGCMap gcMapBuilder = new VM_OptGCMap(); MCInformation = new long[numEntries]; // assume no need for BIG entries int lastMCInfoEntry = -1; for (OPT_GCIRMapEnumerator irMapEnum = irMap.enumerator(); irMapEnum.hasMoreElements();) { OPT_GCIRMapElement irMapElem = (OPT_GCIRMapElement)irMapEnum.nextElement(); OPT_Instruction instr = irMapElem.getInstruction(); if (DUMP_MAPS) VM.sysWrite("IR Map for " + instr + "\n\t" + irMapElem); // retrieve the machine code offset (in bytes) from the instruction, int mco= instr.getmcOffset(); if (mco < 0) { System.out.println("Negative machine code MCOffset found:" + mco); OPT_Instruction i = irMapElem.getInstruction(); System.out.println(i.bcIndex+", "+i+", "+i.getmcOffset()+"\n"); throw new OPT_OptimizingCompilerException("Negative machine code MCOffset found"); } // create GC map and get GCI int gci = gcMapBuilder.generateGCMapEntry(irMapElem); // get bci information int bci = instr.getBytecodeIndex(); if (bci < 0) { if (bci == UNKNOWN_BCI && MIR_Call.conforms(instr) && MIR_Call.hasMethod(instr)) { throw new OPT_OptimizingCompilerException("valid bytecode index required for all calls " + instr); } bci = -1; } // get index into inline encoding int iei = -1; if (instr.position != null) { iei = inliningMap.find(instr.position).encodedOffset; } // set the call info int cm = 0; if (MIR_Call.conforms(instr)) { OPT_MethodOperand mo = MIR_Call.getMethod(instr); if (mo != null && mo.isGuardedInlineOffBranch()) { cm = IS_GUARDED_CALL; } else { cm = IS_UNGUARDED_CALL; } } // Encode this entry into MCInformation if (bci < INVALID_BCI && iei < INVALID_IEI && gci < INVALID_GCI && mco < (OFFSET_MASK >>> OFFSET_SHIFT)) { // use a normal entry if (bci == -1) bci = INVALID_BCI; if (iei == -1) iei = INVALID_IEI; if (gci == -1) gci = INVALID_GCI; if (VM.VerifyAssertions) { VM.assert((cm & (CALL_MASK>>>CALL_SHIFT)) == cm); VM.assert((bci & (BCI_MASK>>>BCI_SHIFT)) == bci); VM.assert((iei & (IEI_MASK>>>IEI_SHIFT)) == iei); VM.assert((gci & (GCI_MASK>>>GCI_SHIFT)) == gci); VM.assert((mco & (OFFSET_MASK>>>OFFSET_SHIFT)) == mco); } long t = START_OF_ENTRY; t |= (((long)cm) << CALL_SHIFT); t |= (((long)bci) << BCI_SHIFT); t |= (((long)iei) << IEI_SHIFT); t |= (((long)gci) << GCI_SHIFT); t |= (((long)mco) << OFFSET_SHIFT); MCInformation[++lastMCInfoEntry] = t; } else { // use a big entry (assume this is very rare, so only make room for one) long[] tmp = new long[MCInformation.length+1]; System.arraycopy(MCInformation, 0, tmp, 0, MCInformation.length); MCInformation = tmp; if (bci == -1) bci = BIG_INVALID_BCI; if (iei == -1) iei = BIG_INVALID_IEI; if (gci == -1) gci = BIG_INVALID_GCI; if (VM.VerifyAssertions) { VM.assert(BIG_CALL_IDX_ADJ == 0 && BIG_BCI_IDX_ADJ == 0 && BIG_OFFSET_IDX_ADJ == 0); VM.assert(BIG_GCI_IDX_ADJ == 1 && BIG_IEI_IDX_ADJ == 1); VM.assert((cm & (BIG_CALL_MASK>>>BIG_CALL_SHIFT)) == cm); VM.assert((bci & (BIG_BCI_MASK>>>BIG_BCI_SHIFT)) == bci); VM.assert((iei & (BIG_IEI_MASK>>>BIG_IEI_SHIFT)) == iei); VM.assert((gci & (BIG_GCI_MASK>>>BIG_GCI_SHIFT)) == gci); VM.assert((mco & (BIG_OFFSET_MASK>>>BIG_OFFSET_SHIFT)) == mco); } // long 1 long t = START_OF_BIG_ENTRY; t |= (((long)cm) << BIG_CALL_SHIFT); t |= (((long)bci) << BIG_BCI_SHIFT); t |= (((long)mco) << BIG_OFFSET_SHIFT); MCInformation[++lastMCInfoEntry] = t; // long 2 t = (((long)gci) << BIG_GCI_SHIFT); t |= (((long)iei) << BIG_IEI_SHIFT); MCInformation[++lastMCInfoEntry] = t; } } gcMaps = gcMapBuilder.finish(); } //////////////////////////////////////////// // Accessors // NB: The accessors take an entry number, which is defined to // be the index of word I of the MCInformation entry //////////////////////////////////////////// /** * Returns the MCOffset for the entry passed * @param entry the index of the start of the entry * @return the MCOffset for this entry */ private final int getMCOffset(int entry) { if (isBigEntry(entry)) { long t = MCInformation[entry+BIG_OFFSET_IDX_ADJ]; return (int)((t & BIG_OFFSET_MASK) >>> BIG_OFFSET_SHIFT); } else { long t = MCInformation[entry]; return (int)((t & OFFSET_MASK) >>> OFFSET_SHIFT); } } /** * Returns the GC map index for the entry passed * @param entry the index of the start of the entry * @return the GC map entry index for this entry (or -1 if none) */ private final int getGCMapIndex(int entry) { if (isBigEntry(entry)) { long t = MCInformation[entry+BIG_GCI_IDX_ADJ]; int gci = (int)((t & BIG_GCI_MASK) >>> BIG_GCI_SHIFT); if (gci == BIG_INVALID_GCI) return -1; return gci; } else { long t = MCInformation[entry]; int gci = (int)((t & GCI_MASK) >>> GCI_SHIFT); if (gci == INVALID_GCI) return -1; return gci; } }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/a5a05b105574ec4e1a0bacfcc731385b09418803/VM_OptMachineCodeMap.java/clean/rvm/src/vm/compilers/optimizing/vmInterface/services/VM_OptMachineCodeMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
20022,
5369,
12,
15620,
67,
43,
7266,
54,
863,
9482,
863,
13,
1216,
8251,
67,
2050,
9454,
14126,
1523,
288,
565,
16456,
67,
1477,
4956,
2471,
316,
7511,
310,
863,
273,
394,
16456,
67,
1477,
4956,
2471,
5621,
565,
509,
818,
5400,
273,
374,
31,
3639,
368,
261,
21,
13,
6974,
3661,
4906,
3222,
732,
854,
8554,
358,
1240,
471,
565,
368,
377,
4872,
471,
2017,
326,
316,
7511,
310,
1779,
364,
5348,
3222,
18,
565,
364,
261,
15620,
67,
43,
7266,
54,
863,
3572,
7385,
9482,
863,
3572,
273,
9482,
863,
18,
7924,
7385,
5621,
3196,
9482,
863,
3572,
18,
5332,
7417,
3471,
5621,
818,
5400,
27245,
288,
1377,
16456,
67,
43,
7266,
54,
863,
1046,
9482,
863,
7498,
273,
225,
202,
12,
15620,
67,
43,
7266,
54,
863,
1046,
13,
481,
863,
3572,
18,
4285,
1046,
5621,
1377,
16456,
67,
11983,
16170,
273,
9482,
863,
7498,
18,
588,
11983,
5621,
1377,
309,
261,
267,
701,
18,
3276,
422,
446,
597,
16170,
18,
13459,
1016,
480,
2120,
3902,
8518,
2689,
67,
38,
7266,
13,
288,
3639,
309,
261,
7492,
54,
67,
1477,
18,
591,
9741,
12,
267,
701,
13,
597,
490,
7937,
67,
1477,
18,
5332,
1305,
12,
267,
701,
3719,
288,
1850,
604,
394,
16456,
67,
13930,
6894,
9213,
503,
2932,
3276,
1931,
364,
777,
745,
12509,
315,
6862,
1082,
565,
397,
16170,
1769,
3639,
289,
1377,
289,
469,
288,
202,
267,
7511,
310,
863,
18,
1289,
2735,
12,
267,
701,
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,
918,
2103,
20022,
5369,
12,
15620,
67,
43,
7266,
54,
863,
9482,
863,
13,
1216,
8251,
67,
2050,
9454,
14126,
1523,
288,
565,
16456,
67,
1477,
4956,
2471,
316,
7511,
310,
863,
273,
394,
16456,
67,
1477,
4956,
2471,
5621,
565,
509,
818,
5400,
273,
374,
31,
3639,
368,
261,
21,
13,
6974,
3661,
4906,
3222,
732,
854,
8554,
358,
1240,
471,
565,
368,
377,
4872,
471,
2017,
326,
316,
7511,
310,
1779,
364,
5348,
3222,
18,
565,
364,
261,
15620,
67,
43,
7266,
54,
863,
3572,
7385,
9482,
863,
3572,
273,
9482,
863,
18,
7924,
7385,
5621,
3196,
9482,
863,
3572,
18,
5332,
7417,
3471,
5621,
818,
5400,
27245,
288,
1377,
16456,
67,
43,
7266,
54,
2
] |
modes = new IOModes(getRuntime(), mode); handler = new IOHandlerSeekable(getRuntime(), path, modes);
|
if (newModes != null) { modes = newModes; } if ("/dev/null".equals(path)) { handler = new IOHandlerNull(getRuntime(), modes); } else { handler = new IOHandlerSeekable(getRuntime(), path, modes); }
|
public IRubyObject reopen(IRubyObject[] args) { if (args.length < 1) { throw getRuntime().newArgumentError("wrong number of arguments"); } if (args[0].isKindOf(getRuntime().getClass("IO"))) { RubyIO ios = (RubyIO) args[0]; int keepFileno = handler.getFileno(); // close the old handler before it gets overwritten if (handler.isOpen()) { try { handler.close(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { return getRuntime().getNil(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } } // When we reopen, we want our fileno to be preserved even // though we have a new IOHandler. // Note: When we clone we get a new fileno...then we replace it. // This ends up incrementing our fileno index up, which makes the // fileno we choose different from ruby. Since this seems a bit // too implementation specific, I did not bother trying to get // these to agree (what scary code would depend on fileno generating // a particular way?) try { handler = ios.handler.cloneIOHandler(); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOHandler.PipeException e) { throw getRuntime().newErrnoESPIPEError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } handler.setFileno(keepFileno); // Update fileno list with our new handler registerIOHandler(handler); } else if (args[0].isKindOf(getRuntime().getClass("String"))) { String path = ((RubyString) args[0]).toString(); String mode = "r"; if (args.length > 1) { if (!args[1].isKindOf(getRuntime().getClass("String"))) { throw getRuntime().newTypeError(args[1], getRuntime().getClass("String")); } mode = ((RubyString) args[1]).toString(); } try { if (handler != null) { close(); } modes = new IOModes(getRuntime(), mode); handler = new IOHandlerSeekable(getRuntime(), path, modes); registerIOHandler(handler); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOException e) { throw getRuntime().newIOError(e.toString()); } } // A potentially previously close IO is being 'reopened'. isOpen = true; return this; }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/24fc00ac9f647542a77f440ea686cea2d209f347/RubyIO.java/buggy/src/org/jruby/RubyIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
31563,
12,
7937,
10340,
921,
8526,
833,
13,
288,
377,
202,
430,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
604,
18814,
7675,
2704,
1379,
668,
2932,
21530,
1300,
434,
1775,
8863,
377,
202,
97,
377,
202,
3639,
309,
261,
1968,
63,
20,
8009,
291,
5677,
951,
12,
588,
5576,
7675,
588,
797,
2932,
4294,
6,
20349,
288,
5411,
19817,
4294,
30993,
273,
261,
54,
10340,
4294,
13,
833,
63,
20,
15533,
5411,
509,
3455,
25579,
5764,
273,
1838,
18,
588,
25579,
5764,
5621,
13491,
368,
1746,
326,
1592,
1838,
1865,
518,
5571,
15345,
5411,
309,
261,
4176,
18,
291,
3678,
10756,
288,
7734,
775,
288,
10792,
1838,
18,
4412,
5621,
7734,
289,
1044,
261,
4294,
1503,
18,
6434,
3187,
503,
425,
13,
288,
10792,
604,
18814,
7675,
2704,
2524,
2135,
41,
16234,
42,
668,
5621,
7734,
289,
1044,
261,
12706,
503,
425,
13,
288,
10792,
327,
18814,
7675,
588,
12616,
5621,
7734,
289,
1044,
261,
14106,
425,
13,
288,
10792,
604,
18814,
7675,
2704,
4294,
668,
12,
73,
18,
24906,
10663,
7734,
289,
5411,
289,
5411,
368,
5203,
732,
31563,
16,
732,
2545,
3134,
24256,
358,
506,
21096,
5456,
5411,
368,
11376,
732,
1240,
279,
394,
1665,
1503,
18,
5411,
368,
3609,
30,
5203,
732,
3236,
732,
336,
279,
394,
24256,
2777,
15991,
732,
1453,
518,
18,
5411,
368,
1220,
3930,
731,
5504,
310,
3134,
24256,
770,
731,
16,
1492,
7297,
326,
5411,
368,
24256,
732,
9876,
3775,
628,
22155,
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,
15908,
10340,
921,
31563,
12,
7937,
10340,
921,
8526,
833,
13,
288,
377,
202,
430,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
604,
18814,
7675,
2704,
1379,
668,
2932,
21530,
1300,
434,
1775,
8863,
377,
202,
97,
377,
202,
3639,
309,
261,
1968,
63,
20,
8009,
291,
5677,
951,
12,
588,
5576,
7675,
588,
797,
2932,
4294,
6,
20349,
288,
5411,
19817,
4294,
30993,
273,
261,
54,
10340,
4294,
13,
833,
63,
20,
15533,
5411,
509,
3455,
25579,
5764,
273,
1838,
18,
588,
25579,
5764,
5621,
13491,
368,
1746,
326,
1592,
1838,
1865,
518,
5571,
15345,
5411,
309,
261,
4176,
18,
291,
3678,
10756,
288,
7734,
775,
288,
10792,
1838,
18,
4412,
5621,
7734,
289,
2
] |
classSpecifier.setTopLine( parser.getLineNumberForOffset(classKey.getOffset()) );
|
public Object classSpecifierBegin(Object container, Token classKey) { TypeSpecifier.IOwner decl = (TypeSpecifier.IOwner)container; int kind = ClassKey.t_struct; int visibility = AccessSpecifier.v_public; switch (classKey.getType()) { case Token.t_class: kind = ClassKey.t_class; visibility = AccessSpecifier.v_private; break; case Token.t_struct: kind = ClassKey.t_struct; break; case Token.t_union: kind = ClassKey.t_union; break; } ClassSpecifier classSpecifier = new ClassSpecifier(kind, decl); classSpecifier.setVisibility( visibility ); classSpecifier.setStartingOffset( classKey.getOffset() ); classSpecifier.setTopLine( parser.getLineNumberForOffset(classKey.getOffset()) ); classSpecifier.setClassKeyToken( classKey ); decl.setTypeSpecifier(classSpecifier); return classSpecifier; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/eaf3aacd4e3d8f3a8cf9d61dbcdfcb0d824bad16/DOMBuilder.java/clean/core/org.eclipse.cdt.core/dom/org/eclipse/cdt/internal/core/dom/DOMBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
667,
21416,
8149,
12,
921,
1478,
16,
3155,
667,
653,
13,
288,
202,
202,
559,
21416,
18,
45,
5541,
3496,
273,
261,
559,
21416,
18,
45,
5541,
13,
3782,
31,
9506,
202,
474,
3846,
273,
1659,
653,
18,
88,
67,
1697,
31,
202,
202,
474,
9478,
273,
5016,
21416,
18,
90,
67,
482,
31,
4697,
202,
9610,
261,
1106,
653,
18,
588,
559,
10756,
288,
1082,
202,
3593,
3155,
18,
88,
67,
1106,
30,
9506,
202,
9224,
273,
1659,
653,
18,
88,
67,
1106,
31,
9506,
202,
14422,
273,
5016,
21416,
18,
90,
67,
1152,
31,
4697,
202,
8820,
31,
1082,
202,
3593,
3155,
18,
88,
67,
1697,
30,
9506,
202,
9224,
273,
1659,
653,
18,
88,
67,
1697,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
3155,
18,
88,
67,
18910,
30,
9506,
202,
9224,
273,
1659,
653,
18,
88,
67,
18910,
31,
9506,
202,
8820,
31,
6862,
202,
97,
9506,
202,
797,
21416,
667,
21416,
273,
394,
1659,
21416,
12,
9224,
16,
3496,
1769,
202,
202,
1106,
21416,
18,
542,
10135,
12,
9478,
11272,
202,
202,
1106,
21416,
18,
542,
11715,
2335,
12,
667,
653,
18,
588,
2335,
1435,
11272,
202,
202,
1106,
21416,
18,
542,
3401,
1670,
12,
2082,
18,
588,
31063,
1290,
2335,
12,
1106,
653,
18,
588,
2335,
10756,
11272,
202,
202,
1106,
21416,
18,
542,
797,
653,
1345,
12,
667,
653,
11272,
202,
202,
8840,
18,
542,
559,
21416,
12,
1106,
21416,
1769,
202,
202,
2463,
667,
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,
1033,
667,
21416,
8149,
12,
921,
1478,
16,
3155,
667,
653,
13,
288,
202,
202,
559,
21416,
18,
45,
5541,
3496,
273,
261,
559,
21416,
18,
45,
5541,
13,
3782,
31,
9506,
202,
474,
3846,
273,
1659,
653,
18,
88,
67,
1697,
31,
202,
202,
474,
9478,
273,
5016,
21416,
18,
90,
67,
482,
31,
4697,
202,
9610,
261,
1106,
653,
18,
588,
559,
10756,
288,
1082,
202,
3593,
3155,
18,
88,
67,
1106,
30,
9506,
202,
9224,
273,
1659,
653,
18,
88,
67,
1106,
31,
9506,
202,
14422,
273,
5016,
21416,
18,
90,
67,
1152,
31,
4697,
202,
8820,
31,
1082,
202,
3593,
3155,
18,
88,
67,
1697,
30,
9506,
202,
9224,
273,
1659,
653,
2
] |
|
createAlignment(mySettings.ALIGN_MULTILINE_PARAMETERS, null));
|
AlignmentStrategy.createDoNotAlingCommaStrategy(createAlignment(mySettings.ALIGN_MULTILINE_PARAMETERS, null)));
|
protected ASTNode processChild(final ArrayList<Block> result, ASTNode child, Alignment defaultAlignment, final Wrap defaultWrap) { if (child.getElementType() == ElementType.LBRACE) { if (!result.isEmpty()) { final ArrayList<Block> subBlock = new ArrayList<Block>(result); result.clear(); result.add(new SynteticCodeBlock(subBlock, null, mySettings, null, null)); } child = createBlockFrom(result, child, ElementType.LBRACE, ElementType.RBRACE); } else if (isStatement(child)) { createBlockFrom(result, child, null, null); } else if (child.getElementType() == ElementType.LPARENTH && myNode.getElementType() == ElementType.EXPRESSION_LIST){ final Wrap wrap = Formatter.getInstance().createWrap(getWrapType(mySettings.CALL_PARAMETERS_WRAP), false); child = createSynteticBlock(result, child, ElementType.LPARENTH, ElementType.RPARENTH, Formatter.getInstance().getNoneIndent(), Formatter.getInstance().createContinuationIndent(), WrappingStrategy.createDoNotWrapCommaStrategy(wrap), createAlignment(mySettings.ALIGN_MULTILINE_PARAMETERS_IN_CALLS, null)); } else if (child.getElementType() == ElementType.LPARENTH && myNode.getElementType() == ElementType.PARAMETER_LIST){ final Wrap wrap = Formatter.getInstance().createWrap(getWrapType(mySettings.METHOD_PARAMETERS_WRAP), false); child = createSynteticBlock(result, child, ElementType.LPARENTH, ElementType.RPARENTH, Formatter.getInstance().getNoneIndent(), Formatter.getInstance().createContinuationIndent(), WrappingStrategy.createDoNotWrapCommaStrategy(wrap), createAlignment(mySettings.ALIGN_MULTILINE_PARAMETERS, null)); } else if (child.getElementType() == ElementType.LPARENTH && myNode.getElementType() == ElementType.PARENTH_EXPRESSION){ child = createSynteticBlock(result, child, ElementType.LPARENTH, ElementType.RPARENTH, Formatter.getInstance().getNoneIndent(), Formatter.getInstance().createContinuationIndent(), WrappingStrategy.DO_NOT_WRAP, createAlignment(mySettings.ALIGN_MULTILINE_PARENTHESIZED_EXPRESSION, null)); } else { Indent indent = null; if (shouldShift(child)) { indent = Formatter.getInstance().createNormalIndent(); } final Block block = createJavaBlock(child, mySettings, indent, arrangeChildWrap(child, defaultWrap), arrangeChildAlignment(child, defaultAlignment)); if (block instanceof AbstractJavaBlock) { final AbstractJavaBlock javaBlock = ((AbstractJavaBlock)block); if (myNode.getElementType() == ElementType.METHOD_CALL_EXPRESSION && child.getElementType() == ElementType.REFERENCE_EXPRESSION) { javaBlock.setReservedWrap(getReservedWrap()); } else if (myNode.getElementType() == ElementType.REFERENCE_EXPRESSION && child.getElementType() == ElementType.METHOD_CALL_EXPRESSION) { javaBlock.setReservedWrap(getReservedWrap()); } else if (myNode.getElementType() == ElementType.BINARY_EXPRESSION) { javaBlock.setReservedWrap(defaultWrap); } } result.add(block); } return child; }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/8073fc2d58c87310dd345e2409065063d74a5dc1/AbstractJavaBlock.java/buggy/source/com/intellij/psi/formatter/newXmlFormatter/java/AbstractJavaBlock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
9183,
907,
1207,
1763,
12,
6385,
2407,
32,
1768,
34,
563,
16,
9183,
907,
1151,
16,
17804,
805,
11535,
16,
727,
4266,
805,
2964,
13,
288,
565,
309,
261,
3624,
18,
588,
17481,
1435,
422,
3010,
559,
18,
12995,
9254,
13,
288,
1377,
309,
16051,
2088,
18,
291,
1921,
10756,
288,
3639,
727,
2407,
32,
1768,
34,
720,
1768,
273,
394,
2407,
32,
1768,
34,
12,
2088,
1769,
3639,
563,
18,
8507,
5621,
3639,
563,
18,
1289,
12,
2704,
16455,
496,
7943,
1085,
1768,
12,
1717,
1768,
16,
446,
16,
3399,
2628,
16,
446,
16,
446,
10019,
1377,
289,
1377,
1151,
273,
752,
1768,
1265,
12,
2088,
16,
1151,
16,
3010,
559,
18,
12995,
9254,
16,
3010,
559,
18,
19437,
9254,
1769,
565,
289,
565,
469,
309,
261,
291,
3406,
12,
3624,
3719,
288,
1377,
752,
1768,
1265,
12,
2088,
16,
1151,
16,
446,
16,
446,
1769,
565,
289,
565,
469,
565,
309,
261,
3624,
18,
588,
17481,
1435,
422,
3010,
559,
18,
48,
14943,
44,
597,
3399,
907,
18,
588,
17481,
1435,
422,
3010,
559,
18,
19111,
67,
7085,
15329,
1377,
727,
4266,
2193,
273,
14924,
18,
588,
1442,
7675,
2640,
2964,
12,
588,
2964,
559,
12,
4811,
2628,
18,
13730,
67,
20103,
67,
27664,
3631,
629,
1769,
1377,
1151,
273,
752,
10876,
496,
7943,
1768,
12,
2088,
16,
1151,
16,
3010,
559,
18,
48,
14943,
44,
16,
3010,
559,
18,
54,
14943,
44,
16,
21394,
14924,
18,
588,
1442,
7675,
588,
7036,
7790,
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,
9183,
907,
1207,
1763,
12,
6385,
2407,
32,
1768,
34,
563,
16,
9183,
907,
1151,
16,
17804,
805,
11535,
16,
727,
4266,
805,
2964,
13,
288,
565,
309,
261,
3624,
18,
588,
17481,
1435,
422,
3010,
559,
18,
12995,
9254,
13,
288,
1377,
309,
16051,
2088,
18,
291,
1921,
10756,
288,
3639,
727,
2407,
32,
1768,
34,
720,
1768,
273,
394,
2407,
32,
1768,
34,
12,
2088,
1769,
3639,
563,
18,
8507,
5621,
3639,
563,
18,
1289,
12,
2704,
16455,
496,
7943,
1085,
1768,
12,
1717,
1768,
16,
446,
16,
3399,
2628,
16,
446,
16,
446,
10019,
1377,
289,
1377,
1151,
273,
752,
1768,
1265,
12,
2088,
16,
1151,
16,
3010,
559,
18,
12995,
9254,
16,
3010,
2
] |
+ version +"\"", Project.MSG_VERBOSE);
|
+ version + "\"", Project.MSG_VERBOSE);
|
protected boolean isValidRdbms(Connection conn) { if (rdbms == null && version == null) { return true; } try { DatabaseMetaData dmd = conn.getMetaData(); if (rdbms != null) { String theVendor = dmd.getDatabaseProductName().toLowerCase(); log("RDBMS = " + theVendor, Project.MSG_VERBOSE); if (theVendor == null || theVendor.indexOf(rdbms) < 0) { log("Not the required RDBMS: "+rdbms, Project.MSG_VERBOSE); return false; } } if (version != null) { // XXX maybe better toLowerCase(Locale.US) String theVersion = dmd.getDatabaseProductVersion().toLowerCase(); log("Version = " + theVersion, Project.MSG_VERBOSE); if (theVersion == null || !(theVersion.startsWith(version) || theVersion.indexOf(" " + version) >= 0)) { log("Not the required version: \"" + version +"\"", Project.MSG_VERBOSE); return false; } } } catch (SQLException e) { // Could not get the required information log("Failed to obtain required RDBMS information", Project.MSG_ERR); return false; } return true; }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/c6c232893c39257745a8f7a618bcdb5c59791cae/SQLExec.java/buggy/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
4908,
54,
1966,
959,
12,
1952,
1487,
13,
288,
3639,
309,
261,
86,
1966,
959,
422,
446,
597,
1177,
422,
446,
13,
288,
5411,
327,
638,
31,
3639,
289,
7734,
775,
288,
5411,
5130,
6998,
302,
1264,
273,
1487,
18,
588,
6998,
5621,
13491,
309,
261,
86,
1966,
959,
480,
446,
13,
288,
7734,
514,
326,
14786,
273,
302,
1264,
18,
588,
4254,
4133,
461,
7675,
869,
5630,
5621,
27573,
613,
2932,
54,
2290,
3537,
273,
315,
397,
326,
14786,
16,
5420,
18,
11210,
67,
21900,
1769,
7734,
309,
261,
5787,
14786,
422,
446,
747,
326,
14786,
18,
31806,
12,
86,
1966,
959,
13,
411,
374,
13,
288,
10792,
613,
2932,
1248,
326,
1931,
534,
2290,
3537,
30,
13773,
86,
1966,
959,
16,
5420,
18,
11210,
67,
21900,
1769,
10792,
327,
629,
31,
7734,
289,
5411,
289,
13491,
309,
261,
1589,
480,
446,
13,
288,
7734,
368,
11329,
6944,
7844,
5914,
12,
3916,
18,
3378,
13,
7734,
514,
326,
1444,
273,
5397,
302,
1264,
18,
588,
4254,
4133,
1444,
7675,
869,
5630,
5621,
27573,
613,
2932,
1444,
273,
315,
397,
326,
1444,
16,
5420,
18,
11210,
67,
21900,
1769,
7734,
309,
261,
5787,
1444,
422,
446,
747,
5397,
401,
12,
5787,
1444,
18,
17514,
1190,
12,
1589,
13,
747,
15604,
326,
1444,
18,
31806,
2932,
315,
397,
1177,
13,
1545,
374,
3719,
288,
10792,
613,
2932,
1248,
326,
1931,
1177,
30,
11843,
13491,
397,
1177,
397,
7023,
3113,
5420,
18,
11210,
67,
21900,
1769,
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,
1250,
4908,
54,
1966,
959,
12,
1952,
1487,
13,
288,
3639,
309,
261,
86,
1966,
959,
422,
446,
597,
1177,
422,
446,
13,
288,
5411,
327,
638,
31,
3639,
289,
7734,
775,
288,
5411,
5130,
6998,
302,
1264,
273,
1487,
18,
588,
6998,
5621,
13491,
309,
261,
86,
1966,
959,
480,
446,
13,
288,
7734,
514,
326,
14786,
273,
302,
1264,
18,
588,
4254,
4133,
461,
7675,
869,
5630,
5621,
27573,
613,
2932,
54,
2290,
3537,
273,
315,
397,
326,
14786,
16,
5420,
18,
11210,
67,
21900,
1769,
7734,
309,
261,
5787,
14786,
422,
446,
747,
326,
14786,
18,
31806,
12,
86,
1966,
959,
13,
411,
374,
13,
288,
10792,
613,
2932,
1248,
326,
1931,
534,
2290,
2
] |
SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd") ; Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; sqlStr = "update meta set date_modified = '"+dateformat.format(dt)+"' where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; byte[] tempbytes = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; } return ;
|
String output = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( output != null ) { out.write(output) ;
|
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; imcode.server.User user ; String htmlStr = "" ; String submit_name = "" ; String url_ref = "" ; String url_txt = "" ; String values[] ; int meta_id ; int parent_meta_id ; String ok = "" ; String cancel = "" ; String reset = "" ; String show_meta = "" ; res.setContentType( "text/html" ); ServletOutputStream out = res.getOutputStream( ); // get meta_id meta_id = Integer.parseInt( req.getParameter( "meta_id" ) ) ; // get parent_meta_id parent_meta_id = Integer.parseInt( req.getParameter( "parent_meta_id" ) ) ; // get urlref values = req.getParameterValues( "url_ref" ) ; if( values != null ) url_ref = values[0] ; // get urltxt/* values = req.getParameterValues( "url_txt" ) ; if( values != null ) url_txt = values[0] ;*/ // save form data imcode.server.Table doc = new imcode.server.Table( ) ;// doc.addField( "url_ref",url_ref ) ;// doc.addField( "url_txt",url_txt ) ; String target = req.getParameter("target") ; if ( "_other".equals(target) ) { target = req.getParameter("frame_name") ; } // Get the session HttpSession session = req.getSession( true ); // Does the session indicate this user already logged in? Object done = session.getValue( "logon.isDone" ); // marker object user = (imcode.server.User)done ; if( done == null ) { // No logon.isDone means he hasn't logged in. // Save the request URL as the true target and redirect to the login page. String scheme = req.getScheme( ); String serverName = req.getServerName( ); int p = req.getServerPort( ); String port = (p == 80) ? "" : ":" + p; res.sendRedirect( scheme + "://" + serverName + port + start_url ) ; return ; } // Check if user has write rights if ( !IMCServiceRMI.checkDocAdminRights(imcserver, meta_id, user, 65536) ) { log("User "+user.getInt("user_id")+" was denied access to meta_id "+meta_id+" and was sent to "+start_url) ; String scheme = req.getScheme() ; String serverName = req.getServerName() ; int p = req.getServerPort() ; String port = ( p == 80 ) ? "" : ":" + p ; res.sendRedirect( scheme + "://" + serverName + port + start_url ) ; return ; }/* if( req.getParameter("cancel")!=null ) {// htmlStr = IMCServiceRMI.interpretTemplate( imcserver,parent_meta_id,user ) ; byte[] tempbytes = AdminDoc.adminDoc(parent_meta_id,parent_meta_id,host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; } return ; } else if( req.getParameter("metadata")!=null ) //htmlStr = IMCServiceRMI.interpretAdminTemplate( imcserver,meta_id,user,"change_meta.html",5,parent_meta_id,0,0 ) ; htmlStr = imcode.util.MetaDataParser.parseMetaData(String.valueOf(meta_id), String.valueOf(parent_meta_id),user,host) ; else { */// IMCServiceRMI.saveUrlDoc( imcserver,meta_id,user,doc ) ; String sqlStr = "update url_docs set url_ref = '"+url_ref+"' where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; sqlStr = "update meta set target = '"+target+"' where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ;// htmlStr = IMCServiceRMI.interpretTemplate( imcserver,parent_meta_id,user ) ; SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd") ; Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; sqlStr = "update meta set date_modified = '"+dateformat.format(dt)+"' where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; byte[] tempbytes = AdminDoc.adminDoc(meta_id,meta_id,host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; } return ; //} //out.print( htmlStr ) ; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/724e7812e834d9de044f04f1b96918c3622f1241/SaveUrlDoc.java/buggy/servlets/SaveUrlDoc.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
202,
780,
709,
71,
3567,
1875,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
202,
780,
787,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
202,
780,
1729,
1585,
273,
1408,
274,
202,
202,
780,
4879,
67,
529,
273,
1408,
274,
202,
202,
780,
880,
67,
1734,
273,
1408,
274,
202,
202,
780,
880,
67,
5830,
273,
1408,
274,
202,
202,
780,
924,
8526,
274,
202,
202,
474,
2191,
67,
350,
274,
202,
202,
474,
982,
67,
3901,
67,
350,
274,
202,
202,
780,
1529,
273,
1408,
274,
202,
202,
780,
3755,
273,
1408,
274,
202,
202,
780,
2715,
273,
1408,
274,
202,
202,
780,
2405,
67,
3901,
273,
1408,
274,
202,
202,
455,
18,
542,
8046,
12,
315,
955,
19,
2620,
6,
11272,
202,
202,
4745,
4632,
596,
273,
400,
18,
588,
4632,
12,
11272,
202,
202,
759,
336,
2191,
67,
350,
202,
202,
3901,
67,
350,
273,
2144,
18,
2670,
1702,
12,
1111,
18,
588,
1662,
12,
315,
3901,
67,
350,
6,
262,
262,
274,
202,
202,
759,
336,
982,
67,
3901,
67,
350,
202,
202,
2938,
67,
3901,
67,
350,
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,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
202,
780,
709,
71,
3567,
1875,
202,
33,
13134,
18,
588,
3748,
23218,
2932,
3666,
3567,
3113,
2564,
13,
274,
202,
202,
780,
787,
67,
718,
540,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
1937,
67,
718,
3113,
2564,
262,
274,
202,
202,
381,
710,
18,
3567,
18,
1299,
729,
274,
202,
202,
780,
1729,
1585,
273,
1408,
274,
202,
202,
780,
4879,
67,
529,
273,
1408,
274,
202,
202,
780,
880,
67,
1734,
273,
1408,
274,
202,
202,
780,
880,
67,
5830,
2
] |
public Collection mustContain()
|
public Collection mustContain(Map sym_to_vars)
|
public Collection mustContain() { Collection c = a.mustContain(); c.retainAll(b.mustContain()); return c; }
|
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/823817a6d12311615190978f5aa599ec715448dc/RegexAlternation_c.java/clean/aop/abc/src/abc/tm/ast/RegexAlternation_c.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
1297,
22928,
12,
863,
5382,
67,
869,
67,
4699,
13,
565,
288,
3639,
2200,
276,
273,
279,
18,
11926,
22928,
5621,
3639,
276,
18,
1349,
530,
1595,
12,
70,
18,
11926,
22928,
10663,
3639,
327,
276,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
1297,
22928,
12,
863,
5382,
67,
869,
67,
4699,
13,
565,
288,
3639,
2200,
276,
273,
279,
18,
11926,
22928,
5621,
3639,
276,
18,
1349,
530,
1595,
12,
70,
18,
11926,
22928,
10663,
3639,
327,
276,
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
] |
URLConnection cntx = UrlConnectionUtil.getUrlConnection(serverURL, proxySettings, false);
|
URLConnection cntx = WebClientUtil.getUrlConnection(serverURL, proxySettings, false);
|
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { monitor.beginTask("Validating server settings", IProgressMonitor.UNKNOWN); try { Proxy proxySettings = TasksUiPlugin.getDefault().getProxySettings(); URLConnection cntx = UrlConnectionUtil.getUrlConnection(serverURL, proxySettings, false); if (cntx == null || !(cntx instanceof HttpURLConnection)) { throw new MalformedURLException(); } HttpURLConnection serverConnection = (HttpURLConnection) cntx; serverConnection.connect(); BugzillaServerFacade.validateCredentials(serverUrl, newUserId, newPassword); } catch (Exception e) { throw new InvocationTargetException(e); } finally { monitor.done(); } }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/48db300fbbd42bfc04561f665b8678490392afac/BugzillaRepositorySettingsPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
15342,
16,
7558,
288,
6862,
202,
10259,
18,
10086,
2174,
2932,
31496,
1438,
1947,
3113,
467,
5491,
7187,
18,
14737,
1769,
6862,
202,
698,
288,
25083,
202,
3886,
2889,
2628,
273,
20350,
13943,
3773,
18,
588,
1868,
7675,
588,
3886,
2628,
5621,
25083,
202,
14790,
7599,
92,
273,
6816,
1952,
1304,
18,
588,
1489,
1952,
12,
3567,
1785,
16,
2889,
2628,
16,
629,
1769,
25083,
202,
430,
261,
13085,
92,
422,
446,
747,
401,
12,
13085,
92,
1276,
19084,
3719,
288,
6862,
1082,
202,
12849,
394,
20710,
5621,
25083,
202,
97,
25083,
202,
2940,
14790,
1438,
1952,
273,
261,
2940,
14790,
13,
7599,
92,
31,
25083,
202,
3567,
1952,
18,
3612,
5621,
25083,
202,
19865,
15990,
2081,
12467,
18,
5662,
6163,
12,
3567,
1489,
16,
394,
10502,
16,
394,
3913,
1769,
6862,
202,
97,
1044,
261,
503,
425,
13,
288,
25083,
202,
12849,
394,
15342,
12,
73,
1769,
6862,
202,
97,
3095,
288,
25083,
202,
10259,
18,
8734,
5621,
6862,
202,
97,
9506,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
15342,
16,
7558,
288,
6862,
202,
10259,
18,
10086,
2174,
2932,
31496,
1438,
1947,
3113,
467,
5491,
7187,
18,
14737,
1769,
6862,
202,
698,
288,
25083,
202,
3886,
2889,
2628,
273,
20350,
13943,
3773,
18,
588,
1868,
7675,
588,
3886,
2628,
5621,
25083,
202,
14790,
7599,
92,
273,
6816,
1952,
1304,
18,
588,
1489,
1952,
12,
3567,
1785,
16,
2889,
2628,
16,
629,
1769,
25083,
202,
430,
261,
13085,
92,
422,
446,
747,
401,
12,
13085,
92,
1276,
19084,
3719,
288,
6862,
1082,
202,
12849,
394,
20710,
5621,
25083,
202,
97,
25083,
202,
2940,
14790,
1438,
1952,
273,
261,
2940,
14790,
13,
7599,
92,
31,
25083,
202,
2
] |
String keyword = getSymbolKeyword(symbol);
|
String keyword = getSymbolKeywordForDoc(symbol);
|
public SymbolTablePrinter printShortSignature(Symbol symbol, boolean addLink) { String keyword = getSymbolKeyword(symbol); if (keyword != null) print(keyword).space(); printSymbol(symbol, addLink); return printType(symbol.loBound(), ">:"); }
|
9617 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9617/4abf1460408db127900f0520538890e4b9675738/SymbolTablePrinter.java/clean/sources/scala/tools/scaladoc/SymbolTablePrinter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8565,
1388,
12149,
1172,
4897,
5374,
12,
5335,
3273,
16,
1250,
527,
2098,
13,
288,
3639,
514,
4932,
273,
18712,
8736,
1290,
1759,
12,
7175,
1769,
3639,
309,
261,
11041,
480,
446,
13,
1172,
12,
11041,
2934,
2981,
5621,
202,
1188,
5335,
12,
7175,
16,
527,
2098,
1769,
3639,
327,
1172,
559,
12,
7175,
18,
383,
3499,
9334,
14402,
2773,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8565,
1388,
12149,
1172,
4897,
5374,
12,
5335,
3273,
16,
1250,
527,
2098,
13,
288,
3639,
514,
4932,
273,
18712,
8736,
1290,
1759,
12,
7175,
1769,
3639,
309,
261,
11041,
480,
446,
13,
1172,
12,
11041,
2934,
2981,
5621,
202,
1188,
5335,
12,
7175,
16,
527,
2098,
1769,
3639,
327,
1172,
559,
12,
7175,
18,
383,
3499,
9334,
14402,
2773,
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
] |
public void handleFiles(List files) { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.newDocument(); Element overviewRoot = Util.addChildElement(doc, "overview-frame", null); doc = db.newDocument(); Element allTagsRoot = Util.addChildElement(doc, "all-tags", null); Iterator iter = files.iterator(); while (iter.hasNext()) { File file = (File) iter.next(); if (!file.exists() || !file.canRead()) { continue; } Document xmlDoc = handleFile(file); if (xmlDoc != null) { String shortname = Util.getElementValue( xmlDoc.getDocumentElement(), "body/taglib/shortname"); Util.addChildElement(overviewRoot, "shortname", shortname); List tags = Util.getElements( xmlDoc.getDocumentElement(), "body/taglib/tag"); Iterator tagIter = tags.iterator(); while (tagIter.hasNext()) { Element tag = (Element) tagIter.next(); String tagname = Util.getElementValue(tag, "name"); tag = Util.addChildElement(allTagsRoot, "tag", null); Util.addChildElement(tag, "name", tagname); Util.addChildElement(tag, "taglib", shortname); } } } Source xml = new DOMSource(overviewRoot); Source xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/index.xsl")); Result out = new StreamResult(new File(destdir, "index.html")); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(xsl); t.transform(xml, out); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/overview-frame.xsl")); out = new StreamResult(new File(destdir, "overview-frame.html")); t = tf.newTransformer(xsl); t.transform(xml, out); xml = new DOMSource(allTagsRoot); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/all-tags.xsl")); out = new StreamResult(new File(destdir, "all-tags.html")); t = tf.newTransformer(xsl); t.transform(xml, out); Util.copyFile( "/resources/taglibdoc/stylesheet.css", new File(destdir, "stylesheet.css")); } catch (Exception e) { e.printStackTrace(); } }
|
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibDoc.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibDoc.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
4110,
2697,
12,
682,
2354,
15329,
202,
202,
698,
95,
1082,
202,
2519,
20692,
1966,
74,
33,
2519,
20692,
18,
2704,
1442,
5621,
1082,
202,
2519,
1263,
1966,
33,
1966,
74,
18,
2704,
2519,
1263,
5621,
1082,
202,
2519,
2434,
33,
1966,
18,
2704,
2519,
5621,
1082,
202,
1046,
26081,
2375,
33,
9506,
202,
1304,
18,
1289,
1763,
1046,
12,
2434,
10837,
26081,
17,
3789,
3113,
2011,
1769,
1082,
202,
2434,
33,
1966,
18,
2704,
2519,
5621,
1082,
202,
1046,
454,
3453,
2375,
33,
1304,
18,
1289,
1763,
1046,
12,
2434,
10837,
454,
17,
4156,
3113,
2011,
1769,
1082,
202,
3198,
2165,
33,
2354,
18,
9838,
5621,
1082,
202,
17523,
12,
2165,
18,
5332,
2134,
10756,
95,
9506,
202,
812,
768,
28657,
812,
13,
2165,
18,
4285,
5621,
9506,
202,
430,
12,
5,
768,
18,
1808,
1435,
20081,
5,
768,
18,
4169,
1994,
10756,
95,
6862,
202,
17143,
31,
9506,
202,
97,
9506,
202,
2519,
2902,
1759,
33,
4110,
812,
12,
768,
1769,
9506,
202,
430,
12,
2902,
1759,
5,
33,
2011,
15329,
6862,
202,
780,
28650,
33,
25083,
202,
1304,
18,
21336,
620,
12,
6862,
1082,
202,
2902,
1759,
18,
588,
2519,
1046,
9334,
6862,
1082,
202,
6,
3432,
19,
2692,
2941,
19,
28650,
8863,
6862,
202,
1304,
18,
1289,
1763,
1046,
12,
26081,
2375,
10837,
28650,
3113,
28650,
1769,
6862,
202,
682,
4156,
33,
25083,
202,
1304,
18,
588,
3471,
12,
6862,
1082,
202,
2902,
1759,
18,
588,
2519,
1046,
9334,
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,
6459,
4110,
2697,
12,
682,
2354,
15329,
202,
202,
698,
95,
1082,
202,
2519,
20692,
1966,
74,
33,
2519,
20692,
18,
2704,
1442,
5621,
1082,
202,
2519,
1263,
1966,
33,
1966,
74,
18,
2704,
2519,
1263,
5621,
1082,
202,
2519,
2434,
33,
1966,
18,
2704,
2519,
5621,
1082,
202,
1046,
26081,
2375,
33,
9506,
202,
1304,
18,
1289,
1763,
1046,
12,
2434,
10837,
26081,
17,
3789,
3113,
2011,
1769,
1082,
202,
2434,
33,
1966,
18,
2704,
2519,
5621,
1082,
202,
1046,
454,
3453,
2375,
33,
1304,
18,
1289,
1763,
1046,
12,
2434,
10837,
454,
17,
4156,
3113,
2011,
1769,
1082,
202,
3198,
2165,
33,
2354,
18,
9838,
5621,
1082,
202,
17523,
12,
2165,
18,
5332,
2134,
2
] |
||
throw new SQLException(pg_stream.ReceiveString(getEncoding()));
|
throw new SQLException(pg_stream.ReceiveString(encoding));
|
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString(getEncoding())); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(getEncoding())); default: throw new PSQLException("postgresql.con.setup"); } // Originally we issued a SHOW DATESTYLE statement to find the databases default // datestyle. However, this caused some problems with timestamps, so in 6.5, we // went the way of ODBC, and set the connection to ISO. // // This may cause some clients to break when they assume anything other than ISO, // but then - they should be using the proper methods ;-) // // We also ask the DB for certain properties (i.e. DatabaseEncoding at this time) // firstWarning = null; java.sql.ResultSet initrset = ExecSQL("set datestyle to 'ISO'; " + "select case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"); String dbEncoding = null; //retrieve DB properties if(initrset.next()) { //handle DatabaseEncoding dbEncoding = initrset.getString(1); //convert from the PostgreSQL name to the Java name if (dbEncoding.equals("SQL_ASCII")) { dbEncoding = "ASCII"; } else if (dbEncoding.equals("UNICODE")) { dbEncoding = "UTF8"; } else if (dbEncoding.equals("LATIN1")) { dbEncoding = "ISO8859_1"; } else if (dbEncoding.equals("LATIN2")) { dbEncoding = "ISO8859_2"; } else if (dbEncoding.equals("LATIN3")) { dbEncoding = "ISO8859_3"; } else if (dbEncoding.equals("LATIN4")) { dbEncoding = "ISO8859_4"; } else if (dbEncoding.equals("LATIN5")) { dbEncoding = "ISO8859_5"; } else if (dbEncoding.equals("LATIN6")) { dbEncoding = "ISO8859_6"; } else if (dbEncoding.equals("LATIN7")) { dbEncoding = "ISO8859_7"; } else if (dbEncoding.equals("LATIN8")) { dbEncoding = "ISO8859_8"; } else if (dbEncoding.equals("LATIN9")) { dbEncoding = "ISO8859_9"; } else if (dbEncoding.equals("EUC_JP")) { dbEncoding = "EUC_JP"; } else if (dbEncoding.equals("EUC_CN")) { dbEncoding = "EUC_CN"; } else if (dbEncoding.equals("EUC_KR")) { dbEncoding = "EUC_KR"; } else if (dbEncoding.equals("EUC_TW")) { dbEncoding = "EUC_TW"; } else if (dbEncoding.equals("KOI8")) { // try first if KOI8_U is present, it's a superset of KOI8_R try { dbEncoding = "KOI8_U"; "test".getBytes(dbEncoding); } catch(UnsupportedEncodingException uee) { // well, KOI8_U is still not in standard JDK, falling back to KOI8_R :( dbEncoding = "KOI8_R"; } } else if (dbEncoding.equals("WIN")) { dbEncoding = "Cp1252"; } else if (dbEncoding.equals("UNKNOWN")) { //This isn't a multibyte database so we don't have an encoding to use //We leave dbEncoding null which will cause the default encoding for the //JVM to be used dbEncoding = null; } else { dbEncoding = null; } } //Set the encoding for this connection //Since the encoding could be specified or obtained from the DB we use the //following order: // 1. passed as a property // 2. value from DB if supported by current JVM // 3. default for JVM (leave encoding null) String passedEncoding = info.getProperty("charSet"); // could be null if (passedEncoding != null) { encoding = passedEncoding; } else { if (dbEncoding != null) { //test DB encoding try { "TEST".getBytes(dbEncoding); //no error the encoding is supported by the current JVM encoding = dbEncoding; } catch (UnsupportedEncodingException uee) { //dbEncoding is not supported by the current JVM encoding = null; } } else { encoding = null; } } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
|
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/ff21a8e5c86457e205ff7c598b930efd711cb2dc/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
2201,
1790,
854,
3315,
565,
368,
1220,
9145,
345,
285,
1230,
9938,
1347,
326,
1004,
4692,
326,
1790,
1177,
565,
368,
434,
6742,
9334,
471,
353,
279,
2975,
5073,
603,
326,
2699,
6035,
565,
309,
12,
1376,
18,
588,
1396,
2932,
1355,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
1355,
8863,
565,
309,
12,
1376,
18,
588,
1396,
2932,
3664,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
5466,
8863,
565,
333,
67,
7407,
273,
302,
31,
565,
333,
67,
718,
273,
880,
31,
565,
22116,
67,
22366,
273,
2063,
31,
565,
22116,
67,
13784,
273,
1123,
18,
588,
1396,
2932,
3664,
8863,
565,
22116,
67,
4714,
273,
1123,
18,
588,
1396,
2932,
1355,
8863,
565,
22116,
67,
6354,
273,
1756,
31,
565,
22116,
67,
8908,
273,
1479,
31,
565,
22116,
67,
8608,
273,
20695,
67,
16234,
31,
565,
368,
4494,
1221,
326,
2172,
1459,
565,
775,
1377,
288,
202,
8365,
67,
3256,
273,
394,
22116,
67,
1228,
12,
2564,
16,
1756,
1769,
1377,
289,
1044,
261,
5215,
503,
276,
338,
13,
288,
202,
759,
25808,
635,
453,
847,
13076,
411,
84,
847,
36,
266,
736,
84,
18,
3341,
18,
19445,
34,
202,
759,
8289,
503,
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,
24982,
12,
780,
1479,
16,
509,
1756,
16,
6183,
1123,
16,
514,
2063,
16,
514,
880,
16,
9396,
302,
13,
1216,
6483,
565,
288,
565,
368,
3743,
392,
1520,
309,
326,
729,
578,
2201,
1790,
854,
3315,
565,
368,
1220,
9145,
345,
285,
1230,
9938,
1347,
326,
1004,
4692,
326,
1790,
1177,
565,
368,
434,
6742,
9334,
471,
353,
279,
2975,
5073,
603,
326,
2699,
6035,
565,
309,
12,
1376,
18,
588,
1396,
2932,
1355,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
1355,
8863,
565,
309,
12,
1376,
18,
588,
1396,
2932,
3664,
7923,
631,
2011,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
591,
18,
2
] |
res.parens.set(num, parsub);
|
res.parens[num] = parsub;
|
Object executeRegExp(Context cx, Scriptable scopeObj, RegExpImpl res, String str, int indexp[], int matchType) { REGlobalData gData = new REGlobalData(); REMatchState x; int start = indexp[0]; char[] charArray = str.toCharArray(); int length = charArray.length; if (start > length) start = length; int cp = 0; gData.cpbegin = charArray; gData.cpend = cp + length; cp += start; gData.start = start; gData.skipped = 0; x = initMatch(gData, re, res.multiline); x.cp = cp; /* * Call the recursive matcher to do the real work. Return null on mismatch * whether testing or not. On match, return an extended Array object. */ REMatchState state = MatchRegExp(gData, x); if (state == null) { if (matchType != PREFIX) return null; return Undefined.instance; } int index = state.cp; int i = index; indexp[0] = i; int matchlen = i - (start + gData.skipped); int ep = index; index -= matchlen; Object result; Scriptable obj; if (matchType == TEST) { /* * Testing for a match and updating cx.regExpImpl: don't allocate * an array object, do return true. */ result = Boolean.TRUE; obj = null; } else { /* * The array returned on match has element 0 bound to the matched * string, elements 1 through state.parenCount bound to the paren * matches, an index property telling the length of the left context, * and an input property referring to the input string. */ Scriptable scope = getTopLevelScope(scopeObj); result = ScriptRuntime.newObject(cx, scope, "Array", null); obj = (Scriptable) result; String matchstr = new String(charArray, index, matchlen); obj.put(0, obj, matchstr); } if (state.parenCount > re.parenCount) throw new RuntimeException(); if (state.parenCount == 0) { res.parens.clear(); res.lastParen = SubString.emptySubString; } else { SubString parsub = null; int num; res.parens.setSize(re.parenCount); for (num = 0; num < re.parenCount; num++) { int cap_index = state.parens_index(num); String parstr; if (cap_index != -1) { int cap_length = state.parens_length(num); parsub = new SubString(gData.cpbegin,cap_index,cap_length); res.parens.set(num, parsub); if (matchType == TEST) continue; parstr = parsub.toString(); obj.put(num+1, obj, parstr); } else { if (matchType != TEST) obj.put(num+1, obj, Undefined.instance); } } res.lastParen = parsub; } if (! (matchType == TEST)) { /* * Define the index and input properties last for better for/in loop * order (so they come after the elements). */ obj.put("index", obj, new Integer(start + gData.skipped)); obj.put("input", obj, str); } if (res.lastMatch == null) { res.lastMatch = new SubString(); res.leftContext = new SubString(); res.rightContext = new SubString(); } res.lastMatch.charArray = charArray; res.lastMatch.index = index; res.lastMatch.length = matchlen; res.leftContext.charArray = charArray; if (cx.getLanguageVersion() == Context.VERSION_1_2) { /* * JS1.2 emulated Perl4.0.1.8 (patch level 36) for global regexps used * in scalar contexts, and unintentionally for the string.match "list" * psuedo-context. On "hi there bye", the following would result: * * Language while(/ /g){print("$`");} s/ /$`/g * perl4.036 "hi", "there" "hihitherehi therebye" * perl5 "hi", "hi there" "hihitherehi therebye" * js1.2 "hi", "there" "hihitheretherebye" * * Insofar as JS1.2 always defined $` as "left context from the last * match" for global regexps, it was more consistent than perl4. */ res.leftContext.index = start; res.leftContext.length = gData.skipped; } else { /* * For JS1.3 and ECMAv2, emulate Perl5 exactly: * * js1.3 "hi", "hi there" "hihitherehi therebye" */ res.leftContext.index = 0; res.leftContext.length = start + gData.skipped; } res.rightContext.charArray = charArray; res.rightContext.index = ep; res.rightContext.length = gData.cpend - ep; return result; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/aed233007b8749bf8f41f247b9a7be9623fcc366/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1033,
1836,
13673,
12,
1042,
9494,
16,
22780,
2146,
2675,
16,
10679,
2828,
400,
16,
7682,
514,
609,
16,
509,
770,
84,
63,
6487,
509,
845,
559,
13,
565,
288,
3639,
2438,
5160,
751,
314,
751,
273,
394,
2438,
5160,
751,
5621,
3639,
2438,
2060,
1119,
619,
31,
3639,
509,
787,
273,
770,
84,
63,
20,
15533,
3639,
1149,
8526,
1149,
1076,
273,
609,
18,
869,
15936,
5621,
3639,
509,
769,
273,
1149,
1076,
18,
2469,
31,
3639,
309,
261,
1937,
405,
769,
13,
5411,
787,
273,
769,
31,
3639,
509,
3283,
273,
374,
31,
3639,
314,
751,
18,
4057,
10086,
273,
1149,
1076,
31,
3639,
314,
751,
18,
71,
1302,
273,
3283,
397,
769,
31,
3639,
3283,
1011,
787,
31,
3639,
314,
751,
18,
1937,
273,
787,
31,
3639,
314,
751,
18,
25346,
273,
374,
31,
3639,
619,
273,
1208,
2060,
12,
75,
751,
16,
283,
16,
400,
18,
5421,
12554,
1769,
3639,
619,
18,
4057,
273,
3283,
31,
3639,
1748,
540,
380,
3049,
326,
5904,
4546,
358,
741,
326,
2863,
1440,
18,
225,
2000,
446,
603,
13484,
540,
380,
2856,
7769,
578,
486,
18,
225,
2755,
845,
16,
327,
392,
7021,
1510,
733,
18,
540,
1195,
3639,
2438,
2060,
1119,
919,
273,
4639,
13673,
12,
75,
751,
16,
619,
1769,
3639,
309,
261,
2019,
422,
446,
13,
288,
5411,
309,
261,
1916,
559,
480,
17154,
13,
327,
446,
31,
5411,
327,
22243,
18,
1336,
31,
3639,
289,
3639,
509,
770,
273,
919,
18,
4057,
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,
1033,
1836,
13673,
12,
1042,
9494,
16,
22780,
2146,
2675,
16,
10679,
2828,
400,
16,
7682,
514,
609,
16,
509,
770,
84,
63,
6487,
509,
845,
559,
13,
565,
288,
3639,
2438,
5160,
751,
314,
751,
273,
394,
2438,
5160,
751,
5621,
3639,
2438,
2060,
1119,
619,
31,
3639,
509,
787,
273,
770,
84,
63,
20,
15533,
3639,
1149,
8526,
1149,
1076,
273,
609,
18,
869,
15936,
5621,
3639,
509,
769,
273,
1149,
1076,
18,
2469,
31,
3639,
309,
261,
1937,
405,
769,
13,
5411,
787,
273,
769,
31,
3639,
509,
3283,
273,
374,
31,
3639,
314,
751,
18,
4057,
10086,
273,
1149,
1076,
31,
3639,
314,
751,
18,
71,
1302,
273,
3283,
397,
769,
31,
3639,
3283,
2
] |
}
|
public void buttonSelected(Button button, int index) { if (getViewer() == fLibraryPart.getViewer()) { switch (index) { case 0 : handleNew(); break; case 2 : handleUp(); break; case 3 : handleDown(); break; } } else if (getViewer() == fFolderPart.getViewer()) { if (index == 0) handleNewFolder(); } else { button.getShell().setDefaultButton(null); } }
|
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/8ef0d6ed33a0ada7aa654f23bd5c2b63fd6d7fd6/RuntimeInfoSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/RuntimeInfoSection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
3568,
7416,
12,
3616,
3568,
16,
509,
770,
13,
288,
1082,
202,
430,
261,
588,
18415,
1435,
422,
284,
9313,
1988,
18,
588,
18415,
10756,
288,
9506,
202,
9610,
261,
1615,
13,
288,
9506,
202,
3593,
374,
294,
6862,
202,
4110,
1908,
5621,
6862,
202,
8820,
31,
9506,
202,
3593,
576,
294,
6862,
202,
4110,
1211,
5621,
6862,
202,
8820,
31,
9506,
202,
3593,
890,
294,
6862,
202,
4110,
4164,
5621,
6862,
202,
8820,
31,
9506,
202,
97,
1082,
202,
12107,
309,
261,
588,
18415,
1435,
422,
284,
3899,
1988,
18,
588,
18415,
10756,
288,
9506,
202,
430,
261,
1615,
422,
374,
13,
6862,
202,
4110,
1908,
3899,
5621,
1082,
202,
12107,
288,
9506,
202,
5391,
18,
588,
13220,
7675,
542,
1868,
3616,
12,
2011,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
3568,
7416,
12,
3616,
3568,
16,
509,
770,
13,
288,
1082,
202,
430,
261,
588,
18415,
1435,
422,
284,
9313,
1988,
18,
588,
18415,
10756,
288,
9506,
202,
9610,
261,
1615,
13,
288,
9506,
202,
3593,
374,
294,
6862,
202,
4110,
1908,
5621,
6862,
202,
8820,
31,
9506,
202,
3593,
576,
294,
6862,
202,
4110,
1211,
5621,
6862,
202,
8820,
31,
9506,
202,
3593,
890,
294,
6862,
202,
4110,
4164,
5621,
6862,
202,
8820,
31,
9506,
202,
97,
1082,
202,
12107,
309,
261,
588,
18415,
1435,
422,
284,
3899,
1988,
18,
588,
18415,
10756,
288,
9506,
202,
430,
261,
1615,
422,
374,
13,
6862,
202,
4110,
1908,
3899,
5621,
1082,
202,
12107,
288,
9506,
202,
2
] |
|
cmof.reflection.Object object = new cmof.PropertyImpl(_439, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {_663});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _244);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(-1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _519);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_519});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "parameter");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _725);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _519);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _673);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _519);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _519);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "core.abstractions.behavioralfeatures.BehavioralFeature.parameter");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _82);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});
|
cmof.reflection.Object object = new cmof.PropertyImpl(_164, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {_0});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {_262});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {_262});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _569);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _313);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_313});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "package");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _595);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _313);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _690);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _313);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _313);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "cmof.Type.package");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _511);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedBehavior", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {});
|
private static cmof.reflection.Object getObject44(hub.sam.mof.reflection.ExtentImpl extent) { cmof.reflection.Object object = new cmof.PropertyImpl(_439, extent, null, "cmof.PropertyImpl", new String[]{"cmof.RedefinableElementCustom", "core.abstractions.multiplicities.MultiplicityElementCustom", "core.abstractions.redefinitions.RedefinableElementCustom", "cmof.NamedElementCustom", "core.abstractions.namespaces.NamedElementCustom", "core.abstractions.ownerships.ElementCustom"});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("visibility", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerived", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("subsettedProperty", new java.lang.Object[] {_663});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinitionContext", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedProperty", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("datatype", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("redefinedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("association", _244);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isComposite", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedElement", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("upper", new Long(-1));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("lower", new Integer(0));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__container", _519);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isReadOnly", new Boolean(false));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isOrdered", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isUnique", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("featuringClassifier", new java.lang.Object[] {_519});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("name", "parameter");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__metaClass", _725);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("__components", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("namespace", _519);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owningAssociation", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("type", _673);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("owner", _519);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("class", _519);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("details", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("default", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("qualifiedName", "core.abstractions.behavioralfeatures.BehavioralFeature.parameter");((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isDerivedUnion", new Boolean(true));((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("opposite", _82);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("isID", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("uri", null);((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("tag", new java.lang.Object[] {});((hub.sam.mof.reflection.ObjectImpl)object).putAttribute("ownedComment", new java.lang.Object[] {}); return object; }
|
11562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11562/de04478dee56227ec288b43e5ca731f9bbd84f7c/CMOF.java/buggy/SimpleMOF2/resources/repository/initial-src/cmof/CMOF.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
5003,
792,
18,
26606,
18,
921,
6455,
6334,
12,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
17639,
2828,
11933,
13,
288,
3639,
5003,
792,
18,
26606,
18,
921,
733,
273,
394,
5003,
792,
18,
1396,
2828,
24899,
23147,
16,
11933,
16,
446,
16,
315,
7670,
792,
18,
1396,
2828,
3113,
394,
514,
63,
7073,
6,
7670,
792,
18,
426,
5649,
429,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
7027,
1780,
1961,
18,
5002,
20458,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
266,
13314,
18,
426,
5649,
429,
1046,
3802,
3113,
315,
7670,
792,
18,
7604,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
16078,
18,
7604,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
995,
12565,
87,
18,
1046,
3802,
6,
22938,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
14422,
3113,
446,
1769,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
291,
21007,
3113,
394,
3411,
12,
5743,
10019,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
15657,
2344,
1396,
3113,
394,
2252,
18,
4936,
18,
921,
8526,
288,
67,
20,
22938,
12443,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
921,
2828,
13,
1612,
2934,
458,
1499,
2932,
266,
6907,
1042,
3113,
394,
2252,
18,
4936,
18,
921,
8526,
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,
760,
5003,
792,
18,
26606,
18,
921,
6455,
6334,
12,
14986,
18,
20353,
18,
81,
792,
18,
26606,
18,
17639,
2828,
11933,
13,
288,
3639,
5003,
792,
18,
26606,
18,
921,
733,
273,
394,
5003,
792,
18,
1396,
2828,
24899,
23147,
16,
11933,
16,
446,
16,
315,
7670,
792,
18,
1396,
2828,
3113,
394,
514,
63,
7073,
6,
7670,
792,
18,
426,
5649,
429,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
7027,
1780,
1961,
18,
5002,
20458,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
266,
13314,
18,
426,
5649,
429,
1046,
3802,
3113,
315,
7670,
792,
18,
7604,
1046,
3802,
3113,
315,
3644,
18,
378,
701,
4905,
18,
16078,
18,
7604,
2
] |
Transition t; for (Iterator ii=transitions.iterator(); ii.hasNext();) { t = (Transition) ii.next(); t.draw(g2);
|
Transition t; for (Iterator ii=transitions.iterator(); ii.hasNext();) { t = (Transition) ii.next(); t.draw(g2); } if (!processingTickEvent) processNextTickEvent();
|
public void render(int w, int h, Graphics2D g2) { if (!initialized) return; super.render(w,h,g2); root.draw(g2); Transition t; for (Iterator ii=transitions.iterator(); ii.hasNext();) { t = (Transition) ii.next(); t.draw(g2); } if (!processingTickEvent) processNextTickEvent(); }
|
7173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7173/5c1bd0ff5f4fc01072b7974ea19bb6b39d4f759c/Display.java/clean/qos/src/org/cougaar/core/qos/frame/visualizer/Display.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
12,
474,
341,
16,
509,
366,
16,
16830,
22,
40,
314,
22,
13,
288,
3639,
309,
16051,
13227,
13,
5411,
327,
31,
3639,
2240,
18,
5902,
12,
91,
16,
76,
16,
75,
22,
1769,
3639,
1365,
18,
9446,
12,
75,
22,
1769,
3639,
16515,
268,
31,
3639,
364,
261,
3198,
6072,
33,
22671,
18,
9838,
5621,
6072,
18,
5332,
2134,
5621,
13,
288,
6647,
268,
273,
261,
8850,
13,
6072,
18,
4285,
5621,
6647,
268,
18,
9446,
12,
75,
22,
1769,
3639,
289,
3639,
309,
16051,
10632,
6264,
1133,
13,
5411,
1207,
2134,
6264,
1133,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
12,
474,
341,
16,
509,
366,
16,
16830,
22,
40,
314,
22,
13,
288,
3639,
309,
16051,
13227,
13,
5411,
327,
31,
3639,
2240,
18,
5902,
12,
91,
16,
76,
16,
75,
22,
1769,
3639,
1365,
18,
9446,
12,
75,
22,
1769,
3639,
16515,
268,
31,
3639,
364,
261,
3198,
6072,
33,
22671,
18,
9838,
5621,
6072,
18,
5332,
2134,
5621,
13,
288,
6647,
268,
273,
261,
8850,
13,
6072,
18,
4285,
5621,
6647,
268,
18,
9446,
12,
75,
22,
1769,
3639,
289,
3639,
309,
16051,
10632,
6264,
1133,
13,
5411,
1207,
2134,
6264,
1133,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
finally { delete(myTempDirectory);
|
else { myState = SUCCESSFULLY_LOADED; return myBinaryContent != null ? myBinaryContent : myContent.toString().getBytes();
|
private synchronized byte[] loadFileBytes() { try { LOG.assertTrue(myState == LOADING, "state = " + String.valueOf(myState)); LOG.assertTrue(myTempDirectory != null); LOG.assertTrue(myTempDirectory.isDirectory()); File file = getFile(); if (!file.isFile()) { myState = FILE_NOT_FOUND; return new byte[0]; } else { myState = SUCCESSFULLY_LOADED; } if (myFileIsBinary) { return loadBinaryContent(file); } else { return loadTextContent(file); } } catch (IOException e) { LOG.error(e); return new byte[0]; } finally { delete(myTempDirectory); } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/f245ca8bc803771952c9f4d9f0c290f7b2f5a84b/GetFileContentOperation.java/clean/plugins/cvs2/source/com/intellij/cvsSupport2/cvsoperations/cvsContent/GetFileContentOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3852,
1160,
8526,
26953,
2160,
1435,
288,
565,
775,
288,
1377,
2018,
18,
11231,
5510,
12,
4811,
1119,
422,
24089,
1360,
16,
315,
2019,
273,
315,
397,
514,
18,
1132,
951,
12,
4811,
1119,
10019,
1377,
2018,
18,
11231,
5510,
12,
4811,
7185,
2853,
480,
446,
1769,
1377,
2018,
18,
11231,
5510,
12,
4811,
7185,
2853,
18,
291,
2853,
10663,
1377,
1387,
585,
273,
6034,
5621,
1377,
309,
16051,
768,
18,
291,
812,
10756,
288,
3639,
3399,
1119,
273,
7527,
67,
4400,
67,
9294,
31,
3639,
327,
394,
1160,
63,
20,
15533,
1377,
289,
1377,
469,
288,
3639,
3399,
1119,
273,
16561,
18111,
61,
67,
31408,
31,
1377,
289,
1377,
309,
261,
4811,
812,
2520,
5905,
13,
288,
3639,
327,
1262,
5905,
1350,
12,
768,
1769,
1377,
289,
1377,
469,
288,
3639,
327,
1262,
1528,
1350,
12,
768,
1769,
1377,
289,
565,
289,
565,
1044,
261,
14106,
425,
13,
288,
1377,
2018,
18,
1636,
12,
73,
1769,
1377,
327,
394,
1160,
63,
20,
15533,
565,
289,
565,
3095,
288,
1377,
1430,
12,
4811,
7185,
2853,
1769,
565,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3852,
1160,
8526,
26953,
2160,
1435,
288,
565,
775,
288,
1377,
2018,
18,
11231,
5510,
12,
4811,
1119,
422,
24089,
1360,
16,
315,
2019,
273,
315,
397,
514,
18,
1132,
951,
12,
4811,
1119,
10019,
1377,
2018,
18,
11231,
5510,
12,
4811,
7185,
2853,
480,
446,
1769,
1377,
2018,
18,
11231,
5510,
12,
4811,
7185,
2853,
18,
291,
2853,
10663,
1377,
1387,
585,
273,
6034,
5621,
1377,
309,
16051,
768,
18,
291,
812,
10756,
288,
3639,
3399,
1119,
273,
7527,
67,
4400,
67,
9294,
31,
3639,
327,
394,
1160,
63,
20,
15533,
1377,
289,
1377,
469,
288,
3639,
3399,
1119,
273,
16561,
18111,
61,
67,
31408,
31,
1377,
289,
1377,
309,
261,
4811,
812,
2520,
5905,
13,
2
] |
protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) {
|
protected final Class defineClass(String name, byte[] b, int off, int len, CodeSource cs) {
|
protected final Class defineClass( String name, byte[] b, int off, int len, CodeSource cs) { // FIXME: Need to cache ProtectionDomains according to 1.3 docs. if (cs != null) { ProtectionDomain protectionDomain = new ProtectionDomain(cs, getPermissions(cs)); return super.defineClass(name, b, off, len, protectionDomain); } else return super.defineClass(name, b, off, len); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e3f7218be7244f0de74b2230a33469c2bf32546b/SecureClassLoader.java/buggy/core/src/classpath/java/java/security/SecureClassLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
1659,
4426,
797,
12,
202,
202,
780,
508,
16,
202,
202,
7229,
8526,
324,
16,
202,
202,
474,
3397,
16,
202,
202,
474,
562,
16,
202,
202,
1085,
1830,
2873,
13,
288,
202,
202,
759,
9852,
30,
12324,
358,
1247,
1186,
9694,
15531,
4888,
358,
404,
18,
23,
3270,
18,
202,
202,
430,
261,
2143,
480,
446,
13,
288,
1082,
202,
16938,
3748,
17862,
3748,
273,
9506,
202,
2704,
1186,
9694,
3748,
12,
2143,
16,
25021,
12,
2143,
10019,
1082,
202,
2463,
2240,
18,
11255,
797,
12,
529,
16,
324,
16,
3397,
16,
562,
16,
17862,
3748,
1769,
202,
202,
97,
469,
1082,
202,
2463,
2240,
18,
11255,
797,
12,
529,
16,
324,
16,
3397,
16,
562,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
1659,
4426,
797,
12,
202,
202,
780,
508,
16,
202,
202,
7229,
8526,
324,
16,
202,
202,
474,
3397,
16,
202,
202,
474,
562,
16,
202,
202,
1085,
1830,
2873,
13,
288,
202,
202,
759,
9852,
30,
12324,
358,
1247,
1186,
9694,
15531,
4888,
358,
404,
18,
23,
3270,
18,
202,
202,
430,
261,
2143,
480,
446,
13,
288,
1082,
202,
16938,
3748,
17862,
3748,
273,
9506,
202,
2704,
1186,
9694,
3748,
12,
2143,
16,
25021,
12,
2143,
10019,
1082,
202,
2463,
2240,
18,
11255,
797,
12,
529,
16,
324,
16,
3397,
16,
562,
16,
17862,
3748,
1769,
202,
202,
97,
469,
1082,
202,
2463,
2240,
18,
11255,
797,
12,
529,
16,
324,
16,
3397,
2
] |
{ FormatInfo fi = FormatInfo.valueOf("45"); FormatInfo witness = new FormatInfo(); witness.setMin(45); assertEquals(witness, fi); }
|
{ FormatInfo fi = FormatInfo.valueOf("45"); FormatInfo witness = new FormatInfo(); witness.setMin(45); assertEquals(witness, fi); }
|
public void testBasic() { { FormatInfo fi = FormatInfo.valueOf("45"); FormatInfo witness = new FormatInfo(); witness.setMin(45); assertEquals(witness, fi); } { FormatInfo fi = FormatInfo.valueOf("4.5"); FormatInfo witness = new FormatInfo(); witness.setMin(4); witness.setMax(5); assertEquals(witness, fi); } }
|
47666 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47666/db1e638eac0842539158df58ff0840001d2bb23d/FormatInfoTest.java/clean/logback-core/src/test/java/ch/qos/logback/core/pattern/parser/FormatInfoTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8252,
1435,
288,
202,
202,
95,
1082,
202,
1630,
966,
7314,
273,
4077,
966,
18,
1132,
951,
2932,
7950,
8863,
1082,
202,
1630,
966,
15628,
273,
394,
4077,
966,
5621,
1082,
202,
91,
9746,
18,
542,
2930,
12,
7950,
1769,
1082,
202,
11231,
8867,
12,
91,
9746,
16,
7314,
1769,
202,
202,
97,
202,
202,
95,
1082,
202,
1630,
966,
7314,
273,
4077,
966,
18,
1132,
951,
2932,
24,
18,
25,
8863,
1082,
202,
1630,
966,
15628,
273,
394,
4077,
966,
5621,
1082,
202,
91,
9746,
18,
542,
2930,
12,
24,
1769,
1082,
202,
91,
9746,
18,
542,
2747,
12,
25,
1769,
1082,
202,
11231,
8867,
12,
91,
9746,
16,
7314,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8252,
1435,
288,
202,
202,
95,
1082,
202,
1630,
966,
7314,
273,
4077,
966,
18,
1132,
951,
2932,
7950,
8863,
1082,
202,
1630,
966,
15628,
273,
394,
4077,
966,
5621,
1082,
202,
91,
9746,
18,
542,
2930,
12,
7950,
1769,
1082,
202,
11231,
8867,
12,
91,
9746,
16,
7314,
1769,
202,
202,
97,
202,
202,
95,
1082,
202,
1630,
966,
7314,
273,
4077,
966,
18,
1132,
951,
2932,
24,
18,
25,
8863,
1082,
202,
1630,
966,
15628,
273,
394,
4077,
966,
5621,
1082,
202,
91,
9746,
18,
542,
2930,
12,
24,
1769,
1082,
202,
91,
9746,
18,
542,
2747,
12,
25,
1769,
1082,
202,
11231,
8867,
12,
91,
9746,
16,
7314,
1769,
202,
202,
2
] |
out.println("</BODY></HTML>");
|
private void handleResponse(WebdavRequest req, WebdavResponse resp, boolean outputBody) throws IOException { String path = req.getPathInfo(); Resource resource = findResource(path); fixCollectionPath(resource, path, req, resp); if (resource == null) { resp.sendError(WebdavResponse.SC_NOT_FOUND); } else if (resource instanceof SingleResource) { SingleResource src = (SingleResource) resource; resp.setContentType(src.getContentType()); resp.setContentLength(src.getContentLength()); if (outputBody) { InputStream in = src.getInputStream(); OutputStream out = resp.getOutputStream(); IOUtils.pipe(in, out); in.close(); out.close(); } } else if (resource instanceof CollectionResource) { // TODO: Generalise this - push it into the CollectionResource interface? CollectionResource crc = (CollectionResource) resource; String absURI = makeAbsoluteURI(req, resource).toString(); PrintStream out = new PrintStream(resp.getOutputStream()); out.println("<html><head><title>" + crc.getName() + "</title></head>"); out.println("<body>"); out.println("<h1>Contents of "" + crc.getName() + ""</h1>"); out.println("<hr/>"); if (crc.getParent() != null) out.println("<p><a href=\"" + absURI + "..\">..</a></p>"); Iterator i = crc.getChildren().iterator(); while (i.hasNext()) { Resource child = (Resource) i.next(); out.println("<p><a href=\"" + absURI + urlEncoder.encode(child.getName()) + "\">" + child.getName() + "</a></p>"); } out.println("</BODY></HTML>"); resp.setContentType("text/html"); //resp.setContentLength() } }
|
18466 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18466/6ec434144895f68b8f9eac06d3ed255f89f7834f/WebdavResourceServlet.java/buggy/src/java/org/randombits/webdav/resource/WebdavResourceServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
1064,
12,
4079,
20752,
691,
1111,
16,
2999,
20752,
1064,
1718,
16,
1250,
876,
2250,
13,
1216,
1860,
565,
288,
3639,
514,
589,
273,
1111,
18,
588,
743,
966,
5621,
3639,
2591,
1058,
273,
1104,
1420,
12,
803,
1769,
3639,
2917,
2532,
743,
12,
3146,
16,
589,
16,
1111,
16,
1718,
1769,
3639,
309,
261,
3146,
422,
446,
13,
3639,
288,
5411,
1718,
18,
4661,
668,
12,
4079,
20752,
1064,
18,
2312,
67,
4400,
67,
9294,
1769,
3639,
289,
3639,
469,
309,
261,
3146,
1276,
10326,
1420,
13,
3639,
288,
5411,
10326,
1420,
1705,
273,
261,
5281,
1420,
13,
1058,
31,
5411,
1718,
18,
542,
8046,
12,
4816,
18,
588,
8046,
10663,
5411,
1718,
18,
542,
1350,
1782,
12,
4816,
18,
588,
1350,
1782,
10663,
5411,
309,
261,
2844,
2250,
13,
5411,
288,
7734,
5037,
316,
273,
1705,
18,
588,
4348,
5621,
7734,
8962,
596,
273,
1718,
18,
588,
4632,
5621,
7734,
18044,
18,
14772,
12,
267,
16,
596,
1769,
7734,
316,
18,
4412,
5621,
7734,
596,
18,
4412,
5621,
5411,
289,
3639,
289,
3639,
469,
309,
261,
3146,
1276,
2200,
1420,
13,
3639,
288,
5411,
368,
2660,
30,
9544,
784,
333,
300,
1817,
518,
1368,
326,
2200,
1420,
1560,
35,
5411,
2200,
1420,
10619,
273,
261,
2532,
1420,
13,
1058,
31,
5411,
514,
2417,
3098,
273,
1221,
10368,
3098,
12,
3658,
16,
1058,
2934,
10492,
5621,
5411,
21677,
596,
273,
394,
21677,
12,
12243,
18,
588,
4632,
10663,
5411,
596,
18,
8222,
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,
1640,
1064,
12,
4079,
20752,
691,
1111,
16,
2999,
20752,
1064,
1718,
16,
1250,
876,
2250,
13,
1216,
1860,
565,
288,
3639,
514,
589,
273,
1111,
18,
588,
743,
966,
5621,
3639,
2591,
1058,
273,
1104,
1420,
12,
803,
1769,
3639,
2917,
2532,
743,
12,
3146,
16,
589,
16,
1111,
16,
1718,
1769,
3639,
309,
261,
3146,
422,
446,
13,
3639,
288,
5411,
1718,
18,
4661,
668,
12,
4079,
20752,
1064,
18,
2312,
67,
4400,
67,
9294,
1769,
3639,
289,
3639,
469,
309,
261,
3146,
1276,
10326,
1420,
13,
3639,
288,
5411,
10326,
1420,
1705,
273,
261,
5281,
1420,
13,
1058,
31,
5411,
1718,
18,
542,
8046,
12,
4816,
18,
588,
8046,
10663,
5411,
1718,
18,
2
] |
|
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); FillLayout layout = new FillLayout(); container.setLayout(layout); viewer = new TableViewer(container, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); viewer.setContentProvider(new RepositoryContentProvider()); viewer.setLabelProvider(new TaskRepositoryLabelProvider()); viewer.setInput(MylarTaskListPlugin.getRepositoryManager().getRepositoryConnectors()); viewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection selection = (IStructuredSelection) event.getSelection(); if (selection.getFirstElement() instanceof TaskRepository) { setSelectedNode(new CustomWizardNode((TaskRepository) selection.getFirstElement())); setPageComplete(true); } setPageComplete(false); } }); viewer.setSelection(new StructuredSelection(new Object[] { getSelectedRepository() })); viewer.addOpenListener(new IOpenListener() { public void open(OpenEvent event) { getContainer().showPage(getNextPage()); } }); viewer.getTable().showSelection(); viewer.getTable().setFocus(); // TaskRepository defaultRepository = MylarTaskListPlugin.getRepositoryManager().getDefaultRepository(// repositoryKind);// if (defaultRepository != null) {// viewer.setSelection(new StructuredSelection(defaultRepository));// } setControl(container); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/ffd8614f03549c5f82792554c23825c2c6c7b7c4/SelectRepositoryPage.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/SelectRepositoryPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
3511,
273,
394,
14192,
3744,
5621,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
25256,
273,
394,
3555,
18415,
12,
3782,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
1769,
202,
202,
25256,
18,
542,
1350,
2249,
12,
2704,
6281,
1350,
2249,
10663,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
3837,
3305,
2224,
2249,
10663,
202,
202,
25256,
18,
542,
1210,
12,
12062,
7901,
2174,
682,
3773,
18,
588,
3305,
1318,
7675,
588,
3305,
7487,
87,
10663,
202,
202,
25256,
18,
1289,
6233,
5033,
2223,
12,
2704,
467,
6233,
5033,
2223,
1435,
288,
1082,
202,
482,
918,
4421,
5033,
12,
6233,
27553,
871,
13,
288,
9506,
202,
45,
30733,
6233,
4421,
273,
261,
45,
30733,
6233,
13,
871,
18,
588,
6233,
5621,
9506,
202,
430,
261,
10705,
18,
588,
3759,
1046,
1435,
1276,
3837,
3305,
13,
288,
6862,
202,
542,
7416,
907,
12,
2704,
6082,
27130,
907,
12443,
2174,
3305,
13,
4421,
18,
588,
3759,
1046,
1435,
10019,
6862,
202,
542,
1964,
6322,
12,
3767,
1769,
9506,
202,
97,
9506,
202,
542,
1964,
6322,
12,
5743,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
25256,
18,
542,
6233,
12,
2704,
7362,
2862,
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,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
3511,
273,
394,
14192,
3744,
5621,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
25256,
273,
394,
3555,
18415,
12,
3782,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
348,
8588,
18,
58,
67,
2312,
14555,
1769,
202,
202,
25256,
18,
542,
1350,
2249,
12,
2704,
6281,
1350,
2249,
10663,
202,
202,
25256,
18,
542,
2224,
2249,
12,
2704,
3837,
3305,
2224,
2249,
10663,
202,
202,
25256,
18,
542,
1210,
12,
12062,
7901,
2174,
2
] |
||
private void doConnect() { try { if (channel == null) { // Before we create the JChannel, make sure UDP is working. checkUDP(); // Use the DOM element configuration if it exists. if (config.getBusConfigurationElement() != null) channel = new JChannel(config.getBusConfigurationElement()); else // Otherwise use the configuration resource name. channel = new JChannel(config.getBusConfiguration()); } channel.setOpt(Channel.VIEW, Boolean.TRUE); channel.setOpt(Channel.GET_STATE_EVENTS, Boolean.TRUE); if (config.getGridName() == null || config.getGridName().length() == 0) throw new GridException("No grid name. Please provide a grid name so the grid can federate."); // Before we connect, set up the listener. listener = new JGroupsListener(grid); dispatcher = new RpcDispatcher(channel, listener, new RpcHandler(grid)); channel.addChannelListener(listener); // Listens for connect/disconnect events. channel.connect(config.getGridName()); // Okay, connect the channel. if (log.isDebugEnabled()) log.debug("doConnect() : channel connected."); broadcastNodeStatus(); } // Re-throw GridExceptions catch (GridException e) { disconnect(); throw e; } // Wrap other exceptions. catch (ChannelException e) { disconnect(); throw new GridException(e); } // Log and wrap unexpected exceptions. catch (Exception e) { disconnect(); log.error("Unexpected exception: " + e, e); throw new GridException(e); } }
|
11642 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11642/ac35cc7c8079dc9df5d317718b24447b42881ccc/JGroupsBus.java/buggy/trunk/jegrid/src/org/jegrid/jgroups/JGroupsBus.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
5215,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
309,
261,
4327,
422,
446,
13,
5411,
288,
7734,
368,
11672,
732,
752,
326,
804,
2909,
16,
1221,
3071,
16230,
353,
5960,
18,
7734,
866,
20352,
5621,
7734,
368,
2672,
326,
4703,
930,
1664,
309,
518,
1704,
18,
7734,
309,
261,
1425,
18,
588,
7086,
1750,
1046,
1435,
480,
446,
13,
10792,
1904,
273,
394,
804,
2909,
12,
1425,
18,
588,
7086,
1750,
1046,
10663,
7734,
469,
368,
5272,
999,
326,
1664,
1058,
508,
18,
10792,
1904,
273,
394,
804,
2909,
12,
1425,
18,
588,
7086,
1750,
10663,
5411,
289,
5411,
1904,
18,
542,
6179,
12,
2909,
18,
12145,
16,
3411,
18,
18724,
1769,
5411,
1904,
18,
542,
6179,
12,
2909,
18,
3264,
67,
7998,
67,
29221,
16,
3411,
18,
18724,
1769,
5411,
309,
261,
1425,
18,
588,
6313,
461,
1435,
422,
446,
747,
642,
18,
588,
6313,
461,
7675,
2469,
1435,
422,
374,
13,
7734,
604,
394,
7145,
503,
2932,
2279,
3068,
508,
18,
225,
7801,
5615,
279,
3068,
508,
1427,
326,
3068,
848,
22572,
12600,
1199,
1769,
5411,
368,
11672,
732,
3077,
16,
444,
731,
326,
2991,
18,
5411,
2991,
273,
394,
804,
3621,
2223,
12,
5222,
1769,
5411,
7393,
273,
394,
18564,
6681,
12,
4327,
16,
2991,
16,
394,
18564,
1503,
12,
5222,
10019,
5411,
1904,
18,
1289,
2909,
2223,
12,
12757,
1769,
4202,
368,
987,
773,
364,
3077,
19,
20177,
2641,
18,
5411,
1904,
18,
3612,
12,
1425,
18,
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,
377,
3238,
918,
741,
5215,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
309,
261,
4327,
422,
446,
13,
5411,
288,
7734,
368,
11672,
732,
752,
326,
804,
2909,
16,
1221,
3071,
16230,
353,
5960,
18,
7734,
866,
20352,
5621,
7734,
368,
2672,
326,
4703,
930,
1664,
309,
518,
1704,
18,
7734,
309,
261,
1425,
18,
588,
7086,
1750,
1046,
1435,
480,
446,
13,
10792,
1904,
273,
394,
804,
2909,
12,
1425,
18,
588,
7086,
1750,
1046,
10663,
7734,
469,
368,
5272,
999,
326,
1664,
1058,
508,
18,
10792,
1904,
273,
394,
804,
2909,
12,
1425,
18,
588,
7086,
1750,
10663,
5411,
289,
5411,
1904,
18,
542,
6179,
12,
2909,
18,
12145,
16,
3411,
18,
18724,
1769,
5411,
1904,
2
] |
||
} while (expectedMsgAck != null && curTime - startTime < timeout &&
|
} while (curTime - startTime < timeout &&
|
public synchronized boolean sendMessage(byte[] msg, byte[] expectedMsgAck, long timeout) throws IOException, PortInUseException { long startTime = System.currentTimeMillis(), curTime; // get the dongle to communicate and remember the ID it reported back (switches implicitly to interactive mode) myRelateId = getDongleAttention(timeout) ; if (myRelateId == -1) return false; // bad hack: this is for hostinfo // FIXME TODO // no no no no this is bad bad bad if (expectedMsgAck != null) expectedMsgAck[0] = (byte) myRelateId; do { //log("Sending message to dongle" + (expectedMsgAck != null ? " and waiting for ack" : "")); sendToDongle(msg); curTime = System.currentTimeMillis(); } while (expectedMsgAck != null && curTime - startTime < timeout && // if there is some acknowledge expected, try to read it from the dongle // the timeout here is just a heuristic receiveFromDongle(expectedMsgAck.length, expectedMsgAck, 100*expectedMsgAck.length) == null); return curTime - startTime < timeout; }
|
14316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14316/28506b6b5f0c822a99b548c6b4de366517d9d7ac/SerialConnector.java/clean/src/java/RelateAuthentication/src/uk/ac/lancs/relate/SerialConnector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
1250,
15399,
12,
7229,
8526,
1234,
16,
1160,
8526,
2665,
3332,
11931,
16,
1525,
2021,
13,
1216,
1860,
16,
6008,
15435,
503,
288,
202,
202,
5748,
8657,
273,
2332,
18,
2972,
28512,
9334,
662,
950,
31,
202,
202,
759,
336,
326,
302,
932,
298,
358,
15541,
471,
11586,
326,
1599,
518,
14010,
1473,
261,
9610,
281,
24682,
358,
12625,
1965,
13,
202,
202,
4811,
1971,
340,
548,
273,
2343,
932,
298,
3075,
5054,
12,
4538,
13,
274,
202,
202,
430,
261,
4811,
1971,
340,
548,
422,
300,
21,
13,
1082,
202,
2463,
629,
31,
202,
202,
759,
5570,
11769,
30,
333,
353,
364,
1479,
1376,
202,
202,
759,
9852,
2660,
202,
202,
759,
1158,
1158,
1158,
1158,
333,
353,
5570,
5570,
5570,
202,
202,
430,
261,
3825,
3332,
11931,
480,
446,
13,
1082,
202,
3825,
3332,
11931,
63,
20,
65,
273,
261,
7229,
13,
3399,
1971,
340,
548,
31,
9506,
202,
2896,
288,
1082,
202,
759,
1330,
2932,
16322,
883,
358,
302,
932,
298,
6,
397,
261,
3825,
3332,
11931,
480,
446,
692,
315,
471,
7336,
364,
8479,
6,
294,
1408,
10019,
1082,
202,
4661,
774,
40,
932,
298,
12,
3576,
1769,
1082,
202,
1397,
950,
273,
2332,
18,
2972,
28512,
5621,
202,
202,
97,
1323,
261,
3825,
3332,
11931,
480,
446,
597,
662,
950,
300,
8657,
411,
2021,
597,
9506,
202,
759,
309,
1915,
353,
2690,
28922,
2665,
16,
775,
358,
855,
518,
628,
326,
302,
932,
298,
9506,
202,
759,
326,
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,
3852,
1250,
15399,
12,
7229,
8526,
1234,
16,
1160,
8526,
2665,
3332,
11931,
16,
1525,
2021,
13,
1216,
1860,
16,
6008,
15435,
503,
288,
202,
202,
5748,
8657,
273,
2332,
18,
2972,
28512,
9334,
662,
950,
31,
202,
202,
759,
336,
326,
302,
932,
298,
358,
15541,
471,
11586,
326,
1599,
518,
14010,
1473,
261,
9610,
281,
24682,
358,
12625,
1965,
13,
202,
202,
4811,
1971,
340,
548,
273,
2343,
932,
298,
3075,
5054,
12,
4538,
13,
274,
202,
202,
430,
261,
4811,
1971,
340,
548,
422,
300,
21,
13,
1082,
202,
2463,
629,
31,
202,
202,
759,
5570,
11769,
30,
333,
353,
364,
1479,
1376,
202,
202,
759,
9852,
2660,
202,
202,
759,
1158,
1158,
2
] |
if(bracketHighlight && currentLineIndex == model.getBracketLine()) paintBracketHighlight(model,gfx,y);
|
if(bracketHighlight && line == textArea.getBracketLine()) paintBracketHighlight(gfx,line,y); if(line == textArea.getCaretLine()) paintCaret(gfx,line,y);
|
protected void paintHighlight(TextAreaModel model, Graphics gfx, int y) { /* Clear the line's bounding rectangle */ FontMetrics fm = getFontMetrics(); int gap = fm.getMaxDescent() + fm.getLeading(); gfx.setColor(getBackground()); gfx.fillRect(0,y + gap,offImg.getWidth(this),fm.getHeight()); if(currentLineIndex >= model.getSelectionStartLine() && currentLineIndex <= model.getSelectionEndLine()) paintLineHighlight(model,gfx,y); if(bracketHighlight && currentLineIndex == model.getBracketLine()) paintBracketHighlight(model,gfx,y); }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/8eb566ba98d9e7239e71f2f25c300f104051ff61/TextAreaPainter.java/clean/org/gjt/sp/jedit/textarea/TextAreaPainter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
12574,
16205,
12,
1528,
5484,
1488,
938,
16,
16830,
30940,
16,
509,
677,
13,
202,
95,
202,
202,
20308,
10121,
326,
980,
1807,
7552,
11845,
1195,
202,
202,
5711,
5653,
10940,
273,
18776,
5653,
5621,
202,
202,
474,
9300,
273,
10940,
18,
588,
2747,
4217,
319,
1435,
397,
10940,
18,
588,
19112,
5621,
202,
202,
75,
19595,
18,
542,
2957,
12,
588,
8199,
10663,
202,
202,
75,
19595,
18,
5935,
6120,
12,
20,
16,
93,
397,
9300,
16,
3674,
12804,
18,
588,
2384,
12,
2211,
3631,
25089,
18,
588,
2686,
10663,
202,
202,
430,
12,
2972,
1670,
1016,
1545,
938,
18,
588,
6233,
1685,
1670,
1435,
1082,
202,
10,
10,
22325,
1016,
1648,
938,
18,
588,
6233,
1638,
1670,
10756,
1082,
202,
84,
1598,
1670,
16205,
12,
2284,
16,
75,
19595,
16,
93,
1769,
202,
202,
430,
12,
21025,
16205,
597,
22325,
1016,
422,
938,
18,
588,
11450,
1670,
10756,
1082,
202,
84,
1598,
11450,
16205,
12,
2284,
16,
75,
19595,
16,
93,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
12574,
16205,
12,
1528,
5484,
1488,
938,
16,
16830,
30940,
16,
509,
677,
13,
202,
95,
202,
202,
20308,
10121,
326,
980,
1807,
7552,
11845,
1195,
202,
202,
5711,
5653,
10940,
273,
18776,
5653,
5621,
202,
202,
474,
9300,
273,
10940,
18,
588,
2747,
4217,
319,
1435,
397,
10940,
18,
588,
19112,
5621,
202,
202,
75,
19595,
18,
542,
2957,
12,
588,
8199,
10663,
202,
202,
75,
19595,
18,
5935,
6120,
12,
20,
16,
93,
397,
9300,
16,
3674,
12804,
18,
588,
2384,
12,
2211,
3631,
25089,
18,
588,
2686,
10663,
202,
202,
430,
12,
2972,
1670,
1016,
1545,
938,
18,
588,
6233,
1685,
1670,
1435,
1082,
202,
10,
10,
22325,
1016,
1648,
938,
18,
2
] |
if (isCast && haveMultipleCast.contains(sourceLineAnnotation)
|
if (false && isCast && haveMultipleCast.contains(sourceLineAnnotation)
|
private void analyzeMethod(ClassContext classContext, Method method) throws CFGBuilderException, DataflowAnalysisException { if (isSynthetic(method) || !prescreen(classContext, method)) return; BugAccumulator accumulator = new BugAccumulator(bugReporter); CFG cfg = classContext.getCFG(method); TypeDataflow typeDataflow = classContext.getTypeDataflow(method); IsNullValueDataflow isNullDataflow = classContext.getIsNullValueDataflow(method); Set<ValueNumber> paramValueNumberSet = null; ValueNumberDataflow vnaDataflow = null; ConstantPoolGen cpg = classContext.getConstantPoolGen(); MethodGen methodGen = classContext.getMethodGen(method); if (methodGen == null) return; String methodName = methodGen.getClassName() + "." + methodGen.getName(); String sourceFile = classContext.getJavaClass().getSourceFileName(); if (DEBUG) { System.out.println("Checking " + methodName); } Set<SourceLineAnnotation> haveInstanceOf = new HashSet<SourceLineAnnotation>(); Set<SourceLineAnnotation> haveCast = new HashSet<SourceLineAnnotation>(); Set<SourceLineAnnotation> haveMultipleInstanceOf = new HashSet<SourceLineAnnotation>(); Set<SourceLineAnnotation> haveMultipleCast = new HashSet<SourceLineAnnotation>(); for (Iterator<Location> i = cfg.locationIterator(); i.hasNext();) { Location location = i.next(); InstructionHandle handle = location.getHandle(); Instruction ins = handle.getInstruction(); if (!(ins instanceof CHECKCAST) && !(ins instanceof INSTANCEOF)) continue; SourceLineAnnotation sourceLineAnnotation = SourceLineAnnotation .fromVisitedInstruction(classContext, methodGen, sourceFile, handle); if (ins instanceof CHECKCAST) { if (!haveCast.add(sourceLineAnnotation)) haveMultipleCast.add(sourceLineAnnotation); } else { if (!haveInstanceOf.add(sourceLineAnnotation)) haveMultipleInstanceOf.add(sourceLineAnnotation); } } for (Iterator<Location> i = cfg.locationIterator(); i.hasNext();) { Location location = i.next(); InstructionHandle handle = location.getHandle(); int pc = handle.getPosition(); Instruction ins = handle.getInstruction(); if (!(ins instanceof CHECKCAST) && !(ins instanceof INSTANCEOF)) continue; if (handle.getNext() == null) continue; Instruction nextIns = handle.getNext().getInstruction(); boolean isCast = ins instanceof CHECKCAST; String kind = isCast ? "checkedCast" : "instanceof"; int occurrences = cfg.getLocationsContainingInstructionWithOffset( pc).size(); boolean split = occurrences > 1; IsNullValueFrame nullFrame = isNullDataflow.getFactAtLocation(location); IsNullValue operandNullness = nullFrame.getTopValue(); if (DEBUG) { System.out .println(kind + " at pc: " + pc + " in " + methodName); System.out.println(" occurrences: " + occurrences); System.out.println("XXX: " + operandNullness); } if (split && !isCast) { // don't report this case; it might be infeasible due to inlining continue; } TypeFrame frame = typeDataflow.getFactAtLocation(location); if (!frame.isValid()) { // This basic block is probably dead continue; } Type operandType = frame.getTopValue(); if (operandType.equals(TopType.instance())) { // unreachable continue; } boolean operandTypeIsExact = frame.isExact(frame.getStackLocation(0)); Type castType = ((TypedInstruction) ins).getType(cpg); if (!(castType instanceof ReferenceType)) { // This shouldn't happen either continue; } String castSig = castType.getSignature(); if (operandType.equals(NullType.instance()) || operandNullness.isDefinitelyNull()) { SourceLineAnnotation sourceLineAnnotation = SourceLineAnnotation .fromVisitedInstruction(classContext, methodGen, sourceFile, handle); String castName = castSig.substring(1, castSig.length() - 1) .replace('/', '.'); if (!isCast) accumulator.accumulateBug(new BugInstance(this, "NP_NULL_INSTANCEOF", NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addClass(castName), sourceLineAnnotation); continue; } if (!(operandType instanceof ReferenceType)) { // Shouldn't happen - illegal bytecode continue; } ReferenceType refType = (ReferenceType) operandType; if (refType.equals(castType)) { // System.out.println("self-cast to " + castType.getSignature()); continue; } String refSig = refType.getSignature(); String castSig2 = castSig; String refSig2 = refSig; while (castSig2.charAt(0) == '[' && refSig2.charAt(0) == '[') { castSig2 = castSig2.substring(1); refSig2 = refSig2.substring(1); } SourceLineAnnotation sourceLineAnnotation = SourceLineAnnotation .fromVisitedInstruction(classContext, methodGen, sourceFile, handle); if (refSig2.charAt(0) != 'L' || castSig2.charAt(0) != 'L') { if ( castSig2.charAt(0) == '[' && (refSig2.equals("Ljava/io/Serializable;") || refSig2.equals("Ljava/lang/Object;") || refSig2.equals("Ljava/lang/Cloneable;"))) continue; bugReporter.reportBug( new BugInstance(this, "BC_IMPOSSIBLE_CAST_PRIMITIVE_ARRAY", HIGH_PRIORITY ) .addClassAndMethod(methodGen, sourceFile) .addSourceLine(sourceLineAnnotation)); continue; } if (refSig2.equals("Ljava/lang/Object;") &!operandTypeIsExact) { continue; } if (isCast && haveMultipleCast.contains(sourceLineAnnotation) || !isCast && haveMultipleInstanceOf.contains(sourceLineAnnotation)) { // skip; might be due to JSR inlining continue; } String castName = castSig2.substring(1, castSig2.length() - 1) .replace('/', '.'); String refName = refSig2.substring(1, refSig2.length() - 1) .replace('/', '.'); if (vnaDataflow == null) vnaDataflow = classContext .getValueNumberDataflow(method); ValueNumberFrame vFrame = vnaDataflow.getFactAtLocation(location); if (paramValueNumberSet == null) paramValueNumberSet = getParameterValueNumbers(classContext, method, cfg); boolean isParameter = paramValueNumberSet.contains(vFrame .getTopValue()); try { JavaClass castJavaClass = Repository.lookupClass(castName); JavaClass refJavaClass = Repository.lookupClass(refName); boolean upcast = Repository.instanceOf(refJavaClass, castJavaClass); if (upcast) { if (!isCast) accumulator.accumulateBug(new BugInstance(this, "BC_VACUOUS_INSTANCEOF", NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addClass(refName.replace('/', '.')) .addClass(castName.replace('/', '.')) ,sourceLineAnnotation); } else { boolean downcast = Repository.instanceOf(castJavaClass, refJavaClass); if (refName.equals("java.lang.Object") &!operandTypeIsExact) continue; double rank = 0.0; boolean castToConcreteCollection = concreteCollectionClasses.contains(castName) && abstractCollectionClasses.contains(refName); boolean castToAbstractCollection = abstractCollectionClasses.contains(castName) && veryAbstractCollectionClasses.contains(refName); if (!operandTypeIsExact) { rank = DeepSubtypeAnalysis.deepInstanceOf(refJavaClass, castJavaClass); if (castToConcreteCollection && rank > 0.6) rank = (rank + 0.6) /2; else if (castToAbstractCollection && rank > 0.3) rank = (rank + 0.3) /2; } if (false) System.out.println("Rank:\t" + rank + "\t" + refName + "\t" + castName); boolean completeInformation = (!castJavaClass.isInterface() && !refJavaClass .isInterface()) || refJavaClass.isFinal() || castJavaClass.isFinal(); if (DEBUG) { System.out.println("cast from " + refName + " to " + castName); System.out.println(" is downcast: " + downcast); System.out.println(" operand type is exact: " + operandTypeIsExact); System.out.println(" complete information: " + completeInformation); System.out.println(" isParameter: " + vFrame.getTopValue()); System.out.println(" score: " + rank); } if (!downcast && completeInformation || operandTypeIsExact) bugReporter.reportBug(new BugInstance(this, isCast ? "BC_IMPOSSIBLE_CAST" : "BC_IMPOSSIBLE_INSTANCEOF", isCast ? HIGH_PRIORITY : NORMAL_PRIORITY) .addClassAndMethod(methodGen, sourceFile) .addClass(refName.replace('/', '.')) .addClass(castName.replace('/', '.')) .addSourceLine(sourceLineAnnotation)); else if (isCast && rank < 0.9) { int priority = NORMAL_PRIORITY; if (rank > 0.75) priority += 2; else if (rank > 0.5) priority += 1; else if (rank > 0.25) priority += 0; else priority--; if (DEBUG) System.out.println(" priority a: " + priority); if (methodGen.getClassName().startsWith(refName) || methodGen.getClassName().startsWith(castName)) priority += 1; if (DEBUG) System.out.println(" priority b: " + priority); if (castJavaClass.isInterface() && !castToAbstractCollection) priority++; if (DEBUG) System.out.println(" priority c: " + priority); if (castToConcreteCollection && veryAbstractCollectionClasses.contains(refName)) priority--; if (DEBUG) System.out.println(" priority d: " + priority); if (priority <= LOW_PRIORITY && !castToAbstractCollection && !castToConcreteCollection && (refJavaClass.isInterface() || refJavaClass .isAbstract())) priority++; if (DEBUG) System.out.println(" priority e: " + priority); if (DEBUG) System.out.println(" ref name: " + refName); if (methodGen.getName().equals("compareTo")) priority++; else if (methodGen.isPublic() && isParameter) priority--; if (DEBUG) System.out.println(" priority h: " + priority); if (priority < HIGH_PRIORITY) priority = HIGH_PRIORITY; if (priority <= LOW_PRIORITY) { String bug = "BC_UNCONFIRMED_CAST"; if (castToConcreteCollection) bug = "BC_BAD_CAST_TO_CONCRETE_COLLECTION"; else if (castToAbstractCollection) bug = "BC_BAD_CAST_TO_ABSTRACT_COLLECTION"; accumulator.accumulateBug(new BugInstance(this, bug, priority) .addClassAndMethod(methodGen, sourceFile) .addClass(refName.replace('/', '.')) .addClass(castName.replace('/', '.')), sourceLineAnnotation ); } } } } catch (ClassNotFoundException e) { } } accumulator.reportAccumulatedBugs(); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/c024b99ce4984d6d2279b9219c987abc2e6c7304/FindBadCast2.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindBadCast2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
12375,
1305,
12,
797,
1042,
667,
1042,
16,
2985,
707,
13,
1082,
202,
15069,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
202,
202,
430,
261,
291,
10503,
16466,
12,
2039,
13,
747,
401,
12202,
8780,
12,
1106,
1042,
16,
707,
3719,
1082,
202,
2463,
31,
202,
202,
19865,
27361,
13514,
273,
394,
16907,
27361,
12,
925,
13289,
1769,
25083,
202,
19727,
2776,
273,
667,
1042,
18,
588,
19727,
12,
2039,
1769,
202,
202,
559,
751,
2426,
618,
751,
2426,
273,
667,
1042,
18,
588,
559,
751,
2426,
12,
2039,
1769,
202,
202,
2520,
2041,
620,
751,
2426,
7612,
751,
2426,
273,
667,
1042,
18,
588,
2520,
2041,
620,
751,
2426,
12,
2039,
1769,
202,
202,
694,
32,
620,
1854,
34,
20250,
1854,
694,
273,
446,
31,
9506,
202,
620,
1854,
751,
2426,
331,
6582,
751,
2426,
273,
446,
31,
202,
202,
6902,
2864,
7642,
3283,
75,
273,
667,
1042,
18,
588,
6902,
2864,
7642,
5621,
202,
202,
1305,
7642,
707,
7642,
273,
667,
1042,
18,
588,
1305,
7642,
12,
2039,
1769,
202,
202,
430,
261,
2039,
7642,
422,
446,
13,
327,
31,
202,
202,
780,
4918,
273,
707,
7642,
18,
588,
3834,
1435,
397,
4585,
9506,
202,
15,
707,
7642,
18,
17994,
5621,
202,
202,
780,
16338,
273,
667,
1042,
18,
588,
5852,
797,
7675,
588,
1830,
4771,
5621,
202,
202,
430,
261,
9394,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
14294,
315,
397,
4918,
1769,
202,
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,
1152,
918,
12375,
1305,
12,
797,
1042,
667,
1042,
16,
2985,
707,
13,
1082,
202,
15069,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
202,
202,
430,
261,
291,
10503,
16466,
12,
2039,
13,
747,
401,
12202,
8780,
12,
1106,
1042,
16,
707,
3719,
1082,
202,
2463,
31,
202,
202,
19865,
27361,
13514,
273,
394,
16907,
27361,
12,
925,
13289,
1769,
25083,
202,
19727,
2776,
273,
667,
1042,
18,
588,
19727,
12,
2039,
1769,
202,
202,
559,
751,
2426,
618,
751,
2426,
273,
667,
1042,
18,
588,
559,
751,
2426,
12,
2039,
1769,
202,
202,
2520,
2041,
620,
751,
2426,
7612,
751,
2426,
273,
667,
1042,
18,
588,
2520,
2041,
620,
751,
2426,
12,
2039,
1769,
2
] |
reporter = new DefaultArtifactReporter();
|
reporter = (ArtifactReporter) lookup( ArtifactReporter.ROLE );
|
protected void setUp() throws Exception { super.setUp(); reporter = new DefaultArtifactReporter(); ArtifactFactory artifactFactory = (ArtifactFactory) lookup( ArtifactFactory.ROLE ); artifact = artifactFactory.createBuildArtifact( "groupId", "artifactId", "1.0-alpha-1", "type" ); processor = new MockArtifactReportProcessor(); Versioning versioning = new Versioning(); versioning.addVersion( "1.0-alpha-1" ); versioning.setLastUpdated( "20050611.202020" ); model = new Model(); }
|
28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/63c171e2eb136117115bc2f964d92c8a30480d6e/ArtifactReporterTest.java/buggy/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/ArtifactReporterTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
3639,
1216,
1185,
565,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
11528,
273,
261,
7581,
13289,
13,
3689,
12,
14022,
13289,
18,
16256,
11272,
3639,
14022,
1733,
6462,
1733,
273,
261,
7581,
1733,
13,
3689,
12,
14022,
1733,
18,
16256,
11272,
3639,
6462,
273,
6462,
1733,
18,
2640,
3116,
7581,
12,
315,
27547,
3113,
315,
17706,
548,
3113,
315,
21,
18,
20,
17,
5429,
17,
21,
3113,
315,
723,
6,
11272,
3639,
6659,
273,
394,
7867,
7581,
4820,
5164,
5621,
3639,
4049,
310,
1177,
310,
273,
394,
4049,
310,
5621,
3639,
1177,
310,
18,
1289,
1444,
12,
315,
21,
18,
20,
17,
5429,
17,
21,
6,
11272,
3639,
1177,
310,
18,
542,
3024,
7381,
12,
315,
6976,
3361,
26,
2499,
18,
18212,
3103,
20,
6,
11272,
3639,
938,
273,
394,
3164,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
24292,
1435,
3639,
1216,
1185,
565,
288,
3639,
2240,
18,
542,
1211,
5621,
3639,
11528,
273,
261,
7581,
13289,
13,
3689,
12,
14022,
13289,
18,
16256,
11272,
3639,
14022,
1733,
6462,
1733,
273,
261,
7581,
1733,
13,
3689,
12,
14022,
1733,
18,
16256,
11272,
3639,
6462,
273,
6462,
1733,
18,
2640,
3116,
7581,
12,
315,
27547,
3113,
315,
17706,
548,
3113,
315,
21,
18,
20,
17,
5429,
17,
21,
3113,
315,
723,
6,
11272,
3639,
6659,
273,
394,
7867,
7581,
4820,
5164,
5621,
3639,
4049,
310,
1177,
310,
273,
394,
4049,
310,
5621,
3639,
1177,
310,
18,
1289,
1444,
12,
315,
21,
18,
20,
17,
5429,
17,
21,
6,
11272,
3639,
1177,
310,
18,
542,
3024,
2
] |
source.append((char)ts.LC);
|
sourceAdd((char)ts.LC);
|
private Object primaryExpr(TokenStream ts, Source source) throws IOException, JavaScriptException { int tt; Object pn; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case TokenStream.FUNCTION: return function(ts, source, true); case TokenStream.LB: { source.append((char)ts.LB); pn = nf.createLeaf(ts.ARRAYLIT); ts.flags |= ts.TSF_REGEXP; boolean matched = ts.matchToken(ts.RB); ts.flags &= ~ts.TSF_REGEXP; if (!matched) { boolean first = true; do { ts.flags |= ts.TSF_REGEXP; tt = ts.peekToken(); ts.flags &= ~ts.TSF_REGEXP; if (!first) source.append((char)ts.COMMA); else first = false; if (tt == ts.RB) { // to fix [,,,].length behavior... break; } if (tt == ts.COMMA) { nf.addChildToBack(pn, nf.createLeaf(ts.PRIMARY, ts.UNDEFINED)); } else { nf.addChildToBack(pn, assignExpr(ts, source, false)); } } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RB, "msg.no.bracket.arg"); } source.append((char)ts.RB); return nf.createArrayLiteral(pn); } case TokenStream.LC: { pn = nf.createLeaf(ts.OBJLIT); source.append((char)ts.LC); if (!ts.matchToken(ts.RC)) { boolean first = true; commaloop: do { Object property; if (!first) source.append((char)ts.COMMA); else first = false; tt = ts.getToken(); switch(tt) { // map NAMEs to STRINGs in object literal context. case TokenStream.NAME: case TokenStream.STRING: String s = ts.getString(); source.addString(ts.NAME, s); property = nf.createString(ts.getString()); break; case TokenStream.NUMBER: double n = ts.getNumber(); source.addNumber(n); property = nf.createNumber(n); break; case TokenStream.RC: // trailing comma is OK. ts.ungetToken(tt); break commaloop; default: reportError(ts, "msg.bad.prop"); break commaloop; } mustMatchToken(ts, ts.COLON, "msg.no.colon.prop"); // OBJLIT is used as ':' in object literal for // decompilation to solve spacing ambiguity. source.append((char)ts.OBJLIT); nf.addChildToBack(pn, property); nf.addChildToBack(pn, assignExpr(ts, source, false)); } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RC, "msg.no.brace.prop"); } source.append((char)ts.RC); return nf.createObjectLiteral(pn); } case TokenStream.LP: /* Brendan's IR-jsparse.c makes a new node tagged with * TOK_LP here... I'm not sure I understand why. Isn't * the grouping already implicit in the structure of the * parse tree? also TOK_LP is already overloaded (I * think) in the C IR as 'function call.' */ source.append((char)ts.LP); pn = expr(ts, source, false); source.append((char)ts.RP); mustMatchToken(ts, ts.RP, "msg.no.paren"); return pn; case TokenStream.NAME: String name = ts.getString(); source.addString(ts.NAME, name); return nf.createName(name); case TokenStream.NUMBER: double n = ts.getNumber(); source.addNumber(n); return nf.createNumber(n); case TokenStream.STRING: String s = ts.getString(); source.addString(ts.STRING, s); return nf.createString(s); case TokenStream.OBJECT: { String flags = ts.regExpFlags; ts.regExpFlags = null; String re = ts.getString(); source.addString(ts.OBJECT, '/' + re + '/' + flags); return nf.createRegExp(re, flags); } case TokenStream.PRIMARY: source.append((char)ts.PRIMARY); source.append((char)ts.getOp()); return nf.createLeaf(ts.PRIMARY, ts.getOp()); case TokenStream.RESERVED: reportError(ts, "msg.reserved.id"); break; case TokenStream.ERROR: /* the scanner or one of its subroutines reported the error. */ break; default: reportError(ts, "msg.syntax"); break; } return null; // should never reach here }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/3d2e81a014b22cf4d1eb8921bd4229c2ca7ff017/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3354,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3155,
1228,
18,
7788,
30,
5411,
327,
445,
12,
3428,
16,
1084,
16,
638,
1769,
3639,
648,
3155,
1228,
18,
12995,
30,
5411,
288,
7734,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
12995,
1769,
7734,
11059,
273,
13958,
18,
2640,
9858,
12,
3428,
18,
8552,
15716,
1769,
7734,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
7734,
1250,
4847,
273,
3742,
18,
1916,
1345,
12,
3428,
18,
19437,
1769,
7734,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
7734,
309,
16051,
11073,
13,
288,
10792,
1250,
1122,
273,
638,
31,
10792,
741,
288,
13491,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
13491,
3574,
273,
3742,
18,
347,
3839,
1345,
5621,
13491,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
13491,
309,
16051,
3645,
13,
18701,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
4208,
5535,
1769,
13491,
469,
18701,
1122,
273,
629,
31,
13491,
309,
261,
748,
422,
3742,
18,
19437,
13,
288,
225,
368,
358,
2917,
306,
16408,
16,
8009,
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,
1033,
3354,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
1033,
11059,
31,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3155,
1228,
18,
7788,
30,
5411,
327,
445,
12,
3428,
16,
1084,
16,
638,
1769,
3639,
648,
3155,
1228,
18,
12995,
30,
5411,
288,
7734,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
12995,
1769,
7734,
11059,
273,
13958,
18,
2640,
9858,
12,
3428,
18,
8552,
15716,
1769,
7734,
2
] |
public boolean hasNext() { return edge != null; }
|
public boolean hasNext() { return edge != null; }
|
public boolean hasNext() { return edge != null; }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/AbstractGraph.java/clean/findbugs/src/java/edu/umd/cs/findbugs/graph/AbstractGraph.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1250,
4564,
1435,
288,
327,
3591,
480,
446,
31,
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,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
4564,
1435,
288,
327,
3591,
480,
446,
31,
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,
-100,
-100,
-100,
-100
] |
String declaringClassName = null; Type[] argTypes = new Type[0]; MethodTuple methodTuple = system.getAspectManager().getMethodTuple(declaringClass, joinPointHash); Method targetMethod = methodTuple.getOriginalMethod(); declaringClassName = targetMethod.getDeclaringClass().getName().replace('.', '/'); String methodName = targetMethod.getName(); String methodDescriptor = Type.getMethodDescriptor(targetMethod); signature = new MethodSignatureImpl(methodTuple.getDeclaringClass(), methodTuple); argTypes = Type.getArgumentTypes(targetMethod); if (Modifier.isPublic(targetMethod.getModifiers())) { invokePublicMethod( targetMethod, cv, joinPointType, argTypes, className, declaringClassName, methodName, methodDescriptor
|
signature = invokeMethodJoinPoint(system, declaringClass, joinPointHash, cv, joinPointType, className); break; case JoinPointType.CONSTRUCTOR_CALL: ConstructorTuple constructorTuple = system.getAspectManager().getConstructorTuple( declaringClass, joinPointHash ); if (constructorTuple.getOriginalConstructor().equals(constructorTuple.getWrapperConstructor())) { signature = invokeConstructorCallJoinPoint( system, declaringClass, joinPointHash, joinPointType, cv, className
|
private static Signature createProceedMethod( final int joinPointType, final ClassWriter cw, final String className, final System system, final Class declaringClass, final int joinPointHash, final IndexTuple[] aroundAdvices, final IndexTuple[] beforeAdvices, final IndexTuple[] afterAdvices) { Signature signature = null; CodeVisitor cv = cw.visitMethod( Constants.ACC_PUBLIC, PROCEED_METHOD_NAME, PROCEED_METHOD_SIGNATURE, new String[]{ THROWABLE_CLASS_NAME }, null ); incrementStackFrameCounter(cv, className); LabelData labelData = invokeAroundAdvice(cv, className, aroundAdvices, system); resetStackFrameCounter(cv, className); switch (joinPointType) { case JoinPointType.METHOD_EXECUTION: case JoinPointType.METHOD_CALL: String declaringClassName = null; Type[] argTypes = new Type[0]; MethodTuple methodTuple = system.getAspectManager().getMethodTuple(declaringClass, joinPointHash); Method targetMethod = methodTuple.getOriginalMethod(); declaringClassName = targetMethod.getDeclaringClass().getName().replace('.', '/'); String methodName = targetMethod.getName(); String methodDescriptor = Type.getMethodDescriptor(targetMethod); signature = new MethodSignatureImpl(methodTuple.getDeclaringClass(), methodTuple); argTypes = Type.getArgumentTypes(targetMethod); if (Modifier.isPublic(targetMethod.getModifiers())) { invokePublicMethod( targetMethod, cv, joinPointType, argTypes, className, declaringClassName, methodName, methodDescriptor ); } else { invokeNonPublicMethod(cv); } setReturnValue(targetMethod, cv, className); break; case JoinPointType.CONSTRUCTOR_CALL: ConstructorTuple constructorTuple = system.getAspectManager().getConstructorTuple( declaringClass, joinPointHash ); Constructor targetConstructor = constructorTuple.getWrapperConstructor(); declaringClassName = targetConstructor.getDeclaringClass().getName().replace('.', '/'); String constructorDescriptor = AsmHelper.getConstructorDescriptor(targetConstructor); signature = new ConstructorSignatureImpl(constructorTuple.getDeclaringClass(), constructorTuple); argTypes = AsmHelper.getArgumentTypes(targetConstructor); if (Modifier.isPublic(targetConstructor.getModifiers())) { invokePublicConstructorCall( joinPointType, argTypes, cv, className, declaringClassName, constructorDescriptor ); } else { invokeNonPublicConstructorCall(cv); } setNewInstance(cv, className); break; case JoinPointType.CONSTRUCTOR_EXECUTION: constructorTuple = system.getAspectManager().getConstructorTuple(declaringClass, joinPointHash); targetConstructor = constructorTuple.getOriginalConstructor(); declaringClassName = targetConstructor.getDeclaringClass().getName().replace('.', '/'); constructorDescriptor = AsmHelper.getConstructorDescriptor(targetConstructor); signature = new ConstructorSignatureImpl(constructorTuple.getDeclaringClass(), constructorTuple); argTypes = AsmHelper.getArgumentTypes(targetConstructor); // remove the last argument (the dummy JoinPointManager type) Type[] newArgTypes = new Type[argTypes.length - 1]; for (int i = 0; i < newArgTypes.length; i++) { newArgTypes[i] = argTypes[i]; } if (Modifier.isPublic(targetConstructor.getModifiers())) { invokePublicConstructorExecution( joinPointType, newArgTypes, cv, className, declaringClassName, constructorDescriptor ); } else { invokeNonPublicConstructorExecution(cv); } setNewInstance(cv, className); break; case JoinPointType.FIELD_SET: Field setField = system.getAspectManager().getField(declaringClass, joinPointHash); signature = new FieldSignatureImpl(setField.getDeclaringClass(), setField); invokeTargetFieldSet(cv); setFieldValue(cv, className); break; case JoinPointType.FIELD_GET: Field getField = system.getAspectManager().getField(declaringClass, joinPointHash); signature = new FieldSignatureImpl(getField.getDeclaringClass(), getField); invokeTargetFieldGet(cv); setFieldValue(cv, className); break; case JoinPointType.HANDLER: throw new UnsupportedOperationException("handler is not support yet"); case JoinPointType.STATIC_INITALIZATION: throw new UnsupportedOperationException("static initialization is not support yet"); default: return null; } cv.visitInsn(Constants.ARETURN); // handle the final try-finally nastyness cv.visitTryCatchBlock(labelData.startLabel, labelData.returnLabels[0], labelData.handlerLabel, null); for (int i = 1; i < labelData.switchCaseLabels.length; i++) { Label switchCaseLabel = labelData.switchCaseLabels[i]; Label returnLabel = labelData.returnLabels[i]; cv.visitTryCatchBlock(switchCaseLabel, returnLabel, labelData.handlerLabel, null); } cv.visitTryCatchBlock(labelData.handlerLabel, labelData.endLabel, labelData.handlerLabel, null); cv.visitMaxs(0, 0); return signature; }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/d31ea3456c4faa9dac8c46a7ff0f8928380c5028/JitCompiler.java/clean/aspectwerkz2/src/main/org/codehaus/aspectwerkz/joinpoint/management/JitCompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
9249,
752,
626,
5288,
1305,
12,
5411,
727,
509,
1233,
2148,
559,
16,
5411,
727,
31807,
14098,
16,
5411,
727,
514,
2658,
16,
5411,
727,
2332,
2619,
16,
5411,
727,
1659,
3496,
14682,
16,
5411,
727,
509,
1233,
2148,
2310,
16,
5411,
727,
3340,
9038,
8526,
6740,
1871,
2094,
16,
5411,
727,
3340,
9038,
8526,
1865,
1871,
2094,
16,
5411,
727,
3340,
9038,
8526,
1839,
1871,
2094,
13,
288,
3639,
9249,
3372,
273,
446,
31,
3639,
3356,
7413,
8951,
273,
14098,
18,
11658,
1305,
12,
7734,
5245,
18,
31414,
67,
14939,
16,
4629,
1441,
2056,
67,
5327,
67,
1985,
16,
4629,
1441,
2056,
67,
5327,
67,
26587,
16,
394,
514,
63,
7073,
10792,
7662,
11226,
2782,
67,
5237,
67,
1985,
7734,
19879,
7734,
446,
3639,
11272,
3639,
5504,
2624,
3219,
4789,
12,
19774,
16,
2658,
1769,
3639,
5287,
751,
1433,
751,
273,
4356,
30022,
1871,
633,
12,
19774,
16,
2658,
16,
6740,
1871,
2094,
16,
2619,
1769,
3639,
2715,
2624,
3219,
4789,
12,
19774,
16,
2658,
1769,
3639,
1620,
261,
5701,
2148,
559,
13,
288,
5411,
648,
4214,
2148,
559,
18,
5327,
67,
15271,
13269,
30,
5411,
648,
4214,
2148,
559,
18,
5327,
67,
13730,
30,
7734,
514,
20845,
3834,
273,
446,
31,
7734,
1412,
8526,
30973,
273,
394,
1412,
63,
20,
15533,
7734,
2985,
9038,
707,
9038,
273,
2619,
18,
588,
17468,
1318,
7675,
588,
1305,
9038,
12,
8840,
14682,
16,
1233,
2148,
2310,
1769,
7734,
2985,
1018,
1305,
273,
707,
9038,
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,
3238,
760,
9249,
752,
626,
5288,
1305,
12,
5411,
727,
509,
1233,
2148,
559,
16,
5411,
727,
31807,
14098,
16,
5411,
727,
514,
2658,
16,
5411,
727,
2332,
2619,
16,
5411,
727,
1659,
3496,
14682,
16,
5411,
727,
509,
1233,
2148,
2310,
16,
5411,
727,
3340,
9038,
8526,
6740,
1871,
2094,
16,
5411,
727,
3340,
9038,
8526,
1865,
1871,
2094,
16,
5411,
727,
3340,
9038,
8526,
1839,
1871,
2094,
13,
288,
3639,
9249,
3372,
273,
446,
31,
3639,
3356,
7413,
8951,
273,
14098,
18,
11658,
1305,
12,
7734,
5245,
18,
31414,
67,
14939,
16,
4629,
1441,
2056,
67,
5327,
67,
1985,
16,
4629,
1441,
2056,
67,
5327,
67,
26587,
16,
394,
514,
63,
7073,
10792,
7662,
11226,
2782,
2
] |
public void testRemove() { AckMcastSenderWindow mywin=new AckMcastSenderWindow(new MyCommand(), new long[]{1000,2000,3000}); Address sender1=new IpAddress("127.0.0.1", 10000); Address sender2=new IpAddress("127.0.0.1", 10001); Address sender3=new IpAddress("127.0.0.1", 10002); Vector senders=new Vector(); Message msg=new Message(); long seqno=322649; senders.addElement(sender1); senders.addElement(sender2); senders.addElement(sender3);
|
public void testRemove() throws UnknownHostException { AckMcastSenderWindow mywin=new AckMcastSenderWindow(new MyCommand(), new long[]{1000,2000,3000}); Address sender1=new IpAddress("127.0.0.1", 10000); Address sender2=new IpAddress("127.0.0.1", 10001); Address sender3=new IpAddress("127.0.0.1", 10002); Vector senders=new Vector(); Message msg=new Message(); long seqno=322649;
|
public void testRemove() { AckMcastSenderWindow mywin=new AckMcastSenderWindow(new MyCommand(), new long[]{1000,2000,3000}); Address sender1=new IpAddress("127.0.0.1", 10000); Address sender2=new IpAddress("127.0.0.1", 10001); Address sender3=new IpAddress("127.0.0.1", 10002); Vector senders=new Vector(); Message msg=new Message(); long seqno=322649; senders.addElement(sender1); senders.addElement(sender2); senders.addElement(sender3); mywin.add(seqno, msg, (Vector)senders.clone()); // clone() for the fun of it... mywin.ack(seqno, sender1); mywin.ack(seqno, sender2); System.out.println("entry is " + mywin.printDetails(seqno)); assertTrue(mywin.getNumberOfResponsesExpected(seqno) == 3); assertTrue(mywin.getNumberOfResponsesReceived(seqno) == 2); mywin.waitUntilAllAcksReceived(4000); mywin.suspect(sender3); assertTrue(mywin.size() == 0); // because suspect() removed that entry }
|
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/497094902213c9673fd6b23407e81740ccf528dd/AckMcastSenderWindowTest.java/buggy/tests/junit/org/jgroups/tests/AckMcastSenderWindowTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3288,
1435,
288,
202,
11931,
49,
4155,
12021,
3829,
3399,
8082,
33,
2704,
22322,
49,
4155,
12021,
3829,
12,
2704,
8005,
2189,
9334,
394,
1525,
63,
7073,
18088,
16,
17172,
16,
23,
3784,
22938,
202,
1887,
5793,
21,
33,
2704,
14709,
1887,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
12619,
1769,
202,
1887,
5793,
22,
33,
2704,
14709,
1887,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
2130,
1611,
1769,
202,
1887,
5793,
23,
33,
2704,
14709,
1887,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
2130,
3103,
1769,
202,
5018,
225,
1366,
414,
33,
2704,
5589,
5621,
202,
1079,
1234,
33,
2704,
2350,
5621,
202,
5748,
565,
30734,
33,
1578,
23728,
29,
31,
202,
202,
4661,
414,
18,
1289,
1046,
12,
15330,
21,
1769,
202,
4661,
414,
18,
1289,
1046,
12,
15330,
22,
1769,
202,
4661,
414,
18,
1289,
1046,
12,
15330,
23,
1769,
202,
4811,
8082,
18,
1289,
12,
5436,
2135,
16,
1234,
16,
261,
5018,
13,
4661,
414,
18,
14056,
10663,
368,
3236,
1435,
364,
326,
9831,
434,
518,
2777,
202,
4811,
8082,
18,
484,
12,
5436,
2135,
16,
5793,
21,
1769,
202,
4811,
8082,
18,
484,
12,
5436,
2135,
16,
5793,
22,
1769,
202,
3163,
18,
659,
18,
8222,
2932,
4099,
353,
315,
397,
3399,
8082,
18,
1188,
3790,
12,
5436,
2135,
10019,
202,
11231,
5510,
12,
4811,
8082,
18,
588,
9226,
12222,
6861,
12,
5436,
2135,
13,
422,
890,
1769,
202,
11231,
5510,
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,
377,
1071,
918,
1842,
3288,
1435,
288,
202,
11931,
49,
4155,
12021,
3829,
3399,
8082,
33,
2704,
22322,
49,
4155,
12021,
3829,
12,
2704,
8005,
2189,
9334,
394,
1525,
63,
7073,
18088,
16,
17172,
16,
23,
3784,
22938,
202,
1887,
5793,
21,
33,
2704,
14709,
1887,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
12619,
1769,
202,
1887,
5793,
22,
33,
2704,
14709,
1887,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
2130,
1611,
1769,
202,
1887,
5793,
23,
33,
2704,
14709,
1887,
2932,
14260,
18,
20,
18,
20,
18,
21,
3113,
2130,
3103,
1769,
202,
5018,
225,
1366,
414,
33,
2704,
5589,
5621,
202,
1079,
1234,
33,
2704,
2350,
5621,
202,
5748,
565,
30734,
33,
1578,
2
] |
int id = getId(name);
|
int id = mapNameToId(name);
|
public void setAttributes(String name, Scriptable start, int attributes) throws PropertyException { if (maxId != 0) { int id = getId(name); if (id != 0) { if (hasValue(id)) { synchronized (this) { setAttributes(id, attributes); } return; } // For ids with deleted values super will throw exceptions } } super.setAttributes(name, start, attributes); }
|
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/69580206c77fbc68fdeb0f3f599f44ed78396a0e/IdScriptable.java/clean/js/rhino/src/org/mozilla/javascript/IdScriptable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21175,
12,
780,
508,
16,
22780,
787,
16,
17311,
509,
1677,
13,
3639,
1216,
4276,
503,
565,
288,
3639,
309,
261,
1896,
548,
480,
374,
13,
288,
5411,
509,
612,
273,
852,
28455,
548,
12,
529,
1769,
5411,
309,
261,
350,
480,
374,
13,
288,
7734,
309,
261,
5332,
620,
12,
350,
3719,
288,
10792,
3852,
261,
2211,
13,
288,
13491,
21175,
12,
350,
16,
1677,
1769,
10792,
289,
10792,
327,
31,
7734,
289,
7734,
368,
2457,
3258,
598,
4282,
924,
2240,
903,
604,
4798,
5411,
289,
3639,
289,
3639,
2240,
18,
542,
2498,
12,
529,
16,
787,
16,
1677,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21175,
12,
780,
508,
16,
22780,
787,
16,
17311,
509,
1677,
13,
3639,
1216,
4276,
503,
565,
288,
3639,
309,
261,
1896,
548,
480,
374,
13,
288,
5411,
509,
612,
273,
852,
28455,
548,
12,
529,
1769,
5411,
309,
261,
350,
480,
374,
13,
288,
7734,
309,
261,
5332,
620,
12,
350,
3719,
288,
10792,
3852,
261,
2211,
13,
288,
13491,
21175,
12,
350,
16,
1677,
1769,
10792,
289,
10792,
327,
31,
7734,
289,
7734,
368,
2457,
3258,
598,
4282,
924,
2240,
903,
604,
4798,
5411,
289,
3639,
289,
3639,
2240,
18,
542,
2498,
12,
529,
16,
787,
16,
1677,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 0; i < fields.length; i++) { final PsiField field = fields[i];
|
for(final PsiField field : fields){
|
private boolean isUnnecessarilyQualifiedFieldAccess(PsiReferenceExpression expression) { final PsiExpression qualifierExpression = expression.getQualifierExpression(); if(!(qualifierExpression instanceof PsiJavaCodeReferenceElement)){ return false; } final PsiElement element = expression.resolve(); if (!(element instanceof PsiField) && !(element instanceof PsiMethod)) { return false; } final PsiMember member = (PsiMember) element; if (!member.hasModifierProperty(PsiModifier.STATIC)) { return false; } final PsiElement qualifierElement = ((PsiReference) qualifierExpression).resolve(); if (!(qualifierElement instanceof PsiClass)) { return false; } final String referenceName = expression.getReferenceName(); PsiClass parentClass = ClassUtils.getContainingClass(expression); PsiClass containingClass = parentClass; while (parentClass != null) { containingClass = parentClass; final PsiField[] fields = containingClass.getAllFields(); for (int i = 0; i < fields.length; i++) { final PsiField field = fields[i]; final String name = field.getName(); if (referenceName.equals(name) && !containingClass.equals(qualifierElement)) { return false; } } parentClass = ClassUtils.getContainingClass(containingClass); } PsiMethod containingMethod = (PsiMethod) PsiTreeUtil.getParentOfType(expression, PsiMethod.class); while (containingMethod != null) { final PsiParameterList parameterList = containingMethod.getParameterList(); final PsiParameter[] parameters = parameterList.getParameters(); for (int i = 0; i < parameters.length; i++) { final PsiParameter parameter = parameters[i]; final String name = parameter.getName(); if (referenceName.equals(name)) { return false; } } containingMethod = (PsiMethod) PsiTreeUtil.getParentOfType(containingMethod, PsiMethod.class); } return qualifierElement.equals(containingClass); }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/UnnecessarilyQualifiedStaticUsageInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/style/UnnecessarilyQualifiedStaticUsageInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
1250,
20488,
82,
21513,
8708,
974,
1862,
12,
52,
7722,
2404,
2300,
2652,
13,
288,
5411,
727,
453,
7722,
2300,
12327,
2300,
273,
10792,
2652,
18,
588,
16185,
2300,
5621,
5411,
309,
12,
5,
12,
28157,
2300,
1276,
453,
7722,
5852,
1085,
2404,
1046,
3719,
95,
7734,
327,
629,
31,
5411,
289,
5411,
727,
453,
7722,
1046,
930,
273,
2652,
18,
10828,
5621,
5411,
309,
16051,
12,
2956,
1276,
453,
7722,
974,
13,
597,
401,
12,
2956,
1276,
453,
7722,
1305,
3719,
288,
7734,
327,
629,
31,
5411,
289,
5411,
727,
453,
7722,
4419,
3140,
273,
261,
52,
7722,
4419,
13,
930,
31,
5411,
309,
16051,
5990,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
3719,
288,
7734,
327,
629,
31,
5411,
289,
5411,
727,
453,
7722,
1046,
12327,
1046,
273,
10792,
14015,
52,
7722,
2404,
13,
12327,
2300,
2934,
10828,
5621,
5411,
309,
16051,
12,
28157,
1046,
1276,
453,
7722,
797,
3719,
288,
7734,
327,
629,
31,
5411,
289,
5411,
727,
514,
2114,
461,
273,
2652,
18,
588,
2404,
461,
5621,
5411,
453,
7722,
797,
21366,
273,
26382,
18,
588,
24344,
797,
12,
8692,
1769,
5411,
453,
7722,
797,
4191,
797,
273,
21366,
31,
5411,
1323,
261,
2938,
797,
480,
446,
13,
288,
7734,
4191,
797,
273,
21366,
31,
7734,
727,
453,
7722,
974,
8526,
1466,
273,
4191,
797,
18,
588,
1595,
2314,
5621,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1466,
18,
2469,
31,
277,
27245,
288,
10792,
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,
540,
3238,
1250,
20488,
82,
21513,
8708,
974,
1862,
12,
52,
7722,
2404,
2300,
2652,
13,
288,
5411,
727,
453,
7722,
2300,
12327,
2300,
273,
10792,
2652,
18,
588,
16185,
2300,
5621,
5411,
309,
12,
5,
12,
28157,
2300,
1276,
453,
7722,
5852,
1085,
2404,
1046,
3719,
95,
7734,
327,
629,
31,
5411,
289,
5411,
727,
453,
7722,
1046,
930,
273,
2652,
18,
10828,
5621,
5411,
309,
16051,
12,
2956,
1276,
453,
7722,
974,
13,
597,
401,
12,
2956,
1276,
453,
7722,
1305,
3719,
288,
7734,
327,
629,
31,
5411,
289,
5411,
727,
453,
7722,
4419,
3140,
273,
261,
52,
7722,
4419,
13,
930,
31,
5411,
309,
16051,
5990,
18,
5332,
9829,
1396,
12,
52,
7722,
9829,
18,
22741,
2
] |
if (jj_scan_token(NE)) return true;
|
if (jj_scan_token(EQ)) return true;
|
final private boolean jj_3R_302() { if (jj_scan_token(NE)) return true; return false; }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/ac9207dcb7a8bbf54f85da7f1bdae7d7162b86b3/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
23,
3103,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
27247,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
23,
3103,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
27247,
3719,
327,
638,
31,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tokfix();
|
private int start_num(int c) { boolean is_float; boolean seen_point; boolean seen_e; boolean seen_uc; is_float = seen_point = seen_e = seen_uc = false; ph.setLexState(LexState.EXPR_END); newtok(); if (c == '-' || c == '+') { tokadd(c); c = nextc(); } if (c == '0') { c = nextc(); if (c == 'x' || c == 'X') { // hexadecimal c = nextc(); do { if (c == '_') { seen_uc = true; continue; } if (!ISXDIGIT(c)) { break; } seen_uc = false; tokadd(c); } while ((c = nextc()) != 0); pushback(c); tokfix(); if (toklen() == 0) { yyerror("hexadecimal number without hex-digits"); } else if (seen_uc) { return decode_num(c, is_float, seen_uc, true); } yyVal = rb_cstr2inum(tok(), 16); return Token.tINTEGER; } if (c == 'b' || c == 'B') { // binary c = nextc(); do { if (c == '_') { seen_uc = true; continue; } if (c != '0' && c != '1') { break; } seen_uc = false; tokadd(c); } while ((c = nextc()) != 0); pushback(c); tokfix(); if (toklen() == 0) { yyerror("numeric literal without digits"); } else if (seen_uc) { return decode_num(c, is_float, seen_uc, true); } yyVal = rb_cstr2inum(tok(), 2); return Token.tINTEGER; } if (c >= '0' && c <= '7' || c == '_') { // octal do { if (c == '_') { seen_uc = true; continue; } if (c < '0' || c > '7') { break; } seen_uc = false; tokadd(c); } while ((c = nextc()) != 0); pushback(c); tokfix(); if (seen_uc) { return decode_num(c, is_float, seen_uc, true); } yyVal = rb_cstr2inum(tok(), 8); return Token.tINTEGER; } if (c > '7' && c <= '9') { yyerror("Illegal octal digit"); } else if (c == '.') { tokadd('0'); } else { pushback(c); yyVal = RubyFixnum.zero(ruby); return Token.tINTEGER; } } for (;;) { switch (c) { case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : seen_uc = false; tokadd(c); break; case '.' : if (seen_point || seen_e) { return decode_num(c, is_float, seen_uc); } else { int c0 = nextc(); if (!Character.isDigit((char) c0)) { pushback(c0); return decode_num(c, is_float, seen_uc); } c = c0; } tokadd('.'); tokadd(c); is_float = true; seen_point = true; seen_uc = false; break; case 'e' : case 'E' : if (seen_e) { return decode_num(c, is_float, seen_uc); } tokadd(c); seen_e = true; is_float = true; while ((c = nextc()) == '_') { seen_uc = true; } if (c == '-' || c == '+') { tokadd(c); } else { continue; } break; case '_' : // '_' in number just ignored seen_uc = true; break; default : return decode_num(c, is_float, seen_uc); } c = nextc(); } }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
787,
67,
2107,
12,
474,
276,
13,
288,
3639,
1250,
353,
67,
5659,
31,
3639,
1250,
5881,
67,
1153,
31,
3639,
1250,
5881,
67,
73,
31,
3639,
1250,
5881,
67,
5286,
31,
3639,
353,
67,
5659,
273,
5881,
67,
1153,
273,
5881,
67,
73,
273,
5881,
67,
5286,
273,
629,
31,
3639,
1844,
18,
542,
14756,
1119,
12,
14756,
1119,
18,
2294,
8025,
67,
4415,
1769,
3639,
394,
17692,
5621,
3639,
309,
261,
71,
422,
4014,
747,
276,
422,
15126,
6134,
288,
5411,
946,
1289,
12,
71,
1769,
5411,
276,
273,
1024,
71,
5621,
3639,
289,
3639,
309,
261,
71,
422,
296,
20,
6134,
288,
5411,
276,
273,
1024,
71,
5621,
5411,
309,
261,
71,
422,
296,
92,
11,
747,
276,
422,
296,
60,
6134,
288,
7734,
368,
225,
20070,
7734,
276,
273,
1024,
71,
5621,
7734,
741,
288,
10792,
309,
261,
71,
422,
4427,
13,
288,
13491,
5881,
67,
5286,
273,
638,
31,
13491,
1324,
31,
10792,
289,
10792,
309,
16051,
5127,
60,
21243,
1285,
12,
71,
3719,
288,
13491,
898,
31,
10792,
289,
10792,
5881,
67,
5286,
273,
629,
31,
10792,
946,
1289,
12,
71,
1769,
7734,
289,
1323,
14015,
71,
273,
1024,
71,
10756,
480,
374,
1769,
7734,
1817,
823,
12,
71,
1769,
1171,
9079,
309,
261,
17692,
1897,
1435,
422,
374,
13,
288,
10792,
9016,
1636,
2932,
7118,
18300,
1300,
2887,
3827,
17,
16649,
8863,
7734,
289,
469,
309,
261,
15156,
67,
5286,
13,
288,
10792,
327,
2495,
67,
2107,
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,
787,
67,
2107,
12,
474,
276,
13,
288,
3639,
1250,
353,
67,
5659,
31,
3639,
1250,
5881,
67,
1153,
31,
3639,
1250,
5881,
67,
73,
31,
3639,
1250,
5881,
67,
5286,
31,
3639,
353,
67,
5659,
273,
5881,
67,
1153,
273,
5881,
67,
73,
273,
5881,
67,
5286,
273,
629,
31,
3639,
1844,
18,
542,
14756,
1119,
12,
14756,
1119,
18,
2294,
8025,
67,
4415,
1769,
3639,
394,
17692,
5621,
3639,
309,
261,
71,
422,
4014,
747,
276,
422,
15126,
6134,
288,
5411,
946,
1289,
12,
71,
1769,
5411,
276,
273,
1024,
71,
5621,
3639,
289,
3639,
309,
261,
71,
422,
296,
20,
6134,
288,
5411,
276,
273,
1024,
71,
5621,
5411,
309,
261,
71,
422,
2
] |
|
depInfo = depGen.getDependencySourceInfo(resource.getProjectRelativePath(), buildContext, tool, getBuildWorkingDir());
|
depInfo = depGen.getDependencySourceInfo(resource.getProjectRelativePath(), resource, buildContext, tool, getBuildWorkingDir());
|
protected void addRuleForSource(String relativePath, StringBuffer buffer, IResource resource, IPath sourceLocation, IResourceConfiguration resConfig, boolean generatedSource, Vector generatedDepFiles, Vector enumeratedOutputs) { String fileName = sourceLocation.removeFileExtension().lastSegment(); String inputExtension = sourceLocation.getFileExtension(); String outputExtension = info.getOutputExtension(inputExtension); ITool tool = null; if( resConfig != null) { ITool[] tools = resConfig.getToolsToInvoke(); if (tools != null && tools.length > 0) { tool = tools[0]; } } if (tool == null) { tool = info.getToolFromInputExtension(inputExtension); } // Get the dependency generator information for this tool and file extension IManagedDependencyGenerator oldDepGen = null; // This interface is deprecated but still supported IManagedDependencyGenerator2 depGen = null; // This is the recommended interface IManagedDependencyInfo depInfo = null; IManagedDependencyCommands depCommands = null; IManagedDependencyPreBuild depPreBuild = null; IPath[] depFiles = null; boolean doDepGen = false; { IManagedDependencyGeneratorType t = tool.getDependencyGeneratorForExtension(inputExtension); if (t != null) { int calcType = t.getCalculatorType(); if (calcType <= IManagedDependencyGeneratorType.TYPE_OLD_TYPE_LIMIT) { oldDepGen = (IManagedDependencyGenerator)t; doDepGen = (calcType == IManagedDependencyGeneratorType.TYPE_COMMAND); if (doDepGen) { IPath depFile = Path.fromOSString(relativePath + fileName + DOT + DEP_EXT); getDependencyMakefiles().add(depFile); generatedDepFiles.add(depFile); } } else { depGen = (IManagedDependencyGenerator2)t; doDepGen = (calcType == IManagedDependencyGeneratorType.TYPE_BUILD_COMMANDS); IBuildObject buildContext = (resConfig != null) ? (IBuildObject)resConfig : (IBuildObject)config; depInfo = depGen.getDependencySourceInfo(resource.getProjectRelativePath(), buildContext, tool, getBuildWorkingDir()); if (calcType == IManagedDependencyGeneratorType.TYPE_BUILD_COMMANDS) { depCommands = (IManagedDependencyCommands)depInfo; depFiles = depCommands.getDependencyFiles(); } else if (calcType == IManagedDependencyGeneratorType.TYPE_PREBUILD_COMMANDS) { depPreBuild = (IManagedDependencyPreBuild)depInfo; depFiles = depPreBuild.getDependencyFiles(); } if (depFiles != null) { for (int i=0; i<depFiles.length; i++) { getDependencyMakefiles().add(depFiles[i]); generatedDepFiles.add(depFiles[i]); } } } } } // Figure out the output paths String optDotExt = EMPTY_STRING; if (outputExtension != null && outputExtension.length() > 0) optDotExt = DOT + outputExtension; Vector ruleOutputs = new Vector(); Vector enumeratedPrimaryOutputs = new Vector(); // IPaths relative to the top build directory Vector enumeratedSecondaryOutputs = new Vector(); // IPaths relative to the top build directory calculateOutputsForSource(tool, relativePath, resource, sourceLocation, ruleOutputs, enumeratedPrimaryOutputs, enumeratedSecondaryOutputs); enumeratedOutputs.addAll(enumeratedPrimaryOutputs); enumeratedOutputs.addAll(enumeratedSecondaryOutputs); String primaryOutputName = null; if (enumeratedPrimaryOutputs.size() > 0) { primaryOutputName = escapeWhitespaces(((IPath)enumeratedPrimaryOutputs.get(0)).toString()); } else { primaryOutputName = escapeWhitespaces(relativePath + fileName + optDotExt); } String otherPrimaryOutputs = EMPTY_STRING; for (int i=1; i<enumeratedPrimaryOutputs.size(); i++) { // Starting with 1 is intentional otherPrimaryOutputs += WHITESPACE + escapeWhitespaces(((IPath)enumeratedPrimaryOutputs.get(i)).toString()); } // Figure out the path to the input resource /* * fix for PR 70491 * We need to check if the current resource is LINKED, because * the default CDT doesn't handle this properly. If it IS linked, * then we must get the actual location of the resource, rather * than the relative path. */ String projectLocation = project.getLocation().toString(); // Output file location needed for the file-specific build macros IPath outputLocation = Path.fromOSString(primaryOutputName); if (!outputLocation.isAbsolute()) { outputLocation = project.getLocation().append(getBuildWorkingDir()).append(primaryOutputName); } // A separate rule is needed for the resource in the case where explicit file-specific macros // are referenced, or if the resource contains special characters in its path (e.g., whitespace) boolean needExplicitRuleForFile = containsSpecialCharacters(sourceLocation.toString()) || MacroResolver.getReferencedExplitFileMacros(tool).length > 0 || MacroResolver.getReferencedExplitFileMacros(tool .getToolCommand(), IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)).length > 0; // Get and resolve the command String cmd = tool.getToolCommand(); try { String resolvedCommand = null; if (!needExplicitRuleForFile) { resolvedCommand = ManagedBuildManager.getBuildMacroProvider() .resolveValueToMakefileFormat( cmd, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } else { // if we need an explicit rule then don't use any builder // variables, resolve everything // to explicit strings resolvedCommand = ManagedBuildManager.getBuildMacroProvider() .resolveValue( cmd, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } if ((resolvedCommand = resolvedCommand.trim()).length() > 0) cmd = resolvedCommand; } catch (BuildMacroException e) { } String defaultOutputName = EMPTY_STRING; String primaryDependencyName = EMPTY_STRING; String patternPrimaryDependencyName = EMPTY_STRING; String home = (generatedSource)? DOT : ROOT; String resourcePath = null; boolean patternRule = true; boolean isItLinked = false; //if (resource.isLinked()) { NOTE: we don't use this since children of linked resources return false if(!sourceLocation.toString().startsWith(projectLocation)) { // it IS linked, so use the actual location isItLinked = true; resourcePath = sourceLocation.toString(); // Need a hardcoded rule, not a pattern rule, as a linked file // can reside in any path defaultOutputName = escapeWhitespaces(relativePath + fileName + optDotExt); primaryDependencyName = escapeWhitespaces(resourcePath); patternRule = false; } else { // Use the relative path (not really needed to store per se but in the future someone may want this) resourcePath = relativePath; // The rule and command to add to the makefile if( resConfig != null || needExplicitRuleForFile) { // Need a hardcoded rule, not a pattern rule defaultOutputName = escapeWhitespaces(resourcePath + fileName + optDotExt); patternRule = false; } else { defaultOutputName = relativePath + WILDCARD + optDotExt; } primaryDependencyName = escapeWhitespaces(home + SEPARATOR + resourcePath + fileName + DOT + inputExtension); patternPrimaryDependencyName = home + SEPARATOR + resourcePath + WILDCARD + DOT + inputExtension; } // end fix for PR 70491 // If the tool specifies a dependency calculator of TYPE_BUILD_COMMANDS, ask whether // the dependency commands are "generic" (i.e., we can use a pattern rule) boolean needExplicitDependencyCommands = false; if (depCommands != null) { needExplicitDependencyCommands = !depCommands.areCommandsGeneric(); } // If we still think that we are using a pattern rule, check a few more things if (patternRule) { patternRule = false; // Make sure that at least one of the rule outputs contains a %. for (int i=0; i<ruleOutputs.size(); i++) { String ruleOutput = ((IPath)ruleOutputs.get(i)).toString(); if (ruleOutput.indexOf('%') >= 0) { //$NON-NLS-1$ patternRule = true; break; } } if (patternRule) { patternRule = !needExplicitDependencyCommands; } } // Begin building the rule for this source file String buildRule = EMPTY_STRING; if (patternRule) { if (ruleOutputs.size() == 0) { buildRule += defaultOutputName; } else { boolean first = true; for (int i=0; i<ruleOutputs.size(); i++) { String ruleOutput = ((IPath)ruleOutputs.get(i)).toString(); if (ruleOutput.indexOf('%') >= 0) { //$NON-NLS-1$ if (first) { first = false; } else { buildRule += WHITESPACE; } buildRule += ruleOutput; } } } } else { buildRule += primaryOutputName; } String buildRuleDependencies = primaryDependencyName; String patternBuildRuleDependencies = patternPrimaryDependencyName; // Other additional inputs // Get any additional dependencies specified for the tool in other InputType elements and AdditionalInput elements IPath[] addlDepPaths = tool.getAdditionalDependencies(); for (int i=0; i<addlDepPaths.length; i++) { // Translate the path from project relative to build directory relative IPath addlPath = addlDepPaths[i]; if (!(addlPath.toString().startsWith("$("))) { //$NON-NLS-1$ if (!addlPath.isAbsolute()) { IPath tempPath = project.getLocation().append(addlPath); if (tempPath != null) { addlPath = ManagedBuildManager.calculateRelativePath(getTopBuildDir(), tempPath); } } } buildRuleDependencies += WHITESPACE + escapeWhitespaces(addlPath.toString()); patternBuildRuleDependencies += WHITESPACE + escapeWhitespaces(addlPath.toString()); } buildRule += COLON + WHITESPACE + (patternRule ? patternBuildRuleDependencies : buildRuleDependencies); // No duplicates in a makefile. If we already have this rule, don't add it or the commands to build the file if (getRuleList().contains(buildRule)) { // TODO: Should we assert that this is a pattern rule? } else { getRuleList().add(buildRule); // Echo starting message buffer.append(buildRule + NEWLINE); buffer.append(TAB + AT + escapedEcho(MESSAGE_START_FILE + WHITESPACE + IN_MACRO)); buffer.append(TAB + AT + escapedEcho(tool.getAnnouncement())); // If the tool specifies a dependency calculator of TYPE_BUILD_COMMANDS, ask whether // there are any pre-tool commands. if (depCommands != null) { String[] preToolCommands = depCommands.getPreToolDependencyCommands(); if (preToolCommands != null && preToolCommands.length > 0) { for (int i=0; i<preToolCommands.length; i++) { try { String resolvedCommand; String preCmd = preToolCommands[i]; IBuildMacroProvider provider = ManagedBuildManager.getBuildMacroProvider(); if (!needExplicitRuleForFile) { resolvedCommand = provider.resolveValueToMakefileFormat( preCmd, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } else { // if we need an explicit rule then don't use any builder // variables, resolve everything to explicit strings resolvedCommand = provider.resolveValue( preCmd, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } if (resolvedCommand != null) buffer.append(resolvedCommand + NEWLINE); } catch (BuildMacroException e) { } } } } // Generate the command line Vector inputs = new Vector(); inputs.add(IN_MACRO); // Other additional inputs // Get any additional dependencies specified for the tool in other InputType elements and AdditionalInput elements IPath[] addlInputPaths = getAdditionalResourcesForSource(tool); for (int i=0; i<addlInputPaths.length; i++) { // Translate the path from project relative to build directory relative IPath addlPath = addlInputPaths[i]; if (!(addlPath.toString().startsWith("$("))) { //$NON-NLS-1$ if (!addlPath.isAbsolute()) { IPath tempPath = project.getLocation().append(addlPath); if (tempPath != null) { addlPath = ManagedBuildManager.calculateRelativePath(getTopBuildDir(), tempPath); } } } inputs.add(addlPath.toString()); } String[] inputStrings = (String[])inputs.toArray(new String[inputs.size()]); String[] flags = null; // Get the tool command line options try { flags = tool.getToolCommandFlags(sourceLocation, outputLocation); } catch( BuildException ex ) { // TODO add some routines to catch this flags = EMPTY_STRING_ARRAY; } // If we have a TYPE_BUILD_COMMANDS dependency generator, determine if there are any options that // it wants added to the command line if (depCommands != null) { flags = addDependencyOptions(depCommands, flags); } IManagedCommandLineInfo cmdLInfo = null; String outflag = null; String outputPrefix = null; if( resConfig != null || needExplicitRuleForFile || needExplicitDependencyCommands) { outflag = tool.getOutputFlag(); outputPrefix = tool.getOutputPrefix(); // Call the command line generator IManagedCommandLineGenerator cmdLGen = tool.getCommandLineGenerator(); cmdLInfo = cmdLGen.generateCommandLineInfo( tool, cmd, flags, outflag, outputPrefix, OUT_MACRO + otherPrimaryOutputs, inputStrings, tool.getCommandLinePattern() ); } else { outflag = info.getOutputFlag(outputExtension); outputPrefix = info.getOutputPrefix(outputExtension); // Call the command line generator cmdLInfo = info.generateToolCommandLineInfo( inputExtension, flags, outflag, outputPrefix, OUT_MACRO + otherPrimaryOutputs, inputStrings, sourceLocation, outputLocation ); } // The command to build String buildCmd; if (cmdLInfo != null) { buildCmd = cmdLInfo.getCommandLine(); } else { StringBuffer buildFlags = new StringBuffer(); for (int index = 0; index < flags.length; index++) { if( flags[ index ] != null ) { buildFlags.append( flags[ index ] + WHITESPACE ); } } buildCmd = cmd + WHITESPACE + buildFlags.toString().trim() + WHITESPACE + outflag + WHITESPACE + outputPrefix + OUT_MACRO + otherPrimaryOutputs + WHITESPACE + IN_MACRO; } // resolve any remaining macros in the command after it has been // generated try { String resolvedCommand; IBuildMacroProvider provider = ManagedBuildManager.getBuildMacroProvider(); if (!needExplicitRuleForFile) { resolvedCommand = provider.resolveValueToMakefileFormat( buildCmd, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } else { // if we need an explicit rule then don't use any builder // variables, resolve everything to explicit strings resolvedCommand = provider.resolveValue( buildCmd, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } if ((resolvedCommand = resolvedCommand.trim()).length() > 0) buildCmd = resolvedCommand; } catch (BuildMacroException e) { } //buffer.append(TAB + AT + escapedEcho(buildCmd)); //buffer.append(TAB + AT + buildCmd); buffer.append(TAB + buildCmd); // Determine if there are any dependencies to calculate if (doDepGen) { // Get the dependency rule out of the generator String[] depCmds = null; if (oldDepGen != null) { depCmds = new String[1]; depCmds[0] = oldDepGen.getDependencyCommand(resource, info); } else { if (depCommands != null) { depCmds = depCommands.getPostToolDependencyCommands(); } } if (depCmds != null) { for (int i=0; i<depCmds.length; i++) { // Resolve any macros in the dep command after it has been generated. // Note: do not trim the result because it will strip out necessary tab characters. buffer.append(WHITESPACE + LOGICAL_AND + WHITESPACE + LINEBREAK); String depCmd = depCmds[i]; try { if (!needExplicitRuleForFile) { depCmd = ManagedBuildManager.getBuildMacroProvider() .resolveValueToMakefileFormat( depCmd, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } else { depCmd = ManagedBuildManager.getBuildMacroProvider() .resolveValue( depCmd, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } } catch (BuildMacroException e) { } buffer.append(depCmd); } } } // Echo finished message buffer.append(NEWLINE); buffer.append(TAB + AT + escapedEcho(MESSAGE_FINISH_FILE + WHITESPACE + IN_MACRO)); buffer.append(TAB + AT + ECHO_BLANK_LINE + NEWLINE); } // Determine if there are calculated dependencies IPath[] addlDeps = null; // IPath's that are relative to the build directory IPath[] addlTargets = null; // IPath's that are relative to the build directory String calculatedDependencies = null; boolean addedDepLines = false; String depLine; if (oldDepGen != null && oldDepGen.getCalculatorType() != IManagedDependencyGeneratorType.TYPE_COMMAND) { addlDeps = oldCalculateDependenciesForSource(oldDepGen, tool, relativePath, resource); } else { if (depGen != null && depGen.getCalculatorType() == IManagedDependencyGeneratorType.TYPE_CUSTOM) { if (depInfo instanceof IManagedDependencyCalculator) { IManagedDependencyCalculator depCalculator = (IManagedDependencyCalculator)depInfo; addlDeps = calculateDependenciesForSource(depCalculator); addlTargets = depCalculator.getAdditionalTargets(); } } } if (addlDeps != null && addlDeps.length > 0) { calculatedDependencies = new String(); for (int i=0; i<addlDeps.length; i++) { calculatedDependencies += WHITESPACE + addlDeps[i].toString(); } } if (calculatedDependencies != null) { depLine = primaryOutputName + COLON + calculatedDependencies + NEWLINE; if (!getDepLineList().contains(depLine)) { getDepLineList().add(depLine); addedDepLines = true; buffer.append(depLine); } } // Add any additional outputs here using dependency lines Vector addlOutputs = new Vector(); if (enumeratedPrimaryOutputs.size() > 1) { // Starting with 1 is intentional in order to skip the primary output for (int i=1; i<enumeratedPrimaryOutputs.size(); i++) addlOutputs.add(enumeratedPrimaryOutputs.get(i)); } addlOutputs.addAll(enumeratedSecondaryOutputs); if (addlTargets != null) { for (int i=0; i<addlTargets.length; i++) addlOutputs.add(addlTargets[i]); } for (int i=0; i<addlOutputs.size(); i++) { depLine = escapeWhitespaces(((IPath)addlOutputs.get(i)).toString()) + COLON + WHITESPACE + primaryOutputName; if (calculatedDependencies != null) depLine += calculatedDependencies; depLine += NEWLINE; if (!getDepLineList().contains(depLine)) { getDepLineList().add(depLine); addedDepLines = true; buffer.append(depLine); } } if (addedDepLines) { buffer.append(NEWLINE); } // If we are using a dependency calculator of type TYPE_PREBUILD_COMMANDS, // get the rule to build the dependency file if (depPreBuild != null && depFiles != null) { addedDepLines = false; String[] preBuildCommands = depPreBuild.getDependencyCommands(); if (preBuildCommands != null) { depLine = ""; //$NON-NLS-1$ // Can we use a pattern rule? patternRule = !isItLinked && !needExplicitRuleForFile && depPreBuild.areCommandsGeneric(); // Begin building the rule for (int i=0; i<depFiles.length; i++) { if (i > 0) depLine += WHITESPACE; if (patternRule) { optDotExt = EMPTY_STRING; String depExt = depFiles[i].getFileExtension(); if (depExt != null && depExt.length() > 0) optDotExt = DOT + depExt; depLine += escapeWhitespaces(relativePath + WILDCARD + optDotExt); } else { depLine += escapeWhitespaces((depFiles[i]).toString()); } } depLine += COLON + WHITESPACE + (patternRule ? patternBuildRuleDependencies : buildRuleDependencies); if (!getDepRuleList().contains(depLine)) { getDepRuleList().add(depLine); addedDepLines = true; buffer.append(depLine + NEWLINE); buffer.append(TAB + AT + escapedEcho(MESSAGE_START_DEPENDENCY + WHITESPACE + OUT_MACRO)); for (int i=0; i<preBuildCommands.length; i++) { depLine = preBuildCommands[i]; // Resolve macros try { if (!needExplicitRuleForFile) { depLine = ManagedBuildManager.getBuildMacroProvider() .resolveValueToMakefileFormat( depLine, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } else { depLine = ManagedBuildManager.getBuildMacroProvider() .resolveValue( depLine, EMPTY_STRING, WHITESPACE, IBuildMacroProvider.CONTEXT_FILE, new FileContextData(sourceLocation, outputLocation, null, tool)); } } catch (BuildMacroException e) { } //buffer.append(TAB + AT + escapedEcho(depLine)); //buffer.append(TAB + AT + depLine + NEWLINE); buffer.append(TAB + depLine + NEWLINE); } } if (addedDepLines) { buffer.append(TAB + AT + ECHO_BLANK_LINE + NEWLINE); } } } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d849fab5d144f12235863e8454f68ad4e51ecbaa/GnuMakefileGenerator.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
21264,
1290,
1830,
12,
780,
12820,
16,
6674,
1613,
16,
467,
1420,
1058,
16,
1875,
202,
45,
743,
1084,
2735,
16,
467,
1420,
1750,
400,
809,
16,
1875,
202,
6494,
4374,
1830,
16,
5589,
4374,
16316,
2697,
16,
5589,
3557,
690,
13856,
13,
288,
9506,
202,
780,
3968,
273,
1084,
2735,
18,
4479,
812,
3625,
7675,
2722,
4131,
5621,
202,
202,
780,
810,
3625,
273,
1084,
2735,
18,
29925,
3625,
5621,
202,
202,
780,
876,
3625,
273,
1123,
18,
588,
1447,
3625,
12,
2630,
3625,
1769,
202,
202,
45,
6364,
5226,
273,
446,
31,
202,
202,
430,
12,
400,
809,
480,
446,
13,
288,
1082,
202,
45,
6364,
8526,
8513,
273,
400,
809,
18,
588,
10348,
774,
10969,
5621,
1082,
202,
430,
261,
6642,
480,
446,
597,
8513,
18,
2469,
405,
374,
13,
288,
9506,
202,
6738,
273,
8513,
63,
20,
15533,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
261,
6738,
422,
446,
13,
288,
1082,
202,
6738,
273,
1123,
18,
588,
6364,
1265,
1210,
3625,
12,
2630,
3625,
1769,
202,
202,
97,
202,
202,
759,
225,
968,
326,
4904,
4456,
1779,
364,
333,
5226,
471,
585,
2710,
202,
202,
3445,
4184,
7787,
3908,
1592,
16316,
7642,
273,
446,
31,
202,
202,
759,
225,
1220,
1560,
353,
6849,
1496,
4859,
3260,
202,
202,
3445,
4184,
7787,
3908,
22,
5993,
7642,
273,
446,
31,
1082,
202,
759,
225,
1220,
353,
326,
14553,
1560,
202,
202,
3445,
4184,
7787,
966,
5993,
966,
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,
1117,
918,
21264,
1290,
1830,
12,
780,
12820,
16,
6674,
1613,
16,
467,
1420,
1058,
16,
1875,
202,
45,
743,
1084,
2735,
16,
467,
1420,
1750,
400,
809,
16,
1875,
202,
6494,
4374,
1830,
16,
5589,
4374,
16316,
2697,
16,
5589,
3557,
690,
13856,
13,
288,
9506,
202,
780,
3968,
273,
1084,
2735,
18,
4479,
812,
3625,
7675,
2722,
4131,
5621,
202,
202,
780,
810,
3625,
273,
1084,
2735,
18,
29925,
3625,
5621,
202,
202,
780,
876,
3625,
273,
1123,
18,
588,
1447,
3625,
12,
2630,
3625,
1769,
202,
202,
45,
6364,
5226,
273,
446,
31,
202,
202,
430,
12,
400,
809,
480,
446,
13,
288,
1082,
202,
45,
6364,
8526,
8513,
273,
400,
809,
18,
588,
2
] |
this.viewer = viewer;
|
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { this.viewer = viewer; input = (AdaptableList) newInput; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/4cf956cf14a1861582124e1ddfcf2b85ce3aa055/WizardContentProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardContentProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
810,
5033,
12,
18415,
14157,
16,
1033,
1592,
1210,
16,
1033,
394,
1210,
13,
288,
202,
565,
333,
18,
25256,
273,
14157,
31,
202,
565,
810,
273,
261,
13716,
429,
682,
13,
394,
1210,
31,
202,
565,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
810,
5033,
12,
18415,
14157,
16,
1033,
1592,
1210,
16,
1033,
394,
1210,
13,
288,
202,
565,
333,
18,
25256,
273,
14157,
31,
202,
565,
810,
273,
261,
13716,
429,
682,
13,
394,
1210,
31,
202,
565,
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
] |
|
MondrianDef.Column mcolumn =
|
MondrianDef.Column mcolumn =
|
public RolapStar.Table findTableWithLeftJoinCondition( final String columnName) { for (Iterator it = getChildren(); it.hasNext(); ) { Table child = (Table) it.next(); Condition condition = child.joinCondition; if (condition != null) { if (condition.left instanceof MondrianDef.Column) { MondrianDef.Column mcolumn = (MondrianDef.Column) condition.left; if (mcolumn.name.equals(columnName)) { return child; } } } } return null; }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/04e646f31dd5b7942980cee630c94f49bdab0e26/RolapStar.java/buggy/src/main/mondrian/rolap/RolapStar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
11714,
438,
18379,
18,
1388,
1104,
1388,
1190,
3910,
4572,
3418,
12,
7734,
727,
514,
7578,
13,
288,
5411,
364,
261,
3198,
518,
273,
10268,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
7734,
3555,
1151,
273,
261,
1388,
13,
518,
18,
4285,
5621,
7734,
7949,
2269,
273,
1151,
18,
5701,
3418,
31,
7734,
309,
261,
4175,
480,
446,
13,
288,
10792,
309,
261,
4175,
18,
4482,
1276,
490,
1434,
566,
304,
3262,
18,
1494,
13,
288,
13491,
490,
1434,
566,
304,
3262,
18,
1494,
312,
2827,
273,
11794,
261,
49,
1434,
566,
304,
3262,
18,
1494,
13,
2269,
18,
4482,
31,
13491,
309,
261,
81,
2827,
18,
529,
18,
14963,
12,
2827,
461,
3719,
288,
18701,
327,
1151,
31,
13491,
289,
10792,
289,
7734,
289,
5411,
289,
5411,
327,
446,
31,
3639,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
11714,
438,
18379,
18,
1388,
1104,
1388,
1190,
3910,
4572,
3418,
12,
7734,
727,
514,
7578,
13,
288,
5411,
364,
261,
3198,
518,
273,
10268,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
7734,
3555,
1151,
273,
261,
1388,
13,
518,
18,
4285,
5621,
7734,
7949,
2269,
273,
1151,
18,
5701,
3418,
31,
7734,
309,
261,
4175,
480,
446,
13,
288,
10792,
309,
261,
4175,
18,
4482,
1276,
490,
1434,
566,
304,
3262,
18,
1494,
13,
288,
13491,
490,
1434,
566,
304,
3262,
18,
1494,
312,
2827,
273,
11794,
261,
49,
1434,
566,
304,
3262,
18,
1494,
13,
2269,
18,
4482,
31,
13491,
309,
261,
81,
2827,
18,
529,
18,
14963,
12,
2827,
461,
3719,
288,
18701,
2
] |
Hashtable fmht = isStatic ? staticFieldAndMethods : fieldAndMethods; if (fmht == null) { fmht = new Hashtable(11); if (isStatic) staticFieldAndMethods = fmht; else fieldAndMethods = fmht; }
|
void reflectField(Field field) { int mods = field.getModifiers(); if (!Modifier.isPublic(mods)) return; boolean isStatic = Modifier.isStatic(mods); Hashtable ht = isStatic ? staticMembers : members; String name = field.getName(); Object member = ht.get(name); if (member != null) { if (member instanceof NativeJavaMethod) { NativeJavaMethod method = (NativeJavaMethod) member; Hashtable fmht = isStatic ? staticFieldAndMethods : fieldAndMethods; if (fmht == null) { fmht = new Hashtable(11); if (isStatic) staticFieldAndMethods = fmht; else fieldAndMethods = fmht; } FieldAndMethods fam = new FieldAndMethods(method.getMethods(), field); fmht.put(name, fam); ht.put(name, fam); return; } if (member instanceof Field) { Field oldField = (Field) member; // beard: // If an exception is thrown here, then JDirect classes on MRJ can't be used. JDirect // classes implement multiple interfaces that each have a static "libraryInstance" field. if (false) { throw new RuntimeException("cannot have multiple Java " + "fields with same name"); } // If this newly reflected field shadows an inherited field, then replace it. Otherwise, // since access to the field would be ambiguous from Java, no field should be reflected. // For now, the first field found wins, unless another field explicitly shadows it. if (oldField.getDeclaringClass().isAssignableFrom(field.getDeclaringClass())) ht.put(name, field); return; } throw new RuntimeException("unknown member type"); } ht.put(name, field); }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/d51c86ce41d18ae0fb0b3b8271845674d5ce2728/JavaMembers.java/clean/js/rhino/src/org/mozilla/javascript/JavaMembers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3037,
974,
12,
974,
652,
13,
288,
3639,
509,
15546,
273,
652,
18,
588,
11948,
5621,
3639,
309,
16051,
9829,
18,
291,
4782,
12,
22760,
3719,
5411,
327,
31,
3639,
1250,
16116,
273,
12832,
18,
291,
5788,
12,
22760,
1769,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
514,
508,
273,
652,
18,
17994,
5621,
3639,
1033,
3140,
273,
14049,
18,
588,
12,
529,
1769,
3639,
309,
261,
5990,
480,
446,
13,
288,
5411,
309,
261,
5990,
1276,
16717,
5852,
1305,
13,
288,
7734,
16717,
5852,
1305,
707,
273,
261,
9220,
5852,
1305,
13,
3140,
31,
7734,
18559,
10940,
647,
273,
16116,
692,
760,
974,
1876,
4712,
4766,
1850,
294,
652,
1876,
4712,
31,
7734,
309,
261,
25089,
647,
422,
446,
13,
288,
10792,
10940,
647,
273,
394,
18559,
12,
2499,
1769,
10792,
309,
261,
291,
5788,
13,
13491,
760,
974,
1876,
4712,
273,
10940,
647,
31,
10792,
469,
13491,
652,
1876,
4712,
273,
10940,
647,
31,
7734,
289,
7734,
2286,
1876,
4712,
26688,
273,
394,
2286,
1876,
4712,
12,
2039,
18,
588,
4712,
9334,
4766,
12900,
652,
1769,
7734,
10940,
647,
18,
458,
12,
529,
16,
26688,
1769,
7734,
14049,
18,
458,
12,
529,
16,
26688,
1769,
7734,
327,
31,
5411,
289,
5411,
309,
261,
5990,
1276,
2286,
13,
288,
2398,
202,
974,
1592,
974,
273,
261,
974,
13,
3140,
31,
2398,
202,
759,
506,
1060,
30,
2398,
202,
759,
971,
392,
1520,
353,
6718,
2674,
16,
1508,
804,
5368,
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,
3037,
974,
12,
974,
652,
13,
288,
3639,
509,
15546,
273,
652,
18,
588,
11948,
5621,
3639,
309,
16051,
9829,
18,
291,
4782,
12,
22760,
3719,
5411,
327,
31,
3639,
1250,
16116,
273,
12832,
18,
291,
5788,
12,
22760,
1769,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
514,
508,
273,
652,
18,
17994,
5621,
3639,
1033,
3140,
273,
14049,
18,
588,
12,
529,
1769,
3639,
309,
261,
5990,
480,
446,
13,
288,
5411,
309,
261,
5990,
1276,
16717,
5852,
1305,
13,
288,
7734,
16717,
5852,
1305,
707,
273,
261,
9220,
5852,
1305,
13,
3140,
31,
7734,
18559,
10940,
647,
273,
16116,
692,
760,
974,
1876,
4712,
4766,
1850,
294,
652,
1876,
4712,
2
] |
|
((ASTNode) result).setOffsetAndLength(endif.context_directive_start, endif.context_directive_end - endif.context_directive_start);
|
((ASTNode) result).setOffsetAndLength(endif.context_directive_start, endif.getDirectiveLength());
|
private IASTPreprocessorStatement createASTEndif(_Endif endif) { IASTPreprocessorEndifStatement result = new ASTEndif(); ((ASTNode) result).setOffsetAndLength(endif.context_directive_start, endif.context_directive_end - endif.context_directive_start); result.setParent(rootNode); result.setPropertyInParent(IASTTranslationUnit.PREPROCESSOR_STATEMENT); return result; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/92b49872f2c9895f7f9b9a4e19f3e752f1acf50a/LocationMap.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/LocationMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
9053,
1386,
8700,
3406,
752,
9053,
1638,
430,
24899,
1638,
430,
28334,
13,
288,
3639,
467,
9053,
1386,
8700,
1638,
430,
3406,
563,
273,
394,
9183,
1638,
430,
5621,
3639,
14015,
9053,
907,
13,
563,
2934,
542,
2335,
1876,
1782,
12,
409,
430,
18,
2472,
67,
22347,
67,
1937,
16,
7734,
28334,
18,
2472,
67,
22347,
67,
409,
300,
28334,
18,
2472,
67,
22347,
67,
1937,
1769,
202,
202,
2088,
18,
542,
3054,
12,
3085,
907,
1769,
202,
202,
2088,
18,
542,
1396,
382,
3054,
12,
45,
9053,
6717,
2802,
18,
3670,
16560,
916,
67,
28411,
1769,
3639,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
467,
9053,
1386,
8700,
3406,
752,
9053,
1638,
430,
24899,
1638,
430,
28334,
13,
288,
3639,
467,
9053,
1386,
8700,
1638,
430,
3406,
563,
273,
394,
9183,
1638,
430,
5621,
3639,
14015,
9053,
907,
13,
563,
2934,
542,
2335,
1876,
1782,
12,
409,
430,
18,
2472,
67,
22347,
67,
1937,
16,
7734,
28334,
18,
2472,
67,
22347,
67,
409,
300,
28334,
18,
2472,
67,
22347,
67,
1937,
1769,
202,
202,
2088,
18,
542,
3054,
12,
3085,
907,
1769,
202,
202,
2088,
18,
542,
1396,
382,
3054,
12,
45,
9053,
6717,
2802,
18,
3670,
16560,
916,
67,
28411,
1769,
3639,
327,
563,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public ICTreeNode getParentNode(){ return parentNode; }
|
public ICTreeNode getParentNode() { return parentNode; }
|
public ICTreeNode getParentNode(){ return parentNode; }
|
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/a72b7f6d1208acb4762f6ea86440f32d01a6d33a/AbstractTreeViewer.java/clean/src/java/com/idega/presentation/ui/AbstractTreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1268,
992,
907,
5089,
907,
1435,
95,
1377,
327,
7234,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
1268,
992,
907,
5089,
907,
1435,
95,
1377,
327,
7234,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void delete() { checkPermissionsToMakeOperations();
|
public void delete() {
|
public void delete() { checkPermissionsToMakeOperations(); removeExtension(); super.delete(); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/6f5486d955e45522111c2149f7d538ac62a9ad17/ExtensionSpaceOccupation.java/buggy/src/net/sourceforge/fenixedu/domain/space/ExtensionSpaceOccupation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
1435,
288,
202,
1893,
6521,
774,
6464,
9343,
5621,
3639,
1206,
3625,
5621,
3639,
2240,
18,
3733,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1430,
1435,
288,
202,
1893,
6521,
774,
6464,
9343,
5621,
3639,
1206,
3625,
5621,
3639,
2240,
18,
3733,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
.findEditor(entry.editorInfo.editorInput)) gotoEntry(entry);
|
.findEditor(entry.editorInfo.editorInput)) { gotoEntry(entry); }
|
void restoreState(IMemento memento) { IMemento editorsMem = memento.getChild(IWorkbenchConstants.TAG_EDITORS); IMemento items[] = memento.getChildren(IWorkbenchConstants.TAG_ITEM); if (items.length == 0 || editorsMem == null) { if (page.getActiveEditor() != null) markLocation(page.getActiveEditor()); return; } IMemento children[] = editorsMem .getChildren(IWorkbenchConstants.TAG_EDITOR); NavigationHistoryEditorInfo editorsInfo[] = new NavigationHistoryEditorInfo[children.length]; for (int i = 0; i < editorsInfo.length; i++) { editorsInfo[i] = new NavigationHistoryEditorInfo(children[i]); editors.add(editorsInfo[i]); } for (int i = 0; i < items.length; i++) { IMemento item = items[i]; int index = item.getInteger(IWorkbenchConstants.TAG_INDEX) .intValue(); NavigationHistoryEditorInfo info = editorsInfo[index]; info.refCount++; NavigationHistoryEntry entry = new NavigationHistoryEntry(info, page, null, null); history.add(entry); entry.restoreState(item); if (item.getString(IWorkbenchConstants.TAG_ACTIVE) != null) activeEntry = i; } NavigationHistoryEntry entry = getEntry(activeEntry); if (entry != null && entry.editorInfo.editorInput != null) { if (page.getActiveEditor() == page .findEditor(entry.editorInfo.editorInput)) gotoEntry(entry); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/NavigationHistory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/NavigationHistory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
5217,
1119,
12,
3445,
820,
83,
312,
820,
83,
13,
288,
3639,
6246,
820,
83,
29431,
3545,
273,
312,
820,
83,
18,
588,
1763,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
13208,
55,
1769,
3639,
6246,
820,
83,
1516,
8526,
273,
312,
820,
83,
18,
588,
4212,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
12674,
1769,
3639,
309,
261,
3319,
18,
2469,
422,
374,
747,
29431,
3545,
422,
446,
13,
288,
5411,
309,
261,
2433,
18,
588,
3896,
6946,
1435,
480,
446,
13,
7734,
2267,
2735,
12,
2433,
18,
588,
3896,
6946,
10663,
5411,
327,
31,
3639,
289,
3639,
6246,
820,
83,
2325,
8526,
273,
29431,
3545,
7734,
263,
588,
4212,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
13208,
1769,
3639,
22924,
5623,
6946,
966,
29431,
966,
8526,
273,
394,
22924,
5623,
6946,
966,
63,
5906,
18,
2469,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
29431,
966,
18,
2469,
31,
277,
27245,
288,
5411,
29431,
966,
63,
77,
65,
273,
394,
22924,
5623,
6946,
966,
12,
5906,
63,
77,
19226,
5411,
29431,
18,
1289,
12,
4619,
1383,
966,
63,
77,
19226,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
5411,
6246,
820,
83,
761,
273,
1516,
63,
77,
15533,
5411,
509,
770,
273,
761,
18,
588,
4522,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
9199,
13,
10792,
263,
474,
620,
5621,
5411,
22924,
5623,
6946,
966,
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,
5217,
1119,
12,
3445,
820,
83,
312,
820,
83,
13,
288,
3639,
6246,
820,
83,
29431,
3545,
273,
312,
820,
83,
18,
588,
1763,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
13208,
55,
1769,
3639,
6246,
820,
83,
1516,
8526,
273,
312,
820,
83,
18,
588,
4212,
12,
45,
2421,
22144,
2918,
18,
7927,
67,
12674,
1769,
3639,
309,
261,
3319,
18,
2469,
422,
374,
747,
29431,
3545,
422,
446,
13,
288,
5411,
309,
261,
2433,
18,
588,
3896,
6946,
1435,
480,
446,
13,
7734,
2267,
2735,
12,
2433,
18,
588,
3896,
6946,
10663,
5411,
327,
31,
3639,
289,
3639,
6246,
820,
83,
2325,
8526,
273,
29431,
3545,
7734,
263,
588,
4212,
12,
45,
2421,
22144,
2
] |
public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:960:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt62=11; switch ( input.LA(1) ) { case ID: alt62=1; break; case 17: alt62=2; break; case 57: alt62=3; break; case 28: alt62=4; break; case 26: alt62=5; break; case 33: alt62=6; break; case 34: alt62=7; break; case 29: alt62=8; break; case 31: alt62=9; break; case 27: alt62=10; break; case STRING: alt62=11; break; default: NoViableAltException nvae = new NoViableAltException("956:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 62, 0, input); throw nvae; } switch (alt62) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:960:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2737); word=id.getText(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:961:17: 'import' { match(input,17,FOLLOW_17_in_word2749); word="import"; } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:962:17: 'use' { match(input,57,FOLLOW_57_in_word2758); word="use"; } break; case 4 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:963:17: 'rule' { match(input,28,FOLLOW_28_in_word2770); word="rule"; } break; case 5 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:964:17: 'query' { match(input,26,FOLLOW_26_in_word2781); word="query"; } break; case 6 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:965:17: 'salience' { match(input,33,FOLLOW_33_in_word2791); word="salience"; } break; case 7 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:966:17: 'no-loop' { match(input,34,FOLLOW_34_in_word2799); word="no-loop"; } break; case 8 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:967:17: 'when' { match(input,29,FOLLOW_29_in_word2807); word="when"; } break; case 9 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:968:17: 'then' { match(input,31,FOLLOW_31_in_word2818); word="then"; } break; case 10 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:969:17: 'end' { match(input,27,FOLLOW_27_in_word2829); word="end"; } break; case 11 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:970:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word2843); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/cdf6cb875caeaced53629d36cdc1a31cdc22d9ca/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
29,
4848,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
296,
409,
11,
571,
609,
33,
9469,
262,
5411,
509,
3770,
8898,
33,
2499,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
1599,
30,
7734,
3770,
8898,
33,
21,
31,
7734,
898,
31,
5411,
648,
8043,
30,
7734,
3770,
8898,
33,
22,
31,
7734,
898,
31,
5411,
648,
15981,
30,
7734,
3770,
8898,
33,
23,
31,
7734,
898,
31,
5411,
648,
9131,
30,
7734,
3770,
8898,
33,
24,
31,
7734,
898,
31,
5411,
648,
10659,
30,
7734,
3770,
8898,
33,
25,
31,
7734,
898,
31,
5411,
648,
13159,
30,
7734,
3770,
8898,
33,
26,
31,
7734,
898,
31,
5411,
648,
13438,
30,
7734,
3770,
8898,
33,
27,
31,
7734,
898,
31,
5411,
648,
12899,
30,
7734,
3770,
8898,
33,
28,
31,
7734,
898,
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,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
29,
4848,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
296,
409,
2
] |
||
parameters = (ICPPASTTemplateParameter[]) ArrayUtil.append( ICPPASTTemplateParameter.class, parameters, parm );
|
if (parm != null) { parametersPos++; parameters = (ICPPASTTemplateParameter[]) ArrayUtil.append( ICPPASTTemplateParameter.class, parameters, parm ); }
|
public void addTemplateParamter(ICPPASTTemplateParameter parm) { parameters = (ICPPASTTemplateParameter[]) ArrayUtil.append( ICPPASTTemplateParameter.class, parameters, parm ); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8a37c61a8cf7ad9a8e5afee104a5b301a0555dbb/CPPASTTemplateDeclaration.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTTemplateDeclaration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2283,
786,
387,
12,
2871,
52,
4066,
882,
2283,
1662,
19924,
13,
288,
3639,
309,
261,
1065,
81,
480,
446,
13,
288,
1472,
1616,
9904,
31,
1472,
273,
261,
2871,
52,
4066,
882,
2283,
1662,
63,
5717,
27207,
18,
6923,
12,
467,
4258,
4066,
882,
2283,
1662,
18,
1106,
16,
1472,
16,
19924,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2283,
786,
387,
12,
2871,
52,
4066,
882,
2283,
1662,
19924,
13,
288,
3639,
309,
261,
1065,
81,
480,
446,
13,
288,
1472,
1616,
9904,
31,
1472,
273,
261,
2871,
52,
4066,
882,
2283,
1662,
63,
5717,
27207,
18,
6923,
12,
467,
4258,
4066,
882,
2283,
1662,
18,
1106,
16,
1472,
16,
19924,
11272,
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
] |
ExpectationCounter aCounter = new ExpectationCounter("a test counter"); aCounter.setExpected(1); aCounter.setFailOnVerify();
|
ExpectationCounter aCounter = new ExpectationCounter("a test counter"); aCounter.setExpected(1); aCounter.setFailOnVerify();
|
public void testFailOnVerify() { ExpectationCounter aCounter = new ExpectationCounter("a test counter"); aCounter.setExpected(1); aCounter.setFailOnVerify(); aCounter.inc(); aCounter.inc(); AssertMo.assertVerifyFails(aCounter); }
|
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/ExpectationCounterTest.java/clean/jmock/core/src/test/jmock/expectation/ExpectationCounterTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3754,
1398,
8097,
1435,
288,
3639,
15510,
367,
4789,
279,
4789,
273,
394,
15510,
367,
4789,
2932,
69,
1842,
3895,
8863,
3639,
279,
4789,
18,
542,
6861,
12,
21,
1769,
3639,
279,
4789,
18,
542,
3754,
1398,
8097,
5621,
3639,
279,
4789,
18,
9523,
5621,
3639,
279,
4789,
18,
9523,
5621,
3639,
5452,
16727,
18,
11231,
8097,
30800,
12,
69,
4789,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1842,
3754,
1398,
8097,
1435,
288,
3639,
15510,
367,
4789,
279,
4789,
273,
394,
15510,
367,
4789,
2932,
69,
1842,
3895,
8863,
3639,
279,
4789,
18,
542,
6861,
12,
21,
1769,
3639,
279,
4789,
18,
542,
3754,
1398,
8097,
5621,
3639,
279,
4789,
18,
9523,
5621,
3639,
279,
4789,
18,
9523,
5621,
3639,
5452,
16727,
18,
11231,
8097,
30800,
12,
69,
4789,
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
] |
throw org.postgresql.Driver.notImplemented();
|
public void setFetchDirection(int direction) throws SQLException { throw org.postgresql.Driver.notImplemented(); }
|
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/16a30346c86590fbdcd83cacd2a0a9dbd2cd00dc/AbstractJdbc2Statement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
5005,
8212,
12,
474,
4068,
13,
1216,
6483,
202,
95,
202,
202,
12849,
2358,
18,
2767,
24330,
18,
4668,
18,
902,
8644,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
5005,
8212,
12,
474,
4068,
13,
1216,
6483,
202,
95,
202,
202,
12849,
2358,
18,
2767,
24330,
18,
4668,
18,
902,
8644,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 RubyInteger op_or(IRubyObject num) { RubyNumeric other = numericValue(num);
|
public RubyInteger op_or(RubyNumeric other) {
|
public RubyInteger op_or(IRubyObject num) { RubyNumeric other = numericValue(num); return newBignum(value.or(bigIntValue(other))); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
1061,
67,
280,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
327,
394,
38,
724,
379,
12,
1132,
18,
280,
12,
14002,
1702,
620,
12,
3011,
3719,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
1061,
67,
280,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
327,
394,
38,
724,
379,
12,
1132,
18,
280,
12,
14002,
1702,
620,
12,
3011,
3719,
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
] |
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" );
|
private static PrintWriter createLogFile() { String tempDir = System.getProperty("java.io.tmpdir");
|
private static PrintWriter createLogFile( ) { String tempDir = System.getProperty( "java.io.tmpdir" ); File tempDirFile = new File( tempDir ); try { tempDirFile.mkdirs( ); } catch( RuntimeException e1 ) { e1.printStackTrace( ); } String logfilename = LOGFILENAME; System.out.println( "creating Logfile: '" + logfilename + "' in: '" + tempDir + "'" ); File out = new File( tempDir, logfilename ); PrintWriter logfile; if( tempDirFile.canWrite( ) ) { try { BufferedWriter fw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(out), "UTF-8")); logfile = setLogFile( new PrintWriter( fw ) ); } catch( Exception e ) { logfile = null; e.printStackTrace( ); } } else { logfile = null; System.err.println( "Fatal: cannot write File: '" + logfilename + "' into: " + tempDirFile ); } return logfile; }
|
58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/e9f36f2e299fca450d91a023edcfe79230cc8db2/Debug.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/util/Debug.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
14071,
752,
19103,
12,
225,
262,
225,
288,
565,
514,
20719,
273,
2332,
18,
588,
1396,
12,
315,
6290,
18,
1594,
18,
5645,
1214,
6,
11272,
565,
1387,
282,
20719,
812,
273,
394,
1387,
12,
20719,
11272,
565,
775,
565,
288,
1377,
20719,
812,
18,
24816,
8291,
12,
225,
11272,
565,
289,
565,
1044,
12,
3235,
425,
21,
262,
565,
288,
1377,
425,
21,
18,
1188,
6332,
12,
225,
11272,
565,
289,
565,
514,
613,
3459,
273,
2018,
16080,
31,
565,
2332,
18,
659,
18,
8222,
12,
315,
23799,
1827,
768,
30,
2119,
397,
613,
3459,
397,
2491,
316,
30,
2119,
397,
20719,
397,
5862,
11272,
565,
1387,
596,
273,
394,
1387,
12,
20719,
16,
613,
3459,
11272,
1377,
14071,
15204,
31,
1377,
309,
12,
20719,
812,
18,
4169,
3067,
12,
225,
262,
262,
1377,
288,
3639,
775,
3639,
288,
5411,
22490,
7600,
273,
394,
22490,
12,
2704,
24248,
12,
2704,
12942,
12,
659,
3631,
10792,
315,
5159,
17,
28,
7923,
1769,
1850,
15204,
273,
444,
19103,
12,
394,
14071,
12,
7600,
262,
11272,
3639,
289,
3639,
1044,
12,
1185,
425,
262,
3639,
288,
1850,
15204,
273,
446,
31,
1850,
425,
18,
1188,
6332,
12,
225,
11272,
3639,
289,
1377,
289,
1377,
469,
1377,
288,
3639,
15204,
273,
446,
31,
3639,
2332,
18,
370,
18,
8222,
12,
315,
19593,
30,
2780,
1045,
1387,
30,
2119,
397,
613,
3459,
397,
2491,
1368,
30,
315,
397,
18701,
20719,
812,
11272,
1377,
289,
565,
327,
15204,
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,
282,
3238,
760,
14071,
752,
19103,
12,
225,
262,
225,
288,
565,
514,
20719,
273,
2332,
18,
588,
1396,
12,
315,
6290,
18,
1594,
18,
5645,
1214,
6,
11272,
565,
1387,
282,
20719,
812,
273,
394,
1387,
12,
20719,
11272,
565,
775,
565,
288,
1377,
20719,
812,
18,
24816,
8291,
12,
225,
11272,
565,
289,
565,
1044,
12,
3235,
425,
21,
262,
565,
288,
1377,
425,
21,
18,
1188,
6332,
12,
225,
11272,
565,
289,
565,
514,
613,
3459,
273,
2018,
16080,
31,
565,
2332,
18,
659,
18,
8222,
12,
315,
23799,
1827,
768,
30,
2119,
397,
613,
3459,
397,
2491,
316,
30,
2119,
397,
20719,
397,
5862,
11272,
565,
1387,
596,
273,
394,
1387,
12,
20719,
16,
613,
2
] |
public boolean matches(Invocation invocation) { return !hasBeenInvoked(); }
|
public boolean matches( Invocation invocation ) { return !hasBeenInvoked(); }
|
public boolean matches(Invocation invocation) { return !hasBeenInvoked(); }
|
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/InvokeOnceMatcher.java/buggy/jmock/core/src/org/jmock/core/matcher/InvokeOnceMatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1885,
12,
9267,
9495,
13,
288,
3639,
327,
401,
5332,
25931,
26215,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1885,
12,
9267,
9495,
13,
288,
3639,
327,
401,
5332,
25931,
26215,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case Token.INIT_LIST: generateCodeFromNode(child, node); while (null != (child = child.getNext())) { cfw.add(ByteCode.DUP); generateCodeFromNode(child, node); cfw.add(ByteCode.POP); } break;
|
private void generateCodeFromNode(Node node, Node parent) { // System.out.println("gen code for " + node.toString()); int type = node.getType(); Node child = node.getFirstChild(); switch (type) { case Token.LOOP: case Token.LABEL: visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } break; case Token.WITH: ++withNesting; visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } --withNesting; break; case Token.CASE: case Token.DEFAULT: // XXX shouldn't these be StatementNodes? case Token.SCRIPT: case Token.BLOCK: case Token.EMPTY: // no-ops. visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } break; case Token.LOCAL_BLOCK: { visitStatement(node); int local = getNewWordLocal(); node.putIntProp(Node.LOCAL_PROP, local); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } releaseWordLocal((short)local); node.removeProp(Node.LOCAL_PROP); break; } case Token.USE_STACK: break; case Token.FUNCTION: if (fnCurrent != null || parent.getType() != Token.SCRIPT) { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); OptFunctionNode ofn = OptFunctionNode.get(scriptOrFn, fnIndex); int t = ofn.fnode.getFunctionType(); if (t != FunctionNode.FUNCTION_STATEMENT) { visitFunction(ofn, t); } } break; case Token.NAME: visitName(node); break; case Token.NEW: case Token.CALL: visitCall(node, type, child); break; case Token.NUMBER: visitNumber(node); break; case Token.STRING: cfw.addPush(node.getString()); break; case Token.THIS: cfw.addALoad(thisObjLocal); break; case Token.THISFN: cfw.add(ByteCode.ALOAD_0); break; case Token.NULL: cfw.add(ByteCode.ACONST_NULL); break; case Token.TRUE: cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); break; case Token.FALSE: cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); break; case Token.UNDEFINED: Codegen.pushUndefined(cfw); break; case Token.REGEXP: visitRegexp(node); break; case Token.TRY: visitTryCatchFinally((Node.Jump)node, child); break; case Token.THROW: visitThrow(node, child); break; case Token.RETURN_POPV: if (fnCurrent == null) throw Codegen.badTree(); // fallthrough case Token.RETURN: visitStatement(node); if (child != null) { do { generateCodeFromNode(child, node); child = child.getNext(); } while (child != null); } else if (fnCurrent != null && type == Token.RETURN) { Codegen.pushUndefined(cfw); } else { if (popvLocal < 0) throw Codegen.badTree(); cfw.addALoad(popvLocal); } if (epilogueLabel == -1) epilogueLabel = cfw.acquireLabel(); cfw.add(ByteCode.GOTO, epilogueLabel); break; case Token.SWITCH: visitSwitch((Node.Jump)node, child); break; case Token.COMMA: { Node next = child.getNext(); while (next != null) { generateCodeFromNode(child, node); cfw.add(ByteCode.POP); child = next; next = next.getNext(); } generateCodeFromNode(child, node); break; } case Token.INIT_LIST: generateCodeFromNode(child, node); while (null != (child = child.getNext())) { cfw.add(ByteCode.DUP); generateCodeFromNode(child, node); cfw.add(ByteCode.POP); } break; case Token.CATCH_SCOPE: cfw.addPush(node.getString()); generateCodeFromNode(child, node); addScriptRuntimeInvoke("newCatchScope", "(Ljava/lang/String;Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); break; case Token.ENTERWITH: visitEnterWith(node, child); break; case Token.LEAVEWITH: visitLeaveWith(node, child); break; case Token.ENUM_INIT: { generateCodeFromNode(child, node); cfw.addALoad(variableObjectLocal); addScriptRuntimeInvoke("enumInit", "(Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); int local = getLocalBlockRegister(node); cfw.addAStore(local); break; } case Token.ENUM_NEXT: case Token.ENUM_ID: { int local = getLocalBlockRegister(node); cfw.addALoad(local); if (type == Token.ENUM_NEXT) { addScriptRuntimeInvoke( "enumNext", "(Ljava/lang/Object;)Ljava/lang/Boolean;"); } else { addScriptRuntimeInvoke( "enumId", "(Ljava/lang/Object;)Ljava/lang/String;"); } break; } case Token.POP: visitStatement(node); if (child.getType() == Token.SETVAR) { /* special case this so as to avoid unnecessary load's & pop's */ visitSetVar(child, child.getFirstChild(), false); } else { while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) cfw.add(ByteCode.POP2); else cfw.add(ByteCode.POP); } break; case Token.POPV: visitStatement(node); generateCodeFromNode(child, node); if (popvLocal < 0) { popvLocal = getNewWordLocal(); } cfw.addAStore(popvLocal); break; case Token.TARGET: visitTarget((Node.Target)node); break; case Token.JSR: case Token.GOTO: case Token.IFEQ: case Token.IFNE: visitGOTO((Node.Jump)node, type, child); break; case Token.FINALLY: visitFinally(node, child); break; case Token.NOT: { int trueTarget = cfw.acquireLabel(); int falseTarget = cfw.acquireLabel(); int beyond = cfw.acquireLabel(); generateIfJump(child, node, trueTarget, falseTarget); cfw.markLabel(trueTarget); cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); cfw.add(ByteCode.GOTO, beyond); cfw.markLabel(falseTarget); cfw.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); cfw.markLabel(beyond); cfw.adjustStackTop(-1); break; } case Token.BITNOT: generateCodeFromNode(child, node); addScriptRuntimeInvoke("toInt32", "(Ljava/lang/Object;)I"); cfw.addPush(-1); // implement ~a as (a ^ -1) cfw.add(ByteCode.IXOR); cfw.add(ByteCode.I2D); addDoubleWrap(); break; case Token.VOID: generateCodeFromNode(child, node); cfw.add(ByteCode.POP); Codegen.pushUndefined(cfw); break; case Token.TYPEOF: generateCodeFromNode(child, node); addScriptRuntimeInvoke("typeof", "(Ljava/lang/Object;" +")Ljava/lang/String;"); break; case Token.TYPEOFNAME: visitTypeofname(node); break; case Token.INC: visitIncDec(node, true); break; case Token.DEC: visitIncDec(node, false); break; case Token.OR: case Token.AND: { generateCodeFromNode(child, node); cfw.add(ByteCode.DUP); addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); int falseTarget = cfw.acquireLabel(); if (type == Token.AND) cfw.add(ByteCode.IFEQ, falseTarget); else cfw.add(ByteCode.IFNE, falseTarget); cfw.add(ByteCode.POP); generateCodeFromNode(child.getNext(), node); cfw.markLabel(falseTarget); } break; case Token.HOOK : { Node ifThen = child.getNext(); Node ifElse = ifThen.getNext(); generateCodeFromNode(child, node); addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); int elseTarget = cfw.acquireLabel(); cfw.add(ByteCode.IFEQ, elseTarget); short stack = cfw.getStackTop(); generateCodeFromNode(ifThen, node); int afterHook = cfw.acquireLabel(); cfw.add(ByteCode.GOTO, afterHook); cfw.markLabel(elseTarget, stack); generateCodeFromNode(ifElse, node); cfw.markLabel(afterHook); } break; case Token.ADD: { generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); switch (node.getIntProp(Node.ISNUMBER_PROP, -1)) { case Node.BOTH: cfw.add(ByteCode.DADD); break; case Node.LEFT: addOptRuntimeInvoke("add", "(DLjava/lang/Object;)Ljava/lang/Object;"); break; case Node.RIGHT: addOptRuntimeInvoke("add", "(Ljava/lang/Object;D)Ljava/lang/Object;"); break; default: addScriptRuntimeInvoke("add", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); } } break; case Token.MUL: visitArithmetic(node, ByteCode.DMUL, child, parent); break; case Token.SUB: visitArithmetic(node, ByteCode.DSUB, child, parent); break; case Token.DIV: case Token.MOD: visitArithmetic(node, type == Token.DIV ? ByteCode.DDIV : ByteCode.DREM, child, parent); break; case Token.BITOR: case Token.BITXOR: case Token.BITAND: case Token.LSH: case Token.RSH: case Token.URSH: visitBitOp(node, type, child); break; case Token.POS: case Token.NEG: generateCodeFromNode(child, node); addObjectToDouble(); if (type == Token.NEG) { cfw.add(ByteCode.DNEG); } addDoubleWrap(); break; case Optimizer.TO_DOUBLE: // cnvt to double (not Double) generateCodeFromNode(child, node); addObjectToDouble(); break; case Optimizer.TO_OBJECT: { // convert from double int prop = -1; if (child.getType() == Token.NUMBER) { prop = child.getIntProp(Node.ISNUMBER_PROP, -1); } if (prop != -1) { child.removeProp(Node.ISNUMBER_PROP); generateCodeFromNode(child, node); child.putIntProp(Node.ISNUMBER_PROP, prop); } else { generateCodeFromNode(child, node); addDoubleWrap(); } break; } case Token.IN: case Token.INSTANCEOF: case Token.LE: case Token.LT: case Token.GE: case Token.GT: { int trueGOTO = cfw.acquireLabel(); int falseGOTO = cfw.acquireLabel(); visitIfJumpRelOp(node, child, trueGOTO, falseGOTO); addJumpedBooleanWrap(trueGOTO, falseGOTO); break; } case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: { int trueGOTO = cfw.acquireLabel(); int falseGOTO = cfw.acquireLabel(); visitIfJumpEqOp(node, child, trueGOTO, falseGOTO); addJumpedBooleanWrap(trueGOTO, falseGOTO); break; } case Token.GETPROP: visitGetProp(node, child, false); break; case Token.GETELEM: visitGetElem(node, child, false); break; case Token.GETVAR: visitGetVar(node); break; case Token.SETVAR: visitSetVar(node, child, true); break; case Token.SETNAME: visitSetName(node, child); break; case Token.SETPROP: case Token.SETPROP_OP: visitSetProp(type, node, child); break; case Token.SETELEM: case Token.SETELEM_OP: { generateCodeFromNode(child, node); child = child.getNext(); if (type == Token.SETELEM_OP) { cfw.add(ByteCode.DUP); } generateCodeFromNode(child, node); child = child.getNext(); boolean indexIsNumber = (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1); if (type == Token.SETELEM_OP) { if (indexIsNumber) { // stack: ... object object number // -> ... object number object number cfw.add(ByteCode.DUP2_X1); cfw.addALoad(variableObjectLocal); addOptRuntimeInvoke( "getElem", "(Ljava/lang/Object;D" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { // stack: ... object object indexObject // -> ... object indexObject object indexObject cfw.add(ByteCode.DUP_X1); cfw.addALoad(variableObjectLocal); addScriptRuntimeInvoke( "getElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } } generateCodeFromNode(child, node); cfw.addALoad(variableObjectLocal); if (indexIsNumber) { addOptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"D" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } break; } case Token.DELPROP: cfw.addALoad(contextLocal); cfw.addALoad(variableObjectLocal); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } addScriptRuntimeInvoke("delete", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); break; case Token.BINDNAME: visitBind(node, child); break; case Token.LOCAL_LOAD: cfw.addALoad(getLocalBlockRegister(node)); break; default: throw new RuntimeException("Unexpected node type "+type); } }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/37be8f9cfb362f40c2f19056693cb9e21cb13bcb/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
28570,
12,
907,
756,
16,
2029,
982,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
315,
397,
756,
18,
10492,
10663,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
1620,
261,
723,
13,
288,
2868,
648,
3155,
18,
28677,
30,
2868,
648,
3155,
18,
13545,
30,
7734,
3757,
3406,
12,
2159,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
5621,
7734,
289,
7734,
898,
31,
2868,
648,
3155,
18,
9147,
30,
7734,
965,
1918,
50,
10100,
31,
7734,
3757,
3406,
12,
2159,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
5621,
7734,
289,
7734,
1493,
1918,
50,
10100,
31,
7734,
898,
31,
2868,
648,
3155,
18,
13415,
30,
2868,
648,
3155,
18,
5280,
30,
7734,
368,
11329,
12044,
1404,
4259,
506,
8056,
3205,
35,
2868,
648,
3155,
18,
10885,
30,
2868,
648,
3155,
18,
11403,
30,
2868,
648,
3155,
18,
13625,
30,
7734,
368,
1158,
17,
4473,
18,
7734,
3757,
3406,
12,
2159,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
5621,
7734,
289,
7734,
898,
31,
2868,
648,
3155,
18,
14922,
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,
377,
3238,
918,
2103,
1085,
28570,
12,
907,
756,
16,
2029,
982,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
315,
397,
756,
18,
10492,
10663,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
1620,
261,
723,
13,
288,
2868,
648,
3155,
18,
28677,
30,
2868,
648,
3155,
18,
13545,
30,
7734,
3757,
3406,
12,
2159,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
5621,
7734,
289,
7734,
898,
31,
2868,
648,
3155,
18,
9147,
30,
7734,
965,
1918,
50,
10100,
31,
7734,
3757,
2
] |
|
if( CURRENT_TOOLTIP != null && CURRENT_TOOLTIP.isDisposed() ) { toolTipHookByTypeRecursively(CURRENT_TOOLTIP, hideOnMouseDown, SWT.MouseDown);
|
if (CURRENT_TOOLTIP != null && CURRENT_TOOLTIP.isDisposed()) { toolTipHookByTypeRecursively(CURRENT_TOOLTIP, hideOnMouseDown, SWT.MouseDown);
|
public void setHideOnMouseDown(final boolean hideOnMouseDown) { // Only needed if there's currently a tooltip active if( CURRENT_TOOLTIP != null && ! CURRENT_TOOLTIP.isDisposed() ) { // Only change if value really changed if( hideOnMouseDown != this.hideOnMouseDown ) { control.getDisplay().syncExec(new Runnable() { public void run() { if( CURRENT_TOOLTIP != null && CURRENT_TOOLTIP.isDisposed() ) { toolTipHookByTypeRecursively(CURRENT_TOOLTIP, hideOnMouseDown, SWT.MouseDown); } } }); } } this.hideOnMouseDown = hideOnMouseDown; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/dd8160176962cd94b3f202f285f584ef788ad327/ToolTip.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/window/ToolTip.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
15690,
1398,
9186,
4164,
12,
6385,
1250,
6853,
1398,
9186,
4164,
13,
288,
202,
202,
759,
5098,
3577,
309,
1915,
1807,
4551,
279,
11915,
2695,
202,
202,
430,
12,
18484,
67,
26263,
56,
2579,
480,
446,
597,
401,
18484,
67,
26263,
56,
2579,
18,
291,
1669,
7423,
1435,
262,
288,
1082,
202,
759,
5098,
2549,
309,
460,
8654,
3550,
1082,
202,
430,
12,
6853,
1398,
9186,
4164,
480,
333,
18,
11248,
1398,
9186,
4164,
262,
288,
9506,
202,
7098,
18,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
288,
6862,
202,
482,
918,
1086,
1435,
288,
25083,
202,
430,
12,
18484,
67,
26263,
56,
2579,
480,
446,
597,
18484,
67,
26263,
56,
2579,
18,
291,
1669,
7423,
1435,
262,
288,
6862,
1082,
202,
6738,
14189,
5394,
14145,
12474,
12,
15487,
67,
26263,
56,
2579,
16,
6853,
1398,
9186,
4164,
16,
348,
8588,
18,
9186,
4164,
1769,
25083,
202,
97,
6862,
202,
97,
6862,
6862,
202,
22938,
1082,
202,
97,
202,
202,
97,
9506,
202,
2211,
18,
11248,
1398,
9186,
4164,
273,
6853,
1398,
9186,
4164,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
15690,
1398,
9186,
4164,
12,
6385,
1250,
6853,
1398,
9186,
4164,
13,
288,
202,
202,
759,
5098,
3577,
309,
1915,
1807,
4551,
279,
11915,
2695,
202,
202,
430,
12,
18484,
67,
26263,
56,
2579,
480,
446,
597,
401,
18484,
67,
26263,
56,
2579,
18,
291,
1669,
7423,
1435,
262,
288,
1082,
202,
759,
5098,
2549,
309,
460,
8654,
3550,
1082,
202,
430,
12,
6853,
1398,
9186,
4164,
480,
333,
18,
11248,
1398,
9186,
4164,
262,
288,
9506,
202,
7098,
18,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
288,
6862,
202,
482,
918,
1086,
1435,
288,
25083,
202,
430,
12,
18484,
67,
26263,
56,
2579,
480,
446,
597,
18484,
67,
26263,
56,
2579,
2
] |
vPhaseReport.addElement(r);
|
addReport(r);
|
public void collapseBuilding( Building bldg, Hashtable positionMap ) { // Loop through the hexes in the building, and apply // damage to all entities inside or on top of the building. Report r; final int phaseCF = bldg.getPhaseCF(); Enumeration bldgCoords = bldg.getCoords(); while ( bldgCoords.hasMoreElements() ) { final Coords coords = (Coords) bldgCoords.nextElement(); // Get the Vector of Entities at these coordinates. final Vector vector = (Vector) positionMap.get( coords ); // Are there any Entities at these coords? if ( vector != null ) { // How many levels does this building have in this hex? final IHex curHex = game.getBoard().getHex( coords ); final int hexElev = curHex.surface(); final int bridgeEl = curHex.terrainLevel(Terrains.BRIDGE_ELEV); final int numFloors = Math.max(bridgeEl, curHex.terrainLevel( Terrains.BLDG_ELEV )); // Sort in elevation order Collections.sort(vector, new Comparator<Entity>() { public int compare(Entity a, Entity b) { if(a.getElevation() > b.getElevation()) return -1; else if(a.getElevation() > b.getElevation()) return 1; return 0; } }); // Walk through the entities in this position. Enumeration entities = vector.elements(); while ( entities.hasMoreElements() ) { final Entity entity = (Entity) entities.nextElement(); //final int entityElev = entity.elevationOccupied( curHex ); int floor = entity.getElevation(); // Ignore units above the building / bridge. if ( floor > numFloors) { continue; } // Treat units on the roof like // they were in the top floor. if ( floor == numFloors ) { floor--; } // Calculate collapse damage for this entity. int damage = (int) Math.ceil ( phaseCF * (numFloors-floor) / 10.0 ); // Infantry suffer triple damage. if ( entity instanceof Infantry ) { damage *= 3; } // Apply collapse damage the entity. // ASSUMPTION: use 5 point clusters. r = new Report(6455); r.indent(); r.subject = entity.getId(); r.add(entity.getDisplayName()); r.add(damage); vPhaseReport.addElement(r); int remaining = damage; int cluster = damage; if ( entity instanceof BattleArmor || entity instanceof Mech || entity instanceof Tank ) { cluster = 5; } while ( remaining > 0 ) { int next = Math.min( cluster, remaining ); // In www.classicbattletech.com/PDF/AskPMForumArchiveandFAQ.pdf, // pg. 18, Randall Bills says that all damage from a // collapsing building is applied to the front. HitData hit = entity.rollHitLocation (ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT ); vPhaseReport.addAll( damageEntity(entity, hit, next) ); remaining -= next; } vPhaseReport.addElement(new Report(1210)); // TODO: Why are dead entities showing up on firing phase? // Do we need to handle falling Meks? // BMRr, pg. 53 only mentions falling BattleMechs; // Tanks can't be above the floor and I guess that // infantry don't suffer falling damage. // TODO: implement basements, then fall into it. // ASSUMPTION: we'll let the Mech fall twice: once // during damageEntity() above and once here. floor = entity.getElevation(); if ( floor > 0 || floor == bridgeEl) { // ASSUMPTION: PSR to avoid pilot damage // should use mods for entity damage and // 20+ points of collapse damage (if any). PilotingRollData psr = entity.getBasePilotingRoll(); entity.addPilotingModifierForTerrain(psr, coords); if ( damage >= 20 ) { psr.addModifier( 1, "20+ damage" ); } this.doEntityFallsInto( entity, coords, coords, psr ); } // Update this entity. // ASSUMPTION: this is the correct thing to do. this.entityUpdate( entity.getId() ); } // Handle the next entity. } // End have-entities-here. } // Handle the next hex of the building. // Update the building. bldg.setCurrentCF( 0 ); bldg.setPhaseCF( 0 ); send( createCollapseBuildingPacket(bldg) ); game.getBoard().collapseBuilding( bldg ); } // End private void collapseBuilding( Building )
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/0259d527ea17f9b6ac49ee6eb9adc9e0d12e163f/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13627,
16713,
12,
3998,
310,
324,
1236,
75,
16,
18559,
1754,
863,
262,
288,
3639,
368,
9720,
3059,
326,
3827,
281,
316,
326,
10504,
16,
471,
2230,
3639,
368,
302,
301,
410,
358,
777,
5140,
4832,
578,
603,
1760,
434,
326,
10504,
18,
3639,
8706,
436,
31,
3639,
727,
509,
6855,
8955,
273,
324,
1236,
75,
18,
588,
11406,
8955,
5621,
3639,
13864,
324,
1236,
75,
13089,
273,
324,
1236,
75,
18,
588,
13089,
5621,
3639,
1323,
261,
324,
1236,
75,
13089,
18,
5332,
7417,
3471,
1435,
262,
288,
5411,
727,
10320,
87,
6074,
273,
261,
13089,
13,
324,
1236,
75,
13089,
18,
4285,
1046,
5621,
5411,
368,
968,
326,
5589,
434,
16216,
622,
4259,
5513,
18,
5411,
727,
5589,
3806,
273,
261,
5018,
13,
1754,
863,
18,
588,
12,
6074,
11272,
5411,
368,
12520,
1915,
1281,
16216,
622,
4259,
6074,
35,
5411,
309,
261,
3806,
480,
446,
262,
288,
7734,
368,
9017,
4906,
7575,
1552,
333,
10504,
1240,
316,
333,
3827,
35,
7734,
727,
467,
7037,
662,
7037,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
6074,
11272,
7734,
727,
509,
3827,
17274,
90,
273,
662,
7037,
18,
18266,
5621,
7734,
727,
509,
10105,
4958,
273,
662,
7037,
18,
387,
7596,
2355,
12,
56,
264,
354,
2679,
18,
7192,
734,
7113,
67,
41,
900,
58,
1769,
7734,
727,
509,
818,
42,
383,
1383,
273,
2361,
18,
1896,
12,
18337,
4958,
16,
662,
7037,
18,
387,
7596,
2355,
12,
28991,
354,
2679,
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,
13627,
16713,
12,
3998,
310,
324,
1236,
75,
16,
18559,
1754,
863,
262,
288,
3639,
368,
9720,
3059,
326,
3827,
281,
316,
326,
10504,
16,
471,
2230,
3639,
368,
302,
301,
410,
358,
777,
5140,
4832,
578,
603,
1760,
434,
326,
10504,
18,
3639,
8706,
436,
31,
3639,
727,
509,
6855,
8955,
273,
324,
1236,
75,
18,
588,
11406,
8955,
5621,
3639,
13864,
324,
1236,
75,
13089,
273,
324,
1236,
75,
18,
588,
13089,
5621,
3639,
1323,
261,
324,
1236,
75,
13089,
18,
5332,
7417,
3471,
1435,
262,
288,
5411,
727,
10320,
87,
6074,
273,
261,
13089,
13,
324,
1236,
75,
13089,
18,
4285,
1046,
5621,
5411,
368,
968,
326,
5589,
434,
16216,
622,
4259,
5513,
2
] |
public static Serializable read(InputStream output)
|
public static Serializable read(InputStream input)
|
public static Serializable read(InputStream output) { // Explicitly prevent the stream from closing as we may need // to read the subsequent bytes as well. Stream may be auto-closed // in its finalizer. try { ObjectInputStream oin = new uncObjectInputStream(output); return (Serializable) oin.readObject(); } catch (Exception ex) { throw new MARSHAL(ex + ":" + ex.getMessage()); } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/ValueBaseHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/ValueBaseHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
13687,
855,
12,
4348,
810,
13,
225,
288,
565,
368,
24321,
715,
5309,
326,
1407,
628,
7647,
487,
732,
2026,
1608,
565,
368,
358,
855,
326,
10815,
1731,
487,
5492,
18,
3961,
2026,
506,
3656,
17,
12204,
565,
368,
316,
2097,
727,
1824,
18,
565,
775,
1377,
288,
3639,
22726,
320,
267,
273,
394,
6301,
921,
4348,
12,
2844,
1769,
3639,
327,
261,
21682,
13,
320,
267,
18,
896,
921,
5621,
1377,
289,
565,
1044,
261,
503,
431,
13,
1377,
288,
3639,
604,
394,
490,
985,
2664,
1013,
12,
338,
397,
6153,
397,
431,
18,
24906,
10663,
1377,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
13687,
855,
12,
4348,
810,
13,
225,
288,
565,
368,
24321,
715,
5309,
326,
1407,
628,
7647,
487,
732,
2026,
1608,
565,
368,
358,
855,
326,
10815,
1731,
487,
5492,
18,
3961,
2026,
506,
3656,
17,
12204,
565,
368,
316,
2097,
727,
1824,
18,
565,
775,
1377,
288,
3639,
22726,
320,
267,
273,
394,
6301,
921,
4348,
12,
2844,
1769,
3639,
327,
261,
21682,
13,
320,
267,
18,
896,
921,
5621,
1377,
289,
565,
1044,
261,
503,
431,
13,
1377,
288,
3639,
604,
394,
490,
985,
2664,
1013,
12,
338,
397,
6153,
397,
431,
18,
24906,
10663,
1377,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
/* Handle Drag and Drop */ int operations = DND.DROP_COPY | DND.DROP_MOVE; CommonDragAdapter dragAdapter = new CommonDragAdapter(contentService, this); addDragSupport(operations, dragAdapter.getSupportDragTransfers(), dragAdapter); CommonDropAdapter dropAdapter = new CommonDropAdapter(contentService, this); addDropSupport(operations, dropAdapter.getSupportedDropTransfers(), dropAdapter);
|
protected void initDragAndDrop() { // TODO initDragAndDrop is in progress. // /* Handle Drag and Drop */// int operations = DND.DROP_COPY | DND.DROP_MOVE;//// CommonDragAdapterAssistant[] assistants = contentService// .getDnDService().getCommonDragAssistants();//// Set supportedTypes = new HashSet();// supportedTypes.add(PluginTransfer.getInstance());// supportedTypes.add(LocalSelectionTransfer.getInstance());// Transfer[] transferTypes = null;// for (int i = 0; i < assistants.length; i++) {// transferTypes = assistants[i].getSupportedTransferTypes();// for (int j = 0; j < transferTypes.length; j++) {// if (transferTypes[j] != null)// supportedTypes.add(transferTypes[j]);// }// }//// Transfer[] transfers = (Transfer[]) supportedTypes// .toArray(new Transfer[supportedTypes.size()]);//// addDragSupport(operations, transfers, new CommonDragAdapter(// contentService, this));// // TODO Should the Transfers be the same here?// addDropSupport(operations, transfers, new CommonDropAdapter(// contentService, this)); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/49eb96577ec0522e254b4f6e46dc20eebd9aad2c/CommonViewer.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/CommonViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1208,
11728,
1876,
7544,
1435,
288,
9506,
202,
759,
2660,
1208,
11728,
1876,
7544,
353,
316,
4007,
18,
202,
202,
759,
202,
202,
20308,
5004,
28425,
471,
10895,
380,
28111,
202,
202,
474,
5295,
273,
463,
2908,
18,
18768,
67,
24875,
571,
463,
2908,
18,
18768,
67,
16537,
31,
1307,
202,
202,
6517,
11728,
4216,
2610,
17175,
8526,
1551,
376,
4388,
273,
913,
1179,
759,
9506,
202,
18,
588,
19053,
40,
1179,
7675,
588,
6517,
11728,
2610,
376,
4388,
5621,
1307,
202,
202,
694,
3260,
2016,
273,
394,
6847,
5621,
759,
202,
202,
4127,
2016,
18,
1289,
12,
3773,
5912,
18,
588,
1442,
10663,
759,
202,
202,
4127,
2016,
18,
1289,
12,
2042,
6233,
5912,
18,
588,
1442,
10663,
759,
202,
202,
5912,
8526,
7412,
2016,
273,
446,
31,
759,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1551,
376,
4388,
18,
2469,
31,
277,
27245,
288,
759,
1082,
202,
13866,
2016,
273,
1551,
376,
4388,
63,
77,
8009,
588,
7223,
5912,
2016,
5621,
759,
1082,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
7412,
2016,
18,
2469,
31,
525,
27245,
288,
759,
9506,
202,
430,
261,
13866,
2016,
63,
78,
65,
480,
446,
13,
759,
6862,
202,
4127,
2016,
18,
1289,
12,
13866,
2016,
63,
78,
19226,
759,
1082,
202,
97,
759,
202,
202,
97,
1307,
202,
202,
5912,
8526,
29375,
273,
261,
5912,
63,
5717,
3260,
2016,
759,
9506,
202,
18,
31447,
12,
2704,
12279,
63,
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,
1208,
11728,
1876,
7544,
1435,
288,
9506,
202,
759,
2660,
1208,
11728,
1876,
7544,
353,
316,
4007,
18,
202,
202,
759,
202,
202,
20308,
5004,
28425,
471,
10895,
380,
28111,
202,
202,
474,
5295,
273,
463,
2908,
18,
18768,
67,
24875,
571,
463,
2908,
18,
18768,
67,
16537,
31,
1307,
202,
202,
6517,
11728,
4216,
2610,
17175,
8526,
1551,
376,
4388,
273,
913,
1179,
759,
9506,
202,
18,
588,
19053,
40,
1179,
7675,
588,
6517,
11728,
2610,
376,
4388,
5621,
1307,
202,
202,
694,
3260,
2016,
273,
394,
6847,
5621,
759,
202,
202,
4127,
2016,
18,
1289,
12,
3773,
5912,
18,
588,
1442,
10663,
759,
202,
202,
4127,
2016,
18,
1289,
12,
2042,
6233,
5912,
2
] |
|
try {
|
try {
|
private void parse(final URL url) throws IOException { logger.log (Component.POLICY, "reading policy file from {0}", url); final StreamTokenizer in = new StreamTokenizer(new InputStreamReader(url.openStream())); in.resetSyntax(); in.slashSlashComments(true); in.slashStarComments(true); in.wordChars('A', 'Z'); in.wordChars('a', 'z'); in.wordChars('0', '9'); in.wordChars('.', '.'); in.wordChars('_', '_'); in.wordChars('$', '$'); in.whitespaceChars(' ', ' '); in.whitespaceChars('\t', '\t'); in.whitespaceChars('\f', '\f'); in.whitespaceChars('\n', '\n'); in.whitespaceChars('\r', '\r'); in.quoteChar('\''); in.quoteChar('"'); int tok; int state = STATE_BEGIN; List keystores = new LinkedList(); URL currentBase = null; List currentCerts = new LinkedList(); Permissions currentPerms = new Permissions(); while ((tok = in.nextToken()) != StreamTokenizer.TT_EOF) { switch (tok) { case '{': if (state != STATE_GRANT) error(url, in, "spurious '{'"); state = STATE_PERMS; tok = in.nextToken(); break; case '}': if (state != STATE_PERMS) error(url, in, "spurious '}'"); state = STATE_BEGIN; currentPerms.setReadOnly(); Certificate[] c = null; if (!currentCerts.isEmpty()) c = (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]); cs2pc.put(new CodeSource(currentBase, c), currentPerms); currentCerts.clear(); currentPerms = new Permissions(); currentBase = null; tok = in.nextToken(); if (tok != ';') in.pushBack(); continue; } if (tok != StreamTokenizer.TT_WORD) { error(url, in, "expecting word token"); } // keystore "<keystore-path>" [',' "<keystore-type>"] ';' if (in.sval.equalsIgnoreCase("keystore")) { String alg = KeyStore.getDefaultType(); tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting key store URL"); String store = in.sval; tok = in.nextToken(); if (tok == ',') { tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting key store type"); alg = in.sval; tok = in.nextToken(); } if (tok != ';') error(url, in, "expecting semicolon"); try { KeyStore keystore = KeyStore.getInstance(alg); keystore.load(new URL(url, store).openStream(), null); keystores.add(keystore); } catch (Exception x) { error(url, in, x.toString()); } } else if (in.sval.equalsIgnoreCase("grant")) { if (state != STATE_BEGIN) error(url, in, "extraneous grant keyword"); state = STATE_GRANT; } else if (in.sval.equalsIgnoreCase("signedBy")) { if (state != STATE_GRANT && state != STATE_PERMS) error(url, in, "spurious 'signedBy'"); if (keystores.isEmpty()) error(url, in, "'signedBy' with no keystores"); tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting signedBy name"); StringTokenizer st = new StringTokenizer(in.sval, ","); while (st.hasMoreTokens()) { String alias = st.nextToken(); for (Iterator it = keystores.iterator(); it.hasNext(); ) { KeyStore keystore = (KeyStore) it.next(); try { if (keystore.isCertificateEntry(alias)) currentCerts.add(keystore.getCertificate(alias)); } catch (KeyStoreException kse) { error(url, in, kse.toString()); } } } tok = in.nextToken(); if (tok != ',') { if (state != STATE_GRANT) error(url, in, "spurious ','"); in.pushBack(); } } else if (in.sval.equalsIgnoreCase("codeBase")) { if (state != STATE_GRANT) error(url, in, "spurious 'codeBase'"); tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting code base URL"); String base = expand(in.sval); if (File.separatorChar != '/') base = base.replace(File.separatorChar, '/'); try { currentBase = new URL(base); } catch (MalformedURLException mue) { error(url, in, mue.toString()); } tok = in.nextToken(); if (tok != ',') in.pushBack(); } else if (in.sval.equalsIgnoreCase("principal")) { if (state != STATE_GRANT) error(url, in, "spurious 'principal'"); tok = in.nextToken(); if (tok == StreamTokenizer.TT_WORD) { tok = in.nextToken(); if (tok != '"' && tok != '\'') error(url, in, "expecting principal name"); String name = in.sval; Principal p = null; try { Class pclass = Class.forName(in.sval); Constructor c = pclass.getConstructor(new Class[] { String.class }); p = (Principal) c.newInstance(new Object[] { name }); } catch (Exception x) { error(url, in, x.toString()); } for (Iterator it = keystores.iterator(); it.hasNext(); ) { KeyStore ks = (KeyStore) it.next(); try { for (Enumeration e = ks.aliases(); e.hasMoreElements(); ) { String alias = (String) e.nextElement(); if (ks.isCertificateEntry(alias)) { Certificate cert = ks.getCertificate(alias); if (!(cert instanceof X509Certificate)) continue; if (p.equals(((X509Certificate) cert).getSubjectDN()) || p.equals(((X509Certificate) cert).getSubjectX500Principal())) currentCerts.add(cert); } } } catch (KeyStoreException kse) { error(url, in, kse.toString()); } } } else if (tok == '"' || tok == '\'') { String alias = in.sval; for (Iterator it = keystores.iterator(); it.hasNext(); ) { KeyStore ks = (KeyStore) it.next(); try { if (ks.isCertificateEntry(alias)) currentCerts.add(ks.getCertificate(alias)); } catch (KeyStoreException kse) { error(url, in, kse.toString()); } } } else error(url, in, "expecting principal"); tok = in.nextToken(); if (tok != ',') in.pushBack(); } else if (in.sval.equalsIgnoreCase("permission")) { if (state != STATE_PERMS) error(url, in, "spurious 'permission'"); tok = in.nextToken(); if (tok != StreamTokenizer.TT_WORD) error(url, in, "expecting permission class name"); String className = in.sval; Class clazz = null; try { clazz = Class.forName(className); } catch (ClassNotFoundException cnfe) { } tok = in.nextToken(); if (tok == ';') { if (clazz == null) { currentPerms.add(new UnresolvedPermission(className, null, null, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); continue; } try { currentPerms.add((Permission) clazz.newInstance()); } catch (Exception x) { error(url, in, x.toString()); } continue; } if (tok != '"' && tok != '\'') error(url, in, "expecting permission target"); String target = expand(in.sval); tok = in.nextToken(); if (tok == ';') { if (clazz == null) { currentPerms.add(new UnresolvedPermission(className, target, null, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); continue; } try { Constructor c = clazz.getConstructor(new Class[] { String.class }); currentPerms.add((Permission) c.newInstance( new Object[] { target })); } catch (Exception x) { error(url, in, x.toString()); } continue; } if (tok != ',') error(url, in, "expecting ','"); tok = in.nextToken(); if (tok == StreamTokenizer.TT_WORD) { if (!in.sval.equalsIgnoreCase("signedBy")) error(url, in, "expecting 'signedBy'"); try { Constructor c = clazz.getConstructor(new Class[] { String.class }); currentPerms.add((Permission) c.newInstance( new Object[] { target })); } catch (Exception x) { error(url, in, x.toString()); } in.pushBack(); continue; } if (tok != '"' && tok != '\'') error(url, in, "expecting permission action"); String action = in.sval; if (clazz == null) { currentPerms.add(new UnresolvedPermission(className, target, action, (Certificate[]) currentCerts.toArray(new Certificate[currentCerts.size()]))); continue; } else { try { Constructor c = clazz.getConstructor( new Class[] { String.class, String.class }); currentPerms.add((Permission) c.newInstance( new Object[] { target, action })); } catch (Exception x) { error(url, in, x.toString()); } } tok = in.nextToken(); if (tok != ';' && tok != ',') error(url, in, "expecting ';' or ','"); } } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5200aefd16debc5177e0a889124f42ee39f14d8c/PolicyFile.java/clean/core/src/classpath/gnu/gnu/java/security/PolicyFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1109,
12,
6385,
1976,
880,
13,
1216,
1860,
225,
288,
565,
1194,
18,
1330,
261,
1841,
18,
26366,
16,
315,
21803,
3329,
585,
628,
288,
20,
1532,
16,
880,
1769,
565,
727,
3961,
10524,
316,
273,
394,
3961,
10524,
12,
2704,
15322,
12,
718,
18,
3190,
1228,
1435,
10019,
3639,
316,
18,
6208,
8070,
5621,
3639,
316,
18,
12877,
11033,
9051,
12,
3767,
1769,
3639,
316,
18,
12877,
18379,
9051,
12,
3767,
1769,
3639,
316,
18,
1095,
7803,
2668,
37,
2187,
296,
62,
8284,
3639,
316,
18,
1095,
7803,
2668,
69,
2187,
296,
94,
8284,
3639,
316,
18,
1095,
7803,
2668,
20,
2187,
296,
29,
8284,
3639,
316,
18,
1095,
7803,
2668,
1093,
16,
2611,
1769,
3639,
316,
18,
1095,
7803,
2668,
67,
2187,
4427,
1769,
3639,
316,
18,
1095,
7803,
2668,
8,
2187,
3365,
8284,
3639,
316,
18,
18777,
7803,
2668,
2265,
296,
28005,
3639,
316,
18,
18777,
7803,
2668,
64,
88,
2187,
2337,
88,
8284,
3639,
316,
18,
18777,
7803,
2668,
64,
74,
2187,
2337,
74,
8284,
3639,
316,
18,
18777,
7803,
2668,
64,
82,
2187,
2337,
82,
8284,
3639,
316,
18,
18777,
7803,
2668,
64,
86,
2187,
2337,
86,
8284,
3639,
316,
18,
6889,
2156,
2668,
3730,
8284,
3639,
316,
18,
6889,
2156,
2668,
5187,
1769,
3639,
509,
946,
31,
3639,
509,
919,
273,
7442,
67,
16061,
31,
3639,
987,
498,
19632,
273,
394,
10688,
5621,
3639,
1976,
783,
2171,
273,
446,
31,
3639,
987,
783,
16273,
273,
394,
10688,
5621,
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,
918,
1109,
12,
6385,
1976,
880,
13,
1216,
1860,
225,
288,
565,
1194,
18,
1330,
261,
1841,
18,
26366,
16,
315,
21803,
3329,
585,
628,
288,
20,
1532,
16,
880,
1769,
565,
727,
3961,
10524,
316,
273,
394,
3961,
10524,
12,
2704,
15322,
12,
718,
18,
3190,
1228,
1435,
10019,
3639,
316,
18,
6208,
8070,
5621,
3639,
316,
18,
12877,
11033,
9051,
12,
3767,
1769,
3639,
316,
18,
12877,
18379,
9051,
12,
3767,
1769,
3639,
316,
18,
1095,
7803,
2668,
37,
2187,
296,
62,
8284,
3639,
316,
18,
1095,
7803,
2668,
69,
2187,
296,
94,
8284,
3639,
316,
18,
1095,
7803,
2668,
20,
2187,
296,
29,
8284,
3639,
316,
18,
1095,
7803,
2668,
1093,
16,
2611,
1769,
2
] |
if (e.getComponent() == this && (e.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) { int x = e.getX(); int y = e.getY(); Font font = fileWindow.textArea.getFont(); FontMetrics metrics = getFontMetrics(font); int h = metrics.getHeight(); int line = y/h; fileWindow.toggleBreakPoint(line + 1); }
|
public void mouseClicked(MouseEvent e) { if (e.getComponent() == this && (e.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) { int x = e.getX(); int y = e.getY(); Font font = fileWindow.textArea.getFont(); FontMetrics metrics = getFontMetrics(font); int h = metrics.getHeight(); int line = y/h; fileWindow.toggleBreakPoint(line + 1); } }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/09fe5de9680ba897d40144b4a1eab8d52faaa67a/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
3639,
309,
261,
73,
18,
588,
1841,
1435,
422,
333,
597,
1850,
261,
73,
18,
588,
11948,
1435,
473,
17013,
1133,
18,
20068,
21,
67,
11704,
13,
480,
374,
13,
288,
5411,
509,
619,
273,
425,
18,
588,
60,
5621,
5411,
509,
677,
273,
425,
18,
588,
61,
5621,
5411,
10063,
3512,
273,
585,
3829,
18,
955,
5484,
18,
588,
5711,
5621,
5411,
10063,
5653,
4309,
273,
18776,
5653,
12,
5776,
1769,
5411,
509,
366,
273,
4309,
18,
588,
2686,
5621,
5411,
509,
980,
273,
677,
19,
76,
31,
5411,
585,
3829,
18,
14401,
7634,
2148,
12,
1369,
397,
404,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7644,
27633,
12,
9186,
1133,
425,
13,
288,
3639,
309,
261,
73,
18,
588,
1841,
1435,
422,
333,
597,
1850,
261,
73,
18,
588,
11948,
1435,
473,
17013,
1133,
18,
20068,
21,
67,
11704,
13,
480,
374,
13,
288,
5411,
509,
619,
273,
425,
18,
588,
60,
5621,
5411,
509,
677,
273,
425,
18,
588,
61,
5621,
5411,
10063,
3512,
273,
585,
3829,
18,
955,
5484,
18,
588,
5711,
5621,
5411,
10063,
5653,
4309,
273,
18776,
5653,
12,
5776,
1769,
5411,
509,
366,
273,
4309,
18,
588,
2686,
5621,
5411,
509,
980,
273,
677,
19,
76,
31,
5411,
585,
3829,
18,
14401,
7634,
2148,
12,
1369,
397,
404,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100
] |
|
catch(Exception e) { } } else if (os.equalsIgnoreCase("HP-UX"))
|
} else if (os.equalsIgnoreCase("HP-UX"))
|
public static final String getMACAddress() { String ip = getIPAddress(); String mac = "none"; String os = getOS(); String s = ""; //System.out.println("os = "+os+", ip="+ip); if (os.equalsIgnoreCase("Windows NT") || os.equalsIgnoreCase("Windows 2000") || os.equalsIgnoreCase("Windows XP") || os.equalsIgnoreCase("Windows 95") || os.equalsIgnoreCase("Windows 98") || os.equalsIgnoreCase("Windows Me") || os.startsWith("Windows") ) { try { // System.out.println("EXEC> nbtstat -a "+ip); Process p = Runtime.getRuntime().exec("nbtstat -a "+ip); // read the standard output of the command BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); while (!procDone(p)) { while((s=stdInput.readLine()) !=null) { // System.out.println("NBTSTAT> "+s); if (s.indexOf("MAC")>=0) { int idx = s.indexOf("="); mac = s.substring(idx+2); } } } stdInput.close(); } catch(Exception e) { } } else if (os.equalsIgnoreCase("Linux")) { try { Process p = Runtime.getRuntime().exec("/sbin/ifconfig -a"); // read the standard output of the command BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); while (!procDone(p)) { while((s=stdInput.readLine()) !=null) { int idx = s.indexOf("HWaddr"); if (idx>=0) { mac = s.substring(idx+7); } } } stdInput.close(); } catch(Exception e) { } } else if (os.equalsIgnoreCase("Solaris")) { try { Process p = Runtime.getRuntime().exec("/usr/sbin/ifconfig -a"); // read the standard output of the command BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); while (!procDone(p)) { while((s=stdInput.readLine()) !=null) { int idx = s.indexOf("ether"); if (idx>=0) { mac = s.substring(idx+6); } } } stdInput.close(); } catch(Exception e) { } } else if (os.equalsIgnoreCase("HP-UX")) { try { Process p = Runtime.getRuntime().exec("/usr/sbin/lanscan -a"); // read the standard output of the command BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); while (!procDone(p)) { while((s=stdInput.readLine()) !=null) { if (s.indexOf("MAC")>=0) { int idx = s.indexOf("0x"); mac = s.substring(idx+2); } } } stdInput.close(); } catch(Exception e) { } } return Const.trim(mac); }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/3d662b2c7ebea403aa0721885d4e8b2ec43e4e62/Const.java/clean/kettle/src/be/ibridge/kettle/core/Const.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
2108,
2226,
1887,
1435,
202,
95,
202,
202,
780,
2359,
273,
336,
22507,
5621,
202,
202,
780,
5318,
273,
315,
6102,
14432,
202,
202,
780,
1140,
273,
336,
4618,
5621,
202,
202,
780,
272,
273,
1408,
31,
9506,
202,
759,
3163,
18,
659,
18,
8222,
2932,
538,
273,
13773,
538,
15,
3113,
2359,
1546,
15,
625,
1769,
9506,
202,
430,
261,
538,
18,
14963,
5556,
2932,
10399,
20064,
7923,
747,
1082,
565,
1140,
18,
14963,
5556,
2932,
10399,
16291,
7923,
747,
1082,
565,
1140,
18,
14963,
5556,
2932,
10399,
1139,
52,
7923,
747,
1082,
565,
1140,
18,
14963,
5556,
2932,
10399,
16848,
7923,
747,
1082,
565,
1140,
18,
14963,
5556,
2932,
10399,
24645,
7923,
747,
1082,
565,
1140,
18,
14963,
5556,
2932,
10399,
7499,
7923,
747,
1082,
565,
1140,
18,
17514,
1190,
2932,
10399,
7923,
1082,
282,
262,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
7734,
368,
2332,
18,
659,
18,
8222,
2932,
15271,
34,
4264,
88,
5642,
300,
69,
13773,
625,
1769,
1171,
9506,
202,
2227,
293,
273,
2509,
18,
588,
5576,
7675,
4177,
2932,
6423,
88,
5642,
300,
69,
13773,
625,
1769,
9506,
202,
759,
855,
326,
4529,
876,
434,
326,
1296,
9506,
202,
17947,
2514,
2044,
1210,
273,
394,
10633,
12,
2704,
15322,
12,
84,
18,
588,
4348,
1435,
10019,
6862,
1082,
202,
17523,
16051,
9381,
7387,
12,
84,
3719,
9506,
202,
95,
6862,
202,
17523,
12443,
87,
33,
5084,
1210,
18,
896,
1670,
10756,
480,
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,
727,
514,
2108,
2226,
1887,
1435,
202,
95,
202,
202,
780,
2359,
273,
336,
22507,
5621,
202,
202,
780,
5318,
273,
315,
6102,
14432,
202,
202,
780,
1140,
273,
336,
4618,
5621,
202,
202,
780,
272,
273,
1408,
31,
9506,
202,
759,
3163,
18,
659,
18,
8222,
2932,
538,
273,
13773,
538,
15,
3113,
2359,
1546,
15,
625,
1769,
9506,
202,
430,
261,
538,
18,
14963,
5556,
2932,
10399,
20064,
7923,
747,
1082,
565,
1140,
18,
14963,
5556,
2932,
10399,
16291,
7923,
747,
1082,
565,
1140,
18,
14963,
5556,
2932,
10399,
1139,
52,
7923,
747,
1082,
565,
1140,
18,
14963,
5556,
2932,
10399,
16848,
7923,
747,
1082,
565,
1140,
18,
14963,
5556,
2932,
10399,
24645,
2
] |
originalModel = (IModel)Objects.clone(model);
|
originalModel = (IModel)Objects.cloneModel(model);
|
ModelChange(final Component component) { if (component == null) { throw new IllegalArgumentException("argument component must be not null"); } // Save component this.component = component; // Get component model final IModel model = component.getModel(); // If the component has a model, it's about to change! if (model != null) { // Should we clone the model? boolean cloneModel = true; // If the component is a form component if (model instanceof CompoundPropertyModel) { if (component instanceof FormComponent) { // and it's using the same model as the form if (((FormComponent)component).getForm().getModel() == model) { // we don't need to clone the model, because it will // be re-initialized using initModel() cloneModel = false; } } else { // If the component is using the same model as the page if (component.getPage().getModel() == model) { // we don't need to clone the model, because it will // be re-initialized using initModel() cloneModel = false; } } } // Clone model? if (cloneModel) { model.detach(); originalModel = (IModel)Objects.clone(model); } else { originalModel = model; } } if (log.isDebugEnabled()) { log.debug("RECORD MODEL CHANGE: changed model of " + " (" + Classes.simpleName(component.getClass()) + "@" + component.hashCode() + ")"); } }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/6f72504b058a293e6069dd65a4a1a25d56071968/ModelChange.java/buggy/wicket/src/java/wicket/version/undo/ModelChange.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1488,
3043,
12,
6385,
5435,
1794,
13,
202,
95,
202,
202,
430,
261,
4652,
422,
446,
13,
202,
202,
95,
1082,
202,
12849,
394,
2754,
2932,
3446,
1794,
1297,
506,
486,
446,
8863,
202,
202,
97,
202,
202,
759,
7074,
1794,
202,
202,
2211,
18,
4652,
273,
1794,
31,
202,
202,
759,
968,
1794,
938,
202,
202,
6385,
467,
1488,
938,
273,
1794,
18,
588,
1488,
5621,
202,
202,
759,
971,
326,
1794,
711,
279,
938,
16,
518,
1807,
2973,
358,
2549,
5,
202,
202,
430,
261,
2284,
480,
446,
13,
202,
202,
95,
1082,
202,
759,
9363,
732,
3236,
326,
938,
35,
1082,
202,
6494,
3236,
1488,
273,
638,
31,
1082,
202,
759,
971,
326,
1794,
353,
279,
646,
1794,
1082,
202,
430,
261,
2284,
1276,
21327,
1396,
1488,
13,
1082,
202,
95,
9506,
202,
430,
261,
4652,
1276,
2748,
1841,
13,
9506,
202,
95,
6862,
202,
759,
471,
518,
1807,
1450,
326,
1967,
938,
487,
326,
646,
6862,
202,
430,
261,
12443,
1204,
1841,
13,
4652,
2934,
588,
1204,
7675,
588,
1488,
1435,
422,
938,
13,
6862,
202,
95,
25083,
202,
759,
732,
2727,
1404,
1608,
358,
3236,
326,
938,
16,
2724,
518,
903,
25083,
202,
759,
506,
283,
17,
13227,
1450,
1208,
1488,
1435,
25083,
202,
14056,
1488,
273,
629,
31,
6862,
202,
97,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
759,
971,
326,
1794,
353,
1450,
326,
1967,
938,
487,
326,
1363,
6862,
202,
430,
261,
4652,
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,
1488,
3043,
12,
6385,
5435,
1794,
13,
202,
95,
202,
202,
430,
261,
4652,
422,
446,
13,
202,
202,
95,
1082,
202,
12849,
394,
2754,
2932,
3446,
1794,
1297,
506,
486,
446,
8863,
202,
202,
97,
202,
202,
759,
7074,
1794,
202,
202,
2211,
18,
4652,
273,
1794,
31,
202,
202,
759,
968,
1794,
938,
202,
202,
6385,
467,
1488,
938,
273,
1794,
18,
588,
1488,
5621,
202,
202,
759,
971,
326,
1794,
711,
279,
938,
16,
518,
1807,
2973,
358,
2549,
5,
202,
202,
430,
261,
2284,
480,
446,
13,
202,
202,
95,
1082,
202,
759,
9363,
732,
3236,
326,
938,
35,
1082,
202,
6494,
3236,
1488,
273,
638,
31,
1082,
202,
759,
971,
326,
1794,
2
] |
return Executors.newFixedThreadPool(3);
|
return Executors.newFixedThreadPool(20);
|
private Executor getDefaultExecutor(){ return Executors.newFixedThreadPool(3); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/77a1980f22bf744721fa882662b0574ab7bbc5e4/ServiceDelegate.java/clean/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
13146,
4829,
6325,
1435,
95,
3639,
327,
3889,
13595,
18,
2704,
7505,
20621,
12,
3462,
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
] |
[
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
13146,
4829,
6325,
1435,
95,
3639,
327,
3889,
13595,
18,
2704,
7505,
20621,
12,
3462,
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
] |
_db.begin(); TestLazyEmployee person = new TestLazyEmployee(); person.setFirstName( "First" ); person.setLastName( "Person" ); person.setBirthday( new Date(1922, 2, 2) ); person.setStartDate( new Date(2000, 2, 2) );
|
testGeneral();
|
public void runTest() throws PersistenceException, SQLException { _db.begin(); // create person 1 TestLazyEmployee person = new TestLazyEmployee(); person.setFirstName( "First" ); person.setLastName( "Person" ); person.setBirthday( new Date(1922, 2, 2) ); person.setStartDate( new Date(2000, 2, 2) ); TestLazyAddress address1 = new TestLazyAddress(); address1.setId(1); address1.setStreet("#1 Address Street"); address1.setCity("First City"); address1.setState("AB"); address1.setZip("10000"); address1.setPerson( person ); TestLazyAddress address2 = new TestLazyAddress(); address2.setId(2); address2.setStreet("2nd Ave"); address2.setCity("Second City"); address2.setState("BC"); address2.setZip("22222"); address2.setPerson( person ); TestLazyAddress address3 = new TestLazyAddress(); address3.setId(3); address3.setStreet("3rd Court"); address3.setCity("Third Ave"); address3.setState("AB"); address3.setZip("30003"); address3.setPerson( person ); ArrayList addresslist = new ArrayList(); addresslist.add( address1 ); addresslist.add( address2 ); addresslist.add( address3 ); person.setAddress( addresslist ); TestLazyPayRoll pr1 = new TestLazyPayRoll(); pr1.setId( 1 ); pr1.setHoliday( 15 ); pr1.setHourlyRate( 25 ); pr1.setEmployee( person ); person.setPayRoll( pr1 ); TestLazyContractCategory cc = new TestLazyContractCategory(); cc.setId( 101 ); cc.setName("Full-time slave"); _db.create( cc ); TestLazyContractCategory cc2 = new TestLazyContractCategory(); cc2.setId( 102 ); cc2.setName("Full-time employee"); _db.create( cc2 ); ArrayList category = new ArrayList(); category.add( cc ); category.add( cc2 ); TestLazyContract con = new TestLazyContract(); con.setPolicyNo(1001); con.setComment("80 hours a week, no pay hoilday, no sick leave, arrive office at 7:30am everyday"); con.setContractNo(78); con.setEmployee( person ); con.setCategory( category ); person.setContract( con ); _db.create( person ); _db.commit(); _db.begin(); Complex fullname = new Complex( "First", "Person" ); TestLazyEmployee loadPerson = (TestLazyEmployee) _db.load( TestLazyEmployee.class, fullname ); if ( loadPerson.getBirthday().equals(new Date(1922, 2, 2)) && loadPerson.getFirstName().equals("First") && loadPerson.getLastName().equals("Person") ) { stream.println("OK: Employee is valid"); Collection address = loadPerson.getAddress(); Iterator itor = address.iterator(); TestLazyAddress[] addresses = { null, null, null }; TestLazyAddress addr; while ( itor.hasNext() ) { addr = (TestLazyAddress)itor.next(); if ( addr.getId() < 1 || addr.getId() > 3 ) { _db.rollback(); stream.println("Error: Address id is incorrect"); fail("address id is incorrect"); } addresses[addr.getId()-1] = addr; } if ( addresses[0] == null || !addresses[0].getStreet().equals("#1 Address Street") || !addresses[0].getCity().equals("First City") || !addresses[0].getState().equals("AB") || !addresses[0].getZip().equals("10000") || addresses[0].getPerson() != loadPerson ) { stream.println("Error: Address 1 is incorrect: "+addresses[0]); _db.rollback(); fail("address 1 is incorrect"); } stream.println("OK: Address 1 are valid"); if ( addresses[1] == null || !addresses[1].getStreet().equals("2nd Ave") || !addresses[1].getCity().equals("Second City") || !addresses[1].getState().equals("BC") || !addresses[1].getZip().equals("22222") || addresses[1].getPerson() != loadPerson ) { stream.println("Error: Address 2 is incorrect"); _db.rollback(); fail("address 2 is incorrect"); } stream.println("OK: Address 2 are valid"); TestLazyPayRoll payroll = loadPerson.getPayRoll(); if ( payroll == null || payroll.getId() != 1 || payroll.getHoliday() != 15 || payroll.getEmployee() != loadPerson || payroll.getHourlyRate() != 25 ) { stream.println("Error: PayRoll loaded incorrect"); _db.rollback(); fail("payroll is incorrect"); } stream.println("OK: PayRoll is valid"); TestLazyContract cont = loadPerson.getContract(); if ( cont == null || cont.getPolicyNo() != 1001 || cont.getEmployee() != loadPerson || cont.getContractNo() != 78 ) { stream.println("Error: Contract is not what expected!"); stream.println("employe==null? "+cont.getEmployee()+"/"+cont.getEmployee().getFirstName()+"/"+cont.getEmployee().getLastName()); stream.println("loadPerson? "+loadPerson+"/"+loadPerson.getFirstName()+"/"+loadPerson.getLastName()); stream.println("person? "+person+"/"+person.getFirstName()+"/"+person.getLastName()); _db.rollback(); fail("contract is incorrect"); } stream.println("OK: Contract is valid"); Collection catelist = cont.getCategory(); itor = catelist.iterator(); TestLazyContractCategory cate; while ( itor.hasNext() ) { cate = (TestLazyContractCategory) itor.next(); if ( cate.getId() == 101 && cate.getName().equals("Full-time slave") ) { } else if ( cate.getId() == 102 && cate.getName().equals("Full-time employee") ) { } else { stream.println("Error: Category is incorrect"); _db.rollback(); fail("category is incorrect"); } } stream.println("OK: Categories are valid"); // now modified the object and store it address.remove( addresses[0] ); addresses[1].setStreet("New Second Street"); } else { _db.rollback(); stream.println("Error: FirstName, LastName or Birthday is incorrect!"); fail("FirstName, LastName or Birthday is incorrect!"); } _db.commit(); // test and see if changes made succeed _db.begin(); loadPerson = (TestLazyEmployee) _db.load( TestLazyEmployee.class, fullname ); if ( loadPerson.getBirthday().equals(new Date(1922, 2, 2)) && loadPerson.getFirstName().equals("First") && loadPerson.getLastName().equals("Person") ) { stream.println("OK: Employee is valid"); Collection address = loadPerson.getAddress(); Iterator itor = address.iterator(); TestLazyAddress[] addresses = { null, null, null }; TestLazyAddress addr; while ( itor.hasNext() ) { addr = (TestLazyAddress)itor.next(); if ( addr.getId() < 1 || addr.getId() > 3 ) { _db.rollback(); stream.println("Error: Address id is incorrect"); fail("address id is incorrect"); } addresses[addr.getId()-1] = addr; } if ( addresses[0] != null ) { stream.println("Error: Address 1 is not deleted: "+addresses[0]); fail("address 1 is not deleted"); } stream.println("OK: Address 1 is deleted"); if ( addresses[1] == null || !addresses[1].getStreet().equals("New Second Street") || !addresses[1].getCity().equals("Second City") || !addresses[1].getState().equals("BC") || !addresses[1].getZip().equals("22222") || addresses[1].getPerson() != loadPerson ) { stream.println("Error: Address 2 is incorrect"); _db.rollback(); fail("address 2 is incorrect"); } stream.println("OK: Address 2 are valid: "+addresses[1]); TestLazyPayRoll payroll = loadPerson.getPayRoll(); if ( payroll == null || payroll.getId() != 1 || payroll.getHoliday() != 15 || payroll.getEmployee() != loadPerson || payroll.getHourlyRate() != 25 ) { stream.println("Error: PayRoll loaded incorrect"); _db.rollback(); fail("payroll is incorrect"); } stream.println("OK: PayRoll is valid"); TestLazyContract cont = loadPerson.getContract(); if ( cont == null || cont.getPolicyNo() != 1001 || cont.getEmployee() != loadPerson || cont.getContractNo() != 78 ) { stream.println("Error: Contract is not what expected!"); stream.println("employe==null? "+cont.getEmployee()+"/"+cont.getEmployee().getFirstName()+"/"+cont.getEmployee().getLastName()); stream.println("loadPerson? "+loadPerson+"/"+loadPerson.getFirstName()+"/"+loadPerson.getLastName()); stream.println("person? "+person+"/"+person.getFirstName()+"/"+person.getLastName()); _db.rollback(); fail("contract is incorrect"); } stream.println("OK: Contract is valid"); Collection catelist = cont.getCategory(); itor = catelist.iterator(); TestLazyContractCategory cate; while ( itor.hasNext() ) { cate = (TestLazyContractCategory) itor.next(); if ( cate.getId() == 101 && cate.getName().equals("Full-time slave") ) { } else if ( cate.getId() == 102 && cate.getName().equals("Full-time employee") ) { } else { stream.println("Error: Category is incorrect"); _db.rollback(); fail("category is incorrect"); } } stream.println("OK: Categories are valid"); } else { _db.rollback(); stream.println("Error: FirstName, LastName or Birthday is incorrect!"); fail("FirstName, LastName or Birthday is incorrect!"); } _db.commit(); }
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/dd260f353d46ad5ba73f6165cb12f9de71d8e3a7/LazyLoading.java/clean/trunk/castor-2002/castor/src/tests/jdo/LazyLoading.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
4709,
1435,
2398,
1216,
13381,
503,
16,
6483,
288,
3639,
389,
1966,
18,
10086,
5621,
3639,
368,
752,
6175,
404,
3639,
7766,
14443,
41,
27520,
6175,
273,
394,
7766,
14443,
41,
27520,
5621,
3639,
6175,
18,
542,
3759,
461,
12,
315,
3759,
6,
11272,
3639,
6175,
18,
542,
3024,
461,
12,
315,
8346,
6,
11272,
3639,
6175,
18,
542,
25791,
2881,
12,
394,
2167,
12,
3657,
3787,
16,
576,
16,
576,
13,
11272,
3639,
6175,
18,
542,
22635,
12,
394,
2167,
12,
17172,
16,
576,
16,
576,
13,
11272,
3639,
7766,
14443,
1887,
1758,
21,
273,
394,
7766,
14443,
1887,
5621,
3639,
1758,
21,
18,
542,
548,
12,
21,
1769,
3639,
1758,
21,
18,
542,
30719,
2932,
7,
21,
5267,
19828,
8863,
3639,
1758,
21,
18,
542,
22236,
2932,
3759,
30578,
8863,
3639,
1758,
21,
18,
542,
1119,
2932,
2090,
8863,
3639,
1758,
21,
18,
542,
9141,
2932,
23899,
8863,
3639,
1758,
21,
18,
542,
8346,
12,
6175,
11272,
3639,
7766,
14443,
1887,
1758,
22,
273,
394,
7766,
14443,
1887,
5621,
3639,
1758,
22,
18,
542,
548,
12,
22,
1769,
3639,
1758,
22,
18,
542,
30719,
2932,
22,
4880,
432,
537,
8863,
3639,
1758,
22,
18,
542,
22236,
2932,
8211,
30578,
8863,
3639,
1758,
22,
18,
542,
1119,
2932,
16283,
8863,
3639,
1758,
22,
18,
542,
9141,
2932,
3787,
28855,
8863,
3639,
1758,
22,
18,
542,
8346,
12,
6175,
11272,
3639,
7766,
14443,
1887,
1758,
23,
273,
394,
7766,
14443,
1887,
5621,
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,
1071,
918,
1086,
4709,
1435,
2398,
1216,
13381,
503,
16,
6483,
288,
3639,
389,
1966,
18,
10086,
5621,
3639,
368,
752,
6175,
404,
3639,
7766,
14443,
41,
27520,
6175,
273,
394,
7766,
14443,
41,
27520,
5621,
3639,
6175,
18,
542,
3759,
461,
12,
315,
3759,
6,
11272,
3639,
6175,
18,
542,
3024,
461,
12,
315,
8346,
6,
11272,
3639,
6175,
18,
542,
25791,
2881,
12,
394,
2167,
12,
3657,
3787,
16,
576,
16,
576,
13,
11272,
3639,
6175,
18,
542,
22635,
12,
394,
2167,
12,
17172,
16,
576,
16,
576,
13,
11272,
3639,
7766,
14443,
1887,
1758,
21,
273,
394,
7766,
14443,
1887,
5621,
3639,
1758,
21,
18,
542,
548,
12,
21,
1769,
3639,
1758,
21,
18,
542,
2
] |
File parent = versionedDir.getParentFile();
|
public static File getWorkingCopyRoot(File versionedDir, boolean stopOnExtenrals) throws SVNException { versionedDir = versionedDir.getAbsoluteFile(); if (versionedDir == null || (!isVersionedDirectory(versionedDir) && !isVersionedDirectory(versionedDir.getParentFile()))) { // both this dir and its parent are not versioned. return null; } if (isWorkingCopyRoot(versionedDir)) { // this is root. if (stopOnExtenrals) { return versionedDir; } File parent = versionedDir.getParentFile(); File parentRoot = getWorkingCopyRoot(parent, stopOnExtenrals); if (parentRoot == null) { // if parent is not versioned return this dir. return versionedDir; } // parent is versioned. we have to check if it contains externals // definition for this dir. while (parent != null) { SVNWCAccess parentAccess = SVNWCAccess.newInstance(null); try { SVNAdminArea dir = parentAccess.open(parent, false, 0); SVNVersionedProperties props = dir.getProperties(dir.getThisDirName()); SVNExternalInfo[] externals = SVNWCAccess.parseExternals("", props.getPropertyValue(SVNProperty.EXTERNALS)); // now externals could point to our dir. for (int i = 0; i < externals.length; i++) { SVNExternalInfo external = externals[i]; File externalFile = new File(parent, external.getPath()); if (externalFile.equals(versionedDir)) { return parentRoot; } } } catch (SVNException e) { if (e instanceof SVNCancelException) { throw e; } } finally { parentAccess.close(); } if (parent.equals(parentRoot)) { break; } parent = parent.getParentFile(); } return versionedDir; } // if dir is not a root -> just recurse till root, the call get root // again. if (versionedDir.getParentFile() != null) { return getWorkingCopyRoot(versionedDir.getParentFile(), stopOnExtenrals); } return versionedDir; }
|
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/1c0c9ef01ba30b8ee3dffa0d632858257132d58e/SVNWCUtil.java/clean/javasvn/src/org/tmatesoft/svn/core/wc/SVNWCUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1387,
336,
14836,
2951,
2375,
12,
812,
17083,
1621,
16,
1250,
2132,
1398,
424,
2253,
86,
1031,
13,
1216,
29537,
50,
503,
288,
3639,
17083,
1621,
273,
17083,
1621,
18,
588,
10368,
812,
5621,
3639,
309,
261,
21415,
1621,
422,
446,
7734,
747,
16051,
291,
23676,
2853,
12,
21415,
1621,
13,
597,
401,
291,
23676,
2853,
12,
21415,
1621,
18,
588,
3054,
812,
1435,
20349,
288,
5411,
368,
3937,
333,
1577,
471,
2097,
982,
854,
486,
17083,
18,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
291,
14836,
2951,
2375,
12,
21415,
1621,
3719,
288,
5411,
368,
333,
353,
1365,
18,
5411,
309,
261,
5681,
1398,
424,
2253,
86,
1031,
13,
288,
7734,
327,
17083,
1621,
31,
5411,
289,
15604,
1387,
982,
2375,
273,
336,
14836,
2951,
2375,
12,
2938,
16,
2132,
1398,
424,
2253,
86,
1031,
1769,
5411,
309,
261,
2938,
2375,
422,
446,
13,
288,
7734,
368,
309,
982,
353,
486,
17083,
327,
333,
1577,
18,
7734,
327,
17083,
1621,
31,
5411,
289,
5411,
368,
982,
353,
17083,
18,
732,
1240,
358,
866,
309,
518,
1914,
18885,
1031,
5411,
368,
2379,
364,
333,
1577,
18,
5411,
1323,
261,
2938,
480,
446,
13,
288,
7734,
29537,
50,
59,
39,
1862,
982,
1862,
273,
29537,
50,
59,
39,
1862,
18,
2704,
1442,
12,
2011,
1769,
7734,
775,
288,
10792,
29537,
50,
4446,
5484,
1577,
273,
982,
1862,
18,
3190,
12,
2938,
16,
629,
16,
374,
1769,
10792,
29537,
50,
23676,
2297,
3458,
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,
377,
1071,
760,
1387,
336,
14836,
2951,
2375,
12,
812,
17083,
1621,
16,
1250,
2132,
1398,
424,
2253,
86,
1031,
13,
1216,
29537,
50,
503,
288,
3639,
17083,
1621,
273,
17083,
1621,
18,
588,
10368,
812,
5621,
3639,
309,
261,
21415,
1621,
422,
446,
7734,
747,
16051,
291,
23676,
2853,
12,
21415,
1621,
13,
597,
401,
291,
23676,
2853,
12,
21415,
1621,
18,
588,
3054,
812,
1435,
20349,
288,
5411,
368,
3937,
333,
1577,
471,
2097,
982,
854,
486,
17083,
18,
5411,
327,
446,
31,
3639,
289,
3639,
309,
261,
291,
14836,
2951,
2375,
12,
21415,
1621,
3719,
288,
5411,
368,
333,
353,
1365,
18,
5411,
309,
261,
5681,
1398,
424,
2253,
86,
1031,
13,
288,
7734,
327,
17083,
2
] |
|
List constantNames = new ArrayList();
|
ArrayList constantNames = new ArrayList();
|
public RubyArray constants() { List constantNames = new ArrayList(); Iterator iter = getRuby().getClasses().nameIterator(); while (iter.hasNext()) { String name = (String) iter.next(); if (IdUtil.isConstant(name)) { constantNames.add(RubyString.newString(getRuby(), name)); } } return RubyArray.newArray(getRuby(), constantNames); }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/a42a5780d9d19f5b3f27bdc079684319c5596e54/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
6810,
1435,
288,
3639,
2407,
5381,
1557,
273,
394,
2407,
5621,
3639,
4498,
1400,
273,
4170,
10340,
7675,
588,
4818,
7675,
529,
3198,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
514,
508,
273,
261,
780,
13,
1400,
18,
4285,
5621,
5411,
309,
261,
548,
1304,
18,
291,
6902,
12,
529,
3719,
288,
7734,
5381,
1557,
18,
1289,
12,
54,
10340,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
508,
10019,
5411,
289,
3639,
289,
3639,
327,
19817,
1076,
18,
2704,
1076,
12,
588,
54,
10340,
9334,
5381,
1557,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
6810,
1435,
288,
3639,
2407,
5381,
1557,
273,
394,
2407,
5621,
3639,
4498,
1400,
273,
4170,
10340,
7675,
588,
4818,
7675,
529,
3198,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
5411,
514,
508,
273,
261,
780,
13,
1400,
18,
4285,
5621,
5411,
309,
261,
548,
1304,
18,
291,
6902,
12,
529,
3719,
288,
7734,
5381,
1557,
18,
1289,
12,
54,
10340,
780,
18,
2704,
780,
12,
588,
54,
10340,
9334,
508,
10019,
5411,
289,
3639,
289,
3639,
327,
19817,
1076,
18,
2704,
1076,
12,
588,
54,
10340,
9334,
5381,
1557,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case 8 :
|
case 9 :
|
public void mTokens() throws RecognitionException { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: ( T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | T62 | T63 | T64 | T65 | T66 | T67 | T68 | T69 | T70 | T71 | T72 | T73 | T74 | RHS | WS | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | CURLY_CHUNK | LEFT_PAREN | RIGHT_PAREN | LEFT_SQUARE | RIGHT_SQUARE | MULTI_LINE_COMMENT | IGNORE ) int alt21=64; alt21 = dfa21.predict(input); switch (alt21) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:10: T27 { mT27(); if (failed) return ; } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:14: T28 { mT28(); if (failed) return ; } break; case 3 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:18: T29 { mT29(); if (failed) return ; } break; case 4 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:22: T30 { mT30(); if (failed) return ; } break; case 5 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:26: T31 { mT31(); if (failed) return ; } break; case 6 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:30: T32 { mT32(); if (failed) return ; } break; case 7 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:34: T33 { mT33(); if (failed) return ; } break; case 8 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:38: T34 { mT34(); if (failed) return ; } break; case 9 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:42: T35 { mT35(); if (failed) return ; } break; case 10 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:46: T36 { mT36(); if (failed) return ; } break; case 11 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:50: T37 { mT37(); if (failed) return ; } break; case 12 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:54: T38 { mT38(); if (failed) return ; } break; case 13 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:58: T39 { mT39(); if (failed) return ; } break; case 14 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:62: T40 { mT40(); if (failed) return ; } break; case 15 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:66: T41 { mT41(); if (failed) return ; } break; case 16 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:70: T42 { mT42(); if (failed) return ; } break; case 17 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:74: T43 { mT43(); if (failed) return ; } break; case 18 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:78: T44 { mT44(); if (failed) return ; } break; case 19 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:82: T45 { mT45(); if (failed) return ; } break; case 20 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:86: T46 { mT46(); if (failed) return ; } break; case 21 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:90: T47 { mT47(); if (failed) return ; } break; case 22 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:94: T48 { mT48(); if (failed) return ; } break; case 23 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:98: T49 { mT49(); if (failed) return ; } break; case 24 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:102: T50 { mT50(); if (failed) return ; } break; case 25 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:106: T51 { mT51(); if (failed) return ; } break; case 26 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:110: T52 { mT52(); if (failed) return ; } break; case 27 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:114: T53 { mT53(); if (failed) return ; } break; case 28 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:118: T54 { mT54(); if (failed) return ; } break; case 29 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:122: T55 { mT55(); if (failed) return ; } break; case 30 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:126: T56 { mT56(); if (failed) return ; } break; case 31 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:130: T57 { mT57(); if (failed) return ; } break; case 32 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:134: T58 { mT58(); if (failed) return ; } break; case 33 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:138: T59 { mT59(); if (failed) return ; } break; case 34 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:142: T60 { mT60(); if (failed) return ; } break; case 35 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:146: T61 { mT61(); if (failed) return ; } break; case 36 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:150: T62 { mT62(); if (failed) return ; } break; case 37 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:154: T63 { mT63(); if (failed) return ; } break; case 38 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:158: T64 { mT64(); if (failed) return ; } break; case 39 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:162: T65 { mT65(); if (failed) return ; } break; case 40 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:166: T66 { mT66(); if (failed) return ; } break; case 41 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:170: T67 { mT67(); if (failed) return ; } break; case 42 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:174: T68 { mT68(); if (failed) return ; } break; case 43 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:178: T69 { mT69(); if (failed) return ; } break; case 44 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:182: T70 { mT70(); if (failed) return ; } break; case 45 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:186: T71 { mT71(); if (failed) return ; } break; case 46 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:190: T72 { mT72(); if (failed) return ; } break; case 47 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:194: T73 { mT73(); if (failed) return ; } break; case 48 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:198: T74 { mT74(); if (failed) return ; } break; case 49 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:202: RHS { mRHS(); if (failed) return ; } break; case 50 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:206: WS { mWS(); if (failed) return ; } break; case 51 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:209: INT { mINT(); if (failed) return ; } break; case 52 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:213: FLOAT { mFLOAT(); if (failed) return ; } break; case 53 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:219: STRING { mSTRING(); if (failed) return ; } break; case 54 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:226: BOOL { mBOOL(); if (failed) return ; } break; case 55 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:231: ID { mID(); if (failed) return ; } break; case 56 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:234: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 57 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:263: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 58 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:291: CURLY_CHUNK { mCURLY_CHUNK(); if (failed) return ; } break; case 59 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:303: LEFT_PAREN { mLEFT_PAREN(); if (failed) return ; } break; case 60 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:314: RIGHT_PAREN { mRIGHT_PAREN(); if (failed) return ; } break; case 61 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:326: LEFT_SQUARE { mLEFT_SQUARE(); if (failed) return ; } break; case 62 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:338: RIGHT_SQUARE { mRIGHT_SQUARE(); if (failed) return ; } break; case 63 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:351: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; case 64 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1:370: IGNORE { mIGNORE(); if (failed) return ; } break; } }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/6b34eb3854fdc06f31034567ebdf72ff28c6c11a/DRLLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
21,
30,
2163,
30,
261,
399,
5324,
571,
399,
6030,
571,
399,
5540,
571,
399,
5082,
571,
399,
6938,
571,
399,
1578,
571,
399,
3707,
571,
399,
5026,
571,
399,
4763,
571,
399,
5718,
571,
399,
6418,
571,
399,
7414,
571,
399,
5520,
571,
399,
7132,
571,
399,
9803,
571,
399,
9452,
571,
399,
8942,
571,
399,
6334,
571,
399,
7950,
571,
399,
8749,
571,
399,
9462,
571,
399,
8875,
571,
399,
7616,
571,
399,
3361,
571,
399,
10593,
571,
399,
9401,
571,
399,
8643,
571,
399,
6564,
571,
399,
2539,
571,
399,
4313,
571,
399,
10321,
571,
399,
8204,
571,
399,
6162,
571,
399,
4848,
571,
399,
9498,
571,
399,
8898,
571,
399,
4449,
571,
399,
1105,
571,
399,
9222,
571,
399,
6028,
571,
399,
9599,
571,
399,
9470,
571,
399,
8148,
571,
399,
7301,
571,
399,
11212,
571,
399,
9060,
571,
399,
9036,
571,
399,
5608,
571,
534,
13173,
571,
7649,
571,
6137,
571,
15483,
571,
9469,
571,
9784,
1741,
571,
1599,
571,
6122,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
571,
385,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
571,
16161,
61,
67,
26464,
571,
9686,
67,
15111,
571,
13135,
67,
15111,
571,
9686,
67,
19716,
571,
13135,
67,
19716,
571,
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,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
463,
31027,
5206,
1695,
10649,
8464,
7482,
1695,
26133,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
21,
30,
2163,
30,
261,
399,
5324,
571,
399,
6030,
571,
399,
5540,
571,
399,
5082,
571,
399,
6938,
571,
399,
1578,
571,
399,
3707,
571,
399,
5026,
571,
399,
4763,
571,
399,
5718,
571,
399,
6418,
571,
399,
7414,
571,
399,
5520,
571,
399,
7132,
571,
399,
9803,
571,
399,
9452,
571,
399,
8942,
571,
399,
6334,
571,
399,
7950,
571,
399,
8749,
571,
399,
9462,
571,
399,
8875,
571,
399,
7616,
571,
399,
3361,
571,
399,
2
] |
public org.quickfix.field.RepoCollateralSecurityType getRepoCollateralSecurityType() throws FieldNotFound { org.quickfix.field.RepoCollateralSecurityType value = new org.quickfix.field.RepoCollateralSecurityType();
|
public quickfix.field.RepoCollateralSecurityType getRepoCollateralSecurityType() throws FieldNotFound { quickfix.field.RepoCollateralSecurityType value = new quickfix.field.RepoCollateralSecurityType();
|
public org.quickfix.field.RepoCollateralSecurityType getRepoCollateralSecurityType() throws FieldNotFound { org.quickfix.field.RepoCollateralSecurityType value = new org.quickfix.field.RepoCollateralSecurityType(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListStrikePrice.java/clean/src/java/src/quickfix/fix44/ListStrikePrice.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8791,
13535,
2045,
287,
4368,
559,
5561,
1631,
13535,
2045,
287,
4368,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8791,
13535,
2045,
287,
4368,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8791,
13535,
2045,
287,
4368,
559,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8791,
13535,
2045,
287,
4368,
559,
5561,
1631,
13535,
2045,
287,
4368,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8791,
13535,
2045,
287,
4368,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8791,
13535,
2045,
287,
4368,
559,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
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
] |
decline.setReason(parser.getText());
|
decline.setReason(parser.nextText());
|
private MUCUser.Decline parseDecline(XmlPullParser parser) throws Exception { boolean done = false; MUCUser.Decline decline = new MUCUser.Decline(); decline.setFrom(parser.getAttributeValue("", "from")); decline.setTo(parser.getAttributeValue("", "to")); while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parser.getName().equals("reason")) { decline.setReason(parser.getText()); } } else if (eventType == XmlPullParser.END_TAG) { if (parser.getName().equals("decline")) { done = true; } } } return decline; }
|
47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/e1ee22207d88a30d14667595f3ab809c3d4d8c4d/MUCUserProvider.java/buggy/source/org/jivesoftware/smackx/provider/MUCUserProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
490,
17479,
1299,
18,
1799,
1369,
1109,
1799,
1369,
12,
4432,
9629,
2678,
2082,
13,
1216,
1185,
288,
3639,
1250,
2731,
273,
629,
31,
3639,
490,
17479,
1299,
18,
1799,
1369,
3496,
558,
273,
394,
490,
17479,
1299,
18,
1799,
1369,
5621,
3639,
3496,
558,
18,
542,
1265,
12,
4288,
18,
588,
14942,
2932,
3113,
315,
2080,
7923,
1769,
3639,
3496,
558,
18,
542,
774,
12,
4288,
18,
588,
14942,
2932,
3113,
315,
869,
7923,
1769,
3639,
1323,
16051,
8734,
13,
288,
5411,
509,
11216,
273,
2082,
18,
4285,
5621,
5411,
309,
261,
2575,
559,
422,
5714,
9629,
2678,
18,
7570,
67,
7927,
13,
288,
7734,
309,
261,
4288,
18,
17994,
7675,
14963,
2932,
10579,
6,
3719,
288,
10792,
3496,
558,
18,
542,
8385,
12,
4288,
18,
4285,
1528,
10663,
7734,
289,
5411,
289,
5411,
469,
309,
261,
2575,
559,
422,
5714,
9629,
2678,
18,
4415,
67,
7927,
13,
288,
7734,
309,
261,
4288,
18,
17994,
7675,
14963,
2932,
8840,
558,
6,
3719,
288,
10792,
2731,
273,
638,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
3496,
558,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
490,
17479,
1299,
18,
1799,
1369,
1109,
1799,
1369,
12,
4432,
9629,
2678,
2082,
13,
1216,
1185,
288,
3639,
1250,
2731,
273,
629,
31,
3639,
490,
17479,
1299,
18,
1799,
1369,
3496,
558,
273,
394,
490,
17479,
1299,
18,
1799,
1369,
5621,
3639,
3496,
558,
18,
542,
1265,
12,
4288,
18,
588,
14942,
2932,
3113,
315,
2080,
7923,
1769,
3639,
3496,
558,
18,
542,
774,
12,
4288,
18,
588,
14942,
2932,
3113,
315,
869,
7923,
1769,
3639,
1323,
16051,
8734,
13,
288,
5411,
509,
11216,
273,
2082,
18,
4285,
5621,
5411,
309,
261,
2575,
559,
422,
5714,
9629,
2678,
18,
7570,
67,
7927,
13,
288,
7734,
309,
261,
4288,
18,
17994,
7675,
14963,
2932,
10579,
6,
3719,
2
] |
Graphics2D g = bi.createGraphics();
|
/*Graphics2D g = bi.createGraphics();
|
public RenderedImage createRendering(RenderContext rc){ Shape aoi = rc.getAreaOfInterest(); if(aoi == null){ aoi = getBounds2D(); } // Compute size of raster image in device space. System.out.println("Turbulence aoi : " + aoi); System.out.println("Scale X : " + rc.getTransform().getScaleX() + " scaleY : " + rc.getTransform().getScaleY()); System.out.println("Turbulence aoi dev : " + rc.getTransform().createTransformedShape(aoi).getBounds()); final Rectangle rasterRect = rc.getTransform().createTransformedShape(aoi).getBounds(); ColorModel cm = ColorModel.getRGBdefault(); // Create a raster for the turbulence pattern WritableRaster wr = cm.createCompatibleWritableRaster(rasterRect.width, rasterRect.height); WritableRaster twr = wr.createWritableTranslatedChild(rasterRect.x, rasterRect.y); // Create a TurbulencePatternGenerator that will do the job // <!> FIX ME. The tile is not propagated properly to the turbulence op // <!> FIX ME. SHOULD OPTIMIZE THE CHANNELS REQUIRED FROM THE FILTER. THIS COULD // BE ADDED TO THE RENDER CONTEXT. TurbulencePatternGenerator turbGenerator = new TurbulencePatternGenerator(baseFreqX, baseFreqY, numOctaves, seed, stitched, fractalNoise, true, region.getRegion(), new boolean[]{true, true, true, true}); AffineTransform patternTxf = new AffineTransform(); try{ patternTxf = rc.getTransform().createInverse(); }catch(NoninvertibleTransformException e){ } turbGenerator.generatePattern(twr, patternTxf); // Wrap raster in buffered image BufferedImage bi = new BufferedImage(cm, wr, cm.isAlphaPremultiplied(), null); // Clear area outside area of interest Graphics2D g = bi.createGraphics(); RenderingHints hints = rc.getRenderingHints(); if(hints == null){ hints = new RenderingHints(null); } g.setRenderingHints(hints); g.setComposite(AlphaComposite.Src); Area nonAoi = new Area(rasterRect); nonAoi.subtract(new Area(rc.getTransform().createTransformedShape(aoi))); g.setPaint(CLEAR_PAINT); g.translate(-rasterRect.x, -rasterRect.y); g.fill(nonAoi); g.dispose(); RenderedImage result = new ConcreteBufferedImageCachableRed(bi){ public int getMinX(){ return rasterRect.x; } public int getMinY(){ return rasterRect.y; } }; return result; }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/dbd352a943d9d391b96962dbd2f7c5101daee24d/ConcreteTurbulenceRable.java/clean/sources/org/apache/batik/refimpl/gvt/filter/ConcreteTurbulenceRable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
15329,
3639,
12383,
279,
11359,
273,
4519,
18,
588,
5484,
951,
29281,
5621,
3639,
309,
12,
6033,
77,
422,
446,
15329,
5411,
279,
11359,
273,
22107,
22,
40,
5621,
3639,
289,
3639,
368,
8155,
963,
434,
12553,
1316,
316,
2346,
3476,
18,
3639,
2332,
18,
659,
18,
8222,
2932,
56,
15850,
332,
802,
279,
11359,
294,
315,
397,
279,
11359,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
5587,
1139,
294,
315,
397,
4519,
18,
588,
4059,
7675,
588,
5587,
60,
1435,
397,
315,
3159,
61,
294,
315,
397,
4519,
18,
588,
4059,
7675,
588,
5587,
61,
10663,
3639,
2332,
18,
659,
18,
8222,
2932,
56,
15850,
332,
802,
279,
11359,
4461,
294,
315,
397,
4519,
18,
588,
4059,
7675,
2640,
4059,
329,
8500,
12,
6033,
77,
2934,
588,
5694,
10663,
3639,
727,
13264,
12553,
6120,
2398,
273,
4519,
18,
588,
4059,
7675,
2640,
4059,
329,
8500,
12,
6033,
77,
2934,
588,
5694,
5621,
3639,
5563,
1488,
5003,
273,
5563,
1488,
18,
588,
11343,
1886,
5621,
3639,
368,
1788,
279,
12553,
364,
326,
268,
15850,
332,
802,
1936,
3639,
14505,
18637,
12408,
273,
5003,
18,
2640,
14599,
12061,
18637,
12,
24215,
6120,
18,
2819,
16,
12553,
6120,
18,
4210,
1769,
3639,
14505,
18637,
2339,
86,
273,
12408,
18,
2640,
12061,
20421,
1763,
12,
24215,
6120,
18,
92,
16,
12553,
6120,
18,
93,
1769,
3639,
368,
1788,
279,
399,
15850,
332,
802,
3234,
3908,
716,
903,
741,
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,
6987,
329,
2040,
752,
14261,
12,
3420,
1042,
4519,
15329,
3639,
12383,
279,
11359,
273,
4519,
18,
588,
5484,
951,
29281,
5621,
3639,
309,
12,
6033,
77,
422,
446,
15329,
5411,
279,
11359,
273,
22107,
22,
40,
5621,
3639,
289,
3639,
368,
8155,
963,
434,
12553,
1316,
316,
2346,
3476,
18,
3639,
2332,
18,
659,
18,
8222,
2932,
56,
15850,
332,
802,
279,
11359,
294,
315,
397,
279,
11359,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
5587,
1139,
294,
315,
397,
4519,
18,
588,
4059,
7675,
588,
5587,
60,
1435,
397,
315,
3159,
61,
294,
315,
397,
4519,
18,
588,
4059,
7675,
588,
5587,
61,
10663,
3639,
2332,
18,
659,
18,
8222,
2932,
56,
15850,
332,
2
] |
public void handleEvent(Event e) { Point textSize = textEditor.getSize(); Point parentSize = textEditorParent.getSize(); e.gc.drawRectangle(0, 0, Math.min(textSize.x + 4, parentSize.x - 1), parentSize.y - 1); } });
|
public void handleEvent(Event e) { Point textSize = textEditor.getSize(); Point parentSize = textEditorParent.getSize(); e.gc.drawRectangle(0, 0, Math.min(textSize.x + 4, parentSize.x - 1), parentSize.y - 1); } });
|
private void createTextEditor(final IResource resource) { // Create text editor parent. This draws a nice bounding rect. textEditorParent = createParent(); textEditorParent.setVisible(false); final int inset = getCellEditorInset(textEditorParent); if (inset > 0) { textEditorParent.addListener(SWT.Paint, new Listener() { public void handleEvent(Event e) { Point textSize = textEditor.getSize(); Point parentSize = textEditorParent.getSize(); e.gc.drawRectangle(0, 0, Math.min(textSize.x + 4, parentSize.x - 1), parentSize.y - 1); } }); } // Create inner text editor. textEditor = new Text(textEditorParent, SWT.NONE); textEditor.setFont(navigatorTree.getFont()); textEditorParent.setBackground(textEditor.getBackground()); textEditor.addListener(SWT.Modify, new Listener() { public void handleEvent(Event e) { Point textSize = textEditor.computeSize(SWT.DEFAULT, SWT.DEFAULT); textSize.x += textSize.y; // Add extra space for new characters. Point parentSize = textEditorParent.getSize(); textEditor.setBounds(2, inset, Math.min(textSize.x, parentSize.x - 4), parentSize.y - 2 * inset); textEditorParent.redraw(); } }); textEditor.addListener(SWT.Traverse, new Listener() { public void handleEvent(Event event) { //Workaround for Bug 20214 due to extra //traverse events switch (event.detail) { case SWT.TRAVERSE_ESCAPE: //Do nothing in this case disposeTextWidget(); event.doit = true; event.detail = SWT.TRAVERSE_NONE; break; case SWT.TRAVERSE_RETURN: saveChangesAndDispose(resource); event.doit = true; event.detail = SWT.TRAVERSE_NONE; break; } } }); textEditor.addFocusListener(new FocusAdapter() { public void focusLost(FocusEvent fe) { saveChangesAndDispose(resource); } }); if (textActionHandler != null) { textActionHandler.addText(textEditor); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/53cada7d6d0463cdcb3aed320ea380f4aae64087/RenameResourceAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/RenameResourceAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
1528,
6946,
12,
6385,
467,
1420,
1058,
13,
288,
3639,
368,
1788,
977,
4858,
982,
18,
225,
1220,
30013,
279,
13752,
7552,
4917,
18,
3639,
977,
6946,
3054,
273,
752,
3054,
5621,
3639,
977,
6946,
3054,
18,
542,
6207,
12,
5743,
1769,
3639,
727,
509,
316,
542,
273,
16458,
6946,
382,
542,
12,
955,
6946,
3054,
1769,
3639,
309,
261,
267,
542,
405,
374,
13,
288,
1082,
202,
955,
6946,
3054,
18,
1289,
2223,
12,
55,
8588,
18,
12699,
16,
394,
10652,
1435,
288,
7734,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
10792,
4686,
977,
1225,
273,
977,
6946,
18,
588,
1225,
5621,
10792,
4686,
982,
1225,
273,
977,
6946,
3054,
18,
588,
1225,
5621,
10792,
425,
18,
13241,
18,
9446,
19463,
12,
20,
16,
374,
16,
2361,
18,
1154,
12,
955,
1225,
18,
92,
397,
1059,
16,
18701,
982,
1225,
18,
92,
300,
404,
3631,
982,
1225,
18,
93,
300,
404,
1769,
7734,
289,
5411,
15549,
202,
202,
97,
3639,
368,
1788,
3443,
977,
4858,
18,
3639,
977,
6946,
273,
394,
3867,
12,
955,
6946,
3054,
16,
348,
8588,
18,
9826,
1769,
3639,
977,
6946,
18,
542,
5711,
12,
82,
13061,
2471,
18,
588,
5711,
10663,
3639,
977,
6946,
3054,
18,
542,
8199,
12,
955,
6946,
18,
588,
8199,
10663,
3639,
977,
6946,
18,
1289,
2223,
12,
55,
8588,
18,
11047,
16,
394,
10652,
1435,
288,
5411,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
7734,
4686,
977,
1225,
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,
752,
1528,
6946,
12,
6385,
467,
1420,
1058,
13,
288,
3639,
368,
1788,
977,
4858,
982,
18,
225,
1220,
30013,
279,
13752,
7552,
4917,
18,
3639,
977,
6946,
3054,
273,
752,
3054,
5621,
3639,
977,
6946,
3054,
18,
542,
6207,
12,
5743,
1769,
3639,
727,
509,
316,
542,
273,
16458,
6946,
382,
542,
12,
955,
6946,
3054,
1769,
3639,
309,
261,
267,
542,
405,
374,
13,
288,
1082,
202,
955,
6946,
3054,
18,
1289,
2223,
12,
55,
8588,
18,
12699,
16,
394,
10652,
1435,
288,
7734,
1071,
918,
1640,
1133,
12,
1133,
425,
13,
288,
10792,
4686,
977,
1225,
273,
977,
6946,
18,
588,
1225,
5621,
10792,
4686,
982,
1225,
273,
977,
6946,
3054,
18,
588,
2
] |
indexSearcher = new IndexSearcher(indexDir);
|
indexSearcher = new IndexSearcher(indexDir, this.nutchConf);
|
private void init(File indexDir, File indexesDir, File segmentsDir, File linkDb) throws IOException { IndexSearcher indexSearcher; if (fs.exists(indexDir)) { LOG.info("opening merged index in " + indexDir); indexSearcher = new IndexSearcher(indexDir); } else { LOG.info("opening indexes in " + indexesDir); Vector vDirs=new Vector(); File [] directories = fs.listFiles(indexesDir); for(int i = 0; i < fs.listFiles(indexesDir).length; i++) { File indexdone = new File(directories[i], Indexer.DONE_NAME); if(fs.isFile(indexdone)) { vDirs.add(directories[i]); } } directories = new File[ vDirs.size() ]; for(int i = 0; vDirs.size()>0; i++) { directories[i]=(File)vDirs.remove(0); } indexSearcher = new IndexSearcher(directories); } LOG.info("opening segments in " + segmentsDir); FetchedSegments segments = new FetchedSegments(fs, segmentsDir.toString()); this.segmentNames = segments.getSegmentNames(); this.searcher = indexSearcher; this.detailer = indexSearcher; this.summarizer = segments; this.content = segments; LOG.info("opening linkdb in " + linkDb); this.linkDb = new LinkDbInlinks(fs, linkDb); }
|
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/NutchBean.java/clean/src/java/org/apache/nutch/searcher/NutchBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1208,
12,
812,
770,
1621,
16,
1387,
5596,
1621,
16,
1387,
5155,
1621,
16,
10792,
1387,
1692,
4331,
13,
565,
1216,
1860,
288,
565,
3340,
2979,
264,
770,
2979,
264,
31,
565,
309,
261,
2556,
18,
1808,
12,
1615,
1621,
3719,
288,
1377,
2018,
18,
1376,
2932,
3190,
310,
5384,
770,
316,
315,
397,
770,
1621,
1769,
1377,
770,
2979,
264,
273,
394,
3340,
2979,
264,
12,
1615,
1621,
16,
333,
18,
82,
322,
343,
3976,
1769,
565,
289,
469,
288,
1377,
2018,
18,
1376,
2932,
3190,
310,
5596,
316,
315,
397,
5596,
1621,
1769,
5411,
5589,
331,
9872,
33,
2704,
5589,
5621,
1377,
1387,
5378,
6402,
273,
2662,
18,
1098,
2697,
12,
11265,
1621,
1769,
1377,
364,
12,
474,
277,
273,
374,
31,
277,
411,
2662,
18,
1098,
2697,
12,
11265,
1621,
2934,
2469,
31,
277,
27245,
288,
3639,
1387,
770,
8734,
273,
394,
1387,
12,
15121,
63,
77,
6487,
3340,
264,
18,
26875,
67,
1985,
1769,
3639,
309,
12,
2556,
18,
291,
812,
12,
1615,
8734,
3719,
288,
1850,
331,
9872,
18,
1289,
12,
15121,
63,
77,
19226,
3639,
289,
1377,
289,
5411,
6402,
273,
394,
1387,
63,
331,
9872,
18,
1467,
1435,
308,
31,
1377,
364,
12,
474,
277,
273,
374,
31,
331,
9872,
18,
1467,
1435,
34,
20,
31,
277,
27245,
288,
3639,
6402,
63,
77,
65,
28657,
812,
13,
90,
9872,
18,
4479,
12,
20,
1769,
1377,
289,
5411,
770,
2979,
264,
273,
394,
3340,
2979,
264,
12,
15121,
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,
918,
1208,
12,
812,
770,
1621,
16,
1387,
5596,
1621,
16,
1387,
5155,
1621,
16,
10792,
1387,
1692,
4331,
13,
565,
1216,
1860,
288,
565,
3340,
2979,
264,
770,
2979,
264,
31,
565,
309,
261,
2556,
18,
1808,
12,
1615,
1621,
3719,
288,
1377,
2018,
18,
1376,
2932,
3190,
310,
5384,
770,
316,
315,
397,
770,
1621,
1769,
1377,
770,
2979,
264,
273,
394,
3340,
2979,
264,
12,
1615,
1621,
16,
333,
18,
82,
322,
343,
3976,
1769,
565,
289,
469,
288,
1377,
2018,
18,
1376,
2932,
3190,
310,
5596,
316,
315,
397,
5596,
1621,
1769,
5411,
5589,
331,
9872,
33,
2704,
5589,
5621,
1377,
1387,
5378,
6402,
273,
2662,
18,
1098,
2697,
12,
11265,
1621,
1769,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.