rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
String loglocation = PLUGIN_ABSOLUTE_PATH + GENERATED_RESULTS_DIR + PATHS_DIR + "QuoteInFilename/" + testname + ".xml-log"; String idealloglocation = PLUGIN_ABSOLUTE_PATH + IDEAL_RESULTS_DIR + PATHS_DIR + "QuoteInFilename/" + testname + ".xml-log"; runTest(testfile, loglocation, idealloglocation);
|
List keys = new ArrayList(); keys.add("MarkupEntityMismatch"); int numErrors = 1; int numWarnings = 0; runTest(testfile, keys, numErrors, numWarnings);
|
public void testQuoteInFilenameInvalid() { String testname = "Quote'InFilenameInvalid"; String testfile = FILE_PROTOCOL + PLUGIN_ABSOLUTE_PATH + SAMPLES_DIR + PATHS_DIR + "QuoteInFilename/" + testname + ".xml"; String loglocation = PLUGIN_ABSOLUTE_PATH + GENERATED_RESULTS_DIR + PATHS_DIR + "QuoteInFilename/" + testname + ".xml-log"; String idealloglocation = PLUGIN_ABSOLUTE_PATH + IDEAL_RESULTS_DIR + PATHS_DIR + "QuoteInFilename/" + testname + ".xml-log"; runTest(testfile, loglocation, idealloglocation); }
|
58500 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58500/cc4e28822f399d00c4862a8136ff6768a61ae159/PathsTest.java/clean/tests/org.eclipse.wst.xml.validation.tests/src/org/eclipse/wst/xml/validation/tests/internal/PathsTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
10257,
382,
5359,
1941,
1435,
225,
288,
282,
202,
780,
1842,
529,
273,
315,
10257,
11,
382,
5359,
1941,
14432,
565,
514,
1842,
768,
273,
7527,
67,
16850,
397,
22704,
67,
2090,
26786,
67,
4211,
397,
348,
8900,
11386,
67,
4537,
397,
7767,
55,
67,
4537,
397,
315,
10257,
382,
5359,
4898,
397,
1842,
529,
397,
3552,
2902,
14432,
565,
514,
613,
3562,
273,
22704,
67,
2090,
26786,
67,
4211,
397,
13679,
6344,
67,
20602,
67,
4537,
397,
7767,
55,
67,
4537,
397,
315,
10257,
382,
5359,
4898,
397,
1842,
529,
397,
3552,
2902,
17,
1330,
14432,
565,
514,
23349,
1330,
3562,
273,
22704,
67,
2090,
26786,
67,
4211,
397,
1599,
41,
1013,
67,
20602,
67,
4537,
397,
7767,
55,
67,
4537,
397,
315,
10257,
382,
5359,
4898,
397,
1842,
529,
397,
3552,
2902,
17,
1330,
14432,
3639,
1086,
4709,
12,
3813,
768,
16,
613,
3562,
16,
23349,
1330,
3562,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
10257,
382,
5359,
1941,
1435,
225,
288,
282,
202,
780,
1842,
529,
273,
315,
10257,
11,
382,
5359,
1941,
14432,
565,
514,
1842,
768,
273,
7527,
67,
16850,
397,
22704,
67,
2090,
26786,
67,
4211,
397,
348,
8900,
11386,
67,
4537,
397,
7767,
55,
67,
4537,
397,
315,
10257,
382,
5359,
4898,
397,
1842,
529,
397,
3552,
2902,
14432,
565,
514,
613,
3562,
273,
22704,
67,
2090,
26786,
67,
4211,
397,
13679,
6344,
67,
20602,
67,
4537,
397,
7767,
55,
67,
4537,
397,
315,
10257,
382,
5359,
4898,
397,
1842,
529,
397,
3552,
2902,
17,
1330,
14432,
565,
514,
23349,
1330,
3562,
273,
22704,
67,
2090,
26786,
67,
4211,
397,
1599,
41,
1013,
67,
20602,
2
] |
public String getDescription() { return "Java archives (*.jar,*.zip,*.ear,*.war)"; }
|
public String getDescription() { return "Java archives (*.jar,*.zip,*.ear,*.war)"; }
|
public String getDescription() { return "Java archives (*.jar,*.zip,*.ear,*.war)"; }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
11056,
1435,
288,
327,
315,
5852,
21997,
261,
11146,
11930,
16,
11146,
4450,
16,
11146,
2091,
16,
11146,
905,
2225,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
11056,
1435,
288,
327,
315,
5852,
21997,
261,
11146,
11930,
16,
11146,
4450,
16,
11146,
2091,
16,
11146,
905,
2225,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"plugin|" + pluginData.className, PLUGIN_TYPE, pluginData.className, PLUGIN_INSERTION_POINT);
|
agentData.name, AGENT_TYPE, agentData.className, AGENT_INSERTION_POINT); for (int j = 0; j < agentData.pluginData.length; j++) { PluginData pluginData = agentData.pluginData[j]; insertLibComponent(dbConnection, "plugin|" + pluginData.className, PLUGIN_TYPE, pluginData.className, PLUGIN_INSERTION_POINT); }
|
private void insertLib(Connection dbConnection) throws SQLException { insertLibComponent(dbConnection, NODE_TYPE + "|" + nodeData.name, NODE_TYPE, nodeData.className, NODE_INSERTION_POINT); for (int i = 0; i < nodeData.agentData.length; i++) { AgentData agentData = nodeData.agentData[i]; insertLibComponent(dbConnection, agentData.name, AGENT_TYPE, agentData.className, AGENT_INSERTION_POINT); for (int j = 0; j < agentData.pluginData.length; j++) { PluginData pluginData = agentData.pluginData[j]; insertLibComponent(dbConnection, "plugin|" + pluginData.className, PLUGIN_TYPE, pluginData.className, PLUGIN_INSERTION_POINT); } } }
|
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/414b4de598bedce4a618ac7303aa28af814ba1ed/TestPopulateDb.java/clean/csmart/regress/org/cougaar/tools/csmart/ui/component/TestPopulateDb.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2243,
5664,
12,
1952,
1319,
1952,
13,
1216,
6483,
288,
3639,
2243,
5664,
1841,
12,
1966,
1952,
16,
21821,
11922,
67,
2399,
397,
15710,
397,
19167,
18,
529,
16,
21821,
11922,
67,
2399,
16,
21821,
19167,
18,
12434,
16,
21821,
11922,
67,
11356,
1146,
67,
8941,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
19167,
18,
5629,
751,
18,
2469,
31,
277,
27245,
288,
5411,
8669,
751,
4040,
751,
273,
19167,
18,
5629,
751,
63,
77,
15533,
5411,
2243,
5664,
1841,
12,
1966,
1952,
16,
1171,
9079,
4040,
751,
18,
529,
16,
1171,
9079,
432,
43,
2222,
67,
2399,
16,
1171,
9079,
4040,
751,
18,
12434,
16,
1171,
9079,
432,
43,
2222,
67,
11356,
1146,
67,
8941,
1769,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
4040,
751,
18,
4094,
751,
18,
2469,
31,
525,
27245,
288,
7734,
6258,
751,
1909,
751,
273,
4040,
751,
18,
4094,
751,
63,
78,
15533,
7734,
2243,
5664,
1841,
12,
1966,
1952,
16,
4766,
282,
315,
4094,
22317,
397,
1909,
751,
18,
12434,
16,
4766,
282,
22704,
67,
2399,
16,
4766,
282,
1909,
751,
18,
12434,
16,
4766,
282,
22704,
67,
11356,
1146,
67,
8941,
1769,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2243,
5664,
12,
1952,
1319,
1952,
13,
1216,
6483,
288,
3639,
2243,
5664,
1841,
12,
1966,
1952,
16,
21821,
11922,
67,
2399,
397,
15710,
397,
19167,
18,
529,
16,
21821,
11922,
67,
2399,
16,
21821,
19167,
18,
12434,
16,
21821,
11922,
67,
11356,
1146,
67,
8941,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
19167,
18,
5629,
751,
18,
2469,
31,
277,
27245,
288,
5411,
8669,
751,
4040,
751,
273,
19167,
18,
5629,
751,
63,
77,
15533,
5411,
2243,
5664,
1841,
12,
1966,
1952,
16,
1171,
9079,
4040,
751,
18,
529,
16,
1171,
9079,
432,
43,
2222,
67,
2399,
16,
1171,
9079,
4040,
751,
18,
12434,
16,
1171,
9079,
432,
43,
2222,
67,
2
] |
private Object loadBaseDataSource(BaseDataSource ds, Reference ref)
|
protected Object loadBaseDataSource(BaseDataSource ds, Reference ref)
|
private Object loadBaseDataSource(BaseDataSource ds, Reference ref) { ds.setDatabaseName(getProperty(ref, "databaseName")); ds.setPassword(getProperty(ref, "password")); String port = getProperty(ref, "portNumber"); if (port != null) { ds.setPortNumber(Integer.parseInt(port)); } ds.setServerName(getProperty(ref, "serverName")); ds.setUser(getProperty(ref, "user")); return ds; }
|
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/7bf1c8b0ad5f2534362fb6938be28bb041d79c90/PGObjectFactory.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/optional/PGObjectFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1033,
1262,
2171,
8597,
12,
2171,
8597,
3780,
16,
6268,
1278,
13,
202,
95,
202,
202,
2377,
18,
542,
4254,
461,
12,
588,
1396,
12,
1734,
16,
315,
6231,
461,
7923,
1769,
202,
202,
2377,
18,
542,
3913,
12,
588,
1396,
12,
1734,
16,
315,
3664,
7923,
1769,
202,
202,
780,
1756,
273,
3911,
12,
1734,
16,
315,
655,
1854,
8863,
202,
202,
430,
261,
655,
480,
446,
13,
202,
202,
95,
1082,
202,
2377,
18,
542,
2617,
1854,
12,
4522,
18,
2670,
1702,
12,
655,
10019,
202,
202,
97,
202,
202,
2377,
18,
542,
28434,
12,
588,
1396,
12,
1734,
16,
315,
3567,
461,
7923,
1769,
202,
202,
2377,
18,
542,
1299,
12,
588,
1396,
12,
1734,
16,
315,
1355,
7923,
1769,
202,
202,
2463,
3780,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1033,
1262,
2171,
8597,
12,
2171,
8597,
3780,
16,
6268,
1278,
13,
202,
95,
202,
202,
2377,
18,
542,
4254,
461,
12,
588,
1396,
12,
1734,
16,
315,
6231,
461,
7923,
1769,
202,
202,
2377,
18,
542,
3913,
12,
588,
1396,
12,
1734,
16,
315,
3664,
7923,
1769,
202,
202,
780,
1756,
273,
3911,
12,
1734,
16,
315,
655,
1854,
8863,
202,
202,
430,
261,
655,
480,
446,
13,
202,
202,
95,
1082,
202,
2377,
18,
542,
2617,
1854,
12,
4522,
18,
2670,
1702,
12,
655,
10019,
202,
202,
97,
202,
202,
2377,
18,
542,
28434,
12,
588,
1396,
12,
1734,
16,
315,
3567,
461,
7923,
1769,
202,
202,
2377,
18,
542,
1299,
12,
588,
1396,
2
] |
public ToolBarContributionItem(IToolBarManager toolBarManager, String id) { super(id); Assert.isTrue(toolBarManager instanceof ToolBarManager); this.toolBarManager = (ToolBarManager) toolBarManager;
|
public ToolBarContributionItem() { this(new ToolBarManager(), null);
|
public ToolBarContributionItem(IToolBarManager toolBarManager, String id) { super(id); Assert.isTrue(toolBarManager instanceof ToolBarManager); this.toolBarManager = (ToolBarManager) toolBarManager; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/ToolBarContributionItem.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ToolBarContributionItem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13288,
5190,
442,
4027,
1180,
12,
45,
6364,
5190,
1318,
5226,
5190,
1318,
16,
514,
612,
13,
288,
3639,
2240,
12,
350,
1769,
3639,
5452,
18,
291,
5510,
12,
6738,
5190,
1318,
1276,
13288,
5190,
1318,
1769,
3639,
333,
18,
6738,
5190,
1318,
273,
261,
6364,
5190,
1318,
13,
5226,
5190,
1318,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13288,
5190,
442,
4027,
1180,
12,
45,
6364,
5190,
1318,
5226,
5190,
1318,
16,
514,
612,
13,
288,
3639,
2240,
12,
350,
1769,
3639,
5452,
18,
291,
5510,
12,
6738,
5190,
1318,
1276,
13288,
5190,
1318,
1769,
3639,
333,
18,
6738,
5190,
1318,
273,
261,
6364,
5190,
1318,
13,
5226,
5190,
1318,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_OR_ATTRIBUTE_OR_END][UniversalTag.SEQUENCE_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_OR_ATTRIBUTE_OR_END,
|
super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTE_VAL_OR_ATTRIBUTE_OR_END][UniversalTag.SEQUENCE_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTE_VAL_OR_ATTRIBUTE_OR_END,
|
private AddRequestGrammar() { name = AddRequestGrammar.class.getName(); statesEnum = LdapStatesEnum.getInstance(); // Create the transitions table super.transitions = new GrammarTransition[LdapStatesEnum.LAST_ADD_REQUEST_STATE][256]; //============================================================================================ // AddRequest Message //============================================================================================ // LdapMessage ::= ... AddRequest ... // AddRequest ::= [APPLICATION 8] SEQUENCE { (Tag) // Nothing to do. super.transitions[LdapStatesEnum.ADD_REQUEST_TAG][LdapConstants.ADD_REQUEST_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_TAG, LdapStatesEnum.ADD_REQUEST_VALUE, null ); // LdapMessage ::= ... AddRequest ... // AddRequest ::= [APPLICATION 8] SEQUENCE { (Value) // Create the structure super.transitions[LdapStatesEnum.ADD_REQUEST_VALUE][LdapConstants.ADD_REQUEST_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_VALUE, LdapStatesEnum.ADD_REQUEST_ENTRY_TAG, new GrammarAction( "Init addRequest" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); // We will check that the request is not null TLV tlv = ldapMessageContainer.getCurrentTLV(); if ( tlv.getLength().getLength() == 0 ) { String msg = "The AddRequest must not be null"; log.error( msg ); throw new DecoderException( msg ); } // Now, we can allocate the ModifyRequest Object // And we associate it to the ldapMessage Object ldapMessage.setProtocolOP( new AddRequest() ); } } ); // AddRequest ::= [APPLICATION 8] SEQUENCE { // entry LDAPDN, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.ADD_REQUEST_ENTRY_TAG][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ENTRY_TAG, LdapStatesEnum.ADD_REQUEST_ENTRY_VALUE, null ); // AddRequest ::= [APPLICATION 8] SEQUENCE { // entry LDAPDN, (Value) // ... // Store the object name. super.transitions[LdapStatesEnum.ADD_REQUEST_ENTRY_VALUE][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ENTRY_VALUE, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_TAG, new GrammarAction( "Store add request object Value" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); AddRequest addRequest = ldapMessage.getAddRequest(); TLV tlv = ldapMessageContainer.getCurrentTLV(); // Store the entry. It can't be null if ( tlv.getLength().getLength() == 0 ) { throw new DecoderException( "The DN can't be null" ); } else { Name entry = null; try { entry = new LdapDN( tlv.getValue().getData() ); entry = LdapDN.normalize( entry ); } catch ( InvalidNameException ine ) { String msg = "The DN is invalid : " + StringTools.dumpBytes(tlv.getValue().getData()) + " : " + ine.getMessage(); log.error( "{} : {}", msg, ine.getMessage()); throw new DecoderException( msg, ine ); } catch ( NamingException ne ) { String msg = "The DN is invalid : " + StringTools.dumpBytes(tlv.getValue().getData()) + " : " + ne.getMessage(); log.error( "{} : {}", msg, ne.getMessage() ); throw new DecoderException( msg, ne ); } addRequest.setEntry( entry ); } log.debug( "Adding an entry with DN : {}", addRequest.getEntry() ); } } ); // AddRequest ::= [APPLICATION 8] SEQUENCE { // ... // attributes AttributeList } // AttributeList ::= *SEQUENCE* OF SEQUENCE { (Tag) // Nothing to do super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_TAG][UniversalTag.SEQUENCE_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_TAG, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VALUE, null ); // AddRequest ::= [APPLICATION 8] SEQUENCE { // ... // attributes AttributeList } // AttributeList ::= *SEQUENCE* OF SEQUENCE { (Value) // Allocate the attributes ArrayList super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VALUE][UniversalTag.SEQUENCE_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VALUE, LdapStatesEnum.ADD_REQUEST_ATTRIBUTE_TAG, new GrammarAction( "Init attributes array list" ) { public void action( IAsn1Container container ) { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); AddRequest addRequest = ldapMessage.getAddRequest(); addRequest.initAttributes(); } } ); // AttributeList ::= SEQUENCE OF *SEQUENCE* { (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTE_TAG][UniversalTag.SEQUENCE_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTE_TAG, LdapStatesEnum.ADD_REQUEST_ATTRIBUTE_VALUE, null ); // AttributeList ::= SEQUENCE OF *SEQUENCE* { (Tag) // ... // Nothing to do // This is a loop, when dealing with more than one attribute super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_OR_ATTRIBUTE_OR_END][UniversalTag.SEQUENCE_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_OR_ATTRIBUTE_OR_END, LdapStatesEnum.ADD_REQUEST_ATTRIBUTE_VALUE, null ); // AttributeList ::= SEQUENCE OF *SEQUENCE* { (Value) // Nothing to do super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTE_VALUE][UniversalTag.SEQUENCE_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTE_VALUE, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_TYPE_TAG, null ); // AttributeList ::= SEQUENCE OF *SEQUENCE* { // type AttributeDescription, (Tag) // ... // Nothing to do super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_TYPE_TAG][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_TYPE_TAG, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_TYPE_VALUE, null ); // AttributeList ::= SEQUENCE OF *SEQUENCE* { // type AttributeDescription, (Value) // ... // Store the attribute type. super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_TYPE_VALUE][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_TYPE_VALUE, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VALS_TAG, new GrammarAction( "Store attribute type" ) { public void action( IAsn1Container container ) throws DecoderException { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); TLV tlv = ldapMessageContainer.getCurrentTLV(); AddRequest addRequest = ldapMessage.getAddRequest(); // Store the type. It can't be null. LdapString type = null; if ( tlv.getLength().getLength() == 0 ) { log.error( "Null types are not allowed" ); throw new DecoderException( "The type can't be null" ); } else { try { type = LdapDN.normalizeAttribute( tlv.getValue().getData() ); addRequest.addAttributeType( type ); } catch ( LdapStringEncodingException lsee ) { log.error( "The type is invalid : {} : {}", StringTools.dumpBytes( tlv.getValue().getData() ), lsee.getMessage() ); throw new DecoderException( "Invalid attribute type : " + lsee.getMessage() ); } } if ( log.isDebugEnabled() ) { log.debug( "Adding type {}", type ); } } } ); // AttributeTypeAndValues ::= SEQUENCE { // ... // vals *SET OF* AttributeValue } (Tag) // Nothing to do super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VALS_TAG][UniversalTag.SET_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VALS_TAG, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VALS_VALUE, null ); // AttributeTypeAndValues ::= SEQUENCE { // ... // vals *SET OF* AttributeValue } (Value) // Nothing to do super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VALS_VALUE][UniversalTag.SET_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VALS_VALUE, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_TAG, null ); // AttributeTypeAndValues ::= SEQUENCE { // ... // vals SET OF *AttributeValue* } (Tag) // Nothing to do super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_TAG][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_TAG, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_VALUE, null ); // AttributeTypeAndValues ::= SEQUENCE { // ... // vals SET OF *AttributeValue* } (Loop) // This is a loop, when dealing with multi-valued attributes super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_OR_ATTRIBUTE_OR_END][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_OR_ATTRIBUTE_OR_END, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_VALUE, new GrammarAction( "Allow pop" ) { public void action( IAsn1Container container ) throws DecoderException { container.grammarPopAllowed( true ); } } ); // AttributeTypeAndValues ::= SEQUENCE { // ... // vals SET OF AttributeValue } // AttributeValue ::= OCTET STRING (Value) // Store a new attribute value. super.transitions[LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_VALUE][UniversalTag.OCTET_STRING_TAG] = new GrammarTransition( LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_VALUE, LdapStatesEnum.ADD_REQUEST_ATTRIBUTES_VAL_OR_ATTRIBUTE_OR_END, new GrammarAction( "Store attribute value" ) { public void action( IAsn1Container container ) { LdapMessageContainer ldapMessageContainer = ( LdapMessageContainer ) container; LdapMessage ldapMessage = ldapMessageContainer.getLdapMessage(); AddRequest addRequest = ldapMessage.getAddRequest(); TLV tlv = ldapMessageContainer.getCurrentTLV(); // Store the value. It can't be null Object value = null; if ( tlv.getLength().getLength() == 0 ) { addRequest.addAttributeValue( "" ); } else { if (ldapMessageContainer.isBinary( addRequest.getCurrentAttributeType() ) ) { value = tlv.getValue().getData(); if ( log.isDebugEnabled() ) { log.debug( "Adding value {}", StringTools.dumpBytes( (byte[])value ) ); } } else { value = StringTools.utf8ToString( tlv.getValue().getData() ); log.debug( "Adding value {}" + value ); } addRequest.addAttributeValue( value ); } // We can have an END transition ldapMessageContainer.grammarEndAllowed( true ); // We can have an POP transition ldapMessageContainer.grammarPopAllowed( true ); } } ); }
|
54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/ffd8608095eb1509d38cf20c2f48aa2df29ec9bf/AddRequestGrammar.java/clean/ldap/src/main/java/org/apache/ldap/common/codec/add/AddRequestGrammar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1436,
691,
18576,
1435,
565,
288,
3639,
508,
4202,
273,
1436,
691,
18576,
18,
1106,
18,
17994,
5621,
3639,
5493,
3572,
273,
18053,
7629,
3572,
18,
588,
1442,
5621,
3639,
368,
1788,
326,
13136,
1014,
3639,
2240,
18,
22671,
273,
394,
27809,
8850,
63,
18437,
7629,
3572,
18,
14378,
67,
8355,
67,
5519,
67,
7998,
6362,
5034,
15533,
3639,
368,
9917,
2429,
14468,
3639,
368,
1436,
691,
2350,
3639,
368,
9917,
2429,
14468,
3639,
368,
18053,
1079,
493,
33,
1372,
1436,
691,
1372,
3639,
368,
1436,
691,
493,
33,
306,
25039,
1725,
65,
27118,
288,
261,
1805,
13,
3639,
368,
13389,
358,
741,
18,
3639,
2240,
18,
22671,
63,
18437,
7629,
3572,
18,
8355,
67,
5519,
67,
7927,
6362,
18437,
2918,
18,
8355,
67,
5519,
67,
7927,
65,
273,
394,
27809,
8850,
12,
7734,
18053,
7629,
3572,
18,
8355,
67,
5519,
67,
7927,
16,
18053,
7629,
3572,
18,
8355,
67,
5519,
67,
4051,
16,
446,
11272,
3639,
368,
18053,
1079,
493,
33,
1372,
1436,
691,
1372,
3639,
368,
1436,
691,
493,
33,
306,
25039,
1725,
65,
27118,
288,
261,
620,
13,
3639,
368,
1788,
326,
3695,
3639,
2240,
18,
22671,
63,
18437,
7629,
3572,
18,
8355,
67,
5519,
67,
4051,
6362,
18437,
2918,
18,
8355,
67,
5519,
67,
7927,
65,
273,
394,
27809,
8850,
12,
7734,
18053,
7629,
3572,
18,
8355,
67,
5519,
67,
4051,
16,
18053,
7629,
3572,
18,
8355,
67,
5519,
67,
19083,
67,
7927,
16,
7734,
394,
27809,
1803,
12,
315,
2570,
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,
1436,
691,
18576,
1435,
565,
288,
3639,
508,
4202,
273,
1436,
691,
18576,
18,
1106,
18,
17994,
5621,
3639,
5493,
3572,
273,
18053,
7629,
3572,
18,
588,
1442,
5621,
3639,
368,
1788,
326,
13136,
1014,
3639,
2240,
18,
22671,
273,
394,
27809,
8850,
63,
18437,
7629,
3572,
18,
14378,
67,
8355,
67,
5519,
67,
7998,
6362,
5034,
15533,
3639,
368,
9917,
2429,
14468,
3639,
368,
1436,
691,
2350,
3639,
368,
9917,
2429,
14468,
3639,
368,
18053,
1079,
493,
33,
1372,
1436,
691,
1372,
3639,
368,
1436,
691,
493,
33,
306,
25039,
1725,
65,
27118,
288,
261,
1805,
13,
3639,
368,
13389,
358,
741,
18,
3639,
2240,
18,
22671,
63,
18437,
7629,
3572,
18,
8355,
67,
5519,
67,
2
] |
public void mOctalEscape() throws RecognitionException { try { ruleNestingLevel++; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1353:9: ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ) int alt14=3; int LA14_0 = input.LA(1); if ( (LA14_0=='\\') ) { int LA14_1 = input.LA(2); if ( ((LA14_1>='0' && LA14_1<='3')) ) { int LA14_2 = input.LA(3); if ( ((LA14_2>='0' && LA14_2<='7')) ) { int LA14_4 = input.LA(4); if ( ((LA14_4>='0' && LA14_4<='7')) ) { alt14=1; } else { alt14=2;} } else { alt14=3;} } else if ( ((LA14_1>='4' && LA14_1<='7')) ) { int LA14_3 = input.LA(3); if ( ((LA14_3>='0' && LA14_3<='7')) ) { alt14=2; } else { alt14=3;} } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1351:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 14, 1, input); throw nvae; } } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1351:1: fragment OctalEscape : ( '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) | '\\\\' ( '0' .. '7' ) );", 14, 0, input); throw nvae; } switch (alt14) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1353:9: '\\\\' ( '0' .. '3' ) ( '0' .. '7' ) ( '0' .. '7' ) { match('\\'); if (failed) return ; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1353:14: ( '0' .. '3' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1353:15: '0' .. '3' { matchRange('0','3'); if (failed) return ; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1353:25: ( '0' .. '7' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1353:26: '0' .. '7' { matchRange('0','7'); if (failed) return ; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1353:36: ( '0' .. '7' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1353:37: '0' .. '7' { matchRange('0','7'); if (failed) return ; } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1354:9: '\\\\' ( '0' .. '7' ) ( '0' .. '7' ) { match('\\'); if (failed) return ; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1354:14: ( '0' .. '7' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1354:15: '0' .. '7' { matchRange('0','7'); if (failed) return ; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1354:25: ( '0' .. '7' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1354:26: '0' .. '7' { matchRange('0','7'); if (failed) return ; } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1355:9: '\\\\' ( '0' .. '7' ) { match('\\'); if (failed) return ; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1355:14: ( '0' .. '7' ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1355:15: '0' .. '7' { matchRange('0','7'); if (failed) return ; } } break; } } finally { ruleNestingLevel--; } }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
19320,
287,
8448,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
3437,
8643,
30,
29,
30,
261,
25215,
261,
296,
20,
11,
6116,
296,
23,
11,
262,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
571,
25215,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
571,
25215,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
262,
5411,
509,
3770,
3461,
33,
23,
31,
5411,
509,
2928,
3461,
67,
20,
273,
810,
18,
2534,
12,
21,
1769,
5411,
309,
261,
261,
2534,
3461,
67,
20,
18920,
1695,
6134,
262,
288,
7734,
509,
2928,
3461,
67,
21,
273,
810,
18,
2534,
12,
22,
1769,
7734,
309,
261,
14015,
2534,
3461,
67,
21,
34,
2218,
20,
11,
597,
2928,
3461,
67,
21,
32,
2218,
23,
26112,
262,
288,
10792,
509,
2928,
3461,
67,
22,
273,
810,
18,
2534,
12,
23,
1769,
10792,
309,
261,
14015,
2534,
3461,
67,
22,
34,
2218,
20,
11,
597,
2928,
3461,
67,
22,
32,
2218,
27,
26112,
262,
288,
13491,
509,
2928,
3461,
67,
24,
273,
810,
18,
2534,
12,
24,
1769,
13491,
309,
261,
14015,
2534,
3461,
67,
24,
34,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
19320,
287,
8448,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
3437,
8643,
30,
29,
30,
261,
25215,
261,
296,
20,
11,
6116,
296,
23,
11,
262,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
571,
25215,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
571,
25215,
261,
296,
20,
11,
6116,
296,
27,
11,
262,
2
] |
||
void preReplaceChildEvent(ASTNode node, ASTNode child, ASTNode newChild, StructuralPropertyDescriptor property) { // IMPORTANT: this method is called by readers during lazy init synchronized (this.internalASTLock) { // guard against concurrent access by a reader doing lazy init if (this.disableEvents > 0) { // doing lazy init OR already processing an event // System.out.println("[BOUNCE REP]"); //$NON-NLS-1$ return; } else { disableEvents(); } } try { this.eventHandler.preReplaceChildEvent(node, child, newChild, property); // N.B. even if event handler blows up, the AST is not // corrupted since node has not been changed yet } finally { reenableEvents(); } }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/8915ec2bb74e44419be85002d7c3a4c9f8582635/AST.java/buggy/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/AST.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
675,
5729,
1763,
1133,
12,
9053,
907,
756,
16,
9183,
907,
1151,
16,
9183,
907,
19783,
16,
7362,
3766,
1396,
3187,
1272,
13,
288,
202,
202,
759,
21840,
6856,
30,
333,
707,
353,
2566,
635,
16527,
4982,
7962,
1208,
202,
202,
22043,
261,
2211,
18,
7236,
9053,
2531,
13,
288,
1082,
202,
759,
11026,
5314,
10020,
2006,
635,
279,
2949,
9957,
7962,
1208,
1082,
202,
430,
261,
2211,
18,
8394,
3783,
405,
374,
13,
288,
9506,
202,
759,
9957,
7962,
1208,
4869,
1818,
4929,
392,
871,
9506,
202,
759,
2332,
18,
659,
18,
8222,
2932,
63,
5315,
2124,
1441,
2438,
52,
4279,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2463,
31,
1082,
202,
97,
469,
288,
9506,
202,
8394,
3783,
5621,
1082,
202,
97,
202,
202,
97,
202,
202,
698,
288,
1082,
202,
2211,
18,
2575,
1503,
18,
1484,
5729,
1763,
1133,
12,
2159,
16,
1151,
16,
19783,
16,
1272,
1769,
1082,
202,
759,
423,
18,
38,
18,
5456,
309,
871,
1838,
324,
821,
87,
731,
16,
326,
9183,
353,
486,
1082,
202,
759,
27823,
3241,
756,
711,
486,
2118,
3550,
4671,
202,
202,
97,
3095,
288,
1082,
202,
2842,
429,
3783,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
675,
5729,
1763,
1133,
12,
9053,
907,
756,
16,
9183,
907,
1151,
16,
9183,
907,
19783,
16,
7362,
3766,
1396,
3187,
1272,
13,
288,
202,
202,
759,
21840,
6856,
30,
333,
707,
353,
2566,
635,
16527,
4982,
7962,
1208,
202,
202,
22043,
261,
2211,
18,
7236,
9053,
2531,
13,
288,
1082,
202,
759,
11026,
5314,
10020,
2006,
635,
279,
2949,
9957,
7962,
1208,
1082,
202,
430,
261,
2211,
18,
8394,
3783,
405,
374,
13,
288,
9506,
202,
759,
9957,
7962,
1208,
4869,
1818,
4929,
392,
871,
9506,
202,
759,
2332,
18,
659,
18,
8222,
2932,
63,
5315,
2124,
1441,
2438,
52,
4279,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
2463,
31,
1082,
202,
2
] |
||
sleep( 2000 );
|
urlExpander.join();
|
public void run() { try { int tempId = transferJob.getTransferId(); TransferThread transferThread; RFTOptionsType rftOptions = transferJob.getRftOptions(); if ( rftOptions == null ) { rftOptions = globalRFTOptionsType; } try { transferClient = getTransferClient( transferJob.getSourceUrl(), transferJob.getDestinationUrl() ); if ( (transferClient == null ) || !connectionPoolingEnabled) { logger.debug( "No transferClient reuse" + proxyLocation ); transferClient = new TransferClient( tempId, transferJob.getSourceUrl(), transferJob.getDestinationUrl(), proxyLocation, transferProgress, serviceData, transferProgressData, restartMarkerServiceData, restartMarkerDataType, gridFTPRestartMarkerSD, gridFTPRestartMarkerSDE, gridFTPPerfMarkerSD, gridFTPPerfMarkerSDE, rftOptions ); transferJob.setStatus( TransferJob.STATUS_ACTIVE ); dbAdapter.update( transferJob ); } else { logger.debug( "Reusing TransferClient from the pool" ); transferClient.setSourceURL( transferJob.getSourceUrl() ); transferClient.setDestinationURL( transferJob.getDestinationUrl() ); MyMarkerListener myMarkerListener = new MyMarkerListener( transferProgress, serviceData , transferProgressData, transferClient.getSize() , restartMarkerServiceData, restartMarkerDataType , gridFTPRestartMarkerSD, gridFTPRestartMarkerSDE , gridFTPPerfMarkerSD, gridFTPPerfMarkerSDE ); transferClient.setMyMarkerListener( myMarkerListener ); transferClient.setStatus( TransferJob.STATUS_ACTIVE ); } } catch ( Exception e ) { logger.error( "Error in Transfer Client" + e.toString(), e ); transferJob.setStatus( TransferJob.STATUS_FAILED ); statusChanged( transferJob ); TransferJob newTransferJob = dbAdapter.getTransferJob( requestId ); if ( newTransferJob != null ) { transferThread = new TransferThread( newTransferJob ); logger.debug( "Attempts in new transfer: " + newTransferJob.getAttempts() ); transferThread.start(); newTransferJob.setStatus( TransferJob.STATUS_ACTIVE ); statusChanged( newTransferJob ); } else { logger.debug( "No more transfers " ); } throw new RemoteException( MessageUtils.toString( e ) ); } String restartMarker = dbAdapter.getRestartMarker( tempId ); boolean useExtended = false; if ( restartMarker != null ) { transferClient.setRestartMarker( restartMarker ); useExtended = true; } if ( transferClient != null ) { if ( transferClient.getStatus() == 6 ) { transferClient.setStatus( TransferJob.STATUS_EXPANDING ); transferJob.setStatus( TransferJob.STATUS_EXPANDING ); } else { transferClient.setStatus( TransferJob.STATUS_ACTIVE ); transferClient.setParallelStreams( rftOptions.getParallelStreams() ); transferClient.setTcpBufferSize( rftOptions.getTcpBufferSize() ); transferClient.setRFTOptions( rftOptions ); transferClient.transfer(useExtended); transferJob.setStatus( TransferJob.STATUS_ACTIVE ); dbAdapter.update( transferJob ); transferJob.setStatus( transferClient.getStatus() ); statusChanged( transferJob ); int x = transferClient.getStatus(); transferJob.setAttempts( transferJob.getAttempts() + 1 ); if ( x == 0 ) { transferJob.setStatus( TransferJob.STATUS_FINISHED ); this.status = TransferJob.STATUS_FINISHED; logger.debug( "Transfer " + transferJob.getTransferId() + " DONE" ); statusChanged( transferJob ); transferProgress.setPercentComplete( 100 ); transferProgressData.setValue( transferProgress ); transferClient.setStatus( TransferJob.STATUS_FINISHED ); transferClients.add( transferClient ); } else if ( ( x == 1 ) && ( transferJob.getAttempts() < maxAttempts ) ) { transferJob.setStatus( TransferJob.STATUS_PENDING ); transferClient.setStatus( TransferJob.STATUS_PENDING ); this.status = TransferJob.STATUS_PENDING; logger.debug( "Transfer " + transferJob.getTransferId() + " Retrying" ); statusChanged( transferJob ); } else if ( ( x == 2 ) || ( transferJob.getAttempts() >= maxAttempts ) ) { transferJob.setStatus( TransferJob.STATUS_FAILED ); this.status = TransferJob.STATUS_FAILED; logger.debug( "Transfer " + transferJob.getTransferId() + " Failed" ); statusChanged( transferJob ); transferClient.setStatus( TransferJob.STATUS_FAILED ); transferClients.add( transferClient ); } else { transferJob.setStatus( TransferJob.STATUS_RETRYING ); transferClient.setStatus( TransferJob.STATUS_RETRYING ); this.status = TransferJob.STATUS_RETRYING; statusChanged( transferJob ); } } } else { transferJob.setStatus( TransferJob.STATUS_FAILED ); this.status = TransferJob.STATUS_FAILED; statusChanged( transferJob ); transferClient.setStatus( TransferJob.STATUS_FAILED ); transferClients.add( transferClient ); } dbAdapter.update( transferJob ); TransferJob newTransferJob = dbAdapter.getTransferJob( requestId ); if ( newTransferJob != null ) { logger.debug( "starting a new transfer " + newTransferJob.getTransferId() + " " + newTransferJob.getStatus() ); transferThread = new TransferThread( newTransferJob ); transferThread.start(); newTransferJob.setStatus( TransferJob.STATUS_ACTIVE ); statusChanged( newTransferJob ); } else { URLExpander urlExpander = transferClient.getUrlExpander(); if ( urlExpander != null ) { boolean expStatus = urlExpander.getStatus(); while ( expStatus == false ) { try { logger.debug( "Sleeping Here" ); //FIX THIS sleep( 2000 ); expStatus = urlExpander.getStatus(); } catch ( InterruptedException ie ) { } } int tempConc = 0; TransferJob newTransferJob1 = dbAdapter.getTransferJob(requestId); if ( newTransferJob1 == null ) { logger.debug( "No more transfers " ); } else { transferThread = new TransferThread( newTransferJob1 ); transferThread.start(); newTransferJob1.setStatus( TransferJob.STATUS_ACTIVE ); statusChanged( newTransferJob1 ); } } } } catch ( Exception ioe ) { logger.error( "Error in Transfer Thread" + ioe.toString(), ioe ); } catch ( Throwable ee ) { logger.error( "Error in Transfer Thread" + ee.toString(), ee ); } }
|
8719 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8719/ffe194e60fcbd65b6b3af0535769dd675f1be00f/RftImpl.java/clean/data_management/multirft/src/org/globus/ogsa/impl/base/multirft/RftImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
509,
1906,
548,
273,
7412,
2278,
18,
588,
5912,
548,
5621,
7734,
12279,
3830,
7412,
3830,
31,
7734,
534,
4464,
1320,
559,
436,
1222,
1320,
273,
7412,
2278,
18,
588,
54,
1222,
1320,
5621,
7734,
309,
261,
436,
1222,
1320,
422,
446,
262,
288,
10792,
436,
1222,
1320,
273,
2552,
54,
4464,
1320,
559,
31,
7734,
289,
7734,
775,
288,
10792,
7412,
1227,
273,
336,
5912,
1227,
12,
7412,
2278,
18,
588,
1830,
1489,
9334,
18701,
7412,
2278,
18,
588,
5683,
1489,
1435,
11272,
10792,
309,
261,
261,
13866,
1227,
422,
446,
262,
7682,
747,
401,
4071,
2864,
310,
1526,
13,
288,
13491,
1194,
18,
4148,
12,
315,
2279,
7412,
1227,
11827,
6,
397,
2889,
2735,
11272,
13491,
7412,
1227,
273,
394,
12279,
1227,
12,
1906,
548,
16,
27573,
7412,
2278,
18,
588,
1830,
1489,
9334,
27573,
7412,
2278,
18,
588,
5683,
1489,
9334,
27573,
2889,
2735,
16,
27573,
7412,
5491,
16,
27573,
1156,
751,
16,
27573,
7412,
5491,
751,
16,
27573,
7870,
7078,
1179,
751,
16,
27573,
7870,
7078,
6273,
16,
27573,
3068,
17104,
15057,
7078,
9903,
16,
27573,
3068,
17104,
15057,
7078,
55,
1639,
16,
27573,
3068,
17104,
22016,
7078,
9903,
16,
27573,
3068,
17104,
22016,
7078,
55,
1639,
16,
27573,
436,
1222,
1320,
11272,
13491,
7412,
2278,
18,
542,
1482,
12,
12279,
2278,
18,
8608,
67,
13301,
11272,
13491,
1319,
4216,
18,
2725,
12,
7412,
2278,
11272,
10792,
289,
469,
288,
13491,
1194,
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,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
509,
1906,
548,
273,
7412,
2278,
18,
588,
5912,
548,
5621,
7734,
12279,
3830,
7412,
3830,
31,
7734,
534,
4464,
1320,
559,
436,
1222,
1320,
273,
7412,
2278,
18,
588,
54,
1222,
1320,
5621,
7734,
309,
261,
436,
1222,
1320,
422,
446,
262,
288,
10792,
436,
1222,
1320,
273,
2552,
54,
4464,
1320,
559,
31,
7734,
289,
7734,
775,
288,
10792,
7412,
1227,
273,
336,
5912,
1227,
12,
7412,
2278,
18,
588,
1830,
1489,
9334,
18701,
7412,
2278,
18,
588,
5683,
1489,
1435,
11272,
10792,
309,
261,
261,
13866,
1227,
422,
446,
262,
7682,
747,
401,
4071,
2864,
310,
1526,
13,
288,
13491,
1194,
18,
4148,
12,
315,
2279,
2
] |
assertEquals("Test test", StringUtil.fromReader(reader));
|
assertFilterString("Test frob", "Test frob"); assertFilterString(" Test frob ", " Test frob ");
|
public void testCollapseWhiteSpace() throws IOException { Reader reader = new WhiteSpaceFilter(new StringReader("Test test")); assertEquals("Test test", StringUtil.fromReader(reader)); }
|
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/0418a89b51dc6662e200d5915cd31ca83affc74f/TestWhiteSpaceFilter.java/clean/test/src/org/lockss/filter/TestWhiteSpaceFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
31715,
23108,
1435,
1216,
1860,
288,
565,
5393,
2949,
273,
394,
30233,
3819,
1586,
12,
2704,
26227,
2932,
4709,
225,
1842,
7923,
1769,
565,
1815,
1586,
780,
2932,
4709,
284,
303,
70,
3113,
315,
4709,
225,
284,
303,
70,
8863,
1815,
1586,
780,
2932,
7766,
284,
303,
70,
3104,
315,
282,
7766,
225,
284,
303,
70,
282,
315,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
918,
1842,
31715,
23108,
1435,
1216,
1860,
288,
565,
5393,
2949,
273,
394,
30233,
3819,
1586,
12,
2704,
26227,
2932,
4709,
225,
1842,
7923,
1769,
565,
1815,
1586,
780,
2932,
4709,
284,
303,
70,
3113,
315,
4709,
225,
284,
303,
70,
8863,
1815,
1586,
780,
2932,
7766,
284,
303,
70,
3104,
315,
282,
7766,
225,
284,
303,
70,
282,
315,
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
] |
out.writeInt(_treeNodeLimit); out.writeObject(_type); out.writeObject(_namespace); out.writeObject(_parent); out.writeObject(_nextSibling); out.writeObject(_offsetOrChild); out.writeObject(_lengthOrAttr); out.writeObject(_text); out.writeObject(_namesArray); out.writeObject(_uriArray);
|
out.writeInt(_treeNodeLimit); out.writeInt(_firstAttributeNode); out.writeObject(_documentURI); out.writeObject(_type); out.writeObject(_namespace); out.writeObject(_prefix); out.writeObject(_parent); out.writeObject(_nextSibling); out.writeObject(_offsetOrChild); out.writeObject(_lengthOrAttr); out.writeObject(_text); out.writeObject(_namesArray); out.writeObject(_uriArray); out.writeObject(_prefixArray);
|
public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(_treeNodeLimit); out.writeObject(_type); out.writeObject(_namespace); out.writeObject(_parent); out.writeObject(_nextSibling); out.writeObject(_offsetOrChild); out.writeObject(_lengthOrAttr); out.writeObject(_text); out.writeObject(_namesArray); out.writeObject(_uriArray); out.writeObject(_whitespace); out.writeObject(_prefix); out.flush(); }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/706695bb745afd0f8ce5340c5e9a23c2e11db914/DOMImpl.java/buggy/src/org/apache/xalan/xsltc/dom/DOMImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
6841,
12,
921,
1447,
596,
13,
1216,
1860,
288,
202,
659,
18,
2626,
1702,
24899,
3413,
907,
3039,
1769,
202,
659,
18,
2626,
921,
24899,
723,
1769,
202,
659,
18,
2626,
921,
24899,
4937,
1769,
202,
659,
18,
2626,
921,
24899,
2938,
1769,
202,
659,
18,
2626,
921,
24899,
4285,
10291,
1769,
202,
659,
18,
2626,
921,
24899,
3348,
1162,
1763,
1769,
202,
659,
18,
2626,
921,
24899,
2469,
1162,
3843,
1769,
202,
659,
18,
2626,
921,
24899,
955,
1769,
202,
659,
18,
2626,
921,
24899,
1973,
1076,
1769,
202,
659,
18,
2626,
921,
24899,
1650,
1076,
1769,
202,
659,
18,
2626,
921,
24899,
18777,
1769,
202,
659,
18,
2626,
921,
24899,
3239,
1769,
202,
659,
18,
11330,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
6841,
12,
921,
1447,
596,
13,
1216,
1860,
288,
202,
659,
18,
2626,
1702,
24899,
3413,
907,
3039,
1769,
202,
659,
18,
2626,
921,
24899,
723,
1769,
202,
659,
18,
2626,
921,
24899,
4937,
1769,
202,
659,
18,
2626,
921,
24899,
2938,
1769,
202,
659,
18,
2626,
921,
24899,
4285,
10291,
1769,
202,
659,
18,
2626,
921,
24899,
3348,
1162,
1763,
1769,
202,
659,
18,
2626,
921,
24899,
2469,
1162,
3843,
1769,
202,
659,
18,
2626,
921,
24899,
955,
1769,
202,
659,
18,
2626,
921,
24899,
1973,
1076,
1769,
202,
659,
18,
2626,
921,
24899,
1650,
1076,
1769,
202,
659,
18,
2626,
921,
24899,
18777,
1769,
202,
659,
18,
2626,
921,
24899,
3239,
1769,
202,
2
] |
Label tmpLa = (Label) EcoreUtil.copy( valueLa );
|
Label tmpLa = LabelImpl.copyInstance( valueLa );
|
protected final void renderLegendItem( IPrimitiveRenderer ipr, Legend lg, Label la, Label valueLa, double dX, double dY, double dW, double dItemHeight, double dFullHeight, double dExtraHeight, double dFullWidth, double dLeftInset, double dHorizontalSpacing, Series se, Fill fPaletteEntry, LegendItemRenderingHints lirh ) throws ChartException { ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_LEGEND_ENTRY, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_LEGEND_ENTRY, la ); final Bounds bo = lirh.getLegendGraphicBounds( ); if ( isRightToLeft( ) ) { bo.setLeft( dX + dFullWidth - dLeftInset - 1 - 3 * dItemHeight / 2 ); } else { bo.setLeft( dX + dLeftInset + 1 ); } bo.setTop( dY + 1 + ( dFullHeight - dItemHeight ) / 2 ); bo.setWidth( 3 * dItemHeight / 2 ); bo.setHeight( dItemHeight - 2 ); final BaseRenderer br = lirh.getRenderer( ); br.renderLegendGraphic( ipr, lg, fPaletteEntry, bo ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), TextRenderEvent.class ); if ( isRightToLeft( ) ) { tre.setLocation( LocationImpl.create( dX + dFullWidth - dLeftInset - 3 * dItemHeight / 2 - dHorizontalSpacing, dY + dFullHeight / 2 - 1 ) ); tre.setTextPosition( TextRenderEvent.LEFT ); } else { tre.setLocation( LocationImpl.create( dX + dLeftInset + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing, dY + dFullHeight / 2 - 1 ) ); tre.setTextPosition( TextRenderEvent.RIGHT ); } tre.setLabel( la ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); if ( valueLa != null ) { Location[] loaBack = new Location[4]; final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), PolygonRenderEvent.class ); pre.setBackground( valueLa.getBackground( ) ); pre.setOutline( valueLa.getOutline( ) ); pre.setPoints( loaBack ); final double dValueWidth = dFullWidth - 2 * dLeftInset; loaBack[0] = LocationImpl.create( dX + dLeftInset + 1, dY + dFullHeight + 1 ); loaBack[1] = LocationImpl.create( dX + dLeftInset + 1, dY + dFullHeight + dExtraHeight ); loaBack[2] = LocationImpl.create( dX + dLeftInset + dValueWidth - 1, dY + dFullHeight + dExtraHeight ); loaBack[3] = LocationImpl.create( dX + dLeftInset + dValueWidth - 1, dY + dFullHeight + 1 ); ipr.fillPolygon( pre ); ipr.drawPolygon( pre ); Label tmpLa = (Label) EcoreUtil.copy( valueLa ); tmpLa.setOutline( null ); tmpLa.setBackground( null ); TextAlignment ta = TextAlignmentImpl.create( ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); tre.setBlockAlignment( ta ); tre.setBlockBounds( BoundsImpl.create( dX + dLeftInset + 1, dY + dFullHeight + 1, dValueWidth - 2, dExtraHeight - 1 ) ); tre.setLabel( tmpLa ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } if ( isInteractivityEnabled( ) ) { // PROCESS 'SERIES LEVEL' TRIGGERS USING SOURCE='bs' Trigger tg; EList elTriggers = lg.getTriggers( ); Location[] loaHotspot = new Location[4]; if ( isRightToLeft( ) ) { double dTextStartX = tre.getLocation( ).getX( ) + 1; loaHotspot[0] = LocationImpl.create( dTextStartX, dY ); loaHotspot[1] = LocationImpl.create( dTextStartX - dW, dY + 1 ); loaHotspot[2] = LocationImpl.create( dTextStartX - dW, dY + dItemHeight + dExtraHeight ); loaHotspot[3] = LocationImpl.create( dTextStartX, dY + dItemHeight + dExtraHeight ); } else { double dTextStartX = tre.getLocation( ).getX( ) - 1; loaHotspot[0] = LocationImpl.create( dTextStartX, dY ); loaHotspot[1] = LocationImpl.create( dTextStartX + dW, dY + 1 ); loaHotspot[2] = LocationImpl.create( dTextStartX + dW, dY + dItemHeight + dExtraHeight ); loaHotspot[3] = LocationImpl.create( dTextStartX, dY + dItemHeight + dExtraHeight ); } Trigger buildinTg = null; if ( cm.getInteractivity( ) != null ) { boolean customed = false; switch ( cm.getInteractivity( ).getLegendBehavior( ).getValue( ) ) { case LegendBehaviorType.HIGHLIGHT_SERIE : for ( Iterator itr = elTriggers.iterator( ); itr.hasNext( ); ) { tg = (Trigger) itr.next( ); if ( tg.getCondition( ) == TriggerCondition.ONCLICK_LITERAL || tg.getAction( ).getType( ) == ActionType.HIGHLIGHT_LITERAL ) { customed = true; } } if ( !customed ) { buildinTg = TriggerImpl.create( TriggerCondition.ONCLICK_LITERAL, ActionImpl.create( ActionType.HIGHLIGHT_LITERAL, SeriesValueImpl.create( String.valueOf( se.getSeriesIdentifier( ) ) ) ) ); } break; case LegendBehaviorType.TOGGLE_SERIE_VISIBILITY : for ( Iterator itr = elTriggers.iterator( ); itr.hasNext( ); ) { tg = (Trigger) itr.next( ); if ( tg.getCondition( ) == TriggerCondition.ONCLICK_LITERAL || tg.getAction( ).getType( ) == ActionType.TOGGLE_VISIBILITY_LITERAL ) { customed = true; } } if ( !customed ) { buildinTg = TriggerImpl.create( TriggerCondition.ONCLICK_LITERAL, ActionImpl.create( ActionType.TOGGLE_VISIBILITY_LITERAL, SeriesValueImpl.create( String.valueOf( se.getSeriesIdentifier( ) ) ) ) ); } break; case LegendBehaviorType.NONE : break; } } if ( !elTriggers.isEmpty( ) || buildinTg != null ) { final InteractionEvent iev = (InteractionEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createSeries( se ), InteractionEvent.class ); for ( int t = 0; t < elTriggers.size( ); t++ ) { tg = (Trigger) EcoreUtil.copy( (Trigger) elTriggers.get( t ) ); processTrigger( tg, WrappedStructureSource.createLegendEntry( lg, la ) ); iev.addTrigger( tg ); } if ( buildinTg != null ) { processTrigger( buildinTg, WrappedStructureSource.createLegendEntry( lg, la ) ); iev.addTrigger( buildinTg ); } final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createLegend( lg ), PolygonRenderEvent.class ); pre.setPoints( loaHotspot ); iev.setHotSpot( pre ); ipr.enableInteraction( iev ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_LEGEND_ENTRY, la, getRunTimeContext( ).getScriptContext( ) ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_LEGEND_ENTRY, la ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ad38cf76f1d641ada210d2a5b0551677d4e55a71/BaseRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
1743,
16812,
1180,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1082,
202,
2224,
7125,
16,
5287,
460,
30745,
16,
1645,
302,
60,
16,
1645,
302,
61,
16,
1645,
302,
59,
16,
1082,
202,
9056,
302,
1180,
2686,
16,
1645,
302,
5080,
2686,
16,
1645,
302,
7800,
2686,
16,
1082,
202,
9056,
302,
5080,
2384,
16,
1645,
302,
3910,
382,
542,
16,
1645,
302,
14457,
18006,
16,
1082,
202,
6485,
695,
16,
14192,
284,
25863,
1622,
16,
17167,
409,
1180,
14261,
13368,
328,
481,
76,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
3651,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
11272,
202,
202,
3651,
1503,
18,
1991,
2083,
12,
699,
16,
9506,
202,
3651,
1503,
18,
19152,
67,
40,
10821,
67,
19384,
4415,
67,
19083,
16,
9506,
202,
11821,
16,
9506,
202,
588,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1042,
12,
262,
11272,
202,
202,
588,
1997,
950,
1042,
12,
262,
18,
12336,
6999,
3043,
12,
467,
6999,
1852,
2223,
18,
19152,
67,
40,
10821,
67,
19384,
4415,
67,
19083,
16,
9506,
202,
11821,
11272,
202,
202,
6385,
20382,
800,
273,
328,
481,
76,
18,
588,
16812,
29459,
5694,
12,
11272,
202,
202,
430,
261,
353,
4726,
774,
3910,
12,
262,
262,
202,
202,
95,
1082,
202,
1075,
18,
542,
3910,
12,
302,
60,
397,
302,
5080,
2384,
300,
302,
3910,
382,
542,
300,
404,
300,
890,
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,
918,
1743,
16812,
1180,
12,
467,
9840,
6747,
277,
683,
16,
17167,
409,
15266,
16,
1082,
202,
2224,
7125,
16,
5287,
460,
30745,
16,
1645,
302,
60,
16,
1645,
302,
61,
16,
1645,
302,
59,
16,
1082,
202,
9056,
302,
1180,
2686,
16,
1645,
302,
5080,
2686,
16,
1645,
302,
7800,
2686,
16,
1082,
202,
9056,
302,
5080,
2384,
16,
1645,
302,
3910,
382,
542,
16,
1645,
302,
14457,
18006,
16,
1082,
202,
6485,
695,
16,
14192,
284,
25863,
1622,
16,
17167,
409,
1180,
14261,
13368,
328,
481,
76,
262,
1082,
202,
15069,
14804,
503,
202,
95,
202,
202,
3651,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
11272,
2
] |
item = new IconAnimationItem(window,AnimationManager.getInstance().animationProcessor);
|
Label seperator = new Label(region, SWT.SEPARATOR);
|
public Control createContents(Composite parent, WorkbenchWindow window) { workbenchWindow = window; region = new Composite(parent, SWT.BORDER | SWT.FLAT); FormLayout regionLayout = new FormLayout(); region.setLayout(regionLayout); region.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_CYAN)); item = new IconAnimationItem(window,AnimationManager.getInstance().animationProcessor); item.createControl(region); item.setAnimationContainer(getAnimationContainer()); Control itemControl = item.getControl(); FormData itemData = new FormData(); itemData.right = new FormAttachment(100); itemData.top = new FormAttachment(0); itemData.width = AnimationManager.getInstance().getPreferredWidth() + 5; itemControl.setLayoutData(itemData); viewer = new ProgressViewer(region, SWT.NONE, 1,36); viewer.setUseHashlookup(true); Control viewerControl = viewer.getControl(); int margin = 2; FormData viewerData = new FormData(); viewerData.left = new FormAttachment(0); viewerData.right = new FormAttachment(itemControl, margin); viewerData.top = new FormAttachment(0); viewerData.bottom = new FormAttachment(itemControl,0,SWT.BOTTOM); Point preferredSize = viewer.getSizeHints(); viewerData.width = preferredSize.x + margin; viewerData.height = preferredSize.y; viewerControl.setLayoutData(viewerData); viewerControl.addMouseListener(new MouseAdapter(){ /* (non-Javadoc) * @see org.eclipse.swt.events.MouseAdapter#mouseDoubleClick(org.eclipse.swt.events.MouseEvent) */ public void mouseDoubleClick(MouseEvent e) { ProgressManagerUtil.openProgressView(workbenchWindow); } }); IContentProvider provider = new ProgressViewerContentProvider(viewer); viewer.setContentProvider(provider); viewer.setInput(provider); viewer.setLabelProvider(new ProgressViewerLabelProvider(viewerControl)); viewer.setSorter(ProgressManagerUtil.getProgressViewerSorter()); return region; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/340292946bb3ac32ad076bb293858b9ad9b41b0c/ProgressRegion.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressRegion.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8888,
752,
6323,
12,
9400,
982,
16,
4147,
22144,
3829,
2742,
13,
288,
9506,
202,
1252,
22144,
3829,
273,
2742,
31,
9506,
202,
6858,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
42,
12190,
1769,
9506,
202,
1204,
3744,
3020,
3744,
273,
394,
2748,
3744,
5621,
202,
202,
6858,
18,
542,
3744,
12,
6858,
3744,
1769,
202,
202,
6858,
18,
542,
8199,
12,
2938,
18,
588,
4236,
7675,
588,
3163,
2957,
12,
55,
8588,
18,
10989,
67,
16068,
1258,
10019,
9506,
202,
1726,
273,
394,
16011,
10816,
1180,
12,
5668,
16,
10816,
1318,
18,
588,
1442,
7675,
30822,
5164,
1769,
9506,
202,
1726,
18,
2640,
3367,
12,
6858,
1769,
202,
202,
1726,
18,
542,
10816,
2170,
12,
588,
10816,
2170,
10663,
202,
202,
3367,
761,
3367,
273,
761,
18,
588,
3367,
5621,
202,
202,
30079,
30107,
273,
394,
2748,
751,
5621,
202,
202,
1726,
751,
18,
4083,
273,
394,
2748,
6803,
12,
6625,
1769,
202,
202,
1726,
751,
18,
3669,
273,
394,
2748,
6803,
12,
20,
1769,
202,
202,
1726,
751,
18,
2819,
273,
22685,
1318,
18,
588,
1442,
7675,
588,
16028,
2384,
1435,
397,
1381,
31,
202,
202,
1726,
3367,
18,
542,
3744,
751,
12,
1726,
751,
1769,
9506,
202,
25256,
273,
394,
10980,
18415,
12,
6858,
16,
348,
8588,
18,
9826,
16,
404,
16,
5718,
1769,
202,
202,
25256,
18,
542,
3727,
2310,
8664,
12,
3767,
1769,
202,
202,
3367,
14157,
3367,
273,
14157,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8888,
752,
6323,
12,
9400,
982,
16,
4147,
22144,
3829,
2742,
13,
288,
9506,
202,
1252,
22144,
3829,
273,
2742,
31,
9506,
202,
6858,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
42,
12190,
1769,
9506,
202,
1204,
3744,
3020,
3744,
273,
394,
2748,
3744,
5621,
202,
202,
6858,
18,
542,
3744,
12,
6858,
3744,
1769,
202,
202,
6858,
18,
542,
8199,
12,
2938,
18,
588,
4236,
7675,
588,
3163,
2957,
12,
55,
8588,
18,
10989,
67,
16068,
1258,
10019,
9506,
202,
1726,
273,
394,
16011,
10816,
1180,
12,
5668,
16,
10816,
1318,
18,
588,
1442,
7675,
30822,
5164,
1769,
9506,
202,
1726,
18,
2640,
3367,
12,
6858,
1769,
2
] |
Rectangle2D bounds = getBounds(rc);
|
Rectangle2D bounds = getBounds();
|
public void paint(Graphics2D g2d, GraphicsNodeRenderContext rc){ // first, make sure we haven't been interrupted if (Thread.currentThread().isInterrupted()) { return; } if ((composite != null) && (composite instanceof AlphaComposite)) { AlphaComposite ac = (AlphaComposite)composite; if (ac.getAlpha() < 0.001) return; // No point in drawing } // Set up graphic context. It is important to setup the transform first, // because the clip is defined in this node's user space. Shape defaultClip = g2d.getClip(); Composite defaultComposite = g2d.getComposite(); AffineTransform defaultTransform = g2d.getTransform(); RenderingHints defaultHints = null; if (hints != null) { defaultHints = g2d.getRenderingHints(); g2d.addRenderingHints(hints); } if (transform != null) { g2d.transform(transform); } if (composite != null) { g2d.setComposite(composite); } if (clip != null){ g2d.clip(clip.getClipPath()); } Shape curClip = g2d.getClip(); g2d.setRenderingHint(RenderingHintsKeyExt.KEY_AREA_OF_INTEREST, curClip); rc.setTransform(g2d.getTransform()); rc.setRenderingHints(g2d.getRenderingHints()); rc.setAreaOfInterest(curClip); // Check if any painting is needed at all. Get the clip (in user space) // and see if it intersects with this node's bounds (in user space). boolean paintNeeded = true; Rectangle2D bounds = getBounds(rc); Shape g2dClip = g2d.getClip(); if(g2dClip != null){ Rectangle2D clipBounds = g2dClip.getBounds2D(); if(bounds != null && !bounds.intersects(clipBounds.getX(), clipBounds.getY(), clipBounds.getWidth(), clipBounds.getHeight())){ paintNeeded = false; } } // Only paint if needed. if (paintNeeded){ AffineTransform txf = g2d.getTransform(); boolean antialiasedClip = false; if(clip != null){ antialiasedClip = isAntialiasedClip(rc.getTransform(), rc.getRenderingHints(), clip.getClipPath()); } boolean useOffscreen = isOffscreenBufferNeeded(); useOffscreen |= antialiasedClip; if (!useOffscreen) { // Render on this canvas. primitivePaint(g2d, rc); } else { Filter filteredImage = null; if(filter == null){ if (gnr == null) gnr = rc.getGraphicsNodeRableFactory(). createGraphicsNodeRable(this, rc); filteredImage = gnr; } else { // traceFilter(filter, "=====>> "); filteredImage = filter; } if (mask != null) { if (mask.getSource() != filteredImage){ mask.setSource(filteredImage); } filteredImage = mask; } if (clip != null && antialiasedClip) { if (clip.getSource() != filteredImage){ clip.setSource(filteredImage); } filteredImage = clip; } if(antialiasedClip){ // Remove hard edged clip g2d.setClip(null); } Rectangle2D filterBounds = filteredImage.getBounds2D(); g2d.clip(filterBounds); org.apache.batik.ext.awt.image.GraphicsUtil.drawImage (g2d, filteredImage); } } // Restore default rendering attributes if (defaultHints != null) { g2d.setRenderingHints(defaultHints); } g2d.setTransform(defaultTransform); g2d.setClip(defaultClip); g2d.setComposite(defaultComposite); }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/4c1a37c6e3e260eb88efd61d61285ad704f7c64a/AbstractGraphicsNode.java/clean/sources/org/apache/batik/gvt/AbstractGraphicsNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
12,
17558,
22,
40,
314,
22,
72,
16,
16830,
907,
3420,
1042,
4519,
15329,
3639,
368,
1122,
16,
1221,
3071,
732,
15032,
1404,
2118,
15711,
3639,
309,
261,
3830,
18,
2972,
3830,
7675,
291,
24485,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
309,
14015,
27676,
480,
446,
13,
597,
5411,
261,
27676,
1276,
24277,
9400,
3719,
288,
5411,
24277,
9400,
1721,
273,
261,
9690,
9400,
13,
27676,
31,
5411,
309,
261,
1077,
18,
588,
9690,
1435,
411,
374,
18,
11664,
13,
7734,
327,
31,
540,
368,
2631,
1634,
316,
16327,
3639,
289,
3639,
368,
1000,
731,
19548,
819,
18,
2597,
353,
10802,
358,
3875,
326,
2510,
1122,
16,
3639,
368,
2724,
326,
6807,
353,
2553,
316,
333,
756,
1807,
729,
3476,
18,
3639,
12383,
805,
15339,
273,
314,
22,
72,
18,
588,
15339,
5621,
3639,
14728,
805,
9400,
273,
314,
22,
72,
18,
588,
9400,
5621,
3639,
23906,
558,
4059,
805,
4059,
273,
314,
22,
72,
18,
588,
4059,
5621,
3639,
22391,
805,
13368,
273,
446,
31,
3639,
309,
261,
24598,
480,
446,
13,
288,
5411,
805,
13368,
273,
314,
22,
72,
18,
588,
14261,
13368,
5621,
5411,
314,
22,
72,
18,
1289,
14261,
13368,
12,
24598,
1769,
3639,
289,
3639,
309,
261,
6547,
480,
446,
13,
288,
5411,
314,
22,
72,
18,
6547,
12,
6547,
1769,
3639,
289,
3639,
309,
261,
27676,
480,
446,
13,
288,
5411,
314,
22,
72,
18,
542,
9400,
12,
27676,
1769,
3639,
289,
3639,
309,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
12,
17558,
22,
40,
314,
22,
72,
16,
16830,
907,
3420,
1042,
4519,
15329,
3639,
368,
1122,
16,
1221,
3071,
732,
15032,
1404,
2118,
15711,
3639,
309,
261,
3830,
18,
2972,
3830,
7675,
291,
24485,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
309,
14015,
27676,
480,
446,
13,
597,
5411,
261,
27676,
1276,
24277,
9400,
3719,
288,
5411,
24277,
9400,
1721,
273,
261,
9690,
9400,
13,
27676,
31,
5411,
309,
261,
1077,
18,
588,
9690,
1435,
411,
374,
18,
11664,
13,
7734,
327,
31,
540,
368,
2631,
1634,
316,
16327,
3639,
289,
3639,
368,
1000,
731,
19548,
819,
18,
2597,
353,
10802,
358,
3875,
326,
2510,
1122,
16,
3639,
368,
2724,
326,
6807,
353,
2
] |
case ts.ERROR:
|
case TokenStream.ERROR:
|
private Object unaryExpr(TokenStream ts, Source source) throws IOException, JavaScriptException { int tt; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case ts.UNARYOP: source.append((char)ts.UNARYOP); source.append((char)ts.getOp()); return nf.createUnary(ts.UNARYOP, ts.getOp(), unaryExpr(ts, source)); case ts.ADD: case ts.SUB: source.append((char)ts.UNARYOP); source.append((char)tt); return nf.createUnary(ts.UNARYOP, tt, unaryExpr(ts, source)); case ts.INC: case ts.DEC: source.append((char)tt); return nf.createUnary(tt, ts.PRE, memberExpr(ts, source, true)); case ts.DELPROP: source.append((char)ts.DELPROP); return nf.createUnary(ts.DELPROP, unaryExpr(ts, source)); case ts.ERROR: break; default: ts.ungetToken(tt); int lineno = ts.getLineno(); Object pn = memberExpr(ts, source, true); /* don't look across a newline boundary for a postfix incop. * the rhino scanner seems to work differently than the js * scanner here; in js, it works to have the line number check * precede the peekToken calls. It'd be better if they had * similar behavior... */ int peeked; if (((peeked = ts.peekToken()) == ts.INC || peeked == ts.DEC) && ts.getLineno() == lineno) { int pf = ts.getToken(); source.append((char)pf); return nf.createUnary(pf, ts.POST, pn); } return pn; } return nf.createName("err"); // Only reached on error. Try to continue. }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/40ff06028a06e98171197c83b9b067a0c12f72ae/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
19017,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3742,
18,
2124,
6043,
3665,
30,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
2124,
6043,
3665,
1769,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
588,
3817,
10663,
5411,
327,
13958,
18,
2640,
15972,
12,
3428,
18,
2124,
6043,
3665,
16,
3742,
18,
588,
3817,
9334,
21394,
19017,
4742,
12,
3428,
16,
1084,
10019,
3639,
648,
3742,
18,
8355,
30,
3639,
648,
3742,
18,
8362,
30,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
2124,
6043,
3665,
1769,
5411,
1084,
18,
6923,
12443,
3001,
13,
748,
1769,
5411,
327,
13958,
18,
2640,
15972,
12,
3428,
18,
2124,
6043,
3665,
16,
3574,
16,
19017,
4742,
12,
3428,
16,
1084,
10019,
3639,
648,
3742,
18,
23213,
30,
3639,
648,
3742,
18,
1639,
39,
30,
5411,
1084,
18,
6923,
12443,
3001,
13,
748,
1769,
5411,
327,
13958,
18,
2640,
15972,
12,
748,
16,
3742,
18,
3670,
16,
3140,
4742,
12,
3428,
16,
1084,
16,
638,
10019,
3639,
648,
3742,
18,
24733,
15811,
30,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
24733,
15811,
1769,
5411,
327,
13958,
18,
2640,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
19017,
4742,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
3574,
31,
3639,
3742,
18,
7133,
5626,
3742,
18,
8047,
42,
67,
28225,
31,
3639,
3574,
273,
3742,
18,
588,
1345,
5621,
3639,
3742,
18,
7133,
12058,
4871,
3428,
18,
8047,
42,
67,
28225,
31,
3639,
1620,
12,
748,
13,
288,
3639,
648,
3742,
18,
2124,
6043,
3665,
30,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
2124,
6043,
3665,
1769,
5411,
1084,
18,
6923,
12443,
3001,
13,
3428,
18,
588,
3817,
10663,
5411,
327,
13958,
18,
2640,
15972,
12,
3428,
18,
2124,
6043,
3665,
16,
3742,
18,
588,
3817,
9334,
21394,
19017,
4742,
12,
2
] |
while (skippingRecord && keepGoing) { processNext(); } }
|
while (skippingRecord && keepGoing) { processNext(); } }
|
public void setSkippingRecord(boolean b) throws XmlPullParserException, IOException { skippingRecord = b; logger.finest("skippingRecord = " + skippingRecord); // spool out the rest of the record while (skippingRecord && keepGoing) { processNext(); } }
|
52612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52612/5c15240adbc7b9288382cd29c6c1930604fed557/Producer.java/clean/src/java/com/marklogic/recordloader/Producer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
16877,
2115,
12,
6494,
324,
13,
1216,
5714,
9629,
25746,
16,
1082,
202,
14106,
288,
202,
202,
7457,
1382,
2115,
273,
324,
31,
202,
202,
4901,
18,
926,
395,
2932,
7457,
1382,
2115,
273,
315,
397,
14195,
2115,
1769,
202,
202,
759,
1694,
1371,
596,
326,
3127,
434,
326,
1409,
202,
202,
17523,
261,
7457,
1382,
2115,
597,
3455,
5741,
310,
13,
288,
1082,
202,
2567,
2134,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
16877,
2115,
12,
6494,
324,
13,
1216,
5714,
9629,
25746,
16,
1082,
202,
14106,
288,
202,
202,
7457,
1382,
2115,
273,
324,
31,
202,
202,
4901,
18,
926,
395,
2932,
7457,
1382,
2115,
273,
315,
397,
14195,
2115,
1769,
202,
202,
759,
1694,
1371,
596,
326,
3127,
434,
326,
1409,
202,
202,
17523,
261,
7457,
1382,
2115,
597,
3455,
5741,
310,
13,
288,
1082,
202,
2567,
2134,
5621,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( event.type == CustomPreviewTable.MOUSE_RIGHT_CLICK_TYPE )
|
if ( event.widget instanceof Button )
|
public void handleEvent( Event event ) { if ( getDataServiceProvider( ).getBoundDataSet( ) != null || getDataServiceProvider( ).getReportDataSet( ) != null ) { if ( event.type == CustomPreviewTable.MOUSE_RIGHT_CLICK_TYPE ) { createMenu( ).setVisible( true ); } else if ( event.type == CustomPreviewTable.FOCUS_IN ) { if ( event.widget instanceof Button && ( (Button) event.widget ).getMenu( ) == null ) { ( (Button) event.widget ).setMenu( createMenu( ) ); } } } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/dbc75fd42a3fb7e8d990377e1c1ea74658e053ac/TaskSelectData.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
1133,
12,
2587,
871,
262,
202,
95,
202,
202,
430,
261,
4303,
16300,
12,
262,
18,
588,
3499,
13676,
12,
262,
480,
446,
9506,
202,
20081,
4303,
16300,
12,
262,
18,
588,
4820,
13676,
12,
262,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
871,
18,
723,
422,
6082,
11124,
1388,
18,
5980,
8001,
67,
11847,
67,
7697,
3507,
67,
2399,
262,
1082,
202,
95,
9506,
202,
2640,
4599,
12,
262,
18,
542,
6207,
12,
638,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
871,
18,
723,
422,
6082,
11124,
1388,
18,
3313,
39,
3378,
67,
706,
262,
1082,
202,
95,
9506,
202,
430,
261,
871,
18,
6587,
1276,
12569,
25083,
202,
10,
10,
261,
261,
3616,
13,
871,
18,
6587,
262,
18,
588,
4599,
12,
262,
422,
446,
262,
9506,
202,
95,
6862,
202,
12,
261,
3616,
13,
871,
18,
6587,
262,
18,
542,
4599,
12,
752,
4599,
12,
262,
11272,
9506,
202,
97,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
1133,
12,
2587,
871,
262,
202,
95,
202,
202,
430,
261,
4303,
16300,
12,
262,
18,
588,
3499,
13676,
12,
262,
480,
446,
9506,
202,
20081,
4303,
16300,
12,
262,
18,
588,
4820,
13676,
12,
262,
480,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
871,
18,
723,
422,
6082,
11124,
1388,
18,
5980,
8001,
67,
11847,
67,
7697,
3507,
67,
2399,
262,
1082,
202,
95,
9506,
202,
2640,
4599,
12,
262,
18,
542,
6207,
12,
638,
11272,
1082,
202,
97,
1082,
202,
12107,
309,
261,
871,
18,
723,
422,
6082,
11124,
1388,
18,
3313,
39,
3378,
67,
706,
262,
1082,
202,
95,
9506,
202,
430,
261,
871,
18,
6587,
1276,
12569,
25083,
2
] |
buf.append(" process();\n"); buf.append(" super.hashCode();\n");
|
buf.append(" res= (super.hashCode() == 1);\n");
|
public void testUnusedVariable() throws Exception { Hashtable hashtable= JavaCore.getOptions(); hashtable.put(JavaCore.COMPILER_PB_UNUSED_LOCAL, JavaCore.ERROR); hashtable.put(JavaCore.COMPILER_PB_UNUSED_PARAMETER, JavaCore.ERROR); JavaCore.setOptions(hashtable); IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null); StringBuffer buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" boolean res= process();\n"); buf.append(" res= (super.hashCode() == 1);\n"); buf.append(" }\n"); buf.append(" public boolean process() {\n"); buf.append(" return true;\n"); buf.append(" }\n"); buf.append("}\n"); ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null); CompilationUnit astRoot= AST.parseCompilationUnit(cu, true); IProblem[] problems= astRoot.getProblems(); assertNumberOf("problems", problems.length, 1); CorrectionContext context= getCorrectionContext(cu, problems[0]); assertCorrectContext(context); ArrayList proposals= new ArrayList(); JavaCorrectionProcessor.collectCorrections(context, proposals); assertNumberOf("proposals", proposals.size(), 1); assertCorrectLabels(proposals); CUCorrectionProposal proposal= (CUCorrectionProposal) proposals.get(0); String preview= proposal.getCompilationUnitChange().getPreviewContent(); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public class E {\n"); buf.append(" public void foo() {\n"); buf.append(" process();\n"); buf.append(" super.hashCode();\n"); buf.append(" }\n"); buf.append(" public boolean process() {\n"); buf.append(" return true;\n"); buf.append(" }\n"); buf.append("}\n"); assertEqualString(preview, buf.toString()); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/97e53725b4022a1d6f13f0341d8bbc7aa6d2cd07/LocalCorrectionsQuickFixTest.java/clean/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/LocalCorrectionsQuickFixTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
21106,
3092,
1435,
1216,
1185,
288,
202,
202,
5582,
14544,
711,
14544,
33,
5110,
4670,
18,
588,
1320,
5621,
202,
202,
5332,
14544,
18,
458,
12,
5852,
4670,
18,
31075,
14668,
67,
20724,
67,
2124,
20093,
67,
14922,
16,
5110,
4670,
18,
3589,
1769,
202,
202,
5332,
14544,
18,
458,
12,
5852,
4670,
18,
31075,
14668,
67,
20724,
67,
2124,
20093,
67,
9819,
16,
5110,
4670,
18,
3589,
1769,
202,
202,
5852,
4670,
18,
542,
1320,
12,
5332,
14544,
1769,
9506,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1769,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
4385,
18,
6923,
2932,
5610,
1842,
21,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
482,
667,
512,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
1071,
918,
8431,
1435,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
1250,
400,
33,
1207,
5621,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
400,
33,
261,
9565,
18,
2816,
1085,
1435,
422,
404,
20472,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
289,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
1071,
1250,
1207,
1435,
18890,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
3639,
327,
638,
9747,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
565,
289,
64,
82,
8863,
202,
202,
4385,
18,
6923,
2932,
6280,
82,
8863,
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,
21106,
3092,
1435,
1216,
1185,
288,
202,
202,
5582,
14544,
711,
14544,
33,
5110,
4670,
18,
588,
1320,
5621,
202,
202,
5332,
14544,
18,
458,
12,
5852,
4670,
18,
31075,
14668,
67,
20724,
67,
2124,
20093,
67,
14922,
16,
5110,
4670,
18,
3589,
1769,
202,
202,
5332,
14544,
18,
458,
12,
5852,
4670,
18,
31075,
14668,
67,
20724,
67,
2124,
20093,
67,
9819,
16,
5110,
4670,
18,
3589,
1769,
202,
202,
5852,
4670,
18,
542,
1320,
12,
5332,
14544,
1769,
9506,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1769,
202,
202,
780,
1892,
1681,
33,
394,
6674,
5621,
202,
202,
2
] |
System.out.println("CmdRunner.makeConnectString: catalogURL="+catalogURL);
|
CmdRunner.debug("CmdRunner.makeConnectString: catalogURL="+catalogURL);
|
public String makeConnectString() { String connectString = CmdRunner.getConnectStringProperty(); // TODO replace all of these 'println' calls with LoggerSystem.out.println("CmdRunner.makeConnectString: connectString="+connectString); Util.PropertyList connectProperties = null; if (connectString == null || connectString.equals("")) { connectProperties = new Util.PropertyList(); connectProperties.put("Provider","mondrian"); } else { connectProperties = Util.parseConnectString(connectString); } // override jdbc url String jdbcURL = CmdRunner.getJdbcURLProperty();System.out.println("CmdRunner.makeConnectString: jdbcURL="+jdbcURL); if (jdbcURL != null) { connectProperties.put("Jdbc", jdbcURL); } // override jdbc drivers String jdbcDrivers = CmdRunner.getJdbcDriversProperty();System.out.println("CmdRunner.makeConnectString: jdbcDrivers="+jdbcDrivers); if (jdbcURL != null) { connectProperties.put("JdbcDrivers", jdbcDrivers); } // override catalog url String catalogURL = CmdRunner.getCatalogURLProperty();System.out.println("CmdRunner.makeConnectString: catalogURL="+catalogURL); if (catalogURL != null) { connectProperties.put("catalog", catalogURL); }System.out.println("CmdRunner.makeConnectString: connectProperties="+connectProperties); return connectProperties.toString(); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/829999bd5d0b66b826a808b7c58358f398b081b5/CmdRunner.java/buggy/src/main/mondrian/tui/CmdRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1221,
5215,
780,
1435,
288,
3639,
514,
3077,
780,
273,
13328,
9709,
18,
588,
5215,
780,
1396,
5621,
3639,
368,
2660,
1453,
777,
434,
4259,
296,
8222,
11,
4097,
598,
4242,
3163,
18,
659,
18,
8222,
2932,
5931,
9709,
18,
6540,
5215,
780,
30,
3077,
780,
1546,
15,
3612,
780,
1769,
3639,
3564,
18,
1396,
682,
3077,
2297,
273,
446,
31,
3639,
309,
261,
3612,
780,
422,
446,
747,
3077,
780,
18,
14963,
2932,
6,
3719,
288,
5411,
3077,
2297,
273,
394,
3564,
18,
1396,
682,
5621,
5411,
3077,
2297,
18,
458,
2932,
2249,
15937,
81,
1434,
566,
304,
8863,
3639,
289,
469,
288,
5411,
3077,
2297,
273,
3564,
18,
2670,
5215,
780,
12,
3612,
780,
1769,
3639,
289,
3639,
368,
3849,
16579,
880,
3639,
514,
16579,
1785,
273,
13328,
9709,
18,
588,
25316,
1785,
1396,
5621,
3163,
18,
659,
18,
8222,
2932,
5931,
9709,
18,
6540,
5215,
780,
30,
16579,
1785,
1546,
15,
24687,
1785,
1769,
3639,
309,
261,
24687,
1785,
480,
446,
13,
288,
5411,
3077,
2297,
18,
458,
2932,
25316,
3113,
16579,
1785,
1769,
3639,
289,
3639,
368,
3849,
16579,
16118,
3639,
514,
16579,
26310,
273,
13328,
9709,
18,
588,
25316,
26310,
1396,
5621,
3163,
18,
659,
18,
8222,
2932,
5931,
9709,
18,
6540,
5215,
780,
30,
16579,
26310,
1546,
15,
24687,
26310,
1769,
3639,
309,
261,
24687,
1785,
480,
446,
13,
288,
5411,
3077,
2297,
18,
458,
2932,
25316,
26310,
3113,
16579,
26310,
1769,
3639,
289,
3639,
368,
3849,
6222,
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,
1221,
5215,
780,
1435,
288,
3639,
514,
3077,
780,
273,
13328,
9709,
18,
588,
5215,
780,
1396,
5621,
3639,
368,
2660,
1453,
777,
434,
4259,
296,
8222,
11,
4097,
598,
4242,
3163,
18,
659,
18,
8222,
2932,
5931,
9709,
18,
6540,
5215,
780,
30,
3077,
780,
1546,
15,
3612,
780,
1769,
3639,
3564,
18,
1396,
682,
3077,
2297,
273,
446,
31,
3639,
309,
261,
3612,
780,
422,
446,
747,
3077,
780,
18,
14963,
2932,
6,
3719,
288,
5411,
3077,
2297,
273,
394,
3564,
18,
1396,
682,
5621,
5411,
3077,
2297,
18,
458,
2932,
2249,
15937,
81,
1434,
566,
304,
8863,
3639,
289,
469,
288,
5411,
3077,
2297,
273,
3564,
18,
2670,
5215,
780,
12,
3612,
780,
2
] |
if (currentFile.getState() != I_CmsConstants.C_STATE_UNCHANGED) {
|
if (currentFileHeader.getState() != I_CmsConstants.C_STATE_UNCHANGED) {
|
public synchronized Vector publishProject(CmsRequestContext context, CmsProject onlineProject, boolean backupEnabled, int backupTagId, I_CmsReport report, Hashtable exportpoints, CmsResource directPublishResource) throws CmsException { CmsExportPointDriver discAccess = null; CmsFolder currentFolder = null; CmsFile currentFile = null; CmsResource currentFileHeader = null; CmsLock currentLock = null; CmsFolder newFolder = null; CmsFile newFile = null; CmsFile onlineFile = null; List offlineFolders = null; List offlineFiles = null; List deletedFolders = (List) new ArrayList(); Vector changedResources = new Vector(); String currentExportKey = null; String currentResourceName = null; long publishDate = System.currentTimeMillis(); Iterator i = null; boolean publishCurrentResource = false; List projectResources = null; Map properties = null; CmsFolder onlineFolder = null; Map sortedFolderMap = null; List sortedFolderList = null; CmsResource delOnlineFolder = null; byte[] contents = null; int publishHistoryId = nextPublishVersionId(); try { discAccess = new CmsExportPointDriver(exportpoints); if (backupEnabled) { // write an entry in the publish project log m_driverManager.backupProject(context, context.currentProject(), backupTagId, publishDate, context.currentUser()); } // read the project resources of the project that gets published projectResources = m_driverManager.readProjectResources(context, context.currentProject()); // read all changed/new/deleted folders in the offline project offlineFolders = m_driverManager.getVfsDriver().readFolders(context.currentProject().getId()); // ensure that the folders appear in the correct (DFS) tree order sortedFolderMap = (Map) new HashMap(); i = offlineFolders.iterator(); while (i.hasNext()) { currentFolder = (CmsFolder) i.next(); currentResourceName = m_driverManager.readPath(context, currentFolder, true); sortedFolderMap.put(currentResourceName, currentFolder); } sortedFolderList = (List) new ArrayList(sortedFolderMap.keySet()); Collections.sort(sortedFolderList); offlineFolders.clear(); offlineFolders = null; i = sortedFolderList.iterator(); while (i.hasNext()) { currentResourceName = (String) i.next(); currentFolder = (CmsFolder) sortedFolderMap.get(currentResourceName); currentLock = m_driverManager.getLock(context, currentResourceName); // the resource must have either a new/deleted state in the link or a new/delete state in the resource record publishCurrentResource = currentFolder.getState() > I_CmsConstants.C_STATE_UNCHANGED; if (context.currentProject().getType() == I_CmsConstants.C_PROJECT_TYPE_DIRECT_PUBLISH && directPublishResource != null) { // the resource must be a sub resource of the direct-publish-resource in case of a "direct publish" publishCurrentResource = publishCurrentResource && currentResourceName.startsWith(directPublishResource.getFullResourceName()); } else { // the resource must have a changed state and must be changed in the project that is currently published publishCurrentResource = publishCurrentResource && currentFolder.getProjectId() == context.currentProject().getId(); // the resource must be in one of the paths defined for the project publishCurrentResource = publishCurrentResource && CmsProject.isInsideProject(projectResources, currentFolder); } // the resource must be unlocked publishCurrentResource = publishCurrentResource && currentLock.isNullLock(); if (publishCurrentResource) { currentExportKey = checkExport(currentResourceName, exportpoints); report.print(report.key("report.publishing"), I_CmsReport.C_FORMAT_NOTE); report.println(context.removeSiteRoot(currentResourceName)); if (currentFolder.getState() == I_CmsConstants.C_STATE_DELETED) { // C_STATE_DELETE deletedFolders.add(currentFolder); changedResources.addElement(currentResourceName); } else if (currentFolder.getState() == I_CmsConstants.C_STATE_NEW) { // I_CmsConstants.C_STATE_NEW changedResources.addElement(currentResourceName); // export to filesystem if necessary if (currentExportKey != null) { discAccess.createFolder(currentResourceName, currentExportKey); } // create the new folder in the online project try { newFolder = (CmsFolder) currentFolder.clone(); newFolder.setState(I_CmsConstants.C_STATE_UNCHANGED); newFolder.setFullResourceName(currentResourceName); m_driverManager.getVfsDriver().createFolder(context.currentUser(), onlineProject, newFolder, newFolder.getParentId(), newFolder.getResourceName()); } catch (CmsException e) { // if the folder already exists in the online project if (e.getType() == CmsException.C_FILE_EXISTS) { try { // onlineFolder = m_driverManager.readFolder(context, currentFolder.getId(), false); // cw - we must read online resources really from the online project onlineFolder = m_driverManager.getVfsDriver().readFolder(onlineProject.getId(), newFolder.getId()); onlineFolder.setFullResourceName(currentResourceName); } catch (CmsException exc) { throw exc; } m_driverManager.getVfsDriver().publishResource(onlineFolder, currentFolder); } else { throw e; } } // copy the access control entries of the folder m_driverManager.getUserDriver().publishAccessControlEntries(context.currentProject(), onlineProject, currentFolder.getResourceAceId(), newFolder.getResourceAceId()); // copy properties properties = (Map) new HashMap(); try { //m_driverManager.readPath(context, newFolder, true); properties = m_driverManager.getVfsDriver().readProperties(context.currentProject().getId(), currentFolder, currentFolder.getType()); m_driverManager.getVfsDriver().writeProperties(properties, onlineProject.getId(), newFolder, newFolder.getType()); } catch (CmsException exc) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_INFO)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[" + this.getClass().getName() + "] error publishing, copy properties for " + newFolder.toString() + " Message= " + exc.getMessage()); } } if (backupEnabled) { // backup the offline resource m_driverManager.getBackupDriver().writeBackupResource(context.currentUser(), context.currentProject(), currentFolder, properties, backupTagId, publishDate); } writePublishHistory(context.currentProject(), publishHistoryId, backupTagId, currentResourceName, currentFolder); if (currentFolder.getState() != I_CmsConstants.C_STATE_UNCHANGED) { // set the state of current folder in the offline project to unchanged currentFolder.setState(I_CmsConstants.C_STATE_UNCHANGED); m_driverManager.getVfsDriver().updateResourceState(context.currentProject(), currentFolder, CmsDriverManager.C_UPDATE_ALL); } } else if (currentFolder.getState() == I_CmsConstants.C_STATE_CHANGED) { // I_CmsConstants.C_STATE_CHANGED changedResources.addElement(currentResourceName); onlineFolder = null; try { // onlineFolder = m_driverManager.readFolder(context, currentFolder.getId(), false); // cw - we must read from the online project onlineFolder = m_driverManager.getVfsDriver().readFolder(onlineProject.getId(), currentFolder.getId()); onlineFolder.setFullResourceName(currentResourceName); } catch (CmsException exc) { // if folder does not exist create it if (exc.getType() == CmsException.C_NOT_FOUND) { // create the new folder onlineFolder = m_driverManager.getVfsDriver().createFolder(context.currentUser(), onlineProject, currentFolder, currentFolder.getParentId(), currentFolder.getResourceName()); onlineFolder.setState(I_CmsConstants.C_STATE_UNCHANGED); onlineFolder.setFullResourceName(currentResourceName); m_driverManager.getVfsDriver().updateResourceState(context.currentProject(), onlineFolder, CmsDriverManager.C_UPDATE_ALL); } else { throw exc; } } // export to filesystem if necessary if (currentExportKey != null) { discAccess.createFolder(currentResourceName, currentExportKey); // TODO: this does not work currently since getResourceName results in the name and not in the path ! // if (!onlineFolder.getResourceName().equals(currentResourceName)) { // discAccess.removeResource(onlineFolder.getResourceName(), currentExportKey); //} } m_driverManager.getVfsDriver().publishResource(onlineFolder, currentFolder); // copy the access control entries of the folder m_driverManager.getUserDriver().publishAccessControlEntries(context.currentProject(), onlineProject, currentFolder.getResourceAceId(), onlineFolder.getResourceAceId()); // copy properties properties = (Map) new HashMap(); try { //m_driverManager.readPath(context, onlineFolder, true); m_driverManager.getVfsDriver().deleteAllProperties(onlineProject.getId(), onlineFolder); properties = m_driverManager.getVfsDriver().readProperties(context.currentProject().getId(), currentFolder, currentFolder.getType()); m_driverManager.getVfsDriver().writeProperties(properties, onlineProject.getId(), onlineFolder, currentFolder.getType()); } catch (CmsException exc) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_INFO)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[" + this.getClass().getName() + "] error publishing, deleting properties for " + onlineFolder.toString() + " Message= " + exc.getMessage()); } } if (backupEnabled) { // backup the offline resource m_driverManager.getBackupDriver().writeBackupResource(context.currentUser(), context.currentProject(), currentFolder, properties, backupTagId, publishDate); } writePublishHistory(context.currentProject(), publishHistoryId, backupTagId, currentResourceName, currentFolder); if (currentFolder.getState() != I_CmsConstants.C_STATE_UNCHANGED) { // set the state of current folder in the offline project to unchanged currentFolder.setState(I_CmsConstants.C_STATE_UNCHANGED); m_driverManager.getVfsDriver().updateResourceState(context.currentProject(), currentFolder, CmsDriverManager.C_UPDATE_ALL); } } m_driverManager.getVfsDriver().resetProjectId(context.currentProject(), currentFolder); OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_RESOURCE_MODIFIED, Collections.singletonMap("resource", currentFolder))); i.remove(); properties = null; currentFolder = null; newFolder = null; onlineFolder = null; } } if (sortedFolderList != null) { sortedFolderList.clear(); sortedFolderList = null; } if (sortedFolderMap != null) { sortedFolderMap.clear(); sortedFolderMap = null; } // now read all changed/new/deleted FILES in offlineProject offlineFiles = m_driverManager.getVfsDriver().readFiles(context.currentProject().getId()); i = offlineFiles.iterator(); while (i.hasNext()) { currentFileHeader = (CmsResource) i.next(); currentResourceName = m_driverManager.readPath(context, currentFileHeader, true); currentLock = m_driverManager.getLock(context, currentResourceName); switch (currentFileHeader.getState()) { // the current resource is deleted case I_CmsConstants.C_STATE_DELETED : String delProject=m_driverManager.getVfsDriver().readProperty(I_CmsConstants.C_PROPERTY_INTERNAL, context.currentProject().getId(), currentFileHeader, currentFileHeader.getType()); if (delProject!=null && delProject.equals(""+context.currentProject().getId())) { publishCurrentResource = true; } else { publishCurrentResource = false; } // it is published, if it was changed to deleted in the current project //publishCurrentResource = currentFileHeader.getProjectId() == context.currentProject().getId(); break; // the current resource is new ... case I_CmsConstants.C_STATE_NEW : // it is published, if it was created in the current project // or if it is a new sibling of another resource that is currently not changed in any project publishCurrentResource = currentFileHeader.getProjectId() == context.currentProject().getId() || currentFileHeader.getProjectId() == 0; break; // the current resource is changed case I_CmsConstants.C_STATE_CHANGED : // it is published, if it was changed in the current project publishCurrentResource = currentFileHeader.getProjectId() == context.currentProject().getId(); break; // the current resource is unchanged case I_CmsConstants.C_STATE_UNCHANGED : default : // so it is not published publishCurrentResource = false; break; } /* // the resource must have either a new/deleted state in the link or a new/delete state in the resource record publishCurrentResource = currentFileHeader.getState() > I_CmsConstants.C_STATE_CHANGED; // or the resource must have a changed state and must be changed in the project that is currently published if (currentFileHeader.getState() == I_CmsConstants.C_STATE_CHANGED) */ if (context.currentProject().getType() == I_CmsConstants.C_PROJECT_TYPE_DIRECT_PUBLISH && directPublishResource != null) { // the resource must be a sub resource of the direct-publish-resource in case of a "direct publish" publishCurrentResource = publishCurrentResource && currentResourceName.startsWith(directPublishResource.getFullResourceName()); } else { // the resource must be in one of the paths defined for the project publishCurrentResource = publishCurrentResource && CmsProject.isInsideProject(projectResources, currentFileHeader); } // do not publish resource that are locked publishCurrentResource = publishCurrentResource && currentLock.isNullLock(); if (publishCurrentResource) { currentFile = m_driverManager.getVfsDriver().readFile(context.currentProject().getId(), true, currentFileHeader.getId()); currentFile.setFullResourceName(currentResourceName); currentExportKey = checkExport(currentResourceName, exportpoints); report.print(report.key("report.publishing"), I_CmsReport.C_FORMAT_NOTE); report.println(context.removeSiteRoot(currentResourceName)); if (currentLock.isNullLock()) { // remove the temporary files for this resource m_driverManager.getVfsDriver().removeTemporaryFile(currentFile); } if (currentFile.getResourceName().startsWith(I_CmsConstants.C_TEMP_PREFIX)) { m_driverManager.getVfsDriver().deleteAllProperties(context.currentProject().getId(), currentFile); m_driverManager.getVfsDriver().removeFile(context.currentProject(), currentFile); } if (currentFile.getState() == I_CmsConstants.C_STATE_DELETED) { // C_STATE_DELETE changedResources.addElement(currentResourceName); if (currentExportKey != null) { try { discAccess.removeResource(currentResourceName, currentExportKey); } catch (Exception ex) { // NOOP } } onlineFile = m_driverManager.readFileInProject(context, onlineProject.getId(), currentFile.getId(), false); onlineFile.setFullResourceName(currentResourceName); //m_driverManager.readPath(context, onlineFile, true); if (backupEnabled) { properties = m_driverManager.getVfsDriver().readProperties(context.currentProject().getId(), currentFile, currentFile.getType()); m_driverManager.getBackupDriver().writeBackupResource(context.currentUser(), context.currentProject(), currentFile, properties, backupTagId, publishDate); } writePublishHistory(context.currentProject(), publishHistoryId, backupTagId, currentResourceName, currentFile); try { m_driverManager.getVfsDriver().deleteAllProperties(onlineProject.getId(), onlineFile); m_driverManager.getVfsDriver().deleteAllProperties(context.currentProject().getId(), currentFile); } catch (CmsException exc) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_INFO)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[" + this.getClass().getName() + "] error publishing, deleting properties for " + onlineFile.toString() + " Message= " + exc.getMessage()); } } try { m_driverManager.getVfsDriver().removeFile(onlineProject, onlineFile); m_driverManager.getVfsDriver().removeFile(context.currentProject(), currentFile); } catch (CmsException exc) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_INFO)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[" + this.getClass().getName() + "] error publishing, deleting resource for " + onlineFile.toString() + " Message= " + exc.getMessage()); } } try { m_driverManager.getUserDriver().removeAllAccessControlEntries(onlineProject, onlineFile.getResourceAceId()); m_driverManager.getUserDriver().removeAllAccessControlEntries(context.currentProject(), currentFile.getResourceAceId()); } catch (CmsException exc) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_INFO)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[" + this.getClass().getName() + "] error publishing, deleting resource for " + onlineFile.toString() + " Message= " + exc.getMessage()); } } /* try { m_driverManager.getUserDriver().removeAllAccessControlEntries(onlineProject, onlineFile.getResourceAceId()); m_driverManager.getUserDriver().removeAllAccessControlEntries(context.currentProject(), currentFile.getResourceAceId()); } catch (CmsException exc) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_INFO)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[" + this.getClass().getName() + "] error publishing, deleting resource for " + onlineFile.toString() + " Message= " + exc.getMessage()); } } */ } else if (currentFile.getState() == I_CmsConstants.C_STATE_CHANGED) { // C_STATE_CHANGED changedResources.addElement(currentResourceName); // export to filesystem if necessary if (currentExportKey != null) { // Encoding project: Make sure files are written in the right encoding contents = currentFile.getContents(); String encoding = m_driverManager.getVfsDriver().readProperty(I_CmsConstants.C_PROPERTY_CONTENT_ENCODING, context.currentProject().getId(), currentFile, currentFile.getType()); if (encoding != null) { // Only files that have the encodig property set will be encoded, // the other files will be ignored. So images etc. are not touched. try { contents = (new String(contents, encoding)).getBytes(); } catch (UnsupportedEncodingException uex) { // contents will keep original value } } discAccess.writeFile(currentResourceName, currentExportKey, contents); } try { // onlineFile = m_driverManager.readFile(context, currentFile.getId(), false); // cw - we must read online resources from the online project onlineFile = m_driverManager.getVfsDriver().readFile(onlineProject.getId(), false, currentFile.getId()); onlineFile.setFullResourceName(currentResourceName); } catch (CmsException exc) { if (exc.getType() == CmsException.C_NOT_FOUND) { // create a new File currentFile.setState(I_CmsConstants.C_STATE_UNCHANGED); onlineFile = m_driverManager.getVfsDriver().createFile(onlineProject, currentFile, context.currentUser().getId(), currentFile.getParentId(), currentFile.getResourceName()); } } // TODO: decide if its neccessary to publish the content m_driverManager.getVfsDriver().publishResource(onlineFile, currentFile); // if (currentFile.isHardLink()) { // m_driverManager.getVfsDriver().writeFileContent(onlineFile.getFileId(), currentFile.getContents(), I_CmsConstants.C_PROJECT_ONLINE_ID, false); //} // copy properties properties = (Map) new HashMap(); try { //m_driverManager.readPath(context, onlineFile, true); m_driverManager.getVfsDriver().deleteAllProperties(onlineProject.getId(), onlineFile); properties = m_driverManager.getVfsDriver().readProperties(context.currentProject().getId(), currentFile, currentFile.getType()); m_driverManager.getVfsDriver().writeProperties(properties, onlineProject.getId(), onlineFile, currentFile.getType()); } catch (CmsException exc) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_INFO)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[" + this.getClass().getName() + "] error publishing, deleting properties for " + onlineFile.toString() + " Message= " + exc.getMessage()); } } // copy access control entries m_driverManager.getUserDriver().publishAccessControlEntries(context.currentProject(), onlineProject, currentFile.getResourceAceId(), onlineFile.getResourceAceId()); if (backupEnabled) { // backup the offline resource m_driverManager.getBackupDriver().writeBackupResource(context.currentUser(), context.currentProject(), currentFile, properties, backupTagId, publishDate); } writePublishHistory(context.currentProject(), publishHistoryId, backupTagId, currentResourceName, currentFile); if (currentFile.getState() != I_CmsConstants.C_STATE_UNCHANGED) { // set the file state to unchanged currentFile.setState(I_CmsConstants.C_STATE_UNCHANGED); m_driverManager.getVfsDriver().updateResourceState(context.currentProject(), currentFile, CmsDriverManager.C_UPDATE_ALL); } m_driverManager.getVfsDriver().resetProjectId(context.currentProject(), currentFile); } else if (currentFile.getState() == I_CmsConstants.C_STATE_NEW) { // C_STATE_NEW changedResources.addElement(currentResourceName); // export to filesystem if necessary if (currentExportKey != null) { // Encoding project: Make sure files are written in the right encoding contents = currentFile.getContents(); String encoding = m_driverManager.getVfsDriver().readProperty(I_CmsConstants.C_PROPERTY_CONTENT_ENCODING, context.currentProject().getId(), currentFile, currentFile.getType()); if (encoding != null) { // Only files that have the encodig property set will be encoded, // the other files will be ignored. So images etc. are not touched. try { contents = (new String(contents, encoding)).getBytes(); } catch (UnsupportedEncodingException uex) { // contents will keep original value } } discAccess.writeFile(currentResourceName, currentExportKey, contents); } // create the new file try { newFile = (CmsFile) currentFile.clone(); newFile.setState(I_CmsConstants.C_STATE_UNCHANGED); newFile.setFullResourceName(currentResourceName); m_driverManager.getVfsDriver().createFile(onlineProject, newFile, context.currentUser().getId(), newFile.getParentId(), newFile.getResourceName()); } catch (CmsException e) { if (e.getType() == CmsException.C_FILE_EXISTS) { try { // onlineFile = m_driverManager.readFile(context, currentFile.getId(), false); // we must read online resources from the online project onlineFile = m_driverManager.getVfsDriver().readFile(onlineProject.getId(), false, currentFile.getId()); onlineFile.setFullResourceName(currentResourceName); } catch (CmsException exc) { throw exc; } // TODO: decide if its neccessary to publish the content m_driverManager.getVfsDriver().publishResource(onlineFile, currentFile); // if (currentFile.isHardLink()) { // m_driverManager.getVfsDriver().writeFileContent(onlineFile.getFileId(), currentFile.getContents(), I_CmsConstants.C_PROJECT_ONLINE_ID, false); //} } else { throw e; } } // copy properties properties = (Map) new HashMap(); try { //m_driverManager.readPath(context, newFile, true); properties = m_driverManager.getVfsDriver().readProperties(context.currentProject().getId(), currentFile, currentFile.getType()); m_driverManager.getVfsDriver().writeProperties(properties, onlineProject.getId(), newFile, newFile.getType()); } catch (CmsException exc) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_INFO)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[" + this.getClass().getName() + "] error publishing, copy properties for " + newFile.toString() + " Message= " + exc.getMessage()); } } // copy access control entries m_driverManager.getUserDriver().publishAccessControlEntries(context.currentProject(), onlineProject, currentFile.getResourceAceId(), newFile.getResourceAceId()); if (backupEnabled) { // backup the offline resource m_driverManager.getBackupDriver().writeBackupResource(context.currentUser(), context.currentProject(), currentFile, properties, backupTagId, publishDate); } writePublishHistory(context.currentProject(), publishHistoryId, backupTagId, currentResourceName, currentFile); if (currentFile.getState() != I_CmsConstants.C_STATE_UNCHANGED) { // set the file state to unchanged currentFile.setState(I_CmsConstants.C_STATE_UNCHANGED); m_driverManager.getVfsDriver().updateResourceState(context.currentProject(), currentFile, CmsDriverManager.C_UPDATE_ALL); } m_driverManager.getVfsDriver().resetProjectId(context.currentProject(), currentFile); } //m_driverManager.getVfsDriver().resetProjectId(context.currentProject(), currentFile); OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_RESOURCE_MODIFIED, Collections.singletonMap("resource", currentFile))); i.remove(); properties = null; currentFile = null; currentFileHeader = null; newFile = null; onlineFile = null; contents = null; } } if (offlineFiles != null) { offlineFiles.clear(); offlineFiles = null; } // now delete the "deleted" folders if (deletedFolders.isEmpty()) { return changedResources; } // ensure that the folders appear in the correct (DFS) tree order sortedFolderMap = (Map) new HashMap(); i = deletedFolders.iterator(); while (i.hasNext()) { currentFolder = (CmsFolder) i.next(); currentResourceName = currentFolder.getFullResourceName(); sortedFolderMap.put(currentResourceName, currentFolder); } sortedFolderList = (List) new ArrayList(sortedFolderMap.keySet()); Collections.sort(sortedFolderList); Collections.reverse(sortedFolderList); if (deletedFolders != null) { deletedFolders.clear(); deletedFolders = null; } i = sortedFolderList.iterator(); while (i.hasNext()) { currentResourceName = (String) i.next(); currentFolder = (CmsFolder) sortedFolderMap.get(currentResourceName); currentExportKey = checkExport(currentResourceName, exportpoints); report.print(report.key("report.deleting"), I_CmsReport.C_FORMAT_NOTE); report.println(context.removeSiteRoot(currentResourceName)); if (currentExportKey != null) { discAccess.removeResource(currentResourceName, currentExportKey); } if (backupEnabled) { properties = m_driverManager.getVfsDriver().readProperties(context.currentProject().getId(), currentFolder, currentFolder.getType()); // backup the offline resource m_driverManager.getBackupDriver().writeBackupResource(context.currentUser(), context.currentProject(), currentFolder, properties, backupTagId, publishDate); } delOnlineFolder = m_driverManager.readFolder(context, currentFolder.getId(), true); delOnlineFolder.setFullResourceName(currentResourceName); try { //m_driverManager.readPath(context, delOnlineFolder, true); m_driverManager.getVfsDriver().deleteAllProperties(onlineProject.getId(), delOnlineFolder); m_driverManager.getVfsDriver().deleteAllProperties(context.currentProject().getId(), currentFolder); } catch (CmsException exc) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_INFO)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[" + this.getClass().getName() + "] error publishing, deleting properties for " + currentFolder.toString() + " Message= " + exc.getMessage()); } } m_driverManager.getVfsDriver().removeFolder(onlineProject, currentFolder); m_driverManager.getVfsDriver().removeFolder(context.currentProject(), currentFolder); // delete both online and offline access control entries applied to this folder m_driverManager.getUserDriver().removeAllAccessControlEntries(onlineProject, delOnlineFolder.getResourceAceId()); m_driverManager.getUserDriver().removeAllAccessControlEntries(context.currentProject(), currentFolder.getResourceAceId()); OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_RESOURCE_MODIFIED, Collections.singletonMap("resource", currentFolder))); i.remove(); currentFolder = null; delOnlineFolder = null; } if (sortedFolderList != null) { sortedFolderList.clear(); sortedFolderList = null; } if (sortedFolderMap != null) { sortedFolderMap.clear(); sortedFolderMap = null; } } catch (CmsException e) { // these are dummy catch blocks to have a finally block for clearing // allocated resources. thus the exceptions are just logged and // immediately thrown to the upper app. layer. if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_CRITICAL)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_CRITICAL, "[" + this.getClass().getName() + ".publishProject] " + e.getMessage()); } throw e; } catch (OutOfMemoryError o) { if (OpenCms.isLogging(I_CmsLogChannels.C_OPENCMS_CRITICAL)) { OpenCms.log(I_CmsLogChannels.C_OPENCMS_CRITICAL, "[" + this.getClass().getName() + ".publishProject] out of memory error!"); } // clear all caches to reclaim memory OpenCms.fireCmsEvent(new CmsEvent(new CmsObject(), I_CmsEventListener.EVENT_CLEAR_CACHES, new HashMap(), false)); // force a complete object finalization and garbage collection System.runFinalization(); Runtime.getRuntime().runFinalization(); System.gc(); Runtime.getRuntime().gc(); throw o; } finally { if (sortedFolderList != null) { sortedFolderList.clear(); sortedFolderList = null; } if (sortedFolderMap != null) { sortedFolderMap.clear(); sortedFolderMap = null; } if (deletedFolders != null) { deletedFolders.clear(); deletedFolders = null; } if (offlineFiles != null) { offlineFiles.clear(); offlineFiles = null; } properties = null; currentFile = null; currentFileHeader = null; newFile = null; onlineFile = null; currentFolder = null; newFolder = null; onlineFolder = null; discAccess = null; delOnlineFolder = null; currentExportKey = null; contents = null; } return changedResources; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/bc83fccba74a19eb8794dd44eb7434573b8e9614/CmsProjectDriver.java/clean/src/org/opencms/db/generic/CmsProjectDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
5589,
3808,
4109,
12,
4747,
21426,
819,
16,
2149,
4109,
12365,
4109,
16,
1250,
5114,
1526,
16,
509,
5114,
1805,
548,
16,
467,
67,
25702,
2605,
16,
18559,
3359,
4139,
16,
7630,
2657,
6024,
1420,
13,
1216,
11228,
288,
3639,
2149,
6144,
2148,
4668,
19169,
1862,
273,
446,
31,
3639,
2149,
3899,
783,
3899,
273,
446,
31,
3639,
28118,
22650,
273,
446,
31,
3639,
7630,
22650,
1864,
273,
446,
31,
3639,
2149,
2531,
783,
2531,
273,
446,
31,
3639,
2149,
3899,
394,
3899,
273,
446,
31,
3639,
28118,
20592,
273,
446,
31,
3639,
28118,
12365,
812,
273,
446,
31,
3639,
987,
13493,
14885,
273,
446,
31,
3639,
987,
13493,
2697,
273,
446,
31,
3639,
987,
4282,
14885,
273,
261,
682,
13,
394,
2407,
5621,
3639,
5589,
3550,
3805,
273,
394,
5589,
5621,
3639,
514,
783,
6144,
653,
273,
446,
31,
3639,
514,
783,
19327,
273,
446,
31,
3639,
1525,
3808,
1626,
273,
2332,
18,
2972,
28512,
5621,
3639,
4498,
277,
273,
446,
31,
3639,
1250,
3808,
3935,
1420,
273,
629,
31,
3639,
987,
1984,
3805,
273,
446,
31,
3639,
1635,
1790,
273,
446,
31,
3639,
2149,
3899,
12365,
3899,
273,
446,
31,
3639,
1635,
3115,
3899,
863,
273,
446,
31,
3639,
987,
3115,
3899,
682,
273,
446,
31,
3639,
7630,
1464,
16860,
3899,
273,
446,
31,
3639,
1160,
8526,
2939,
273,
446,
31,
3639,
509,
3808,
5623,
548,
273,
1024,
6024,
28039,
5621,
6647,
775,
288,
5411,
19169,
1862,
273,
394,
2149,
6144,
2148,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
5589,
3808,
4109,
12,
4747,
21426,
819,
16,
2149,
4109,
12365,
4109,
16,
1250,
5114,
1526,
16,
509,
5114,
1805,
548,
16,
467,
67,
25702,
2605,
16,
18559,
3359,
4139,
16,
7630,
2657,
6024,
1420,
13,
1216,
11228,
288,
3639,
2149,
6144,
2148,
4668,
19169,
1862,
273,
446,
31,
3639,
2149,
3899,
783,
3899,
273,
446,
31,
3639,
28118,
22650,
273,
446,
31,
3639,
7630,
22650,
1864,
273,
446,
31,
3639,
2149,
2531,
783,
2531,
273,
446,
31,
3639,
2149,
3899,
394,
3899,
273,
446,
31,
3639,
28118,
20592,
273,
446,
31,
3639,
28118,
12365,
812,
273,
446,
31,
3639,
987,
13493,
14885,
273,
446,
31,
3639,
987,
13493,
2697,
273,
446,
31,
3639,
987,
4282,
2
] |
} catch(FieldNotFound e) {}
|
} catch (FieldNotFound e) { }
|
private void executionReport(Message message, SessionID sessionID) throws FieldNotFound { ExecID execID = (ExecID)message.getField(new ExecID()); if(alreadyProcessed(execID, sessionID)) return; String id = message.getField(new ClOrdID()).getValue(); Order order = orderTableModel.getOrder(id); if(order == null) return; LastShares lastShares = new LastShares(0); try { OrderQty orderQty = (OrderQty)message.getField(new OrderQty()); int diff = order.getQuantity() - (int)orderQty.getValue(); order.setQuantity((int)orderQty.getValue()); order.setOpen(order.getOpen() - diff); } catch(FieldNotFound e) {} try { Price price = (Price)message.getField(new Price()); order.setLimit(new Double(price.getValue())); } catch(FieldNotFound e) {} try { message.getField(lastShares); } catch(FieldNotFound e) {} if(lastShares.getValue() > 0) { order.setExecuted((int)message.getField(new CumQty()).getValue()); order.setAvgPx(message.getField(new AvgPx()).getValue()); } OrdStatus ordStatus = (OrdStatus)message.getField(new OrdStatus()); try { order.setOpen((int)message.getField(new LeavesQty()).getValue()); } catch(FieldNotFound e) { // FIX40 doesn't have LeavesQty if(ordStatus.valueEquals(OrdStatus.REJECTED) || ordStatus.valueEquals(OrdStatus.CANCELED)) order.setOpen(0); else if(ordStatus.valueEquals(OrdStatus.NEW)) { if(order.isNew()) { order.setOpen(order.getQuantity()); order.setNew(false); } } order.setOpen(order.getOpen() - (int)lastShares.getValue()); } if(ordStatus.valueEquals(OrdStatus.REJECTED)) order.setRejected(true); else if(ordStatus.valueEquals(OrdStatus.CANCELED) || ordStatus.valueEquals(OrdStatus.DONE_FOR_DAY)) order.setCanceled(true); try { order.setMessage(message.getField(new Text()).getValue()); } catch(FieldNotFound e) { order.setMessage(null); } orderTableModel.updateOrder(order, id); observableOrder.update(order); if(lastShares.getValue() > 0) { Execution execution = new Execution(); execution.setExchangeID(sessionID + message.getField(new ExecID()).getValue()); execution.setSymbol(message.getField(new Symbol()).getValue()); execution.setQuantity((int)lastShares.getValue()); execution.setPrice(message.getField(new LastPx()).getValue()); Side side = (Side)message.getField(new Side()); execution.setSide(FIXSideToSide(side)); executionTableModel.addExecution(execution); } }
|
6257 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6257/b1369a27979caf97c3e3b66213e8103f210c0b86/BanzaiApplication.java/buggy/examples/quickfix/examples/banzai/BanzaiApplication.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4588,
4820,
12,
1079,
883,
16,
3877,
734,
13737,
13,
565,
1216,
2286,
2768,
288,
3639,
3889,
734,
1196,
734,
273,
261,
1905,
734,
13,
2150,
18,
588,
974,
12,
2704,
3889,
734,
10663,
3639,
309,
12,
17583,
13533,
12,
4177,
734,
16,
13737,
3719,
5411,
327,
31,
3639,
514,
612,
273,
883,
18,
588,
974,
12,
2704,
3905,
15383,
734,
1435,
2934,
24805,
5621,
3639,
4347,
1353,
273,
1353,
1388,
1488,
18,
588,
2448,
12,
350,
1769,
3639,
309,
12,
1019,
422,
446,
13,
5411,
327,
31,
3639,
6825,
24051,
1142,
24051,
273,
394,
6825,
24051,
12,
20,
1769,
3639,
775,
288,
5411,
4347,
53,
4098,
1353,
53,
4098,
273,
261,
2448,
53,
4098,
13,
2150,
18,
588,
974,
12,
2704,
4347,
53,
4098,
10663,
5411,
509,
3122,
273,
1353,
18,
588,
12035,
1435,
300,
261,
474,
13,
1019,
53,
4098,
18,
24805,
5621,
5411,
1353,
18,
542,
12035,
12443,
474,
13,
1019,
53,
4098,
18,
24805,
10663,
5411,
1353,
18,
542,
3678,
12,
1019,
18,
588,
3678,
1435,
300,
3122,
1769,
3639,
289,
1044,
261,
974,
2768,
425,
13,
288,
289,
3639,
775,
288,
5411,
20137,
6205,
273,
261,
5147,
13,
2150,
18,
588,
974,
12,
2704,
20137,
10663,
5411,
1353,
18,
542,
3039,
12,
2704,
3698,
12,
8694,
18,
24805,
1435,
10019,
3639,
289,
1044,
261,
974,
2768,
425,
13,
288,
289,
3639,
775,
288,
5411,
883,
18,
588,
974,
12,
2722,
24051,
1769,
3639,
289,
1044,
261,
974,
2768,
425,
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,
4588,
4820,
12,
1079,
883,
16,
3877,
734,
13737,
13,
565,
1216,
2286,
2768,
288,
3639,
3889,
734,
1196,
734,
273,
261,
1905,
734,
13,
2150,
18,
588,
974,
12,
2704,
3889,
734,
10663,
3639,
309,
12,
17583,
13533,
12,
4177,
734,
16,
13737,
3719,
5411,
327,
31,
3639,
514,
612,
273,
883,
18,
588,
974,
12,
2704,
3905,
15383,
734,
1435,
2934,
24805,
5621,
3639,
4347,
1353,
273,
1353,
1388,
1488,
18,
588,
2448,
12,
350,
1769,
3639,
309,
12,
1019,
422,
446,
13,
5411,
327,
31,
3639,
6825,
24051,
1142,
24051,
273,
394,
6825,
24051,
12,
20,
1769,
3639,
775,
288,
5411,
4347,
53,
4098,
1353,
53,
4098,
273,
261,
2448,
53,
4098,
13,
2
] |
if (idx>=0 && field!=null && field.getNullString()!=null) retval=field.getNullString(); else retval = "";
|
if (idx>=0 && field!=null && !Const.isEmpty(field.getNullString())) { retval=field.getNullString(); } else { retval = Const.NULL_NUMBER; }
|
private String formatField(Value v, int idx) { String retval=""; XMLField field = null; if (idx>=0) field = meta.getOutputFields()[idx]; if (v.isBigNumber() || v.isNumber() || v.isInteger()) { if (idx>=0 && field!=null && field.getFormat()!=null) { if (v.isNull()) { if (field.getNullString()!=null) retval=field.getNullString(); else retval = ""; } else { // Formatting if ( !Const.isEmpty(field.getFormat()) ) { data.df.applyPattern(field.getFormat()); } else { data.df.applyPattern(data.defaultDecimalFormat.toLocalizedPattern()); } // Decimal if ( !Const.isEmpty( field.getDecimalSymbol()) ) { data.dfs.setDecimalSeparator( field.getDecimalSymbol().charAt(0) ); } else { data.dfs.setDecimalSeparator( data.defaultDecimalFormatSymbols.getDecimalSeparator() ); } // Grouping if ( !Const.isEmpty( field.getGroupingSymbol()) ) { data.dfs.setGroupingSeparator( field.getGroupingSymbol().charAt(0) ); } else { data.dfs.setGroupingSeparator( data.defaultDecimalFormatSymbols.getGroupingSeparator() ); } // Currency symbol if ( !Const.isEmpty( field.getCurrencySymbol()) ) { data.dfs.setCurrencySymbol( field.getCurrencySymbol() ); } else { data.dfs.setCurrencySymbol( data.defaultDecimalFormatSymbols.getCurrencySymbol() ); } data.df.setDecimalFormatSymbols(data.dfs); if (v.isBigNumber()) { retval=data.df.format(v.getBigNumber()); } else if (v.isNumber()) { retval=data.df.format(v.getNumber()); } else // Integer { retval=data.df.format(v.getInteger()); } } } else { if (v.isNull()) { if (idx>=0 && field!=null && field.getNullString()!=null) retval=field.getNullString(); else retval = ""; } else { retval=v.toString(); } } } else if (v.isDate()) { if (idx>=0 && field!=null && field.getFormat()!=null && v.getDate()!=null) { if (!Const.isEmpty(field.getFormat())) { data.daf.applyPattern( field.getFormat() ); } else { data.daf.applyPattern( data.defaultDateFormat.toLocalizedPattern() ); } data.daf.setDateFormatSymbols(data.dafs); retval= data.daf.format(v.getDate()); } else { if (v.isNull() || v.getDate()==null) { if (idx>=0 && field!=null && field.getNullString()!=null) { retval=field.getNullString(); } } else { retval=v.toString(); } } } else if (v.isString()) { if (v.isNull() || v.getString()==null) { if (idx>=0 && field!=null && field.getNullString()!=null) retval=field.getNullString(); } else { retval=v.toString(); } } else if (v.isBinary()) { if (v.isNull()) { if (field.getNullString()!=null) retval=field.getNullString(); else retval=Const.NULL_BINARY; } else { try { retval=new String(v.getBytes(), "US-ASCII"); } catch (UnsupportedEncodingException e) { // chances are small we'll get here. US_ASCII is // mandatory. retval=Const.NULL_BINARY; } } } else // Boolean { if (v.isNull()) { if (idx>=0 && field!=null && field.getNullString()!=null) retval=field.getNullString(); } else { retval=v.toString(); } } return retval; }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/d7cd7b81ee2b8400e495453751f6025eed5a9600/XMLOutput.java/clean/src/be/ibridge/kettle/trans/step/xmloutput/XMLOutput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
740,
974,
12,
620,
331,
16,
509,
2067,
13,
202,
95,
202,
202,
780,
5221,
1546,
14432,
202,
202,
4201,
974,
652,
273,
446,
31,
202,
202,
430,
261,
3465,
34,
33,
20,
13,
652,
273,
2191,
18,
588,
1447,
2314,
1435,
63,
3465,
15533,
1082,
3639,
309,
261,
90,
18,
291,
9901,
1854,
1435,
747,
331,
18,
291,
1854,
1435,
747,
331,
18,
291,
4522,
10756,
3639,
288,
1082,
202,
430,
261,
3465,
34,
33,
20,
597,
652,
5,
33,
2011,
597,
652,
18,
588,
1630,
1435,
5,
33,
2011,
13,
1082,
202,
95,
9506,
202,
430,
261,
90,
18,
291,
2041,
10756,
9506,
202,
95,
6862,
202,
430,
261,
1518,
18,
588,
2041,
780,
1435,
5,
33,
2011,
13,
5221,
33,
1518,
18,
588,
2041,
780,
5621,
6862,
202,
12107,
5221,
273,
1408,
31,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
10792,
368,
4077,
1787,
10792,
309,
261,
401,
9661,
18,
291,
1921,
12,
1518,
18,
588,
1630,
10756,
262,
10792,
288,
13491,
501,
18,
2180,
18,
9010,
3234,
12,
1518,
18,
588,
1630,
10663,
10792,
289,
10792,
469,
10792,
288,
13491,
501,
18,
2180,
18,
9010,
3234,
12,
892,
18,
1886,
5749,
1630,
18,
869,
2042,
1235,
3234,
10663,
10792,
289,
10792,
368,
11322,
4405,
202,
430,
261,
401,
9661,
18,
291,
1921,
12,
652,
18,
588,
5749,
5335,
10756,
262,
10792,
288,
13491,
501,
18,
12381,
18,
542,
5749,
6581,
12,
652,
18,
588,
5749,
5335,
7675,
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,
514,
740,
974,
12,
620,
331,
16,
509,
2067,
13,
202,
95,
202,
202,
780,
5221,
1546,
14432,
202,
202,
4201,
974,
652,
273,
446,
31,
202,
202,
430,
261,
3465,
34,
33,
20,
13,
652,
273,
2191,
18,
588,
1447,
2314,
1435,
63,
3465,
15533,
1082,
3639,
309,
261,
90,
18,
291,
9901,
1854,
1435,
747,
331,
18,
291,
1854,
1435,
747,
331,
18,
291,
4522,
10756,
3639,
288,
1082,
202,
430,
261,
3465,
34,
33,
20,
597,
652,
5,
33,
2011,
597,
652,
18,
588,
1630,
1435,
5,
33,
2011,
13,
1082,
202,
95,
9506,
202,
430,
261,
90,
18,
291,
2041,
10756,
9506,
202,
95,
6862,
202,
430,
261,
1518,
18,
588,
2041,
2
] |
public WicketExamplePage() {
|
public WicketExamplePage() {
|
public WicketExamplePage() { this(null); }
|
51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/69d6aacf9c4e3be8c904198723ee379e0714c965/WicketExamplePage.java/buggy/wicket-contrib-yui-examples/src/main/java/wicket/contrib/yui/examples/WicketExamplePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
678,
29378,
10908,
1964,
1435,
565,
288,
202,
202,
2211,
12,
2011,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
678,
29378,
10908,
1964,
1435,
565,
288,
202,
202,
2211,
12,
2011,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 shiftNumber = processResult.getNextRowShift(); nextRowShiftNumber += shiftNumber; endRow += processResult.getLastRowShift(); i += shiftNumber;
|
if( !processResult.isTagProcessResult() ){ int shiftNumber = processResult.getNextRowShift(); nextRowShiftNumber += shiftNumber; endRow += processResult.getLastRowShift(); i += shiftNumber; }else{ hasTagProcessing = true; if( processResult.getLastProcessedRow() >= 0 ){ i = processResult.getLastProcessedRow(); }else{ i--; } endRow += processResult.getLastRowShift(); }
|
public ResultTransformation processRows(SheetTransformationController stc, Sheet sheet, int startRow, int endRow, Map beans, Row parentRow) throws ParsePropertyException { int origEndRow = endRow; int nextRowShiftNumber = 0; for (int i = startRow; i <= endRow; i++) { HSSFRow hssfRow = sheet.getHssfSheet().getRow(i); if( hssfRow!=null ){ ResultTransformation processResult = processRow(stc, sheet, hssfRow, beans, parentRow ); int shiftNumber = processResult.getNextRowShift(); nextRowShiftNumber += shiftNumber; endRow += processResult.getLastRowShift(); i += shiftNumber; } } return new ResultTransformation(nextRowShiftNumber, endRow - origEndRow); }
|
45222 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45222/122c4244309eb64136e6fdce2d11b7497600dfb0/SheetTransformer.java/buggy/jxls-core/src/main/java/net/sf/jxls/transformer/SheetTransformer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3438,
15292,
1207,
4300,
12,
8229,
15292,
2933,
384,
71,
16,
18707,
6202,
16,
509,
787,
1999,
16,
509,
679,
1999,
16,
1635,
15709,
16,
6556,
982,
1999,
13,
1216,
2884,
1396,
503,
288,
3639,
509,
1647,
1638,
1999,
273,
679,
1999,
31,
3639,
509,
1024,
1999,
10544,
1854,
273,
374,
31,
3639,
364,
261,
474,
277,
273,
787,
1999,
31,
277,
1648,
679,
1999,
31,
277,
27245,
288,
5411,
670,
1260,
42,
1999,
366,
1049,
74,
1999,
273,
6202,
18,
588,
44,
1049,
74,
8229,
7675,
588,
1999,
12,
77,
1769,
5411,
309,
12,
366,
1049,
74,
1999,
5,
33,
2011,
262,
95,
7734,
3438,
15292,
1207,
1253,
273,
1207,
1999,
12,
334,
71,
16,
6202,
16,
366,
1049,
74,
1999,
16,
15709,
16,
982,
1999,
11272,
7734,
509,
4654,
1854,
273,
1207,
1253,
18,
588,
2134,
1999,
10544,
5621,
7734,
1024,
1999,
10544,
1854,
1011,
4654,
1854,
31,
7734,
679,
1999,
1011,
1207,
1253,
18,
588,
3024,
1999,
10544,
5621,
7734,
277,
1011,
4654,
1854,
31,
5411,
289,
3639,
289,
3639,
327,
394,
3438,
15292,
12,
4285,
1999,
10544,
1854,
16,
679,
1999,
300,
1647,
1638,
1999,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3438,
15292,
1207,
4300,
12,
8229,
15292,
2933,
384,
71,
16,
18707,
6202,
16,
509,
787,
1999,
16,
509,
679,
1999,
16,
1635,
15709,
16,
6556,
982,
1999,
13,
1216,
2884,
1396,
503,
288,
3639,
509,
1647,
1638,
1999,
273,
679,
1999,
31,
3639,
509,
1024,
1999,
10544,
1854,
273,
374,
31,
3639,
364,
261,
474,
277,
273,
787,
1999,
31,
277,
1648,
679,
1999,
31,
277,
27245,
288,
5411,
670,
1260,
42,
1999,
366,
1049,
74,
1999,
273,
6202,
18,
588,
44,
1049,
74,
8229,
7675,
588,
1999,
12,
77,
1769,
5411,
309,
12,
366,
1049,
74,
1999,
5,
33,
2011,
262,
95,
7734,
3438,
15292,
1207,
1253,
273,
1207,
1999,
12,
334,
71,
16,
6202,
2
] |
public static RubyClass createRegexpClass(Ruby runtime) { RubyClass regexpClass = new RegexpDefinition(runtime).getType();
|
public static RubyClass createRegexpClass(Ruby ruby) { RubyClass regexpClass = ruby.defineClass("Regexp", ruby.getClasses().getObjectClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); regexpClass.defineConstant("IGNORECASE", RubyFixnum.newFixnum(ruby, RE_OPTION_IGNORECASE)); regexpClass.defineConstant("EXTENDED", RubyFixnum.newFixnum(ruby, RE_OPTION_EXTENDED)); regexpClass.defineConstant("MULTILINE", RubyFixnum.newFixnum(ruby, RE_OPTION_MULTILINE));
|
public static RubyClass createRegexpClass(Ruby runtime) { RubyClass regexpClass = new RegexpDefinition(runtime).getType(); regexpClass.defineConstant("IGNORECASE", RubyFixnum.newFixnum(runtime, RE_OPTION_IGNORECASE)); regexpClass.defineConstant("EXTENDED", RubyFixnum.newFixnum(runtime, RE_OPTION_EXTENDED)); regexpClass.defineConstant("MULTILINE", RubyFixnum.newFixnum(runtime, RE_OPTION_MULTILINE)); return regexpClass; }
|
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
14621,
797,
12,
54,
10340,
3099,
13,
288,
3639,
19817,
797,
7195,
797,
273,
394,
17011,
1852,
12,
9448,
2934,
588,
559,
5621,
3639,
7195,
797,
18,
11255,
6902,
2932,
20118,
13415,
3113,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
2438,
67,
7425,
67,
20118,
13415,
10019,
3639,
7195,
797,
18,
11255,
6902,
2932,
4142,
22088,
3113,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
2438,
67,
7425,
67,
4142,
22088,
10019,
3639,
7195,
797,
18,
11255,
6902,
2932,
12845,
30690,
3113,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
2438,
67,
7425,
67,
12845,
30690,
10019,
3639,
327,
7195,
797,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
14621,
797,
12,
54,
10340,
3099,
13,
288,
3639,
19817,
797,
7195,
797,
273,
394,
17011,
1852,
12,
9448,
2934,
588,
559,
5621,
3639,
7195,
797,
18,
11255,
6902,
2932,
20118,
13415,
3113,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
2438,
67,
7425,
67,
20118,
13415,
10019,
3639,
7195,
797,
18,
11255,
6902,
2932,
4142,
22088,
3113,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
2438,
67,
7425,
67,
4142,
22088,
10019,
3639,
7195,
797,
18,
11255,
6902,
2932,
12845,
30690,
3113,
19817,
8585,
2107,
18,
2704,
8585,
2107,
12,
9448,
16,
2438,
67,
7425,
67,
12845,
30690,
10019,
3639,
327,
7195,
797,
31,
565,
289,
2,
-100,
-100
] |
assertEquals(null, project.getProperty("test"));
|
assertNull(project.getProperty("test"));
|
public void test11() { executeTarget("test11"); assertEquals(null, project.getProperty("test")); }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/e412f315261101643c905aefaf70b6987297b979/AvailableTest.java/clean/src/testcases/org/apache/tools/ant/taskdefs/AvailableTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2499,
1435,
288,
540,
1836,
2326,
2932,
3813,
2499,
8863,
3639,
1815,
2041,
12,
4406,
18,
588,
1396,
2932,
3813,
7923,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2499,
1435,
288,
540,
1836,
2326,
2932,
3813,
2499,
8863,
3639,
1815,
2041,
12,
4406,
18,
588,
1396,
2932,
3813,
7923,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final Axis axis = test.executeAxis2("Union({[Gender].[M]}, {})"); String expected = "[Gender].[All Gender].[M]"; test.assertEquals(expected, test.toString(axis.positions));
|
test.assertAxisReturns("Union({[Gender].[M]}, {})", "[Gender].[All Gender].[M]");
|
protected void defineFunctions() { // first char: p=Property, m=Method, i=Infix, P=Prefix // 2nd: // ARRAY FUNCTIONS if (false) define(new FunDefBase("SetToArray", "SetToArray(<Set>[, <Set>]...[, <Numeric Expression>])", "Converts one or more sets to an array for use in a user-if (false) defined function.", "fa*")); // // DIMENSION FUNCTIONS define(new FunDefBase("Dimension", "<Hierarchy>.Dimension", "Returns the dimension that contains a specified hierarchy.", "pdh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getDimension(); } }); //??Had to add this to get <Hierarchy>.Dimension to work? define(new FunDefBase("Dimension", "<Dimension>.Dimension", "Returns the dimension that contains a specified hierarchy.", "pdd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension; } public void testDimensionHierarchy(FoodMartTestCase test) { String s = test.executeExpr("[Time].Dimension.Name"); test.assertEquals("Time", s); } }); define(new FunDefBase("Dimension", "<Level>.Dimension", "Returns the dimension that contains a specified level.", "pdl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getDimension(); } public void testLevelDimension(FoodMartTestCase test) { String s = test.executeExpr("[Time].[Year].Dimension"); test.assertEquals("[Time]", s); } }); define(new FunDefBase("Dimension", "<Member>.Dimension", "Returns the dimension that contains a specified member.", "pdm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getDimension(); } public void testMemberDimension(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].[Q2].Dimension"); test.assertEquals("[Time]", s); } }); define(new FunDefBase("Dimensions", "Dimensions(<Numeric Expression>)", "Returns the dimension whose zero-based position within the cube is specified by a numeric expression.", "fdn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension[] dimensions = cube.getDimensions(); int n = getIntArg(evaluator, args, 0); if ((n > dimensions.length) || (n < 1)) { throw newEvalException( this, "Index '" + n + "' out of bounds"); } return dimensions[n - 1]; } public void testDimensionsNumeric(FoodMartTestCase test) { String s = test.executeExpr("Dimensions(2).Name"); test.assertEquals("Store", s); } }); define(new FunDefBase("Dimensions", "Dimensions(<String Expression>)", "Returns the dimension whose name is specified by a string.", "fdS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String defValue = "Default Value"; String s = getStringArg(evaluator, args, 0, defValue); if (s.indexOf("[") == -1) { s = Util.quoteMdxIdentifier(s); } Cube cube = evaluator.getCube(); boolean fail = false; OlapElement o = Util.lookupCompound(cube, s, cube, fail); if (o == null) { throw newEvalException( this, "Dimensions '" + s + "' not found"); } else if (o instanceof Dimension) { return (Dimension) o; } else { throw newEvalException( this, "Dimensions(" + s + ") found " + o); } } public void testDimensionsString(FoodMartTestCase test) { String s = test.executeExpr( "Dimensions(\"Store\").UniqueName"); test.assertEquals("[Store]", s); } }); // // HIERARCHY FUNCTIONS define(new FunDefBase("Hierarchy", "<Level>.Hierarchy", "Returns a level's hierarchy.", "phl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getHierarchy(); } }); define(new FunDefBase("Hierarchy", "<Member>.Hierarchy", "Returns a member's hierarchy.", "phm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getHierarchy(); } public void testTime(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].[Q1].[1].Hierarchy"); test.assertEquals("[Time]", s); } public void testBasic9(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].[All Gender].[F].Hierarchy"); test.assertEquals("[Gender]", s); } public void testFirstInLevel9(FoodMartTestCase test) { String s = test.executeExpr( "[Education Level].[All Education Levels].[Bachelors Degree].Hierarchy"); test.assertEquals("[Education Level]", s); } public void testHierarchyAll(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].[All Gender].Hierarchy"); test.assertEquals("[Gender]", s); } public void testHierarchyNull(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].[All Gender].Parent.Hierarchy"); test.assertEquals("[Gender]", s); // MSOLAP gives "#ERR" } }); // // LEVEL FUNCTIONS define(new FunDefBase("Level", "<Member>.Level", "Returns a member's level.", "plm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLevel(); } public void testMemberLevel(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].[Q1].[1].Level.UniqueName"); test.assertEquals("[Time].[Month]", s); } }); define(new FunDefBase("Levels", "<Hierarchy>.Levels(<Numeric Expression>)", "Returns the level whose position in a hierarchy is specified by a numeric expression.", "mlhn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); Level[] levels = hierarchy.getLevels(); int n = getIntArg(evaluator, args, 1); if ((n > levels.length) || (n < 1)) { throw newEvalException( this, "Index '" + n + "' out of bounds"); } return levels[n - 1]; } public void testLevelsNumeric(FoodMartTestCase test) { String s = test.executeExpr("[Time].Levels(2).Name"); test.assertEquals("Quarter", s); } public void testLevelsTooSmall(FoodMartTestCase test) { test.assertExprThrows( "[Time].Levels(0).Name", "Index '0' out of bounds"); } public void testLevelsTooLarge(FoodMartTestCase test) { test.assertExprThrows( "[Time].Levels(8).Name", "Index '8' out of bounds"); } }); define(new FunDefBase("Levels", "Levels(<String Expression>)", "Returns the level whose name is specified by a string expression.", "flS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String s = getStringArg(evaluator, args, 0, null); Cube cube = evaluator.getCube(); boolean fail = false; OlapElement o = null; if (s.startsWith("[")) { o = Util.lookupCompound(cube, s, cube, fail); } else { // lookupCompound barfs if "s" doesn't have matching // brackets, so don't even try o = null; } if (o == null) { throw newEvalException( this, "could not find level '" + s + "'"); } else if (o instanceof Level) { return (Level) o; } else { throw newEvalException( this, "found '" + o.getDescription() + "', not a level"); } } public void testLevelsString(FoodMartTestCase test) { String s = test.executeExpr( "Levels(\"[Time].[Year]\").UniqueName"); test.assertEquals("[Time].[Year]", s); } public void testLevelsStringFail(FoodMartTestCase test) { test.assertExprThrows( "Levels(\"nonexistent\").UniqueName", "could not find level 'nonexistent'"); } }); // // LOGICAL FUNCTIONS define(new FunDefBase("IsEmpty", "IsEmpty(<Value Expression>)", "Determines if an expression evaluates to the empty cell value.", "fbS")); define(new FunDefBase("IsEmpty", "IsEmpty(<Value Expression>)", "Determines if an expression evaluates to the empty cell value.", "fbn")); // // MEMBER FUNCTIONS // if (false) define(new FunDefBase("Ancestor", "Ancestor(<Member>, <Level>)", "Returns the ancestor of a member at a specified level.", "fm*"); define(new FunDefBase("Ancestor", "Ancestor(<Member>, <Level>)", "Returns the ancestor of a member at a specified level.", "fmml") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, false); Level level = getLevelArg(evaluator, args, 1, false); if (member.getHierarchy() != level.getHierarchy()) { throw newEvalException( this, "member '" + member + "' is not in the same hierarchy as level '" + level + "'"); } if (member.getLevel().equals(level)) { return member; } Member[] members = member.getAncestorMembers(); for (int i = 0; i < members.length; i++) { if (members[i].getLevel().equals(level)) return members[i]; } return member.getHierarchy().getNullMember(); // not found } public void testAncestor(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[USA].[CA].[Los Angeles],[Store Country])"); test.assertEquals("USA", member.getName()); } public void testAncestorHigher(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[USA],[Store].[Store City])"); test.assertNull(member); // MSOLAP returns null } public void testAncestorSameLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[Canada],[Store].[Store Country])"); test.assertEquals("Canada", member.getName()); } public void testAncestorWrongHierarchy(FoodMartTestCase test) { // MSOLAP gives error "Formula error - dimensions are not // valid (they do not match) - in the Ancestor function" test.assertAxisThrows( "Ancestor([Gender].[M],[Store].[Store Country])", "member '[Gender].[All Gender].[M]' is not in the same hierarchy as level '[Store].[Store Country]'"); } public void testAncestorAllLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[USA].[CA],[Store].Levels(1))"); test.assertTrue(member.isAll()); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension timeDimension = cube.getYearLevel().getDimension(); Member member = evaluator.getContext(timeDimension); Level level = member.getLevel().getChildLevel(); return openClosingPeriod(this, member, level); } public void testClosingPeriodNoArgs(FoodMartTestCase test) { // MSOLAP returns [1997].[Q4], because [Time].CurrentMember = // [1997]. Member member = test.executeAxis("ClosingPeriod()"); test.assertEquals("[Time].[1997].[Q4]", member.getUniqueName()); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fml") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension timeDimension = cube.getYearLevel().getDimension(); Member member = evaluator.getContext(timeDimension); Level level = getLevelArg(evaluator, args, 0, true); return openClosingPeriod(this, member, level); } public void testClosingPeriodLevel(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([Month])"); test.assertEquals("[Time].[1997].[Q4].[12]", member.getUniqueName()); } public void testClosingPeriodLevelNotInTimeFails(FoodMartTestCase test) { test.assertAxisThrows( "ClosingPeriod([Store].[Store City])", "member '[Time].[1997]' must be in same hierarchy as level '[Store].[Store City]'"); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Level level = member.getLevel().getChildLevel(); return openClosingPeriod(this, member, level); } public void testClosingPeriodMember(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([USA])"); test.assertEquals("WA", member.getName()); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fmlm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); Member member = getMemberArg(evaluator, args, 1, true); return openClosingPeriod(this, member, level); } public void testClosingPeriod(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([Month],[1997])"); test.assertEquals("[Time].[1997].[Q4].[12]", member.getUniqueName()); } public void testClosingPeriodBelow(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([Quarter],[1997].[Q3].[8])"); test.assertNull(member); } }); define(new FunDefBase("Cousin", "Cousin(<Member1>, <Member2>)", "Returns the member with the same relative position under a member as the member specified.", "fmmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member1 = getMemberArg(evaluator, args, 0, true); Member member2 = getMemberArg(evaluator, args, 1, true); Member cousin = cousin(member1, member2); if (cousin == null) { cousin = member1.getHierarchy().getNullMember(); } return cousin; } private Member cousin(Member member1, Member member2) { if (member1.getHierarchy() != member2.getHierarchy()) { throw newEvalException( this, "Members '" + member1 + "' and '" + member2 + "' are not compatible as cousins"); } if (member1.getLevel().getDepth() < member2.getLevel().getDepth()) { return null; } return cousin2(member1, member2); } private Member cousin2(Member member1, Member member2) { if (member1.getLevel() == member2.getLevel()) { return member2; } Member uncle = cousin2(member1.getParentMember(), member2); if (uncle == null) { return null; } int ordinal = getOrdinalInParent(member1); Member[] cousins = uncle.getMemberChildren(); if (cousins.length < ordinal) { return null; } return cousins[ordinal]; } private int getOrdinalInParent(Member member) { Member parent = member.getParentMember(); Member[] siblings; if (parent == null) { siblings = member.getHierarchy().getRootMembers(); } else { siblings = parent.getMemberChildren(); } for (int i = 0; i < siblings.length; i++) { if (siblings[i] == member) { return i; } } throw Util.newInternal( "could not find member " + member + " amongst its siblings"); } public void testCousin1(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([1997].[Q4],[1998])"); test.assertEquals("[Time].[1998].[Q4]", member.getUniqueName()); } public void testCousin2(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([1997].[Q4].[12],[1998].[Q1])"); test.assertEquals("[Time].[1998].[Q1].[3]", member.getUniqueName()); } public void testCousinOverrun(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Customers].[USA].[CA].[San Jose], [Customers].[USA].[OR])"); // CA has more cities than OR test.assertNull(member); } public void testCousinThreeDown(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Customers].[USA].[CA].[Berkeley].[Alma Shelton], [Customers].[Mexico])"); // Alma Shelton is the 3rd child // of the 4th child (Berkeley) // of the 1st child (CA) // of USA test.assertEquals("[Customers].[All Customers].[Mexico].[DF].[Tixapan].[Albert Clouse]", member.getUniqueName()); } public void testCousinSameLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Gender].[M], [Gender].[F])"); test.assertEquals("F", member.getName()); } public void testCousinHigherLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Time].[1997], [Time].[1998].[Q1])"); test.assertNull(member); } public void testCousinWrongHierarchy(FoodMartTestCase test) { test.assertAxisThrows( "Cousin([Time].[1997], [Gender].[M])", "Members '[Time].[1997]' and '[Gender].[All Gender].[M]' are not compatible as cousins"); } }); define(new FunDefBase("CurrentMember", "<Dimension>.CurrentMember", "Returns the current member along a dimension during an iteration.", "pmd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return evaluator.getContext(dimension); } public void testCurrentMemberFromSlicer(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Gender].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales where ([Gender].[F])"); test.assertEquals("F", result.getCell(new int[] {0}).getValue()); } public void testCurrentMemberFromDefaultMember(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Time].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales"); test.assertEquals("1997", result.getCell(new int[] {0}).getValue()); } public void testCurrentMemberFromAxis(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Gender].CurrentMember.Name || [Marital Status].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns," + nl + " CrossJoin({[Gender].children}, {[Marital Status].children}) on rows" + nl + "from Sales"); test.assertEquals("FM", result.getCell(new int[] {0,0}).getValue()); } /** * When evaluating a calculated member, MSOLAP regards that * calculated member as the current member of that dimension, so it * cycles in this case. But I disagree; it is the previous current * member, before the calculated member was expanded. */ public void testCurrentMemberInCalcMember(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Measures].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales"); test.assertEquals("Unit Sales", result.getCell(new int[] {0}).getValue()); } }); define(new FunDefBase("DefaultMember", "<Dimension>.DefaultMember", "Returns the default member of a dimension.", "pmd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getHierarchy().getDefaultMember(); } public void testDimensionDefaultMember(FoodMartTestCase test) { Member member = test.executeAxis( "[Measures].DefaultMember"); test.assertEquals("Unit Sales", member.getName()); } }); define(new FunDefBase("FirstChild", "<Member>.FirstChild", "Returns the first child of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = member.getMemberChildren(); if (children.length == 0) { return member.getHierarchy().getNullMember(); } else { return children[0]; } } public void testFirstChildFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].FirstChild"); test.assertEquals("10", member.getName()); } public void testFirstChildAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Gender].FirstChild"); test.assertEquals("F", member.getName()); } public void testFirstChildOfChildless(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Gender].[F].FirstChild"); test.assertNull(member); } }); define(new FunDefBase("FirstSibling", "<Member>.FirstSibling", "Returns the first child of the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); Member[] children; if (parent == null) { if (member.isNull()) { return member; } children = member.getHierarchy().getRootMembers(); } else { children = parent.getMemberChildren(); } return children[0]; } public void testFirstSiblingFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].FirstSibling"); test.assertEquals("F", member.getName()); } public void testFirstSiblingLastInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].FirstSibling"); test.assertEquals("Q1", member.getName()); } public void testFirstSiblingAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Gender].FirstSibling"); test.assertTrue(member.isAll()); } public void testFirstSiblingRoot(FoodMartTestCase test) { // The [Measures] hierarchy does not have an 'all' member, so // [Unit Sales] does not have a parent. Member member = test.executeAxis( "[Measures].[Store Sales].FirstSibling"); test.assertEquals("Unit Sales", member.getName()); } public void testFirstSiblingNull(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].FirstChild.FirstSibling"); test.assertNull(member); } }); if (false) define(new FunDefBase("Item", "<Tuple>.Item(<Numeric Expression>)", "Returns a member from a tuple.", "mm*")); define(new FunkResolver( "Lag", "<Member>.Lag(<Numeric Expression>)", "Returns a member further along the specified member's dimension.", new String[]{"mmmn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); int n = getIntArg(evaluator, args, 1); return member.getLeadMember(-n); } public void testLag(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].[12].Lag(4)"); test.assertEquals("8", member.getName()); } public void testLagFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].Lag(1)"); test.assertNull(member); } public void testLagAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].DefaultMember.Lag(2)"); test.assertNull(member); } public void testLagRoot(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1998].Lag(1)"); test.assertEquals("1997", member.getName()); } public void testLagRootTooFar(FoodMartTestCase test) { Member member = test.executeAxis("[Time].[1998].Lag(2)"); test.assertNull(member); } })); define(new FunDefBase("LastChild", "<Member>.LastChild", "Returns the last child of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = member.getMemberChildren(); if (children.length == 0) { return member.getHierarchy().getNullMember(); } else { return children[children.length - 1]; } } public void testLastChild(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].LastChild"); test.assertEquals("M", member.getName()); } public void testLastChildLastInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].LastChild"); test.assertEquals("12", member.getName()); } public void testLastChildAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Gender].LastChild"); test.assertEquals("M", member.getName()); } public void testLastChildOfChildless(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[M].LastChild"); test.assertNull(member); } }); define(new FunDefBase("LastSibling", "<Member>.LastSibling", "Returns the last child of the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); Member[] children; if (parent == null) { if (member.isNull()) { return member; } children = member.getHierarchy().getRootMembers(); } else { children = parent.getMemberChildren(); } return children[children.length - 1]; } public void testLastSibling(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].LastSibling"); test.assertEquals("M", member.getName()); } public void testLastSiblingFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q1].LastSibling"); test.assertEquals("Q4", member.getName()); } public void testLastSiblingAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Gender].LastSibling"); test.assertTrue(member.isAll()); } public void testLastSiblingRoot(FoodMartTestCase test) { // The [Time] hierarchy does not have an 'all' member, so // [1997], [1998] do not have parents. Member member = test.executeAxis( "[Time].[1998].LastSibling"); test.assertEquals("1998", member.getName()); } public void testLastSiblingNull(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].FirstChild.LastSibling"); test.assertNull(member); } }); define(new FunkResolver( "Lead", "<Member>.Lead(<Numeric Expression>)", "Returns a member further along the specified member's dimension.", new String[]{"mmmn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); int n = getIntArg(evaluator, args, 1); return member.getLeadMember(n); } public void testLead(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q2].[4].Lead(4)"); test.assertEquals("8", member.getName()); } public void testLeadNegative(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[M].Lead(-1)"); test.assertEquals("F", member.getName()); } public void testLeadLastInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[M].Lead(3)"); test.assertNull(member); } })); define(new FunDefBase("Members", "Members(<String Expression>)", "Returns the member whose name is specified by a string expression.", "fmS")); define(new FunDefBase( "NextMember", "<Member>.NextMember", "Returns the next member in the level that contains a specified member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLeadMember(+1); } public void testBasic2(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[F].NextMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("M")); } public void testFirstInLevel2(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[M].NextMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions.length == 0); } public void testAll2(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].PrevMember} ON COLUMNS from Sales"); // previous to [Gender].[All] is null, so no members are returned test.assertTrue(result.getAxes()[0].positions.length == 0); } }); if (false) define(new FunDefBase("OpeningPeriod", "OpeningPeriod([<Level>[, <Member>]])", "Returns the first sibling among the descendants of a member at a level.", "fm*")); if (false) define(new FunDefBase("ParallelPeriod", "ParallelPeriod([<Level>[, <Numeric Expression>[, <Member>]]])", "Returns a member from a prior period in the same relative position as a specified member.", "fm*")); define(new FunDefBase("Parent", "<Member>.Parent", "Returns the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); if (parent == null) { parent = member.getHierarchy().getNullMember(); } return parent; } public void testBasic5(FoodMartTestCase test) { Result result = test.runQuery( "select{ [Product].[All Products].[Drink].Parent} on columns from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("All Products")); } public void testFirstInLevel5(FoodMartTestCase test) { Result result = test.runQuery( "select {[Time].[1997].[Q2].[4].Parent} on columns,{[Gender].[M]} on rows from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("Q2")); } public void testAll5(FoodMartTestCase test) { Result result = test.runQuery( "select {[Time].[1997].[Q2].Parent} on columns,{[Gender].[M]} on rows from Sales"); // previous to [Gender].[All] is null, so no members are returned test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("1997")); } }); define(new FunDefBase("PrevMember", "<Member>.PrevMember", "Returns the previous member in the level that contains a specified member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLeadMember(-1); } public void testBasic(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[M].PrevMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("F")); } public void testFirstInLevel(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[F].PrevMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions.length == 0); } public void testAll(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].PrevMember} ON COLUMNS from Sales"); // previous to [Gender].[All] is null, so no members are returned test.assertTrue(result.getAxes()[0].positions.length == 0); } }); if (false) define(new FunDefBase("ValidMeasure", "ValidMeasure(<Tuple>)", "Returns a valid measure in a virtual cube by forcing inapplicable dimensions to their top level.", "fm*")); // // NUMERIC FUNCTIONS if (false) define(new FunDefBase("Aggregate", "Aggregate(<Set>[, <Numeric Expression>])", "Returns a calculated value using the appropriate aggregate function, based on the context of the query.", "fn*")); define(new FunkResolver( "Avg", "Avg(<Set>[, <Numeric Expression>])", "Returns the average value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return avg(evaluator.push(), members, exp); } public void testAvg(FoodMartTestCase test) { String result = test.executeExpr( "AVG({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("188412.71", result); } //todo: testAvgWithNulls })); define(new FunkResolver( "Correlation", "Correlation(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the correlation of two series evaluated over a set.", new String[]{"fnxn","fnxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp1 = (ExpBase) getArg(evaluator, args, 1); ExpBase exp2 = (ExpBase) getArg(evaluator, args, 2); return correlation(evaluator.push(), members, exp1, exp2); } public void testCorrelation(FoodMartTestCase test) { String result = test.executeExpr("Correlation({[Store].[All Stores].[USA].children}, [Measures].[Unit Sales], [Measures].[Store Sales])"); test.assertEquals("0.9999063938016924", result); } })); define(new FunkResolver( "Count", "Count(<Set>[, EXCLUDEEMPTY | INCLUDEEMPTY])", "Returns the number of tuples in a set, empty cells included unless the optional EXCLUDEEMPTY flag is used.", new String[]{"fnx", "fnxy"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); String empties = (String) getArg(evaluator, args, 1, "INCLUDEEMPTY"); if (empties.equals("INCLUDEEMPTY")) { return new Double(members.size()); } else { int retval = 0; for (int i = 0; i < members.size(); i++) { if ((members.elementAt(i) != Util.nullValue) && (members.elementAt(i) != null)) { retval++; } } return new Double(retval); } } public void testCount(FoodMartTestCase test) { String result = test.executeExpr( "count({[Promotion Media].[Media Type].members})"); test.assertEquals("14.0", result); } //todo: testCountNull, testCountNoExp })); define(new FunkResolver( "Covariance", "Covariance(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the covariance of two series evaluated over a set (biased).", new String[]{"fnxn","fnxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp1 = (ExpBase) getArg(evaluator, args, 1); ExpBase exp2 = (ExpBase) getArg(evaluator, args, 2); return covariance(evaluator.push(), members, exp1, exp2, true); } public void testCovariance(FoodMartTestCase test) { String result = test.executeExpr("Covariance({[Store].[All Stores].[USA].children}, [Measures].[Unit Sales], [Measures].[Store Sales])"); test.assertEquals("1.3557618990466664E9", result); } })); define(new FunkResolver( "CovarianceN", "CovarianceN(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the covariance of two series evaluated over a set (unbiased).", new String[]{"fnxn","fnxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp1 = (ExpBase) getArg(evaluator, args, 1); ExpBase exp2 = (ExpBase) getArg(evaluator, args, 2); return covariance(evaluator.push(), members, exp1, exp2, false); } public void testCovarianceN(FoodMartTestCase test) { String result = test.executeExpr("CovarianceN({[Store].[All Stores].[USA].children}, [Measures].[Unit Sales], [Measures].[Store Sales])"); test.assertEquals("2.0336428485699995E9", result); } })); define(new FunDefBase("IIf", "IIf(<Logical Expression>, <Numeric Expression1>, <Numeric Expression2>)", "Returns one of two numeric values determined by a logical test.", "fnbnn")); if (false) define(new FunDefBase("LinRegIntercept", "LinRegIntercept(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of b in the regression line y = ax + b.", "fn*")); if (false) define(new FunDefBase("LinRegPoint", "LinRegPoint(<Numeric Expression>, <Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of y in the regression line y = ax + b.", "fn*")); if (false) define(new FunDefBase("LinRegR2", "LinRegR2(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns R2 (the coefficient of determination).", "fn*")); if (false) define(new FunDefBase("LinRegSlope", "LinRegSlope(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of a in the regression line y = ax + b.", "fn*")); if (false) define(new FunDefBase("LinRegVariance", "LinRegVariance(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the variance associated with the regression line y = ax + b.", "fn*")); define(new FunkResolver( "Max", "Max(<Set>[, <Numeric Expression>])", "Returns the maximum value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return max(evaluator.push(), members, exp); } public void testMax(FoodMartTestCase test) { String result = test.executeExpr( "MAX({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("263793.22", result); } })); define(new FunkResolver( "Median", "Median(<Set>[, <Numeric Expression>])", "Returns the median value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); //todo: ignore nulls, do we need to ignore the vector? return median(evaluator.push(), members, exp); } public void testMedian(FoodMartTestCase test) { String result = test.executeExpr( "MEDIAN({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("159167.84", result); } })); define(new FunkResolver( "Min", "Min(<Set>[, <Numeric Expression>])", "Returns the minimum value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return min(evaluator.push(), members, exp); } public void testMin(FoodMartTestCase test) { String result = test.executeExpr( "MIN({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("142277.07", result); } })); define(new FunDefBase("Ordinal", "<Level>.Ordinal", "Returns the zero-based ordinal value associated with a level.", "pnl")); if (false) define(new FunDefBase("Rank", "Rank(<Tuple>, <Set>)", "Returns the one-based rank of a tuple in a set.", "fn*")); define(new FunkResolver( "Stddev", "Stddev(<Set>[, <Numeric Expression>])", "Alias for Stdev.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return stdev(evaluator.push(), members, exp, false); } })); define(new FunkResolver( "Stdev", "Stdev(<Set>[, <Numeric Expression>])", "Returns the standard deviation of a numeric expression evaluated over a set (unbiased).", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return stdev(evaluator.push(), members, exp, false); } public void testStdev(FoodMartTestCase test) { String result = test.executeExpr( "STDEV({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("65825.4547549297", result); } })); define(new FunkResolver( "StddevP", "StddevP(<Set>[, <Numeric Expression>])", "Alias for StdevP.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return stdev(evaluator.push(), members, exp, true); } })); define(new FunkResolver( "StdevP", "StdevP(<Set>[, <Numeric Expression>])", "Returns the standard deviation of a numeric expression evaluated over a set (biased).", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return stdev(evaluator.push(), members, exp, true); } public void testStdevP(FoodMartTestCase test) { String result = test.executeExpr( "STDEVP({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("53746.25874541283", result); } })); define(new FunkResolver( "Sum", "Sum(<Set>[, <Numeric Expression>])", "Returns the sum of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return sum(evaluator.push(), members, exp); } public void testSumNoExp(FoodMartTestCase test) { String result = test.executeExpr( "SUM({[Promotion Media].[Media Type].members})"); test.assertEquals("266773.0", result); } })); define(new FunDefBase("Value", "<Measure>.Value", "Returns the value of a measure.", "pnm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.evaluateScalar(evaluator); } }); define(new FunDefBase("_Value", "_Value(<Tuple>)", "Returns the value of the current measure within the context of a tuple.", "fvt") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member[] members = getTupleArg(evaluator, args, 0); Evaluator evaluator2 = evaluator.push(members); return evaluator2.evaluateCurrent(); } }); // _Value is a pseudo-function which evaluates a tuple to a number. // It needs a custom resolver. if (false) define(new ResolverBase("_Value", null, null, FunDef.TypeParentheses) { public FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length == 1 && args[0].getType() == FunCall.CatTuple) { return new ValueFunDef(new int[] {FunCall.CatTuple}); } for (int i = 0; i < args.length; i++) { Exp arg = args[i]; if (!canConvert(arg, FunCall.CatMember, conversionCount)) { return null; } } int[] argTypes = new int[args.length]; for (int i = 0; i < argTypes.length; i++) { argTypes[i] = FunCall.CatMember; } return new ValueFunDef(argTypes); } }); define(new FunkResolver( "Var", "Var(<Set>[, <Numeric Expression>])", "Returns the variance of a numeric expression evaluated over a set (unbiased).", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return var(evaluator.push(), members, exp, false); } public void testVar(FoodMartTestCase test) { String result = test.executeExpr( "VAR({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("4.332990493693297E9", result); } })); define(new FunkResolver( "Variance", "Variance(<Set>[, <Numeric Expression>])", "Alias for Var.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return var(evaluator.push(), members, exp, false); } })); define(new FunkResolver( "VarianceP", "VarianceP(<Set>[, <Numeric Expression>])", "Alias for VarP.", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return var(evaluator.push(), members, exp, true); } })); define(new FunkResolver( "VarP", "VarP(<Set>[, <Numeric Expression>])", "Returns the variance of a numeric expression evaluated over a set (biased).", new String[]{"fnx", "fnxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return var(evaluator.push(), members, exp, true); } public void testVarP(FoodMartTestCase test) { String result = test.executeExpr( "VARP({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("2.888660329128865E9", result); } })); // // SET FUNCTIONS if (false) define(new FunDefBase("AddCalculatedMembers", "AddCalculatedMembers(<Set>)", "Adds calculated members to a set.", "fx*")); define(new FunkResolver( "BottomCount", "BottomCount(<Set>, <Count>[, <Numeric Expression>])", "Returns a specified number of items from the bottom of a set, optionally ordering the set first.", new String[]{"fxxnn", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set = (Vector) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArg(evaluator, args, 2, null); if (exp != null) { boolean desc = false, brk = true; sort(evaluator, set, exp, desc, brk); } if (n < set.size()) { set.setSize(n); } return set; } public void testBottomCount(FoodMartTestCase test) { Axis axis = test.executeAxis2( "BottomCount({[Promotion Media].[Media Type].members}, 2, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Media].[Radio]" + nl + "[Promotion Media].[All Media].[Sunday Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } //todo: test unordered })); define(new FunkResolver( "BottomPercent", "BottomPercent(<Set>, <Percentage>, <Numeric Expression>)", "Sorts a set and returns the bottom N elements whose cumulative total is at least a specified percentage.", new String[]{"fxxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, true, n.doubleValue()); } public void testBottomPercent(FoodMartTestCase test) { Axis axis = test.executeAxis2( "BottomPercent({[Promotion Media].[Media Type].members}, 1, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Media].[Radio]" + nl + "[Promotion Media].[All Media].[Sunday Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } //todo: test precision })); define(new FunkResolver( "BottomSum", "BottomSum(<Set>, <Value>, <Numeric Expression>)", "Sorts a set and returns the bottom N elements whose cumulative total is at least a specified value.", new String[]{"fxxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, false, n.doubleValue()); } public void testBottomSum(FoodMartTestCase test) { Axis axis = test.executeAxis2( "BottomSum({[Promotion Media].[Media Type].members}, 5000, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Media].[Radio]" + nl + "[Promotion Media].[All Media].[Sunday Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new FunDefBase("Children", "<Member>.Children", "Returns the children of a member.", "pxm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = member.getMemberChildren(); return toVector(children); } }); define(new FunDefBase("Crossjoin", "Crossjoin(<Set1>, <Set2>)", "Returns the cross product of two sets.", "fxxx") { public Hierarchy getHierarchy(Exp[] args) { // CROSSJOIN(<Set1>,<Set2>) has Hierarchy [Hie1] x [Hie2], which we // can't represent, so we return null. return null; } public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set0 = (Vector) getArg(evaluator, args, 0), set1 = (Vector) getArg(evaluator, args, 1); if (set0.isEmpty() || set1.isEmpty()) { return emptyVector; } int arity0 = 1, arity1 = 1; if (set0.elementAt(0) instanceof Member[]) { arity0 = ((Member[]) set0.elementAt(0)).length; } if (set1.elementAt(0) instanceof Member[]) { arity1 = ((Member[]) set1.elementAt(0)).length; } Vector result = new Vector(); if (arity0 == 1 && arity1 == 1) { // Simpler routine if we know neither side is an array. for (int i = 0, m = set0.size(); i < m; i++) { Member o0 = (Member) set0.elementAt(i); for (int j = 0, n = set1.size(); j < n; j++) { Member o1 = (Member) set1.elementAt(j); result.addElement(new Member[]{o0, o1}); } } } else { // More complex routine if one or both sides are arrays // (probably the product of nested CrossJoins). Member[] row = new Member[arity0 + arity1]; for (int i = 0, m = set0.size(); i < m; i++) { int x = 0; Object o0 = set0.elementAt(i); if (o0 instanceof Member) { row[x++] = (Member) o0; } else { assertTrue(o0 instanceof Member[]); final Member[] members = (Member[]) o0; for (int k = 0; k < members.length; k++) { row[x++] = members[k]; } } for (int j = 0, n = set1.size(); j < n; j++) { Object o1 = set1.elementAt(j); if (o1 instanceof Member) { row[x++] = (Member) o1; } else { assertTrue(o1 instanceof Member[]); final Member[] members = (Member[]) o1; for (int k = 0; k < members.length; k++) { row[x++] = members[k]; } } result.addElement(row.clone()); x = arity0; } } } return result; } public void testCrossjoinNested(FoodMartTestCase test) { final Axis axis = test.executeAxis2( " CrossJoin(" + nl + " CrossJoin(" + nl + " [Gender].members," + nl + " [Marital Status].members)," + nl + " {[Store], [Store].children})"); test.assertEquals( "{[Gender].[All Gender], [Marital Status].[All Marital Status], [Store].[All Stores]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status], [Store].[All Stores].[Canada]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status], [Store].[All Stores].[Mexico]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status], [Store].[All Stores].[USA]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status].[M], [Store].[All Stores]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status].[M], [Store].[All Stores].[Canada]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status].[M], [Store].[All Stores].[Mexico]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status].[M], [Store].[All Stores].[USA]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status].[S], [Store].[All Stores]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status].[S], [Store].[All Stores].[Canada]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status].[S], [Store].[All Stores].[Mexico]}" + nl + "{[Gender].[All Gender], [Marital Status].[All Marital Status].[S], [Store].[All Stores].[USA]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status], [Store].[All Stores]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status], [Store].[All Stores].[Canada]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status], [Store].[All Stores].[Mexico]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status], [Store].[All Stores].[USA]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[M], [Store].[All Stores]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[M], [Store].[All Stores].[Canada]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[M], [Store].[All Stores].[Mexico]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[M], [Store].[All Stores].[USA]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[S], [Store].[All Stores]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[S], [Store].[All Stores].[Canada]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[S], [Store].[All Stores].[Mexico]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[S], [Store].[All Stores].[USA]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status], [Store].[All Stores]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status], [Store].[All Stores].[Canada]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status], [Store].[All Stores].[Mexico]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status], [Store].[All Stores].[USA]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[M], [Store].[All Stores]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[M], [Store].[All Stores].[Canada]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[M], [Store].[All Stores].[Mexico]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[M], [Store].[All Stores].[USA]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[S], [Store].[All Stores]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[S], [Store].[All Stores].[Canada]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[S], [Store].[All Stores].[Mexico]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[S], [Store].[All Stores].[USA]}", test.toString(axis.positions)); } }); define(new MultiResolver( "Descendants", "Descendants(<Member>, <Level>[, <Desc_flag>])", "Returns the set of descendants of a member at a specified level, optionally including or excluding descendants in other levels.", new String[]{"fxml", "fxmls"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String descFlag = getLiteralArg(args, 2, "SELF", new String[] {"SELF","AFTER","BEFORE","BEFORE_AND_AFTER","SELF_AND_AFTER","SELF_AND_BEFORE","SELF_BEFORE_AFTER","LEAVES"}, dummyFunDef); if (!descFlag.equals("SELF")) { throw newEvalException(null, "SELF is the only value of Desc_flag currently supported"); } return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Level level = getLevelArg(evaluator, args, 1, true); if (member.getLevel().getDepth() > level.getDepth()) { return new Member[0]; } // Expand member to its children, until we get to the right // level. We assume that all children are in the same // level. final Hierarchy hierarchy = member.getHierarchy(); Member[] children = {member}; while (children.length > 0 && children[0].getLevel().getDepth() < level.getDepth()) { children = hierarchy.getChildMembers(children); } return toVector(children); } }; }}); if (false) define(new FunDefBase("Distinct", "Distinct(<Set>)", "Eliminates duplicate tuples from a set.", "fxx")); define(new FunkResolver("DrilldownLevel", "DrilldownLevel(<Set>[, <Level>]) or DrilldownLevel(<Set>, , <Index>)", "Drills down the members of a set, at a specified level, to one level below. Alternatively, drills down on a specified dimension in the set.", new String[]{"fxx", "fxxl"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { //todo add fssl functionality Vector set0 = (Vector) getArg(evaluator, args, 0); int[] depthArray = new int[set0.size()]; Vector drilledSet = new Vector(); for (int i = 0, m = set0.size(); i < m; i++) { Member member = (Member) set0.elementAt(i); depthArray[i] = member.getDepth(); // Object o0 = set0.elementAt(i); // depthVector.addElement(new Object[] {o0}); } Arrays.sort(depthArray); int maxDepth = depthArray[depthArray.length - 1]; for (int i = 0, m = set0.size(); i < m; i++) { Member member = (Member) set0.elementAt(i); drilledSet.addElement(member); if (member.getDepth() == maxDepth) { Member[] childMembers = member.getMemberChildren(); for (int j = 0; j < childMembers.length; j++) { drilledSet.addElement(childMembers[j]); } } } return drilledSet; } } )); if (false) define(new FunDefBase("DrilldownLevelBottom", "DrilldownLevelBottom(<Set>, <Count>[, [<Level>][, <Numeric Expression>]])", "Drills down the bottom N members of a set, at a specified level, to one level below.", "fx*")); if (false) define(new FunDefBase("DrilldownLevelTop", "DrilldownLevelTop(<Set>, <Count>[, [<Level>][, <Numeric Expression>]])", "Drills down the top N members of a set, at a specified level, to one level below.", "fx*")); if (false) define(new FunDefBase("DrilldownMember", "DrilldownMember(<Set1>, <Set2>[, RECURSIVE])", "Drills down the members in a set that are present in a second specified set.", "fx*")); if (false) define(new FunDefBase("DrilldownMemberBottom", "DrilldownMemberBottom(<Set1>, <Set2>, <Count>[, [<Numeric Expression>][, RECURSIVE]])", "Like DrilldownMember except that it includes only the bottom N children.", "fx*")); if (false) define(new FunDefBase("DrilldownMemberTop", "DrilldownMemberTop(<Set1>, <Set2>, <Count>[, [<Numeric Expression>][, RECURSIVE]])", "Like DrilldownMember except that it includes only the top N children.", "fx*")); if (false) define(new FunDefBase("DrillupLevel", "DrillupLevel(<Set>[, <Level>])", "Drills up the members of a set that are below a specified level.", "fx*")); if (false) define(new FunDefBase("DrillupMember", "DrillupMember(<Set1>, <Set2>)", "Drills up the members in a set that are present in a second specified set.", "fx*")); define(new FunkResolver( "Except", "Except(<Set1>, <Set2>[, ALL])", "Finds the difference between two sets, optionally retaining duplicates.", new String[]{"fxxx", "fxxxs"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { // todo: implement ALL HashSet set2 = toHashSet((Vector) getArg(evaluator, args, 1)); Vector set1 = (Vector) getArg(evaluator, args, 0); Vector result = new Vector(); for (int i = 0, count = set1.size(); i < count; i++) { Object o = set1.elementAt(i); if (!set2.contains(o)) { result.addElement(o); } } return result; } })); if (false) define(new FunDefBase("Extract", "Extract(<Set>, <Dimension>[, <Dimension>...])", "Returns a set of tuples from extracted dimension elements. The opposite of Crossjoin.", "fx*")); define(new FunDefBase("Filter", "Filter(<Set>, <Search Condition>)", "Returns the set resulting from filtering a set based on a search condition.", "fxxb") { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); Exp exp = args[1]; Vector result = new Vector(); Evaluator evaluator2 = evaluator.push(); for (int i = 0, count = members.size(); i < count; i++) { Object o = members.elementAt(i); if (o instanceof Member) { evaluator2.setContext((Member) o); } else if (o instanceof Member[]) { evaluator2.setContext((Member[]) o); } else { throw Util.newInternal( "unexpected type in set: " + o.getClass()); } Boolean b = (Boolean) exp.evaluateScalar(evaluator2); if (b.booleanValue()) { result.add(o); } } return result; } /** * Make sure that slicer is in force when expression is applied * on axis, E.g. select filter([Customers].members, [Unit Sales] > 100) * from sales where ([Time].[1998]) **/ public void testFilterWithSlicer(FoodMartTestCase test) { Result result = test.execute( "select {[Measures].[Unit Sales]} on columns," + nl + " filter([Customers].[USA].children," + nl + " [Measures].[Unit Sales] > 20000) on rows" + nl + "from Sales" + nl + "where ([Time].[1997].[Q1])"); Axis rows = result.getAxes()[1]; // if slicer were ignored, there would be 3 rows test.assertEquals(1, rows.positions.length); Cell cell = result.getCell(new int[] {0,0}); test.assertEquals("30,114", cell.getFormattedValue()); } public void testFilterCompound(FoodMartTestCase test) { Result result = test.execute( "select {[Measures].[Unit Sales]} on columns," + nl + " Filter(" + nl + " CrossJoin(" + nl + " [Gender].Children," + nl + " [Customers].[USA].Children)," + nl + " [Measures].[Unit Sales] > 9500) on rows" + nl + "from Sales" + nl + "where ([Time].[1997].[Q1])"); Position[] rows = result.getAxes()[1].positions; test.assertTrue(rows.length == 3); test.assertEquals("F", rows[0].members[0].getName()); test.assertEquals("WA", rows[0].members[1].getName()); test.assertEquals("M", rows[1].members[0].getName()); test.assertEquals("OR", rows[1].members[1].getName()); test.assertEquals("M", rows[2].members[0].getName()); test.assertEquals("WA", rows[2].members[1].getName()); } }); if (false) define(new FunDefBase("Generate", "Generate(<Set1>, <Set2>[, ALL])", "Applies a set to each member of another set and joins the resulting sets by union.", "fx*")); if (false) define(new FunDefBase("Head", "Head(<Set>[, < Numeric Expression >])", "Returns the first specified number of elements in a set.", "fx*")); define(new MultiResolver( "Hierarchize", "Hierarchize(<Set>[, POST])", "Orders the members of a set in a hierarchy.", new String[] {"fxx", "fxxy"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String order = getLiteralArg(args, 1, "PRE", new String[] {"PRE", "POST"}, dummyFunDef); final boolean post = order.equals("POST"); return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); hierarchize(members, post); return members; } }; } public void testHierarchize(FoodMartTestCase test) { final Axis axis = test.executeAxis2( "Hierarchize(" + nl + " {[Product].[All Products], " + " [Product].[Food]," + nl + " [Product].[Drink]," + nl + " [Product].[Non-Consumable]," + nl + " [Product].[Food].[Eggs]," + nl + " [Product].[Drink].[Dairy]})"); final String expected = "[Product].[All Products]" + nl + "[Product].[All Products].[Drink]" + nl + "[Product].[All Products].[Drink].[Dairy]" + nl + "[Product].[All Products].[Food]" + nl + "[Product].[All Products].[Food].[Eggs]" + nl + "[Product].[All Products].[Non-Consumable]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testHierarchizePost(FoodMartTestCase test) { final Axis axis = test.executeAxis2( "Hierarchize(" + nl + " {[Product].[All Products], " + " [Product].[Food]," + nl + " [Product].[Food].[Eggs]," + nl + " [Product].[Drink].[Dairy]}," + nl + " POST)"); final String expected = "[Product].[All Products].[Drink].[Dairy]" + nl + "[Product].[All Products].[Food].[Eggs]" + nl + "[Product].[All Products].[Food]" + nl + "[Product].[All Products]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testHierarchizeCrossJoinPre(FoodMartTestCase test) { final Axis axis = test.executeAxis2( "Hierarchize(" + nl + " CrossJoin(" + nl + " {[Product].[All Products], " + " [Product].[Food]," + nl + " [Product].[Food].[Eggs]," + nl + " [Product].[Drink].[Dairy]}," + nl + " [Gender].MEMBERS)," + nl + " PRE)"); final String expected = "{[Product].[All Products], [Gender].[All Gender]}" + nl + "{[Product].[All Products], [Gender].[All Gender].[F]}" + nl + "{[Product].[All Products], [Gender].[All Gender].[M]}" + nl + "{[Product].[All Products].[Drink].[Dairy], [Gender].[All Gender]}" + nl + "{[Product].[All Products].[Drink].[Dairy], [Gender].[All Gender].[F]}" + nl + "{[Product].[All Products].[Drink].[Dairy], [Gender].[All Gender].[M]}" + nl + "{[Product].[All Products].[Food], [Gender].[All Gender]}" + nl + "{[Product].[All Products].[Food], [Gender].[All Gender].[F]}" + nl + "{[Product].[All Products].[Food], [Gender].[All Gender].[M]}" + nl + "{[Product].[All Products].[Food].[Eggs], [Gender].[All Gender]}" + nl + "{[Product].[All Products].[Food].[Eggs], [Gender].[All Gender].[F]}" + nl + "{[Product].[All Products].[Food].[Eggs], [Gender].[All Gender].[M]}"; test.assertEquals(expected, test.toString(axis.positions)); } public void testHierarchizeCrossJoinPost(FoodMartTestCase test) { final Axis axis = test.executeAxis2( "Hierarchize(" + nl + " CrossJoin(" + nl + " {[Product].[All Products], " + " [Product].[Food]," + nl + " [Product].[Food].[Eggs]," + nl + " [Product].[Drink].[Dairy]}," + nl + " [Gender].MEMBERS)," + nl + " POST)"); final String expected = "{[Product].[All Products].[Drink].[Dairy], [Gender].[All Gender].[F]}" + nl + "{[Product].[All Products].[Drink].[Dairy], [Gender].[All Gender].[M]}" + nl + "{[Product].[All Products].[Drink].[Dairy], [Gender].[All Gender]}" + nl + "{[Product].[All Products].[Food].[Eggs], [Gender].[All Gender].[F]}" + nl + "{[Product].[All Products].[Food].[Eggs], [Gender].[All Gender].[M]}" + nl + "{[Product].[All Products].[Food].[Eggs], [Gender].[All Gender]}" + nl + "{[Product].[All Products].[Food], [Gender].[All Gender].[F]}" + nl + "{[Product].[All Products].[Food], [Gender].[All Gender].[M]}" + nl + "{[Product].[All Products].[Food], [Gender].[All Gender]}" + nl + "{[Product].[All Products], [Gender].[All Gender].[F]}" + nl + "{[Product].[All Products], [Gender].[All Gender].[M]}" + nl + "{[Product].[All Products], [Gender].[All Gender]}"; test.assertEquals(expected, test.toString(axis.positions)); } }); if (false) define(new FunDefBase("Intersect", "Intersect(<Set1>, <Set2>[, ALL])", "Returns the intersection of two input sets, optionally retaining duplicates.", "fx*")); if (false) define(new FunDefBase("LastPeriods", "LastPeriods(<Index>[, <Member>])", "Returns a set of members prior to and including a specified member.", "fx*")); define(new FunDefBase("Members", "<Dimension>.Members", "Returns the set of all members in a dimension.", "pxd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = (Dimension) getArg(evaluator, args, 0); Hierarchy hierarchy = dimension.getHierarchy(); return addMembers(new Vector(), hierarchy); } }); define(new FunDefBase("Members", "<Hierarchy>.Members", "Returns the set of all members in a hierarchy.", "pxh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = (Hierarchy) getArg(evaluator, args, 0); return addMembers(new Vector(), hierarchy); } }); define(new FunDefBase("Members", "<Level>.Members", "Returns the set of all members in a level.", "pxl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = (Level) getArg(evaluator, args, 0); return toVector(level.getMembers()); } }); define(new FunkResolver( "Mtd", "Mtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Month.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return new Vector(periodsToDate( evaluator, evaluator.getCube().getMonthLevel(), getMemberArg(evaluator, args, 0, false))); } })); define(new MultiResolver( "Order", "Order(<Set>, <Value Expression>[, ASC | DESC | BASC | BDESC])", "Arranges members of a set, optionally preserving or breaking the hierarchy.", new String[]{"fxxvy", "fxxv"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String order = getLiteralArg(args, 2, "ASC", new String[] {"ASC","DESC","BASC","BDESC"}, dummyFunDef); final boolean desc = order.equals("DESC") || order.equals("BDESC"); final boolean brk = order.equals("BASC") || order.equals("BDESC"); return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArgNoEval(args, 1); sort(evaluator, members, exp, desc, brk); return members; } }; } public void testOrder(FoodMartTestCase test) { test.runQueryCheckResult( "select {[Measures].[Unit Sales]} on columns," + nl + " order({" + nl + " [Product].[All Products].[Drink]," + nl + " [Product].[All Products].[Drink].[Beverages]," + nl + " [Product].[All Products].[Drink].[Dairy]," + nl + " [Product].[All Products].[Food]," + nl + " [Product].[All Products].[Food].[Baked Goods]," + nl + " [Product].[All Products].[Food].[Eggs]," + nl + " [Product].[All Products]}," + nl + " [Measures].[Unit Sales]) on rows" + nl + "from Sales", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Product].[All Products]}" + nl + "{[Product].[All Products].[Drink]}" + nl + "{[Product].[All Products].[Drink].[Dairy]}" + nl + "{[Product].[All Products].[Drink].[Beverages]}" + nl + "{[Product].[All Products].[Food]}" + nl + "{[Product].[All Products].[Food].[Eggs]}" + nl + "{[Product].[All Products].[Food].[Baked Goods]}" + nl + "Row #0: 266,773" + nl + "Row #1: 24,597" + nl + "Row #2: 4,186" + nl + "Row #3: 13,573" + nl + "Row #4: 191,940" + nl + "Row #5: 4,132" + nl + "Row #6: 7,870" + nl); } public void testOrderParentsMissing(FoodMartTestCase test) { // Paradoxically, [Alcoholic Beverages] comes before // [Eggs] even though it has a larger value, because // its parent [Drink] has a smaller value than [Food]. test.runQueryCheckResult( "select {[Measures].[Unit Sales]} on columns," + " order({" + nl + " [Product].[All Products].[Drink].[Alcoholic Beverages]," + nl + " [Product].[All Products].[Food].[Eggs]}," + nl + " [Measures].[Unit Sales], ASC) on rows" + nl + "from Sales", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Product].[All Products].[Drink].[Alcoholic Beverages]}" + nl + "{[Product].[All Products].[Food].[Eggs]}" + nl + "Row #0: 6,838" + nl + "Row #1: 4,132" + nl); } public void testOrderCrossJoinBreak(FoodMartTestCase test) { test.runQueryCheckResult( "select {[Measures].[Unit Sales]} on columns," + nl + " Order(" + nl + " CrossJoin(" + nl + " [Gender].children," + nl + " [Marital Status].children)," + nl + " [Measures].[Unit Sales]," + nl + " BDESC) on rows" + nl + "from Sales" + nl + "where [Time].[1997].[Q1]", "Axis #0:" + nl + "{[Time].[1997].[Q1]}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[M]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[S]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[M]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[S]}" + nl + "Row #0: 17,097" + nl + "Row #1: 16,845" + nl + "Row #2: 16,536" + nl + "Row #3: 15,813" + nl); } public void testOrderCrossJoin(FoodMartTestCase test) { // Note: // 1. [Alcoholic Beverages] collates before [Eggs] and // [Seafood] because its parent, [Drink], is less // than [Food] // 2. [Seattle] generally sorts after [CA] and [OR] // because invisible parent [WA] is greater. test.runQueryCheckResult( "select CrossJoin(" + nl + " {[Time].[1997]," + nl + " [Time].[1997].[Q1]}," + nl + " {[Measures].[Unit Sales]}) on columns," + nl + " Order(" + nl + " CrossJoin( " + nl + " {[Product].[All Products].[Food].[Eggs]," + nl + " [Product].[All Products].[Food].[Seafood]," + nl + " [Product].[All Products].[Drink].[Alcoholic Beverages]}," + nl + " {[Store].[USA].[WA].[Seattle]," + nl + " [Store].[USA].[CA]," + nl + " [Store].[USA].[OR]})," + nl + " ([Time].[1997].[Q1], [Measures].[Unit Sales])," + nl + " ASC) on rows" + nl + "from Sales", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Time].[1997], [Measures].[Unit Sales]}" + nl + "{[Time].[1997].[Q1], [Measures].[Unit Sales]}" + nl + "Axis #2:" + nl + "{[Product].[All Products].[Drink].[Alcoholic Beverages], [Store].[All Stores].[USA].[OR]}" + nl + "{[Product].[All Products].[Drink].[Alcoholic Beverages], [Store].[All Stores].[USA].[CA]}" + nl + "{[Product].[All Products].[Drink].[Alcoholic Beverages], [Store].[All Stores].[USA].[WA].[Seattle]}" + nl + "{[Product].[All Products].[Food].[Seafood], [Store].[All Stores].[USA].[CA]}" + nl + "{[Product].[All Products].[Food].[Seafood], [Store].[All Stores].[USA].[OR]}" + nl + "{[Product].[All Products].[Food].[Seafood], [Store].[All Stores].[USA].[WA].[Seattle]}" + nl + "{[Product].[All Products].[Food].[Eggs], [Store].[All Stores].[USA].[CA]}" + nl + "{[Product].[All Products].[Food].[Eggs], [Store].[All Stores].[USA].[OR]}" + nl + "{[Product].[All Products].[Food].[Eggs], [Store].[All Stores].[USA].[WA].[Seattle]}" + nl + "Row #0: 1,680" + nl + "Row #0: 393" + nl + "Row #1: 1,936" + nl + "Row #1: 431" + nl + "Row #2: 635" + nl + "Row #2: 142" + nl + "Row #3: 441" + nl + "Row #3: 91" + nl + "Row #4: 451" + nl + "Row #4: 107" + nl + "Row #5: 217" + nl + "Row #5: 44" + nl + "Row #6: 1,116" + nl + "Row #6: 240" + nl + "Row #7: 1,119" + nl + "Row #7: 251" + nl + "Row #8: 373" + nl + "Row #8: 57" + nl); } public void testOrderHierarchicalDesc(FoodMartTestCase test) { final Axis axis = test.executeAxis2( "Order(" + nl + " {[Product].[All Products], " + " [Product].[Food]," + nl + " [Product].[Drink]," + nl + " [Product].[Non-Consumable]," + nl + " [Product].[Food].[Eggs]," + nl + " [Product].[Drink].[Dairy]}," + nl + " [Measures].[Unit Sales]," + nl + " DESC)"); final String expected = "[Product].[All Products]" + nl + "[Product].[All Products].[Food]" + nl + "[Product].[All Products].[Food].[Eggs]" + nl + "[Product].[All Products].[Non-Consumable]" + nl + "[Product].[All Products].[Drink]" + nl + "[Product].[All Products].[Drink].[Dairy]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testOrderCrossJoinDesc(FoodMartTestCase test) { final Axis axis = test.executeAxis2( "Order(" + nl + " CrossJoin(" + nl + " {[Gender].[M], [Gender].[F]}," + nl + " {[Product].[All Products], " + " [Product].[Food]," + nl + " [Product].[Drink]," + nl + " [Product].[Non-Consumable]," + nl + " [Product].[Food].[Eggs]," + nl + " [Product].[Drink].[Dairy]})," + nl + " [Measures].[Unit Sales]," + nl + " DESC)"); final String expected = "{[Gender].[All Gender].[M], [Product].[All Products]}" + nl + "{[Gender].[All Gender].[M], [Product].[All Products].[Food]}" + nl + "{[Gender].[All Gender].[M], [Product].[All Products].[Food].[Eggs]}" + nl + "{[Gender].[All Gender].[M], [Product].[All Products].[Non-Consumable]}" + nl + "{[Gender].[All Gender].[M], [Product].[All Products].[Drink]}" + nl + "{[Gender].[All Gender].[M], [Product].[All Products].[Drink].[Dairy]}" + nl + "{[Gender].[All Gender].[F], [Product].[All Products]}" + nl + "{[Gender].[All Gender].[F], [Product].[All Products].[Food]}" + nl + "{[Gender].[All Gender].[F], [Product].[All Products].[Food].[Eggs]}" + nl + "{[Gender].[All Gender].[F], [Product].[All Products].[Non-Consumable]}" + nl + "{[Gender].[All Gender].[F], [Product].[All Products].[Drink]}" + nl + "{[Gender].[All Gender].[F], [Product].[All Products].[Drink].[Dairy]}"; test.assertEquals(expected, test.toString(axis.positions)); } public void testOrderBug656802(FoodMartTestCase test) { // Note: // 1. [Alcoholic Beverages] collates before [Eggs] and // [Seafood] because its parent, [Drink], is less // than [Food] // 2. [Seattle] generally sorts after [CA] and [OR] // because invisible parent [WA] is greater. test.runQueryCheckResult( "select {[Measures].[Unit Sales], [Measures].[Store Cost], [Measures].[Store Sales]} ON columns, " + nl + "Order(" + nl + " ToggleDrillState(" + nl + " {([Promotion Media].[All Media], [Product].[All Products])}," + nl + " {[Product].[All Products]} ), " + nl + " [Measures].[Unit Sales], DESC) ON rows " + nl + "from [Sales] where ([Time].[1997])", "Axis #0:" + nl + "{[Time].[1997]}" + nl + "Axis #1:" + nl + "{[Measures].[Unit Sales]}" + nl + "{[Measures].[Store Cost]}" + nl + "{[Measures].[Store Sales]}" + nl + "Axis #2:" + nl + "{[Promotion Media].[All Media], [Product].[All Products]}" + nl + "{[Promotion Media].[All Media], [Product].[All Products].[Food]}" + nl + "{[Promotion Media].[All Media], [Product].[All Products].[Non-Consumable]}" + nl + "{[Promotion Media].[All Media], [Product].[All Products].[Drink]}" + nl + "Row #0: 266,773" + nl + "Row #0: 225,627.23" + nl + "Row #0: 565,238.13" + nl + "Row #1: 191,940" + nl + "Row #1: 163,270.72" + nl + "Row #1: 409,035.59" + nl + "Row #2: 50,236" + nl + "Row #2: 42,879.28" + nl + "Row #2: 107,366.33" + nl + "Row #3: 24,597" + nl + "Row #3: 19,477.23" + nl + "Row #3: 48,836.21" + nl); } }); define(new FunkResolver( "PeriodsToDate", "PeriodsToDate([<Level>[, <Member>]])", "Returns a set of periods (members) from a specified level starting with the first period and ending with a specified member.", new String[]{"fx", "fxl", "fxlm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, false); Member member = getMemberArg(evaluator, args, 1, false); return new Vector(periodsToDate(evaluator, level, member)); } })); define(new FunkResolver( "Qtd", "Qtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Quarter.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return new Vector(periodsToDate( evaluator, evaluator.getCube().getQuarterLevel(), getMemberArg(evaluator, args, 0, false))); } })); if (false) define(new FunDefBase("StripCalculatedMembers", "StripCalculatedMembers(<Set>)", "Removes calculated members from a set.", "fx*")); define(new FunDefBase("StrToSet", "StrToSet(<String Expression>)", "Constructs a set from a string expression.", "fxS") { public void unparse(Exp[] args, PrintWriter pw, ElementCallback callback) { if (callback.isPlatoMdx()) { // omit extra args (they're for us, not Plato) super.unparse(new Exp[]{args[0]}, pw, callback); } else { super.unparse(args, pw, callback); } } public Hierarchy getHierarchy(Exp[] args) { // StrToSet(s, <Hie1>, ... <HieN>) is of type [Hie1] x ... x [HieN]; // so, for example, So StrToTuple("[Time].[1997]", [Time]) is of type // [Time]. But if n > 1, we cannot represent the compound type, and we // return null. return (args.length == 2) ? (Hierarchy) args[1] : null; } }); if (false) define(new FunDefBase("Subset", "Subset(<Set>, <Start>[, <Count>])", "Returns a subset of elements from a set.", "fx*")); if (false) define(new FunDefBase("Tail", "Tail(<Set>[, <Count>])", "Returns a subset from the end of a set.", "fx*")); define(new FunkResolver( "ToggleDrillState", "ToggleDrillState(<Set1>, <Set2>[, RECURSIVE])", "Toggles the drill state of members. This function is a combination of DrillupMember and DrilldownMember.", new String[]{"fxxx", "fxxx#"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector v0 = (Vector) getArg(evaluator, args, 0), v1 = (Vector) getArg(evaluator, args, 1); if (args.length > 2) { throw Util.newInternal( "ToggleDrillState(RECURSIVE) not supported"); } if (v1.isEmpty()) { return v0; } if (v0.isEmpty()) { return v0; } HashSet set1 = toHashSet(v1); Vector result = new Vector(); int i = 0, n = v0.size(); while (i < n) { Object o = v0.elementAt(i++); result.addElement(o); Member m = null; int k = -1; if (o instanceof Member) { if (!set1.contains(o)) { continue; } m = (Member) o; k = -1; } else { Util.assertTrue(o instanceof Member[]); Member[] members = (Member[]) o; for (int j = 0; j < members.length; j++) { Member member = members[j]; if (set1.contains(member)) { k = j; m = member; break; } } if (k == -1) { continue; } } boolean isDrilledDown = false; if (i < n) { Object next = v0.elementAt(i); Member nextMember = (k < 0) ? (Member) next : ((Member[]) next)[k]; boolean strict = true; if (isAncestorOf(m, nextMember, strict)) { isDrilledDown = true; } } if (isDrilledDown) { // skip descendants of this member do { Object next = v0.elementAt(i); Member nextMember = (k < 0) ? (Member) next : ((Member[]) next)[k]; boolean strict = true; if (isAncestorOf(m, nextMember, strict)) { i++; } else { break; } } while (i < n); } else { Member[] children = m.getMemberChildren(); for (int j = 0; j < children.length; j++) { if (k < 0) { result.addElement(children[j]); } else { Member[] members = (Member[]) ((Member[]) o).clone(); members[k] = children[j]; result.addElement(members); } } } } return result; } public void testToggleDrillState(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState({[Customers].[USA],[Customers].[Canada]},{[Customers].[USA],[Customers].[USA].[CA]})"); String expected = "[Customers].[All Customers].[USA]" + nl + "[Customers].[All Customers].[USA].[CA]" + nl + "[Customers].[All Customers].[USA].[OR]" + nl + "[Customers].[All Customers].[USA].[WA]" + nl + "[Customers].[All Customers].[Canada]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testToggleDrillState2(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState([Product].[Product Department].members, {[Product].[All Products].[Food].[Snack Foods]})"); String expected = "[Product].[All Products].[Drink].[Alcoholic Beverages]" + nl + "[Product].[All Products].[Drink].[Beverages]" + nl + "[Product].[All Products].[Drink].[Dairy]" + nl + "[Product].[All Products].[Food].[Baked Goods]" + nl + "[Product].[All Products].[Food].[Baking Goods]" + nl + "[Product].[All Products].[Food].[Breakfast Foods]" + nl + "[Product].[All Products].[Food].[Canned Foods]" + nl + "[Product].[All Products].[Food].[Canned Products]" + nl + "[Product].[All Products].[Food].[Dairy]" + nl + "[Product].[All Products].[Food].[Deli]" + nl + "[Product].[All Products].[Food].[Eggs]" + nl + "[Product].[All Products].[Food].[Frozen Foods]" + nl + "[Product].[All Products].[Food].[Meat]" + nl + "[Product].[All Products].[Food].[Produce]" + nl + "[Product].[All Products].[Food].[Seafood]" + nl + "[Product].[All Products].[Food].[Snack Foods]" + nl + "[Product].[All Products].[Food].[Snack Foods].[Snack Foods]" + nl + "[Product].[All Products].[Food].[Snacks]" + nl + "[Product].[All Products].[Food].[Starchy Foods]" + nl + "[Product].[All Products].[Non-Consumable].[Carousel]" + nl + "[Product].[All Products].[Non-Consumable].[Checkout]" + nl + "[Product].[All Products].[Non-Consumable].[Health and Hygiene]" + nl + "[Product].[All Products].[Non-Consumable].[Household]" + nl + "[Product].[All Products].[Non-Consumable].[Periodicals]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testToggleDrillState3(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState(" + "{[Time].[1997].[Q1]," + " [Time].[1997].[Q2]," + " [Time].[1997].[Q2].[4]," + " [Time].[1997].[Q2].[6]," + " [Time].[1997].[Q3]}," + "{[Time].[1997].[Q2]})"); String expected = "[Time].[1997].[Q1]" + nl + "[Time].[1997].[Q2]" + nl + "[Time].[1997].[Q3]"; test.assertEquals(expected, test.toString(axis.positions)); } // bug 634860 public void testToggleDrillStateTuple(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState(" + nl + "{([Store].[All Stores].[USA].[CA]," + " [Product].[All Products].[Drink].[Alcoholic Beverages])," + nl + " ([Store].[All Stores].[USA]," + " [Product].[All Products].[Drink])}," + nl + "{[Store].[All stores].[USA].[CA]})"); String expected = "{[Store].[All Stores].[USA].[CA], [Product].[All Products].[Drink].[Alcoholic Beverages]}" + nl + "{[Store].[All Stores].[USA].[CA].[Beverly Hills], [Product].[All Products].[Drink].[Alcoholic Beverages]}" + nl + "{[Store].[All Stores].[USA].[CA].[Los Angeles], [Product].[All Products].[Drink].[Alcoholic Beverages]}" + nl + "{[Store].[All Stores].[USA].[CA].[San Diego], [Product].[All Products].[Drink].[Alcoholic Beverages]}" + nl + "{[Store].[All Stores].[USA].[CA].[San Francisco], [Product].[All Products].[Drink].[Alcoholic Beverages]}" + nl + "{[Store].[All Stores].[USA], [Product].[All Products].[Drink]}"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new FunkResolver( "TopCount", "TopCount(<Set>, <Count>[, <Numeric Expression>])", "Returns a specified number of items from the top of a set, optionally ordering the set first.", new String[]{"fxxnn", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set = (Vector) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArg(evaluator, args, 2, null); if (exp != null) { boolean desc = true, brk = true; sort(evaluator, set, exp, desc, brk); } if (n < set.size()) { set.setSize(n); } return set; } public void testTopCount(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopCount({[Promotion Media].[Media Type].members}, 2, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Media].[No Media]" + nl + "[Promotion Media].[All Media].[Daily Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new FunkResolver( "TopPercent", "TopPercent(<Set>, <Percentage>, <Numeric Expression>)", "Sorts a set and returns the top N elements whose cumulative total is at least a specified percentage.", new String[]{"fxxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue()); } public void testTopPercent(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopPercent({[Promotion Media].[Media Type].members}, 70, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Media].[No Media]"; test.assertEquals(expected, test.toString(axis.positions)); } //todo: test precision })); define(new FunkResolver( "TopSum", "TopSum(<Set>, <Value>, <Numeric Expression>)", "Sorts a set and returns the top N elements whose cumulative total is at least a specified value.", new String[]{"fxxnn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, false, n.doubleValue()); } public void testTopSum(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopSum({[Promotion Media].[Media Type].members}, 200000, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Media].[No Media]" + nl + "[Promotion Media].[All Media].[Daily Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new MultiResolver( "Union", "Union(<Set1>, <Set2>[, ALL])", "Returns the union of two sets, optionally retaining duplicates.", new String[] {"fxxx", "fxxxy"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String allString = getLiteralArg(args, 2, "DISTINCT", new String[] {"ALL", "DISTINCT"}, dummyFunDef); final boolean all = allString.equalsIgnoreCase("ALL"); checkCompatible(args[0], args[1], dummyFunDef); return new FunDefBase(dummyFunDef) { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector left = (Vector) getArg(evaluator, args, 0), right = (Vector) getArg(evaluator, args, 1); if (all) { if (left == null || left.isEmpty()) { return right; } add(left, right); return left; } else { HashSet added = new HashSet(); Vector result = new Vector(); addUnique(result, left, added); addUnique(result, right, added); return result; } } }; } public void testUnionAll(FoodMartTestCase test) { final Axis axis = test.executeAxis2("Union({[Gender].[M]}, {[Gender].[F]}, ALL)"); String expected = "[Gender].[All Gender].[M]" + nl + "[Gender].[All Gender].[F]"; // order is preserved test.assertEquals(expected, test.toString(axis.positions)); } public void testUnion(FoodMartTestCase test) { final Axis axis = test.executeAxis2("Union({[Store].[USA], [Store].[USA], [Store].[USA].[OR]}, {[Store].[USA].[CA], [Store].[USA]})"); String expected = "[Store].[All Stores].[USA]" + nl + "[Store].[All Stores].[USA].[OR]" + nl + "[Store].[All Stores].[USA].[CA]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testUnionEmptyBoth(FoodMartTestCase test) { final Axis axis = test.executeAxis2("Union({}, {})"); String expected = ""; test.assertEquals(expected, test.toString(axis.positions)); } public void testUnionEmptyRight(FoodMartTestCase test) { final Axis axis = test.executeAxis2("Union({[Gender].[M]}, {})"); String expected = "[Gender].[All Gender].[M]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testUnionTuple(FoodMartTestCase test) { final Axis axis = test.executeAxis2( "Union({" + " ([Gender].[M], [Marital Status].[S])," + " ([Gender].[F], [Marital Status].[S])" + "}, {" + " ([Gender].[M], [Marital Status].[M])," + " ([Gender].[M], [Marital Status].[S])" + "})"); String expected = "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[S]}" + nl + "{[Gender].[All Gender].[F], [Marital Status].[All Marital Status].[S]}" + nl + "{[Gender].[All Gender].[M], [Marital Status].[All Marital Status].[M]}"; test.assertEquals(expected, test.toString(axis.positions)); } public void testUnionQuery(FoodMartTestCase test) { Result result = test.runQuery( "select {[Measures].[Unit Sales], [Measures].[Store Cost], [Measures].[Store Sales]} on columns," + nl + " Hierarchize( " + nl + " Union(" + nl + " Crossjoin(" + nl + " Crossjoin([Gender].[All Gender].children," + nl + " [Marital Status].[All Marital Status].children )," + nl + " Crossjoin([Customers].[All Customers].children," + nl + " [Product].[All Products].children ) ) ," + nl + " Crossjoin( {([Gender].[All Gender].[M], [Marital Status].[All Marital Status].[M] )}," + nl + " Crossjoin(" + nl + " [Customers].[All Customers].[USA].children," + nl + " [Product].[All Products].children ) ) )) on rows" +nl + "from Sales where ([Time].[1997])"); final Axis rowsAxis = result.getAxes()[1]; test.assertEquals(45, rowsAxis.positions.length); } }); if (false) define(new FunDefBase("VisualTotals", "VisualTotals(<Set>, <Pattern>)", "Dynamically totals child members specified in a set using a pattern for the total label in the result set.", "fx*")); define(new FunkResolver( "Wtd", "Wtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Week.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return new Vector(periodsToDate( evaluator, evaluator.getCube().getWeekLevel(), getMemberArg(evaluator, args, 0, false))); } })); define(new FunkResolver( "Ytd", "Ytd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Year.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return new Vector(periodsToDate( evaluator, evaluator.getCube().getYearLevel(), getMemberArg(evaluator, args, 0, false))); } })); define(new FunDefBase( ":", "<Member>:<Member>", "Infix colon operator returns the set of members between a given pair of members.", "ixmm") { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { final Member member0 = getMemberArg(evaluator, args, 0, true); final Member member1 = getMemberArg(evaluator, args, 1, true); if (member0.isNull() || member1.isNull()) { return emptyVector; } if (member0.getLevel() != member1.getLevel()) { throw newEvalException(this, "Members must belong to the same level"); } return new Vector(FunUtil.memberRange(member0, member1)); } public void testRange(FoodMartTestCase test) { final Axis axis = test.executeAxis2("[Time].[1997].[Q1].[2] : [Time].[1997].[Q2].[5]"); String expected = "[Time].[1997].[Q1].[2]" + nl + "[Time].[1997].[Q1].[3]" + nl + "[Time].[1997].[Q2].[4]" + nl + "[Time].[1997].[Q2].[5]"; // not parents test.assertEquals(expected, test.toString(axis.positions)); } public void _testRangeLarge(FoodMartTestCase test) { final Axis axis = test.executeAxis2("[Customers].[USA].[CA].[San Francisco] : [Customers].[USA].[WA].[Seattle]"); String expected = "[Time].[1997].[Q1].[2]" + nl + "[Time].[1997].[Q1].[3]" + nl + "[Time].[1997].[Q2].[4]" + nl + "[Time].[1997].[Q2].[5]"; // not parents test.assertEquals(expected, test.toString(axis.positions)); } public void testRangeStartEqualsEnd(FoodMartTestCase test) { final Axis axis = test.executeAxis2("[Time].[1997].[Q3].[7] : [Time].[1997].[Q3].[7]"); String expected = "[Time].[1997].[Q3].[7]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testRangeEndBeforeStart(FoodMartTestCase test) { final Axis axis = test.executeAxis2("[Time].[1997].[Q3].[7] : [Time].[1997].[Q2].[5]"); String expected = "[Time].[1997].[Q2].[5]" + nl + "[Time].[1997].[Q2].[6]" + nl + "[Time].[1997].[Q3].[7]"; // same as if reversed test.assertEquals(expected, test.toString(axis.positions)); } public void testRangeBetweenDifferentLevelsIsError(FoodMartTestCase test) { test.assertAxisThrows( "[Time].[1997].[Q2] : [Time].[1997].[Q2].[5]", "Members must belong to the same level"); } public void testRangeBoundedByAll(FoodMartTestCase test) { final Axis axis = test.executeAxis2("[Gender] : [Gender]"); String expected = "[Gender].[All Gender]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testRangeBoundedByNull(FoodMartTestCase test) { final Axis axis = test.executeAxis2("[Gender].[F] : [Gender].[M].NextMember"); test.assertTrue(axis.positions.length == 0); } }); // special resolver for the "{...}" operator define(new ResolverBase( "{}", "{<Member> [, <Member>]...}", "Brace operator constructs a set.", FunDef.TypeBraces) { protected FunDef resolve(Exp[] args, int[] conversionCount) { int[] parameterTypes = new int[args.length]; for (int i = 0; i < args.length; i++) { if (canConvert( args[i], Exp.CatMember, conversionCount)) { parameterTypes[i] = Exp.CatMember; continue; } if (canConvert( args[i], Exp.CatSet, conversionCount)) { parameterTypes[i] = Exp.CatSet; continue; } if (canConvert( args[i], Exp.CatTuple, conversionCount)) { parameterTypes[i] = Exp.CatTuple; continue; } return null; } return new SetFunDef(this, syntacticType, parameterTypes); } public void testSetContainingLevelFails(FoodMartTestCase test) { test.assertAxisThrows( "[Store].[Store City]", "no function matches signature '{<Level>}'"); } }); // // STRING FUNCTIONS define(new FunDefBase("IIf", "IIf(<Logical Expression>, <String Expression1>, <String Expression2>)", "Returns one of two string values determined by a logical test.", "fSbSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { boolean logical = getBooleanArg(evaluator, args, 0); return getStringArg(evaluator, args, logical ? 1 : 2, null); } public void testIIf(FoodMartTestCase test) { String s = test.executeExpr( "IIf(([Measures].[Unit Sales],[Product].[Drink].[Alcoholic Beverages].[Beer and Wine]) > 100, \"Yes\",\"No\")"); test.assertEquals("Yes", s); } }); define(new FunDefBase("Name", "<Dimension>.Name", "Returns the name of a dimension.", "pSd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getName(); } public void testDimensionName(FoodMartTestCase test) { String s = test.executeExpr("[Time].[1997].Dimension.Name"); test.assertEquals("Time", s); } }); define(new FunDefBase("Name", "<Hierarchy>.Name", "Returns the name of a hierarchy.", "pSh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getName(); } public void testHierarchyName(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].Hierarchy.Name"); test.assertEquals("Time", s); } }); define(new FunDefBase("Name", "<Level>.Name", "Returns the name of a level.", "pSl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getName(); } public void testLevelName(FoodMartTestCase test) { String s = test.executeExpr("[Time].[1997].Level.Name"); test.assertEquals("Year", s); } }); define(new FunDefBase("Name", "<Member>.Name", "Returns the name of a member.", "pSm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getName(); } public void testMemberName(FoodMartTestCase test) { String s = test.executeExpr("[Time].[1997].Name"); test.assertEquals("1997", s); } }); define(new FunDefBase("SetToStr", "SetToStr(<Set>)", "Constructs a string from a set.", "fSx")); define(new FunDefBase("TupleToStr", "TupleToStr(<Tuple>)", "Constructs a string from a tuple.", "fSt")); define(new FunDefBase("UniqueName", "<Dimension>.UniqueName", "Returns the unique name of a dimension.", "pSd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getUniqueName(); } public void testDimensionUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.Dimension.UniqueName"); test.assertEquals("[Gender]", s); } }); define(new FunDefBase("UniqueName", "<Hierarchy>.UniqueName", "Returns the unique name of a hierarchy.", "pSh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getUniqueName(); } public void testHierarchyUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.Hierarchy.UniqueName"); test.assertEquals("[Gender]", s); } }); define(new FunDefBase("UniqueName", "<Level>.UniqueName", "Returns the unique name of a level.", "pSl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getUniqueName(); } public void testLevelUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.Level.UniqueName"); test.assertEquals("[Gender].[(All)]", s); } }); define(new FunDefBase("UniqueName", "<Member>.UniqueName", "Returns the unique name of a member.", "pSm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getUniqueName(); } public void testMemberUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.UniqueName"); test.assertEquals("[Gender].[All Gender]", s); } public void testMemberUniqueNameOfNull(FoodMartTestCase test) { String s = test.executeExpr( "[Measures].[Unit Sales].FirstChild.UniqueName"); test.assertEquals("[Measures].[#Null]", s); // MSOLAP gives "" here } }); // // TUPLE FUNCTIONS define(new FunDefBase("Current", "<Set>.Current", "Returns the current tuple from a set during an iteration.", "ptx")); if (false) define(new FunDefBase("Item", "<Set>.Item(<String Expression>[, <String Expression>...] | <Index>)", "Returns a tuple from a set.", "mt*")); define(new FunDefBase("StrToTuple", "StrToTuple(<String Expression>)", "Constructs a tuple from a string.", "ftS") { public void unparse(Exp[] args, PrintWriter pw, ElementCallback callback) { if (callback.isPlatoMdx()) { // omit extra args (they're for us, not Plato) super.unparse(new Exp[]{args[0]}, pw, callback); } else { super.unparse(args, pw, callback); } } public Hierarchy getHierarchy(Exp[] args) { // StrToTuple(s, <Hie1>, ... <HieN>) is of type [Hie1] x // ... x [HieN]; so, for example, So // StrToTuple("[Time].[1997]", [Time]) is of type [Time]. // But if n > 1, we cannot represent the compound type, and // we return null. return (args.length == 2) ? (Hierarchy) args[1] : null; } }); // special resolver for "()" define(new ResolverBase("()", null, null, FunDef.TypeParentheses) { public FunDef resolve(Exp[] args, int[] conversionCount) { // Compare with TupleFunDef.getReturnType(). For example, // ([Gender].members) is a set, // ([Gender].[M]) is a member, // (1 + 2) is a numeric, // but // ([Gender].[M], [Marital Status].[S]) is a tuple. if (args.length == 1) { return new ParenthesesFunDef(args[0].getType()); } else { return new TupleFunDef(ExpBase.getTypes(args)); } } }); // // GENERIC VALUE FUNCTIONS define(new ResolverBase( "CoalesceEmpty", "CoalesceEmpty(<Value Expression>[, <Value Expression>]...)", "Coalesces an empty cell value to a different value. All of the expressions must be of the same type (number or string).", FunDef.TypeFunction) { protected FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 1) { return null; } final int[] types = {Exp.CatNumeric, Exp.CatString}; for (int j = 0; j < types.length; j++) { int type = types[j]; int matchingArgs = 0; conversionCount[0] = 0; for (int i = 0; i < args.length; i++) { if (canConvert(args[i], type, conversionCount)) { matchingArgs++; } } if (matchingArgs == args.length) { return new FunDefBase( this, FunDef.TypeFunction, type, ExpBase.getTypes(args)); } } return null; } }); define(new ResolverBase( "_CaseTest", "Case When <Logical Expression> Then <Expression> [...] [Else <Expression>] End", "Evaluates various conditions, and returns the corresponding expression for the first which evaluates to true.", FunDef.TypeCase) { protected FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 1) { return null; } int j = 0, clauseCount = args.length / 2, mismatchingArgs = 0; int returnType = args[1].getType(); for (int i = 0; i < clauseCount; i++) { if (!canConvert(args[j++], Exp.CatLogical, conversionCount)) { mismatchingArgs++; } if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } if (j < args.length) { if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } Util.assertTrue(j == args.length); if (mismatchingArgs == 0) { return new FunDefBase( this, FunDef.TypeFunction, returnType, ExpBase.getTypes(args)) { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluateCaseTest(evaluator, args); } }; } else { return null; } } Object evaluateCaseTest(Evaluator evaluator, Exp[] args) { int clauseCount = args.length / 2, j = 0; for (int i = 0; i < clauseCount; i++) { boolean logical = getBooleanArg(evaluator, args, j++); if (logical) { return getArg(evaluator, args, j); } else { j++; } } if (j < args.length) { return getArg(evaluator, args, j); // ELSE } else { return null; } } public void testCaseTestMatch(FoodMartTestCase test) { String s = test.executeExpr( "CASE WHEN 1=0 THEN \"first\" WHEN 1=1 THEN \"second\" WHEN 1=2 THEN \"third\" ELSE \"fourth\" END"); test.assertEquals("second", s); } public void testCaseTestMatchElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE WHEN 1=0 THEN \"first\" ELSE \"fourth\" END"); test.assertEquals("fourth", s); } public void testCaseTestMatchNoElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE WHEN 1=0 THEN \"first\" END"); test.assertEquals("(null)", s); } }); define(new ResolverBase( "_CaseMatch", "Case <Expression> When <Expression> Then <Expression> [...] [Else <Expression>] End", "Evaluates various expressions, and returns the corresponding expression for the first which matches a particular value.", FunDef.TypeCase) { protected FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 3) { return null; } int valueType = args[0].getType(); int returnType = args[2].getType(); int j = 0, clauseCount = (args.length - 1) / 2, mismatchingArgs = 0; if (!canConvert(args[j++], valueType, conversionCount)) { mismatchingArgs++; } for (int i = 0; i < clauseCount; i++) { if (!canConvert(args[j++], valueType, conversionCount)) { mismatchingArgs++; } if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } if (j < args.length) { if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } Util.assertTrue(j == args.length); if (mismatchingArgs == 0) { return new FunDefBase( this, FunDef.TypeFunction, returnType, ExpBase.getTypes(args)) { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluateCaseMatch(evaluator, args); } }; } else { return null; } } Object evaluateCaseMatch(Evaluator evaluator, Exp[] args) { int clauseCount = (args.length - 1)/ 2, j = 0; Object value = getArg(evaluator, args, j++); for (int i = 0; i < clauseCount; i++) { Object match = getArg(evaluator, args, j++); if (match.equals(value)) { return getArg(evaluator, args, j); } else { j++; } } if (j < args.length) { return getArg(evaluator, args, j); // ELSE } else { return null; } } public void testCaseMatch(FoodMartTestCase test) { String s = test.executeExpr( "CASE 2 WHEN 1 THEN \"first\" WHEN 2 THEN \"second\" WHEN 3 THEN \"third\" ELSE \"fourth\" END"); test.assertEquals("second", s); } public void testCaseMatchElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE 7 WHEN 1 THEN \"first\" ELSE \"fourth\" END"); test.assertEquals("fourth", s); } public void testCaseMatchNoElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE 8 WHEN 0 THEN \"first\" END"); test.assertEquals("(null)", s); } }); define(new ResolverBase( "Properties", "<Member>.Properties(<String Expression>)", "Returns the value of a member property.", FunDef.TypeMethod) { public FunDef resolve(Exp[] args, int[] conversionCount) { final int[] argTypes = new int[]{Exp.CatMember, Exp.CatString}; if (args.length != 2 || args[0].getType() != Exp.CatMember || args[1].getType() != Exp.CatString) { return null; } int returnType; if (args[1] instanceof Literal) { String propertyName = (String) ((Literal) args[1]).getValue(); Hierarchy hierarchy = args[0].getHierarchy(); Level[] levels = hierarchy.getLevels(); Property property = lookupProperty( levels[levels.length - 1], propertyName); if (property == null) { // we'll likely get a runtime error returnType = Exp.CatValue; } else { switch (property.getType()) { case Property.TYPE_BOOLEAN: returnType = Exp.CatLogical; break; case Property.TYPE_NUMERIC: returnType = Exp.CatNumeric; break; case Property.TYPE_STRING: returnType = Exp.CatString; break; default: throw Util.newInternal("Unknown property type " + property.getType()); } } } else { returnType = Exp.CatValue; } return new PropertiesFunDef(name, signature, description, syntacticType, returnType, argTypes); } public void testPropertiesExpr(FoodMartTestCase test) { String s = test.executeExpr( "[Store].[USA].[CA].[Beverly Hills].[Store 6].Properties(\"Store Type\")"); test.assertEquals("Gourmet Supermarket", s); } /** Tests that non-existent property throws an error. **/ public void testPropertiesNonExistent(FoodMartTestCase test) { test.assertExprThrows( "[Store].[USA].[CA].[Beverly Hills].[Store 6].Properties(\"Foo\")", "Property 'Foo' is not valid for"); } public void testPropertiesFilter(FoodMartTestCase test) { Result result = test.execute( "SELECT { [Store Sales] } ON COLUMNS," + nl + " TOPCOUNT( Filter( [Store].[Store Name].Members," + nl + " [Store].CurrentMember.Properties(\"Store Type\") = \"Supermarket\" )," + nl + " 10, [Store Sales]) ON ROWS" + nl + "FROM [Sales]"); test.assertEquals(8, result.getAxes()[1].positions.length); } public void testPropertyInCalculatedMember(FoodMartTestCase test) { Result result = test.execute( "WITH MEMBER [Measures].[Store Sales per Sqft]" + nl + "AS '[Measures].[Store Sales] / " + " [Store].CurrentMember.Properties(\"Store Sqft\")'" + nl + "SELECT " + nl + " {[Measures].[Unit Sales], [Measures].[Store Sales per Sqft]} ON COLUMNS," + nl + " {[Store].[Store Name].members} ON ROWS" + nl + "FROM Sales"); Member member; Cell cell; member = result.getAxes()[1].positions[17].members[0]; test.assertEquals("[Store].[All Stores].[USA].[WA].[Bellingham].[Store 2]", member.getUniqueName()); cell = result.getCell(new int[] {0,17}); test.assertEquals("2,237", cell.getFormattedValue()); cell = result.getCell(new int[] {1,17}); test.assertEquals("0.16802205204566403", cell.getFormattedValue()); member = result.getAxes()[1].positions[3].members[0]; test.assertEquals("[Store].[All Stores].[Mexico].[DF].[San Andres].[Store 21]", member.getUniqueName()); cell = result.getCell(new int[] {0,3}); test.assertEquals("(null)", cell.getFormattedValue()); cell = result.getCell(new int[] {1,3}); test.assertEquals("NaN", cell.getFormattedValue()); } }); // // PARAMETER FUNCTIONS define(new MultiResolver("Parameter", "Parameter(<Name>, <Type>, <DefaultValue>, <Description>)", "Returns default value of parameter.", new String[] { "fS#yS#", "fs#yS", // Parameter(string const, symbol, string[, string const]): string "fn#yn#", "fn#yn", // Parameter(string const, symbol, numeric[, string const]): numeric "fm#hm#", "fm#hm", // Parameter(string const, hierarchy constant, member[, string const]): member }) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String parameterName; if (args[0] instanceof Literal && args[0].getType() == Exp.CatString) { parameterName = (String) ((Literal) args[0]).getValue(); } else { throw newEvalException(dummyFunDef, "Parameter name must be a string constant"); } Exp typeArg = args[1]; Hierarchy hierarchy; int type; switch (typeArg.getType()) { case Exp.CatHierarchy: case Exp.CatDimension: hierarchy = typeArg.getHierarchy(); if (hierarchy == null || !isConstantHierarchy(typeArg)) { throw newEvalException(dummyFunDef, "Invalid hierarchy for parameter '" + parameterName + "'"); } type = Exp.CatMember; break; case Exp.CatSymbol: hierarchy = null; String s = (String) ((Literal) typeArg).getValue(); if (s.equalsIgnoreCase("NUMERIC")) { type = Exp.CatNumeric; break; } else if (s.equalsIgnoreCase("STRING")) { type = Exp.CatString; break; } // fall through and throw error default: // Error is internal because the function call has already been // type-checked. throw newEvalException(dummyFunDef, "Invalid type for parameter '" + parameterName + "'; expecting NUMERIC, STRING or a hierarchy"); } Exp exp = args[2]; if (exp.getType() != type) { String typeName = Exp.catEnum.getName(type).toUpperCase(); throw newEvalException(dummyFunDef, "Default value of parameter '" + parameterName + "' is inconsistent with its type, " + typeName); } if (type == Exp.CatMember) { Hierarchy expHierarchy = exp.getHierarchy(); if (expHierarchy != hierarchy) { throw newEvalException(dummyFunDef, "Default value of parameter '" + parameterName + "' must belong to the hierarchy " + hierarchy); } } String parameterDescription = null; if (args.length > 3) { if (args[3] instanceof Literal && args[3].getType() == Exp.CatString) { parameterDescription = (String) ((Literal) args[3]).getValue(); } else { throw newEvalException(dummyFunDef, "Description of parameter '" + parameterName + "' must be a string constant"); } } return new ParameterFunDef(dummyFunDef, parameterName, hierarchy, type, exp, parameterDescription); } }); define(new MultiResolver("ParamRef", "ParamRef(<Name>)", "Returns current value of parameter. If it's null, returns default.", new String[] {"fv#"}) { protected FunDef createFunDef(Exp[] args, FunDef dummyFunDef) { String parameterName; if (args[0] instanceof Literal && args[0].getType() == Exp.CatString) { parameterName = (String) ((Literal) args[0]).getValue(); } else { throw newEvalException(dummyFunDef, "Parameter name must be a string constant"); } return new ParameterFunDef(dummyFunDef, parameterName, null, Exp.CatUnknown, null, null); } }); // // OPERATORS define(new FunDefBase("+", "<Numeric Expression> + <Numeric Expression>", "Adds two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() + o1.doubleValue()); } public void testPlus(FoodMartTestCase test) { String s = test.executeExpr("1+2"); test.assertEquals("3.0", s); } }); define(new FunDefBase("-", "<Numeric Expression> - <Numeric Expression>", "Subtracts two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() - o1.doubleValue()); } public void testMinus(FoodMartTestCase test) { String s = test.executeExpr("1-3"); test.assertEquals("-2.0", s); } public void testMinusAssociativity(FoodMartTestCase test) { String s = test.executeExpr("11-7-5"); // right-associative would give 11-(7-5) = 9, which is wrong test.assertEquals("-1.0", s); } }); define(new FunDefBase("*", "<Numeric Expression> * <Numeric Expression>", "Multiplies two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() * o1.doubleValue()); } public void testMultiply(FoodMartTestCase test) { String s = test.executeExpr("4*7"); test.assertEquals("28.0", s); } public void testMultiplyPrecedence(FoodMartTestCase test) { String s = test.executeExpr("3 + 4 * 5 + 6"); test.assertEquals("29.0", s); } }); define(new FunDefBase("/", "<Numeric Expression> / <Numeric Expression>", "Divides two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); Double result = new Double(o0.doubleValue() / o1.doubleValue()); return result; } // todo: use this, via reflection public double evaluate(double d1, double d2) { return d1 / d2; } public void testDivide(FoodMartTestCase test) { String s = test.executeExpr("10 / 5"); test.assertEquals("2.0", s); } public void testDivideByZero(FoodMartTestCase test) { String s = test.executeExpr("-3 / (2 - 2)"); test.assertEquals("-Infinity", s); } public void testDividePrecedence(FoodMartTestCase test) { String s = test.executeExpr("24 / 4 / 2 * 10 - -1"); test.assertEquals("31.0", s); } }); define(new FunDefBase("-", "- <Numeric Expression>", "Returns the negative of a number.", "Pnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0); return new Double(- o0.doubleValue()); } public void testUnaryMinus(FoodMartTestCase test) { String s = test.executeExpr("-3"); test.assertEquals("-3.0", s); } public void testUnaryMinusMember(FoodMartTestCase test) { String s = test.executeExpr("- ([Measures].[Unit Sales],[Gender].[F])"); test.assertEquals("-131558.0", s); } public void testUnaryMinusPrecedence(FoodMartTestCase test) { String s = test.executeExpr("1 - -10.5 * 2 -3"); test.assertEquals("19.0", s); } }); define(new FunDefBase("||", "<String Expression> || <String Expression>", "Concatenates two strings.", "iSSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return o0 + o1; } public void testStringConcat(FoodMartTestCase test) { String s = test.executeExpr(" \"foo\" || \"bar\" "); test.assertEquals("foobar", s); } public void testStringConcat2(FoodMartTestCase test) { String s = test.executeExpr(" \"foo\" || [Gender].[M].Name || \"\" "); test.assertEquals("fooM", s); } }); define(new FunDefBase("AND", "<Logical Expression> AND <Logical Expression>", "Returns the conjunction of two conditions.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { return toBoolean( getBooleanArg(evaluator, args, 0) && getBooleanArg(evaluator, args, 1)); } public void testAnd(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND 2=2 "); test.assertEquals("true", s); } public void testAnd2(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND 2=0 "); test.assertEquals("false", s); } }); define(new FunDefBase("OR", "<Logical Expression> OR <Logical Expression>", "Returns the disjunction of two conditions.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { // Only evaluate 2nd if first is false. return toBoolean( getBooleanArg(evaluator, args, 0) || getBooleanArg(evaluator, args, 1)); } public void testOr(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=0 OR 2=0 "); test.assertEquals("false", s); } public void testOr2(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=0 OR 0=0 "); test.assertEquals("true", s); } public void testOrAssociativity1(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND 1=0 OR 1=1 "); // Would give 'false' if OR were stronger than AND (wrong!) test.assertEquals("true", s); } public void testOrAssociativity2(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 OR 1=0 AND 1=1 "); // Would give 'false' if OR were stronger than AND (wrong!) test.assertEquals("true", s); } public void testOrAssociativity3(FoodMartTestCase test) { String s = test.executeBooleanExpr(" (1=0 OR 1=1) AND 1=1 "); test.assertEquals("true", s); } }); define(new FunDefBase("XOR", "<Logical Expression> XOR <Logical Expression>", "Returns whether two conditions are mutually exclusive.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { final boolean b0 = getBooleanArg(evaluator, args, 0); final boolean b1 = getBooleanArg(evaluator, args, 1); return toBoolean(b0 != b1); } public void testXor(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 XOR 2=2 "); test.assertEquals("false", s); } public void testXorAssociativity(FoodMartTestCase test) { // Would give 'false' if XOR were stronger than AND (wrong!) String s = test.executeBooleanExpr(" 1 = 1 AND 1 = 1 XOR 1 = 0 "); test.assertEquals("true", s); } }); define(new FunDefBase("NOT", "NOT <Logical Expression>", "Returns the negation of a condition.", "Pbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { return toBoolean(!getBooleanArg(evaluator, args, 0)); } public void testNot(FoodMartTestCase test) { String s = test.executeBooleanExpr(" NOT 1=1 "); test.assertEquals("false", s); } public void testNotNot(FoodMartTestCase test) { String s = test.executeBooleanExpr(" NOT NOT 1=1 "); test.assertEquals("true", s); } public void testNotAssociativity(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND NOT 1=1 OR NOT 1=1 AND 1=1 "); test.assertEquals("false", s); } }); define(new FunDefBase("=", "<String Expression> = <String Expression>", "Returns whether two expressions are equal.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return toBoolean(o0.equals(o1)); } public void testStringEquals(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"foo\" = \"bar\" "); test.assertEquals("false", s); } public void testStringEqualsAssociativity(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"foo\" = \"fo\" || \"o\" "); test.assertEquals("true", s); } public void testStringEqualsEmpty(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"\" = \"\" "); test.assertEquals("true", s); } }); define(new FunDefBase("=", "<Numeric Expression> = <Numeric Expression>", "Returns whether two expressions are equal.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.equals(o1)); } public void testEq(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1.0 = 1 "); test.assertEquals("true", s); } }); define(new FunDefBase("<>", "<String Expression> <> <String Expression>", "Returns whether two expressions are not equal.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return toBoolean(!o0.equals(o1)); } public void testStringNe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"foo\" <> \"bar\" "); test.assertEquals("true", s); } }); define(new FunDefBase("<>", "<Numeric Expression> <> <Numeric Expression>", "Returns whether two expressions are not equal.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(!o0.equals(o1)); } public void testNe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 <> 1.0 + 1.0 "); test.assertEquals("false", s); } public void testNeInfinity(FoodMartTestCase test) { String s = test.executeBooleanExpr("(1 / 0) <> (1 / 0)"); // Infinity does not equal itself test.assertEquals("false", s); } }); define(new FunDefBase("<", "<Numeric Expression> < <Numeric Expression>", "Returns whether an expression is less than another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) < 0); } public void testLt(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 < 1.0 + 1.0 "); test.assertEquals("false", s); } }); define(new FunDefBase("<=", "<Numeric Expression> <= <Numeric Expression>", "Returns whether an expression is less than or equal to another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) <= 0); } public void testLe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 <= 1.0 + 1.0 "); test.assertEquals("true", s); } }); define(new FunDefBase(">", "<Numeric Expression> > <Numeric Expression>", "Returns whether an expression is greater than another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) > 0); } public void testGt(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 > 1.0 + 1.0 "); test.assertEquals("false", s); } }); define(new FunDefBase(">=", "<Numeric Expression> >= <Numeric Expression>", "Returns whether an expression is greater than or equal to another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) >= 0); } public void testGe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 > 1.0 + 1.0 "); test.assertEquals("false", s); } }); }
|
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/70c4270c1bff30f538d792913a6023b7dd613649/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4426,
7503,
1435,
288,
202,
202,
759,
1122,
1149,
30,
293,
33,
1396,
16,
312,
33,
1305,
16,
277,
33,
382,
904,
16,
453,
33,
2244,
202,
202,
759,
576,
4880,
30,
202,
202,
759,
14884,
13690,
55,
202,
202,
430,
261,
5743,
13,
4426,
12,
2704,
478,
318,
3262,
2171,
2932,
694,
11698,
3113,
315,
694,
11698,
12,
32,
694,
23224,
16,
411,
694,
34,
65,
2777,
63,
16,
411,
9902,
5371,
34,
65,
2225,
16,
315,
5692,
1245,
578,
1898,
1678,
358,
392,
526,
364,
999,
316,
279,
729,
17,
430,
261,
5743,
13,
2553,
445,
1199,
16,
315,
507,
7388,
10019,
202,
202,
759,
202,
202,
759,
463,
3114,
3156,
1146,
13690,
55,
202,
202,
11255,
12,
2704,
478,
318,
3262,
2171,
2932,
8611,
3113,
3532,
12074,
18652,
8611,
3113,
315,
1356,
326,
4968,
716,
1914,
279,
1269,
9360,
1199,
16,
315,
84,
19153,
7923,
288,
1082,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
12074,
9360,
273,
7628,
6000,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
638,
1769,
9506,
202,
2463,
9360,
18,
588,
8611,
5621,
1082,
202,
97,
202,
202,
22938,
202,
202,
759,
14646,
44,
361,
358,
527,
333,
358,
336,
411,
12074,
18652,
8611,
358,
1440,
35,
202,
202,
11255,
12,
2704,
478,
318,
3262,
2171,
2932,
8611,
3113,
3532,
8611,
18652,
8611,
3113,
315,
1356,
326,
4968,
716,
1914,
279,
1269,
9360,
1199,
16,
315,
84,
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,
4426,
7503,
1435,
288,
202,
202,
759,
1122,
1149,
30,
293,
33,
1396,
16,
312,
33,
1305,
16,
277,
33,
382,
904,
16,
453,
33,
2244,
202,
202,
759,
576,
4880,
30,
202,
202,
759,
14884,
13690,
55,
202,
202,
430,
261,
5743,
13,
4426,
12,
2704,
478,
318,
3262,
2171,
2932,
694,
11698,
3113,
315,
694,
11698,
12,
32,
694,
23224,
16,
411,
694,
34,
65,
2777,
63,
16,
411,
9902,
5371,
34,
65,
2225,
16,
315,
5692,
1245,
578,
1898,
1678,
358,
392,
526,
364,
999,
316,
279,
729,
17,
430,
261,
5743,
13,
2553,
445,
1199,
16,
315,
507,
7388,
10019,
202,
202,
759,
202,
202,
759,
463,
3114,
3156,
1146,
13690,
2
] |
if (contentDescriptors[i].isActiveByDefault()) { activatedExtensions.add(contentDescriptors[i].getId());
|
if (contentDescriptors[i].isActiveByDefault()) { activatedExtensionsMap.put(contentDescriptors[i].getId(), Boolean.TRUE);
|
private Set revertExtensionActivations() { Preferences preferences = NavigatorPlugin.getDefault() .getPluginPreferences(); String activatedExtensionsString = preferences .getString(getPreferenceKey()); if (activatedExtensionsString != null && activatedExtensionsString.length() > 0) { String[] contentExtensionIds = activatedExtensionsString .split(DELIM); for (int i = 0; i < contentExtensionIds.length; i++) { activatedExtensions.add(contentExtensionIds[i]); } } else { /* * We add the default activation of every known extension, even * though some may not be bound to the associated content service; * this is because they could be bound at a later time through the * programmatic binding mechanism in INavigatorContentService. */ INavigatorContentDescriptor[] contentDescriptors = CONTENT_DESCRIPTOR_REGISTRY .getAllContentDescriptors(); for (int i = 0; i < contentDescriptors.length; i++) { if (contentDescriptors[i].isActiveByDefault()) { activatedExtensions.add(contentDescriptors[i].getId()); } } } return activatedExtensions; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/1b0f37bc4a054e18b1a977d97d5a410a1f6896d6/NavigatorActivationService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorActivationService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1000,
15226,
3625,
12241,
1012,
1435,
288,
202,
202,
12377,
12750,
273,
423,
13061,
3773,
18,
588,
1868,
1435,
9506,
202,
18,
588,
3773,
12377,
5621,
202,
202,
780,
14892,
7513,
780,
273,
12750,
9506,
202,
18,
588,
780,
12,
588,
9624,
653,
10663,
202,
202,
430,
261,
18836,
7513,
780,
480,
446,
9506,
202,
10,
10,
14892,
7513,
780,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
780,
8526,
913,
3625,
2673,
273,
14892,
7513,
780,
6862,
202,
18,
4939,
12,
31519,
1769,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
913,
3625,
2673,
18,
2469,
31,
277,
27245,
288,
9506,
202,
18836,
7513,
18,
1289,
12,
1745,
3625,
2673,
63,
77,
19226,
1082,
202,
97,
202,
202,
97,
469,
288,
1082,
202,
20308,
9506,
380,
1660,
527,
326,
805,
10027,
434,
3614,
4846,
2710,
16,
5456,
9506,
380,
11376,
2690,
2026,
486,
506,
2489,
358,
326,
3627,
913,
1156,
31,
9506,
380,
333,
353,
2724,
2898,
3377,
506,
2489,
622,
279,
5137,
813,
3059,
326,
9506,
380,
5402,
26500,
5085,
12860,
316,
2120,
13061,
1350,
1179,
18,
9506,
1195,
1082,
202,
706,
13061,
1350,
3187,
8526,
913,
12705,
273,
12577,
67,
1639,
27689,
67,
5937,
25042,
6862,
202,
18,
588,
1595,
1350,
12705,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
913,
12705,
18,
2469,
31,
277,
27245,
288,
9506,
202,
430,
261,
1745,
12705,
63,
77,
8009,
291,
3896,
858,
1868,
10756,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1000,
15226,
3625,
12241,
1012,
1435,
288,
202,
202,
12377,
12750,
273,
423,
13061,
3773,
18,
588,
1868,
1435,
9506,
202,
18,
588,
3773,
12377,
5621,
202,
202,
780,
14892,
7513,
780,
273,
12750,
9506,
202,
18,
588,
780,
12,
588,
9624,
653,
10663,
202,
202,
430,
261,
18836,
7513,
780,
480,
446,
9506,
202,
10,
10,
14892,
7513,
780,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
780,
8526,
913,
3625,
2673,
273,
14892,
7513,
780,
6862,
202,
18,
4939,
12,
31519,
1769,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
913,
3625,
2673,
18,
2469,
31,
277,
27245,
288,
9506,
202,
18836,
7513,
18,
1289,
12,
1745,
3625,
2673,
63,
2
] |
public DataObject createDataObject(DataObject child, DataObject parent) throws DSOutOfServiceException, DSAccessException { if (child == null) throw new IllegalArgumentException("The child cannot be null."); IObject obj = ModelMapper.createIObject(child, parent); if (obj == null) throw new NullPointerException("Cannot convert object."); IObject created = gateway.createObject(obj, (new PojoOptions()).map()); //DataObject doCreated = PojoMapper.asDataObject(created); if (parent != null) ModelMapper.linkParentToChild(created, parent.asIObject()); return PojoMapper.asDataObject(created); }
|
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/40984700ba5db4e65aba265d499ced4afa7d4661/OmeroServiceImpl.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OmeroServiceImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
21881,
2640,
21881,
12,
21881,
3624,
16,
21881,
2938,
13,
15069,
3948,
11224,
15133,
16,
3948,
9773,
95,
430,
12,
3624,
631,
2011,
13,
12849,
2704,
31237,
2932,
1986,
3624,
12892,
19425,
420,
1199,
1769,
45,
921,
2603,
33,
1488,
4597,
18,
2640,
45,
921,
12,
3624,
16,
2938,
1769,
430,
12,
2603,
631,
2011,
13,
12849,
2704,
2041,
9992,
2932,
4515,
591,
502,
869,
489,
1199,
1769,
45,
921,
4824,
33,
11127,
18,
2640,
921,
12,
2603,
16,
12,
2704,
52,
10007,
1320,
1435,
2934,
1458,
10663,
759,
21881,
2896,
6119,
33,
52,
10007,
4597,
18,
345,
21881,
12,
4824,
1769,
430,
12,
2938,
5,
33,
2011,
13,
1488,
4597,
18,
1232,
3054,
774,
1763,
12,
4824,
16,
2938,
18,
345,
45,
921,
10663,
2463,
52,
10007,
4597,
18,
345,
21881,
12,
4824,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
21881,
2640,
21881,
12,
21881,
3624,
16,
21881,
2938,
13,
15069,
3948,
11224,
15133,
16,
3948,
9773,
95,
430,
12,
3624,
631,
2011,
13,
12849,
2704,
31237,
2932,
1986,
3624,
12892,
19425,
420,
1199,
1769,
45,
921,
2603,
33,
1488,
4597,
18,
2640,
45,
921,
12,
3624,
16,
2938,
1769,
430,
12,
2603,
631,
2011,
13,
12849,
2704,
2041,
9992,
2932,
4515,
591,
502,
869,
489,
1199,
1769,
45,
921,
4824,
33,
11127,
18,
2640,
921,
12,
2603,
16,
12,
2704,
52,
10007,
1320,
1435,
2934,
1458,
10663,
759,
21881,
2896,
6119,
33,
52,
10007,
4597,
18,
345,
21881,
12,
4824,
1769,
430,
12,
2938,
5,
33,
2011,
13,
1488,
4597,
18,
1232,
3054,
774,
1763,
12,
4824,
2
] |
||
double[][] result = new double[numRows][numColumns];
|
if (result == null || result.length != numRows || (result.length>0 && result[0].length != numColumns)) result = new double[numRows][numColumns]; zeroArray(result);
|
public static double[][] squnch(double[][] matrix){ int numRows = numFullRows(matrix); int numColumns = numFullColumns(matrix); if (numRows==0 || numColumns==0) return null; double[][] result = new double[numRows][numColumns]; //flip columns for (int i=0; i<numColumns; i++) { for (int j=0; j<numRows; j++) { result[i][numRows - j - 1]=matrix[i][j]; } } //flip rows for (int i=0; i<numColumns/2; i++) { for (int j=0; j<numRows; j++) { double t = result[numColumns-i-1][j]; result[numColumns-i-1][j]=result[i][j]; result[i][j] = t; } } return result; }
|
55939 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55939/279a63263cbe07262c23c7961874843cf701f07a/Double2DArray.java/buggy/Source/mesquite/lib/Double2DArray.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
63,
6362,
65,
4744,
4384,
12,
9056,
63,
6362,
65,
3148,
15329,
202,
202,
474,
12934,
273,
818,
5080,
4300,
12,
5667,
1769,
202,
202,
474,
30109,
273,
818,
5080,
3380,
12,
5667,
1769,
202,
202,
430,
261,
2107,
4300,
631,
20,
747,
225,
30109,
631,
20,
13,
1082,
202,
2463,
446,
31,
21114,
202,
9056,
63,
6362,
65,
563,
273,
394,
1645,
63,
2107,
4300,
6362,
2107,
3380,
15533,
202,
202,
759,
12357,
2168,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
2107,
3380,
31,
277,
27245,
288,
1082,
202,
1884,
261,
474,
525,
33,
20,
31,
525,
32,
2107,
4300,
31,
525,
27245,
288,
9506,
202,
2088,
63,
77,
6362,
2107,
4300,
300,
525,
300,
404,
65,
33,
5667,
63,
77,
6362,
78,
15533,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
12357,
2595,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
2107,
3380,
19,
22,
31,
277,
27245,
288,
1082,
202,
1884,
261,
474,
525,
33,
20,
31,
525,
32,
2107,
4300,
31,
525,
27245,
288,
9506,
202,
9056,
268,
273,
563,
63,
2107,
3380,
17,
77,
17,
21,
6362,
78,
15533,
9506,
202,
2088,
63,
2107,
3380,
17,
77,
17,
21,
6362,
78,
65,
33,
2088,
63,
77,
6362,
78,
15533,
9506,
202,
2088,
63,
77,
6362,
78,
65,
273,
268,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
563,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
63,
6362,
65,
4744,
4384,
12,
9056,
63,
6362,
65,
3148,
15329,
202,
202,
474,
12934,
273,
818,
5080,
4300,
12,
5667,
1769,
202,
202,
474,
30109,
273,
818,
5080,
3380,
12,
5667,
1769,
202,
202,
430,
261,
2107,
4300,
631,
20,
747,
225,
30109,
631,
20,
13,
1082,
202,
2463,
446,
31,
21114,
202,
9056,
63,
6362,
65,
563,
273,
394,
1645,
63,
2107,
4300,
6362,
2107,
3380,
15533,
202,
202,
759,
12357,
2168,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
2107,
3380,
31,
277,
27245,
288,
1082,
202,
1884,
261,
474,
525,
33,
20,
31,
525,
32,
2107,
4300,
31,
525,
27245,
288,
9506,
202,
2088,
63,
77,
2
] |
_ignore = true;
|
public void translate(ClassGenerator classGen, MethodGenerator methodGen) { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); if (_ignore) return; // _ignore = true; /* * To fix bug 24518 related to setting parameters of the form * {namespaceuri}localName * which will get mapped to an instance variable in the class * Hence a parameter of the form "{http://foo.bar}xyz" * will be replaced with the corresponding values * by the BasisLibrary's utility method mapQNametoJavaName * and thus get mapped to legal java variable names */ final String name = BasisLibrary.mapQNameToJavaName(_name.toString()); final String signature = _type.toSignature(); final String className = _type.getClassName(); if (isLocal()) { // %OPT% Only translate the value and put it on the // stack if this Param is in a simple named template. // No need to call Translet.addParameter(). if (_isInSimpleNamedTemplate) { translateValue(classGen, methodGen); return; } il.append(classGen.loadTranslet()); il.append(new PUSH(cpg, name)); translateValue(classGen, methodGen); il.append(new PUSH(cpg, true)); // Call addParameter() from this class il.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS, ADD_PARAMETER, ADD_PARAMETER_SIG))); if (className != EMPTYSTRING) { il.append(new CHECKCAST(cpg.addClass(className))); } _type.translateUnBox(classGen, methodGen); if (_refs.isEmpty()) { // nobody uses the value il.append(_type.POP()); _local = null; } else { // normal case _local = methodGen.addLocalVariable2(name, _type.toJCType(), il.getEnd()); // Cache the result of addParameter() in a local variable il.append(_type.STORE(_local.getIndex())); } } else { if (classGen.containsField(name) == null) { classGen.addField(new Field(ACC_PUBLIC, cpg.addUtf8(name), cpg.addUtf8(signature), null, cpg.getConstantPool())); il.append(classGen.loadTranslet()); il.append(DUP); il.append(new PUSH(cpg, name)); translateValue(classGen, methodGen); il.append(new PUSH(cpg, true)); // Call addParameter() from this class il.append(new INVOKEVIRTUAL(cpg.addMethodref(TRANSLET_CLASS, ADD_PARAMETER, ADD_PARAMETER_SIG))); _type.translateUnBox(classGen, methodGen); // Cache the result of addParameter() in a field if (className != EMPTYSTRING) { il.append(new CHECKCAST(cpg.addClass(className))); } il.append(new PUTFIELD(cpg.addFieldref(classGen.getClassName(), name, signature))); } } }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/b44c885dcfd35b5393ef737d9e0cc87a3fdb25da/Param.java/clean/src/org/apache/xalan/xsltc/compiler/Param.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
1071,
67,
6185,
273,
638,
31,
918,
67,
6185,
273,
638,
31,
4204,
12,
797,
3908,
67,
6185,
273,
638,
31,
667,
7642,
16,
67,
6185,
273,
638,
31,
2985,
3908,
67,
6185,
273,
638,
31,
707,
7642,
13,
67,
6185,
273,
638,
31,
288,
202,
6385,
67,
6185,
273,
638,
31,
10551,
2864,
7642,
67,
6185,
273,
638,
31,
3283,
75,
67,
6185,
273,
638,
31,
273,
67,
6185,
273,
638,
31,
667,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
67,
6185,
273,
638,
31,
24605,
682,
67,
6185,
273,
638,
31,
14254,
67,
6185,
273,
638,
31,
273,
67,
6185,
273,
638,
31,
707,
7642,
18,
588,
11983,
682,
5621,
202,
430,
67,
6185,
273,
638,
31,
261,
67,
6185,
13,
67,
6185,
273,
638,
31,
327,
31,
202,
759,
67,
6185,
273,
638,
31,
389,
6185,
67,
6185,
273,
638,
31,
273,
67,
6185,
273,
638,
31,
638,
31,
67,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
1748,
67,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
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,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
389,
6185,
273,
638,
31,
1071,
67,
6185,
273,
638,
31,
918,
67,
6185,
273,
638,
31,
4204,
12,
797,
3908,
67,
6185,
273,
638,
31,
667,
7642,
16,
67,
6185,
273,
638,
31,
2985,
3908,
67,
6185,
273,
638,
31,
707,
7642,
13,
67,
6185,
273,
638,
31,
288,
202,
6385,
67,
6185,
273,
638,
31,
10551,
2864,
7642,
67,
6185,
273,
638,
31,
3283,
75,
67,
6185,
273,
638,
31,
273,
67,
6185,
273,
638,
31,
667,
7642,
18,
588,
6902,
2864,
5621,
202,
6385,
67,
6185,
273,
638,
31,
24605,
682,
67,
6185,
273,
638,
31,
14254,
67,
6185,
273,
638,
2
] |
|
curFrame = addWindow(false); }
|
quit = true; while (!animatorStopped) { try { Thread.sleep(1); } catch (InterruptedException e) { } } System.exit(0); }
|
public void run() { curFrame = addWindow(false); }
|
56950 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56950/0afd53cb292d371c562aac7bb0e162ee2ff40bac/JRefract.java/buggy/src/demos/jrefract/JRefract.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
10402,
1071,
918,
1086,
1435,
288,
10792,
662,
3219,
273,
527,
3829,
12,
5743,
1769,
5375,
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,
10402,
1071,
918,
1086,
1435,
288,
10792,
662,
3219,
273,
527,
3829,
12,
5743,
1769,
5375,
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
] |
pages.add(index, page);
|
pages.addElement(page);
|
public void addPage(String id, IPDEEditorPage page, int index) { table.put(id, page); pages.add(index, page); }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/01f216e7b15d4bafc29532e73b81611b5b16641e/PDEMultiPageEditor.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/PDEMultiPageEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
1964,
12,
780,
612,
16,
2971,
1639,
6946,
1964,
1363,
16,
509,
770,
13,
288,
202,
202,
2121,
18,
458,
12,
350,
16,
1363,
1769,
202,
202,
7267,
18,
1289,
12,
1615,
16,
1363,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
1964,
12,
780,
612,
16,
2971,
1639,
6946,
1964,
1363,
16,
509,
770,
13,
288,
202,
202,
2121,
18,
458,
12,
350,
16,
1363,
1769,
202,
202,
7267,
18,
1289,
12,
1615,
16,
1363,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.info("Loading from perference file version " + version);
|
log.info("Loading from preference file version " + version);
|
public void load() throws IOException { FileInputStream is = null; try { is = new FileInputStream(prefFile); final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setIgnoringElementContentWhitespace(true); dbf.setValidating(false); dbf.setCoalescing(true); dbf.setIgnoringComments(true); Document doc = null; try { DocumentBuilder db = dbf.newDocumentBuilder(); InputSource inputSource = new InputSource(is); doc = db.parse(is); } catch (ParserConfigurationException e) { log.error("Got exception while parsing preference file", e); throw new Error(e); } catch (SAXException e) { log.error("Got exception while parsing preference file", e); throw new Error(e); } final Element rootElement = doc.getDocumentElement(); if (rootElement.hasAttribute(VERSION_ATTRIBUTE)) { final String version = rootElement.getAttribute(VERSION_ATTRIBUTE); final String[] versionParts = version.split("\\.", 2); if (PREF_FILE_VERSION_MAJOR != Integer.parseInt(versionParts[0])) { final String message = "Cannot load preferences file version " + version + " current version is " + PREF_FILE_VERSION_MAJOR + "." + PREF_FILE_VERSION_MINOR; log.error(message); throw new Error(message); } if (log.isInfoEnabled()) { log.info("Loading from perference file version " + version); } } else { log.warn("Root element does not have a version, trying to log anyway"); } final PropertyLoader loader = new PropertyLoader() { public void addEntry(String key, String value) { putValue(key, value); } public void addProperties(final String key, final Element propertiesElement) { final Properties properties = new Properties(); final PropertyLoader propertiesLoader = new PropertyLoader() { public void addEntry(final String k, final String v) { properties.setProperty(k, v); } public void addProperties(final String k, final Element element) { log.warn("Nested properties not supported, ignoring key " + k); } }; loadProperties(propertiesElement, propertiesLoader); propertiesTable.put(key, properties); } }; loadProperties(rootElement, loader); } finally { if (is != null) is.close(); } }
|
4785 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4785/5ca2405590cfd724966c0c8c587373c44928cd23/ComplexPreferenceStore.java/clean/src/net/ggtools/grand/ui/prefs/ComplexPreferenceStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
1435,
1216,
1860,
288,
3639,
11907,
353,
273,
446,
31,
3639,
775,
288,
5411,
353,
273,
394,
11907,
12,
25724,
812,
1769,
5411,
727,
30236,
1319,
74,
273,
30236,
18,
2704,
1442,
5621,
5411,
1319,
74,
18,
542,
21702,
1046,
1350,
9431,
12,
3767,
1769,
5411,
1319,
74,
18,
542,
31496,
12,
5743,
1769,
5411,
1319,
74,
18,
542,
4249,
287,
742,
310,
12,
3767,
1769,
5411,
1319,
74,
18,
542,
21702,
9051,
12,
3767,
1769,
5411,
4319,
997,
273,
446,
31,
5411,
775,
288,
7734,
4319,
1263,
1319,
273,
1319,
74,
18,
2704,
2519,
1263,
5621,
7734,
23699,
810,
1830,
273,
394,
23699,
12,
291,
1769,
7734,
997,
273,
1319,
18,
2670,
12,
291,
1769,
5411,
289,
1044,
261,
2678,
10737,
425,
13,
288,
7734,
613,
18,
1636,
2932,
15617,
1520,
1323,
5811,
11555,
585,
3113,
425,
1769,
7734,
604,
394,
1068,
12,
73,
1769,
5411,
289,
1044,
261,
55,
2501,
503,
425,
13,
288,
7734,
613,
18,
1636,
2932,
15617,
1520,
1323,
5811,
11555,
585,
3113,
425,
1769,
7734,
604,
394,
1068,
12,
73,
1769,
5411,
289,
5411,
727,
3010,
27575,
273,
997,
18,
588,
2519,
1046,
5621,
5411,
309,
261,
3085,
1046,
18,
5332,
1499,
12,
5757,
67,
11616,
3719,
288,
7734,
727,
514,
1177,
273,
27575,
18,
588,
1499,
12,
5757,
67,
11616,
1769,
7734,
727,
514,
8526,
1177,
4305,
273,
1177,
18,
4939,
2932,
1695,
1199,
16,
576,
1769,
7734,
309,
261,
3670,
42,
67,
3776,
67,
5757,
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,
1262,
1435,
1216,
1860,
288,
3639,
11907,
353,
273,
446,
31,
3639,
775,
288,
5411,
353,
273,
394,
11907,
12,
25724,
812,
1769,
5411,
727,
30236,
1319,
74,
273,
30236,
18,
2704,
1442,
5621,
5411,
1319,
74,
18,
542,
21702,
1046,
1350,
9431,
12,
3767,
1769,
5411,
1319,
74,
18,
542,
31496,
12,
5743,
1769,
5411,
1319,
74,
18,
542,
4249,
287,
742,
310,
12,
3767,
1769,
5411,
1319,
74,
18,
542,
21702,
9051,
12,
3767,
1769,
5411,
4319,
997,
273,
446,
31,
5411,
775,
288,
7734,
4319,
1263,
1319,
273,
1319,
74,
18,
2704,
2519,
1263,
5621,
7734,
23699,
810,
1830,
273,
394,
23699,
12,
291,
1769,
7734,
997,
273,
1319,
18,
2670,
12,
291,
2
] |
mimeName = val;
|
mimeName = javaName; highChar = '\u0000';
|
private static EncodingInfo[] loadEncodingInfo() { try { final InputStream is; SecuritySupport ss = SecuritySupport.getInstance(); is = ss.getResourceAsStream(ObjectFactory.findClassLoader(), ENCODINGS_FILE); Properties props = new Properties(); if (is != null) { props.load(is); is.close(); } else { // Seems to be no real need to force failure here, let the // system do its best... The issue is not really very critical, // and the output will be in any case _correct_ though maybe not // always human-friendly... :) // But maybe report/log the resource problem? // Any standard ways to report/log errors (in static context)? } int totalEntries = props.size(); int totalMimeNames = 0; Enumeration keys = props.keys(); for (int i = 0; i < totalEntries; ++i) { String javaName = (String) keys.nextElement(); String val = props.getProperty(javaName); totalMimeNames++; int pos = val.indexOf(' '); for (int j = 0; j < pos; ++j) if (val.charAt(j) == ',') totalMimeNames++; } EncodingInfo[] ret = new EncodingInfo[totalMimeNames]; int j = 0; keys = props.keys(); for (int i = 0; i < totalEntries; ++i) { String javaName = (String) keys.nextElement(); String val = props.getProperty(javaName); int pos = val.indexOf(' '); String mimeName; if (pos < 0) { // Maybe report/log this problem? // "Last printable character not defined for encoding " + // mimeName + " (" + val + ")" ... mimeName = val; } else { StringTokenizer st = new StringTokenizer(val.substring(0, pos), ","); for (boolean first = true; st.hasMoreTokens(); first = false) { mimeName = st.nextToken(); ret[j] = new EncodingInfo(mimeName, javaName); _encodingTableKeyMime.put( mimeName.toUpperCase(), ret[j]); if (first) _encodingTableKeyJava.put( javaName.toUpperCase(), ret[j]); j++; } } } return ret; } catch (java.net.MalformedURLException mue) { throw new org.apache.xml.serializer.utils.WrappedRuntimeException(mue); } catch (java.io.IOException ioe) { throw new org.apache.xml.serializer.utils.WrappedRuntimeException(ioe); } }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/37a8fa64015304395a1cba577f7c2c36b912ea28/Encodings.java/clean/src/org/apache/xml/serializer/Encodings.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
13400,
966,
8526,
1262,
4705,
966,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
727,
5037,
353,
31,
11794,
6036,
6289,
5202,
273,
6036,
6289,
18,
588,
1442,
5621,
5411,
353,
273,
5202,
18,
588,
1420,
17052,
12,
921,
1733,
18,
4720,
7805,
9334,
4766,
5411,
22810,
55,
67,
3776,
1769,
5411,
6183,
3458,
273,
394,
6183,
5621,
5411,
309,
261,
291,
480,
446,
13,
288,
7734,
3458,
18,
945,
12,
291,
1769,
7734,
353,
18,
4412,
5621,
5411,
289,
469,
288,
7734,
368,
3265,
7424,
358,
506,
1158,
2863,
1608,
358,
2944,
5166,
2674,
16,
2231,
326,
7734,
368,
2619,
741,
2097,
3796,
2777,
1021,
5672,
353,
486,
8654,
8572,
11239,
16,
7734,
368,
471,
326,
876,
903,
506,
316,
1281,
648,
389,
6746,
67,
11376,
6944,
486,
7734,
368,
3712,
8672,
17,
29111,
2777,
294,
13,
7734,
368,
12484,
6944,
2605,
19,
1330,
326,
1058,
6199,
35,
7734,
368,
5502,
4529,
16226,
358,
2605,
19,
1330,
1334,
261,
267,
760,
819,
9945,
5411,
289,
5411,
509,
2078,
5400,
273,
3458,
18,
1467,
5621,
5411,
509,
2078,
13320,
1557,
273,
374,
31,
5411,
13864,
1311,
273,
3458,
18,
2452,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2078,
5400,
31,
965,
77,
13,
5411,
288,
7734,
514,
2252,
461,
273,
261,
780,
13,
1311,
18,
4285,
1046,
5621,
7734,
514,
1244,
273,
3458,
18,
588,
1396,
12,
6290,
461,
1769,
7734,
2078,
13320,
1557,
9904,
31,
7734,
509,
949,
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,
3238,
760,
13400,
966,
8526,
1262,
4705,
966,
1435,
565,
288,
3639,
775,
3639,
288,
5411,
727,
5037,
353,
31,
11794,
6036,
6289,
5202,
273,
6036,
6289,
18,
588,
1442,
5621,
5411,
353,
273,
5202,
18,
588,
1420,
17052,
12,
921,
1733,
18,
4720,
7805,
9334,
4766,
5411,
22810,
55,
67,
3776,
1769,
5411,
6183,
3458,
273,
394,
6183,
5621,
5411,
309,
261,
291,
480,
446,
13,
288,
7734,
3458,
18,
945,
12,
291,
1769,
7734,
353,
18,
4412,
5621,
5411,
289,
469,
288,
7734,
368,
3265,
7424,
358,
506,
1158,
2863,
1608,
358,
2944,
5166,
2674,
16,
2231,
326,
7734,
368,
2619,
741,
2097,
3796,
2777,
1021,
5672,
353,
486,
8654,
8572,
11239,
16,
7734,
368,
471,
2
] |
short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) return false; break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) return false; break; case DESCENDANT_OR_SELF: return true; default: return false; } int tlen = tests.length; if (tlen > 0) { int pos = getContextPosition(context); int len = getContextSize(context); if (len == 0) System.err.println("WARNING: context size is 0"); for (int j = 0; j < tlen && len > 0; j++) { Test test = tests[j]; if (!test.matches(context, pos, len)) return false; } } return true;
|
return matches(context, getContextPosition(context), getContextSize(context));
|
public boolean matches(Node context) { short nodeType = context.getNodeType(); switch (axis) { case CHILD: if (nodeType == Node.ATTRIBUTE_NODE) return false; break; case ATTRIBUTE: case NAMESPACE: if (nodeType != Node.ATTRIBUTE_NODE) return false; break; case DESCENDANT_OR_SELF: return true; default: return false; } int tlen = tests.length; if (tlen > 0) { int pos = getContextPosition(context); int len = getContextSize(context); if (len == 0) System.err.println("WARNING: context size is 0"); for (int j = 0; j < tlen && len > 0; j++) { Test test = tests[j]; if (!test.matches(context, pos, len)) return false; } } return true; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e661cf1a3762c80fbf5e790baa87062e03571f13/Selector.java/clean/core/src/classpath/gnu/gnu/xml/xpath/Selector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1885,
12,
907,
819,
13,
225,
288,
565,
3025,
9507,
273,
819,
18,
588,
15101,
5621,
565,
1620,
261,
4890,
13,
1377,
288,
1377,
648,
6469,
11382,
30,
3639,
309,
261,
2159,
559,
422,
2029,
18,
11616,
67,
8744,
13,
5411,
327,
629,
31,
3639,
898,
31,
1377,
648,
15941,
30,
1377,
648,
18494,
30,
3639,
309,
261,
2159,
559,
480,
2029,
18,
11616,
67,
8744,
13,
5411,
327,
629,
31,
3639,
898,
31,
1377,
648,
14326,
4415,
6856,
67,
916,
67,
26280,
30,
3639,
327,
638,
31,
1377,
805,
30,
3639,
327,
629,
31,
1377,
289,
565,
509,
268,
1897,
273,
7434,
18,
2469,
31,
565,
309,
261,
27560,
405,
374,
13,
1377,
288,
3639,
509,
949,
273,
6474,
2555,
12,
2472,
1769,
3639,
509,
562,
273,
6474,
1225,
12,
2472,
1769,
3639,
309,
261,
1897,
422,
374,
13,
1850,
2332,
18,
370,
18,
8222,
2932,
9511,
30,
819,
963,
353,
374,
8863,
3639,
364,
261,
474,
525,
273,
374,
31,
525,
411,
268,
1897,
597,
562,
405,
374,
31,
525,
27245,
1850,
288,
5411,
7766,
1842,
273,
7434,
63,
78,
15533,
5411,
309,
16051,
3813,
18,
8436,
12,
2472,
16,
949,
16,
562,
3719,
7734,
327,
629,
31,
2868,
289,
1850,
289,
565,
327,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
1885,
12,
907,
819,
13,
225,
288,
565,
3025,
9507,
273,
819,
18,
588,
15101,
5621,
565,
1620,
261,
4890,
13,
1377,
288,
1377,
648,
6469,
11382,
30,
3639,
309,
261,
2159,
559,
422,
2029,
18,
11616,
67,
8744,
13,
5411,
327,
629,
31,
3639,
898,
31,
1377,
648,
15941,
30,
1377,
648,
18494,
30,
3639,
309,
261,
2159,
559,
480,
2029,
18,
11616,
67,
8744,
13,
5411,
327,
629,
31,
3639,
898,
31,
1377,
648,
14326,
4415,
6856,
67,
916,
67,
26280,
30,
3639,
327,
638,
31,
1377,
805,
30,
3639,
327,
629,
31,
1377,
289,
565,
509,
268,
1897,
273,
7434,
18,
2469,
31,
565,
309,
261,
27560,
405,
374,
13,
1377,
288,
3639,
2
] |
*/
|
private ASTNode findElementAt(final int offset) { if (myUseAllTrees) { final PsiElement psiElement = myASTNode.getPsi().findElementAt(offset); if (psiElement == null) return null; /* if (psiElement.getTextRange().getStartOffset() != offset) { return null; } */ return psiElement.getNode(); } else { final ASTNode result = myASTNode.findLeafElementAt(offset); if (result == null) return null; /* if (result.getTextRange().getStartOffset() != offset) { return null; } */ return result; } }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/6ce7c98a2360d6e162942ea6dca29dde996fdb9b/PsiBasedFormattingModel.java/clean/source/com/intellij/psi/formatter/PsiBasedFormattingModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
9183,
907,
1104,
1046,
861,
12,
6385,
509,
1384,
13,
288,
565,
309,
261,
4811,
3727,
1595,
26590,
13,
288,
1377,
727,
453,
7722,
1046,
23921,
1046,
273,
3399,
9053,
907,
18,
588,
52,
7722,
7675,
4720,
1046,
861,
12,
3348,
1769,
1377,
309,
261,
24275,
1046,
422,
446,
13,
327,
446,
31,
1377,
1748,
1377,
309,
261,
24275,
1046,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
1435,
480,
1384,
13,
288,
3639,
327,
446,
31,
1377,
289,
6647,
327,
23921,
1046,
18,
588,
907,
5621,
565,
289,
565,
469,
288,
1377,
727,
9183,
907,
563,
273,
3399,
9053,
907,
18,
4720,
9858,
1046,
861,
12,
3348,
1769,
1377,
309,
261,
2088,
422,
446,
13,
327,
446,
31,
1377,
1748,
1377,
309,
261,
2088,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
1435,
480,
1384,
13,
288,
3639,
327,
446,
31,
1377,
289,
1171,
327,
563,
31,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
3238,
9183,
907,
1104,
1046,
861,
12,
6385,
509,
1384,
13,
288,
565,
309,
261,
4811,
3727,
1595,
26590,
13,
288,
1377,
727,
453,
7722,
1046,
23921,
1046,
273,
3399,
9053,
907,
18,
588,
52,
7722,
7675,
4720,
1046,
861,
12,
3348,
1769,
1377,
309,
261,
24275,
1046,
422,
446,
13,
327,
446,
31,
1377,
1748,
1377,
309,
261,
24275,
1046,
18,
588,
1528,
2655,
7675,
588,
1685,
2335,
1435,
480,
1384,
13,
288,
3639,
327,
446,
31,
1377,
289,
6647,
327,
23921,
1046,
18,
588,
907,
5621,
565,
289,
565,
469,
288,
1377,
727,
9183,
907,
563,
273,
3399,
9053,
907,
18,
4720,
9858,
1046,
861,
12,
3348,
1769,
1377,
309,
261,
2088,
422,
446,
13,
327,
2
] |
|
run("./CyclicDistWithPlaceSet.x10","CyclicDistWithPlaceSet","./Constructs/Distribution"); }
|
runHelper(); }
|
public void test_Constructs_Distribution_CyclicDistWithPlaceSet() { run("./CyclicDistWithPlaceSet.x10","CyclicDistWithPlaceSet","./Constructs/Distribution"); }
|
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/3bd1027a0e8a0edbdacb19b952cc4296d36760df/TestCompiler.java/clean/x10.test/src/polyglot/ext/x10/tests/TestCompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
13262,
67,
9003,
67,
17992,
18964,
5133,
1190,
6029,
694,
1435,
288,
3639,
1086,
2932,
18,
19,
17992,
18964,
5133,
1190,
6029,
694,
18,
92,
2163,
15937,
17992,
18964,
5133,
1190,
6029,
694,
3113,
9654,
19,
13262,
19,
9003,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
13262,
67,
9003,
67,
17992,
18964,
5133,
1190,
6029,
694,
1435,
288,
3639,
1086,
2932,
18,
19,
17992,
18964,
5133,
1190,
6029,
694,
18,
92,
2163,
15937,
17992,
18964,
5133,
1190,
6029,
694,
3113,
9654,
19,
13262,
19,
9003,
8863,
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
] |
lock.wait(10);
|
Thread.sleep(10);
|
public void testPersistManyAlarmsAtOnce() throws InterruptedException { int numberOfAlarmsToReduce = 10; //there should be no alarms in the alarms table assertEquals(0, m_db.countRows("select * from alarms")); final String reductionKey = "countThese"; final MockNode node = m_network.getNode(1); final long millis = System.currentTimeMillis()+2500; for (int i=1; i<= numberOfAlarmsToReduce; i++) { MockUtil.println("Creating Runnable: "+i+" of "+numberOfAlarmsToReduce+" events to reduce."); class EventRunner implements Runnable { Object lock = new Object(); public void run() { synchronized (lock) { while (System.currentTimeMillis() < millis) { try { lock.wait(10); } catch (InterruptedException e) { MockUtil.println(e.getMessage()); } } sendNodeDownEvent(reductionKey, node); } } } Runnable r = new EventRunner(); r.run(); } sleep(5000); //this should be the first occurrence of this alarm //there should be 1 alarm now int rowCount = m_db.countRows("select * from alarms"); Integer counterColumn = m_db.getAlarmCount(reductionKey); MockUtil.println("rowcCount is: "+rowCount+", expected 1."); MockUtil.println("counterColumn is: "+counterColumn+", expected "+numberOfAlarmsToReduce); assertEquals(1, rowCount); assertEquals(numberOfAlarmsToReduce, counterColumn.intValue()); }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/b6070de31fbe4619461fa1179f780bd207ab3ab8/EventdTest.java/clean/src/services/org/opennms/netmgt/eventd/EventdTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12771,
5594,
1067,
20452,
861,
12212,
1435,
1216,
7558,
288,
7734,
509,
7922,
1067,
20452,
774,
12944,
273,
1728,
31,
3639,
368,
18664,
1410,
506,
1158,
524,
20452,
316,
326,
524,
20452,
1014,
3639,
1815,
8867,
12,
20,
16,
312,
67,
1966,
18,
1883,
4300,
2932,
4025,
380,
628,
524,
20452,
7923,
1769,
540,
727,
514,
20176,
653,
273,
315,
1883,
29690,
14432,
3639,
727,
7867,
907,
756,
273,
312,
67,
5185,
18,
588,
907,
12,
21,
1769,
7734,
727,
1525,
14833,
273,
2332,
18,
2972,
28512,
1435,
15,
2947,
713,
31,
7734,
364,
261,
474,
277,
33,
21,
31,
277,
32,
33,
7922,
1067,
20452,
774,
12944,
31,
277,
27245,
288,
5411,
7867,
1304,
18,
8222,
2932,
11092,
10254,
30,
13773,
77,
9078,
434,
13773,
2696,
951,
1067,
20452,
774,
12944,
9078,
2641,
358,
5459,
1199,
1769,
5411,
667,
2587,
9709,
4792,
10254,
288,
7734,
1033,
2176,
273,
394,
1033,
5621,
7734,
1071,
918,
1086,
1435,
288,
10792,
3852,
261,
739,
13,
288,
13491,
1323,
261,
3163,
18,
2972,
28512,
1435,
411,
14833,
13,
288,
18701,
775,
288,
4766,
4884,
18,
19607,
12,
2163,
1769,
18701,
289,
1044,
261,
24485,
503,
425,
13,
288,
27573,
7867,
1304,
18,
8222,
12,
73,
18,
24906,
10663,
18701,
289,
13491,
289,
13491,
1366,
907,
4164,
1133,
12,
1118,
4062,
653,
16,
756,
1769,
4766,
3639,
289,
7734,
289,
5411,
289,
13491,
10254,
436,
273,
394,
2587,
9709,
5621,
5411,
436,
18,
2681,
5621,
3639,
289,
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,
12771,
5594,
1067,
20452,
861,
12212,
1435,
1216,
7558,
288,
7734,
509,
7922,
1067,
20452,
774,
12944,
273,
1728,
31,
3639,
368,
18664,
1410,
506,
1158,
524,
20452,
316,
326,
524,
20452,
1014,
3639,
1815,
8867,
12,
20,
16,
312,
67,
1966,
18,
1883,
4300,
2932,
4025,
380,
628,
524,
20452,
7923,
1769,
540,
727,
514,
20176,
653,
273,
315,
1883,
29690,
14432,
3639,
727,
7867,
907,
756,
273,
312,
67,
5185,
18,
588,
907,
12,
21,
1769,
7734,
727,
1525,
14833,
273,
2332,
18,
2972,
28512,
1435,
15,
2947,
713,
31,
7734,
364,
261,
474,
277,
33,
21,
31,
277,
32,
33,
7922,
1067,
20452,
774,
12944,
31,
277,
27245,
288,
5411,
7867,
1304,
2
] |
result = runtime.getClasses().getObjectClass().getConstant("JavaUtilities").callMethod( "wrap", new IRubyObject[] { result, runtime.newString(BSFFunctions.class.getName())});
|
result = runtime.getObject().getConstant("JavaUtilities").callMethod("wrap", new IRubyObject[] { result, runtime.newString(BSFFunctions.class.getName())});
|
public IRubyObject getValue() { IRubyObject result = JavaUtil.convertJavaToRuby(runtime, functions, BSFFunctions.class); if (result instanceof JavaObject) { runtime.getLoadService().require("java"); result = runtime.getClasses().getObjectClass().getConstant("JavaUtilities").callMethod( "wrap", new IRubyObject[] { result, runtime.newString(BSFFunctions.class.getName())}); } return result; }
|
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/ca6b16e996ea9af83ce593594b9c69b9364a9924/JRubyEngine.java/buggy/src/org/jruby/javasupport/bsf/JRubyEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
15908,
10340,
921,
2366,
1435,
288,
5411,
15908,
10340,
921,
563,
273,
5110,
1304,
18,
6283,
5852,
774,
54,
10340,
12,
9448,
16,
4186,
16,
605,
22395,
7503,
18,
1106,
1769,
5411,
309,
261,
2088,
1276,
5110,
921,
13,
288,
7734,
3099,
18,
588,
2563,
1179,
7675,
6528,
2932,
6290,
8863,
7734,
563,
273,
10792,
3099,
18,
588,
4818,
7675,
588,
921,
797,
7675,
588,
6902,
2932,
5852,
11864,
20387,
1991,
1305,
12,
13491,
315,
4113,
3113,
13491,
394,
15908,
10340,
921,
8526,
288,
563,
16,
3099,
18,
2704,
780,
12,
12692,
42,
7503,
18,
1106,
18,
17994,
10756,
22938,
5411,
289,
5411,
327,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
15908,
10340,
921,
2366,
1435,
288,
5411,
15908,
10340,
921,
563,
273,
5110,
1304,
18,
6283,
5852,
774,
54,
10340,
12,
9448,
16,
4186,
16,
605,
22395,
7503,
18,
1106,
1769,
5411,
309,
261,
2088,
1276,
5110,
921,
13,
288,
7734,
3099,
18,
588,
2563,
1179,
7675,
6528,
2932,
6290,
8863,
7734,
563,
273,
10792,
3099,
18,
588,
4818,
7675,
588,
921,
797,
7675,
588,
6902,
2932,
5852,
11864,
20387,
1991,
1305,
12,
13491,
315,
4113,
3113,
13491,
394,
15908,
10340,
921,
8526,
288,
563,
16,
3099,
18,
2704,
780,
12,
12692,
42,
7503,
18,
1106,
18,
17994,
10756,
22938,
5411,
289,
5411,
327,
563,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assert symbol.owner() == currentMember(): show(tree);
|
private boolean function(Tree tree) { Symbol symbol = tree.symbol(); assert symbol != null && symbol.isTerm(): show(tree); assert symbol.isMethod(): show(tree); switch (tree) { case Select(Tree qualifier, _): return selection(tree); case Ident(_): if (symbol.isInitializer()) return true; assert labels.contains(symbol): show(tree); assert symbol.owner() == currentMember(): show(tree); return true; default: throw Debug.abort("illegal case", tree); } }
|
10130 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10130/e9be6dd996a78ec1f2581901d872280fb346607e/TreeChecker.java/buggy/sources/scalac/checkers/TreeChecker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
445,
12,
2471,
2151,
13,
288,
3639,
8565,
3273,
273,
2151,
18,
7175,
5621,
3639,
1815,
3273,
480,
446,
597,
3273,
18,
291,
4065,
13332,
2405,
12,
3413,
1769,
3639,
1815,
3273,
18,
291,
1305,
13332,
2405,
12,
3413,
1769,
3639,
1620,
261,
3413,
13,
288,
3639,
648,
6766,
12,
2471,
12327,
16,
389,
4672,
5411,
327,
4421,
12,
3413,
1769,
3639,
648,
13128,
24899,
4672,
5411,
309,
261,
7175,
18,
291,
14729,
10756,
327,
638,
31,
5411,
1815,
3249,
18,
12298,
12,
7175,
4672,
2405,
12,
3413,
1769,
13491,
327,
638,
31,
3639,
805,
30,
5411,
604,
4015,
18,
18623,
2932,
31751,
648,
3113,
2151,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
445,
12,
2471,
2151,
13,
288,
3639,
8565,
3273,
273,
2151,
18,
7175,
5621,
3639,
1815,
3273,
480,
446,
597,
3273,
18,
291,
4065,
13332,
2405,
12,
3413,
1769,
3639,
1815,
3273,
18,
291,
1305,
13332,
2405,
12,
3413,
1769,
3639,
1620,
261,
3413,
13,
288,
3639,
648,
6766,
12,
2471,
12327,
16,
389,
4672,
5411,
327,
4421,
12,
3413,
1769,
3639,
648,
13128,
24899,
4672,
5411,
309,
261,
7175,
18,
291,
14729,
10756,
327,
638,
31,
5411,
1815,
3249,
18,
12298,
12,
7175,
4672,
2405,
12,
3413,
1769,
13491,
327,
638,
31,
3639,
805,
30,
5411,
604,
4015,
18,
18623,
2932,
31751,
648,
3113,
2151,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
|
if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 14; else if (((int) optInTimePeriod < 2) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; if (startIdx < optInTimePeriod) startIdx = optInTimePeriod;
|
public TA_RetCode AROON(int startIdx, int endIdx, double inHigh[], double inLow[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outAroonDown[], double outAroonUp[]) { double lowest, highest, tmp, factor; int outIdx; int trailingIdx, lowestIdx, highestIdx, today, i; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 14; else if (((int) optInTimePeriod < 2) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; if (startIdx < optInTimePeriod) startIdx = optInTimePeriod; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } outIdx = 0; today = startIdx; trailingIdx = startIdx - optInTimePeriod; lowestIdx = -1; highestIdx = -1; lowest = 0.0; highest = 0.0; factor = (double) 100.0 / (double) optInTimePeriod; while (today <= endIdx) { tmp = inLow[today]; if (lowestIdx < trailingIdx) { lowestIdx = trailingIdx; lowest = inLow[lowestIdx]; i = lowestIdx; while (++i <= today) { tmp = inLow[i]; if (tmp <= lowest) { lowestIdx = i; lowest = tmp; } } } else if (tmp <= lowest) { lowestIdx = today; lowest = tmp; } tmp = inHigh[today]; if (highestIdx < trailingIdx) { highestIdx = trailingIdx; highest = inHigh[highestIdx]; i = highestIdx; while (++i <= today) { tmp = inHigh[i]; if (tmp >= highest) { highestIdx = i; highest = tmp; } } } else if (tmp >= highest) { highestIdx = today; highest = tmp; } outAroonUp[outIdx] = factor * (optInTimePeriod - (today - highestIdx)); outAroonDown[outIdx] = factor * (optInTimePeriod - (today - lowestIdx)); outIdx++; trailingIdx++; today++; } outBegIdx.value = startIdx; outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; }
|
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
432,
1457,
673,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
1082,
202,
49,
4522,
596,
22816,
1046,
16,
1645,
596,
37,
303,
265,
4164,
63,
6487,
1645,
596,
37,
303,
265,
1211,
63,
5717,
288,
202,
202,
9056,
11981,
16,
9742,
16,
1853,
16,
5578,
31,
202,
202,
474,
596,
4223,
31,
202,
202,
474,
7341,
4223,
16,
11981,
4223,
16,
9742,
4223,
16,
10074,
16,
277,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
202,
202,
430,
14015,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
202,
202,
430,
14015,
474,
13,
2153,
382,
26540,
422,
261,
4522,
18,
6236,
67,
4051,
8623,
1082,
202,
3838,
382,
26540,
273,
5045,
31,
202,
202,
12107,
309,
261,
12443,
474,
13,
2153,
382,
26540,
411,
576,
13,
9506,
202,
20081,
14015,
474,
13,
2153,
382,
26540,
405,
25259,
3719,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
67,
16234,
67,
8388,
31,
202,
202,
430,
261,
1937,
4223,
411,
2153,
382,
26540,
13,
1082,
202,
1937,
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,
399,
37,
67,
7055,
1085,
432,
1457,
673,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
509,
2153,
382,
26540,
16,
490,
4522,
596,
24059,
4223,
16,
1082,
202,
49,
4522,
596,
22816,
1046,
16,
1645,
596,
37,
303,
265,
4164,
63,
6487,
1645,
596,
37,
303,
265,
1211,
63,
5717,
288,
202,
202,
9056,
11981,
16,
9742,
16,
1853,
16,
5578,
31,
202,
202,
474,
596,
4223,
31,
202,
202,
474,
7341,
4223,
16,
11981,
4223,
16,
9742,
4223,
16,
10074,
16,
277,
31,
202,
202,
430,
261,
1937,
4223,
411,
374,
13,
1082,
202,
2463,
399,
37,
67,
7055,
1085,
18,
9833,
2
] |
|
fixnumClass.defineMethod("|", CallbackFactory.getMethod(RubyFixnum.class, "op_or", RubyInteger.class)); fixnumClass.defineMethod("^", CallbackFactory.getMethod(RubyFixnum.class, "op_xor", RubyInteger.class)); fixnumClass.defineMethod("[]", CallbackFactory.getMethod(RubyFixnum.class, "aref", RubyInteger.class));
|
public static RubyClass createFixnumClass(Ruby runtime) { RubyClass fixnumClass = new FixnumDefinition(runtime).getType(); fixnumClass.includeModule(runtime.getClasses().getPrecisionModule()); fixnumClass.defineMethod("|", CallbackFactory.getMethod(RubyFixnum.class, "op_or", RubyInteger.class)); fixnumClass.defineMethod("^", CallbackFactory.getMethod(RubyFixnum.class, "op_xor", RubyInteger.class)); fixnumClass.defineMethod("[]", CallbackFactory.getMethod(RubyFixnum.class, "aref", RubyInteger.class)); return fixnumClass; }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/db959c3e9bf8b9f3b30e1a76c6dac33d45d4abdd/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
8585,
2107,
797,
12,
54,
10340,
3099,
13,
288,
3639,
19817,
797,
2917,
2107,
797,
273,
394,
12139,
2107,
1852,
12,
9448,
2934,
588,
559,
5621,
3639,
2917,
2107,
797,
18,
6702,
3120,
12,
9448,
18,
588,
4818,
7675,
588,
15410,
3120,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
96,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
8585,
2107,
18,
1106,
16,
315,
556,
67,
280,
3113,
19817,
4522,
18,
1106,
10019,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
66,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
8585,
2107,
18,
1106,
16,
315,
556,
67,
31346,
3113,
19817,
4522,
18,
1106,
10019,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
8526,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
8585,
2107,
18,
1106,
16,
315,
834,
74,
3113,
19817,
4522,
18,
1106,
10019,
3639,
327,
2917,
2107,
797,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
8585,
2107,
797,
12,
54,
10340,
3099,
13,
288,
3639,
19817,
797,
2917,
2107,
797,
273,
394,
12139,
2107,
1852,
12,
9448,
2934,
588,
559,
5621,
3639,
2917,
2107,
797,
18,
6702,
3120,
12,
9448,
18,
588,
4818,
7675,
588,
15410,
3120,
10663,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
96,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
8585,
2107,
18,
1106,
16,
315,
556,
67,
280,
3113,
19817,
4522,
18,
1106,
10019,
3639,
2917,
2107,
797,
18,
11255,
1305,
2932,
66,
3113,
8444,
1733,
18,
588,
1305,
12,
54,
10340,
8585,
2107,
18,
1106,
16,
315,
556,
67,
31346,
3113,
19817,
4522,
18,
1106,
10019,
3639,
2917,
2107,
797,
2
] |
|
private void populateLists( Series series ) { // Populate DataPoint Components List cmbComponentTypes.setItems( LiteralHelper.dataPointComponentTypeSet.getDisplayNames( ) ); cmbComponentTypes.select( 0 ); // Populate Current list of DataPointComponents this.lstComponents.setItems( getDataPointComponents( series.getDataPoint( ) ) ); String str = series.getDataPoint( ).getPrefix( ); this.txtPrefix.setText( ( str == null ) ? "" : str ); //$NON-NLS-1$ str = series.getDataPoint( ).getSuffix( ); this.txtSuffix.setText( ( str == null ) ? "" : str ); //$NON-NLS-1$ str = series.getDataPoint( ).getSeparator( ); this.txtSeparator.setText( ( str == null ) ? "" : str ); //$NON-NLS-1$ // Position int positionScope = ( getSeriesForProcessing( ) instanceof PieSeries || getSeriesForProcessing( ) instanceof BarSeries ) ? LabelAttributesComposite.ALLOW_INOUT_POSITION : ( LabelAttributesComposite.ALLOW_HORIZONTAL_POSITION | LabelAttributesComposite.ALLOW_VERTICAL_POSITION ); Position lpCurrent = getSeriesForProcessing( ).getLabelPosition( ); if ( positionScope == LabelAttributesComposite.ALLOW_ALL_POSITION ) { cmbPosition.setItems( LiteralHelper.fullPositionSet.getDisplayNames( ) ); if ( lpCurrent != null ) { if ( context.getModel( ) instanceof ChartWithAxes ) { cmbPosition.select( LiteralHelper.fullPositionSet.getSafeNameIndex( ChartUIUtil.getFlippedPosition( lpCurrent, isFlippedAxes( ) ) .getName( ) ) ); } else { cmbPosition.select( LiteralHelper.fullPositionSet.getSafeNameIndex( lpCurrent.getName( ) ) ); } } } else { // check vertical if ( ( positionScope & LabelAttributesComposite.ALLOW_VERTICAL_POSITION ) != 0 ) { if ( context.getModel( ) instanceof ChartWithAxes && isFlippedAxes( ) ) { String[] ns = LiteralHelper.horizontalPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) { cmbPosition.add( ns[i] ); } } else { String[] ns = LiteralHelper.verticalPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) { cmbPosition.add( ns[i] ); } } } // check horizontal if ( ( positionScope & LabelAttributesComposite.ALLOW_HORIZONTAL_POSITION ) != 0 ) { if ( context.getModel( ) instanceof ChartWithAxes && isFlippedAxes( ) ) { String[] ns = LiteralHelper.verticalPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) { cmbPosition.add( ns[i] ); } } else { String[] ns = LiteralHelper.horizontalPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) { cmbPosition.add( ns[i] ); } } } // check inout if ( ( positionScope & LabelAttributesComposite.ALLOW_INOUT_POSITION ) != 0 ) { if ( ( getSeriesForProcessing( ) instanceof BarSeries ) && ( getContext( ).getModel( ).getDimension( ) == ChartDimension.THREE_DIMENSIONAL_LITERAL ) ) { cmbPosition.add( LiteralHelper.inoutPositionSet.getDisplayNameByName( Position.OUTSIDE_LITERAL.getName( ) ) ); } else { String[] ns = LiteralHelper.inoutPositionSet.getDisplayNames( ); for ( int i = 0; i < ns.length; i++ ) { cmbPosition.add( ns[i] ); } } } if ( lpCurrent != null ) { String positionName = null; if ( context.getModel( ) instanceof ChartWithAxes ) { positionName = ChartUIUtil.getFlippedPosition( lpCurrent, isFlippedAxes( ) ).getName( ); } else { positionName = lpCurrent.getName( ); } for ( int i = 0; i < cmbPosition.getItemCount( ); i++ ) { if ( positionName.equals( LiteralHelper.fullPositionSet.getNameByDisplayName( cmbPosition.getItem( i ) ) ) ) { cmbPosition.select( i ); } } } } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/93371f9edb7031999c819528b188b59e604dc2d9/SeriesLabelSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/series/SeriesLabelSheet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6490,
7432,
12,
9225,
4166,
262,
202,
95,
202,
202,
759,
22254,
1910,
2148,
25286,
987,
202,
202,
71,
1627,
1841,
2016,
18,
542,
3126,
12,
14392,
2276,
18,
892,
2148,
28116,
694,
18,
588,
4236,
1557,
12,
262,
11272,
202,
202,
71,
1627,
1841,
2016,
18,
4025,
12,
374,
11272,
202,
202,
759,
22254,
6562,
666,
434,
1910,
2148,
7171,
202,
202,
2211,
18,
16923,
7171,
18,
542,
3126,
12,
4303,
2148,
7171,
12,
4166,
18,
588,
751,
2148,
12,
262,
262,
11272,
202,
202,
780,
609,
273,
4166,
18,
588,
751,
2148,
12,
262,
18,
588,
2244,
12,
11272,
202,
202,
2211,
18,
5830,
2244,
18,
542,
1528,
12,
261,
609,
422,
446,
262,
692,
1408,
294,
609,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
701,
273,
4166,
18,
588,
751,
2148,
12,
262,
18,
588,
5791,
12,
11272,
202,
202,
2211,
18,
5830,
5791,
18,
542,
1528,
12,
261,
609,
422,
446,
262,
692,
1408,
294,
609,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
701,
273,
4166,
18,
588,
751,
2148,
12,
262,
18,
588,
6581,
12,
11272,
202,
202,
2211,
18,
5830,
6581,
18,
542,
1528,
12,
261,
609,
422,
446,
262,
692,
1408,
294,
609,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
759,
11010,
202,
202,
474,
1754,
3876,
273,
261,
336,
6485,
1290,
7798,
12,
262,
1276,
453,
1385,
6485,
747,
336,
6485,
1290,
7798,
12,
262,
1276,
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,
6490,
7432,
12,
9225,
4166,
262,
202,
95,
202,
202,
759,
22254,
1910,
2148,
25286,
987,
202,
202,
71,
1627,
1841,
2016,
18,
542,
3126,
12,
14392,
2276,
18,
892,
2148,
28116,
694,
18,
588,
4236,
1557,
12,
262,
11272,
202,
202,
71,
1627,
1841,
2016,
18,
4025,
12,
374,
11272,
202,
202,
759,
22254,
6562,
666,
434,
1910,
2148,
7171,
202,
202,
2211,
18,
16923,
7171,
18,
542,
3126,
12,
4303,
2148,
7171,
12,
4166,
18,
588,
751,
2148,
12,
262,
262,
11272,
202,
202,
780,
609,
273,
4166,
18,
588,
751,
2148,
12,
262,
18,
588,
2244,
12,
11272,
202,
202,
2211,
18,
5830,
2244,
18,
542,
1528,
12,
261,
609,
422,
446,
2
] |
||
ToolItem[] items = toolBar.getItems(); for (int i = 0; i < items.length; i++) { if (group.equals(items[i].getData())) { items[i].setSelection(true); break; } }
|
private void groupSelected(final WorkbenchPreferenceGroup group) { ToolItem[] items = toolBar.getItems(); for (int i = 0; i < items.length; i++) { if (group.equals(items[i].getData())) { items[i].setSelection(true); break; } } lastGroupId = group.getId(); currentGroup = group; getTreeViewer().setInput(group); Object selection = group.getLastSelection(); if (selection == null) selection = group.getGroupsAndNodes()[0]; getTreeViewer().setSelection(new StructuredSelection(selection), true); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d4d67dceb5dbb4048d0a4b85c19fefc85c43c319/WorkbenchPreferenceDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferenceDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1041,
7416,
12,
6385,
4147,
22144,
9624,
1114,
1041,
13,
288,
202,
202,
6364,
1180,
8526,
1516,
273,
5226,
5190,
18,
588,
3126,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
1655,
18,
14963,
12,
3319,
63,
77,
8009,
588,
751,
1435,
3719,
288,
9506,
202,
3319,
63,
77,
8009,
542,
6233,
12,
3767,
1769,
9506,
202,
8820,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2722,
8722,
273,
1041,
18,
26321,
5621,
202,
202,
2972,
1114,
273,
1041,
31,
202,
202,
588,
2471,
18415,
7675,
542,
1210,
12,
1655,
1769,
202,
202,
921,
4421,
273,
1041,
18,
588,
3024,
6233,
5621,
202,
202,
430,
261,
10705,
422,
446,
13,
1082,
202,
10705,
273,
1041,
18,
588,
3621,
1876,
3205,
1435,
63,
20,
15533,
202,
202,
588,
2471,
18415,
7675,
542,
6233,
12,
2704,
7362,
2862,
6233,
12,
10705,
3631,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
918,
1041,
7416,
12,
6385,
4147,
22144,
9624,
1114,
1041,
13,
288,
202,
202,
6364,
1180,
8526,
1516,
273,
5226,
5190,
18,
588,
3126,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1516,
18,
2469,
31,
277,
27245,
288,
1082,
202,
430,
261,
1655,
18,
14963,
12,
3319,
63,
77,
8009,
588,
751,
1435,
3719,
288,
9506,
202,
3319,
63,
77,
8009,
542,
6233,
12,
3767,
1769,
9506,
202,
8820,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2722,
8722,
273,
1041,
18,
26321,
5621,
202,
202,
2972,
1114,
273,
1041,
31,
202,
202,
588,
2471,
18415,
7675,
542,
1210,
12,
1655,
1769,
202,
202,
921,
4421,
273,
1041,
18,
588,
2
] |
|
if (fDTDHandler != null && fReportEntity) {
|
if (fDTDHandler != null && reportEntity) {
|
public void endEntity(String name) throws XNIException { super.endEntity(name); // call handler if (fDTDHandler != null && fReportEntity) { fDTDHandler.endEntity(name); } if (name.equals("[dtd]")) { if (fIncludeSectDepth != 0) { reportFatalError("IncludeSectUnterminated", null); } fScannerState = SCANNER_STATE_END_OF_INPUT; // call handler if (fDTDHandler != null) { fDTDHandler.endDTD(); } fExtEntityDepth--; } else if (name.charAt(0) == '%') { // check well-formedness of the enity int startMarkUpDepth = popPEStack(); // Proper nesting of parameter entities is a Validity Constraint // and must not be enforced when validation is off if (fValidation && startMarkUpDepth != fMarkUpDepth) { fErrorReporter.reportError(XMLMessageFormatter.XML_DOMAIN, "ImproperDeclarationNesting", new Object[]{ name }, XMLErrorReporter.SEVERITY_ERROR); } if (fEntityScanner.isExternal()) { fExtEntityDepth--; } } } // endEntity(String)
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/87c03bb8e96a09759d7033d117870258c8e81fb1/XMLDTDScannerImpl.java/buggy/src/org/apache/xerces/impl/XMLDTDScannerImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
1943,
12,
780,
508,
13,
1216,
1139,
50,
45,
503,
288,
3639,
2240,
18,
409,
1943,
12,
529,
1769,
3639,
368,
745,
1838,
3639,
309,
261,
74,
25728,
1503,
480,
446,
597,
2605,
1943,
13,
288,
5411,
284,
25728,
1503,
18,
409,
1943,
12,
529,
1769,
3639,
289,
3639,
309,
261,
529,
18,
14963,
2932,
63,
31834,
4279,
3719,
288,
5411,
309,
261,
74,
8752,
55,
386,
6148,
480,
374,
13,
288,
7734,
2605,
19593,
668,
2932,
8752,
55,
386,
984,
29133,
3113,
446,
1769,
5411,
289,
5411,
284,
11338,
1119,
273,
8795,
11489,
654,
67,
7998,
67,
4415,
67,
3932,
67,
15934,
31,
5411,
368,
745,
1838,
5411,
309,
261,
74,
25728,
1503,
480,
446,
13,
288,
7734,
284,
25728,
1503,
18,
409,
25728,
5621,
5411,
289,
5411,
284,
2482,
1943,
6148,
413,
31,
3639,
289,
3639,
469,
309,
261,
529,
18,
3001,
861,
12,
20,
13,
422,
1995,
6134,
288,
5411,
368,
866,
5492,
17,
7312,
4496,
434,
326,
570,
560,
5411,
509,
787,
3882,
1211,
6148,
273,
1843,
1423,
2624,
5621,
5411,
368,
1186,
457,
17174,
434,
1569,
5140,
353,
279,
2364,
560,
10770,
5411,
368,
471,
1297,
486,
506,
570,
19778,
1347,
3379,
353,
3397,
5411,
309,
261,
74,
4354,
597,
787,
3882,
1211,
6148,
480,
284,
3882,
1211,
6148,
13,
288,
7734,
284,
668,
13289,
18,
6006,
668,
12,
4201,
1079,
5074,
18,
4201,
67,
18192,
16,
4766,
6647,
315,
1170,
22754,
6094,
50,
10100,
3113,
4766,
6647,
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,
679,
1943,
12,
780,
508,
13,
1216,
1139,
50,
45,
503,
288,
3639,
2240,
18,
409,
1943,
12,
529,
1769,
3639,
368,
745,
1838,
3639,
309,
261,
74,
25728,
1503,
480,
446,
597,
2605,
1943,
13,
288,
5411,
284,
25728,
1503,
18,
409,
1943,
12,
529,
1769,
3639,
289,
3639,
309,
261,
529,
18,
14963,
2932,
63,
31834,
4279,
3719,
288,
5411,
309,
261,
74,
8752,
55,
386,
6148,
480,
374,
13,
288,
7734,
2605,
19593,
668,
2932,
8752,
55,
386,
984,
29133,
3113,
446,
1769,
5411,
289,
5411,
284,
11338,
1119,
273,
8795,
11489,
654,
67,
7998,
67,
4415,
67,
3932,
67,
15934,
31,
5411,
368,
745,
1838,
5411,
309,
261,
74,
25728,
1503,
480,
2
] |
if (null != images) {
|
if (images != null) {
|
private void setupPlayerInfo() { Player player = client.getLocalPlayer(); panPlayerInfo = new JPanel(); labPlayerInfo = new JLabel(Messages.getString("ChatLounge.labPlayerInfo")); //$NON-NLS-1$ lisPlayerInfo = new List(5); lisPlayerInfo.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { butRemoveBot.setEnabled(false); Client c = getPlayerListSelected(lisPlayerInfo); if (c == null) { lisPlayerInfo.select(-1); return; } if (c instanceof BotClient) { butRemoveBot.setEnabled(true); } choTeam.setSelectedIndex(c.getLocalPlayer().getTeam()); } }); butAddBot = new JButton(Messages.getString("ChatLounge.butAddBot")); //$NON-NLS-1$ butAddBot.setActionCommand("add_bot"); //$NON-NLS-1$ butAddBot.addActionListener(this); butRemoveBot = new JButton(Messages.getString("ChatLounge.butRemoveBot")); //$NON-NLS-1$ butRemoveBot.setEnabled(false); butRemoveBot.setActionCommand("remove_bot"); //$NON-NLS-1$ butRemoveBot.addActionListener(this); labTeam = new JLabel(Messages.getString("ChatLounge.labTeam"), JLabel.RIGHT); //$NON-NLS-1$ labCamo = new JLabel(Messages.getString("ChatLounge.labCamo"), JLabel.RIGHT); //$NON-NLS-1$ choTeam = new JComboBox(); choTeam.addItemListener(this); setupTeams(); butCamo = new JButton(); butCamo.setText(Messages.getString("ChatLounge.noCamo")); //$NON-NLS-1$ butCamo.setPreferredSize(new Dimension(84, 72)); butCamo.setActionCommand("camo"); //$NON-NLS-1$ butCamo.addActionListener(this); camoDialog.addItemListener(new CamoChoiceListener(camoDialog, butCamo, butOptions.getBackground(), player.getId(), client)); refreshCamos(); // If we have a camo pattern, use it. Otherwise set a background. Image[] images = (Image[]) camoDialog.getSelectedObjects(); if (null != images) { butCamo.setIcon(new ImageIcon(images[0])); } else { butCamo.setBackground(PlayerColors.getColor(player.getColorIndex())); } // layout GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); panPlayerInfo.setLayout(gridbag); c.fill = GridBagConstraints.VERTICAL; c.insets = new Insets(1, 1, 1, 1); c.weightx = 1.0; c.weighty = 0.0; c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(labPlayerInfo, c); panPlayerInfo.add(labPlayerInfo); c.fill = GridBagConstraints.BOTH; c.weightx = 1.0; c.weighty = 1.0; gridbag.setConstraints(lisPlayerInfo, c); panPlayerInfo.add(lisPlayerInfo); c.gridwidth = 1; c.weightx = 0.0; c.weighty = 0.0; gridbag.setConstraints(labTeam, c); panPlayerInfo.add(labTeam); c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 1.0; c.weighty = 0.0; gridbag.setConstraints(choTeam, c); panPlayerInfo.add(choTeam); c.gridwidth = 1; c.weightx = 0.0; c.weighty = 0.0; gridbag.setConstraints(labCamo, c); panPlayerInfo.add(labCamo); c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 1.0; c.weighty = 0.0; gridbag.setConstraints(butCamo, c); panPlayerInfo.add(butCamo); c.gridwidth = 1; c.weightx = 0.0; c.weighty = 0.0; gridbag.setConstraints(butAddBot, c); panPlayerInfo.add(butAddBot); c.gridwidth = GridBagConstraints.REMAINDER; c.weightx = 1.0; c.weighty = 0.0; gridbag.setConstraints(butRemoveBot, c); panPlayerInfo.add(butRemoveBot); refreshPlayerInfo(); }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/19df5d1a31a5f746c77c9db5e8ad96ed6d25cced/ChatLounge.java/clean/megamek/src/megamek/client/ui/swing/ChatLounge.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
12148,
966,
1435,
288,
3639,
19185,
7291,
273,
1004,
18,
588,
2042,
12148,
5621,
3639,
2800,
12148,
966,
273,
394,
24048,
5621,
3639,
11814,
12148,
966,
273,
394,
21403,
12,
5058,
18,
588,
780,
2932,
14163,
48,
465,
908,
18,
7411,
12148,
966,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
328,
291,
12148,
966,
273,
394,
987,
12,
25,
1769,
3639,
328,
291,
12148,
966,
18,
1289,
1180,
2223,
12,
2704,
4342,
2223,
1435,
288,
5411,
1071,
918,
761,
1119,
5033,
12,
1180,
1133,
425,
13,
288,
7734,
1496,
3288,
6522,
18,
542,
1526,
12,
5743,
1769,
7734,
2445,
276,
273,
1689,
6363,
682,
7416,
12,
80,
291,
12148,
966,
1769,
7734,
309,
261,
71,
422,
446,
13,
288,
10792,
328,
291,
12148,
966,
18,
4025,
19236,
21,
1769,
10792,
327,
31,
7734,
289,
7734,
309,
261,
71,
1276,
15039,
1227,
13,
288,
10792,
1496,
3288,
6522,
18,
542,
1526,
12,
3767,
1769,
7734,
289,
7734,
5011,
8689,
18,
542,
7416,
1016,
12,
71,
18,
588,
2042,
12148,
7675,
588,
8689,
10663,
5411,
289,
3639,
15549,
3639,
1496,
986,
6522,
273,
394,
28804,
12,
5058,
18,
588,
780,
2932,
14163,
48,
465,
908,
18,
12885,
986,
6522,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1496,
986,
6522,
18,
542,
1803,
2189,
2932,
1289,
67,
4819,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
1496,
986,
6522,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
1496,
3288,
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,
3875,
12148,
966,
1435,
288,
3639,
19185,
7291,
273,
1004,
18,
588,
2042,
12148,
5621,
3639,
2800,
12148,
966,
273,
394,
24048,
5621,
3639,
11814,
12148,
966,
273,
394,
21403,
12,
5058,
18,
588,
780,
2932,
14163,
48,
465,
908,
18,
7411,
12148,
966,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
328,
291,
12148,
966,
273,
394,
987,
12,
25,
1769,
3639,
328,
291,
12148,
966,
18,
1289,
1180,
2223,
12,
2704,
4342,
2223,
1435,
288,
5411,
1071,
918,
761,
1119,
5033,
12,
1180,
1133,
425,
13,
288,
7734,
1496,
3288,
6522,
18,
542,
1526,
12,
5743,
1769,
7734,
2445,
276,
273,
1689,
6363,
682,
7416,
12,
80,
291,
12148,
966,
1769,
7734,
2
] |
if (version != null) fDeferredDocumentImpl.setXmlVersion(version); fDeferredDocumentImpl.setXmlEncoding(encoding); fDeferredDocumentImpl.setXmlStandalone("yes".equals(standalone));
|
if (version != null) fDeferredDocumentImpl.setXmlVersion (version); fDeferredDocumentImpl.setXmlEncoding (encoding); fDeferredDocumentImpl.setXmlStandalone ("yes".equals (standalone));
|
public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException { if (!fDeferNodeExpansion) { // REVISIT: when DOM Level 3 is REC rely on Document.support // instead of specific class if (fDocumentImpl != null) { if (version != null) fDocumentImpl.setXmlVersion(version); fDocumentImpl.setXmlEncoding(encoding); fDocumentImpl.setXmlStandalone("yes".equals(standalone)); } } else { if (version != null) fDeferredDocumentImpl.setXmlVersion(version); fDeferredDocumentImpl.setXmlEncoding(encoding); fDeferredDocumentImpl.setXmlStandalone("yes".equals(standalone)); } } // xmlDecl(String,String,String)
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b4cd180911aea48174dc85f3cf80e53272cd1419/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2025,
3456,
12,
780,
1177,
16,
514,
2688,
16,
514,
17676,
16,
7682,
432,
14870,
1012,
279,
9024,
13,
3639,
1216,
1139,
50,
45,
503,
288,
3639,
309,
16051,
74,
758,
586,
907,
2966,
12162,
13,
288,
5411,
368,
2438,
26780,
1285,
30,
1347,
4703,
4557,
890,
353,
2438,
39,
21187,
603,
4319,
18,
13261,
5411,
368,
1850,
3560,
434,
2923,
667,
5411,
309,
261,
74,
2519,
2828,
480,
446,
13,
288,
7734,
309,
261,
1589,
480,
446,
13,
1171,
202,
74,
2519,
2828,
18,
542,
4432,
1444,
12,
1589,
1769,
7734,
284,
2519,
2828,
18,
542,
4432,
4705,
12,
5999,
1769,
7734,
284,
2519,
2828,
18,
542,
4432,
20612,
12451,
2932,
9707,
9654,
14963,
12,
10145,
12451,
10019,
5411,
289,
3639,
289,
3639,
469,
288,
540,
202,
430,
261,
1589,
480,
446,
13,
2398,
202,
74,
16886,
2519,
2828,
18,
542,
4432,
1444,
12,
1589,
1769,
5411,
284,
16886,
2519,
2828,
18,
542,
4432,
4705,
12,
5999,
1769,
5411,
284,
16886,
2519,
2828,
18,
542,
4432,
20612,
12451,
2932,
9707,
9654,
14963,
12,
10145,
12451,
10019,
3639,
289,
565,
289,
368,
2025,
3456,
12,
780,
16,
780,
16,
780,
13,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2025,
3456,
12,
780,
1177,
16,
514,
2688,
16,
514,
17676,
16,
7682,
432,
14870,
1012,
279,
9024,
13,
3639,
1216,
1139,
50,
45,
503,
288,
3639,
309,
16051,
74,
758,
586,
907,
2966,
12162,
13,
288,
5411,
368,
2438,
26780,
1285,
30,
1347,
4703,
4557,
890,
353,
2438,
39,
21187,
603,
4319,
18,
13261,
5411,
368,
1850,
3560,
434,
2923,
667,
5411,
309,
261,
74,
2519,
2828,
480,
446,
13,
288,
7734,
309,
261,
1589,
480,
446,
13,
1171,
202,
74,
2519,
2828,
18,
542,
4432,
1444,
12,
1589,
1769,
7734,
284,
2519,
2828,
18,
542,
4432,
4705,
12,
5999,
1769,
7734,
284,
2519,
2828,
18,
542,
4432,
20612,
12451,
2932,
9707,
9654,
14963,
12,
2
] |
if (updatedRGB == null) updatedRGB = currentTheme.getColorRegistry().getRGB(id);
|
if (updatedRGB == null) { updatedRGB = currentTheme.getColorRegistry().getRGB(id); }
|
private RGB getColorValue(ColorDefinition definition) { String id = definition.getId(); RGB updatedRGB = (RGB) colorPreferencesToSet.get(id); if (updatedRGB == null) { updatedRGB = (RGB) colorValuesToSet.get(id); if (updatedRGB == null) updatedRGB = currentTheme.getColorRegistry().getRGB(id); } return updatedRGB; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ColorsAndFontsPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ColorsAndFontsPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11510,
15672,
620,
12,
2957,
1852,
2379,
13,
288,
3639,
514,
612,
273,
2379,
18,
26321,
5621,
3639,
11510,
3526,
11343,
273,
261,
11343,
13,
2036,
12377,
25208,
18,
588,
12,
350,
1769,
3639,
309,
261,
7007,
11343,
422,
446,
13,
288,
5411,
3526,
11343,
273,
261,
11343,
13,
2036,
1972,
25208,
18,
588,
12,
350,
1769,
5411,
309,
261,
7007,
11343,
422,
446,
13,
7734,
3526,
11343,
273,
783,
8335,
18,
588,
2957,
4243,
7675,
588,
11343,
12,
350,
1769,
3639,
289,
3639,
327,
3526,
11343,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
11510,
15672,
620,
12,
2957,
1852,
2379,
13,
288,
3639,
514,
612,
273,
2379,
18,
26321,
5621,
3639,
11510,
3526,
11343,
273,
261,
11343,
13,
2036,
12377,
25208,
18,
588,
12,
350,
1769,
3639,
309,
261,
7007,
11343,
422,
446,
13,
288,
5411,
3526,
11343,
273,
261,
11343,
13,
2036,
1972,
25208,
18,
588,
12,
350,
1769,
5411,
309,
261,
7007,
11343,
422,
446,
13,
7734,
3526,
11343,
273,
783,
8335,
18,
588,
2957,
4243,
7675,
588,
11343,
12,
350,
1769,
3639,
289,
3639,
327,
3526,
11343,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public DefaultGrailsDomainClass(Class clazz) { super(clazz, ""); PropertyDescriptor[] propertyDescriptors = getReference().getPropertyDescriptors(); if(!clazz.getSuperclass().equals( GroovyObject.class ) && !clazz.getSuperclass().equals(Object.class) && !Modifier.isAbstract(clazz.getSuperclass().getModifiers())) { this.root = false; } this.propertyMap = new HashMap(); this.relationshipMap = getAssociationMap(); // get mapped by setting if(getPropertyOrStaticPropertyOrFieldValue(GrailsDomainClassProperty.MAPPED_BY, String.class) != null) this.mappedBy = (String)getPropertyOrStaticPropertyOrFieldValue(GrailsDomainClassProperty.MAPPED_BY, String.class); Class belongsTo = (Class)getPropertyOrStaticPropertyOrFieldValue(GrailsDomainClassProperty.BELONGS_TO, Class.class); if(belongsTo == null) { List ownersProp = (List)getPropertyOrStaticPropertyOrFieldValue(GrailsDomainClassProperty.BELONGS_TO, List.class); if(ownersProp != null) { this.owners = ownersProp; } } else { this.owners = new ArrayList(); this.owners.add(belongsTo); } // First go through the properties of the class and create domain properties // populating into a map for(int i = 0; i < propertyDescriptors.length; i++) { PropertyDescriptor descriptor = propertyDescriptors[i]; // ignore certain properties if(isNotConfigurational(descriptor) ) { GrailsDomainClassProperty property = new DefaultGrailsDomainClassProperty(this, descriptor); this.propertyMap.put(property.getName(), property); if(property.isIdentity()) { this.identifier = property; } else if(property.getName().equals( GrailsDomainClassProperty.VERSION )) { this.version = property; } } } // if no identifier property throw exception if(this.identifier == null) { throw new GrailsDomainException("Identity property not found, but required in domain class ["+getFullName()+"]" ); } // if no version property throw exception if(this.version == null) { throw new GrailsDomainException("Version property not found, but required in domain class ["+getFullName()+"]" ); } // set properties from map values this.properties = (GrailsDomainClassProperty[])this.propertyMap.values().toArray( new GrailsDomainClassProperty[this.propertyMap.size()] ); // establish relationships establishRelationships(); // set persistant properties Collection tempList = new ArrayList(); for(Iterator i = this.propertyMap.values().iterator();i.hasNext();) { GrailsDomainClassProperty currentProp = (GrailsDomainClassProperty)i.next(); if(currentProp.isPersistent() && !currentProp.isIdentity() && !currentProp.getName().equals( GrailsDomainClassProperty.VERSION )) { tempList.add(currentProp); } } this.persistantProperties = (GrailsDomainClassProperty[])tempList.toArray( new GrailsDomainClassProperty[tempList.size()]); // process the constraints evaluateConstraints(); }
|
55385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55385/6c47cbe485713fe8d2b500632651590033abed59/DefaultGrailsDomainClass.java/clean/src/commons/org/codehaus/groovy/grails/commons/DefaultGrailsDomainClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2989,
14571,
14573,
3748,
797,
12,
797,
4003,
13,
288,
9565,
12,
830,
3638,
16,
1408,
1769,
1396,
3187,
8526,
1272,
12705,
273,
13223,
7675,
588,
1396,
12705,
5621,
430,
12,
5,
830,
3638,
18,
588,
28471,
7675,
14963,
12,
20841,
921,
18,
1106,
262,
597,
401,
830,
3638,
18,
588,
28471,
7675,
14963,
12,
921,
18,
1106,
13,
597,
401,
9829,
18,
291,
7469,
12,
830,
3638,
18,
588,
28471,
7675,
588,
11948,
1435,
3719,
288,
2211,
18,
3085,
273,
629,
31,
97,
2211,
18,
4468,
863,
273,
394,
4317,
5621,
2211,
18,
12873,
863,
273,
29403,
863,
5621,
759,
336,
5525,
635,
3637,
430,
12,
588,
1396,
1162,
5788,
1396,
1162,
13559,
12,
14571,
14573,
3748,
797,
1396,
18,
8352,
12120,
67,
6486,
16,
514,
18,
1106,
13,
480,
446,
13,
2211,
18,
13654,
858,
273,
261,
780,
13,
588,
1396,
1162,
5788,
1396,
1162,
13559,
12,
14571,
14573,
3748,
797,
1396,
18,
8352,
12120,
67,
6486,
16,
514,
18,
1106,
1769,
797,
11081,
774,
273,
261,
797,
13,
588,
1396,
1162,
5788,
1396,
1162,
13559,
12,
14571,
14573,
3748,
797,
1396,
18,
38,
2247,
7390,
55,
67,
4296,
16,
1659,
18,
1106,
1769,
430,
12,
13285,
27192,
422,
446,
13,
288,
682,
25937,
4658,
273,
261,
682,
13,
588,
1396,
1162,
5788,
1396,
1162,
13559,
12,
14571,
14573,
3748,
797,
1396,
18,
38,
2247,
7390,
55,
67,
4296,
16,
987,
18,
1106,
1769,
430,
12,
995,
414,
4658,
480,
446,
13,
288,
2211,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2989,
14571,
14573,
3748,
797,
12,
797,
4003,
13,
288,
9565,
12,
830,
3638,
16,
1408,
1769,
1396,
3187,
8526,
1272,
12705,
273,
13223,
7675,
588,
1396,
12705,
5621,
430,
12,
5,
830,
3638,
18,
588,
28471,
7675,
14963,
12,
20841,
921,
18,
1106,
262,
597,
401,
830,
3638,
18,
588,
28471,
7675,
14963,
12,
921,
18,
1106,
13,
597,
401,
9829,
18,
291,
7469,
12,
830,
3638,
18,
588,
28471,
7675,
588,
11948,
1435,
3719,
288,
2211,
18,
3085,
273,
629,
31,
97,
2211,
18,
4468,
863,
273,
394,
4317,
5621,
2211,
18,
12873,
863,
273,
29403,
863,
5621,
759,
336,
5525,
635,
3637,
430,
12,
588,
1396,
1162,
5788,
1396,
1162,
13559,
12,
14571,
14573,
3748,
2
] |
||
return langStr;
|
public static String getAsIso639_2OrDefaultLanguage( String langStr, ImcmsServices service ) { try { langStr = getAsIso639_2(langStr); } catch ( LanguageNotSupportedException e ) { log.error( "Unsupported language '" + langStr + "' found in database. Using default.", e ); langStr = service.getDefaultLanguageAsIso639_2() ; } return langStr; }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/db5610ad5156af24cbe4ef33bd3966d7eb2a7c1b/LanguageMapper.java/buggy/server/src/imcode/server/LanguageMapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
13122,
18516,
21607,
67,
22,
25186,
3779,
12,
514,
3303,
1585,
16,
2221,
6851,
5676,
1156,
262,
288,
3639,
775,
288,
5411,
3303,
1585,
273,
13122,
18516,
21607,
67,
22,
12,
4936,
1585,
1769,
3639,
289,
1044,
261,
9889,
25482,
425,
262,
288,
5411,
613,
18,
1636,
12,
315,
8544,
2653,
2119,
15604,
397,
3303,
1585,
15604,
397,
2491,
1392,
316,
2063,
18,
11637,
805,
1199,
16,
425,
11272,
5411,
3303,
1585,
273,
1156,
18,
588,
1868,
3779,
1463,
18516,
21607,
67,
22,
1435,
274,
3639,
289,
6647,
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,
377,
1071,
760,
514,
13122,
18516,
21607,
67,
22,
25186,
3779,
12,
514,
3303,
1585,
16,
2221,
6851,
5676,
1156,
262,
288,
3639,
775,
288,
5411,
3303,
1585,
273,
13122,
18516,
21607,
67,
22,
12,
4936,
1585,
1769,
3639,
289,
1044,
261,
9889,
25482,
425,
262,
288,
5411,
613,
18,
1636,
12,
315,
8544,
2653,
2119,
15604,
397,
3303,
1585,
15604,
397,
2491,
1392,
316,
2063,
18,
11637,
805,
1199,
16,
425,
11272,
5411,
3303,
1585,
273,
1156,
18,
588,
1868,
3779,
1463,
18516,
21607,
67,
22,
1435,
274,
3639,
289,
6647,
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
] |
|
return RubyFixnum.newFixnum(runtime, (int)(((cal.getTimeInMillis() / 1000) ^ microseconds()) << 1) >> 1);
|
return getRuntime().newFixnum((int)(((cal.getTimeInMillis() / 1000) ^ microseconds()) << 1) >> 1);
|
public RubyFixnum hash() { // modified to match how hash is calculated in 1.8.2 return RubyFixnum.newFixnum(runtime, (int)(((cal.getTimeInMillis() / 1000) ^ microseconds()) << 1) >> 1); }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyTime.java/clean/src/org/jruby/RubyTime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1651,
1435,
288,
377,
202,
759,
4358,
358,
845,
3661,
1651,
353,
8894,
316,
404,
18,
28,
18,
22,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12443,
474,
13,
12443,
12,
771,
18,
588,
950,
16620,
1435,
342,
4336,
13,
3602,
19967,
10756,
2296,
404,
13,
1671,
404,
1769,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
8585,
2107,
1651,
1435,
288,
377,
202,
759,
4358,
358,
845,
3661,
1651,
353,
8894,
316,
404,
18,
28,
18,
22,
3639,
327,
18814,
7675,
2704,
8585,
2107,
12443,
474,
13,
12443,
12,
771,
18,
588,
950,
16620,
1435,
342,
4336,
13,
3602,
19967,
10756,
2296,
404,
13,
1671,
404,
1769,
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
] |
else if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() != null ) {
|
else if ( at.getPackage() == null && klass.getPackage() != null ) {
|
protected boolean accessibleToConstructor(final Class at, final Constructor constructor) { boolean accessible = false; if (Modifier.isPublic(constructor.getModifiers())) { accessible = true; } else if (Modifier.isPrivate(constructor.getModifiers())) { accessible = at.getName().equals(constructor.getName()); } else if ( Modifier.isProtected(constructor.getModifiers()) ) { if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() == null ) { accessible = true; } else if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() != null ) { accessible = false; } else if ( at.getPackage() != null && constructor.getDeclaringClass().getPackage() == null ) { accessible = false; } else if ( at.getPackage().equals(constructor.getDeclaringClass().getPackage()) ) { accessible = true; } else { boolean flag = false; Class clazz = at; while ( !flag && clazz != null ) { if (clazz.equals(constructor.getDeclaringClass()) ) { flag = true; break; } if (clazz.equals(Object.class) ) { break; } clazz = clazz.getSuperclass(); } accessible = flag; } } else { if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() == null ) { accessible = true; } else if ( at.getPackage() == null && constructor.getDeclaringClass().getPackage() != null ) { accessible = false; } else if ( at.getPackage() != null && constructor.getDeclaringClass().getPackage() == null ) { accessible = false; } else if ( at.getPackage().equals(constructor.getDeclaringClass().getPackage()) ) { accessible = true; } } return accessible; }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/860ef6a65d30982bc2e0ba4ace5fbd18013fda30/MetaClass.java/clean/src/main/groovy/lang/MetaClass.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
1250,
12718,
774,
6293,
12,
6385,
1659,
622,
16,
727,
11417,
3885,
13,
288,
4202,
1250,
12718,
273,
629,
31,
4202,
309,
261,
9829,
18,
291,
4782,
12,
12316,
18,
588,
11948,
1435,
3719,
288,
6647,
12718,
273,
638,
31,
4202,
289,
4202,
469,
309,
261,
9829,
18,
291,
6014,
12,
12316,
18,
588,
11948,
1435,
3719,
288,
6647,
12718,
273,
622,
18,
17994,
7675,
14963,
12,
12316,
18,
17994,
10663,
4202,
289,
4202,
469,
309,
261,
12832,
18,
291,
15933,
12,
12316,
18,
588,
11948,
10756,
262,
288,
6647,
309,
261,
622,
18,
588,
2261,
1435,
422,
446,
597,
3885,
18,
588,
3456,
14682,
7675,
588,
2261,
1435,
422,
446,
262,
288,
9079,
12718,
273,
638,
31,
6647,
289,
6647,
469,
309,
261,
622,
18,
588,
2261,
1435,
422,
446,
597,
7352,
18,
588,
2261,
1435,
480,
446,
262,
288,
9079,
12718,
273,
629,
31,
6647,
289,
6647,
469,
309,
261,
622,
18,
588,
2261,
1435,
480,
446,
597,
3885,
18,
588,
3456,
14682,
7675,
588,
2261,
1435,
422,
446,
262,
288,
9079,
12718,
273,
629,
31,
6647,
289,
6647,
469,
309,
261,
622,
18,
588,
2261,
7675,
14963,
12,
12316,
18,
588,
3456,
14682,
7675,
588,
2261,
10756,
262,
288,
9079,
12718,
273,
638,
31,
6647,
289,
6647,
469,
288,
9079,
1250,
2982,
273,
629,
31,
9079,
1659,
4003,
273,
622,
31,
9079,
1323,
261,
401,
6420,
597,
4003,
480,
446,
262,
288,
10402,
309,
261,
830,
3638,
18,
14963,
12,
12316,
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,
565,
4750,
1250,
12718,
774,
6293,
12,
6385,
1659,
622,
16,
727,
11417,
3885,
13,
288,
4202,
1250,
12718,
273,
629,
31,
4202,
309,
261,
9829,
18,
291,
4782,
12,
12316,
18,
588,
11948,
1435,
3719,
288,
6647,
12718,
273,
638,
31,
4202,
289,
4202,
469,
309,
261,
9829,
18,
291,
6014,
12,
12316,
18,
588,
11948,
1435,
3719,
288,
6647,
12718,
273,
622,
18,
17994,
7675,
14963,
12,
12316,
18,
17994,
10663,
4202,
289,
4202,
469,
309,
261,
12832,
18,
291,
15933,
12,
12316,
18,
588,
11948,
10756,
262,
288,
6647,
309,
261,
622,
18,
588,
2261,
1435,
422,
446,
597,
3885,
18,
588,
3456,
14682,
7675,
588,
2261,
1435,
422,
446,
262,
288,
9079,
12718,
273,
638,
2
] |
writer.startElement("AxisInfo", new String[] { "name", axisName});
|
writer.startElement("AxisInfo", new String[] { "name", axisName});
|
private void axisInfo(SaxWriter writer, Axis axis, String axisName) { writer.startElement("AxisInfo", new String[] { "name", axisName}); Hierarchy[] hierarchies; if (axis.positions.length > 0) { final Position position = axis.positions[0]; hierarchies = new Hierarchy[position.members.length]; for (int j = 0; j < position.members.length; j++) { Member member = position.members[j]; hierarchies[j] = member.getHierarchy(); } } else { hierarchies = new Hierarchy[0]; //final QueryAxis queryAxis = this.result.getQuery().axes[i]; // todo: } for (int j = 0; j < hierarchies.length; j++) { writer.startElement("HierarchyInfo", new String[] { "name", hierarchies[j].getName()}); for (int k = 0; k < props.length; k++) { writer.element(props[k], new String[] { "name", hierarchies[j].getUniqueName() + ".[" + propLongs[k] + "]"}); } writer.endElement(); // HierarchyInfo } writer.endElement(); // AxisInfo }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/41e43f806f666da1ff483ebb20820e61433739e2/XmlaHandler.java/clean/src/main/mondrian/xmla/XmlaHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
2654,
966,
12,
55,
651,
2289,
2633,
16,
15509,
2654,
16,
514,
2654,
461,
13,
288,
5411,
2633,
18,
1937,
1046,
2932,
6558,
966,
3113,
394,
514,
8526,
288,
7734,
315,
529,
3113,
2654,
461,
22938,
5411,
670,
6000,
8526,
366,
5148,
606,
31,
5411,
309,
261,
4890,
18,
12388,
18,
2469,
405,
374,
13,
288,
7734,
727,
11010,
1754,
273,
2654,
18,
12388,
63,
20,
15533,
7734,
366,
5148,
606,
273,
394,
670,
6000,
63,
3276,
18,
7640,
18,
2469,
15533,
7734,
364,
261,
474,
525,
273,
374,
31,
525,
411,
1754,
18,
7640,
18,
2469,
31,
525,
27245,
288,
10792,
8596,
3140,
273,
1754,
18,
7640,
63,
78,
15533,
10792,
366,
5148,
606,
63,
78,
65,
273,
3140,
18,
588,
12074,
5621,
7734,
289,
5411,
289,
469,
288,
7734,
366,
5148,
606,
273,
394,
670,
6000,
63,
20,
15533,
7734,
368,
6385,
2770,
6558,
843,
6558,
273,
333,
18,
2088,
18,
588,
1138,
7675,
10855,
63,
77,
15533,
7734,
368,
10621,
30,
5411,
289,
5411,
364,
261,
474,
525,
273,
374,
31,
525,
411,
366,
5148,
606,
18,
2469,
31,
525,
27245,
288,
7734,
2633,
18,
1937,
1046,
2932,
12074,
966,
3113,
394,
514,
8526,
288,
10792,
315,
529,
3113,
366,
5148,
606,
63,
78,
8009,
17994,
17767,
1769,
7734,
364,
261,
474,
417,
273,
374,
31,
417,
411,
3458,
18,
2469,
31,
417,
27245,
288,
10792,
2633,
18,
2956,
12,
9693,
63,
79,
6487,
394,
514,
8526,
288,
13491,
315,
529,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
2654,
966,
12,
55,
651,
2289,
2633,
16,
15509,
2654,
16,
514,
2654,
461,
13,
288,
5411,
2633,
18,
1937,
1046,
2932,
6558,
966,
3113,
394,
514,
8526,
288,
7734,
315,
529,
3113,
2654,
461,
22938,
5411,
670,
6000,
8526,
366,
5148,
606,
31,
5411,
309,
261,
4890,
18,
12388,
18,
2469,
405,
374,
13,
288,
7734,
727,
11010,
1754,
273,
2654,
18,
12388,
63,
20,
15533,
7734,
366,
5148,
606,
273,
394,
670,
6000,
63,
3276,
18,
7640,
18,
2469,
15533,
7734,
364,
261,
474,
525,
273,
374,
31,
525,
411,
1754,
18,
7640,
18,
2469,
31,
525,
27245,
288,
10792,
8596,
3140,
273,
1754,
18,
7640,
63,
78,
15533,
10792,
366,
5148,
606,
63,
2
] |
super.write(header);
|
write(header, 0, 512);
|
public void putNextEntry(TarEntry e) throws IOException { byte[] header = new byte[512]; String filename = e.getName(); String prefix = null; int pos, i; /* Split filename into name and prefix if necessary. */ if(filename.length() > 99 ) { int seppos = filename.lastIndexOf('/'); if(seppos == -1) throw new IOException("filename too long"); //$NON-NLS-1$ prefix = filename.substring(0, seppos); filename = filename.substring(seppos + 1); if(filename.length() > 99) throw new IOException("filename too long"); //$NON-NLS-1$ } /* Filename. */ pos = 0; for(i = 0; i < filename.length(); i++) { header[pos + i] = (byte) filename.charAt(i); } pos += 100; /* File mode. */ StringBuffer mode = new StringBuffer(Long.toOctalString(e.getMode())); while(mode.length() < 7) mode.insert(0,'0'); for(i = 0; i < 7; i++) { header[pos + i] = (byte) mode.charAt(i); } pos += 8; /* UID. */ header[pos] = '0'; pos += 8; /* GID. */ header[pos] = '0'; pos += 8; /* Length of the file. */ String length = Long.toOctalString(e.getSize()); for(i = 0; i < length.length(); i++) { header[pos + i] = (byte) length.charAt(i); } pos += 12; /* mtime */ String mtime = Long.toOctalString(e.getTime()); for(i = 0; i < mtime.length(); i++) { header[pos + i] = (byte) mtime.charAt(i); } pos += 12; /* "Blank" out the checksum. */ for(i = 0; i < 8; i++) { header[pos + i] = ' '; } pos += 8; /* Link flag. */ header[pos] = (byte) e.getFileType(); pos += 1; /* Link destination. */ pos += 100; /* Add ustar header. */ String ustar = "ustar 00"; //$NON-NLS-1$ for(i = 0; i < ustar.length(); i++) { header[pos + i] = (byte) ustar.charAt(i); } header[pos + 5] = 0; pos += 8; /* Username. */ String uname = "nobody"; //$NON-NLS-1$ for(i = 0; i < uname.length(); i++) { header[pos + i] = (byte) uname.charAt(i); } pos += 32; /* Group name. */ String gname = "nobody"; //$NON-NLS-1$ for(i = 0; i < gname.length(); i++) { header[pos + i] = (byte) gname.charAt(i); } pos += 32; /* Device major. */ pos += 8; /* Device minor. */ pos += 8; /* File prefix. */ if(prefix != null) { if(prefix.length() > 155) throw new IOException("prefix too large"); //$NON-NLS-1$ for(i = 0; i < prefix.length(); i++) { header[pos + i] = (byte) prefix.charAt(i); } } long sum = headerChecksum(header); pos = 100 + 8 + 8 + 8 + 12 + 12; String sumval = Long.toOctalString(sum); for(i = 0; i < sumval.length(); i++) { header[pos + i] = (byte) sumval.charAt(i); } cursize = 512; super.write(header); cursize = e.getSize(); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9be8b6ad7821450fb607207a700a06f56569362a/TarOutputStream.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/TarOutputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1378,
2134,
1622,
12,
20464,
1622,
425,
13,
1216,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
780,
1544,
273,
425,
18,
17994,
5621,
202,
202,
780,
1633,
273,
446,
31,
202,
202,
474,
949,
16,
277,
31,
9506,
202,
20308,
5385,
1544,
1368,
508,
471,
1633,
309,
4573,
18,
1195,
202,
202,
430,
12,
3459,
18,
2469,
1435,
405,
14605,
262,
288,
1082,
202,
474,
5478,
917,
273,
1544,
18,
2722,
31985,
2668,
2473,
1769,
1082,
202,
430,
12,
10814,
917,
422,
300,
21,
13,
604,
394,
1860,
2932,
3459,
4885,
1525,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
3239,
273,
1544,
18,
28023,
12,
20,
16,
5478,
917,
1769,
1082,
202,
3459,
273,
1544,
18,
28023,
12,
10814,
917,
397,
404,
1769,
1082,
202,
430,
12,
3459,
18,
2469,
1435,
405,
14605,
13,
604,
394,
1860,
2932,
3459,
4885,
1525,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
9506,
202,
20308,
16671,
18,
1195,
202,
202,
917,
273,
374,
31,
202,
202,
1884,
12,
77,
273,
374,
31,
277,
411,
1544,
18,
2469,
5621,
277,
27245,
288,
1082,
202,
3374,
63,
917,
397,
277,
65,
273,
261,
7229,
13,
1544,
18,
3001,
861,
12,
77,
1769,
202,
202,
97,
202,
202,
917,
1011,
2130,
31,
9506,
202,
20308,
1387,
1965,
18,
1195,
202,
202,
780,
1892,
1965,
273,
394,
6674,
12,
3708,
18,
869,
19320,
287,
780,
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,
1378,
2134,
1622,
12,
20464,
1622,
425,
13,
1216,
1860,
288,
202,
202,
7229,
8526,
1446,
273,
394,
1160,
63,
13757,
15533,
202,
202,
780,
1544,
273,
425,
18,
17994,
5621,
202,
202,
780,
1633,
273,
446,
31,
202,
202,
474,
949,
16,
277,
31,
9506,
202,
20308,
5385,
1544,
1368,
508,
471,
1633,
309,
4573,
18,
1195,
202,
202,
430,
12,
3459,
18,
2469,
1435,
405,
14605,
262,
288,
1082,
202,
474,
5478,
917,
273,
1544,
18,
2722,
31985,
2668,
2473,
1769,
1082,
202,
430,
12,
10814,
917,
422,
300,
21,
13,
604,
394,
1860,
2932,
3459,
4885,
1525,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
3239,
273,
1544,
18,
28023,
2
] |
{ return tabs.size(); }
|
{ return tabs.size(); }
|
public int getTabCount() { return tabs.size(); }
|
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JTabbedPane.java/buggy/libjava/javax/swing/JTabbedPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
3181,
378,
1380,
1435,
565,
288,
202,
2463,
10920,
18,
1467,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
3181,
378,
1380,
1435,
565,
288,
202,
2463,
10920,
18,
1467,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
adder.addImplicitHydrogensToSatisfyValency(moleculeSet[i]);
|
valencyChecker.saturate(moleculeSet[i]); logger.debug(" after saturation: ", moleculeSet[i]);
|
public Molecule parseSmiles(String smiles) throws InvalidSmilesException { logger.debug("parseSmiles()..."); Bond bond = null; nodeCounter = 0; bondStatus = 0; boolean bondExists = true; thisRing = -1; currentSymbol = null; molecule = new Molecule(); position = 0; // we don't want more than 1024 rings rings = new Atom[1024]; ringbonds = new double[1024]; for (int f = 0; f < 1024; f++) { rings[f] = null; ringbonds[f] = -1; } char mychar = 'X'; char[] chars = new char[1]; Atom lastNode = null; Atom thisNode = null; Stack atomStack = new Stack(); Stack bondStack = new Stack(); Atom atom = null; Atom partner = null; do { try { mychar = smiles.charAt(position); logger.debug(""); logger.debug("Processing: " + mychar); if (lastNode != null) { logger.debug("Lastnode: " + lastNode.hashCode()); } if ((mychar >= 'A' && mychar <= 'Z') || (mychar >= 'a' && mychar <= 'z') || (mychar == '*')) { logger.debug("Found a must-be 'organic subset' element"); // only 'organic subset' elements allowed atom = null; if (mychar == '*') { currentSymbol = "*"; atom = new PseudoAtom("*"); } else { currentSymbol = getSymbolForOrganicSubsetElement(smiles, position); if (currentSymbol != null) { atom = new Atom(currentSymbol); if (currentSymbol.length() == 1) { if (!(currentSymbol.toUpperCase()).equals(currentSymbol)) { atom.setHybridization(CDKConstants.HYBRIDIZATION_SP2); atom.setSymbol(currentSymbol.toUpperCase()); } } } else { throw new InvalidSmilesException( "Found element which is not a 'organic subset' element. You must " + "use [" + mychar + "]."); } } molecule.addAtom(atom); logger.debug("Adding atom " + atom.hashCode()); if ((lastNode != null) && bondExists) { logger.debug("Creating bond between " + atom.getSymbol() + " and " + lastNode.getSymbol()); bond = new Bond(atom, lastNode, bondStatus); molecule.addBond(bond); } bondStatus = CDKConstants.BONDORDER_SINGLE; lastNode = atom; nodeCounter++; position = position + currentSymbol.length(); bondExists = true; } else if (mychar == '=') { bondStatus = CDKConstants.BONDORDER_DOUBLE; position++; } else if (mychar == '#') { bondStatus = CDKConstants.BONDORDER_TRIPLE; position++; } else if (mychar == '(') { atomStack.push(lastNode); logger.debug("Stack:"); Enumeration ses = atomStack.elements(); while (ses.hasMoreElements()) { Atom a = (Atom) ses.nextElement(); logger.debug("" + a.hashCode()); } logger.debug("------"); bondStack.push(new Double(bondStatus)); position++; } else if (mychar == ')') { lastNode = (Atom) atomStack.pop(); logger.debug("Stack:"); Enumeration ses = atomStack.elements(); while (ses.hasMoreElements()) { Atom a = (Atom) ses.nextElement(); logger.debug("" + a.hashCode()); } logger.debug("------"); bondStatus = ((Double) bondStack.pop()).doubleValue(); position++; } else if (mychar >= '0' && mychar <= '9') { chars[0] = mychar; currentSymbol = new String(chars); thisRing = (new Integer(new String(chars))).intValue(); handleRing(lastNode); position++; } else if (mychar == '%') { currentSymbol = getRingNumber(smiles, position); thisRing = (new Integer(currentSymbol)).intValue(); handleRing(lastNode); position += currentSymbol.length() + 1; } else if (mychar == '[') { currentSymbol = getAtomString(smiles, position); atom = assembleAtom(currentSymbol, nodeCounter); molecule.addAtom(atom); logger.debug("Added atom: " + atom); if (lastNode != null && bondExists) { bond = new Bond(atom, lastNode, bondStatus); molecule.addBond(new Bond(atom, lastNode, bondStatus)); logger.debug("Added bond: " + bond); } bondStatus = CDKConstants.BONDORDER_SINGLE; lastNode = atom; nodeCounter++; position = position + currentSymbol.length() + 2; // plus two for [ and ] bondExists = true; } else if (mychar == '.'){ bondExists = false; position++; } else if (mychar == '/' || mychar == '\\') { logger.warn("Ignoring stereo information for double bond"); position++; } else if (mychar == '@') { if (position < smiles.length()-1 && smiles.charAt(position+1) == '@') { position++; } logger.warn("Ignoring stereo information for atom"); position++; } else { throw new InvalidSmilesException("Unexpected character found: " + mychar); } } catch (InvalidSmilesException exc) { logger.error("InvalidSmilesException while parsing char (in parseSmiles()): " + mychar); logger.debug(exc); throw exc; } catch (Exception exception) { logger.error("Error while parsing char: " + mychar); logger.debug(exception); throw new InvalidSmilesException("Error while parsing char: " + mychar); } logger.debug("Parsing next char"); } while (position < smiles.length()); // conceive aromatic perception Molecule[] moleculeSet = ConnectivityChecker.partitionIntoMolecules(molecule).getMolecules(); HydrogenAdder adder = new HydrogenAdder(); for (int i=0; i<moleculeSet.length; i++) { try { adder.addImplicitHydrogensToSatisfyValency(moleculeSet[i]); if (HueckelAromaticityDetector.detectAromaticity(moleculeSet[i])) { logger.debug("Structure is aromatic..."); } } catch (Exception exception) { logger.error("Could not perceive aromaticity: ", exception.getMessage()); logger.debug(exception); } } return molecule; }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/0f3a13bff63f7c9735e03b93e4692cf0aef459f4/SmilesParser.java/buggy/src/org/openscience/cdk/smiles/SmilesParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
490,
10545,
1109,
9552,
1449,
12,
780,
3029,
1449,
13,
1216,
1962,
9552,
1449,
503,
288,
3639,
1194,
18,
4148,
2932,
2670,
9552,
1449,
1435,
7070,
1769,
202,
202,
9807,
8427,
273,
446,
31,
202,
202,
2159,
4789,
273,
374,
31,
202,
202,
26425,
1482,
273,
374,
31,
3639,
1250,
8427,
4002,
273,
638,
31,
202,
202,
2211,
10369,
273,
300,
21,
31,
202,
202,
2972,
5335,
273,
446,
31,
202,
202,
81,
10545,
273,
394,
490,
10545,
5621,
202,
202,
3276,
273,
374,
31,
202,
202,
759,
732,
2727,
1404,
2545,
1898,
2353,
6250,
26537,
202,
202,
86,
899,
273,
394,
7149,
63,
2163,
3247,
15533,
202,
202,
8022,
70,
4096,
273,
394,
1645,
63,
2163,
3247,
15533,
202,
202,
1884,
261,
474,
284,
273,
374,
31,
284,
411,
6250,
31,
284,
27245,
202,
202,
95,
1082,
202,
86,
899,
63,
74,
65,
273,
446,
31,
1082,
202,
8022,
70,
4096,
63,
74,
65,
273,
300,
21,
31,
202,
202,
97,
202,
202,
3001,
3399,
3001,
273,
296,
60,
13506,
202,
202,
3001,
8526,
5230,
273,
394,
1149,
63,
21,
15533,
202,
202,
3641,
1142,
907,
273,
446,
31,
202,
202,
3641,
333,
907,
273,
446,
31,
202,
202,
2624,
3179,
2624,
273,
394,
7283,
5621,
202,
202,
2624,
8427,
2624,
273,
394,
7283,
5621,
202,
202,
3641,
3179,
273,
446,
31,
202,
202,
3641,
19170,
273,
446,
31,
202,
202,
2896,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
4811,
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,
490,
10545,
1109,
9552,
1449,
12,
780,
3029,
1449,
13,
1216,
1962,
9552,
1449,
503,
288,
3639,
1194,
18,
4148,
2932,
2670,
9552,
1449,
1435,
7070,
1769,
202,
202,
9807,
8427,
273,
446,
31,
202,
202,
2159,
4789,
273,
374,
31,
202,
202,
26425,
1482,
273,
374,
31,
3639,
1250,
8427,
4002,
273,
638,
31,
202,
202,
2211,
10369,
273,
300,
21,
31,
202,
202,
2972,
5335,
273,
446,
31,
202,
202,
81,
10545,
273,
394,
490,
10545,
5621,
202,
202,
3276,
273,
374,
31,
202,
202,
759,
732,
2727,
1404,
2545,
1898,
2353,
6250,
26537,
202,
202,
86,
899,
273,
394,
7149,
63,
2163,
3247,
15533,
202,
202,
8022,
70,
4096,
273,
394,
1645,
63,
2163,
2
] |
getShell().getDisplay().syncExec(new Runnable() { public void run() { revertAndUpdate = MessageDialog.openQuestion(getShell(), Policy.bind("SyncAction.override"), Policy.bind("SyncAction.override.confirm"));
|
if (!revertAndUpdate) return; if (!prompted) { getShell().getDisplay().syncExec(new Runnable() { public void run() { revertAndUpdate = MessageDialog.openQuestion(getShell(), Policy.bind("SyncAction.override"), Policy.bind("SyncAction.override.confirm")); } }); prompted = true; } if (!revertAndUpdate) return; IResource[] modifiedResourceArray = extractResources(modifiedResources, set); IResource[] resourceArray = extractResources(resources, set); if (modifiedResourceArray != null && modifiedResourceArray.length > 0) { monitor.beginTask(null, 100); try { new RevertResourcesCommand(provider.getSVNWorkspaceRoot(),modifiedResourceArray).run(Policy.subMonitorFor(monitor,100)); } catch (SVNException e) { collectStatus(e.getStatus()); } finally { monitor.done();
|
protected void run(SVNTeamProvider provider, SyncInfoSet set, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { getShell().getDisplay().syncExec(new Runnable() { public void run() { revertAndUpdate = MessageDialog.openQuestion(getShell(), Policy.bind("SyncAction.override"), Policy.bind("SyncAction.override.confirm")); } }); if (!revertAndUpdate) return; if (modifiedResources != null && modifiedResources.length > 0) new RevertOperation(getPart(), modifiedResources).run(); new UpdateOperation(getPart(), resources, SVNRevision.HEAD, true).run(); }
|
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/122051856d4ee2d2e369869410232bbc21d9a004/OverrideAndUpdateSynchronizeOperation.java/buggy/subclipse/ui/src/org/tigris/subversion/subclipse/ui/subscriber/OverrideAndUpdateSynchronizeOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1086,
12,
23927,
1784,
3820,
2249,
2893,
16,
9721,
966,
694,
444,
16,
467,
5491,
7187,
6438,
13,
1216,
15342,
16,
7558,
288,
202,
202,
588,
13220,
7675,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
266,
1097,
1876,
1891,
273,
2350,
6353,
18,
3190,
11665,
12,
588,
13220,
9334,
7436,
18,
4376,
2932,
4047,
1803,
18,
10601,
6,
3631,
7436,
18,
4376,
2932,
4047,
1803,
18,
10601,
18,
10927,
7923,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
430,
16051,
266,
1097,
1876,
1891,
13,
327,
31,
202,
202,
430,
261,
7342,
3805,
480,
446,
597,
4358,
3805,
18,
2469,
405,
374,
13,
394,
868,
1097,
2988,
12,
588,
1988,
9334,
4358,
3805,
2934,
2681,
5621,
202,
202,
2704,
2315,
2988,
12,
588,
1988,
9334,
2703,
16,
29537,
50,
7939,
18,
12458,
16,
638,
2934,
2681,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1086,
12,
23927,
1784,
3820,
2249,
2893,
16,
9721,
966,
694,
444,
16,
467,
5491,
7187,
6438,
13,
1216,
15342,
16,
7558,
288,
202,
202,
588,
13220,
7675,
588,
4236,
7675,
8389,
1905,
12,
2704,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
266,
1097,
1876,
1891,
273,
2350,
6353,
18,
3190,
11665,
12,
588,
13220,
9334,
7436,
18,
4376,
2932,
4047,
1803,
18,
10601,
6,
3631,
7436,
18,
4376,
2932,
4047,
1803,
18,
10601,
18,
10927,
7923,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
430,
16051,
266,
1097,
1876,
1891,
13,
327,
31,
202,
202,
430,
261,
7342,
3805,
480,
446,
597,
4358,
3805,
18,
2469,
405,
374,
2
] |
public org.quickfix.field.CumQty getCumQty() throws FieldNotFound { org.quickfix.field.CumQty value = new org.quickfix.field.CumQty();
|
public quickfix.field.CumQty getCumQty() throws FieldNotFound { quickfix.field.CumQty value = new quickfix.field.CumQty();
|
public org.quickfix.field.CumQty getCumQty() throws FieldNotFound { org.quickfix.field.CumQty value = new org.quickfix.field.CumQty(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListStatus.java/buggy/src/java/src/quickfix/fix42/ListStatus.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
379,
53,
4098,
1927,
379,
53,
4098,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
379,
53,
4098,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
39,
379,
53,
4098,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
39,
379,
53,
4098,
1927,
379,
53,
4098,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
39,
379,
53,
4098,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
39,
379,
53,
4098,
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
] |
m_UploadResourceType = (String) theParameters.get(I_CmsWpConstants.C_PARA_NEWTYPE); if (m_UploadResourceType != null) { session.putValue(I_CmsWpConstants.C_PARA_NEWTYPE, m_UploadResourceType); } else { m_UploadResourceType = (String) session.getValue(I_CmsWpConstants.C_PARA_NEWTYPE); }
|
m_UploadResourceType = (String)theParameters.get(I_CmsWpConstants.C_PARA_NEWTYPE); if (m_UploadResourceType != null) { session.putValue(I_CmsWpConstants.C_PARA_NEWTYPE, m_UploadResourceType); } else { m_UploadResourceType = (String)session.getValue(I_CmsWpConstants.C_PARA_NEWTYPE); }
|
private void readInput(CmsObject cms, Hashtable theParameters) throws CmsException { I_CmsSession session = cms.getRequestContext().getSession(true); // reset all member values first m_OldResourceName = null; m_OldResourceType = null; m_UploadResourceName = null; m_UploadResourceContent = null; m_UploadResourceType = null; m_NextStep = null; ////////////////////////////////////////////////////////////////////// // clear session values on the first load if (theParameters.get(I_CmsWpConstants.C_PARA_INITIAL) != null) { this.clearSessionValues(session); } ////////////////////////////////////////////////////////////////////// // save the name of the old resource in the session m_OldResourceName = (String) theParameters.get(I_CmsWpConstants.C_PARA_RESOURCE); if (m_OldResourceName != null) { session.putValue(I_CmsWpConstants.C_PARA_RESOURCE, m_OldResourceName); // preserve the type of the old resource depending on the file extension as well Hashtable fileExtensions = cms.readFileExtensions(); String uploadFilenameExtension = m_OldResourceName.substring(m_OldResourceName.lastIndexOf('.') + 1).toLowerCase(); if (fileExtensions != null) { m_OldResourceType = (String) fileExtensions.get(uploadFilenameExtension); } if (m_OldResourceType == null) { // the resource type should be at least the empty string m_OldResourceType = ""; } session.putValue("OLD_TYPE", m_OldResourceType); } else { m_OldResourceName = (String) session.getValue(I_CmsWpConstants.C_PARA_RESOURCE); m_OldResourceType = (String) session.getValue("OLD_TYPE"); } ////////////////////////////////////////////////////////////////////// // get the next step parameter that tells this class what to do next... m_NextStep = (String) theParameters.get(CmsReplace.C_PARA_NEXT_STEP); ////////////////////////////////////////////////////////////////////// // get both the name and content of the new resource and save it in the session Enumeration allUploadedFilenames = cms.getRequestContext().getRequest().getFileNames(); while (allUploadedFilenames.hasMoreElements()) { m_UploadResourceName = (String) allUploadedFilenames.nextElement(); } if (m_UploadResourceName != null) { session.putValue("NEW_RESOURCE", m_UploadResourceName); m_UploadResourceContent = cms.getRequestContext().getRequest().getFile(m_UploadResourceName); session.putValue(I_CmsWpConstants.C_PARA_FILECONTENT, m_UploadResourceContent); } else { m_UploadResourceName = (String) session.getValue("NEW_RESOURCE"); m_UploadResourceContent = (byte[]) session.getValue(I_CmsWpConstants.C_PARA_FILECONTENT); } m_XmlTemplateDocument.setData("NEW_RESOURCE", m_UploadResourceName); ////////////////////////////////////////////////////////////////////// // get the type of the new resource m_UploadResourceType = (String) theParameters.get(I_CmsWpConstants.C_PARA_NEWTYPE); if (m_UploadResourceType != null) { session.putValue(I_CmsWpConstants.C_PARA_NEWTYPE, m_UploadResourceType); } else { m_UploadResourceType = (String) session.getValue(I_CmsWpConstants.C_PARA_NEWTYPE); } ////////////////////////////////////////////////////////////////////// if (DEBUG > 0) { System.out.println("\nnext step: " + m_NextStep); System.out.println("old resource: " + m_OldResourceName); System.out.println("old type: " + m_OldResourceType); System.out.println("new resource: " + m_UploadResourceName); System.out.println("new type: " + m_UploadResourceType); } }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/6cce177c14c6e3885b587df5eb3efe618285760f/CmsReplace.java/clean/src/com/opencms/workplace/CmsReplace.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
855,
1210,
12,
4747,
921,
6166,
16,
18559,
326,
2402,
13,
1216,
11228,
288,
202,
202,
45,
67,
4747,
2157,
1339,
273,
6166,
18,
588,
21426,
7675,
588,
2157,
12,
3767,
1769,
202,
202,
759,
2715,
777,
3140,
924,
1122,
202,
202,
81,
67,
7617,
19327,
273,
446,
31,
202,
202,
81,
67,
7617,
15631,
273,
446,
31,
202,
202,
81,
67,
4777,
19327,
273,
446,
31,
202,
202,
81,
67,
4777,
1420,
1350,
273,
446,
31,
202,
202,
81,
67,
4777,
15631,
273,
446,
31,
202,
202,
81,
67,
2134,
4160,
273,
446,
31,
202,
202,
14300,
18235,
202,
202,
759,
2424,
1339,
924,
603,
326,
1122,
1262,
202,
202,
430,
261,
5787,
2402,
18,
588,
12,
45,
67,
4747,
59,
84,
2918,
18,
39,
67,
2778,
37,
67,
28497,
13,
480,
446,
13,
288,
1082,
202,
2211,
18,
8507,
2157,
1972,
12,
3184,
1769,
202,
202,
97,
202,
202,
14300,
18235,
4202,
202,
202,
759,
1923,
326,
508,
434,
326,
1592,
1058,
316,
326,
1339,
202,
202,
81,
67,
7617,
19327,
273,
261,
780,
13,
326,
2402,
18,
588,
12,
45,
67,
4747,
59,
84,
2918,
18,
39,
67,
2778,
37,
67,
11395,
1769,
202,
202,
430,
261,
81,
67,
7617,
19327,
480,
446,
13,
288,
1082,
202,
3184,
18,
458,
620,
12,
45,
67,
4747,
59,
84,
2918,
18,
39,
67,
2778,
37,
67,
11395,
16,
312,
67,
7617,
19327,
1769,
1082,
202,
759,
9420,
326,
618,
434,
326,
1592,
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,
855,
1210,
12,
4747,
921,
6166,
16,
18559,
326,
2402,
13,
1216,
11228,
288,
202,
202,
45,
67,
4747,
2157,
1339,
273,
6166,
18,
588,
21426,
7675,
588,
2157,
12,
3767,
1769,
202,
202,
759,
2715,
777,
3140,
924,
1122,
202,
202,
81,
67,
7617,
19327,
273,
446,
31,
202,
202,
81,
67,
7617,
15631,
273,
446,
31,
202,
202,
81,
67,
4777,
19327,
273,
446,
31,
202,
202,
81,
67,
4777,
1420,
1350,
273,
446,
31,
202,
202,
81,
67,
4777,
15631,
273,
446,
31,
202,
202,
81,
67,
2134,
4160,
273,
446,
31,
202,
202,
14300,
18235,
202,
202,
759,
2424,
1339,
924,
603,
326,
1122,
1262,
202,
202,
430,
261,
5787,
2402,
2
] |
parse(buffer.toString(), ParserLanguage.CPP, true, true);
|
parse(buffer.toString(), ParserLanguage.CPP, true, 0);
|
public void test9_7s3() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("class E {\n"); //$NON-NLS-1$ buffer.append("class I1; // forward declaration of nested class\n"); //$NON-NLS-1$ buffer.append("class I2;\n"); //$NON-NLS-1$ buffer.append("class I1 {}; // definition of nested class\n"); //$NON-NLS-1$ buffer.append("};\n"); //$NON-NLS-1$ buffer.append("class E::I2 {}; // definition of nested class\n"); //$NON-NLS-1$ parse(buffer.toString(), ParserLanguage.CPP, true, true); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
29,
67,
27,
87,
23,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
1106,
512,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
1106,
467,
21,
31,
368,
5104,
8266,
434,
4764,
667,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
1106,
467,
22,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
1106,
467,
21,
2618,
31,
368,
2379,
434,
4764,
667,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
97,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
1106,
512,
2866,
45,
22,
2618,
31,
368,
2379,
434,
4764,
667,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2670,
12,
4106,
18,
10492,
9334,
6783,
3779,
18,
4258,
52,
16,
638,
16,
638,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
29,
67,
27,
87,
23,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
1106,
512,
18890,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
1106,
467,
21,
31,
368,
5104,
8266,
434,
4764,
667,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
1106,
467,
22,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
1106,
467,
21,
2618,
31,
368,
2379,
434,
4764,
667,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
97,
2
] |
if (markupModel != null) { markupModel.removeHighlighter(highlighter); }
|
markupModel.removeHighlighter(highlighter);
|
public void run() { if (highlighter.isValid()) { MarkupModel markupModel = highlighter.getDocument().getMarkupModel(myProject); if (markupModel != null) { markupModel.removeHighlighter(highlighter); } //we should delete it here, so gutter will not fire events to deleted breakpoint BreakpointWithHighlighter.super.delete(); } }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/916472f51c1b43221f90c2bfb91515da9da6ed6a/BreakpointWithHighlighter.java/buggy/debugger/impl/com/intellij/debugger/ui/breakpoints/BreakpointWithHighlighter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
9079,
1071,
918,
1086,
1435,
288,
7734,
309,
261,
8766,
23624,
18,
26810,
10756,
288,
5375,
26420,
1488,
9813,
1488,
273,
3551,
23624,
18,
588,
2519,
7675,
588,
13111,
1488,
12,
4811,
4109,
1769,
5375,
309,
261,
15056,
1488,
480,
446,
13,
288,
10792,
9813,
1488,
18,
4479,
8573,
23624,
12,
8766,
23624,
1769,
5375,
289,
5375,
368,
1814,
1410,
1430,
518,
2674,
16,
1427,
314,
18220,
903,
486,
4452,
2641,
358,
4282,
18820,
5375,
17030,
1153,
1190,
8573,
23624,
18,
9565,
18,
3733,
5621,
7734,
289,
2868,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9079,
1071,
918,
1086,
1435,
288,
7734,
309,
261,
8766,
23624,
18,
26810,
10756,
288,
5375,
26420,
1488,
9813,
1488,
273,
3551,
23624,
18,
588,
2519,
7675,
588,
13111,
1488,
12,
4811,
4109,
1769,
5375,
309,
261,
15056,
1488,
480,
446,
13,
288,
10792,
9813,
1488,
18,
4479,
8573,
23624,
12,
8766,
23624,
1769,
5375,
289,
5375,
368,
1814,
1410,
1430,
518,
2674,
16,
1427,
314,
18220,
903,
486,
4452,
2641,
358,
4282,
18820,
5375,
17030,
1153,
1190,
8573,
23624,
18,
9565,
18,
3733,
5621,
7734,
289,
2868,
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
] |
return RubyArray.newArray(runtime);
|
return getRuntime().newArray();
|
public IRubyObject last(IRubyObject[] args) { int length = getLength(); if (args != null) { int listSize = list.size(); int sublistSize = 0; int startIndex = 0; switch (args.length) { case 0: return length == 0 ? runtime.getNil() : entry(length - 1); case 1: sublistSize = RubyNumeric.fix2int(args[0]); if (sublistSize == 0) { return RubyArray.newArray(runtime); } if (sublistSize < 0) { throw new ArgumentError(runtime, "negative array size (or size too big)"); } startIndex = (sublistSize > listSize)? 0: listSize - sublistSize; return RubyArray.newArray(runtime, list.subList(startIndex, listSize)); default: throw new ArgumentError(runtime, "wrong number of arguments (" + length + " for 1)"); } } Asserts.notReached(); return null; }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArray.java/clean/src/org/jruby/RubyArray.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1142,
12,
7937,
10340,
921,
8526,
833,
13,
288,
377,
202,
474,
769,
273,
9888,
5621,
377,
202,
430,
261,
1968,
480,
446,
13,
288,
377,
202,
202,
474,
666,
1225,
273,
666,
18,
1467,
5621,
377,
202,
202,
474,
26680,
1225,
273,
374,
31,
377,
202,
202,
474,
10588,
273,
374,
31,
377,
1082,
377,
202,
202,
9610,
261,
1968,
18,
2469,
13,
288,
377,
202,
202,
3593,
374,
30,
377,
1082,
202,
2463,
769,
422,
374,
692,
3099,
18,
588,
12616,
1435,
294,
1241,
12,
2469,
300,
404,
1769,
377,
202,
202,
3593,
404,
30,
377,
1082,
202,
87,
440,
376,
1225,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
20,
19226,
377,
1082,
202,
430,
261,
87,
440,
376,
1225,
422,
374,
13,
288,
377,
9506,
202,
2463,
18814,
7675,
2704,
1076,
5621,
377,
1082,
202,
97,
377,
1082,
202,
430,
261,
87,
440,
376,
1225,
411,
374,
13,
288,
377,
9506,
202,
12849,
394,
9236,
12,
9448,
16,
315,
13258,
526,
963,
261,
280,
963,
4885,
5446,
2225,
1769,
377,
1082,
202,
97,
377,
9506,
377,
1082,
202,
1937,
1016,
273,
261,
87,
440,
376,
1225,
405,
666,
1225,
9945,
374,
30,
666,
1225,
300,
26680,
1225,
31,
377,
1082,
202,
2463,
19817,
1076,
18,
2704,
1076,
12,
9448,
16,
666,
18,
1717,
682,
12,
1937,
1016,
16,
666,
1225,
10019,
377,
202,
202,
1886,
30,
377,
1082,
202,
12849,
394,
9236,
12,
9448,
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,
15908,
10340,
921,
1142,
12,
7937,
10340,
921,
8526,
833,
13,
288,
377,
202,
474,
769,
273,
9888,
5621,
377,
202,
430,
261,
1968,
480,
446,
13,
288,
377,
202,
202,
474,
666,
1225,
273,
666,
18,
1467,
5621,
377,
202,
202,
474,
26680,
1225,
273,
374,
31,
377,
202,
202,
474,
10588,
273,
374,
31,
377,
1082,
377,
202,
202,
9610,
261,
1968,
18,
2469,
13,
288,
377,
202,
202,
3593,
374,
30,
377,
1082,
202,
2463,
769,
422,
374,
692,
3099,
18,
588,
12616,
1435,
294,
1241,
12,
2469,
300,
404,
1769,
377,
202,
202,
3593,
404,
30,
377,
1082,
202,
87,
440,
376,
1225,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
2
] |
_previousState = _state; _state = state; if(state==ProcessState.STATE_TERMINATED) { for (CorrelatorDAO correlatorDAO : _processDao.getCorrelators()) { correlatorDAO.removeRoutes(null, this); }
|
_previousState = _state; _state = state; if (state == ProcessState.STATE_TERMINATED) { for (CorrelatorDAO correlatorDAO : _processDao.getCorrelators()) { correlatorDAO.removeRoutes(null, this); } }
|
public void setState(short state) { _previousState = _state; _state = state; if(state==ProcessState.STATE_TERMINATED) { for (CorrelatorDAO correlatorDAO : _processDao.getCorrelators()) { correlatorDAO.removeRoutes(null, this); } } }
|
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/0ef14399f68e97dbf7fb72a656f5befb1bdbc8ac/ProcessInstanceDaoImpl.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/ProcessInstanceDaoImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
12947,
12,
6620,
919,
13,
288,
565,
389,
11515,
1119,
273,
389,
2019,
31,
565,
389,
2019,
273,
919,
31,
565,
309,
12,
2019,
631,
2227,
1119,
18,
7998,
67,
29516,
6344,
13,
288,
1377,
364,
261,
6217,
2878,
639,
18485,
1858,
2878,
639,
18485,
294,
389,
2567,
11412,
18,
588,
6217,
2878,
3062,
10756,
288,
3639,
1858,
2878,
639,
18485,
18,
4479,
8110,
12,
2011,
16,
333,
1769,
1377,
289,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12947,
12,
6620,
919,
13,
288,
565,
389,
11515,
1119,
273,
389,
2019,
31,
565,
389,
2019,
273,
919,
31,
565,
309,
12,
2019,
631,
2227,
1119,
18,
7998,
67,
29516,
6344,
13,
288,
1377,
364,
261,
6217,
2878,
639,
18485,
1858,
2878,
639,
18485,
294,
389,
2567,
11412,
18,
588,
6217,
2878,
3062,
10756,
288,
3639,
1858,
2878,
639,
18485,
18,
4479,
8110,
12,
2011,
16,
333,
1769,
1377,
289,
565,
289,
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
] |
public static Scriptable toObject(Object value, Scriptable scope, Class staticType)
|
public static Scriptable toObject(Object value, Scriptable scope)
|
public static Scriptable toObject(Object value, Scriptable scope, Class staticType) { return ScriptRuntime.toObject(scope, value); }
|
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/0103da48e6e58ebf7674bbea96418aac1f2b34e0/Context.java/buggy/src/org/mozilla/javascript/Context.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
24216,
12,
921,
460,
16,
22780,
2146,
16,
4766,
1377,
1659,
760,
559,
13,
565,
288,
3639,
327,
7739,
5576,
18,
869,
921,
12,
4887,
16,
460,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
24216,
12,
921,
460,
16,
22780,
2146,
16,
4766,
1377,
1659,
760,
559,
13,
565,
288,
3639,
327,
7739,
5576,
18,
869,
921,
12,
4887,
16,
460,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setTabList();
|
private void createToolBars() { Composite parentControl = control; int barStyle = SWT.FLAT | SWT.WRAP; // ISV toolbar. // // 1GD0ISU: ITPUI:ALL - Dbl click on view tool cause zoom isvToolBar = new ToolBar(parentControl.getParent(), barStyle); if (locked) { //((ViewForm2)control).setTopCenter(isvToolBar); isvToolBar.addMouseListener(new MouseAdapter(){ public void mouseDoubleClick(MouseEvent event) { if (isvToolBar.getItem(new Point(event.x, event.y)) == null) doZoom(); } }); } else { //isvToolBar.setLayoutData(new GridData(GridData.FILL_BOTH)); } IContributionItem[] isvItems = null; if (isvToolBarMgr != null) { isvItems = isvToolBarMgr.getItems(); isvToolBarMgr.dispose(); } isvToolBarMgr = new PaneToolBarManager(isvToolBar); if (isvItems != null) { for (int i = 0; i < isvItems.length; i++) { isvToolBarMgr.add(isvItems[i]); } } setTabList(); // only do this once for the non-floating toolbar case. Otherwise update colors // whenever updating the tab colors ColorSchemeService.setViewColors(parentControl); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/2486ed65028afc821178493c1fefded35fd8f8f1/ViewPane.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
6364,
5190,
87,
1435,
288,
202,
202,
9400,
982,
3367,
273,
3325,
31,
202,
202,
474,
4653,
2885,
273,
348,
8588,
18,
42,
12190,
571,
348,
8588,
18,
27664,
31,
9506,
202,
759,
4437,
58,
12748,
18,
202,
202,
759,
1082,
202,
759,
404,
27338,
20,
5127,
57,
30,
467,
11130,
5370,
30,
4685,
300,
463,
3083,
4682,
603,
1476,
5226,
4620,
7182,
202,
202,
291,
90,
6364,
5190,
273,
394,
13288,
5190,
12,
2938,
3367,
18,
588,
3054,
9334,
4653,
2885,
1769,
6862,
9506,
202,
430,
261,
15091,
13,
288,
1082,
202,
759,
12443,
1767,
1204,
22,
13,
7098,
2934,
542,
3401,
8449,
12,
291,
90,
6364,
5190,
1769,
9506,
202,
291,
90,
6364,
5190,
18,
1289,
9186,
2223,
12,
2704,
17013,
4216,
1435,
95,
9506,
202,
482,
918,
7644,
5265,
6563,
12,
9186,
1133,
871,
13,
288,
6862,
202,
430,
261,
291,
90,
6364,
5190,
18,
588,
1180,
12,
2704,
4686,
12,
2575,
18,
92,
16,
871,
18,
93,
3719,
422,
446,
13,
25083,
202,
2896,
11497,
5621,
9506,
202,
97,
1082,
202,
22938,
202,
202,
97,
469,
288,
1082,
202,
759,
291,
90,
6364,
5190,
18,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
202,
202,
97,
202,
202,
45,
442,
4027,
1180,
8526,
353,
90,
3126,
273,
446,
31,
202,
202,
430,
261,
291,
90,
6364,
5190,
9455,
480,
446,
13,
288,
1082,
202,
291,
90,
3126,
273,
353,
90,
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,
752,
6364,
5190,
87,
1435,
288,
202,
202,
9400,
982,
3367,
273,
3325,
31,
202,
202,
474,
4653,
2885,
273,
348,
8588,
18,
42,
12190,
571,
348,
8588,
18,
27664,
31,
9506,
202,
759,
4437,
58,
12748,
18,
202,
202,
759,
1082,
202,
759,
404,
27338,
20,
5127,
57,
30,
467,
11130,
5370,
30,
4685,
300,
463,
3083,
4682,
603,
1476,
5226,
4620,
7182,
202,
202,
291,
90,
6364,
5190,
273,
394,
13288,
5190,
12,
2938,
3367,
18,
588,
3054,
9334,
4653,
2885,
1769,
6862,
9506,
202,
430,
261,
15091,
13,
288,
1082,
202,
759,
12443,
1767,
1204,
22,
13,
7098,
2934,
542,
3401,
8449,
12,
291,
90,
6364,
5190,
1769,
9506,
202,
291,
90,
2
] |
|
while( true ) {
|
while (true) {
|
synchronized PacketRowResult fetchRow(TdsStatement stmt, SQLWarningChain wChain, Context context) throws SQLException { PacketResult res = null; try { // Keep eating garbage and warnings until we reach the next result while( true ) { res = processSubPacket(context); switch( res.getPacketType() ) { case TDS_ROW: return (PacketRowResult)res; case TDS_COL_NAME_TOKEN: case TDS_COLMETADATA: // SAfe This shouldn't really happen wChain.addException( new SQLException("Unexpected packet type.")); break; case TDS_DONE: case TDS_DONEINPROC: case TDS_DONEPROC: if( ((PacketEndTokenResult)res).wasCanceled() ) wChain.addException( new SQLException("Query was cancelled or timed out.")); goToNextResult(wChain, stmt); return null; case TDS_PROCID: // SAfe Find out what this packet means break; case TDS_RETURNSTATUS: stmt.handleRetStat((PacketRetStatResult)res); break; case TDS_PARAM: stmt.handleParamResult((PacketOutputParamResult)res); break; case TDS_INFO: case TDS_ERROR: wChain.addOrReturn((PacketMsgResult)res); break; default: wChain.addException(new SQLException( "Protocol confusion. Got a 0x" + Integer.toHexString((res.getPacketType() & 0xff)) + " packet")); break; } } } catch (java.io.IOException e) { wChain.addException(new SQLException("Network problem. " + e.getMessage())); } catch (net.sourceforge.jtds.jdbc.TdsUnknownPacketSubType e) { wChain.addException(new SQLException("Unknown response. " + e.getMessage())); } catch (net.sourceforge.jtds.jdbc.TdsException e) { wChain.addException(new SQLException(e.toString())); } catch (SQLException e) { wChain.addException(e); } return null; }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/082f6b97f424e9550bf490d66efbe1c288b8df9b/Tds.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
11114,
1999,
1253,
2158,
1999,
12,
56,
2377,
3406,
3480,
16,
4766,
1850,
3063,
6210,
3893,
341,
3893,
16,
4766,
1850,
1772,
819,
13,
3639,
1216,
6483,
565,
288,
3639,
11114,
1253,
400,
273,
446,
31,
3639,
775,
3639,
288,
5411,
368,
10498,
425,
1776,
15340,
471,
5599,
3180,
732,
9287,
326,
1024,
563,
5411,
1323,
12,
638,
262,
5411,
288,
7734,
400,
273,
1207,
1676,
6667,
12,
2472,
1769,
7734,
1620,
12,
400,
18,
588,
6667,
559,
1435,
262,
7734,
288,
10792,
648,
399,
3948,
67,
11226,
30,
13491,
327,
261,
6667,
1999,
1253,
13,
455,
31,
10792,
648,
399,
3948,
67,
4935,
67,
1985,
67,
8412,
30,
10792,
648,
399,
3948,
67,
4935,
22746,
30,
13491,
368,
17127,
3030,
1220,
12044,
1404,
8654,
5865,
13491,
341,
3893,
18,
1289,
503,
12,
18701,
394,
6483,
2932,
7762,
4414,
618,
1199,
10019,
13491,
898,
31,
10792,
648,
399,
3948,
67,
26875,
30,
10792,
648,
399,
3948,
67,
26875,
706,
3373,
39,
30,
10792,
648,
399,
3948,
67,
26875,
3373,
39,
30,
13491,
309,
12,
14015,
6667,
1638,
1345,
1253,
13,
455,
2934,
17416,
23163,
1435,
262,
18701,
341,
3893,
18,
1289,
503,
12,
27573,
394,
6483,
2932,
1138,
1703,
13927,
578,
7491,
596,
1199,
10019,
13491,
1960,
774,
2134,
1253,
12,
91,
3893,
16,
3480,
1769,
13491,
327,
446,
31,
10792,
648,
399,
3948,
67,
3373,
25992,
30,
13491,
368,
17127,
3030,
4163,
596,
4121,
333,
4414,
4696,
13491,
898,
31,
10792,
648,
399,
3948,
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,
3852,
11114,
1999,
1253,
2158,
1999,
12,
56,
2377,
3406,
3480,
16,
4766,
1850,
3063,
6210,
3893,
341,
3893,
16,
4766,
1850,
1772,
819,
13,
3639,
1216,
6483,
565,
288,
3639,
11114,
1253,
400,
273,
446,
31,
3639,
775,
3639,
288,
5411,
368,
10498,
425,
1776,
15340,
471,
5599,
3180,
732,
9287,
326,
1024,
563,
5411,
1323,
12,
638,
262,
5411,
288,
7734,
400,
273,
1207,
1676,
6667,
12,
2472,
1769,
7734,
1620,
12,
400,
18,
588,
6667,
559,
1435,
262,
7734,
288,
10792,
648,
399,
3948,
67,
11226,
30,
13491,
327,
261,
6667,
1999,
1253,
13,
455,
31,
10792,
648,
399,
3948,
67,
4935,
67,
1985,
67,
8412,
30,
10792,
648,
399,
3948,
67,
4935,
22746,
30,
2
] |
derefLocationSet = new HashSet<Location>();
|
derefLocationSet = Collections.EMPTY_SET;
|
public Set<Location> getUnconditionalDerefLocationSet(ValueNumber vn) { Set<Location> derefLocationSet = derefLocationSetMap.get(vn); if (derefLocationSet == null ) { derefLocationSet = new HashSet<Location>(); } return derefLocationSet; }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/92d6efdda1622d136ba0d1b7d96845861bf19f95/UnconditionalValueDerefSet.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/deref/UnconditionalValueDerefSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1000,
32,
2735,
34,
10833,
22019,
40,
822,
74,
2735,
694,
12,
620,
1854,
21732,
13,
288,
202,
202,
694,
32,
2735,
34,
18207,
74,
2735,
694,
273,
18207,
74,
2735,
694,
863,
18,
588,
12,
25031,
1769,
202,
202,
430,
261,
765,
10241,
2735,
694,
422,
446,
262,
288,
1082,
202,
765,
10241,
2735,
694,
273,
394,
6847,
32,
2735,
34,
5621,
202,
202,
97,
202,
202,
2463,
18207,
74,
2735,
694,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1000,
32,
2735,
34,
10833,
22019,
40,
822,
74,
2735,
694,
12,
620,
1854,
21732,
13,
288,
202,
202,
694,
32,
2735,
34,
18207,
74,
2735,
694,
273,
18207,
74,
2735,
694,
863,
18,
588,
12,
25031,
1769,
202,
202,
430,
261,
765,
10241,
2735,
694,
422,
446,
262,
288,
1082,
202,
765,
10241,
2735,
694,
273,
394,
6847,
32,
2735,
34,
5621,
202,
202,
97,
202,
202,
2463,
18207,
74,
2735,
694,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void testCancelSaveAsAlreadySaved() throws BadLocationException, IOException { OpenDefinitionsDocument doc = setupDocument(FOO_TEXT); final File file = tempFile(); // No listeners here -- other tests ensure the first save works doc.saveFile(new FileSelector(file)); assertModified(false, doc); assertContents(FOO_TEXT, doc); assertEquals("contents of saved file", FOO_TEXT, FileOps.readFileAsString(file)); // No events better be fired! _model.addListener(new TestListener()); // Muck up the document changeDocumentText(BAR_TEXT, doc); doc.saveFileAs(new CancelingSelector()); assertEquals("contents of saved file", FOO_TEXT, FileOps.readFileAsString(file)); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/a2e65b5d7c2d7a000e177f6f8c9c0731c89b2734/GlobalModelIOTest.java/clean/drjava/src/edu/rice/cs/drjava/model/GlobalModelIOTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
6691,
4755,
1463,
9430,
16776,
1435,
565,
1216,
6107,
2735,
503,
16,
1860,
225,
288,
565,
3502,
7130,
2519,
997,
273,
3875,
2519,
12,
3313,
51,
67,
5151,
1769,
565,
727,
1387,
585,
273,
18286,
5621,
565,
368,
2631,
4679,
2674,
1493,
1308,
7434,
3387,
326,
1122,
1923,
6330,
565,
997,
18,
5688,
812,
12,
2704,
1387,
4320,
12,
768,
10019,
565,
1815,
4575,
12,
5743,
16,
997,
1769,
565,
1815,
6323,
12,
3313,
51,
67,
5151,
16,
997,
1769,
565,
1815,
8867,
2932,
3980,
434,
5198,
585,
3113,
1171,
17634,
51,
67,
5151,
16,
1171,
1387,
8132,
18,
896,
812,
8092,
12,
768,
10019,
565,
368,
2631,
2641,
7844,
506,
15950,
5,
565,
389,
2284,
18,
1289,
2223,
12,
2704,
7766,
2223,
10663,
565,
368,
490,
9031,
731,
326,
1668,
565,
2549,
2519,
1528,
12,
21908,
67,
5151,
16,
997,
1769,
565,
997,
18,
5688,
812,
1463,
12,
2704,
10347,
310,
4320,
10663,
565,
1815,
8867,
2932,
3980,
434,
5198,
585,
3113,
1171,
17634,
51,
67,
5151,
16,
1171,
1387,
8132,
18,
896,
812,
8092,
12,
768,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
6691,
4755,
1463,
9430,
16776,
1435,
565,
1216,
6107,
2735,
503,
16,
1860,
225,
288,
565,
3502,
7130,
2519,
997,
273,
3875,
2519,
12,
3313,
51,
67,
5151,
1769,
565,
727,
1387,
585,
273,
18286,
5621,
565,
368,
2631,
4679,
2674,
1493,
1308,
7434,
3387,
326,
1122,
1923,
6330,
565,
997,
18,
5688,
812,
12,
2704,
1387,
4320,
12,
768,
10019,
565,
1815,
4575,
12,
5743,
16,
997,
1769,
565,
1815,
6323,
12,
3313,
51,
67,
5151,
16,
997,
1769,
565,
1815,
8867,
2932,
3980,
434,
5198,
585,
3113,
1171,
17634,
51,
67,
5151,
16,
1171,
1387,
8132,
18,
896,
812,
8092,
12,
768,
10019,
565,
368,
2631,
2641,
7844,
506,
15950,
5,
565,
389,
2
] |
||
public org.quickfix.field.LegPool getLegPool() throws FieldNotFound { org.quickfix.field.LegPool value = new org.quickfix.field.LegPool();
|
public quickfix.field.LegPool getLegPool() throws FieldNotFound { quickfix.field.LegPool value = new quickfix.field.LegPool();
|
public org.quickfix.field.LegPool getLegPool() throws FieldNotFound { org.quickfix.field.LegPool value = new org.quickfix.field.LegPool(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderMultileg.java/buggy/src/java/src/quickfix/fix44/NewOrderMultileg.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
2864,
336,
8329,
2864,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
2864,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
2864,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
2864,
336,
8329,
2864,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
2864,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
2864,
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
] |
for(ISuiteResult r2 : r.values()) { ITestContext test=r2.getTestContext(); resultSummary( test.getFailedTests(), test.getName(), "failed"); resultSummary( test.getSkippedTests(), test.getName(), "skipped"); resultSummary( test.getPassedTests(), test.getName(), "passed");
|
for (ISuiteResult r2 : r.values()) { ITestContext test = r2.getTestContext(); resultSummary(test.getFailedTests(), test.getName(), "failed"); resultSummary(test.getSkippedTests(), test.getName(), "skipped"); resultSummary(test.getPassedTests(), test.getName(), "passed");
|
public void generateReport( List<XmlSuite> xml, List<ISuite> suites, String outdir) { try { out= new PrintWriter( new FileWriter(new File(outdir,"emailable-report.html"))); } catch(IOException e) { logger.error("output file",e); return; } startHtml(out); summarize(suites); method_ptr=0; for(ISuite suite : suites) { out.println("<a id=\"summary\"></a>"); Map<String,ISuiteResult> r=suite.getResults(); startResultSummaryTable("passed"); for(ISuiteResult r2 : r.values()) { ITestContext test=r2.getTestContext(); resultSummary( test.getFailedTests(), test.getName(), "failed"); resultSummary( test.getSkippedTests(), test.getName(), "skipped"); resultSummary( test.getPassedTests(), test.getName(), "passed"); } } out.println("</table>"); method_ptr=0; for(ISuite suite : suites) { Map<String,ISuiteResult> r=suite.getResults(); for(ISuiteResult r2 : r.values()) { if(r.values().size()>0) { out.println("<h1>"+r2.getTestContext().getName()+"</h1>"); } resultDetail( r2.getTestContext().getFailedTests(), "failed"); resultDetail( r2.getTestContext().getSkippedTests(), "skipped"); resultDetail( r2.getTestContext().getPassedTests(), "passed"); } } endHtml(out); out.close(); }
|
47060 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47060/cebdf50099bfd930b28e224ace6eab7b69b8cf31/EmailableReporter.java/buggy/src/main/org/testng/reporters/EmailableReporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2103,
4820,
12,
565,
987,
32,
4432,
13587,
34,
2025,
16,
565,
987,
32,
5127,
9519,
34,
27208,
16,
565,
514,
15398,
13,
225,
288,
565,
775,
288,
1377,
596,
33,
3639,
394,
14071,
12,
1850,
394,
24639,
12,
2704,
1387,
12,
659,
1214,
10837,
351,
1751,
17,
6006,
18,
2620,
6,
3719,
1769,
565,
289,
1044,
12,
14106,
425,
13,
288,
1377,
1194,
18,
1636,
2932,
2844,
585,
3113,
73,
1769,
1377,
327,
31,
565,
289,
565,
787,
4353,
12,
659,
1769,
565,
28712,
12,
26560,
2997,
1769,
565,
707,
67,
6723,
33,
20,
31,
565,
364,
12,
5127,
9519,
11371,
294,
27208,
13,
288,
1377,
596,
18,
8222,
2932,
32,
69,
612,
5189,
7687,
2412,
4695,
69,
2984,
1769,
1377,
1635,
32,
780,
16,
5127,
9519,
1253,
34,
436,
33,
30676,
18,
588,
3447,
5621,
1377,
787,
1253,
4733,
1388,
2932,
23603,
8863,
1377,
364,
12,
5127,
9519,
1253,
436,
22,
294,
436,
18,
2372,
10756,
288,
3639,
467,
4709,
1042,
1842,
33,
86,
22,
18,
588,
4709,
1042,
5621,
3639,
563,
4733,
12,
1850,
1842,
18,
588,
2925,
14650,
9334,
1850,
1842,
18,
17994,
9334,
1850,
315,
7307,
8863,
3639,
563,
4733,
12,
1850,
1842,
18,
588,
16425,
14650,
9334,
1850,
1842,
18,
17994,
9334,
1850,
315,
25346,
8863,
3639,
563,
4733,
12,
1850,
1842,
18,
588,
22530,
14650,
9334,
1850,
1842,
18,
17994,
9334,
1850,
315,
23603,
8863,
1377,
289,
565,
289,
565,
596,
18,
8222,
2932,
1757,
2121,
2984,
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,
918,
2103,
4820,
12,
565,
987,
32,
4432,
13587,
34,
2025,
16,
565,
987,
32,
5127,
9519,
34,
27208,
16,
565,
514,
15398,
13,
225,
288,
565,
775,
288,
1377,
596,
33,
3639,
394,
14071,
12,
1850,
394,
24639,
12,
2704,
1387,
12,
659,
1214,
10837,
351,
1751,
17,
6006,
18,
2620,
6,
3719,
1769,
565,
289,
1044,
12,
14106,
425,
13,
288,
1377,
1194,
18,
1636,
2932,
2844,
585,
3113,
73,
1769,
1377,
327,
31,
565,
289,
565,
787,
4353,
12,
659,
1769,
565,
28712,
12,
26560,
2997,
1769,
565,
707,
67,
6723,
33,
20,
31,
565,
364,
12,
5127,
9519,
11371,
294,
27208,
13,
288,
1377,
596,
18,
8222,
2932,
32,
69,
612,
5189,
7687,
2
] |
public String getStatusMessage() { return "OK"; }
|
public String getStatusMessage() { return "OK"; }
|
public String getStatusMessage() { return "OK"; }
|
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/6936648d60e847c7506a15376b072b1e554b81b7/WebClient.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebClient.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
514,
5870,
1079,
1435,
288,
327,
315,
3141,
14432,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
514,
5870,
1079,
1435,
288,
327,
315,
3141,
14432,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super.start(context, uri, localname, qname, attributes);
|
context.getContentHandler().startElement(uri, localname, qname, attributes);
|
public void start(XFormsElementContext context, String uri, String localname, String qname, Attributes attributes) throws SAXException { repeatId = attributes.getValue("id"); // Figure out start index nodeset = context.getCurrentNodeset(); String startindexAttribute = attributes.getValue("startindex"); currentIndex = startindexAttribute == null ? 1 : Integer.parseInt(startindexAttribute); // Figure out last index String numberAttribute = attributes.getValue("number"); lastIndex = numberAttribute == null ? nodeset.size() : Math.min(nodeset.size(), currentIndex + Integer.parseInt(numberAttribute) - 1); super.start(context, uri, localname, qname, attributes); }
|
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/42065020b1756f51e27331d5df626548383a8be0/Repeat.java/clean/src/java/org/orbeon/oxf/processor/xforms/output/element/Repeat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12,
60,
18529,
1046,
1042,
819,
16,
514,
2003,
16,
514,
1191,
529,
16,
514,
12621,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
7666,
548,
273,
1677,
18,
24805,
2932,
350,
8863,
3639,
368,
18818,
596,
787,
770,
3639,
2199,
278,
273,
819,
18,
588,
3935,
3205,
278,
5621,
3639,
514,
787,
1615,
1499,
273,
1677,
18,
24805,
2932,
1937,
1615,
8863,
3639,
17032,
273,
787,
1615,
1499,
422,
446,
692,
404,
294,
2144,
18,
2670,
1702,
12,
1937,
1615,
1499,
1769,
3639,
368,
18818,
596,
1142,
770,
3639,
514,
1300,
1499,
273,
1677,
18,
24805,
2932,
2696,
8863,
3639,
7536,
273,
1300,
1499,
422,
446,
692,
2199,
278,
18,
1467,
1435,
7734,
294,
2361,
18,
1154,
12,
4690,
278,
18,
1467,
9334,
17032,
397,
2144,
18,
2670,
1702,
12,
2696,
1499,
13,
300,
404,
1769,
3639,
819,
18,
588,
1350,
1503,
7675,
1937,
1046,
12,
1650,
16,
1191,
529,
16,
12621,
16,
1677,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
12,
60,
18529,
1046,
1042,
819,
16,
514,
2003,
16,
514,
1191,
529,
16,
514,
12621,
16,
9055,
1677,
13,
1216,
14366,
288,
3639,
7666,
548,
273,
1677,
18,
24805,
2932,
350,
8863,
3639,
368,
18818,
596,
787,
770,
3639,
2199,
278,
273,
819,
18,
588,
3935,
3205,
278,
5621,
3639,
514,
787,
1615,
1499,
273,
1677,
18,
24805,
2932,
1937,
1615,
8863,
3639,
17032,
273,
787,
1615,
1499,
422,
446,
692,
404,
294,
2144,
18,
2670,
1702,
12,
1937,
1615,
1499,
1769,
3639,
368,
18818,
596,
1142,
770,
3639,
514,
1300,
1499,
273,
1677,
18,
24805,
2932,
2696,
8863,
3639,
7536,
273,
1300,
1499,
422,
446,
692,
2199,
278,
18,
1467,
1435,
7734,
294,
2
] |
0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 587, 516, 0, 173, 588, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0,
|
0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 520, 516, 0, 0, 521, 0, 0, 0, 0, 175, 0, 174, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0,
|
private static final short[] yyTable4() { return new short[] { 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 58, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 45, 233, 0, 261, 47, 48, 49, 0, 50, 412, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 414, 48, 49, 0, 231, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 615, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 611, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 804, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 808, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 812, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 867, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 251, 0, 0, 58, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 869, 232, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 881, 232, 51, 52, 53, 54, 55, 56, 0, 251, 251, 251, 57, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 4, 5, 6, 251, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 266, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 526, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 593, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 483, 0, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 641, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 483, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 769, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 59, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 798, 0, 51, 52, 53, 54, 55, 56, 0, 483, 483, 483, 57, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 0, 483, 483, 59, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 0, 0, 0, 483, 483, 483, 483, 483, 483, 0, 4, 5, 6, 483, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 57, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 207, 0, 0, 106, 47, 48, 49, 0, 47, 0, 51, 52, 53, 54, 55, 56, 0, 213, 213, 213, 57, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 47, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 47, 47, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 0, 213, 213, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 175, 0, 174, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 186, 0, 181, 179, 0, 180, 173, 182, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 176, 182, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 116, 117, 118, 119, 120, 121, 122, 123, 0, 173, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 281, 282, 199, 283, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 520, 516, 0, 0, 521, 0, 0, 0, 0, 175, 0, 174, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 0, 0, 0, 0, 546, 509, 0, 0, 547, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 584, 509, 0, 0, 585, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 587, 516, 0, 173, 588, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 183, 178, 0, 0, 0, 181, 179, 0, 180, 173, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 175, 0, 174, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 175, 0, 174, 177, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 184, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 602, 509, 0, 0, 603, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 605, 516, 0, 0, 606, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 643, 509, 0, 173, 644, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 646, 516, 0, 0, 647, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 857, 509, 0, 173, 858, 0, 0, 0, 0, 0, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 860, 516, 0, 0, 861, 0, 0, 0, 0, 173, 0, 0, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 4, 5, 6, 0, 8, 0, 0, 173, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 105, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 0, 50, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 349, 47, 48, 49, 0, 350, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 4, 5, 6, 107, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, }; }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
565,
374,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11201,
16,
282,
10213,
16,
282,
4248,
16,
282,
6969,
16,
2398,
374,
16,
565,
374,
16,
282,
10659,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
282,
12732,
16,
282,
9131,
16,
5411,
12899,
16,
282,
5196,
16,
282,
8231,
16,
282,
3847,
16,
282,
13159,
16,
282,
13438,
16,
282,
13191,
16,
282,
6580,
16,
282,
18091,
16,
282,
18012,
16,
5411,
16977,
16,
282,
8063,
16,
565,
374,
16,
282,
20170,
16,
282,
14856,
16,
565,
374,
16,
282,
21193,
16,
282,
13291,
16,
565,
374,
16,
565,
374,
16,
2398,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
282,
14995,
16,
2398,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
282,
12292,
16,
282,
17066,
16,
565,
374,
16,
282,
17077,
16,
5411,
17495,
16,
282,
9934,
16,
282,
17160,
16,
565,
374,
16,
282,
6437,
16,
565,
374,
16,
282,
21119,
16,
282,
18106,
16,
282,
15935,
16,
282,
22431,
16,
5411,
21483,
16,
282,
13850,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
282,
15981,
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,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
565,
374,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11201,
16,
282,
10213,
16,
282,
4248,
16,
282,
6969,
16,
2398,
374,
16,
565,
374,
16,
282,
10659,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
565,
374,
16,
282,
12732,
16,
282,
9131,
16,
5411,
12899,
16,
282,
5196,
16,
282,
8231,
16,
282,
3847,
16,
282,
13159,
16,
282,
13438,
16,
282,
13191,
16,
282,
6580,
16,
282,
18091,
16,
282,
18012,
16,
5411,
16977,
16,
282,
8063,
16,
565,
374,
16,
282,
20170,
16,
2
] |
String path = ((CollectionImpl) res.getParentCollection()).getPath() + '/' + res.getId();
|
String path = ((RemoteCollection) res.getParentCollection()).getPath() + '/' + res.getId();
|
public void chmod(Resource res, String mode) throws XMLDBException { String path = ((CollectionImpl) res.getParentCollection()).getPath() + '/' + res.getId(); try { Vector params = new Vector(); params.addElement(path); params.addElement(mode); parent.getClient().execute("setPermissions", params); } catch (XmlRpcException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (IOException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/d22fa12ab35cf9e0c958b707ecd90ccdc3d00be9/UserManagementServiceImpl.java/clean/src/org/exist/xmldb/UserManagementServiceImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13413,
12,
1420,
400,
16,
514,
1965,
13,
1216,
26014,
503,
288,
202,
202,
780,
589,
273,
14015,
2532,
2828,
13,
400,
18,
588,
3054,
2532,
1435,
2934,
588,
743,
1435,
397,
2023,
397,
400,
18,
26321,
5621,
202,
202,
698,
288,
1082,
202,
5018,
859,
273,
394,
5589,
5621,
1082,
202,
2010,
18,
1289,
1046,
12,
803,
1769,
1082,
202,
2010,
18,
1289,
1046,
12,
3188,
1769,
1082,
202,
2938,
18,
588,
1227,
7675,
8837,
2932,
542,
6521,
3113,
859,
1769,
202,
202,
97,
1044,
261,
4432,
11647,
503,
425,
13,
288,
1082,
202,
12849,
394,
26014,
503,
12,
668,
6295,
18,
58,
30014,
67,
3589,
16,
425,
18,
24906,
9334,
425,
1769,
202,
202,
97,
1044,
261,
14106,
425,
13,
288,
1082,
202,
12849,
394,
26014,
503,
12,
668,
6295,
18,
58,
30014,
67,
3589,
16,
425,
18,
24906,
9334,
425,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13413,
12,
1420,
400,
16,
514,
1965,
13,
1216,
26014,
503,
288,
202,
202,
780,
589,
273,
14015,
2532,
2828,
13,
400,
18,
588,
3054,
2532,
1435,
2934,
588,
743,
1435,
397,
2023,
397,
400,
18,
26321,
5621,
202,
202,
698,
288,
1082,
202,
5018,
859,
273,
394,
5589,
5621,
1082,
202,
2010,
18,
1289,
1046,
12,
803,
1769,
1082,
202,
2010,
18,
1289,
1046,
12,
3188,
1769,
1082,
202,
2938,
18,
588,
1227,
7675,
8837,
2932,
542,
6521,
3113,
859,
1769,
202,
202,
97,
1044,
261,
4432,
11647,
503,
425,
13,
288,
1082,
202,
12849,
394,
26014,
503,
12,
668,
6295,
18,
58,
30014,
67,
3589,
16,
425,
18,
24906,
9334,
425,
1769,
202,
2
] |
public File getObjectsDirectory() { return objectsDir; }
|
public File getObjectsDirectory();
|
public File getObjectsDirectory() { return objectsDir; }
|
45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/0aac8598c895c0d3d7a82e38854f71db607fc209/Repository.java/buggy/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1387,
336,
4710,
2853,
1435,
288,
3639,
327,
2184,
1621,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1387,
336,
4710,
2853,
1435,
288,
3639,
327,
2184,
1621,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
RouterInfo target = _context.netDb().lookupRouterInfoLocally(participant.getThisHop());
|
RouterInfo target = getContext().netDb().lookupRouterInfoLocally(participant.getThisHop());
|
private void requestParticipation(TunnelInfo participant) { // find the info about who we're looking for RouterInfo target = _context.netDb().lookupRouterInfoLocally(participant.getThisHop()); if (target == null) { if (_log.shouldLog(Log.ERROR)) _log.error("Error - no db info known for participant " + participant.getThisHop()); fail(); return; } if (target.getIdentity().getHash().equals(_context.routerHash())) { // short circuit the ok okLocalParticipation(participant); return; } // select send method [outbound tunnel or garlic through peers] TunnelId outboundTunnel = selectOutboundTunnel(); if (outboundTunnel == null) { if (_log.shouldLog(Log.WARN)) _log.warn("No outbound tunnels! unable to request a new tunnel!"); fail(); return; } // select reply peer [peer to which SourceRouteReply should be sent, and // from which the reply will be forwarded to an inbound tunnel] RouterInfo replyPeer = selectReplyPeer(participant); if (replyPeer == null) { if (_log.shouldLog(Log.WARN)) _log.warn("No reply peers available! unable to request a new tunnel!"); fail(); return; } // select inbound tunnel gateway TunnelGateway inboundGateway = selectInboundGateway(participant, replyPeer); if (inboundGateway == null) { if (_log.shouldLog(Log.ERROR)) _log.error("Unable to find an inbound gateway"); fail(); return; } SessionKey wrappedKey = new SessionKey(); Set wrappedTags = new HashSet(64); PublicKey wrappedTo = new PublicKey(); RequestState state = new RequestState(wrappedKey, wrappedTags, wrappedTo, participant, inboundGateway, replyPeer, outboundTunnel, target); Request r = new Request(state); _context.jobQueue().addJob(r); }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/e737e5c9507ed0d463dc9e45a8f63657f466b177/RequestTunnelJob.java/buggy/router/java/src/net/i2p/router/tunnelmanager/RequestTunnelJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
590,
1988,
24629,
367,
12,
20329,
966,
14188,
13,
288,
3639,
368,
1104,
326,
1123,
2973,
10354,
732,
4565,
7849,
364,
3639,
9703,
966,
1018,
273,
6474,
7675,
2758,
4331,
7675,
8664,
8259,
966,
1333,
1230,
12,
2680,
14265,
18,
588,
2503,
27461,
10663,
3639,
309,
261,
3299,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
2932,
668,
300,
1158,
1319,
1123,
4846,
364,
14188,
315,
397,
14188,
18,
588,
2503,
27461,
10663,
5411,
2321,
5621,
5411,
327,
31,
3639,
289,
3639,
309,
261,
3299,
18,
588,
4334,
7675,
588,
2310,
7675,
14963,
24899,
2472,
18,
10717,
2310,
1435,
3719,
288,
5411,
368,
3025,
12937,
326,
1529,
5411,
1529,
2042,
1988,
24629,
367,
12,
2680,
14265,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
2027,
1366,
707,
306,
659,
3653,
14825,
578,
314,
13007,
335,
3059,
10082,
65,
3639,
399,
8564,
548,
11663,
20329,
273,
2027,
17873,
20329,
5621,
3639,
309,
261,
659,
3653,
20329,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
27999,
3719,
7734,
389,
1330,
18,
8935,
2932,
2279,
11663,
14825,
87,
5,
225,
13496,
358,
590,
279,
394,
14825,
4442,
1769,
5411,
2321,
5621,
5411,
327,
31,
3639,
289,
7734,
368,
2027,
4332,
4261,
306,
12210,
358,
1492,
4998,
3255,
7817,
1410,
506,
3271,
16,
471,
540,
368,
628,
1492,
326,
4332,
903,
506,
19683,
358,
392,
13357,
14825,
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,
590,
1988,
24629,
367,
12,
20329,
966,
14188,
13,
288,
3639,
368,
1104,
326,
1123,
2973,
10354,
732,
4565,
7849,
364,
3639,
9703,
966,
1018,
273,
6474,
7675,
2758,
4331,
7675,
8664,
8259,
966,
1333,
1230,
12,
2680,
14265,
18,
588,
2503,
27461,
10663,
3639,
309,
261,
3299,
422,
446,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
2932,
668,
300,
1158,
1319,
1123,
4846,
364,
14188,
315,
397,
14188,
18,
588,
2503,
27461,
10663,
5411,
2321,
5621,
5411,
327,
31,
3639,
289,
3639,
309,
261,
3299,
18,
588,
4334,
7675,
588,
2310,
7675,
14963,
24899,
2472,
18,
10717,
2310,
1435,
3719,
288,
5411,
2
] |
if (!project.hasNature(JavaCore.NATURE_ID) && structureData.hasCustomHandler()) {
|
if (!project.hasNature(JavaCore.NATURE_ID) && data.hasCustomHandler()) {
|
private void createFeatureProject(IProject project, IPath location, IFeaturePlugin[] plugins, IFeatureModel featureModel, IProgressMonitor monitor) throws CoreException { monitor.beginTask(PDEPlugin.getResourceString(CREATING_PROJECT), 3); StructureData structureData = structurePage.getStructureData(); boolean overwrite = true; if (location.append(project.getName()).toFile().exists()) { overwrite = MessageDialog.openQuestion(PDEPlugin.getActiveWorkbenchShell(), PDEPlugin .getResourceString(KEY_WTITLE), PDEPlugin.getResourceString(OVERWRITE_FEATURE)); } if (overwrite) { CoreUtility.createProject(project, location, monitor); project.open(monitor); IProjectDescription desc = project.getWorkspace().newProjectDescription(project.getName()); desc.setLocation(provider.getLocationPath()); if (!project.hasNature(PDE.FEATURE_BUILDER_ID)) CoreUtility.addNatureToProject(project, PDE.FEATURE_NATURE, monitor); if (!project.hasNature(JavaCore.NATURE_ID) && structureData.hasCustomHandler()) { CoreUtility.addNatureToProject(project, JavaCore.NATURE_ID, monitor); JavaCore.create(project).setOutputLocation( project.getFullPath().append(structureData.getJavaBuildFolderName()), monitor); JavaCore.create(project).setRawClasspath( new IClasspathEntry[]{ JavaCore.newContainerEntry(new Path(JavaRuntime.JRE_CONTAINER)), JavaCore.newSourceEntry(project.getFullPath().append( structureData.getSourceFolderName()))}, monitor); addSourceFolder(structureData.getSourceFolderName(), project, monitor); } monitor.subTask(PDEPlugin.getResourceString(CREATING_MANIFEST)); monitor.worked(1); createBuildProperties(project); monitor.worked(1); // create feature.xml IFile file = createFeatureManifest(project, plugins, featureModel); monitor.worked(1); // open manifest for editing openFeatureManifest(file); } else { project.create(monitor); project.open(monitor); IFile featureFile = project.getFile("feature.xml"); //$NON-NLS-1$ if (featureFile.exists()) openFeatureManifest(featureFile); monitor.worked(3); } }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/9e2be0720da771829ea1c3ada35811a3cf66494d/NewFeaturePatchWizard.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/feature/NewFeaturePatchWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
4595,
4109,
12,
45,
4109,
1984,
16,
467,
743,
2117,
16,
1875,
202,
45,
4595,
3773,
8526,
4799,
16,
467,
4595,
1488,
2572,
1488,
16,
1875,
202,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
10259,
18,
10086,
2174,
12,
52,
1639,
3773,
18,
588,
1420,
780,
12,
5458,
28054,
67,
17147,
3631,
890,
1769,
202,
202,
6999,
751,
3695,
751,
273,
3695,
1964,
18,
588,
6999,
751,
5621,
202,
202,
6494,
6156,
273,
638,
31,
202,
202,
430,
261,
3562,
18,
6923,
12,
4406,
18,
17994,
1435,
2934,
869,
812,
7675,
1808,
10756,
288,
1082,
202,
19274,
273,
2350,
6353,
18,
3190,
11665,
12,
52,
1639,
3773,
18,
588,
3896,
2421,
22144,
13220,
9334,
453,
1639,
3773,
6862,
202,
18,
588,
1420,
780,
12,
3297,
67,
8588,
11970,
3631,
453,
1639,
3773,
18,
588,
1420,
780,
12,
12959,
11677,
67,
18257,
10019,
202,
202,
97,
202,
202,
430,
261,
19274,
13,
288,
1082,
202,
4670,
6497,
18,
2640,
4109,
12,
4406,
16,
2117,
16,
6438,
1769,
1082,
202,
4406,
18,
3190,
12,
10259,
1769,
1082,
202,
45,
4109,
3291,
3044,
273,
1984,
18,
588,
8241,
7675,
2704,
4109,
3291,
12,
4406,
18,
17994,
10663,
1082,
202,
5569,
18,
542,
2735,
12,
6778,
18,
588,
2735,
743,
10663,
1082,
202,
430,
16051,
4406,
18,
5332,
50,
1231,
12,
52,
1639,
18,
18257,
67,
3000,
2627,
4179,
67,
734,
3719,
9506,
202,
4670,
6497,
18,
1289,
50,
1231,
774,
4109,
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,
1152,
918,
752,
4595,
4109,
12,
45,
4109,
1984,
16,
467,
743,
2117,
16,
1875,
202,
45,
4595,
3773,
8526,
4799,
16,
467,
4595,
1488,
2572,
1488,
16,
1875,
202,
45,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
10259,
18,
10086,
2174,
12,
52,
1639,
3773,
18,
588,
1420,
780,
12,
5458,
28054,
67,
17147,
3631,
890,
1769,
202,
202,
6999,
751,
3695,
751,
273,
3695,
1964,
18,
588,
6999,
751,
5621,
202,
202,
6494,
6156,
273,
638,
31,
202,
202,
430,
261,
3562,
18,
6923,
12,
4406,
18,
17994,
1435,
2934,
869,
812,
7675,
1808,
10756,
288,
1082,
202,
19274,
273,
2350,
6353,
18,
3190,
11665,
12,
52,
1639,
3773,
18,
588,
3896,
2421,
2
] |
return getWorkbenchImpl().getDefaultPageInput(); }
|
return getWorkbenchImpl().getDefaultPageInput(); }
|
IAdaptable getDefaultPageInput() { return getWorkbenchImpl().getDefaultPageInput(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
467,
13716,
429,
4829,
1964,
1210,
1435,
288,
3639,
327,
29026,
22144,
2828,
7675,
588,
1868,
1964,
1210,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
467,
13716,
429,
4829,
1964,
1210,
1435,
288,
3639,
327,
29026,
22144,
2828,
7675,
588,
1868,
1964,
1210,
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
] |
if ( oCachedJavaFormatter instanceof DateFormat )
|
if ( oCachedJavaFormatter instanceof IDateFormatWrapper )
|
public static final String format( Object oValue, FormatSpecifier fs, ULocale lcl, Object oCachedJavaFormatter ) throws ChartException { String sValue; if ( oValue == null ) // NULL VALUES CANNOT BE FORMATTED { return null; } else if ( oValue instanceof String ) { return (String) oValue; } if ( fs == null ) // IF A FORMAT SPECIFIER WAS NOT ASSOCIATED WITH THE // VALUE { if ( oCachedJavaFormatter != null ) // CHECK IF AN INTERNAL JAVA // FORMAT SPECIFIER WAS COMPUTED { if ( oValue instanceof Double ) { if ( oCachedJavaFormatter instanceof DecimalFormat ) { final double dValue = ( (Double) oValue ).doubleValue( ); sValue = ( (DecimalFormat) oCachedJavaFormatter ).format( ( (Double) oValue ).doubleValue( ) ); return correctNumber( sValue, dValue ); } } else if ( oValue instanceof NumberDataElement ) { if ( oCachedJavaFormatter instanceof DecimalFormat ) { final double dValue = ( (NumberDataElement) oValue ).getValue( ); sValue = ( (DecimalFormat) oCachedJavaFormatter ).format( dValue ); return correctNumber( sValue, dValue ); } } else if ( oValue instanceof Calendar ) { if ( oCachedJavaFormatter instanceof DateFormat ) { return ( (DateFormat) oCachedJavaFormatter ).format( ( (Calendar) oValue ).getTime( ) ); } } else if ( oValue instanceof DateTimeDataElement ) { if ( oCachedJavaFormatter instanceof DecimalFormat ) { return ( (DateFormat) oCachedJavaFormatter ).format( ( (DateTimeDataElement) oValue ).getValueAsCalendar( ) ); } } } else { if ( oValue instanceof NumberDataElement ) { return String.valueOf( ( (NumberDataElement) oValue ).getValue( ) ); } else if ( oValue instanceof DateTimeDataElement ) { return String.valueOf( ( (DateTimeDataElement) oValue ).getValueAsCalendar( ) ); } } } else if ( NumberFormatSpecifier.class.isInstance( fs ) ) { final NumberFormatSpecifier nfs = (NumberFormatSpecifier) fs; final double dValue = asPrimitiveDouble( oValue, lcl ); return correctNumber( nfs.format( dValue, lcl ), dValue ); } else if ( JavaNumberFormatSpecifier.class.isInstance( fs ) ) { final JavaNumberFormatSpecifier nfs = (JavaNumberFormatSpecifier) fs; final double dValue = asPrimitiveDouble( oValue, lcl ); return correctNumber( nfs.format( dValue, lcl ), dValue ); } else if ( FractionNumberFormatSpecifier.class.isInstance( fs ) ) { final FractionNumberFormatSpecifier fnfs = (FractionNumberFormatSpecifier) fs; final double dValue = asPrimitiveDouble( oValue, lcl ); return correctNumber( fnfs.format( dValue, lcl ), dValue ); } else if ( DateFormatSpecifier.class.isInstance( fs ) ) { final DateFormatSpecifier dfs = (DateFormatSpecifier) fs; return dfs.format( asCalendar( oValue, lcl ), lcl ); } else if ( JavaDateFormatSpecifier.class.isInstance( fs ) ) { final JavaDateFormatSpecifier jdfs = (JavaDateFormatSpecifier) fs; return jdfs.format( asCalendar( oValue, lcl ), lcl ); } else { if ( oValue instanceof NumberDataElement ) { return String.valueOf( ( (NumberDataElement) oValue ).getValue( ) ); } else if ( oValue instanceof DateTimeDataElement ) { return String.valueOf( ( (DateTimeDataElement) oValue ).getValueAsCalendar( ) ); } } return oValue.toString( ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ab3897f47c7eefef909be75bfd6314187ef29fb9/ValueFormatter.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/ValueFormatter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
740,
12,
1033,
320,
620,
16,
4077,
21416,
2662,
16,
1082,
202,
57,
3916,
328,
830,
16,
1033,
320,
9839,
5852,
5074,
262,
1216,
14804,
503,
202,
95,
202,
202,
780,
16311,
31,
202,
202,
430,
261,
320,
620,
422,
446,
262,
368,
3206,
13477,
385,
16791,
9722,
10449,
6404,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
320,
620,
1276,
514,
262,
202,
202,
95,
1082,
202,
2463,
261,
780,
13,
320,
620,
31,
202,
202,
97,
202,
202,
430,
261,
2662,
422,
446,
262,
368,
11083,
432,
10449,
22872,
10591,
678,
3033,
4269,
17289,
27248,
6344,
13601,
12786,
202,
202,
759,
5848,
202,
202,
95,
1082,
202,
430,
261,
320,
9839,
5852,
5074,
480,
446,
262,
368,
14565,
11083,
8175,
18139,
21227,
1082,
202,
759,
10449,
22872,
10591,
678,
3033,
13846,
57,
6404,
1082,
202,
95,
9506,
202,
430,
261,
320,
620,
1276,
3698,
262,
9506,
202,
95,
6862,
202,
430,
261,
320,
9839,
5852,
5074,
1276,
29665,
262,
6862,
202,
95,
25083,
202,
6385,
1645,
302,
620,
273,
261,
261,
5265,
13,
320,
620,
262,
18,
9056,
620,
12,
11272,
25083,
202,
87,
620,
273,
261,
261,
5749,
1630,
13,
320,
9839,
5852,
5074,
262,
18,
2139,
12,
261,
261,
5265,
13,
320,
620,
262,
18,
9056,
620,
12,
262,
11272,
25083,
202,
2463,
3434,
1854,
12,
16311,
16,
302,
620,
11272,
6862,
202,
97,
9506,
202,
97,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
727,
514,
740,
12,
1033,
320,
620,
16,
4077,
21416,
2662,
16,
1082,
202,
57,
3916,
328,
830,
16,
1033,
320,
9839,
5852,
5074,
262,
1216,
14804,
503,
202,
95,
202,
202,
780,
16311,
31,
202,
202,
430,
261,
320,
620,
422,
446,
262,
368,
3206,
13477,
385,
16791,
9722,
10449,
6404,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
320,
620,
1276,
514,
262,
202,
202,
95,
1082,
202,
2463,
261,
780,
13,
320,
620,
31,
202,
202,
97,
202,
202,
430,
261,
2662,
422,
446,
262,
368,
11083,
432,
10449,
22872,
10591,
678,
3033,
4269,
17289,
27248,
6344,
13601,
12786,
202,
202,
759,
5848,
202,
2
] |
} if ( this.ownerNode.getNodeType() == Node.ELEMENT_NODE) { return this.ownerNode.lookupNamespacePrefix(namespaceURI, useDefault);
|
return null; } default:{ NodeImpl ancestor = (NodeImpl)getElementAncestor(this); if (ancestor != null) { return ancestor.lookupNamespacePrefix(namespaceURI, useDefault); } return null; }
|
public String lookupNamespacePrefix(String namespaceURI, boolean useDefault){ short type = this.getNodeType(); // REVISIT: When Namespaces 1.1 comes out this may not be true // Prefix can't be bound to null namespace if (namespaceURI == null) { return null; } String namespace = this.getNamespaceURI(); // REVISIT: if no prefix is available is it null or empty string, or // could be both? String prefix = this.getPrefix(); switch (type) { case Node.ELEMENT_NODE: { ElementImpl elem = (ElementImpl)this; if (namespace.equals(namespaceURI) && (prefix != null || useDefault)) { return prefix; } else if (elem.hasAttributes()) { NamedNodeMap map = elem.getAttributes(); int length = map.getLength(); for (int i=0;i<length;i++) { Node attr = map.item(i); String attrPrefix = attr.getPrefix(); String value = attr.getNodeValue(); if (attr.getNamespaceURI().equals("http://www.w3.org/2000/xmlns/")) { if (attrPrefix !=null && attrPrefix.equals("xmlns") && value.equals(namespaceURI)) { return attr.getLocalName(); } else if (useDefault && attr.getLocalName().equals("xmlns") && value.equals(namespaceURI)) { return null; } } } } if ( this.ownerNode.getNodeType() == Node.ELEMENT_NODE) { return this.ownerNode.lookupNamespacePrefix(namespaceURI, useDefault); } return null; } case Node.DOCUMENT_NODE:{ return ((NodeImpl)((Document)this).getDocumentElement()).lookupNamespacePrefix(namespaceURI, useDefault); } case Node.ENTITY_NODE : case Node.NOTATION_NODE: case Node.DOCUMENT_FRAGMENT_NODE: case Node.DOCUMENT_TYPE_NODE: // type is unknown return null; case Node.ATTRIBUTE_NODE:{ if (this.ownerNode.getNodeType() == Node.ELEMENT_NODE) { return ownerNode.lookupNamespacePrefix(namespaceURI, useDefault); } return null; } default:{ if (this.ownerNode.getNodeType() == Node.ELEMENT_NODE) { return ownerNode.lookupNamespacePrefix(namespaceURI, useDefault); } return null; } } }
|
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/90d327f6b4eaebcda2c3c7be0cc05b3420eca0cb/NodeImpl.java/clean/src/org/apache/xerces/dom/NodeImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3689,
3402,
2244,
12,
780,
19421,
16,
29159,
1250,
999,
1868,
15329,
540,
3025,
618,
273,
333,
18,
588,
15101,
5621,
540,
368,
2438,
26780,
1285,
30,
5203,
5276,
4996,
404,
18,
21,
14535,
596,
333,
2026,
486,
506,
638,
540,
368,
10139,
848,
1404,
506,
2489,
358,
446,
1981,
540,
309,
261,
4937,
3098,
422,
446,
13,
288,
2398,
327,
446,
31,
540,
289,
540,
514,
1981,
273,
333,
18,
588,
3402,
3098,
5621,
540,
368,
2438,
26780,
1285,
30,
309,
1158,
1633,
353,
2319,
353,
518,
446,
578,
1008,
533,
16,
578,
1850,
368,
1850,
3377,
506,
3937,
35,
540,
514,
1633,
273,
333,
18,
588,
2244,
5621,
540,
1620,
261,
723,
13,
288,
540,
648,
2029,
18,
10976,
67,
8744,
30,
288,
2868,
3010,
2828,
3659,
273,
261,
1046,
2828,
13,
2211,
31,
2398,
309,
261,
4937,
18,
14963,
12,
4937,
3098,
13,
597,
5375,
261,
3239,
480,
446,
747,
999,
1868,
3719,
288,
1171,
327,
1633,
31,
2398,
289,
2398,
469,
309,
261,
10037,
18,
5332,
2498,
10756,
288,
7734,
9796,
907,
863,
852,
273,
3659,
18,
588,
2498,
5621,
7734,
509,
769,
273,
852,
18,
588,
1782,
5621,
7734,
364,
261,
474,
277,
33,
20,
31,
77,
32,
2469,
31,
77,
27245,
288,
10792,
2029,
1604,
273,
852,
18,
1726,
12,
77,
1769,
10792,
514,
1604,
2244,
273,
1604,
18,
588,
2244,
5621,
10792,
514,
460,
273,
1604,
18,
588,
907,
620,
5621,
10792,
309,
261,
1747,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3689,
3402,
2244,
12,
780,
19421,
16,
29159,
1250,
999,
1868,
15329,
540,
3025,
618,
273,
333,
18,
588,
15101,
5621,
540,
368,
2438,
26780,
1285,
30,
5203,
5276,
4996,
404,
18,
21,
14535,
596,
333,
2026,
486,
506,
638,
540,
368,
10139,
848,
1404,
506,
2489,
358,
446,
1981,
540,
309,
261,
4937,
3098,
422,
446,
13,
288,
2398,
327,
446,
31,
540,
289,
540,
514,
1981,
273,
333,
18,
588,
3402,
3098,
5621,
540,
368,
2438,
26780,
1285,
30,
309,
1158,
1633,
353,
2319,
353,
518,
446,
578,
1008,
533,
16,
578,
1850,
368,
1850,
3377,
506,
3937,
35,
540,
514,
1633,
273,
333,
18,
588,
2244,
5621,
540,
1620,
261,
723,
13,
288,
2
] |
public void populatePolygonCorners(Vector atomsToDraw, Point2d rotationCenter, double startAngle, double addAngle, double radius) { Atom connectAtom = null; double angle = startAngle; double newX, newY, x, y; if (debug) System.out.println("drawPolygon->startAngle: " + Math.toDegrees(angle)); for (int i = 0; i < atomsToDraw.size(); i++) { connectAtom = (Atom)atomsToDraw.elementAt(i); try { if (debug) System.out.println("drawPolygon->number of connectAtom: " + molecule.getAtomNumber(connectAtom)); } catch(Exception exc) { } angle = angle + addAngle; if (angle >= 2 * Math.PI) { angle -= 2*Math.PI; } if (debug) System.out.println("drawPolygon->angle: " +Math.toDegrees( angle)); x = Math.cos(angle) * radius; if (debug) System.out.println("drawPolygon-> x " + x); y = Math.sin(angle) * radius; if (debug) System.out.println("drawPolygon-> y " + y); newX = x + rotationCenter.x; newY = y + rotationCenter.y;// angle = angle + addAngle; if (connectAtom.getPoint2D() == null) { connectAtom.setPoint2D(new Point2d(newX, newY)); connectAtom.flags[ISPLACED] = true; } } }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/abf88d6929f8c6e1c7b8230322beb4c11337997e/AtomPlacer.java/buggy/org/openscience/cdk/layout/AtomPlacer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
13,
202,
95,
202,
202,
3641,
3077,
3641,
273,
446,
31,
202,
202,
9056,
5291,
273,
787,
8467,
31,
202,
202,
9056,
394,
60,
16,
394,
61,
16,
619,
16,
677,
31,
202,
202,
430,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
9446,
11787,
2122,
1937,
8467,
30,
315,
397,
2361,
18,
869,
24400,
12,
4341,
10019,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
9006,
774,
6493,
18,
1467,
5621,
277,
27245,
202,
202,
95,
1082,
202,
3612,
3641,
273,
261,
3641,
13,
7466,
11634,
6493,
18,
2956,
861,
12,
77,
1769,
1082,
202,
698,
1082,
202,
95,
9506,
202,
430,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
9446,
11787,
2122,
2696,
434,
3077,
3641,
30,
315,
397,
13661,
18,
588,
3641,
1854,
12,
3612,
3641,
10019,
1082,
202,
97,
1082,
202,
14683,
12,
503,
3533,
13,
1082,
202,
95,
25083,
202,
97,
1082,
565,
5291,
273,
5291,
397,
527,
8467,
31,
1082,
202,
430,
261,
4341,
1545,
576,
380,
2361,
18,
1102,
13,
1082,
202,
95,
9506,
202,
4341,
3947,
576,
14,
10477,
18,
1102,
31,
1082,
202,
97,
1082,
565,
309,
261,
4148,
13,
225,
2332,
18,
659,
18,
8222,
2932,
9446,
11787,
2122,
4341,
30,
315,
397,
10477,
18,
869,
24400,
12,
5291,
10019,
1082,
565,
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,
6490,
11787,
6217,
9646,
12,
5018,
9006,
774,
6493,
16,
4686,
22,
72,
6752,
8449,
16,
1645,
787,
8467,
16,
1645,
527,
8467,
16,
1645,
5725,
13,
202,
95,
202,
202,
3641,
3077,
3641,
273,
446,
31,
202,
202,
9056,
5291,
273,
787,
8467,
31,
202,
202,
9056,
394,
60,
16,
394,
61,
16,
619,
16,
677,
31,
202,
202,
430,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
9446,
11787,
2122,
1937,
8467,
30,
315,
397,
2361,
18,
869,
24400,
12,
4341,
10019,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
9006,
774,
6493,
18,
1467,
5621,
277,
27245,
202,
202,
95,
1082,
202,
3612,
3641,
273,
261,
3641,
13,
2
] |
||
getLog().warn( "Setting the disabled attribute for non-submittable elements" + " is not allowed according to the HTML specification. Be aware" + " that you are using a non-portable feature");
|
public void jsSet_disabled( final boolean disabled ) { getLog().warn( "Setting the disabled attribute for non-submittable elements" + " is not allowed according to the HTML specification. Be aware" + " that you are using a non-portable feature"); final Element xmlElement = getHtmlElementOrDie().getElement(); if( disabled ) { xmlElement.setAttribute("disabled", "disabled"); } else { xmlElement.removeAttribute("disabled"); } }
|
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/fa9954eb20fd0c06c2d51b887960f19b5f8261be/HTMLElement.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/HTMLElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3828,
694,
67,
9278,
12,
727,
1250,
5673,
262,
288,
3639,
9189,
7675,
8935,
12,
5411,
315,
5568,
326,
5673,
1566,
364,
1661,
17,
9297,
2121,
2186,
6,
5411,
397,
315,
353,
486,
2935,
4888,
358,
326,
3982,
7490,
18,
225,
4823,
18999,
6,
5411,
397,
315,
716,
1846,
854,
1450,
279,
1661,
17,
655,
429,
2572,
8863,
3639,
727,
3010,
2025,
1046,
273,
19633,
1046,
28850,
7675,
21336,
5621,
3639,
309,
12,
5673,
262,
288,
5411,
2025,
1046,
18,
542,
1499,
2932,
9278,
3113,
315,
9278,
8863,
3639,
289,
3639,
469,
288,
5411,
2025,
1046,
18,
4479,
1499,
2932,
9278,
8863,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3828,
694,
67,
9278,
12,
727,
1250,
5673,
262,
288,
3639,
9189,
7675,
8935,
12,
5411,
315,
5568,
326,
5673,
1566,
364,
1661,
17,
9297,
2121,
2186,
6,
5411,
397,
315,
353,
486,
2935,
4888,
358,
326,
3982,
7490,
18,
225,
4823,
18999,
6,
5411,
397,
315,
716,
1846,
854,
1450,
279,
1661,
17,
655,
429,
2572,
8863,
3639,
727,
3010,
2025,
1046,
273,
19633,
1046,
28850,
7675,
21336,
5621,
3639,
309,
12,
5673,
262,
288,
5411,
2025,
1046,
18,
542,
1499,
2932,
9278,
3113,
315,
9278,
8863,
3639,
289,
3639,
469,
288,
5411,
2025,
1046,
18,
4479,
1499,
2932,
9278,
8863,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
public void testWaivePenaltyChargeDue() throws Exception { accountBO = getLoanAccount(); for (AccountActionDateEntity accountAction : ((LoanBO)accountBO) .getAccountActionDates()) { LoanScheduleEntity accountActionDateEntity = (LoanScheduleEntity) accountAction; for (AccountFeesActionDetailEntity accountFeesActionDetailEntity : accountActionDateEntity .getAccountFeesActionDetails()) { if (accountActionDateEntity.getInstallmentId().equals( Short.valueOf("1"))) { accountActionDateEntity.setMiscPenalty(new Money("100")); } } } ((LoanBO)accountBO).getLoanSummary().setOriginalPenalty(new Money("100")); TestObjectFactory.updateObject(accountBO); HibernateUtil.closeSession(); LoanBO loanBO = (LoanBO) TestObjectFactory.getObject(LoanBO.class, accountBO.getAccountId()); UserContext userContext = TestObjectFactory.getUserContext(); loanBO.setUserContext(userContext); loanBO.waiveAmountDue(WaiveEnum.PENALTY); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); loanBO = (LoanBO) TestObjectFactory.getObject(LoanBO.class, loanBO .getAccountId()); for (AccountActionDateEntity accountAction : loanBO .getAccountActionDates()) { LoanScheduleEntity accountActionDateEntity = (LoanScheduleEntity) accountAction; if (accountActionDateEntity.getInstallmentId().equals( Short.valueOf("1"))) { assertEquals(new Money(),accountActionDateEntity.getMiscPenalty()); } } Set<LoanActivityEntity> loanActivityDetailsSet = loanBO.getLoanActivityDetails(); List<Object> objectList = Arrays.asList(loanActivityDetailsSet.toArray()); LoanActivityEntity loanActivityEntity = (LoanActivityEntity) objectList.get(0); assertEquals(new Money("100"),loanActivityEntity.getPenalty()); assertEquals( new Timestamp(DateUtils.getCurrentDateWithoutTimeStamp().getTime()), loanActivityEntity.getTrxnCreatedDate()); assertEquals(loanBO.getLoanSummary().getOriginalPenalty().subtract(loanBO.getLoanSummary().getPenaltyPaid()), loanActivityEntity.getPenaltyOutstanding()); }
|
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/8b7a0cdb79f363f8ac3f82d8f06e16d5166a08ed/TestLoanBO.java/clean/mifos/test/org/mifos/application/accounts/loan/business/TestLoanBO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
59,
69,
688,
24251,
15006,
17649,
30023,
1435,
1216,
1185,
288,
202,
202,
4631,
5315,
273,
336,
1504,
304,
3032,
5621,
202,
202,
1884,
261,
3032,
1803,
1626,
1943,
2236,
1803,
294,
14015,
1504,
304,
5315,
13,
4631,
5315,
13,
9506,
202,
18,
588,
3032,
1803,
15578,
10756,
288,
1082,
202,
1504,
304,
6061,
1943,
2236,
1803,
1626,
1943,
273,
261,
1504,
304,
6061,
1943,
13,
2236,
1803,
31,
1082,
202,
1884,
261,
3032,
2954,
281,
1803,
6109,
1943,
2236,
2954,
281,
1803,
6109,
1943,
294,
2236,
1803,
1626,
1943,
6862,
202,
18,
588,
3032,
2954,
281,
1803,
3790,
10756,
288,
9506,
202,
430,
261,
4631,
1803,
1626,
1943,
18,
588,
6410,
475,
548,
7675,
14963,
12,
25083,
202,
4897,
18,
1132,
951,
2932,
21,
6,
20349,
288,
6862,
202,
4631,
1803,
1626,
1943,
18,
542,
11729,
71,
24251,
15006,
12,
2704,
16892,
2932,
6625,
7923,
1769,
9506,
202,
97,
1875,
202,
97,
202,
202,
97,
202,
202,
12443,
1504,
304,
5315,
13,
4631,
5315,
2934,
588,
1504,
304,
4733,
7675,
542,
8176,
24251,
15006,
12,
2704,
16892,
2932,
6625,
7923,
1769,
202,
202,
4709,
921,
1733,
18,
2725,
921,
12,
4631,
5315,
1769,
9506,
202,
44,
24360,
1304,
18,
4412,
2157,
5621,
202,
202,
1504,
304,
5315,
28183,
5315,
273,
261,
1504,
304,
5315,
13,
7766,
921,
1733,
18,
588,
921,
12,
1504,
304,
5315,
18,
1106,
16,
9506,
202,
4631,
5315,
18,
588,
14594,
10663,
9506,
202,
1299,
1042,
729,
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,
59,
69,
688,
24251,
15006,
17649,
30023,
1435,
1216,
1185,
288,
202,
202,
4631,
5315,
273,
336,
1504,
304,
3032,
5621,
202,
202,
1884,
261,
3032,
1803,
1626,
1943,
2236,
1803,
294,
14015,
1504,
304,
5315,
13,
4631,
5315,
13,
9506,
202,
18,
588,
3032,
1803,
15578,
10756,
288,
1082,
202,
1504,
304,
6061,
1943,
2236,
1803,
1626,
1943,
273,
261,
1504,
304,
6061,
1943,
13,
2236,
1803,
31,
1082,
202,
1884,
261,
3032,
2954,
281,
1803,
6109,
1943,
2236,
2954,
281,
1803,
6109,
1943,
294,
2236,
1803,
1626,
1943,
6862,
202,
18,
588,
3032,
2954,
281,
1803,
3790,
10756,
288,
9506,
202,
430,
261,
4631,
1803,
1626,
1943,
18,
588,
6410,
475,
548,
2
] |
||
assert PropertyType.ELEMENT_REF_TYPE == prop.getTypeCode( );
|
assert IPropertyType.ELEMENT_REF_TYPE == prop.getTypeCode( );
|
private boolean checkElementReference( Module module, DesignElement element, ElementPropertyDefn prop ) { // This must be an element reference property assert PropertyType.ELEMENT_REF_TYPE == prop.getTypeCode( ); // Attempt to resolve the reference. ElementRefValue ref = element.resolveElementReference( module, prop ); if ( ref == null ) return true; return ref.isResolved( ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/ElementReferenceValidator.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/validators/ElementReferenceValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
866,
1046,
2404,
12,
5924,
1605,
16,
1082,
202,
15478,
1046,
930,
16,
3010,
1396,
3262,
82,
2270,
262,
202,
95,
202,
202,
759,
1220,
1297,
506,
392,
930,
2114,
1272,
3196,
202,
11231,
22983,
18,
10976,
67,
10771,
67,
2399,
422,
2270,
18,
588,
15460,
12,
11272,
202,
202,
759,
12864,
358,
2245,
326,
2114,
18,
202,
202,
1046,
30556,
1278,
273,
930,
18,
10828,
1046,
2404,
12,
1605,
16,
2270,
11272,
202,
202,
430,
261,
1278,
422,
446,
262,
1082,
202,
2463,
638,
31,
202,
202,
2463,
1278,
18,
291,
12793,
12,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
866,
1046,
2404,
12,
5924,
1605,
16,
1082,
202,
15478,
1046,
930,
16,
3010,
1396,
3262,
82,
2270,
262,
202,
95,
202,
202,
759,
1220,
1297,
506,
392,
930,
2114,
1272,
3196,
202,
11231,
22983,
18,
10976,
67,
10771,
67,
2399,
422,
2270,
18,
588,
15460,
12,
11272,
202,
202,
759,
12864,
358,
2245,
326,
2114,
18,
202,
202,
1046,
30556,
1278,
273,
930,
18,
10828,
1046,
2404,
12,
1605,
16,
2270,
11272,
202,
202,
430,
261,
1278,
422,
446,
262,
1082,
202,
2463,
638,
31,
202,
202,
2463,
1278,
18,
291,
12793,
12,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
asm.emitLInt (T0, VM_ObjectModel.getArrayLengthOffset().toInt(), T2);
|
asm.emitLIntOffset(T0, T2, VM_ObjectModel.getArrayLengthOffset());
|
private static VM_CodeArray generateReflectiveMethodInvokerInstructions() { VM_Assembler asm = new VM_Assembler(0); // // free registers: 0, S0 // asm.emitMFLR(0); // save... asm.emitSTAddr (0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // ...return address asm.emitMTCTR(T0); // CTR := start of method code // // free registers: 0, S0, T0 // // create new frame // asm.emitMR (S0, FP); // S0 := old frame pointer asm.emitLInt (T0, VM_ObjectModel.getArrayLengthOffset().toInt(), T3); // T0 := number of spill words asm.emitADDI (T3, -BYTES_IN_ADDRESS, T3); // T3 -= 4 (predecrement, ie. T3 + 4 is &spill[0] ) int spillLoopLabel = asm.getMachineCodeIndex(); asm.emitADDICr (T0, T0, -1); // T0 -= 1 (and set CR) VM_ForwardReference fr1 = asm.emitForwardBC(LT); // if T0 < 0 then break asm.emitLAddrU (0, BYTES_IN_ADDRESS, T3); // R0 := *(T3 += 4) asm.emitSTAddrU (0, -BYTES_IN_ADDRESS, FP); // put one word of spill area asm.emitB (spillLoopLabel); // goto spillLoop: fr1.resolve(asm); asm.emitSTAddrU (S0, -STACKFRAME_HEADER_SIZE, FP); // allocate frame header and save old fp asm.emitLVAL (T0, INVISIBLE_METHOD_ID); asm.emitSTWoffset (T0, FP, Offset.fromIntSignExtend(STACKFRAME_METHOD_ID_OFFSET)); // set method id // // free registers: 0, S0, T0, T3 // // load up fprs // VM_ForwardReference setupFPRLoader = asm.emitForwardBL(); FPRLoader: for (int i = LAST_VOLATILE_FPR; i >= FIRST_VOLATILE_FPR; --i) asm.emitLFDU(i, BYTES_IN_DOUBLE, T2); // FPRi := fprs[i] // // free registers: 0, S0, T0, T2, T3 // // load up gprs // VM_ForwardReference setupGPRLoader = asm.emitForwardBL(); GPRLoader: for (int i = LAST_VOLATILE_GPR; i >= FIRST_VOLATILE_GPR; --i) asm.emitLAddrU (i, BYTES_IN_ADDRESS, S0); // GPRi := gprs[i] // // free registers: 0, S0 // // invoke method // asm.emitBCCTRL(); // branch and link to method code // emit method epilog // asm.emitLAddr(FP, 0, FP); // restore caller's frame asm.emitLAddr (S0, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // pick up return address asm.emitMTLR (S0); // asm.emitBCLR(); // return to caller setupFPRLoader.resolve(asm); asm.emitMFLR (T3); // T3 := address of first fpr load instruction asm.emitLInt (T0, VM_ObjectModel.getArrayLengthOffset().toInt(), T2); // T0 := number of fprs to be loaded asm.emitADDI (T3, VOLATILE_FPRS<<LG_INSTRUCTION_WIDTH, T3); // T3 := address of first instruction following fpr loads asm.emitSLWI (T0, T0, LG_INSTRUCTION_WIDTH); // T0 := number of bytes of fpr load instructions asm.emitSUBFC (T3, T0, T3); // T3 := address of instruction for highest numbered fpr to be loaded asm.emitMTLR (T3); // LR := """ asm.emitADDI (T2, -BYTES_IN_DOUBLE, T2); // predecrement fpr index (to prepare for update instruction) asm.emitBCLR (); // branch to fpr loading instructions setupGPRLoader.resolve(asm); asm.emitMFLR (T3); // T3 := address of first gpr load instruction asm.emitLInt (T0, VM_ObjectModel.getArrayLengthOffset().toInt(), T1); // T0 := number of gprs to be loaded asm.emitADDI (T3, VOLATILE_GPRS<<LG_INSTRUCTION_WIDTH, T3); // T3 := address of first instruction following gpr loads asm.emitSLWI (T0, T0, LG_INSTRUCTION_WIDTH); // T0 := number of bytes of gpr load instructions asm.emitSUBFC (T3, T0,T3); // T3 := address of instruction for highest numbered gpr to be loaded asm.emitMTLR (T3); // LR := """ asm.emitADDI (S0, -BYTES_IN_ADDRESS, T1); // predecrement gpr index (to prepare for update instruction) asm.emitBCLR (); // branch to gpr loading instructions return asm.makeMachineCode().getInstructions(); }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/c42f16e27537b49de27664c6bee883b20c4d11f8/VM_OutOfLineMachineCode.java/clean/rvm/src/vm/arch/powerPC/runtime/VM_OutOfLineMachineCode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8251,
67,
1085,
1076,
2103,
24452,
688,
1305,
24455,
26712,
1435,
288,
565,
8251,
67,
1463,
5747,
749,
20415,
273,
394,
8251,
67,
1463,
5747,
749,
12,
20,
1769,
1850,
368,
565,
368,
4843,
10285,
30,
374,
16,
348,
20,
565,
368,
565,
20415,
18,
18356,
13542,
16018,
12,
20,
1769,
29159,
368,
1923,
2777,
565,
20415,
18,
18356,
882,
3178,
261,
20,
16,
11464,
15072,
67,
25539,
67,
706,
3902,
27035,
67,
11271,
16,
28740,
1769,
368,
1372,
2463,
1758,
1850,
20415,
18,
18356,
6152,
23876,
12,
56,
20,
1769,
12900,
368,
31568,
519,
787,
434,
707,
981,
1850,
368,
565,
368,
4843,
10285,
30,
374,
16,
348,
20,
16,
399,
20,
565,
368,
1850,
368,
752,
394,
2623,
565,
368,
565,
20415,
18,
18356,
23464,
565,
261,
55,
20,
16,
225,
28740,
1769,
5375,
368,
348,
20,
519,
1592,
2623,
4407,
565,
20415,
18,
18356,
48,
1702,
225,
261,
56,
20,
16,
8251,
67,
921,
1488,
18,
588,
1076,
1782,
2335,
7675,
869,
1702,
9334,
399,
23,
1769,
368,
399,
20,
519,
1300,
434,
1694,
737,
4511,
565,
20415,
18,
18356,
1880,
2565,
225,
261,
56,
23,
16,
300,
13718,
67,
706,
67,
15140,
16,
399,
23,
1769,
5375,
368,
399,
23,
3947,
1059,
261,
1484,
323,
3702,
16,
9228,
18,
399,
23,
397,
1059,
353,
473,
1752,
737,
63,
20,
65,
262,
565,
509,
1694,
737,
6452,
2224,
273,
20415,
18,
588,
6981,
1085,
1016,
5621,
565,
20415,
18,
18356,
1880,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
8251,
67,
1085,
1076,
2103,
24452,
688,
1305,
24455,
26712,
1435,
288,
565,
8251,
67,
1463,
5747,
749,
20415,
273,
394,
8251,
67,
1463,
5747,
749,
12,
20,
1769,
1850,
368,
565,
368,
4843,
10285,
30,
374,
16,
348,
20,
565,
368,
565,
20415,
18,
18356,
13542,
16018,
12,
20,
1769,
29159,
368,
1923,
2777,
565,
20415,
18,
18356,
882,
3178,
261,
20,
16,
11464,
15072,
67,
25539,
67,
706,
3902,
27035,
67,
11271,
16,
28740,
1769,
368,
1372,
2463,
1758,
1850,
20415,
18,
18356,
6152,
23876,
12,
56,
20,
1769,
12900,
368,
31568,
519,
787,
434,
707,
981,
1850,
368,
565,
368,
4843,
10285,
30,
374,
16,
348,
20,
16,
399,
20,
565,
368,
1850,
2
] |
*/
|
public void enableInteraction( InteractionEvent ie ) throws ChartException { Trigger[] triggers = ie.getTriggers( ); if ( triggers == null ) { return; } final PrimitiveRenderEvent pre = ie.getHotSpot( ); Element elm = null; if ( pre instanceof PolygonRenderEvent ) { final Location[] loa = ( (PolygonRenderEvent) pre ).getPoints( ); int[][] pa = getCoordinatesAsInts( loa ); elm = svggc.createPolygon( pa[0], pa[1], pa[0].length ); } else if ( pre instanceof OvalRenderEvent ) { final Bounds boEllipse = ( (OvalRenderEvent) pre ).getBounds( ); elm = svggc.createOval( boEllipse.getLeft( ), boEllipse.getTop( ), boEllipse.getWidth( ), boEllipse.getHeight( ) ); } else if ( pre instanceof ArcRenderEvent ) { final ArcRenderEvent are = (ArcRenderEvent) pre; if ( are.getInnerRadius( ) >= 0 && are.getOuterRadius( ) > 0 && are.getInnerRadius( ) < are.getOuterRadius( ) ) { Shape outerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getOuterRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getOuterRadius( ) ) / 2, 2 * are.getOuterRadius( ), 2 * are.getOuterRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Shape innerArc = new Arc2D.Double( are.getTopLeft( ).getX( ) + ( are.getWidth( ) - 2 * are.getInnerRadius( ) ) / 2, are.getTopLeft( ).getY( ) + ( are.getHeight( ) - 2 * are.getInnerRadius( ) ) / 2, 2 * are.getInnerRadius( ), 2 * are.getInnerRadius( ), are.getStartAngle( ), are.getAngleExtent( ), Arc2D.PIE ); Area fArea = new Area( outerArc ); fArea.exclusiveOr( new Area( innerArc ) ); Shape prevClip = _g2d.getClip( );// _g2d.setClip( fArea ); elm = svggc.createGeneralPath( fArea );// _g2d.setClip( prevClip ); } else { elm = svggc.createGeneralPath( new Arc2D.Double( are.getTopLeft( ).getX( ), are.getTopLeft( ).getY( ), are.getWidth( ), are.getHeight( ), are.getStartAngle( ), are.getAngleExtent( ), toSwingArcType( are.getStyle( ) ) ) ); } } if (elm != null) { for (int x = 0; x < triggers.length; x++) { Trigger tg = triggers[x]; switch (tg.getAction().getType().getValue()) { case ActionType.SHOW_TOOLTIP: Element title = svggc.dom.createElement("title"); //$NON-NLS-1$ title.appendChild(svggc.dom .createTextNode(((TooltipValue) tg.getAction() .getValue()).getText())); elm.appendChild(title); elm.setAttribute("onmouseout", "TM.remove()"); //$NON-NLS-1$ //$NON-NLS-2$ elm.setAttribute("onmouseover", "TM.show(evt)"); //$NON-NLS-1$ //$NON-NLS-2$ break; case ActionType.URL_REDIRECT: elm.setAttribute("onmousedown", //$NON-NLS-1$ "parent.location='" //$NON-NLS-1$ + ((URLValue) tg.getAction().getValue()) .getBaseUrl() + "'"); //$NON-NLS-1$ setCursor(elm); break;/* case ActionType.TOGGLE_VISIBILITY : final StructureSource src = (StructureSource) pre.getSource( ); System.out.println(" " + src.getType() + " " + StructureType.LEGEND); if ( src.getType( ) == StructureType.LEGEND ) { final Legend seRT = (Legend)src.getSource( );// // logger.log( ILogger.INFORMATION,// Messages.getString( "info.toggle.visibility", //$NON-NLS-1$// getLocale() )// + seRT );// Series seDT = null;// try// {// seDT = findDesignTimeSeries( seRT ); // LOCATE // THE // CORRESPONDING // DESIGN-TIME // SERIES elm.setAttribute("onmousedown", //$NON-NLS-1$ "toggleVisibility('" //$NON-NLS-1$ + seRT.hashCode() + "')"); //$NON-NLS-1$ setCursor(elm);// }// catch ( ChartException oosx )// {// logger.log( oosx );// return;// } } break;*/ } } hotspotLayer.appendChild( elm ); } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/117996dc9ab123068b85cb66dd94ce512a0a0ccd/SVGRendererImpl.java/clean/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGRendererImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4237,
17419,
12,
5294,
1128,
1133,
9228,
262,
1216,
14804,
503,
202,
95,
202,
202,
6518,
8526,
11752,
273,
9228,
18,
588,
15114,
12,
11272,
202,
202,
430,
261,
11752,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6385,
14488,
3420,
1133,
675,
273,
9228,
18,
588,
25270,
17292,
12,
11272,
202,
202,
1046,
12531,
273,
446,
31,
202,
202,
430,
261,
675,
1276,
12681,
3420,
1133,
262,
202,
202,
95,
1082,
202,
6385,
7050,
8526,
437,
69,
273,
261,
261,
11787,
3420,
1133,
13,
675,
262,
18,
588,
5636,
12,
11272,
1082,
202,
474,
63,
6362,
65,
6790,
273,
19850,
27934,
1463,
24712,
12,
437,
69,
11272,
1082,
202,
19597,
273,
9804,
13241,
18,
2640,
11787,
12,
6790,
63,
20,
6487,
6790,
63,
21,
6487,
6790,
63,
20,
8009,
2469,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
675,
1276,
531,
1125,
3420,
1133,
262,
202,
202,
95,
1082,
202,
6385,
20382,
800,
4958,
10472,
273,
261,
261,
51,
1125,
3420,
1133,
13,
675,
262,
18,
588,
5694,
12,
11272,
1082,
202,
19597,
273,
9804,
13241,
18,
2640,
51,
1125,
12,
800,
4958,
10472,
18,
588,
3910,
12,
262,
16,
6862,
202,
1075,
4958,
10472,
18,
588,
3401,
12,
262,
16,
6862,
202,
1075,
4958,
10472,
18,
588,
2384,
12,
262,
16,
6862,
202,
1075,
4958,
10472,
18,
588,
2686,
12,
262,
11272,
202,
202,
97,
202,
202,
12107,
309,
261,
675,
1276,
24881,
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,
4237,
17419,
12,
5294,
1128,
1133,
9228,
262,
1216,
14804,
503,
202,
95,
202,
202,
6518,
8526,
11752,
273,
9228,
18,
588,
15114,
12,
11272,
202,
202,
430,
261,
11752,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6385,
14488,
3420,
1133,
675,
273,
9228,
18,
588,
25270,
17292,
12,
11272,
202,
202,
1046,
12531,
273,
446,
31,
202,
202,
430,
261,
675,
1276,
12681,
3420,
1133,
262,
202,
202,
95,
1082,
202,
6385,
7050,
8526,
437,
69,
273,
261,
261,
11787,
3420,
1133,
13,
675,
262,
18,
588,
5636,
12,
11272,
1082,
202,
474,
63,
6362,
65,
6790,
273,
19850,
27934,
1463,
24712,
12,
437,
69,
11272,
2
] |
|
push(-1); addByteCode(ByteCode.IXOR); addByteCode(ByteCode.I2D);
|
cfw.addPush(-1); cfw.add(ByteCode.IXOR); cfw.add(ByteCode.I2D);
|
private void generateCodeFromNode(Node node, Node parent) { // System.out.println("gen code for " + node.toString()); int type = node.getType(); Node child = node.getFirstChild(); switch (type) { case Token.LOOP: case Token.WITH: case Token.LABEL: visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } break; case Token.CASE: case Token.DEFAULT: // XXX shouldn't these be StatementNodes? case Token.SCRIPT: case Token.BLOCK: case Token.EMPTY: case Token.NOP: // no-ops. visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } break; case Token.FUNCTION: if (inFunction || parent.getType() != Token.SCRIPT) { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); OptFunctionNode fn; fn = (OptFunctionNode)scriptOrFn.getFunctionNode(fnIndex); int t = fn.getFunctionType(); if (t != FunctionNode.FUNCTION_STATEMENT) { visitFunction(fn, t); } } break; case Token.NAME: visitName(node); break; case Token.NEW: case Token.CALL: visitCall(node, type, child); break; case Token.NUMBER: case Token.STRING: visitLiteral(node); break; case Token.THIS: aload(thisObjLocal); break; case Token.THISFN: classFile.add(ByteCode.ALOAD_0); break; case Token.NULL: addByteCode(ByteCode.ACONST_NULL); break; case Token.TRUE: classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); break; case Token.FALSE: classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); break; case Token.UNDEFINED: pushUndefined(); break; case Token.REGEXP: visitObject(node); break; case Token.TRY: visitTryCatchFinally(node, child); break; case Token.THROW: visitThrow(node, child); break; case Token.RETURN: visitReturn(node, child); break; case Token.SWITCH: visitSwitch(node, child); break; case Token.COMMA: { Node next = child.getNext(); while (next != null) { generateCodeFromNode(child, node); addByteCode(ByteCode.POP); child = next; next = next.getNext(); } generateCodeFromNode(child, node); break; } case Token.NEWSCOPE: addScriptRuntimeInvoke("newScope", "()Lorg/mozilla/javascript/Scriptable;"); break; case Token.ENTERWITH: visitEnterWith(node, child); break; case Token.LEAVEWITH: visitLeaveWith(node, child); break; case Token.ENUMINIT: visitEnumInit(node, child); break; case Token.ENUMNEXT: visitEnumNext(node, child); break; case Token.ENUMDONE: visitEnumDone(node, child); break; case Token.POP: visitStatement(node); if (child.getType() == Token.SETVAR) { /* special case this so as to avoid unnecessary load's & pop's */ visitSetVar(child, child.getFirstChild(), false); } else { while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) addByteCode(ByteCode.POP2); else addByteCode(ByteCode.POP); } break; case Token.POPV: visitStatement(node); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } astore(scriptResultLocal); break; case Token.TARGET: visitTarget(node); break; case Token.JSR: case Token.GOTO: case Token.IFEQ: case Token.IFNE: visitGOTO(node, type, child); break; case Token.NOT: { int trueTarget = acquireLabel(); int falseTarget = acquireLabel(); int beyond = acquireLabel(); generateIfJump(child, node, trueTarget, falseTarget); markLabel(trueTarget); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "FALSE", "Ljava/lang/Boolean;"); addByteCode(ByteCode.GOTO, beyond); markLabel(falseTarget); classFile.add(ByteCode.GETSTATIC, "java/lang/Boolean", "TRUE", "Ljava/lang/Boolean;"); markLabel(beyond); classFile.adjustStackTop(-1); break; } case Token.BITNOT: addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addScriptRuntimeInvoke("toInt32", "(Ljava/lang/Object;)I"); push(-1); // implement ~a as (a ^ -1) addByteCode(ByteCode.IXOR); addByteCode(ByteCode.I2D); addDoubleConstructor(); break; case Token.VOID: generateCodeFromNode(child, node); addByteCode(ByteCode.POP); pushUndefined(); break; case Token.TYPEOF: generateCodeFromNode(child, node); addScriptRuntimeInvoke("typeof", "(Ljava/lang/Object;" +")Ljava/lang/String;"); break; case Token.TYPEOFNAME: visitTypeofname(node); break; case Token.INC: visitIncDec(node, true); break; case Token.DEC: visitIncDec(node, false); break; case Token.OR: case Token.AND: { generateCodeFromNode(child, node); addByteCode(ByteCode.DUP); addScriptRuntimeInvoke("toBoolean", "(Ljava/lang/Object;)Z"); int falseTarget = acquireLabel(); if (type == Token.AND) addByteCode(ByteCode.IFEQ, falseTarget); else addByteCode(ByteCode.IFNE, falseTarget); addByteCode(ByteCode.POP); generateCodeFromNode(child.getNext(), node); markLabel(falseTarget); } break; case Token.ADD: { generateCodeFromNode(child, node); generateCodeFromNode(child.getNext(), node); switch (node.getIntProp(Node.ISNUMBER_PROP, -1)) { case Node.BOTH: addByteCode(ByteCode.DADD); break; case Node.LEFT: addOptRuntimeInvoke("add", "(DLjava/lang/Object;)Ljava/lang/Object;"); break; case Node.RIGHT: addOptRuntimeInvoke("add", "(Ljava/lang/Object;D)Ljava/lang/Object;"); break; default: addScriptRuntimeInvoke("add", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); } } break; case Token.MUL: visitArithmetic(node, ByteCode.DMUL, child, parent); break; case Token.SUB: visitArithmetic(node, ByteCode.DSUB, child, parent); break; case Token.DIV: case Token.MOD: visitArithmetic(node, type == Token.DIV ? ByteCode.DDIV : ByteCode.DREM, child, parent); break; case Token.BITOR: case Token.BITXOR: case Token.BITAND: case Token.LSH: case Token.RSH: case Token.URSH: visitBitOp(node, type, child); break; case Token.POS: case Token.NEG: addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); if (type == Token.NEG) { addByteCode(ByteCode.DNEG); } addDoubleConstructor(); break; case Optimizer.TO_DOUBLE: // cnvt to double (not Double) generateCodeFromNode(child, node); addScriptRuntimeInvoke("toNumber", "(Ljava/lang/Object;)D"); break; case Optimizer.TO_OBJECT: { // convert from double int prop = -1; if (child.getType() == Token.NUMBER) { prop = child.getIntProp(Node.ISNUMBER_PROP, -1); } if (prop != -1) { child.removeProp(Node.ISNUMBER_PROP); generateCodeFromNode(child, node); child.putIntProp(Node.ISNUMBER_PROP, prop); } else { addByteCode(ByteCode.NEW, "java/lang/Double"); addByteCode(ByteCode.DUP); generateCodeFromNode(child, node); addDoubleConstructor(); } break; } case Token.IN: case Token.INSTANCEOF: case Token.LE: case Token.LT: case Token.GE: case Token.GT: // need a result Object visitRelOp(node, child); break; case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: visitEqOp(node, child); break; case Token.GETPROP: visitGetProp(node, child); break; case Token.GETELEM: while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } aload(variableObjectLocal); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { addOptRuntimeInvoke( "getElem", "(Ljava/lang/Object;D" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "getElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } break; case Token.GETVAR: { OptLocalVariable lVar = (OptLocalVariable)(node.getProp(Node.VARIABLE_PROP)); visitGetVar(lVar, node.getIntProp(Node.ISNUMBER_PROP, -1) != -1, node.getString()); } break; case Token.SETVAR: visitSetVar(node, child, true); break; case Token.SETNAME: visitSetName(node, child); break; case Token.SETPROP: visitSetProp(node, child); break; case Token.SETELEM: while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } aload(variableObjectLocal); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { addOptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"D" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } else { addScriptRuntimeInvoke( "setElem", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +")Ljava/lang/Object;"); } break; case Token.DELPROP: aload(contextLocal); aload(variableObjectLocal); while (child != null) { generateCodeFromNode(child, node); child = child.getNext(); } addScriptRuntimeInvoke("delete", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Object;" +"Ljava/lang/Object;" +")Ljava/lang/Object;"); break; case Token.BINDNAME: case Token.GETBASE: visitBind(node, type, child); break; case Token.GETTHIS: generateCodeFromNode(child, node); addScriptRuntimeInvoke("getThis", "(Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); break; case Token.PARENT: generateCodeFromNode(child, node); addScriptRuntimeInvoke("getParent", "(Ljava/lang/Object;" +")Lorg/mozilla/javascript/Scriptable;"); break; case Token.NEWTEMP: visitNewTemp(node, child); break; case Token.USETEMP: visitUseTemp(node, child); break; case Token.NEWLOCAL: visitNewLocal(node, child); break; case Token.USELOCAL: visitUseLocal(node, child); break; default: throw new RuntimeException("Unexpected node type "+type); } }
|
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
28570,
12,
907,
756,
16,
2029,
982,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
315,
397,
756,
18,
10492,
10663,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
1620,
261,
723,
13,
288,
2868,
648,
3155,
18,
28677,
30,
2868,
648,
3155,
18,
9147,
30,
2868,
648,
3155,
18,
13545,
30,
7734,
3757,
3406,
12,
2159,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
5621,
7734,
289,
7734,
898,
31,
2868,
648,
3155,
18,
13415,
30,
2868,
648,
3155,
18,
5280,
30,
7734,
368,
11329,
12044,
1404,
4259,
506,
8056,
3205,
35,
2868,
648,
3155,
18,
10885,
30,
2868,
648,
3155,
18,
11403,
30,
2868,
648,
3155,
18,
13625,
30,
2868,
648,
3155,
18,
3417,
52,
30,
7734,
368,
1158,
17,
4473,
18,
7734,
3757,
3406,
12,
2159,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
5621,
7734,
289,
7734,
898,
31,
2868,
648,
3155,
18,
7788,
30,
7734,
309,
261,
267,
2083,
747,
982,
18,
588,
559,
1435,
480,
3155,
18,
10885,
13,
288,
10792,
509,
2295,
1016,
273,
756,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
12056,
2083,
907,
2295,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
1085,
28570,
12,
907,
756,
16,
2029,
982,
13,
565,
288,
3639,
368,
2332,
18,
659,
18,
8222,
2932,
4507,
981,
364,
315,
397,
756,
18,
10492,
10663,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
1620,
261,
723,
13,
288,
2868,
648,
3155,
18,
28677,
30,
2868,
648,
3155,
18,
9147,
30,
2868,
648,
3155,
18,
13545,
30,
7734,
3757,
3406,
12,
2159,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
2103,
1085,
28570,
12,
3624,
16,
756,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
5621,
7734,
289,
7734,
898,
31,
2868,
648,
3155,
18,
13415,
30,
2868,
648,
2
] |
public String getServer() {
|
String getServer() {
|
public String getServer() { ProxiedQueryResults res = (ProxiedQueryResults) getResults(); return res.getServer(); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/167625827b05eadd27798f720f16d5a30c9d49fb/ProxiedHit.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/ProxiedHit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
11543,
1435,
288,
3639,
1186,
92,
2092,
1138,
3447,
400,
273,
261,
16155,
2092,
1138,
3447,
13,
21955,
5621,
3639,
327,
400,
18,
588,
2081,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
11543,
1435,
288,
3639,
1186,
92,
2092,
1138,
3447,
400,
273,
261,
16155,
2092,
1138,
3447,
13,
21955,
5621,
3639,
327,
400,
18,
588,
2081,
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
] |
DriverManager.println("Serialize.fetch: " + sb.toString());
|
if (Driver.logDebug) Driver.debug("Serialize.fetch: " + sb.toString());
|
public Object fetch(int oid) throws SQLException { try { DriverManager.println("Serialize.fetch: " + "attempting to instantiate object of type: " + ourClass.getName() ); Object obj = ourClass.newInstance(); DriverManager.println("Serialize.fetch: " + "instantiated object of type: " + ourClass.getName() ); // NB: we use java.lang.reflect here to prevent confusion with // the org.postgresql.Field // used getFields to get only public fields. We have no way to set values // for other declarations. Maybe look for setFieldName() methods? java.lang.reflect.Field f[] = ourClass.getFields(); boolean hasOID = false; int oidFIELD = -1; StringBuffer sb = new StringBuffer("select"); char sep = ' '; // build a select for the fields. Look for the oid field to use in the where for (int i = 0;i < f.length;i++) { String n = f[i].getName(); if (n.equals("oid")) { hasOID = true; oidFIELD = i; } sb.append(sep); sb.append(n); sep = ','; } sb.append(" from "); sb.append(tableName); sb.append(" where oid="); sb.append(oid); DriverManager.println("Serialize.fetch: " + sb.toString()); ResultSet rs = conn.ExecSQL(sb.toString()); if (rs != null) { if (rs.next()) { for (int i = 0;i < f.length;i++) { if ( !Modifier.isFinal(f[i].getModifiers()) ) { if ( f[i].getType().getName().equals("short") ) f[i].setShort(obj, rs.getShort(i + 1)); else if ( f[i].getType().getName().equals("char") ) f[i].setChar(obj, rs.getString(i + 1).toCharArray()[0]); else if ( f[i].getType().getName().equals("byte")) f[i].setByte(obj, rs.getByte(i + 1)); else if ( f[i].getType().getName().equals("boolean") ) { // booleans come out of pgsql as a t or an f if ( rs.getString(i + 1).equals("t") ) f[i].setBoolean(obj, true); else f[i].setBoolean(obj, false); } else f[i].set(obj, rs.getObject(i + 1)); } } } rs.close(); } else throw new PSQLException("postgresql.unexpected"); return obj; } catch (IllegalAccessException iae) { throw new SQLException(iae.toString()); } catch (InstantiationException ie) { throw new SQLException(ie.toString()); } }
|
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/b465f5307f9f5506beb1edbcc0fb56eed7c29c12/Serialize.java/clean/src/interfaces/jdbc/org/postgresql/util/Serialize.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
2158,
12,
474,
7764,
13,
1216,
6483,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
4668,
1318,
18,
8222,
2932,
10343,
18,
5754,
30,
315,
397,
315,
11764,
310,
358,
10275,
733,
434,
618,
30,
315,
397,
3134,
797,
18,
17994,
1435,
11272,
1082,
202,
921,
1081,
273,
3134,
797,
18,
2704,
1442,
5621,
1082,
202,
4668,
1318,
18,
8222,
2932,
10343,
18,
5754,
30,
315,
397,
315,
24628,
10206,
733,
434,
618,
30,
315,
397,
3134,
797,
18,
17994,
1435,
11272,
1082,
202,
759,
20096,
30,
732,
999,
2252,
18,
4936,
18,
1734,
1582,
2674,
358,
5309,
31067,
598,
1082,
202,
759,
326,
2358,
18,
2767,
24330,
18,
974,
1082,
202,
759,
1399,
12612,
358,
336,
1338,
1071,
1466,
18,
1660,
1240,
1158,
4031,
358,
444,
924,
1082,
202,
759,
364,
1308,
12312,
18,
14024,
2324,
364,
444,
7287,
1435,
2590,
35,
1082,
202,
6290,
18,
4936,
18,
1734,
1582,
18,
974,
284,
8526,
273,
3134,
797,
18,
588,
2314,
5621,
1082,
202,
6494,
711,
12945,
273,
629,
31,
1082,
202,
474,
7764,
6776,
273,
300,
21,
31,
1082,
202,
780,
1892,
2393,
273,
394,
6674,
2932,
4025,
8863,
1082,
202,
3001,
5478,
273,
296,
12386,
1082,
202,
759,
1361,
279,
2027,
364,
326,
1466,
18,
10176,
364,
326,
7764,
652,
358,
999,
316,
326,
1625,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
77,
411,
284,
18,
2469,
31,
77,
27245,
1082,
202,
95,
9506,
202,
780,
290,
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,
2158,
12,
474,
7764,
13,
1216,
6483,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
4668,
1318,
18,
8222,
2932,
10343,
18,
5754,
30,
315,
397,
315,
11764,
310,
358,
10275,
733,
434,
618,
30,
315,
397,
3134,
797,
18,
17994,
1435,
11272,
1082,
202,
921,
1081,
273,
3134,
797,
18,
2704,
1442,
5621,
1082,
202,
4668,
1318,
18,
8222,
2932,
10343,
18,
5754,
30,
315,
397,
315,
24628,
10206,
733,
434,
618,
30,
315,
397,
3134,
797,
18,
17994,
1435,
11272,
1082,
202,
759,
20096,
30,
732,
999,
2252,
18,
4936,
18,
1734,
1582,
2674,
358,
5309,
31067,
598,
1082,
202,
759,
326,
2358,
18,
2767,
24330,
18,
974,
1082,
202,
759,
2
] |
while (refSig.charAt(c++) == '[') {}
|
while (refSig.charAt(c) == '[') { c++; }
|
private static boolean isPrimitiveComponentClass(String refSig) { int c = 0; while (refSig.charAt(c++) == '[') {} return refSig.charAt(c) != 'L'; }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/764850b1bc4bf4b5a0e7f0f82c65eeae18a5e712/Analyze.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/Analyze.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
19598,
1841,
797,
12,
780,
1278,
8267,
13,
288,
202,
202,
474,
276,
273,
374,
31,
202,
202,
17523,
261,
1734,
8267,
18,
3001,
861,
12,
71,
27245,
422,
8375,
13,
2618,
202,
202,
2463,
1278,
8267,
18,
3001,
861,
12,
71,
13,
480,
296,
48,
13506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
19598,
1841,
797,
12,
780,
1278,
8267,
13,
288,
202,
202,
474,
276,
273,
374,
31,
202,
202,
17523,
261,
1734,
8267,
18,
3001,
861,
12,
71,
27245,
422,
8375,
13,
2618,
202,
202,
2463,
1278,
8267,
18,
3001,
861,
12,
71,
13,
480,
296,
48,
13506,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (delta > 0)
|
if (percentDone >= 0 && percentDone < 100) { int delta= percentDone-fLastWorkDone; fLastWorkDone= percentDone;
|
void worked(int delta) { if (!fProgressBar.isDisposed()) { if (! fInitialized) { if (delta < 0) fProgressBar.beginAnimatedTask(); else fProgressBar.beginTask(100); fInitialized= true; } if (delta > 0) fProgressBar.worked(delta); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa98e5261fb94043cbece7a0b1910f5b87e198c6/JobView.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
28613,
12,
474,
3622,
13,
288,
1082,
202,
430,
16051,
74,
31547,
18,
291,
1669,
7423,
10756,
288,
9506,
202,
430,
16051,
284,
11459,
13,
288,
6862,
202,
430,
261,
9878,
411,
374,
13,
25083,
202,
74,
31547,
18,
10086,
979,
17275,
2174,
5621,
6862,
202,
12107,
25083,
202,
74,
31547,
18,
10086,
2174,
12,
6625,
1769,
6862,
202,
74,
11459,
33,
638,
31,
9506,
202,
97,
9506,
202,
430,
261,
9878,
405,
374,
13,
6862,
202,
74,
31547,
18,
1252,
329,
12,
9878,
1769,
1082,
202,
97,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
28613,
12,
474,
3622,
13,
288,
1082,
202,
430,
16051,
74,
31547,
18,
291,
1669,
7423,
10756,
288,
9506,
202,
430,
16051,
284,
11459,
13,
288,
6862,
202,
430,
261,
9878,
411,
374,
13,
25083,
202,
74,
31547,
18,
10086,
979,
17275,
2174,
5621,
6862,
202,
12107,
25083,
202,
74,
31547,
18,
10086,
2174,
12,
6625,
1769,
6862,
202,
74,
11459,
33,
638,
31,
9506,
202,
97,
9506,
202,
430,
261,
9878,
405,
374,
13,
6862,
202,
74,
31547,
18,
1252,
329,
12,
9878,
1769,
1082,
202,
97,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void mSH_STYLE_SINGLE_LINE_COMMENT() throws RecognitionException { try { int type = SH_STYLE_SINGLE_LINE_COMMENT; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:729:17: ( '#' ( options {greedy=false; } : . )* EOL ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:729:17: '#' ( options {greedy=false; } : . )* EOL { match('#'); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:729:21: ( options {greedy=false; } : . )* loop7: do { int alt7=2; int LA7_0 = input.LA(1); if ( LA7_0=='\r' ) { alt7=2; } else if ( LA7_0=='\n' ) { alt7=2; } else if ( (LA7_0>='\u0000' && LA7_0<='\t')||(LA7_0>='\u000B' && LA7_0<='\f')||(LA7_0>='\u000E' && LA7_0<='\uFFFE') ) { alt7=1; } switch (alt7) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:729:48: . { matchAny(); } break; default : break loop7; } } while (true); mEOL(); channel=99; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { } }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/138d9a6805db25e18a7f8c70bebca33cce7b95e5/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
2664,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
509,
618,
273,
6122,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
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,
5540,
30,
4033,
30,
261,
6501,
261,
702,
288,
11556,
24009,
33,
5743,
31,
289,
294,
263,
8618,
19995,
262,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
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,
5540,
30,
4033,
30,
6501,
261,
702,
288,
11556,
24009,
33,
5743,
31,
289,
294,
263,
8618,
19995,
5411,
288,
5411,
845,
2668,
7,
8284,
2398,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
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,
5540,
30,
5340,
30,
261,
702,
288,
11556,
24009,
33,
5743,
31,
289,
294,
263,
8618,
5411,
2798,
27,
30,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
2664,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
509,
618,
273,
6122,
67,
15066,
67,
20184,
67,
5997,
67,
12200,
31,
5411,
509,
787,
273,
23577,
1016,
5621,
5411,
509,
980,
273,
9851,
5621,
5411,
509,
1149,
2555,
273,
23577,
2555,
382,
1670,
5621,
5411,
509,
1904,
273,
3155,
18,
5280,
67,
15814,
31,
5411,
368,
342,
6588,
19,
70,
947,
19,
12922,
19,
14915,
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,
5540,
30,
4033,
30,
261,
6501,
261,
702,
288,
11556,
24009,
33,
5743,
31,
2
] |
||
}
|
}
|
SchemaGrammar getSchemaGrammarFromAppl(short contextType , String namespace , QName enclosingElement, QName triggeringComponet, XMLAttributes attribute ){ //REVISIT: construct empty pool... we dont have to check for the null condition //give a chance to application to be able to retreive the grammar. if(fGrammarPool != null){ fXSDDescription.reset() ; fXSDDescription.fContextType = contextType ; fXSDDescription.fTargetNamespace = namespace ; fXSDDescription.fEnclosedElementName = enclosingElement ; fXSDDescription.fTriggeringComponent = triggeringComponet ; fXSDDescription.fAttributes = attribute ; Object locationArray = null ; if( namespace != null){ locationArray = fLocationPairs.get(namespace) ; if(locationArray != null){ String [] temp = ((LocationArray)locationArray).getLocationArray() ; fXSDDescription.fLocationHints = new String [temp.length] ; System.arraycopy(temp, 0 , fXSDDescription.fLocationHints, 0, temp.length ); } }else{ String [] temp = fNoNamespaceLocationArray.getLocationArray() ; fXSDDescription.fLocationHints = new String [temp.length] ; System.arraycopy(temp, 0 , fXSDDescription.fLocationHints, 0, temp.length ); } return (SchemaGrammar)fGrammarPool.retrieveGrammar(fXSDDescription); } else{ return (SchemaGrammar)null ; } }//getGrammarFromAppl
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/cf8fca03a702621ccd014c61dde15932b0f3b075/XMLSchemaValidator.java/clean/src/org/apache/xerces/impl/xs/XMLSchemaValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3078,
18576,
11088,
18576,
1265,
1294,
412,
12,
6620,
819,
559,
269,
514,
1981,
269,
16723,
16307,
1046,
16,
16723,
27411,
799,
500,
278,
16,
3167,
2498,
1566,
262,
95,
13491,
368,
862,
26780,
1285,
30,
4872,
1008,
2845,
2777,
732,
14046,
1240,
358,
866,
364,
326,
446,
2269,
5411,
368,
75,
688,
279,
17920,
358,
2521,
358,
506,
7752,
358,
325,
266,
688,
326,
6473,
18,
5411,
309,
12,
74,
18576,
2864,
480,
446,
15329,
7734,
284,
31244,
3291,
18,
6208,
1435,
274,
7734,
284,
31244,
3291,
18,
74,
1042,
559,
273,
819,
559,
274,
7734,
284,
31244,
3291,
18,
74,
2326,
3402,
273,
1981,
274,
10402,
284,
31244,
3291,
18,
74,
4280,
13783,
30584,
273,
16307,
1046,
274,
10402,
284,
31244,
3291,
18,
74,
6518,
310,
1841,
273,
27411,
799,
500,
278,
274,
7734,
284,
31244,
3291,
18,
74,
2498,
273,
1566,
274,
4766,
7734,
1033,
2117,
1076,
273,
446,
274,
1171,
309,
12,
1981,
480,
446,
15329,
27573,
202,
3562,
1076,
273,
284,
2735,
10409,
18,
588,
12,
4937,
13,
274,
4766,
202,
430,
12,
3562,
1076,
480,
446,
15329,
5397,
202,
202,
780,
5378,
1906,
273,
14015,
2735,
1076,
13,
3562,
1076,
2934,
588,
2735,
1076,
1435,
274,
5397,
202,
202,
74,
31244,
3291,
18,
74,
2735,
13368,
273,
394,
514,
306,
5814,
18,
2469,
65,
274,
5397,
202,
202,
3163,
18,
1126,
3530,
12,
5814,
16,
374,
269,
284,
31244,
3291,
18,
74,
2735,
13368,
16,
374,
16,
1906,
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,
3078,
18576,
11088,
18576,
1265,
1294,
412,
12,
6620,
819,
559,
269,
514,
1981,
269,
16723,
16307,
1046,
16,
16723,
27411,
799,
500,
278,
16,
3167,
2498,
1566,
262,
95,
13491,
368,
862,
26780,
1285,
30,
4872,
1008,
2845,
2777,
732,
14046,
1240,
358,
866,
364,
326,
446,
2269,
5411,
368,
75,
688,
279,
17920,
358,
2521,
358,
506,
7752,
358,
325,
266,
688,
326,
6473,
18,
5411,
309,
12,
74,
18576,
2864,
480,
446,
15329,
7734,
284,
31244,
3291,
18,
6208,
1435,
274,
7734,
284,
31244,
3291,
18,
74,
1042,
559,
273,
819,
559,
274,
7734,
284,
31244,
3291,
18,
74,
2326,
3402,
273,
1981,
274,
10402,
284,
31244,
3291,
18,
74,
4280,
13783,
30584,
273,
2
] |
public void testInsertUsernameTrigger() throws SQLException { Statement stmt = m_connection.createStatement(); stmt.execute("DELETE FROM username_test"); stmt.execute("INSERT INTO username_test VALUES ('nothing', 'thomas')"); stmt.execute("INSERT INTO username_test VALUES ('null', null)"); stmt.execute("INSERT INTO username_test VALUES ('empty string', '')"); stmt.execute("INSERT INTO username_test VALUES ('space', ' ')"); stmt.execute("INSERT INTO username_test VALUES ('tab', ' ')"); stmt.execute("INSERT INTO username_test VALUES ('name', 'name')"); ResultSet rs = stmt.executeQuery("SELECT * FROM username_test"); while(rs.next()) { String name = rs.getString(1); String username = rs.getString(2); System.out.println("Name = \"" + name + "\", username = \"" + username + "\""); } rs.close(); // Test the update trigger as well // stmt.execute("UPDATE username_test SET username = 'Kalle Kula' WHERE username = 'name'"); stmt.close(); }
|
7270 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7270/854f0e9f069dbd957c61d87a99a8ae8e8bdecb50/Tester.java/clean/src/java/test/org/postgresql/pljava/test/Tester.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4600,
8575,
6518,
1435,
202,
15069,
6483,
202,
95,
202,
202,
3406,
3480,
273,
312,
67,
4071,
18,
2640,
3406,
5621,
202,
202,
10589,
18,
8837,
2932,
6460,
4571,
2718,
67,
3813,
8863,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
30874,
2187,
296,
451,
362,
345,
23291,
1769,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
2011,
2187,
446,
2225,
1769,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
5531,
533,
2187,
875,
2225,
1769,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
2981,
2187,
296,
296,
2225,
1769,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
7032,
2187,
296,
202,
23291,
1769,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
529,
2187,
296,
529,
23291,
1769,
202,
202,
13198,
3597,
273,
3480,
18,
8837,
1138,
2932,
4803,
380,
4571,
2718,
67,
3813,
8863,
202,
202,
17523,
12,
5453,
18,
4285,
10756,
202,
202,
95,
1082,
202,
780,
508,
273,
3597,
18,
588,
780,
12,
21,
1769,
1082,
202,
780,
2718,
273,
3597,
18,
588,
780,
12,
22,
1769,
1082,
202,
3163,
18,
659,
18,
8222,
2932,
461,
273,
11843,
397,
508,
397,
1548,
3113,
2718,
273,
11843,
397,
2718,
397,
11143,
1769,
202,
202,
97,
202,
202,
5453,
18,
4412,
5621,
202,
202,
759,
7766,
326,
1089,
3080,
487,
5492,
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,
4600,
8575,
6518,
1435,
202,
15069,
6483,
202,
95,
202,
202,
3406,
3480,
273,
312,
67,
4071,
18,
2640,
3406,
5621,
202,
202,
10589,
18,
8837,
2932,
6460,
4571,
2718,
67,
3813,
8863,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
30874,
2187,
296,
451,
362,
345,
23291,
1769,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
2011,
2187,
446,
2225,
1769,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
5531,
533,
2187,
875,
2225,
1769,
202,
202,
10589,
18,
8837,
2932,
11356,
12421,
2718,
67,
3813,
13477,
7707,
2981,
2187,
296,
296,
2225,
1769,
202,
202,
10589,
18,
2
] |
||
sSubType = ( (Button) cmpTypeButtons.getChildren( )[0] ).getText( );
|
sSubType = getSubtypeFromButton( cmpTypeButtons.getChildren( )[0] );
|
private void setDefaultSubtypeSelection( ) { if ( sSubType == null ) { ( (Button) cmpTypeButtons.getChildren( )[0] ).setSelection( true ); sSubType = ( (Button) cmpTypeButtons.getChildren( )[0] ).getText( ); } else { Control[] buttons = cmpTypeButtons.getChildren( ); boolean bSelected = false; for ( int iB = 0; iB < buttons.length; iB++ ) { if ( ( (Button) buttons[iB] ).getText( ).equals( sSubType ) ) { ( (Button) buttons[iB] ).setSelection( true ); bSelected = true; break; } } // If specified subType is not found, select default if ( !bSelected ) { ( (Button) cmpTypeButtons.getChildren( )[0] ).setSelection( true ); sSubType = ( (Button) cmpTypeButtons.getChildren( )[0] ).getText( ); } } cmpTypeButtons.redraw( ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/656f6c2244f0db2df6bba6efcc9001a3797b8f0b/TaskSelectType.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
9277,
1676,
723,
6233,
12,
262,
202,
95,
202,
202,
430,
261,
272,
30511,
422,
446,
262,
202,
202,
95,
1082,
202,
12,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
542,
6233,
12,
638,
11272,
1082,
202,
87,
30511,
273,
261,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
588,
1528,
12,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
3367,
8526,
9502,
273,
9411,
559,
14388,
18,
588,
4212,
12,
11272,
1082,
202,
6494,
324,
7416,
273,
629,
31,
1082,
202,
1884,
261,
509,
277,
38,
273,
374,
31,
277,
38,
411,
9502,
18,
2469,
31,
277,
38,
9904,
262,
1082,
202,
95,
9506,
202,
430,
261,
261,
261,
3616,
13,
9502,
63,
17632,
65,
262,
18,
588,
1528,
12,
262,
18,
14963,
12,
272,
30511,
262,
262,
9506,
202,
95,
6862,
202,
12,
261,
3616,
13,
9502,
63,
17632,
65,
262,
18,
542,
6233,
12,
638,
11272,
6862,
202,
70,
7416,
273,
638,
31,
6862,
202,
8820,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
759,
971,
1269,
27084,
353,
486,
1392,
16,
2027,
805,
1082,
202,
430,
261,
401,
70,
7416,
262,
1082,
202,
95,
9506,
202,
12,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
542,
6233,
12,
638,
11272,
9506,
202,
87,
30511,
273,
261,
261,
3616,
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,
225,
202,
1152,
918,
9277,
1676,
723,
6233,
12,
262,
202,
95,
202,
202,
430,
261,
272,
30511,
422,
446,
262,
202,
202,
95,
1082,
202,
12,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
542,
6233,
12,
638,
11272,
1082,
202,
87,
30511,
273,
261,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
588,
1528,
12,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
3367,
8526,
9502,
273,
9411,
559,
14388,
18,
588,
4212,
12,
11272,
1082,
202,
6494,
324,
7416,
273,
629,
31,
1082,
202,
1884,
261,
509,
277,
38,
273,
374,
31,
277,
38,
411,
9502,
2
] |
data = embeddedImage.getData( design.getModule( ) );
|
return embeddedImage.getData( design.getModule( ) );
|
public byte[] getData( ) { if ( data == null && sourceType == IImageContent.IMAGE_NAME ) { Report reportDesign = report.getDesign( ); if ( reportDesign != null ) { ReportDesignHandle design = reportDesign.getReportDesign( ); EmbeddedImage embeddedImage = design.findImage( uri ); if ( embeddedImage != null ) { data = embeddedImage.getData( design.getModule( ) ); } } } return data; }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/eba453d99fa69f37267f83ee6ca84bec88535702/ImageContent.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/ImageContent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
4303,
12,
262,
202,
95,
202,
202,
430,
261,
501,
422,
446,
597,
26695,
422,
467,
2040,
1350,
18,
13603,
67,
1985,
262,
202,
202,
95,
1082,
202,
4820,
2605,
15478,
273,
2605,
18,
588,
15478,
12,
11272,
1082,
202,
430,
261,
2605,
15478,
480,
446,
262,
1082,
202,
95,
9506,
202,
4820,
15478,
3259,
8281,
273,
2605,
15478,
18,
588,
4820,
15478,
12,
11272,
9506,
202,
14980,
2040,
7488,
2040,
273,
8281,
18,
4720,
2040,
12,
2003,
11272,
9506,
202,
430,
261,
7488,
2040,
480,
446,
262,
9506,
202,
95,
6862,
202,
892,
273,
7488,
2040,
18,
588,
751,
12,
8281,
18,
588,
3120,
12,
262,
11272,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
501,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1160,
8526,
4303,
12,
262,
202,
95,
202,
202,
430,
261,
501,
422,
446,
597,
26695,
422,
467,
2040,
1350,
18,
13603,
67,
1985,
262,
202,
202,
95,
1082,
202,
4820,
2605,
15478,
273,
2605,
18,
588,
15478,
12,
11272,
1082,
202,
430,
261,
2605,
15478,
480,
446,
262,
1082,
202,
95,
9506,
202,
4820,
15478,
3259,
8281,
273,
2605,
15478,
18,
588,
4820,
15478,
12,
11272,
9506,
202,
14980,
2040,
7488,
2040,
273,
8281,
18,
4720,
2040,
12,
2003,
11272,
9506,
202,
430,
261,
7488,
2040,
480,
446,
262,
9506,
202,
95,
6862,
202,
892,
273,
7488,
2040,
18,
588,
751,
12,
8281,
18,
588,
3120,
12,
262,
11272,
9506,
202,
97,
1082,
202,
97,
2
] |
float x = 0f;
|
double x = 0d;
|
public void paint(AttributedCharacterIterator aci, Point2D location, TextNode.Anchor anchor, Graphics2D g2d, GraphicsNodeRenderContext context) { FontRenderContext frc = context.getFontRenderContext(); Set extendedAtts = new HashSet(); List textRuns = new ArrayList(); float advance = 0f; extendedAtts.add( GVTAttributedCharacterIterator.TextAttribute.STROKE); extendedAtts.add( GVTAttributedCharacterIterator.TextAttribute.STROKE_PAINT); aci.first(); /* * We iterate through the spans over extended attributes, * instantiating TextLayout elements as we go, and * accumulate an overall advance for the text display. */ while (aci.current() != CharacterIterator.DONE) { float x = 0f; float y = 0f; /* * note that these can be superseded by X, Y attributes * but this hasn't been implemented yet */ int start = aci.getRunStart(extendedAtts); int end = aci.getRunLimit(extendedAtts); AttributedCharacterIterator runaci = new AttributedCharacterSpanIterator(aci, start, end); TextLayout layout = new TextLayout(runaci, frc); TextRun run = new TextRun(layout, runaci); textRuns.add(run); advance += layout.getAdvance(); // FIXME: not BIDI compliant yet! aci.setIndex(end); } float x = 0f; switch(anchor.getType()){ case TextNode.Anchor.ANCHOR_MIDDLE: x = -advance/2; break; case TextNode.Anchor.ANCHOR_END: x = -advance; } /* * Adjust for Anchor (above), then * we render each of the TextLayout glyphsets * in turn. */ for (int i=0; i<textRuns.size(); ++i) { TextRun textRun = (TextRun) textRuns.get(i); AttributedCharacterIterator runaci = textRun.getACI(); runaci.first(); // check if we need to fill this glyph Paint paint = (Paint) runaci.getAttribute(TextAttribute.FOREGROUND); if (paint != null) { textRun.getLayout().draw(g2d, (float)(location.getX() + x), (float)(location.getY())); } // check if we need to draw the outline of this glyph Stroke stroke = (Stroke) runaci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.STROKE); paint = (Paint) runaci.getAttribute( GVTAttributedCharacterIterator.TextAttribute.STROKE_PAINT); if (stroke != null && paint != null) { AffineTransform t = AffineTransform.getTranslateInstance( location.getX() + x, location.getY()); g2d.setStroke(stroke); g2d.setPaint(paint); g2d.draw(textRun.getLayout().getOutline(t)); } x += textRun.getLayout().getAdvance(); } // FIXME: Finish implementation! // (Currently only understands STROKE, STROKE_PAINT) }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/a884e97a92d5b449ab1ff18def7a446e0e19d3a1/StrokingTextPainter.java/clean/sources/org/apache/batik/refimpl/gvt/renderer/StrokingTextPainter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
12,
861,
11050,
7069,
3198,
1721,
77,
16,
4686,
22,
40,
2117,
16,
3867,
907,
18,
11605,
6984,
16,
9079,
16830,
22,
40,
314,
22,
72,
16,
16830,
907,
3420,
1042,
819,
13,
288,
3639,
10063,
3420,
1042,
284,
1310,
273,
819,
18,
588,
5711,
3420,
1042,
5621,
3639,
1000,
7021,
3075,
87,
273,
394,
6847,
5621,
3639,
987,
977,
9361,
273,
394,
2407,
5621,
3639,
1431,
8312,
273,
374,
74,
31,
3639,
7021,
3075,
87,
18,
1289,
12,
7734,
611,
58,
56,
861,
11050,
7069,
3198,
18,
1528,
1499,
18,
25870,
6859,
1769,
202,
14948,
3075,
87,
18,
1289,
12,
202,
202,
25269,
56,
861,
11050,
7069,
3198,
18,
1528,
1499,
18,
25870,
6859,
67,
4066,
3217,
1769,
3639,
1721,
77,
18,
3645,
5621,
3639,
1748,
540,
380,
1660,
7401,
3059,
326,
12791,
1879,
7021,
1677,
16,
540,
380,
5934,
22906,
3867,
3744,
2186,
487,
732,
1960,
16,
471,
540,
380,
21757,
392,
13914,
8312,
364,
326,
977,
2562,
18,
540,
1195,
3639,
1323,
261,
1077,
77,
18,
2972,
1435,
480,
6577,
3198,
18,
26875,
13,
288,
5411,
1645,
619,
273,
374,
72,
31,
5411,
1431,
677,
273,
374,
74,
31,
5411,
1748,
2398,
380,
4721,
716,
4259,
848,
506,
2240,
307,
785,
635,
1139,
16,
1624,
1677,
2398,
380,
1496,
333,
13342,
1404,
2118,
8249,
4671,
2398,
1195,
5411,
509,
787,
273,
1721,
77,
18,
588,
1997,
1685,
12,
14948,
3075,
87,
1769,
5411,
509,
679,
273,
1721,
77,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
12,
861,
11050,
7069,
3198,
1721,
77,
16,
4686,
22,
40,
2117,
16,
3867,
907,
18,
11605,
6984,
16,
9079,
16830,
22,
40,
314,
22,
72,
16,
16830,
907,
3420,
1042,
819,
13,
288,
3639,
10063,
3420,
1042,
284,
1310,
273,
819,
18,
588,
5711,
3420,
1042,
5621,
3639,
1000,
7021,
3075,
87,
273,
394,
6847,
5621,
3639,
987,
977,
9361,
273,
394,
2407,
5621,
3639,
1431,
8312,
273,
374,
74,
31,
3639,
7021,
3075,
87,
18,
1289,
12,
7734,
611,
58,
56,
861,
11050,
7069,
3198,
18,
1528,
1499,
18,
25870,
6859,
1769,
202,
14948,
3075,
87,
18,
1289,
12,
202,
202,
25269,
56,
861,
11050,
7069,
3198,
18,
1528,
1499,
18,
25870,
6859,
2
] |
public ClassPathVector getExtraClassPath() { return _state.getExtraClassPath(); }
|
public ClassPathVector getExtraClassPath() { return _state.getExtraClassPath(); }
|
public ClassPathVector getExtraClassPath() { return _state.getExtraClassPath(); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/aafaf7b848d738e58eee48a6cbc4b800c8027685/AbstractGlobalModel.java/buggy/drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1659,
743,
5018,
24973,
22158,
1435,
288,
565,
327,
389,
2019,
18,
588,
7800,
22158,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1659,
743,
5018,
24973,
22158,
1435,
288,
565,
327,
389,
2019,
18,
588,
7800,
22158,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case GL.GL_UNSIGNED_INT :
|
case GL11.GL_UNSIGNED_INT :
|
protected static int bytesPerPixel(int format, int type) { int n, m; switch (format) { case GL.GL_COLOR_INDEX : case GL.GL_STENCIL_INDEX : case GL.GL_DEPTH_COMPONENT : case GL.GL_RED : case GL.GL_GREEN : case GL.GL_BLUE : case GL.GL_ALPHA : case GL.GL_LUMINANCE : n = 1; break; case GL.GL_LUMINANCE_ALPHA : n = 2; break; case GL.GL_RGB : case GL.GL_BGR : n = 3; break; case GL.GL_RGBA : case GL.GL_BGRA : n = 4; break; default : n = 0; } switch (type) { case GL.GL_UNSIGNED_BYTE : m = 1; break; case GL.GL_BYTE : m = 1; break; case GL.GL_BITMAP : m = 1; break; case GL.GL_UNSIGNED_SHORT : m = 2; break; case GL.GL_SHORT : m = 2; break; case GL.GL_UNSIGNED_INT : m = 4; break; case GL.GL_INT : m = 4; break; case GL.GL_FLOAT : m = 4; break; default : m = 0; } return n * m; }
|
5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/6886a154d041abfc2d1bb69d1edca4bae6148af8/Util.java/buggy/src/java/org/lwjgl/opengl/glu/Util.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
509,
31148,
9037,
12,
474,
740,
16,
509,
618,
13,
288,
202,
202,
474,
290,
16,
312,
31,
202,
202,
9610,
261,
2139,
13,
288,
1082,
202,
3593,
10252,
18,
11261,
67,
10989,
67,
9199,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
882,
30445,
2627,
67,
9199,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
27479,
67,
22922,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
5879,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
29500,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
14618,
1821,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
26313,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
48,
2799,
706,
4722,
294,
9506,
202,
82,
273,
404,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
10252,
18,
11261,
67,
48,
2799,
706,
4722,
67,
26313,
294,
9506,
202,
82,
273,
576,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
10252,
18,
11261,
67,
11343,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
38,
6997,
294,
9506,
202,
82,
273,
890,
31,
9506,
202,
8820,
31,
1082,
202,
3593,
10252,
18,
11261,
67,
23263,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
38,
24554,
294,
9506,
202,
82,
273,
1059,
31,
9506,
202,
8820,
31,
1082,
202,
1886,
294,
9506,
202,
82,
273,
374,
31,
202,
202,
97,
202,
202,
9610,
261,
723,
13,
288,
1082,
202,
3593,
10252,
18,
11261,
67,
2124,
21049,
67,
15377,
294,
9506,
202,
81,
273,
404,
31,
9506,
202,
8820,
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,
225,
202,
1117,
760,
509,
31148,
9037,
12,
474,
740,
16,
509,
618,
13,
288,
202,
202,
474,
290,
16,
312,
31,
202,
202,
9610,
261,
2139,
13,
288,
1082,
202,
3593,
10252,
18,
11261,
67,
10989,
67,
9199,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
882,
30445,
2627,
67,
9199,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
27479,
67,
22922,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
5879,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
29500,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
14618,
1821,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
26313,
294,
1082,
202,
3593,
10252,
18,
11261,
67,
48,
2799,
706,
4722,
294,
9506,
202,
82,
273,
404,
31,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.