rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
IJavaElement jEl = ((JDTMember)member).getResource();
|
IJavaElement jEl = ((JDTMember) member).getResource();
|
public boolean processMouseclick( IMember member, boolean markupWasClicked, int buttonClicked) { if(buttonClicked != 1){ return true; } if(markupWasClicked) { return false; } if (member instanceof JDTMember) { IJavaElement jEl = ((JDTMember)member).getResource(); if (jEl != null) { JDTUtils.openInEditor(jEl.getResource(), JDTUtils.getClassDeclLineNum(jEl)); } } return false; }
|
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/26f10ecbef98a30b4b6b0af9126dee9d5819d873/AJDTContentProvider.java/buggy/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/ui/visualiser/AJDTContentProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1207,
9186,
7475,
12,
202,
202,
3445,
2558,
3140,
16,
202,
202,
6494,
9813,
14992,
27633,
16,
202,
202,
474,
3568,
27633,
13,
288,
9506,
202,
430,
12,
5391,
27633,
480,
404,
15329,
1082,
202,
2463,
638,
31,
1082,
202,
97,
202,
202,
430,
12,
15056,
14992,
27633,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
430,
261,
5990,
1276,
804,
9081,
4419,
13,
288,
1082,
202,
45,
5852,
1046,
525,
4958,
273,
14015,
46,
9081,
4419,
13,
5990,
2934,
588,
1420,
5621,
1082,
202,
430,
261,
78,
4958,
480,
446,
13,
288,
9506,
202,
46,
9081,
1989,
18,
3190,
382,
6946,
12,
78,
4958,
18,
588,
1420,
9334,
804,
9081,
1989,
18,
588,
797,
3456,
1670,
2578,
12,
78,
4958,
10019,
1082,
202,
97,
202,
202,
97,
9506,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1207,
9186,
7475,
12,
202,
202,
3445,
2558,
3140,
16,
202,
202,
6494,
9813,
14992,
27633,
16,
202,
202,
474,
3568,
27633,
13,
288,
9506,
202,
430,
12,
5391,
27633,
480,
404,
15329,
1082,
202,
2463,
638,
31,
1082,
202,
97,
202,
202,
430,
12,
15056,
14992,
27633,
13,
288,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
430,
261,
5990,
1276,
804,
9081,
4419,
13,
288,
1082,
202,
45,
5852,
1046,
525,
4958,
273,
14015,
46,
9081,
4419,
13,
5990,
2934,
588,
1420,
5621,
1082,
202,
430,
261,
78,
4958,
480,
446,
13,
288,
9506,
202,
46,
9081,
1989,
18,
3190,
382,
6946,
12,
78,
4958,
18,
588,
1420,
9334,
804,
9081,
2
] |
if ((c == Object.class || c == Class.class) && proxyClass != null) {
|
if ((c == Object.class || c == Class.class || c == Serializable.class) && proxyClass != null) {
|
public Object __tojava__(Class c) { if ((c == Object.class || c == Class.class) && proxyClass != null) { return proxyClass; } return super.__tojava__(c); }
|
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/b28e2512d54b7edaa0c9ff6e12a7672cd87ed4c5/PyClass.java/clean/org/python/core/PyClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1001,
869,
6290,
972,
12,
797,
276,
13,
288,
3639,
309,
14015,
71,
422,
1033,
18,
1106,
747,
276,
422,
1659,
18,
1106,
747,
276,
422,
13687,
18,
1106,
13,
597,
2889,
797,
480,
446,
13,
288,
5411,
327,
2889,
797,
31,
3639,
289,
3639,
327,
2240,
16186,
869,
6290,
972,
12,
71,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1001,
869,
6290,
972,
12,
797,
276,
13,
288,
3639,
309,
14015,
71,
422,
1033,
18,
1106,
747,
276,
422,
1659,
18,
1106,
747,
276,
422,
13687,
18,
1106,
13,
597,
2889,
797,
480,
446,
13,
288,
5411,
327,
2889,
797,
31,
3639,
289,
3639,
327,
2240,
16186,
869,
6290,
972,
12,
71,
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
] |
throws IOException, ServletException { HashMap services = configContext.getAxisConfiguration().getServices();
|
throws IOException, ServletException { HashMap services = configContext.getAxisConfiguration().getServices();
|
protected void processListOperation(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { HashMap services = configContext.getAxisConfiguration().getServices(); req.getSession().setAttribute(Constants.SERVICE_MAP, services); req.getSession().setAttribute(Constants.SELECT_SERVICE_TYPE, "MODULE"); renderView(SELECT_SERVICE_JSP_NAME, req, res); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9cd28cc48911efea6c6eeda6bb202d386774bc29/AdminAgent.java/buggy/modules/core/src/org/apache/axis2/transport/http/AdminAgent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1207,
682,
2988,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
565,
1216,
1860,
16,
16517,
288,
565,
4317,
4028,
273,
642,
1042,
18,
588,
6558,
1750,
7675,
588,
5676,
5621,
565,
1111,
18,
588,
2157,
7675,
542,
1499,
12,
2918,
18,
12426,
67,
8352,
16,
4028,
1769,
565,
1111,
18,
588,
2157,
7675,
542,
1499,
12,
2918,
18,
4803,
67,
12426,
67,
2399,
16,
315,
12194,
8863,
565,
1743,
1767,
12,
4803,
67,
12426,
67,
46,
3118,
67,
1985,
16,
1111,
16,
400,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1207,
682,
2988,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
565,
1216,
1860,
16,
16517,
288,
565,
4317,
4028,
273,
642,
1042,
18,
588,
6558,
1750,
7675,
588,
5676,
5621,
565,
1111,
18,
588,
2157,
7675,
542,
1499,
12,
2918,
18,
12426,
67,
8352,
16,
4028,
1769,
565,
1111,
18,
588,
2157,
7675,
542,
1499,
12,
2918,
18,
4803,
67,
12426,
67,
2399,
16,
315,
12194,
8863,
565,
1743,
1767,
12,
4803,
67,
12426,
67,
46,
3118,
67,
1985,
16,
1111,
16,
400,
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
] |
public SVNStatusEditor(String rootPath) { myRemoteStatuses = new HashMap(); myRootPath = rootPath;
|
public SVNStatusEditor() { this("");
|
public SVNStatusEditor(String rootPath) { myRemoteStatuses = new HashMap(); myRootPath = rootPath; }
|
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/070f723867e4fde4e60e498a40962278fdfd1a96/SVNStatusEditor.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/SVNStatusEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
1482,
6946,
12,
780,
13959,
13,
288,
3639,
3399,
5169,
15220,
273,
394,
4317,
5621,
3639,
3399,
21302,
273,
13959,
31,
565,
289,
377,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
1482,
6946,
12,
780,
13959,
13,
288,
3639,
3399,
5169,
15220,
273,
394,
4317,
5621,
3639,
3399,
21302,
273,
13959,
31,
565,
289,
377,
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
] |
logError(Messages.getString("SelectValues.Log.UnexpectedError")+debug+"' : "+e.toString());
|
logError(Messages.getString("SelectValues.Log.UnexpectedError")+" : "+e.toString());
|
public void run() { try { logBasic(Messages.getString("SelectValues.Log.StartingToRun")); //$NON-NLS-1$ while (processRow(meta, data) && !isStopped()); } catch(Exception e) { logError(Messages.getString("SelectValues.Log.UnexpectedError")+debug+"' : "+e.toString()); //$NON-NLS-1$ //$NON-NLS-2$ logError(Const.getStackTracker(e)); setErrors(1); stopAll(); } finally { dispose(meta, data); logSummary(); markStop(); } }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/b8c6b02ffc35cf6ae44d1cb0cdf4ecec0144af21/SelectValues.java/clean/kettle/src/be/ibridge/kettle/trans/step/selectvalues/SelectValues.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
1330,
8252,
12,
5058,
18,
588,
780,
2932,
3391,
1972,
18,
1343,
18,
11715,
774,
1997,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
17523,
261,
2567,
1999,
12,
3901,
16,
501,
13,
597,
401,
291,
15294,
10663,
202,
202,
97,
202,
202,
14683,
12,
503,
425,
13,
202,
202,
95,
1082,
202,
1330,
668,
12,
5058,
18,
588,
780,
2932,
3391,
1972,
18,
1343,
18,
7762,
668,
7923,
9078,
294,
13773,
73,
18,
10492,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
5411,
20638,
12,
9661,
18,
588,
2624,
8135,
12,
73,
10019,
5411,
444,
4229,
12,
21,
1769,
1082,
202,
5681,
1595,
5621,
202,
202,
97,
202,
202,
23417,
202,
202,
95,
1082,
202,
2251,
4150,
12,
3901,
16,
501,
1769,
1082,
202,
1330,
4733,
5621,
1082,
202,
3355,
4947,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
1330,
8252,
12,
5058,
18,
588,
780,
2932,
3391,
1972,
18,
1343,
18,
11715,
774,
1997,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
17523,
261,
2567,
1999,
12,
3901,
16,
501,
13,
597,
401,
291,
15294,
10663,
202,
202,
97,
202,
202,
14683,
12,
503,
425,
13,
202,
202,
95,
1082,
202,
1330,
668,
12,
5058,
18,
588,
780,
2932,
3391,
1972,
18,
1343,
18,
7762,
668,
7923,
9078,
294,
13773,
73,
18,
10492,
10663,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
5411,
20638,
12,
9661,
18,
588,
2624,
8135,
12,
73,
2
] |
((NavigatorContentProvider) getContentProvider())
|
((SafeDelegateTreeContentProvider) getContentProvider())
|
public ICommonLabelProvider getLabelProvider() { if (labelProvider != null || labelProviderInitializationFailed) return labelProvider; synchronized (this) { try { if (labelProvider == null) { ILabelProvider tempLabelProvider = descriptor .createLabelProvider(); if (tempLabelProvider instanceof ICommonLabelProvider) { labelProvider = (ICommonLabelProvider) tempLabelProvider; if (getContentProvider() instanceof NavigatorContentProvider) labelProvider .init( getStateModel(), ((NavigatorContentProvider) getContentProvider()) .getDelegateContentProvider()); else labelProvider.init(getStateModel(), SkeletonTreeContentProvider.INSTANCE); } else { labelProvider = new DelegateCommonLabelProvider( tempLabelProvider); } } } catch (CoreException e) { labelProviderInitializationFailed = true; e.printStackTrace(); } catch (RuntimeException e) { labelProviderInitializationFailed = true; e.printStackTrace(); } if (labelProviderInitializationFailed) labelProvider = SkeletonLabelProvider.INSTANCE; } return labelProvider; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c93d807ed962723d90daba76fc2003e2c1801cbc/NavigatorContentExtension.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/extensions/NavigatorContentExtension.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
6517,
2224,
2249,
11237,
2249,
1435,
288,
202,
202,
430,
261,
1925,
2249,
480,
446,
747,
1433,
2249,
17701,
2925,
13,
1082,
202,
2463,
1433,
2249,
31,
202,
202,
22043,
261,
2211,
13,
288,
1082,
202,
698,
288,
9506,
202,
430,
261,
1925,
2249,
422,
446,
13,
288,
6862,
202,
45,
2224,
2249,
1906,
2224,
2249,
273,
4950,
6862,
1082,
202,
18,
2640,
2224,
2249,
5621,
6862,
202,
430,
261,
5814,
2224,
2249,
1276,
467,
6517,
2224,
2249,
13,
288,
25083,
202,
1925,
2249,
273,
261,
45,
6517,
2224,
2249,
13,
1906,
2224,
2249,
31,
25083,
202,
430,
261,
588,
1350,
2249,
1435,
1276,
423,
13061,
1350,
2249,
13,
6862,
1082,
202,
1925,
2249,
6862,
6862,
202,
18,
2738,
12,
6862,
6862,
1082,
202,
588,
1119,
1488,
9334,
6862,
6862,
1082,
202,
12443,
22817,
1350,
2249,
13,
5154,
2249,
10756,
6862,
6862,
6862,
202,
18,
588,
9586,
1350,
2249,
10663,
25083,
202,
12107,
6862,
1082,
202,
1925,
2249,
18,
2738,
12,
588,
1119,
1488,
9334,
6862,
6862,
202,
28070,
2471,
1350,
2249,
18,
13341,
1769,
6862,
202,
97,
469,
288,
25083,
202,
1925,
2249,
273,
394,
27687,
6517,
2224,
2249,
12,
6862,
9506,
202,
5814,
2224,
2249,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1044,
261,
25341,
425,
13,
288,
9506,
202,
1925,
2249,
17701,
2925,
273,
638,
31,
9506,
202,
73,
18,
1188,
6332,
5621,
1082,
202,
97,
1044,
261,
11949,
425,
13,
288,
9506,
202,
1925,
2249,
17701,
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,
467,
6517,
2224,
2249,
11237,
2249,
1435,
288,
202,
202,
430,
261,
1925,
2249,
480,
446,
747,
1433,
2249,
17701,
2925,
13,
1082,
202,
2463,
1433,
2249,
31,
202,
202,
22043,
261,
2211,
13,
288,
1082,
202,
698,
288,
9506,
202,
430,
261,
1925,
2249,
422,
446,
13,
288,
6862,
202,
45,
2224,
2249,
1906,
2224,
2249,
273,
4950,
6862,
1082,
202,
18,
2640,
2224,
2249,
5621,
6862,
202,
430,
261,
5814,
2224,
2249,
1276,
467,
6517,
2224,
2249,
13,
288,
25083,
202,
1925,
2249,
273,
261,
45,
6517,
2224,
2249,
13,
1906,
2224,
2249,
31,
25083,
202,
430,
261,
588,
1350,
2249,
1435,
1276,
423,
13061,
1350,
2249,
13,
6862,
1082,
202,
1925,
2249,
6862,
2
] |
if (!isPathSelected(value0))
|
if (!isPathSelected(path))
|
public void addSelectionPath(TreePath value0) { if (!isPathSelected(value0)) { if (isSelectionEmpty()) setSelectionPath(value0); else { TreePath[] temp = new TreePath[selection.length + 1]; System.arraycopy(selection, 0, temp, 0, selection.length); temp[temp.length - 1] = value0; selection = new TreePath[temp.length]; System.arraycopy(temp, 0, selection, 0, temp.length); } leadPath = value0; fireValueChanged(new TreeSelectionEvent(this, value0, true, leadPath, value0)); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
6233,
743,
12,
2471,
743,
460,
20,
13,
225,
288,
202,
202,
430,
16051,
291,
743,
7416,
12,
1132,
20,
3719,
202,
202,
95,
1082,
202,
430,
261,
291,
6233,
1921,
10756,
9506,
202,
542,
6233,
743,
12,
1132,
20,
1769,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
2471,
743,
8526,
1906,
273,
394,
4902,
743,
63,
10705,
18,
2469,
397,
404,
15533,
9506,
202,
3163,
18,
1126,
3530,
12,
10705,
16,
374,
16,
1906,
16,
374,
16,
4421,
18,
2469,
1769,
9506,
202,
5814,
63,
5814,
18,
2469,
300,
404,
65,
273,
460,
20,
31,
9506,
202,
10705,
273,
394,
4902,
743,
63,
5814,
18,
2469,
15533,
9506,
202,
3163,
18,
1126,
3530,
12,
5814,
16,
374,
16,
4421,
16,
374,
16,
1906,
18,
2469,
1769,
1082,
202,
97,
1082,
202,
24429,
743,
273,
460,
20,
31,
1082,
202,
12179,
620,
5033,
12,
2704,
4902,
6233,
1133,
12,
2211,
16,
460,
20,
16,
638,
16,
6862,
202,
24429,
743,
16,
460,
20,
10019,
202,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
6233,
743,
12,
2471,
743,
460,
20,
13,
225,
288,
202,
202,
430,
16051,
291,
743,
7416,
12,
1132,
20,
3719,
202,
202,
95,
1082,
202,
430,
261,
291,
6233,
1921,
10756,
9506,
202,
542,
6233,
743,
12,
1132,
20,
1769,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
2471,
743,
8526,
1906,
273,
394,
4902,
743,
63,
10705,
18,
2469,
397,
404,
15533,
9506,
202,
3163,
18,
1126,
3530,
12,
10705,
16,
374,
16,
1906,
16,
374,
16,
4421,
18,
2469,
1769,
9506,
202,
5814,
63,
5814,
18,
2469,
300,
404,
65,
273,
460,
20,
31,
9506,
202,
10705,
273,
394,
4902,
743,
63,
5814,
18,
2469,
15533,
9506,
202,
3163,
18,
1126,
3530,
2
] |
Modification mod = new Modification();
|
Modification mod = new Modification("http"); Modification.ModifiedFile modfile = mod.createModifiedFile(url.getFile(), url.getPath());
|
public List getModifications(Date lastBuild, Date now) { long lastModified; final URL url; try { url = new URL(this.urlString); } catch (MalformedURLException e) { // already checked return new ArrayList(); } try { final URLConnection con = url.openConnection(); lastModified = con.getLastModified(); con.getInputStream().close(); } catch (IOException e) { log.error("Could not connect to 'url'", e); return new ArrayList(); } List modifiedList = new ArrayList(); if (lastModified > lastBuild.getTime()) { Modification mod = new Modification(); mod.userName = "User"; mod.fileName = url.getFile(); mod.modifiedTime = new Date(lastModified); mod.comment = ""; modifiedList.add(mod); } return modifiedList; }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/0b0ffff0e707cb59916a9d7dac2454f2c0303172/HttpFile.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/HttpFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
336,
28340,
12,
1626,
1142,
3116,
16,
2167,
2037,
13,
288,
3639,
1525,
12709,
31,
3639,
727,
1976,
880,
31,
3639,
775,
288,
5411,
880,
273,
394,
1976,
12,
2211,
18,
718,
780,
1769,
3639,
289,
1044,
261,
18695,
20160,
425,
13,
288,
5411,
368,
1818,
5950,
5411,
327,
394,
2407,
5621,
3639,
289,
3639,
775,
288,
5411,
727,
1976,
1952,
356,
273,
880,
18,
3190,
1952,
5621,
5411,
12709,
273,
356,
18,
588,
14747,
5621,
5411,
356,
18,
588,
4348,
7675,
4412,
5621,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
613,
18,
1636,
2932,
4445,
486,
3077,
358,
296,
718,
11,
3113,
425,
1769,
5411,
327,
394,
2407,
5621,
3639,
289,
3639,
987,
4358,
682,
273,
394,
2407,
5621,
3639,
309,
261,
2722,
4575,
405,
1142,
3116,
18,
588,
950,
10756,
288,
5411,
3431,
1480,
681,
273,
394,
3431,
1480,
2932,
2505,
8863,
3431,
1480,
18,
4575,
812,
681,
768,
273,
681,
18,
2640,
4575,
812,
12,
718,
18,
29925,
9334,
880,
18,
588,
743,
10663,
2398,
681,
18,
1355,
461,
273,
315,
1299,
14432,
5411,
681,
18,
17812,
273,
880,
18,
29925,
5621,
5411,
681,
18,
7342,
950,
273,
394,
2167,
12,
2722,
4575,
1769,
5411,
681,
18,
3469,
273,
1408,
31,
5411,
4358,
682,
18,
1289,
12,
1711,
1769,
3639,
289,
3639,
327,
4358,
682,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
336,
28340,
12,
1626,
1142,
3116,
16,
2167,
2037,
13,
288,
3639,
1525,
12709,
31,
3639,
727,
1976,
880,
31,
3639,
775,
288,
5411,
880,
273,
394,
1976,
12,
2211,
18,
718,
780,
1769,
3639,
289,
1044,
261,
18695,
20160,
425,
13,
288,
5411,
368,
1818,
5950,
5411,
327,
394,
2407,
5621,
3639,
289,
3639,
775,
288,
5411,
727,
1976,
1952,
356,
273,
880,
18,
3190,
1952,
5621,
5411,
12709,
273,
356,
18,
588,
14747,
5621,
5411,
356,
18,
588,
4348,
7675,
4412,
5621,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
613,
18,
1636,
2932,
4445,
486,
3077,
358,
296,
718,
11,
3113,
425,
1769,
5411,
327,
394,
2407,
5621,
3639,
289,
3639,
987,
2
] |
if(clauseSequence.matches( "[\\w+]["+this.clause+"][\\w+]" )) {
|
if(clauseSequence.matches( "(\\w+)("+this.clause+")(\\w+)" )) {
|
protected Object doInvokeInternal(final Class clazz, String methodName, Object[] arguments) { Matcher match = super.getPattern().matcher( methodName ); String[] clauses; // get the sequence clauses String clauseSequence = match.group(2); // if it contains logical ands split on Ands if(clauseSequence.matches( "[\\w+]["+this.clause+"][\\w+]" )) { // TODO: Bit error prone this, as properties could start // with "and" which would cause a problem. discuss? clauses = clauseSequence.split(this.clause); // convert first characters to lower case for (int i = 0; i < clauses.length; i++) { clauses[i] = clauses[i].substring(0,0).toLowerCase() + clauses[i].substring(1); } } // otherwise there is only one clause else { clauses = new String[1]; // convert first char to lower case clauses[0] = clauseSequence.substring(0,0).toLowerCase() + clauseSequence.substring(1); } // The number of clauses must equal the number of arguments if(clauses.length != arguments.length) throw new MissingMethodException(methodName,clazz,arguments); final Map queryMap = createQueryMap(clauses, arguments); return doInvokeInternalWithQueryMap(clazz, methodName, arguments, queryMap); }
|
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/0eaccb7593c553bc3f5eca1a5d3966a06edece60/AbstractClausedStaticPersistentMethod.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
6286,
845,
273,
2240,
18,
588,
3234,
7675,
22761,
12,
4918,
11272,
202,
202,
780,
8526,
14093,
31,
9506,
202,
759,
336,
326,
3102,
14093,
202,
202,
780,
6591,
4021,
273,
845,
18,
1655,
12,
22,
1769,
202,
202,
759,
309,
518,
1914,
6374,
471,
87,
1416,
603,
1922,
2377,
202,
202,
430,
12,
18128,
4021,
18,
8436,
12,
5158,
1695,
91,
15,
6362,
6,
15,
2211,
18,
18128,
9078,
6362,
1695,
91,
15,
4279,
8623,
288,
1082,
202,
759,
2660,
30,
6539,
555,
846,
476,
333,
16,
487,
1790,
3377,
787,
1875,
202,
759,
598,
315,
464,
6,
1492,
4102,
4620,
279,
6199,
18,
1015,
7641,
35,
1875,
202,
830,
9608,
273,
6591,
4021,
18,
4939,
12,
2211,
18,
18128,
1769,
1082,
202,
759,
1765,
1122,
3949,
358,
2612,
648,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
14093,
18,
2469,
31,
277,
27245,
288,
9506,
202,
830,
9608,
63,
77,
65,
273,
14093,
63,
77,
8009,
28023,
12,
20,
16,
20,
2934,
869,
5630,
1435,
6862,
397,
14093,
63,
77,
8009,
28023,
12,
21,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
3541,
1915,
353,
1338,
1245,
6591,
202,
202,
12107,
288,
1082,
202,
830,
9608,
273,
394,
514,
63,
21,
15533,
1082,
202,
759,
1765,
1122,
1149,
358,
2612,
648,
1082,
202,
830,
9608,
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,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
921,
8526,
1775,
13,
288,
202,
202,
6286,
845,
273,
2240,
18,
588,
3234,
7675,
22761,
12,
4918,
11272,
202,
202,
780,
8526,
14093,
31,
9506,
202,
759,
336,
326,
3102,
14093,
202,
202,
780,
6591,
4021,
273,
845,
18,
1655,
12,
22,
1769,
202,
202,
759,
309,
518,
1914,
6374,
471,
87,
1416,
603,
1922,
2377,
202,
202,
430,
12,
18128,
4021,
18,
8436,
12,
5158,
1695,
91,
15,
6362,
6,
15,
2211,
18,
18128,
9078,
6362,
1695,
91,
15,
4279,
8623,
288,
1082,
202,
759,
2660,
30,
6539,
555,
846,
476,
333,
16,
487,
1790,
3377,
787,
1875,
202,
759,
2
] |
ThreadContext context = runtime.getCurrentContext();
|
ThreadContext context = getRuntime().getCurrentContext();
|
private IRubyObject yieldUnder(RubyModule under) { return under.executeUnder(new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] args) { ThreadContext context = runtime.getCurrentContext(); Block block = context.getBlockStack().getCurrent(); Visibility savedVisibility = block.getVisibility(); block.setVisibility(Visibility.PUBLIC); try { IRubyObject valueInYield = args[0]; IRubyObject selfInYield = args[0]; return context.yield(valueInYield, selfInYield, context.getRubyClass(), false, false); } catch (BreakJump e) { IRubyObject breakValue = e.getBreakValue(); return breakValue == null ? runtime.getNil() : breakValue; } finally { block.setVisibility(savedVisibility); } } public Arity getArity() { return Arity.optional(); } }, new IRubyObject[] { this }); }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyObject.java/clean/src/org/jruby/RubyObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
2824,
14655,
12,
54,
10340,
3120,
3613,
13,
288,
3639,
327,
3613,
18,
8837,
14655,
12,
2704,
8444,
1435,
288,
5411,
1071,
15908,
10340,
921,
1836,
12,
7937,
10340,
921,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
7734,
4884,
1042,
819,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
3914,
1203,
273,
819,
18,
588,
1768,
2624,
7675,
588,
3935,
5621,
7734,
27791,
5198,
10135,
273,
1203,
18,
588,
10135,
5621,
7734,
1203,
18,
542,
10135,
12,
10135,
18,
14939,
1769,
7734,
775,
288,
10792,
15908,
10340,
921,
460,
382,
16348,
273,
833,
63,
20,
15533,
10792,
15908,
10340,
921,
365,
382,
16348,
273,
833,
63,
20,
15533,
10792,
327,
819,
18,
23604,
12,
1132,
382,
16348,
16,
365,
382,
16348,
16,
819,
18,
588,
54,
10340,
797,
9334,
629,
16,
629,
1769,
7734,
289,
1044,
261,
7634,
26743,
425,
13,
288,
10792,
15908,
10340,
921,
898,
620,
273,
425,
18,
588,
7634,
620,
5621,
4766,
3639,
327,
898,
620,
422,
446,
692,
3099,
18,
588,
12616,
1435,
294,
898,
620,
31,
7734,
289,
3095,
288,
10792,
1203,
18,
542,
10135,
12,
14077,
10135,
1769,
7734,
289,
5411,
289,
5411,
1071,
1201,
560,
336,
686,
560,
1435,
288,
7734,
327,
1201,
560,
18,
10444,
5621,
5411,
289,
3639,
19879,
394,
15908,
10340,
921,
8526,
288,
333,
15549,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
15908,
10340,
921,
2824,
14655,
12,
54,
10340,
3120,
3613,
13,
288,
3639,
327,
3613,
18,
8837,
14655,
12,
2704,
8444,
1435,
288,
5411,
1071,
15908,
10340,
921,
1836,
12,
7937,
10340,
921,
365,
16,
15908,
10340,
921,
8526,
833,
13,
288,
7734,
4884,
1042,
819,
273,
18814,
7675,
588,
3935,
1042,
5621,
7734,
3914,
1203,
273,
819,
18,
588,
1768,
2624,
7675,
588,
3935,
5621,
7734,
27791,
5198,
10135,
273,
1203,
18,
588,
10135,
5621,
7734,
1203,
18,
542,
10135,
12,
10135,
18,
14939,
1769,
7734,
775,
288,
10792,
15908,
10340,
921,
460,
382,
16348,
273,
833,
63,
20,
15533,
10792,
15908,
10340,
921,
365,
382,
16348,
273,
833,
63,
20,
15533,
10792,
327,
819,
18,
2
] |
messageLabel.setFont(composite.getFont());
|
protected Control createMessageArea(Composite composite) { // create composite // create image Image image = getImage(); if (image != null) { Label label = new Label(composite, SWT.NULL); image.setBackground(label.getBackground()); label.setImage(image); label.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_CENTER | GridData.VERTICAL_ALIGN_BEGINNING)); } // create message if (message != null) { messageLabel = new Label(composite, SWT.WRAP); messageLabel.setText(message); GridData data = new GridData( GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_BEGINNING); data.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH); messageLabel.setLayoutData(data); messageLabel.setFont(composite.getFont()); } return composite; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a9ffb3764e5d2b4198f8b3321a9b5b2afa9913a4/IconAndMessageDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IconAndMessageDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
23836,
5484,
12,
9400,
9635,
13,
288,
202,
202,
759,
752,
9635,
202,
202,
759,
752,
1316,
202,
202,
2040,
1316,
273,
10567,
5621,
202,
202,
430,
261,
2730,
480,
446,
13,
288,
1082,
202,
2224,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
8560,
1769,
1082,
202,
2730,
18,
542,
8199,
12,
1925,
18,
588,
8199,
10663,
1082,
202,
1925,
18,
542,
2040,
12,
2730,
1769,
1082,
202,
1925,
18,
542,
3744,
751,
12,
9506,
202,
2704,
7145,
751,
12,
6862,
202,
6313,
751,
18,
44,
20344,
67,
26439,
67,
19835,
25083,
202,
96,
7145,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
10019,
202,
202,
97,
202,
202,
759,
752,
883,
202,
202,
430,
261,
2150,
480,
446,
13,
288,
1082,
202,
2150,
2224,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
27664,
1769,
1082,
202,
2150,
2224,
18,
542,
1528,
12,
2150,
1769,
1082,
202,
6313,
751,
501,
273,
9506,
202,
2704,
7145,
751,
12,
6862,
202,
6313,
751,
18,
6997,
2090,
67,
44,
20344,
25083,
202,
96,
7145,
751,
18,
44,
20344,
67,
26439,
67,
29818,
25083,
202,
96,
7145,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
1769,
1082,
202,
892,
18,
2819,
7002,
273,
9506,
202,
6283,
14457,
8914,
3477,
774,
18079,
12,
6862,
202,
734,
3529,
2918,
18,
6236,
18605,
67,
8723,
67,
20933,
67,
10023,
1769,
1082,
202,
2150,
2224,
18,
542,
3744,
751,
12,
892,
1769,
1082,
202,
2150,
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,
23836,
5484,
12,
9400,
9635,
13,
288,
202,
202,
759,
752,
9635,
202,
202,
759,
752,
1316,
202,
202,
2040,
1316,
273,
10567,
5621,
202,
202,
430,
261,
2730,
480,
446,
13,
288,
1082,
202,
2224,
1433,
273,
394,
5287,
12,
27676,
16,
348,
8588,
18,
8560,
1769,
1082,
202,
2730,
18,
542,
8199,
12,
1925,
18,
588,
8199,
10663,
1082,
202,
1925,
18,
542,
2040,
12,
2730,
1769,
1082,
202,
1925,
18,
542,
3744,
751,
12,
9506,
202,
2704,
7145,
751,
12,
6862,
202,
6313,
751,
18,
44,
20344,
67,
26439,
67,
19835,
25083,
202,
96,
7145,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
10019,
202,
202,
97,
202,
202,
759,
752,
2
] |
|
log.error("Could not read history", e);
|
logger.error("Could not read history", e);
|
public QueryResultSet findByEndDate(MetaContact contact, Date endDate) throws RuntimeException { Vector result = new Vector(); Iterator iter = contact.getContacts(); while (iter.hasNext()) { Contact item = (Contact) iter.next(); try { History history = this.getHistory(null, item); Iterator recs = history.getReader().findByEndDate(endDate); while (recs.hasNext()) { result.add(recs.next()); } } catch (IOException e) { log.error("Could not read history", e); } } return new DefaultQueryResultSet(result); }
|
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/11966e7e6eff4c2dbe363dd6ccb24783e18f0cff/MessageHistoryServiceImpl.java/buggy/src/net/java/sip/communicator/impl/msghistory/MessageHistoryServiceImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
13198,
6224,
24640,
12,
2781,
6567,
5388,
16,
2167,
13202,
13,
3639,
1216,
3235,
565,
288,
3639,
5589,
563,
273,
394,
5589,
5621,
3639,
4498,
1400,
273,
5388,
18,
588,
20017,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
3639,
288,
5411,
13329,
761,
273,
261,
6567,
13,
1400,
18,
4285,
5621,
5411,
775,
5411,
288,
7734,
16058,
4927,
273,
333,
18,
588,
5623,
12,
2011,
16,
761,
1769,
7734,
4498,
27255,
273,
4927,
18,
588,
2514,
7675,
4720,
858,
24640,
12,
409,
1626,
1769,
7734,
1323,
261,
266,
2143,
18,
5332,
2134,
10756,
7734,
288,
10792,
563,
18,
1289,
12,
266,
2143,
18,
4285,
10663,
7734,
289,
5411,
289,
1044,
261,
14106,
425,
13,
5411,
288,
7734,
1194,
18,
1636,
2932,
4445,
486,
855,
4927,
3113,
425,
1769,
5411,
289,
3639,
289,
3639,
327,
394,
2989,
1138,
13198,
12,
2088,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
13198,
6224,
24640,
12,
2781,
6567,
5388,
16,
2167,
13202,
13,
3639,
1216,
3235,
565,
288,
3639,
5589,
563,
273,
394,
5589,
5621,
3639,
4498,
1400,
273,
5388,
18,
588,
20017,
5621,
3639,
1323,
261,
2165,
18,
5332,
2134,
10756,
3639,
288,
5411,
13329,
761,
273,
261,
6567,
13,
1400,
18,
4285,
5621,
5411,
775,
5411,
288,
7734,
16058,
4927,
273,
333,
18,
588,
5623,
12,
2011,
16,
761,
1769,
7734,
4498,
27255,
273,
4927,
18,
588,
2514,
7675,
4720,
858,
24640,
12,
409,
1626,
1769,
7734,
1323,
261,
266,
2143,
18,
5332,
2134,
10756,
7734,
288,
10792,
563,
18,
1289,
12,
266,
2143,
18,
4285,
10663,
7734,
289,
5411,
289,
1044,
261,
14106,
425,
13,
2
] |
public static Timestamp toTimestamp(String s, ResultSet resultSet) throws SQLException
|
public static Timestamp toTimestamp(String s, ResultSet resultSet) throws SQLException
|
public static Timestamp toTimestamp(String s, ResultSet resultSet) throws SQLException { if (s == null) return null; boolean subsecond; //if string contains a '.' we have fractional seconds if (s.indexOf('.') == -1) { subsecond = false; } else { subsecond = true; } //here we are modifying the string from ISO format to a format java can understand //java expects timezone info as 'GMT-08:00' instead of '-08' in postgres ISO format //and java expects three digits if fractional seconds are present instead of two for postgres //so this code strips off timezone info and adds on the GMT+/-... //as well as adds a third digit for partial seconds if necessary synchronized (resultSet) { // We must be synchronized here incase more theads access the ResultSet // bad practice but possible. Anyhow this is to protect sbuf and // SimpleDateFormat objects // First time? if (resultSet.sbuf == null) resultSet.sbuf = new StringBuffer(); resultSet.sbuf.setLength(0); resultSet.sbuf.append(s); //we are looking to see if the backend has appended on a timezone. //currently postgresql will return +/-HH:MM or +/-HH for timezone offset //(i.e. -06, or +06:30, note the expectation of the leading zero for the //hours, and the use of the : for delimiter between hours and minutes) //if the backend ISO format changes in the future this code will //need to be changed as well char sub = resultSet.sbuf.charAt(resultSet.sbuf.length() - 3); if (sub == '+' || sub == '-') { //we have found timezone info of format +/-HH resultSet.sbuf.setLength(resultSet.sbuf.length() - 3); if (subsecond) { resultSet.sbuf.append('0').append("GMT").append(s.substring(s.length() - 3)).append(":00"); } else { resultSet.sbuf.append("GMT").append(s.substring(s.length() - 3)).append(":00"); } } else if (sub == ':') { //we may have found timezone info of format +/-HH:MM, or there is no //timezone info at all and this is the : preceding the seconds char sub2 = resultSet.sbuf.charAt(resultSet.sbuf.length() - 5); if (sub2 == '+' || sub2 == '-') { //we have found timezone info of format +/-HH:MM resultSet.sbuf.setLength(resultSet.sbuf.length() - 5); if (subsecond) { resultSet.sbuf.append('0').append("GMT").append(s.substring(s.length() - 5)); } else { resultSet.sbuf.append("GMT").append(s.substring(s.length() - 5)); } } else if (subsecond) { resultSet.sbuf.append('0'); } } else if (subsecond) { resultSet.sbuf.append('0'); } // could optimize this a tad to remove too many object creations... SimpleDateFormat df = null; if (resultSet.sbuf.length() > 23 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSzzzzzzzzz"); } else if (resultSet.sbuf.length() > 23 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:sszzzzzzzzz"); } else if (resultSet.sbuf.length() > 10 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); } else if (resultSet.sbuf.length() > 10 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } else { df = new SimpleDateFormat("yyyy-MM-dd"); } try { return new Timestamp(df.parse(resultSet.sbuf.toString()).getTime()); } catch (ParseException e) { throw new PSQLException("postgresql.res.badtimestamp", new Integer(e.getErrorOffset()), s); } } }
|
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/3dd85bcb08440bae6210114124aa0002a83c957c/ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
8159,
358,
4921,
12,
780,
272,
16,
10842,
12168,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
6494,
720,
8538,
31,
202,
202,
759,
430,
533,
1914,
279,
2611,
732,
1240,
20462,
3974,
202,
202,
430,
261,
87,
18,
31806,
2668,
1093,
13,
422,
300,
21,
13,
202,
202,
95,
1082,
202,
1717,
8538,
273,
629,
31,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1717,
8538,
273,
638,
31,
202,
202,
97,
202,
202,
759,
14852,
732,
854,
21920,
326,
533,
628,
9351,
740,
358,
279,
740,
2252,
848,
22413,
202,
202,
759,
6290,
10999,
6371,
1123,
487,
296,
25315,
17,
6840,
30,
713,
11,
3560,
434,
2400,
6840,
11,
316,
1603,
14107,
9351,
740,
202,
202,
759,
464,
2252,
10999,
8925,
6815,
309,
20462,
3974,
854,
3430,
3560,
434,
2795,
364,
1603,
14107,
202,
202,
759,
2048,
333,
981,
2569,
87,
3397,
6371,
1123,
471,
4831,
603,
326,
21706,
31298,
17,
2777,
202,
202,
759,
345,
5492,
487,
4831,
279,
12126,
8035,
364,
4702,
3974,
309,
4573,
202,
202,
22043,
261,
2088,
694,
13,
202,
202,
95,
1082,
202,
759,
1660,
1297,
506,
3852,
2674,
316,
3593,
1898,
326,
17318,
2006,
326,
10842,
1082,
202,
759,
5570,
27164,
1496,
3323,
18,
5502,
13606,
333,
353,
358,
17151,
2393,
696,
471,
1082,
202,
759,
17005,
2184,
1082,
202,
759,
5783,
813,
35,
1082,
202,
430,
261,
2088,
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,
8159,
358,
4921,
12,
780,
272,
16,
10842,
12168,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
6494,
720,
8538,
31,
202,
202,
759,
430,
533,
1914,
279,
2611,
732,
1240,
20462,
3974,
202,
202,
430,
261,
87,
18,
31806,
2668,
1093,
13,
422,
300,
21,
13,
202,
202,
95,
1082,
202,
1717,
8538,
273,
629,
31,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
1717,
8538,
273,
638,
31,
202,
202,
97,
202,
202,
759,
14852,
732,
854,
21920,
326,
533,
628,
9351,
740,
358,
279,
740,
2252,
848,
22413,
202,
202,
759,
6290,
10999,
6371,
1123,
487,
296,
2
] |
public long getTransHopID(long id_transformation, long id_step_from, long id_step_to)
|
public synchronized long getTransHopID(long id_transformation, long id_step_from, long id_step_to)
|
public long getTransHopID(long id_transformation, long id_step_from, long id_step_to) throws KettleDatabaseException { String lookupkey[] = new String[] { "ID_TRANSFORMATION", "ID_STEP_FROM", "ID_STEP_TO" }; long key[] = new long[] { id_transformation, id_step_from, id_step_to }; return getIDWithValue("R_TRANS_HOP", "ID_TRANS_HOP", lookupkey, key); }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/9a23bf7234591fe690816bbf6320414c2ad3eaae/Repository.java/clean/src/be/ibridge/kettle/repository/Repository.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
336,
1429,
27461,
734,
12,
5748,
612,
67,
2338,
1471,
16,
1525,
612,
67,
4119,
67,
2080,
16,
1525,
612,
67,
4119,
67,
869,
13,
1082,
202,
15069,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
780,
3689,
856,
8526,
273,
394,
514,
8526,
288,
315,
734,
67,
16596,
23805,
3113,
315,
734,
67,
26951,
67,
11249,
3113,
315,
734,
67,
26951,
67,
4296,
6,
289,
31,
202,
202,
5748,
498,
8526,
273,
394,
1525,
8526,
288,
612,
67,
2338,
1471,
16,
612,
67,
4119,
67,
2080,
16,
612,
67,
4119,
67,
869,
289,
31,
202,
202,
2463,
14744,
1190,
620,
2932,
54,
67,
16596,
67,
44,
3665,
3113,
315,
734,
67,
16596,
67,
44,
3665,
3113,
3689,
856,
16,
498,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
336,
1429,
27461,
734,
12,
5748,
612,
67,
2338,
1471,
16,
1525,
612,
67,
4119,
67,
2080,
16,
1525,
612,
67,
4119,
67,
869,
13,
1082,
202,
15069,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
780,
3689,
856,
8526,
273,
394,
514,
8526,
288,
315,
734,
67,
16596,
23805,
3113,
315,
734,
67,
26951,
67,
11249,
3113,
315,
734,
67,
26951,
67,
4296,
6,
289,
31,
202,
202,
5748,
498,
8526,
273,
394,
1525,
8526,
288,
612,
67,
2338,
1471,
16,
612,
67,
4119,
67,
2080,
16,
612,
67,
4119,
67,
869,
289,
31,
202,
202,
2463,
14744,
1190,
620,
2932,
54,
67,
16596,
67,
44,
3665,
3113,
315,
734,
67,
16596,
67,
2
] |
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= Commentsopt PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { Object comment = btParser.getSym(1); PackageNode a = (PackageNode) btParser.getSym(2); List b = (List) btParser.getSym(3), c = (List) btParser.getSym(4); Node n = nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c); if (comment != null) { n.setComment(comment.toString()); } btParser.setSym1(n); break; } // // Rule 45: Comments ::= Comment // case 45: { Object comment = comment(btParser.getToken(1)); btParser.setSym1(comment); break; } // // Rule 46: Comments ::= Comments Comment // case 46: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 47: ImportDeclarations ::= ImportDeclaration // case 47: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 48: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: TypeDeclarations ::= Commentsopt TypeDeclaration // case 49: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(2); if (a != null) l.add(a); if (comment != null) { a.setComment(comment.toString()); } btParser.setSym1(l); break; } // // Rule 50: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 50: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 51: PackageDeclaration ::= package PackageName SEMICOLON // case 51: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 52: ImportDeclaration ::= SingleTypeImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 53: break; // // Rule 54: ImportDeclaration ::= SingleStaticImportDeclaration // case 54: break; // // Rule 55: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 55: break; // // Rule 56: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 56: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 57: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 57: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 58: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 58: bad_rule = 58; break; // // Rule 59: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 59: bad_rule = 59; break; // // Rule 60: TypeDeclaration ::= ClassDeclaration // case 60: break; // // Rule 61: TypeDeclaration ::= InterfaceDeclaration // case 61: break; // // Rule 62: TypeDeclaration ::= SEMICOLON // case 62: { btParser.setSym1(null); break; } // // Rule 63: ClassDeclaration ::= NormalClassDeclaration // case 63: break; // // Rule 64: NormalClassDeclaration ::= Commentsopt ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 64: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(5); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); Node n = a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e); if (comment != null) n.setComment(comment.toString()); btParser.setSym1(n); break; } // // Rule 65: ClassModifiers ::= ClassModifier // case 65: break; // // Rule 66: ClassModifiers ::= ClassModifiers ClassModifier // case 66: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 67: ClassModifier ::= public // case 67: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 68: ClassModifier ::= protected // case 68: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 69: ClassModifier ::= private // case 69: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 70: ClassModifier ::= abstract // case 70: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 71: ClassModifier ::= static // case 71: { btParser.setSym1(Flags.STATIC); break; } // // Rule 72: ClassModifier ::= final // case 72: { btParser.setSym1(Flags.FINAL); break; } // // Rule 73: ClassModifier ::= strictfp // case 73: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 74: TypeParameters ::= LESS TypeParameterList GREATER // case 74: bad_rule = 74; break; // // Rule 75: TypeParameterList ::= TypeParameter // case 75: bad_rule = 75; break; // // Rule 76: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 76: bad_rule = 76; break; // // Rule 77: Super ::= extends ClassType // case 77: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 78: Interfaces ::= implements InterfaceTypeList // case 78: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 79: InterfaceTypeList ::= InterfaceType // case 79: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 80: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 80: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 81: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 81: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 82: ClassBodyDeclarations ::= ClassBodyDeclaration // case 82: break; // // Rule 83: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 83: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 84: ClassBodyDeclaration ::= ClassMemberDeclaration // case 84: break; // // Rule 85: ClassBodyDeclaration ::= InstanceInitializer // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 86: ClassBodyDeclaration ::= StaticInitializer // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 87: ClassBodyDeclaration ::= ConstructorDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= FieldDeclaration // case 88: break; // // Rule 89: ClassMemberDeclaration ::= MethodDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= ClassDeclaration // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 91: ClassMemberDeclaration ::= InterfaceDeclaration // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: ClassMemberDeclaration ::= SEMICOLON // case 92: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 93: FieldDeclaration ::= Commentsopt FieldModifiersopt Type VariableDeclarators SEMICOLON // case 93: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(2); TypeNode b = (TypeNode) btParser.getSym(3); List c = (List) btParser.getSym(4); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } if (comment != null) ((Node) l.get(0)).setComment(comment.toString()); btParser.setSym1(l); break; } // // Rule 94: VariableDeclarators ::= VariableDeclarator // case 94: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 95: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 95: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 96: VariableDeclarator ::= VariableDeclaratorId // case 96: break; // // Rule 97: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 98: VariableDeclaratorId ::= identifier // case 98: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 99: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 99: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 100: VariableInitializer ::= Expression // case 100: break; // // Rule 101: VariableInitializer ::= ArrayInitializer // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifier // case 102: break; // // Rule 103: FieldModifiers ::= FieldModifiers FieldModifier // case 103: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 104: FieldModifier ::= public // case 104: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 105: FieldModifier ::= protected // case 105: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 106: FieldModifier ::= private // case 106: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 107: FieldModifier ::= static // case 107: { btParser.setSym1(Flags.STATIC); break; } // // Rule 108: FieldModifier ::= final // case 108: { btParser.setSym1(Flags.FINAL); break; } // // Rule 109: FieldModifier ::= transient // case 109: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 110: FieldModifier ::= volatile // case 110: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 111: MethodDeclaration ::= Commentsopt MethodHeader MethodBody // case 111: { Object comment = btParser.getSym(1); MethodDecl a = (MethodDecl) btParser.getSym(2); Block b = (Block) btParser.getSym(3); if (comment != null) a.setComment(comment.toString()); btParser.setSym1(a.body(b)); break; } // // Rule 112: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 112: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 113: ResultType ::= Type // case 113: break; // // Rule 114: ResultType ::= void // case 114: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 115: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 115: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 116: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 116: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 117: FormalParameterList ::= LastFormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameter // case 119: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 120: FormalParameters ::= FormalParameters COMMA FormalParameter // case 120: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 121: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 121: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 123: VariableModifiers ::= VariableModifiers VariableModifier // case 123: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 124: VariableModifier ::= final // case 124: { btParser.setSym1(Flags.FINAL); break; } // // Rule 125: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 125: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 126: MethodModifiers ::= MethodModifier // case 126: break; // // Rule 127: MethodModifiers ::= MethodModifiers MethodModifier // case 127: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 128: MethodModifier ::= public // case 128: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 129: MethodModifier ::= protected // case 129: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 130: MethodModifier ::= private // case 130: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 131: MethodModifier ::= abstract // case 131: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 132: MethodModifier ::= static // case 132: { btParser.setSym1(Flags.STATIC); break; } // // Rule 133: MethodModifier ::= final // case 133: { btParser.setSym1(Flags.FINAL); break; } // // Rule 134: MethodModifier ::= synchronized // case 134: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 135: MethodModifier ::= native // case 135: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 136: MethodModifier ::= strictfp // case 136: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 137: Throws ::= throws ExceptionTypeList // case 137: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 138: ExceptionTypeList ::= ExceptionType // case 138: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 139: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 139: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 140: ExceptionType ::= ClassType // case 140: break; // // Rule 141: ExceptionType ::= TypeVariable // case 141: break; // // Rule 142: MethodBody ::= Block // case 142: break; // // Rule 143: MethodBody ::= SEMICOLON // case 143: btParser.setSym1(null); break; // // Rule 144: InstanceInitializer ::= Block // case 144: break; // // Rule 145: StaticInitializer ::= static Block // case 145: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 146: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 146: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 147: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 147: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 148: SimpleTypeName ::= identifier // case 148: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 149: ConstructorModifiers ::= ConstructorModifier // case 149: break; // // Rule 150: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 150: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 151: ConstructorModifier ::= public // case 151: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 152: ConstructorModifier ::= protected // case 152: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 153: ConstructorModifier ::= private // case 153: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 154: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 154: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 155: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 157: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 157: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 158: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 158: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 159: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 159: bad_rule = 159; break; // // Rule 160: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 160: bad_rule = 160; break; // // Rule 161: EnumConstants ::= EnumConstant // case 161: bad_rule = 161; break; // // Rule 162: EnumConstants ::= EnumConstants COMMA EnumConstant // case 162: bad_rule = 162; break; // // Rule 163: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 163: bad_rule = 163; break; // // Rule 164: Arguments ::= LPAREN ArgumentListopt RPAREN // case 164: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 165: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 165: bad_rule = 165; break; // // Rule 166: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 166: break; // // Rule 167: NormalInterfaceDeclaration ::= Commentsopt InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 167: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(5); ClassBody d = (ClassBody) btParser.getSym(6); Node n = nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d); if (comment != null) n.setComment( comment.toString() ); btParser.setSym1(n); break; } // // Rule 168: InterfaceModifiers ::= InterfaceModifier // case 168: break; // // Rule 169: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 169: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 170: InterfaceModifier ::= public // case 170: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 171: InterfaceModifier ::= protected // case 171: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 172: InterfaceModifier ::= private // case 172: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 173: InterfaceModifier ::= abstract // case 173: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 174: InterfaceModifier ::= static // case 174: { btParser.setSym1(Flags.STATIC); break; } // // Rule 175: InterfaceModifier ::= strictfp // case 175: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 176: ExtendsInterfaces ::= extends InterfaceType // case 176: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 177: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 177: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 178: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 178: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 179: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 180: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ConstantDeclaration // case 181: break; // // Rule 182: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ClassDeclaration // case 183: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 184: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 185: InterfaceMemberDeclaration ::= SEMICOLON // case 185: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 186: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 186: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 187: ConstantModifiers ::= ConstantModifier // case 187: break; // // Rule 188: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 188: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 189: ConstantModifier ::= public // case 189: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 190: ConstantModifier ::= static // case 190: { btParser.setSym1(Flags.STATIC); break; } // // Rule 191: ConstantModifier ::= final // case 191: { btParser.setSym1(Flags.FINAL); break; } // // Rule 192: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 192: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 193: AbstractMethodModifiers ::= AbstractMethodModifier // case 193: break; // // Rule 194: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 194: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 195: AbstractMethodModifier ::= public // case 195: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 196: AbstractMethodModifier ::= abstract // case 196: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 197: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 205: bad_rule = 205; break; // // Rule 206: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 206: bad_rule = 206; break; // // Rule 207: AnnotationTypeElementDeclaration ::= SEMICOLON // case 207: bad_rule = 207; break; // // Rule 208: DefaultValue ::= default ElementValue // case 208: bad_rule = 208; break; // // Rule 209: Annotations ::= Annotation // case 209: bad_rule = 209; break; // // Rule 210: Annotations ::= Annotations Annotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= NormalAnnotation // case 211: bad_rule = 211; break; // // Rule 212: Annotation ::= MarkerAnnotation // case 212: bad_rule = 212; break; // // Rule 213: Annotation ::= SingleElementAnnotation // case 213: bad_rule = 213; break; // // Rule 214: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePairs ::= ElementValuePair // case 215: bad_rule = 215; break; // // Rule 216: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 216: bad_rule = 216; break; // // Rule 217: ElementValuePair ::= SimpleName EQUAL ElementValue // case 217: bad_rule = 217; break; // // Rule 218: SimpleName ::= identifier // case 218: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 219: ElementValue ::= ConditionalExpression // case 219: bad_rule = 219; break; // // Rule 220: ElementValue ::= Annotation // case 220: bad_rule = 220; break; // // Rule 221: ElementValue ::= ElementValueArrayInitializer // case 221: bad_rule = 221; break; // // Rule 222: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 222: bad_rule = 222; break; // // Rule 223: ElementValues ::= ElementValue // case 223: bad_rule = 223; break; // // Rule 224: ElementValues ::= ElementValues COMMA ElementValue // case 224: bad_rule = 224; break; // // Rule 225: MarkerAnnotation ::= AT TypeName // case 225: bad_rule = 225; break; // // Rule 226: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 226: bad_rule = 226; break; // // Rule 227: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 227: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 228: VariableInitializers ::= VariableInitializer // case 228: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 229: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 229: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 230: Block ::= LBRACE BlockStatementsopt RBRACE // case 230: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 231: BlockStatements ::= BlockStatement // case 231: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 232: BlockStatements ::= BlockStatements BlockStatement // case 232: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= LocalVariableDeclarationStatement // case 233: break; // // Rule 234: BlockStatement ::= ClassDeclaration // case 234: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 235: BlockStatement ::= Statement // case 235: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 236: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 236: break; // // Rule 237: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 237: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 238: Statement ::= StatementWithoutTrailingSubstatement // case 238: break; // // Rule 239: Statement ::= LabeledStatement // case 239: break; // // Rule 240: Statement ::= IfThenStatement // case 240: break; // // Rule 241: Statement ::= IfThenElseStatement // case 241: break; // // Rule 242: Statement ::= WhileStatement // case 242: break; // // Rule 243: Statement ::= ForStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= Block // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= AssertStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= DoStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= BreakStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 253: break; // // Rule 254: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 254: break; // // Rule 255: StatementWithoutTrailingSubstatement ::= TryStatement // case 255: break; // // Rule 256: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 256: break; // // Rule 257: StatementNoShortIf ::= LabeledStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 258: break; // // Rule 259: StatementNoShortIf ::= WhileStatementNoShortIf // case 259: break; // // Rule 260: StatementNoShortIf ::= ForStatementNoShortIf // case 260: break; // // Rule 261: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 262: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 262: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 263: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 263: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 264: EmptyStatement ::= SEMICOLON // case 264: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 265: LabeledStatement ::= identifier COLON Statement // case 265: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 266: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 266: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 267: ExpressionStatement ::= StatementExpression SEMICOLON // case 267: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 268: StatementExpression ::= Assignment // case 268: break; // // Rule 269: StatementExpression ::= PreIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PreDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= PostIncrementExpression // case 271: break; // // Rule 272: StatementExpression ::= PostDecrementExpression // case 272: break; // // Rule 273: StatementExpression ::= MethodInvocation // case 273: break; // // Rule 274: StatementExpression ::= ClassInstanceCreationExpression // case 274: break; // // Rule 275: AssertStatement ::= assert Expression SEMICOLON // case 275: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 276: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 276: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 277: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 277: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 278: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 278: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 279: break; // // Rule 280: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 280: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 281: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 281: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 282: SwitchLabels ::= SwitchLabel // case 282: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 283: SwitchLabels ::= SwitchLabels SwitchLabel // case 283: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 284: SwitchLabel ::= case ConstantExpression COLON // case 284: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 285: SwitchLabel ::= case EnumConstant COLON // case 285: bad_rule = 285; break; // // Rule 286: SwitchLabel ::= default COLON // case 286: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 287: EnumConstant ::= identifier // case 287: bad_rule = 287; break; // // Rule 288: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 288: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 289: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 289: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 290: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 290: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 291: ForStatement ::= BasicForStatement // case 291: break; // // Rule 292: ForStatement ::= EnhancedForStatement // case 292: break; // // Rule 293: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 293: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 294: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 294: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 295: ForInit ::= StatementExpressionList // case 295: break; // // Rule 296: ForInit ::= LocalVariableDeclaration // case 296: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 297: ForUpdate ::= StatementExpressionList // case 297: break; // // Rule 298: StatementExpressionList ::= StatementExpression // case 298: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 299: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 299: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 300: BreakStatement ::= break identifieropt SEMICOLON // case 300: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 301: ContinueStatement ::= continue identifieropt SEMICOLON // case 301: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 302: ReturnStatement ::= return Expressionopt SEMICOLON // case 302: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 303: ThrowStatement ::= throw Expression SEMICOLON // case 303: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 304: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 304: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 305: TryStatement ::= try Block Catches // case 305: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 306: TryStatement ::= try Block Catchesopt Finally // case 306: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 307: Catches ::= CatchClause // case 307: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 308: Catches ::= Catches CatchClause // case 308: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 309: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 309: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 310: Finally ::= finally Block // case 310: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 311: Primary ::= PrimaryNoNewArray // case 311: break; // // Rule 312: Primary ::= ArrayCreationExpression // case 312: break; // // Rule 313: PrimaryNoNewArray ::= Literal // case 313: break; // // Rule 314: PrimaryNoNewArray ::= Type DOT class // case 314: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 315: PrimaryNoNewArray ::= void DOT class // case 315: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 316: PrimaryNoNewArray ::= this // case 316: { btParser.setSym1(nf.This(pos())); break; } // // Rule 317: PrimaryNoNewArray ::= ClassName DOT this // case 317: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 318: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 318: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 319: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 319: break; // // Rule 320: PrimaryNoNewArray ::= FieldAccess // case 320: break; // // Rule 321: PrimaryNoNewArray ::= MethodInvocation // case 321: break; // // Rule 322: PrimaryNoNewArray ::= ArrayAccess // case 322: break; // // Rule 323: Literal ::= IntegerLiteral // case 323: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 324: Literal ::= LongLiteral // case 324: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 325: Literal ::= FloatingPointLiteral // case 325: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 326: Literal ::= DoubleLiteral // case 326: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 327: Literal ::= BooleanLiteral // case 327: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 328: Literal ::= CharacterLiteral // case 328: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 329: Literal ::= StringLiteral // case 329: { String s = prsStream.getName(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), s.substring(1, s.length() - 2))); break; } // // Rule 330: Literal ::= null // case 330: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 331: BooleanLiteral ::= true // case 331: break; // // Rule 332: BooleanLiteral ::= false // case 332: break; // // Rule 333: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 334: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 334: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 335: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 335: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 336: ArgumentList ::= Expression // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: ArgumentList ::= ArgumentList COMMA Expression // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 338: DimExprs ::= DimExpr // case 338: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 339: DimExprs ::= DimExprs DimExpr // case 339: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 340: DimExpr ::= LBRACKET Expression RBRACKET // case 340: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 341: Dims ::= LBRACKET RBRACKET // case 341: { btParser.setSym1(new Integer(1)); break; } // // Rule 342: Dims ::= Dims LBRACKET RBRACKET // case 342: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 343: FieldAccess ::= Primary DOT identifier // case 343: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 344: FieldAccess ::= super DOT identifier // case 344: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 345: FieldAccess ::= ClassName DOT super DOT identifier // case 345: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 346: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 346: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 347: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 347: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 348: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 348: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 349: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 350: PostfixExpression ::= Primary // case 350: break; // // Rule 351: PostfixExpression ::= ExpressionName // case 351: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 352: PostfixExpression ::= PostIncrementExpression // case 352: break; // // Rule 353: PostfixExpression ::= PostDecrementExpression // case 353: break; // // Rule 354: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 354: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 355: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 355: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 356: UnaryExpression ::= PreIncrementExpression // case 356: break; // // Rule 357: UnaryExpression ::= PreDecrementExpression // case 357: break; // // Rule 358: UnaryExpression ::= PLUS UnaryExpression // case 358: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 359: UnaryExpression ::= MINUS UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 361: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 362: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 363: break; // // Rule 364: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 365: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 367: MultiplicativeExpression ::= UnaryExpression // case 367: break; // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 369: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 369: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 371: AdditiveExpression ::= MultiplicativeExpression // case 371: break; // // Rule 372: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 373: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 374: ShiftExpression ::= AdditiveExpression // case 374: break; // // Rule 375: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 376: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 376: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 377: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 377: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 378: RelationalExpression ::= ShiftExpression // case 378: break; // // Rule 379: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 381: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 383: EqualityExpression ::= RelationalExpression // case 383: break; // // Rule 384: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 385: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 386: AndExpression ::= EqualityExpression // case 386: break; // // Rule 387: AndExpression ::= AndExpression AND EqualityExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 388: ExclusiveOrExpression ::= AndExpression // case 388: break; // // Rule 389: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 390: InclusiveOrExpression ::= ExclusiveOrExpression // case 390: break; // // Rule 391: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 392: ConditionalAndExpression ::= InclusiveOrExpression // case 392: break; // // Rule 393: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 394: ConditionalOrExpression ::= ConditionalAndExpression // case 394: break; // // Rule 395: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 396: ConditionalExpression ::= ConditionalOrExpression // case 396: break; // // Rule 397: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 398: AssignmentExpression ::= ConditionalExpression // case 398: break; // // Rule 399: AssignmentExpression ::= Assignment // case 399: break; // // Rule 400: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 400: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 401: LeftHandSide ::= ExpressionName // case 401: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 402: LeftHandSide ::= FieldAccess // case 402: break; // // Rule 403: LeftHandSide ::= ArrayAccess // case 403: break; // // Rule 404: AssignmentOperator ::= EQUAL // case 404: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 405: AssignmentOperator ::= MULTIPLY_EQUAL // case 405: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= DIVIDE_EQUAL // case 406: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= REMAINDER_EQUAL // case 407: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= PLUS_EQUAL // case 408: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= MINUS_EQUAL // case 409: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 410: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= GREATER GREATER EQUAL // case 411: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 412: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= AND_EQUAL // case 413: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= XOR_EQUAL // case 414: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= OR_EQUAL // case 415: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 416: Expression ::= AssignmentExpression // case 416: break; // // Rule 417: ConstantExpression ::= Expression // case 417: break; // // Rule 418: Dimsopt ::= // case 418: { btParser.setSym1(new Integer(0)); break; } // // Rule 419: Dimsopt ::= Dims // case 419: break; // // Rule 420: Catchesopt ::= // case 420: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 421: Catchesopt ::= Catches // case 421: break; // // Rule 422: identifieropt ::= // case 422: btParser.setSym1(null); break; // // Rule 423: identifieropt ::= identifier // case 423: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 424: ForUpdateopt ::= // case 424: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 425: ForUpdateopt ::= ForUpdate // case 425: break; // // Rule 426: Expressionopt ::= // case 426: btParser.setSym1(null); break; // // Rule 427: Expressionopt ::= Expression // case 427: break; // // Rule 428: ForInitopt ::= // case 428: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 429: ForInitopt ::= ForInit // case 429: break; // // Rule 430: SwitchLabelsopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 431: SwitchLabelsopt ::= SwitchLabels // case 431: break; // // Rule 432: SwitchBlockStatementGroupsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 433: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 433: break; // // Rule 434: VariableModifiersopt ::= // case 434: { btParser.setSym1(Flags.NONE); break; } // // Rule 435: VariableModifiersopt ::= VariableModifiers // case 435: break; // // Rule 436: VariableInitializersopt ::= // case 436: btParser.setSym1(null); break; // // Rule 437: VariableInitializersopt ::= VariableInitializers // case 437: break; // // Rule 438: ElementValuesopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuesopt ::= ElementValues // case 439: bad_rule = 439; break; // // Rule 440: ElementValuePairsopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuePairsopt ::= ElementValuePairs // case 441: bad_rule = 441; break; // // Rule 442: DefaultValueopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: DefaultValueopt ::= DefaultValue // case 443: break; // // Rule 444: AnnotationTypeElementDeclarationsopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 445: bad_rule = 445; break; // // Rule 446: AbstractMethodModifiersopt ::= // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 447: break; // // Rule 448: ConstantModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: ConstantModifiersopt ::= ConstantModifiers // case 449: break; // // Rule 450: InterfaceMemberDeclarationsopt ::= // case 450: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 451: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 451: break; // // Rule 452: ExtendsInterfacesopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 453: ExtendsInterfacesopt ::= ExtendsInterfaces // case 453: break; // // Rule 454: InterfaceModifiersopt ::= // case 454: { btParser.setSym1(Flags.NONE); break; } // // Rule 455: InterfaceModifiersopt ::= InterfaceModifiers // case 455: break; // // Rule 456: ClassBodyopt ::= // case 456: btParser.setSym1(null); break; // // Rule 457: ClassBodyopt ::= ClassBody // case 457: break; // // Rule 458: Argumentsopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: Argumentsopt ::= Arguments // case 459: bad_rule = 459; break; // // Rule 460: EnumBodyDeclarationsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 461: bad_rule = 461; break; // // Rule 462: ,opt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: ,opt ::= COMMA // case 463: break; // // Rule 464: EnumConstantsopt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: EnumConstantsopt ::= EnumConstants // case 465: bad_rule = 465; break; // // Rule 466: ArgumentListopt ::= // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 467: ArgumentListopt ::= ArgumentList // case 467: break; // // Rule 468: BlockStatementsopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 469: BlockStatementsopt ::= BlockStatements // case 469: break; // // Rule 470: ExplicitConstructorInvocationopt ::= // case 470: btParser.setSym1(null); break; // // Rule 471: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 471: break; // // Rule 472: ConstructorModifiersopt ::= // case 472: { btParser.setSym1(Flags.NONE); break; } // // Rule 473: ConstructorModifiersopt ::= ConstructorModifiers // case 473: break; // // Rule 474: ...opt ::= // case 474: btParser.setSym1(null); break; // // Rule 475: ...opt ::= ELLIPSIS // case 475: break; // // Rule 476: FormalParameterListopt ::= // case 476: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 477: FormalParameterListopt ::= FormalParameterList // case 477: break; // // Rule 478: Throwsopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 479: Throwsopt ::= Throws // case 479: break; // // Rule 480: MethodModifiersopt ::= // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: MethodModifiersopt ::= MethodModifiers // case 481: break; // // Rule 482: FieldModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: FieldModifiersopt ::= FieldModifiers // case 483: break; // // Rule 484: ClassBodyDeclarationsopt ::= // case 484: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 485: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 485: break; // // Rule 486: Interfacesopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 487: Interfacesopt ::= Interfaces // case 487: break; // // Rule 488: Superopt ::= // case 488: btParser.setSym1(null); break; // // Rule 489: Superopt ::= Super // case 489: break; // // Rule 490: TypeParametersopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: TypeParametersopt ::= TypeParameters // case 491: break; // // Rule 492: ClassModifiersopt ::= // case 492: { btParser.setSym1(Flags.NONE); break; } // // Rule 493: ClassModifiersopt ::= ClassModifiers // case 493: break; // // Rule 494: Annotationsopt ::= // case 494: btParser.setSym1(null); break; // // Rule 495: Annotationsopt ::= Annotations // case 495: bad_rule = 495; break; // // Rule 496: TypeDeclarationsopt ::= // case 496: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 497: TypeDeclarationsopt ::= TypeDeclarations // case 497: break; // // Rule 498: ImportDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 499: ImportDeclarationsopt ::= ImportDeclarations // case 499: break; // // Rule 500: PackageDeclarationopt ::= // case 500: btParser.setSym1(null); break; // // Rule 501: PackageDeclarationopt ::= PackageDeclaration // case 501: break; // // Rule 502: WildcardBoundsOpt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: WildcardBoundsOpt ::= WildcardBounds // case 503: bad_rule = 503; break; // // Rule 504: AdditionalBoundListopt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: AdditionalBoundListopt ::= AdditionalBoundList // case 505: bad_rule = 505; break; // // Rule 506: TypeBoundopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: TypeBoundopt ::= TypeBound // case 507: bad_rule = 507; break; // // Rule 508: TypeArgumentsopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeArgumentsopt ::= TypeArguments // case 509: bad_rule = 509; break; // // Rule 510: Commentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: Commentsopt ::= Comments // case 511: break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: break; // // Rule 522: PlaceType ::= activity // case 522: break; // // Rule 523: PlaceType ::= method // case 523: break; // // Rule 524: PlaceType ::= current // case 524: break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET RBRACKET ArrayInitializer // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET Expression // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, d)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET Expression // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 550: ArrayBaseType ::= PrimitiveType // case 550: break; // // Rule 551: ArrayBaseType ::= ClassOrInterfaceType // case 551: break; // // Rule 552: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 552: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 553: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 553: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 554: Statement ::= NowStatement // case 554: break; // // Rule 555: Statement ::= ClockedStatement // case 555: break; // // Rule 556: Statement ::= AsyncStatement // case 556: break; // // Rule 557: Statement ::= AtomicStatement // case 557: break; // // Rule 558: Statement ::= WhenStatement // case 558: break; // // Rule 559: Statement ::= ForEachStatement // case 559: break; // // Rule 560: Statement ::= AtEachStatement // case 560: break; // // Rule 561: Statement ::= FinishStatement // case 561: break; // // Rule 562: StatementWithoutTrailingSubstatement ::= NextStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 563: break; // // Rule 564: StatementNoShortIf ::= NowStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= ClockedStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= AsyncStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtomicStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= WhenStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= ForEachStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= AtEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= FinishStatementNoShortIf // case 571: break; // // Rule 572: NowStatement ::= now LPAREN Clock RPAREN Statement // case 572: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 573: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 573: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 574: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 574: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 575: AsyncStatement ::= async LPAREN here RPAREN Statement // case 575: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 576: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 576: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 577: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 577: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 578: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 578: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 579: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 579: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 580: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 580: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 581: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: FinishStatement ::= finish Statement // case 583: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 584: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 584: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 585: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 585: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 586: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 586: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 587: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 588: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 588: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 589: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 590: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 590: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 591: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 591: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 592: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 592: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 593: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 594: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 595: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 595: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 596: PlaceExpression ::= here // case 596: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 597: PlaceExpression ::= this // case 597: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 598: PlaceExpression ::= Expression // case 598: break; // // Rule 599: PlaceExpression ::= ArrayAccess // case 599: bad_rule = 599; break; // // Rule 600: NextStatement ::= next SEMICOLON // case 600: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 601: AwaitStatement ::= await Expression SEMICOLON // case 601: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 602: ClockList ::= Clock // case 602: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 603: ClockList ::= ClockList COMMA Clock // case 603: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 604: Clock ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 605: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 605: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 606: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 606: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 607: RelationalExpression ::= RelationalExpression instanceof Type // case 607: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 608: ExpressionName ::= here // case 608: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 609: Primary ::= FutureExpression // case 609: break; // // Rule 610: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 610: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 611: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 611: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 612: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: ConcreteDistributionopt ::= // case 631: btParser.setSym1(null); break; // // Rule 632: ConcreteDistributionopt ::= ConcreteDistribution // case 632: break; // // Rule 633: PlaceExpressionSingleListopt ::= // case 633: btParser.setSym1(null); break; // // Rule 634: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 634: break; // // Rule 635: ArgumentListopt ::= // case 635: btParser.setSym1(null); break; // // Rule 636: ArgumentListopt ::= ArgumentList // case 636: break; // // Rule 637: DepParametersopt ::= // case 637: btParser.setSym1(null); break; // // Rule 638: DepParametersopt ::= DepParameters // case 638: break; // // Rule 639: Unsafeopt ::= // case 639: btParser.setSym1(null); break; // // Rule 640: Unsafeopt ::= unsafe // case 640: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } default: break; } return; }
|
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/a0ef25c366453f5aff64a3c99c145987b17c8f23/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
2678,
7005,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1670,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
6153,
397,
4766,
4202,
846,
87,
1228,
18,
588,
1494,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
1368,
392,
2756,
8863,
7734,
289,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
576,
30,
225,
14488,
559,
493,
33,
16980,
559,
5411,
368,
5411,
648,
576,
30,
7734,
898,
31,
2398,
368,
5411,
368,
6781,
890,
30,
225,
14488,
559,
493,
33,
1250,
5411,
368,
5411,
648,
890,
30,
288,
7734,
10921,
2678,
18,
542,
11901,
21,
12,
82,
74,
18,
15512,
559,
907,
12,
917,
9334,
3742,
18,
5507,
1435,
10019,
7734,
898,
31,
5411,
289,
1171,
368,
5411,
368,
6781,
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,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
6781,
404,
30,
225,
2756,
493,
33,
26765,
5411,
368,
5411,
648,
404,
30,
288,
7734,
309,
261,
683,
87,
1228,
18,
588,
5677,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
480,
1139,
2163,
26954,
2942,
18,
56,
47,
67,
16606,
13,
7734,
288,
10792,
2332,
18,
659,
18,
8222,
2932,
2678,
7005,
310,
4932,
315,
397,
4766,
4202,
846,
87,
1228,
18,
17994,
12,
23602,
2678,
18,
588,
1345,
12,
21,
3719,
397,
4766,
4202,
315,
622,
315,
397,
4766,
2
] |
||
public synchronized String pollForTaskWithClosedJob(String taskTracker) {
|
public synchronized String[] pollForTaskWithClosedJob(String taskTracker) {
|
public synchronized String pollForTaskWithClosedJob(String taskTracker) { TreeSet taskIds = (TreeSet) trackerToTaskMap.get(taskTracker); if (taskIds != null) { for (Iterator it = taskIds.iterator(); it.hasNext(); ) { String taskId = (String) it.next(); TaskInProgress tip = (TaskInProgress) taskidToTIPMap.get(taskId); if (tip.shouldCloseForClosedJob(taskId)) { // // This is how the JobTracker ends a task at the TaskTracker. // It may be successfully completed, or may be killed in // mid-execution. // return taskId; } } } return null; }
|
50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/60d3b572473ce256966117ae094b5eb605c3fb4a/JobTracker.java/clean/src/java/org/apache/hadoop/mapred/JobTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
514,
8526,
7672,
1290,
2174,
1190,
7395,
2278,
12,
780,
1562,
8135,
13,
288,
3639,
19461,
1562,
2673,
273,
261,
2471,
694,
13,
9745,
774,
2174,
863,
18,
588,
12,
4146,
8135,
1769,
3639,
309,
261,
4146,
2673,
480,
446,
13,
288,
5411,
364,
261,
3198,
518,
273,
1562,
2673,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
7734,
514,
15321,
273,
261,
780,
13,
518,
18,
4285,
5621,
7734,
3837,
13434,
9529,
273,
261,
2174,
13434,
13,
29035,
774,
56,
2579,
863,
18,
588,
12,
4146,
548,
1769,
7734,
309,
261,
14587,
18,
13139,
4605,
1290,
7395,
2278,
12,
4146,
548,
3719,
288,
10792,
368,
5397,
368,
1220,
353,
3661,
326,
3956,
8135,
3930,
279,
1562,
622,
326,
3837,
8135,
18,
10792,
368,
2597,
2026,
506,
4985,
5951,
16,
578,
2026,
506,
24859,
316,
10792,
368,
7501,
17,
16414,
18,
10792,
368,
10792,
327,
15321,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
446,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
514,
8526,
7672,
1290,
2174,
1190,
7395,
2278,
12,
780,
1562,
8135,
13,
288,
3639,
19461,
1562,
2673,
273,
261,
2471,
694,
13,
9745,
774,
2174,
863,
18,
588,
12,
4146,
8135,
1769,
3639,
309,
261,
4146,
2673,
480,
446,
13,
288,
5411,
364,
261,
3198,
518,
273,
1562,
2673,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
288,
7734,
514,
15321,
273,
261,
780,
13,
518,
18,
4285,
5621,
7734,
3837,
13434,
9529,
273,
261,
2174,
13434,
13,
29035,
774,
56,
2579,
863,
18,
588,
12,
4146,
548,
1769,
7734,
309,
261,
14587,
18,
13139,
4605,
1290,
7395,
2278,
12,
4146,
548,
3719,
288,
10792,
368,
5397,
368,
1220,
353,
3661,
326,
3956,
8135,
2
] |
message = NLS .bind( PDECoreMessages.BundleErrorReporter_deprecated_attribute_optional, ICoreConstants.OPTIONAL_ATTRIBUTE); report( message, getLine(header, ICoreConstants.OPTIONAL_ATTRIBUTE + "="), CompilerFlags.P_DEPRECATED);
|
report(NLS.bind(PDECoreMessages.BundleErrorReporter_deprecated_attribute_optional, ICoreConstants.OPTIONAL_ATTRIBUTE), getLine(header, ICoreConstants.OPTIONAL_ATTRIBUTE + "="), CompilerFlags.P_DEPRECATED);
|
private void validateOptionalAttribute(IHeader header, ManifestElement requireBundleElements) { String message; String rexport = requireBundleElements .getAttribute(ICoreConstants.OPTIONAL_ATTRIBUTE); if (rexport != null) { validateBooleanAttributeValue(header, requireBundleElements, ICoreConstants.OPTIONAL_ATTRIBUTE); if (fOsgiR4 && isCheckDeprecated()) { message = NLS .bind( PDECoreMessages.BundleErrorReporter_deprecated_attribute_optional, ICoreConstants.OPTIONAL_ATTRIBUTE); report( message, getLine(header, ICoreConstants.OPTIONAL_ATTRIBUTE + "="), CompilerFlags.P_DEPRECATED); //$NON-NLS-1$ } } }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/79668dc3fa697276ee359f75a854f6433fcdb4ad/BundleErrorReporter.java/buggy/ui/org.eclipse.pde.core/src/org/eclipse/pde/internal/core/builders/BundleErrorReporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1954,
29219,
12,
45,
1864,
1446,
16,
1082,
202,
9121,
1046,
2583,
3405,
3471,
13,
288,
202,
202,
780,
883,
31,
202,
202,
780,
28929,
655,
273,
2583,
3405,
3471,
9506,
202,
18,
588,
1499,
12,
2871,
479,
2918,
18,
14165,
67,
11616,
1769,
202,
202,
430,
261,
266,
92,
655,
480,
446,
13,
288,
1082,
202,
5662,
5507,
14942,
12,
3374,
16,
2583,
3405,
3471,
16,
6862,
202,
2871,
479,
2918,
18,
14165,
67,
11616,
1769,
1082,
202,
430,
261,
74,
51,
17537,
54,
24,
597,
353,
1564,
13534,
10756,
288,
9506,
202,
2150,
273,
29117,
25083,
202,
18,
4376,
12,
6862,
9506,
202,
52,
1639,
4670,
5058,
18,
3405,
668,
13289,
67,
14089,
67,
4589,
67,
10444,
16,
6862,
9506,
202,
2871,
479,
2918,
18,
14165,
67,
11616,
1769,
4697,
202,
6006,
12,
25083,
202,
2150,
16,
25083,
202,
588,
1670,
12,
3374,
16,
467,
4670,
2918,
18,
14165,
67,
11616,
397,
9671,
3631,
12972,
5094,
18,
52,
67,
17575,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
918,
1954,
29219,
12,
45,
1864,
1446,
16,
1082,
202,
9121,
1046,
2583,
3405,
3471,
13,
288,
202,
202,
780,
883,
31,
202,
202,
780,
28929,
655,
273,
2583,
3405,
3471,
9506,
202,
18,
588,
1499,
12,
2871,
479,
2918,
18,
14165,
67,
11616,
1769,
202,
202,
430,
261,
266,
92,
655,
480,
446,
13,
288,
1082,
202,
5662,
5507,
14942,
12,
3374,
16,
2583,
3405,
3471,
16,
6862,
202,
2871,
479,
2918,
18,
14165,
67,
11616,
1769,
1082,
202,
430,
261,
74,
51,
17537,
54,
24,
597,
353,
1564,
13534,
10756,
288,
9506,
202,
2150,
273,
29117,
25083,
202,
18,
4376,
12,
6862,
9506,
202,
52,
1639,
4670,
5058,
18,
3405,
668,
13289,
67,
14089,
2
] |
if (queryParts[0].equals("after")) indexOfId++; return indexOfId;
|
private int getInsertionIndex(ContributionManager mgr, MenuLocationURI uri) { String query = uri.getQuery(); if (query.length() == 0) return 0; // Should be in the form "[before|after]=id" String[] queryParts = Util.split(query, '='); if (queryParts[1].length() > 0) { int indexOfId = mgr.indexOf(queryParts[1]); if (indexOfId==-1) { return 0; } // Increment if we're 'after' this id if (queryParts[0].equals("after")) //$NON-NLS-1$ indexOfId++; return indexOfId; } return 0; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/71c01fa0338032c59c8c9dcb38c99ee4bfd3b9b1/WorkbenchMenuService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/WorkbenchMenuService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
336,
29739,
1016,
12,
442,
4027,
1318,
13333,
16,
9809,
2735,
3098,
2003,
13,
288,
202,
202,
780,
843,
273,
2003,
18,
588,
1138,
5621,
202,
202,
430,
261,
2271,
18,
2469,
1435,
422,
374,
13,
1082,
202,
2463,
374,
31,
9506,
202,
759,
9363,
506,
316,
326,
646,
5158,
5771,
96,
5205,
65,
33,
350,
6,
202,
202,
780,
8526,
843,
4305,
273,
3564,
18,
4939,
12,
2271,
16,
5214,
1769,
202,
202,
430,
261,
2271,
4305,
63,
21,
8009,
2469,
1435,
405,
374,
13,
288,
1082,
202,
474,
3133,
548,
273,
13333,
18,
31806,
12,
2271,
4305,
63,
21,
19226,
1082,
202,
430,
261,
31806,
548,
631,
17,
21,
13,
288,
9506,
202,
2463,
374,
31,
1082,
202,
97,
25083,
202,
759,
17883,
309,
732,
4565,
296,
5205,
11,
333,
612,
1082,
202,
430,
261,
2271,
4305,
63,
20,
8009,
14963,
2932,
5205,
6,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
31806,
548,
9904,
31,
1082,
202,
2463,
3133,
548,
31,
202,
202,
97,
9506,
202,
2463,
374,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
336,
29739,
1016,
12,
442,
4027,
1318,
13333,
16,
9809,
2735,
3098,
2003,
13,
288,
202,
202,
780,
843,
273,
2003,
18,
588,
1138,
5621,
202,
202,
430,
261,
2271,
18,
2469,
1435,
422,
374,
13,
1082,
202,
2463,
374,
31,
9506,
202,
759,
9363,
506,
316,
326,
646,
5158,
5771,
96,
5205,
65,
33,
350,
6,
202,
202,
780,
8526,
843,
4305,
273,
3564,
18,
4939,
12,
2271,
16,
5214,
1769,
202,
202,
430,
261,
2271,
4305,
63,
21,
8009,
2469,
1435,
405,
374,
13,
288,
1082,
202,
474,
3133,
548,
273,
13333,
18,
31806,
12,
2271,
4305,
63,
21,
19226,
1082,
202,
430,
261,
31806,
548,
631,
17,
21,
13,
288,
9506,
202,
2
] |
|
for (int i = 0; i < container.getItemCount(); i++) container.getItem(i).accept(this);
|
for ( int i = 0; i < container.getItemCount( ); i++ ) container.getItem( i ).accept( this );
|
public void visitFreeFormItem(FreeFormItemDesign container) { BaseQueryDefinition query = prepareVisit(container); for (int i = 0; i < container.getItemCount(); i++) container.getItem(i).accept(this); finishVisit(query); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/457851dcc056d96f2ec05106ceba68d3c8f9162c/ReportQueryBuilder.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
3757,
9194,
1204,
1180,
12,
9194,
1204,
1180,
15478,
1478,
13,
288,
1082,
202,
2171,
1138,
1852,
843,
273,
2911,
10432,
12,
3782,
1769,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1478,
18,
588,
30687,
5621,
277,
27245,
9506,
202,
3782,
18,
588,
1180,
12,
77,
2934,
9436,
12,
2211,
1769,
1082,
202,
13749,
10432,
12,
2271,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
3757,
9194,
1204,
1180,
12,
9194,
1204,
1180,
15478,
1478,
13,
288,
1082,
202,
2171,
1138,
1852,
843,
273,
2911,
10432,
12,
3782,
1769,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1478,
18,
588,
30687,
5621,
277,
27245,
9506,
202,
3782,
18,
588,
1180,
12,
77,
2934,
9436,
12,
2211,
1769,
1082,
202,
13749,
10432,
12,
2271,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int timestamp = ++currentTimestamp;
|
int timestamp = currentTimestamp;
|
public synchronized void makeShared () { if ((flags & THREAD_SAFE) != 0) return; flags |= THREAD_SAFE; for (int index = table.length; --index >= 0; ) { NamedLocation prev = null; int timestamp = ++currentTimestamp; for (NamedLocation loc = table[index]; loc != null; ) { NamedLocation next = loc.next; if (! (loc instanceof SharedLocation) && loc != sharedTail) { SharedLocation sloc; sloc = new SharedLocation(loc.name, loc.property, timestamp); sloc.base = loc.base; sloc.value = loc.value; loc.next = null; loc.base = sloc; loc.value = null; loc = sloc; } if (prev == null) table[index] = loc; else prev.next = loc; prev = loc; loc = next; } } }
|
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/eece4e6c38184d885c4bdafa8be2788518498080/SimpleEnvironment.java/clean/gnu/mapping/SimpleEnvironment.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
1221,
7887,
1832,
225,
288,
565,
309,
14015,
7133,
473,
7662,
6949,
67,
22219,
13,
480,
374,
13,
1377,
327,
31,
565,
2943,
5626,
7662,
6949,
67,
22219,
31,
565,
364,
261,
474,
770,
273,
1014,
18,
2469,
31,
225,
1493,
1615,
1545,
374,
31,
262,
1377,
288,
202,
7604,
2735,
2807,
273,
446,
31,
202,
474,
2858,
273,
965,
2972,
4921,
31,
202,
1884,
261,
7604,
2735,
1515,
273,
1014,
63,
1615,
15533,
225,
1515,
480,
446,
31,
262,
202,
225,
288,
202,
565,
9796,
2735,
1024,
273,
1515,
18,
4285,
31,
202,
565,
309,
16051,
261,
1829,
1276,
10314,
2735,
13,
597,
1515,
480,
5116,
12363,
13,
202,
1377,
288,
202,
202,
7887,
2735,
272,
1829,
31,
202,
202,
87,
1829,
273,
394,
10314,
2735,
12,
1829,
18,
529,
16,
1515,
18,
4468,
16,
2858,
1769,
202,
202,
87,
1829,
18,
1969,
273,
1515,
18,
1969,
31,
202,
202,
87,
1829,
18,
1132,
273,
1515,
18,
1132,
31,
202,
202,
1829,
18,
4285,
273,
446,
31,
202,
202,
1829,
18,
1969,
273,
272,
1829,
31,
202,
202,
1829,
18,
1132,
273,
446,
31,
202,
202,
1829,
273,
272,
1829,
31,
202,
1377,
289,
202,
565,
309,
261,
10001,
422,
446,
13,
202,
1377,
1014,
63,
1615,
65,
273,
1515,
31,
202,
565,
469,
202,
1377,
2807,
18,
4285,
273,
1515,
31,
202,
565,
2807,
273,
1515,
31,
202,
565,
1515,
273,
1024,
31,
202,
225,
289,
1377,
289,
225,
289,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
1221,
7887,
1832,
225,
288,
565,
309,
14015,
7133,
473,
7662,
6949,
67,
22219,
13,
480,
374,
13,
1377,
327,
31,
565,
2943,
5626,
7662,
6949,
67,
22219,
31,
565,
364,
261,
474,
770,
273,
1014,
18,
2469,
31,
225,
1493,
1615,
1545,
374,
31,
262,
1377,
288,
202,
7604,
2735,
2807,
273,
446,
31,
202,
474,
2858,
273,
965,
2972,
4921,
31,
202,
1884,
261,
7604,
2735,
1515,
273,
1014,
63,
1615,
15533,
225,
1515,
480,
446,
31,
262,
202,
225,
288,
202,
565,
9796,
2735,
1024,
273,
1515,
18,
4285,
31,
202,
565,
309,
16051,
261,
1829,
1276,
10314,
2735,
13,
597,
1515,
480,
5116,
12363,
13,
202,
1377,
288,
202,
202,
7887,
2
] |
resultIt.getValue( names[0] ); resultIt.getValue( names[1] );
|
String names[] = {"group_COUNTRY", "group_AMOUNT"}; GroupDefinition[] groupDefn = new GroupDefinition[]{ new GroupDefinition( "G1" ), new GroupDefinition( "G2" )}; groupDefn[0].setKeyExpression( "row.group_COUNTRY" ); groupDefn[1].setKeyExpression( "row.group_AMOUNT" ); String[] bindingNameRow = new String[3]; bindingNameRow[0] = "country"; bindingNameRow[1] = "amount"; bindingNameRow[2] = "binding3"; IBaseExpression[] bindingExprRow = new IBaseExpression[3]; bindingExprRow[0] = new ScriptExpression( "dataSetRow.COUNTRY" ); bindingExprRow[1] = new ScriptExpression( "dataSetRow.AMOUNT" ); bindingExprRow[2] = new ScriptExpression( "Total.sum( dataSetRow.AMOUNT,null,1)" ); createAndRunQuery( names, bindingExprGroup, groupDefn, null, null, null, null, null, null, bindingNameRow, bindingExprRow ); checkOutputFile( );
|
public void test_RunningAggregationExpression() throws Exception { // Test a SQL with duplicate column name (quite common with join data sets) String testSQL = "select COUNTRY, AMOUNT from " + getTestTableName( ); ((OdaDataSetDesign)this.dataSet).setQueryText( testSQL ); IBaseExpression[] expressions = new IBaseExpression[]{ new ScriptExpression( "row.COUNTRY", 0 ), new ScriptExpression( "row.AMOUNT", 2 ), new ScriptExpression( "Total.Sum( row.AMOUNT )", 2 ) }; String names[] = { "COL_COUNTRY", "COL_AMOUNT", "COL_SALE_DATE"}; GroupDefinition[] groupDef = new GroupDefinition[]{ new GroupDefinition( "G1" ), new GroupDefinition( "G2" ) }; groupDef[0].setKeyExpression( "row.COUNTRY" ); groupDef[1].setKeyExpression("Total.Sum( row.AMOUNT,null,1 )"); // define a query design QueryDefinition queryDefn = newReportQuery( ); queryDefn.addGroup( groupDef[0] ); queryDefn.addGroup( groupDef[1] ); queryDefn.addResultSetExpression( names[0], expressions[0] ); queryDefn.addResultSetExpression( names[1], expressions[1] ); IPreparedQuery preparedQuery = dataEngine.prepare( queryDefn ); IQueryResults queryResults = preparedQuery.execute( jsScope ); IResultIterator resultIt = queryResults.getResultIterator( ); assertTrue( resultIt.next() ); resultIt.getValue( names[0] ); resultIt.getValue( names[1] ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a6517270d3ab712ad61d0d7ce18b0f674f02bcdb/MultiPassTest.java/clean/testsuites/org.eclipse.birt.tests.data/src/org/eclipse/birt/tests/data/engine/api/MultiPassTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
7051,
12089,
2300,
1435,
1216,
1185,
202,
95,
202,
202,
759,
7766,
279,
3063,
598,
6751,
1057,
508,
261,
372,
1137,
2975,
598,
1233,
501,
1678,
13,
202,
202,
780,
1842,
3997,
273,
225,
315,
4025,
12666,
9590,
16,
432,
5980,
5321,
628,
315,
397,
29384,
7147,
12,
11272,
202,
202,
12443,
51,
2414,
13676,
15478,
13,
2211,
18,
892,
694,
2934,
542,
1138,
1528,
12,
1842,
3997,
11272,
9506,
202,
45,
2171,
2300,
8526,
8041,
273,
394,
467,
2171,
2300,
63,
7073,
9506,
202,
2704,
7739,
2300,
12,
315,
492,
18,
7240,
9590,
3113,
374,
262,
16,
9506,
202,
2704,
7739,
2300,
12,
315,
492,
18,
2192,
51,
5321,
3113,
576,
262,
16,
9506,
202,
2704,
7739,
2300,
12,
315,
5269,
18,
3495,
12,
1027,
18,
2192,
51,
5321,
262,
3113,
576,
262,
289,
31,
9506,
202,
780,
1257,
8526,
273,
288,
315,
4935,
67,
7240,
9590,
3113,
315,
4935,
67,
2192,
51,
5321,
3113,
315,
4935,
67,
5233,
900,
67,
4594,
6,
20451,
202,
202,
1114,
1852,
8526,
1041,
3262,
273,
394,
3756,
1852,
63,
7073,
394,
3756,
1852,
12,
315,
43,
21,
6,
262,
16,
394,
3756,
1852,
12,
315,
43,
22,
6,
262,
289,
31,
202,
202,
1655,
3262,
63,
20,
8009,
542,
653,
2300,
12,
9506,
202,
6,
492,
18,
7240,
9590,
6,
11272,
9506,
202,
1655,
3262,
63,
21,
8009,
542,
653,
2300,
2932,
5269,
18,
3495,
12,
1027,
18,
2192,
51,
5321,
16,
2011,
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,
1842,
67,
7051,
12089,
2300,
1435,
1216,
1185,
202,
95,
202,
202,
759,
7766,
279,
3063,
598,
6751,
1057,
508,
261,
372,
1137,
2975,
598,
1233,
501,
1678,
13,
202,
202,
780,
1842,
3997,
273,
225,
315,
4025,
12666,
9590,
16,
432,
5980,
5321,
628,
315,
397,
29384,
7147,
12,
11272,
202,
202,
12443,
51,
2414,
13676,
15478,
13,
2211,
18,
892,
694,
2934,
542,
1138,
1528,
12,
1842,
3997,
11272,
9506,
202,
45,
2171,
2300,
8526,
8041,
273,
394,
467,
2171,
2300,
63,
7073,
9506,
202,
2704,
7739,
2300,
12,
315,
492,
18,
7240,
9590,
3113,
374,
262,
16,
9506,
202,
2704,
7739,
2300,
12,
315,
492,
18,
2192,
51,
5321,
3113,
576,
262,
2
] |
public RubyObject const_get(RubySymbol symbol) {
|
public RubyObject const_get(RubyObject symbol) {
|
public RubyObject const_get(RubySymbol symbol) { String name = symbol.toId(); if (!IdUtil.isConstant(name)) { throw new NameError(getRuby(), "wrong constant name " + name); } return getConstant(name); }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyModule.java/buggy/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1866,
67,
588,
12,
54,
10340,
921,
3273,
13,
288,
3639,
514,
508,
273,
3273,
18,
869,
548,
5621,
3639,
309,
16051,
548,
1304,
18,
291,
6902,
12,
529,
3719,
288,
5411,
604,
394,
25473,
12,
588,
54,
10340,
9334,
315,
21530,
5381,
508,
315,
397,
508,
1769,
3639,
289,
3639,
327,
24337,
12,
529,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1866,
67,
588,
12,
54,
10340,
921,
3273,
13,
288,
3639,
514,
508,
273,
3273,
18,
869,
548,
5621,
3639,
309,
16051,
548,
1304,
18,
291,
6902,
12,
529,
3719,
288,
5411,
604,
394,
25473,
12,
588,
54,
10340,
9334,
315,
21530,
5381,
508,
315,
397,
508,
1769,
3639,
289,
3639,
327,
24337,
12,
529,
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
] |
Command commandA = (Command) a; Command commandB = (Command) b;
|
final Binding bindingA = (Binding) a; final Binding bindingB = (Binding) b; final ParameterizedCommand commandA = bindingA .getParameterizedCommand(); final ParameterizedCommand commandB = bindingB .getParameterizedCommand();
|
private final SortedMap getPartialMatches() { // Put all partial matches into the matches into the map. final Map partialMatches = bindingService .getPartialMatches(keyBindingState.getCurrentSequence()); // Create a sorted map that sorts based on lexicographical order. final SortedMap sortedMatches = new TreeMap(new Comparator() { public final int compare(final Object a, final Object b) { Command commandA = (Command) a; Command commandB = (Command) b; try { return commandA.getName().compareTo(commandB.getName()); } catch (final NotDefinedException e) { throw new AssertionError(e); } } }); /* * Remove those partial matches for which either the command is not * identified or the activity manager believes the command is not * enabled. */ final Iterator partialMatchItr = partialMatches.entrySet().iterator(); while (partialMatchItr.hasNext()) { final Map.Entry entry = (Map.Entry) partialMatchItr.next(); final String commandId = (String) entry.getValue(); final Command command = commandService.getCommand(commandId); if (command.isDefined() && activityManager.getIdentifier(command.getId()) .isEnabled()) { sortedMatches.put(command, entry.getKey()); } } return sortedMatches; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/KeyAssistDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/KeyAssistDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
31205,
13657,
649,
6869,
1435,
288,
202,
202,
759,
4399,
777,
4702,
1885,
1368,
326,
1885,
1368,
326,
852,
18,
202,
202,
6385,
1635,
4702,
6869,
273,
5085,
1179,
9506,
202,
18,
588,
9447,
6869,
12,
856,
5250,
1119,
18,
588,
3935,
4021,
10663,
202,
202,
759,
1788,
279,
3115,
852,
716,
18524,
2511,
603,
30089,
8829,
1706,
1353,
18,
202,
202,
6385,
31205,
3115,
6869,
273,
394,
16381,
12,
2704,
13359,
1435,
288,
1082,
202,
482,
727,
509,
3400,
12,
6385,
1033,
279,
16,
727,
1033,
324,
13,
288,
9506,
202,
2189,
1296,
37,
273,
261,
2189,
13,
279,
31,
9506,
202,
2189,
1296,
38,
273,
261,
2189,
13,
324,
31,
9506,
202,
698,
288,
6862,
202,
2463,
1296,
37,
18,
17994,
7675,
9877,
774,
12,
3076,
38,
18,
17994,
10663,
9506,
202,
97,
1044,
261,
6385,
2288,
8116,
503,
425,
13,
288,
6862,
202,
12849,
394,
12068,
12,
73,
1769,
9506,
202,
97,
1082,
202,
97,
202,
202,
22938,
202,
202,
20308,
1082,
380,
3581,
5348,
4702,
1885,
364,
1492,
3344,
326,
1296,
353,
486,
1082,
380,
9283,
578,
326,
5728,
3301,
3952,
1385,
3324,
326,
1296,
353,
486,
1082,
380,
3696,
18,
1082,
1195,
202,
202,
6385,
4498,
4702,
2060,
28984,
273,
4702,
6869,
18,
4099,
694,
7675,
9838,
5621,
202,
202,
17523,
261,
11601,
2060,
28984,
18,
5332,
2134,
10756,
288,
1082,
202,
6385,
1635,
18,
1622,
1241,
273,
261,
863,
18,
1622,
13,
4702,
2060,
28984,
18,
4285,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
31205,
13657,
649,
6869,
1435,
288,
202,
202,
759,
4399,
777,
4702,
1885,
1368,
326,
1885,
1368,
326,
852,
18,
202,
202,
6385,
1635,
4702,
6869,
273,
5085,
1179,
9506,
202,
18,
588,
9447,
6869,
12,
856,
5250,
1119,
18,
588,
3935,
4021,
10663,
202,
202,
759,
1788,
279,
3115,
852,
716,
18524,
2511,
603,
30089,
8829,
1706,
1353,
18,
202,
202,
6385,
31205,
3115,
6869,
273,
394,
16381,
12,
2704,
13359,
1435,
288,
1082,
202,
482,
727,
509,
3400,
12,
6385,
1033,
279,
16,
727,
1033,
324,
13,
288,
9506,
202,
2189,
1296,
37,
273,
261,
2189,
13,
279,
31,
9506,
202,
2189,
1296,
38,
273,
261,
2189,
13,
324,
31,
9506,
202,
698,
2
] |
assert method != null;
|
private Block( Node var, ICallable method, IRubyObject self, Frame frame, Scope scope, RubyModule klass, Iter iter, DynamicVariableSet dynamicVars) { assert method != null; this.var = var; this.method = method; this.self = self; this.frame = frame; this.scope = scope; this.klass = klass; this.iter = iter; this.dynamicVariables = dynamicVars; }
|
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/a1b8fc1d456e3d5c6e01579b88773383068aa85c/Block.java/clean/src/org/jruby/runtime/Block.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3914,
12,
3639,
2029,
569,
16,
3639,
467,
11452,
707,
16,
3639,
15908,
10340,
921,
365,
16,
3639,
8058,
2623,
16,
3639,
5468,
2146,
16,
3639,
19817,
3120,
7352,
16,
3639,
3016,
1400,
16,
3639,
12208,
3092,
694,
5976,
5555,
13,
288,
377,
202,
7734,
333,
18,
1401,
273,
569,
31,
3639,
333,
18,
2039,
273,
707,
31,
3639,
333,
18,
2890,
273,
365,
31,
3639,
333,
18,
3789,
273,
2623,
31,
3639,
333,
18,
4887,
273,
2146,
31,
3639,
333,
18,
22626,
273,
7352,
31,
3639,
333,
18,
2165,
273,
1400,
31,
3639,
333,
18,
14507,
6158,
273,
5976,
5555,
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,
3914,
12,
3639,
2029,
569,
16,
3639,
467,
11452,
707,
16,
3639,
15908,
10340,
921,
365,
16,
3639,
8058,
2623,
16,
3639,
5468,
2146,
16,
3639,
19817,
3120,
7352,
16,
3639,
3016,
1400,
16,
3639,
12208,
3092,
694,
5976,
5555,
13,
288,
377,
202,
7734,
333,
18,
1401,
273,
569,
31,
3639,
333,
18,
2039,
273,
707,
31,
3639,
333,
18,
2890,
273,
365,
31,
3639,
333,
18,
3789,
273,
2623,
31,
3639,
333,
18,
4887,
273,
2146,
31,
3639,
333,
18,
22626,
273,
7352,
31,
3639,
333,
18,
2165,
273,
1400,
31,
3639,
333,
18,
14507,
6158,
273,
5976,
5555,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
inputHandle.addParamBinding( (ParamBinding) iter.next( ) );
|
inputHandle.setTargetFileType( DesignChoiceConstants.ACTION_TARGET_FILE_TYPE_REPORT_DESIGN ); inputHandle.setReportName( locationEditor.getText( ).trim( ) ); for ( Iterator iter = bindingList.iterator( ); iter.hasNext( ); ) { inputHandle.addParamBinding( (ParamBinding) iter.next( ) ); }
|
protected void okPressed( ) { try { // Remove original settings inputHandle.setURI( null ); inputHandle.setTargetBookmark( null ); inputHandle.setTargetWindow( null ); inputHandle.setReportName( null ); inputHandle.setFormatType( null ); inputHandle.getMember( Action.PARAM_BINDINGS_MEMBER ).setValue( null ); if ( DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK .equals( selectedType ) ) { inputHandle.setURI( locationEditor.getText( ).trim( ) ); inputHandle.setTargetWindow( ChoiceSetFactory .getValueFromChoiceSet( targetChooser.getText( ), CHOICESET_TARGET ) ); } else if ( DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK .equals( selectedType ) ) { inputHandle .setTargetBookmark( bookmarkEditor.getText( ).trim( ) ); } else if ( DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH .equals( selectedType ) ) { inputHandle.setReportName( locationEditor.getText( ).trim( ) ); for ( Iterator iter = bindingList.iterator( ); iter.hasNext( ); ) { inputHandle.addParamBinding( (ParamBinding) iter.next( ) ); } if ( !StringUtil.isBlank( bookmarkEditor.getText( ) ) ) { inputHandle.setTargetBookmark( bookmarkEditor.getText( ) .trim( ) ); } inputHandle.setTargetWindow( ChoiceSetFactory .getValueFromChoiceSet( targetChooser.getText( ), CHOICESET_TARGET ) ); inputHandle.setFormatType( ChoiceSetFactory .getValueFromChoiceSet( formatChooser.getText( ), CHOICESET_FORMAT ) ); } inputHandle.setLinkType( selectedType ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } setResult( inputHandle ); super.okPressed( ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/05098ff36f1ebd6963fab20b8ff6d00d41d69d21/HyperlinkBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
3581,
2282,
1947,
1082,
202,
2630,
3259,
18,
542,
3098,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
542,
2326,
22966,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
542,
2326,
3829,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
542,
4820,
461,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
542,
1630,
559,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
588,
4419,
12,
4382,
18,
8388,
67,
2739,
55,
67,
19630,
262,
18,
542,
620,
12,
6862,
202,
2011,
11272,
1082,
202,
430,
261,
29703,
10538,
2918,
18,
12249,
67,
10554,
67,
2399,
67,
44,
61,
3194,
10554,
6862,
202,
18,
14963,
12,
3170,
559,
262,
262,
1082,
202,
95,
9506,
202,
2630,
3259,
18,
542,
3098,
12,
2117,
6946,
18,
588,
1528,
12,
262,
18,
5290,
12,
262,
11272,
9506,
202,
2630,
3259,
18,
542,
2326,
3829,
12,
16432,
694,
1733,
25083,
202,
18,
24805,
1265,
10538,
694,
12,
1018,
17324,
18,
588,
1528,
12,
262,
16,
6862,
9506,
202,
22213,
11774,
4043,
67,
16374,
262,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
29703,
10538,
2918,
18,
12249,
67,
10554,
67,
2399,
67,
28163,
12693,
67,
10554,
6862,
202,
18,
14963,
12,
3170,
559,
262,
262,
1082,
202,
95,
9506,
202,
2630,
3259,
25083,
202,
18,
542,
2326,
22966,
12,
13696,
6946,
18,
588,
1528,
12,
262,
18,
5290,
12,
262,
11272,
1082,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
3581,
2282,
1947,
1082,
202,
2630,
3259,
18,
542,
3098,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
542,
2326,
22966,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
542,
2326,
3829,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
542,
4820,
461,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
542,
1630,
559,
12,
446,
11272,
1082,
202,
2630,
3259,
18,
588,
4419,
12,
4382,
18,
8388,
67,
2739,
55,
67,
19630,
262,
18,
542,
620,
12,
6862,
202,
2011,
11272,
1082,
202,
430,
261,
29703,
10538,
2918,
18,
12249,
67,
10554,
67,
2399,
67,
44,
61,
3194,
10554,
2
] |
throws SAXException
|
throws SAXException
|
public void endPrefixMapping( String prefix ) throws SAXException { }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/af047e33ee4283cd437ffa6760ccff3d3d2bf9ea/BaseMarkupSerializer.java/clean/src/org/apache/xml/serialize/BaseMarkupSerializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
2244,
3233,
12,
514,
1633,
262,
202,
15069,
14366,
565,
288,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
2244,
3233,
12,
514,
1633,
262,
202,
15069,
14366,
565,
288,
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
] |
GuiUtils.initLookAndFeel(settings.m_lookAndFeel);
|
GuiUtil.initLookAndFeel(settings.m_lookAndFeel);
|
private static void startGoGui(GoGuiSettings settings) throws GtpError, ErrorMessage { assert(! settings.m_noStartup); GuiUtils.initLookAndFeel(settings.m_lookAndFeel); new GoGui(settings.m_program, settings.m_file, settings.m_move, settings.m_time, settings.m_verbose, settings.m_computerBlack, settings.m_computerWhite, settings.m_auto, settings.m_gtpFile, settings.m_gtpCommand, settings.m_initAnalyze, settings.m_fastPaint); }
|
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/1f50ffb219183ddaf94720a4aba453e11f412425/Main.java/buggy/src/net/sf/gogui/gogui/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
787,
5741,
18070,
12,
5741,
18070,
2628,
1947,
13,
3639,
1216,
611,
6834,
668,
16,
30298,
565,
288,
3639,
1815,
12,
5,
1947,
18,
81,
67,
2135,
22178,
1769,
3639,
611,
4881,
1304,
18,
2738,
9794,
1876,
2954,
292,
12,
4272,
18,
81,
67,
7330,
1876,
2954,
292,
1769,
3639,
394,
4220,
18070,
12,
4272,
18,
81,
67,
12890,
16,
1947,
18,
81,
67,
768,
16,
1947,
18,
81,
67,
8501,
16,
5375,
1947,
18,
81,
67,
957,
16,
1947,
18,
81,
67,
11369,
16,
5375,
1947,
18,
81,
67,
13406,
264,
13155,
16,
1947,
18,
81,
67,
13406,
264,
13407,
16,
5375,
1947,
18,
81,
67,
6079,
16,
1947,
18,
81,
67,
4521,
84,
812,
16,
1947,
18,
81,
67,
4521,
84,
2189,
16,
5375,
1947,
18,
81,
67,
2738,
31984,
16,
1947,
18,
81,
67,
8076,
12699,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
787,
5741,
18070,
12,
5741,
18070,
2628,
1947,
13,
3639,
1216,
611,
6834,
668,
16,
30298,
565,
288,
3639,
1815,
12,
5,
1947,
18,
81,
67,
2135,
22178,
1769,
3639,
611,
4881,
1304,
18,
2738,
9794,
1876,
2954,
292,
12,
4272,
18,
81,
67,
7330,
1876,
2954,
292,
1769,
3639,
394,
4220,
18070,
12,
4272,
18,
81,
67,
12890,
16,
1947,
18,
81,
67,
768,
16,
1947,
18,
81,
67,
8501,
16,
5375,
1947,
18,
81,
67,
957,
16,
1947,
18,
81,
67,
11369,
16,
5375,
1947,
18,
81,
67,
13406,
264,
13155,
16,
1947,
18,
81,
67,
13406,
264,
13407,
16,
5375,
1947,
18,
81,
67,
6079,
16,
1947,
18,
81,
67,
4521,
84,
2
] |
assertTrue("Wrong string format", formats[4] == null);
|
assertNull("Wrong string format", formats[4]);
|
public void test_ConstructorLjava_lang_String() { // Test for method java.text.MessageFormat(java.lang.String) MessageFormat format = new MessageFormat( "abc {4,time} def {3,date} ghi {2,number} jkl {1,choice,0#low|1#high} mnop {0}"); assertTrue("Not a MessageFormat", format.getClass() == MessageFormat.class); Format[] formats = format.getFormats(); assertTrue("null formats", formats != null); assertTrue("Wrong format count: " + formats.length, formats.length >= 5); assertTrue("Wrong time format", formats[0].equals(DateFormat .getTimeInstance())); assertTrue("Wrong date format", formats[1].equals(DateFormat .getDateInstance())); assertTrue("Wrong number format", formats[2].equals(NumberFormat .getInstance())); assertTrue("Wrong choice format", formats[3].equals(new ChoiceFormat( "0.0#low|1.0#high"))); assertTrue("Wrong string format", formats[4] == null); Date date = new Date(); FieldPosition pos = new FieldPosition(-1); StringBuffer buffer = new StringBuffer(); format.format(new Object[] { "123", new Double(1.6), new Double(7.2), date, date }, buffer, pos); String result = buffer.toString(); buffer.setLength(0); buffer.append("abc "); buffer.append(DateFormat.getTimeInstance().format(date)); buffer.append(" def "); buffer.append(DateFormat.getDateInstance().format(date)); buffer.append(" ghi "); buffer.append(NumberFormat.getInstance().format(new Double(7.2))); buffer.append(" jkl high mnop 123"); assertTrue("Wrong answer:\n" + result + "\n" + buffer, result .equals(buffer.toString())); assertTrue("Simple string", new MessageFormat("Test message").format( new Object[0]).equals("Test message")); try { result = new MessageFormat("Don't").format(new Object[0]); assertTrue("Should not throw IllegalArgumentException: " + result, "Dont".equals(result)); } catch (Exception e) { fail("Unexpected exception: " + e); } MessageFormat format2 = null; try { format2 = new MessageFormat("Invalid {1,foobar} format descriptor!"); fail("Expected test_ConstructorLjava_lang_String to throw IAE."); } catch (IllegalArgumentException ex) { // expected } catch (Throwable ex) { fail("Expected test_ConstructorLjava_lang_String to throw IAE, not a " + ex.getClass().getName()); } try { format2 = new MessageFormat( "Invalid {1,date,invalid-spec} format descriptor!"); } catch (IllegalArgumentException ex) { // expected } catch (Throwable ex) { fail("Expected test_ConstructorLjava_lang_String to throw IAE, not a " + ex.getClass().getName()); } checkSerialization(new MessageFormat("")); checkSerialization(new MessageFormat("noargs")); checkSerialization(new MessageFormat("{0}")); checkSerialization(new MessageFormat("a{0}")); checkSerialization(new MessageFormat("{0}b")); checkSerialization(new MessageFormat("a{0}b")); // Regression for HARMONY-65 try { new MessageFormat("{0,number,integer"); fail("Assert 0: Failed to detect unmatched brackets."); } catch (IllegalArgumentException e) { // expected } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/aa7f5ac38085143bcf2542c95a675411434e9ae6/MessageFormatTest.java/buggy/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/MessageFormatTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
6293,
21159,
67,
4936,
67,
780,
1435,
288,
3639,
368,
7766,
364,
707,
2252,
18,
955,
18,
1079,
1630,
12,
6290,
18,
4936,
18,
780,
13,
3639,
17377,
740,
273,
394,
17377,
12,
7734,
315,
18947,
288,
24,
16,
957,
97,
1652,
288,
23,
16,
712,
97,
314,
12266,
288,
22,
16,
2696,
97,
525,
16391,
288,
21,
16,
11569,
16,
20,
7,
821,
96,
21,
7,
8766,
97,
12883,
556,
288,
20,
1532,
1769,
3639,
1815,
5510,
2932,
1248,
279,
17377,
3113,
7734,
740,
18,
588,
797,
1435,
422,
17377,
18,
1106,
1769,
3639,
4077,
8526,
6449,
273,
740,
18,
588,
8976,
5621,
3639,
1815,
5510,
2932,
2011,
6449,
3113,
6449,
480,
446,
1769,
3639,
1815,
5510,
2932,
13634,
740,
1056,
30,
315,
397,
6449,
18,
2469,
16,
6449,
18,
2469,
1545,
1381,
1769,
3639,
1815,
5510,
2932,
13634,
813,
740,
3113,
6449,
63,
20,
8009,
14963,
12,
11878,
7734,
263,
588,
950,
1442,
1435,
10019,
3639,
1815,
5510,
2932,
13634,
1509,
740,
3113,
6449,
63,
21,
8009,
14963,
12,
11878,
7734,
263,
588,
1626,
1442,
1435,
10019,
3639,
1815,
5510,
2932,
13634,
1300,
740,
3113,
6449,
63,
22,
8009,
14963,
12,
1854,
1630,
7734,
263,
588,
1442,
1435,
10019,
3639,
1815,
5510,
2932,
13634,
6023,
740,
3113,
6449,
63,
23,
8009,
14963,
12,
2704,
16432,
1630,
12,
7734,
315,
20,
18,
20,
7,
821,
96,
21,
18,
20,
7,
8766,
6,
3719,
1769,
3639,
1815,
2041,
2932,
13634,
533,
740,
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,
67,
6293,
21159,
67,
4936,
67,
780,
1435,
288,
3639,
368,
7766,
364,
707,
2252,
18,
955,
18,
1079,
1630,
12,
6290,
18,
4936,
18,
780,
13,
3639,
17377,
740,
273,
394,
17377,
12,
7734,
315,
18947,
288,
24,
16,
957,
97,
1652,
288,
23,
16,
712,
97,
314,
12266,
288,
22,
16,
2696,
97,
525,
16391,
288,
21,
16,
11569,
16,
20,
7,
821,
96,
21,
7,
8766,
97,
12883,
556,
288,
20,
1532,
1769,
3639,
1815,
5510,
2932,
1248,
279,
17377,
3113,
7734,
740,
18,
588,
797,
1435,
422,
17377,
18,
1106,
1769,
3639,
4077,
8526,
6449,
273,
740,
18,
588,
8976,
5621,
3639,
1815,
5510,
2932,
2011,
6449,
3113,
6449,
480,
446,
2
] |
this.bottom += DEFAULT_ORGANIZATION_NAME; } this.bottom += ". All Rights Reserved."; } if ( this.destDir.equals( DEFAULT_DESTDIR ) )
|
bottom += DEFAULT_ORGANIZATION_NAME; } bottom += ". All Rights Reserved."; } if ( destDir.equals( DEFAULT_DESTDIR ) )
|
protected void executeReport( Locale locale ) throws MavenReportException { try { int actualYear = Calendar.getInstance().get( Calendar.YEAR ); String year = String.valueOf( actualYear ); Model model = getProject().getModel(); if ( model.getInceptionYear() != null ) { if ( StringUtils.isNumeric( model.getInceptionYear() ) ) { if ( Integer.valueOf( model.getInceptionYear() ).intValue() != actualYear ) { year = model.getInceptionYear() + "-" + String.valueOf( actualYear ); } } else { getLog().warn( "The inception year is not a valid year." ); } } StringBuffer classpath = new StringBuffer(); for ( Iterator i = getProject().getCompileClasspathElements().iterator(); i.hasNext(); ) { classpath.append( (String) i.next() ); if ( i.hasNext() ) { classpath.append( PATH_SEPARATOR ); } } StringBuffer sourcePath = new StringBuffer(); String[] fileList = new String[1]; for ( Iterator i = getProject().getCompileSourceRoots().iterator(); i.hasNext(); ) { String sourceDirectory = (String) i.next(); fileList = FileUtils.getFilesFromExtension( sourceDirectory, new String[] { "java" } ); sourcePath.append( sourceDirectory ); } File javadocDirectory = new File( getProject().getBuild().getDirectory() + "/javadoc" ); if ( fileList != null && fileList.length != 0 ) { StringBuffer files = new StringBuffer(); for ( int i = 0; i < fileList.length; i++ ) { files.append( fileList[i] ); files.append( "\n" ); } javadocDirectory.mkdirs(); FileUtils.fileWrite( new File( javadocDirectory, "files" ).getAbsolutePath(), files.toString() ); } else { return; } // Copy default style sheet copyDefaultStylesheet( javadocDirectory ); this.cmd.setWorkingDirectory( javadocDirectory.getAbsolutePath() ); this.cmd.setExecutable( getJavadocPath() ); // General javadoc arguments addArgIf( this.breakiterator, "-breakiterator", 1.4f ); if ( !StringUtils.isEmpty( this.doclet ) ) { addArgIfNotEmpty( "-doclet", this.doclet ); addArgIfNotEmpty( "-docletPath", this.docletPath ); } addArgIfNotEmpty( "-encoding", this.encoding ); addArgIfNotEmpty( "-extdirs", this.extdirs ); addArgIfNotEmpty( "-exclude", this.excludePackageNames, 1.4f ); addArgIfNotEmpty( "-locale", this.locale ); if ( !StringUtils.isEmpty( this.maxmemory ) ) { // Allow '128' or '128m' if ( NumberUtils.isDigits( this.maxmemory ) ) { addArgIf( true, "-J-Xmx" + this.maxmemory + "m" ); } else { if ( ( NumberUtils.isDigits( this.maxmemory.substring( 0, this.maxmemory.length() - 1 ) ) ) && ( this.maxmemory.toLowerCase().endsWith( "m" ) ) ) { addArgIf( true, "-J-Xmx" + this.maxmemory ); } else { getLog().error( "The maxmemory '" + this.maxmemory + "' is not a valid number. Ignore this option." ); } } } if ( !StringUtils.isEmpty( this.minmemory ) ) { // Allow '128' or '128m' if ( NumberUtils.isDigits( this.minmemory ) ) { addArgIf( true, "-J-Xms" + this.minmemory + "m" ); } else { if ( ( NumberUtils.isDigits( this.minmemory.substring( 0, this.minmemory.length() - 1 ) ) ) && ( this.minmemory.toLowerCase().endsWith( "m" ) ) ) { addArgIf( true, "-J-Xms" + this.minmemory ); } else { getLog().error( "The minmemory '" + this.minmemory + "' is not a valid number. Ignore this option." ); } } } if ( this.old && SystemUtils.isJavaVersionAtLeast( 1.4f ) ) { getLog().warn( "Javadoc 1.4 doesn't support the -1.1 switch anymore. Ignore this option." ); } else { addArgIf( this.old, "-1.1" ); } addArgIfNotEmpty( "-overview", this.overview ); addArgIf( this.package_, "-package" ); addArgIf( this.private_, "-private" ); addArgIf( this.protected_, "-protected" ); addArgIf( this.public_, "-public" ); addArgIf( this.quiet, "-quiet", 1.4f ); addArgIfNotEmpty( "-source", this.source, 1.4f ); addArgIf( this.verbose, "-verbose" ); addArgIfNotEmpty( "-additionalparam", this.additionalparam ); addArgIfNotEmpty( "-sourcePath", sourcePath.toString() ); addArgIfNotEmpty( "-classpath", classpath.toString() ); // javadoc arguments for default doclet if ( StringUtils.isEmpty( this.doclet ) ) { // Specify default values if ( this.bottom.equals( DEFAULT_BOTTOM ) ) { this.bottom = "Copyright © " + year + " "; if ( ( model.getOrganization() != null ) && ( !StringUtils.isEmpty( model.getOrganization().getName() ) ) ) { this.bottom += model.getOrganization().getName(); } else { this.bottom += DEFAULT_ORGANIZATION_NAME; } this.bottom += ". All Rights Reserved."; } if ( this.destDir.equals( DEFAULT_DESTDIR ) ) { File outputDir = new File( getReportOutputDirectory().getAbsolutePath() + "/apidocs" ); outputDir.mkdirs(); this.destDir = outputDir.getAbsolutePath(); } if ( StringUtils.isEmpty( this.stylesheetfile ) ) { this.stylesheetfile = javadocDirectory + File.separator + DEFAULT_CSS_NAME; } if ( this.windowtitle.equals( DEFAULT_WINDOW_TITLE ) ) { this.windowtitle = ( model.getName() == null ? model.getArtifactId() : model.getName() ) + " " + model.getVersion() + " API"; } if ( this.doctitle.equals( DEFAULT_DOCTITLE ) ) { this.doctitle = this.windowtitle; } // End Specify default values addArgIf( this.author, "-author" ); addArgIfNotEmpty( "-bottom", this.bottom ); addArgIf( this.breakiterator, "-breakiterator", 1.4f ); addArgIfNotEmpty( "-charset", this.charset ); addArgIfNotEmpty( "-d", this.destDir ); addArgIf( this.docfilessubdirs, "-docfilessubdirs", 1.4f ); addArgIfNotEmpty( "-docencoding", this.docencoding ); addArgIfNotEmpty( "-doctitle", this.doctitle ); addArgIfNotEmpty( "-excludePackageNames", this.excludePackageNames ); addArgIfNotEmpty( "-excludedocfilessubdir", this.excludedocfilessubdir, 1.4f ); addArgIfNotEmpty( "-footer", this.footer ); addArgIfNotEmpty( "-group", this.group, true ); addArgIfNotEmpty( "-header", this.header ); addArgIfNotEmpty( "-helpfile", this.helpfile ); addArgIfNotEmpty( "-link", this.link, true ); addArgIfNotEmpty( "-linkoffline", this.linkoffline, true ); addArgIf( this.linksource, "-linksource", 1.4f ); addArgIf( this.nodeprecated, "-nodeprecated" ); addArgIf( this.nodeprecatedlist, "-nodeprecatedlist" ); addArgIf( this.nocomment, "-nocomment", 1.4f ); addArgIf( this.nohelp, "-nohelp" ); addArgIf( this.noindex, "-noindex" ); addArgIf( this.nonavbar, "-nonavbar" ); addArgIfNotEmpty( "-noqualifier", this.noqualifier, 1.4f ); addArgIf( this.nosince, "-nosince" ); addArgIf( this.notree, "-notree" ); addArgIf( this.serialwarn, "-serialwarn" ); addArgIf( this.splitindex, "-splitindex" ); addArgIfNotEmpty( "-stylesheetfile", this.stylesheetfile ); addArgIfNotEmpty( "-tag", this.tag, 1.4f, true ); addArgIfNotEmpty( "-taglet", this.taglet, 1.4f ); addArgIfNotEmpty( "-tagletpath", this.tagletpath, 1.4f ); addArgIf( this.use, "-use" ); addArgIf( this.version, "-version" ); addArgIfNotEmpty( "-windowtitle", this.windowtitle ); } cmd.createArgument().setValue( "@files" ); getLog().info( Commandline.toString( cmd.getCommandline() ) ); final int exitCode = CommandLineUtils .executeCommandLine( cmd, new DefaultConsumer(), new DefaultConsumer() ); if ( exitCode != 0 ) { throw new MavenReportException( "Exit code: " + exitCode ); } } catch ( Exception e ) { getLog().debug( e ); throw new MavenReportException( "An error has occurred in javadoc report generation.", e ); } }
|
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/7f9ca7632659d1b09416026c87ce3e635b6c7495/JavadocReport.java/clean/maven-plugins/maven-javadoc-plugin/src/main/java/org/apache/maven/plugin/javadoc/JavadocReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
4820,
12,
6458,
2573,
262,
3639,
1216,
17176,
4820,
503,
565,
288,
3639,
775,
3639,
288,
5411,
509,
3214,
5593,
273,
5542,
18,
588,
1442,
7675,
588,
12,
5542,
18,
15137,
11272,
5411,
514,
3286,
273,
514,
18,
1132,
951,
12,
3214,
5593,
11272,
5411,
3164,
938,
273,
11080,
7675,
588,
1488,
5621,
5411,
309,
261,
938,
18,
588,
382,
472,
5593,
1435,
480,
446,
262,
5411,
288,
7734,
309,
261,
5778,
18,
291,
9902,
12,
938,
18,
588,
382,
472,
5593,
1435,
262,
262,
7734,
288,
10792,
309,
261,
2144,
18,
1132,
951,
12,
938,
18,
588,
382,
472,
5593,
1435,
262,
18,
474,
620,
1435,
480,
3214,
5593,
262,
10792,
288,
13491,
3286,
273,
938,
18,
588,
382,
472,
5593,
1435,
397,
7514,
397,
514,
18,
1132,
951,
12,
3214,
5593,
11272,
10792,
289,
7734,
289,
7734,
469,
7734,
288,
10792,
9189,
7675,
8935,
12,
315,
1986,
316,
472,
3286,
353,
486,
279,
923,
3286,
1199,
11272,
7734,
289,
5411,
289,
5411,
6674,
10006,
273,
394,
6674,
5621,
5411,
364,
261,
4498,
277,
273,
11080,
7675,
588,
9937,
17461,
3471,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
10006,
18,
6923,
12,
261,
780,
13,
277,
18,
4285,
1435,
11272,
7734,
309,
261,
277,
18,
5332,
2134,
1435,
262,
7734,
288,
10792,
10006,
18,
6923,
12,
7767,
67,
4550,
11272,
7734,
289,
5411,
289,
5411,
6674,
17744,
273,
394,
6674,
5621,
5411,
514,
8526,
18645,
273,
394,
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,
1836,
4820,
12,
6458,
2573,
262,
3639,
1216,
17176,
4820,
503,
565,
288,
3639,
775,
3639,
288,
5411,
509,
3214,
5593,
273,
5542,
18,
588,
1442,
7675,
588,
12,
5542,
18,
15137,
11272,
5411,
514,
3286,
273,
514,
18,
1132,
951,
12,
3214,
5593,
11272,
5411,
3164,
938,
273,
11080,
7675,
588,
1488,
5621,
5411,
309,
261,
938,
18,
588,
382,
472,
5593,
1435,
480,
446,
262,
5411,
288,
7734,
309,
261,
5778,
18,
291,
9902,
12,
938,
18,
588,
382,
472,
5593,
1435,
262,
262,
7734,
288,
10792,
309,
261,
2144,
18,
1132,
951,
12,
938,
18,
588,
382,
472,
5593,
1435,
262,
18,
474,
620,
1435,
480,
3214,
5593,
262,
10792,
288,
13491,
3286,
2
] |
protected XSDocumentInfo constructTrees(Document schemaRoot, String locationHint, XSDDescription desc) { if (schemaRoot == null) return null; String callerTNS = desc.getTargetNamespace(); short referType = desc.getContextType(); XSDocumentInfo currSchemaInfo = null; try { // note that attributes are freed at end of traverseSchemas() currSchemaInfo = new XSDocumentInfo(schemaRoot, fAttributeChecker, fSymbolTable); } catch (XMLSchemaException se) { reportSchemaError(ELE_ERROR_CODES[referType], new Object[]{locationHint}, DOMUtil.getRoot(schemaRoot)); return null; } // targetNamespace="" is not valid, issue a warning, and ignore it if (currSchemaInfo.fTargetNamespace != null && currSchemaInfo.fTargetNamespace.length() == 0) { reportSchemaWarning("EmptyTargetNamespace", new Object[]{locationHint}, DOMUtil.getRoot(schemaRoot)); currSchemaInfo.fTargetNamespace = null; } if (callerTNS != null) { // the second index to the NS_ERROR_CODES array // if the caller/expected NS is not absent, we use the first column int secondIdx = 0; // for include and redefine if (referType == XSDDescription.CONTEXT_INCLUDE || referType == XSDDescription.CONTEXT_REDEFINE) { // if the referred document has no targetNamespace, // it's a chameleon schema if (currSchemaInfo.fTargetNamespace == null) { currSchemaInfo.fTargetNamespace = callerTNS; currSchemaInfo.fIsChameleonSchema = true; } // if the referred document has a target namespace differing // from the caller, it's an error else if (callerTNS != currSchemaInfo.fTargetNamespace) { reportSchemaError(NS_ERROR_CODES[referType][secondIdx], new Object [] {callerTNS, currSchemaInfo.fTargetNamespace}, DOMUtil.getRoot(schemaRoot)); return null; } } // for instance and import, the two NS's must be the same else if (referType != XSDDescription.CONTEXT_PREPARSE && callerTNS != currSchemaInfo.fTargetNamespace) { reportSchemaError(NS_ERROR_CODES[referType][secondIdx], new Object [] {callerTNS, currSchemaInfo.fTargetNamespace}, DOMUtil.getRoot(schemaRoot)); return null; } } // now there is no caller/expected NS, it's an error for the referred // document to have a target namespace, unless we are preparsing a schema else if (currSchemaInfo.fTargetNamespace != null) { // set the target namespace of the description if (referType == XSDDescription.CONTEXT_PREPARSE) { desc.setTargetNamespace(currSchemaInfo.fTargetNamespace); callerTNS = currSchemaInfo.fTargetNamespace; } else { // the second index to the NS_ERROR_CODES array // if the caller/expected NS is absent, we use the second column int secondIdx = 1; reportSchemaError(NS_ERROR_CODES[referType][secondIdx], new Object [] {callerTNS, currSchemaInfo.fTargetNamespace}, DOMUtil.getRoot(schemaRoot)); return null; } } // the other cases (callerTNS == currSchemaInfo.fTargetNamespce == null) // are valid // a schema document can always access it's own target namespace currSchemaInfo.addAllowedNS(currSchemaInfo.fTargetNamespace); SchemaGrammar sg = null; if (referType == XSDDescription.CONTEXT_INCLUDE || referType == XSDDescription.CONTEXT_REDEFINE) { sg = fGrammarBucket.getGrammar(currSchemaInfo.fTargetNamespace); } else { sg = new SchemaGrammar(currSchemaInfo.fTargetNamespace, desc.makeClone(), fSymbolTable); fGrammarBucket.putGrammar(sg); } // store the document and its location // REVISIT: don't expose the DOM tree //sg.addDocument(currSchemaInfo.fSchemaDoc, (String)fDoc2SystemId.get(currSchemaInfo)); sg.addDocument(null, (String)fDoc2SystemId.get(currSchemaInfo.fSchemaDoc)); fDoc2XSDocumentMap.put(schemaRoot, currSchemaInfo); Vector dependencies = new Vector(); Element rootNode = DOMUtil.getRoot(schemaRoot); Document newSchemaRoot = null; for (Element child = DOMUtil.getFirstChildElement(rootNode); child != null; child = DOMUtil.getNextSiblingElement(child)) { String schemaNamespace=null; String schemaHint=null; String localName = DOMUtil.getLocalName(child); short refType = -1; if (localName.equals(SchemaSymbols.ELT_ANNOTATION)) continue; else if (localName.equals(SchemaSymbols.ELT_IMPORT)) { refType = XSDDescription.CONTEXT_IMPORT; // have to handle some validation here too! // call XSAttributeChecker to fill in attrs Object[] importAttrs = fAttributeChecker.checkAttributes(child, true, currSchemaInfo); schemaHint = (String)importAttrs[XSAttributeChecker.ATTIDX_SCHEMALOCATION]; schemaNamespace = (String)importAttrs[XSAttributeChecker.ATTIDX_NAMESPACE]; if (schemaNamespace != null) schemaNamespace = fSymbolTable.addSymbol(schemaNamespace); // a document can't import another document with the same namespace if (schemaNamespace == currSchemaInfo.fTargetNamespace) { reportSchemaError("src-import.1.1", new Object [] {schemaNamespace}, child); } // check contents and process optional annotations Element importChild = DOMUtil.getFirstChildElement(child); if(importChild != null ) { String importComponentType = DOMUtil.getLocalName(importChild); if (importComponentType.equals(SchemaSymbols.ELT_ANNOTATION)) { // promoting annotations to parent component sg.addAnnotation( fElementTraverser.traverseAnnotationDecl(importChild, importAttrs, true, currSchemaInfo)); } else { reportSchemaError("s4s-elt-must-match.1", new Object [] {localName, "annotation?", importComponentType}, child); } if(DOMUtil.getNextSiblingElement(importChild) != null) { reportSchemaError("s4s-elt-must-match.1", new Object [] {localName, "annotation?", DOMUtil.getLocalName(DOMUtil.getNextSiblingElement(importChild))}, child); } } fAttributeChecker.returnAttrArray(importAttrs, currSchemaInfo); // if this namespace has been imported by this document, // ignore the <import> statement if (currSchemaInfo.isAllowedNS(schemaNamespace)) continue; // a schema document can access it's imported namespaces currSchemaInfo.addAllowedNS(schemaNamespace); // also record the fact that one namespace imports another one // convert null to "" String tns = null2EmptyString(currSchemaInfo.fTargetNamespace); // get all namespaces imported by this one Vector ins = (Vector)fImportMap.get(tns); // if no namespace was imported, create new Vector if (ins == null) { // record that this one imports other(s) fAllTNSs.addElement(tns); ins = new Vector(); fImportMap.put(tns, ins); ins.addElement(schemaNamespace); } else if (!ins.contains(schemaNamespace)){ ins.addElement(schemaNamespace); } fSchemaGrammarDescription.reset(); fSchemaGrammarDescription.setContextType(XSDDescription.CONTEXT_IMPORT); fSchemaGrammarDescription.setBaseSystemId(doc2SystemId(schemaRoot)); fSchemaGrammarDescription.setLocationHints(new String[]{schemaHint}); fSchemaGrammarDescription.setTargetNamespace(schemaNamespace); // if a grammar with the same namespace exists (or being // built), ignore this one (don't traverse it). if (findGrammar(fSchemaGrammarDescription) != null) continue; newSchemaRoot = resolveSchema(fSchemaGrammarDescription, false, child); } else if ((localName.equals(SchemaSymbols.ELT_INCLUDE)) || (localName.equals(SchemaSymbols.ELT_REDEFINE))) { // validation for redefine/include will be the same here; just // make sure TNS is right (don't care about redef contents // yet). Object[] includeAttrs = fAttributeChecker.checkAttributes(child, true, currSchemaInfo); schemaHint = (String)includeAttrs[XSAttributeChecker.ATTIDX_SCHEMALOCATION]; // store the namespace decls of the redefine element if (localName.equals(SchemaSymbols.ELT_REDEFINE)) { fRedefine2NSSupport.put(child, new SchemaNamespaceSupport(currSchemaInfo.fNamespaceSupport)); } // check annotations. Must do this here to avoid having to // re-parse attributes later if(localName.equals(SchemaSymbols.ELT_INCLUDE)) { Element includeChild = DOMUtil.getFirstChildElement(child); if(includeChild != null ) { String includeComponentType = DOMUtil.getLocalName(includeChild); if (includeComponentType.equals(SchemaSymbols.ELT_ANNOTATION)) { // promoting annotations to parent component sg.addAnnotation( fElementTraverser.traverseAnnotationDecl(includeChild, includeAttrs, true, currSchemaInfo)); } else { reportSchemaError("s4s-elt-must-match.1", new Object [] {localName, "annotation?", includeComponentType}, child); } if(DOMUtil.getNextSiblingElement(includeChild) != null) { reportSchemaError("s4s-elt-must-match.1", new Object [] {localName, "annotation?", DOMUtil.getLocalName(DOMUtil.getNextSiblingElement(includeChild))}, child); } } } else { for (Element redefinedChild = DOMUtil.getFirstChildElement(child); redefinedChild != null; redefinedChild = DOMUtil.getNextSiblingElement(redefinedChild)) { String redefinedComponentType = DOMUtil.getLocalName(redefinedChild); if (redefinedComponentType.equals(SchemaSymbols.ELT_ANNOTATION)) { // promoting annotations to parent component sg.addAnnotation( fElementTraverser.traverseAnnotationDecl(redefinedChild, includeAttrs, true, currSchemaInfo)); DOMUtil.setHidden(redefinedChild); } // catch all other content errors later } } fAttributeChecker.returnAttrArray(includeAttrs, currSchemaInfo); // schemaLocation is required on <include> and <redefine> if (schemaHint == null) { reportSchemaError("s4s-att-must-appear", new Object [] { "<include> or <redefine>", "schemaLocation"}, child); } // pass the systemId of the current document as the base systemId boolean mustResolve = false; refType = XSDDescription.CONTEXT_INCLUDE; if(localName.equals(SchemaSymbols.ELT_REDEFINE)) { mustResolve = nonAnnotationContent(child); refType = XSDDescription.CONTEXT_REDEFINE; } fSchemaGrammarDescription.reset(); fSchemaGrammarDescription.setContextType(refType); fSchemaGrammarDescription.setBaseSystemId(doc2SystemId(schemaRoot)); fSchemaGrammarDescription.setLocationHints(new String[]{schemaHint}); fSchemaGrammarDescription.setTargetNamespace(callerTNS); newSchemaRoot = resolveSchema(fSchemaGrammarDescription, mustResolve, child); schemaNamespace = currSchemaInfo.fTargetNamespace; } else { // no more possibility of schema references in well-formed // schema... break; } // If the schema is duplicate, we needn't call constructTrees() again. // To handle mutual <include>s XSDocumentInfo newSchemaInfo = null; if (fLastSchemaWasDuplicate) { newSchemaInfo = (XSDocumentInfo)fDoc2XSDocumentMap.get(newSchemaRoot); } else { newSchemaInfo = constructTrees(newSchemaRoot, schemaHint, fSchemaGrammarDescription); } if (localName.equals(SchemaSymbols.ELT_REDEFINE) && newSchemaInfo != null) { // must record which schema we're redefining so that we can // rename the right things later! fRedefine2XSDMap.put(child, newSchemaInfo); } if (newSchemaRoot != null) { if (newSchemaInfo != null) dependencies.addElement(newSchemaInfo); newSchemaRoot = null; } } fDependencyMap.put(currSchemaInfo, dependencies); return currSchemaInfo; } // end constructTrees
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/824513f9279b62485bd5e7ef6236029f1a49e949/XSDHandler.java/clean/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1139,
55,
2519,
966,
4872,
26590,
12,
2519,
1963,
2375,
16,
514,
2117,
7002,
16,
26462,
3291,
3044,
13,
288,
3639,
309,
261,
4821,
2375,
422,
446,
13,
327,
446,
31,
3639,
514,
4894,
56,
3156,
273,
3044,
18,
588,
2326,
3402,
5621,
3639,
3025,
8884,
559,
273,
3044,
18,
29120,
559,
5621,
7734,
1139,
55,
2519,
966,
4306,
3078,
966,
273,
446,
31,
3639,
775,
288,
5411,
368,
4721,
716,
1677,
854,
28004,
622,
679,
434,
10080,
16749,
1435,
5411,
4306,
3078,
966,
273,
394,
1139,
55,
2519,
966,
12,
4821,
2375,
16,
284,
1499,
8847,
16,
284,
5335,
1388,
1769,
3639,
289,
1044,
261,
4201,
3078,
503,
695,
13,
288,
5411,
2605,
3078,
668,
12,
41,
900,
67,
3589,
67,
17070,
63,
266,
586,
559,
6487,
17311,
394,
1033,
63,
7073,
3562,
7002,
5779,
17311,
4703,
1304,
18,
588,
2375,
12,
4821,
2375,
10019,
5411,
327,
446,
31,
3639,
289,
3639,
368,
1018,
3402,
1546,
6,
353,
486,
923,
16,
5672,
279,
3436,
16,
471,
2305,
518,
3639,
309,
261,
17016,
3078,
966,
18,
74,
2326,
3402,
480,
446,
597,
5411,
4306,
3078,
966,
18,
74,
2326,
3402,
18,
2469,
1435,
422,
374,
13,
288,
5411,
2605,
3078,
6210,
2932,
1921,
2326,
3402,
3113,
27573,
394,
1033,
63,
7073,
3562,
7002,
5779,
27573,
4703,
1304,
18,
588,
2375,
12,
4821,
2375,
10019,
5411,
4306,
3078,
966,
18,
74,
2326,
3402,
273,
446,
31,
3639,
289,
3639,
309,
261,
16140,
56,
3156,
480,
446,
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,
1139,
55,
2519,
966,
4872,
26590,
12,
2519,
1963,
2375,
16,
514,
2117,
7002,
16,
26462,
3291,
3044,
13,
288,
3639,
309,
261,
4821,
2375,
422,
446,
13,
327,
446,
31,
3639,
514,
4894,
56,
3156,
273,
3044,
18,
588,
2326,
3402,
5621,
3639,
3025,
8884,
559,
273,
3044,
18,
29120,
559,
5621,
7734,
1139,
55,
2519,
966,
4306,
3078,
966,
273,
446,
31,
3639,
775,
288,
5411,
368,
4721,
716,
1677,
854,
28004,
622,
679,
434,
10080,
16749,
1435,
5411,
4306,
3078,
966,
273,
394,
1139,
55,
2519,
966,
12,
4821,
2375,
16,
284,
1499,
8847,
16,
284,
5335,
1388,
1769,
3639,
289,
1044,
261,
4201,
3078,
503,
695,
13,
288,
5411,
2605,
3078,
668,
12,
2
] |
||
return mf.format(arguments, sb, fp).toString();
|
return mf.formatInternal(arguments, sb, fp, null).toString();
|
public static String format (String pattern, Object arguments[]) { MessageFormat mf = new MessageFormat (pattern); StringBuffer sb = new StringBuffer (); FieldPosition fp = new FieldPosition (NumberFormat.INTEGER_FIELD); return mf.format(arguments, sb, fp).toString(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/MessageFormat.java/clean/core/src/classpath/java/java/text/MessageFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
740,
261,
780,
1936,
16,
1033,
1775,
63,
5717,
225,
288,
565,
17377,
14749,
273,
394,
17377,
261,
4951,
1769,
565,
6674,
2393,
273,
394,
6674,
261,
1769,
565,
2286,
2555,
4253,
273,
394,
2286,
2555,
261,
1854,
1630,
18,
14217,
67,
6776,
1769,
565,
327,
14749,
18,
2139,
3061,
12,
7099,
16,
2393,
16,
4253,
16,
446,
2934,
10492,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
514,
740,
261,
780,
1936,
16,
1033,
1775,
63,
5717,
225,
288,
565,
17377,
14749,
273,
394,
17377,
261,
4951,
1769,
565,
6674,
2393,
273,
394,
6674,
261,
1769,
565,
2286,
2555,
4253,
273,
394,
2286,
2555,
261,
1854,
1630,
18,
14217,
67,
6776,
1769,
565,
327,
14749,
18,
2139,
3061,
12,
7099,
16,
2393,
16,
4253,
16,
446,
2934,
10492,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
props = SAMUtils.parseParams(tok);
|
private boolean execNamingMessage(String opcode, StringTokenizer tok) { Properties props = null; if (opcode.equals("LOOKUP")) { props = SAMUtils.parseParams(tok); if (props == null) { return false; } String name = props.getProperty("NAME"); if (name == null) { _log.debug("Name to resolve not specified"); return false; } try { ByteArrayOutputStream pubKey = new ByteArrayOutputStream(); Destination dest = SAMUtils.lookupHost(name, pubKey); if (dest == null) { writeBytes("NAMING REPLY RESULT=KEY_NOT_FOUND\n".getBytes("ISP-8859-1")); return true; } writeBytes(("NAMING REPLY RESULT=OK NAME=" + name + " VALUE=" + Base64.encode(pubKey.toByteArray()) + "\n").getBytes("ISO-8859-1")); return true; } catch (UnsupportedEncodingException e) { _log.error("Caught UnsupportedEncodingException (" + e.getMessage() + ")"); return false; } catch (IOException e) { _log.debug("Caught IOException while parsing NAMING message", e); return false; } } else { _log.debug("Unrecognized NAMING message opcode: \"" + opcode + "\""); return false; } }
|
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/7b03c95cfd85cf41cc4a19a116d9b1a94eb588cd/SAMv1Handler.java/clean/apps/sam/java/src/net/i2p/sam/SAMv1Handler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1196,
24102,
1079,
12,
780,
11396,
16,
16370,
946,
13,
288,
202,
2297,
3458,
273,
446,
31,
202,
430,
261,
556,
710,
18,
14963,
2932,
1502,
31581,
6,
3719,
288,
202,
565,
3458,
273,
30712,
1989,
18,
2670,
1370,
12,
17692,
1769,
202,
565,
309,
261,
9693,
422,
446,
13,
288,
202,
202,
2463,
629,
31,
202,
565,
289,
202,
377,
202,
565,
514,
508,
273,
3458,
18,
588,
1396,
2932,
1985,
8863,
202,
565,
309,
261,
529,
422,
446,
13,
288,
202,
202,
67,
1330,
18,
4148,
2932,
461,
358,
2245,
486,
1269,
8863,
202,
202,
2463,
629,
31,
202,
565,
289,
202,
565,
775,
288,
202,
202,
8826,
4632,
18659,
273,
394,
11559,
5621,
202,
202,
5683,
1570,
273,
30712,
1989,
18,
8664,
2594,
12,
529,
16,
18659,
1769,
202,
202,
430,
261,
10488,
422,
446,
13,
288,
1082,
565,
29579,
2932,
50,
2192,
1360,
2438,
23893,
17210,
33,
3297,
67,
4400,
67,
9294,
64,
82,
9654,
588,
2160,
2932,
45,
3118,
17,
17258,
17,
21,
7923,
1769,
1082,
565,
327,
638,
31,
202,
202,
97,
9506,
202,
2626,
2160,
12,
2932,
50,
2192,
1360,
2438,
23893,
17210,
33,
3141,
6048,
1546,
397,
508,
9506,
565,
397,
315,
5848,
1546,
397,
3360,
1105,
18,
3015,
12,
10174,
653,
18,
869,
8826,
10756,
9506,
565,
397,
1548,
82,
20387,
588,
2160,
2932,
12609,
17,
17258,
17,
21,
7923,
1769,
202,
202,
2463,
638,
31,
202,
565,
289,
1044,
261,
8544,
13836,
425,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1196,
24102,
1079,
12,
780,
11396,
16,
16370,
946,
13,
288,
202,
2297,
3458,
273,
446,
31,
202,
430,
261,
556,
710,
18,
14963,
2932,
1502,
31581,
6,
3719,
288,
202,
565,
3458,
273,
30712,
1989,
18,
2670,
1370,
12,
17692,
1769,
202,
565,
309,
261,
9693,
422,
446,
13,
288,
202,
202,
2463,
629,
31,
202,
565,
289,
202,
377,
202,
565,
514,
508,
273,
3458,
18,
588,
1396,
2932,
1985,
8863,
202,
565,
309,
261,
529,
422,
446,
13,
288,
202,
202,
67,
1330,
18,
4148,
2932,
461,
358,
2245,
486,
1269,
8863,
202,
202,
2463,
629,
31,
202,
565,
289,
202,
565,
775,
288,
202,
202,
8826,
4632,
18659,
273,
394,
11559,
5621,
2
] |
|
DecorationResult decoration = getResult(element, adaptedElement);
|
DecorationResult decoration = getResult(element, adaptedElement, context);
|
public Image decorateWithOverlays(Image image, Object element, Object adaptedElement) { DecorationResult decoration = getResult(element, adaptedElement); if (decoration == null) return image; return decoration.decorateWithOverlays(image, decoratorManager .getLightweightManager().getOverlayCache()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9f91fdc102dc0bda0f133ae3012af277ee55d3ef/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3421,
15752,
1190,
11627,
87,
12,
2040,
1316,
16,
1033,
930,
16,
1082,
202,
921,
28345,
1046,
13,
288,
202,
202,
7859,
367,
1253,
29217,
273,
8601,
12,
2956,
16,
28345,
1046,
1769,
202,
202,
430,
261,
11880,
367,
422,
446,
13,
1082,
202,
2463,
1316,
31,
202,
202,
2463,
29217,
18,
11880,
340,
1190,
11627,
87,
12,
2730,
16,
7367,
1318,
9506,
202,
18,
588,
12128,
4865,
1318,
7675,
588,
11627,
1649,
10663,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3421,
15752,
1190,
11627,
87,
12,
2040,
1316,
16,
1033,
930,
16,
1082,
202,
921,
28345,
1046,
13,
288,
202,
202,
7859,
367,
1253,
29217,
273,
8601,
12,
2956,
16,
28345,
1046,
1769,
202,
202,
430,
261,
11880,
367,
422,
446,
13,
1082,
202,
2463,
1316,
31,
202,
202,
2463,
29217,
18,
11880,
340,
1190,
11627,
87,
12,
2730,
16,
7367,
1318,
9506,
202,
18,
588,
12128,
4865,
1318,
7675,
588,
11627,
1649,
10663,
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
] |
List ss = new TypedList(new LinkedList(), Stmt.class, false);
|
List<Stmt> ss = new TypedList(new LinkedList<Stmt>(), Stmt.class, false);
|
public MethodDecl AtomicMethodDecl(Position pos, DepParameterExpr thisClause, Flags flags, TypeNode returnType, String name, List formals, Expr whereClause, List throwTypes, Block body) { flags = flags.clear(X10Flags.ATOMIC).set(X10Flags.SAFE); List ss = new TypedList(new LinkedList(), Stmt.class, false); ss.add(Atomic(pos, Here(pos), body)); body = Block(pos, ss); MethodDecl n = new AtomicMethodDecl_c(pos, thisClause, flags, returnType, name, formals, whereClause, throwTypes, body); n = (MethodDecl)n.ext(extFactory().extMethodDecl()); n = (MethodDecl)n.del(delFactory().delMethodDecl()); return n; }
|
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/c6a9c5919552b91fb0c4af00afd67a30f78acfc4/X10NodeFactory_c.java/buggy/x10.compiler/src/polyglot/ext/x10/ast/X10NodeFactory_c.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2985,
3456,
11553,
1305,
3456,
12,
2555,
949,
16,
4019,
1662,
4742,
333,
7044,
16,
10104,
2943,
16,
5411,
1412,
907,
9424,
16,
514,
508,
16,
5411,
987,
646,
1031,
16,
8074,
30300,
16,
987,
604,
2016,
16,
3914,
1417,
13,
282,
288,
4202,
2943,
273,
2943,
18,
8507,
12,
60,
2163,
5094,
18,
28146,
2871,
2934,
542,
12,
60,
2163,
5094,
18,
22219,
1769,
4202,
987,
32,
8952,
34,
5202,
273,
394,
13833,
682,
12,
2704,
10688,
32,
8952,
34,
9334,
13751,
18,
1106,
16,
629,
1769,
4202,
5202,
18,
1289,
12,
23102,
12,
917,
16,
13743,
12,
917,
3631,
1417,
10019,
4202,
1417,
273,
3914,
12,
917,
16,
5202,
1769,
377,
202,
1305,
3456,
290,
273,
394,
11553,
1305,
3456,
67,
71,
12,
917,
16,
333,
7044,
16,
2943,
16,
9424,
16,
508,
16,
9079,
646,
1031,
16,
30300,
16,
604,
2016,
16,
1417,
1769,
4202,
290,
273,
261,
1305,
3456,
13,
82,
18,
408,
12,
408,
1733,
7675,
408,
1305,
3456,
10663,
4202,
290,
273,
261,
1305,
3456,
13,
82,
18,
3771,
12,
3771,
1733,
7675,
3771,
1305,
3456,
10663,
4202,
327,
290,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2985,
3456,
11553,
1305,
3456,
12,
2555,
949,
16,
4019,
1662,
4742,
333,
7044,
16,
10104,
2943,
16,
5411,
1412,
907,
9424,
16,
514,
508,
16,
5411,
987,
646,
1031,
16,
8074,
30300,
16,
987,
604,
2016,
16,
3914,
1417,
13,
282,
288,
4202,
2943,
273,
2943,
18,
8507,
12,
60,
2163,
5094,
18,
28146,
2871,
2934,
542,
12,
60,
2163,
5094,
18,
22219,
1769,
4202,
987,
32,
8952,
34,
5202,
273,
394,
13833,
682,
12,
2704,
10688,
32,
8952,
34,
9334,
13751,
18,
1106,
16,
629,
1769,
4202,
5202,
18,
1289,
12,
23102,
12,
917,
16,
13743,
12,
917,
3631,
1417,
10019,
4202,
1417,
273,
3914,
12,
917,
16,
5202,
1769,
377,
202,
1305,
3456,
290,
2
] |
void handleCharacters(XMLString text) {
|
XMLString handleCharacters(XMLString text) {
|
void handleCharacters(XMLString text) { if (fSkipValidationDepth >= 0) return; // Note: data in EntityRef and CDATA is normalized as well // if whitespace == -1 skip normalization, because it is a complexType // or a union type. if (fNormalizeData && fWhiteSpace != -1 && fWhiteSpace != XSSimpleType.WS_PRESERVE) { // normalize data normalizeWhitespace(text, fWhiteSpace == XSSimpleType.WS_COLLAPSE); text = fNormalizedStr; } fBuffer.append(text.ch, text.offset, text.length); // When it's a complex type with element-only content, we need to // find out whether the content contains any non-whitespace character. if (fCurrentType != null && fCurrentType.getTypeCategory() == XSTypeDecl.COMPLEX_TYPE) { XSComplexTypeDecl ctype = (XSComplexTypeDecl)fCurrentType; if (ctype.fContentType == XSComplexTypeDecl.CONTENTTYPE_ELEMENT) { // data outside of element content for (int i=text.offset; i< text.offset+text.length; i++) { if (!XMLChar.isSpace(text.ch[i])) { fSawCharacters = true; break; } } } } // we saw first chunk of characters fFirstChunk = false; } // handleCharacters(XMLString)
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ec1539e704414c8204dc22327f550dc2ee4d8900/XMLSchemaValidator.java/buggy/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3167,
780,
1640,
11600,
12,
4201,
780,
977,
13,
288,
3639,
309,
261,
74,
6368,
4354,
6148,
1545,
374,
13,
5411,
327,
31,
3639,
368,
3609,
30,
501,
316,
3887,
1957,
471,
28294,
353,
5640,
487,
5492,
3639,
368,
309,
7983,
422,
300,
21,
2488,
13728,
16,
2724,
518,
353,
279,
7233,
559,
3639,
368,
578,
279,
7812,
618,
18,
3639,
309,
261,
74,
14380,
751,
597,
284,
23108,
480,
300,
21,
597,
284,
23108,
480,
1139,
1260,
2052,
559,
18,
2651,
67,
3670,
2123,
3412,
13,
288,
5411,
368,
3883,
501,
5411,
3883,
9431,
12,
955,
16,
284,
23108,
422,
1139,
1260,
2052,
559,
18,
2651,
67,
4935,
48,
2203,
1090,
1769,
5411,
977,
273,
284,
15577,
1585,
31,
3639,
289,
3639,
284,
1892,
18,
6923,
12,
955,
18,
343,
16,
977,
18,
3348,
16,
977,
18,
2469,
1769,
7734,
368,
5203,
518,
1807,
279,
7233,
618,
598,
930,
17,
3700,
913,
16,
732,
1608,
358,
3639,
368,
1104,
596,
2856,
326,
913,
1914,
1281,
1661,
17,
18777,
3351,
18,
3639,
309,
261,
74,
3935,
559,
480,
446,
597,
284,
3935,
559,
18,
588,
559,
4457,
1435,
422,
1139,
55,
559,
3456,
18,
10057,
21130,
67,
2399,
13,
288,
5411,
1139,
55,
12795,
559,
3456,
11920,
273,
261,
60,
55,
12795,
559,
3456,
13,
74,
3935,
559,
31,
5411,
309,
261,
12387,
18,
74,
8046,
422,
1139,
55,
12795,
559,
3456,
18,
6067,
1157,
30651,
67,
10976,
13,
288,
7734,
368,
501,
8220,
434,
930,
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,
3167,
780,
1640,
11600,
12,
4201,
780,
977,
13,
288,
3639,
309,
261,
74,
6368,
4354,
6148,
1545,
374,
13,
5411,
327,
31,
3639,
368,
3609,
30,
501,
316,
3887,
1957,
471,
28294,
353,
5640,
487,
5492,
3639,
368,
309,
7983,
422,
300,
21,
2488,
13728,
16,
2724,
518,
353,
279,
7233,
559,
3639,
368,
578,
279,
7812,
618,
18,
3639,
309,
261,
74,
14380,
751,
597,
284,
23108,
480,
300,
21,
597,
284,
23108,
480,
1139,
1260,
2052,
559,
18,
2651,
67,
3670,
2123,
3412,
13,
288,
5411,
368,
3883,
501,
5411,
3883,
9431,
12,
955,
16,
284,
23108,
422,
1139,
1260,
2052,
559,
18,
2651,
67,
4935,
48,
2203,
1090,
1769,
5411,
977,
273,
284,
15577,
2
] |
protected void checkForLegacySeismograms() { //this supports loading of classic seismogram datasets that were //created before dataset seismograms if(getDataSetSeismogramNames().length == 0) { String[] names = getSeismogramNames(); logger.info("No DataSetSeismograms in dataset "+getName()+", using legacy dataset option: creating DataSetSeismogram per LocalSeismogram. LS length="+names.length); for (int i = 0 ;i < names.length ;i++ ) { URL sacURL = getSeismogramURL(names[i]); if(sacURL != null) { DataSetSeismogram dsstemp = new URLDataSetSeismogram(sacURL, SeismogramFileTypes.SAC, this, names[i]); addDataSetSeismogram(dsstemp, new AuditInfo[0]); } } } }
|
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/3a9920fd2dcf2ce715f066aa45ab3d17b6c0f36e/XMLDataSet.java/clean/src/edu/sc/seis/fissuresUtil/xml/XMLDataSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
13855,
12235,
1761,
6228,
5553,
87,
1435,
288,
3639,
368,
2211,
6146,
7153,
434,
28937,
695,
6228,
5553,
11109,
716,
4591,
540,
368,
4824,
1865,
3709,
695,
6228,
5553,
87,
3639,
309,
12,
588,
13676,
1761,
6228,
5553,
1557,
7675,
2469,
422,
374,
13,
288,
5411,
514,
8526,
1257,
273,
11979,
6228,
5553,
1557,
5621,
5411,
1194,
18,
1376,
2932,
2279,
14065,
1761,
6228,
5553,
87,
316,
3709,
13773,
17994,
1435,
15,
3113,
1450,
8866,
3709,
1456,
30,
4979,
14065,
1761,
6228,
5553,
1534,
3566,
1761,
6228,
5553,
18,
29204,
769,
1546,
15,
1973,
18,
2469,
1769,
5411,
364,
261,
474,
277,
273,
374,
274,
77,
411,
1257,
18,
2469,
274,
77,
9904,
262,
288,
7734,
1976,
20071,
1785,
273,
11979,
6228,
5553,
1785,
12,
1973,
63,
77,
19226,
7734,
309,
12,
87,
1077,
1785,
480,
446,
13,
288,
10792,
14065,
1761,
6228,
5553,
3780,
19781,
84,
273,
12900,
394,
1976,
13676,
1761,
6228,
5553,
12,
87,
1077,
1785,
16,
4766,
1171,
3265,
6228,
5553,
812,
2016,
18,
55,
2226,
16,
4766,
1171,
333,
16,
4766,
5375,
1257,
63,
77,
19226,
10792,
527,
13676,
1761,
6228,
5553,
12,
2377,
19781,
84,
16,
394,
12975,
966,
63,
20,
19226,
7734,
289,
5411,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
918,
13855,
12235,
1761,
6228,
5553,
87,
1435,
288,
3639,
368,
2211,
6146,
7153,
434,
28937,
695,
6228,
5553,
11109,
716,
4591,
540,
368,
4824,
1865,
3709,
695,
6228,
5553,
87,
3639,
309,
12,
588,
13676,
1761,
6228,
5553,
1557,
7675,
2469,
422,
374,
13,
288,
5411,
514,
8526,
1257,
273,
11979,
6228,
5553,
1557,
5621,
5411,
1194,
18,
1376,
2932,
2279,
14065,
1761,
6228,
5553,
87,
316,
3709,
13773,
17994,
1435,
15,
3113,
1450,
8866,
3709,
1456,
30,
4979,
14065,
1761,
6228,
5553,
1534,
3566,
1761,
6228,
5553,
18,
29204,
769,
1546,
15,
1973,
18,
2469,
1769,
5411,
364,
261,
474,
277,
273,
374,
274,
77,
411,
1257,
18,
2469,
274,
77,
9904,
262,
288,
7734,
2
] |
||
if (jj_3R_174()) return true;
|
if (jj_scan_token(COMMA)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_183()) return true;
|
final private boolean jj_3R_411() { if (jj_3R_174()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
24,
2499,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4208,
5535,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
309,
261,
78,
78,
67,
23,
54,
67,
31672,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
24,
2499,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
4208,
5535,
3719,
327,
638,
31,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
309,
261,
78,
78,
67,
23,
54,
67,
31672,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
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
] |
insertReferenceField(Chromosome.class, "subjects", Location.class, "subject", ChromosomeBand.class, "chromosome");
|
insertCollectionField(Gene.class, "objects", Location.class, "object", Chromosome.class, "genes", false); insertCollectionField(Transcript.class, "objects", Location.class, "object", Chromosome.class, "transcripts", false); insertCollectionField(Exon.class, "objects", Location.class, "object", Chromosome.class, "exons", false); insertCollectionField(ChromosomeBand.class, "subjects", Location.class, "subject", Chromosome.class, "chromosomeBands", false);
|
public void insertReferences() throws Exception { LOG.info("insertReferences stage 1"); // Transcript.exons / Exon.transcripts insertReferences(Transcript.class, Exon.class, RankedRelation.class, "exons"); insertReferences(Transcript.class, Exon.class, SimpleRelation.class, "exons"); // Intron.MRNAs / MRNA.introns insertReferences(MRNA.class, Intron.class, SimpleRelation.class, "introns"); insertReferences(Transcript.class, Exon.class, SimpleRelation.class, "exons"); LOG.info("insertReferences stage 2"); // Gene.transcript / Transcript.gene insertReferenceField(Gene.class, "subjects", SimpleRelation.class, "subject", Transcript.class, "gene"); LOG.info("insertReferences stage 3"); // Exon.chromosome / Chromosome.exons insertReferenceField(Chromosome.class, "subjects", Location.class, "subject", Exon.class, "chromosome"); LOG.info("insertReferences stage 4"); // ChromosomeBand.chromosome / Chromosome.bands insertReferenceField(Chromosome.class, "subjects", Location.class, "subject", ChromosomeBand.class, "chromosome"); LOG.info("insertReferences stage 5"); // Exon.gene / Gene.exons insertReferenceField(Gene.class, "transcripts", Transcript.class, "exons", Exon.class, "gene"); LOG.info("insertReferences stage 6"); // UTR.gene / Gene.UTRs insertReferenceField(Gene.class, "transcripts", MRNA.class, "UTRs", UTR.class, "gene"); // UTR.chromosome insertReferenceField(Chromosome.class, "subjects", Location.class, "subject", UTR.class, "chromosome"); LOG.info("insertReferences stage 7"); // Gene.chromosome / Chromosome.genes insertReferenceField(Chromosome.class, "exons", Exon.class, "gene", Gene.class, "chromosome"); LOG.info("insertReferences stage 8"); // Transcript.chromosome / Chromosome.transcripts insertReferenceField(Chromosome.class, "exons", Exon.class, "transcripts", Transcript.class, "chromosome"); LOG.info("insertReferences stage 9"); // Protein.genes / Gene.proteins insertCollectionField(Gene.class, "transcripts", Transcript.class, "protein", Protein.class, "genes", false); // TODO CDS.chromosome - currently missing from model //insertReferenceField(Chromosome.class, "subjects", Location.class, "subject", // CDS.class, "chromosome"); // CDS.gene / Gene.CDSs insertReferenceField(Gene.class, "transcripts", MRNA.class, "CDSs", CDS.class, "gene"); ObjectStore os = osw.getObjectStore(); if (os instanceof ObjectStoreInterMineImpl) { Database db = ((ObjectStoreInterMineImpl) os).getDatabase(); DatabaseUtil.analyse(db, false); } LOG.info("insertReferences stage 10"); // Protein.interactions insertReferences(Protein.class, ProteinInteraction.class, "subjects", "interactions"); LOG.info("insertReferences stage 11"); // Protein.interactions insertReferences(Protein.class, ProteinInteraction.class, "objects", "interactions"); if (os instanceof ObjectStoreInterMineImpl) { Database db = ((ObjectStoreInterMineImpl) os).getDatabase(); DatabaseUtil.analyse(db, false); } LOG.info("insertReferences stage 12"); insertGeneAnnotationReferences(); if (os instanceof ObjectStoreInterMineImpl) { Database db = ((ObjectStoreInterMineImpl) os).getDatabase(); DatabaseUtil.analyse(db, false); } LOG.info("insertReferences stage 13"); // Gene.GOTerms insertReferences(Gene.class, GOTerm.class, "GOTerms"); LOG.info("insertReferences stage 14"); // Gene.phenotypes insertReferences(Gene.class, Phenotype.class, "phenotypes"); if (os instanceof ObjectStoreInterMineImpl) { Database db = ((ObjectStoreInterMineImpl) os).getDatabase(); DatabaseUtil.analyse(db, false); } }
|
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/74c81990045d68ef6292d76e0facf9283752c87f/CreateReferences.java/buggy/flymine/model/genomic/src/java/org/flymine/postprocess/CreateReferences.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2243,
8221,
1435,
1216,
1185,
288,
3639,
2018,
18,
1376,
2932,
6387,
8221,
6009,
404,
8863,
3639,
368,
2604,
9118,
18,
338,
7008,
342,
1312,
265,
18,
2338,
28230,
3639,
2243,
8221,
12,
1429,
9118,
18,
1106,
16,
1312,
265,
18,
1106,
16,
534,
2304,
329,
3963,
18,
1106,
16,
315,
338,
7008,
8863,
3639,
2243,
8221,
12,
1429,
9118,
18,
1106,
16,
1312,
265,
18,
1106,
16,
4477,
3963,
18,
1106,
16,
315,
338,
7008,
8863,
3639,
368,
657,
313,
265,
18,
23464,
50,
1463,
342,
490,
29712,
18,
267,
313,
7008,
3639,
2243,
8221,
12,
23464,
11277,
18,
1106,
16,
657,
313,
265,
18,
1106,
16,
4477,
3963,
18,
1106,
16,
315,
267,
313,
7008,
8863,
3639,
2243,
8221,
12,
1429,
9118,
18,
1106,
16,
1312,
265,
18,
1106,
16,
4477,
3963,
18,
1106,
16,
315,
338,
7008,
8863,
3639,
2018,
18,
1376,
2932,
6387,
8221,
6009,
576,
8863,
3639,
368,
611,
4009,
18,
27257,
342,
2604,
9118,
18,
11857,
3639,
2243,
2404,
974,
12,
24442,
18,
1106,
16,
315,
7857,
87,
3113,
4477,
3963,
18,
1106,
16,
315,
7857,
3113,
11794,
2604,
9118,
18,
1106,
16,
315,
11857,
8863,
3639,
2018,
18,
1376,
2932,
6387,
8221,
6009,
890,
8863,
3639,
368,
1312,
265,
18,
16298,
16958,
342,
1680,
520,
16958,
18,
338,
7008,
3639,
2243,
2404,
974,
12,
30761,
16958,
18,
1106,
16,
315,
7857,
87,
3113,
7050,
18,
1106,
16,
315,
7857,
3113,
11794,
1312,
265,
18,
1106,
16,
315,
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,
2243,
8221,
1435,
1216,
1185,
288,
3639,
2018,
18,
1376,
2932,
6387,
8221,
6009,
404,
8863,
3639,
368,
2604,
9118,
18,
338,
7008,
342,
1312,
265,
18,
2338,
28230,
3639,
2243,
8221,
12,
1429,
9118,
18,
1106,
16,
1312,
265,
18,
1106,
16,
534,
2304,
329,
3963,
18,
1106,
16,
315,
338,
7008,
8863,
3639,
2243,
8221,
12,
1429,
9118,
18,
1106,
16,
1312,
265,
18,
1106,
16,
4477,
3963,
18,
1106,
16,
315,
338,
7008,
8863,
3639,
368,
657,
313,
265,
18,
23464,
50,
1463,
342,
490,
29712,
18,
267,
313,
7008,
3639,
2243,
8221,
12,
23464,
11277,
18,
1106,
16,
657,
313,
265,
18,
1106,
16,
4477,
3963,
18,
1106,
16,
315,
267,
313,
2
] |
return null;
|
public LeafElement findLeafElementAt(int offset) { synchronized (PsiLock.LOCK) { final CharTable table = SharedImplUtil.findCharTableByTree(this); TreeElement child = firstChild; while (child != null) { final int textLength = child.getTextLength(table); if (textLength > offset) { if (child instanceof ChameleonElement) { child = ChameleonTransforming.transform((ChameleonElement)child); continue; } return child.findLeafElementAt(offset); } offset -= textLength; child = child.getTreeNext(); } return null; } }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/618abf69beebe8ca5f0db1e24631b6f764e428b4/CompositeElement.java/buggy/source/com/intellij/psi/impl/source/tree/CompositeElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
23383,
1046,
1104,
9858,
1046,
861,
12,
474,
1384,
13,
288,
225,
3852,
261,
52,
7722,
2531,
18,
6589,
13,
288,
565,
727,
3703,
1388,
1014,
273,
10314,
2828,
1304,
18,
4720,
2156,
1388,
858,
2471,
12,
2211,
1769,
565,
4902,
1046,
1151,
273,
15070,
31,
565,
1323,
261,
3624,
480,
446,
13,
288,
1377,
727,
509,
977,
1782,
273,
1151,
18,
588,
1528,
1782,
12,
2121,
1769,
1377,
309,
261,
955,
1782,
405,
1384,
13,
288,
3639,
309,
261,
3624,
1276,
1680,
301,
6516,
265,
1046,
13,
288,
1850,
1151,
273,
1680,
301,
6516,
265,
4059,
310,
18,
6547,
12443,
782,
301,
6516,
265,
1046,
13,
3624,
1769,
3639,
1324,
31,
3639,
289,
3639,
327,
1151,
18,
4720,
9858,
1046,
861,
12,
3348,
1769,
1377,
289,
1377,
1384,
3947,
977,
1782,
31,
1377,
1151,
273,
1151,
18,
588,
2471,
2134,
5621,
565,
289,
377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
23383,
1046,
1104,
9858,
1046,
861,
12,
474,
1384,
13,
288,
225,
3852,
261,
52,
7722,
2531,
18,
6589,
13,
288,
565,
727,
3703,
1388,
1014,
273,
10314,
2828,
1304,
18,
4720,
2156,
1388,
858,
2471,
12,
2211,
1769,
565,
4902,
1046,
1151,
273,
15070,
31,
565,
1323,
261,
3624,
480,
446,
13,
288,
1377,
727,
509,
977,
1782,
273,
1151,
18,
588,
1528,
1782,
12,
2121,
1769,
1377,
309,
261,
955,
1782,
405,
1384,
13,
288,
3639,
309,
261,
3624,
1276,
1680,
301,
6516,
265,
1046,
13,
288,
1850,
1151,
273,
1680,
301,
6516,
265,
4059,
310,
18,
6547,
12443,
782,
301,
6516,
265,
1046,
13,
3624,
1769,
3639,
1324,
31,
3639,
289,
3639,
327,
1151,
2
] |
|
text.setText(new Integer(index).toString()+". ");
|
text.setText(new Integer(index).toString()+".");
|
private void handleElement(Element ele, boolean needEscape, HashMap cssStyles, IContent content, int index) { IStyle cssStyle = ( IStyle ) cssStyles.get( ele ); if ( cssStyle != null ) { if ( "none".equals( cssStyle.getDisplay() ) ) //$NON-NLS-1$ { //Check if the display mode is none. return; } } String tagName = ele.getTagName(); if ( tagName.toLowerCase().equals( "a" ) ) //$NON-NLS-1$ { IContainerContent container = new ContainerContent((ReportContent)content.getReportContent()); container.setParent(content);//FIXME addChild to replace? handleStyle(ele, cssStyles, container); ActionContent oldAction = action; handleAnchor( ele, container ); processNodes( ele, needEscape, cssStyles, container ); this.action = oldAction; } else if(tagName.toLowerCase().equals( "img" )) //$NON-NLS-1$ { outputImg( ele, cssStyles, content); } else if ( tagName.toLowerCase().equals( "br" ) ) //$NON-NLS-1$ { ILabelContent label = new LabelContent((ReportContent)content.getReportContent()); addChild(content, label); label.setText("\n"); //$NON-NLS-1$ StyleDeclaration inlineStyle = new StyleDeclaration(content.getCSSEngine()); inlineStyle.setProperty( IStyle.STYLE_DISPLAY, CSSValueConstants.INLINE_VALUE ); label.setInlineStyle( inlineStyle ); } else if (tagName.toLowerCase().equals("li") //$NON-NLS-1$ && ele.getParentNode().getNodeType() == Node.ELEMENT_NODE) { StyleDeclaration style = new StyleDeclaration(content.getCSSEngine()); style.setProperty( IStyle.STYLE_DISPLAY, CSSValueConstants.BLOCK_VALUE ); style.setProperty( IStyle.STYLE_VERTICAL_ALIGN, CSSValueConstants.MIDDLE_VALUE ); IContainerContent container = new ContainerContent((ReportContent)content.getReportContent()); container.setInlineStyle(style); addChild(content, container); handleStyle(ele, cssStyles, container); TextContent text = new TextContent((ReportContent)content.getReportContent()); addChild(container, text); if(ele.getParentNode().getNodeName().equals("ol")) //$NON-NLS-1$ { text.setText(new Integer(index).toString()+". "); //$NON-NLS-1$ } else if(ele.getParentNode().getNodeName().equals("ul")) //$NON-NLS-1$ { text.setText(" • " ); //$NON-NLS-1$ } style = new StyleDeclaration(content.getCSSEngine()); style.setProperty( IStyle.STYLE_DISPLAY, CSSValueConstants.INLINE_VALUE ); style.setProperty( IStyle.STYLE_VERTICAL_ALIGN, CSSValueConstants.TOP_VALUE ); text.setInlineStyle(style); IContainerContent childContainer = new ContainerContent((ReportContent)content.getReportContent()); addChild(container, childContainer); childContainer.setInlineStyle(style); processNodes( ele, needEscape, cssStyles, childContainer ); } else if (tagName.toLowerCase().equals("dd") || tagName.toLowerCase().equals("dt")) //$NON-NLS-1$ //$NON-NLS-2$ { IContainerContent container = new ContainerContent((ReportContent)content.getReportContent()); addChild(content, container); handleStyle(ele, cssStyles, container); if (tagName.toLowerCase().equals("dd")) //$NON-NLS-1$ { StyleDeclaration style = new StyleDeclaration(content.getCSSEngine()); style.setProperty( IStyle.STYLE_DISPLAY, CSSValueConstants.INLINE_VALUE ); style.setProperty( IStyle.STYLE_VERTICAL_ALIGN, CSSValueConstants.TOP_VALUE ); TextContent text = new TextContent((ReportContent) content .getReportContent()); addChild(content, text); if (ele.getParentNode().getNodeName().equals("dl")) //$NON-NLS-1$ { text.setText(""); //$NON-NLS-1$ } style.setTextIndent("3em"); //$NON-NLS-1$ text.setInlineStyle(style); IContainerContent childContainer = new ContainerContent((ReportContent)content.getReportContent()); childContainer.setInlineStyle(style); addChild(container, childContainer); processNodes( ele, needEscape, cssStyles, container ); } else { processNodes(ele, needEscape, cssStyles, container); } } else { IContainerContent container = new ContainerContent((ReportContent)content.getReportContent()); handleStyle(ele, cssStyles, container); if(htmlDisplayMode.contains(ele.getTagName())) { addChild(content, container); processNodes( ele, needEscape, cssStyles, container ); } else { if(inlineContainerStack.isEmpty( )) { container.setParent( content ); } else { container.setParent( ( IContent) inlineContainerStack.peek( )); } inlineContainerStack.push( container ); processNodes( ele, needEscape, cssStyles, content ); inlineContainerStack.pop( ); } } }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/a64cb17f890d20efd60c22e05d74c1dd60a69df0/HTML2Content.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/HTML2Content.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
1046,
12,
1046,
5043,
16,
1250,
1608,
8448,
16,
4317,
3747,
9725,
16,
467,
1350,
913,
16,
509,
770,
13,
202,
95,
202,
202,
45,
2885,
3747,
2885,
273,
261,
467,
2885,
262,
3747,
9725,
18,
588,
12,
5043,
11272,
202,
202,
430,
261,
3747,
2885,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
315,
6102,
9654,
14963,
12,
3747,
2885,
18,
588,
4236,
1435,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
95,
9506,
202,
759,
1564,
309,
326,
2562,
1965,
353,
6555,
18,
9506,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
9506,
202,
780,
7196,
273,
5043,
18,
588,
8520,
5621,
202,
202,
430,
261,
7196,
18,
869,
5630,
7675,
14963,
12,
315,
69,
6,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
95,
1082,
202,
45,
2170,
1350,
1478,
273,
394,
4039,
1350,
12443,
4820,
1350,
13,
1745,
18,
588,
4820,
1350,
10663,
1082,
202,
3782,
18,
542,
3054,
12,
1745,
1769,
759,
25810,
7384,
358,
1453,
35,
1082,
202,
4110,
2885,
12,
6516,
16,
3747,
9725,
16,
1478,
1769,
1082,
202,
1803,
1350,
1592,
1803,
273,
1301,
31,
1082,
202,
4110,
11605,
12,
5043,
16,
1478,
11272,
1082,
202,
2567,
3205,
12,
5043,
16,
1608,
8448,
16,
3747,
9725,
16,
1478,
11272,
1082,
202,
2211,
18,
1128,
273,
1592,
1803,
31,
202,
202,
97,
202,
202,
12107,
309,
12,
2692,
461,
18,
869,
5630,
7675,
14963,
12,
315,
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,
1640,
1046,
12,
1046,
5043,
16,
1250,
1608,
8448,
16,
4317,
3747,
9725,
16,
467,
1350,
913,
16,
509,
770,
13,
202,
95,
202,
202,
45,
2885,
3747,
2885,
273,
261,
467,
2885,
262,
3747,
9725,
18,
588,
12,
5043,
11272,
202,
202,
430,
261,
3747,
2885,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
315,
6102,
9654,
14963,
12,
3747,
2885,
18,
588,
4236,
1435,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
95,
9506,
202,
759,
1564,
309,
326,
2562,
1965,
353,
6555,
18,
9506,
202,
2463,
31,
1082,
202,
97,
202,
202,
97,
9506,
202,
780,
7196,
273,
5043,
18,
588,
8520,
5621,
202,
202,
430,
261,
2
] |
jj_la1[56] = jj_gen;
|
jj_la1[55] = jj_gen;
|
final public void LiteralWMContent(ParserBlockBuilder b) throws ParseException { Token t; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case QCHAR: t = jj_consume_token(QCHAR); b.addElement(t.image.substring(1)); break; case STUFF: case POUNDPOUND: case DOLLAR: case SLASH: case POUND: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: t = jj_consume_token(STUFF); break; case SLASH: t = jj_consume_token(SLASH); break; case POUND: t = jj_consume_token(POUND); break; case DOLLAR: t = jj_consume_token(DOLLAR); break; case POUNDPOUND: t = jj_consume_token(POUNDPOUND); break; default: jj_la1[55] = jj_gen; jj_consume_token(-1); throw new ParseException(); } b.addElement(t.image); break; default: jj_la1[56] = jj_gen; jj_consume_token(-1); throw new ParseException(); } }
|
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9cd8a2e9513b8b6713b9b8b25523a7b87ce463d3/WMParser_impl.java/buggy/webmacro/src/org/webmacro/parser/WMParser_impl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
14392,
25173,
1350,
12,
2678,
1768,
1263,
324,
13,
1216,
10616,
288,
225,
3155,
268,
31,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
565,
648,
2238,
7305,
30,
1377,
268,
273,
10684,
67,
21224,
67,
2316,
12,
53,
7305,
1769,
7734,
324,
18,
1289,
1046,
12,
88,
18,
2730,
18,
28023,
12,
21,
10019,
1377,
898,
31,
565,
648,
2347,
57,
2246,
30,
565,
648,
13803,
5240,
2419,
5240,
30,
565,
648,
463,
30922,
985,
30,
565,
648,
348,
16504,
30,
565,
648,
13803,
5240,
30,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
1377,
648,
2347,
57,
2246,
30,
3639,
268,
273,
10684,
67,
21224,
67,
2316,
12,
882,
57,
2246,
1769,
3639,
898,
31,
1377,
648,
348,
16504,
30,
3639,
268,
273,
10684,
67,
21224,
67,
2316,
12,
24079,
1769,
3639,
898,
31,
1377,
648,
13803,
5240,
30,
3639,
268,
273,
10684,
67,
21224,
67,
2316,
12,
2419,
5240,
1769,
3639,
898,
31,
1377,
648,
463,
30922,
985,
30,
3639,
268,
273,
10684,
67,
21224,
67,
2316,
12,
40,
30922,
985,
1769,
3639,
898,
31,
1377,
648,
13803,
5240,
2419,
5240,
30,
3639,
268,
273,
10684,
67,
21224,
67,
2316,
12,
2419,
5240,
2419,
5240,
1769,
3639,
898,
31,
1377,
805,
30,
3639,
10684,
67,
11821,
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,
727,
1071,
918,
14392,
25173,
1350,
12,
2678,
1768,
1263,
324,
13,
1216,
10616,
288,
225,
3155,
268,
31,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
565,
648,
2238,
7305,
30,
1377,
268,
273,
10684,
67,
21224,
67,
2316,
12,
53,
7305,
1769,
7734,
324,
18,
1289,
1046,
12,
88,
18,
2730,
18,
28023,
12,
21,
10019,
1377,
898,
31,
565,
648,
2347,
57,
2246,
30,
565,
648,
13803,
5240,
2419,
5240,
30,
565,
648,
463,
30922,
985,
30,
565,
648,
348,
16504,
30,
565,
648,
13803,
5240,
30,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
2
] |
String getPackageNameByDirectory(VirtualFile dir);
|
String getPackageNameByDirectory(@NotNull VirtualFile dir);
|
String getPackageNameByDirectory(VirtualFile dir); //Q: move to FileIndex?
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/1052b661d29f3f5b33c858932dce5d8777fab489/ProjectFileIndex.java/buggy/openapi/src/com/intellij/openapi/roots/ProjectFileIndex.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
514,
28951,
858,
2853,
26964,
5962,
7269,
812,
1577,
1769,
368,
53,
30,
3635,
358,
1387,
1016,
35,
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
] |
[
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
514,
28951,
858,
2853,
26964,
5962,
7269,
812,
1577,
1769,
368,
53,
30,
3635,
358,
1387,
1016,
35,
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
] |
throw new RubyNameException(getRuby(), "cannot remove " + name.toId() + " for " + toName());
|
throw new NameError(getRuby(), "cannot remove " + name.toId() + " for " + toName());
|
public RubyObject removeCvar(RubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.toId())) { throw new RubyNameException(getRuby(), "wrong class variable name " + name.toId()); } if (!isTaint() && getRuby().getSafeLevel() >= 4) { throw new RubySecurityException(getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } RubyObject value = (RubyObject) getInstanceVariables().remove(name.toId()); if (value != null) { return value; } if (isClassVarDefined(name.toId())) { throw new RubyNameException(getRuby(), "cannot remove " + name.toId() + " for " + toName()); } throw new RubyNameException(getRuby(), "class variable " + name.toId() + " not defined for " + toName()); }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/8140cac1b7c2375c549787852e38fa6c52b199df/RubyModule.java/clean/org/jruby/RubyModule.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1206,
39,
1401,
12,
54,
10340,
921,
508,
13,
288,
368,
24668,
5498,
692,
3639,
309,
16051,
548,
1304,
18,
291,
797,
3092,
12,
529,
18,
869,
548,
1435,
3719,
288,
5411,
604,
394,
19817,
26771,
12,
588,
54,
10340,
9334,
315,
21530,
667,
2190,
508,
315,
397,
508,
18,
869,
548,
10663,
3639,
289,
3639,
309,
16051,
291,
29048,
1435,
597,
4170,
10340,
7675,
588,
9890,
2355,
1435,
1545,
1059,
13,
288,
5411,
604,
394,
19817,
24918,
12,
588,
54,
10340,
9334,
315,
382,
8869,
30,
848,
1404,
1206,
667,
2190,
8863,
3639,
289,
3639,
309,
261,
291,
42,
9808,
10756,
288,
5411,
604,
394,
19817,
42,
9808,
503,
12,
588,
54,
10340,
9334,
315,
1106,
19,
2978,
8863,
3639,
289,
3639,
19817,
921,
460,
273,
261,
54,
10340,
921,
13,
3694,
6158,
7675,
4479,
12,
529,
18,
869,
548,
10663,
3639,
309,
261,
1132,
480,
446,
13,
288,
5411,
327,
460,
31,
3639,
289,
3639,
309,
261,
291,
797,
1537,
8116,
12,
529,
18,
869,
548,
1435,
3719,
288,
5411,
604,
394,
25473,
12,
588,
54,
10340,
9334,
315,
12892,
1206,
315,
397,
508,
18,
869,
548,
1435,
397,
315,
364,
315,
397,
358,
461,
10663,
3639,
289,
3639,
604,
394,
19817,
26771,
12,
588,
54,
10340,
9334,
315,
1106,
2190,
315,
397,
508,
18,
869,
548,
1435,
397,
315,
486,
2553,
364,
315,
397,
358,
461,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1206,
39,
1401,
12,
54,
10340,
921,
508,
13,
288,
368,
24668,
5498,
692,
3639,
309,
16051,
548,
1304,
18,
291,
797,
3092,
12,
529,
18,
869,
548,
1435,
3719,
288,
5411,
604,
394,
19817,
26771,
12,
588,
54,
10340,
9334,
315,
21530,
667,
2190,
508,
315,
397,
508,
18,
869,
548,
10663,
3639,
289,
3639,
309,
16051,
291,
29048,
1435,
597,
4170,
10340,
7675,
588,
9890,
2355,
1435,
1545,
1059,
13,
288,
5411,
604,
394,
19817,
24918,
12,
588,
54,
10340,
9334,
315,
382,
8869,
30,
848,
1404,
1206,
667,
2190,
8863,
3639,
289,
3639,
309,
261,
291,
42,
9808,
10756,
288,
5411,
604,
394,
19817,
42,
9808,
503,
12,
588,
54,
10340,
9334,
2
] |
byte[] bytes = (byte[]) images.get(no); int[] dest = new int[width * height];
|
byte[] b = new byte[1];
|
public byte[] openBytes(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (numFrames == 1) return legacy.openBytes(id, no); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } byte[] bytes = (byte[]) images.get(no); int[] dest = new int[width * height]; byte[] last = null; if (no > 0) last = openBytes(id, no - 1); if (lastDispose > 0) { if (lastDispose == 3) { // use image before last int n = numFrames - 2; if (n > 0) last = openBytes(id, no - 2); else last = null; } if (last != null) { int[] prev = new int[width * height]; for (int i=0; i<prev.length; i++) { byte[] s = new byte[3]; s[0] = last[i]; s[1] = last[i + prev.length]; s[2] = last[i + 2*prev.length]; prev[i] = DataTools.bytesToInt(s, false); } System.arraycopy(prev, 0, dest, 0, width * height); if ((lastDispose == 2) && (lastBgColor != 0)) { int rowStart = (int) lastRect.getY(); int rowEnd = (int) (rowStart + lastRect.getHeight()); int colStart = (int) lastRect.getX(); int colEnd = (int) (colStart + lastRect.getWidth()); for (int i=rowStart; i<rowEnd; i++) { for (int j=colStart; j<colEnd; j++) { dest[width * i + j] = lastBgColor; } } } } int pass = 1; int inc = 8; int iline = 0; for (int i=0; i<ih; i++) { int line = i; if (interlace) { if (iline >= ih) { pass++; switch (pass) { case 2: iline = 4; break; case 3: iline = 2; inc = 4; break; case 4: iline = 1; inc = 2; } } line = iline; iline += inc; } line += iy; if (line < height) { int k = line * width; int dx = k + ix; int dlim = dx + iw; if ((k + width) < dlim) dlim = k + width; int sx = i * iw; while (dx < dlim) { // map color and insert in destination int ndx = ((int) bytes[sx++]) & 0xff; dest[dx++] = act[ndx]; } } } } // convert int array to byte array if (separated) { byte[] b = new byte[dest.length]; for (int i=0; i<dest.length; i++) { b[i] = (byte) (dest[i] & (0xff0000 << (2 * (no % 3)) ) << 8*(no % 3)); } return b; } else { byte[] b = new byte[dest.length * 3]; for (int i=0; i<dest.length; i++) { b[i] = (byte) ((dest[i] & 0xff0000) << 16); b[i + dest.length] = (byte) ((dest[i] & 0xff00) << 8); b[i + 2*dest.length] = (byte) (dest[i] & 0xff); } return b; } }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/48b4cace5cc41c2e3fc60741baf90fe5dc874600/GIFReader.java/clean/loci/formats/in/GIFReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1160,
8526,
1696,
2160,
12,
780,
612,
16,
509,
1158,
13,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
309,
261,
2107,
15162,
422,
404,
13,
327,
8866,
18,
3190,
2160,
12,
350,
16,
1158,
1769,
565,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
1160,
8526,
1731,
273,
261,
7229,
63,
5717,
4602,
18,
588,
12,
2135,
1769,
565,
509,
8526,
1570,
273,
394,
509,
63,
2819,
380,
2072,
15533,
565,
1160,
8526,
1142,
273,
446,
31,
565,
309,
261,
2135,
405,
374,
13,
1142,
273,
1696,
2160,
12,
350,
16,
1158,
300,
404,
1769,
565,
309,
261,
2722,
1669,
4150,
405,
374,
13,
288,
1377,
309,
261,
2722,
1669,
4150,
422,
890,
13,
288,
368,
999,
1316,
1865,
1142,
3639,
509,
290,
273,
818,
15162,
300,
576,
31,
3639,
309,
261,
82,
405,
374,
13,
1142,
273,
1696,
2160,
12,
350,
16,
1158,
300,
576,
1769,
3639,
469,
1142,
273,
446,
31,
1377,
289,
1377,
309,
261,
2722,
480,
446,
13,
288,
3639,
509,
8526,
2807,
273,
394,
509,
63,
2819,
380,
2072,
15533,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
10001,
18,
2469,
31,
277,
27245,
288,
1850,
1160,
8526,
272,
273,
394,
1160,
63,
23,
15533,
1850,
272,
63,
20,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1160,
8526,
1696,
2160,
12,
780,
612,
16,
509,
1158,
13,
1216,
4077,
503,
16,
1860,
225,
288,
565,
309,
16051,
350,
18,
14963,
12,
2972,
548,
3719,
1208,
812,
12,
350,
1769,
565,
309,
261,
2107,
15162,
422,
404,
13,
327,
8866,
18,
3190,
2160,
12,
350,
16,
1158,
1769,
565,
309,
261,
2135,
411,
374,
747,
1158,
1545,
10567,
1380,
12,
350,
3719,
288,
1377,
604,
394,
4077,
503,
2932,
1941,
1316,
1300,
30,
315,
397,
1158,
1769,
565,
289,
565,
1160,
8526,
1731,
273,
261,
7229,
63,
5717,
4602,
18,
588,
12,
2135,
1769,
565,
509,
8526,
1570,
273,
394,
509,
63,
2819,
380,
2072,
15533,
565,
1160,
8526,
1142,
273,
446,
31,
565,
2
] |
{ throw wsException.getException();
|
{ UMOException umoException = ExceptionHelper.getRootMuleException(wsException.getException()); if(umoException.getCause()!=null) { throw umoException.getCause(); } else { throw umoException; }
|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { UMOMessageAdapter messageAdapter = receiver.getConnector().getMessageAdapter(args); messageAdapter.setProperty(MuleProperties.MULE_METHOD_PROPERTY, method); UMOMessage message = receiver.routeMessage(new MuleMessage(messageAdapter), synchronous); if (message != null) { UMOExceptionPayload wsException = message.getExceptionPayload(); if (wsException != null) { throw wsException.getException(); } return message.getPayload(); } else { return null; } }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/73070ab3f680d2c7ef97a0805d6c4ef32686a405/AxisServiceProxy.java/buggy/transports/axis/src/main/java/org/mule/providers/soap/axis/AxisServiceProxy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
4356,
12,
921,
2889,
16,
2985,
707,
16,
1033,
8526,
833,
13,
1216,
4206,
3639,
288,
5411,
587,
5980,
1079,
4216,
883,
4216,
273,
5971,
18,
588,
7487,
7675,
24906,
4216,
12,
1968,
1769,
5411,
883,
4216,
18,
542,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
5327,
67,
9900,
16,
707,
1769,
5411,
587,
5980,
1079,
883,
273,
5971,
18,
5547,
1079,
12,
2704,
490,
725,
1079,
12,
2150,
4216,
3631,
12209,
1769,
13491,
309,
261,
2150,
480,
446,
13,
5411,
288,
7734,
587,
5980,
503,
6110,
4945,
503,
273,
883,
18,
588,
503,
6110,
5621,
4766,
309,
261,
4749,
503,
480,
446,
13,
7734,
288,
10792,
604,
4945,
503,
18,
588,
503,
5621,
7734,
289,
5375,
327,
883,
18,
588,
6110,
5621,
5411,
289,
2398,
469,
5411,
288,
7734,
327,
446,
31,
5411,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
4356,
12,
921,
2889,
16,
2985,
707,
16,
1033,
8526,
833,
13,
1216,
4206,
3639,
288,
5411,
587,
5980,
1079,
4216,
883,
4216,
273,
5971,
18,
588,
7487,
7675,
24906,
4216,
12,
1968,
1769,
5411,
883,
4216,
18,
542,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
5327,
67,
9900,
16,
707,
1769,
5411,
587,
5980,
1079,
883,
273,
5971,
18,
5547,
1079,
12,
2704,
490,
725,
1079,
12,
2150,
4216,
3631,
12209,
1769,
13491,
309,
261,
2150,
480,
446,
13,
5411,
288,
7734,
587,
5980,
503,
6110,
4945,
503,
273,
883,
18,
588,
503,
6110,
5621,
4766,
309,
261,
4749,
503,
480,
446,
13,
7734,
288,
10792,
604,
4945,
503,
18,
588,
503,
5621,
2
] |
public synchronized void receive(ClientEvent ce) {
|
public void receive(ClientEvent ce) {
|
public synchronized void receive(ClientEvent ce) { if(finished) return; if(!(((verbosity & VERBOSITY_SPLITFILE_PROGRESS) == VERBOSITY_SPLITFILE_PROGRESS) && (ce instanceof SplitfileProgressEvent))) return; SimpleProgressMessage progress = new SimpleProgressMessage(identifier, (SplitfileProgressEvent)ce); trySendProgress(progress, null); }
|
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/30ad937435e0a871533e6523884264602ef0e8c8/ClientGet.java/buggy/src/freenet/node/fcp/ClientGet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
6798,
12,
1227,
1133,
5898,
13,
288,
202,
202,
430,
12,
13527,
13,
327,
31,
202,
202,
430,
12,
5,
12443,
12,
16629,
8807,
473,
26884,
67,
17482,
3776,
67,
24022,
13,
422,
26884,
67,
17482,
3776,
67,
24022,
13,
597,
9506,
202,
12,
311,
1276,
5385,
768,
5491,
1133,
20349,
1082,
202,
2463,
31,
202,
202,
5784,
5491,
1079,
4007,
273,
1875,
202,
2704,
4477,
5491,
1079,
12,
5644,
16,
261,
5521,
768,
5491,
1133,
13,
311,
1769,
202,
202,
698,
3826,
5491,
12,
8298,
16,
446,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
6798,
12,
1227,
1133,
5898,
13,
288,
202,
202,
430,
12,
13527,
13,
327,
31,
202,
202,
430,
12,
5,
12443,
12,
16629,
8807,
473,
26884,
67,
17482,
3776,
67,
24022,
13,
422,
26884,
67,
17482,
3776,
67,
24022,
13,
597,
9506,
202,
12,
311,
1276,
5385,
768,
5491,
1133,
20349,
1082,
202,
2463,
31,
202,
202,
5784,
5491,
1079,
4007,
273,
1875,
202,
2704,
4477,
5491,
1079,
12,
5644,
16,
261,
5521,
768,
5491,
1133,
13,
311,
1769,
202,
202,
698,
3826,
5491,
12,
8298,
16,
446,
1769,
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
] |
System.out.println(); System.out.println("Currency Data"); System.out.println(); compareSets("currencies from sup.data", currencyCodes, "valid currencies", validCurrencyCodes); Set both = new TreeSet(currencyCodes); both.addAll(validCurrencyCodes); for (Iterator it = both.iterator(); it.hasNext();) { String code = (String)it.next(); String englishName = english.getName(CLDRFile.CURRENCY_NAME, code, false); System.out.println( code + "\t" + englishName + "\t" + (validCurrencyCodes.contains(code) ? currencyCodes.contains(code) ? "" : "valid-only" : "supp-only") + "\t" + (unlimitedCurrencyCodes.contains(code) ? "" : "unused") ); }
|
System.out.println(); System.out.println("Currency Data"); System.out.println(); compareSets("currencies from sup.data", currencyCodes, "valid currencies", validCurrencyCodes); Set both = new TreeSet(currencyCodes); both.addAll(validCurrencyCodes); for (Iterator it = both.iterator(); it.hasNext();) { String code = (String) it.next(); String englishName = english.getName(CLDRFile.CURRENCY_NAME, code, false); System.out.println(code + "\t" + englishName + "\t" + (validCurrencyCodes.contains(code) ? currencyCodes.contains(code) ? "" : "valid-only" : "supp-only") + "\t" + (unlimitedCurrencyCodes.contains(code) ? "" : "unused"));
|
private void showCurrencies() { System.out.println(); System.out.println("Currency Data"); System.out.println(); compareSets("currencies from sup.data", currencyCodes, "valid currencies", validCurrencyCodes); Set both = new TreeSet(currencyCodes); both.addAll(validCurrencyCodes); for (Iterator it = both.iterator(); it.hasNext();) { String code = (String)it.next(); String englishName = english.getName(CLDRFile.CURRENCY_NAME, code, false); System.out.println( code + "\t" + englishName + "\t" + (validCurrencyCodes.contains(code) ? currencyCodes.contains(code) ? "" : "valid-only" : "supp-only") + "\t" + (unlimitedCurrencyCodes.contains(code) ? "" : "unused") ); } }
|
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/2f1f406f61a8c5d6c4d2b2ad371fcf79f3f0bf36/GenerateEnums.java/clean/tools/java/org/unicode/cldr/tool/GenerateEnums.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2405,
2408,
14695,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
7623,
1910,
8863,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
3400,
2785,
2932,
1397,
14695,
628,
1169,
18,
892,
3113,
5462,
6295,
16,
315,
877,
19239,
3113,
923,
7623,
6295,
1769,
3639,
1000,
3937,
273,
394,
19461,
12,
7095,
6295,
1769,
3639,
3937,
18,
1289,
1595,
12,
877,
7623,
6295,
1769,
3639,
364,
261,
3198,
518,
273,
3937,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
5411,
514,
981,
273,
261,
780,
13,
305,
18,
4285,
5621,
5411,
514,
26858,
461,
273,
26858,
18,
17994,
12,
5017,
6331,
812,
18,
7509,
25231,
67,
1985,
16,
981,
16,
629,
1769,
5411,
2332,
18,
659,
18,
8222,
12,
10792,
981,
10792,
397,
1548,
88,
6,
397,
26858,
461,
10792,
397,
1548,
88,
6,
397,
261,
877,
7623,
6295,
18,
12298,
12,
710,
13,
692,
5462,
6295,
18,
12298,
12,
710,
13,
692,
1408,
294,
315,
877,
17,
3700,
6,
294,
315,
2859,
84,
17,
3700,
7923,
10792,
397,
1548,
88,
6,
397,
261,
318,
21325,
7623,
6295,
18,
12298,
12,
710,
13,
692,
1408,
294,
315,
14375,
7923,
10792,
11272,
3639,
289,
5411,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2405,
2408,
14695,
1435,
288,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
7623,
1910,
8863,
3639,
2332,
18,
659,
18,
8222,
5621,
3639,
3400,
2785,
2932,
1397,
14695,
628,
1169,
18,
892,
3113,
5462,
6295,
16,
315,
877,
19239,
3113,
923,
7623,
6295,
1769,
3639,
1000,
3937,
273,
394,
19461,
12,
7095,
6295,
1769,
3639,
3937,
18,
1289,
1595,
12,
877,
7623,
6295,
1769,
3639,
364,
261,
3198,
518,
273,
3937,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
288,
5411,
514,
981,
273,
261,
780,
13,
305,
18,
4285,
5621,
5411,
514,
26858,
461,
273,
26858,
18,
17994,
12,
5017,
6331,
812,
18,
7509,
25231,
67,
1985,
2
] |
TypeCheck.inst.makeFlowInsensitiveChecks(). checkTypeDeclaration(this);
|
TypeCheck.inst.makeFlowInsensitiveChecks().checkTypeDeclaration( this);
|
public void typecheck() { if (this.state >= TypeSig.CHECKED) return; if (this.state < TypeSig.PREPPED) prep(); Info.out("[typechecking " + this + "]"); if (((rcc.tc.PrepTypeDeclaration)rcc.tc.PrepTypeDeclaration.getInst()).hasParameters(this)) { Info.out("[creating default instantiation for " + this + "]"); TypeSig defaultInst = FlowInsensitiveChecks.defaultInstantiation(this); defaultInst.state = PARSED; defaultInst.prep(); TypeCheck.inst.makeFlowInsensitiveChecks(). checkTypeDeclaration(defaultInst); defaultInst.state = CHECKED; defaultInstantiationDecoration.set(this, defaultInst); } else { TypeCheck.inst.makeFlowInsensitiveChecks(). checkTypeDeclaration(this); } // FlowSensitiveChecks.checkTypeDeclaration(this); this.state = TypeSig.CHECKED; }
|
46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/88c3a23ce6920080a820fcffe73c2469f7571ad9/TypeSig.java/clean/src/escjava/trunk/ESCTools/Rcc/java/rcc/tc/TypeSig.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
618,
1893,
1435,
288,
3639,
309,
261,
2211,
18,
2019,
1545,
1412,
8267,
18,
10687,
2056,
13,
5411,
327,
31,
3639,
309,
261,
2211,
18,
2019,
411,
1412,
8267,
18,
3670,
52,
12120,
13,
5411,
13237,
5621,
3639,
3807,
18,
659,
2932,
63,
723,
24609,
315,
397,
333,
397,
9870,
1769,
3639,
309,
261,
12443,
86,
952,
18,
5111,
18,
15543,
559,
6094,
13,
86,
952,
18,
5111,
18,
15543,
559,
6094,
18,
588,
10773,
1435,
2934,
5332,
2402,
12,
2211,
3719,
288,
5411,
3807,
18,
659,
2932,
63,
23799,
805,
28380,
364,
315,
397,
333,
397,
9870,
1769,
5411,
1412,
8267,
805,
10773,
273,
7734,
9473,
21931,
4081,
18,
1886,
10675,
7072,
12,
2211,
1769,
7734,
805,
10773,
18,
2019,
273,
3939,
18204,
31,
5411,
805,
10773,
18,
19109,
5621,
5411,
1412,
1564,
18,
8591,
18,
6540,
5249,
21931,
4081,
7675,
7734,
23008,
6094,
12,
1886,
10773,
1769,
5411,
805,
10773,
18,
2019,
273,
14565,
2056,
31,
5411,
805,
10675,
7072,
7859,
367,
18,
542,
12,
2211,
16,
805,
10773,
1769,
3639,
289,
469,
288,
5411,
1412,
1564,
18,
8591,
18,
6540,
5249,
21931,
4081,
7675,
7734,
23008,
6094,
12,
2211,
1769,
3639,
289,
3639,
368,
9473,
14220,
4081,
18,
1893,
559,
6094,
12,
2211,
1769,
3639,
333,
18,
2019,
273,
1412,
8267,
18,
10687,
2056,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
618,
1893,
1435,
288,
3639,
309,
261,
2211,
18,
2019,
1545,
1412,
8267,
18,
10687,
2056,
13,
5411,
327,
31,
3639,
309,
261,
2211,
18,
2019,
411,
1412,
8267,
18,
3670,
52,
12120,
13,
5411,
13237,
5621,
3639,
3807,
18,
659,
2932,
63,
723,
24609,
315,
397,
333,
397,
9870,
1769,
3639,
309,
261,
12443,
86,
952,
18,
5111,
18,
15543,
559,
6094,
13,
86,
952,
18,
5111,
18,
15543,
559,
6094,
18,
588,
10773,
1435,
2934,
5332,
2402,
12,
2211,
3719,
288,
5411,
3807,
18,
659,
2932,
63,
23799,
805,
28380,
364,
315,
397,
333,
397,
9870,
1769,
5411,
1412,
8267,
805,
10773,
273,
7734,
9473,
21931,
4081,
18,
1886,
10675,
7072,
12,
2211,
1769,
2
] |
throws IOException;
|
throws TaskException, IOException;
|
void setProcessOutputStream( InputStream is ) throws IOException;
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/1dc954f3a51bf0c5adff222d717d04c08f4bed4e/ExecuteStreamHandler.java/clean/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/ExecuteStreamHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
444,
2227,
4632,
12,
5037,
353,
262,
3639,
1216,
1860,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
918,
444,
2227,
4632,
12,
5037,
353,
262,
3639,
1216,
1860,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MessageTemplate msg = new ACLMessage();
|
ACLMessage msg = allWildCard();
|
public static MessageTemplate MatchEnvelope(String value) { MessageTemplate msg = new ACLMessage(); msg.setEnvelope(value); return new MessageTemplate(msg); }
|
5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/bba7dc3def8ecd7887b926fbe328a9e97082b3d5/MessageTemplate.java/clean/src/jade/lang/acl/MessageTemplate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2350,
2283,
4639,
10862,
12,
780,
460,
13,
288,
565,
10098,
1079,
1234,
273,
777,
59,
545,
6415,
5621,
565,
1234,
18,
542,
10862,
12,
1132,
1769,
565,
327,
394,
2350,
2283,
12,
3576,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2350,
2283,
4639,
10862,
12,
780,
460,
13,
288,
565,
10098,
1079,
1234,
273,
777,
59,
545,
6415,
5621,
565,
1234,
18,
542,
10862,
12,
1132,
1769,
565,
327,
394,
2350,
2283,
12,
3576,
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
] |
initSettings(database, wChain); wChain.checkForExceptions();
|
private void logon(String database, String macAddress) throws SQLException, TdsUnknownPacketSubType, java.io.IOException, TdsException { final byte pad = (byte) 0; final byte[] empty = new byte[0]; try { // Added 2000-06-07. if (tdsVer == Tds.TDS70) { send70Login(database, macAddress); database = ""; } else { comm.startPacket(TdsComm.LOGON); // hostname (offset0) // comm.appendString("TOLEDO", 30, (byte)0); byte[] tmp = encoder.getBytes(getClientName()); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // username (offset 31 0x1f) tmp = encoder.getBytes(user); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // password (offset 62 0x3e) tmp = encoder.getBytes(password); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // hostproc (offset 93 0x5d) tmp = encoder.getBytes("00000116"); comm.appendBytes(tmp, 8, pad); // unused (offset 109 0x6d) comm.appendBytes(empty, (30 - 14), pad); // apptype (offset ) comm.appendByte((byte) 0x0); comm.appendByte((byte) 0xA0); comm.appendByte((byte) 0x24); comm.appendByte((byte) 0xCC); comm.appendByte((byte) 0x50); comm.appendByte((byte) 0x12); // hostproc length (offset ) comm.appendByte((byte) 8); // type of int2 comm.appendByte((byte) 3); // type of int4 comm.appendByte((byte) 1); // type of char comm.appendByte((byte) 6); // type of flt comm.appendByte((byte) 10); // type of date comm.appendByte((byte) 9); // notify of use db comm.appendByte((byte) 1); // disallow dump/load and bulk insert comm.appendByte((byte) 1); // sql interface type comm.appendByte((byte) 0); // type of network connection comm.appendByte((byte) 0); // spare[7] comm.appendBytes(empty, 7, pad); // appname tmp = encoder.getBytes(appName); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // server name tmp = encoder.getBytes(serverName); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // remote passwords comm.appendBytes(empty, 2, pad); tmp = encoder.getBytes(password); comm.appendBytes(tmp, 253, pad); comm.appendByte((byte) (tmp.length < 253 ? tmp.length + 2 : 253 + 2)); // tds version comm.appendByte((byte) 4); comm.appendByte((byte) 2); comm.appendByte((byte) 0); comm.appendByte((byte) 0); // prog name tmp = encoder.getBytes(progName); comm.appendBytes(tmp, 10, pad); comm.appendByte((byte) (tmp.length < 10 ? tmp.length : 10)); // prog version comm.appendByte((byte) 6); // Tell the server we can handle SQLServer version 6 comm.appendByte((byte) 0); // Send zero to tell the server we can't handle any other version comm.appendByte((byte) 0); comm.appendByte((byte) 0); // auto convert short comm.appendByte((byte) 0); // type of flt4 comm.appendByte((byte) 0x0D); // type of date4 comm.appendByte((byte) 0x11); // language tmp = encoder.getBytes("us_english"); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // notify on lang change comm.appendByte((byte) 1); // security label hierachy comm.appendShort((short) 0); // security components comm.appendBytes(empty, 8, pad); // security spare comm.appendShort((short) 0); // security login role comm.appendByte((byte) 0); // charset tmp = encoder.getBytes(charset); comm.appendBytes(tmp, 30, pad); comm.appendByte((byte) (tmp.length < 30 ? tmp.length : 30)); // notify on charset change comm.appendByte((byte) 1); // length of tds packets tmp = encoder.getBytes("512"); comm.appendBytes(tmp, 6, pad); comm.appendByte((byte) 3); // pad out to a longword comm.appendBytes(empty, 8, pad); } moreResults = true; comm.sendPacket(); } finally { comm.packetType = 0; } final SQLWarningChain wChain = new SQLWarningChain(); // Get the reply to the logon packet. while (moreResults) { final PacketResult res = processSubPacket(); if (res instanceof PacketMsgResult) { wChain.addOrReturn((PacketMsgResult) res); } // XXX Should really process some more types of packets. //mdb: handle ntlm challenge by sending a response... if (res instanceof PacketAuthTokenResult) { sendNtlmChallengeResponse((PacketAuthTokenResult) res); } } wChain.checkForExceptions(); // XXX Should we move this to the Connection class? initSettings(database, wChain); wChain.checkForExceptions(); }
|
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/a4e58a1f746332452b934163d1eb35cfed6964a9/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
613,
265,
12,
780,
2063,
16,
514,
5318,
1887,
13,
5411,
1216,
6483,
16,
399,
2377,
4874,
6667,
30511,
16,
5411,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
288,
3639,
727,
1160,
4627,
273,
261,
7229,
13,
374,
31,
3639,
727,
1160,
8526,
1008,
273,
394,
1160,
63,
20,
15533,
3639,
775,
288,
5411,
368,
25808,
16291,
17,
7677,
17,
8642,
18,
5411,
309,
261,
88,
2377,
3945,
422,
399,
2377,
18,
56,
3948,
7301,
13,
288,
7734,
1366,
7301,
5358,
12,
6231,
16,
5318,
1887,
1769,
7734,
2063,
273,
1408,
31,
5411,
289,
469,
288,
7734,
1543,
18,
1937,
6667,
12,
56,
2377,
12136,
18,
4842,
673,
1769,
7734,
368,
5199,
225,
261,
3348,
20,
13,
7734,
368,
1543,
18,
6923,
780,
2932,
4296,
900,
3191,
3113,
5196,
16,
261,
7229,
13,
20,
1769,
7734,
1160,
8526,
1853,
273,
7261,
18,
588,
2160,
12,
588,
1227,
461,
10663,
7734,
1543,
18,
6923,
2160,
12,
5645,
16,
5196,
16,
4627,
1769,
7734,
1543,
18,
6923,
3216,
12443,
7229,
13,
261,
5645,
18,
2469,
411,
5196,
692,
1853,
18,
2469,
294,
5196,
10019,
7734,
368,
2718,
261,
3348,
8231,
374,
92,
21,
74,
13,
7734,
1853,
273,
7261,
18,
588,
2160,
12,
1355,
1769,
7734,
1543,
18,
6923,
2160,
12,
5645,
16,
5196,
16,
4627,
1769,
7734,
1543,
18,
6923,
3216,
12443,
7229,
13,
261,
5645,
18,
2469,
411,
5196,
692,
1853,
18,
2469,
294,
5196,
10019,
7734,
368,
2201,
261,
3348,
22684,
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,
613,
265,
12,
780,
2063,
16,
514,
5318,
1887,
13,
5411,
1216,
6483,
16,
399,
2377,
4874,
6667,
30511,
16,
5411,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
288,
3639,
727,
1160,
4627,
273,
261,
7229,
13,
374,
31,
3639,
727,
1160,
8526,
1008,
273,
394,
1160,
63,
20,
15533,
3639,
775,
288,
5411,
368,
25808,
16291,
17,
7677,
17,
8642,
18,
5411,
309,
261,
88,
2377,
3945,
422,
399,
2377,
18,
56,
3948,
7301,
13,
288,
7734,
1366,
7301,
5358,
12,
6231,
16,
5318,
1887,
1769,
7734,
2063,
273,
1408,
31,
5411,
289,
469,
288,
7734,
1543,
18,
1937,
6667,
12,
56,
2377,
12136,
18,
4842,
673,
1769,
7734,
368,
5199,
225,
261,
2
] |
|
cl.loadClass( "org.codehaus.groovy.grails.domain.RelationshipsTest" ); cl.loadClass( "org.codehaus.groovy.grails.domain.Test1" ); cl.loadClass( "org.codehaus.groovy.grails.domain.Test2" );
|
protected void onSetUp() throws Exception { Thread.currentThread().setContextClassLoader(cl); cl.loadClass( "org.codehaus.groovy.grails.domain.RelationshipsTest" ); cl.loadClass( "org.codehaus.groovy.grails.domain.Test1" ); cl.loadClass( "org.codehaus.groovy.grails.domain.Test2" ); Class[] loadedClasses = cl.getLoadedClasses(); grailsApplication = new DefaultGrailsApplication(loadedClasses,cl); DefaultGrailsDomainConfiguration config = new DefaultGrailsDomainConfiguration(); config.setGrailsApplication(this.grailsApplication); Properties props = new Properties(); props.put("hibernate.connection.username","sa"); props.put("hibernate.connection.password",""); props.put("hibernate.connection.url","jdbc:hsqldb:mem:grailsDB"); props.put("hibernate.connection.driver_class","org.hsqldb.jdbcDriver"); props.put("hibernate.dialect","org.hibernate.dialect.HSQLDialect"); props.put("hibernate.hbm2ddl.auto","create-drop"); //props.put("hibernate.hbm2ddl.auto","update"); config.setProperties(props); //originalClassLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(this.cl); this.sessionFactory = config.buildSessionFactory(); if(!TransactionSynchronizationManager.hasResource(this.sessionFactory)) { Session hibSession = this.sessionFactory.openSession(); TransactionSynchronizationManager.bindResource(this.sessionFactory, new SessionHolder(hibSession)); } }
|
6460 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6460/a5c9dcc1f634b2b34633f99a226b7a489931c458/GrailsHibernateConfigurationTests.java/clean/test/persistence/org/codehaus/groovy/grails/orm/hibernate/GrailsHibernateConfigurationTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
603,
694,
1211,
1435,
1216,
1185,
288,
202,
202,
3830,
18,
2972,
3830,
7675,
542,
1042,
7805,
12,
830,
1769,
9506,
202,
830,
18,
945,
797,
12,
315,
3341,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
4308,
18,
17185,
4709,
6,
11272,
202,
202,
830,
18,
945,
797,
12,
315,
3341,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
4308,
18,
4709,
21,
6,
11272,
202,
202,
830,
18,
945,
797,
12,
315,
3341,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
4308,
18,
4709,
22,
6,
11272,
9506,
202,
797,
8526,
4203,
4818,
273,
927,
18,
588,
8835,
4818,
5621,
202,
202,
2752,
14573,
3208,
273,
394,
2989,
14571,
14573,
3208,
12,
4230,
4818,
16,
830,
1769,
9506,
202,
1868,
14571,
14573,
3748,
1750,
642,
273,
394,
2989,
14571,
14573,
3748,
1750,
5621,
202,
202,
1425,
18,
542,
14571,
14573,
3208,
12,
2211,
18,
2752,
14573,
3208,
1769,
202,
202,
2297,
3458,
273,
394,
6183,
5621,
202,
202,
9693,
18,
458,
2932,
15769,
22828,
18,
4071,
18,
5053,
15937,
13098,
8863,
202,
202,
9693,
18,
458,
2932,
15769,
22828,
18,
4071,
18,
3664,
3113,
3660,
1769,
202,
202,
9693,
18,
458,
2932,
15769,
22828,
18,
4071,
18,
718,
15937,
24687,
30,
4487,
1217,
1966,
30,
3917,
30,
2752,
14573,
2290,
8863,
202,
202,
9693,
18,
458,
2932,
15769,
22828,
18,
4071,
18,
7407,
67,
1106,
15937,
3341,
18,
4487,
1217,
1966,
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,
1117,
918,
603,
694,
1211,
1435,
1216,
1185,
288,
202,
202,
3830,
18,
2972,
3830,
7675,
542,
1042,
7805,
12,
830,
1769,
9506,
202,
830,
18,
945,
797,
12,
315,
3341,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
4308,
18,
17185,
4709,
6,
11272,
202,
202,
830,
18,
945,
797,
12,
315,
3341,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
4308,
18,
4709,
21,
6,
11272,
202,
202,
830,
18,
945,
797,
12,
315,
3341,
18,
710,
3395,
407,
18,
75,
12859,
18,
2752,
14573,
18,
4308,
18,
4709,
22,
6,
11272,
9506,
202,
797,
8526,
4203,
4818,
273,
927,
18,
588,
8835,
4818,
5621,
202,
202,
2752,
14573,
2
] |
|
/* * Imitate perl's feature of including parenthesized substrings * that matched part of the delimiter in the new array, after the * split substring that was delimited. */
|
/* * Imitate perl's feature of including parenthesized substrings * that matched part of the delimiter in the new array, after the * split substring that was delimited. */
|
public static Object jsFunction_split(Context cx, Scriptable thisObj, Object[] args, Function funObj) { String target = ScriptRuntime.toString(thisObj); // create an empty Array to return; Scriptable scope = getTopLevelScope(funObj); Scriptable result = ScriptRuntime.newObject(cx, scope, "Array", null); // return an array consisting of the target if no separator given // don't check against undefined, because we want // 'fooundefinedbar'.split(void 0) to split to ['foo', 'bar'] if (args.length < 1) { result.put(0, result, target); return result; } // Use the second argument as the split limit, if given. boolean limited = (args.length > 1) && (args[1] != Undefined.instance); long limit = 0; // Initialize to avoid warning. if (limited) { /* Clamp limit between 0 and 1 + string length. */ limit = ScriptRuntime.toUint32(args[1]); if (limit > target.length()) limit = 1 + target.length(); } String separator = null; int[] matchlen = { 0 }; Object re = null; RegExpProxy reProxy = cx.getRegExpProxy(); if (reProxy != null && reProxy.isRegExp(args[0])) { re = args[0]; } else { separator = ScriptRuntime.toString(args[0]); matchlen[0] = separator.length(); } // split target with separator or re int[] ip = { 0 }; int match; int len = 0; boolean[] matched = { false }; String[][] parens = { null }; while ((match = find_split(funObj, target, separator, re, ip, matchlen, matched, parens)) >= 0) { if ((limited && len >= limit) || (match > target.length())) break; String substr; if (target.length() == 0) substr = target; else substr = target.substring(ip[0], match); result.put(len, result, substr); len++; /* * Imitate perl's feature of including parenthesized substrings * that matched part of the delimiter in the new array, after the * split substring that was delimited. */ if (re != null && matched[0] == true) { int size = parens[0].length; for (int num = 0; num < size; num++) { if (limited && len >= limit) break; result.put(len, result, parens[0][num]); len++; } matched[0] = false; } ip[0] = match + matchlen[0]; if (cx.getLanguageVersion() < Context.VERSION_1_3 && cx.getLanguageVersion() != Context.VERSION_DEFAULT) { /* * Deviate from ECMA to imitate Perl, which omits a final * split unless a limit argument is given and big enough. */ if (!limited && ip[0] == target.length()) break; } } return result; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeString.java/buggy/js/rhino/org/mozilla/javascript/NativeString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
4939,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
514,
1018,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
368,
752,
392,
1008,
1510,
358,
327,
31,
3639,
22780,
2146,
273,
13729,
2355,
3876,
12,
12125,
2675,
1769,
3639,
22780,
563,
273,
7739,
5576,
18,
2704,
921,
12,
71,
92,
16,
2146,
16,
315,
1076,
3113,
446,
1769,
3639,
368,
327,
392,
526,
23570,
434,
326,
1018,
309,
1158,
4182,
864,
3639,
368,
2727,
1404,
866,
5314,
3109,
16,
2724,
732,
2545,
3639,
368,
296,
617,
465,
2178,
3215,
10332,
4939,
12,
6459,
374,
13,
358,
1416,
358,
10228,
11351,
2187,
296,
3215,
3546,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
563,
18,
458,
12,
20,
16,
563,
16,
1018,
1769,
5411,
327,
563,
31,
3639,
289,
3639,
368,
2672,
326,
2205,
1237,
487,
326,
1416,
1800,
16,
309,
864,
18,
3639,
1250,
13594,
273,
261,
1968,
18,
2469,
405,
404,
13,
597,
261,
1968,
63,
21,
65,
480,
22243,
18,
1336,
1769,
3639,
1525,
1800,
273,
374,
31,
225,
368,
9190,
358,
4543,
3436,
18,
3639,
309,
261,
21325,
13,
288,
5411,
1748,
3905,
931,
1800,
3086,
374,
471,
404,
397,
533,
769,
18,
1195,
5411,
1800,
273,
7739,
5576,
18,
869,
5487,
1578,
12,
1968,
63,
21,
19226,
5411,
309,
261,
3595,
405,
1018,
18,
2469,
10756,
7734,
1800,
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,
1033,
3828,
2083,
67,
4939,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
514,
1018,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
368,
752,
392,
1008,
1510,
358,
327,
31,
3639,
22780,
2146,
273,
13729,
2355,
3876,
12,
12125,
2675,
1769,
3639,
22780,
563,
273,
7739,
5576,
18,
2704,
921,
12,
71,
92,
16,
2146,
16,
315,
1076,
3113,
446,
1769,
3639,
368,
327,
392,
526,
23570,
434,
326,
1018,
309,
1158,
4182,
864,
3639,
368,
2727,
1404,
866,
5314,
3109,
16,
2724,
732,
2545,
3639,
368,
296,
617,
465,
2178,
3215,
10332,
4939,
12,
6459,
374,
13,
358,
1416,
358,
2
] |
HttpServletRequest request = (HttpServletRequest) runOptions .getOption( InputOptions.OPT_REQUEST ); BirtUtility.addTask( request, task );
|
public Collection getParameterSelectionList( IViewerReportDesignHandle design, InputOptions runOptions, String paramName ) throws ReportServiceException { IGetParameterDefinitionTask task = null; try { task = getParameterDefinitionTask( design, runOptions ); if ( task != null ) { ViewerAttributeBean bean = getViewerAttrBean( runOptions ); if ( bean != null ) task.setParameterValues( bean.getParameters( ) ); // Add task into session HttpServletRequest request = (HttpServletRequest) runOptions .getOption( InputOptions.OPT_REQUEST ); BirtUtility.addTask( request, task ); Collection selectionList = task.getSelectionList( paramName ); return convertEngineParameterSelectionChoice( selectionList ); } } finally { if ( task != null ) task.close( ); } return null; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/99eb5087d9defa2d0318860760bde178159861b9/BirtViewerReportService.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
5575,
6233,
682,
12,
1082,
202,
45,
18415,
4820,
15478,
3259,
8281,
16,
2741,
1320,
1086,
1320,
16,
1082,
202,
780,
11466,
262,
1216,
8706,
15133,
202,
95,
202,
202,
45,
967,
1662,
1852,
2174,
1562,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
4146,
273,
5575,
1852,
2174,
12,
8281,
16,
1086,
1320,
11272,
1082,
202,
430,
261,
1562,
480,
446,
262,
1082,
202,
95,
9506,
202,
18415,
1499,
3381,
3931,
273,
8893,
264,
3843,
3381,
12,
1086,
1320,
11272,
9506,
202,
430,
261,
3931,
480,
446,
262,
6862,
202,
4146,
18,
542,
1662,
1972,
12,
3931,
18,
588,
2402,
12,
262,
11272,
9506,
202,
759,
1436,
1562,
1368,
1339,
9506,
202,
2940,
18572,
590,
273,
261,
2940,
18572,
13,
1086,
1320,
25083,
202,
18,
588,
1895,
12,
2741,
1320,
18,
15620,
67,
5519,
11272,
9506,
202,
38,
2714,
6497,
18,
1289,
2174,
12,
590,
16,
1562,
11272,
9506,
202,
2532,
4421,
682,
273,
1562,
18,
588,
6233,
682,
12,
11466,
11272,
9506,
202,
2463,
1765,
4410,
1662,
6233,
10538,
12,
4421,
682,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
23417,
202,
202,
95,
1082,
202,
430,
261,
1562,
480,
446,
262,
9506,
202,
4146,
18,
4412,
12,
11272,
202,
202,
97,
202,
202,
2463,
446,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
5575,
6233,
682,
12,
1082,
202,
45,
18415,
4820,
15478,
3259,
8281,
16,
2741,
1320,
1086,
1320,
16,
1082,
202,
780,
11466,
262,
1216,
8706,
15133,
202,
95,
202,
202,
45,
967,
1662,
1852,
2174,
1562,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
4146,
273,
5575,
1852,
2174,
12,
8281,
16,
1086,
1320,
11272,
1082,
202,
430,
261,
1562,
480,
446,
262,
1082,
202,
95,
9506,
202,
18415,
1499,
3381,
3931,
273,
8893,
264,
3843,
3381,
12,
1086,
1320,
11272,
9506,
202,
430,
261,
3931,
480,
446,
262,
6862,
202,
4146,
18,
542,
1662,
1972,
12,
3931,
18,
588,
2402,
12,
262,
11272,
9506,
202,
759,
1436,
1562,
1368,
1339,
9506,
2
] |
|
collectionInitiated = true;
|
public final boolean poll(boolean mustCollect, MemoryResource mr) throws VM_PragmaLogicallyUninterruptible { if (collectionInitiated || !initialized || mr == metaDataMR) return false; mustCollect |= stressTestGCRequired(); boolean heapFull = getPagesReserved() > getTotalPages(); boolean nurseryFull = nurseryMR.reservedPages() > Options.maxNurseryPages; if (mustCollect || heapFull || nurseryFull) { required = mr.reservedPages() - mr.committedPages(); if (mr == nurseryMR || (Plan.copyMature && (mr == matureMR))) required = required<<1; // must account for copy reserve int nurseryYield = ((int)((float) nurseryMR.committedPages() * SURVIVAL_ESTIMATE))<<1; fullHeapGC = mustCollect || (nurseryYield < required) || fullHeapGC; collectionInitiated = true; VM_Interface.triggerCollection(VM_Interface.RESOURCE_TRIGGERED_GC); return true; } return false; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/dc34fda313333ba5a2fb5dba7d6f648b91b61f03/Generational.java/buggy/MMTk/src/org/mmtk/plan/Generational.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
1250,
7672,
12,
6494,
1297,
10808,
16,
9251,
1420,
9752,
13,
377,
1216,
8251,
67,
2050,
9454,
1343,
6478,
984,
31847,
1523,
288,
565,
309,
261,
5548,
2570,
10206,
747,
401,
13227,
747,
9752,
422,
11651,
23464,
13,
327,
629,
31,
565,
1297,
10808,
5626,
384,
663,
4709,
15396,
3705,
5621,
565,
1250,
10500,
5080,
273,
1689,
1023,
10435,
1435,
405,
12831,
5716,
5621,
565,
1250,
290,
295,
550,
93,
5080,
273,
290,
295,
550,
93,
23464,
18,
18898,
5716,
1435,
405,
5087,
18,
1896,
50,
295,
550,
93,
5716,
31,
565,
309,
261,
11926,
10808,
747,
10500,
5080,
747,
290,
295,
550,
93,
5080,
13,
288,
1377,
1931,
273,
9752,
18,
18898,
5716,
1435,
300,
9752,
18,
7371,
2344,
5716,
5621,
1377,
309,
261,
21387,
422,
290,
295,
550,
93,
23464,
747,
261,
5365,
18,
3530,
49,
1231,
597,
261,
21387,
422,
312,
1231,
23464,
20349,
202,
4718,
273,
1931,
17685,
21,
31,
225,
368,
1297,
2236,
364,
1610,
20501,
1377,
509,
290,
295,
550,
93,
16348,
273,
14015,
474,
13,
12443,
5659,
13,
290,
295,
550,
93,
23464,
18,
7371,
2344,
5716,
1435,
380,
348,
1099,
4136,
2669,
67,
11027,
3445,
1777,
3719,
17685,
21,
31,
1377,
1983,
15648,
15396,
273,
1297,
10808,
747,
261,
82,
295,
550,
93,
16348,
411,
1931,
13,
747,
1983,
15648,
15396,
31,
6647,
8251,
67,
1358,
18,
10668,
2532,
12,
7397,
67,
1358,
18,
11395,
67,
6566,
27399,
2056,
67,
15396,
1769,
1377,
327,
638,
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,
1071,
727,
1250,
7672,
12,
6494,
1297,
10808,
16,
9251,
1420,
9752,
13,
377,
1216,
8251,
67,
2050,
9454,
1343,
6478,
984,
31847,
1523,
288,
565,
309,
261,
5548,
2570,
10206,
747,
401,
13227,
747,
9752,
422,
11651,
23464,
13,
327,
629,
31,
565,
1297,
10808,
5626,
384,
663,
4709,
15396,
3705,
5621,
565,
1250,
10500,
5080,
273,
1689,
1023,
10435,
1435,
405,
12831,
5716,
5621,
565,
1250,
290,
295,
550,
93,
5080,
273,
290,
295,
550,
93,
23464,
18,
18898,
5716,
1435,
405,
5087,
18,
1896,
50,
295,
550,
93,
5716,
31,
565,
309,
261,
11926,
10808,
747,
10500,
5080,
747,
290,
295,
550,
93,
5080,
13,
288,
1377,
1931,
273,
9752,
18,
18898,
5716,
1435,
300,
2
] |
|
frm=frame;
|
frm = frame;
|
public void setWindow(Frame frame) { if(frame == null) { return; } if(panel == null) { System.out.println("++ Initialize failed."); return; }// PlugletTagInfo2 info = (PlugletTagInfo2)peer.getTagInfo();// defaultSize = new Dimension(info.getWidth(), info.getHeight()); frame.setSize(defaultSize); frame.setLayout(new BorderLayout()); frame.add(panel); frm=frame; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/701adb53ebc028dc703c1074d472d19dec2ab46e/JMPlayer.java/clean/java/plugins/examples/MediaPlayer/JMPlayer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3829,
12,
3219,
2623,
13,
288,
202,
430,
12,
3789,
422,
446,
13,
288,
202,
565,
327,
31,
202,
97,
202,
430,
12,
13916,
422,
446,
13,
288,
202,
565,
2332,
18,
659,
18,
8222,
2932,
9904,
9190,
2535,
1199,
1769,
202,
565,
327,
31,
202,
97,
759,
202,
1749,
637,
1810,
1805,
966,
22,
1123,
273,
261,
1749,
637,
1810,
1805,
966,
22,
13,
12210,
18,
588,
1805,
966,
5621,
759,
202,
1886,
1225,
273,
394,
13037,
12,
1376,
18,
588,
2384,
9334,
1123,
18,
588,
2686,
10663,
202,
3789,
18,
542,
1225,
12,
1886,
1225,
1769,
202,
3789,
18,
542,
3744,
12,
2704,
30814,
10663,
202,
3789,
18,
1289,
12,
13916,
1769,
202,
4840,
81,
273,
2623,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
3829,
12,
3219,
2623,
13,
288,
202,
430,
12,
3789,
422,
446,
13,
288,
202,
565,
327,
31,
202,
97,
202,
430,
12,
13916,
422,
446,
13,
288,
202,
565,
2332,
18,
659,
18,
8222,
2932,
9904,
9190,
2535,
1199,
1769,
202,
565,
327,
31,
202,
97,
759,
202,
1749,
637,
1810,
1805,
966,
22,
1123,
273,
261,
1749,
637,
1810,
1805,
966,
22,
13,
12210,
18,
588,
1805,
966,
5621,
759,
202,
1886,
1225,
273,
394,
13037,
12,
1376,
18,
588,
2384,
9334,
1123,
18,
588,
2686,
10663,
202,
3789,
18,
542,
1225,
12,
1886,
1225,
1769,
202,
3789,
18,
542,
3744,
12,
2704,
30814,
10663,
202,
3789,
18,
1289,
12,
13916,
1769,
202,
2
] |
if ( values.length > 0 ) message.append( ' ' ); message.append( ')' ); DEFAULT_SHELL.printLine( message.toString() );
|
protected void printDisabledMessage() { StringBuffer message = new StringBuffer( "Called disabled function: " ); message.append( getName() ); message.append( '(' ); for ( int i = 0; i < values.length; ++i ) { if ( i != 0 ) message.append( ',' ); message.append( ' ' ); message.append( values[i].toStringValue().toString() ); } if ( values.length > 0 ) message.append( ' ' ); message.append( ')' ); DEFAULT_SHELL.printLine( message.toString() ); }
|
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/2d57c3cb2b15b86934f65981b990aba02015ff08/KoLmafiaASH.java/buggy/src/net/sourceforge/kolmafia/KoLmafiaASH.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1172,
8853,
1079,
1435,
202,
202,
95,
1082,
202,
780,
1892,
883,
273,
394,
6674,
12,
315,
8185,
5673,
445,
30,
315,
11272,
1082,
202,
2150,
18,
6923,
12,
1723,
1435,
11272,
1082,
202,
2150,
18,
6923,
12,
7321,
11272,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
924,
18,
2469,
31,
965,
77,
262,
1082,
202,
95,
9506,
202,
430,
261,
277,
480,
374,
262,
6862,
202,
2150,
18,
6923,
12,
3316,
11272,
9506,
202,
2150,
18,
6923,
12,
296,
296,
11272,
9506,
202,
2150,
18,
6923,
12,
924,
63,
77,
8009,
10492,
620,
7675,
10492,
1435,
11272,
1082,
202,
97,
1082,
202,
430,
261,
924,
18,
2469,
405,
374,
262,
9506,
202,
2150,
18,
6923,
12,
296,
296,
11272,
1082,
202,
2150,
18,
6923,
12,
5777,
11272,
1082,
202,
5280,
67,
2664,
21943,
18,
1188,
1670,
12,
883,
18,
10492,
1435,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
918,
1172,
8853,
1079,
1435,
202,
202,
95,
1082,
202,
780,
1892,
883,
273,
394,
6674,
12,
315,
8185,
5673,
445,
30,
315,
11272,
1082,
202,
2150,
18,
6923,
12,
1723,
1435,
11272,
1082,
202,
2150,
18,
6923,
12,
7321,
11272,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
924,
18,
2469,
31,
965,
77,
262,
1082,
202,
95,
9506,
202,
430,
261,
277,
480,
374,
262,
6862,
202,
2150,
18,
6923,
12,
3316,
11272,
9506,
202,
2150,
18,
6923,
12,
296,
296,
11272,
9506,
202,
2150,
18,
6923,
12,
924,
63,
77,
8009,
10492,
620,
7675,
10492,
1435,
11272,
1082,
202,
97,
1082,
202,
430,
261,
924,
18,
2469,
405,
374,
262,
2
] |
|
super(RequestTunnelJob.this._context);
|
super(RequestTunnelJob.this.getContext());
|
Request(RequestState state) { super(RequestTunnelJob.this._context); _state = state; }
|
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/e737e5c9507ed0d463dc9e45a8f63657f466b177/RequestTunnelJob.java/clean/router/java/src/net/i2p/router/tunnelmanager/RequestTunnelJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1567,
12,
691,
1119,
919,
13,
288,
5411,
2240,
12,
691,
20329,
2278,
18,
2211,
18,
29120,
10663,
5411,
389,
2019,
273,
919,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1567,
12,
691,
1119,
919,
13,
288,
5411,
2240,
12,
691,
20329,
2278,
18,
2211,
18,
29120,
10663,
5411,
389,
2019,
273,
919,
31,
3639,
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
] |
if (catchType != null) {
|
if (false && catchType != null) {
|
public void meetInto(IsNullValueFrame fact, Edge edge, IsNullValueFrame result) throws DataflowAnalysisException { if (fact.isValid()) { IsNullValueFrame tmpFact = null; final int numSlots = fact.getNumSlots(); if (!NO_SPLIT_DOWNGRADE_NSP) { // Downgrade NSP to DNR on non-exception control splits if (!edge.isExceptionEdge() && numNonExceptionSuccessorMap[edge.getSource().getId()] > 1) { tmpFact = modifyFrame(fact, tmpFact); for (int i = 0; i < numSlots; ++i) {// IsNullValue value = tmpFact.getValue(i);// if (value.equals(IsNullValue.nullOnSimplePathValue()))// tmpFact.setValue(i, IsNullValue.nullOnComplexPathValue()); IsNullValue value = tmpFact.getValue(i); value = downgradeOnControlSplit(value); tmpFact.setValue(i, value); } } } if (!NO_SWITCH_DEFAULT_AS_EXCEPTION) { if (edge.getType() == SWITCH_DEFAULT_EDGE) { tmpFact = modifyFrame(fact, tmpFact); tmpFact.toExceptionValues(); } } final BasicBlock destBlock = edge.getTarget(); if (destBlock.isExceptionHandler()) { // Exception handler - clear stack and push a non-null value // to represent the exception. tmpFact = modifyFrame(fact, tmpFact); tmpFact.clearStack(); // Downgrade NULL and NSP to DNR if the handler is for // CloneNotSupportedException or InterruptedException CodeExceptionGen handler = destBlock.getExceptionGen(); ObjectType catchType = handler.getCatchType(); if (catchType != null) { String catchClass = catchType.getClassName(); if (false && (catchClass.equals("java.lang.CloneNotSupportedException") || catchClass.equals("java.lang.InterruptedException"))) { for (int i = 0; i < tmpFact.getNumSlots(); ++i) { IsNullValue value = tmpFact.getValue(i); if (value.isDefinitelyNull() || value.isNullOnSomePath()) tmpFact.setValue(i, IsNullValue.nullOnComplexPathValue()); } } } // Mark all values as having occurred on an exception path tmpFact.toExceptionValues(); // Push the exception value tmpFact.pushValue(IsNullValue.nonNullValue()); } else { final int edgeType = edge.getType(); final BasicBlock sourceBlock = edge.getSource(); final BasicBlock targetBlock = edge.getTarget(); final ValueNumberFrame targetVnaFrame = vnaDataflow.getStartFact(destBlock); assert targetVnaFrame != null; // Determine if the edge conveys any information about the // null/non-null status of operands in the incoming frame. if (edgeType == IFCMP_EDGE || edgeType == FALL_THROUGH_EDGE) { IsNullConditionDecision decision = getResultFact(edge.getSource()).getDecision(); if (decision != null) { if (!decision.isEdgeFeasible(edgeType)) { // The incoming edge is infeasible; just use TOP // as the start fact for this block. tmpFact = createFact(); tmpFact.setTop(); } else if (decision.getValue() != null) { // A value has been determined for this edge. // Use the value to update the is-null information in // the start fact for this block. final Location atIf = new Location(sourceBlock.getLastInstruction(), sourceBlock); final IsNullValueFrame prevIsNullValueFrame = getFactAtLocation(atIf); final ValueNumberFrame prevVnaFrame = vnaDataflow.getFactAtLocation(atIf); tmpFact = replaceValues(fact, tmpFact, decision.getValue(), prevVnaFrame, targetVnaFrame, decision.getDecision(edgeType)); } } } // If this is a fall-through edge from a null check, // then we know the value checked is not null. if (sourceBlock.isNullCheck() && edgeType == FALL_THROUGH_EDGE) { ValueNumberFrame vnaFrame = vnaDataflow.getStartFact(destBlock); if (vnaFrame == null) throw new IllegalStateException("no vna frame at block entry?"); Instruction firstInDest = edge.getTarget().getFirstInstruction().getInstruction(); IsNullValue instance = fact.getInstance(firstInDest, methodGen.getConstantPool()); if (instance.isDefinitelyNull()) { // If we know the variable is null, this edge is infeasible tmpFact = createFact(); tmpFact.setTop(); } else if (!instance.isDefinitelyNotNull()) { // If we're not sure that the instance is definitely non-null, // update the is-null information for the dereferenced value. InstructionHandle kaBoomLocation = targetBlock.getFirstInstruction(); ValueNumber replaceMe = vnaFrame.getInstance(firstInDest, methodGen.getConstantPool()); tmpFact = replaceValues(fact, tmpFact, replaceMe, vnaFrame, targetVnaFrame, IsNullValue.noKaboomNonNullValue( new Location(kaBoomLocation, targetBlock) )); } } } if (tmpFact != null) fact = tmpFact; } // Normal dataflow merge mergeInto(fact, result); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/8644b6aced05cd44972c45b47cfab182e8ddaaf2/IsNullValueAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/IsNullValueAnalysis.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18721,
5952,
12,
2520,
2041,
620,
3219,
5410,
16,
11342,
3591,
16,
30230,
620,
3219,
563,
13,
202,
3639,
1216,
1910,
2426,
9418,
503,
288,
202,
202,
430,
261,
3493,
18,
26810,
10756,
288,
1082,
202,
2520,
2041,
620,
3219,
1853,
9766,
273,
446,
31,
1082,
202,
6385,
509,
818,
16266,
273,
5410,
18,
588,
2578,
16266,
5621,
1082,
202,
430,
16051,
3417,
67,
17482,
67,
3191,
59,
4960,
2849,
1639,
67,
50,
3118,
13,
288,
9506,
202,
759,
10077,
3994,
423,
3118,
358,
18001,
54,
603,
1661,
17,
4064,
3325,
11019,
9506,
202,
430,
16051,
7126,
18,
291,
503,
6098,
1435,
597,
818,
3989,
503,
4510,
280,
863,
63,
7126,
18,
588,
1830,
7675,
26321,
1435,
65,
405,
404,
13,
288,
6862,
202,
5645,
9766,
273,
5612,
3219,
12,
3493,
16,
1853,
9766,
1769,
6862,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
818,
16266,
31,
965,
77,
13,
288,
759,
25083,
202,
2520,
2041,
620,
460,
273,
1853,
9766,
18,
24805,
12,
77,
1769,
759,
25083,
202,
430,
261,
1132,
18,
14963,
12,
2520,
2041,
620,
18,
2011,
1398,
5784,
743,
620,
1435,
3719,
759,
6862,
1082,
202,
5645,
9766,
18,
542,
620,
12,
77,
16,
30230,
620,
18,
2011,
1398,
12795,
743,
620,
10663,
25083,
202,
2520,
2041,
620,
460,
273,
1853,
9766,
18,
24805,
12,
77,
1769,
25083,
202,
1132,
273,
2588,
3994,
1398,
3367,
5521,
12,
1132,
1769,
25083,
202,
5645,
9766,
18,
542,
620,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
18721,
5952,
12,
2520,
2041,
620,
3219,
5410,
16,
11342,
3591,
16,
30230,
620,
3219,
563,
13,
202,
3639,
1216,
1910,
2426,
9418,
503,
288,
202,
202,
430,
261,
3493,
18,
26810,
10756,
288,
1082,
202,
2520,
2041,
620,
3219,
1853,
9766,
273,
446,
31,
1082,
202,
6385,
509,
818,
16266,
273,
5410,
18,
588,
2578,
16266,
5621,
1082,
202,
430,
16051,
3417,
67,
17482,
67,
3191,
59,
4960,
2849,
1639,
67,
50,
3118,
13,
288,
9506,
202,
759,
10077,
3994,
423,
3118,
358,
18001,
54,
603,
1661,
17,
4064,
3325,
11019,
9506,
202,
430,
16051,
7126,
18,
291,
503,
6098,
1435,
597,
818,
3989,
503,
4510,
280,
863,
63,
7126,
18,
588,
1830,
7675,
2
] |
int downloadedSize = 0; while (nbBytes > 0) {
|
testIfPaused(); if (canBeDownloaded(connection)) {
|
public boolean download() throws IOException { HttpURLConnection connection = null; FileOutputStream fileOutputStream = null; InputStream inputStream = null; byte[] buffer = new byte[4096]; int nbBytes = 0; String localPath = this.destDirectory + this.webFile.getURI().getPath(); /* * Open the connexion */ try { connection = (HttpURLConnection) this.webFile.getURI().toURL().openConnection(); connection.connect(); } catch (IOException e) { System.err.println(e); } //tests the response code if (canBeDownloaded(connection)) { try { inputStream = connection.getInputStream(); } catch (IOException e2) { System.err.println(e2); } /* * parameters from the file */ this.webFile.setContentType(connection.getContentType()); //we cannot know the realSize (certainly blocked by server) if (connection.getContentLength() == -1) { this.webFile.setRealSize(-2); } else { this.webFile.setRealSize(connection.getContentLength()); } // webFile.setBeginDate(new Date(connection.getDate())); /* * Opening File for writing */ File file = new File(localPath); //creates the directory if it doesn't yet exist if (!file.getParentFile().exists()) { if (!file.getParentFile().mkdirs()) { throw new IOException("Cannot create ancestor directories: '" + localPath + "'"); //TODO: voir si on quitte le programme ou pas } } try { fileOutputStream = new FileOutputStream(file); } catch (FileNotFoundException e1) { System.err.println(e1); } /* * Writing the data in the File */ try { nbBytes = inputStream.read(buffer); } catch (IOException e) { System.err.println(e); } int downloadedSize = 0; while (nbBytes > 0) { try { fileOutputStream.write(buffer, 0, nbBytes); downloadedSize += nbBytes; //progression in percent if (this.webFile.getRealSize() == -2) { //cannot kwnow the progression this.webFile.setProgression(-2); } else { this.webFile.setProgression(downloadedSize * 100 / this.webFile.getRealSize()); } //do a fire in the detailledModel int indexInModel = detailledModel.getIndexWebFile(this.webFile); detailledModel.fireTableRowsUpdated(indexInModel, indexInModel); } catch (IOException e) { System.err.println(e); } try { nbBytes = inputStream.read(buffer); } catch (IOException e) { System.err.println(e); } } /* * closing the streams */ try { inputStream.close(); fileOutputStream.close(); } catch (IOException e) { System.err.println(e); } return true; } return false; }
|
12675 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12675/b2464f04d0c69fa9e8bb4fd9fe28fca25d0b904d/DownloadAndParseFile.java/buggy/src/fr/umlv/ir2/jhoover/network/DownloadAndParseFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
4224,
1435,
1216,
1860,
288,
202,
202,
2940,
14790,
1459,
273,
446,
31,
202,
202,
812,
4632,
585,
4632,
273,
446,
31,
202,
202,
4348,
10010,
273,
446,
31,
202,
202,
7229,
8526,
1613,
273,
394,
1160,
63,
24,
5908,
26,
15533,
202,
202,
474,
4264,
2160,
273,
374,
31,
202,
202,
780,
27383,
273,
333,
18,
10488,
2853,
397,
333,
18,
4875,
812,
18,
588,
3098,
7675,
588,
743,
5621,
25083,
202,
20308,
1082,
380,
3502,
326,
25928,
1082,
1195,
202,
202,
698,
288,
1082,
202,
4071,
273,
261,
2940,
14790,
13,
333,
18,
4875,
812,
18,
588,
3098,
7675,
869,
1785,
7675,
3190,
1952,
5621,
1082,
202,
4071,
18,
3612,
5621,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
25083,
202,
3163,
18,
370,
18,
8222,
12,
73,
1769,
202,
202,
97,
202,
202,
759,
16341,
326,
766,
981,
202,
202,
430,
261,
4169,
1919,
4164,
4230,
12,
4071,
3719,
288,
1082,
202,
698,
288,
9506,
202,
2630,
1228,
273,
1459,
18,
588,
4348,
5621,
1082,
202,
97,
1044,
261,
14106,
425,
22,
13,
288,
9506,
202,
3163,
18,
370,
18,
8222,
12,
73,
22,
1769,
1082,
202,
97,
25083,
202,
20308,
9506,
380,
1472,
628,
326,
585,
9506,
1195,
1082,
202,
2211,
18,
4875,
812,
18,
542,
8046,
12,
4071,
18,
588,
8046,
10663,
1082,
202,
759,
1814,
2780,
5055,
326,
2863,
1225,
261,
7593,
530,
715,
14547,
635,
1438,
13,
1082,
202,
430,
261,
4071,
18,
588,
1350,
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,
1250,
4224,
1435,
1216,
1860,
288,
202,
202,
2940,
14790,
1459,
273,
446,
31,
202,
202,
812,
4632,
585,
4632,
273,
446,
31,
202,
202,
4348,
10010,
273,
446,
31,
202,
202,
7229,
8526,
1613,
273,
394,
1160,
63,
24,
5908,
26,
15533,
202,
202,
474,
4264,
2160,
273,
374,
31,
202,
202,
780,
27383,
273,
333,
18,
10488,
2853,
397,
333,
18,
4875,
812,
18,
588,
3098,
7675,
588,
743,
5621,
25083,
202,
20308,
1082,
380,
3502,
326,
25928,
1082,
1195,
202,
202,
698,
288,
1082,
202,
4071,
273,
261,
2940,
14790,
13,
333,
18,
4875,
812,
18,
588,
3098,
7675,
869,
1785,
7675,
3190,
1952,
5621,
1082,
202,
4071,
18,
3612,
5621,
202,
202,
2
] |
protected final Control createDialogArea(final Composite parent) { getShell().setText(MYLAR_NOTIFICATION_LABEL); toolkit = new FormToolkit(parent.getDisplay()); form = toolkit.createForm(parent); form.getBody().setLayout(new GridLayout()); Section section = toolkit.createSection(form.getBody(), Section.TITLE_BAR); section.setText(MYLAR_NOTIFICATION_LABEL); section.setLayout(new GridLayout()); sectionClient = toolkit.createComposite(section); sectionClient.setLayout(new GridLayout(2, false)); for (final ITaskListNotification notification : notifications) { // Composite notificationComp = toolkit.createComposite(sectionClient);// notificationComp.setLayout(new RowLayout()); Label notificationLabelIcon = toolkit.createLabel(sectionClient, ""); notificationLabelIcon.setImage(notification.getOverlayIcon()); ImageHyperlink link = toolkit.createImageHyperlink(sectionClient, SWT.WRAP | SWT.TOP); link.setText(notification.getLabel()); link.setImage(notification.getNotificationIcon()); link.addHyperlinkListener(new HyperlinkAdapter() { public void linkActivated(HyperlinkEvent e) { notification.openTask(); IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window != null) { Shell windowShell = window.getShell(); if (windowShell != null) { windowShell.setMaximized(true); windowShell.open(); } } } }); String descriptionText = null; if (notification.getDescription() != null && notification.getDescription().length() > 40) { String truncated = notification.getDescription().substring(0, 35); descriptionText = truncated + "..."; } else if(notification.getDescription() != null) { descriptionText = notification.getDescription(); } if(descriptionText != null) { Label descriptionLabel = toolkit.createLabel(sectionClient, descriptionText); GridDataFactory.fillDefaults().span(2, SWT.DEFAULT).applyTo(descriptionLabel); } } section.setClient(sectionClient); Composite buttonsComposite = toolkit.createComposite(section); section.setTextClient(buttonsComposite); buttonsComposite.setLayout(new RowLayout()); Button buttonOpenAll = toolkit.createButton(buttonsComposite, "Open All", SWT.NONE); { Font initialFont = buttonOpenAll.getFont(); FontData[] fontData = initialFont.getFontData(); for (int i = 0; i < fontData.length; i++) { fontData[i].setHeight(BUTTON_FONT_SIZE); } Font newFont = new Font(getShell().getDisplay(), fontData); buttonOpenAll.setFont(newFont); } buttonOpenAll.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { for (ITaskListNotification notification : notifications) { //notification.setNotified(true); notification.openTask(); } IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); if (window != null) { Shell windowShell = window.getShell(); if (windowShell != null) { windowShell.setMaximized(true); windowShell.open(); } } close(); } }); RowData buttonOpenAllRowData = new RowData(45, 15); buttonOpenAll.setLayoutData(buttonOpenAllRowData); Button buttonDismiss = toolkit.createButton(buttonsComposite, "Close", SWT.NONE); { Font initialFont = buttonDismiss.getFont(); FontData[] fontData = initialFont.getFontData(); for (int i = 0; i < fontData.length; i++) { fontData[i].setHeight(BUTTON_FONT_SIZE); } Font newFont = new Font(getShell().getDisplay(), fontData); buttonDismiss.setFont(newFont); } buttonDismiss.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) {// for (ITaskListNotification notification : notifications) {// notification.setNotified(true);// } close(); } }); RowData buttonDismissRowData = new RowData(30, 15); buttonDismiss.setLayoutData(buttonDismissRowData); // toolkit.paintBordersFor(parent); form.pack(); return parent; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/a433fae12991c8a627b02857b69f38c50de94679/TaskListNotificationPopup.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/TaskListNotificationPopup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
8888,
752,
6353,
5484,
12,
6385,
14728,
982,
13,
288,
202,
202,
588,
13220,
7675,
542,
1528,
12,
22114,
48,
985,
67,
4400,
14865,
67,
13545,
1769,
202,
202,
6738,
8691,
273,
394,
2748,
6364,
8691,
12,
2938,
18,
588,
4236,
10663,
202,
202,
687,
273,
5226,
8691,
18,
2640,
1204,
12,
2938,
1769,
202,
202,
687,
18,
588,
2250,
7675,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
2250,
9334,
10092,
18,
14123,
67,
21908,
1769,
202,
202,
3464,
18,
542,
1528,
12,
22114,
48,
985,
67,
4400,
14865,
67,
13545,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
3464,
1227,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1769,
202,
202,
3464,
1227,
18,
542,
3744,
12,
2704,
7145,
3744,
12,
22,
16,
629,
10019,
202,
202,
1884,
261,
6385,
467,
2174,
682,
4386,
3851,
294,
9208,
13,
288,
1082,
202,
759,
1082,
202,
9400,
3851,
2945,
273,
5226,
8691,
18,
2640,
9400,
12,
3464,
1227,
1769,
759,
1082,
202,
9927,
2945,
18,
542,
3744,
12,
2704,
6556,
3744,
10663,
1082,
202,
2224,
3851,
2224,
5554,
273,
5226,
8691,
18,
2640,
2224,
12,
3464,
1227,
16,
1408,
1769,
1082,
202,
9927,
2224,
5554,
18,
542,
2040,
12,
9927,
18,
588,
11627,
5554,
10663,
25083,
202,
2040,
15996,
1232,
1692,
273,
5226,
8691,
18,
2640,
2040,
15996,
1232,
12,
3464,
1227,
16,
348,
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,
727,
8888,
752,
6353,
5484,
12,
6385,
14728,
982,
13,
288,
202,
202,
588,
13220,
7675,
542,
1528,
12,
22114,
48,
985,
67,
4400,
14865,
67,
13545,
1769,
202,
202,
6738,
8691,
273,
394,
2748,
6364,
8691,
12,
2938,
18,
588,
4236,
10663,
202,
202,
687,
273,
5226,
8691,
18,
2640,
1204,
12,
2938,
1769,
202,
202,
687,
18,
588,
2250,
7675,
542,
3744,
12,
2704,
7145,
3744,
10663,
202,
202,
5285,
2442,
273,
5226,
8691,
18,
2640,
5285,
12,
687,
18,
588,
2250,
9334,
10092,
18,
14123,
67,
21908,
1769,
202,
202,
3464,
18,
542,
1528,
12,
22114,
48,
985,
67,
4400,
14865,
67,
13545,
1769,
202,
202,
3464,
18,
542,
3744,
12,
2704,
7145,
2
] |
||
if (o instanceof String) { PGobject obj = null; obj = (PGobject)(Class.forName((String)o).newInstance()); obj.setType(type); obj.setValue(value); return (Object)obj; } else { if (o instanceof Serialize) return ((Serialize)o).fetch(Integer.parseInt(value)); } } catch (SQLException sx) { sx.fillInStackTrace(); throw sx; } catch (Exception ex) { throw new PSQLException("postgresql.con.creobj", type, ex); }
|
if (o instanceof String) { PGobject obj = null; obj = (PGobject)(Class.forName((String)o).newInstance()); obj.setType(type); obj.setValue(value); return (Object)obj; } else { if (o instanceof Serialize) return ((Serialize)o).fetch(Integer.parseInt(value)); } } catch (SQLException sx) { sx.fillInStackTrace(); throw sx; } catch (Exception ex) { throw new PSQLException("postgresql.con.creobj", type, ex); }
|
public Object getObject(String type, String value) throws SQLException { try { Object o = objectTypes.get(type); // If o is null, then the type is unknown, so check to see if type // is an actual table name. If it does, see if a Class is known that // can handle it if (o == null) { Serialize ser = new Serialize(this, type); objectTypes.put(type, ser); return ser.fetch(Integer.parseInt(value)); } // If o is not null, and it is a String, then its a class name that // extends PGobject. // // This is used to implement the org.postgresql unique types (like lseg, // point, etc). if (o instanceof String) { // 6.3 style extending PG_Object PGobject obj = null; obj = (PGobject)(Class.forName((String)o).newInstance()); obj.setType(type); obj.setValue(value); return (Object)obj; } else { // If it's an object, it should be an instance of our Serialize class // If so, then call it's fetch method. if (o instanceof Serialize) return ((Serialize)o).fetch(Integer.parseInt(value)); } } catch (SQLException sx) { // rethrow the exception. Done because we capture any others next sx.fillInStackTrace(); throw sx; } catch (Exception ex) { throw new PSQLException("postgresql.con.creobj", type, ex); } // should never be reached return null; }
|
46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/e25c93c7eb4a9a1a50b771cc33448b9d3519f403/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
6455,
12,
780,
618,
16,
514,
460,
13,
1216,
6483,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
921,
320,
273,
733,
2016,
18,
588,
12,
723,
1769,
1082,
202,
759,
971,
320,
353,
446,
16,
1508,
326,
618,
353,
5917,
16,
1427,
866,
358,
2621,
309,
618,
1082,
202,
759,
353,
392,
3214,
1014,
508,
18,
971,
518,
1552,
16,
2621,
309,
279,
1659,
353,
4846,
716,
1082,
202,
759,
848,
1640,
518,
1082,
202,
430,
261,
83,
422,
446,
13,
1082,
202,
95,
9506,
202,
10343,
703,
273,
394,
14293,
12,
2211,
16,
618,
1769,
9506,
202,
1612,
2016,
18,
458,
12,
723,
16,
703,
1769,
9506,
202,
2463,
703,
18,
5754,
12,
4522,
18,
2670,
1702,
12,
1132,
10019,
1082,
202,
97,
1082,
202,
759,
971,
320,
353,
486,
446,
16,
471,
518,
353,
279,
514,
16,
1508,
2097,
279,
667,
508,
716,
1082,
202,
759,
3231,
22116,
1612,
18,
1082,
202,
759,
1082,
202,
759,
1220,
353,
1399,
358,
2348,
326,
2358,
18,
2767,
24330,
3089,
1953,
261,
5625,
328,
5680,
16,
1082,
202,
759,
1634,
16,
5527,
2934,
1082,
202,
430,
261,
83,
1276,
514,
13,
1082,
202,
95,
9506,
202,
759,
1666,
18,
23,
2154,
27147,
22116,
67,
921,
9506,
202,
18679,
1612,
1081,
273,
446,
31,
9506,
202,
2603,
273,
261,
18679,
1612,
21433,
797,
18,
1884,
461,
12443,
780,
13,
83,
2934,
2704,
1442,
10663,
9506,
202,
2603,
18,
542,
559,
12,
723,
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,
6455,
12,
780,
618,
16,
514,
460,
13,
1216,
6483,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
921,
320,
273,
733,
2016,
18,
588,
12,
723,
1769,
1082,
202,
759,
971,
320,
353,
446,
16,
1508,
326,
618,
353,
5917,
16,
1427,
866,
358,
2621,
309,
618,
1082,
202,
759,
353,
392,
3214,
1014,
508,
18,
971,
518,
1552,
16,
2621,
309,
279,
1659,
353,
4846,
716,
1082,
202,
759,
848,
1640,
518,
1082,
202,
430,
261,
83,
422,
446,
13,
1082,
202,
95,
9506,
202,
10343,
703,
273,
394,
14293,
12,
2211,
16,
618,
1769,
9506,
202,
1612,
2016,
18,
458,
12,
723,
16,
703,
1769,
9506,
202,
2463,
703,
18,
2
] |
out.write(buffer, 0, (int) nRequired); count += nRequired;
|
for (int i = 0; i < padLength; i++) { buffer[i] = 0; } while (count != blockSize) { long nRequired = blockSize - count; if (blockSize - count > buffer.length) { nRequired = buffer.length; } out.write(buffer, 0, (int) nRequired); count += nRequired; }
|
public final static void paddedCopy( Bucket from, Bucket to, long nBytes, int blockSize) throws IOException { if (nBytes > blockSize) { throw new IllegalArgumentException("nBytes > blockSize"); } OutputStream out = to.getOutputStream(); byte[] buffer = new byte[16384]; InputStream in = from.getInputStream(); long count = 0; while (count != nBytes) { long nRequired = nBytes - count; if (nRequired > buffer.length) { nRequired = buffer.length; } long nRead = in.read(buffer, 0, (int) nRequired); if (nRead == -1) { throw new IOException("Not enough data in source bucket."); } out.write(buffer, 0, (int) nRead); count += nRead; } if (count < blockSize) { // hmmm... better to just allocate a new buffer // instead of explicitly zeroing the old one? // Zero pad to blockSize long padLength = buffer.length; if (padLength > blockSize - nBytes) { padLength = blockSize - nBytes; } for (int i = 0; i < padLength; i++) { buffer[i] = 0; } while (count != blockSize) { long nRequired = blockSize - count; if (blockSize - count > buffer.length) { nRequired = buffer.length; } out.write(buffer, 0, (int) nRequired); count += nRequired; } } in.close(); out.close(); }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/fbdde7654afdefd24ae4365520a38c1c680248a7/BucketTools.java/buggy/src/freenet/support/BucketTools.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
760,
918,
14426,
2951,
12,
202,
202,
4103,
628,
16,
202,
202,
4103,
358,
16,
202,
202,
5748,
290,
2160,
16,
202,
202,
474,
13766,
13,
202,
202,
15069,
1860,
288,
202,
202,
430,
261,
82,
2160,
405,
13766,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
82,
2160,
405,
13766,
8863,
202,
202,
97,
202,
202,
4632,
596,
273,
358,
18,
588,
4632,
5621,
202,
202,
7229,
8526,
1613,
273,
394,
1160,
63,
2313,
17295,
15533,
202,
202,
4348,
316,
273,
628,
18,
588,
4348,
5621,
202,
202,
5748,
1056,
273,
374,
31,
202,
202,
17523,
261,
1883,
480,
290,
2160,
13,
288,
1082,
202,
5748,
290,
3705,
273,
290,
2160,
300,
1056,
31,
1082,
202,
430,
261,
82,
3705,
405,
1613,
18,
2469,
13,
288,
9506,
202,
82,
3705,
273,
1613,
18,
2469,
31,
1082,
202,
97,
1082,
202,
5748,
290,
1994,
273,
316,
18,
896,
12,
4106,
16,
374,
16,
261,
474,
13,
290,
3705,
1769,
1082,
202,
430,
261,
82,
1994,
422,
300,
21,
13,
288,
9506,
202,
12849,
394,
1860,
2932,
1248,
7304,
501,
316,
1084,
2783,
1199,
1769,
1082,
202,
97,
1082,
202,
659,
18,
2626,
12,
4106,
16,
374,
16,
261,
474,
13,
290,
1994,
1769,
1082,
202,
1883,
1011,
290,
1994,
31,
202,
202,
97,
202,
202,
430,
261,
1883,
411,
13766,
13,
288,
1082,
202,
759,
366,
7020,
81,
2777,
7844,
358,
2537,
10101,
279,
394,
1613,
1082,
202,
759,
3560,
434,
8122,
3634,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
760,
918,
14426,
2951,
12,
202,
202,
4103,
628,
16,
202,
202,
4103,
358,
16,
202,
202,
5748,
290,
2160,
16,
202,
202,
474,
13766,
13,
202,
202,
15069,
1860,
288,
202,
202,
430,
261,
82,
2160,
405,
13766,
13,
288,
1082,
202,
12849,
394,
2754,
2932,
82,
2160,
405,
13766,
8863,
202,
202,
97,
202,
202,
4632,
596,
273,
358,
18,
588,
4632,
5621,
202,
202,
7229,
8526,
1613,
273,
394,
1160,
63,
2313,
17295,
15533,
202,
202,
4348,
316,
273,
628,
18,
588,
4348,
5621,
202,
202,
5748,
1056,
273,
374,
31,
202,
202,
17523,
261,
1883,
480,
290,
2160,
13,
288,
1082,
202,
5748,
290,
3705,
273,
290,
2160,
300,
1056,
31,
2
] |
PythonInterpreter.initialize(System.getProperties(), props,
|
PythonInterpreter.initialize(baseProps, props,
|
public void init() { rootPath = getServletContext().getRealPath("/"); if (!rootPath.endsWith(File.separator)) rootPath += File.separator; Properties props = new Properties(); // Context parameters ServletContext context = getServletContext(); Enumeration e = context.getInitParameterNames(); while (e.hasMoreElements()) { String name = (String) e.nextElement(); props.put(name, context.getInitParameter(name)); } // Config parameters e = getInitParameterNames(); while (e.hasMoreElements()) { String name = (String) e.nextElement(); props.put(name, getInitParameter(name)); } if (props.getProperty("python.home") == null && System.getProperty("python.home") == null) { props.put("python.home", rootPath + "WEB-INF" + File.separator + "lib"); } PythonInterpreter.initialize(System.getProperties(), props, new String[0]); reset(); PySystemState sys = Py.getSystemState(); sys.add_package("javax.servlet"); sys.add_package("javax.servlet.http"); sys.add_package("javax.servlet.jsp"); sys.add_package("javax.servlet.jsp.tagext"); sys.add_classdir(rootPath + "WEB-INF" + File.separator + "classes"); sys.add_extdir(rootPath + "WEB-INF" + File.separator + "lib", true); }
|
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/dafed3ffaf7b7353af7e436058b6588eb5e7b7e5/PyServlet.java/buggy/src/org/python/util/PyServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1435,
288,
3639,
13959,
273,
29015,
7675,
588,
6955,
743,
2932,
4898,
1769,
3639,
309,
16051,
3085,
743,
18,
5839,
1190,
12,
812,
18,
11287,
3719,
5411,
13959,
1011,
1387,
18,
11287,
31,
3639,
6183,
3458,
273,
394,
6183,
5621,
3639,
368,
1772,
1472,
3639,
22717,
819,
273,
29015,
5621,
3639,
13864,
425,
273,
819,
18,
588,
2570,
1662,
1557,
5621,
3639,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
514,
508,
273,
261,
780,
13,
425,
18,
4285,
1046,
5621,
5411,
3458,
18,
458,
12,
529,
16,
819,
18,
588,
2570,
1662,
12,
529,
10019,
3639,
289,
3639,
368,
1903,
1472,
3639,
425,
273,
26458,
1662,
1557,
5621,
3639,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
514,
508,
273,
261,
780,
13,
425,
18,
4285,
1046,
5621,
5411,
3458,
18,
458,
12,
529,
16,
26458,
1662,
12,
529,
10019,
3639,
289,
3639,
309,
261,
9693,
18,
588,
1396,
2932,
8103,
18,
8712,
7923,
422,
446,
597,
27573,
2332,
18,
588,
1396,
2932,
8103,
18,
8712,
7923,
422,
446,
13,
288,
5411,
3458,
18,
458,
2932,
8103,
18,
8712,
3113,
13959,
397,
315,
14778,
17,
19212,
6,
397,
4766,
2398,
1387,
18,
11287,
397,
315,
2941,
8863,
3639,
289,
3639,
6600,
30010,
18,
11160,
12,
1969,
5047,
16,
3458,
16,
19694,
394,
514,
63,
20,
19226,
3639,
2715,
5621,
3639,
4707,
3163,
1119,
2589,
273,
4707,
18,
588,
3163,
1119,
5621,
3639,
2589,
18,
1289,
67,
5610,
2932,
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,
1208,
1435,
288,
3639,
13959,
273,
29015,
7675,
588,
6955,
743,
2932,
4898,
1769,
3639,
309,
16051,
3085,
743,
18,
5839,
1190,
12,
812,
18,
11287,
3719,
5411,
13959,
1011,
1387,
18,
11287,
31,
3639,
6183,
3458,
273,
394,
6183,
5621,
3639,
368,
1772,
1472,
3639,
22717,
819,
273,
29015,
5621,
3639,
13864,
425,
273,
819,
18,
588,
2570,
1662,
1557,
5621,
3639,
1323,
261,
73,
18,
5332,
7417,
3471,
10756,
288,
5411,
514,
508,
273,
261,
780,
13,
425,
18,
4285,
1046,
5621,
5411,
3458,
18,
458,
12,
529,
16,
819,
18,
588,
2570,
1662,
12,
529,
10019,
3639,
289,
3639,
368,
1903,
1472,
3639,
425,
273,
26458,
1662,
1557,
5621,
3639,
1323,
261,
73,
2
] |
al.sourcei(source[0],AL.LOOPING,AL.FALSE);
|
al.sourcei(source.getInt(4*0),AL.LOOPING,AL.FALSE);
|
protected void i_LoopingTest() { int error; int[] source = new int[2]; int ch = -1; int bLooping0 = AL.FALSE; int bLooping1 = AL.FALSE; ByteBuffer source0Pos = ByteBuffer.allocateDirect(12); source0Pos.order(ByteOrder.nativeOrder()); source0Pos.putFloat(-2.0f); source0Pos.putFloat(0.0f); source0Pos.putFloat(-2.0f); ByteBuffer source0Vel = ByteBuffer.allocateDirect(12); source0Vel.order(ByteOrder.nativeOrder()); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); source0Vel.putFloat(0.0f); ByteBuffer source1Pos = ByteBuffer.allocateDirect(12); source1Pos.order(ByteOrder.nativeOrder()); source1Pos.putFloat(2.0f); source1Pos.putFloat(0.0f); source1Pos.putFloat(-2.0f); ByteBuffer source1Vel = ByteBuffer.allocateDirect(12); source1Vel.order(ByteOrder.nativeOrder()); source1Vel.putFloat(0.0f); source1Vel.putFloat(0.0f); source1Vel.putFloat(0.0f); // Clear Error Code al.getError(); al.genSources(2,source); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alGenSources 1 : ", error); return; } al.sourcef(source[0],AL.PITCH,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 0 AL_PITCH : \n", error); } al.sourcef(source[0],AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 0 AL_GAIN : \n", error); } al.sourcefv(source[0],AL.POSITION,Sys.getDirectBufferAddress(source0Pos)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 0 AL_POSITION : \n", error); } al.sourcefv(source[0],AL.VELOCITY,Sys.getDirectBufferAddress(source0Vel)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 0 AL_VELOCITY : \n", error); } al.sourcei(source[0],AL.BUFFER, buffers[0]); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 0 AL_BUFFER buffer 0 : \n", error); } al.sourcei(source[0],AL.LOOPING,AL.FALSE); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 0 AL_LOOPING false : \n", error); } al.sourcef(source[1],AL.PITCH,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 1 AL_PITCH : \n", error); } al.sourcef(source[1],AL.GAIN,1.0f); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcef 1 AL_GAIN : \n", error); } al.sourcefv(source[1],AL.POSITION,Sys.getDirectBufferAddress(source1Pos)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 1 AL_POSITION : \n", error); } al.sourcefv(source[1],AL.VELOCITY,Sys.getDirectBufferAddress(source1Vel)); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcefv 1 AL_VELOCITY : \n", error); } al.sourcei(source[1],AL.BUFFER, buffers[1]); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 1 AL_BUFFER buffer 1 : \n", error); } al.sourcei(source[1],AL.LOOPING,AL.FALSE); if ((error = al.getError()) != AL.NO_ERROR) { displayALError("alSourcei 1 AL_LOOPING false: \n", error); } System.out.print("Looping Test\n"); System.out.print("Press '1' to play source 0 once (single shot)\n"); System.out.print("Press '2' to toggle looping on source 0\n"); System.out.print("Press '3' to play source 1 once (single shot)\n"); System.out.print("Press '4' to toggle looping on source 1\n"); System.out.print("Press 'Q' to quit\n"); System.out.print("\nSource 0 : Not looping Source 1 : Not looping\n"); do { try { ch = System.in.read(); } catch (IOException ioe) { } switch (ch) { case '1': al.sourcePlay(source[0]); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcePlay source 0 : ", error); break; case '2': if (bLooping0 == AL.FALSE) { bLooping0 = AL.TRUE; if (bLooping1 == AL.TRUE) System.out.print("Source 0 : Looping Source 1 : Looping \n"); else System.out.print("Source 0 : Looping Source 1 : Not looping\n"); } else { bLooping0 = AL.FALSE; if (bLooping1 == AL.TRUE) System.out.print("Source 0 : Not looping Source 1 : Looping \n"); else System.out.print("Source 0 : Not looping Source 1 : Not looping\n"); } al.sourcei(source[0], AL.LOOPING, bLooping0); break; case '3': al.sourcePlay(source[1]); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourcePlay source 1 : ", error); break; case '4': if (bLooping1 == AL.FALSE) { bLooping1 = AL.TRUE; if (bLooping0 == AL.TRUE) System.out.print("Source 0 : Looping Source 1 : Looping \n"); else System.out.print("Source 0 : Not looping Source 1 : Looping \n"); } else { bLooping1 = AL.FALSE; if (bLooping0 == AL.TRUE) System.out.print("Source 0 : Looping Source 1 : Not looping\n"); else System.out.print("Source 0 : Not looping Source 1 : Not looping\n"); } al.sourcei(source[1], AL.LOOPING, bLooping1); break; } } while (ch != 'Q'); System.out.print("\n"); // Release resources al.sourceStop(source[0]); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alSourceStop source 1 : ", error); al.deleteSources(2, source); if ((error = al.getError()) != AL.NO_ERROR) displayALError("alDeleteSources 1 : ", error); return; }
|
5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/f85aaf6b019e121ae356134303adfe86ac9476bb/ALTest.java/clean/src/java/org/lwjgl/openal/test/ALTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
277,
67,
6452,
310,
4709,
1435,
288,
3639,
509,
202,
1636,
31,
3639,
509,
8526,
1084,
273,
394,
509,
63,
22,
15533,
3639,
509,
202,
343,
273,
300,
21,
31,
3639,
509,
324,
6452,
310,
20,
273,
7981,
18,
21053,
31,
3639,
509,
324,
6452,
310,
21,
273,
7981,
18,
21053,
31,
7734,
7400,
1084,
20,
1616,
273,
7400,
18,
16247,
5368,
12,
2138,
1769,
3639,
1084,
20,
1616,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
1084,
20,
1616,
18,
458,
4723,
19236,
22,
18,
20,
74,
1769,
3639,
1084,
20,
1616,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
3639,
1084,
20,
1616,
18,
458,
4723,
19236,
22,
18,
20,
74,
1769,
7734,
7400,
1084,
20,
58,
292,
273,
7400,
18,
16247,
5368,
12,
2138,
1769,
3639,
1084,
20,
58,
292,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
1084,
20,
58,
292,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
3639,
1084,
20,
58,
292,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
3639,
1084,
20,
58,
292,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
7734,
7400,
1084,
21,
1616,
273,
7400,
18,
16247,
5368,
12,
2138,
1769,
3639,
1084,
21,
1616,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
1084,
21,
1616,
18,
458,
4723,
12,
22,
18,
20,
74,
1769,
3639,
1084,
21,
1616,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
3639,
1084,
21,
1616,
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,
4750,
918,
277,
67,
6452,
310,
4709,
1435,
288,
3639,
509,
202,
1636,
31,
3639,
509,
8526,
1084,
273,
394,
509,
63,
22,
15533,
3639,
509,
202,
343,
273,
300,
21,
31,
3639,
509,
324,
6452,
310,
20,
273,
7981,
18,
21053,
31,
3639,
509,
324,
6452,
310,
21,
273,
7981,
18,
21053,
31,
7734,
7400,
1084,
20,
1616,
273,
7400,
18,
16247,
5368,
12,
2138,
1769,
3639,
1084,
20,
1616,
18,
1019,
12,
3216,
2448,
18,
13635,
2448,
10663,
3639,
1084,
20,
1616,
18,
458,
4723,
19236,
22,
18,
20,
74,
1769,
3639,
1084,
20,
1616,
18,
458,
4723,
12,
20,
18,
20,
74,
1769,
3639,
1084,
20,
1616,
18,
458,
4723,
19236,
22,
18,
20,
74,
2
] |
channelDesc.setChannelPublishId(rs.getString(6));
|
channelDesc.setChannelPublishId(chanId+"");
|
public ILayoutFragment getFragment (IPerson person, String fragmentIdStr ) throws PortalException { int userId = person.getID(); int fragmentId = CommonUtils.parseInt(fragmentIdStr); int realUserId = userId; ResultSet rs; ALFragment layout = new ALFragment ( fragmentIdStr ); Connection con = null; Hashtable layoutData = null; ALFolder rootNode = new ALFolder(); try { con = RDBMServices.getConnection(); RDBMServices.setAutoCommit(con,false); Statement stmt = con.createStatement(); layoutData = new Hashtable(); long startTime = System.currentTimeMillis(); // eventually, we need to fix template layout implementations so you can just do this: // int layoutId=profile.getLayoutId(); // but for now: String restrFragmentSQL = "SELECT RESTRICTION_TYPE, RESTRICTION_VALUE, RESTRICTION_TREE_PATH FROM UP_FRAGMENT_RESTRICTIONS "+ "WHERE FRAGMENT_ID=? AND NODE_ID=?"; int firstStructId = -1; String sQuery = "SELECT FRAGMENT_ROOT_ID,FRAGMENT_NAME,FRAGMENT_DESCRIPTION,PUSHED_FRAGMENT FROM UP_OWNER_FRAGMENT WHERE FRAGMENT_ID=" + fragmentId + " AND OWNER_ID = " + userId; rs = stmt.executeQuery(sQuery); try { rs.next(); firstStructId = rs.getInt(1); layout.setName(rs.getString(2)); layout.setDescription(rs.getString(3)); if ("Y".equals(rs.getString(4))) layout.setPushedFragment(); else layout.setPulledFragment(); } finally { rs.close(); } // Creating a root folder rootNode = ALFolder.createRootFolder(); // Putting the root node layoutData.put(IALFolderDescription.ROOT_FOLDER_ID,rootNode); // Putting the lost folder layoutData.put(IALFolderDescription.LOST_FOLDER_ID,ALFolder.createLostFolder()); // Setting the first layout node ID to the root folder if ( firstStructId > 0 ) rootNode.setFirstChildNodeId(firstStructId+""); else rootNode.setFirstChildNodeId(null); // The query for getting information of the fragments String sqlFragment = "SELECT DISTINCT UF.NODE_ID,UF.NEXT_NODE_ID,UF.CHLD_NODE_ID,UF.PREV_NODE_ID,UF.PRNT_NODE_ID,UF.CHAN_ID,UF.NAME,UF.TYPE,UF.HIDDEN,"+ "UF.UNREMOVABLE,UF.IMMUTABLE,UF.PRIORITY,UF.FRAGMENT_ID"; if (RDBMServices.supportsOuterJoins) { sqlFragment += ",UFP.PARAM_NAME,UFP.PARAM_VALUE FROM UP_OWNER_FRAGMENT UOF, " + fragmentJoinQuery; } else { sqlFragment += " FROM UP_FRAGMENTS UF, UP_OWNER_FRAGMENT UOF WHERE "; } sqlFragment += " UF.FRAGMENT_ID=UOF.FRAGMENT_ID AND UOF.OWNER_ID=? AND UOF.FRAGMENT_ID=?"; LogService.log(LogService.DEBUG, sqlFragment); PreparedStatement psFragment = con.prepareStatement(sqlFragment); psFragment.setInt(1,userId); psFragment.setInt(2,fragmentId); List chanIds = Collections.synchronizedList(new ArrayList()); StringBuffer structParms = new StringBuffer(); rs = psFragment.executeQuery(); try { int lastStructId = 0; String sepChar = ""; if (rs.next()) { int structId = rs.getInt(1); /*if (rs.wasNull()) { structId = 0; }*/ readLayout: while (true) { int nextId = rs.getInt(2); /*if (rs.wasNull()) { nextId = 0; }*/ int childId = rs.getInt(3); /*if (rs.wasNull()) { childId = 0; }*/ int prevId = rs.getInt(4); /*if (rs.wasNull()) { prevId = 0; }*/ int prntId = rs.getInt(5); /*if (rs.wasNull()) { prntId = 0; }*/ int chanId = rs.getInt(6); /*if (rs.wasNull()) { chanId = 0; }*/ int fragmentNodeId = 0; IALNodeDescription nodeDesc= null; // Trying to get the node if it already exists //ALNode node = (ALNode) layout.get(structId+""); ALNode node; String childIdStr = null; if ( childId > 0 ) { node = new ALFolder(); IALFolderDescription folderDesc = new ALFolderDescription(); // If children exist in the folder ((ALFolder)node).setFirstChildNodeId(childId+""); String type = rs.getString(8); int intType; if ( "header".equalsIgnoreCase(type)) intType = UserLayoutFolderDescription.HEADER_TYPE; else if ( "footer".equalsIgnoreCase(type)) intType = UserLayoutFolderDescription.FOOTER_TYPE; else intType = UserLayoutFolderDescription.REGULAR_TYPE; folderDesc.setFolderType(intType); nodeDesc = folderDesc; } else { node = new ALChannel(); ALChannelDescription channelDesc = new ALChannelDescription(); channelDesc.setChannelPublishId(rs.getString(6)); nodeDesc = channelDesc; } // Setting node description attributes if ( node.getNodeType() == IUserLayoutNodeDescription.FOLDER ) nodeDesc.setName(rs.getString(7)); nodeDesc.setHidden(("Y".equalsIgnoreCase(rs.getString(9))?true:false)); nodeDesc.setImmutable(("Y".equalsIgnoreCase(rs.getString(11))?true:false)); nodeDesc.setUnremovable(("Y".equalsIgnoreCase(rs.getString(10))?true:false)); node.setPriority(rs.getInt(12)); nodeDesc.setFragmentId(fragmentIdStr); // Setting the node id nodeDesc.setId(structId+""); // Setting the next node id if ( nextId != 0 ) { node.setNextNodeId(nextId+""); } String parentId; switch ( prntId ) { case 0: parentId = IALFolderDescription.ROOT_FOLDER_ID; break; case LOST_FOLDER_ID: parentId = IALFolderDescription.LOST_FOLDER_ID; break; default: parentId = prntId+""; } // Setting up the parent id node.setParentNodeId(parentId); // Setting the previous node id if ( prevId != 0 ) { node.setPreviousNodeId(prevId+""); } lastStructId = structId; // Putting the node into the layout hashtable with an appropriate key node.setNodeDescription(nodeDesc); layoutData.put(nodeDesc.getId(),node); // If there is a channel we need to get its parameters IALChannelDescription channelDesc = null; if ( node.getNodeType() == IUserLayoutNodeDescription.CHANNEL ) { channelDesc = (IALChannelDescription) nodeDesc; chanIds.add(nodeDesc.getId()); } // getting restrictions for the nodes PreparedStatement psRestr = null; psRestr = con.prepareStatement(restrFragmentSQL); psRestr.setInt(1,fragmentId); psRestr.setInt(2,structId); ResultSet rsRestr = psRestr.executeQuery(); while (rsRestr.next()) { int restrType = rsRestr.getInt(1); String restrExp = rsRestr.getString(2); String restrPath = rsRestr.getString(3); if ( restrPath == null || restrPath.trim().length() == 0 ) restrPath = UserLayoutRestriction.LOCAL_RESTRICTION; IUserLayoutRestriction restriction = UserLayoutRestrictionFactory.createRestriction(restrType,restrExp,restrPath); nodeDesc.addRestriction(restriction); } rsRestr.close(); if ( psRestr != null ) psRestr.close(); if (RDBMServices.supportsOuterJoins) { do { String name = rs.getString(14); String value = rs.getString(15); // Oracle JDBC requires us to do this for longs if (name != null) { // may not be there because of the join if ( channelDesc != null ) channelDesc.setParameterValue(name,value); } if (!rs.next()) { break readLayout; } structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } while (structId == lastStructId); } else { // Do second SELECT later on for structure parameters // Adding the channel ID to the String buffer if ( node.getNodeType() == IUserLayoutNodeDescription.CHANNEL ) { structParms.append(sepChar + chanId); sepChar = ","; } if (rs.next()) { structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } else { break readLayout; } } //end else // Setting up the priority values based on the appropriate priority restrictions PriorityRestriction priorityRestriction = AggregatedLayoutManager.getPriorityRestriction(node); if ( priorityRestriction != null ) { int priority = node.getPriority(); int[] range = priorityRestriction.getRange(); int newPriority = priority; if ( range[0] > priority ) newPriority = range[0]; else if ( range[1] < priority ) newPriority = range[1]; // Changing the node priority if it's been changed if ( newPriority != priority ) node.setPriority(newPriority); } } // while } } finally { rs.close(); } // We have to retrieve the channel defition after the layout structure // since retrieving the channel data from the DB may interfere with the // layout structure ResultSet (in other words, Oracle is a pain to program for) if (chanIds.size() > 0) { for (int i = 0; i < chanIds.size(); i++) { String key = (String) chanIds.get(i); ALNode node = (ALNode) layoutData.get(key); fillChannelDescription( (IALChannelDescription) node.getNodeDescription() ); } // end for chanIds.clear(); } if ( !RDBMServices.supportsOuterJoins && structParms.length() > 0 ) { // Pick up structure parameters String sql = "SELECT NODE_ID, PARAM_NAME, PARAM_VALUE FROM UP_FRAGMENT_PARAM WHERE FRAGMENT_ID=" + fragmentId + " AND NODE_ID IN (" + structParms.toString() + ") ORDER BY NODE_ID"; LogService.log(LogService.DEBUG, "AggregatedUserLayoutStore::getFragment(): " + sql); // Adding this to prevent the error "closed statement" in Oracle Statement st = con.createStatement(); rs = st.executeQuery(sql); try { if (rs.next()) { int structId = rs.getInt(1); readParm: while(true) { //LayoutStructure ls = (LayoutStructure)layoutStructure.get(new Integer(structId)); ALNode node = (ALNode) layoutData.get(structId+""); if ( node != null && node.getNodeType() == IUserLayoutNodeDescription.CHANNEL ) { IALChannelDescription channelDesc = (IALChannelDescription) node.getNodeDescription(); int lastStructId = structId; do { String name = rs.getString(2); String value = rs.getString(3); channelDesc.setParameterValue(name,value); if (!rs.next()) { break readParm; } } while ((structId = rs.getInt(1)) == lastStructId); } else break readParm; // if else } } } finally { rs.close(); st.close(); } } if ( psFragment != null ) psFragment.close(); if ( stmt != null ) stmt.close(); long stopTime = System.currentTimeMillis(); LogService.log(LogService.DEBUG, "AggregatedUserLayoutStore::getFragment(): Layout document for user " + userId + " took " + (stopTime - startTime) + " milliseconds to create"); } catch ( Exception e ) { e.printStackTrace(); LogService.log(LogService.ERROR,e); throw new PortalException(e); } finally { RDBMServices.releaseConnection(con); } layout.setLayoutData ( layoutData ); return layout; }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/7ef1a5c1331f4eecf6a6a8cfc453fed8eb52a4bd/AggregatedUserLayoutStore.java/clean/source/org/jasig/portal/layout/AggregatedUserLayoutStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
467,
3744,
7456,
2812,
3520,
261,
2579,
3565,
6175,
16,
514,
5481,
548,
1585,
262,
1216,
25478,
503,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
565,
509,
5481,
548,
273,
5658,
1989,
18,
2670,
1702,
12,
11956,
548,
1585,
1769,
565,
509,
2863,
10502,
273,
6249,
31,
565,
10842,
3597,
31,
565,
7981,
7456,
3511,
273,
394,
7981,
7456,
261,
5481,
548,
1585,
11272,
565,
4050,
356,
273,
446,
31,
565,
18559,
3511,
751,
273,
446,
31,
565,
7981,
3899,
10181,
273,
394,
7981,
3899,
5621,
225,
775,
288,
3639,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
3639,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
5743,
1769,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
3511,
751,
273,
394,
18559,
5621,
3639,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
368,
18011,
16,
732,
1608,
358,
2917,
1542,
3511,
16164,
1427,
1846,
848,
2537,
741,
333,
30,
3639,
368,
3639,
509,
3511,
548,
33,
5040,
18,
588,
3744,
548,
5621,
3639,
368,
1496,
364,
2037,
30,
3639,
514,
400,
313,
7456,
3997,
273,
315,
4803,
8392,
2259,
3106,
67,
2399,
16,
8392,
2259,
3106,
67,
4051,
16,
8392,
2259,
3106,
67,
26557,
67,
4211,
4571,
7376,
67,
9981,
26903,
67,
12030,
2259,
3106,
55,
13773,
4766,
1377,
315,
12299,
14583,
26903,
67,
734,
17282,
4116,
11922,
67,
734,
25501,
31,
3639,
509,
1122,
3823,
548,
273,
300,
21,
31,
3639,
514,
26656,
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,
1071,
467,
3744,
7456,
2812,
3520,
261,
2579,
3565,
6175,
16,
514,
5481,
548,
1585,
262,
1216,
25478,
503,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
565,
509,
5481,
548,
273,
5658,
1989,
18,
2670,
1702,
12,
11956,
548,
1585,
1769,
565,
509,
2863,
10502,
273,
6249,
31,
565,
10842,
3597,
31,
565,
7981,
7456,
3511,
273,
394,
7981,
7456,
261,
5481,
548,
1585,
11272,
565,
4050,
356,
273,
446,
31,
565,
18559,
3511,
751,
273,
446,
31,
565,
7981,
3899,
10181,
273,
394,
7981,
3899,
5621,
225,
775,
288,
3639,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
3639,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
5743,
1769,
2
] |
match(input,INT,FOLLOW_INT_in_literal_constraint1916);
|
match(input,INT,FOLLOW_INT_in_literal_constraint1961);
|
public String literal_constraint() throws RecognitionException { String text; Token t=null; text = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:711:17: ( (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:711:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:711:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= 'null' ) int alt51=5; switch ( input.LA(1) ) { case STRING: alt51=1; break; case INT: alt51=2; break; case FLOAT: alt51=3; break; case BOOL: alt51=4; break; case 48: alt51=5; break; default: NoViableAltException nvae = new NoViableAltException("711:17: (t= STRING | t= INT | t= FLOAT | t= BOOL | t= \'null\' )", 51, 0, input); throw nvae; } switch (alt51) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:711:25: t= STRING { t=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_literal_constraint1905); text = getString( t ); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:712:25: t= INT { t=(Token)input.LT(1); match(input,INT,FOLLOW_INT_in_literal_constraint1916); text = t.getText(); } break; case 3 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:713:25: t= FLOAT { t=(Token)input.LT(1); match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint1929); text = t.getText(); } break; case 4 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:714:25: t= BOOL { t=(Token)input.LT(1); match(input,BOOL,FOLLOW_BOOL_in_literal_constraint1940); text = t.getText(); } break; case 5 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:715:25: t= 'null' { t=(Token)input.LT(1); match(input,48,FOLLOW_48_in_literal_constraint1952); text = null; } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; }
|
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/35c3932466a0269c296ae52afa8a1f8048a309d2/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7158,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
268,
33,
2011,
31,
540,
202,
202,
955,
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,
27,
2499,
30,
4033,
30,
261,
261,
88,
33,
9469,
571,
268,
33,
6137,
571,
268,
33,
15483,
571,
268,
33,
9784,
1741,
571,
268,
33,
296,
2011,
11,
262,
262,
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,
27,
2499,
30,
4033,
30,
261,
88,
33,
9469,
571,
268,
33,
6137,
571,
268,
33,
15483,
571,
268,
33,
9784,
1741,
571,
268,
33,
296,
2011,
11,
262,
5411,
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,
27,
2499,
30,
4033,
30,
261,
88,
33,
9469,
571,
268,
33,
6137,
571,
268,
33,
15483,
571,
268,
33,
9784,
1741,
571,
268,
33,
296,
2011,
11,
262,
5411,
509,
3770,
10593,
33,
25,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7158,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
31,
3639,
3155,
268,
33,
2011,
31,
540,
202,
202,
955,
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,
27,
2499,
30,
4033,
30,
261,
261,
88,
33,
9469,
571,
268,
33,
6137,
571,
268,
33,
15483,
571,
268,
33,
9784,
1741,
571,
268,
33,
296,
2011,
11,
262,
262,
5411,
368,
342,
6588,
19,
70,
947,
19,
17300,
87,
19,
10649,
8464,
7482,
19,
12215,
17,
9576,
19,
4816,
2
] |
String activePartId2 = handlerSubmission.getActivePartId(); String activePerspectiveId2 = handlerSubmission .getActivePerspectiveId();
|
IPerspectiveDescriptor activePerspectiveDescriptor2 = handlerSubmission .getActivePerspectiveDescriptor(); IWorkbenchSite activeWorkbenchSite2 = handlerSubmission .getActiveWorkbenchSite();
|
private void processHandlerSubmissionsImpl(boolean force) { Map handlersByCommandId = new HashMap(); String activePartId = null; String activePerspectiveId = null; IWorkbenchWindow activeWorkbenchWindow = workbench .getActiveWorkbenchWindow(); if (this.activeWorkbenchWindow != activeWorkbenchWindow) { if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.removePageListener(pageListener); this.activeWorkbenchWindow .removePerspectiveListener(perspectiveListener); this.activeWorkbenchWindow.getPartService().removePartListener( partListener); } this.activeWorkbenchWindow = activeWorkbenchWindow; if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.addPageListener(pageListener); this.activeWorkbenchWindow .addPerspectiveListener(perspectiveListener); this.activeWorkbenchWindow.getPartService().addPartListener( partListener); } } if (activeWorkbenchWindow != null) { IWorkbenchPage activeWorkbenchPage = activeWorkbenchWindow .getActivePage(); if (activeWorkbenchPage != null) { IWorkbenchPart activeWorkbenchPart = activeWorkbenchPage .getActivePart(); if (activeWorkbenchPart != null) { IWorkbenchPartSite activeWorkbenchPartSite = activeWorkbenchPart .getSite(); if (activeWorkbenchPartSite != null) activePartId = activeWorkbenchPartSite.getId(); } IPerspectiveDescriptor perspectiveDescriptor = activeWorkbenchPage .getPerspective(); if (perspectiveDescriptor != null) activePerspectiveId = perspectiveDescriptor.getId(); } } if (force || !Util.equals(this.activePartId, activePartId) || !Util.equals(this.activePerspectiveId, activePerspectiveId)) { this.activePartId = activePartId; this.activePerspectiveId = activePerspectiveId; for (Iterator iterator = handlerSubmissionsByCommandId.entrySet() .iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String commandId = (String) entry.getKey(); List handlerSubmissions = (List) entry.getValue(); SortedSet matchingHandlerSubmissions = null; for (Iterator iterator2 = handlerSubmissions.iterator(); iterator2 .hasNext();) { HandlerSubmission handlerSubmission = (HandlerSubmission) iterator2 .next(); String activePartId2 = handlerSubmission.getActivePartId(); String activePerspectiveId2 = handlerSubmission .getActivePerspectiveId(); if (activePartId2 != null && activePartId2 != activePartId) continue; if (activePerspectiveId2 != null && activePerspectiveId2 != activePerspectiveId) continue; if (matchingHandlerSubmissions == null) matchingHandlerSubmissions = new TreeSet(); matchingHandlerSubmissions.add(handlerSubmission); } if (matchingHandlerSubmissions != null) { HandlerSubmission bestHandlerSubmission = (HandlerSubmission) matchingHandlerSubmissions .last(); handlersByCommandId.put(commandId, bestHandlerSubmission .getHandler()); } } ((CommandManager) mutableCommandManager) .setHandlersByCommandId(handlersByCommandId); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/cfbc2a2b70a46188163d4d17f344440e759a0f7d/WorkbenchCommandSupport.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/ws/WorkbenchCommandSupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1503,
1676,
7300,
2828,
12,
6494,
2944,
13,
288,
3639,
1635,
4919,
858,
2189,
548,
273,
394,
4317,
5621,
3639,
514,
2695,
1988,
548,
273,
446,
31,
3639,
514,
2695,
14781,
16772,
548,
273,
446,
31,
3639,
467,
2421,
22144,
3829,
2695,
2421,
22144,
3829,
273,
1440,
22144,
7734,
263,
588,
3896,
2421,
22144,
3829,
5621,
3639,
309,
261,
2211,
18,
3535,
2421,
22144,
3829,
480,
2695,
2421,
22144,
3829,
13,
288,
5411,
309,
261,
2211,
18,
3535,
2421,
22144,
3829,
480,
446,
13,
288,
7734,
333,
18,
3535,
2421,
22144,
3829,
18,
4479,
1964,
2223,
12,
2433,
2223,
1769,
7734,
333,
18,
3535,
2421,
22144,
3829,
13491,
263,
4479,
14781,
16772,
2223,
12,
10422,
16772,
2223,
1769,
7734,
333,
18,
3535,
2421,
22144,
3829,
18,
588,
1988,
1179,
7675,
4479,
1988,
2223,
12,
13491,
1087,
2223,
1769,
5411,
289,
5411,
333,
18,
3535,
2421,
22144,
3829,
273,
2695,
2421,
22144,
3829,
31,
5411,
309,
261,
2211,
18,
3535,
2421,
22144,
3829,
480,
446,
13,
288,
7734,
333,
18,
3535,
2421,
22144,
3829,
18,
1289,
1964,
2223,
12,
2433,
2223,
1769,
7734,
333,
18,
3535,
2421,
22144,
3829,
13491,
263,
1289,
14781,
16772,
2223,
12,
10422,
16772,
2223,
1769,
7734,
333,
18,
3535,
2421,
22144,
3829,
18,
588,
1988,
1179,
7675,
1289,
1988,
2223,
12,
13491,
1087,
2223,
1769,
5411,
289,
3639,
289,
3639,
309,
261,
3535,
2421,
22144,
3829,
480,
446,
13,
288,
5411,
467,
2421,
22144,
1964,
2695,
2421,
22144,
1964,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
1503,
1676,
7300,
2828,
12,
6494,
2944,
13,
288,
3639,
1635,
4919,
858,
2189,
548,
273,
394,
4317,
5621,
3639,
514,
2695,
1988,
548,
273,
446,
31,
3639,
514,
2695,
14781,
16772,
548,
273,
446,
31,
3639,
467,
2421,
22144,
3829,
2695,
2421,
22144,
3829,
273,
1440,
22144,
7734,
263,
588,
3896,
2421,
22144,
3829,
5621,
3639,
309,
261,
2211,
18,
3535,
2421,
22144,
3829,
480,
2695,
2421,
22144,
3829,
13,
288,
5411,
309,
261,
2211,
18,
3535,
2421,
22144,
3829,
480,
446,
13,
288,
7734,
333,
18,
3535,
2421,
22144,
3829,
18,
4479,
1964,
2223,
12,
2433,
2223,
1769,
7734,
333,
18,
3535,
2421,
22144,
3829,
13491,
263,
4479,
14781,
16772,
2223,
12,
10422,
2
] |
throws DOMTestIncompatibleException { factory.setCoalescing(value); }
|
throws DOMTestIncompatibleException { factory.setCoalescing(value); }
|
public void applySetting(DocumentBuilderFactory factory, boolean value) throws DOMTestIncompatibleException { factory.setCoalescing(value); }
|
54650 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54650/195084c3dfe53a38a688af3b2c5e5eeaad9270e0/DocumentBuilderSettingStrategy.java/buggy/java/org/w3c/domts/DocumentBuilderSettingStrategy.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2230,
5568,
12,
2519,
20692,
3272,
16,
1250,
460,
13,
1850,
1216,
4703,
4709,
24272,
503,
288,
1850,
3272,
18,
542,
4249,
287,
742,
310,
12,
1132,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
918,
2230,
5568,
12,
2519,
20692,
3272,
16,
1250,
460,
13,
1850,
1216,
4703,
4709,
24272,
503,
288,
1850,
3272,
18,
542,
4249,
287,
742,
310,
12,
1132,
1769,
3639,
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
] |
ex.printStackTrace();
|
protected void applyFilter() { if (m_IOThread == null) { m_IOThread = new Thread() { public void run() { try { Filter filter = (Filter) m_FilterEditor.getValue(); if (filter != null) { if (m_Log instanceof TaskLogger) { ((TaskLogger)m_Log).taskStarted(); } m_Log.statusMessage("Saving undo information"); addUndoPoint(); m_Log.statusMessage("Passing dataset through filter " + filter.getClass().getName()); filter.setInputFormat(m_Instances); m_Instances = filter.useFilter(m_Instances, filter); setInstances(m_Instances); if (m_Log instanceof TaskLogger) { ((TaskLogger)m_Log).taskFinished(); } } } catch (Exception ex) { if (m_Log instanceof TaskLogger) { ((TaskLogger)m_Log).taskFinished(); } // Pop up an error optionpane JOptionPane.showMessageDialog(PreprocessPanel.this, "Problem filtering instances:\n" + ex.getMessage(), "Apply Filter", JOptionPane.ERROR_MESSAGE); ex.printStackTrace(); m_Log.logMessage("Problem filtering instances: " + ex.getMessage()); } m_IOThread = null; } }; m_IOThread.setPriority(Thread.MIN_PRIORITY); // UI has most priority m_IOThread.start(); } else { JOptionPane.showMessageDialog(this, "Can't apply filter at this time,\n" + "currently busy with other IO", "Apply Filter", JOptionPane.WARNING_MESSAGE); } }
|
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/77c4b27f4f81952f906103043b7a7608073d72f8/PreprocessPanel.java/buggy/trunk/weka/gui/explorer/PreprocessPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
2230,
1586,
1435,
288,
565,
309,
261,
81,
67,
4294,
3830,
422,
446,
13,
288,
1377,
312,
67,
4294,
3830,
273,
394,
4884,
1435,
288,
202,
482,
918,
1086,
1435,
288,
202,
225,
775,
288,
202,
565,
4008,
1034,
273,
261,
1586,
13,
312,
67,
1586,
6946,
18,
24805,
5621,
202,
565,
309,
261,
2188,
480,
446,
13,
288,
202,
377,
202,
1377,
309,
261,
81,
67,
1343,
1276,
3837,
3328,
13,
288,
202,
202,
12443,
2174,
3328,
13,
81,
67,
1343,
2934,
4146,
9217,
5621,
202,
1377,
289,
202,
1377,
312,
67,
1343,
18,
2327,
1079,
2932,
24660,
15436,
1779,
8863,
202,
1377,
527,
31224,
2148,
5621,
202,
1377,
312,
67,
1343,
18,
2327,
1079,
2932,
6433,
310,
3709,
3059,
1034,
315,
6862,
225,
397,
1034,
18,
588,
797,
7675,
17994,
10663,
202,
1377,
1034,
18,
542,
1210,
1630,
12,
81,
67,
5361,
1769,
202,
1377,
312,
67,
5361,
273,
1034,
18,
1202,
1586,
12,
81,
67,
5361,
16,
1034,
1769,
202,
1377,
444,
5361,
12,
81,
67,
5361,
1769,
202,
1377,
309,
261,
81,
67,
1343,
1276,
3837,
3328,
13,
288,
202,
202,
12443,
2174,
3328,
13,
81,
67,
1343,
2934,
4146,
10577,
5621,
202,
1377,
289,
202,
565,
289,
202,
377,
202,
225,
289,
1044,
261,
503,
431,
13,
288,
1082,
565,
309,
261,
81,
67,
1343,
1276,
3837,
3328,
13,
288,
202,
1377,
14015,
2174,
3328,
13,
81,
67,
1343,
2934,
4146,
10577,
5621,
202,
565,
289,
202,
565,
368,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
2230,
1586,
1435,
288,
565,
309,
261,
81,
67,
4294,
3830,
422,
446,
13,
288,
1377,
312,
67,
4294,
3830,
273,
394,
4884,
1435,
288,
202,
482,
918,
1086,
1435,
288,
202,
225,
775,
288,
202,
565,
4008,
1034,
273,
261,
1586,
13,
312,
67,
1586,
6946,
18,
24805,
5621,
202,
565,
309,
261,
2188,
480,
446,
13,
288,
202,
377,
202,
1377,
309,
261,
81,
67,
1343,
1276,
3837,
3328,
13,
288,
202,
202,
12443,
2174,
3328,
13,
81,
67,
1343,
2934,
4146,
9217,
5621,
202,
1377,
289,
202,
1377,
312,
67,
1343,
18,
2327,
1079,
2932,
24660,
15436,
1779,
8863,
202,
1377,
527,
31224,
2148,
5621,
202,
1377,
312,
67,
1343,
18,
2327,
1079,
2
] |
|
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText();
|
public quickfix.field.EncodedText getEncodedText() throws FieldNotFound { quickfix.field.EncodedText value = new quickfix.field.EncodedText();
|
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix43/OrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
28799,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10397,
1528,
28799,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throws SQLException, AuthorizeException
|
throws SQLException, AuthorizeException, EPersonDeletionException
|
public void delete() throws SQLException, AuthorizeException { // authorized? if( !AuthorizeManager.isAdmin(myContext) ) { throw new AuthorizeException( "You must be an admin to delete an EPerson"); } HistoryManager.saveHistory(myContext, this, HistoryManager.REMOVE, myContext.getCurrentUser(), myContext.getExtraLogInfo()); // Remove from cache myContext.removeCached(this, getID()); // Remove any group memberships first DatabaseManager.updateQuery(myContext, "DELETE FROM EPersonGroup2EPerson WHERE eperson_id=" + getID() ); // Remove ourself DatabaseManager.delete(myContext, myRow); log.info( LogManager.getHeader(myContext, "delete_eperson", "eperson_id=" + getID() ) ); }
|
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/8a35cd4cf59afc2f3ca7167bca7acc77f2b8a435/EPerson.java/buggy/dspace/src/org/dspace/eperson/EPerson.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
1435,
3639,
1216,
6483,
16,
23859,
503,
16,
512,
8346,
13064,
503,
565,
288,
3639,
368,
10799,
35,
3639,
309,
12,
401,
18987,
1318,
18,
291,
4446,
12,
4811,
1042,
13,
262,
3639,
288,
5411,
604,
394,
23859,
503,
12,
7734,
315,
6225,
1297,
506,
392,
3981,
358,
1430,
392,
512,
8346,
8863,
3639,
289,
3639,
16058,
1318,
18,
5688,
5623,
12,
4811,
1042,
16,
5411,
333,
16,
5411,
16058,
1318,
18,
22122,
16,
5411,
3399,
1042,
18,
588,
3935,
1299,
9334,
5411,
3399,
1042,
18,
588,
7800,
1343,
966,
10663,
3639,
368,
3581,
628,
1247,
3639,
3399,
1042,
18,
4479,
9839,
12,
2211,
16,
14744,
10663,
3639,
202,
759,
3581,
1281,
1041,
12459,
87,
1122,
3639,
202,
4254,
1318,
18,
2725,
1138,
12,
4811,
1042,
16,
5411,
315,
6460,
4571,
512,
8346,
1114,
22,
41,
8346,
4852,
5529,
3565,
67,
350,
1546,
397,
7734,
202,
588,
734,
1435,
11272,
3639,
368,
3581,
3134,
2890,
3639,
5130,
1318,
18,
3733,
12,
4811,
1042,
16,
3399,
1999,
1769,
3639,
613,
18,
1376,
12,
10792,
1827,
1318,
18,
588,
1864,
12,
4811,
1042,
16,
10792,
315,
3733,
67,
881,
3565,
3113,
10792,
315,
881,
3565,
67,
350,
1546,
397,
14744,
1435,
262,
7734,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
1435,
3639,
1216,
6483,
16,
23859,
503,
16,
512,
8346,
13064,
503,
565,
288,
3639,
368,
10799,
35,
3639,
309,
12,
401,
18987,
1318,
18,
291,
4446,
12,
4811,
1042,
13,
262,
3639,
288,
5411,
604,
394,
23859,
503,
12,
7734,
315,
6225,
1297,
506,
392,
3981,
358,
1430,
392,
512,
8346,
8863,
3639,
289,
3639,
16058,
1318,
18,
5688,
5623,
12,
4811,
1042,
16,
5411,
333,
16,
5411,
16058,
1318,
18,
22122,
16,
5411,
3399,
1042,
18,
588,
3935,
1299,
9334,
5411,
3399,
1042,
18,
588,
7800,
1343,
966,
10663,
3639,
368,
3581,
628,
1247,
3639,
3399,
1042,
18,
4479,
9839,
12,
2211,
16,
14744,
10663,
3639,
202,
759,
3581,
1281,
1041,
12459,
87,
2
] |
if (ruleElement.hasAttribute("symboltable") && ruleElement.getAttribute("symboltable").equals("true")) { rule.setUsesSymbolTable(); }
|
private void parseInternallyDefinedRuleNode(RuleSet ruleSet, Node ruleNode) throws ClassNotFoundException, InstantiationException, IllegalAccessException { Element ruleElement = (Element) ruleNode; String attribute = ruleElement.getAttribute("class"); Rule rule = (Rule)classLoader.loadClass(attribute).newInstance(); rule.setName(ruleElement.getAttribute("name")); rule.setMessage(ruleElement.getAttribute("message")); rule.setRuleSetName(ruleSet.getName()); if (ruleElement.hasAttribute("symboltable") && ruleElement.getAttribute("symboltable").equals("true")) { rule.setUsesSymbolTable(); } if (ruleElement.hasAttribute("dfa") && ruleElement.getAttribute("dfa").equals("true")) { rule.setUsesDFA(); } for (int i = 0; i < ruleElement.getChildNodes().getLength(); i++) { Node node = ruleElement.getChildNodes().item(i); if (node.getNodeType() == Node.ELEMENT_NODE) { if (node.getNodeName().equals("description")) { rule.setDescription(parseTextNode(node)); } else if (node.getNodeName().equals("example")) { rule.setExample(parseTextNode(node)); } else if (node.getNodeName().equals("priority")) { rule.setPriority(new Integer(parseTextNode(node).trim()).intValue()); } else if (node.getNodeName().equals("properties")) { Properties p = new Properties(); parsePropertiesNode(p, node); for (Iterator j = p.keySet().iterator(); j.hasNext();) { String key = (String)j.next(); rule.addProperty(key, p.getProperty(key)); } } } } ruleSet.addRule(rule); }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/d2e32f7d3c977884d249c88ff190aa2f8babcd92/RuleSetFactory.java/buggy/pmd/src/net/sourceforge/pmd/RuleSetFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1109,
21843,
1230,
8116,
2175,
907,
12,
21474,
31897,
16,
2029,
1720,
907,
13,
1216,
10403,
16,
19248,
16,
11900,
288,
3639,
3010,
1720,
1046,
273,
261,
1046,
13,
1720,
907,
31,
3639,
514,
1566,
273,
1720,
1046,
18,
588,
1499,
2932,
1106,
8863,
3639,
6781,
1720,
273,
261,
2175,
13,
1106,
2886,
18,
945,
797,
12,
4589,
2934,
2704,
1442,
5621,
3639,
1720,
18,
542,
461,
12,
5345,
1046,
18,
588,
1499,
2932,
529,
7923,
1769,
3639,
1720,
18,
542,
1079,
12,
5345,
1046,
18,
588,
1499,
2932,
2150,
7923,
1769,
3639,
1720,
18,
542,
2175,
11924,
12,
5345,
694,
18,
17994,
10663,
3639,
309,
261,
5345,
1046,
18,
5332,
1499,
2932,
7175,
2121,
7923,
597,
1720,
1046,
18,
588,
1499,
2932,
7175,
2121,
20387,
14963,
2932,
3767,
6,
3719,
288,
5411,
1720,
18,
542,
15128,
5335,
1388,
5621,
3639,
289,
3639,
309,
261,
5345,
1046,
18,
5332,
1499,
2932,
72,
507,
7923,
597,
1720,
1046,
18,
588,
1499,
2932,
72,
507,
20387,
14963,
2932,
3767,
6,
3719,
288,
5411,
1720,
18,
542,
15128,
40,
2046,
5621,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1720,
1046,
18,
588,
22460,
7675,
588,
1782,
5621,
277,
27245,
288,
5411,
2029,
756,
273,
1720,
1046,
18,
588,
22460,
7675,
1726,
12,
77,
1769,
5411,
309,
261,
2159,
18,
588,
15101,
1435,
422,
2029,
18,
10976,
67,
8744,
13,
288,
7734,
309,
261,
2159,
18,
588,
18948,
7675,
14963,
2932,
3384,
6,
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,
1109,
21843,
1230,
8116,
2175,
907,
12,
21474,
31897,
16,
2029,
1720,
907,
13,
1216,
10403,
16,
19248,
16,
11900,
288,
3639,
3010,
1720,
1046,
273,
261,
1046,
13,
1720,
907,
31,
3639,
514,
1566,
273,
1720,
1046,
18,
588,
1499,
2932,
1106,
8863,
3639,
6781,
1720,
273,
261,
2175,
13,
1106,
2886,
18,
945,
797,
12,
4589,
2934,
2704,
1442,
5621,
3639,
1720,
18,
542,
461,
12,
5345,
1046,
18,
588,
1499,
2932,
529,
7923,
1769,
3639,
1720,
18,
542,
1079,
12,
5345,
1046,
18,
588,
1499,
2932,
2150,
7923,
1769,
3639,
1720,
18,
542,
2175,
11924,
12,
5345,
694,
18,
17994,
10663,
3639,
309,
261,
5345,
1046,
18,
5332,
1499,
2932,
7175,
2121,
7923,
2
] |
|
if(dialogArea == null || dialogArea.isDisposed()) {
|
if (dialogArea == null || dialogArea.isDisposed()) {
|
void refresh() { if(AUTOMATED_MODE) { return; } //Do not refresh if we are in the process of //opening or shutting down if(dialogArea == null || dialogArea.isDisposed()) { return; } if (isMultipleJobErrors()) { if (jobListViewer == null ) { // The job list doesn't exist so create it. setMessage(ProgressMessages.JobErrorDialog_MultipleErrorsMessage); getShell().setText(ProgressMessages.JobErrorDialog_MultipleErrorsTitle); createJobListArea((Composite)dialogArea); showDetailsArea(); } refreshJobList(); } updateEnablements(); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3a0562fdabac5839be163527744a56eaeeb31ec5/JobErrorDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobErrorDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4460,
1435,
288,
377,
202,
377,
202,
430,
12,
37,
1693,
1872,
6344,
67,
7038,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
377,
202,
377,
202,
759,
3244,
486,
4460,
309,
732,
854,
316,
326,
1207,
434,
1377,
202,
759,
3190,
310,
578,
24376,
2588,
377,
202,
430,
12,
12730,
5484,
422,
446,
747,
6176,
5484,
18,
291,
1669,
7423,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
5411,
309,
261,
291,
8438,
2278,
4229,
10756,
288,
5411,
309,
261,
4688,
682,
18415,
422,
446,
262,
288,
202,
5411,
368,
1021,
1719,
666,
3302,
1404,
1005,
1427,
752,
518,
18,
202,
5411,
15227,
12,
5491,
5058,
18,
2278,
668,
6353,
67,
8438,
4229,
1079,
1769,
3196,
5411,
7932,
1165,
7675,
542,
1528,
12,
5491,
5058,
18,
2278,
668,
6353,
67,
8438,
4229,
4247,
1769,
3196,
5411,
752,
2278,
682,
5484,
12443,
9400,
13,
12730,
5484,
1769,
202,
5411,
2405,
3790,
5484,
5621,
5411,
289,
202,
3639,
4460,
2278,
682,
5621,
3639,
289,
3639,
1089,
8317,
1346,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4460,
1435,
288,
377,
202,
377,
202,
430,
12,
37,
1693,
1872,
6344,
67,
7038,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
377,
202,
377,
202,
759,
3244,
486,
4460,
309,
732,
854,
316,
326,
1207,
434,
1377,
202,
759,
3190,
310,
578,
24376,
2588,
377,
202,
430,
12,
12730,
5484,
422,
446,
747,
6176,
5484,
18,
291,
1669,
7423,
10756,
288,
1082,
202,
2463,
31,
202,
202,
97,
5411,
309,
261,
291,
8438,
2278,
4229,
10756,
288,
5411,
309,
261,
4688,
682,
18415,
422,
446,
262,
288,
202,
5411,
368,
1021,
1719,
666,
3302,
1404,
1005,
1427,
752,
518,
18,
202,
5411,
15227,
12,
5491,
5058,
18,
2278,
668,
6353,
67,
8438,
4229,
1079,
2
] |
InstanceData instanceData = XFormsUtils.getLocalInstanceData((Node) node);
|
InstanceData instanceData = XFormsUtils.getLocalInstanceData(node);
|
public void handleNode(Node node) { // Evaluate "relevant" XPath expression on this node String xpath = "boolean(" + modelBind.getRelevant() + ")"; PooledXPathExpression expr = XPathCache.getXPathExpression(pipelineContext, documentWrapper.wrap(node), xpath, modelBind.getNamespaceMap(), null, xformsFunctionLibrary, modelBind.getLocationData().getSystemID()); try { boolean relevant = ((Boolean) expr.evaluateSingle()).booleanValue(); // Mark node InstanceData instanceData = XFormsUtils.getLocalInstanceData((Node) node); instanceData.getRelevant().set(relevant); } catch (XPathException e) { throw new ValidationException(e.getMessage() + " when evaluating '" + xpath + "'", modelBind.getLocationData()); } finally { if (expr != null) expr.returnToPool(); } }
|
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/66acaed95d3b3b6086c41954e56da6575fb0d832/XFormsModel.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1640,
907,
12,
907,
756,
13,
288,
10792,
368,
18176,
315,
27719,
6,
10172,
2652,
603,
333,
756,
10792,
514,
6748,
273,
315,
6494,
2932,
397,
938,
3357,
18,
588,
17018,
7445,
1435,
397,
7310,
31,
10792,
453,
22167,
14124,
2300,
3065,
273,
10172,
1649,
18,
588,
14124,
2300,
12,
14511,
1042,
16,
18701,
1668,
3611,
18,
4113,
12,
2159,
3631,
6748,
16,
938,
3357,
18,
588,
3402,
863,
9334,
446,
16,
18701,
619,
9741,
2083,
9313,
16,
938,
3357,
18,
588,
2735,
751,
7675,
588,
3163,
734,
10663,
10792,
775,
288,
13491,
1250,
9368,
273,
14015,
5507,
13,
3065,
18,
21024,
5281,
1435,
2934,
6494,
620,
5621,
13491,
368,
6622,
756,
13491,
5180,
751,
791,
751,
273,
1139,
18529,
1989,
18,
588,
2042,
1442,
751,
12,
2159,
1769,
13491,
791,
751,
18,
588,
17018,
7445,
7675,
542,
12,
27719,
1769,
10792,
289,
1044,
261,
14124,
503,
425,
13,
288,
13491,
604,
394,
15614,
12,
73,
18,
24906,
1435,
397,
315,
1347,
26704,
2119,
397,
6748,
397,
2491,
3113,
938,
3357,
18,
588,
2735,
751,
10663,
10792,
289,
3095,
288,
13491,
309,
261,
8638,
480,
446,
13,
18701,
3065,
18,
2463,
774,
2864,
5621,
10792,
289,
7734,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
1640,
907,
12,
907,
756,
13,
288,
10792,
368,
18176,
315,
27719,
6,
10172,
2652,
603,
333,
756,
10792,
514,
6748,
273,
315,
6494,
2932,
397,
938,
3357,
18,
588,
17018,
7445,
1435,
397,
7310,
31,
10792,
453,
22167,
14124,
2300,
3065,
273,
10172,
1649,
18,
588,
14124,
2300,
12,
14511,
1042,
16,
18701,
1668,
3611,
18,
4113,
12,
2159,
3631,
6748,
16,
938,
3357,
18,
588,
3402,
863,
9334,
446,
16,
18701,
619,
9741,
2083,
9313,
16,
938,
3357,
18,
588,
2735,
751,
7675,
588,
3163,
734,
10663,
10792,
775,
288,
13491,
1250,
9368,
273,
14015,
5507,
13,
3065,
18,
21024,
5281,
1435,
2934,
6494,
620,
5621,
13491,
368,
6622,
756,
13491,
5180,
751,
791,
2
] |
wrap(new String[] {
|
fold(new String[] {
|
public void testCoalesceEmpty() throws Exception { // [DF] is all null and [WA] has numbers for 1997 but not for 1998. Result result = executeQuery( wrap(new String[] { "with", " member Measures.[Coal1] as 'coalesceempty(([Time].[1997], Measures.[Store Sales]), ([Time].[1998], Measures.[Store Sales]))'", " member Measures.[Coal2] as 'coalesceempty(([Time].[1997], Measures.[Unit Sales]), ([Time].[1998], Measures.[Unit Sales]))'", "select ", " {Measures.[Coal1], Measures.[Coal2]} on columns,", " {[Store].[All Stores].[Mexico].[DF], [Store].[All Stores].[USA].[WA]} on rows", "from ", " [Sales]"})); checkDataResults( new Double[][] { {null, null}, {new Double(263793.22), new Double(124366)} }, result, 0.001); result = executeQuery( wrap(new String[] { "with", " member Measures.[Sales Per Customer] as 'Measures.[Sales Count] / Measures.[Customer Count]'", " member Measures.[Coal] as 'coalesceempty(([Measures].[Sales Per Customer], [Store].[All Stores].[Mexico].[DF]),", " Measures.[Sales Per Customer])'", "select ", " {Measures.[Sales Per Customer], Measures.[Coal]} on columns,", " {[Store].[All Stores].[Mexico].[DF], [Store].[All Stores].[USA].[WA]} on rows", "from ", " [Sales]", "where", " ([Time].[1997].[Q2])"})); checkDataResults(new Double[][] { { null, null }, { new Double(8.963), new Double(8.963) } }, result, 0.001); result = executeQuery( wrap(new String[] { "with", " member Measures.[Sales Per Customer] as 'Measures.[Sales Count] / Measures.[Customer Count]'", " member Measures.[Coal] as 'coalesceempty(([Measures].[Sales Per Customer], [Store].[All Stores].[Mexico].[DF]),", " ([Measures].[Sales Per Customer], [Store].[All Stores].[Mexico].[DF]),", " ([Measures].[Sales Per Customer], [Store].[All Stores].[Mexico].[DF]),", " ([Measures].[Sales Per Customer], [Store].[All Stores].[Mexico].[DF]),", " ([Measures].[Sales Per Customer], [Store].[All Stores].[Mexico].[DF]),", " ([Measures].[Sales Per Customer], [Store].[All Stores].[Mexico].[DF]),", " ([Measures].[Sales Per Customer], [Store].[All Stores].[Mexico].[DF]),", " ([Measures].[Sales Per Customer], [Store].[All Stores].[Mexico].[DF]),", " Measures.[Sales Per Customer])'", "select ", " {Measures.[Sales Per Customer], Measures.[Coal]} on columns,", " {[Store].[All Stores].[Mexico].[DF], [Store].[All Stores].[USA].[WA]} on rows", "from ", " [Sales]", "where", " ([Time].[1997].[Q2])"})); checkDataResults(new Double[][] { { null, null }, { new Double(8.963), new Double(8.963) } }, result, 0.001); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/bb703add381acf854e2d5aed1045911b7ab143b4/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
4249,
24827,
1921,
1435,
1216,
1185,
288,
3639,
368,
306,
4577,
65,
353,
777,
446,
471,
306,
59,
37,
65,
711,
5600,
364,
23673,
27,
1496,
486,
364,
23673,
28,
18,
3639,
3438,
563,
273,
14304,
12,
7734,
11590,
12,
2704,
514,
8526,
288,
10792,
315,
1918,
3113,
315,
565,
3140,
18174,
1823,
18,
63,
4249,
287,
21,
65,
487,
296,
2894,
24827,
5531,
12,
3816,
950,
8009,
63,
19818,
27,
6487,
18174,
1823,
18,
63,
2257,
25996,
65,
3631,
23265,
950,
8009,
63,
19818,
28,
6487,
18174,
1823,
18,
63,
2257,
25996,
5717,
2506,
3113,
315,
565,
3140,
18174,
1823,
18,
63,
4249,
287,
22,
65,
487,
296,
2894,
24827,
5531,
12,
3816,
950,
8009,
63,
19818,
27,
6487,
18174,
1823,
18,
63,
2802,
25996,
65,
3631,
23265,
950,
8009,
63,
19818,
28,
6487,
18174,
1823,
18,
63,
2802,
25996,
5717,
2506,
3113,
315,
4025,
3104,
315,
565,
288,
23177,
1823,
18,
63,
4249,
287,
21,
6487,
18174,
1823,
18,
63,
4249,
287,
22,
18322,
603,
2168,
16,
3113,
315,
565,
288,
63,
2257,
8009,
63,
1595,
20296,
455,
8009,
63,
49,
338,
10764,
8009,
63,
4577,
6487,
306,
2257,
8009,
63,
1595,
20296,
455,
8009,
63,
3378,
37,
8009,
63,
59,
37,
18322,
603,
2595,
3113,
315,
2080,
3104,
315,
565,
306,
23729,
4279,
6792,
1769,
3639,
866,
751,
3447,
12,
7734,
394,
3698,
63,
6362,
65,
288,
10792,
288,
2011,
16,
446,
5779,
10792,
288,
2704,
3698,
12,
22,
4449,
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,
4249,
24827,
1921,
1435,
1216,
1185,
288,
3639,
368,
306,
4577,
65,
353,
777,
446,
471,
306,
59,
37,
65,
711,
5600,
364,
23673,
27,
1496,
486,
364,
23673,
28,
18,
3639,
3438,
563,
273,
14304,
12,
7734,
11590,
12,
2704,
514,
8526,
288,
10792,
315,
1918,
3113,
315,
565,
3140,
18174,
1823,
18,
63,
4249,
287,
21,
65,
487,
296,
2894,
24827,
5531,
12,
3816,
950,
8009,
63,
19818,
27,
6487,
18174,
1823,
18,
63,
2257,
25996,
65,
3631,
23265,
950,
8009,
63,
19818,
28,
6487,
18174,
1823,
18,
63,
2257,
25996,
5717,
2506,
3113,
315,
565,
3140,
18174,
1823,
18,
63,
4249,
287,
22,
65,
487,
296,
2894,
24827,
5531,
12,
3816,
950,
2
] |
TextUtils.createTabs(textEditor.getTextPane());
|
textEditor.getTextPane().setTabSize(AWPrefs.getEditorTabSize());
|
public void applyFont() { textEditor.getTextPane().setFont(new Font(AWPrefs.getEditorFont(), Font.PLAIN, AWPrefs.getEditorFontSize())); TextUtils.createTabs(textEditor.getTextPane()); }
|
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/7d10fc62dd364c5d7d612bfc98500e0202fd7f02/CodeDisplay.java/clean/src/org/antlr/works/generate/CodeDisplay.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2230,
5711,
1435,
288,
3639,
977,
6946,
18,
588,
1528,
8485,
7675,
542,
5711,
12,
2704,
10063,
12,
12999,
1386,
2556,
18,
588,
6946,
5711,
9334,
10063,
18,
26549,
16,
13228,
1386,
2556,
18,
588,
6946,
22688,
1435,
10019,
3639,
977,
6946,
18,
588,
1528,
8485,
7675,
542,
5661,
1225,
12,
12999,
1386,
2556,
18,
588,
6946,
5661,
1225,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
2230,
5711,
1435,
288,
3639,
977,
6946,
18,
588,
1528,
8485,
7675,
542,
5711,
12,
2704,
10063,
12,
12999,
1386,
2556,
18,
588,
6946,
5711,
9334,
10063,
18,
26549,
16,
13228,
1386,
2556,
18,
588,
6946,
22688,
1435,
10019,
3639,
977,
6946,
18,
588,
1528,
8485,
7675,
542,
5661,
1225,
12,
12999,
1386,
2556,
18,
588,
6946,
5661,
1225,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Bucket decompress(Bucket data, BucketFactory bf, long maxLength) throws IOException {
|
public Bucket decompress(Bucket data, BucketFactory bf, long maxLength) throws IOException, CompressionOutputSizeException {
|
public Bucket decompress(Bucket data, BucketFactory bf, long maxLength) throws IOException { Bucket output = bf.makeBucket(-1); InputStream is = data.getInputStream(); OutputStream os = output.getOutputStream(); decompress(is, os, maxLength); os.close(); is.close(); return output; }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/ee392a27cc3ce11b12a2fdda4a2f78861262883f/GzipCompressor.java/buggy/src/freenet/support/compress/GzipCompressor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7408,
16824,
12,
4103,
501,
16,
7408,
1733,
16222,
16,
1525,
13642,
13,
1216,
1860,
288,
202,
202,
4103,
876,
273,
16222,
18,
6540,
4103,
19236,
21,
1769,
202,
202,
4348,
353,
273,
501,
18,
588,
4348,
5621,
202,
202,
4632,
1140,
273,
876,
18,
588,
4632,
5621,
202,
202,
323,
14706,
12,
291,
16,
1140,
16,
13642,
1769,
202,
202,
538,
18,
4412,
5621,
202,
202,
291,
18,
4412,
5621,
202,
202,
2463,
876,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7408,
16824,
12,
4103,
501,
16,
7408,
1733,
16222,
16,
1525,
13642,
13,
1216,
1860,
288,
202,
202,
4103,
876,
273,
16222,
18,
6540,
4103,
19236,
21,
1769,
202,
202,
4348,
353,
273,
501,
18,
588,
4348,
5621,
202,
202,
4632,
1140,
273,
876,
18,
588,
4632,
5621,
202,
202,
323,
14706,
12,
291,
16,
1140,
16,
13642,
1769,
202,
202,
538,
18,
4412,
5621,
202,
202,
291,
18,
4412,
5621,
202,
202,
2463,
876,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
.getDataSetSchemaName() : action.getTableSchema().getName();
|
.getDataSetSchemaName() : ((JDBCSchema) action.getTableSchema()).getDatabaseSchema();
|
public void doOptimiseAddColumn(OptimiseAddColumn action, List statements) { String schemaName = action.getTableSchema() == null ? action .getDataSetSchemaName() : action.getTableSchema().getName(); String tableName = action.getTableName(); String colName = action.getColumnName(); statements.add("alter table " + schemaName + "." + tableName + " add column (" + colName + " number(1) default 0)"); }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/c99f5719792c1057e153fcfd6a0e8076addad103/OracleDialect.java/clean/src/java/org/biomart/builder/controller/dialects/OracleDialect.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
13930,
784,
986,
1494,
12,
13930,
784,
986,
1494,
1301,
16,
987,
6317,
13,
288,
202,
202,
780,
21960,
273,
1301,
18,
588,
1388,
3078,
1435,
422,
446,
692,
1301,
9506,
202,
18,
588,
13676,
3078,
461,
1435,
294,
1301,
18,
588,
1388,
3078,
7675,
17994,
5621,
202,
202,
780,
4775,
273,
1301,
18,
588,
7147,
5621,
202,
202,
780,
18655,
273,
1301,
18,
588,
8516,
5621,
202,
202,
18393,
18,
1289,
2932,
22628,
1014,
315,
397,
21960,
397,
4585,
397,
4775,
9506,
202,
15,
315,
527,
1057,
7566,
397,
18655,
397,
315,
1300,
12,
21,
13,
805,
374,
2225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
13930,
784,
986,
1494,
12,
13930,
784,
986,
1494,
1301,
16,
987,
6317,
13,
288,
202,
202,
780,
21960,
273,
1301,
18,
588,
1388,
3078,
1435,
422,
446,
692,
1301,
9506,
202,
18,
588,
13676,
3078,
461,
1435,
294,
1301,
18,
588,
1388,
3078,
7675,
17994,
5621,
202,
202,
780,
4775,
273,
1301,
18,
588,
7147,
5621,
202,
202,
780,
18655,
273,
1301,
18,
588,
8516,
5621,
202,
202,
18393,
18,
1289,
2932,
22628,
1014,
315,
397,
21960,
397,
4585,
397,
4775,
9506,
202,
15,
315,
527,
1057,
7566,
397,
18655,
397,
315,
1300,
12,
21,
13,
805,
374,
2225,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
writer.outputLine( "using namespace " + root.getNamespace() + ";" );
|
if ( root.getNamespace().equals( "" ) == false ) writer.outputLine( "using namespace " + root.getNamespace() + ";" );
|
public void generateUsing(ClassNode root, FormattedFileWriter writer) throws java.io.IOException { Iterator it = root.getDependencies(); writer.outputLine( "using namespace net::sourceforge::jnipp;" ); writer.outputLine( "using namespace " + root.getNamespace() + ";" ); writer.newLine( 2 ); }
|
25817 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25817/d312946714e89de2a85c6909bcf9bbdb983051a1/CPPProxyImplGenerator.java/buggy/java/net/sourceforge/jnipp/proxyGen/CPPProxyImplGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2103,
7736,
12,
797,
907,
1365,
16,
4077,
2344,
812,
2289,
2633,
13,
202,
202,
15069,
2252,
18,
1594,
18,
14106,
202,
95,
202,
202,
3198,
518,
273,
1365,
18,
588,
8053,
5621,
202,
202,
6299,
18,
2844,
1670,
12,
315,
9940,
1981,
2901,
2866,
3168,
1884,
908,
2866,
78,
82,
15491,
4868,
11272,
202,
202,
6299,
18,
2844,
1670,
12,
315,
9940,
1981,
315,
397,
1365,
18,
588,
3402,
1435,
397,
11430,
11272,
202,
202,
6299,
18,
2704,
1670,
12,
576,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2103,
7736,
12,
797,
907,
1365,
16,
4077,
2344,
812,
2289,
2633,
13,
202,
202,
15069,
2252,
18,
1594,
18,
14106,
202,
95,
202,
202,
3198,
518,
273,
1365,
18,
588,
8053,
5621,
202,
202,
6299,
18,
2844,
1670,
12,
315,
9940,
1981,
2901,
2866,
3168,
1884,
908,
2866,
78,
82,
15491,
4868,
11272,
202,
202,
6299,
18,
2844,
1670,
12,
315,
9940,
1981,
315,
397,
1365,
18,
588,
3402,
1435,
397,
11430,
11272,
202,
202,
6299,
18,
2704,
1670,
12,
576,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (widget instanceof StyledText) {
|
if ((event.character == SWT.DEL) && ((event.stateMask & SWT.MODIFIER_MASK) == 0) && (widget instanceof Text)) { /* * KLUDGE. Bug 54654. The text widget relies on no listener * doing any work before dispatching the native delete * event. This does not work, as we are restricted to * listeners. However, it can be said that pressing a delete * key in a text widget will never use key bindings. This * can be shown be considering how the event dispatching is * expected to work in a text widget. So, we should do * nothing ... ever. */ return; } else if (widget instanceof StyledText) {
|
private void filterKeySequenceBindings(Event event) { /* * Only process key strokes containing natural keys to trigger key * bindings. */ if ((event.keyCode & SWT.MODIFIER_MASK) != 0) return; // Allow special key out-of-order processing. List keyStrokes = generatePossibleKeyStrokes(event); if (isOutOfOrderKey(keyStrokes)) { if (event.type == SWT.KeyDown) { Widget widget = event.widget; if (widget instanceof StyledText) { /* * KLUDGE. Some people try to do useful work in verify * listeners. The way verify listeners work in SWT, we need * to verify the key as well; otherwise, we can detect that * useful work has been done. */ ((StyledText) widget) .addVerifyKeyListener(new OutOfOrderVerifyListener( new OutOfOrderListener(this))); } else { widget.addListener(SWT.KeyDown, new OutOfOrderListener(this)); } } /* * Otherwise, we count on a key down arriving eventually. Expecting * out of order handling on Ctrl+Tab, for example, is a bad idea * (stick to keys that are not window traversal keys). */ } else { processKeyEvent(keyStrokes, event); } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e471a64057c8bc81c393ed41a25401bdf7c4f293/WorkbenchKeyboard.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/WorkbenchKeyboard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1034,
653,
4021,
10497,
12,
1133,
871,
13,
288,
3639,
1748,
540,
380,
5098,
1207,
498,
384,
3250,
281,
4191,
15145,
1311,
358,
3080,
498,
540,
380,
7394,
18,
540,
1195,
3639,
309,
14015,
2575,
18,
856,
1085,
473,
348,
8588,
18,
6720,
10591,
67,
11704,
13,
480,
374,
13,
327,
31,
3639,
368,
7852,
4582,
498,
596,
17,
792,
17,
1019,
4929,
18,
3639,
987,
498,
510,
3250,
281,
273,
2103,
13576,
653,
510,
3250,
281,
12,
2575,
1769,
3639,
309,
261,
291,
11224,
2448,
653,
12,
856,
510,
3250,
281,
3719,
288,
5411,
309,
261,
2575,
18,
723,
422,
348,
8588,
18,
653,
4164,
13,
288,
7734,
11103,
3604,
273,
871,
18,
6587,
31,
7734,
309,
14015,
2575,
18,
11560,
422,
348,
8588,
18,
24733,
13,
597,
14015,
2575,
18,
2019,
5796,
473,
348,
8588,
18,
6720,
10591,
67,
11704,
13,
422,
374,
13,
597,
261,
6587,
1276,
3867,
3719,
288,
1748,
380,
1475,
11778,
40,
7113,
18,
16907,
1381,
8749,
6564,
18,
1021,
977,
3604,
14719,
281,
603,
1158,
2991,
380,
9957,
1281,
1440,
1865,
3435,
310,
326,
6448,
1430,
380,
871,
18,
1220,
1552,
486,
1440,
16,
487,
732,
854,
15693,
358,
380,
4679,
18,
10724,
16,
518,
848,
506,
7864,
350,
716,
11779,
310,
279,
1430,
380,
498,
316,
279,
977,
3604,
903,
5903,
999,
498,
7394,
18,
1220,
380,
848,
506,
12188,
506,
24453,
3661,
326,
871,
3435,
310,
353,
380,
2665,
358,
1440,
316,
279,
977,
3604,
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,
1034,
653,
4021,
10497,
12,
1133,
871,
13,
288,
3639,
1748,
540,
380,
5098,
1207,
498,
384,
3250,
281,
4191,
15145,
1311,
358,
3080,
498,
540,
380,
7394,
18,
540,
1195,
3639,
309,
14015,
2575,
18,
856,
1085,
473,
348,
8588,
18,
6720,
10591,
67,
11704,
13,
480,
374,
13,
327,
31,
3639,
368,
7852,
4582,
498,
596,
17,
792,
17,
1019,
4929,
18,
3639,
987,
498,
510,
3250,
281,
273,
2103,
13576,
653,
510,
3250,
281,
12,
2575,
1769,
3639,
309,
261,
291,
11224,
2448,
653,
12,
856,
510,
3250,
281,
3719,
288,
5411,
309,
261,
2575,
18,
723,
422,
348,
8588,
18,
653,
4164,
13,
288,
7734,
11103,
3604,
273,
871,
18,
6587,
31,
2
] |
if (bitstream != null)
|
if (!isWithdrawn)
|
protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { Bitstream bitstream = null; // Get the ID from the URL String idString = request.getPathInfo(); String handle = ""; String sequence = ""; if (idString != null) { // Parse 'handle' and 'sequence' (bitstream seq. number) out // of remaining URL path, which is typically of the format: // {handle}/{sequence}/{bitstream-name} // But since the bitstream name MAY have any number of "/"s in // it, and the handle is guaranteed to have one slash, we // scan from the start to pick out handle and sequence: // Remove leading slash if any: if (idString.startsWith("/")) { idString = idString.substring(1); } // skip first slash within handle int slashIndex = idString.indexOf('/'); if (slashIndex != -1) { slashIndex = idString.indexOf('/', slashIndex + 1); if (slashIndex != -1) { handle = idString.substring(0, slashIndex); int slash2 = idString.indexOf('/', slashIndex + 1); if (slash2 != -1) sequence = idString.substring(slashIndex+1,slash2); else sequence = idString.substring(slashIndex+1); } else handle = idString; } // Find the corresponding bitstream try { Item item = (Item) HandleManager.resolveToObject(context, handle); if (item == null) { log.info(LogManager.getHeader(context, "invalid_id", "path=" + handle)); JSPManager .showInvalidIDError(request, response, handle, -1); return; } int sid = Integer.parseInt(sequence); boolean found = false; Bundle[] bundles = item.getBundles(); for (int i = 0; (i < bundles.length) && !found; i++) { Bitstream[] bitstreams = bundles[i].getBitstreams(); for (int k = 0; (k < bitstreams.length) && !found; k++) { if (sid == bitstreams[k].getSequenceID()) { bitstream = bitstreams[k]; found = true; } } } } catch (NumberFormatException nfe) { // Invalid ID - this will be dealt with below } } // Did we get a bitstream? if (bitstream != null) { log.info(LogManager.getHeader(context, "view_bitstream", "bitstream_id=" + bitstream.getID())); // Set the response MIME type response.setContentType(bitstream.getFormat().getMIMEType()); // Response length response.setHeader("Content-Length", String.valueOf(bitstream .getSize())); // Pipe the bits InputStream is = bitstream.retrieve(); Utils.bufferedCopy(is, response.getOutputStream()); is.close(); response.getOutputStream().flush(); } else { // No bitstream - we got an invalid ID log.info(LogManager.getHeader(context, "view_bitstream", "invalid_bitstream_id=" + idString)); JSPManager.showInvalidIDError(request, response, idString, Constants.BITSTREAM); } }
|
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/9a7155e9b5057d326a006e8d630b78969541e21a/BitstreamServlet.java/clean/dspace/src/org/dspace/app/webui/servlet/BitstreamServlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3948,
967,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
6539,
3256,
28640,
273,
446,
31,
3639,
368,
968,
326,
1599,
628,
326,
1976,
3639,
514,
612,
780,
273,
590,
18,
588,
743,
966,
5621,
3639,
514,
1640,
273,
1408,
31,
3639,
514,
3102,
273,
1408,
31,
3639,
309,
261,
350,
780,
480,
446,
13,
3639,
288,
2398,
368,
2884,
296,
4110,
11,
471,
296,
6178,
11,
261,
3682,
3256,
3833,
18,
1300,
13,
596,
2398,
368,
434,
4463,
1976,
589,
16,
1492,
353,
14755,
434,
326,
740,
30,
2398,
368,
565,
288,
4110,
12862,
6178,
12862,
3682,
3256,
17,
529,
97,
2398,
368,
12484,
3241,
326,
28640,
508,
490,
5255,
1240,
1281,
1300,
434,
4016,
87,
316,
2398,
368,
518,
16,
471,
326,
1640,
353,
15403,
358,
1240,
1245,
9026,
16,
732,
2398,
368,
4135,
628,
326,
787,
358,
6002,
596,
1640,
471,
3102,
30,
2398,
368,
3581,
7676,
9026,
309,
1281,
30,
5411,
309,
261,
350,
780,
18,
17514,
1190,
2932,
4898,
3719,
5411,
288,
7734,
612,
780,
273,
612,
780,
18,
28023,
12,
21,
1769,
5411,
289,
5411,
368,
2488,
1122,
9026,
3470,
1640,
5411,
509,
9026,
1016,
273,
612,
780,
18,
31806,
2668,
2473,
1769,
5411,
309,
261,
12877,
1016,
480,
300,
21,
13,
5411,
288,
7734,
9026,
1016,
273,
612,
780,
18,
31806,
2668,
19,
2187,
9026,
1016,
397,
404,
1769,
7734,
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,
741,
3948,
967,
12,
1042,
819,
16,
9984,
590,
16,
5411,
12446,
766,
13,
1216,
16517,
16,
1860,
16,
5411,
6483,
16,
23859,
503,
565,
288,
3639,
6539,
3256,
28640,
273,
446,
31,
3639,
368,
968,
326,
1599,
628,
326,
1976,
3639,
514,
612,
780,
273,
590,
18,
588,
743,
966,
5621,
3639,
514,
1640,
273,
1408,
31,
3639,
514,
3102,
273,
1408,
31,
3639,
309,
261,
350,
780,
480,
446,
13,
3639,
288,
2398,
368,
2884,
296,
4110,
11,
471,
296,
6178,
11,
261,
3682,
3256,
3833,
18,
1300,
13,
596,
2398,
368,
434,
4463,
1976,
589,
16,
1492,
353,
14755,
434,
326,
740,
30,
2398,
368,
565,
288,
4110,
12862,
6178,
12862,
3682,
3256,
2
] |
if (selected > 0) {
|
if (selected != -1) {
|
public void actionPerformed(ActionEvent e) { int selected = m_ClassCombo.getSelectedIndex(); if (selected > 0) { boolean isNominal = m_Instances.attribute(selected).isNominal(); m_OutputTFPosBut.setEnabled(isNominal); m_OutputConfusionBut.setEnabled(isNominal); } }
|
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/387d1d17b02bed2afa19ce98191edd057780b975/ClassifierPanel.java/buggy/weka/gui/explorer/ClassifierPanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
474,
3170,
273,
312,
67,
797,
16156,
18,
588,
7416,
1016,
5621,
202,
430,
261,
8109,
405,
374,
13,
288,
202,
225,
1250,
8197,
362,
1490,
273,
312,
67,
5361,
18,
4589,
12,
8109,
2934,
291,
26685,
1490,
5621,
202,
225,
312,
67,
1447,
17963,
1616,
31167,
18,
542,
1526,
12,
291,
26685,
1490,
1769,
202,
225,
312,
67,
1447,
3976,
7063,
31167,
18,
542,
1526,
12,
291,
26685,
1490,
1769,
202,
202,
97,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
474,
3170,
273,
312,
67,
797,
16156,
18,
588,
7416,
1016,
5621,
202,
430,
261,
8109,
405,
374,
13,
288,
202,
225,
1250,
8197,
362,
1490,
273,
312,
67,
5361,
18,
4589,
12,
8109,
2934,
291,
26685,
1490,
5621,
202,
225,
312,
67,
1447,
17963,
1616,
31167,
18,
542,
1526,
12,
291,
26685,
1490,
1769,
202,
225,
312,
67,
1447,
3976,
7063,
31167,
18,
542,
1526,
12,
291,
26685,
1490,
1769,
202,
202,
97,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 2; i < brackets; i++) { fStringBuffer.append(']');
|
if (brackets > XMLEntityManager.DEFAULT_BUFFER_SIZE) { int chunks = brackets / XMLEntityManager.DEFAULT_BUFFER_SIZE; int remainder = brackets % XMLEntityManager.DEFAULT_BUFFER_SIZE; for (int i = 0; i < XMLEntityManager.DEFAULT_BUFFER_SIZE; i++) { fStringBuffer.append(']'); } for (int i = 0; i < chunks; i++) { fDocumentHandler.characters(fStringBuffer, null); } if (remainder != 0) { fStringBuffer.length = remainder; fDocumentHandler.characters(fStringBuffer, null); }
|
protected boolean scanCDATASection(boolean complete) throws IOException, XNIException { // call handler if (fDocumentHandler != null) { fDocumentHandler.startCDATA(null); } while (true) { fStringBuffer.clear(); if (!fEntityScanner.scanData("]]", fStringBuffer)) { if (fDocumentHandler != null && fStringBuffer.length > 0) { fDocumentHandler.characters(fStringBuffer, null); } int brackets = 2; while (fEntityScanner.skipChar(']')) { brackets++; } if (fDocumentHandler != null && brackets > 2) { fStringBuffer.clear(); for (int i = 2; i < brackets; i++) { fStringBuffer.append(']'); } fDocumentHandler.characters(fStringBuffer, null); } if (fEntityScanner.skipChar('>')) { break; } if (fDocumentHandler != null) { fStringBuffer.clear(); fStringBuffer.append("]]"); fDocumentHandler.characters(fStringBuffer, null); } } else { if (fDocumentHandler != null) { fDocumentHandler.characters(fStringBuffer, null); } int c = fEntityScanner.peekChar(); if (c != -1 && isInvalidLiteral(c)) { if (XMLChar.isHighSurrogate(c)) { fStringBuffer.clear(); scanSurrogates(fStringBuffer); if (fDocumentHandler != null) { fDocumentHandler.characters(fStringBuffer, null); } } else { reportFatalError("InvalidCharInCDSect", new Object[]{Integer.toString(c,16)}); fEntityScanner.scanChar(); } } } } fMarkupDepth--; // call handler if (fDocumentHandler != null) { fDocumentHandler.endCDATA(null); } return true; } // scanCDATASection(boolean):boolean
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/a09eec5393ff9dbae3841ba9f50cfa4fafa27257/XMLDocumentFragmentScannerImpl.java/clean/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
4135,
10160,
789,
3033,
794,
12,
6494,
3912,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
7734,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
284,
2519,
1503,
18,
1937,
18375,
12,
2011,
1769,
3639,
289,
3639,
1323,
261,
3767,
13,
288,
5411,
284,
780,
1892,
18,
8507,
5621,
5411,
309,
16051,
74,
1943,
11338,
18,
9871,
751,
2932,
13563,
3113,
284,
780,
1892,
3719,
288,
7734,
309,
261,
74,
2519,
1503,
480,
446,
597,
284,
780,
1892,
18,
2469,
405,
374,
13,
288,
10792,
284,
2519,
1503,
18,
20558,
12,
74,
780,
1892,
16,
446,
1769,
7734,
289,
7734,
509,
15597,
273,
576,
31,
7734,
1323,
261,
74,
1943,
11338,
18,
7457,
2156,
2668,
3864,
3719,
288,
10792,
15597,
9904,
31,
7734,
289,
7734,
309,
261,
74,
2519,
1503,
480,
446,
597,
15597,
405,
576,
13,
288,
10792,
284,
780,
1892,
18,
8507,
5621,
10792,
364,
261,
474,
277,
273,
576,
31,
277,
411,
15597,
31,
277,
27245,
288,
13491,
284,
780,
1892,
18,
6923,
2668,
3864,
1769,
10792,
289,
10792,
284,
2519,
1503,
18,
20558,
12,
74,
780,
1892,
16,
446,
1769,
7734,
289,
7734,
309,
261,
74,
1943,
11338,
18,
7457,
2156,
2668,
1870,
3719,
288,
10792,
898,
31,
7734,
289,
7734,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
10792,
284,
780,
1892,
18,
8507,
5621,
10792,
284,
780,
1892,
18,
6923,
2932,
65,
4279,
1769,
10792,
284,
2519,
1503,
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,
4750,
1250,
4135,
10160,
789,
3033,
794,
12,
6494,
3912,
13,
540,
1216,
1860,
16,
1139,
50,
45,
503,
288,
7734,
368,
745,
1838,
3639,
309,
261,
74,
2519,
1503,
480,
446,
13,
288,
5411,
284,
2519,
1503,
18,
1937,
18375,
12,
2011,
1769,
3639,
289,
3639,
1323,
261,
3767,
13,
288,
5411,
284,
780,
1892,
18,
8507,
5621,
5411,
309,
16051,
74,
1943,
11338,
18,
9871,
751,
2932,
13563,
3113,
284,
780,
1892,
3719,
288,
7734,
309,
261,
74,
2519,
1503,
480,
446,
597,
284,
780,
1892,
18,
2469,
405,
374,
13,
288,
10792,
284,
2519,
1503,
18,
20558,
12,
74,
780,
1892,
16,
446,
1769,
7734,
289,
7734,
509,
15597,
273,
576,
31,
7734,
1323,
261,
2
] |
private void checkExpression(PsiExpression expression) {
|
private void checkExpression(@NotNull PsiExpression expression) {
|
private void checkExpression(PsiExpression expression) { final PsiType expressionType = expression.getType(); if(expressionType == null) { return; } if(expressionType.equals(PsiType.VOID)) { return; } if(!ClassUtils.isPrimitive(expressionType)) { return; } final PsiType expectedType = ExpectedTypeUtils.findExpectedType(expression, false); if(expectedType == null) { return; } if(ClassUtils.isPrimitive(expectedType)) { return; } registerError(expression); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0944108475222d828e0a4dfcf3aed0e91a3eaacb/AutoBoxingInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/jdk/AutoBoxingInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
866,
2300,
26964,
5962,
453,
7722,
2300,
2652,
13,
288,
5411,
727,
453,
7722,
559,
2652,
559,
273,
2652,
18,
588,
559,
5621,
5411,
309,
12,
8692,
559,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
8692,
559,
18,
14963,
12,
52,
7722,
559,
18,
58,
12945,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
5,
797,
1989,
18,
291,
9840,
12,
8692,
559,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
23192,
273,
10792,
13219,
559,
1989,
18,
4720,
6861,
559,
12,
8692,
16,
629,
1769,
5411,
309,
12,
3825,
559,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
797,
1989,
18,
291,
9840,
12,
3825,
559,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
1744,
668,
12,
8692,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
540,
3238,
918,
866,
2300,
26964,
5962,
453,
7722,
2300,
2652,
13,
288,
5411,
727,
453,
7722,
559,
2652,
559,
273,
2652,
18,
588,
559,
5621,
5411,
309,
12,
8692,
559,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
8692,
559,
18,
14963,
12,
52,
7722,
559,
18,
58,
12945,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
5,
797,
1989,
18,
291,
9840,
12,
8692,
559,
3719,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
559,
23192,
273,
10792,
13219,
559,
1989,
18,
4720,
6861,
559,
12,
8692,
16,
629,
1769,
5411,
309,
12,
3825,
559,
422,
446,
13,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
797,
1989,
2
] |
throws CalFacadeException;
|
throws CalFacadeException { if (debug) { trace("register timezone with id " + id); } TimezoneInfo tzinfo = (TimezoneInfo)timezones.get(id); if (tzinfo == null) { tzinfo = new TimezoneInfo(timezone, null); timezones.put(id, tzinfo); } else { tzinfo.tz = timezone; } }
|
public void registerTimeZone(String id, TimeZone timezone) throws CalFacadeException;
|
50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/504666cbd0a6232f77ce57b0d6cd04538513fa94/CalTimezones.java/buggy/calendar3/calFacade/src/org/bedework/calfacade/ifs/CalTimezones.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
1744,
16760,
12,
780,
612,
16,
16491,
6371,
13,
377,
1216,
3596,
12467,
503,
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,
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,
225,
1071,
918,
1744,
16760,
12,
780,
612,
16,
16491,
6371,
13,
377,
1216,
3596,
12467,
503,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(call == null) {
|
if (call == null) {
|
public void actionPerformed(ActionEvent e) { if(!enabled) return; if(e.getActionCommand().equals("ContextSwitch")) { ContextHelper helper = new ContextHelper(); Context cx = db.getCurrentContext(); DebuggableEngine engine = cx.getDebuggableEngine(); helper.attach(cx); int frameIndex = context.getSelectedIndex(); context.setToolTipText(toolTips.elementAt(frameIndex).toString()); Scriptable obj; int frameCount = engine.getFrameCount(); if(frameIndex < frameCount) { obj = engine.getFrame(frameIndex).getVariableObject(); } else { helper.reset(); return; } NativeCall call = null; if(obj instanceof NativeCall) { call = (NativeCall)obj; obj = call.getThisObj(); } JTree tree = thisTable.resetTree(model = new VariableModel(obj)); if(call == null) { tree = localsTable.resetTree(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { return 2; } public String getColumnName(int column) { switch(column) { case 0: return " Name"; case 1: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); } else { tree = localsTable.resetTree(model = new VariableModel(call)); } helper.reset(); db.contextSwitch(frameIndex); tableModel.updateModel(); } }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
309,
12,
5,
5745,
13,
327,
31,
3639,
309,
12,
73,
18,
588,
1803,
2189,
7675,
14963,
2932,
1042,
10200,
6,
3719,
288,
5411,
1772,
2276,
4222,
273,
394,
1772,
2276,
5621,
5411,
1772,
9494,
273,
1319,
18,
588,
3935,
1042,
5621,
5411,
4015,
8455,
4410,
4073,
273,
9494,
18,
588,
2829,
8455,
4410,
5621,
5411,
4222,
18,
7331,
12,
71,
92,
1769,
5411,
509,
2623,
1016,
273,
819,
18,
588,
7416,
1016,
5621,
5411,
819,
18,
542,
29250,
1528,
12,
6738,
56,
7146,
18,
2956,
861,
12,
3789,
1016,
2934,
10492,
10663,
5411,
22780,
1081,
31,
5411,
509,
2623,
1380,
273,
4073,
18,
588,
3219,
1380,
5621,
5411,
309,
12,
3789,
1016,
411,
2623,
1380,
13,
288,
7734,
1081,
273,
4073,
18,
588,
3219,
12,
3789,
1016,
2934,
588,
3092,
921,
5621,
5411,
289,
469,
288,
7734,
4222,
18,
6208,
5621,
7734,
327,
31,
5411,
289,
5411,
16717,
1477,
745,
273,
446,
31,
5411,
309,
12,
2603,
1276,
16717,
1477,
13,
288,
7734,
745,
273,
261,
9220,
1477,
13,
2603,
31,
7734,
1081,
273,
745,
18,
588,
2503,
2675,
5621,
5411,
289,
5411,
804,
2471,
2151,
273,
333,
1388,
18,
6208,
2471,
12,
2284,
273,
394,
7110,
1488,
12,
2603,
10019,
5411,
309,
261,
1991,
422,
446,
13,
288,
7734,
2151,
273,
8985,
1388,
18,
6208,
2471,
12,
2704,
4115,
2471,
1388,
1488,
12,
2704,
2989,
19536,
12513,
10756,
288,
13491,
1071,
1033,
8154,
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,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
309,
12,
5,
5745,
13,
327,
31,
3639,
309,
12,
73,
18,
588,
1803,
2189,
7675,
14963,
2932,
1042,
10200,
6,
3719,
288,
5411,
1772,
2276,
4222,
273,
394,
1772,
2276,
5621,
5411,
1772,
9494,
273,
1319,
18,
588,
3935,
1042,
5621,
5411,
4015,
8455,
4410,
4073,
273,
9494,
18,
588,
2829,
8455,
4410,
5621,
5411,
4222,
18,
7331,
12,
71,
92,
1769,
5411,
509,
2623,
1016,
273,
819,
18,
588,
7416,
1016,
5621,
5411,
819,
18,
542,
29250,
1528,
12,
6738,
56,
7146,
18,
2956,
861,
12,
3789,
1016,
2934,
10492,
10663,
5411,
22780,
1081,
31,
5411,
509,
2623,
1380,
273,
4073,
18,
588,
3219,
1380,
5621,
2
] |
public String toFormulaString()
|
public String toFormulaString(SheetReferences refs)
|
public String toFormulaString() { return "" + getValue(); }
|
509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/13ea5ee7ea68721153c198ec5f180ba23cbd9840/NumberPtg.java/clean/src/java/org/apache/poi/hssf/record/formula/NumberPtg.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
358,
14972,
780,
12,
8229,
8221,
9047,
13,
565,
288,
3639,
327,
1408,
397,
2366,
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
] |
[
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
358,
14972,
780,
12,
8229,
8221,
9047,
13,
565,
288,
3639,
327,
1408,
397,
2366,
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
] |
args[0] = new RubyFixnum(ruby, 18000000);
|
args[0] = RubyFixnum.newFixnum(ruby, 18000000);
|
public void setUp() { ruby = Ruby.getDefaultInstance(null); rubyTime = ruby.getClasses().getTimeClass(); RubyObject[] args = new RubyObject[1]; args[0] = new RubyFixnum(ruby, 18000000); nineTeenSeventy = RubyTime.s_at(ruby, rubyTime, args); }
|
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/afb67c3765f6466c476317e6bb0c72f6593f05f3/TestRubyTime.java/clean/org/jruby/test/TestRubyTime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
288,
3639,
22155,
273,
19817,
18,
588,
1868,
1442,
12,
2011,
1769,
3639,
22155,
950,
273,
22155,
18,
588,
4818,
7675,
588,
950,
797,
5621,
3639,
19817,
921,
8526,
833,
273,
394,
19817,
921,
63,
21,
15533,
3639,
833,
63,
20,
65,
273,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
27768,
16,
6549,
9449,
1769,
3639,
290,
558,
21575,
275,
1761,
616,
93,
273,
19817,
950,
18,
87,
67,
270,
12,
27768,
16,
22155,
950,
16,
833,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
288,
3639,
22155,
273,
19817,
18,
588,
1868,
1442,
12,
2011,
1769,
3639,
22155,
950,
273,
22155,
18,
588,
4818,
7675,
588,
950,
797,
5621,
3639,
19817,
921,
8526,
833,
273,
394,
19817,
921,
63,
21,
15533,
3639,
833,
63,
20,
65,
273,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
27768,
16,
6549,
9449,
1769,
3639,
290,
558,
21575,
275,
1761,
616,
93,
273,
19817,
950,
18,
87,
67,
270,
12,
27768,
16,
22155,
950,
16,
833,
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
] |
public DefaultJavaElementComparator( int staticTypeCategory, int staticFieldCategory, int staticInitializerCategory, int staticMethodCategory, int typeCategory, int fieldCategory, int initializerCategory, int constructorCategory, int methodCategory) { this.categories = new int[] { staticTypeCategory, staticFieldCategory, staticInitializerCategory, staticMethodCategory, typeCategory, fieldCategory, initializerCategory, constructorCategory, methodCategory };
|
public DefaultJavaElementComparator() { this.categories = new int[] { 1, 2, 3, 7, 6, 4, 5, 8, 9 };
|
public DefaultJavaElementComparator( int staticTypeCategory, int staticFieldCategory, int staticInitializerCategory, int staticMethodCategory, int typeCategory, int fieldCategory, int initializerCategory, int constructorCategory, int methodCategory) { this.categories = new int[] { staticTypeCategory, staticFieldCategory, staticInitializerCategory, staticMethodCategory, typeCategory, fieldCategory, initializerCategory, constructorCategory, methodCategory }; this.collator = Collator.getInstance(); }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/9ac3d3205dd69d72df25a75c1584224d5519622d/DefaultJavaElementComparator.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/DefaultJavaElementComparator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2989,
5852,
1046,
5559,
12,
202,
202,
474,
760,
559,
4457,
16,
202,
202,
474,
760,
974,
4457,
16,
202,
202,
474,
760,
14729,
4457,
16,
202,
202,
474,
760,
1305,
4457,
16,
202,
202,
474,
618,
4457,
16,
202,
202,
474,
652,
4457,
16,
202,
202,
474,
12562,
4457,
16,
202,
202,
474,
3885,
4457,
16,
202,
202,
474,
707,
4457,
13,
288,
1082,
202,
2211,
18,
8995,
273,
394,
509,
8526,
288,
9506,
202,
3845,
559,
4457,
16,
9506,
202,
3845,
974,
4457,
16,
9506,
202,
3845,
14729,
4457,
16,
9506,
202,
3845,
1305,
4457,
16,
9506,
202,
723,
4457,
16,
9506,
202,
1518,
4457,
16,
9506,
202,
22181,
4457,
16,
9506,
202,
12316,
4457,
16,
9506,
202,
2039,
4457,
1082,
202,
20451,
202,
202,
2211,
18,
12910,
639,
273,
17596,
639,
18,
588,
1442,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2989,
5852,
1046,
5559,
12,
202,
202,
474,
760,
559,
4457,
16,
202,
202,
474,
760,
974,
4457,
16,
202,
202,
474,
760,
14729,
4457,
16,
202,
202,
474,
760,
1305,
4457,
16,
202,
202,
474,
618,
4457,
16,
202,
202,
474,
652,
4457,
16,
202,
202,
474,
12562,
4457,
16,
202,
202,
474,
3885,
4457,
16,
202,
202,
474,
707,
4457,
13,
288,
1082,
202,
2211,
18,
8995,
273,
394,
509,
8526,
288,
9506,
202,
3845,
559,
4457,
16,
9506,
202,
3845,
974,
4457,
16,
9506,
202,
3845,
14729,
4457,
16,
9506,
202,
3845,
1305,
4457,
16,
9506,
202,
723,
4457,
16,
9506,
202,
1518,
4457,
16,
9506,
202,
22181,
4457,
16,
9506,
202,
12316,
2
] |
if (Context.check && (offset < 0 || sourceTop < offset)) Context.codeBug(); return new String(sourceBuffer, offset, sourceTop - offset);
|
if (offset < 0 || fn_sourceTop < offset) Context.codeBug(); return new String(sourceBuffer, offset, fn_sourceTop - offset);
|
private String sourceToString(int offset) { if (Context.check && (offset < 0 || sourceTop < offset)) Context.codeBug(); return new String(sourceBuffer, offset, sourceTop - offset); }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/56c3f65ac92dbd3ff9f471a1829280e95bd7ddf4/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1084,
5808,
12,
474,
1384,
13,
288,
3639,
309,
261,
1042,
18,
1893,
597,
261,
3348,
411,
374,
747,
1084,
3401,
411,
1384,
3719,
5411,
1772,
18,
710,
19865,
5621,
3639,
327,
394,
514,
12,
3168,
1892,
16,
1384,
16,
1084,
3401,
300,
1384,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1084,
5808,
12,
474,
1384,
13,
288,
3639,
309,
261,
1042,
18,
1893,
597,
261,
3348,
411,
374,
747,
1084,
3401,
411,
1384,
3719,
5411,
1772,
18,
710,
19865,
5621,
3639,
327,
394,
514,
12,
3168,
1892,
16,
1384,
16,
1084,
3401,
300,
1384,
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
] |
FindReplaceMachine frm = new FindReplaceMachine(doc, 5); _assertOffsets(frm, 5, 5); frm.setFindWord("Hear"); _testFindNextSucceeds(frm, CONTINUE, 5, 4);
|
_initFrm(5); _assertOffsets(frm, 5, 5); frm.setFindWord("Hear"); _testFindNextSucceeds(frm, CONTINUE, 5, 4);
|
public void testStartFromTopContinue() throws BadLocationException { doc.insertString(0, EVIL_TEXT, null); FindReplaceMachine frm = new FindReplaceMachine(doc, 5); _assertOffsets(frm, 5, 5); frm.setFindWord("Hear"); _testFindNextSucceeds(frm, CONTINUE, 5, 4); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/8907059ef43f15e7b338686159e3333fd997b238/FindReplaceMachineTest.java/buggy/drjava/src/edu/rice/cs/util/swing/FindReplaceMachineTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1685,
1265,
3401,
12378,
1435,
1216,
6107,
2735,
503,
288,
565,
997,
18,
6387,
780,
12,
20,
16,
14839,
2627,
67,
5151,
16,
446,
1769,
565,
4163,
5729,
6981,
31074,
273,
394,
4163,
5729,
6981,
12,
2434,
16,
1381,
1769,
565,
389,
11231,
13830,
12,
4840,
81,
16,
1381,
16,
1381,
1769,
565,
31074,
18,
542,
3125,
3944,
2932,
44,
2091,
8863,
565,
389,
3813,
3125,
2134,
55,
5286,
5288,
87,
12,
4840,
81,
16,
8020,
26725,
16,
1381,
16,
1059,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1685,
1265,
3401,
12378,
1435,
1216,
6107,
2735,
503,
288,
565,
997,
18,
6387,
780,
12,
20,
16,
14839,
2627,
67,
5151,
16,
446,
1769,
565,
4163,
5729,
6981,
31074,
273,
394,
4163,
5729,
6981,
12,
2434,
16,
1381,
1769,
565,
389,
11231,
13830,
12,
4840,
81,
16,
1381,
16,
1381,
1769,
565,
31074,
18,
542,
3125,
3944,
2932,
44,
2091,
8863,
565,
389,
3813,
3125,
2134,
55,
5286,
5288,
87,
12,
4840,
81,
16,
8020,
26725,
16,
1381,
16,
1059,
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
] |
if (element.getNodeName().equals(type)) list.add(element);
|
if (element.getNodeName().equals(type)) { list.add(element); }
|
public IMemento[] getChildren(String type) { // Get the nodes. NodeList nodes = element.getChildNodes(); int size = nodes.getLength(); if (size == 0) return new IMemento[0]; // Extract each node with given type. ArrayList list = new ArrayList(size); for (int nX = 0; nX < size; nX++) { Node node = nodes.item(nX); if (node instanceof Element) { Element element = (Element) node; if (element.getNodeName().equals(type)) list.add(element); } } // Create a memento for each node. size = list.size(); IMemento[] results = new IMemento[size]; for (int x = 0; x < size; x++) { results[x] = new XMLMemento(factory, (Element) list.get(x)); } return results; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/XMLMemento.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/XMLMemento.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6246,
820,
83,
8526,
10268,
12,
780,
618,
13,
288,
3639,
368,
968,
326,
2199,
18,
3639,
16781,
2199,
273,
930,
18,
588,
22460,
5621,
3639,
509,
963,
273,
2199,
18,
588,
1782,
5621,
3639,
309,
261,
1467,
422,
374,
13,
5411,
327,
394,
6246,
820,
83,
63,
20,
15533,
3639,
368,
8152,
1517,
756,
598,
864,
618,
18,
3639,
2407,
666,
273,
394,
2407,
12,
1467,
1769,
3639,
364,
261,
474,
290,
60,
273,
374,
31,
290,
60,
411,
963,
31,
290,
60,
27245,
288,
5411,
2029,
756,
273,
2199,
18,
1726,
12,
82,
60,
1769,
5411,
309,
261,
2159,
1276,
3010,
13,
288,
7734,
3010,
930,
273,
261,
1046,
13,
756,
31,
7734,
309,
261,
2956,
18,
588,
18948,
7675,
14963,
12,
723,
3719,
10792,
666,
18,
1289,
12,
2956,
1769,
5411,
289,
3639,
289,
3639,
368,
1788,
279,
312,
820,
83,
364,
1517,
756,
18,
3639,
963,
273,
666,
18,
1467,
5621,
3639,
6246,
820,
83,
8526,
1686,
273,
394,
6246,
820,
83,
63,
1467,
15533,
3639,
364,
261,
474,
619,
273,
374,
31,
619,
411,
963,
31,
619,
27245,
288,
5411,
1686,
63,
92,
65,
273,
394,
3167,
49,
820,
83,
12,
6848,
16,
261,
1046,
13,
666,
18,
588,
12,
92,
10019,
3639,
289,
3639,
327,
1686,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6246,
820,
83,
8526,
10268,
12,
780,
618,
13,
288,
3639,
368,
968,
326,
2199,
18,
3639,
16781,
2199,
273,
930,
18,
588,
22460,
5621,
3639,
509,
963,
273,
2199,
18,
588,
1782,
5621,
3639,
309,
261,
1467,
422,
374,
13,
5411,
327,
394,
6246,
820,
83,
63,
20,
15533,
3639,
368,
8152,
1517,
756,
598,
864,
618,
18,
3639,
2407,
666,
273,
394,
2407,
12,
1467,
1769,
3639,
364,
261,
474,
290,
60,
273,
374,
31,
290,
60,
411,
963,
31,
290,
60,
27245,
288,
5411,
2029,
756,
273,
2199,
18,
1726,
12,
82,
60,
1769,
5411,
309,
261,
2159,
1276,
3010,
13,
288,
7734,
3010,
930,
273,
261,
1046,
13,
756,
31,
7734,
309,
261,
2
] |
if(! (curFam.containsKey(currentInd.getMomID()))) {
|
if(!currentInd.getMomID().equals("0") && ! (curFam.containsKey(currentInd.getMomID()))) {
|
public void parseLinkage(Vector pedigrees) throws PedFileException { int colNum = -1; boolean withOptionalColumn = false; int numLines = pedigrees.size(); Individual ind; this.order = new Vector(); for(int k=0; k<numLines; k++){ StringTokenizer tokenizer = new StringTokenizer((String)pedigrees.get(k), "\n\t\" \""); //reading the first line if(colNum < 1){ //only check column number count for the first nonblank line colNum = tokenizer.countTokens(); if(colNum%2==1) { withOptionalColumn = true; } } if(colNum != tokenizer.countTokens()) { //this line has a different number of columns //should send some sort of error message //TODO: add something which stores number of markers for all lines and checks that they're consistent throw new PedFileException("Line number mismatch in pedfile. line " + (k+1)); } ind = new Individual(tokenizer.countTokens()); if(tokenizer.countTokens() < 6) { throw new PedFileException("Incorrect number of fields on line " + (k+1)); } if(tokenizer.hasMoreTokens()){ ind.setFamilyID(tokenizer.nextToken().trim()); ind.setIndividualID(tokenizer.nextToken().trim()); ind.setDadID(tokenizer.nextToken().trim()); ind.setMomID(tokenizer.nextToken().trim()); try { //TODO: affected/liability should not be forced into Integers! ind.setGender(Integer.parseInt(tokenizer.nextToken().trim())); ind.setAffectedStatus(Integer.parseInt(tokenizer.nextToken().trim())); if(withOptionalColumn) { ind.setLiability(Integer.parseInt(tokenizer.nextToken().trim())); } }catch(NumberFormatException nfe) { throw new PedFileException("Pedfile error: invalid gender or affected status on line " + (k+1)); } while(tokenizer.hasMoreTokens()){ try { int allele1 = Integer.parseInt(tokenizer.nextToken().trim()); int allele2 = Integer.parseInt(tokenizer.nextToken().trim()); if(allele1 <0 || allele1 > 4 || allele2 <0 || allele2 >4) { throw new PedFileException("Pedigree file input error: invalid genotype on line " + (k+1) + ".\n all genotypes must be 0-4."); } byte[] markers = new byte[2]; markers[0] = (byte)allele1; markers[1]= (byte)allele2; ind.addMarker(markers); }catch(NumberFormatException nfe) { throw new PedFileException("Pedigree file input error: invalid genotype on line " + (k+1) ); } } //check if the family exists already in the Hashtable Family fam = (Family)this.families.get(ind.getFamilyID()); if(fam == null){ //it doesnt exist, so create a new Family object fam = new Family(ind.getFamilyID()); } fam.addMember(ind); this.families.put(ind.getFamilyID(),fam); String[] indFamID = new String[2]; indFamID[0] = ind.getFamilyID(); indFamID[1] = ind.getIndividualID(); this.order.add(ind); } } //now we check if anyone has a reference to a parent who isnt in the file, and if so, we remove the reference for(int i=0;i<order.size();i++) { Individual currentInd = (Individual) order.get(i); Hashtable curFam = ((Family)(families.get(currentInd.getFamilyID())) ).getMembers(); if( ! (curFam.containsKey(currentInd.getDadID()))) { currentInd.setDadID("0"); bogusParents = true; } if(! (curFam.containsKey(currentInd.getMomID()))) { currentInd.setMomID("0"); bogusParents = true; } } }
|
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/226ff1e1d9eb42f16bdebe7043441f129b8d8b50/PedFile.java/clean/edu/mit/wi/pedfile/PedFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
2098,
410,
12,
5018,
31840,
360,
5312,
13,
1216,
453,
329,
812,
503,
288,
3639,
509,
645,
2578,
273,
300,
21,
31,
3639,
1250,
598,
6542,
1494,
273,
629,
31,
3639,
509,
818,
5763,
273,
31840,
360,
5312,
18,
1467,
5621,
3639,
24147,
1547,
31,
3639,
333,
18,
1019,
273,
394,
5589,
5621,
3639,
364,
12,
474,
417,
33,
20,
31,
417,
32,
2107,
5763,
31,
417,
27245,
95,
5411,
16370,
10123,
273,
394,
16370,
12443,
780,
13,
1845,
360,
5312,
18,
588,
12,
79,
3631,
1548,
82,
64,
88,
2412,
1239,
8863,
5411,
368,
21803,
326,
1122,
980,
5411,
309,
12,
1293,
2578,
411,
404,
15329,
7734,
368,
3700,
866,
1057,
1300,
1056,
364,
326,
1122,
1661,
12111,
980,
7734,
645,
2578,
273,
10123,
18,
1883,
5157,
5621,
7734,
309,
12,
1293,
2578,
9,
22,
631,
21,
13,
288,
10792,
598,
6542,
1494,
273,
638,
31,
7734,
289,
5411,
289,
5411,
309,
12,
1293,
2578,
480,
10123,
18,
1883,
5157,
10756,
288,
7734,
368,
2211,
980,
711,
279,
3775,
1300,
434,
2168,
7734,
368,
13139,
1366,
2690,
1524,
434,
555,
883,
7734,
368,
6241,
30,
527,
5943,
1492,
9064,
1300,
434,
11754,
364,
777,
2362,
471,
4271,
716,
2898,
4565,
11071,
7734,
604,
394,
453,
329,
812,
503,
2932,
1670,
1300,
13484,
316,
31840,
768,
18,
980,
315,
397,
261,
79,
15,
21,
10019,
5411,
289,
5411,
1547,
273,
394,
24147,
12,
2316,
1824,
18,
1883,
5157,
10663,
5411,
309,
12,
2316,
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,
1109,
2098,
410,
12,
5018,
31840,
360,
5312,
13,
1216,
453,
329,
812,
503,
288,
3639,
509,
645,
2578,
273,
300,
21,
31,
3639,
1250,
598,
6542,
1494,
273,
629,
31,
3639,
509,
818,
5763,
273,
31840,
360,
5312,
18,
1467,
5621,
3639,
24147,
1547,
31,
3639,
333,
18,
1019,
273,
394,
5589,
5621,
3639,
364,
12,
474,
417,
33,
20,
31,
417,
32,
2107,
5763,
31,
417,
27245,
95,
5411,
16370,
10123,
273,
394,
16370,
12443,
780,
13,
1845,
360,
5312,
18,
588,
12,
79,
3631,
1548,
82,
64,
88,
2412,
1239,
8863,
5411,
368,
21803,
326,
1122,
980,
5411,
309,
12,
1293,
2578,
411,
404,
15329,
7734,
368,
3700,
866,
1057,
1300,
1056,
364,
2
] |
} listCollections(); out.println("</table></center><br>"); listBitstreams(); }
|
else { out.print(values[i].language); } out.println("</td></tr>"); } } listCollections(); out.println("</table></center><br>"); listBitstreams(); }
|
private void renderFull() throws IOException, java.sql.SQLException { JspWriter out = pageContext.getOut(); // Get all the metadata DCValue[] values = item.getDC(Item.ANY, Item.ANY, Item.ANY); out.println("<P align=center>Full metadata record</P>"); HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); // Three column table - DC field, value, language out.println("<center><table class=\"itemDisplayTable\">"); out.println("<tr><th class=\"standard\">DC Field</th><th class=\"standard\">Value</th><th class=\"standard\">Language</th></tr>"); for (int i = 0; i < values.length; i++) { boolean hidden = false; // Mask description.provenance if (values[i].element.equals("description") && (values[i].qualifier != null && values[i].qualifier.equals("provenance"))) { hidden = true; } if (!hidden) { out.print("<tr><td class=\"metadataFieldLabel\">"); out.print(values[i].element); if (values[i].qualifier != null) { out.print("." + values[i].qualifier); } out.print("</td><td class=\"metadataFieldValue\">"); out.print(Utils.addEntities(values[i].value)); out.print("</td><td class=\"metadataFieldValue\">"); if (values[i].language == null) { out.print("-"); } else { out.print(values[i].language); } out.println("</td></tr>"); } } listCollections(); out.println("</table></center><br>"); listBitstreams(); }
|
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/c0a6aa00241d4104417114883e740ef30b79f94b/ItemTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1743,
5080,
1435,
565,
1216,
1860,
16,
2252,
18,
4669,
18,
23116,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
7734,
368,
968,
777,
326,
1982,
3639,
21533,
620,
8526,
924,
273,
761,
18,
588,
5528,
12,
1180,
18,
15409,
16,
4342,
18,
15409,
16,
4342,
18,
15409,
1769,
7734,
596,
18,
8222,
2932,
32,
52,
5689,
33,
5693,
34,
5080,
1982,
1409,
1757,
52,
2984,
1769,
7734,
9984,
590,
273,
5411,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
7734,
368,
935,
992,
1057,
1014,
300,
21533,
652,
16,
460,
16,
2653,
3639,
596,
18,
8222,
2932,
32,
5693,
4438,
2121,
667,
5189,
1726,
4236,
1388,
21121,
1769,
3639,
596,
18,
8222,
2932,
32,
313,
4438,
451,
667,
5189,
10005,
24735,
5528,
2286,
1757,
451,
4438,
451,
667,
5189,
10005,
24735,
620,
1757,
451,
4438,
451,
667,
5189,
10005,
24735,
3779,
1757,
451,
4695,
313,
2984,
1769,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
924,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
1250,
5949,
273,
629,
31,
13491,
368,
16698,
2477,
18,
25630,
5411,
309,
261,
2372,
63,
77,
8009,
2956,
18,
14963,
2932,
3384,
7923,
597,
10792,
261,
2372,
63,
77,
8009,
28157,
480,
446,
597,
18701,
924,
63,
77,
8009,
28157,
18,
14963,
2932,
25630,
6,
20349,
5411,
288,
7734,
5949,
273,
638,
31,
5411,
289,
13491,
309,
16051,
6345,
13,
5411,
288,
7734,
596,
18,
1188,
2932,
32,
313,
4438,
4465,
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,
1743,
5080,
1435,
565,
1216,
1860,
16,
2252,
18,
4669,
18,
23116,
565,
288,
3639,
19300,
2289,
596,
273,
21442,
18,
588,
1182,
5621,
7734,
368,
968,
777,
326,
1982,
3639,
21533,
620,
8526,
924,
273,
761,
18,
588,
5528,
12,
1180,
18,
15409,
16,
4342,
18,
15409,
16,
4342,
18,
15409,
1769,
7734,
596,
18,
8222,
2932,
32,
52,
5689,
33,
5693,
34,
5080,
1982,
1409,
1757,
52,
2984,
1769,
7734,
9984,
590,
273,
5411,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
7734,
368,
935,
992,
1057,
1014,
300,
21533,
652,
16,
460,
16,
2653,
3639,
596,
18,
8222,
2932,
32,
5693,
4438,
2121,
667,
5189,
1726,
4236,
1388,
21121,
1769,
3639,
596,
2
] |
&& ( j == iNumberOfDivisions - 1 && bKeepState);
|
&& ( j == iNumberOfDivisions - 1 && bKeepState );
|
private final void renderCurve( IPrimitiveRenderer ipr, float fXOffset, float fYOffset ) throws ChartException { final float[] faKnotXY1 = new float[2]; final float[] faKnotXY2 = new float[2]; if ( !computeSpline( fa[0], faKnotXY1 ) ) { return; } int iNumberOfDivisions; float fX, fY; float[] faXY1, faXY2; float fT; final ArrayList stateList = new ArrayList( ); for ( int i = 0; i < iNumberOfPoints - 1; i++ ) { if ( !computeSpline( fa[i + 1], faKnotXY2 ) ) { continue; } fX = faKnotXY2[0] - faKnotXY1[0]; fY = faKnotXY2[1] - faKnotXY1[1]; iNumberOfDivisions = (int) ( Math.sqrt( fX * fX + fY * fY ) / 5.0f ) + 1; faXY1 = new float[2]; faXY2 = new float[2]; if ( !computeSpline( fa[i], faXY1 ) ) { continue; } for ( int j = 0; j < iNumberOfDivisions; j++ ) { fT = fa[i] + ( fa[i + 1] - fa[i] ) * (float) ( j + 1 ) / (float) iNumberOfDivisions; if ( !computeSpline( fT, faXY2 ) ) { continue; } if ( bShowAsTape ) { // TODO user a single surface to draw the tape. boolean drawSide = ( i == iNumberOfPoints - 2 ) && ( j == iNumberOfDivisions - 1 && bKeepState); plotPlane( ipr, faXY1[0] + fXOffset, faXY1[1] + fYOffset, faXY2[0] + fXOffset, faXY2[1] + fYOffset, drawSide ); } if ( !bFillArea ) { // if fill area, defer to the loop end. plotLine( ipr, faXY1[0] + fXOffset, faXY1[1] + fYOffset, faXY2[0] + fXOffset, faXY2[1] + fYOffset ); } // TODO remove the duplicate points. stateList.add( new float[]{ faXY1[0] + fXOffset, faXY1[1] + fYOffset } ); stateList.add( new float[]{ faXY2[0] + fXOffset, faXY2[1] + fYOffset } ); faXY1[0] = faXY2[0]; faXY1[1] = faXY2[1]; } faKnotXY1[0] = faKnotXY2[0]; faKnotXY1[1] = faKnotXY2[1]; } if ( bFillArea ) { plotArea( ipr, stateList ); } if ( bKeepState ) { iRender.getRunTimeContext( ).putState( AreaSeries.class, stateList ); } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/26bab2242276c724de8507040dbf546567b97fb2/CurveRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/CurveRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1743,
9423,
12,
467,
9840,
6747,
277,
683,
16,
1431,
284,
60,
2335,
16,
1082,
202,
5659,
284,
61,
2335,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1431,
8526,
11087,
47,
902,
8546,
21,
273,
394,
1431,
63,
22,
15533,
202,
202,
6385,
1431,
8526,
11087,
47,
902,
8546,
22,
273,
394,
1431,
63,
22,
15533,
202,
202,
430,
261,
401,
9200,
16881,
558,
12,
11087,
63,
20,
6487,
11087,
47,
902,
8546,
21,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
474,
277,
9226,
7244,
12682,
31,
202,
202,
5659,
284,
60,
16,
284,
61,
31,
202,
202,
5659,
8526,
11087,
8546,
21,
16,
11087,
8546,
22,
31,
202,
202,
5659,
284,
56,
31,
202,
202,
6385,
2407,
919,
682,
273,
394,
2407,
12,
11272,
202,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
277,
9226,
5636,
300,
404,
31,
277,
9904,
262,
202,
202,
95,
1082,
202,
430,
261,
401,
9200,
16881,
558,
12,
11087,
63,
77,
397,
404,
6487,
11087,
47,
902,
8546,
22,
262,
262,
1082,
202,
95,
9506,
202,
17143,
31,
1082,
202,
97,
1082,
202,
74,
60,
273,
11087,
47,
902,
8546,
22,
63,
20,
65,
300,
11087,
47,
902,
8546,
21,
63,
20,
15533,
1082,
202,
74,
61,
273,
11087,
47,
902,
8546,
22,
63,
21,
65,
300,
11087,
47,
902,
8546,
21,
63,
21,
15533,
1082,
202,
77,
9226,
7244,
12682,
273,
261,
474,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1743,
9423,
12,
467,
9840,
6747,
277,
683,
16,
1431,
284,
60,
2335,
16,
1082,
202,
5659,
284,
61,
2335,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1431,
8526,
11087,
47,
902,
8546,
21,
273,
394,
1431,
63,
22,
15533,
202,
202,
6385,
1431,
8526,
11087,
47,
902,
8546,
22,
273,
394,
1431,
63,
22,
15533,
202,
202,
430,
261,
401,
9200,
16881,
558,
12,
11087,
63,
20,
6487,
11087,
47,
902,
8546,
21,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
474,
277,
9226,
7244,
12682,
31,
202,
202,
5659,
284,
60,
16,
284,
61,
31,
202,
202,
5659,
8526,
11087,
8546,
21,
16,
11087,
2
] |
private void forkLifecycle( MojoDescriptor mojoDescriptor, MavenSession session, MavenProject project ) throws LifecycleExecutionException, MojoExecutionException, ArtifactResolutionException { String targetPhase = mojoDescriptor.getExecutePhase(); // Create new lifecycle Map lifecycleMappings = constructLifecycleMappings( session, targetPhase, project ); String executeLifecycle = mojoDescriptor.getExecuteLifecycle(); if ( executeLifecycle != null ) { Lifecycle lifecycleOverlay; try { lifecycleOverlay = mojoDescriptor.getPluginDescriptor().getLifecycleMapping( executeLifecycle ); } catch ( IOException e ) { throw new LifecycleExecutionException( "Unable to read lifecycle mapping file", e ); } catch ( XmlPullParserException e ) { throw new LifecycleExecutionException( "Unable to parse lifecycle mapping file", e ); } if ( lifecycleOverlay == null ) { throw new LifecycleExecutionException( "Lifecycle '" + executeLifecycle + "' not found in plugin" ); } for ( Iterator i = lifecycleOverlay.getPhases().iterator(); i.hasNext(); ) { Phase phase = (Phase) i.next(); for ( Iterator j = phase.getExecutions().iterator(); j.hasNext(); ) { Execution e = (Execution) j.next(); for ( Iterator k = e.getGoals().iterator(); k.hasNext(); ) { String goal = (String) k.next(); MojoDescriptor desc = mojoDescriptor.getPluginDescriptor().getMojo( goal ); MojoExecution mojoExecution = new MojoExecution( desc, (Xpp3Dom) e.getConfiguration() ); addToLifecycleMappings( lifecycleMappings, phase.getId(), mojoExecution, session.getSettings() ); } } } } removeFromLifecycle( mojoDescriptor, lifecycleMappings ); MavenProject executionProject = new MavenProject( project ); executeGoalWithLifecycle( targetPhase, session, lifecycleMappings, executionProject ); project.setExecutionProject( executionProject ); }
|
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/932caa362ac4e9720f01426478062e044478df4b/DefaultLifecycleExecutor.java/buggy/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
12515,
9977,
12,
15931,
3187,
312,
10007,
3187,
16,
17176,
2157,
1339,
16,
17176,
4109,
1984,
262,
3639,
1216,
14283,
14576,
16,
18780,
16,
14022,
11098,
503,
565,
288,
3639,
514,
1018,
11406,
273,
312,
10007,
3187,
18,
588,
5289,
11406,
5621,
3639,
368,
1788,
394,
6596,
3639,
1635,
6596,
7742,
273,
4872,
9977,
7742,
12,
1339,
16,
1018,
11406,
16,
1984,
11272,
3639,
514,
1836,
9977,
273,
312,
10007,
3187,
18,
588,
5289,
9977,
5621,
3639,
309,
261,
1836,
9977,
480,
446,
262,
3639,
288,
5411,
14283,
6596,
11627,
31,
5411,
775,
5411,
288,
7734,
6596,
11627,
273,
312,
10007,
3187,
18,
588,
3773,
3187,
7675,
588,
9977,
3233,
12,
1836,
9977,
11272,
5411,
289,
5411,
1044,
261,
1860,
425,
262,
5411,
288,
7734,
604,
394,
14283,
14576,
12,
315,
3370,
358,
855,
6596,
2874,
585,
3113,
425,
11272,
5411,
289,
5411,
1044,
261,
5714,
9629,
25746,
425,
262,
5411,
288,
7734,
604,
394,
14283,
14576,
12,
315,
3370,
358,
1109,
6596,
2874,
585,
3113,
425,
11272,
5411,
289,
5411,
309,
261,
6596,
11627,
422,
446,
262,
5411,
288,
7734,
604,
394,
14283,
14576,
12,
315,
9977,
2119,
397,
1836,
9977,
397,
2491,
486,
1392,
316,
1909,
6,
11272,
5411,
289,
5411,
364,
261,
4498,
277,
273,
6596,
11627,
18,
588,
3731,
3304,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
19459,
6855,
273,
261,
11406,
13,
277,
18,
4285,
5621,
7734,
364,
261,
4498,
525,
273,
6855,
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,
12515,
9977,
12,
15931,
3187,
312,
10007,
3187,
16,
17176,
2157,
1339,
16,
17176,
4109,
1984,
262,
3639,
1216,
14283,
14576,
16,
18780,
16,
14022,
11098,
503,
565,
288,
3639,
514,
1018,
11406,
273,
312,
10007,
3187,
18,
588,
5289,
11406,
5621,
3639,
368,
1788,
394,
6596,
3639,
1635,
6596,
7742,
273,
4872,
9977,
7742,
12,
1339,
16,
1018,
11406,
16,
1984,
11272,
3639,
514,
1836,
9977,
273,
312,
10007,
3187,
18,
588,
5289,
9977,
5621,
3639,
309,
261,
1836,
9977,
480,
446,
262,
3639,
288,
5411,
14283,
6596,
11627,
31,
5411,
775,
5411,
288,
7734,
6596,
11627,
273,
312,
10007,
3187,
18,
588,
3773,
3187,
7675,
588,
9977,
3233,
12,
1836,
9977,
11272,
5411,
289,
2
] |
||
public void deleteSignalEvent(MSignalEvent elem) {}
|
public void deleteSignalEvent(MSignalEvent elem) { }
|
public void deleteSignalEvent(MSignalEvent elem) {}
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/StateMachinesFactory.java/clean/src_new/org/argouml/model/uml/behavioralelements/statemachines/StateMachinesFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
11208,
1133,
12,
49,
11208,
1133,
3659,
13,
2618,
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,
377,
1071,
918,
1430,
11208,
1133,
12,
49,
11208,
1133,
3659,
13,
2618,
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
] |
public java.sql.ResultSet getBestRowIdentifier(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException { // for now, this returns an empty result set. Field f[] = new Field[8]; ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "SCOPE", iInt2Oid, 2); f[1] = new Field(connection, "COLUMN_NAME", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[3] = new Field(connection, "TYPE_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[5] = new Field(connection, "BUFFER_LENGTH", iInt4Oid, 4); f[6] = new Field(connection, "DECIMAL_DIGITS", iInt2Oid, 2); f[7] = new Field(connection, "PSEUDO_COLUMN", iInt2Oid, 2); return connection.getResultSet(null, f, v, "OK", 1); }
|
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6290,
18,
4669,
18,
13198,
588,
14173,
1999,
3004,
12,
780,
7199,
16,
780,
4821,
16,
780,
2121,
16,
474,
4887,
16,
6494,
20247,
13,
15069,
23116,
202,
95,
202,
202,
759,
1884,
3338,
16,
2211,
6154,
304,
5531,
2088,
542,
18,
202,
202,
974,
74,
8526,
33,
2704,
974,
63,
28,
15533,
202,
202,
13198,
86,
31,
202,
759,
13198,
1884,
5787,
3997,
2271,
19056,
91,
4009,
329,
9012,
202,
202,
5018,
90,
33,
2704,
5018,
5621,
202,
202,
759,
20112,
359,
13198,
88,
89,
412,
395,
3809,
202,
202,
74,
63,
20,
65,
33,
2704,
974,
12,
4071,
10837,
19444,
3113,
77,
1702,
22,
19105,
16,
22,
1769,
202,
202,
74,
63,
21,
65,
33,
2704,
974,
12,
4071,
10837,
11009,
67,
1985,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
22,
65,
33,
2704,
974,
12,
4071,
10837,
4883,
67,
2399,
3113,
77,
1702,
22,
19105,
16,
22,
1769,
202,
202,
74,
63,
23,
65,
33,
2704,
974,
12,
4071,
10837,
2399,
67,
1985,
3113,
77,
58,
22483,
19105,
16,
1985,
67,
4574,
1769,
202,
202,
74,
63,
24,
65,
33,
2704,
974,
12,
4071,
10837,
11009,
67,
4574,
3113,
77,
1702,
24,
19105,
16,
24,
1769,
202,
202,
74,
63,
25,
65,
33,
2704,
974,
12,
4071,
10837,
11302,
67,
7096,
3113,
77,
1702,
24,
19105,
16,
24,
1769,
202,
202,
74,
63,
26,
65,
33,
2704,
974,
12,
4071,
10837,
23816,
67,
21243,
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,
6290,
18,
4669,
18,
13198,
588,
14173,
1999,
3004,
12,
780,
7199,
16,
780,
4821,
16,
780,
2121,
16,
474,
4887,
16,
6494,
20247,
13,
15069,
23116,
202,
95,
202,
202,
759,
1884,
3338,
16,
2211,
6154,
304,
5531,
2088,
542,
18,
202,
202,
974,
74,
8526,
33,
2704,
974,
63,
28,
15533,
202,
202,
13198,
86,
31,
202,
759,
13198,
1884,
5787,
3997,
2271,
19056,
91,
4009,
329,
9012,
202,
202,
5018,
90,
33,
2704,
5018,
5621,
202,
202,
759,
20112,
359,
13198,
88,
89,
412,
395,
3809,
202,
202,
74,
63,
20,
65,
33,
2704,
974,
12,
4071,
10837,
19444,
3113,
77,
1702,
22,
19105,
16,
22,
1769,
202,
202,
74,
63,
21,
65,
2
] |
||
Element el0, el1;
|
Element el0;
|
public void testVarSpeedTable() { String[] args = {"CV", "Name"}; VariableTableModel t = new VariableTableModel(null, args, new CvTableModel(null)); // create a JDOM tree with just some elements Element root = new Element("decoder-config"); Document doc = new Document(root); doc.setDocType(new DocType("decoder-config","decoder-config.dtd")); // add some elements Element el0, el1; root.addContent(new Element("decoder") // the sites information here lists all relevant .addContent(new Element("variables") .addContent(el0 = new Element("variable") .addAttribute("CV","67") .addAttribute("name","Speed Table") .addContent( new Element("speedTableVal") ) ) ) // variables element ) // decoder element ; // end of adding contents // and test reading this t.setRow(0, el0); // check finding Assert.assertEquals("length of variable list ", 1, t.getRowCount()); Assert.assertEquals("name of 1st variable ", "Speed Table", t.getName(0)); Assert.assertEquals("find Speed Table ",0, t.findVarIndex("Speed Table")); Assert.assertEquals("find nonexistant variable ",-1, t.findVarIndex("not there, eh?")); }
|
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/e52e40ae4d70a0f2b1516a7d2cf5669b5933a075/VariableTableModelTest.java/buggy/tests/jmrit/symbolicprog/VariableTableModelTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1537,
16562,
1388,
1435,
288,
202,
202,
780,
8526,
833,
273,
12528,
22007,
3113,
315,
461,
6,
20451,
202,
202,
3092,
1388,
1488,
268,
273,
394,
7110,
1388,
1488,
12,
2011,
16,
833,
16,
394,
385,
90,
1388,
1488,
12,
2011,
10019,
9506,
202,
759,
752,
279,
804,
8168,
2151,
598,
2537,
2690,
2186,
202,
202,
1046,
1365,
273,
394,
3010,
2932,
21070,
17,
1425,
8863,
202,
202,
2519,
997,
273,
394,
4319,
12,
3085,
1769,
202,
202,
2434,
18,
542,
1759,
559,
12,
2704,
3521,
559,
2932,
21070,
17,
1425,
15937,
21070,
17,
1425,
18,
31834,
7923,
1769,
9506,
202,
759,
527,
2690,
2186,
202,
202,
1046,
415,
20,
16,
415,
21,
31,
202,
202,
3085,
18,
1289,
1350,
12,
2704,
3010,
2932,
21070,
7923,
202,
202,
759,
326,
9180,
1779,
2674,
6035,
777,
9368,
6862,
202,
18,
1289,
1350,
12,
2704,
3010,
2932,
7528,
7923,
6862,
6862,
202,
18,
1289,
1350,
12,
292,
20,
273,
394,
3010,
2932,
6105,
7923,
6862,
6862,
9506,
202,
18,
1289,
1499,
2932,
22007,
15937,
9599,
7923,
6862,
6862,
9506,
202,
18,
1289,
1499,
2932,
529,
15937,
16562,
3555,
7923,
6862,
6862,
9506,
202,
18,
1289,
1350,
12,
394,
3010,
2932,
13871,
1388,
3053,
7923,
6862,
6862,
6862,
202,
13,
6862,
6862,
9506,
202,
13,
6862,
25083,
202,
13,
202,
759,
3152,
930,
6862,
6862,
6862,
1082,
202,
13,
368,
8320,
930,
1082,
202,
31,
368,
679,
434,
6534,
2939,
202,
202,
759,
471,
1842,
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,
1842,
1537,
16562,
1388,
1435,
288,
202,
202,
780,
8526,
833,
273,
12528,
22007,
3113,
315,
461,
6,
20451,
202,
202,
3092,
1388,
1488,
268,
273,
394,
7110,
1388,
1488,
12,
2011,
16,
833,
16,
394,
385,
90,
1388,
1488,
12,
2011,
10019,
9506,
202,
759,
752,
279,
804,
8168,
2151,
598,
2537,
2690,
2186,
202,
202,
1046,
1365,
273,
394,
3010,
2932,
21070,
17,
1425,
8863,
202,
202,
2519,
997,
273,
394,
4319,
12,
3085,
1769,
202,
202,
2434,
18,
542,
1759,
559,
12,
2704,
3521,
559,
2932,
21070,
17,
1425,
15937,
21070,
17,
1425,
18,
31834,
7923,
1769,
9506,
202,
759,
527,
2690,
2186,
202,
202,
1046,
415,
20,
16,
415,
21,
31,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.