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 |
|---|---|---|---|---|---|---|
if (! args[i].isKindOf(runtime.getClass("Module"))) {
|
if (!args[i].isKindOf(runtime.getClass("Module"))) {
|
private boolean isRescueHandled(RubyException currentException, ListNode exceptionNodes) { if (exceptionNodes == null) { return currentException.isKindOf(runtime.getClass("StandardError")); } ThreadContext tc = getThreadContext(); tc.beginCallArgs(); IRubyObject[] args = null; try { args = setupArgs(runtime, tc, exceptionNodes); } finally { tc.endCallArgs(); } for (int i = 0; i < args.length; i++) { if (! args[i].isKindOf(runtime.getClass("Module"))) { throw runtime.newTypeError("class or module required for rescue clause"); } if (args[i].callMethod("===", currentException).isTrue()) return true; } return false; }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/6e15491217631472c05c6928672f9c7064a978b3/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
353,
607,
8007,
23186,
12,
54,
10340,
503,
783,
503,
16,
987,
907,
1520,
3205,
13,
288,
3639,
309,
261,
4064,
3205,
422,
446,
13,
288,
5411,
327,
783,
503,
18,
291,
5677,
951,
12,
9448,
18,
588,
797,
2932,
8336,
668,
7923,
1769,
3639,
289,
7734,
4884,
1042,
1715,
273,
24459,
1042,
5621,
3639,
1715,
18,
10086,
1477,
2615,
5621,
3639,
15908,
10340,
921,
8526,
833,
273,
446,
31,
3639,
775,
288,
5411,
833,
273,
3875,
2615,
12,
9448,
16,
1715,
16,
1520,
3205,
1769,
3639,
289,
3095,
288,
5411,
1715,
18,
409,
1477,
2615,
5621,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
309,
16051,
1968,
63,
77,
8009,
291,
5677,
951,
12,
9448,
18,
588,
797,
2932,
3120,
6,
20349,
288,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
353,
607,
8007,
23186,
12,
54,
10340,
503,
783,
503,
16,
987,
907,
1520,
3205,
13,
288,
3639,
309,
261,
4064,
3205,
422,
446,
13,
288,
5411,
327,
783,
503,
18,
291,
5677,
951,
12,
9448,
18,
588,
797,
2932,
8336,
668,
7923,
1769,
3639,
289,
7734,
4884,
1042,
1715,
273,
24459,
1042,
5621,
3639,
1715,
18,
10086,
1477,
2615,
5621,
3639,
15908,
10340,
921,
8526,
833,
273,
446,
31,
3639,
775,
288,
5411,
833,
273,
3875,
2615,
12,
9448,
16,
1715,
16,
1520,
3205,
1769,
3639,
289,
3095,
288,
5411,
1715,
18,
409,
1477,
2615,
5621,
3639,
289,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
2
] |
public org.quickfix.field.PartySubIDType getPartySubIDType() throws FieldNotFound { org.quickfix.field.PartySubIDType value = new org.quickfix.field.PartySubIDType();
|
public quickfix.field.PartySubIDType getPartySubIDType() throws FieldNotFound { quickfix.field.PartySubIDType value = new quickfix.field.PartySubIDType();
|
public org.quickfix.field.PartySubIDType getPartySubIDType() throws FieldNotFound { org.quickfix.field.PartySubIDType value = new org.quickfix.field.PartySubIDType(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/RequestForPositionsAck.java/clean/src/java/src/quickfix/fix44/RequestForPositionsAck.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
559,
1689,
7325,
1676,
734,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17619,
1676,
734,
559,
1689,
7325,
1676,
734,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17619,
1676,
734,
559,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void print(Graphics g) {
|
public final void print(Graphics g) {
|
public void print(Graphics g) { jComponent.print(g); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cb141050fd84afdb6e8ef6f8cc3ed4e90608d848/SwingComponentPeer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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
918,
1172,
12,
17558,
314,
13,
288,
3639,
525,
1841,
18,
1188,
12,
75,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
page.openEditor(editor .getEditorInput(), editorId, true, IWorkbenchPage.MATCH_NONE);
|
if (editor instanceof IPersistableEditor) { XMLMemento editorState = XMLMemento .createWriteRoot(IWorkbenchConstants.TAG_EDITOR_STATE); ((IPersistableEditor) editor) .saveState(editorState); ((WorkbenchPage) page).openEditor(editor .getEditorInput(), editorId, true, IWorkbenchPage.MATCH_NONE, editorState); } else { page.openEditor(editor.getEditorInput(), editorId, true, IWorkbenchPage.MATCH_NONE); }
|
public void run() { if (part != null) { // the site doesn't give access to the page or the active editor, // so we need to reach IWorkbenchWindow window = PlatformUI.getWorkbench() .getActiveWorkbenchWindow(); if (window != null) { IWorkbenchPage page = window.getActivePage(); if (page != null) { IEditorPart editor = page == null ? null : page .getActiveEditor(); if (editor != null) { String editorId = editor.getSite().getId(); if (editorId != null) { try { page.openEditor(editor .getEditorInput(), editorId, true, IWorkbenchPage.MATCH_NONE); } catch (PartInitException e) { DialogUtil.openError(page.getWorkbenchWindow() .getShell(), WorkbenchMessages.Error, e .getMessage(), e); } } } } } } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d7b403067b8cbc3a38f2a529e733a1177d5d1030/SystemMenuNewEditor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/SystemMenuNewEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
202,
202,
430,
261,
2680,
480,
446,
13,
288,
1082,
202,
759,
326,
2834,
3302,
1404,
8492,
2006,
358,
326,
1363,
578,
326,
2695,
4858,
16,
1082,
202,
759,
1427,
732,
1608,
358,
9287,
1082,
202,
45,
2421,
22144,
3829,
2742,
273,
11810,
5370,
18,
588,
2421,
22144,
1435,
6862,
202,
18,
588,
3896,
2421,
22144,
3829,
5621,
1082,
202,
430,
261,
5668,
480,
446,
13,
288,
9506,
202,
45,
2421,
22144,
1964,
1363,
273,
2742,
18,
588,
3896,
1964,
5621,
9506,
202,
430,
261,
2433,
480,
446,
13,
288,
6862,
202,
45,
6946,
1988,
4858,
273,
1363,
422,
446,
692,
446,
294,
1363,
6862,
1082,
202,
18,
588,
3896,
6946,
5621,
6862,
202,
430,
261,
9177,
480,
446,
13,
288,
25083,
202,
780,
4858,
548,
273,
4858,
18,
588,
4956,
7675,
26321,
5621,
25083,
202,
430,
261,
9177,
548,
480,
446,
13,
288,
6862,
1082,
202,
698,
288,
6862,
9506,
202,
2433,
18,
3190,
6946,
12,
9177,
6862,
25083,
202,
18,
588,
6946,
1210,
9334,
4858,
548,
16,
638,
16,
6862,
25083,
202,
45,
2421,
22144,
1964,
18,
11793,
67,
9826,
1769,
6862,
1082,
202,
97,
1044,
261,
1988,
2570,
503,
425,
13,
288,
6862,
9506,
202,
6353,
1304,
18,
3190,
668,
12,
2433,
18,
588,
2421,
22144,
3829,
1435,
6862,
25083,
202,
18,
588,
13220,
9334,
4147,
22144,
5058,
18,
668,
16,
425,
6862,
25083,
202,
18,
24906,
9334,
425,
1769,
6862,
1082,
202,
97,
25083,
202,
97,
6862,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
202,
202,
430,
261,
2680,
480,
446,
13,
288,
1082,
202,
759,
326,
2834,
3302,
1404,
8492,
2006,
358,
326,
1363,
578,
326,
2695,
4858,
16,
1082,
202,
759,
1427,
732,
1608,
358,
9287,
1082,
202,
45,
2421,
22144,
3829,
2742,
273,
11810,
5370,
18,
588,
2421,
22144,
1435,
6862,
202,
18,
588,
3896,
2421,
22144,
3829,
5621,
1082,
202,
430,
261,
5668,
480,
446,
13,
288,
9506,
202,
45,
2421,
22144,
1964,
1363,
273,
2742,
18,
588,
3896,
1964,
5621,
9506,
202,
430,
261,
2433,
480,
446,
13,
288,
6862,
202,
45,
6946,
1988,
4858,
273,
1363,
422,
446,
692,
446,
294,
1363,
6862,
1082,
202,
18,
588,
3896,
6946,
5621,
6862,
2
] |
else assertEquals("", rs.getObject(1));
|
} else { if (values[j] == null) { assertEquals(null, rs.getObject(1)); } else { assertEquals("", rs.getString(1)); } }
|
public void testNullLengthStrings0001() throws Exception { String types[] = { "VARCHAR(50)", "TEXT", "VARCHAR(350)", "NVARCHAR(50)", "NTEXT", }; String values[] = { null, "", " ", "x" }; Statement stmt = con.createStatement(); boolean tds70orLater = props.getProperty("TDS")==null || props.getProperty("TDS").charAt(0)>='7'; int typeCnt = tds70orLater ? types.length : 2; for (int i=0; i<typeCnt; i++) { assertTrue(stmt.executeUpdate("CREATE TABLE #SAfe0001 (val "+types[i]+" NULL)")==0); for (int j=0; j<values.length; j++) { String insQuery = values[j]==null ? "INSERT INTO #SAfe0001 VALUES (NULL)" : "INSERT INTO #SAfe0001 VALUES ('"+values[j]+"')"; assertTrue(stmt.executeUpdate(insQuery)==1); ResultSet rs = stmt.executeQuery("SELECT val FROM #SAfe0001"); assertTrue(rs.next()); if (tds70orLater || !" ".equals(values[j])) assertEquals(values[j], rs.getString(1)); else assertEquals("", rs.getObject(1)); assertTrue(!rs.next()); assertTrue(stmt.executeUpdate("TRUNCATE TABLE #SAfe0001")==0); } assertTrue(stmt.executeUpdate("DROP TABLE #SAfe0001")==0); } }
|
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/ba8dbcfb4c76f4e59cc1c80c3e20bdd3252ec4c4/SAfeTest.java/buggy/trunk/jtds/src/test/net/sourceforge/jtds/test/SAfeTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2041,
1782,
7957,
13304,
1435,
1216,
1185,
288,
3639,
514,
1953,
8526,
273,
288,
5411,
315,
7716,
7305,
12,
3361,
2225,
16,
5411,
315,
5151,
3113,
5411,
315,
7716,
7305,
12,
23,
3361,
2225,
16,
5411,
315,
50,
7716,
7305,
12,
3361,
2225,
16,
5411,
315,
50,
5151,
3113,
3639,
289,
31,
3639,
514,
924,
8526,
273,
288,
5411,
446,
16,
5411,
23453,
5411,
315,
3104,
5411,
315,
92,
6,
3639,
289,
31,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
1250,
268,
2377,
7301,
280,
20607,
273,
3458,
18,
588,
1396,
2932,
56,
3948,
7923,
631,
2011,
1171,
9079,
747,
3458,
18,
588,
1396,
2932,
56,
3948,
20387,
3001,
861,
12,
20,
13,
34,
2218,
27,
13506,
3639,
509,
618,
11750,
273,
268,
2377,
7301,
280,
20607,
692,
1953,
18,
2469,
294,
576,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
723,
11750,
31,
277,
27245,
288,
5411,
1815,
5510,
12,
10589,
18,
8837,
1891,
2932,
9344,
7567,
468,
5233,
3030,
13304,
261,
1125,
13773,
2352,
63,
77,
3737,
6,
3206,
2225,
13,
631,
20,
1769,
5411,
364,
261,
474,
525,
33,
20,
31,
525,
32,
2372,
18,
2469,
31,
525,
27245,
288,
7734,
514,
2763,
1138,
273,
924,
63,
78,
65,
631,
2011,
692,
21394,
315,
11356,
12421,
468,
5233,
3030,
13304,
13477,
261,
8560,
2225,
294,
21394,
315,
11356,
12421,
468,
5233,
3030,
13304,
13477,
261,
4970,
15,
2372,
63,
78,
3737,
5187,
2225,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2041,
1782,
7957,
13304,
1435,
1216,
1185,
288,
3639,
514,
1953,
8526,
273,
288,
5411,
315,
7716,
7305,
12,
3361,
2225,
16,
5411,
315,
5151,
3113,
5411,
315,
7716,
7305,
12,
23,
3361,
2225,
16,
5411,
315,
50,
7716,
7305,
12,
3361,
2225,
16,
5411,
315,
50,
5151,
3113,
3639,
289,
31,
3639,
514,
924,
8526,
273,
288,
5411,
446,
16,
5411,
23453,
5411,
315,
3104,
5411,
315,
92,
6,
3639,
289,
31,
3639,
8056,
3480,
273,
356,
18,
2640,
3406,
5621,
3639,
1250,
268,
2377,
7301,
280,
20607,
273,
3458,
18,
588,
1396,
2932,
56,
3948,
7923,
631,
2011,
1171,
9079,
747,
3458,
18,
588,
1396,
2932,
56,
3948,
20387,
3001,
861,
12,
20,
2
] |
InstanceField instanceField = new InstanceField(classDefiningField.getClassName(), fieldName, fieldSig); if (assignableFieldSet.contains(instanceField)) { Set<InstanceField> assignedFieldSetForMethod = getAssignedFieldSetForMethod(method); assignedFieldSetForMethod.add(instanceField);
|
if (classDefiningField != null) { InstanceField instanceField = new InstanceField(classDefiningField.getClassName(), fieldName, fieldSig); if (assignableFieldSet.contains(instanceField)) { Set<InstanceField> assignedFieldSetForMethod = getAssignedFieldSetForMethod(method); assignedFieldSetForMethod.add(instanceField); }
|
private void scanMethod(Method method, Set<InstanceField> assignableFieldSet) throws ClassNotFoundException { MethodGen methodGen = classContext.getMethodGen(method); InstructionList il = methodGen.getInstructionList(); InstructionHandle handle = il.getStart(); ConstantPoolGen cpg = methodGen.getConstantPool(); while (handle != null) { Instruction ins = handle.getInstruction(); short opcode = ins.getOpcode(); if (opcode == Constants.PUTFIELD) { PUTFIELD putfield = (PUTFIELD) ins; String className = putfield.getClassName(cpg); String fieldName = putfield.getFieldName(cpg); String fieldSig = putfield.getSignature(cpg); JavaClass classDefiningField = Lookup.findClassDefiningField(className, fieldName, fieldSig); InstanceField instanceField = new InstanceField(classDefiningField.getClassName(), fieldName, fieldSig); if (assignableFieldSet.contains(instanceField)) { Set<InstanceField> assignedFieldSetForMethod = getAssignedFieldSetForMethod(method); assignedFieldSetForMethod.add(instanceField); } } handle = handle.getNext(); } }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/ec5578a1f192ed74adb89f1798d3ea23bfea1b3c/AssignedFieldMap.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/AssignedFieldMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4135,
1305,
12,
1305,
707,
16,
1000,
32,
1442,
974,
34,
29486,
974,
694,
13,
1216,
10403,
288,
202,
202,
1305,
7642,
707,
7642,
273,
667,
1042,
18,
588,
1305,
7642,
12,
2039,
1769,
202,
202,
11983,
682,
14254,
273,
707,
7642,
18,
588,
11983,
682,
5621,
202,
202,
11983,
3259,
1640,
273,
14254,
18,
588,
1685,
5621,
202,
202,
6902,
2864,
7642,
3283,
75,
273,
707,
7642,
18,
588,
6902,
2864,
5621,
202,
202,
17523,
261,
4110,
480,
446,
13,
288,
1082,
202,
11983,
2763,
273,
1640,
18,
588,
11983,
5621,
1082,
202,
6620,
11396,
273,
2763,
18,
588,
22808,
5621,
1082,
202,
430,
261,
556,
710,
422,
5245,
18,
4762,
6776,
13,
288,
9506,
202,
4762,
6776,
1378,
1518,
273,
261,
4762,
6776,
13,
2763,
31,
9506,
202,
780,
2658,
273,
1378,
1518,
18,
588,
3834,
12,
4057,
75,
1769,
9506,
202,
780,
4289,
273,
1378,
1518,
18,
588,
7287,
12,
4057,
75,
1769,
9506,
202,
780,
652,
8267,
273,
1378,
1518,
18,
588,
5374,
12,
4057,
75,
1769,
9506,
202,
5852,
797,
667,
6443,
310,
974,
273,
8834,
18,
4720,
797,
6443,
310,
974,
12,
12434,
16,
4289,
16,
652,
8267,
1769,
9506,
202,
1442,
974,
791,
974,
273,
394,
5180,
974,
12,
1106,
6443,
310,
974,
18,
588,
3834,
9334,
4289,
16,
652,
8267,
1769,
9506,
202,
430,
261,
6145,
429,
974,
694,
18,
12298,
12,
1336,
974,
3719,
288,
6862,
202,
694,
32,
1442,
974,
34,
6958,
974,
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,
4135,
1305,
12,
1305,
707,
16,
1000,
32,
1442,
974,
34,
29486,
974,
694,
13,
1216,
10403,
288,
202,
202,
1305,
7642,
707,
7642,
273,
667,
1042,
18,
588,
1305,
7642,
12,
2039,
1769,
202,
202,
11983,
682,
14254,
273,
707,
7642,
18,
588,
11983,
682,
5621,
202,
202,
11983,
3259,
1640,
273,
14254,
18,
588,
1685,
5621,
202,
202,
6902,
2864,
7642,
3283,
75,
273,
707,
7642,
18,
588,
6902,
2864,
5621,
202,
202,
17523,
261,
4110,
480,
446,
13,
288,
1082,
202,
11983,
2763,
273,
1640,
18,
588,
11983,
5621,
1082,
202,
6620,
11396,
273,
2763,
18,
588,
22808,
5621,
1082,
202,
430,
261,
556,
710,
422,
5245,
18,
4762,
6776,
13,
288,
2
] |
eDynamicUnset( eFeature );
|
super.eUnset( featureID );
|
public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.ROTATION3_D__ANGLES : getAngles( ).clear( ); return; } eDynamicUnset( eFeature ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/Rotation3DImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/Rotation3DImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
1457,
56,
2689,
23,
67,
40,
972,
3388,
11386,
294,
9506,
202,
588,
22757,
1040,
12,
262,
18,
8507,
12,
11272,
9506,
202,
2463,
31,
202,
202,
97,
202,
202,
73,
9791,
13250,
12,
425,
4595,
11272,
202,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
1457,
56,
2689,
23,
67,
40,
972,
3388,
11386,
294,
9506,
202,
588,
22757,
1040,
12,
262,
18,
8507,
12,
11272,
9506,
202,
2463,
31,
202,
202,
97,
202,
202,
73,
9791,
13250,
12,
425,
4595,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (changeListeners == listener) { changeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (changeListeners instanceof Collection) { Collection listenerList = (Collection) changeListeners; listenerList.remove(listener); if (listenerList.isEmpty()) { changeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } } }
|
removeListener(ChangeEvent.TYPE, listener);
|
public synchronized void removeChangeListener(IChangeListener listener) { if (changeListeners == listener) { changeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } return; } if (changeListeners instanceof Collection) { Collection listenerList = (Collection) changeListeners; listenerList.remove(listener); if (listenerList.isEmpty()) { changeListeners = null; if (!hasListeners()) { lastListenerRemoved(); } } } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6aecdb31231a8602dbf72944625703c440949c78/AbstractObservable.java/buggy/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/AbstractObservable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1206,
15744,
12,
45,
15744,
2991,
13,
288,
202,
202,
430,
261,
3427,
5583,
422,
2991,
13,
288,
1082,
202,
3427,
5583,
273,
446,
31,
1082,
202,
430,
16051,
5332,
5583,
10756,
288,
9506,
202,
2722,
2223,
10026,
5621,
1082,
202,
97,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
3427,
5583,
1276,
2200,
13,
288,
1082,
202,
2532,
2991,
682,
273,
261,
2532,
13,
2549,
5583,
31,
1082,
202,
12757,
682,
18,
4479,
12,
12757,
1769,
1082,
202,
430,
261,
12757,
682,
18,
291,
1921,
10756,
288,
9506,
202,
3427,
5583,
273,
446,
31,
9506,
202,
430,
16051,
5332,
5583,
10756,
288,
6862,
202,
2722,
2223,
10026,
5621,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1206,
15744,
12,
45,
15744,
2991,
13,
288,
202,
202,
430,
261,
3427,
5583,
422,
2991,
13,
288,
1082,
202,
3427,
5583,
273,
446,
31,
1082,
202,
430,
16051,
5332,
5583,
10756,
288,
9506,
202,
2722,
2223,
10026,
5621,
1082,
202,
97,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
3427,
5583,
1276,
2200,
13,
288,
1082,
202,
2532,
2991,
682,
273,
261,
2532,
13,
2549,
5583,
31,
1082,
202,
12757,
682,
18,
4479,
12,
12757,
1769,
1082,
202,
430,
261,
12757,
682,
18,
291,
1921,
10756,
288,
9506,
202,
3427,
5583,
273,
446,
31,
9506,
202,
430,
16051,
5332,
5583,
10756,
288,
6862,
202,
2722,
2223,
10026,
5621,
9506,
202,
2
] |
InputHandler handler = (InputHandler) getContainer().lookup( InputHandler.ROLE ); String inputVersion = handler.readLine();
|
String inputVersion = inputHandler.readLine();
|
private void transformPomToReleaseVersionPom() throws MojoExecutionException { if ( !isSnapshot( model.getVersion() ) ) { throw new MojoExecutionException( "This project isn't a snapshot (" + model.getVersion() + ")." ); } //Rewrite project version projectVersion = model.getVersion().substring( 0, model.getVersion().length() - SNAPSHOT.length() ); try { getLog().info( "What is the new version? [" + projectVersion + "]" ); InputHandler handler = (InputHandler) getContainer().lookup( InputHandler.ROLE ); String inputVersion = handler.readLine(); if ( !StringUtils.isEmpty( inputVersion ) ) { projectVersion = inputVersion; } } catch ( Exception e ) { throw new MojoExecutionException( "Can't read user input.", e ); } model.setVersion( projectVersion ); currentTag = model.getScm().getTag(); currentScmConnection = model.getScm().getConnection(); currentScmDeveloperConnection = model.getScm().getDeveloperConnection(); if ( model.getScm() != null ) { model.getScm().setTag( getTagLabel() ); model.getScm().setConnection( rewriteScmConnection( model.getScm().getConnection(), getTagLabel() ) ); model.getScm().setDeveloperConnection( rewriteScmConnection( model.getScm().getDeveloperConnection(), getTagLabel() ) ); } try { Properties releaseProperties = new Properties(); releaseProperties.setProperty( "version", projectVersion ); releaseProperties.setProperty( USERNAME, username ); releaseProperties.setProperty( TAG, getTagLabel() ); releaseProperties.setProperty( SCM_URL, urlScm ); FileOutputStream os = new FileOutputStream( new File( project.getFile().getParentFile(), RELEASE_PROPS ) ); releaseProperties.store( os, "maven release plugin info" ); os.close(); } catch ( IOException e ) { throw new MojoExecutionException( "Cannote write release-version file.", e ); } //Rewrite parent version if ( project.hasParent() ) { if ( isSnapshot( project.getParentArtifact().getBaseVersion() ) ) { model.getParent().setVersion( project.getParentArtifact().getVersion() ); } } //Rewrite dependencies version for ( Iterator i = project.getArtifacts().iterator(); i.hasNext(); ) { Artifact artifact = (Artifact) i.next(); if ( isSnapshot( artifact.getBaseVersion() ) ) { for ( Iterator j = model.getDependencies().iterator(); j.hasNext(); ) { Dependency dependency = (Dependency) j.next(); if ( artifact.getGroupId().equals( dependency.getGroupId() ) && artifact.getArtifactId().equals( dependency.getArtifactId() ) && artifact.getBaseVersion().equals( dependency.getVersion() ) && artifact.getType().equals( dependency.getType() ) ) { dependency.setVersion( artifact.getVersion() ); } } } } //Rewrite plugins version for ( Iterator i = project.getPluginArtifacts().iterator(); i.hasNext(); ) { Artifact artifact = (Artifact) i.next(); if ( isSnapshot( artifact.getBaseVersion() ) ) { for ( Iterator j = model.getBuild().getPlugins().iterator(); j.hasNext(); ) { Plugin plugin = (Plugin) j.next(); if ( artifact.getGroupId().equals( plugin.getGroupId() ) && artifact.getArtifactId().equals( plugin.getArtifactId() ) ) { plugin.setGroupId( artifact.getGroupId() ); plugin.setVersion( artifact.getVersion() ); } } } } try { PomTransformer transformer = new VersionTransformer(); transformer.setOutputFile( project.getFile() ); transformer.setProject( project.getFile() ); transformer.setUpdatedModel( model ); transformer.transformNodes(); transformer.write(); } catch ( Exception e ) { throw new MojoExecutionException( "Can't transform pom to its release version form.", e ); } }
|
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/701ef520a30c7b30dcdf2e4a4f06548cc06fbf0b/PrepareReleaseMojo.java/clean/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugin/release/PrepareReleaseMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2510,
52,
362,
774,
7391,
1444,
52,
362,
1435,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
291,
4568,
12,
938,
18,
588,
1444,
1435,
262,
262,
3639,
288,
5411,
604,
394,
18780,
12,
315,
2503,
1984,
5177,
1404,
279,
4439,
7566,
397,
938,
18,
588,
1444,
1435,
397,
9369,
1199,
11272,
3639,
289,
3639,
368,
19618,
1984,
1177,
3639,
1984,
1444,
273,
938,
18,
588,
1444,
7675,
28023,
12,
374,
16,
938,
18,
588,
1444,
7675,
2469,
1435,
300,
14204,
31667,
18,
2469,
1435,
11272,
3639,
775,
3639,
288,
5411,
9189,
7675,
1376,
12,
315,
23801,
353,
326,
394,
1177,
35,
8247,
397,
1984,
1444,
397,
9870,
11272,
5411,
2741,
1503,
1838,
273,
261,
1210,
1503,
13,
9272,
7675,
8664,
12,
2741,
1503,
18,
16256,
11272,
5411,
514,
810,
1444,
273,
1838,
18,
896,
1670,
5621,
5411,
309,
261,
401,
780,
1989,
18,
291,
1921,
12,
810,
1444,
262,
262,
5411,
288,
7734,
1984,
1444,
273,
810,
1444,
31,
5411,
289,
3639,
289,
3639,
1044,
261,
1185,
425,
262,
3639,
288,
5411,
604,
394,
18780,
12,
315,
2568,
1404,
855,
729,
810,
1199,
16,
425,
11272,
3639,
289,
3639,
938,
18,
542,
1444,
12,
1984,
1444,
11272,
3639,
783,
1805,
273,
938,
18,
588,
1541,
81,
7675,
588,
1805,
5621,
3639,
783,
1541,
81,
1952,
273,
938,
18,
588,
1541,
81,
7675,
588,
1952,
5621,
3639,
783,
1541,
81,
28145,
1952,
273,
938,
18,
588,
1541,
81,
7675,
588,
28145,
1952,
5621,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2510,
52,
362,
774,
7391,
1444,
52,
362,
1435,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
291,
4568,
12,
938,
18,
588,
1444,
1435,
262,
262,
3639,
288,
5411,
604,
394,
18780,
12,
315,
2503,
1984,
5177,
1404,
279,
4439,
7566,
397,
938,
18,
588,
1444,
1435,
397,
9369,
1199,
11272,
3639,
289,
3639,
368,
19618,
1984,
1177,
3639,
1984,
1444,
273,
938,
18,
588,
1444,
7675,
28023,
12,
374,
16,
938,
18,
588,
1444,
7675,
2469,
1435,
300,
14204,
31667,
18,
2469,
1435,
11272,
3639,
775,
3639,
288,
5411,
9189,
7675,
1376,
12,
315,
23801,
353,
326,
394,
1177,
35,
8247,
397,
1984,
1444,
397,
9870,
11272,
5411,
2741,
1503,
1838,
273,
261,
2
] |
return r_declaration;
|
return r_definition;
|
public int getRoleForName(IASTName name) { if( name == this.n ) return r_declaration; return r_unclear; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d2e2b4f4b171abbdb164530b7340a6b4bd968d19/CPPASTCompositeTypeSpecifier.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTCompositeTypeSpecifier.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
15673,
1290,
461,
12,
45,
9053,
461,
508,
13,
288,
202,
202,
430,
12,
508,
422,
333,
18,
82,
262,
1082,
202,
2463,
436,
67,
22448,
31,
202,
202,
2463,
436,
67,
551,
298,
297,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
15673,
1290,
461,
12,
45,
9053,
461,
508,
13,
288,
202,
202,
430,
12,
508,
422,
333,
18,
82,
262,
1082,
202,
2463,
436,
67,
22448,
31,
202,
202,
2463,
436,
67,
551,
298,
297,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final List vars2 = new ArrayList(elements2.length); for(int i = 0; i < elements2.length; i++){ if(elements2[i] instanceof PsiLocalVariable){ vars2.add(elements2[i]);
|
final List<PsiLocalVariable> vars2 = new ArrayList<PsiLocalVariable>(elements2.length); for(PsiElement anElement : elements2){ if(anElement instanceof PsiLocalVariable){ vars2.add((PsiLocalVariable) anElement);
|
private static boolean declarationStatementsAreEquivalent(PsiDeclarationStatement statement1, PsiDeclarationStatement statement2){ final PsiElement[] elements1 = statement1.getDeclaredElements(); final List vars1 = new ArrayList(elements1.length); for(int i = 0; i < elements1.length; i++){ if(elements1[i] instanceof PsiLocalVariable){ vars1.add(elements1[i]); } } final PsiElement[] elements2 = statement2.getDeclaredElements(); final List vars2 = new ArrayList(elements2.length); for(int i = 0; i < elements2.length; i++){ if(elements2[i] instanceof PsiLocalVariable){ vars2.add(elements2[i]); } } if(vars1.size() != vars2.size()){ return false; } for(int i = 0; i < vars1.size(); i++){ final PsiLocalVariable var1 = (PsiLocalVariable) vars1.get(i); final PsiLocalVariable var2 = (PsiLocalVariable) vars2.get(i); if(localVariableAreEquivalent(var1, var2)){ return false; } } return true; }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/e4329a48065fe37b7b5d3d9883a02a38ec8f42fa/EquivalenceChecker.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/psiutils/EquivalenceChecker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
8266,
14663,
4704,
22606,
12,
52,
7722,
6094,
3406,
3021,
21,
16,
4766,
17311,
453,
7722,
6094,
3406,
3021,
22,
15329,
3639,
727,
453,
7722,
1046,
8526,
2186,
21,
273,
3021,
21,
18,
588,
18888,
3471,
5621,
3639,
727,
987,
4153,
21,
273,
394,
2407,
12,
6274,
21,
18,
2469,
1769,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
2186,
21,
18,
2469,
31,
277,
27245,
95,
5411,
309,
12,
6274,
21,
63,
77,
65,
1276,
453,
7722,
2042,
3092,
15329,
7734,
4153,
21,
18,
1289,
12,
6274,
21,
63,
77,
19226,
5411,
289,
3639,
289,
3639,
727,
453,
7722,
1046,
8526,
2186,
22,
273,
3021,
22,
18,
588,
18888,
3471,
5621,
3639,
727,
987,
4153,
22,
273,
394,
2407,
12,
6274,
22,
18,
2469,
1769,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
2186,
22,
18,
2469,
31,
277,
27245,
95,
5411,
309,
12,
6274,
22,
63,
77,
65,
1276,
453,
7722,
2042,
3092,
15329,
7734,
4153,
22,
18,
1289,
12,
6274,
22,
63,
77,
19226,
5411,
289,
3639,
289,
3639,
309,
12,
4699,
21,
18,
1467,
1435,
480,
4153,
22,
18,
1467,
10756,
95,
5411,
327,
629,
31,
3639,
289,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
4153,
21,
18,
1467,
5621,
277,
27245,
95,
5411,
727,
453,
7722,
2042,
3092,
569,
21,
273,
261,
52,
7722,
2042,
3092,
13,
4153,
21,
18,
588,
12,
77,
1769,
5411,
727,
453,
7722,
2042,
3092,
569,
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,
1250,
8266,
14663,
4704,
22606,
12,
52,
7722,
6094,
3406,
3021,
21,
16,
4766,
17311,
453,
7722,
6094,
3406,
3021,
22,
15329,
3639,
727,
453,
7722,
1046,
8526,
2186,
21,
273,
3021,
21,
18,
588,
18888,
3471,
5621,
3639,
727,
987,
4153,
21,
273,
394,
2407,
12,
6274,
21,
18,
2469,
1769,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
2186,
21,
18,
2469,
31,
277,
27245,
95,
5411,
309,
12,
6274,
21,
63,
77,
65,
1276,
453,
7722,
2042,
3092,
15329,
7734,
4153,
21,
18,
1289,
12,
6274,
21,
63,
77,
19226,
5411,
289,
3639,
289,
3639,
727,
453,
7722,
1046,
8526,
2186,
22,
273,
3021,
22,
18,
588,
18888,
3471,
5621,
3639,
2
] |
} else {
|
} else {
|
public void mouseReleased(MouseEvent e) { if (e.getComponent() == this && (e.getModifiers() & MouseEvent.BUTTON1_MASK) != 0) { int x = e.getX(); int y = e.getY(); Font font = fileWindow.textArea.getFont(); FontMetrics metrics = getFontMetrics(font); int h = metrics.getHeight(); int line = y/h; if (line == pressLine) { fileWindow.toggleBreakPoint(line + 1); } else { pressLine = -1; } } }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/e4c74a91b5c4165a9c90cde4d7b2ddd72e81af8d/SwingGui.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
288,
3639,
309,
261,
73,
18,
588,
1841,
1435,
422,
333,
597,
1850,
261,
73,
18,
588,
11948,
1435,
473,
17013,
1133,
18,
20068,
21,
67,
11704,
13,
480,
374,
13,
3639,
288,
5411,
509,
619,
273,
425,
18,
588,
60,
5621,
5411,
509,
677,
273,
425,
18,
588,
61,
5621,
5411,
10063,
3512,
273,
585,
3829,
18,
955,
5484,
18,
588,
5711,
5621,
5411,
10063,
5653,
4309,
273,
18776,
5653,
12,
5776,
1769,
5411,
509,
366,
273,
4309,
18,
588,
2686,
5621,
5411,
509,
980,
273,
677,
19,
76,
31,
5411,
309,
261,
1369,
422,
11779,
1670,
13,
288,
7734,
585,
3829,
18,
14401,
7634,
2148,
12,
1369,
397,
404,
1769,
5411,
289,
5411,
469,
288,
7734,
11779,
1670,
273,
300,
21,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
288,
3639,
309,
261,
73,
18,
588,
1841,
1435,
422,
333,
597,
1850,
261,
73,
18,
588,
11948,
1435,
473,
17013,
1133,
18,
20068,
21,
67,
11704,
13,
480,
374,
13,
3639,
288,
5411,
509,
619,
273,
425,
18,
588,
60,
5621,
5411,
509,
677,
273,
425,
18,
588,
61,
5621,
5411,
10063,
3512,
273,
585,
3829,
18,
955,
5484,
18,
588,
5711,
5621,
5411,
10063,
5653,
4309,
273,
18776,
5653,
12,
5776,
1769,
5411,
509,
366,
273,
4309,
18,
588,
2686,
5621,
5411,
509,
980,
273,
677,
19,
76,
31,
5411,
309,
261,
1369,
422,
11779,
1670,
13,
288,
7734,
585,
3829,
18,
14401,
7634,
2148,
12,
1369,
2
] |
item.addColumnBinding( binding2 );
|
item.addDataBinding( binding2 );
|
public void testAddFunction( ) throws SemanticException, ScriptException { TableHandle tableHandle = factory.newTableItem( "table", 3 );//$NON-NLS-1$ designHandle.getBody( ).add( tableHandle ); IDataBinding binding = StructureScriptAPIFactory.createComputedColumn( ); binding.setExpression( "expression" );//$NON-NLS-1$ binding.setName( "name" );//$NON-NLS-1$ IListing item = new Listing( tableHandle ); item.addColumnBinding( binding ); IDataBinding binding2 = StructureScriptAPIFactory .createComputedColumn( ); try { item.addColumnBinding( binding2 ); fail( ); } catch ( ScriptException e ) { // We want an exception here } RowHandle rowHandle = (RowHandle) tableHandle.getFooter( ) .getContents( ).get( 0 ); IRow row = new Row( rowHandle ); IHighLightRule highlight = StructureScriptAPIFactory .createHighLightRule( ); row.addHighLightRule( highlight ); IHideRule hideRule = StructureScriptAPIFactory.createHideRule( ); item.addHideRule( hideRule ); IFilterCondition filter = StructureScriptAPIFactory .createFilterCondition( ); try { item.addFilterCondition( filter ); fail( ); } catch ( ScriptException e ) { // We want an exception here } filter.setExpr( "expr" );//$NON-NLS-1$ item.addFilterCondition( filter ); ISortCondition sort = StructureScriptAPIFactory.createSortKey( ); try { item.addSortCondition( sort ); fail( ); } catch ( ScriptException e ) { // We want an exception here } sort.setKey( "key" );//$NON-NLS-1$ item.addSortCondition( sort ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/768d9097ee2effb2849406e4d7d16073dacd37b6/ElementTest.java/buggy/engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/api/script/element/ElementTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
986,
2083,
12,
262,
1216,
24747,
503,
16,
7739,
503,
202,
95,
202,
202,
1388,
3259,
1014,
3259,
273,
3272,
18,
2704,
1388,
1180,
12,
315,
2121,
3113,
890,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
16934,
3259,
18,
588,
2250,
12,
262,
18,
1289,
12,
1014,
3259,
11272,
202,
202,
734,
396,
5250,
5085,
273,
13348,
3651,
2557,
1733,
18,
2640,
17934,
1494,
12,
11272,
202,
202,
7374,
18,
542,
2300,
12,
315,
8692,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
7374,
18,
542,
461,
12,
315,
529,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
45,
19081,
761,
273,
394,
987,
310,
12,
1014,
3259,
11272,
202,
202,
1726,
18,
1289,
1494,
5250,
12,
5085,
11272,
202,
202,
734,
396,
5250,
5085,
22,
273,
13348,
3651,
2557,
1733,
9506,
202,
18,
2640,
17934,
1494,
12,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
1726,
18,
1289,
1494,
5250,
12,
5085,
22,
11272,
1082,
202,
6870,
12,
11272,
202,
202,
97,
202,
202,
14683,
261,
7739,
503,
425,
262,
202,
202,
95,
1082,
202,
759,
1660,
2545,
392,
1520,
2674,
202,
202,
97,
202,
202,
1999,
3259,
1027,
3259,
273,
261,
1999,
3259,
13,
1014,
3259,
18,
588,
13787,
12,
262,
9506,
202,
18,
588,
6323,
12,
262,
18,
588,
12,
374,
11272,
202,
202,
45,
1999,
1027,
273,
394,
6556,
12,
1027,
3259,
11272,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
986,
2083,
12,
262,
1216,
24747,
503,
16,
7739,
503,
202,
95,
202,
202,
1388,
3259,
1014,
3259,
273,
3272,
18,
2704,
1388,
1180,
12,
315,
2121,
3113,
890,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
16934,
3259,
18,
588,
2250,
12,
262,
18,
1289,
12,
1014,
3259,
11272,
202,
202,
734,
396,
5250,
5085,
273,
13348,
3651,
2557,
1733,
18,
2640,
17934,
1494,
12,
11272,
202,
202,
7374,
18,
542,
2300,
12,
315,
8692,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
7374,
18,
542,
461,
12,
315,
529,
6,
11272,
759,
8,
3993,
17,
5106,
17,
21,
8,
202,
202,
45,
19081,
761,
273,
2
] |
Date now = new Date() ; long lNow = now.getTime() ; String sNow = "" + lNow ; Cookie resCookie = new Cookie("imVisits", session.getId() + sNow) ; resCookie.setMaxAge(31500000) ; resCookie.setPath("/") ; res.addCookie(resCookie) ; revisits.setRevisitsId(session.getId()) ; revisits.setRevisitsDate(sNow) ;
|
Date now = new Date() ; long lNow = now.getTime() ; String sNow = "" + lNow ; Cookie resCookie = new Cookie("imVisits", session.getId() + sNow) ; resCookie.setMaxAge(31500000) ; resCookie.setPath("/") ; res.addCookie(resCookie) ; revisits.setRevisitsId(session.getId()) ; revisits.setRevisitsDate(sNow) ;
|
public static String getDoc (int meta_id, int parent_meta_id, HttpServletRequest req, HttpServletResponse res) throws IOException { IMCServiceInterface imcref = IMCServiceRMI.getIMCServiceInterface(req) ; String start_url = imcref.getStartUrl() ; String host = req.getHeader("host") ; String no_permission_url = Utility.getDomainPref( "no_permission_url",host ) ; String servlet_url = Utility.getDomainPref( "servlet_url",host ) ; File file_path = Utility.getDomainPrefPath( "file_path", host ) ; HttpSession session = req.getSession(true) ; Object done = session.getAttribute("logon.isDone"); // marker object imcode.server.User user = (imcode.server.User)done ;//System.out.println( "User-Agent = " + req.getHeader( "User-Agent" )); // use this for test User-Agent value for browsers if (done == null) { // Check the name and password for validity String ip = req.getRemoteAddr( ) ; user = StartDoc.ipAssignUser( ip, host ) ; // Valid login. Make a note in the session object. // session = req.getSession( true ); if ( user == null ) { session.setAttribute("login.target", HttpUtils.getRequestURL(req).toString()+"?"+req.getQueryString()); res.sendRedirect(start_url) ; return null ; } session.setAttribute( "logon.isDone", user ); // just a marker object // get type of browser String value = req.getHeader( "User-Agent" ) ; if ( value == null ) { value = "" ; } session.setAttribute("browser_id",value) ; StartDoc.incrementSessionCounter(imcref,user,req) ; } String[] emp_ary = req.getParameterValues("emp") ; if (emp_ary != null) { user.put("emphasize",emp_ary) ; } int doc_type ; DocumentRequest documentRequest ; Revisits revisits ; String referrer = req.getHeader("Referer") ; // Note, intended misspelling of "Referrer", according to the HTTP spec. Document referringDocument = null ; Perl5Util perlrx = new Perl5Util() ; if (null != referrer && perlrx.match("/meta_id=(\\d+)/",referrer)) { int referring_meta_id = Integer.parseInt(perlrx.group(1)); try { referringDocument = imcref.getDocument(referring_meta_id) ; } catch (IndexOutOfBoundsException ex) { referringDocument = null ; } } try { documentRequest = new DocumentRequest(imcref,req.getRemoteAddr(),session.getId(), user,meta_id,referringDocument) ; revisits = new Revisits() ; Cookie[] cookies = req.getCookies() ; // Find cookies and put in hash. Hashtable cookieHash = new Hashtable() ; for (int i = 0; cookies != null && i < cookies.length; ++i) { Cookie currentCookie=cookies[i] ; cookieHash.put(currentCookie.getName(), currentCookie.getValue()) ; } if (cookieHash.get("imVisits")==null) { Date now = new Date() ; long lNow = now.getTime() ; String sNow = "" + lNow ; Cookie resCookie = new Cookie("imVisits", session.getId() + sNow) ; resCookie.setMaxAge(31500000) ; resCookie.setPath("/") ; res.addCookie(resCookie) ; revisits.setRevisitsId(session.getId()) ; revisits.setRevisitsDate(sNow) ; }else{ revisits.setRevisitsId(cookieHash.get("imVisits").toString()) ; } documentRequest.setRevisits(revisits) ; doc_type = documentRequest.getDocument().getDocumentType() ; } catch (IndexOutOfBoundsException ex) { return imcref.parseDoc( null,"no_page.html",user.getLangPrefix() ) ; } // FIXME: One of the places that need fixing. Number one, we should put the no-permission-page // among the templates for the default-language. Number two, we should use just one function for // checking permissions. Number three, since the user obviously has logged in, give him the page in his own language! if ( !imcref.checkDocRights(meta_id,user ) ) { session.setAttribute("login.target", HttpUtils.getRequestURL(req).toString()+"?"+req.getQueryString()); String redirect = no_permission_url ; res.sendRedirect( redirect ) ; return null ; } Stack history = (Stack)user.get("history") ; if ( history == null ) { history = new Stack() ; user.put("history",history) ; } Integer meta_int = new Integer(meta_id) ; if ( history.empty() || !history.peek().equals(meta_int) ) { history.push(meta_int) ; } // check if external doc imcode.server.ExternalDocType ex_doc = imcref.isExternalDoc( meta_id,user ) ; String htmlStr = "" ; if( ex_doc != null ) { String paramStr = "?meta_id=" + meta_id + "&" ; paramStr += "parent_meta_id=" + parent_meta_id + "&" ; paramStr += "cookie_id=" + "1A" + "&" ; paramStr += "action=view" ; Utility.redirect( req,res,ex_doc.getCallServlet( ) + paramStr ) ; // Log to accesslog trackLog.info(documentRequest); return null ; } switch( doc_type ) { case 5: //URL-doc imcode.server.Table url_doc = imcref.isUrlDoc( meta_id,user ) ; String temp = url_doc.getString("url_ref") ; if ( temp.indexOf("://")==-1 ) { temp = "http://"+temp ; } res.sendRedirect( temp ) ; // Log to accesslog trackLog.info(documentRequest); return null ; case 6: //browser-doc String br_id = (String)session.getAttribute("browser_id") ; String sqlStr = "select top 1 to_meta_id from browser_docs join browsers on browsers.browser_id = browser_docs.browser_id where meta_id = "+meta_id+" and '"+br_id+"' like user_agent order by value desc" ; String tmp = imcref.sqlQueryStr(sqlStr) ; if ( tmp != null && (!"".equals(tmp)) ) { meta_id = Integer.parseInt(tmp) ; } Utility.redirect(req,res,"GetDoc?meta_id="+meta_id+"&parent_meta_id="+parent_meta_id) ; // Log to accesslog trackLog.info(documentRequest); return null ; case 7: //frameset-doc String html_str_temp = imcref.isFramesetDoc( meta_id,user ) ; if( html_str_temp == null ) { throw new RuntimeException("Null-frameset encountered.") ; } htmlStr = html_str_temp ; // Log to accesslog trackLog.info(documentRequest); return htmlStr ; case 8: //fileupload-doc sqlStr = "select mime from fileupload_docs where meta_id = " + meta_id ; String mimetype = imcref.sqlQueryStr( sqlStr ) ; sqlStr = "select filename from fileupload_docs where meta_id = " + meta_id ; String filename = imcref.sqlQueryStr( sqlStr ) ; BufferedInputStream fr ; try { fr = new BufferedInputStream( new FileInputStream( new File( file_path, String.valueOf( meta_id )+"_se" ) ) ) ; } catch ( IOException ex ) { String lang_prefix = user.getLangPrefix() ; htmlStr = imcref.parseDoc( null,"no_page.html",lang_prefix ) ; return htmlStr ; } int len = fr.available( ) ; ServletOutputStream out = res.getOutputStream() ; res.setContentLength( len ) ; res.setContentType( mimetype ) ; String content_disposition = "inline; filename="+filename ; res.setHeader( "Content-Disposition", content_disposition ) ; try { int bytes_read = 0 ; byte buffer[] = new byte[32768] ; while( -1 != (bytes_read = fr.read( buffer )) ) { out.write(buffer,0,bytes_read) ; } } catch ( java.net.SocketException ex ) { log.debug("Exception occured" + ex ); } fr.close() ; out.flush() ; out.close() ; // Log to accesslog trackLog.info(documentRequest); return null ; default: String externalparam = null; if (req.getParameter("externalClass") != null || req.getAttribute("externalClass") != null){ String className; if (req.getParameter("externalClass") != null){ className = req.getParameter("externalClass"); }else{ className = (String) req.getAttribute("externalClass"); } try{ Class cl = Class.forName(className); imcode.external.GetDocControllerInterface obj =(imcode.external.GetDocControllerInterface) cl.newInstance(); externalparam = obj.createString(req); }catch(Exception e) { StringWriter sw = new StringWriter() ; e.printStackTrace(new PrintWriter(sw)) ; externalparam = "<!-- Exception: "+sw.toString()+" -->" ; } } user.setTemplateGroup(-1) ; ParserParameters paramsToParser = new ParserParameters() ; paramsToParser.setTemplate(req.getParameter("template")) ; paramsToParser.setParameter(req.getParameter("param")) ; paramsToParser.setExternalParameter(externalparam) ; paramsToParser.setReadrunnerParameters(Readrunner.getReadrunnerParameters(req)) ; String result = imcref.parsePage( documentRequest,0,paramsToParser ) ; // Log to accesslog trackLog.info(documentRequest); return result ; } }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a6e12a67b6789cdc78abb66c11c98017ae883a46/GetDoc.java/clean/servlets/GetDoc.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
17999,
261,
474,
2191,
67,
350,
16,
509,
982,
67,
3901,
67,
350,
16,
9984,
1111,
16,
12446,
400,
13,
1216,
1860,
288,
202,
3445,
39,
18348,
709,
71,
1734,
273,
6246,
39,
1179,
54,
7492,
18,
588,
3445,
39,
18348,
12,
3658,
13,
274,
202,
780,
787,
67,
718,
202,
33,
709,
71,
1734,
18,
588,
1685,
1489,
1435,
274,
202,
780,
1479,
273,
1111,
18,
588,
1864,
2932,
2564,
7923,
274,
202,
780,
1158,
67,
9827,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
2135,
67,
9827,
67,
718,
3113,
2564,
262,
274,
202,
780,
8100,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
3113,
2564,
262,
274,
202,
812,
585,
67,
803,
1082,
202,
33,
13134,
18,
588,
3748,
23218,
743,
12,
315,
768,
67,
803,
3113,
1479,
262,
274,
202,
2940,
2157,
1339,
273,
1111,
18,
588,
2157,
12,
3767,
13,
274,
202,
921,
2731,
273,
1339,
18,
588,
1499,
2932,
1330,
265,
18,
291,
7387,
8863,
225,
368,
5373,
733,
202,
381,
710,
18,
3567,
18,
1299,
729,
273,
261,
381,
710,
18,
3567,
18,
1299,
13,
8734,
274,
759,
3163,
18,
659,
18,
8222,
12,
315,
1299,
17,
3630,
273,
315,
397,
1111,
18,
588,
1864,
12,
315,
1299,
17,
3630,
6,
262,
1769,
368,
999,
333,
364,
1842,
2177,
17,
3630,
460,
364,
14993,
202,
430,
261,
8734,
422,
446,
13,
288,
202,
565,
368,
2073,
326,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
17999,
261,
474,
2191,
67,
350,
16,
509,
982,
67,
3901,
67,
350,
16,
9984,
1111,
16,
12446,
400,
13,
1216,
1860,
288,
202,
3445,
39,
18348,
709,
71,
1734,
273,
6246,
39,
1179,
54,
7492,
18,
588,
3445,
39,
18348,
12,
3658,
13,
274,
202,
780,
787,
67,
718,
202,
33,
709,
71,
1734,
18,
588,
1685,
1489,
1435,
274,
202,
780,
1479,
273,
1111,
18,
588,
1864,
2932,
2564,
7923,
274,
202,
780,
1158,
67,
9827,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
2135,
67,
9827,
67,
718,
3113,
2564,
262,
274,
202,
780,
8100,
67,
718,
202,
33,
13134,
18,
588,
3748,
23218,
12,
315,
23231,
67,
718,
2
] |
int[] offsets= variablesToOffsets(variables);
|
int[] offsets= variablesToOffsets(variables, start);
|
private void plainFormat(TemplateBuffer templateBuffer) { String string= templateBuffer.getString(); TemplatePosition[] variables= templateBuffer.getVariables(); int[] offsets= variablesToOffsets(variables); string= CodeFormatterUtil.format(CodeFormatter.K_UNKNOWN, string, fInitialIndentLevel, offsets, fLineDelimiter, (Map) null); offsetsToVariables(offsets, variables); templateBuffer.setContent(string, variables); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/1c17bb015b7e3cd75b9a5ce9d66606fbb6edc3be/JavaFormatter.java/clean/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaFormatter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
7351,
1630,
12,
2283,
1892,
1542,
1892,
13,
288,
202,
202,
780,
533,
33,
1542,
1892,
18,
588,
780,
5621,
202,
202,
2283,
2555,
8526,
3152,
33,
1542,
1892,
18,
588,
6158,
5621,
202,
202,
474,
8526,
8738,
33,
3152,
774,
13830,
12,
7528,
1769,
9506,
202,
1080,
33,
3356,
5074,
1304,
18,
2139,
12,
1085,
5074,
18,
47,
67,
14737,
16,
533,
16,
284,
4435,
7790,
2355,
16,
8738,
16,
284,
1670,
12007,
16,
261,
863,
13,
446,
1769,
25083,
202,
3348,
11634,
6158,
12,
16542,
16,
3152,
1769,
202,
202,
3202,
1892,
18,
542,
1350,
12,
1080,
16,
3152,
1769,
202,
377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1152,
918,
7351,
1630,
12,
2283,
1892,
1542,
1892,
13,
288,
202,
202,
780,
533,
33,
1542,
1892,
18,
588,
780,
5621,
202,
202,
2283,
2555,
8526,
3152,
33,
1542,
1892,
18,
588,
6158,
5621,
202,
202,
474,
8526,
8738,
33,
3152,
774,
13830,
12,
7528,
1769,
9506,
202,
1080,
33,
3356,
5074,
1304,
18,
2139,
12,
1085,
5074,
18,
47,
67,
14737,
16,
533,
16,
284,
4435,
7790,
2355,
16,
8738,
16,
284,
1670,
12007,
16,
261,
863,
13,
446,
1769,
25083,
202,
3348,
11634,
6158,
12,
16542,
16,
3152,
1769,
202,
202,
3202,
1892,
18,
542,
1350,
12,
1080,
16,
3152,
1769,
202,
377,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
System.err.println("ERCoreBusinessLogic: finishInitialization");
|
log.debug("ERCoreBusinessLogic: finishInitialization");
|
public void finishInitialization() { initializeSharedData(); // Register handlers for user preferences. ERCoreUserPreferences.userPreferences().registerHandlers(); System.err.println("ERCoreBusinessLogic: finishInitialization"); }
|
50512 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50512/cf23fd9693368b4a7bbebd26d8c9bbb48694403c/ERCoreBusinessLogic.java/clean/Common/Frameworks/ERCoreBusinessLogic/Sources/er/corebusinesslogic/ERCoreBusinessLogic.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4076,
17701,
1435,
288,
3639,
4046,
7887,
751,
5621,
3639,
368,
5433,
4919,
364,
729,
12750,
18,
3639,
4232,
4670,
1299,
12377,
18,
1355,
12377,
7675,
4861,
6919,
5621,
3639,
613,
18,
4148,
2932,
654,
4670,
13423,
20556,
30,
4076,
17701,
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,
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5433,
4919,
364,
729,
12750,
18,
3639,
4232,
4670,
1299,
12377,
18,
1355,
12377,
7675,
4861,
6919,
5621,
3639,
613,
18,
4148,
2932,
654,
4670,
13423,
20556,
30,
4076,
17701,
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
] |
public String buildRightsList() { StringBuffer result = new StringBuffer(1024); // set icon and style class to use: hide inherited permissions String image = "plus.png"; String styleClass = "hide"; if (getSettings().getUserSettings().getDialogExpandInheritedPermissions() || getShowInheritedPermissions()) { // show inherited permissions if configured in settings or if the view detail was switched image = "minus.png"; styleClass = "show"; } // create headline for inherited entries result.append("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"); result.append("<tr>\n"); result.append("\t<td style=\"vertical-align: bottom; padding-bottom: 2px;\"><a href=\"javascript:toggleDetail('inheritedpermissions');\"><img src=\""); result.append(getSkinUri()); result.append("commons/"); result.append(image); result.append("\" class=\"noborder\" id=\"ic-inheritedpermissions\"></a></td>\n"); result.append("\t<td>"); result.append(dialogSubheadline(key("dialog.permission.headline.inherited"))); result.append("</td>\n"); result.append("</tr>\n"); result.append("</table>\n"); // open div that toggles visibility of inherited permissions result.append("<div class=\""); result.append(styleClass); result.append("\" id=\"inheritedpermissions\">\n"); // create detail view selector result.append("<table border=\"0\">\n<tr>\n"); result.append("\t<td>"); result.append(key("dialog.permission.viewselect")); result.append("</td>\n"); String selectedView = getSettings().getPermissionDetailView(); result.append("\t<form action=\"").append(getDialogUri()).append("\" method=\"post\" name=\"selectshortview\">\n"); result.append("\t<td>\n"); result.append("\t<input type=\"hidden\" name=\""); result.append(PARAM_VIEW); result.append("\" value=\"short\">\n"); // set parameters to show correct hidden input fields setParamAction(null); result.append(paramsAsHidden()); result.append("\t<input type=\"submit\" class=\"dialogbutton\" value=\"").append(key("button.short")).append("\""); if (!"long".equals(selectedView)) { result.append(" disabled=\"disabled\""); } result.append(">\n"); result.append("\t</td>\n"); result.append("\t</form>\n\t<form action=\"").append(getDialogUri()).append("\" method=\"post\" name=\"selectlongview\">\n"); result.append("\t<td>\n"); result.append("\t<input type=\"hidden\" name=\""); result.append(PARAM_VIEW); result.append("\" value=\"long\">\n"); result.append(paramsAsHidden()); result.append("\t<input type=\"submit\" class=\"dialogbutton\" value=\"").append(key("button.long")).append("\""); if ("long".equals(selectedView)) { result.append(" disabled=\"disabled\""); } result.append(">\n"); result.append("\t</td>\n\t</form>\n"); result.append("</tr>\n</table>\n"); // get all access control entries of the current file List allEntries = new ArrayList(); try { allEntries = getCms().getAccessControlEntries(getParamResource(), true); } catch (CmsException e) { // can usually be ignored if (LOG.isInfoEnabled()) { LOG.info(e.getLocalizedMessage()); } } // store all parent folder ids together with path in a map Map parents = new HashMap(); String path = CmsResource.getParentFolder(getParamResource()); List parentResources = new ArrayList(); try { // get all parent folders of the current file parentResources = getCms().readPath(path, CmsResourceFilter.IGNORE_EXPIRATION); } catch (CmsException e) { // can usually be ignored if (LOG.isInfoEnabled()) { LOG.info(e.getLocalizedMessage()); } } Iterator k = parentResources.iterator(); while (k.hasNext()) { // add the current folder to the map CmsResource curRes = (CmsResource)k.next(); parents.put(curRes.getResourceId(), curRes.getRootPath()); } // create new ArrayLists in which inherited and non inherited entries are stored ArrayList ownEntries = new ArrayList(0); ArrayList inheritedEntries = new ArrayList(0); for (int i=0; i<allEntries.size(); i++) { CmsAccessControlEntry curEntry = (CmsAccessControlEntry)allEntries.get(i); if (curEntry.isInherited()) { // add the entry to the inherited rights list for the "long" view if ("long".equals(getSettings().getPermissionDetailView())) { inheritedEntries.add(curEntry); } } else { // add the entry to the own rights list ownEntries.add(curEntry); } } // now create the inherited entries box result.append(dialogWhiteBox(HTML_START)); result.append(buildInheritedList(inheritedEntries, parents)); result.append(dialogWhiteBox(HTML_END)); // close div that toggles visibility of inherited permissions result.append("</div>"); // create the add user/group form result.append(buildAddForm()); // create the resource entries box result.append(buildResourceList(ownEntries)); return result.toString(); }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/332d87a4507ea84a05602410389902e16f82b5e4/CmsChacc.java/clean/src/org/opencms/workplace/commons/CmsChacc.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1361,
18464,
682,
1435,
288,
7734,
6674,
563,
273,
394,
6674,
12,
2163,
3247,
1769,
7734,
368,
444,
4126,
471,
2154,
667,
358,
999,
30,
6853,
12078,
4371,
3639,
514,
1316,
273,
315,
10103,
18,
6446,
14432,
3639,
514,
2154,
797,
273,
315,
11248,
14432,
3639,
309,
261,
588,
2628,
7675,
588,
1299,
2628,
7675,
588,
6353,
12271,
29078,
6521,
1435,
747,
7932,
543,
29078,
6521,
10756,
288,
5411,
368,
2405,
12078,
4371,
309,
4351,
316,
1947,
578,
309,
326,
1476,
7664,
1703,
31665,
5411,
1316,
273,
315,
19601,
18,
6446,
14432,
5411,
2154,
797,
273,
315,
4500,
14432,
3639,
289,
7734,
368,
752,
910,
1369,
364,
12078,
3222,
3639,
563,
18,
6923,
2932,
32,
2121,
5795,
5189,
20,
2412,
2484,
9598,
5189,
20,
2412,
2484,
14080,
5189,
20,
28219,
82,
8863,
3639,
563,
18,
6923,
2932,
32,
313,
5333,
82,
8863,
3639,
563,
18,
6923,
31458,
88,
32,
4465,
2154,
5189,
17824,
17,
7989,
30,
5469,
31,
4992,
17,
9176,
30,
576,
4430,
31,
2412,
4438,
69,
3897,
5189,
11242,
30,
14401,
6109,
2668,
6018,
329,
9612,
8284,
2412,
4438,
6081,
1705,
5189,
8863,
3639,
563,
18,
6923,
12,
588,
26827,
3006,
10663,
3639,
563,
18,
6923,
2932,
6054,
87,
4898,
1769,
3639,
563,
18,
6923,
12,
2730,
1769,
3639,
563,
18,
6923,
2932,
2412,
667,
5189,
82,
947,
1019,
2412,
612,
5189,
335,
17,
6018,
329,
9612,
2412,
4695,
69,
4695,
4465,
5333,
82,
8863,
3639,
563,
18,
6923,
31458,
88,
32,
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,
1361,
18464,
682,
1435,
288,
7734,
6674,
563,
273,
394,
6674,
12,
2163,
3247,
1769,
7734,
368,
444,
4126,
471,
2154,
667,
358,
999,
30,
6853,
12078,
4371,
3639,
514,
1316,
273,
315,
10103,
18,
6446,
14432,
3639,
514,
2154,
797,
273,
315,
11248,
14432,
3639,
309,
261,
588,
2628,
7675,
588,
1299,
2628,
7675,
588,
6353,
12271,
29078,
6521,
1435,
747,
7932,
543,
29078,
6521,
10756,
288,
5411,
368,
2405,
12078,
4371,
309,
4351,
316,
1947,
578,
309,
326,
1476,
7664,
1703,
31665,
5411,
1316,
273,
315,
19601,
18,
6446,
14432,
5411,
2154,
797,
273,
315,
4500,
14432,
3639,
289,
7734,
368,
752,
910,
1369,
364,
12078,
3222,
3639,
563,
18,
6923,
2932,
32,
2121,
2
] |
||
MethodMetaData methodMetaData2 = ReflectionMetaDataMaker.createMethodMetaData(
|
MethodMetaData methodMetaData2 = m_metaDataMaker.createMethodMetaData(
|
public void testMatchDoubleHierachicalExpression_CALL() { try { Expression root = space.createExpression("java.lang.Object+->* *..TestCase+.suite(..)", PointcutType.CALL); ClassMetaData classMetaData1 = ReflectionMetaDataMaker.createClassMetaData(ExpressionTest.class); MethodMetaData methodMetaData1 = ReflectionMetaDataMaker.createMethodMetaData( ExpressionTest.class.getDeclaredMethod("set", new Class[]{}) ); MethodMetaData methodMetaData2 = ReflectionMetaDataMaker.createMethodMetaData( ExpressionTest.class.getDeclaredMethod("get", new Class[]{}) ); MethodMetaData methodMetaData3 = ReflectionMetaDataMaker.createMethodMetaData( ExpressionTest.class.getDeclaredMethod("suite", new Class[]{}) ); assertTrue(root.match(classMetaData1)); assertFalse(root.match(classMetaData1, methodMetaData1)); assertFalse(root.match(classMetaData1, methodMetaData2)); assertTrue(root.match(classMetaData1, methodMetaData3)); } catch (Exception e) { fail(e.toString()); } }
|
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/6f8616a2dc12a90f3e05e2c8ffea567dda54b5cb/ExpressionTest.java/clean/aspectwerkz2/src/test/test/ExpressionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2060,
5265,
44,
2453,
497,
1706,
2300,
67,
13730,
1435,
288,
3639,
775,
288,
5411,
5371,
1365,
273,
3476,
18,
2640,
2300,
2932,
6290,
18,
4936,
18,
921,
15,
2122,
14,
380,
838,
4709,
2449,
15,
18,
30676,
12,
838,
2225,
16,
4686,
5150,
559,
18,
13730,
1769,
5411,
1659,
6998,
667,
6998,
21,
273,
5685,
6998,
12373,
18,
2640,
797,
6998,
12,
2300,
4709,
18,
1106,
1769,
5411,
2985,
6998,
707,
6998,
21,
273,
5685,
6998,
12373,
18,
2640,
1305,
6998,
12,
10792,
5371,
4709,
18,
1106,
18,
588,
18888,
1305,
2932,
542,
3113,
394,
1659,
8526,
2916,
13,
5411,
11272,
5411,
2985,
6998,
707,
6998,
22,
273,
312,
67,
3901,
751,
12373,
18,
2640,
1305,
6998,
12,
10792,
5371,
4709,
18,
1106,
18,
588,
18888,
1305,
2932,
588,
3113,
394,
1659,
8526,
2916,
13,
5411,
11272,
5411,
2985,
6998,
707,
6998,
23,
273,
5685,
6998,
12373,
18,
2640,
1305,
6998,
12,
10792,
5371,
4709,
18,
1106,
18,
588,
18888,
1305,
2932,
30676,
3113,
394,
1659,
8526,
2916,
13,
5411,
11272,
5411,
1815,
5510,
12,
3085,
18,
1916,
12,
1106,
6998,
21,
10019,
5411,
1815,
8381,
12,
3085,
18,
1916,
12,
1106,
6998,
21,
16,
707,
6998,
21,
10019,
5411,
1815,
8381,
12,
3085,
18,
1916,
12,
1106,
6998,
21,
16,
707,
6998,
22,
10019,
5411,
1815,
5510,
12,
3085,
18,
1916,
12,
1106,
6998,
21,
16,
707,
6998,
23,
10019,
3639,
289,
3639,
1044,
261,
503,
425,
13,
288,
5411,
2321,
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,
2060,
5265,
44,
2453,
497,
1706,
2300,
67,
13730,
1435,
288,
3639,
775,
288,
5411,
5371,
1365,
273,
3476,
18,
2640,
2300,
2932,
6290,
18,
4936,
18,
921,
15,
2122,
14,
380,
838,
4709,
2449,
15,
18,
30676,
12,
838,
2225,
16,
4686,
5150,
559,
18,
13730,
1769,
5411,
1659,
6998,
667,
6998,
21,
273,
5685,
6998,
12373,
18,
2640,
797,
6998,
12,
2300,
4709,
18,
1106,
1769,
5411,
2985,
6998,
707,
6998,
21,
273,
5685,
6998,
12373,
18,
2640,
1305,
6998,
12,
10792,
5371,
4709,
18,
1106,
18,
588,
18888,
1305,
2932,
542,
3113,
394,
1659,
8526,
2916,
13,
5411,
11272,
5411,
2985,
6998,
707,
6998,
22,
273,
312,
67,
3901,
751,
12373,
18,
2
] |
return false;
|
return graphics.drawImage(image, x, y, observer);
|
public boolean drawImage(Image image, int x, int y, ImageObserver observer) { return false; // TODO }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/a4a992c67fd99df6d351413d6d41128bb0f006a5/DebugGraphics.java/buggy/libraries/javalib/javax/swing/DebugGraphics.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
25783,
12,
2040,
1316,
16,
509,
619,
16,
509,
677,
16,
3421,
11048,
9655,
13,
225,
288,
565,
327,
17313,
18,
9446,
2040,
12,
2730,
16,
619,
16,
677,
16,
9655,
1769,
368,
2660,
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,
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660,
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
] |
presentation.enableDrag(pane); ctrl.setEnabled(false);
|
protected void onActivate() { // Update editor area state. if (editorArea.getControl() != null) { if (isEditorAreaVisible()) { // Enable the editor area now that it will be made // visible and can accept keyboard focus again. editorArea.getControl().setEnabled(true); setEditorAreaVisible(true); } else { // Disable the entire editor area so if an editor had // keyboard focus it will let it go. editorArea.getControl().setEnabled(false); setEditorAreaVisible(false); } } // Update fast views. // Make sure the control for the fastviews are create so they can // be activated. for (int i = 0; i < fastViews.size(); i++){ ViewPane pane = getPane((IViewReference)fastViews.get(i)); Control ctrl = pane.getControl(); if (ctrl == null) { pane.createControl(getClientComposite()); ctrl = pane.getControl(); } presentation.enableDrag(pane); ctrl.setEnabled(false); // Remove focus support. } setAllPinsVisible(true); presentation.activate(getClientComposite()); getClientComposite().addListener(SWT.Resize, resizeListener); if (shouldHideEditorsOnActivate) { // We do this here to ensure that createPartControl is called on the top editor // before it is hidden. See bug 20166. hideEditorArea(); shouldHideEditorsOnActivate = false; }}
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7321d09042a15935353aff2acd12ccb0f67c443c/Perspective.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Perspective.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
603,
21370,
1435,
288,
202,
759,
2315,
4858,
5091,
919,
18,
202,
430,
261,
9177,
5484,
18,
588,
3367,
1435,
480,
446,
13,
288,
202,
202,
430,
261,
291,
6946,
5484,
6207,
10756,
288,
1082,
202,
759,
9677,
326,
4858,
5091,
2037,
716,
518,
903,
506,
7165,
1082,
202,
759,
6021,
471,
848,
2791,
16263,
7155,
3382,
18,
1082,
202,
9177,
5484,
18,
588,
3367,
7675,
542,
1526,
12,
3767,
1769,
1082,
202,
542,
6946,
5484,
6207,
12,
3767,
1769,
202,
202,
97,
469,
288,
1082,
202,
759,
10639,
326,
7278,
4858,
5091,
1427,
309,
392,
4858,
9323,
1082,
202,
759,
16263,
7155,
518,
903,
2231,
518,
1960,
18,
1082,
202,
9177,
5484,
18,
588,
3367,
7675,
542,
1526,
12,
5743,
1769,
1082,
202,
542,
6946,
5484,
6207,
12,
5743,
1769,
202,
202,
97,
202,
97,
202,
759,
2315,
4797,
7361,
18,
202,
759,
4344,
3071,
326,
3325,
364,
326,
4797,
7061,
854,
752,
1427,
2898,
848,
202,
759,
506,
14892,
18,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4797,
9959,
18,
1467,
5621,
277,
27245,
95,
202,
202,
1767,
8485,
13618,
273,
1689,
8806,
12443,
45,
1767,
2404,
13,
8076,
9959,
18,
588,
12,
77,
10019,
202,
202,
3367,
6414,
273,
13618,
18,
588,
3367,
5621,
202,
202,
430,
261,
16277,
422,
446,
13,
288,
1082,
202,
29009,
18,
2640,
3367,
12,
588,
1227,
9400,
10663,
1082,
202,
16277,
273,
13618,
18,
588,
3367,
5621,
202,
202,
97,
202,
202,
10364,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
603,
21370,
1435,
288,
202,
759,
2315,
4858,
5091,
919,
18,
202,
430,
261,
9177,
5484,
18,
588,
3367,
1435,
480,
446,
13,
288,
202,
202,
430,
261,
291,
6946,
5484,
6207,
10756,
288,
1082,
202,
759,
9677,
326,
4858,
5091,
2037,
716,
518,
903,
506,
7165,
1082,
202,
759,
6021,
471,
848,
2791,
16263,
7155,
3382,
18,
1082,
202,
9177,
5484,
18,
588,
3367,
7675,
542,
1526,
12,
3767,
1769,
1082,
202,
542,
6946,
5484,
6207,
12,
3767,
1769,
202,
202,
97,
469,
288,
1082,
202,
759,
10639,
326,
7278,
4858,
5091,
1427,
309,
392,
4858,
9323,
1082,
202,
759,
16263,
7155,
518,
903,
2231,
518,
1960,
18,
1082,
202,
9177,
5484,
18,
588,
3367,
7675,
2
] |
|
gd.widthHint = 100;
|
gd.widthHint = width;
|
private void setLabelLayoutData( Control control ) { GridData gd = new GridData( GridData.VERTICAL_ALIGN_BEGINNING ); gd.widthHint = 100; control.setLayoutData( gd ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/0b50ebbca5835c8411a3f66678e1ab42f5f57335/CascadingParametersDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
16558,
3744,
751,
12,
8888,
3325,
262,
202,
95,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
7145,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
11272,
202,
202,
19016,
18,
2819,
7002,
273,
2130,
31,
202,
202,
7098,
18,
542,
3744,
751,
12,
15551,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
16558,
3744,
751,
12,
8888,
3325,
262,
202,
95,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
7145,
751,
18,
21654,
10109,
67,
26439,
67,
16061,
15870,
11272,
202,
202,
19016,
18,
2819,
7002,
273,
2130,
31,
202,
202,
7098,
18,
542,
3744,
751,
12,
15551,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
parser.setFeature ( SAXDriver.FEATURE + "namespaces", isNamespaceAware ()); parser.setFeature ( SAXDriver.FEATURE + "validation", isValidating ());
|
parser.setFeature(SAXDriver.FEATURE + "namespaces", isNamespaceAware()); parser.setFeature(SAXDriver.FEATURE + "validation", isValidating()); while (e.hasMoreElements()) { String uri = (String) e.nextElement(); Boolean value = (Boolean) flags.get(uri); parser.setFeature(uri, value.booleanValue()); }
|
public SAXParser newSAXParser () throws ParserConfigurationException, SAXException { JaxpParser jaxp = new JaxpParser (); Enumeration e = flags.keys (); XMLReader parser = jaxp.getXMLReader (); parser.setFeature ( SAXDriver.FEATURE + "namespaces", isNamespaceAware ()); parser.setFeature ( SAXDriver.FEATURE + "validation", isValidating ()); // that makes SAX2 feature flags trump JAXP while (e.hasMoreElements ()) { String uri = (String) e.nextElement (); Boolean value = (Boolean) flags.get (uri); parser.setFeature (uri, value.booleanValue ()); } return jaxp; }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/7fb7568e63c3fe14af521de4699cb37898923ca7/JAXPFactory.java/buggy/libjava/gnu/xml/aelfred2/JAXPFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10168,
2678,
30826,
2501,
2678,
1832,
565,
1216,
6783,
10737,
16,
14366,
565,
288,
202,
46,
651,
84,
2678,
202,
6482,
84,
273,
394,
25824,
84,
2678,
261,
1769,
202,
21847,
202,
73,
273,
2943,
18,
2452,
261,
1769,
202,
4201,
2514,
202,
4288,
273,
20516,
84,
18,
588,
4201,
2514,
261,
1769,
202,
4288,
18,
542,
4595,
261,
202,
202,
55,
2501,
4668,
18,
18257,
397,
315,
16078,
3113,
202,
202,
291,
3402,
10155,
1832,
1769,
202,
4288,
18,
542,
4595,
261,
202,
202,
55,
2501,
4668,
18,
18257,
397,
315,
8685,
3113,
202,
202,
26810,
1776,
1832,
1769,
202,
759,
716,
7297,
10168,
22,
2572,
2943,
433,
2801,
7431,
52,
202,
17523,
261,
73,
18,
5332,
7417,
3471,
1832,
13,
288,
202,
565,
514,
202,
1650,
273,
261,
780,
13,
425,
18,
4285,
1046,
261,
1769,
202,
565,
3411,
202,
1132,
273,
261,
5507,
13,
2943,
18,
588,
261,
1650,
1769,
202,
565,
2082,
18,
542,
4595,
261,
1650,
16,
460,
18,
6494,
620,
1832,
1769,
202,
97,
202,
2463,
20516,
84,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10168,
2678,
30826,
2501,
2678,
1832,
565,
1216,
6783,
10737,
16,
14366,
565,
288,
202,
46,
651,
84,
2678,
202,
6482,
84,
273,
394,
25824,
84,
2678,
261,
1769,
202,
21847,
202,
73,
273,
2943,
18,
2452,
261,
1769,
202,
4201,
2514,
202,
4288,
273,
20516,
84,
18,
588,
4201,
2514,
261,
1769,
202,
4288,
18,
542,
4595,
261,
202,
202,
55,
2501,
4668,
18,
18257,
397,
315,
16078,
3113,
202,
202,
291,
3402,
10155,
1832,
1769,
202,
4288,
18,
542,
4595,
261,
202,
202,
55,
2501,
4668,
18,
18257,
397,
315,
8685,
3113,
202,
202,
26810,
1776,
1832,
1769,
202,
759,
716,
7297,
10168,
22,
2572,
2943,
433,
2801,
7431,
52,
202,
17523,
261,
73,
18,
2
] |
base.getXSType() == XSTypeDecl.ANYSIMPLE_TYPE) {
|
base == SchemaGrammar.fAnySimpleType) {
|
private static boolean checkSimpleDerivation(DatatypeValidator derived, DatatypeValidator base, int block) { // 1 They are the same type definition. if (derived == base) return true; // 2 All of the following must be true: // 2.1 restriction is not in the subset, or in the {final} of its own {base type definition}; if ((block & SchemaSymbols.RESTRICTION) != 0 || (derived.getBaseValidator().getFinalSet() & SchemaSymbols.RESTRICTION) != 0) { return false; } // 2.2 One of the following must be true: // 2.2.1 D's base type definition is B. DatatypeValidator directBase = derived.getBaseValidator(); if (directBase == base) return true; // 2.2.2 D's base type definition is not the simple ur-type definition and is validly derived from B given the subset, as defined by this constraint. if (directBase.getXSType() != XSTypeDecl.ANYSIMPLE_TYPE && checkSimpleDerivation(directBase, base, block)) { return true; } // 2.2.3 D's {variety} is list or union and B is the simple ur-type definition. if ((derived instanceof ListDatatypeValidator || derived instanceof UnionDatatypeValidator) && base.getXSType() == XSTypeDecl.ANYSIMPLE_TYPE) { return true; } // 2.2.4 B's {variety} is union and D is validly derived from a type definition in B's {member type definitions} given the subset, as defined by this constraint. if (base instanceof UnionDatatypeValidator) { Vector subUnionMemberDV = ((UnionDatatypeValidator)base).getBaseValidators(); int subUnionSize = subUnionMemberDV.size(); for (int i=0; i<subUnionSize; i++) { base = (DatatypeValidator)subUnionMemberDV.elementAt(i); if (checkSimpleDerivation(derived, base, block)) return true; } } return false; }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/7d23b0f822620b832b611e0946e73bb880886a98/XSConstraints.java/buggy/src/org/apache/xerces/impl/v2/XSConstraints.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
866,
5784,
12041,
8482,
12,
20228,
5126,
10379,
16,
21168,
5126,
1026,
16,
509,
1203,
13,
288,
3639,
368,
404,
16448,
854,
326,
1967,
618,
2379,
18,
3639,
309,
261,
765,
2950,
422,
1026,
13,
5411,
327,
638,
31,
3639,
368,
576,
4826,
434,
326,
3751,
1297,
506,
638,
30,
3639,
368,
576,
18,
21,
9318,
353,
486,
316,
326,
7931,
16,
578,
316,
326,
288,
6385,
97,
434,
2097,
4953,
288,
1969,
618,
2379,
20451,
3639,
309,
14015,
2629,
473,
4611,
14821,
18,
12030,
2259,
3106,
13,
480,
374,
747,
5411,
261,
765,
2950,
18,
588,
2171,
5126,
7675,
588,
7951,
694,
1435,
473,
4611,
14821,
18,
12030,
2259,
3106,
13,
480,
374,
13,
288,
5411,
327,
629,
31,
3639,
289,
3639,
368,
576,
18,
22,
6942,
434,
326,
3751,
1297,
506,
638,
30,
3639,
368,
576,
18,
22,
18,
21,
463,
1807,
1026,
618,
2379,
353,
605,
18,
3639,
21168,
5126,
2657,
2171,
273,
10379,
18,
588,
2171,
5126,
5621,
3639,
309,
261,
7205,
2171,
422,
1026,
13,
5411,
327,
638,
31,
3639,
368,
576,
18,
22,
18,
22,
463,
1807,
1026,
618,
2379,
353,
486,
326,
4143,
8896,
17,
723,
2379,
471,
353,
923,
715,
10379,
628,
605,
864,
326,
7931,
16,
487,
2553,
635,
333,
4954,
18,
3639,
309,
261,
7205,
2171,
18,
588,
60,
55,
559,
1435,
480,
1139,
55,
559,
3456,
18,
15409,
31669,
900,
67,
2399,
597,
5411,
866,
5784,
12041,
8482,
12,
7205,
2171,
16,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1250,
866,
5784,
12041,
8482,
12,
20228,
5126,
10379,
16,
21168,
5126,
1026,
16,
509,
1203,
13,
288,
3639,
368,
404,
16448,
854,
326,
1967,
618,
2379,
18,
3639,
309,
261,
765,
2950,
422,
1026,
13,
5411,
327,
638,
31,
3639,
368,
576,
4826,
434,
326,
3751,
1297,
506,
638,
30,
3639,
368,
576,
18,
21,
9318,
353,
486,
316,
326,
7931,
16,
578,
316,
326,
288,
6385,
97,
434,
2097,
4953,
288,
1969,
618,
2379,
20451,
3639,
309,
14015,
2629,
473,
4611,
14821,
18,
12030,
2259,
3106,
13,
480,
374,
747,
5411,
261,
765,
2950,
18,
588,
2171,
5126,
7675,
588,
7951,
694,
1435,
473,
4611,
14821,
18,
12030,
2259,
3106,
13,
480,
374,
13,
2
] |
if (laf.equals("looks"))
|
if ("looks".equals(laf))
|
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf = null; if (installdata.guiPrefs.lookAndFeelMapping.containsKey(syskey)) { laf = (String) installdata.guiPrefs.lookAndFeelMapping.get(syskey); } // Let's use the system LAF // Resolve whether button icons should be used or not. boolean useButtonIcons = true; if (installdata.guiPrefs.modifier.containsKey("useButtonIcons") && ((String) installdata.guiPrefs.modifier.get("useButtonIcons")) .equalsIgnoreCase("no")) useButtonIcons = false; ButtonFactory.useButtonIcons(useButtonIcons); boolean useLabelIcons = true; if (installdata.guiPrefs.modifier.containsKey("useLabelIcons") && ((String) installdata.guiPrefs.modifier.get("useLabelIcons")) .equalsIgnoreCase("no")) useLabelIcons = false; LabelFactory.setUseLabelIcons(useLabelIcons); if (laf == null) { if (!syskey.equals("mac")) { String syslaf = UIManager.getSystemLookAndFeelClassName(); UIManager.setLookAndFeel(syslaf); if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel) { MetalLookAndFeel.setCurrentTheme(new IzPackMetalTheme()); ButtonFactory.useHighlightButtons(); // Reset the use button icons state because // useHighlightButtons // make it always true. ButtonFactory.useButtonIcons(useButtonIcons); installdata.buttonsHColor = new Color(182, 182, 204); } } lnf = "swing"; return; } // Kunststoff (http://www.incors.org/) if (laf.equals("kunststoff")) { ButtonFactory.useHighlightButtons(); // Reset the use button icons state because useHighlightButtons // make it always true. ButtonFactory.useButtonIcons(useButtonIcons); installdata.buttonsHColor = new Color(255, 255, 255); Class lafClass = Class.forName("com.incors.plaf.kunststoff.KunststoffLookAndFeel"); Class mtheme = Class.forName("javax.swing.plaf.metal.MetalTheme"); Class[] params = { mtheme}; Class theme = Class.forName("com.izforge.izpack.gui.IzPackKMetalTheme"); Method setCurrentThemeMethod = lafClass.getMethod("setCurrentTheme", params); // We invoke and place Kunststoff as our L&F LookAndFeel kunststoff = (LookAndFeel) lafClass.newInstance(); MetalTheme ktheme = (MetalTheme) theme.newInstance(); Object[] kparams = { ktheme}; UIManager.setLookAndFeel(kunststoff); setCurrentThemeMethod.invoke(kunststoff, kparams); lnf = "kunststoff"; return; } // Liquid (http://liquidlnf.sourceforge.net/) if (laf.equals("liquid")) { UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel"); lnf = "liquid"; Map params = (Map) installdata.guiPrefs.lookAndFeelParams.get(laf); if (params.containsKey("decorate.frames")) { String value = (String) params.get("decorate.frames"); if (value.equals("yes")) { JFrame.setDefaultLookAndFeelDecorated(true); } } if (params.containsKey("decorate.dialogs")) { String value = (String) params.get("decorate.dialogs"); if (value.equals("yes")) { JDialog.setDefaultLookAndFeelDecorated(true); } } return; } // Metouia (http://mlf.sourceforge.net/) if (laf.equals("metouia")) { UIManager.setLookAndFeel("net.sourceforge.mlf.metouia.MetouiaLookAndFeel"); lnf = "metouia"; return; } // JGoodies Looks (http://looks.dev.java.net/) if (laf.equals("looks")) { Map variants = new TreeMap(); variants.put("extwin", "com.jgoodies.plaf.windows.ExtWindowsLookAndFeel"); variants.put("plastic", "com.jgoodies.plaf.plastic.PlasticLookAndFeel"); variants.put("plastic3D", "com.jgoodies.plaf.plastic.Plastic3DLookAndFeel"); variants.put("plasticXP", "com.jgoodies.plaf.plastic.PlasticXPLookAndFeel"); String variant = (String) variants.get("plasticXP"); Map params = (Map) installdata.guiPrefs.lookAndFeelParams.get(laf); if (params.containsKey("variant")) { String param = (String) params.get("variant"); if (variants.containsKey(param)) { variant = (String) variants.get(param); } } UIManager.setLookAndFeel(variant); } }
|
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1262,
9794,
1876,
2954,
292,
1435,
1216,
1185,
565,
288,
3639,
368,
2256,
732,
1240,
1281,
11555,
364,
333,
5932,
692,
3639,
514,
2589,
856,
273,
315,
21136,
14432,
3639,
309,
261,
15112,
1444,
18,
5127,
67,
31874,
13,
3639,
288,
5411,
2589,
856,
273,
315,
13226,
14432,
3639,
289,
3639,
469,
309,
261,
15112,
1444,
18,
5127,
67,
4618,
60,
13,
3639,
288,
5411,
2589,
856,
273,
315,
5821,
14432,
3639,
289,
3639,
514,
328,
1727,
273,
446,
31,
3639,
309,
261,
5425,
892,
18,
20292,
1386,
2556,
18,
7330,
1876,
2954,
292,
3233,
18,
12298,
653,
12,
9499,
856,
3719,
3639,
288,
5411,
328,
1727,
273,
261,
780,
13,
3799,
892,
18,
20292,
1386,
2556,
18,
7330,
1876,
2954,
292,
3233,
18,
588,
12,
9499,
856,
1769,
3639,
289,
3639,
368,
10559,
1807,
999,
326,
2619,
2928,
42,
3639,
368,
9910,
2856,
3568,
17455,
1410,
506,
1399,
578,
486,
18,
3639,
1250,
999,
3616,
27510,
273,
638,
31,
3639,
309,
261,
5425,
892,
18,
20292,
1386,
2556,
18,
20597,
18,
12298,
653,
2932,
1202,
3616,
27510,
7923,
7734,
597,
14015,
780,
13,
3799,
892,
18,
20292,
1386,
2556,
18,
20597,
18,
588,
2932,
1202,
3616,
27510,
6,
3719,
13491,
263,
14963,
5556,
2932,
2135,
6,
3719,
999,
3616,
27510,
273,
629,
31,
3639,
12569,
1733,
18,
1202,
3616,
27510,
12,
1202,
3616,
27510,
1769,
3639,
1250,
999,
2224,
27510,
273,
638,
31,
3639,
309,
261,
5425,
892,
18,
20292,
1386,
2556,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1262,
9794,
1876,
2954,
292,
1435,
1216,
1185,
565,
288,
3639,
368,
2256,
732,
1240,
1281,
11555,
364,
333,
5932,
692,
3639,
514,
2589,
856,
273,
315,
21136,
14432,
3639,
309,
261,
15112,
1444,
18,
5127,
67,
31874,
13,
3639,
288,
5411,
2589,
856,
273,
315,
13226,
14432,
3639,
289,
3639,
469,
309,
261,
15112,
1444,
18,
5127,
67,
4618,
60,
13,
3639,
288,
5411,
2589,
856,
273,
315,
5821,
14432,
3639,
289,
3639,
514,
328,
1727,
273,
446,
31,
3639,
309,
261,
5425,
892,
18,
20292,
1386,
2556,
18,
7330,
1876,
2954,
292,
3233,
18,
12298,
653,
12,
9499,
856,
3719,
3639,
288,
5411,
328,
1727,
273,
261,
780,
13,
3799,
892,
18,
20292,
1386,
2
] |
smi.close();
|
smi.close();
|
public MultiTermEnum(IndexReader[] readers, int[] starts, Term t) throws IOException { queue = new SegmentMergeQueue(readers.length); for (int i = 0; i < readers.length; i++) { IndexReader reader = readers[i]; SegmentTermEnum termEnum; if (t != null) { termEnum = (SegmentTermEnum)reader.terms(t); } else termEnum = (SegmentTermEnum)reader.terms(); SegmentMergeInfo smi = new SegmentMergeInfo(starts[i], termEnum, reader); if (t == null ? smi.next() : termEnum.term() != null) queue.put(smi); // initialize queue else smi.close(); } if (t != null && queue.size() > 0) { next(); } }
|
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/b48c75c33cbc8f4834834d931f10db5c0db0af6b/MultiReader.java/clean/src/java/org/apache/lucene/index/MultiReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5991,
4065,
3572,
12,
1016,
2514,
8526,
16527,
16,
509,
8526,
2542,
16,
6820,
268,
13,
565,
1216,
1860,
288,
565,
2389,
273,
394,
10807,
6786,
3183,
12,
896,
414,
18,
2469,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
16527,
18,
2469,
31,
277,
27245,
288,
1377,
3340,
2514,
2949,
273,
16527,
63,
77,
15533,
1377,
10807,
4065,
3572,
2481,
3572,
31,
1377,
309,
261,
88,
480,
446,
13,
288,
202,
6408,
3572,
273,
261,
4131,
4065,
3572,
13,
10530,
18,
10112,
12,
88,
1769,
1377,
289,
469,
202,
6408,
3572,
273,
261,
4131,
4065,
3572,
13,
10530,
18,
10112,
5621,
1377,
10807,
6786,
966,
3029,
77,
273,
394,
10807,
6786,
966,
12,
17514,
63,
77,
6487,
2481,
3572,
16,
2949,
1769,
1377,
309,
261,
88,
422,
446,
692,
3029,
77,
18,
4285,
1435,
294,
2481,
3572,
18,
6408,
1435,
480,
446,
13,
202,
4000,
18,
458,
12,
4808,
77,
1769,
6862,
225,
368,
4046,
2389,
1377,
469,
202,
4808,
77,
18,
4412,
5621,
565,
289,
565,
309,
261,
88,
480,
446,
597,
2389,
18,
1467,
1435,
405,
374,
13,
288,
1377,
1024,
5621,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
5991,
4065,
3572,
12,
1016,
2514,
8526,
16527,
16,
509,
8526,
2542,
16,
6820,
268,
13,
565,
1216,
1860,
288,
565,
2389,
273,
394,
10807,
6786,
3183,
12,
896,
414,
18,
2469,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
16527,
18,
2469,
31,
277,
27245,
288,
1377,
3340,
2514,
2949,
273,
16527,
63,
77,
15533,
1377,
10807,
4065,
3572,
2481,
3572,
31,
1377,
309,
261,
88,
480,
446,
13,
288,
202,
6408,
3572,
273,
261,
4131,
4065,
3572,
13,
10530,
18,
10112,
12,
88,
1769,
1377,
289,
469,
202,
6408,
3572,
273,
261,
4131,
4065,
3572,
13,
10530,
18,
10112,
5621,
1377,
10807,
6786,
966,
3029,
77,
273,
394,
10807,
6786,
966,
12,
2
] |
JMenuBar getJMenuBar()
|
public JMenuBar getJMenuBar()
|
JMenuBar getJMenuBar() { return getRootPane().getJMenuBar(); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JApplet.java/clean/core/src/classpath/javax/javax/swing/JApplet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
804,
4599,
5190,
9285,
4599,
5190,
1435,
565,
288,
565,
327,
7656,
8485,
7675,
588,
46,
4599,
5190,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(log.isDebugEnabled()) log.debug(local_addr + " became coordinator");
|
public void becomeCoordinator() { CoordGmsImpl tmp=(CoordGmsImpl)impls.get(COORD); if(tmp == null) { tmp=new CoordGmsImpl(this); impls.put(COORD, tmp); } tmp.leaving=false; setImpl(tmp); if(log.isDebugEnabled()) log.debug(local_addr + " became coordinator"); }
|
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/6fb09c82ef4207cebcaea41da8650b37c61bc21d/GMS.java/clean/src/org/jgroups/protocols/pbcast/GMS.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12561,
25307,
1435,
288,
3639,
10320,
43,
959,
2828,
1853,
28657,
5401,
43,
959,
2828,
13,
11299,
87,
18,
588,
12,
27237,
40,
1769,
3639,
309,
12,
5645,
422,
446,
13,
288,
5411,
1853,
33,
2704,
10320,
43,
959,
2828,
12,
2211,
1769,
5411,
9380,
87,
18,
458,
12,
27237,
40,
16,
1853,
1769,
3639,
289,
3639,
1853,
18,
298,
5339,
33,
5743,
31,
3639,
444,
2828,
12,
5645,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12561,
25307,
1435,
288,
3639,
10320,
43,
959,
2828,
1853,
28657,
5401,
43,
959,
2828,
13,
11299,
87,
18,
588,
12,
27237,
40,
1769,
3639,
309,
12,
5645,
422,
446,
13,
288,
5411,
1853,
33,
2704,
10320,
43,
959,
2828,
12,
2211,
1769,
5411,
9380,
87,
18,
458,
12,
27237,
40,
16,
1853,
1769,
3639,
289,
3639,
1853,
18,
298,
5339,
33,
5743,
31,
3639,
444,
2828,
12,
5645,
1769,
5411,
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
] |
|
autoupdate = true;
|
public VariableManager(Session session) { super(session); variableList = Collections.synchronizedList(new ArrayList()); autoupdate = true; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f3a9fae6384fd8bb36474b1661bb6d0b65b38d5f/VariableManager.java/buggy/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/VariableManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7110,
1318,
12,
2157,
1339,
13,
288,
202,
202,
9565,
12,
3184,
1769,
202,
202,
6105,
682,
273,
5737,
18,
22043,
682,
12,
2704,
2407,
10663,
202,
202,
6079,
2725,
273,
638,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7110,
1318,
12,
2157,
1339,
13,
288,
202,
202,
9565,
12,
3184,
1769,
202,
202,
6105,
682,
273,
5737,
18,
22043,
682,
12,
2704,
2407,
10663,
202,
202,
6079,
2725,
273,
638,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
fPluginCount = 5; createDummyPlugins(fPluginCount); }
|
fPluginCount = 5; createDummyPlugins(fPluginCount); }
|
protected void setUp() throws Exception { fPluginCount = 5; createDummyPlugins(fPluginCount); }
|
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/6154a5b267bdd33616cb8e8453840821319d816c/TestPluginSystem.java/buggy/src/test/org/apache/nutch/plugin/TestPluginSystem.java
|
[
1,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
24292,
1435,
1216,
1185,
288,
565,
284,
3773,
1380,
273,
1381,
31,
565,
752,
20094,
9461,
12,
74,
3773,
1380,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ToHitData toHit = Compute.toHitDfa(game, daa);
|
private void resolveDfaAttack(DfaAttackAction daa, int lastEntityId) { final Entity ae = game.getEntity(daa.getEntityId()); final Targetable target = game.getTarget(daa.getTargetType(), daa.getTargetId()); Entity te = null; if (target != null && target.getTargetType() == Targetable.TYPE_ENTITY) { te = (Entity)target; } // Which building takes the damage? Building bldg = game.board.getBuildingAt( daa.getTargetPos() ); // is the attacker dead? because that sure messes up the calculations if (ae == null) { return; } final int direction = ae.getFacing(); if (lastEntityId != daa.getEntityId()) { phaseReport.append("\nPhysical attacks for " ).append( ae.getDisplayName() ).append( "\n"); } // entity isn't charging any more ae.setDisplacementAttack(null); // should we even bother? if (target == null || (target.getTargetType() == Targetable.TYPE_ENTITY && (te.isDestroyed() || te.isDoomed() || te.crew.isDead()))) { phaseReport.append(" Death from above deals no damage as the target has been destroyed.\n"); if (ae.isProne()) { // attacker prone during weapons phase doEntityFall(ae, daa.getTargetPos(), 2, 3, ae.getBasePilotingRoll()); } else { // same effect as successful DFA doEntityDisplacement(ae, ae.getPosition(), daa.getTargetPos(), new PilotingRollData(ae.getId(), 4, "executed death from above")); } return; } phaseReport.append(" Attempting death from above on " ).append( target.getDisplayName()); // target still in the same position? if ( !target.getPosition().equals(daa.getTargetPos()) ) { phaseReport.append(" but the target has moved.\n"); return; } // compute to-hit ToHitData toHit = Compute.toHitDfa(game, daa); // hack: if the attacker's prone, or incapacitated, fudge the roll int roll; if (ae.isProne() || !ae.isActive()) { roll = -12; phaseReport.append(" but the attacker is prone or incapacitated : "); } else if (toHit.getValue() == ToHitData.IMPOSSIBLE) { roll = -12; phaseReport.append(" but the attack is impossible (" ).append( toHit.getDesc() ).append( ") : "); } else if (toHit.getValue() == ToHitData.AUTOMATIC_SUCCESS) { phaseReport.append(", the DFA is an automatic hit (" ).append( toHit.getDesc() ).append( "), "); roll = Integer.MAX_VALUE; } else { // roll roll = Compute.d6(2); phaseReport.append("; needs " ).append( toHit.getValue() ).append( ", "); phaseReport.append("rolls " ).append( roll ).append( " : "); } // do we hit? if (roll < toHit.getValue()) { Coords dest = te.getPosition(); Coords targetDest = Compute.getPreferredDisplacement(game, te.getId(), dest, direction); phaseReport.append("misses.\n"); if (targetDest != null) { // attacker falls into destination hex phaseReport.append(ae.getDisplayName() ).append( " falls into hex " ).append( dest.getBoardNum() ).append( ".\n"); doEntityFall(ae, dest, 2, 3, ae.getBasePilotingRoll()); // move target to preferred hex doEntityDisplacement(te, dest, targetDest, null); } else { // attacker destroyed Tanks // suffer an ammo/power plant hit. // TODO : a Mech suffers a Head Blown Off crit. phaseReport.append(destroyEntity(ae, "impossible displacement", (ae instanceof Mech), (ae instanceof Mech))); } return; } // we hit... // Can't DFA a target inside of a building. int damage = Compute.getDfaDamageFor(ae); int damageTaken = Compute.getDfaDamageTakenBy(ae); phaseReport.append("hits."); // Targeting a building. if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { // The building takes the full brunt of the attack. phaseReport.append( "\n " ) .append( damageBuilding( bldg, damage ) ) .append( "\n" ); // Damage any infantry in the hex. this.damageInfantryIn( bldg, damage ); } // Target isn't building. else { phaseReport.append("\n Defender takes " ).append( damage ).append( " damage" ).append( toHit.getTableDesc() ).append( "."); while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = te.rollHitLocation(toHit.getHitTable(), toHit.getSideTable()); phaseReport.append(damageEntity(te, hit, cluster)); damage -= cluster; } } phaseReport.append("\n Attacker takes " ).append( damageTaken ).append( " damage."); while (damageTaken > 0) { int cluster = Math.min(5, damageTaken); HitData hit = ae.rollHitLocation(ToHitData.HIT_KICK, ToHitData.SIDE_FRONT); phaseReport.append(damageEntity(ae, hit, cluster)); damageTaken -= cluster; } phaseReport.append("\n"); // That's it for target buildings. // TODO: where do I put the attacker?!? if ( target.getTargetType() == Targetable.TYPE_BUILDING ) { return; } // Target entities are pushed away or destroyed. Coords dest = te.getPosition(); Coords targetDest = Compute.getValidDisplacement(game, te.getId(), dest, direction); if (game.getOptions().booleanOption("push_off_board") && !game.board.contains(dest.translated(direction))) { game.removeEntity(te.getId(), Entity.REMOVE_PUSHED); send(createRemoveEntityPacket(te.getId(), Entity.REMOVE_PUSHED)); phaseReport.append("\n*** " ).append( te.getDisplayName() ).append( " target has been forced from the field. ***\n"); // TODO: remove passengers and swarmers. } else { if (targetDest != null) { doEntityDisplacement(te, dest, targetDest, new PilotingRollData(te.getId(), 2, "hit by death from above")); } else { // ack! automatic death! Tanks // suffer an ammo/power plant hit. // TODO : a Mech suffers a Head Blown Off crit. phaseReport.append(destroyEntity(te, "impossible displacement", (te instanceof Mech), (te instanceof Mech))); } } // HACK: to avoid automatic falls, displace from dest to dest doEntityDisplacement(ae, dest, dest, new PilotingRollData(ae.getId(), 4, "executed death from above")); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/961e5884a395494eba8632c89e8a4642931ee310/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
40,
507,
3075,
484,
12,
40,
507,
3075,
484,
1803,
5248,
69,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
2414,
69,
18,
588,
18029,
10663,
3639,
727,
5916,
429,
1018,
273,
7920,
18,
588,
2326,
12,
2414,
69,
18,
588,
2326,
559,
9334,
5248,
69,
18,
588,
2326,
548,
10663,
3639,
3887,
6489,
273,
446,
31,
3639,
309,
261,
3299,
480,
446,
597,
1018,
18,
588,
2326,
559,
1435,
422,
5916,
429,
18,
2399,
67,
11101,
13,
288,
5411,
6489,
273,
261,
1943,
13,
3299,
31,
3639,
289,
3639,
368,
21918,
10504,
5530,
326,
302,
301,
410,
35,
3639,
3998,
310,
324,
1236,
75,
273,
7920,
18,
3752,
18,
588,
16713,
861,
12,
5248,
69,
18,
588,
2326,
1616,
1435,
11272,
3639,
368,
353,
326,
13843,
264,
8363,
35,
225,
2724,
716,
3071,
12755,
281,
731,
326,
20882,
3639,
309,
261,
8906,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
727,
509,
4068,
273,
14221,
18,
588,
42,
5330,
5621,
3639,
309,
261,
2722,
18029,
480,
5248,
69,
18,
588,
18029,
10756,
288,
5411,
6855,
4820,
18,
6923,
31458,
82,
18136,
28444,
364,
315,
262,
18,
6923,
12,
14221,
18,
588,
20524,
1435,
262,
18,
6923,
12,
1548,
82,
8863,
3639,
289,
3639,
368,
1522,
5177,
1404,
1149,
1998,
1281,
1898,
3639,
14221,
18,
542,
1669,
15917,
3075,
484,
12,
2011,
1769,
3639,
368,
1410,
732,
5456,
23440,
35,
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,
3238,
918,
2245,
40,
507,
3075,
484,
12,
40,
507,
3075,
484,
1803,
5248,
69,
16,
509,
1142,
18029,
13,
288,
3639,
727,
3887,
14221,
273,
7920,
18,
588,
1943,
12,
2414,
69,
18,
588,
18029,
10663,
3639,
727,
5916,
429,
1018,
273,
7920,
18,
588,
2326,
12,
2414,
69,
18,
588,
2326,
559,
9334,
5248,
69,
18,
588,
2326,
548,
10663,
3639,
3887,
6489,
273,
446,
31,
3639,
309,
261,
3299,
480,
446,
597,
1018,
18,
588,
2326,
559,
1435,
422,
5916,
429,
18,
2399,
67,
11101,
13,
288,
5411,
6489,
273,
261,
1943,
13,
3299,
31,
3639,
289,
3639,
368,
21918,
10504,
5530,
326,
302,
301,
410,
35,
3639,
3998,
310,
324,
1236,
75,
273,
7920,
2
] |
|
else if (child instanceof UIIKATContainer) { registerContainer(toprocess, (UIIKATContainer) child);
|
else if (child instanceof UICommand) { UICommand command = (UICommand) child; command.parameters.add(new UIParameter(SubmittedValueEntry.SUBMITTING_CONTROL, toprocess.getFullID())); } else if (child instanceof UIBranchContainer) { registerContainer(toprocess, (UIBranchContainer) child);
|
private void registerContainer(UIForm toprocess, UIContainer toregister) { ComponentList children = toregister.flattenChildren(); for (int i = 0; i < children.size(); ++ i) { UIComponent child = children.componentAt(i); if (RSFUtil.isBound(child)) { toprocess.submittingcontrols.add(child.getFullID()); } else if (child instanceof UIIKATContainer) { registerContainer(toprocess, (UIIKATContainer) child); } } }
|
29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/fda1fa0e807536691d67b176f8eb2cfa74211a27/ContainmentFormChildFixer.java/buggy/rsf-core/core/src/uk/org/ponder/rsf/processor/ContainmentFormChildFixer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1744,
2170,
12,
5370,
1204,
358,
2567,
16,
6484,
2170,
358,
4861,
13,
288,
565,
5435,
682,
2325,
273,
358,
4861,
18,
16940,
4212,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2325,
18,
1467,
5621,
965,
277,
13,
288,
1377,
18907,
1151,
273,
2325,
18,
4652,
861,
12,
77,
1769,
1377,
309,
261,
13225,
42,
1304,
18,
291,
3499,
12,
3624,
3719,
288,
3639,
358,
2567,
18,
9297,
1787,
24350,
18,
1289,
12,
3624,
18,
588,
5080,
734,
10663,
1377,
289,
1377,
469,
309,
261,
3624,
1276,
6484,
45,
47,
789,
2170,
13,
288,
3639,
1744,
2170,
12,
3669,
16127,
16,
261,
5370,
45,
47,
789,
2170,
13,
1151,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1744,
2170,
12,
5370,
1204,
358,
2567,
16,
6484,
2170,
358,
4861,
13,
288,
565,
5435,
682,
2325,
273,
358,
4861,
18,
16940,
4212,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2325,
18,
1467,
5621,
965,
277,
13,
288,
1377,
18907,
1151,
273,
2325,
18,
4652,
861,
12,
77,
1769,
1377,
309,
261,
13225,
42,
1304,
18,
291,
3499,
12,
3624,
3719,
288,
3639,
358,
2567,
18,
9297,
1787,
24350,
18,
1289,
12,
3624,
18,
588,
5080,
734,
10663,
1377,
289,
1377,
469,
309,
261,
3624,
1276,
6484,
45,
47,
789,
2170,
13,
288,
3639,
1744,
2170,
12,
3669,
16127,
16,
261,
5370,
45,
47,
789,
2170,
13,
1151,
1769,
1377,
289,
2
] |
Image image1 = imageCache.getImage(imageDescriptor).getImage(); Image image2 = imageCache.getImage(imageDescriptor).getImage();
|
Image image1 = imageCache.getImage(imageDescriptor).getImage(); Image image2 = imageCache.getImage(imageDescriptor).getImage();
|
public void testGetUniqueImageForDescriptor() { ImageDescriptor imageDescriptor = getImageDescriptor(imageName); Image image1 = imageCache.getImage(imageDescriptor).getImage(); Image image2 = imageCache.getImage(imageDescriptor).getImage(); assertSame(image1, image2); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c7a7ac8adf47655ae8f464f116999526a88cb658/ImageCacheTest.java/clean/tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/images/ImageCacheTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
6303,
2040,
1290,
3187,
1435,
288,
202,
202,
2040,
3187,
1316,
3187,
273,
10567,
3187,
12,
2730,
461,
1769,
202,
202,
2040,
1316,
21,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
2934,
588,
2040,
5621,
202,
202,
2040,
1316,
22,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
2934,
588,
2040,
5621,
202,
202,
11231,
8650,
12,
2730,
21,
16,
1316,
22,
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,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2040,
1316,
21,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
2934,
588,
2040,
5621,
202,
202,
2040,
1316,
22,
273,
1316,
1649,
18,
588,
2040,
12,
2730,
3187,
2934,
588,
2040,
5621,
202,
202,
11231,
8650,
12,
2730,
21,
16,
1316,
22,
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
] |
this.dataOut.write(LONG); this.dataOut.writeLong(value);
|
MarshallingSupport.marshalLong(dataOut, value);
|
public void writeLong(long value) throws JMSException { initializeWriting(); try { this.dataOut.write(LONG); this.dataOut.writeLong(value); } catch (IOException ioe) { throw JMSExceptionSupport.create(ioe); } }
|
17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/09ebb720d3c5553c0945f1b3cf793e8861fa4196/ActiveMQStreamMessage.java/clean/activemq-core/src/main/java/org/apache/activemq/command/ActiveMQStreamMessage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26603,
12,
5748,
460,
13,
1216,
20343,
288,
3639,
4046,
18835,
5621,
3639,
775,
288,
5411,
333,
18,
892,
1182,
18,
2626,
12,
14639,
1769,
5411,
333,
18,
892,
1182,
18,
2626,
3708,
12,
1132,
1769,
3639,
289,
1044,
261,
14106,
10847,
13,
288,
5411,
604,
20343,
6289,
18,
2640,
12,
1594,
73,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26603,
12,
5748,
460,
13,
1216,
20343,
288,
3639,
4046,
18835,
5621,
3639,
775,
288,
5411,
333,
18,
892,
1182,
18,
2626,
12,
14639,
1769,
5411,
333,
18,
892,
1182,
18,
2626,
3708,
12,
1132,
1769,
3639,
289,
1044,
261,
14106,
10847,
13,
288,
5411,
604,
20343,
6289,
18,
2640,
12,
1594,
73,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.debug("field: " + fieldName); generateCodeFile(document, specificationDir + "/Fields.xsl", new String[] {"fieldName", XSLPARAM_SERIAL_UID},
|
log.info("field: " + fieldName); generateCodeFile(document, xformDir + "/Fields.xsl", new String[] {"fieldName", XSLPARAM_SERIAL_UID},
|
private void generateFieldClasses() throws ParserConfigurationException, SAXException, IOException { for (int fixMinorVersion = 4; fixMinorVersion >= 0; fixMinorVersion--) { Document document = getSpecification(fixMinorVersion); List fieldNames = getNames(document.getDocumentElement(), "fields/field"); try { for (int i = 0; i < fieldNames.size(); i++) { String fieldName = (String) fieldNames.get(i); String outputFile = outputBaseDir + "/quickfix/field/" + fieldName + ".java"; if (!new File(outputFile).exists()) { log.debug("field: " + fieldName); generateCodeFile(document, specificationDir + "/Fields.xsl", new String[] {"fieldName", XSLPARAM_SERIAL_UID}, new String[] {fieldName, SERIAL_UID_STR}, outputFile); } } } catch (Exception e) { log.error("error while generating field classes", e); } } }
|
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/04b364e8233e980e4cff01b718f8071b501828b8/JavaCodeGenerator.java/clean/src/quickfix/codegen/JavaCodeGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
974,
4818,
1435,
1216,
6783,
10737,
16,
14366,
16,
5411,
1860,
288,
3639,
364,
261,
474,
2917,
19549,
1444,
273,
1059,
31,
2917,
19549,
1444,
1545,
374,
31,
2917,
19549,
1444,
413,
13,
288,
5411,
4319,
1668,
273,
20189,
1480,
12,
904,
19549,
1444,
1769,
5411,
987,
16902,
273,
336,
1557,
12,
5457,
18,
588,
2519,
1046,
9334,
315,
2821,
19,
1518,
8863,
5411,
775,
288,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
16902,
18,
1467,
5621,
277,
27245,
288,
10792,
514,
4289,
273,
261,
780,
13,
16902,
18,
588,
12,
77,
1769,
10792,
514,
15047,
273,
876,
2171,
1621,
397,
2206,
19525,
904,
19,
1518,
4898,
397,
4289,
397,
3552,
6290,
14432,
10792,
309,
16051,
2704,
1387,
12,
2844,
812,
2934,
1808,
10756,
288,
13491,
613,
18,
4148,
2932,
1518,
30,
315,
397,
4289,
1769,
13491,
2103,
1085,
812,
12,
5457,
16,
7490,
1621,
397,
2206,
2314,
18,
30903,
3113,
394,
514,
8526,
12528,
16163,
3113,
17243,
8388,
67,
2123,
6365,
67,
3060,
5779,
27573,
394,
514,
8526,
288,
16163,
16,
7758,
6365,
67,
3060,
67,
3902,
5779,
15047,
1769,
10792,
289,
7734,
289,
5411,
289,
1044,
261,
503,
425,
13,
288,
7734,
613,
18,
1636,
2932,
1636,
1323,
12516,
652,
3318,
3113,
425,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
974,
4818,
1435,
1216,
6783,
10737,
16,
14366,
16,
5411,
1860,
288,
3639,
364,
261,
474,
2917,
19549,
1444,
273,
1059,
31,
2917,
19549,
1444,
1545,
374,
31,
2917,
19549,
1444,
413,
13,
288,
5411,
4319,
1668,
273,
20189,
1480,
12,
904,
19549,
1444,
1769,
5411,
987,
16902,
273,
336,
1557,
12,
5457,
18,
588,
2519,
1046,
9334,
315,
2821,
19,
1518,
8863,
5411,
775,
288,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
16902,
18,
1467,
5621,
277,
27245,
288,
10792,
514,
4289,
273,
261,
780,
13,
16902,
18,
588,
12,
77,
1769,
10792,
514,
15047,
273,
876,
2171,
1621,
397,
2206,
19525,
904,
19,
1518,
4898,
397,
4289,
397,
3552,
6290,
2
] |
return RubyBoolean.newBoolean(getRuntime(), (pattern.flags() & Pattern.CASE_INSENSITIVE) != 0);
|
return getRuntime().newBoolean((pattern.flags() & Pattern.CASE_INSENSITIVE) != 0);
|
public RubyBoolean casefold() { checkInitialized(); return RubyBoolean.newBoolean(getRuntime(), (pattern.flags() & Pattern.CASE_INSENSITIVE) != 0); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
648,
16007,
1435,
288,
3639,
866,
11459,
5621,
3639,
327,
18814,
7675,
2704,
5507,
12443,
4951,
18,
7133,
1435,
473,
6830,
18,
13415,
67,
706,
26753,
16325,
13,
480,
374,
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,
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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,
5507,
648,
16007,
1435,
288,
3639,
866,
11459,
5621,
3639,
327,
18814,
7675,
2704,
5507,
12443,
4951,
18,
7133,
1435,
473,
6830,
18,
13415,
67,
706,
26753,
16325,
13,
480,
374,
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
] |
setStyleClass((String) evalAttr("styleClass", getStyleClass(),
|
setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(),
|
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
|
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/2dbb705eab3659c5c2ceb6398f2eec56e1f6994d/ELCheckboxTag.java/buggy/struts-el/src/share/org/apache/strutsel/taglib/html/ELCheckboxTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2934,
15604,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
15034,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
9334,
514,
18,
1106,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
2
] |
modelWriter = new MavenXpp3Writer();
|
public void initialize() throws Exception { modelWriter = new MavenXpp3Writer(); modelReader = new MavenXpp3Reader(); }
|
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/74c818888a284151227cefd6817889782c9ace30/DefaultMavenProjectBuilder.java/buggy/maven-core/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1435,
3639,
1216,
1185,
565,
288,
2868,
938,
2514,
273,
394,
17176,
60,
11858,
23,
2514,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4046,
1435,
3639,
1216,
1185,
565,
288,
2868,
938,
2514,
273,
394,
17176,
60,
11858,
23,
2514,
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
] |
|
return (ClassLoader[]) loaders.toArray();
|
return loaders.toArray(new ClassLoader[loaders.size()]);
|
private static ClassLoader[] getClassLoaders() { ClassLoader[] classLoaders = new ClassLoader[2]; classLoaders[0] = SmackConfiguration.class.getClassLoader(); classLoaders[1] = Thread.currentThread().getContextClassLoader(); // Clean up possible null values. Note that #getClassLoader may return a null value. List<ClassLoader> loaders = new ArrayList<ClassLoader>(); for (ClassLoader classLoader : classLoaders) { if (classLoader != null) { loaders.add(classLoader); } } return (ClassLoader[]) loaders.toArray(); }
|
7665 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7665/188b0331d18414c0621a637c283a134e1e408f9e/SmackConfiguration.java/clean/source/org/jivesoftware/smack/SmackConfiguration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
9403,
8526,
2900,
26801,
1435,
288,
3639,
9403,
8526,
667,
26801,
273,
394,
9403,
63,
22,
15533,
3639,
667,
26801,
63,
20,
65,
273,
9425,
484,
1750,
18,
1106,
18,
588,
7805,
5621,
3639,
667,
26801,
63,
21,
65,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
3639,
368,
9645,
731,
3323,
446,
924,
18,
3609,
716,
468,
588,
7805,
2026,
327,
279,
446,
460,
18,
3639,
987,
32,
7805,
34,
19221,
273,
394,
2407,
32,
7805,
34,
5621,
3639,
364,
261,
7805,
11138,
294,
667,
26801,
13,
288,
5411,
309,
261,
1106,
2886,
480,
446,
13,
288,
7734,
19221,
18,
1289,
12,
1106,
2886,
1769,
5411,
289,
3639,
289,
3639,
327,
19221,
18,
31447,
12,
2704,
9403,
63,
945,
414,
18,
1467,
1435,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
9403,
8526,
2900,
26801,
1435,
288,
3639,
9403,
8526,
667,
26801,
273,
394,
9403,
63,
22,
15533,
3639,
667,
26801,
63,
20,
65,
273,
9425,
484,
1750,
18,
1106,
18,
588,
7805,
5621,
3639,
667,
26801,
63,
21,
65,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
3639,
368,
9645,
731,
3323,
446,
924,
18,
3609,
716,
468,
588,
7805,
2026,
327,
279,
446,
460,
18,
3639,
987,
32,
7805,
34,
19221,
273,
394,
2407,
32,
7805,
34,
5621,
3639,
364,
261,
7805,
11138,
294,
667,
26801,
13,
288,
5411,
309,
261,
1106,
2886,
480,
446,
13,
288,
7734,
19221,
18,
1289,
12,
1106,
2886,
1769,
5411,
289,
3639,
289,
3639,
327,
19221,
18,
31447,
2
] |
setMessage(RefactoringMessages.getString("UseSupertypeInputPage.No_updates"), DialogPage.INFORMATION);
|
setMessage(RefactoringMessages.getString("UseSupertypeInputPage.No_updates"), IMessageProvider.INFORMATION);
|
private void addTableComponent(Composite composite) { fTableViewer= new TableViewer(composite, SWT.SINGLE | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL); fTableViewer.getTable().setLayoutData(new GridData(GridData.FILL_BOTH)); fTableLabelProvider= new UseSupertypeLabelProvider(fFileCount); fTableViewer.setLabelProvider(fTableLabelProvider); fTableViewer.setContentProvider(new ArrayContentProvider()); fTableViewer.addSelectionChangedListener(new ISelectionChangedListener(){ public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection ss= (IStructuredSelection)event.getSelection(); if (new Integer(0).equals(fFileCount.get(ss.getFirstElement()))){ setMessage(RefactoringMessages.getString("UseSupertypeInputPage.No_updates"), DialogPage.INFORMATION); //$NON-NLS-1$ setPageComplete(false); } else { setMessage(MESSAGE); setPageComplete(true); } fTableViewer.refresh(); } }); try { fTableViewer.setInput(getUseSupertypeRefactoring().getSuperTypes()); } catch (JavaModelException e) { ExceptionHandler.handle(e, RefactoringMessages.getString("UseSupertypeInputPage.Use_Supertype"), RefactoringMessages.getString("UseSupertypeInputPage.Internal_Error")); //$NON-NLS-1$ //$NON-NLS-2$ fTableViewer.setInput(new IType[0]); } fTableViewer.getTable().setSelection(0); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/175b213238a39553ddefbdedfa4090460b2b6010/UseSupertypeWizard.java/clean/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/UseSupertypeWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
527,
1388,
1841,
12,
9400,
9635,
13,
288,
1082,
202,
74,
1388,
18415,
33,
394,
3555,
18415,
12,
27676,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
44,
67,
2312,
14555,
1769,
1082,
202,
74,
1388,
18415,
18,
588,
1388,
7675,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
1082,
202,
74,
1388,
2224,
2249,
33,
394,
2672,
8051,
723,
2224,
2249,
12,
74,
812,
1380,
1769,
1082,
202,
74,
1388,
18415,
18,
542,
2224,
2249,
12,
74,
1388,
2224,
2249,
1769,
1082,
202,
74,
1388,
18415,
18,
542,
1350,
2249,
12,
2704,
1510,
1350,
2249,
10663,
1082,
202,
74,
1388,
18415,
18,
1289,
6233,
5033,
2223,
12,
2704,
467,
6233,
5033,
2223,
1435,
95,
9506,
202,
482,
918,
4421,
5033,
12,
6233,
27553,
871,
13,
288,
6862,
202,
45,
30733,
6233,
5202,
33,
261,
45,
30733,
6233,
13,
2575,
18,
588,
6233,
5621,
6862,
202,
430,
261,
2704,
2144,
12,
20,
2934,
14963,
12,
74,
812,
1380,
18,
588,
12,
1049,
18,
588,
3759,
1046,
1435,
3719,
15329,
25083,
202,
542,
1079,
12,
426,
3493,
6053,
5058,
18,
588,
780,
2932,
3727,
8051,
723,
1210,
1964,
18,
2279,
67,
14703,
6,
3631,
467,
1079,
2249,
18,
706,
23805,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
25083,
202,
542,
1964,
6322,
12,
5743,
1769,
6862,
202,
97,
469,
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,
3196,
202,
1152,
918,
527,
1388,
1841,
12,
9400,
9635,
13,
288,
1082,
202,
74,
1388,
18415,
33,
394,
3555,
18415,
12,
27676,
16,
348,
8588,
18,
20184,
571,
348,
8588,
18,
38,
7954,
571,
348,
8588,
18,
58,
67,
2312,
14555,
571,
348,
8588,
18,
44,
67,
2312,
14555,
1769,
1082,
202,
74,
1388,
18415,
18,
588,
1388,
7675,
542,
3744,
751,
12,
2704,
7145,
751,
12,
6313,
751,
18,
29818,
67,
38,
18307,
10019,
1082,
202,
74,
1388,
2224,
2249,
33,
394,
2672,
8051,
723,
2224,
2249,
12,
74,
812,
1380,
1769,
1082,
202,
74,
1388,
18415,
18,
542,
2224,
2249,
12,
74,
1388,
2224,
2249,
1769,
1082,
202,
74,
1388,
18415,
18,
542,
1350,
2249,
12,
2
] |
lcl );
|
lcl.toLocale( ) );
|
public static String getString( String key, Locale lcl ) { final ResourceBundle rb = ResourceBundle.getBundle( DEVICE_EXTENSION, lcl ); try { return rb.getString( key ); } catch ( MissingResourceException e ) { return '!' + key + '!'; } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ae8909f5c697c610266e491d0af9a02eed14e2e4/Messages.java/buggy/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/extension/i18n/Messages.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
4997,
12,
514,
498,
16,
6458,
328,
830,
262,
202,
95,
202,
202,
6385,
19198,
7138,
273,
19198,
18,
588,
3405,
12,
23996,
67,
12796,
16,
9506,
202,
80,
830,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
2463,
7138,
18,
588,
780,
12,
498,
11272,
202,
202,
97,
202,
202,
14683,
261,
10230,
14785,
425,
262,
202,
202,
95,
1082,
202,
2463,
15502,
397,
498,
397,
15502,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
4997,
12,
514,
498,
16,
6458,
328,
830,
262,
202,
95,
202,
202,
6385,
19198,
7138,
273,
19198,
18,
588,
3405,
12,
23996,
67,
12796,
16,
9506,
202,
80,
830,
11272,
202,
202,
698,
202,
202,
95,
1082,
202,
2463,
7138,
18,
588,
780,
12,
498,
11272,
202,
202,
97,
202,
202,
14683,
261,
10230,
14785,
425,
262,
202,
202,
95,
1082,
202,
2463,
15502,
397,
498,
397,
15502,
31,
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
] |
if(perm == null){ perm = UmlFactory.getFactory().getCore().buildPermission(parseState.getComponent(), mPackage); ModelFacade.setName(perm, ModelFacade.getName(parseState.getComponent())+ " -> "+ packageName);
|
if (perm == null) { perm = UmlFactory.getFactory().getCore().buildPermission(parseState.getComponent(), mPackage); ModelFacade.setName(perm, ModelFacade.getName(parseState.getComponent()) + " -> " + packageName);
|
public void addImport(String name) { String packageName = getPackageName(name); String classifierName = getClassifierName(name); Object mPackage = getPackage(packageName); // import on demand if(classifierName.equals("*")) { parseState.addPackageContext(mPackage); Object perm=null; // try find an existing permission Iterator dependenciesIt = UmlHelper.getHelper().getCore() .getDependencies(mPackage, parseState.getComponent()) .iterator(); while(dependenciesIt.hasNext()){ Object dependency = dependenciesIt.next(); if(ModelFacade.isAPermission(dependency)){ perm = dependency; break; } } // if no existing permission was found. if(perm == null){ perm = UmlFactory.getFactory().getCore().buildPermission(parseState.getComponent(), mPackage); ModelFacade.setName(perm, ModelFacade.getName(parseState.getComponent())+ " -> "+ packageName); } } // single type import else { Object mClassifier=null; try { mClassifier= (new PackageContext(null, mPackage)).get(classifierName); parseState.addClassifierContext(mClassifier); Object perm = null; // try find an existing permission Iterator dependenciesIt = UmlHelper.getHelper().getCore() .getDependencies(mClassifier, parseState.getComponent()) .iterator(); while(dependenciesIt.hasNext()){ Object dependency = dependenciesIt.next(); if(ModelFacade.isAPermission(dependency)){ perm = dependency; break; } } // if no existing permission was found. if(perm == null){ perm = UmlFactory.getFactory().getCore().buildPermission(parseState.getComponent(), mClassifier); ModelFacade.setName(perm, ModelFacade.getName(parseState.getComponent())+ " -> "+ ModelFacade.getName(mClassifier)); } } catch(ClassifierNotFoundException e) { // Currently if a classifier cannot be found in the // model/classpath then information will be lost from // source files, because the classifier cannot be // created on the fly. cat.warn("Modeller.java: a classifier that was in the source"+ " file could not be generated in the model "+ "(to generate an imported classifier)- information lost\n"+ "\t"+e); } } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/Modeller.java/clean/src_new/org/argouml/uml/reveng/java/Modeller.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
5010,
12,
780,
508,
13,
565,
288,
202,
780,
9929,
273,
28951,
12,
529,
1769,
202,
780,
14622,
461,
273,
2900,
1251,
461,
12,
529,
1769,
202,
921,
312,
2261,
273,
11506,
12,
5610,
461,
1769,
3639,
368,
1930,
603,
23653,
202,
430,
12,
1106,
1251,
461,
18,
14963,
2932,
7388,
3719,
288,
202,
565,
1109,
1119,
18,
1289,
2261,
1042,
12,
81,
2261,
1769,
5411,
1033,
4641,
33,
2011,
31,
13491,
368,
775,
1104,
392,
2062,
4132,
5411,
4498,
5030,
7193,
273,
7734,
587,
781,
2276,
18,
588,
2276,
7675,
588,
4670,
1435,
10792,
263,
588,
8053,
12,
81,
2261,
16,
1109,
1119,
18,
588,
1841,
10756,
10792,
263,
9838,
5621,
5411,
1323,
12,
11037,
7193,
18,
5332,
2134,
10756,
95,
27573,
1033,
4904,
273,
5030,
7193,
18,
4285,
5621,
7734,
309,
12,
1488,
12467,
18,
291,
2203,
2635,
12,
15896,
3719,
95,
4766,
3639,
4641,
273,
4904,
31,
10792,
898,
31,
7734,
289,
5411,
289,
13491,
368,
309,
1158,
2062,
4132,
1703,
1392,
18,
5411,
309,
12,
12160,
422,
446,
15329,
5411,
4641,
273,
587,
781,
1733,
18,
588,
1733,
7675,
588,
4670,
7675,
3510,
5041,
12,
2670,
1119,
18,
588,
1841,
9334,
312,
2261,
1769,
5411,
3164,
12467,
18,
542,
461,
12,
12160,
16,
7734,
3164,
12467,
18,
17994,
12,
2670,
1119,
18,
588,
1841,
10756,
15,
7734,
315,
317,
13773,
7734,
9929,
1769,
5411,
289,
202,
97,
3639,
368,
2202,
618,
1930,
202,
12107,
288,
5411,
1033,
312,
13860,
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,
527,
5010,
12,
780,
508,
13,
565,
288,
202,
780,
9929,
273,
28951,
12,
529,
1769,
202,
780,
14622,
461,
273,
2900,
1251,
461,
12,
529,
1769,
202,
921,
312,
2261,
273,
11506,
12,
5610,
461,
1769,
3639,
368,
1930,
603,
23653,
202,
430,
12,
1106,
1251,
461,
18,
14963,
2932,
7388,
3719,
288,
202,
565,
1109,
1119,
18,
1289,
2261,
1042,
12,
81,
2261,
1769,
5411,
1033,
4641,
33,
2011,
31,
13491,
368,
775,
1104,
392,
2062,
4132,
5411,
4498,
5030,
7193,
273,
7734,
587,
781,
2276,
18,
588,
2276,
7675,
588,
4670,
1435,
10792,
263,
588,
8053,
12,
81,
2261,
16,
1109,
1119,
18,
588,
1841,
10756,
10792,
263,
9838,
5621,
5411,
1323,
12,
2
] |
System.err.println( "notifyRun(" + thread + ") " + this.jvmInfo.getName() );
|
public synchronized void notifyRun(TBeanThread thread) { System.err.println( "notifyRun(" + thread + ") " + this.jvmInfo.getName() ); if ( thread.getThrown() != null ) { try { System.err.println( "notifyRun(" + thread + ") " + this.jvmInfo.getName() + " sending error to master" ); waitFor( executeOn( getMasterNodeInfo(), new RunThrewCommand( getJvmId(), thread.getName(), thread.getThrown() ) ) ); System.err.println( "notifyRun(" + thread + ") " + this.jvmInfo.getName() + " sent error to master" ); } catch (Exception e) { e.printStackTrace(); } this.synchronizer.setError(); } System.err.println( "notifyRun(" + thread + ") " + this.jvmInfo.getName() + " notify all" ); this.synchronizer.reduceNumThreads(); ++this.completed; notifyAll(); }
|
4523 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4523/bd61f97e28288b56b607c49d0e7715ffedd4d8c1/SlaveNode.java/buggy/sysunit/src/main/org/sysunit/testmesh/slave/SlaveNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
5066,
1997,
12,
56,
3381,
3830,
2650,
13,
565,
288,
2868,
309,
261,
2650,
18,
588,
29591,
1435,
480,
446,
262,
3639,
288,
5411,
775,
5411,
288,
7734,
2332,
18,
370,
18,
8222,
12,
315,
12336,
1997,
2932,
397,
2650,
397,
9369,
315,
397,
333,
18,
78,
3489,
966,
18,
17994,
1435,
397,
315,
5431,
555,
358,
4171,
6,
11272,
7734,
10712,
12,
1836,
1398,
12,
27607,
25392,
9334,
4766,
565,
394,
1939,
1315,
16052,
2189,
12,
28292,
548,
9334,
4766,
7682,
2650,
18,
17994,
9334,
4766,
7682,
2650,
18,
588,
29591,
1435,
262,
262,
11272,
7734,
2332,
18,
370,
18,
8222,
12,
315,
12336,
1997,
2932,
397,
2650,
397,
9369,
315,
397,
333,
18,
78,
3489,
966,
18,
17994,
1435,
397,
315,
3271,
555,
358,
4171,
6,
11272,
5411,
289,
5411,
1044,
261,
503,
425,
13,
5411,
288,
7734,
425,
18,
1188,
6332,
5621,
5411,
289,
5411,
333,
18,
87,
2600,
1824,
18,
542,
668,
5621,
3639,
289,
3639,
2332,
18,
370,
18,
8222,
12,
315,
12336,
1997,
2932,
397,
2650,
397,
9369,
315,
397,
333,
18,
78,
3489,
966,
18,
17994,
1435,
397,
315,
5066,
777,
6,
11272,
3639,
333,
18,
87,
2600,
1824,
18,
12498,
2578,
13233,
5621,
3639,
965,
2211,
18,
13615,
31,
3639,
5066,
1595,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
5066,
1997,
12,
56,
3381,
3830,
2650,
13,
565,
288,
2868,
309,
261,
2650,
18,
588,
29591,
1435,
480,
446,
262,
3639,
288,
5411,
775,
5411,
288,
7734,
2332,
18,
370,
18,
8222,
12,
315,
12336,
1997,
2932,
397,
2650,
397,
9369,
315,
397,
333,
18,
78,
3489,
966,
18,
17994,
1435,
397,
315,
5431,
555,
358,
4171,
6,
11272,
7734,
10712,
12,
1836,
1398,
12,
27607,
25392,
9334,
4766,
565,
394,
1939,
1315,
16052,
2189,
12,
28292,
548,
9334,
4766,
7682,
2650,
18,
17994,
9334,
4766,
7682,
2650,
18,
588,
29591,
1435,
262,
262,
11272,
7734,
2332,
18,
370,
18,
8222,
12,
315,
12336,
1997,
2932,
397,
2650,
397,
9369,
315,
397,
333,
18,
2
] |
|
if (writerClassName != null) {
|
if (writerClassName != null && writer != null) {
|
public void readPlugins(String base) throws Exception { String baseURL = base; if (base == null) { baseURL = TiledConfiguration.getInstance().getValue( "tiled.plugins.dir"); } File dir = new File(baseURL); if (!dir.exists() || !dir.canRead()) { throw new Exception( "Could not open directory for reading plugins: " + baseURL); } File[] files = dir.listFiles(); for (int i = 0; i < files.length; i++) { String aPath = files[i].getAbsolutePath(); if (aPath.endsWith(".jar")) { try { JarFile jf = new JarFile(files[i]); String readerClassName = jf.getManifest().getMainAttributes().getValue( "Reader-Class"); String writerClassName = jf.getManifest().getMainAttributes().getValue( "Writer-Class"); Class readerClass = null, writerClass = null; // Verify that the jar has the necessary files to be a // plugin if (readerClassName == null && writerClassName == null) { continue; } JarEntry reader = jf.getJarEntry( readerClassName.replace('.', '/') + ".class"); JarEntry writer = jf.getJarEntry( writerClassName.replace('.', '/') + ".class"); if (readerClassName != null) { readerClass = loadFromJar(jf, reader, readerClassName); } if (writerClassName != null) { writerClass = loadFromJar(jf, writer, writerClassName); } boolean bPlugin = false; if (doesImplement(readerClass, "tiled.io.MapReader")) { bPlugin = true; } if (doesImplement(writerClass, "tiled.io.MapWriter")) { bPlugin = true; } if (bPlugin) { //System.out.println( // "Added " + files[i].getCanonicalPath()); super.addURL(new URL("file://" + aPath)); _add(readerClass); _add(writerClass); } } catch (IOException e) { e.printStackTrace(); } } } }
|
6621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6621/58363b95c220d8290d9fd1b2dca0eafab441b272/PluginClassLoader.java/buggy/tiled/mapeditor/plugin/PluginClassLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
855,
9461,
12,
780,
1026,
13,
1216,
1185,
288,
3639,
514,
17480,
273,
1026,
31,
3639,
309,
261,
1969,
422,
446,
13,
288,
5411,
17480,
273,
399,
1411,
1750,
18,
588,
1442,
7675,
24805,
12,
10792,
315,
88,
1411,
18,
8057,
18,
1214,
8863,
3639,
289,
3639,
1387,
1577,
273,
394,
1387,
12,
1969,
1785,
1769,
3639,
309,
16051,
1214,
18,
1808,
1435,
747,
401,
1214,
18,
4169,
1994,
10756,
288,
5411,
604,
394,
1185,
12,
10792,
315,
4445,
486,
1696,
1867,
364,
6453,
4799,
30,
315,
397,
10792,
17480,
1769,
3639,
289,
3639,
1387,
8526,
1390,
273,
1577,
18,
1098,
2697,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1390,
18,
2469,
31,
277,
27245,
288,
5411,
514,
279,
743,
273,
1390,
63,
77,
8009,
588,
10368,
743,
5621,
5411,
309,
261,
69,
743,
18,
5839,
1190,
2932,
18,
11930,
6,
3719,
288,
7734,
775,
288,
10792,
15644,
812,
525,
74,
273,
394,
15644,
812,
12,
2354,
63,
77,
19226,
10792,
514,
2949,
3834,
273,
13491,
525,
74,
18,
588,
9121,
7675,
588,
6376,
2498,
7675,
24805,
12,
27573,
315,
2514,
17,
797,
8863,
10792,
514,
2633,
3834,
273,
13491,
525,
74,
18,
588,
9121,
7675,
588,
6376,
2498,
7675,
24805,
12,
27573,
315,
2289,
17,
797,
8863,
10792,
1659,
2949,
797,
273,
446,
16,
2633,
797,
273,
446,
31,
10792,
368,
8553,
716,
326,
7334,
711,
326,
4573,
1390,
358,
506,
279,
10792,
368,
1909,
10792,
309,
261,
10530,
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,
855,
9461,
12,
780,
1026,
13,
1216,
1185,
288,
3639,
514,
17480,
273,
1026,
31,
3639,
309,
261,
1969,
422,
446,
13,
288,
5411,
17480,
273,
399,
1411,
1750,
18,
588,
1442,
7675,
24805,
12,
10792,
315,
88,
1411,
18,
8057,
18,
1214,
8863,
3639,
289,
3639,
1387,
1577,
273,
394,
1387,
12,
1969,
1785,
1769,
3639,
309,
16051,
1214,
18,
1808,
1435,
747,
401,
1214,
18,
4169,
1994,
10756,
288,
5411,
604,
394,
1185,
12,
10792,
315,
4445,
486,
1696,
1867,
364,
6453,
4799,
30,
315,
397,
10792,
17480,
1769,
3639,
289,
3639,
1387,
8526,
1390,
273,
1577,
18,
1098,
2697,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1390,
18,
2469,
2
] |
Map userCredentials = (Map)this.activeCredentialMaps.get(userID);
|
Map userCredentials = (Map)this.activeCredentialMaps.get(user.getID());
|
private Map getActiveCredentialMap(User user) { String userID = user.getID(); // Get user's credentials Map userCredentials = (Map)this.activeCredentialMaps.get(userID); // If mapping is empty, create new mapping if (userCredentials == null) { userCredentials = Collections.synchronizedSortedMap(new TreeMap()); activeCredentialMaps.put(userID, userCredentials); } return userCredentials; }
|
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/a7af66dc6098f1fd57b940a753df15a642dcccd1/GlobusCredentialManager.java/buggy/src/org/gridlab/gridsphere/services/grid/security/credential/impl/GlobusCredentialManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1635,
11960,
8605,
863,
12,
1299,
729,
13,
288,
3639,
514,
16299,
273,
729,
18,
588,
734,
5621,
3639,
368,
968,
729,
1807,
4448,
3639,
1635,
729,
6163,
273,
261,
863,
13,
2211,
18,
3535,
8605,
8903,
18,
588,
12,
1355,
18,
588,
734,
10663,
3639,
368,
971,
2874,
353,
1008,
16,
752,
394,
2874,
3639,
309,
261,
1355,
6163,
422,
446,
13,
288,
5411,
729,
6163,
273,
5737,
18,
22043,
11739,
863,
12,
2704,
16381,
10663,
5411,
2695,
8605,
8903,
18,
458,
12,
1355,
734,
16,
729,
6163,
1769,
3639,
289,
3639,
327,
729,
6163,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
1635,
11960,
8605,
863,
12,
1299,
729,
13,
288,
3639,
514,
16299,
273,
729,
18,
588,
734,
5621,
3639,
368,
968,
729,
1807,
4448,
3639,
1635,
729,
6163,
273,
261,
863,
13,
2211,
18,
3535,
8605,
8903,
18,
588,
12,
1355,
18,
588,
734,
10663,
3639,
368,
971,
2874,
353,
1008,
16,
752,
394,
2874,
3639,
309,
261,
1355,
6163,
422,
446,
13,
288,
5411,
729,
6163,
273,
5737,
18,
22043,
11739,
863,
12,
2704,
16381,
10663,
5411,
2695,
8605,
8903,
18,
458,
12,
1355,
734,
16,
729,
6163,
1769,
3639,
289,
3639,
327,
729,
6163,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final BufferedReader reader = new BufferedReader(new InputStreamReader(aProcess.getInputStream())); int c; boolean crSeen = false; while ((c = reader.read()) != -1) { if (c == '\r') { crSeen = true; } else { if (crSeen) { if (c != '\n') { output.append('\r'); } crSeen = false; } output.append((char)c); } } if (crSeen) { output.append('\r'); } aProcess.getErrorStream().close(); aProcess.getOutputStream().close(); reader.close(); return aProcess.waitFor();
|
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell != null) { if (!shell.endsWith("sh")) { shellSwitch = "/c"; } aProcess = Runtime.getRuntime().exec(new String[] { shell, shellSwitch, command }); } else { aProcess = Runtime.getRuntime().exec(command); } final BufferedReader reader = new BufferedReader(new InputStreamReader(aProcess.getInputStream())); // Fairly innefficient impl, but readLine is unable to tell // whether the last line in a process ended with a newline or not. int c; boolean crSeen = false; while ((c = reader.read()) != -1) { if (c == '\r') { crSeen = true; } else { if (crSeen) { if (c != '\n') { output.append('\r'); } crSeen = false; } output.append((char)c); } } if (crSeen) { output.append('\r'); } aProcess.getErrorStream().close(); aProcess.getOutputStream().close(); reader.close(); return aProcess.waitFor(); } catch (IOException e) { throw runtime.newIOErrorFromException(e); } catch (InterruptedException e) { throw runtime.newThreadError("unexpected interrupt"); } }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/b4a189a27604d62c317938f16a124fb9dab1e94a/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
1086,
382,
13220,
12,
7937,
10340,
3099,
16,
514,
1296,
16,
6674,
876,
13,
288,
3639,
775,
288,
5411,
514,
5972,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
10304,
8863,
5411,
4389,
279,
2227,
31,
5411,
514,
5972,
10200,
273,
3701,
71,
14432,
13491,
1296,
273,
20994,
1621,
5097,
87,
12,
3076,
1769,
13491,
309,
261,
10304,
480,
446,
13,
288,
7734,
309,
16051,
10304,
18,
5839,
1190,
2932,
674,
6,
3719,
288,
10792,
5972,
10200,
273,
2206,
71,
14432,
7734,
289,
7734,
279,
2227,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
2704,
514,
8526,
288,
5972,
16,
5972,
10200,
16,
1296,
15549,
5411,
289,
469,
288,
7734,
279,
2227,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
3076,
1769,
5411,
289,
5411,
727,
10633,
2949,
273,
394,
10633,
12,
2704,
15322,
12,
69,
2227,
18,
588,
4348,
1435,
10019,
5411,
368,
478,
1826,
715,
316,
4644,
8714,
9380,
16,
1496,
12273,
353,
13496,
358,
9276,
2398,
368,
2856,
326,
1142,
980,
316,
279,
1207,
16926,
598,
279,
9472,
578,
486,
18,
5411,
509,
276,
31,
5411,
1250,
4422,
15160,
273,
629,
31,
5411,
1323,
14015,
71,
273,
2949,
18,
896,
10756,
480,
300,
21,
13,
288,
2398,
202,
430,
261,
71,
422,
2337,
86,
6134,
288,
2398,
202,
202,
3353,
15160,
273,
638,
31,
2398,
202,
97,
469,
288,
2398,
202,
202,
430,
261,
3353,
15160,
13,
288,
2398,
1082,
202,
430,
261,
71,
480,
2337,
82,
6134,
288,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
1086,
382,
13220,
12,
7937,
10340,
3099,
16,
514,
1296,
16,
6674,
876,
13,
288,
3639,
775,
288,
5411,
514,
5972,
273,
2332,
18,
588,
1396,
2932,
78,
27768,
18,
10304,
8863,
5411,
4389,
279,
2227,
31,
5411,
514,
5972,
10200,
273,
3701,
71,
14432,
13491,
1296,
273,
20994,
1621,
5097,
87,
12,
3076,
1769,
13491,
309,
261,
10304,
480,
446,
13,
288,
7734,
309,
16051,
10304,
18,
5839,
1190,
2932,
674,
6,
3719,
288,
10792,
5972,
10200,
273,
2206,
71,
14432,
7734,
289,
7734,
279,
2227,
273,
2509,
18,
588,
5576,
7675,
4177,
12,
2704,
514,
8526,
288,
5972,
16,
5972,
10200,
16,
1296,
15549,
5411,
289,
469,
288,
7734,
279,
2227,
273,
2509,
2
] |
|
return getIconHeight(icon1) + getIconHeight(icon2); return Math.max(getIconHeight(icon1), getIconHeight(icon2));
|
return getIconHeight(leftIcon) + getIconHeight(rightIcon); return Math.max(getIconHeight(leftIcon), getIconHeight(rightIcon));
|
public int getIconHeight() { if (position == TOP || position == BOTTOM) return getIconHeight(icon1) + getIconHeight(icon2); return Math.max(getIconHeight(icon1), getIconHeight(icon2)); }
|
51282 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51282/8865599ec9a41ebbd978935441963cec8a222aa3/CompositeIcon.java/buggy/mydoggy-plaf/src/main/java/org/noos/xing/mydoggy/plaf/ui/icons/CompositeIcon.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
21724,
2686,
1435,
288,
3639,
309,
261,
3276,
422,
18680,
747,
1754,
422,
30666,
13,
5411,
327,
21724,
2686,
12,
3950,
21,
13,
397,
21724,
2686,
12,
3950,
22,
1769,
3639,
327,
2361,
18,
1896,
12,
588,
5554,
2686,
12,
3950,
21,
3631,
21724,
2686,
12,
3950,
22,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
509,
21724,
2686,
1435,
288,
3639,
309,
261,
3276,
422,
18680,
747,
1754,
422,
30666,
13,
5411,
327,
21724,
2686,
12,
3950,
21,
13,
397,
21724,
2686,
12,
3950,
22,
1769,
3639,
327,
2361,
18,
1896,
12,
588,
5554,
2686,
12,
3950,
21,
3631,
21724,
2686,
12,
3950,
22,
10019,
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
] |
List macs = new ArrayList();
|
Set<String> macs = new HashSet<String>();
|
boolean hasMacAddress(String macAddress) { List macs = new ArrayList(); Iterator ite = portMacs.values().iterator(); while (ite.hasNext()) { macs = (List) ite.next(); if (macs.contains(macAddress)) return true; } return false; }
|
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/ee81e7ef5d61dd58a6de7a13a9df99dc699e0c34/LinkableNode.java/clean/opennms-services/src/main/java/org/opennms/netmgt/linkd/LinkableNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
711,
9990,
1887,
12,
780,
5318,
1887,
13,
288,
202,
202,
682,
5318,
87,
273,
394,
2407,
5621,
202,
202,
3198,
518,
73,
273,
1756,
9990,
87,
18,
2372,
7675,
9838,
5621,
202,
202,
17523,
261,
1137,
18,
5332,
2134,
10756,
288,
1082,
202,
5821,
87,
273,
261,
682,
13,
518,
73,
18,
4285,
5621,
1082,
202,
430,
261,
5821,
87,
18,
12298,
12,
5821,
1887,
3719,
9506,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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12,
780,
5318,
1887,
13,
288,
202,
202,
682,
5318,
87,
273,
394,
2407,
5621,
202,
202,
3198,
518,
73,
273,
1756,
9990,
87,
18,
2372,
7675,
9838,
5621,
202,
202,
17523,
261,
1137,
18,
5332,
2134,
10756,
288,
1082,
202,
5821,
87,
273,
261,
682,
13,
518,
73,
18,
4285,
5621,
1082,
202,
430,
261,
5821,
87,
18,
12298,
12,
5821,
1887,
3719,
9506,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
createdPropertySet = new HashSet<XMethod>();
|
createdMethodParameterPropertySet = new HashSet<XMethod>();
|
public BuildNonNullAnnotationDatabase() { // Ensure we are using the same databases as the AnalysisContext. AnalysisContext analysisContext = AnalysisContext.currentAnalysisContext(); analysisContext.setNonNullParamDatabase( nonNullDatabase = createIfNeeded(analysisContext.getNonNullParamDatabase())); analysisContext.setPossiblyNullParamDatabase( possiblyNullDatabase = createIfNeeded(analysisContext.getPossiblyNullParamDatabase())); // Keep track of which properties we created. // When we encounter @NonNull and @PossiblyNull annotations, we // will override any existing properties in the database. createdPropertySet = new HashSet<XMethod>(); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/70c13b2ba41a07d1d6f02735310bec4f128c2265/BuildNonNullAnnotationDatabase.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/BuildNonNullAnnotationDatabase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3998,
8921,
3257,
4254,
1435,
288,
202,
202,
759,
7693,
732,
854,
1450,
326,
1967,
16358,
487,
326,
16318,
1042,
18,
202,
202,
9418,
1042,
6285,
1042,
273,
16318,
1042,
18,
2972,
9418,
1042,
5621,
202,
202,
12746,
1042,
18,
542,
8921,
786,
4254,
12,
9506,
202,
5836,
2041,
4254,
273,
752,
18299,
12,
12746,
1042,
18,
588,
8921,
786,
4254,
1435,
10019,
202,
202,
12746,
1042,
18,
542,
1616,
8781,
2041,
786,
4254,
12,
9506,
202,
917,
8781,
2041,
4254,
273,
752,
18299,
12,
12746,
1042,
18,
588,
1616,
8781,
2041,
786,
4254,
1435,
10019,
202,
202,
759,
10498,
3298,
434,
1492,
1790,
732,
2522,
18,
202,
202,
759,
5203,
732,
8273,
632,
8921,
471,
632,
1616,
8781,
2041,
5617,
16,
732,
202,
202,
759,
903,
3849,
1281,
2062,
1790,
316,
326,
2063,
18,
202,
202,
4824,
1396,
694,
273,
394,
6847,
32,
60,
1305,
34,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3998,
8921,
3257,
4254,
1435,
288,
202,
202,
759,
7693,
732,
854,
1450,
326,
1967,
16358,
487,
326,
16318,
1042,
18,
202,
202,
9418,
1042,
6285,
1042,
273,
16318,
1042,
18,
2972,
9418,
1042,
5621,
202,
202,
12746,
1042,
18,
542,
8921,
786,
4254,
12,
9506,
202,
5836,
2041,
4254,
273,
752,
18299,
12,
12746,
1042,
18,
588,
8921,
786,
4254,
1435,
10019,
202,
202,
12746,
1042,
18,
542,
1616,
8781,
2041,
786,
4254,
12,
9506,
202,
917,
8781,
2041,
4254,
273,
752,
18299,
12,
12746,
1042,
18,
588,
1616,
8781,
2041,
786,
4254,
1435,
10019,
202,
202,
759,
10498,
3298,
434,
1492,
1790,
732,
2522,
18,
202,
202,
759,
5203,
732,
8273,
632,
8921,
471,
2
] |
return false;
|
if (nativeRequest != null) return nativeRequest.isPortletModeAllowed(portletMode); else return false;
|
public boolean isPortletModeAllowed(PortletMode portletMode) { return false;//TODO }
|
52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/b447ea4ac6670702574a1b3dc4d87ec4234e84f5/ExternalContextToPortletRenderRequestWrapper.java/buggy/src/java/org/orbeon/oxf/externalcontext/ExternalContextToPortletRenderRequestWrapper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
353,
18566,
2309,
5042,
12,
18566,
2309,
13114,
2309,
13,
288,
3639,
327,
629,
31,
759,
6241,
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,
1071,
1250,
353,
18566,
2309,
5042,
12,
18566,
2309,
13114,
2309,
13,
288,
3639,
327,
629,
31,
759,
6241,
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 ((getStep() != null) && (getCompareValue() != null)) return true; else return false;
|
return (getStep() != null && getCompareValue() != null);
|
public boolean isNodeValueTest() { if (!_canOptimize) return false; if ((getStep() != null) && (getCompareValue() != null)) return true; else return false; }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/00a93536f5d540e84d3bba1a356b60bc17fb7bef/Predicate.java/buggy/src/org/apache/xalan/xsltc/compiler/Predicate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
28452,
620,
4709,
1435,
288,
202,
430,
16051,
67,
4169,
6179,
10153,
13,
327,
629,
31,
202,
430,
14015,
588,
4160,
1435,
480,
446,
13,
597,
261,
588,
8583,
620,
1435,
480,
446,
3719,
202,
565,
327,
638,
31,
202,
12107,
202,
565,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
31,
202,
12107,
202,
565,
327,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int[] w, PDFCIDSystemInfo systemInfo, PDFCIDFontDescriptor descriptor) {
|
int[] w, String registry, String ordering, int supplement, PDFCIDFontDescriptor descriptor) {
|
public PDFCIDFont(int number, String basefont, CIDFontType cidtype, int dw, int[] w, PDFCIDSystemInfo systemInfo, PDFCIDFontDescriptor descriptor) { this(number, basefont, cidtype, dw, new PDFWArray(w), systemInfo, descriptor); }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/1b4d7d4c8819312c3c3964abb6f151545b1fe0e2/PDFCIDFont.java/buggy/src/org/apache/fop/pdf/PDFCIDFont.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28704,
4488,
734,
5711,
12,
474,
1300,
16,
514,
1026,
5776,
16,
385,
734,
5711,
559,
7504,
723,
16,
509,
12394,
16,
8227,
509,
8526,
341,
16,
28704,
4488,
734,
3163,
966,
2619,
966,
16,
8227,
28704,
4488,
734,
5711,
3187,
4950,
13,
288,
3639,
333,
12,
2696,
16,
1026,
5776,
16,
7504,
723,
16,
12394,
16,
1171,
394,
12667,
59,
1076,
12,
91,
3631,
1171,
2619,
966,
16,
7734,
4950,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
28704,
4488,
734,
5711,
12,
474,
1300,
16,
514,
1026,
5776,
16,
385,
734,
5711,
559,
7504,
723,
16,
509,
12394,
16,
8227,
509,
8526,
341,
16,
28704,
4488,
734,
3163,
966,
2619,
966,
16,
8227,
28704,
4488,
734,
5711,
3187,
4950,
13,
288,
3639,
333,
12,
2696,
16,
1026,
5776,
16,
7504,
723,
16,
12394,
16,
1171,
394,
12667,
59,
1076,
12,
91,
3631,
1171,
2619,
966,
16,
7734,
4950,
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
] |
FileLoggerHook logger = new FileLoggerHook(true, new File(logDir, "freenet-"+port).getAbsolutePath(), "d (c, t, p): m", "MMM dd, yyyy HH:mm:ss:SSS", Logger.MINOR, false, true);
|
FileLoggerHook logger = new FileLoggerHook(true, new File(logDir, "freenet-"+port).getAbsolutePath(), "d (c, t, p): m", "MMM dd, yyyy HH:mm:ss:SSS", Logger.MINOR, false, true, 1024*1024*1024 /* 1GB of old compressed logfiles */);
|
public static void main(String[] args) throws IOException { int length = args.length; if (length < 1 || length > 3) { System.out.println("Usage: $ java freenet.node.Node <portNumber> [ipOverride] [max data packets / second]"); return; } int port = Integer.parseInt(args[0]); System.out.println("Port number: "+port); File logDir = new File("logs-"+port); logDir.mkdir(); FileLoggerHook logger = new FileLoggerHook(true, new File(logDir, "freenet-"+port).getAbsolutePath(), "d (c, t, p): m", "MMM dd, yyyy HH:mm:ss:SSS", Logger.MINOR, false, true); logger.setInterval("5MINUTES"); Logger.setupChain(); Logger.globalSetThreshold(Logger.MINOR); Logger.globalAddHook(logger); logger.start(); Logger.normal(Node.class, "Creating node..."); Yarrow yarrow = new Yarrow(); InetAddress overrideIP = null; int packetsPerSecond = 15; if(args.length > 1) { overrideIP = InetAddress.getByName(args[1]); System.err.println("Overriding IP detection: "+overrideIP.getHostAddress()); if(args.length > 2) { packetsPerSecond = Integer.parseInt(args[2]); } } DiffieHellman.init(yarrow); Node n = new Node(port, yarrow, overrideIP, "", 1000 / packetsPerSecond); n.start(new StaticSwapRequestInterval(2000)); new TextModeClientInterface(n); Thread t = new Thread(new MemoryChecker(), "Memory checker"); t.setPriority(Thread.MAX_PRIORITY); t.start(); }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/a79c2f6114f06bff0b9fe2bbba4e7a4fe7a7e305/Node.java/buggy/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
377,
202,
474,
769,
273,
833,
18,
2469,
31,
377,
202,
430,
261,
2469,
411,
404,
747,
769,
405,
890,
13,
288,
377,
202,
202,
3163,
18,
659,
18,
8222,
2932,
5357,
30,
271,
2252,
284,
2842,
278,
18,
2159,
18,
907,
411,
655,
1854,
34,
306,
625,
6618,
65,
306,
1896,
501,
12640,
342,
2205,
4279,
1769,
377,
202,
202,
2463,
31,
377,
202,
97,
377,
202,
3639,
509,
1756,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
20,
19226,
3639,
2332,
18,
659,
18,
8222,
2932,
2617,
1300,
30,
13773,
655,
1769,
3639,
1387,
31101,
273,
394,
1387,
2932,
10011,
10951,
15,
655,
1769,
3639,
31101,
18,
26686,
5621,
3639,
1387,
3328,
5394,
1194,
273,
394,
1387,
3328,
5394,
12,
3767,
16,
394,
1387,
12,
1330,
1621,
16,
315,
74,
2842,
278,
10951,
15,
655,
2934,
588,
10368,
743,
9334,
315,
72,
261,
71,
16,
268,
16,
293,
4672,
312,
3113,
315,
8206,
49,
6957,
16,
24025,
20842,
30,
7020,
30,
1049,
30,
1260,
55,
3113,
4242,
18,
6236,
916,
16,
629,
16,
638,
16,
6250,
14,
2163,
3247,
14,
2163,
3247,
1748,
404,
5887,
434,
1592,
8968,
613,
2354,
1195,
1769,
3639,
1194,
18,
542,
4006,
2932,
25,
6236,
24080,
8863,
3639,
4242,
18,
8401,
3893,
5621,
3639,
4242,
18,
6347,
694,
7614,
12,
3328,
18,
6236,
916,
1769,
3639,
4242,
18,
6347,
986,
5394,
12,
4901,
1769,
3639,
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,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
377,
202,
474,
769,
273,
833,
18,
2469,
31,
377,
202,
430,
261,
2469,
411,
404,
747,
769,
405,
890,
13,
288,
377,
202,
202,
3163,
18,
659,
18,
8222,
2932,
5357,
30,
271,
2252,
284,
2842,
278,
18,
2159,
18,
907,
411,
655,
1854,
34,
306,
625,
6618,
65,
306,
1896,
501,
12640,
342,
2205,
4279,
1769,
377,
202,
202,
2463,
31,
377,
202,
97,
377,
202,
3639,
509,
1756,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
20,
19226,
3639,
2332,
18,
659,
18,
8222,
2932,
2617,
1300,
30,
13773,
655,
1769,
3639,
1387,
31101,
273,
394,
1387,
2932,
10011,
10951,
15,
655,
1769,
2
] |
public byte[] getContentEdit(CmsObject cms, CmsXmlWpTemplateFile template, String elementName, Hashtable parameters, String templateSelector) throws CmsException { //get the Languagedata CmsXmlLanguageFile lang = new CmsXmlLanguageFile(cms); //create appropriate class name with underscores for labels String moduleName = ""; moduleName = (String) getClass().toString(); //get name moduleName = moduleName.substring(5); //remove 'class' substring at the beginning moduleName = moduleName.trim(); moduleName = moduleName.replace('.', '_'); //replace dots with underscores //session I_CmsSession session = cms.getRequestContext().getSession(true); //default error String error=""; //get values of all fields //gets the parameter action from the hashtable. String action = (String) parameters.get("action"); if (action == null){ action=""; } else if (action.equals("exit")){ clearSession(session); templateSelector= "done"; return startProcessing(cms, template, "", parameters, templateSelector); } // Get the parameter values //get value of id String id = (String) parameters.get("id"); String channelid = (String) parameters.get("channelId"); String resourceid = (String) parameters.get("resourceid"); //get value of parentId String parentName = (String) parameters.get("parentName"); if(parentName == null || parentName.equals("")){ parentName="/"; } //channelname String channelname = (String) parameters.get("channelName"); if(channelname == null){ channelname = ""; } //plausibility check if(!action.equals("") && channelname.trim().equals("")){ error = lang.getLanguageValue(moduleName+".error.message2"); } //title of channel String title = (String) parameters.get("title"); String owner=(String) parameters.get("owner"); owner=(owner!=null?owner.trim():""); String group=(String) parameters.get("groupId"); group=(group!=null?group.trim():""); int accessFlags = this.getAccessValue(parameters); //new channel if (id == null || id.equals("")){ id = "new"; } if(channelid==null || channelid.trim().equals("")){ channelid="-1"; } if(resourceid==null || resourceid.trim().equals("")){ resourceid="-1"; } if(id.equals("new")){ if(resourceid.equals("-1")){ cd=null; }else{ id=resourceid; } } // for the first call check if the id exist, i.e. if the category is to edit // and it is not created new one then read the information of category if (action.equals("") && !id.equals("new")) { try { Integer.parseInt(id); } catch (Exception err) { throw new CmsException(err.getMessage()); } // gets the already existing ouputchannel's content definition. cd = new CmsChannelContent(cms,new CmsUUID(id)); parentName=cd.getParentName(); idvalue=cd.getChannelId(); resid=""+cd.getId(); channelname=cd.getChannelName(); title=cd.getTitle(); owner=cd.getOwner().toString(); group=cd.getGroupId().toString(); accessFlags=cd.getAccessFlags(); }else if(cd==null){ //create a new ouputchannels content definition. cd = new CmsChannelContent(cms); idvalue=C_UNKNOWN_ID+""; resid=C_UNKNOWN_ID+""; } //put parentId in session for user method session.putValue("parentName",parentName); session.putValue("id",resid+""); //set data in CD when data is correct if(error.equals("") && !action.equals("")) { cd.setChannelId(idvalue); cd.setParentName(parentName); cd.setChannelName(channelname); cd.setTitle(title); cd.setGroup(new CmsUUID(group)); cd.setOwner(new CmsUUID(owner)); cd.setAccessFlags(accessFlags); } //get values of the user for new entry String defaultGroup=cms.getRequestContext().currentGroup().getName(); String defaultUser=cms.getRequestContext().currentUser().getName(); //get all groups Vector cmsGroups=cms.getGroups(); // select box of group String groupOptions=""; for (int i=0; i<cmsGroups.size(); i++) { String groupName=((CmsGroup)cmsGroups.elementAt(i)).getName(); CmsUUID groupId=((CmsGroup)cmsGroups.elementAt(i)).getId(); template.setData("name",groupName); template.setData("value",groupId.toString()); if (!group.equals("") && (cms.readGroup(new CmsUUID(group)).getName()).equals(groupName)) { template.setData("check","selected"); }else if(idvalue.equals(C_UNKNOWN_ID+"") && groupName.equals(defaultGroup)){ template.setData("check","selected"); }else{ template.setData("check",""); } groupOptions=groupOptions+template.getProcessedDataValue("selectoption",this); } template.setData("groups",groupOptions); // select box of owner String userOptions=""; Vector cmsUsers=cms.getUsers(); for (int i=0;i<cmsUsers.size();i++) { String userName=((CmsUser)cmsUsers.elementAt(i)).getName(); CmsUUID userId=((CmsUser)cmsUsers.elementAt(i)).getId(); template.setData("name",userName); template.setData("value",userId.toString()); if (!owner.equals("") && (cms.readUser(new CmsUUID(owner)).getName()).equals(userName)) { template.setData("check","selected"); }else if(idvalue.equals(C_UNKNOWN_ID+"") && userName.equals(defaultUser)){ template.setData("check","selected"); }else{ template.setData("check",""); } userOptions=userOptions+template.getProcessedDataValue("selectoption",this); } template.setData("users",userOptions); // set the access flags this.setAccessValue(template, cd.getAccessFlags()); //set data in template template.setData("channelId", ""+cd.getChannelId()); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", cd.getChannelName()); template.setData("title", Encoder.escape(cd.getTitle(), cms.getRequestContext().getEncoding())); template.setData("parentName", cd.getParentName()); template.setData("error", error); //if the saveexit-button has been clicked. if(action.equals("saveexit") && error.equals("")){ try{ cd.setChannelId(channelid); //write/save cd.write(cms); //exit clearSession(session); templateSelector = "done"; return startProcessing(cms, template, "", parameters, templateSelector); }catch (CmsException exc){ template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", channelname); template.setData("title", Encoder.escape(title, cms.getRequestContext().getEncoding())); template.setData("parentName", parentName); error = lang.getLanguageValue(moduleName+".error.message3")+" "+exc.getShortException(); template.setData("error", error); //log exc.printStackTrace(System.err); }catch (Exception e){ template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", channelname); template.setData("title", Encoder.escape(title, cms.getRequestContext().getEncoding())); template.setData("parentName", parentName); error = lang.getLanguageValue(moduleName+".error.message3")+" "+e.getMessage(); template.setData("error", error); //log e.printStackTrace(System.err); } } //if the "save"-button has been clicked. if(action.equals("save") && error.equals("")){ try{ cd.setChannelId(channelid); //write cd.write(cms); idvalue=cd.getChannelId(); template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); //indicator for saved new entrys - the new id template.setData("newChannelId", idvalue); }catch (CmsException exc){ template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", channelname); template.setData("title", Encoder.escape(title, cms.getRequestContext().getEncoding())); template.setData("parentName", parentName); error = lang.getLanguageValue(moduleName+".error.message3")+" "+exc.getShortException(); template.setData("error", error); //log exc.printStackTrace(System.err); }catch (Exception e){ e.printStackTrace(System.err); template.setData("channelId", channelid); template.setData("resourceid", ""+cd.getId()); template.setData("channelName", channelname); template.setData("title", Encoder.escape(title, cms.getRequestContext().getEncoding())); template.setData("parentName", parentName); error = lang.getLanguageValue(moduleName+".error.message3")+" "+e.getMessage(); template.setData("error", error); } } //finally start the processing return startProcessing(cms, template, elementName, parameters, templateSelector); }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/02e8d5ae9a306d7ef68522073d5b20f3d55d68f5/CmsChannelBackoffice.java/buggy/src/com/opencms/defaults/master/CmsChannelBackoffice.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
225,
1160,
8526,
225,
5154,
4666,
12,
4747,
921,
225,
6166,
16,
225,
16084,
59,
84,
2283,
812,
225,
1542,
16,
225,
514,
225,
14453,
16,
4766,
12900,
18559,
225,
1472,
16,
225,
514,
225,
1542,
4320,
13,
225,
1216,
225,
11228,
225,
288,
7734,
368,
588,
225,
326,
225,
511,
1563,
11349,
396,
7734,
16084,
3779,
812,
225,
3303,
225,
273,
225,
394,
225,
16084,
3779,
812,
12,
6851,
1769,
7734,
368,
2640,
225,
5505,
225,
667,
225,
508,
225,
598,
225,
24714,
225,
364,
225,
3249,
7734,
514,
225,
9780,
225,
273,
225,
1408,
31,
7734,
9780,
225,
273,
225,
261,
780,
13,
225,
2900,
7675,
10492,
5621,
225,
368,
588,
225,
508,
7734,
9780,
225,
273,
225,
9780,
18,
28023,
12,
25,
1769,
225,
368,
4479,
225,
296,
1106,
11,
225,
3019,
225,
622,
225,
326,
225,
8435,
7734,
9780,
225,
273,
225,
9780,
18,
5290,
5621,
7734,
9780,
225,
273,
225,
9780,
18,
2079,
2668,
1093,
16,
225,
4427,
1769,
225,
368,
2079,
225,
19522,
225,
598,
225,
24714,
7734,
368,
3184,
7734,
467,
67,
4747,
2157,
225,
1339,
225,
273,
225,
6166,
18,
588,
21426,
7675,
588,
2157,
12,
3767,
1769,
7734,
368,
1886,
225,
555,
7734,
514,
225,
555,
1546,
14432,
7734,
368,
588,
225,
924,
225,
434,
225,
777,
225,
1466,
7734,
368,
14665,
225,
326,
225,
1569,
225,
1301,
225,
628,
225,
326,
225,
711,
14544,
18,
7734,
514,
225,
1301,
225,
273,
225,
261,
780,
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,
540,
1071,
225,
1160,
8526,
225,
5154,
4666,
12,
4747,
921,
225,
6166,
16,
225,
16084,
59,
84,
2283,
812,
225,
1542,
16,
225,
514,
225,
14453,
16,
4766,
12900,
18559,
225,
1472,
16,
225,
514,
225,
1542,
4320,
13,
225,
1216,
225,
11228,
225,
288,
7734,
368,
588,
225,
326,
225,
511,
1563,
11349,
396,
7734,
16084,
3779,
812,
225,
3303,
225,
273,
225,
394,
225,
16084,
3779,
812,
12,
6851,
1769,
7734,
368,
2640,
225,
5505,
225,
667,
225,
508,
225,
598,
225,
24714,
225,
364,
225,
3249,
7734,
514,
225,
9780,
225,
273,
225,
1408,
31,
7734,
9780,
225,
273,
225,
261,
780,
13,
225,
2900,
7675,
10492,
5621,
225,
368,
588,
225,
508,
7734,
9780,
2
] |
||
public void testUseSingleton4()
|
public void testUseSingleton4()
|
public void testUseSingleton4() throws Throwable { Report report = process("UseSingleton4.java", new UseSingletonRule()); assertEquals( 0, report.size() ); }
|
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/0d9d4aba97ae013d0f5fdb62f43a9f9d81c729a2/UseSingletonRuleTest.java/buggy/pmd/regress/test/net/sourceforge/pmd/rules/design/UseSingletonRuleTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3727,
19571,
24,
1435,
225,
202,
15069,
4206,
377,
288,
202,
4820,
2605,
273,
1207,
2932,
3727,
19571,
24,
18,
6290,
3113,
9506,
202,
2704,
2672,
19571,
2175,
10663,
202,
11231,
8867,
12,
374,
16,
2605,
18,
1467,
1435,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3727,
19571,
24,
1435,
225,
202,
15069,
4206,
377,
288,
202,
4820,
2605,
273,
1207,
2932,
3727,
19571,
24,
18,
6290,
3113,
9506,
202,
2704,
2672,
19571,
2175,
10663,
202,
11231,
8867,
12,
374,
16,
2605,
18,
1467,
1435,
11272,
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
] |
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); if (root.exists(destinationPath)) { IContainer container = (IContainer) root .findMember(destinationPath);
|
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); if (root.exists(destinationPath)) { IContainer container = (IContainer) root .findMember(destinationPath);
|
public void execute(IProgressMonitor monitor) { // Checks only required if this is an exisiting container path. IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); if (root.exists(destinationPath)) { IContainer container = (IContainer) root .findMember(destinationPath); performFileImport(getFiles(fileNames), container, monitor); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/48cbfd568805d8302ff76e177e1533df1b92a834/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1836,
12,
45,
5491,
7187,
6438,
13,
288,
7734,
368,
13074,
1338,
1931,
309,
333,
353,
392,
431,
291,
305,
310,
1478,
589,
18,
7734,
467,
8241,
2375,
1365,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
5621,
7734,
309,
261,
3085,
18,
1808,
12,
10590,
743,
3719,
288,
10792,
467,
2170,
1478,
273,
261,
45,
2170,
13,
1365,
18701,
263,
4720,
4419,
12,
10590,
743,
1769,
10792,
3073,
812,
5010,
12,
588,
2697,
12,
768,
1557,
3631,
1478,
16,
6438,
1769,
7734,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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981,
30,
2398,
1071,
918,
1836,
12,
45,
5491,
7187,
6438,
13,
288,
7734,
368,
13074,
1338,
1931,
309,
333,
353,
392,
431,
291,
305,
310,
1478,
589,
18,
7734,
467,
8241,
2375,
1365,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
5621,
7734,
309,
261,
3085,
18,
1808,
12,
10590,
743,
3719,
288,
10792,
467,
2170,
1478,
273,
261,
45,
2170,
13,
1365,
18701,
263,
4720,
4419,
12,
10590,
743,
1769,
10792,
3073,
812,
5010,
12,
588,
2697,
12,
768,
1557,
3631,
1478,
16,
6438,
1769,
7734,
289,
5411,
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
] |
ComboBoxColorCellEditor.this.fireApplyEditorValue();
|
public void widgetSelected( SelectionEvent event ) { selection = comboBox.getSelectionIndex( ); comboBox.select( selection ); doSetValue( comboBox.getItem( selection ) ); applyEditorValueAndDeactivate( ); ComboBoxColorCellEditor.this.fireApplyEditorValue(); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8760be44f5d91797099c3a1b1f8881f2a477764b/ComboBoxColorCellEditor.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/property/widgets/ComboBoxColorCellEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
871,
262,
1082,
202,
95,
9506,
202,
10705,
273,
16778,
3514,
18,
588,
6233,
1016,
12,
11272,
9506,
202,
25053,
3514,
18,
4025,
12,
4421,
11272,
9506,
202,
2896,
694,
620,
12,
16778,
3514,
18,
588,
1180,
12,
4421,
262,
11272,
9506,
202,
9010,
6946,
620,
1876,
758,
10014,
12,
11272,
9506,
202,
22199,
2957,
4020,
6946,
18,
2211,
18,
12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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1875,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
871,
262,
1082,
202,
95,
9506,
202,
10705,
273,
16778,
3514,
18,
588,
6233,
1016,
12,
11272,
9506,
202,
25053,
3514,
18,
4025,
12,
4421,
11272,
9506,
202,
2896,
694,
620,
12,
16778,
3514,
18,
588,
1180,
12,
4421,
262,
11272,
9506,
202,
9010,
6946,
620,
1876,
758,
10014,
12,
11272,
9506,
202,
22199,
2957,
4020,
6946,
18,
2211,
18,
12179,
7001,
6946,
620,
5621,
1082,
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
] |
|
if (null == curItem) {
|
if (curItem == null) {
|
private void refreshCamos() { // Get the local player's selected camo. String curCat = client.getLocalPlayer().getCamoCategory(); String curItem = client.getLocalPlayer().getCamoFileName(); // If the player has no camo selected, show his color. if (null == curItem) { curCat = Player.NO_CAMO; curItem = Player.colorNames[client.getLocalPlayer().getColorIndex()]; } // Now update the camo selection dialog. camoDialog.setCategory(curCat); camoDialog.setItemName(curItem); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/e532dfd86976d2632c3951cc8f69e2c8f2da9fa1/ChatLounge.java/clean/megamek/src/megamek/client/ui/swing/ChatLounge.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4460,
39,
301,
538,
1435,
288,
3639,
368,
968,
326,
1191,
7291,
1807,
3170,
5861,
83,
18,
3639,
514,
662,
11554,
273,
1004,
18,
588,
2042,
12148,
7675,
588,
39,
301,
83,
4457,
5621,
3639,
514,
662,
1180,
273,
1004,
18,
588,
2042,
12148,
7675,
588,
39,
301,
83,
4771,
5621,
3639,
368,
971,
326,
7291,
711,
1158,
5861,
83,
3170,
16,
2405,
18423,
2036,
18,
3639,
309,
261,
1397,
1180,
422,
446,
13,
288,
5411,
662,
11554,
273,
19185,
18,
3417,
67,
39,
2192,
51,
31,
5411,
662,
1180,
273,
19185,
18,
3266,
1557,
63,
2625,
18,
588,
2042,
12148,
7675,
588,
2957,
1016,
1435,
15533,
3639,
289,
3639,
368,
4494,
1089,
326,
5861,
83,
4421,
6176,
18,
3639,
5861,
83,
6353,
18,
542,
4457,
12,
1397,
11554,
1769,
3639,
5861,
83,
6353,
18,
542,
1180,
461,
12,
1397,
1180,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4460,
39,
301,
538,
1435,
288,
3639,
368,
968,
326,
1191,
7291,
1807,
3170,
5861,
83,
18,
3639,
514,
662,
11554,
273,
1004,
18,
588,
2042,
12148,
7675,
588,
39,
301,
83,
4457,
5621,
3639,
514,
662,
1180,
273,
1004,
18,
588,
2042,
12148,
7675,
588,
39,
301,
83,
4771,
5621,
3639,
368,
971,
326,
7291,
711,
1158,
5861,
83,
3170,
16,
2405,
18423,
2036,
18,
3639,
309,
261,
1397,
1180,
422,
446,
13,
288,
5411,
662,
11554,
273,
19185,
18,
3417,
67,
39,
2192,
51,
31,
5411,
662,
1180,
273,
19185,
18,
3266,
1557,
63,
2625,
18,
588,
2042,
12148,
7675,
588,
2957,
1016,
1435,
15533,
3639,
289,
3639,
368,
4494,
1089,
326,
5861,
83,
2
] |
case 35: break;
|
case 38: break;
|
public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 23: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); try { s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } catch (CommentException e) { w.write("/* "+commentEncode(e.getMessage())+" */"); } } case 31: break; case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 32: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 33: break; case 22: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 34: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 35: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 36: break; case 25: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 37: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 38: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 39: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 40: break; case 20: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 41: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 42: break; case 26: { String s = yytext(); s = s.substring("@media".length()).trim(); w.write("@media "+s+ ' '); if(debug) log("Matched @media: "+s); } case 43: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 44: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 45: break; case 28: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 46: break; case 19: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 47: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 48: break; case 27: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); try { s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } catch (CommentException e) { w.write("/* " + commentEncode(e.getMessage()) + " */"); } } case 49: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 50: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 51: break; case 21: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 52: break; case 15: { if(!deleteErrors) { throwError("Unknown @identifier "+yytext()); } else { String s = yytext(); if(debug) log("Discarded identifier: "+s); // Ignore } } case 53: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 54: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 55: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 56: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 57: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 58: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 59: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 60: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } }
|
50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/58e844dc77aa5d1ee9f4952f22f0f7b6b8469457/CSSTokenizerFilter.java/clean/src/freenet/clients/http/filter/CSSTokenizerFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
1323,
261,
3767,
13,
288,
1377,
11273,
21486,
1616,
48,
273,
11273,
21486,
1616,
31,
1377,
11273,
1803,
273,
300,
21,
31,
1377,
11273,
3935,
1616,
48,
273,
11273,
3935,
1616,
273,
11273,
1685,
1994,
273,
11273,
21486,
1616,
48,
31,
3639,
11273,
1119,
273,
11273,
14756,
1706,
1119,
31,
1377,
11273,
1290,
1803,
30,
288,
3639,
1323,
261,
3767,
13,
288,
2868,
309,
261,
6378,
3935,
1616,
48,
411,
11273,
1638,
1994,
48,
13,
5411,
11273,
1210,
273,
11273,
1892,
48,
63,
6378,
3935,
1616,
48,
9904,
15533,
1850,
469,
309,
261,
6378,
861,
12706,
13,
288,
5411,
11273,
1210,
273,
1624,
61,
12706,
31,
5411,
898,
11273,
1290,
1803,
31,
1850,
289,
1850,
469,
288,
5411,
368,
1707,
1473,
3472,
6865,
5411,
11273,
3935,
1616,
225,
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,
1624,
93,
2316,
677,
1362,
92,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
11273,
1210,
31,
565,
509,
11273,
1803,
31,
565,
368,
3472,
1466,
30,
565,
509,
11273,
3935,
1616,
48,
31,
565,
509,
11273,
21486,
1616,
48,
31,
565,
509,
11273,
1638,
1994,
48,
273,
11273,
1638,
1994,
31,
565,
1149,
5378,
11273,
1892,
48,
273,
11273,
1892,
31,
565,
1149,
5378,
11273,
39,
863,
48,
273,
2285,
62,
67,
39,
8352,
31,
565,
509,
5378,
11273,
1429,
48,
273,
2285,
62,
67,
16596,
31,
565,
509,
5378,
11273,
1999,
863,
48,
273,
2285,
62,
67,
11226,
8352,
31,
565,
509,
5378,
11273,
3843,
48,
273,
2285,
62,
67,
11616,
31,
565,
2
] |
final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong();
|
final GPR ECX = X86Register.ECX; final IntItem cnt = vstack.popInt(); final LongItem val = vstack.popLong();
|
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb = v1.getMsbRegister(eContext); final Label curInstrLabel = getCurInstrLabel(); os.writeAND(X86Register.ECX, 63); os.writeCMP_Const(X86Register.ECX, 32); final Label gt32Label = new Label(curInstrLabel + "gt32"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(gt32Label, X86Constants.JAE); // JAE /** ECX < 32 */ os.writeSHLD_CL(v1_msb, v1_lsb); os.writeSHL_CL(v1_lsb); os.writeJMP(endLabel); /** ECX >= 32 */ os.setObjectRef(gt32Label); os.writeMOV(INTSIZE, v1_msb, v1_lsb); os.writeXOR(v1_lsb, v1_lsb); os.writeSHL_CL(v1_msb); os.setObjectRef(endLabel); } else { final GPR64 v1r = v1.getRegister(eContext); os.writeSHL_CL(v1r); } // Release v2.release(eContext); vstack.push(v1); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86BytecodeVisitor.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
80,
674,
80,
1435,
288,
202,
202,
6385,
3094,
1180,
331,
22,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
6385,
3407,
1180,
331,
21,
273,
19510,
18,
5120,
3708,
5621,
202,
202,
48,
21,
37,
2276,
18,
2293,
3996,
12,
73,
1042,
16,
1139,
5292,
3996,
18,
7228,
60,
16,
331,
22,
1769,
202,
202,
90,
22,
18,
945,
774,
12,
73,
1042,
16,
1139,
5292,
3996,
18,
7228,
60,
1769,
202,
202,
90,
21,
18,
945,
12,
73,
1042,
1769,
202,
202,
430,
261,
538,
18,
291,
1085,
1578,
10756,
288,
1082,
202,
6385,
4948,
54,
331,
21,
67,
3251,
70,
273,
331,
21,
18,
588,
48,
18366,
3996,
12,
73,
1042,
1769,
1082,
202,
6385,
4948,
54,
331,
21,
67,
959,
70,
273,
331,
21,
18,
588,
6947,
70,
3996,
12,
73,
1042,
1769,
5411,
727,
5287,
662,
382,
701,
2224,
273,
14135,
382,
701,
2224,
5621,
1082,
202,
538,
18,
2626,
4307,
12,
60,
5292,
3996,
18,
7228,
60,
16,
13746,
1769,
1082,
202,
538,
18,
2626,
39,
4566,
67,
9661,
12,
60,
5292,
3996,
18,
7228,
60,
16,
3847,
1769,
1082,
202,
6385,
5287,
9879,
1578,
2224,
273,
394,
5287,
12,
1397,
382,
701,
2224,
397,
315,
4521,
1578,
8863,
1082,
202,
6385,
5287,
679,
2224,
273,
394,
5287,
12,
1397,
382,
701,
2224,
397,
315,
409,
8863,
1082,
202,
538,
18,
2626,
46,
6743,
12,
4521,
1578,
2224,
16,
1139,
5292,
2918,
18,
46,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3757,
67,
80,
674,
80,
1435,
288,
202,
202,
6385,
3094,
1180,
331,
22,
273,
19510,
18,
5120,
1702,
5621,
202,
202,
6385,
3407,
1180,
331,
21,
273,
19510,
18,
5120,
3708,
5621,
202,
202,
48,
21,
37,
2276,
18,
2293,
3996,
12,
73,
1042,
16,
1139,
5292,
3996,
18,
7228,
60,
16,
331,
22,
1769,
202,
202,
90,
22,
18,
945,
774,
12,
73,
1042,
16,
1139,
5292,
3996,
18,
7228,
60,
1769,
202,
202,
90,
21,
18,
945,
12,
73,
1042,
1769,
202,
202,
430,
261,
538,
18,
291,
1085,
1578,
10756,
288,
1082,
202,
6385,
4948,
54,
331,
21,
67,
3251,
70,
273,
331,
21,
18,
588,
48,
18366,
3996,
12,
2
] |
public RModel() { String[] args = {"--vanilla","-q", "--slave"}; logger = new LoggingTool(this); String initRFromString = System.getProperty("initRFromString"); boolean useDisk = true; if (initRFromString != null && initRFromString.equals("true")) { useDisk = false; } if (!doneInit) { this.interp = new ROmegahatInterpreter(ROmegahatInterpreter.fixArgs(args), false); this.revaluator = new REvaluator(); if (useDisk) { loadRFunctions(this.revaluator); logger.info("Initializing from disk"); } else { loadRFunctionsAsStrings(this.revaluator); logger.info("Initializing from strings"); } doneInit = true; logger.info("SJava initialized"); } else { logger.info("SJava already initialized"); } }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/a08c6ae51fd6e8e2448b2b9fde92a30a4e271589/RModel.java/buggy/src/org/openscience/cdk/qsar/model/R/RModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
534,
1488,
1435,
288,
3639,
514,
8526,
833,
273,
12528,
413,
90,
26476,
15937,
17,
85,
3113,
5238,
27352,
6,
20451,
3639,
1194,
273,
394,
10253,
6364,
12,
2211,
1769,
3639,
514,
1208,
54,
9193,
273,
2332,
18,
588,
1396,
2932,
2738,
54,
9193,
8863,
3639,
1250,
999,
6247,
273,
638,
31,
3639,
309,
261,
2738,
54,
9193,
480,
446,
597,
1208,
54,
9193,
18,
14963,
2932,
3767,
6,
3719,
288,
5411,
999,
6247,
273,
629,
31,
3639,
289,
1171,
309,
16051,
8734,
2570,
13,
288,
5411,
333,
18,
24940,
273,
394,
6525,
81,
1332,
9795,
270,
30010,
12,
1457,
81,
1332,
9795,
270,
30010,
18,
904,
2615,
12,
1968,
3631,
629,
1769,
5411,
333,
18,
266,
4531,
639,
273,
394,
2438,
4531,
639,
5621,
5411,
309,
261,
1202,
6247,
13,
288,
7734,
1262,
54,
7503,
12,
2211,
18,
266,
4531,
639,
1769,
7734,
1194,
18,
1376,
2932,
29782,
628,
4234,
8863,
5411,
289,
469,
288,
7734,
1262,
54,
7503,
1463,
7957,
12,
2211,
18,
266,
4531,
639,
1769,
7734,
1194,
18,
1376,
2932,
29782,
628,
2064,
8863,
5411,
289,
13491,
2731,
2570,
273,
638,
31,
5411,
1194,
18,
1376,
2932,
55,
5852,
6454,
8863,
3639,
289,
469,
288,
5411,
1194,
18,
1376,
2932,
55,
5852,
1818,
6454,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
534,
1488,
1435,
288,
3639,
514,
8526,
833,
273,
12528,
413,
90,
26476,
15937,
17,
85,
3113,
5238,
27352,
6,
20451,
3639,
1194,
273,
394,
10253,
6364,
12,
2211,
1769,
3639,
514,
1208,
54,
9193,
273,
2332,
18,
588,
1396,
2932,
2738,
54,
9193,
8863,
3639,
1250,
999,
6247,
273,
638,
31,
3639,
309,
261,
2738,
54,
9193,
480,
446,
597,
1208,
54,
9193,
18,
14963,
2932,
3767,
6,
3719,
288,
5411,
999,
6247,
273,
629,
31,
3639,
289,
1171,
309,
16051,
8734,
2570,
13,
288,
5411,
333,
18,
24940,
273,
394,
6525,
81,
1332,
9795,
270,
30010,
12,
1457,
81,
1332,
9795,
270,
30010,
18,
904,
2615,
12,
1968,
3631,
629,
1769,
5411,
333,
18,
266,
2
] |
||
try { parser.setFeature("http: parser.setFeature("http: parser.setFeature("http: } catch ( org.xml.sax.SAXNotRecognizedException e ) { e.printStackTrace(); } catch ( org.xml.sax.SAXNotSupportedException e ) { e.printStackTrace();
|
try { parser.setFeature("http: parser.setFeature("http: parser.setFeature("http: } catch ( org.xml.sax.SAXNotRecognizedException e ) { e.printStackTrace(); } catch ( org.xml.sax.SAXNotSupportedException e ) { e.printStackTrace(); } InputSource source = null; EntityResolver currentER = parser.getEntityResolver(); if (currentER != null) { source = currentER.resolveEntity("", loc); } if (source == null) { loc = fEntityHandler.expandSystemId(loc); source = new InputSource(loc); } try { parser.parse( source ); } catch ( IOException e ) { e.printStackTrace(); } catch ( SAXException e ) { reportRecoverableXMLError( XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, e.getMessage() ); } Document document = parser.getDocument(); TraverseSchema tst = null; try { if (DEBUG_SCHEMA_VALIDATION) { System.out.println("I am geting the Schema Document");
|
private void resolveSchemaGrammar( String loc, String uri) throws Exception { SchemaGrammar grammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri); if (grammar == null) { DOMParser parser = new DOMParser(); parser.setEntityResolver( new Resolver(fEntityHandler) ); parser.setErrorHandler( new ErrorHandler() ); try { parser.setFeature("http://xml.org/sax/features/validation", false); parser.setFeature("http://xml.org/sax/features/namespaces", true); parser.setFeature("http://apache.org/xml/features/dom/defer-node-expansion", false); } catch ( org.xml.sax.SAXNotRecognizedException e ) { e.printStackTrace(); } catch ( org.xml.sax.SAXNotSupportedException e ) { e.printStackTrace(); } // expand it before passing it to the parser InputSource source = null; EntityResolver currentER = parser.getEntityResolver(); if (currentER != null) { source = currentER.resolveEntity("", loc); } if (source == null) { loc = fEntityHandler.expandSystemId(loc); source = new InputSource(loc); } try { parser.parse( source ); } catch ( IOException e ) { e.printStackTrace(); } catch ( SAXException e ) { //System.out.println("loc = "+loc); //e.printStackTrace(); reportRecoverableXMLError( XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, e.getMessage() ); } Document document = parser.getDocument(); //Our Grammar TraverseSchema tst = null; try { if (DEBUG_SCHEMA_VALIDATION) { System.out.println("I am geting the Schema Document"); } Element root = document.getDocumentElement();// This is what we pass to TraverserSchema if (root == null) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Can't get back Schema document's root element :" + loc); } else { if (uri == null || !uri.equals(root.getAttribute(SchemaSymbols.ATT_TARGETNAMESPACE)) ) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Schema in " + loc + " has a different target namespace " + "from the one specified in the instance document :" + uri); } grammar = new SchemaGrammar(); grammar.setGrammarDocument(document); tst = new TraverseSchema( root, fStringPool, (SchemaGrammar)grammar, fGrammarResolver, fErrorReporter, source.getSystemId()); fGrammarResolver.putGrammar(document.getDocumentElement().getAttribute("targetNamespace"), grammar); } } catch (Exception e) { e.printStackTrace(System.err); } } }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b36768aae85d6d13bc8c8289ca78efb212c8fb8f/XMLValidator.java/buggy/src/org/apache/xerces/validators/common/XMLValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
3078,
18576,
12,
514,
1515,
16,
514,
2003,
13,
1216,
1185,
288,
3639,
4611,
18576,
6473,
273,
261,
3078,
18576,
13,
284,
18576,
4301,
18,
588,
18576,
12,
1650,
1769,
3639,
309,
261,
31628,
422,
446,
13,
288,
5411,
4703,
2678,
2082,
273,
394,
4703,
2678,
5621,
5411,
2082,
18,
542,
1943,
4301,
12,
394,
17183,
12,
74,
1943,
1503,
13,
11272,
5411,
2082,
18,
542,
17729,
12,
225,
394,
26406,
1435,
11272,
5411,
775,
288,
7734,
2082,
18,
542,
4595,
2932,
2505,
2207,
2902,
18,
3341,
19,
87,
651,
19,
7139,
19,
8685,
3113,
629,
1769,
7734,
2082,
18,
542,
4595,
2932,
2505,
2207,
2902,
18,
3341,
19,
87,
651,
19,
7139,
19,
16078,
3113,
638,
1769,
7734,
2082,
18,
542,
4595,
2932,
2505,
2207,
19211,
18,
3341,
19,
2902,
19,
7139,
19,
9859,
19,
18974,
17,
2159,
17,
2749,
12162,
3113,
629,
1769,
5411,
289,
1044,
261,
225,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
1248,
5650,
9367,
503,
425,
262,
288,
7734,
425,
18,
1188,
6332,
5621,
5411,
289,
1044,
261,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
25482,
425,
262,
288,
7734,
425,
18,
1188,
6332,
5621,
5411,
289,
5411,
368,
4542,
518,
1865,
9588,
518,
358,
326,
2082,
5411,
23699,
1084,
273,
446,
31,
5411,
3887,
4301,
783,
654,
273,
2082,
18,
588,
1943,
4301,
5621,
5411,
309,
261,
2972,
654,
480,
446,
13,
288,
7734,
1084,
273,
783,
654,
18,
10828,
1943,
2932,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
3078,
18576,
12,
514,
1515,
16,
514,
2003,
13,
1216,
1185,
288,
3639,
4611,
18576,
6473,
273,
261,
3078,
18576,
13,
284,
18576,
4301,
18,
588,
18576,
12,
1650,
1769,
3639,
309,
261,
31628,
422,
446,
13,
288,
5411,
4703,
2678,
2082,
273,
394,
4703,
2678,
5621,
5411,
2082,
18,
542,
1943,
4301,
12,
394,
17183,
12,
74,
1943,
1503,
13,
11272,
5411,
2082,
18,
542,
17729,
12,
225,
394,
26406,
1435,
11272,
5411,
775,
288,
7734,
2082,
18,
542,
4595,
2932,
2505,
2207,
2902,
18,
3341,
19,
87,
651,
19,
7139,
19,
8685,
3113,
629,
1769,
7734,
2082,
18,
542,
4595,
2932,
2505,
2207,
2902,
18,
3341,
19,
87,
651,
19,
7139,
19,
16078,
2
] |
roundReport.append(entity.getDisplayName() + " needs a " + startup + "+ to start up, rolls " + suroll + " : ");
|
roundReport.append( entity.getDisplayName() ) .append( " needs a " ) .append( startup ) .append( "+ to start up, rolls " ) .append( suroll ) .append( " : " );
|
private void resolveHeat() { roundReport.append("\nHeat Phase\n----------\n"); for (Enumeration i = game.getEntities(); i.hasMoreElements();) { Entity entity = (Entity)i.nextElement(); if ( null == entity.getPosition() ) { continue; } Hex entityHex = game.getBoard().getHex(entity.getPosition()); // heat doesn't matter for non-mechs if (!(entity instanceof Mech)) { entity.heatBuildup = 0; continue; } // should we even bother? if (entity.isDestroyed() || entity.isDoomed() || entity.crew.isDead()) { continue; } // engine hits add a lot of heat, provided the engine is on if (!entity.isShutDown()) { entity.heatBuildup += 5 * entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_CT); entity.heatBuildup += 5 * entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_LT); entity.heatBuildup += 5 * entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_RT); } // If a Mek had an active Stealth suite, add 10 heat. if ( entity instanceof Mech && entity.isStealthActive() ) { entity.heatBuildup += 10; roundReport.append("Added 10 heat from Stealth Armor...\n"); } // add +5 Heat if the hex you're in is on fire and was on fire for the full round if (entityHex.levelOf(Terrain.FIRE) == 2) { entity.heatBuildup += 5; roundReport.append("Added 5 heat from a fire...\n"); } // add the heat we've built up so far. roundReport.append(entity.getDisplayName() + " gains " + entity.heatBuildup + " heat,"); entity.heat += entity.heatBuildup; entity.heatBuildup = 0; // how much heat can we sink? int tosink = Math.min(entity.getHeatCapacityWithWater(), entity.heat); entity.heat -= tosink; roundReport.append(" sinks " + tosink + " heat and is now at " + entity.heat + " heat.\n"); // heat effects: start up if (entity.heat < 30 && entity.isShutDown()) { if (entity.heat < 14) { entity.setShutDown(false); roundReport.append(entity.getDisplayName() + " automatically starts up.\n"); } else { int startup = 4 + (((entity.heat - 14) / 4) * 2); int suroll = Compute.d6(2); roundReport.append(entity.getDisplayName() + " needs a " + startup + "+ to start up, rolls " + suroll + " : "); if (suroll >= startup) { entity.setShutDown(false); roundReport.append("successful!\n"); } else { roundReport.append("fails.\n"); } } } // heat effects: shutdown! if (entity.heat >= 14 && !entity.isShutDown()) { if (entity.heat >= 30) { roundReport.append(entity.getDisplayName() + " automatically shuts down.\n"); // add a piloting roll and resolve immediately pilotRolls.addElement(new PilotingRollData(entity.getId(), 3, "reactor shutdown")); resolvePilotingRolls(); // okay, now mark shut down entity.setShutDown(true); } else if (entity.heat >= 14) { int shutdown = 4 + (((entity.heat - 14) / 4) * 2); int sdroll = Compute.d6(2); roundReport.append(entity.getDisplayName() + " needs a " + shutdown + "+ to avoid shutdown, rolls " + sdroll + " : "); if (sdroll >= shutdown) { roundReport.append("avoids successfully!\n"); } else { roundReport.append("shuts down.\n"); // add a piloting roll and resolve immediately pilotRolls.addElement(new PilotingRollData(entity.getId(), 3, "reactor shutdown")); resolvePilotingRolls(); // okay, now mark shut down entity.setShutDown(true); } } } // heat effects: ammo explosion! if (entity.heat >= 19) { int boom = 4 + (entity.heat >= 23 ? 2 : 0) + (entity.heat >= 28 ? 2 : 0); int boomroll = Compute.d6(2); roundReport.append(entity.getDisplayName() + " needs a " + boom + "+ to avoid ammo explosion, rolls " + boomroll + " : "); if (boomroll >= boom) { roundReport.append("avoids successfully!\n"); } else { roundReport.append("fails to avoid explosion.\n"); roundReport.append(explodeAmmoFromHeat(entity)); } } // heat effects: mechwarrior damage if (entity.getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_LIFE_SUPPORT, Mech.LOC_HEAD) > 0 && entity.heat >= 15) { if (entity.heat >= 25) { // mechwarrior takes 2 damage roundReport.append(entity.getDisplayName() + " has 25 or higher heat and damaged life support. Mechwarrior takes 2 damage.\n"); damageCrew(entity, 2); } else { // mechwarrior takes 1 damage roundReport.append(entity.getDisplayName() + " has 15 or higher heat and damaged life support. Mechwarrior takes 1 damage.\n"); damageCrew(entity, 1); } // The pilot may have just expired. if ( entity.crew.isDead() ) { roundReport.append( "*** " + entity.getDisplayName() + " PILOT BAKES TO DEATH! ***" ); } } } }
|
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/5d0e30fa3cd546d131099baade0769a0a19c983e/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2245,
5256,
270,
1435,
288,
3639,
3643,
4820,
18,
6923,
31458,
82,
5256,
270,
19459,
64,
82,
15392,
64,
82,
8863,
3639,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
3887,
1522,
273,
261,
1943,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
446,
422,
1522,
18,
588,
2555,
1435,
262,
288,
7734,
1324,
31,
5411,
289,
5411,
15734,
1522,
7037,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
1096,
18,
588,
2555,
10663,
13491,
368,
19347,
3302,
1404,
15177,
364,
1661,
17,
3501,
343,
87,
5411,
309,
16051,
12,
1096,
1276,
7499,
343,
3719,
288,
7734,
1522,
18,
580,
270,
3116,
416,
273,
374,
31,
7734,
1324,
31,
5411,
289,
5411,
368,
1410,
732,
5456,
23440,
35,
5411,
309,
261,
1096,
18,
291,
28414,
1435,
747,
1522,
18,
291,
3244,
362,
329,
1435,
747,
1522,
18,
1793,
91,
18,
291,
11852,
10756,
288,
7734,
1324,
31,
5411,
289,
5411,
368,
4073,
11076,
527,
279,
17417,
434,
19347,
16,
2112,
326,
4073,
353,
603,
5411,
309,
16051,
1096,
18,
291,
1555,
322,
4164,
10756,
288,
7734,
1522,
18,
580,
270,
3116,
416,
1011,
1381,
380,
1522,
18,
588,
13616,
39,
583,
335,
1031,
12,
30286,
8764,
18,
2399,
67,
14318,
16,
7499,
343,
18,
14318,
67,
28980,
16,
7499,
343,
18,
29450,
67,
1268,
1769,
7734,
1522,
18,
580,
270,
3116,
416,
1011,
1381,
380,
1522,
18,
588,
13616,
39,
583,
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,
2245,
5256,
270,
1435,
288,
3639,
3643,
4820,
18,
6923,
31458,
82,
5256,
270,
19459,
64,
82,
15392,
64,
82,
8863,
3639,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
3887,
1522,
273,
261,
1943,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
446,
422,
1522,
18,
588,
2555,
1435,
262,
288,
7734,
1324,
31,
5411,
289,
5411,
15734,
1522,
7037,
273,
7920,
18,
588,
22233,
7675,
588,
7037,
12,
1096,
18,
588,
2555,
10663,
13491,
368,
19347,
3302,
1404,
15177,
364,
1661,
17,
3501,
343,
87,
5411,
309,
16051,
12,
1096,
1276,
7499,
343,
3719,
288,
7734,
1522,
18,
580,
270,
3116,
416,
2
] |
AST tmp1971_AST_in = (AST)_t;
|
AST tmp1973_AST_in = (AST)_t;
|
public final void declarecursorstate(AST _t) throws RecognitionException { AST declarecursorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2418 = _t; AST tmp1970_AST_in = (AST)_t; match(_t,DECLARE); _t = _t.getFirstChild(); AST tmp1971_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); AST tmp1972_AST_in = (AST)_t; match(_t,CURSOR); _t = _t.getNextSibling(); AST tmp1973_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); selectstatea(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST __t2420 = _t; AST tmp1974_AST_in = (AST)_t; match(_t,FOR); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case READ: { AST __t2422 = _t; AST tmp1975_AST_in = (AST)_t; match(_t,READ); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ONLY: { AST tmp1976_AST_in = (AST)_t; match(_t,ONLY); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2422; _t = _t.getNextSibling(); break; } case UPDATE: { AST tmp1977_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } _t = __t2420; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2418; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
14196,
9216,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
14196,
9216,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3247,
2643,
273,
389,
88,
31,
202,
202,
9053,
1853,
3657,
7301,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1639,
15961,
862,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
3657,
11212,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
734,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
9053,
1853,
3657,
9060,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7509,
55,
916,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
9053,
1853,
3657,
9036,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
7473,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
4025,
2019,
69,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
14196,
9216,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
14196,
9216,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3247,
2643,
273,
389,
88,
31,
202,
202,
9053,
1853,
3657,
7301,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
1639,
15961,
862,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
3657,
11212,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
734,
1769,
202,
2
] |
enableActions();
|
Dimension size = c.getSize();
|
public void layoutContainer(Container c) { enableActions(); Insets insets = c.getInsets(); int width = c.getBounds().width - insets.left - insets.right; int height = c.getBounds().height - insets.top - insets.bottom; // MenuBar is always present and located at the top left corner. Dimension menupref = menuBar.getPreferredSize(); menuBar.setBounds(insets.left, insets.top, menupref.width, height); int loc = width + insets.left; Insets i = closeButton.getInsets(); Dimension prefs = new Dimension(iconSize + i.left + i.right, iconSize + i.top + i.bottom); int top = insets.top + (height - prefs.height) / 2; if (closeAction.isEnabled()) { loc -= prefs.width; closeButton.setVisible(true); closeButton.setBounds(loc, top, prefs.width, prefs.height); } else closeButton.setVisible(false); if (maximizeAction.isEnabled()) { loc -= prefs.width; maxButton.setVisible(true); maxButton.setBounds(loc, top, prefs.width, prefs.height); } else maxButton.setVisible(false); if (iconifyAction.isEnabled()) { loc -= prefs.width; iconButton.setVisible(true); iconButton.setBounds(loc, top, prefs.width, prefs.height); } else iconButton.setVisible(false); if (title != null) title.setBounds(insets.left + menupref.width, insets.top, loc - menupref.width - insets.left, height); }
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b84de612b47edf167d1a205db1270610dfb06eb8/BasicInternalFrameTitlePane.java/clean/libraries/javalib/javax/swing/plaf/basic/BasicInternalFrameTitlePane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3511,
2170,
12,
2170,
276,
13,
565,
288,
1377,
13037,
963,
273,
276,
18,
588,
1225,
5621,
377,
22300,
23576,
273,
276,
18,
588,
382,
4424,
5621,
1377,
509,
1835,
273,
276,
18,
588,
5694,
7675,
2819,
300,
23576,
18,
4482,
300,
23576,
18,
4083,
31,
1377,
509,
2072,
273,
276,
18,
588,
5694,
7675,
4210,
300,
23576,
18,
3669,
300,
23576,
18,
9176,
31,
1377,
368,
9809,
5190,
353,
3712,
3430,
471,
13801,
622,
326,
1760,
2002,
11055,
18,
1377,
13037,
21247,
416,
1734,
273,
3824,
5190,
18,
588,
16028,
1225,
5621,
1377,
3824,
5190,
18,
542,
5694,
12,
267,
4424,
18,
4482,
16,
23576,
18,
3669,
16,
21247,
416,
1734,
18,
2819,
16,
2072,
1769,
1377,
509,
1515,
273,
1835,
397,
23576,
18,
4482,
31,
1377,
22300,
277,
273,
1746,
3616,
18,
588,
382,
4424,
5621,
1377,
13037,
15503,
273,
394,
13037,
12,
3950,
1225,
397,
277,
18,
4482,
397,
277,
18,
4083,
16,
4766,
1377,
4126,
1225,
397,
277,
18,
3669,
397,
277,
18,
9176,
1769,
1377,
509,
1760,
273,
23576,
18,
3669,
397,
261,
4210,
300,
15503,
18,
4210,
13,
342,
576,
31,
1377,
309,
261,
4412,
1803,
18,
291,
1526,
10756,
3639,
288,
202,
225,
1515,
3947,
15503,
18,
2819,
31,
202,
225,
1746,
3616,
18,
542,
6207,
12,
3767,
1769,
202,
225,
1746,
3616,
18,
542,
5694,
12,
1829,
16,
1760,
16,
15503,
18,
2819,
16,
15503,
18,
4210,
1769,
3639,
289,
1377,
469,
202,
4412,
3616,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3511,
2170,
12,
2170,
276,
13,
565,
288,
1377,
13037,
963,
273,
276,
18,
588,
1225,
5621,
377,
22300,
23576,
273,
276,
18,
588,
382,
4424,
5621,
1377,
509,
1835,
273,
276,
18,
588,
5694,
7675,
2819,
300,
23576,
18,
4482,
300,
23576,
18,
4083,
31,
1377,
509,
2072,
273,
276,
18,
588,
5694,
7675,
4210,
300,
23576,
18,
3669,
300,
23576,
18,
9176,
31,
1377,
368,
9809,
5190,
353,
3712,
3430,
471,
13801,
622,
326,
1760,
2002,
11055,
18,
1377,
13037,
21247,
416,
1734,
273,
3824,
5190,
18,
588,
16028,
1225,
5621,
1377,
3824,
5190,
18,
542,
5694,
12,
267,
4424,
18,
4482,
16,
23576,
18,
3669,
16,
21247,
416,
1734,
18,
2819,
16,
2072,
2
] |
addAlert(state, CLOSE_OPEN_DATE_ERROR_MESSAGE);
|
addAlert(state, rb.getString("acesubdea3"));
|
private void postOrSaveAssignment(RunData data, String postOrSave) { boolean post = (postOrSave != null && postOrSave.equals("post")) ? true : false; // assignment old title String aOldTitle = null; SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid()); String mode = (String) state.getAttribute(STATE_MODE); if (!mode.equals(MODE_INSTRUCTOR_PREVIEW_ASSIGNMENT)) { // read input data if the mode is not preview mode setNewAssignmentParameters(data, true); } if (state.getAttribute(STATE_MESSAGE) == null) { ParameterParser params = data.getParameters(); // put the names and values into vm file String title = (String) state.getAttribute(NEW_ASSIGNMENT_TITLE); // open time int openMonth = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENMONTH)).intValue(); int openDay = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENDAY)).intValue(); int openYear = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENYEAR)).intValue(); int openHour = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENHOUR)).intValue(); int openMin = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENMIN)).intValue(); String openAMPM = (String) state.getAttribute(NEW_ASSIGNMENT_OPENAMPM); if ((openAMPM.equals("PM")) && (openHour != 12)) { openHour = openHour + 12; } if ((openHour == 12) && (openAMPM.equals("AM"))) { openHour = 0; } Time openTime = TimeService.newTimeLocal(openYear, openMonth, openDay, openHour, openMin, 0, 0); // due time int dueMonth = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEMONTH)).intValue(); int dueDay = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEDAY)).intValue(); int dueYear = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEYEAR)).intValue(); int dueHour = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEHOUR)).intValue(); int dueMin = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEMIN)).intValue(); String dueAMPM = (String) state.getAttribute(NEW_ASSIGNMENT_DUEAMPM); if ((dueAMPM.equals("PM")) && (dueHour != 12)) { dueHour = dueHour + 12; } if ((dueHour == 12) && (dueAMPM.equals("AM"))) { dueHour = 0; } Time dueTime = TimeService.newTimeLocal(dueYear, dueMonth, dueDay, dueHour, dueMin, 0, 0); // checks on the times if (dueTime.before(openTime)) { addAlert(state, rb.getString("assig3")); } // close time Time closeTime = TimeService.newTime(); boolean enableCloseDate = ((Boolean) state.getAttribute(NEW_ASSIGNMENT_ENABLECLOSEDATE)).booleanValue(); if (enableCloseDate) { int closeMonth = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEMONTH)).intValue(); int closeDay = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEDAY)).intValue(); int closeYear = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEYEAR)).intValue(); int closeHour = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEHOUR)).intValue(); int closeMin = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEMIN)).intValue(); String closeAMPM = (String) state.getAttribute(NEW_ASSIGNMENT_CLOSEAMPM); if ((closeAMPM.equals("PM")) && (closeHour != 12)) { closeHour = closeHour + 12; } if ((closeHour == 12) && (closeAMPM.equals("AM"))) { closeHour = 0; } closeTime = TimeService.newTimeLocal(closeYear, closeMonth, closeDay, closeHour, closeMin, 0, 0); // if there is a close time, check it if (closeTime.before(openTime)) { addAlert(state, CLOSE_OPEN_DATE_ERROR_MESSAGE); } if (closeTime.before(dueTime)) { addAlert(state, CLOSE_DUE_DATE_ERROR_MESSAGE); } } // sections String s = (String) state.getAttribute(NEW_ASSIGNMENT_SECTION); int submissionType = ((Integer) state.getAttribute(NEW_ASSIGNMENT_SUBMISSION_TYPE)).intValue(); int gradeType = ((Integer) state.getAttribute(NEW_ASSIGNMENT_GRADE_TYPE)).intValue(); String gradePoints = (String) state.getAttribute(NEW_ASSIGNMENT_GRADE_POINTS); String description = (String) state.getAttribute(NEW_ASSIGNMENT_DESCRIPTION); String checkAddDueTime = (String) state.getAttribute(ResourceProperties.NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE); String checkAutoAnnounce = (String) state.getAttribute(ResourceProperties.NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE); String checkAddHonorPledge = (String) state.getAttribute(NEW_ASSIGNMENT_CHECK_ADD_HONOR_PLEDGE); String addtoGradebook = (String) state.getAttribute(NEW_ASSIGNMENT_ADD_TO_GRADEBOOK); // the attachments List attachments = (List) state.getAttribute(ATTACHMENTS); List attachments1 = EntityManager.newReferenceList(attachments); boolean newAssignment = true; // correct inputs if (state.getAttribute(STATE_MESSAGE) == null) { String assignmentId = params.getString("assignmentId"); String assignmentContentId = params.getString("assignmentContentId"); // AssignmentContent object AssignmentContentEdit ac = null; if (assignmentContentId.length() == 0) { // new assignment // only show alert when dealing with new assignment // allow editing assignment after due date if (dueTime.before(TimeService.newTime())) { addAlert(state, rb.getString("assig4")); } else { try { ac = AssignmentService.addAssignmentContent((String) state.getAttribute(STATE_CONTEXT_STRING)); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot3")); } } } else { try { // edit assignment ac = AssignmentService.editAssignmentContent(assignmentContentId); } catch (InUseException e) { addAlert(state, rb.getString("theassicon")); } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin4")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot15")); } } // Assignment AssignmentEdit a = null; if (assignmentId.length() == 0) { // create a new assignment try { a = AssignmentService.addAssignment((String) state.getAttribute(STATE_CONTEXT_STRING)); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot1")); } } else { // not a new assignment newAssignment = false; try { // edit assignment a = AssignmentService.editAssignment(assignmentId); aOldTitle = a.getTitle(); } catch (InUseException e) { addAlert(state, rb.getString("theassicon")); } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot14")); } // try-catch } // if-else if ((state.getAttribute(STATE_MESSAGE) == null) && (ac != null) && (a != null)) { ac.setTitle(title); ac.setInstructions(description); ac.setHonorPledge(Integer.parseInt(checkAddHonorPledge)); ac.setTypeOfSubmission(submissionType); ac.setTypeOfGrade(gradeType); if (gradeType == 3) { try { ac.setMaxGradePoint(Integer.parseInt(gradePoints)); } catch (NumberFormatException e) { alertInvalidPoint(state, gradePoints); } } ac.setGroupProject(true); ac.setIndividuallyGraded(false); if (submissionType != 1) { ac.setAllowAttachments(true); } else { ac.setAllowAttachments(false); } // clear attachments ac.clearAttachments(); // add each attachment Iterator it = EntityManager.newReferenceList(attachments1).iterator(); while (it.hasNext()) { Reference r = (Reference) it.next(); ac.addAttachment(r); } state.setAttribute(ATTACHMENTS_MODIFIED, new Boolean(false)); // commit the changes AssignmentService.commitEdit(ac); } try { a.setTitle(title); a.setContent(ac); a.setContext((String) state.getAttribute(STATE_CONTEXT_STRING)); a.setSection(s); // old open time Time oldOpenTime = a.getOpenTime(); a.setOpenTime(openTime); // old due time Time oldDueTime = a.getDueTime(); a.setDueTime(dueTime); // set the drop dead date as the due date a.setDropDeadTime(dueTime); if (enableCloseDate) { a.setCloseTime(closeTime); } else { // if editing an old assignment with close date if (a.getCloseTime() != null) { a.setCloseTime(null); } } // post the assignment a.setDraft(!post); // set the auto check/auto announce property ResourcePropertiesEdit aPropertiesEdit = a.getPropertiesEdit(); if (aPropertiesEdit.getProperty("newAssignment") != null) { if (aPropertiesEdit.getProperty("newAssignment").equalsIgnoreCase(Boolean.TRUE.toString())) { // not a newly created assignment, been added. aPropertiesEdit.addProperty("newAssignment", Boolean.FALSE.toString()); } } else { // for newly created assignment aPropertiesEdit.addProperty("newAssignment", Boolean.TRUE.toString()); } aPropertiesEdit.addProperty(ResourceProperties.NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE, checkAddDueTime); aPropertiesEdit.addProperty(ResourceProperties.NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE, checkAutoAnnounce); aPropertiesEdit.addProperty(NEW_ASSIGNMENT_ADD_TO_GRADEBOOK, addtoGradebook); // set group property Site site = null; try { site = SiteService.getSite(ToolManager.getCurrentPlacement().getContext()); } catch (Exception e) { if (Log.getLogger("chef").isDebugEnabled()) Log.debug("chef", this + "doPost_assignment(): cannot find site with id " + ToolManager.getCurrentPlacement().getContext()); } String range = (String) state.getAttribute(NEW_ASSIGNMENT_RANGE); if (range.equals("site")) { a.setAccess(Assignment.AssignmentAccess.SITE); if (site != null) { for (Iterator aGroups = a.getGroups().iterator(); aGroups.hasNext();) { try { a.removeGroup(site.getGroup((String) aGroups.next())); } catch (PermissionException e) { } } } } else if (range.equals("groups")) { Collection groupChoice = (Collection) state.getAttribute(NEW_ASSIGNMENT_GROUPS); // if group has been dropped, remove it from assignment for (Iterator oSIterator = a.getGroups().iterator(); oSIterator.hasNext();) { Reference oGRef = EntityManager.newReference((String) oSIterator.next()); boolean selected = false; for (Iterator gIterator = groupChoice.iterator(); gIterator.hasNext() && !selected;) { if (oGRef.getId().equals((String) gIterator.next())) { selected = true; } } if (!selected && site != null) { try { a.removeGroup(site.getGroup(oGRef.getId())); } catch (Exception ignore) { if (Log.getLogger("chef").isDebugEnabled()) Log.debug("chef", this + "doPost_assignment(): cannot remove group " + oGRef.getId()); } } } // add group to assignment if (groupChoice != null) { a.setAccess(Assignment.AssignmentAccess.GROUPED); for (Iterator gIterator2 = groupChoice.iterator(); gIterator2.hasNext();) { String gString = (String) gIterator2.next(); try { a.addGroup(site.getGroup(gString)); } catch (Exception eIgnore) { if (Log.getLogger("chef").isDebugEnabled()) Log.debug("chef", this + "doPost_assignment(): cannot add group " + gString); } } } } if (state.getAttribute(STATE_MESSAGE) == null) { // commit assignment first AssignmentService.commitEdit(a); if (post) { // add due date to schedule and add open date to announcement only if user is posting the assignment // add the due date to schedule Calendar c = (Calendar) state.getAttribute(CALENDAR); String dueDateScheduled = a.getProperties().getProperty(NEW_ASSIGNMENT_DUE_DATE_SCHEDULED); boolean dueDateEventModified = false; CalendarEvent e = null; if (dueDateScheduled != null && dueDateScheduled.equalsIgnoreCase(Boolean.TRUE.toString())) { // find the old event boolean found = false; String oldEventId = aPropertiesEdit .getProperty(ResourceProperties.PROP_ASSIGNMENT_DUEDATE_CALENDAR_EVENT_ID); if (oldEventId != null && c != null) { try { e = c.getEvent(oldEventId); found = true; } catch (IdUnusedException ee) { Log.warn("chef", "The old event has been deleted: event id=" + oldEventId + ". "); } catch (PermissionException ee) { Log.warn("chef", "You do not have the permission to view the schedule event id= " + oldEventId + "."); } } else { TimeBreakdown b = oldDueTime.breakdownLocal(); // TODO: check- this was new Time(year...), not local! -ggolden Time startTime = TimeService.newTimeLocal(b.getYear(), b.getMonth(), b.getDay(), 0, 0, 0, 0); Time endTime = TimeService.newTimeLocal(b.getYear(), b.getMonth(), b.getDay(), 23, 59, 59, 999); try { Iterator events = c.getEvents(TimeService.newTimeRange(startTime, endTime), null) .iterator(); while ((!found) && (events.hasNext())) { e = (CalendarEvent) events.next(); if (((String) e.getDisplayName()).indexOf(rb.getString("assig1") + " " + title) != -1) { found = true; } } } catch (PermissionException ignore) { // ignore PermissionException } } if (found) { if (oldDueTime != null && (!oldDueTime.toStringLocalFull().equals(dueTime.toStringLocalFull())) // due date changed || !aOldTitle.equals(title) // title changed || (!checkAddDueTime.equalsIgnoreCase(Boolean.TRUE.toString()))) // user choose to not schedule due date { // if the assignment due date or title has been changed, we need to update existing event dueDateEventModified = true; } if (dueDateEventModified && found) { // remove the founded old event try { c.removeEvent(c.editEvent(e.getId())); } catch (PermissionException ee) { Log.warn("chef", rb.getString("cannotrem") + " " + title + ". "); } catch (InUseException ee) { Log.warn("chef", INUSE_ERROR_MESSAGE + rb.getString("calen")); } } } } if (checkAddDueTime.equalsIgnoreCase(Boolean.TRUE.toString())) { if (c != null) { try { e = null; e = c.addEvent(/* TimeRange */TimeService.newTimeRange(dueTime.getTime(), /* 0 duration */ 0 * 60 * 1000), /* title */rb.getString("due") + " " + title, /* description */rb.getString("assig1") + " " + title + " " + "is due on " + dueTime.toStringLocalFull() + ". ", /* type */rb.getString("deadl"), /* location */"", /* attachments */EntityManager.newReferenceList()); aPropertiesEdit.addProperty(NEW_ASSIGNMENT_DUE_DATE_SCHEDULED, Boolean.TRUE.toString()); if (e != null) { aPropertiesEdit.addProperty( ResourceProperties.PROP_ASSIGNMENT_DUEDATE_CALENDAR_EVENT_ID, e.getId()); } } catch (PermissionException ee) { Log.warn("chef", rb.getString("cannotfin1")); } // try-catch } // if } // if // the open date been announced if (checkAutoAnnounce.equalsIgnoreCase(Boolean.TRUE.toString())) { AnnouncementChannel channel = (AnnouncementChannel) state.getAttribute(ANNOUNCEMENT_CHANNEL); if (channel != null) { String openDateAnnounced = a.getProperties().getProperty(NEW_ASSIGNMENT_OPEN_DATE_ANNOUNCED); // open date has been announced or title has been changed? boolean openDateMessageModified = false; if (openDateAnnounced != null && openDateAnnounced.equalsIgnoreCase(Boolean.TRUE.toString())) { if (oldOpenTime != null && (!oldOpenTime.toStringLocalFull().equals(openTime.toStringLocalFull())) // open time changes || !aOldTitle.equals(title)) // assignment title changes { // need to change message openDateMessageModified = true; } } // add the open date to annoucement if (openDateAnnounced == null // no announcement yet || (openDateAnnounced != null && openDateAnnounced.equalsIgnoreCase(Boolean.TRUE.toString()) && openDateMessageModified)) // announced, but open date or announcement title changes { // announcement channel is in place try { AnnouncementMessageEdit message = channel.addAnnouncementMessage(); AnnouncementMessageHeaderEdit header = message.getAnnouncementHeaderEdit(); header.setDraft(/* draft */false); header.replaceAttachments(/* attachment */EntityManager.newReferenceList()); if (!openDateMessageModified) { header.setSubject(/* subject */rb.getString("assig6") + " " + title); message.setBody(/* body */rb.getString("opedat") + " " + FormattedText.convertPlaintextToFormattedText(title) + " is " + openTime.toStringLocalFull() + ". "); } else { header.setSubject(/* subject */rb.getString("assig5") + " " + title); message.setBody(/* body */rb.getString("newope") + " " + FormattedText.convertPlaintextToFormattedText(title) + " is " + openTime.toStringLocalFull() + ". "); } channel.commitMessage(message, NotificationService.NOTI_NONE); aPropertiesEdit .addProperty(NEW_ASSIGNMENT_OPEN_DATE_ANNOUNCED, Boolean.TRUE.toString()); if (message != null) { aPropertiesEdit.addProperty( ResourceProperties.PROP_ASSIGNMENT_OPENDATE_ANNOUNCEMENT_MESSAGE_ID, message.getId()); } } catch (PermissionException ee) { Log.warn("chef", rb.getString("cannotmak")); } } } } // if // integrate with Gradebook String aReference = a.getReference(); String addUpdateRemoveAssignment = "remove"; if (Boolean.valueOf(addtoGradebook).booleanValue()) { if (newAssignment) { addUpdateRemoveAssignment = "add"; } else { addUpdateRemoveAssignment = "update"; } } if (!addUpdateRemoveAssignment.equals("remove") && gradeType == 3) { try { // no assignment committed yet. Use user input data integrateGradebook(state, aReference, addUpdateRemoveAssignment, aOldTitle, title, Integer.parseInt (gradePoints), dueTime, null, null); // add all existing grades, if any, into Gradebook integrateGradebook(state, aReference, null, null, null, -1, null, null, "update"); } catch (NumberFormatException nE) { alertInvalidPoint(state, gradePoints); } } else { integrateGradebook(state, aReference, "remove", null, null, -1, null, null, null); } state.setAttribute(STATE_MODE, MODE_LIST_ASSIGNMENTS); state.setAttribute(ATTACHMENTS, EntityManager.newReferenceList()); resetAssignment(state); } } // if } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } // try-catch } // if } // if } // doPost_assignment
|
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/8d98215f7709f2df6e2db1d19cd5dd26b4804aaa/AssignmentAction.java/buggy/assignment/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1603,
1162,
4755,
7729,
12,
1997,
751,
501,
16,
514,
1603,
1162,
4755,
13,
202,
95,
202,
202,
6494,
1603,
273,
261,
2767,
1162,
4755,
480,
446,
597,
1603,
1162,
4755,
18,
14963,
2932,
2767,
6,
3719,
692,
638,
294,
629,
31,
9506,
202,
759,
6661,
1592,
2077,
202,
202,
780,
279,
7617,
4247,
273,
446,
31,
9506,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
501,
2934,
588,
18566,
2157,
1119,
12443,
12,
46,
2413,
5868,
1997,
751,
13,
501,
2934,
588,
8382,
67,
347,
350,
10663,
202,
202,
780,
1965,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
7038,
1769,
202,
202,
430,
16051,
3188,
18,
14963,
12,
7038,
67,
706,
13915,
916,
67,
3670,
12145,
67,
23289,
3212,
3719,
202,
202,
95,
1082,
202,
759,
855,
810,
501,
309,
326,
1965,
353,
486,
10143,
1965,
1082,
202,
542,
1908,
7729,
2402,
12,
892,
16,
638,
1769,
202,
202,
97,
202,
202,
430,
261,
2019,
18,
588,
1499,
12,
7998,
67,
8723,
13,
422,
446,
13,
202,
202,
95,
1082,
202,
1662,
2678,
859,
273,
501,
18,
588,
2402,
5621,
1082,
202,
759,
1378,
326,
1257,
471,
924,
1368,
4268,
585,
1082,
202,
780,
2077,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
12917,
67,
23289,
3212,
67,
14123,
1769,
1082,
202,
759,
1696,
813,
1082,
202,
474,
1696,
5445,
273,
14015,
4522,
13,
919,
18,
588,
1499,
12,
12917,
67,
23289,
3212,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1603,
1162,
4755,
7729,
12,
1997,
751,
501,
16,
514,
1603,
1162,
4755,
13,
202,
95,
202,
202,
6494,
1603,
273,
261,
2767,
1162,
4755,
480,
446,
597,
1603,
1162,
4755,
18,
14963,
2932,
2767,
6,
3719,
692,
638,
294,
629,
31,
9506,
202,
759,
6661,
1592,
2077,
202,
202,
780,
279,
7617,
4247,
273,
446,
31,
9506,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
501,
2934,
588,
18566,
2157,
1119,
12443,
12,
46,
2413,
5868,
1997,
751,
13,
501,
2934,
588,
8382,
67,
347,
350,
10663,
202,
202,
780,
1965,
273,
261,
780,
13,
919,
18,
588,
1499,
12,
7998,
67,
7038,
1769,
202,
202,
430,
16051,
3188,
18,
2
] |
ClassLoader loader = getAntFile().getClassLoader().getClassloader(); if (urls.length > 0) { loader = new URLClassLoader(urls, loader); } try { if (loader == null) { clazz = Class.forName(classname);
|
final AntFile file = getAntFile(); if (file != null) { ClassLoader loader = file.getClassLoader().getClassloader(); if (urls.length > 0) { loader = new URLClassLoader(urls, loader);
|
private void loadClass(final String classname) { URL[] urls = ClassEntry.EMPTY_URL_ARRAY; final String classpath = getClassPath(); if (classpath != null) { try { if (classpath.indexOf(File.pathSeparatorChar) < 0) { final File file = new File(computeAttributeValue(classpath)); urls = new URL[]{file.toURL()}; } else { final List<URL> urlList = new ArrayList<URL>(); for (final String path : classpath.split(File.pathSeparator)) { final File file = new File(computeAttributeValue(path)); urlList.add(file.toURL()); } urls = urlList.toArray(new URL[urlList.size()]); } } catch (MalformedURLException e) { urls = ClassEntry.EMPTY_URL_ARRAY; } } boolean newlyLoaded = false; Class clazz = CLASS_CACHE.getClass(urls, classname); if (clazz == null) { ClassLoader loader = getAntFile().getClassLoader().getClassloader(); if (urls.length > 0) { loader = new URLClassLoader(urls, loader); } try { if (loader == null) { clazz = Class.forName(classname); } else { clazz = loader.loadClass(classname); } newlyLoaded = true; } catch (Exception e) { clazz = null; } } final String name = getDefinedName(); if (name != null && name.length() > 0) { final String uri = getUri(); final String nsPrefix = (uri == null) ? null : getSourceElement().getPrefixByNamespace(uri); final AntTypeId id = (nsPrefix == null) ? new AntTypeId(name) : new AntTypeId(name, nsPrefix); if (clazz == null) { myNewDefinition = new AntTypeDefinitionImpl(id, classname, isTask()); } else { myClassesLoaded = true; myNewDefinition = (AntTypeDefinitionImpl)AntFileImpl.createTypeDefinition(id, clazz, Task.class.isAssignableFrom(clazz)); } if (myNewDefinition != null) { myNewDefinition.setDefiningElement(this); final AntStructuredElement parent = getAntParent(); if (parent != null) { parent.registerCustomType(myNewDefinition); } if (newlyLoaded && clazz != null) { CLASS_CACHE.setClass(urls, classname, clazz); } } } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/c65ee49bfe0cc53ac9b50d23cd244fef1f89fe0f/AntTypeDefImpl.java/buggy/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntTypeDefImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
16038,
12,
6385,
514,
7479,
13,
288,
565,
1976,
8526,
6903,
273,
1659,
1622,
18,
13625,
67,
1785,
67,
8552,
31,
565,
727,
514,
10006,
273,
2900,
743,
5621,
565,
309,
261,
26302,
480,
446,
13,
288,
1377,
775,
288,
3639,
309,
261,
26302,
18,
31806,
12,
812,
18,
803,
6581,
2156,
13,
411,
374,
13,
288,
1850,
727,
1387,
585,
273,
394,
1387,
12,
9200,
14942,
12,
26302,
10019,
1850,
6903,
273,
394,
1976,
63,
7073,
768,
18,
869,
1785,
17767,
31,
3639,
289,
3639,
469,
288,
1850,
727,
987,
32,
1785,
34,
880,
682,
273,
394,
2407,
32,
1785,
34,
5621,
1850,
364,
261,
6385,
514,
589,
294,
10006,
18,
4939,
12,
812,
18,
803,
6581,
3719,
288,
5411,
727,
1387,
585,
273,
394,
1387,
12,
9200,
14942,
12,
803,
10019,
5411,
880,
682,
18,
1289,
12,
768,
18,
869,
1785,
10663,
1850,
289,
1850,
6903,
273,
880,
682,
18,
31447,
12,
2704,
1976,
63,
718,
682,
18,
1467,
1435,
19226,
3639,
289,
1377,
289,
1377,
1044,
261,
18695,
20160,
425,
13,
288,
3639,
6903,
273,
1659,
1622,
18,
13625,
67,
1785,
67,
8552,
31,
1377,
289,
565,
289,
565,
1250,
10894,
8835,
273,
629,
31,
565,
1659,
4003,
273,
7383,
67,
8495,
18,
588,
797,
12,
10518,
16,
7479,
1769,
565,
309,
261,
830,
3638,
422,
446,
13,
288,
1377,
9403,
4088,
273,
4506,
496,
812,
7675,
588,
7805,
7675,
588,
797,
6714,
5621,
1377,
309,
261,
10518,
18,
2469,
405,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
16038,
12,
6385,
514,
7479,
13,
288,
565,
1976,
8526,
6903,
273,
1659,
1622,
18,
13625,
67,
1785,
67,
8552,
31,
565,
727,
514,
10006,
273,
2900,
743,
5621,
565,
309,
261,
26302,
480,
446,
13,
288,
1377,
775,
288,
3639,
309,
261,
26302,
18,
31806,
12,
812,
18,
803,
6581,
2156,
13,
411,
374,
13,
288,
1850,
727,
1387,
585,
273,
394,
1387,
12,
9200,
14942,
12,
26302,
10019,
1850,
6903,
273,
394,
1976,
63,
7073,
768,
18,
869,
1785,
17767,
31,
3639,
289,
3639,
469,
288,
1850,
727,
987,
32,
1785,
34,
880,
682,
273,
394,
2407,
32,
1785,
34,
5621,
1850,
364,
261,
6385,
514,
589,
294,
10006,
18,
4939,
12,
812,
18,
2
] |
&& method.getSignature().equals(getSigConstantOperand())) {
|
&& method.getSignature().equals(getSigConstantOperand())) {
|
public void sawOpcode(int seen) { try { switch (seen) { case ATHROW: if (stack.getStackDepth() > 0) { OpcodeStack.Item item = stack.getStackItem(0); String signature = item.getSignature(); if (signature != null && signature.length() > 0) { if (signature.startsWith("L")) signature = SignatureConverter.convert(signature); else signature = signature.replace('/', '.'); throwList.add(new ThrownException(signature, getPC())); } } break; case INVOKEVIRTUAL: case INVOKESPECIAL: case INVOKESTATIC: String className = getDottedClassConstantOperand(); try { if (!className.startsWith("[")) { JavaClass clazz = Repository.lookupClass(className); Method[] methods = clazz.getMethods(); for (int i = 0; i < methods.length; i++) { Method method = methods[i]; if (method.getName().equals(getNameConstantOperand()) && method.getSignature().equals(getSigConstantOperand())) { ExceptionTable et = method.getExceptionTable(); if (et != null) { String[] names = et.getExceptionNames(); for (int j = 0; j < names.length; j++) throwList.add(new ThrownException(names[j], getPC())); } break; } } } } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); } break; default: break; } } finally { stack.sawOpcode(this, seen); } }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0a90d09d10d1b86a115beba3e78b25e18a12d9c9/RuntimeExceptionCapture.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/RuntimeExceptionCapture.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
202,
698,
288,
1082,
202,
9610,
261,
15156,
13,
288,
1082,
202,
3593,
432,
2455,
11226,
30,
9506,
202,
430,
261,
3772,
18,
588,
2624,
6148,
1435,
405,
374,
13,
288,
6862,
202,
22808,
2624,
18,
1180,
761,
273,
2110,
18,
588,
2624,
1180,
12,
20,
1769,
6862,
202,
780,
3372,
273,
761,
18,
588,
5374,
5621,
6862,
202,
430,
261,
8195,
480,
446,
597,
3372,
18,
2469,
1435,
405,
374,
13,
288,
25083,
202,
430,
261,
8195,
18,
17514,
1190,
2932,
48,
6,
3719,
6862,
1082,
202,
8195,
273,
9249,
5072,
18,
6283,
12,
8195,
1769,
25083,
202,
12107,
6862,
1082,
202,
8195,
273,
3372,
18,
2079,
2668,
19,
2187,
2611,
1769,
25083,
202,
12849,
682,
18,
1289,
12,
2704,
3743,
82,
503,
12,
8195,
16,
1689,
39,
1435,
10019,
6862,
202,
97,
9506,
202,
97,
9506,
202,
8820,
31,
1082,
202,
3593,
29666,
26854,
30,
1082,
202,
3593,
20694,
3991,
10106,
6365,
30,
1082,
202,
3593,
20694,
11027,
11781,
30,
9506,
202,
780,
2658,
273,
2343,
352,
2344,
797,
6902,
10265,
5621,
9506,
202,
698,
288,
6862,
202,
430,
16051,
12434,
18,
17514,
1190,
2932,
9614,
3719,
288,
25083,
202,
5852,
797,
4003,
273,
6281,
18,
8664,
797,
12,
12434,
1769,
25083,
202,
1305,
8526,
2590,
273,
4003,
18,
588,
4712,
5621,
25083,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2590,
18,
2469,
31,
277,
27245,
288,
6862,
1082,
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,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
202,
698,
288,
1082,
202,
9610,
261,
15156,
13,
288,
1082,
202,
3593,
432,
2455,
11226,
30,
9506,
202,
430,
261,
3772,
18,
588,
2624,
6148,
1435,
405,
374,
13,
288,
6862,
202,
22808,
2624,
18,
1180,
761,
273,
2110,
18,
588,
2624,
1180,
12,
20,
1769,
6862,
202,
780,
3372,
273,
761,
18,
588,
5374,
5621,
6862,
202,
430,
261,
8195,
480,
446,
597,
3372,
18,
2469,
1435,
405,
374,
13,
288,
25083,
202,
430,
261,
8195,
18,
17514,
1190,
2932,
48,
6,
3719,
6862,
1082,
202,
8195,
273,
9249,
5072,
18,
6283,
12,
8195,
1769,
25083,
202,
12107,
6862,
1082,
202,
8195,
273,
3372,
18,
2
] |
return _tigerEnabled && f.isEnumConstant();
|
return _tigerEnabled && ((f.getModifiers() & ENUM) != 0);
|
public static boolean isEnumConstant(Field f) { return _tigerEnabled && f.isEnumConstant(); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/816e415ebd3619964409d5b7c5a5d20fa993a7b5/TigerUtilities.java/clean/dynamicjava/src/koala/dynamicjava/util/TigerUtilities.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
353,
3572,
6902,
12,
974,
284,
13,
288,
565,
327,
389,
88,
360,
264,
1526,
597,
14015,
74,
18,
588,
11948,
1435,
473,
24776,
13,
480,
374,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
353,
3572,
6902,
12,
974,
284,
13,
288,
565,
327,
389,
88,
360,
264,
1526,
597,
14015,
74,
18,
588,
11948,
1435,
473,
24776,
13,
480,
374,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super.dispose(); if (coolBarMgr != null) coolBarMgr.removeAll(); }
|
super.dispose(); if (coolBarMgr != null) coolBarMgr.removeAll(); }
|
public void dispose() { super.dispose(); if (coolBarMgr != null) coolBarMgr.removeAll(); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f1c8b0aa355c00a6c82a289c808984de6778bfca/SubActionBars2.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
288,
3639,
2240,
18,
2251,
4150,
5621,
3639,
309,
261,
71,
1371,
5190,
9455,
480,
446,
13,
5411,
27367,
5190,
9455,
18,
4479,
1595,
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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,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
288,
3639,
2240,
18,
2251,
4150,
5621,
3639,
309,
261,
71,
1371,
5190,
9455,
480,
446,
13,
5411,
27367,
5190,
9455,
18,
4479,
1595,
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
] |
m_svcLostTime = lostt; if (regainedt <= 0) m_svcRegainedTime = -1; else m_svcRegainedTime = regainedt;
|
m_svcLostTime = -1; m_svcRegainedTime = -1;
|
public RTCNodeSvcTime(long lostt, long regainedt) { m_svcLostTime = lostt; if (regainedt <= 0) m_svcRegainedTime = -1; else m_svcRegainedTime = regainedt; }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/b3612967cb053036bdb295ee74cb2e369c6ca18d/RTCNodeSvcTime.java/clean/src/services/org/opennms/netmgt/rtc/datablock/RTCNodeSvcTime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13060,
39,
907,
17444,
950,
12,
5748,
13557,
88,
16,
1525,
960,
8707,
88,
13,
202,
95,
202,
202,
81,
67,
30992,
19024,
950,
273,
13557,
88,
31,
202,
202,
430,
261,
1574,
8707,
88,
1648,
374,
13,
1082,
202,
81,
67,
30992,
1617,
8707,
950,
273,
300,
21,
31,
202,
202,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13060,
39,
907,
17444,
950,
12,
5748,
13557,
88,
16,
1525,
960,
8707,
88,
13,
202,
95,
202,
202,
81,
67,
30992,
19024,
950,
273,
13557,
88,
31,
202,
202,
430,
261,
1574,
8707,
88,
1648,
374,
13,
1082,
202,
81,
67,
30992,
1617,
8707,
950,
273,
300,
21,
31,
202,
202,
12107,
1082,
202,
81,
67,
30992,
1617,
8707,
950,
273,
960,
8707,
88,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
println(" " + blockCount + ". BT_END processing...");
|
println(" " + elementNumber + ":" + blockCount + ". BT_END processing...");
|
public static void notmain(String[] args) throws Exception { if(DEBUG) verbose = true; parseArgs(args); if(graphical) { System.setProperty("swing.aatext", "true"); //Antialiased text try { javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) {} } printlnVerbose("Processing: " + dmgFile); RandomAccessFile dmgRaf = new RandomAccessFile(dmgFile, "r"); RandomAccessFile isoRaf = null; boolean testOnly = false; if(isoFile != null) { isoRaf = new RandomAccessFile(isoFile, "rw"); isoRaf.setLength(0); printlnVerbose("Extracting to: " + isoFile); } else { testOnly = true; printlnVerbose("Simulating extraction..."); } dmgRaf.seek(dmgRaf.length()-PLIST_ADDRESS_1); long plistBegin1 = dmgRaf.readLong(); long plistEnd = dmgRaf.readLong(); dmgRaf.seek(dmgRaf.length()-PLIST_ADDRESS_2); long plistBegin2 = dmgRaf.readLong(); long plistSize = dmgRaf.readLong(); if(DEBUG) { println("Read addresses:", " " + plistBegin1, " " + plistBegin2); } if(plistBegin1 != plistBegin2) { println("Addresses not equal! Assumption broken... =/", plistBegin1 + " != " + plistBegin2); System.exit(0); } if(plistSize != (plistEnd-plistBegin1)) { println("plistSize field does not match plistEnd marker!", "plistSize=" + plistSize + " plistBegin1=" + plistBegin1 + " plistEnd=" + plistEnd + " plistEnd-plistBegin1=" + (plistEnd-plistBegin1)); } printlnVerbose("Jumping to address..."); dmgRaf.seek(plistBegin1); byte[] buffer = new byte[(int)plistSize]; dmgRaf.read(buffer); InputStream is = new ByteArrayInputStream(buffer); NodeBuilder handler = new NodeBuilder(); SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser(); try {// System.out.println("validation: " + saxParser.getProperty("validation"));// System.out.println("external-general-entities: " + saxParser.getProperty("external-general-entities"));// System.out.println("external-parameter-entities: " + saxParser.getProperty("external-parameter-entities"));// System.out.println("is-standalone: " + saxParser.getProperty("is-standalone"));// System.out.println("lexical-handler: " + saxParser.getProperty("lexical-handler"));// System.out.println("parameter-entities: " + saxParser.getProperty("parameter-entities"));// System.out.println("namespaces: " + saxParser.getProperty("namespaces"));// System.out.println("namespace-prefixes: " + saxParser.getProperty("namespace-prefixes"));// System.out.println(": " + saxParser.getProperty(""));// System.out.println(": " + saxParser.getProperty(""));// System.out.println(": " + saxParser.getProperty(""));// System.out.println(": " + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty(""));// System.out.println("" + saxParser.getProperty("")); //System.out.println("isValidating: " + saxParser.isValidating()); saxParser.parse(is, handler); } catch(SAXException se) { se.printStackTrace(); System.err.println("Could not read the partition list... exiting."); System.exit(1); } XMLNode[] rootNodes = handler.getRoots(); if(rootNodes.length != 1) { println("Could not parse DMG-file!"); System.exit(0); } /* Ok, now we have a tree built from the XML-document. Let's walk to the right place. */ /* cd plist cd dict cdkey resource-fork (type:dict) cdkey blkx (type:array) */ XMLNode current; XMLElement[] children; boolean keyFound; current = rootNodes[0]; //We are at plist... probably (there should be only one root node) current = current.cd("dict"); current = current.cdkey("resource-fork"); current = current.cdkey("blkx"); printlnVerbose("Found " + current.getChildren().length + " partitions:"); byte[] inBuffer = new byte[0x40000]; byte[] outBuffer = new byte[0x40000]; byte[] zeroblock = new byte[4096]; /* I think java always zeroes its arrays on creation... but let's play safe. */ for(int y = 0; y < zeroblock.length; ++y) zeroblock[y] = 0; LinkedList<DMGBlock> blocks = new LinkedList<DMGBlock>(); //long lastOffs = 0; long lastOutOffset = 0; long lastInOffset = 0; long totalSize = 0; boolean errorsFound = false; reportProgress(0); for(XMLElement xe : current.getChildren()) { if(progmon != null && progmon.isCanceled()) System.exit(0); if(xe instanceof XMLNode) { XMLNode xn = (XMLNode)xe; byte[] data = Base64.decode(xn.getKeyValue("Data")); long partitionSize = calculatePartitionSize(data); totalSize += partitionSize; printlnVerbose(" " + xn.getKeyValue("Name")); printlnVerbose(" ID: " + xn.getKeyValue("ID")); printlnVerbose(" Attributes: " + xn.getKeyValue("Attributes")); printlnVerbose(" Partition map data length: " + data.length + " bytes"); printlnVerbose(" Partition size: " + partitionSize + " bytes"); if(verbose) { printlnVerbose(" Dumping blkx..."); FileOutputStream fos = new FileOutputStream(xn.getKeyValue("ID") + ".blkx"); fos.write(data); fos.close(); } if(DEBUG) { File dumpFile = new File("data " + xn.getKeyValue("ID") + ".bin"); println(" Dumping partition map to file: " + dumpFile); FileOutputStream dump = new FileOutputStream(dumpFile); dump.write(data); dump.close(); } int offset = 0xCC; int blockType = 0; /* Offset of the input data for the current block in the input file */ long inOffset = 0; /* Size of the input data for the current block */ long inSize = 0; /* Offset of the output data for the current block in the output file */ long outOffset = 0; /* Size of the output data (possibly larger than inSize because of decompression, zero expansion...) */ long outSize = 0; long lastByteReadInBlock = -1; boolean addInOffset = false; //, lastInOffs = 0; int blockCount = 0; while(blockType != BT_END) { if(progmon != null && progmon.isCanceled()) System.exit(0); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(data)); int bytesSkipped = 0; while(bytesSkipped < offset) bytesSkipped += dis.skipBytes(offset-bytesSkipped); blockType = dis.readInt(); int skipped = dis.readInt(); //Skip 4 bytes forward outOffset = dis.readLong()*0x200;//(dis.readInt() & 0xffffffffL)*0x200; //unsigned int -> long //dis.readInt(); //Skip 4 bytes forward outSize = dis.readLong()*0x200;//(dis.readInt() & 0xffffffffL)*0x200; //unsigned int -> long inOffset = dis.readLong();// & 0xffffffffL; //unsigned int -> long //dis.readInt(); //Skip 4 bytes forward inSize = dis.readLong();//dis.readInt() & 0xffffffffL; //unsigned int -> long DMGBlock currentBlock = new DMGBlock(blockType, skipped, outOffset, outSize, inOffset, inSize); blocks.add(currentBlock); if(lastByteReadInBlock == -1) lastByteReadInBlock = inOffset; lastByteReadInBlock += inSize; /* The lines below are a "hack" that I had to do to make dmgx work with certain dmg-files. I don't understand the issue at all, which is why this hack is here, but sometimes inOffset == 0 means that it is 0 relative to the previous partition's last inOffset. And sometimes it doesn't (meaning the actual position 0 in the dmg file). */ if(addInOffset) inOffset += lastInOffset; else if(inOffset == 0) { addInOffset = true; inOffset += lastInOffset; } outOffset += lastOutOffset; if(DEBUG) { println("outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset + " inSize=" + inSize + " lastOutOffset=" + lastOutOffset + " lastInOffset=" + lastInOffset /*+ " lastInOffs=" + lastInOffs + " lastOffs=" + lastOffs*/); } if(blockType == BT_ADC) { println(" " + blockCount + ". BT_ADC not supported."); if(!testOnly) System.exit(0); } else if(blockType == BT_ZLIB) { if(DEBUG) println(" " + blockCount + ". BT_ZLIB processing..."); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". BT_ZLIB FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); try { DMGBlockHandlers.processZlibBlock(currentBlock, dmgRaf, isoRaf, testOnly, dummyMonitor); } catch(DataFormatException dfe) { println(" " + blockCount + ". BT_ZLIB Could not decode..."); if(!DEBUG) { println("outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset + " inSize=" + inSize + " lastOutOffset=" + lastOutOffset + " lastInOffset=" + lastInOffset); } dfe.printStackTrace(); if(!testOnly) System.exit(0); else { println(" Testing mode, so continuing..."); //System.exit(0); errorsFound = true; break; } } } else if(blockType == BT_BZIP2) { println(" " + blockCount + ". BT_BZIP2 not currently supported."); if(!testOnly) System.exit(0); } else if(blockType == BT_COPY) { if(DEBUG) println(" " + blockCount + ". BT_COPY processing..."); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". BT_COPY FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); dmgRaf.seek(/*lastOffs+*/inOffset); int bytesRead = dmgRaf.read(inBuffer, 0, Math.min((int)inSize, inBuffer.length)); long totalBytesRead = bytesRead; while(bytesRead != -1) { reportFilePointerProgress(dmgRaf); if(!testOnly) isoRaf.write(inBuffer, 0, bytesRead); if(totalBytesRead >= inSize) break; bytesRead = dmgRaf.read(inBuffer, 0, Math.min((int)(inSize-totalBytesRead), inBuffer.length)); if(bytesRead > 0) totalBytesRead += bytesRead; } //lastInOffs = inOffset+inSize; } else if(blockType == BT_ZERO) { if(DEBUG) println(" " + blockCount + ". BT_ZERO processing..."); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". BT_ZERO FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); reportFilePointerProgress(dmgRaf); long numberOfZeroBlocks = outSize/zeroblock.length; int numberOfRemainingBytes = (int)(outSize%zeroblock.length); for(int j = 0; j < numberOfZeroBlocks; ++j) { if(!testOnly) isoRaf.write(zeroblock); } if(!testOnly) isoRaf.write(zeroblock, 0, numberOfRemainingBytes); //lastInOffs = inOffset+inSize; } else if(blockType == BT_UNKNOWN) { /* I have no idea what this blocktype is... but it's common, and usually doesn't appear more than 2-3 times in a dmg. As long as its input and output sizes are 0, there's no reason to complain... is there? */ if(DEBUG) println(" " + blockCount + ". BT_UNKNOWN processing..."); if(!(inSize == 0 && outSize == 0)) { println(" " + blockCount + ". WARNING! Blocktype BT_UNKNOWN had non-zero sizes...", " inSize=" + inSize + ", outSize=" + outSize); //println(" The author of the program would be pleased if you contacted him about this."); // ...or would I? } } else if(blockType == BT_END) { if(DEBUG) println(" " + blockCount + ". BT_END processing..."); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". BT_END FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); //lastOffs += lastInOffs; lastOutOffset = outOffset; lastInOffset += lastByteReadInBlock; } else { println(" " + blockCount + ". WARNING: previously unseen blocktype " + blockType + " [0x" + Integer.toHexString(blockType) + "]", " " + blockCount + ". outOffset=" + outOffset + " outSize=" + outSize + " inOffset=" + inOffset + " inSize=" + inSize); if(!testOnly && isoRaf.getFilePointer() != outOffset) println(" " + blockCount + ". unknown blocktype FP != outOffset (" + isoRaf.getFilePointer() + " != " + outOffset + ")"); } offset += 0x28; ++blockCount; } } } //printlnVerbose("Progress: 100% Done!"); reportProgress(100); String errors = errorsFound?"There were errors...":"No errors reported."; if(!graphical) { newline(); println(errors); printlnVerbose("Total extracted bytes: " + totalSize + " B"); } else { progmon.close(); JOptionPane.showMessageDialog(null, "Extraction complete! " + errors + "\n" + "Total extracted bytes: " + totalSize + " B", "Information", JOptionPane.INFORMATION_MESSAGE); System.exit(0); } if(!DEBUG) { isoRaf.close(); dmgRaf.close(); } else { isoRaf.close();// System.out.println("blocks.size()=" + blocks.size());// for(DMGBlock b : blocks)// System.out.println(" " + b.toString()); LinkedList<DMGBlock> merged = mergeBlocks(blocks);// System.out.println("merged.size()=" + merged.size());// for(DMGBlock b : merged)// System.out.println(" " + b.toString()); println("Extracting all the parts not containing block data from source file:"); int i = 1; DMGBlock previous = null; for(DMGBlock b : merged) { if(previous == null && b.inOffset > 0) { String filename = i++ + ".block"; println(" " + new File(filename).getCanonicalPath() + "..."); FileOutputStream curFos = new FileOutputStream(new File(filename)); dmgRaf.seek(0); byte[] data = new byte[(int)(b.inOffset)]; dmgRaf.read(data); curFos.write(data); curFos.close(); } else if(previous != null) { String filename = i++ + ".block"; println(" " + new File(filename).getCanonicalPath() + "..."); FileOutputStream curFos = new FileOutputStream(new File(filename)); dmgRaf.seek(previous.inOffset+previous.inSize); byte[] data = new byte[(int)(b.inOffset-(previous.inOffset+previous.inSize))]; dmgRaf.read(data); curFos.write(data); curFos.close(); } previous = b; } if(previous.inOffset+previous.inSize != dmgRaf.length()) { String filename = i++ + ".block"; println(" " + new File(filename).getCanonicalPath() + "..."); FileOutputStream curFos = new FileOutputStream(new File(filename)); dmgRaf.seek(previous.inOffset+previous.inSize); byte[] data = new byte[(int)(dmgRaf.length()-(previous.inOffset+previous.inSize))]; dmgRaf.read(data); curFos.write(data); curFos.close(); } dmgRaf.close(); System.out.println("done!"); } }
|
52348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52348/c6f6a4355da02b8cd226878caa824a64ad97b9b5/DMGExtractor.java/buggy/src/org/catacombae/dmgx/DMGExtractor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
486,
5254,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
430,
12,
9394,
13,
3988,
273,
638,
31,
202,
202,
2670,
2615,
12,
1968,
1769,
202,
430,
12,
4660,
1706,
13,
288,
202,
565,
2332,
18,
542,
1396,
2932,
5328,
310,
18,
69,
270,
408,
3113,
315,
3767,
8863,
368,
14925,
649,
77,
8905,
977,
202,
565,
775,
288,
6863,
18,
5328,
310,
18,
5370,
1318,
18,
542,
9794,
1876,
2954,
292,
12,
28384,
18,
5328,
310,
18,
5370,
1318,
18,
588,
3163,
9794,
1876,
2954,
292,
3834,
10663,
289,
202,
565,
1044,
12,
503,
425,
13,
2618,
202,
97,
202,
202,
8222,
14489,
2932,
7798,
30,
315,
397,
9113,
75,
812,
1769,
202,
8529,
26933,
9113,
75,
54,
1727,
273,
394,
8072,
26933,
12,
10956,
75,
812,
16,
315,
86,
8863,
202,
8529,
26933,
8702,
54,
1727,
273,
446,
31,
202,
6494,
1842,
3386,
273,
629,
31,
202,
430,
12,
9699,
812,
480,
446,
13,
288,
202,
565,
8702,
54,
1727,
273,
394,
8072,
26933,
12,
9699,
812,
16,
315,
21878,
8863,
202,
565,
8702,
54,
1727,
18,
542,
1782,
12,
20,
1769,
202,
565,
3785,
14489,
2932,
4976,
310,
358,
30,
315,
397,
8702,
812,
1769,
202,
97,
202,
12107,
288,
202,
565,
1842,
3386,
273,
638,
31,
202,
565,
3785,
14489,
2932,
7993,
27967,
18752,
7070,
1769,
202,
97,
202,
202,
10956,
75,
54,
1727,
18,
16508,
12,
10956,
75,
54,
1727,
18,
2469,
1435,
17,
52,
7085,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
486,
5254,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
430,
12,
9394,
13,
3988,
273,
638,
31,
202,
202,
2670,
2615,
12,
1968,
1769,
202,
430,
12,
4660,
1706,
13,
288,
202,
565,
2332,
18,
542,
1396,
2932,
5328,
310,
18,
69,
270,
408,
3113,
315,
3767,
8863,
368,
14925,
649,
77,
8905,
977,
202,
565,
775,
288,
6863,
18,
5328,
310,
18,
5370,
1318,
18,
542,
9794,
1876,
2954,
292,
12,
28384,
18,
5328,
310,
18,
5370,
1318,
18,
588,
3163,
9794,
1876,
2954,
292,
3834,
10663,
289,
202,
565,
1044,
12,
503,
425,
13,
2618,
202,
97,
202,
202,
8222,
14489,
2932,
7798,
30,
315,
397,
9113,
75,
812,
1769,
202,
2
] |
public int allocateArray(VM_Array array, int numElements) {
|
public Offset allocateArray(VM_Array array, int numElements) {
|
public int allocateArray(VM_Array array, int numElements) { numObjects++; array.bootCount++; array.bootBytes += array.getInstanceSize(numElements); return VM_ObjectModel.allocateArray(this, array, numElements); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/d1d1434574eb350f48cb1d82f04917a27eea9bdc/BootImage.java/clean/rvm/src/tools/bootImageWriter/BootImage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9874,
10101,
1076,
12,
7397,
67,
1076,
526,
16,
509,
818,
3471,
13,
288,
565,
818,
4710,
9904,
31,
565,
526,
18,
7137,
1380,
9904,
31,
565,
526,
18,
7137,
2160,
1011,
526,
18,
588,
1442,
1225,
12,
2107,
3471,
1769,
565,
327,
8251,
67,
921,
1488,
18,
16247,
1076,
12,
2211,
16,
526,
16,
818,
3471,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9874,
10101,
1076,
12,
7397,
67,
1076,
526,
16,
509,
818,
3471,
13,
288,
565,
818,
4710,
9904,
31,
565,
526,
18,
7137,
1380,
9904,
31,
565,
526,
18,
7137,
2160,
1011,
526,
18,
588,
1442,
1225,
12,
2107,
3471,
1769,
565,
327,
8251,
67,
921,
1488,
18,
16247,
1076,
12,
2211,
16,
526,
16,
818,
3471,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static String getResourceString(String key, String ... args) { String text = getResourceString(key); MessageFormat format = new MessageFormat(text); return format.format(args);
|
public static String getResourceString(String key) { try { ResourceBundle bundle = ResourceBundle.getBundle("ServidorApresentacao.RendererResources"); return bundle.getString(key); } catch (MissingResourceException e) { return null; }
|
public static String getResourceString(String key, String ... args) { String text = getResourceString(key); MessageFormat format = new MessageFormat(text); return format.format(args); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/4114c93302d9829ac160ac7f83a8a1d7cf543d49/RenderUtils.java/buggy/src/net/sourceforge/fenixedu/renderers/utils/RenderUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
5070,
780,
12,
780,
498,
16,
514,
1372,
833,
13,
288,
3639,
514,
977,
273,
5070,
780,
12,
856,
1769,
7734,
17377,
740,
273,
394,
17377,
12,
955,
1769,
7734,
327,
740,
18,
2139,
12,
1968,
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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,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
5070,
780,
12,
780,
498,
16,
514,
1372,
833,
13,
288,
3639,
514,
977,
273,
5070,
780,
12,
856,
1769,
7734,
17377,
740,
273,
394,
17377,
12,
955,
1769,
7734,
327,
740,
18,
2139,
12,
1968,
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
] |
doingUpdates = !onInsertRow; updateValues.put( fields[columnIndex - 1].getName(), theData );
|
updateValue(columnIndex, theData);
|
public synchronized void updateBinaryStream(int columnIndex, java.io.InputStream x, int length ) throws SQLException { if ( !isUpdateable() ) { throw new PSQLException( "postgresql.updateable.notupdateable" ); } byte[] theData = null; try { x.read(theData, 0, length); } catch ( NullPointerException ex ) { throw new PSQLException("postgresql.updateable.inputstream"); } catch (IOException ie) { throw new PSQLException("postgresql.updateable.ioerror" + ie); } doingUpdates = !onInsertRow; updateValues.put( fields[columnIndex - 1].getName(), theData ); }
|
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/289d9eea1298f2b85409b3e98857210fb69e8c9d/AbstractJdbc2ResultSet.java/buggy/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
1089,
5905,
1228,
12,
474,
14882,
16,
1082,
202,
6290,
18,
1594,
18,
4348,
619,
16,
1082,
202,
474,
769,
6862,
6862,
9506,
282,
262,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
401,
291,
1891,
429,
1435,
262,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
12,
315,
2767,
24330,
18,
2725,
429,
18,
902,
2725,
429,
6,
11272,
202,
202,
97,
202,
202,
7229,
8526,
326,
751,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
92,
18,
896,
12,
5787,
751,
16,
374,
16,
769,
1769,
202,
202,
97,
202,
202,
14683,
261,
10108,
431,
262,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
2725,
429,
18,
2630,
3256,
8863,
202,
202,
97,
202,
202,
14683,
261,
14106,
9228,
13,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
2725,
429,
18,
1594,
1636,
6,
397,
9228,
1769,
202,
202,
97,
202,
202,
2896,
310,
5121,
273,
401,
265,
4600,
1999,
31,
202,
202,
2725,
1972,
18,
458,
12,
1466,
63,
2827,
1016,
300,
404,
8009,
17994,
9334,
326,
751,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
3852,
918,
1089,
5905,
1228,
12,
474,
14882,
16,
1082,
202,
6290,
18,
1594,
18,
4348,
619,
16,
1082,
202,
474,
769,
6862,
6862,
9506,
282,
262,
202,
15069,
6483,
202,
95,
202,
202,
430,
261,
401,
291,
1891,
429,
1435,
262,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
12,
315,
2767,
24330,
18,
2725,
429,
18,
902,
2725,
429,
6,
11272,
202,
202,
97,
202,
202,
7229,
8526,
326,
751,
273,
446,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
92,
18,
896,
12,
5787,
751,
16,
374,
16,
769,
1769,
202,
202,
97,
202,
202,
14683,
261,
10108,
431,
262,
202,
202,
95,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
2
] |
repaintAndScroll(startLine,numLines);
|
if(numLines != 0) delayedMultilineUpdate = true; int endLine = startLine + numLines; delayedRepaint(startLine,endLine);
|
public void contentInserted(Buffer buffer, int startLine, int start, int numLines, int length) { // ... otherwise,buffer will call transactionComplete() // later on //if(!buffer.isTransactionInProgress()) chunkCache.invalidateChunksFromPhys(startLine); if(!buffer.isLoaded()) return; repaintAndScroll(startLine,numLines); //{{{ resize selections if necessary for(int i = 0; i < selection.size(); i++) { Selection s = (Selection)selection.elementAt(i); if(s.contentInserted(buffer,startLine,start, numLines,length)) { delayedRepaintStart = Math.min( delayedRepaintStart, s.startLine); delayedRepaintEnd = Math.max( delayedRepaintEnd, s.endLine); } } //}}} // ... otherwise,buffer will call transactionComplete() // later on if(!buffer.isTransactionInProgress()) transactionComplete(buffer); if(caret >= start) moveCaretPosition(caret + length,true); else { // will update bracket highlight moveCaretPosition(caret); } }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/befc09fd9b021390d260935ee43313104d522710/JEditTextArea.java/buggy/org/gjt/sp/jedit/textarea/JEditTextArea.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
913,
27329,
12,
1892,
1613,
16,
509,
24636,
16,
509,
787,
16,
1082,
202,
474,
818,
5763,
16,
509,
769,
13,
202,
202,
95,
1082,
202,
759,
1372,
3541,
16,
4106,
903,
745,
2492,
6322,
1435,
1082,
202,
759,
5137,
603,
1082,
202,
759,
430,
12,
5,
4106,
18,
291,
3342,
13434,
10756,
1082,
202,
6551,
1649,
18,
5387,
340,
14975,
1265,
3731,
1900,
12,
1937,
1670,
1769,
1082,
202,
430,
12,
5,
4106,
18,
291,
8835,
10756,
9506,
202,
2463,
31,
1082,
202,
14462,
1598,
1876,
6806,
12,
1937,
1670,
16,
2107,
5763,
1769,
1082,
202,
759,
12187,
95,
7041,
21738,
309,
4573,
1082,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
4421,
18,
1467,
5621,
277,
27245,
1082,
202,
95,
9506,
202,
6233,
272,
273,
261,
6233,
13,
10705,
18,
2956,
861,
12,
77,
1769,
9506,
202,
430,
12,
87,
18,
1745,
27329,
12,
4106,
16,
1937,
1670,
16,
1937,
16,
6862,
202,
2107,
5763,
16,
2469,
3719,
9506,
202,
95,
6862,
202,
10790,
329,
18933,
1598,
1685,
273,
2361,
18,
1154,
12,
25083,
202,
10790,
329,
18933,
1598,
1685,
16,
25083,
202,
87,
18,
1937,
1670,
1769,
6862,
202,
10790,
329,
18933,
1598,
1638,
273,
2361,
18,
1896,
12,
25083,
202,
10790,
329,
18933,
1598,
1638,
16,
25083,
202,
87,
18,
409,
1670,
1769,
9506,
202,
97,
1082,
202,
97,
368,
9090,
97,
1082,
202,
759,
1372,
3541,
16,
4106,
903,
745,
2492,
6322,
1435,
1082,
202,
759,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
913,
27329,
12,
1892,
1613,
16,
509,
24636,
16,
509,
787,
16,
1082,
202,
474,
818,
5763,
16,
509,
769,
13,
202,
202,
95,
1082,
202,
759,
1372,
3541,
16,
4106,
903,
745,
2492,
6322,
1435,
1082,
202,
759,
5137,
603,
1082,
202,
759,
430,
12,
5,
4106,
18,
291,
3342,
13434,
10756,
1082,
202,
6551,
1649,
18,
5387,
340,
14975,
1265,
3731,
1900,
12,
1937,
1670,
1769,
1082,
202,
430,
12,
5,
4106,
18,
291,
8835,
10756,
9506,
202,
2463,
31,
1082,
202,
14462,
1598,
1876,
6806,
12,
1937,
1670,
16,
2107,
5763,
1769,
1082,
202,
759,
12187,
95,
7041,
21738,
309,
4573,
1082,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
2
] |
final ClassLoader oldLoader, final String[] classesToLoadWithOld)
|
final ClassLoader oldLoader)
|
public StickyClassLoader(final ClassLoader newLoader, final ClassLoader oldLoader, final String[] classesToLoadWithOld) { super(oldLoader); _newLoader = newLoader; _classesToLoadWithOld = (String[]) classesToLoadWithOld.clone(); Arrays.sort(_classesToLoadWithOld); }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/7b4a527a2fd4010c88a2ef6ea8f158547b322968/StickyClassLoader.java/buggy/drjava/src/edu/rice/cs/util/classloader/StickyClassLoader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
934,
13055,
7805,
12,
6385,
9403,
394,
2886,
16,
21821,
727,
9403,
1592,
2886,
16,
21821,
727,
514,
8526,
3318,
26883,
1190,
7617,
13,
225,
288,
565,
2240,
12,
1673,
2886,
1769,
565,
389,
2704,
2886,
273,
394,
2886,
31,
565,
389,
4701,
26883,
1190,
7617,
273,
261,
780,
63,
5717,
3318,
26883,
1190,
7617,
18,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
934,
13055,
7805,
12,
6385,
9403,
394,
2886,
16,
21821,
727,
9403,
1592,
2886,
16,
21821,
727,
514,
8526,
3318,
26883,
1190,
7617,
13,
225,
288,
565,
2240,
12,
1673,
2886,
1769,
565,
389,
2704,
2886,
273,
394,
2886,
31,
565,
389,
4701,
26883,
1190,
7617,
273,
261,
780,
63,
5717,
3318,
26883,
1190,
7617,
18,
14056,
5621,
565,
5647,
18,
3804,
24899,
4701,
26883,
1190,
7617,
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
] |
private void analyzeMethod(final ClassContext classContext, final Method method, final Set<Method> lockedMethodSet) throws CFGBuilderException, DataflowAnalysisException { final InnerClassAccessMap icam = InnerClassAccessMap.instance(); final ConstantPoolGen cpg = classContext.getConstantPoolGen(); final MethodGen methodGen = classContext.getMethodGen(method); final CFG cfg = classContext.getCFG(method); final LockDataflow lockDataflow = classContext.getLockDataflow(method); final ValueNumberDataflow vnaDataflow = classContext.getValueNumberDataflow(method); final boolean isGetterMethod = isGetterMethod(classContext, method); if (DEBUG) System.out.println("**** Analyzing method " + SignatureConverter.convertMethodSignature(classContext.getMethodGen(method))); new LocationScanner(cfg).scan(new LocationScanner.Callback() { public void visitLocation(Location location) throws CFGBuilderException, DataflowAnalysisException { try { Instruction ins = location.getHandle().getInstruction(); XField xfield = null; boolean isWrite = false; boolean isLocal = false; if (ins instanceof FieldInstruction) { FieldInstruction fins = (FieldInstruction) ins; xfield = Lookup.findXField(fins, cpg); isWrite = ins.getOpcode() == Constants.PUTFIELD; isLocal = fins.getClassName(cpg).equals(classContext.getJavaClass().getClassName()); if (DEBUG) System.out.println("Handling field access: " + location.getHandle() + " (frame=" + vnaDataflow.getFactAtLocation(location) + ")"); } else if (ins instanceof INVOKESTATIC) { INVOKESTATIC inv = (INVOKESTATIC) ins; InnerClassAccess access = icam.getInnerClassAccess(inv, cpg); if (access != null && access.getMethodSignature().equals(inv.getSignature(cpg))) { xfield = access.getField(); isWrite = !access.isLoad(); isLocal = false; if (DEBUG) System.out.println("Handling inner class access: " + location.getHandle() + " (frame=" + vnaDataflow.getFactAtLocation(location) + ")"); } } // We only care about mutable nonvolatile nonpublic instance fields. if (xfield != null && !(xfield.isStatic() || xfield.isPublic() || xfield.isVolatile() || xfield.isFinal())) { ValueNumberFrame frame = vnaDataflow.getFactAtLocation(location); ValueNumber thisValue = !method.isStatic() ? vnaDataflow.getAnalysis().getThisValue() : null; LockSet lockSet = lockDataflow.getFactAtLocation(location); InstructionHandle handle = location.getHandle(); // Is the instance locked? // We consider the access to be locked if either // - the object is explicitly locked, or // - the field is accessed through the "this" reference, // and the method is in the locked method set ValueNumber instance = frame.getInstance(handle.getInstruction(), cpg); boolean isExplicitlyLocked = lockSet.getLockCount(instance.getNumber()) > 0; boolean isAccessedThroughThis = thisValue != null && thisValue.equals(instance); boolean isLocked = isExplicitlyLocked || (lockedMethodSet.contains(method) && isAccessedThroughThis); // Adjust the field so its class name is the same // as the type of reference it is accessed through. // This helps fix false positives produced when a // threadsafe class is extended by a subclass that // doesn't care about thread safety. if (ADJUST_SUBCLASS_ACCESSES) { // Find the type of the object instance TypeDataflow typeDataflow = classContext.getTypeDataflow(method); TypeFrame typeFrame = typeDataflow.getFactAtLocation(location); Type instanceType = typeFrame.getInstance(handle.getInstruction(), cpg); if (!(instanceType instanceof ObjectType)) throw new AnalysisException("Field accessed through non-object reference " + instanceType, methodGen, handle); ObjectType objType = (ObjectType) instanceType; // If instance class name is not the same as that of the field, // make it so String instanceClassName = objType.getClassName(); if (!instanceClassName.equals(xfield.getClassName())) { xfield = new InstanceField( instanceClassName, xfield.getFieldName(), xfield.getFieldSignature(), xfield.getAccessFlags() ); } } int kind = 0; kind |= isLocked ? LOCKED : UNLOCKED; kind |= isWrite ? WRITE : READ; if (DEBUG) System.out.println("IS2:\t" + SignatureConverter.convertMethodSignature(classContext.getMethodGen(method)) + "\t" + xfield + "\t" + ((isWrite ? "W" : "R") + "/" + (isLocked ? "L" : "U"))); FieldStats stats = getStats(xfield); stats.addAccess(kind); if (isExplicitlyLocked && isLocal) stats.addLocalLock(); if (isGetterMethod && !isLocked) stats.addGetterMethodAccess(); stats.addAccess(classContext, method, handle, isLocked); } // FIXME: should we do something for static fields? } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); } } }); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/92214cfdfe9ecd60573b00faa8c8b32558d94aff/FindInconsistentSync2.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindInconsistentSync2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
565,
918,
565,
12375,
1305,
12,
6385,
565,
1659,
1042,
565,
667,
1042,
16,
565,
727,
565,
2985,
565,
707,
16,
565,
727,
565,
1000,
32,
1305,
34,
565,
8586,
1305,
694,
13,
202,
202,
15069,
565,
7577,
1263,
503,
16,
565,
1910,
2426,
9418,
503,
565,
288,
202,
202,
6385,
565,
19494,
797,
1862,
863,
565,
13579,
301,
565,
273,
565,
19494,
797,
1862,
863,
18,
1336,
5621,
202,
202,
6385,
565,
10551,
2864,
7642,
565,
3283,
75,
565,
273,
565,
667,
1042,
18,
588,
6902,
2864,
7642,
5621,
202,
202,
6385,
565,
2985,
7642,
565,
707,
7642,
565,
273,
565,
667,
1042,
18,
588,
1305,
7642,
12,
2039,
1769,
202,
202,
6385,
565,
7577,
565,
2776,
565,
273,
565,
667,
1042,
18,
588,
19727,
12,
2039,
1769,
202,
202,
6385,
565,
3488,
751,
2426,
565,
2176,
751,
2426,
565,
273,
565,
667,
1042,
18,
588,
2531,
751,
2426,
12,
2039,
1769,
202,
202,
6385,
565,
1445,
1854,
751,
2426,
565,
331,
6582,
751,
2426,
565,
273,
565,
667,
1042,
18,
24805,
1854,
751,
2426,
12,
2039,
1769,
202,
202,
6385,
565,
1250,
565,
353,
8461,
1305,
565,
273,
565,
353,
8461,
1305,
12,
1106,
1042,
16,
565,
707,
1769,
202,
202,
430,
565,
261,
9394,
13,
565,
2332,
18,
659,
18,
8222,
2932,
1007,
565,
1922,
4647,
310,
565,
707,
565,
315,
565,
397,
1082,
202,
5374,
5072,
18,
6283,
1305,
5374,
12,
1106,
1042,
18,
588,
1305,
7642,
12,
2039,
3719,
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,
565,
918,
565,
12375,
1305,
12,
6385,
565,
1659,
1042,
565,
667,
1042,
16,
565,
727,
565,
2985,
565,
707,
16,
565,
727,
565,
1000,
32,
1305,
34,
565,
8586,
1305,
694,
13,
202,
202,
15069,
565,
7577,
1263,
503,
16,
565,
1910,
2426,
9418,
503,
565,
288,
202,
202,
6385,
565,
19494,
797,
1862,
863,
565,
13579,
301,
565,
273,
565,
19494,
797,
1862,
863,
18,
1336,
5621,
202,
202,
6385,
565,
10551,
2864,
7642,
565,
3283,
75,
565,
273,
565,
667,
1042,
18,
588,
6902,
2864,
7642,
5621,
202,
202,
6385,
565,
2985,
7642,
565,
707,
7642,
565,
273,
565,
667,
1042,
18,
588,
1305,
7642,
12,
2039,
1769,
202,
202,
6385,
565,
7577,
2
] |
||
issuerNames = new ArrayList(issuers);
|
issuerNames = new ArrayList<String>(issuers.size()); issuerPrincipals = new ArrayList<X500Principal>(issuers); for (X500Principal issuer: issuers) { issuerNames.add(issuer.getName(X500Principal.CANONICAL)); }
|
public void setIssuers(Collection<X500Principal> issuers) { if (issuers == null) { issuerNames = null; return; } issuerNames = new ArrayList(issuers); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/cd486b2997fc7cfe4c08299e2fbad2544d3edffb/X509CRLSelector.java/buggy/modules/security/src/main/java/common/java/security/cert/X509CRLSelector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
7568,
27307,
12,
2532,
32,
60,
12483,
9155,
34,
3385,
27307,
13,
288,
3639,
309,
261,
1054,
27307,
422,
446,
13,
288,
5411,
9715,
1557,
273,
446,
31,
5411,
327,
31,
3639,
289,
3639,
9715,
1557,
273,
394,
2407,
32,
780,
34,
12,
1054,
27307,
18,
1467,
10663,
9715,
25035,
273,
394,
2407,
32,
60,
12483,
9155,
34,
12,
1054,
27307,
1769,
364,
261,
60,
12483,
9155,
9715,
30,
3385,
27307,
13,
288,
9715,
1557,
18,
1289,
12,
17567,
18,
17994,
12,
60,
12483,
9155,
18,
39,
1258,
673,
10109,
10019,
289,
377,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
7568,
27307,
12,
2532,
32,
60,
12483,
9155,
34,
3385,
27307,
13,
288,
3639,
309,
261,
1054,
27307,
422,
446,
13,
288,
5411,
9715,
1557,
273,
446,
31,
5411,
327,
31,
3639,
289,
3639,
9715,
1557,
273,
394,
2407,
32,
780,
34,
12,
1054,
27307,
18,
1467,
10663,
9715,
25035,
273,
394,
2407,
32,
60,
12483,
9155,
34,
12,
1054,
27307,
1769,
364,
261,
60,
12483,
9155,
9715,
30,
3385,
27307,
13,
288,
9715,
1557,
18,
1289,
12,
17567,
18,
17994,
12,
60,
12483,
9155,
18,
39,
1258,
673,
10109,
10019,
289,
377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
PsiForeachStatement forStatement) {
|
PsiForeachStatement forStatement){
|
private boolean foreachStatementMustAssignVariable(PsiVariable field, PsiForeachStatement forStatement) { return false; }
|
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/bfd992e322e7a4460064ead02e35d530f627faec/InitializationReadUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationReadUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
936,
3406,
10136,
4910,
3092,
12,
52,
7722,
3092,
652,
16,
4766,
15604,
453,
7722,
13573,
497,
3406,
364,
3406,
15329,
3639,
327,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one),
|
burs.append(MIR_Binary.create(PPC_SRWI, R(t), one, I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), one.copyRO(),
|
boolean boolean_cmp_imm(OPT_BURS burs, OPT_Register def, OPT_Register one, int value, OPT_ConditionOperand cmp) { OPT_Register t1, t = burs.ir.regpool.getInteger(false); OPT_Register zero = burs.ir.regpool.getPhysicalRegisterSet().getTemp(); boolean convert = true; switch (cmp.value) { case OPT_ConditionOperand.EQUAL: if (value == 0) { burs.append(MIR_Unary.create(PPC_CNTLZW, R(t), R(one))); } else { burs.append(MIR_Binary.create(PPC_SUBFIC, R(t), R(one), I(value))); burs.append(MIR_Unary.create(PPC_CNTLZW, R(t), R(t))); } burs.append(MIR_Binary.create(PPC_SRWI, R(def), R(t), I(5))); break; case OPT_ConditionOperand.NOT_EQUAL: if (value == 0) { burs.append(MIR_Binary.create(PPC_ADDIC, R(t), R(one), I(-1))); burs.append(MIR_Binary.create(PPC_SUBFE, R(def), R(t), R(one))); } else { t1 = burs.ir.regpool.getInteger(false); burs.append(MIR_Binary.create(PPC_SUBFIC, R(t1), R(one), I(value))); burs.append(MIR_Binary.create(PPC_ADDIC, R(t), R(t1), I(-1))); burs.append(MIR_Binary.create(PPC_SUBFE, R(def), R(t), R(t1))); } break; case OPT_ConditionOperand.LESS: if (value == 0) { burs.append(MIR_Binary.create(PPC_SRWI, R(def), R(one), I(31))); } else if (value > 0) { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value - 1))); burs.append(MIR_Unary.create(PPC_ADDZE, R(def), R(t))); } else if (value != 0xFFFF8000) { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value - 1))); burs.append(MIR_Unary.create(PPC_ADDME, R(def), R(t))); } else { // value = 0xFFFF8000 burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Unary.create(PPC_LDIS, R(zero), I(1))); burs.append(MIR_Binary.create(PPC_SUBFC, R(zero), R(one), R(zero))); burs.append(MIR_Unary.create(PPC_ADDME, R(def), R(t))); } break; case OPT_ConditionOperand.GREATER: if (value == 0) { burs.append(MIR_Unary.create(PPC_NEG, R(t), R(one))); burs.append(MIR_Binary.create(PPC_ANDC, R(t), R(t), R(one))); burs.append(MIR_Binary.create(PPC_SRWI, R(def), R(t), I(31))); } else if (value >= 0) { burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_ADDIC, R(zero), R(one), I(-value - 1))); burs.append(MIR_Unary.create(PPC_ADDZE, R(def), R(t))); } else { t1 = burs.ir.regpool.getInteger(false); burs.append(MIR_Unary.create(PPC_LDI, R(t1), I(1))); burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_ADDIC, R(zero), R(one), I(-value - 1))); burs.append(MIR_Binary.create(PPC_ADDE, R(def), R(t), R(t1))); } break; case OPT_ConditionOperand.LESS_EQUAL: if (value == 0) { burs.append(MIR_Binary.create(PPC_ADDI, R(t), R(one), I(-1))); burs.append(MIR_Binary.create(PPC_OR, R(t), R(t), R(one))); burs.append(MIR_Binary.create(PPC_SRWI, R(def), R(t), I(31))); } else if (value >= 0) { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value))); burs.append(MIR_Unary.create(PPC_ADDZE, R(def), R(t))); } else { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value))); burs.append(MIR_Unary.create(PPC_ADDME, R(def), R(t))); } break; case OPT_ConditionOperand.GREATER_EQUAL: if (value == 0) { burs.append(MIR_Binary.create(PPC_SRWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_XORI, R(def), R(t), I(1))); } else if (value >= 0) { burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_ADDIC, R(zero), R(one), I(-value))); burs.append(MIR_Unary.create(PPC_ADDZE, R(def), R(t))); } else if (value != 0xFFFF8000) { t1 = burs.ir.regpool.getInteger(false); burs.append(MIR_Unary.create(PPC_LDI, R(t1), I(1))); burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Binary.create(PPC_ADDIC, R(zero), R(one), I(-value))); burs.append(MIR_Binary.create(PPC_ADDE, R(def), R(t), R(t1))); } else { t1 = burs.ir.regpool.getInteger(false); burs.append(MIR_Unary.create(PPC_LDI, R(t1), I(1))); burs.append(MIR_Binary.create(PPC_SRAWI, R(t), R(one), I(31))); burs.append(MIR_Unary.create(PPC_LDIS, R(zero), I(1))); burs.append(MIR_Binary.create(PPC_ADDC, R(zero), R(one), R(zero))); burs.append(MIR_Binary.create(PPC_ADDE, R(def), R(t), R(t1))); } break; case OPT_ConditionOperand.HIGHER: return false; // todo case OPT_ConditionOperand.LOWER: return false; // todo case OPT_ConditionOperand.HIGHER_EQUAL: return false; // todo case OPT_ConditionOperand.LOWER_EQUAL: burs.append(MIR_Unary.create(PPC_LDI, R(t), I(-1))); burs.append(MIR_Binary.create(PPC_SUBFIC, R(zero), R(one), I(value))); burs.append(MIR_Unary.create(PPC_SUBFZE, R(def), R(t))); break; default: return false; } return true; }
|
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/9c70db392f41613f61080a71c5629254a66acf16/OPT_BURS_Helpers.java/buggy/rvm/src/vm/arch/powerPC/compilers/optimizing/ir/conversions/lir2mir/OPT_BURS_Helpers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
1250,
67,
9625,
67,
381,
81,
12,
15620,
67,
38,
1099,
55,
324,
25152,
16,
16456,
67,
3996,
1652,
16,
30306,
16456,
67,
3996,
1245,
16,
30306,
509,
460,
16,
16456,
67,
3418,
10265,
9411,
13,
288,
565,
16456,
67,
3996,
268,
21,
16,
268,
273,
324,
25152,
18,
481,
18,
1574,
6011,
18,
588,
4522,
12,
5743,
1769,
565,
16456,
67,
3996,
3634,
273,
324,
25152,
18,
481,
18,
1574,
6011,
18,
588,
18136,
3996,
694,
7675,
588,
7185,
5621,
565,
1250,
1765,
273,
638,
31,
565,
1620,
261,
9625,
18,
1132,
13,
288,
565,
648,
16456,
67,
3418,
10265,
18,
12853,
30,
1377,
309,
261,
1132,
422,
374,
13,
288,
202,
70,
25152,
18,
6923,
12,
7492,
54,
67,
15972,
18,
2640,
12,
52,
3513,
67,
39,
1784,
48,
62,
59,
16,
534,
12,
88,
3631,
534,
12,
476,
3719,
1769,
4202,
289,
469,
288,
202,
70,
25152,
18,
6923,
12,
7492,
54,
67,
5905,
18,
2640,
12,
52,
3513,
67,
8362,
1653,
39,
16,
534,
12,
88,
3631,
534,
12,
476,
3631,
467,
12,
1132,
3719,
1769,
202,
70,
25152,
18,
6923,
12,
7492,
54,
67,
15972,
18,
2640,
12,
52,
3513,
67,
39,
1784,
48,
62,
59,
16,
534,
12,
88,
3631,
534,
12,
88,
3719,
1769,
1377,
289,
1377,
324,
25152,
18,
6923,
12,
7492,
54,
67,
5905,
18,
2640,
12,
52,
3513,
67,
10090,
23109,
16,
534,
12,
536,
3631,
534,
12,
88,
3631,
467,
12,
25,
3719,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
1250,
67,
9625,
67,
381,
81,
12,
15620,
67,
38,
1099,
55,
324,
25152,
16,
16456,
67,
3996,
1652,
16,
30306,
16456,
67,
3996,
1245,
16,
30306,
509,
460,
16,
16456,
67,
3418,
10265,
9411,
13,
288,
565,
16456,
67,
3996,
268,
21,
16,
268,
273,
324,
25152,
18,
481,
18,
1574,
6011,
18,
588,
4522,
12,
5743,
1769,
565,
16456,
67,
3996,
3634,
273,
324,
25152,
18,
481,
18,
1574,
6011,
18,
588,
18136,
3996,
694,
7675,
588,
7185,
5621,
565,
1250,
1765,
273,
638,
31,
565,
1620,
261,
9625,
18,
1132,
13,
288,
565,
648,
16456,
67,
3418,
10265,
18,
12853,
30,
1377,
309,
261,
1132,
422,
374,
13,
288,
202,
70,
25152,
18,
6923,
2
] |
private void initializeMinimal() {
|
private void initializeMinimal(Element repeatIndexesElement) {
|
private void initializeMinimal() { if (controlsDocument != null) { final ControlsState result = new ControlsState(); visitAllControlStatic(new ControlElementVisitorListener() { public boolean startVisitControl(Element controlElement, String controlId) { if (controlElement.getName().equals("repeat")) { final String startIndexString = controlElement.attributeValue("startindex"); final int startIndex = (startIndexString != null) ? Integer.parseInt(startIndexString) : 1; result.setInitialRepeatIndex(controlId, startIndex); } return true; } public boolean endVisitControl(Element controlElement, String controlId) { return true; } public void startRepeatIteration(int iteration) { } public void endRepeatIteration(int iteration) { } }); this.currentControlsState = result; } }
|
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/c68f27197fc73a9afec0b19d88a503445b79b174/XFormsControls.java/clean/src/java/org/orbeon/oxf/xforms/XFormsControls.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4046,
2930,
2840,
12,
1046,
7666,
8639,
1046,
13,
288,
540,
309,
261,
24350,
2519,
480,
446,
13,
288,
5411,
727,
8888,
87,
1119,
563,
273,
394,
8888,
87,
1119,
5621,
5411,
3757,
1595,
3367,
5788,
12,
2704,
8888,
1046,
7413,
2223,
1435,
288,
7734,
1071,
1250,
787,
10432,
3367,
12,
1046,
3325,
1046,
16,
514,
3325,
548,
13,
288,
10792,
309,
261,
7098,
1046,
18,
17994,
7675,
14963,
2932,
9374,
6,
3719,
288,
13491,
727,
514,
10588,
780,
273,
3325,
1046,
18,
4589,
620,
2932,
1937,
1615,
8863,
13491,
727,
509,
10588,
273,
261,
1937,
1016,
780,
480,
446,
13,
692,
2144,
18,
2670,
1702,
12,
1937,
1016,
780,
13,
294,
404,
31,
13491,
563,
18,
542,
4435,
16750,
1016,
12,
7098,
548,
16,
10588,
1769,
10792,
289,
10792,
327,
638,
31,
7734,
289,
7734,
1071,
1250,
679,
10432,
3367,
12,
1046,
3325,
1046,
16,
514,
3325,
548,
13,
288,
10792,
327,
638,
31,
7734,
289,
7734,
1071,
918,
787,
16750,
10795,
12,
474,
6532,
13,
288,
7734,
289,
7734,
1071,
918,
679,
16750,
10795,
12,
474,
6532,
13,
288,
7734,
289,
5411,
15549,
5411,
333,
18,
2972,
16795,
1119,
273,
563,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4046,
2930,
2840,
12,
1046,
7666,
8639,
1046,
13,
288,
540,
309,
261,
24350,
2519,
480,
446,
13,
288,
5411,
727,
8888,
87,
1119,
563,
273,
394,
8888,
87,
1119,
5621,
5411,
3757,
1595,
3367,
5788,
12,
2704,
8888,
1046,
7413,
2223,
1435,
288,
7734,
1071,
1250,
787,
10432,
3367,
12,
1046,
3325,
1046,
16,
514,
3325,
548,
13,
288,
10792,
309,
261,
7098,
1046,
18,
17994,
7675,
14963,
2932,
9374,
6,
3719,
288,
13491,
727,
514,
10588,
780,
273,
3325,
1046,
18,
4589,
620,
2932,
1937,
1615,
8863,
13491,
727,
509,
10588,
273,
261,
1937,
1016,
780,
480,
446,
13,
692,
2144,
18,
2670,
1702,
12,
1937,
1016,
780,
13,
294,
404,
31,
13491,
563,
2
] |
if (e.toString().indexOf("does not exist") == -1) {
|
/* SQL Status codes: 42P01: ERROR: relation "%s" does not exist 42703: ERROR: column "%s" does not exist */ if (!e.getSQLState().equals("42P01") && !e.getSQLState().equals("42703")) {
|
public void createSequences() throws Exception { Statement st = m_dbconnection.createStatement(); ResultSet rs; m_out.println("- creating sequences... "); Iterator i = m_sequences.iterator(); while (i.hasNext()) { String sequence = (String) i.next(); if (!m_seqmapping.containsKey(sequence)) { throw new Exception("Cannot find sequence mapping for " + sequence); } String[] mapping = (String[]) m_seqmapping.get(sequence); } i = m_sequences.iterator(); while (i.hasNext()) { String sequence = (String) i.next(); String[] mapping = (String[]) m_seqmapping.get(sequence); int minvalue = 1; boolean remove; m_out.print(" - checking \"" + sequence + "\" minimum value... "); try { rs = st.executeQuery("SELECT MAX(" + mapping[0] + ") AS max FROM " + mapping[1]); if (rs.next()) { minvalue = rs.getInt(1) + 1; } } catch (SQLException e) { if (e.toString().indexOf("does not exist") == -1) { throw e; } } m_out.println(Integer.toString(minvalue)); m_out.print(" - removing sequence \"" + sequence + "\"... "); rs = st.executeQuery("SELECT relname FROM pg_class " + "WHERE relname = '" + sequence.toLowerCase() + "'"); remove = rs.next(); if (remove) { st.execute("DROP SEQUENCE " + sequence); m_out.println("REMOVED"); } else { m_out.println("CLEAN"); } m_out.print(" - creating sequence \"" + sequence + "\"... "); st.execute("CREATE SEQUENCE " + sequence + " minvalue " + minvalue); st.execute("GRANT ALL on " + sequence + " TO " + m_user); m_out.println("OK"); } m_out.println("- creating sequences... DONE"); }
|
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/170683dfe20b2318427a222feddd4dbe0ae740fb/Installer.java/buggy/src/install/org/opennms/install/Installer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
21710,
1435,
1216,
1185,
288,
202,
3406,
384,
273,
312,
67,
1966,
4071,
18,
2640,
3406,
5621,
202,
13198,
3597,
31,
202,
81,
67,
659,
18,
8222,
2932,
17,
4979,
8463,
2777,
315,
1769,
202,
3198,
277,
273,
312,
67,
17190,
18,
9838,
5621,
202,
17523,
261,
77,
18,
5332,
2134,
10756,
288,
202,
565,
514,
3102,
273,
261,
780,
13,
277,
18,
4285,
5621,
202,
565,
309,
16051,
81,
67,
5436,
6770,
18,
12298,
653,
12,
6178,
3719,
288,
202,
202,
12849,
394,
1185,
2932,
4515,
1104,
3102,
2874,
364,
315,
397,
6862,
565,
3102,
1769,
202,
565,
289,
202,
565,
514,
8526,
2874,
273,
261,
780,
63,
5717,
312,
67,
5436,
6770,
18,
588,
12,
6178,
1769,
202,
97,
202,
77,
273,
312,
67,
17190,
18,
9838,
5621,
202,
17523,
261,
77,
18,
5332,
2134,
10756,
288,
202,
565,
514,
3102,
273,
261,
780,
13,
277,
18,
4285,
5621,
202,
565,
514,
8526,
2874,
273,
261,
780,
63,
5717,
312,
67,
5436,
6770,
18,
588,
12,
6178,
1769,
202,
565,
509,
1131,
1132,
273,
404,
31,
202,
565,
1250,
1206,
31,
202,
565,
312,
67,
659,
18,
1188,
2932,
225,
300,
6728,
11843,
397,
3102,
397,
9506,
4202,
7023,
5224,
460,
2777,
315,
1769,
202,
565,
775,
288,
202,
202,
5453,
273,
384,
18,
8837,
1138,
2932,
4803,
4552,
2932,
397,
2874,
63,
20,
65,
397,
6862,
377,
9369,
5355,
943,
4571,
315,
397,
2874,
63,
21,
19226,
202,
202,
430,
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,
752,
21710,
1435,
1216,
1185,
288,
202,
3406,
384,
273,
312,
67,
1966,
4071,
18,
2640,
3406,
5621,
202,
13198,
3597,
31,
202,
81,
67,
659,
18,
8222,
2932,
17,
4979,
8463,
2777,
315,
1769,
202,
3198,
277,
273,
312,
67,
17190,
18,
9838,
5621,
202,
17523,
261,
77,
18,
5332,
2134,
10756,
288,
202,
565,
514,
3102,
273,
261,
780,
13,
277,
18,
4285,
5621,
202,
565,
309,
16051,
81,
67,
5436,
6770,
18,
12298,
653,
12,
6178,
3719,
288,
202,
202,
12849,
394,
1185,
2932,
4515,
1104,
3102,
2874,
364,
315,
397,
6862,
565,
3102,
1769,
202,
565,
289,
202,
565,
514,
8526,
2874,
273,
261,
780,
63,
5717,
312,
67,
5436,
6770,
18,
2
] |
addMenu( manager, getBaseSeriesMenu( getChartModel( ) ) );
|
if ( !( getChartModel( ) instanceof DialChart ) ) { addMenu( manager, getBaseSeriesMenu( getChartModel( ) ) ); }
|
public void handleEvent( Event event ) { if ( event.type == CustomPreviewTable.MOUSE_RIGHT_CLICK_TYPE && ( getWizardContext( ).getDataServiceProvider( ) .getBoundDataSet( ) != null || getWizardContext( ).getDataServiceProvider( ) .getReportDataSet( ) != null ) ) { MenuManager menuManager = new MenuManager( ); menuManager.setRemoveAllWhenShown( true ); menuManager.addMenuListener( new IMenuListener( ) { public void menuAboutToShow( IMenuManager manager ) { addMenu( manager, new HeaderShowAction( ) ); addMenu( manager, getBaseSeriesMenu( getChartModel( ) ) ); addMenu( manager, getOrthogonalSeriesMenu( getChartModel( ) ) ); if ( !( getChartModel( ) instanceof DialChart ) ) { addMenu( manager, getGroupSeriesMenu( getChartModel( ) ) ); } // manager.add( actionInsertAggregation ); } private void addMenu( IMenuManager manager, Object item ) { if ( item instanceof IAction ) { manager.add( (IAction) item ); } else if ( item instanceof IContributionItem ) { manager.add( (IContributionItem) item ); } } } ); Menu menu = menuManager.createContextMenu( tablePreview ); menu.setVisible( true ); } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7c941526439249b73c1c528f95482ee8cf1e564e/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,
871,
18,
723,
422,
6082,
11124,
1388,
18,
5980,
8001,
67,
11847,
67,
7697,
3507,
67,
2399,
9506,
202,
10,
10,
261,
13876,
13412,
1042,
12,
262,
18,
588,
751,
16300,
12,
262,
25083,
202,
18,
588,
3499,
13676,
12,
262,
480,
446,
747,
13876,
13412,
1042,
12,
262,
18,
588,
751,
16300,
12,
262,
25083,
202,
18,
588,
4820,
13676,
12,
262,
480,
446,
262,
262,
202,
202,
95,
1082,
202,
4599,
1318,
3824,
1318,
273,
394,
9809,
1318,
12,
11272,
1082,
202,
5414,
1318,
18,
542,
3288,
1595,
9434,
27042,
12,
638,
11272,
1082,
202,
5414,
1318,
18,
1289,
4599,
2223,
12,
394,
467,
4599,
2223,
12,
262,
288,
9506,
202,
482,
918,
3824,
24813,
774,
5706,
12,
467,
4599,
1318,
3301,
262,
9506,
202,
95,
6862,
202,
1289,
4599,
12,
3301,
16,
394,
4304,
5706,
1803,
12,
262,
11272,
6862,
202,
1289,
4599,
12,
3301,
16,
8297,
6485,
4599,
12,
336,
7984,
1488,
12,
262,
262,
11272,
6862,
202,
1289,
4599,
12,
3301,
16,
6862,
1082,
202,
588,
1162,
451,
28396,
6485,
4599,
12,
336,
7984,
1488,
12,
262,
262,
11272,
6862,
202,
430,
261,
401,
12,
336,
7984,
1488,
12,
262,
1276,
9402,
7984,
262,
262,
6862,
202,
95,
25083,
202,
1289,
4599,
12,
3301,
16,
11751,
6485,
4599,
12,
336,
7984,
1488,
12,
262,
262,
11272,
6862,
202,
97,
6862,
202,
759,
3301,
18,
1289,
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,
1640,
1133,
12,
2587,
871,
262,
202,
95,
202,
202,
430,
261,
871,
18,
723,
422,
6082,
11124,
1388,
18,
5980,
8001,
67,
11847,
67,
7697,
3507,
67,
2399,
9506,
202,
10,
10,
261,
13876,
13412,
1042,
12,
262,
18,
588,
751,
16300,
12,
262,
25083,
202,
18,
588,
3499,
13676,
12,
262,
480,
446,
747,
13876,
13412,
1042,
12,
262,
18,
588,
751,
16300,
12,
262,
25083,
202,
18,
588,
4820,
13676,
12,
262,
480,
446,
262,
262,
202,
202,
95,
1082,
202,
4599,
1318,
3824,
1318,
273,
394,
9809,
1318,
12,
11272,
1082,
202,
5414,
1318,
18,
542,
3288,
1595,
9434,
27042,
12,
638,
11272,
1082,
202,
5414,
1318,
18,
1289,
4599,
2223,
2
] |
}
|
}
|
public SearchBar(View view) { super(new BorderLayout()); this.view = view; //Font boldFont = new Font("Dialog",Font.BOLD,12); //Font plainFont = new Font("Dialog",Font.PLAIN,12); JLabel label = new JLabel(jEdit.getProperty("view.search.find")); //label.setFont(boldFont); label.setBorder(new EmptyBorder(0,2,0,12)); add(label,BorderLayout.WEST); Box box = new Box(BoxLayout.Y_AXIS); box.add(Box.createGlue()); box.add(find = new HistoryTextField("find")); //find.setFont(plainFont); Dimension min = find.getPreferredSize(); min.width = Integer.MAX_VALUE; find.setMaximumSize(min); ActionHandler actionHandler = new ActionHandler(); find.addKeyListener(new KeyHandler()); find.addActionListener(actionHandler); find.getDocument().addDocumentListener(new DocumentHandler()); box.add(Box.createGlue()); add(box,BorderLayout.CENTER); Insets margin = new Insets(1,1,1,1); Box buttons = new Box(BoxLayout.X_AXIS); buttons.add(Box.createHorizontalStrut(12)); buttons.add(ignoreCase = new JCheckBox(jEdit.getProperty( "search.case"))); //ignoreCase.setFont(boldFont); ignoreCase.addActionListener(actionHandler); ignoreCase.setMargin(margin); buttons.add(Box.createHorizontalStrut(2)); buttons.add(regexp = new JCheckBox(jEdit.getProperty( "search.regexp"))); //regexp.setFont(boldFont); regexp.addActionListener(actionHandler); regexp.setMargin(margin); buttons.add(Box.createHorizontalStrut(2)); buttons.add(hyperSearch = new JCheckBox(jEdit.getProperty( "search.hypersearch"))); //hyperSearch.setFont(boldFont); hyperSearch.addActionListener(actionHandler); hyperSearch.setMargin(margin); update(); add(buttons,BorderLayout.EAST); }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/5df15b878b051c255ba011b241cdb79e3877d043/SearchBar.java/clean/org/gjt/sp/jedit/search/SearchBar.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5167,
5190,
12,
1767,
1476,
13,
202,
95,
202,
202,
9565,
12,
2704,
30814,
10663,
202,
202,
2211,
18,
1945,
273,
1476,
31,
202,
202,
759,
5711,
13068,
5711,
273,
394,
10063,
2932,
6353,
3113,
5711,
18,
38,
11846,
16,
2138,
1769,
202,
202,
759,
5711,
7351,
5711,
273,
394,
10063,
2932,
6353,
3113,
5711,
18,
26549,
16,
2138,
1769,
202,
202,
46,
2224,
1433,
273,
394,
21403,
12,
78,
4666,
18,
588,
1396,
2932,
1945,
18,
3072,
18,
4720,
7923,
1769,
202,
202,
759,
1925,
18,
542,
5711,
12,
16390,
5711,
1769,
202,
202,
1925,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
20,
16,
22,
16,
20,
16,
2138,
10019,
202,
202,
1289,
12,
1925,
16,
8107,
3744,
18,
31285,
1769,
202,
202,
3514,
3919,
273,
394,
8549,
12,
3514,
3744,
18,
61,
67,
25614,
1769,
202,
202,
2147,
18,
1289,
12,
3514,
18,
2640,
21308,
344,
10663,
202,
202,
2147,
18,
1289,
12,
4720,
273,
394,
16058,
16157,
2932,
4720,
7923,
1769,
202,
202,
759,
4720,
18,
542,
5711,
12,
7446,
5711,
1769,
202,
202,
8611,
1131,
273,
1104,
18,
588,
16028,
1225,
5621,
202,
202,
1154,
18,
2819,
273,
2144,
18,
6694,
67,
4051,
31,
202,
202,
4720,
18,
542,
13528,
1225,
12,
1154,
1769,
202,
202,
1803,
1503,
1301,
1503,
273,
394,
4382,
1503,
5621,
202,
202,
4720,
18,
1289,
653,
2223,
12,
2704,
1929,
1503,
10663,
202,
202,
4720,
18,
1289,
1803,
2223,
12,
1128,
1503,
1769,
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,
5167,
5190,
12,
1767,
1476,
13,
202,
95,
202,
202,
9565,
12,
2704,
30814,
10663,
202,
202,
2211,
18,
1945,
273,
1476,
31,
202,
202,
759,
5711,
13068,
5711,
273,
394,
10063,
2932,
6353,
3113,
5711,
18,
38,
11846,
16,
2138,
1769,
202,
202,
759,
5711,
7351,
5711,
273,
394,
10063,
2932,
6353,
3113,
5711,
18,
26549,
16,
2138,
1769,
202,
202,
46,
2224,
1433,
273,
394,
21403,
12,
78,
4666,
18,
588,
1396,
2932,
1945,
18,
3072,
18,
4720,
7923,
1769,
202,
202,
759,
1925,
18,
542,
5711,
12,
16390,
5711,
1769,
202,
202,
1925,
18,
542,
8107,
12,
2704,
8953,
8107,
12,
20,
16,
22,
16,
20,
16,
2138,
10019,
202,
202,
1289,
12,
2
] |
if (classLoader == null) classLoader = LogFactory.class.getClassLoader();
|
if (classLoader == null) { classLoader = LogFactory.class.getClassLoader (); }
|
protected static LogFactory newFactory(String factoryClass, ClassLoader classLoader) throws LogConfigurationException { try { if (classLoader == null) classLoader = LogFactory.class.getClassLoader(); Class clazz = null; try { // first the thread class loader clazz = classLoader.loadClass(factoryClass); } catch (ClassNotFoundException ex) { // if this failed (i.e. no implementation is // found in the webapp), try the caller's loader // if we haven't already... if (classLoader != LogFactory.class.getClassLoader()) { classLoader = LogFactory.class.getClassLoader(); clazz = classLoader.loadClass(factoryClass); } } LogFactory factory = (LogFactory)clazz.newInstance(); return factory; } catch (Exception e) { throw new LogConfigurationException(e); } }
|
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/62d71000b6d84642b07f67c825f685d42190715c/LogFactory.java/buggy/src/java/org/logicalcobwebs/logging/LogFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
1827,
1733,
394,
1733,
12,
780,
3272,
797,
16,
4766,
6647,
9403,
11138,
13,
3639,
1216,
1827,
10737,
565,
288,
7734,
775,
288,
5411,
309,
261,
1106,
2886,
422,
446,
13,
7734,
11138,
273,
1827,
1733,
18,
1106,
18,
588,
7805,
5621,
5411,
1659,
4003,
273,
446,
31,
5411,
775,
288,
7734,
368,
1122,
326,
2650,
667,
4088,
7734,
4003,
273,
11138,
18,
945,
797,
12,
6848,
797,
1769,
5411,
289,
1044,
261,
797,
3990,
431,
13,
288,
7734,
368,
309,
333,
2535,
261,
77,
18,
73,
18,
1158,
4471,
353,
7734,
368,
1392,
316,
326,
28945,
3631,
775,
326,
4894,
1807,
4088,
7734,
368,
309,
732,
15032,
1404,
1818,
2777,
7734,
309,
261,
1106,
2886,
480,
1827,
1733,
18,
1106,
18,
588,
7805,
10756,
288,
10792,
11138,
273,
1827,
1733,
18,
1106,
18,
588,
7805,
5621,
10792,
4003,
273,
11138,
18,
945,
797,
12,
6848,
797,
1769,
7734,
289,
5411,
289,
13491,
1827,
1733,
3272,
273,
261,
1343,
1733,
13,
830,
3638,
18,
2704,
1442,
5621,
13491,
327,
3272,
31,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
604,
394,
1827,
10737,
12,
73,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
760,
1827,
1733,
394,
1733,
12,
780,
3272,
797,
16,
4766,
6647,
9403,
11138,
13,
3639,
1216,
1827,
10737,
565,
288,
7734,
775,
288,
5411,
309,
261,
1106,
2886,
422,
446,
13,
7734,
11138,
273,
1827,
1733,
18,
1106,
18,
588,
7805,
5621,
5411,
1659,
4003,
273,
446,
31,
5411,
775,
288,
7734,
368,
1122,
326,
2650,
667,
4088,
7734,
4003,
273,
11138,
18,
945,
797,
12,
6848,
797,
1769,
5411,
289,
1044,
261,
797,
3990,
431,
13,
288,
7734,
368,
309,
333,
2535,
261,
77,
18,
73,
18,
1158,
4471,
353,
7734,
368,
1392,
316,
326,
28945,
3631,
775,
326,
4894,
1807,
4088,
7734,
368,
309,
732,
15032,
1404,
1818,
2777,
7734,
309,
261,
1106,
2886,
2
] |
Content content = new Content(newurl, base, b, contentType, metadata); Parse parse = ParseUtil.parse(content);
|
Content content = new Content(newurl, base, b, contentType, metadata, this.nutchConf); Parse parse = new ParseUtil(this.nutchConf).parse(content);
|
public String extractText(InputStream input, String url, List outLinksList) throws IOException { String resultText = ""; byte temp; ZipInputStream zin = new ZipInputStream(input); ZipEntry entry; while ((entry = zin.getNextEntry()) != null) { if (!entry.isDirectory()) { int size = (int) entry.getSize(); byte[] b = new byte[size]; for(int x = 0; x < size; x++) { int err = zin.read(); if(err != -1) { b[x] = (byte)err; } } String newurl = url + "/"; String fname = entry.getName(); newurl += fname; URL aURL = new URL(newurl); String base = aURL.toString(); int i = fname.lastIndexOf('.'); if (i != -1) { // Trying to resolve the Mime-Type String contentType = MIME.getMimeType(fname).getName(); try { ContentProperties metadata = new ContentProperties(); metadata.setProperty("Content-Length", Long.toString(entry.getSize())); metadata.setProperty("Content-Type", contentType); Content content = new Content(newurl, base, b, contentType, metadata); Parse parse = ParseUtil.parse(content); ParseData theParseData = parse.getData(); Outlink[] theOutlinks = theParseData.getOutlinks(); for(int count = 0; count < theOutlinks.length; count++) { outLinksList.add(new Outlink(theOutlinks[count].getToUrl(), theOutlinks[count].getAnchor())); } resultText += entry.getName() + " " + parse.getText() + " "; } catch (ParseException e) { LOG.info("fetch okay, but can't parse " + fname + ", reason: " + e.getMessage()); } } } } return resultText; }
|
1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/ZipTextExtractor.java/clean/src/plugin/parse-zip/src/java/org/apache/nutch/parse/zip/ZipTextExtractor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2608,
1528,
12,
4348,
810,
16,
514,
880,
16,
987,
596,
7100,
682,
13,
1216,
1860,
288,
565,
514,
563,
1528,
273,
1408,
31,
565,
1160,
1906,
31,
3639,
8603,
4348,
998,
267,
273,
394,
8603,
4348,
12,
2630,
1769,
3639,
23652,
1241,
31,
3639,
1323,
14015,
4099,
273,
998,
267,
18,
588,
2134,
1622,
10756,
480,
446,
13,
288,
5411,
309,
16051,
4099,
18,
291,
2853,
10756,
288,
3639,
509,
963,
273,
261,
474,
13,
1241,
18,
588,
1225,
5621,
3639,
1160,
8526,
324,
273,
394,
1160,
63,
1467,
15533,
3639,
364,
12,
474,
619,
273,
374,
31,
619,
411,
963,
31,
619,
27245,
288,
1850,
509,
393,
273,
998,
267,
18,
896,
5621,
1850,
309,
12,
370,
480,
300,
21,
13,
288,
5411,
324,
63,
92,
65,
273,
261,
7229,
13,
370,
31,
1850,
289,
3639,
289,
3639,
514,
394,
718,
273,
880,
397,
4016,
31,
3639,
514,
5299,
273,
1241,
18,
17994,
5621,
3639,
394,
718,
1011,
5299,
31,
3639,
1976,
279,
1785,
273,
394,
1976,
12,
2704,
718,
1769,
3639,
514,
1026,
273,
279,
1785,
18,
10492,
5621,
3639,
509,
277,
273,
5299,
18,
2722,
31985,
2668,
1093,
1769,
3639,
309,
261,
77,
480,
300,
21,
13,
288,
1850,
368,
6161,
310,
358,
2245,
326,
22059,
17,
559,
1850,
514,
5064,
273,
13195,
18,
588,
16821,
12,
12749,
2934,
17994,
5621,
1850,
775,
288,
5411,
3697,
2297,
1982,
273,
394,
3697,
2297,
5621,
5411,
1982,
18,
542,
1396,
2932,
1350,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2608,
1528,
12,
4348,
810,
16,
514,
880,
16,
987,
596,
7100,
682,
13,
1216,
1860,
288,
565,
514,
563,
1528,
273,
1408,
31,
565,
1160,
1906,
31,
3639,
8603,
4348,
998,
267,
273,
394,
8603,
4348,
12,
2630,
1769,
3639,
23652,
1241,
31,
3639,
1323,
14015,
4099,
273,
998,
267,
18,
588,
2134,
1622,
10756,
480,
446,
13,
288,
5411,
309,
16051,
4099,
18,
291,
2853,
10756,
288,
3639,
509,
963,
273,
261,
474,
13,
1241,
18,
588,
1225,
5621,
3639,
1160,
8526,
324,
273,
394,
1160,
63,
1467,
15533,
3639,
364,
12,
474,
619,
273,
374,
31,
619,
411,
963,
31,
619,
27245,
288,
1850,
509,
393,
273,
998,
267,
18,
896,
5621,
1850,
2
] |
if (capLen != 10 && capLen != 0) { throw new ProtocolException("TDS_CAPABILITY: byte count not 10");
|
if (capLen != 11 && capLen != 0) { throw new ProtocolException("TDS_CAPABILITY: byte count not 11");
|
private void tdsCapabilityToken() throws IOException, ProtocolException { in.readShort(); // Packet length if (in.read() != 1) { throw new ProtocolException("TDS_CAPABILITY: expected request string"); } int capLen = in.read(); if (capLen != 10 && capLen != 0) { throw new ProtocolException("TDS_CAPABILITY: byte count not 10"); } byte capRequest[] = new byte[10]; if (capLen == 0) { Logger.println("TDS_CAPABILITY: Invalid request length"); } else { in.read(capRequest); } if (in.read() != 2) { throw new ProtocolException("TDS_CAPABILITY: expected response string"); } capLen = in.read(); if (capLen != 10 && capLen != 0) { throw new ProtocolException("TDS_CAPABILITY: byte count not 10"); } byte capResponse[] = new byte[10]; if (capLen == 0) { Logger.println("TDS_CAPABILITY: Invalid response length"); } else { in.read(capResponse); } // // jTDS sends 01 0A 03 84 0E EF 65 7F FF FF FF D6 // Sybase 11.92 01 0A 00 00 00 23 61 41 CF FF FF C6 // Sybase 12.52 01 0A 03 84 0A E3 61 41 FF FF FF C6 // // JTDS sends 02 0A 00 02 00 07 9E 06 48 00 00 00 // Sybase 11.92 02 0A 00 00 00 00 00 06 00 00 00 00 // Sybase 12.52 02 0A 00 00 00 00 00 06 00 00 00 00 // // // Now set the correct attributes for this connection. // See the CT_LIB documentation for details on the bit // positions. // int capMask = 0; if ((capRequest[6] & 0x30) == 0x30) { capMask |= SYB_LONGDATA; } if ((capRequest[0] & 0x03) == 0x03) { capMask |= SYB_DATETIME; } if ((capRequest[2] & 0x02) == 0x02) { capMask |= SYB_EXTCOLINFO; } if ((capRequest[3] & 0x04) == 0x04) { capMask |= SYB_BITNULL; } if ((capRequest[1] & 0x80) == 0x80) { capMask |= SYB_UNICODE; } connection.setSybaseInfo(capMask); }
|
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/804982908e9416d23d3d49a7913b33c2def3ee35/TdsCore.java/clean/src/main/net/sourceforge/jtds/jdbc/TdsCore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
268,
2377,
17035,
1345,
1435,
1216,
1860,
16,
4547,
503,
288,
3639,
316,
18,
896,
4897,
5621,
368,
11114,
769,
3639,
309,
261,
267,
18,
896,
1435,
480,
404,
13,
288,
5411,
604,
394,
4547,
503,
2932,
56,
3948,
67,
17296,
22879,
30,
2665,
590,
533,
8863,
3639,
289,
3639,
509,
3523,
2891,
273,
316,
18,
896,
5621,
3639,
309,
261,
5909,
2891,
480,
1728,
597,
3523,
2891,
480,
374,
13,
288,
5411,
604,
394,
4547,
503,
2932,
56,
3948,
67,
17296,
22879,
30,
1160,
1056,
486,
1728,
8863,
3639,
289,
3639,
1160,
3523,
691,
8526,
273,
394,
1160,
63,
2163,
15533,
3639,
309,
261,
5909,
2891,
422,
374,
13,
288,
5411,
4242,
18,
8222,
2932,
56,
3948,
67,
17296,
22879,
30,
1962,
590,
769,
8863,
3639,
289,
469,
288,
5411,
316,
18,
896,
12,
5909,
691,
1769,
3639,
289,
3639,
309,
261,
267,
18,
896,
1435,
480,
576,
13,
288,
5411,
604,
394,
4547,
503,
2932,
56,
3948,
67,
17296,
22879,
30,
2665,
766,
533,
8863,
3639,
289,
3639,
3523,
2891,
273,
316,
18,
896,
5621,
3639,
309,
261,
5909,
2891,
480,
1728,
597,
3523,
2891,
480,
374,
13,
288,
5411,
604,
394,
4547,
503,
2932,
56,
3948,
67,
17296,
22879,
30,
1160,
1056,
486,
1728,
8863,
3639,
289,
3639,
1160,
3523,
1064,
8526,
273,
394,
1160,
63,
2163,
15533,
3639,
309,
261,
5909,
2891,
422,
374,
13,
288,
5411,
4242,
18,
8222,
2932,
56,
3948,
67,
17296,
22879,
30,
1962,
766,
769,
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,
268,
2377,
17035,
1345,
1435,
1216,
1860,
16,
4547,
503,
288,
3639,
316,
18,
896,
4897,
5621,
368,
11114,
769,
3639,
309,
261,
267,
18,
896,
1435,
480,
404,
13,
288,
5411,
604,
394,
4547,
503,
2932,
56,
3948,
67,
17296,
22879,
30,
2665,
590,
533,
8863,
3639,
289,
3639,
509,
3523,
2891,
273,
316,
18,
896,
5621,
3639,
309,
261,
5909,
2891,
480,
1728,
597,
3523,
2891,
480,
374,
13,
288,
5411,
604,
394,
4547,
503,
2932,
56,
3948,
67,
17296,
22879,
30,
1160,
1056,
486,
1728,
8863,
3639,
289,
3639,
1160,
3523,
691,
8526,
273,
394,
1160,
63,
2163,
15533,
3639,
309,
261,
5909,
2891,
422,
374,
13,
288,
5411,
4242,
18,
8222,
2932,
2
] |
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
|
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
|
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { if (featureID >= 0) { switch (eDerivedStructuralFeatureID(featureID, baseClass)) { case ComponentPackage.LABEL__CAPTION: return basicSetCaption(null, msgs); case ComponentPackage.LABEL__BACKGROUND: return basicSetBackground(null, msgs); case ComponentPackage.LABEL__OUTLINE: return basicSetOutline(null, msgs); case ComponentPackage.LABEL__SHADOW_COLOR: return basicSetShadowColor(null, msgs); case ComponentPackage.LABEL__INSETS: return basicSetInsets(null, msgs); default: return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); } } return eBasicSetContainer(null, featureID, msgs); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LabelImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/LabelImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27050,
425,
16376,
3288,
12,
3061,
8029,
1308,
1638,
16,
509,
6966,
16,
1659,
23955,
16,
27050,
8733,
13,
565,
288,
3639,
309,
261,
7238,
734,
1545,
374,
13,
3639,
288,
5411,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
7238,
734,
16,
23955,
3719,
5411,
288,
7734,
648,
5435,
2261,
18,
13545,
972,
3587,
3725,
30,
10792,
327,
5337,
694,
21158,
12,
2011,
16,
8733,
1769,
7734,
648,
5435,
2261,
18,
13545,
972,
8720,
20166,
30,
10792,
327,
5337,
694,
8199,
12,
2011,
16,
8733,
1769,
7734,
648,
5435,
2261,
18,
13545,
972,
5069,
5997,
30,
10792,
327,
5337,
694,
21805,
12,
2011,
16,
8733,
1769,
7734,
648,
5435,
2261,
18,
13545,
972,
2664,
1880,
7306,
67,
10989,
30,
10792,
327,
5337,
694,
12957,
2957,
12,
2011,
16,
8733,
1769,
7734,
648,
5435,
2261,
18,
13545,
972,
706,
28092,
30,
10792,
327,
5337,
694,
382,
4424,
12,
2011,
16,
8733,
1769,
7734,
805,
30,
10792,
327,
425,
9791,
16376,
3288,
12,
3011,
1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
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27050,
425,
16376,
3288,
12,
3061,
8029,
1308,
1638,
16,
509,
6966,
16,
1659,
23955,
16,
27050,
8733,
13,
565,
288,
3639,
309,
261,
7238,
734,
1545,
374,
13,
3639,
288,
5411,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
7238,
734,
16,
23955,
3719,
5411,
288,
7734,
648,
5435,
2261,
18,
13545,
972,
3587,
3725,
30,
10792,
327,
5337,
694,
21158,
12,
2011,
16,
8733,
1769,
7734,
648,
5435,
2261,
18,
13545,
972,
8720,
20166,
30,
10792,
327,
5337,
694,
8199,
12,
2011,
16,
8733,
1769,
7734,
648,
5435,
2261,
18,
13545,
972,
5069,
5997,
30,
10792,
327,
5337,
694,
21805,
12,
2011,
16,
8733,
1769,
7734,
648,
5435,
2261,
18,
13545,
972,
2664,
1880,
7306,
2
] |
(new com.ibm.math.DiagBigDecimal.Test("val211")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("0.09");
|
(new Test("val211")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("0.09");
|
public void diagvalueof(){ boolean flag=false; java.lang.NumberFormatException e=null; double dzer; double dpos; double dneg; double dpos5; double dneg5; double dmin; double dmax; double d; // valueOf(long [,scale]) -- (new com.ibm.math.DiagBigDecimal.Test("val001")).ok=(com.ibm.math.BigDecimal.valueOf((long)((byte)-2)).toString()).equals("-2"); (new com.ibm.math.DiagBigDecimal.Test("val002")).ok=(com.ibm.math.BigDecimal.valueOf((long)((byte)-1)).toString()).equals("-1"); (new com.ibm.math.DiagBigDecimal.Test("val003")).ok=(com.ibm.math.BigDecimal.valueOf((long)((byte)-0)).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("val004")).ok=(com.ibm.math.BigDecimal.valueOf((long)((byte)+1)).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("val005")).ok=(com.ibm.math.BigDecimal.valueOf((long)((byte)+2)).toString()).equals("2"); (new com.ibm.math.DiagBigDecimal.Test("val006")).ok=(com.ibm.math.BigDecimal.valueOf((long)((byte)10)).toString()).equals("10"); (new com.ibm.math.DiagBigDecimal.Test("val007")).ok=(com.ibm.math.BigDecimal.valueOf((long)((byte)11)).toString()).equals("11"); (new com.ibm.math.DiagBigDecimal.Test("val008")).ok=(com.ibm.math.BigDecimal.valueOf(lmin).toString()).equals("-9223372036854775808"); (new com.ibm.math.DiagBigDecimal.Test("val009")).ok=(com.ibm.math.BigDecimal.valueOf(lmax).toString()).equals("9223372036854775807"); (new com.ibm.math.DiagBigDecimal.Test("val010")).ok=(com.ibm.math.BigDecimal.valueOf(lneg).toString()).equals("-1"); (new com.ibm.math.DiagBigDecimal.Test("val011")).ok=(com.ibm.math.BigDecimal.valueOf(lzer).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("val012")).ok=(com.ibm.math.BigDecimal.valueOf(lpos).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("val013")).ok=(com.ibm.math.BigDecimal.valueOf(lmin,0).toString()).equals("-9223372036854775808"); (new com.ibm.math.DiagBigDecimal.Test("val014")).ok=(com.ibm.math.BigDecimal.valueOf(lmax,0).toString()).equals("9223372036854775807"); (new com.ibm.math.DiagBigDecimal.Test("val015")).ok=(com.ibm.math.BigDecimal.valueOf(lneg,0).toString()).equals("-1"); (new com.ibm.math.DiagBigDecimal.Test("val016")).ok=(com.ibm.math.BigDecimal.valueOf(lpos,0).toString()).equals("1"); (new com.ibm.math.DiagBigDecimal.Test("val017")).ok=(com.ibm.math.BigDecimal.valueOf(lzer,0).toString()).equals("0"); (new com.ibm.math.DiagBigDecimal.Test("val018")).ok=(com.ibm.math.BigDecimal.valueOf(lzer,1).toString()).equals("0.0"); (new com.ibm.math.DiagBigDecimal.Test("val019")).ok=(com.ibm.math.BigDecimal.valueOf(lzer,2).toString()).equals("0.00"); (new com.ibm.math.DiagBigDecimal.Test("val020")).ok=(com.ibm.math.BigDecimal.valueOf(lzer,3).toString()).equals("0.000"); (new com.ibm.math.DiagBigDecimal.Test("val021")).ok=(com.ibm.math.BigDecimal.valueOf(lzer,10).toString()).equals("0.0000000000"); (new com.ibm.math.DiagBigDecimal.Test("val022")).ok=(com.ibm.math.BigDecimal.valueOf(lmin,7).toString()).equals("-922337203685.4775808"); (new com.ibm.math.DiagBigDecimal.Test("val023")).ok=(com.ibm.math.BigDecimal.valueOf(lmax,11).toString()).equals("92233720.36854775807"); try{checkscale:do{ com.ibm.math.BigDecimal.valueOf((long)23,-8); flag=false; }while(false);} catch (java.lang.NumberFormatException $127){e=$127; flag=(e.getMessage()).equals("Negative scale: -8"); }/*checkscale*/ (new com.ibm.math.DiagBigDecimal.Test("val100")).ok=flag; // valueOf(double) -- dzer=(double)0; dpos=(double)1; dpos=dpos/((double)10); dneg=(double)-dpos; (new com.ibm.math.DiagBigDecimal.Test("val201")).ok=(com.ibm.math.BigDecimal.valueOf(dneg).toString()).equals("-0.1"); (new com.ibm.math.DiagBigDecimal.Test("val202")).ok=(com.ibm.math.BigDecimal.valueOf(dzer).toString()).equals("0.0"); // cf. constructor (new com.ibm.math.DiagBigDecimal.Test("val203")).ok=(com.ibm.math.BigDecimal.valueOf(dpos).toString()).equals("0.1"); dpos5=(double)0.5D; dneg5=(double)-dpos5; (new com.ibm.math.DiagBigDecimal.Test("val204")).ok=(com.ibm.math.BigDecimal.valueOf(dneg5).toString()).equals("-0.5"); (new com.ibm.math.DiagBigDecimal.Test("val205")).ok=(com.ibm.math.BigDecimal.valueOf(dpos5).toString()).equals("0.5"); dmin=java.lang.Double.MIN_VALUE; dmax=java.lang.Double.MAX_VALUE; (new com.ibm.math.DiagBigDecimal.Test("val206")).ok=(com.ibm.math.BigDecimal.valueOf(dmin).toString()).equals("4.9E-324"); (new com.ibm.math.DiagBigDecimal.Test("val207")).ok=(com.ibm.math.BigDecimal.valueOf(dmax).toString()).equals("1.7976931348623157E+308"); // nasties d=(double)9; d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("val210")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("0.9"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("val211")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("0.09"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("val212")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("0.0090"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("val213")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("9.0E-4"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("val214")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("8.999999999999999E-5"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("val215")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("8.999999999999999E-6"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("val216")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("8.999999999999999E-7"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("val217")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("8.999999999999999E-8"); d=d/((double)10); (new com.ibm.math.DiagBigDecimal.Test("val218")).ok=(com.ibm.math.BigDecimal.valueOf(d).toString()).equals("8.999999999999998E-9"); try{checkpin:do{ com.ibm.math.BigDecimal.valueOf(java.lang.Double.POSITIVE_INFINITY); flag=false; }while(false);} catch (java.lang.NumberFormatException $128){ flag=true; }/*checkpin*/ (new com.ibm.math.DiagBigDecimal.Test("val301")).ok=flag; try{checknin:do{ com.ibm.math.BigDecimal.valueOf(java.lang.Double.NEGATIVE_INFINITY); flag=false; }while(false);} catch (java.lang.NumberFormatException $129){ flag=true; }/*checknin*/ (new com.ibm.math.DiagBigDecimal.Test("val302")).ok=flag; try{checknan:do{ com.ibm.math.BigDecimal.valueOf(java.lang.Double.NaN); flag=false; }while(false);} catch (java.lang.NumberFormatException $130){ flag=true; }/*checknan*/ (new com.ibm.math.DiagBigDecimal.Test("val303")).ok=flag; summary("valueOf"); return;}
|
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/9d7cfece10981dede4d5303274403593abc1a92d/DiagBigDecimal.java/buggy/icu4j/src/com/ibm/test/bigdec/DiagBigDecimal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
6643,
1132,
792,
1435,
95,
225,
1250,
2982,
33,
5743,
31,
225,
2252,
18,
4936,
18,
1854,
9291,
425,
33,
2011,
31,
225,
1645,
302,
24355,
31,
225,
1645,
302,
917,
31,
225,
1645,
8800,
1332,
31,
225,
1645,
302,
917,
25,
31,
225,
1645,
8800,
1332,
25,
31,
225,
1645,
302,
1154,
31,
225,
1645,
302,
1896,
31,
225,
1645,
302,
31,
565,
368,
4323,
12,
5748,
306,
16,
5864,
5717,
1493,
565,
261,
2704,
532,
18,
10827,
18,
15949,
18,
14058,
29436,
18,
4709,
2932,
1125,
11664,
7923,
2934,
601,
28657,
832,
18,
10827,
18,
15949,
18,
29436,
18,
1132,
951,
12443,
5748,
13,
12443,
7229,
24950,
22,
13,
2934,
10492,
1435,
2934,
14963,
2932,
17,
22,
8863,
225,
261,
2704,
532,
18,
10827,
18,
15949,
18,
14058,
29436,
18,
4709,
2932,
1125,
24908,
7923,
2934,
601,
28657,
832,
18,
10827,
18,
15949,
18,
29436,
18,
1132,
951,
12443,
5748,
13,
12443,
7229,
24950,
21,
13,
2934,
10492,
1435,
2934,
14963,
2932,
17,
21,
8863,
225,
261,
2704,
532,
18,
10827,
18,
15949,
18,
14058,
29436,
18,
4709,
2932,
1125,
25425,
7923,
2934,
601,
28657,
832,
18,
10827,
18,
15949,
18,
29436,
18,
1132,
951,
12443,
5748,
13,
12443,
7229,
24950,
20,
13,
2934,
10492,
1435,
2934,
14963,
2932,
20,
8863,
225,
261,
2704,
532,
18,
10827,
18,
15949,
18,
14058,
29436,
18,
4709,
2932,
1125,
26565,
7923,
2934,
601,
28657,
832,
18,
10827,
18,
15949,
18,
29436,
18,
1132,
951,
12443,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
918,
6643,
1132,
792,
1435,
95,
225,
1250,
2982,
33,
5743,
31,
225,
2252,
18,
4936,
18,
1854,
9291,
425,
33,
2011,
31,
225,
1645,
302,
24355,
31,
225,
1645,
302,
917,
31,
225,
1645,
8800,
1332,
31,
225,
1645,
302,
917,
25,
31,
225,
1645,
8800,
1332,
25,
31,
225,
1645,
302,
1154,
31,
225,
1645,
302,
1896,
31,
225,
1645,
302,
31,
565,
368,
4323,
12,
5748,
306,
16,
5864,
5717,
1493,
565,
261,
2704,
532,
18,
10827,
18,
15949,
18,
14058,
29436,
18,
4709,
2932,
1125,
11664,
7923,
2934,
601,
28657,
832,
18,
10827,
18,
15949,
18,
29436,
18,
1132,
951,
12443,
5748,
13,
12443,
7229,
24950,
22,
13,
2934,
10492,
1435,
2934,
14963,
2
] |
Utils.assert(partitions.containsKey(str), "No partition recorded for: " + str);
|
assert partitions.containsKey(str) : "No partition recorded for: " + str;
|
private int getPartition(Object str) { Utils.assert(partitions.containsKey(str), "No partition recorded for: " + str); return ((Integer)partitions.get(str)).intValue(); }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/8e8ad585f8d1111f68ba8cb447ab86969104fb7d/ApplyPartitions.java/clean/streams/src/at/dms/kjc/sir/lowering/partition/ApplyPartitions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
25290,
12,
921,
609,
13,
288,
202,
1989,
18,
11231,
12,
21275,
18,
12298,
653,
12,
701,
3631,
1875,
377,
315,
2279,
3590,
16421,
364,
30,
315,
397,
609,
1769,
202,
2463,
14015,
4522,
13,
21275,
18,
588,
12,
701,
13,
2934,
474,
620,
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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,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
25290,
12,
921,
609,
13,
288,
202,
1989,
18,
11231,
12,
21275,
18,
12298,
653,
12,
701,
3631,
1875,
377,
315,
2279,
3590,
16421,
364,
30,
315,
397,
609,
1769,
202,
2463,
14015,
4522,
13,
21275,
18,
588,
12,
701,
13,
2934,
474,
620,
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
] |
public long getNextUrgentTime() {
|
public synchronized long getNextUrgentTime() {
|
public long getNextUrgentTime() { long t = Long.MAX_VALUE; KeyTracker kt = currentTracker; if(kt != null) t = Math.min(t, kt.getNextUrgentTime()); kt = previousTracker; if(kt != null) t = Math.min(t, kt.getNextUrgentTime()); return t; }
|
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/d69dceaa72feee5ece14b8de951841aa9b614188/PeerNode.java/buggy/src/freenet/node/PeerNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1525,
6927,
57,
26876,
319,
950,
1435,
288,
3639,
1525,
268,
273,
3407,
18,
6694,
67,
4051,
31,
3639,
1929,
8135,
417,
88,
273,
783,
8135,
31,
3639,
309,
12,
8629,
480,
446,
13,
5411,
268,
273,
2361,
18,
1154,
12,
88,
16,
417,
88,
18,
588,
2134,
57,
26876,
319,
950,
10663,
3639,
417,
88,
273,
2416,
8135,
31,
3639,
309,
12,
8629,
480,
446,
13,
5411,
268,
273,
2361,
18,
1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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1525,
6927,
57,
26876,
319,
950,
1435,
288,
3639,
1525,
268,
273,
3407,
18,
6694,
67,
4051,
31,
3639,
1929,
8135,
417,
88,
273,
783,
8135,
31,
3639,
309,
12,
8629,
480,
446,
13,
5411,
268,
273,
2361,
18,
1154,
12,
88,
16,
417,
88,
18,
588,
2134,
57,
26876,
319,
950,
10663,
3639,
417,
88,
273,
2416,
8135,
31,
3639,
309,
12,
8629,
480,
446,
13,
5411,
268,
273,
2361,
18,
1154,
12,
88,
16,
417,
88,
18,
588,
2134,
57,
26876,
319,
950,
10663,
3639,
327,
268,
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
] |
return sql;
|
return sql;
|
public String nativeSQL(String sql) throws SQLException { return sql; }
|
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/839b9bc0117946afd62ee385a4c8a36c01b3053b/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
6448,
3997,
12,
780,
1847,
13,
1216,
6483,
288,
202,
2463,
1847,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
6448,
3997,
12,
780,
1847,
13,
1216,
6483,
288,
202,
2463,
1847,
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
] |
public void featureSelected(SpiceFeatureEvent e) { Feature f = e.getFeature(); //logger.info("feature selected " + f); if ( f == null) { if ( featureSelected){ featureSelected = false; selectedFeaturePos = -1; this.repaint(); } return; } featureSelected = false; Feature[] allFeats = drawableDasSource.getFeatures(); boolean featureOnThisPanel = false; for (int i = 0 ; i< allFeats.length;i++){ if ( f.equals(allFeats[i])){ // compare all the segments ... List seg1 = f.getSegments(); List seg2 = allFeats[i].getSegments(); boolean found = true ; Iterator iter1 = seg1.iterator(); while ( iter1.hasNext()) { Segment segment1 = (Segment) iter1.next(); Iterator iter2 = seg2.iterator(); boolean thisOneFound = false; while (iter2.hasNext()){ Segment segment2 = (Segment) iter2.next(); if ( segment1.equals(segment2)){ thisOneFound = true; break; } } if ( ! thisOneFound){ // must be another line ... found = false; break; } } if ( ! found){ continue; } //logger.info("setting feature pos " + i); selectedFeaturePos = i; featureOnThisPanel = true; featureSelected = true; break; } } if ( ! featureOnThisPanel){ selectedFeaturePos = -1; } this.repaint(); }
|
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/866219a4a56e042ca46361ffdc0d7f5dad6e0d12/DasSourcePanel.java/buggy/src/org/biojava/spice/manypanel/renderer/DasSourcePanel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2572,
7416,
12,
3389,
1812,
4595,
1133,
425,
13,
288,
13491,
7881,
284,
273,
425,
18,
588,
4595,
5621,
7734,
368,
4901,
18,
1376,
2932,
7238,
3170,
315,
397,
284,
1769,
7734,
309,
261,
284,
422,
446,
13,
288,
5411,
309,
261,
2572,
7416,
15329,
7734,
2572,
7416,
273,
629,
31,
7734,
3170,
4595,
1616,
273,
300,
21,
31,
7734,
333,
18,
14462,
1598,
5621,
18701,
289,
5411,
327,
31,
3639,
289,
7734,
2572,
7416,
273,
629,
31,
3639,
7881,
8526,
777,
2954,
2323,
273,
19021,
40,
345,
1830,
18,
588,
8696,
5621,
3639,
1250,
2572,
1398,
2503,
5537,
273,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
274,
277,
32,
777,
2954,
2323,
18,
2469,
31,
77,
27245,
95,
5411,
309,
261,
284,
18,
14963,
12,
454,
2954,
2323,
63,
77,
22643,
95,
27573,
368,
3400,
777,
326,
5155,
1372,
7734,
987,
2291,
21,
273,
284,
18,
588,
7946,
5621,
7734,
987,
2291,
22,
273,
777,
2954,
2323,
63,
77,
8009,
588,
7946,
5621,
27573,
1250,
1392,
273,
638,
274,
7734,
4498,
1400,
21,
273,
2291,
21,
18,
9838,
5621,
7734,
1323,
261,
1400,
21,
18,
5332,
2134,
10756,
288,
10792,
10807,
3267,
21,
273,
261,
4131,
13,
1400,
21,
18,
4285,
5621,
10792,
4498,
1400,
22,
273,
2291,
22,
18,
9838,
5621,
10792,
1250,
333,
3335,
2043,
273,
629,
31,
10792,
1323,
261,
2165,
22,
18,
5332,
2134,
10756,
95,
13491,
10807,
3267,
22,
273,
261,
4131,
13,
1400,
22,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2572,
7416,
12,
3389,
1812,
4595,
1133,
425,
13,
288,
13491,
7881,
284,
273,
425,
18,
588,
4595,
5621,
7734,
368,
4901,
18,
1376,
2932,
7238,
3170,
315,
397,
284,
1769,
7734,
309,
261,
284,
422,
446,
13,
288,
5411,
309,
261,
2572,
7416,
15329,
7734,
2572,
7416,
273,
629,
31,
7734,
3170,
4595,
1616,
273,
300,
21,
31,
7734,
333,
18,
14462,
1598,
5621,
18701,
289,
5411,
327,
31,
3639,
289,
7734,
2572,
7416,
273,
629,
31,
3639,
7881,
8526,
777,
2954,
2323,
273,
19021,
40,
345,
1830,
18,
588,
8696,
5621,
3639,
1250,
2572,
1398,
2503,
5537,
273,
629,
31,
3639,
364,
261,
474,
277,
273,
374,
274,
277,
32,
777,
2954,
2323,
18,
2
] |
||
public void clickOn(NamedBean t) { // don't do anything on click }
|
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/f664c413dd182bb64a488dea62949d934bf0ddec/ReporterTableAction.java/buggy/jmri/jmrit/beantable/ReporterTableAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
225,
918,
225,
4682,
1398,
12,
7604,
3381,
225,
268,
13,
225,
288,
7682,
202,
759,
225,
2727,
1404,
225,
741,
225,
6967,
225,
603,
225,
4682,
13491,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7682,
1071,
225,
918,
225,
4682,
1398,
12,
7604,
3381,
225,
268,
13,
225,
288,
7682,
202,
759,
225,
2727,
1404,
225,
741,
225,
6967,
225,
603,
225,
4682,
13491,
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
] |
||
GroovyClassLoader gcl = new GroovyClassLoader(); Class c = gcl.parseClass( "class MyJob {\n " + " def startDelay = 100\n" + " def timeout = 1000\n" + " def name = 'MyJob'\n" + " def group = 'MyGroup'\n" + " def execute(){\n" + " print 'Job run!'\n" + " }\n" + "}" ); GrailsApplication app = new DefaultGrailsApplication(new Class[]{c}, gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); ApplicationContext ctx = conf.configure(new MockServletContext()); assertNotNull(ctx); }
|
GroovyClassLoader gcl = new GroovyClassLoader(); Class c = gcl.parseClass( "class MyJob {\n " + " def startDelay = 100\n" + " def timeout = 1000\n" + " def name = 'MyJob'\n" + " def group = 'MyGroup'\n" + " def execute(){\n" + " print 'Job run!'\n" + " }\n" + "}" ); GrailsApplication app = new DefaultGrailsApplication(new Class[]{c}, gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); ApplicationContext ctx = conf.configure(new MockServletContext()); assertNotNull(ctx); }
|
public void testConfigureScheduledJobs() throws Exception { GroovyClassLoader gcl = new GroovyClassLoader(); Class c = gcl.parseClass( "class MyJob {\n " + " def startDelay = 100\n" + " def timeout = 1000\n" + " def name = 'MyJob'\n" + " def group = 'MyGroup'\n" + " def execute(){\n" + " print 'Job run!'\n" + " }\n" + "}" ); GrailsApplication app = new DefaultGrailsApplication(new Class[]{c}, gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); ApplicationContext ctx = conf.configure(new MockServletContext()); assertNotNull(ctx); }
|
54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/075145e116446e23fd77adcfc25dab01feb4a27e/GrailsRuntimeConfiguratorTests.java/clean/test/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfiguratorTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11207,
10660,
7276,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
202,
202,
797,
276,
273,
314,
830,
18,
2670,
797,
12,
202,
202,
6,
1106,
8005,
2278,
18890,
82,
315,
397,
202,
202,
6,
1652,
787,
6763,
273,
2130,
64,
82,
6,
397,
202,
202,
6,
1652,
2021,
273,
4336,
64,
82,
6,
397,
202,
202,
6,
1652,
508,
273,
296,
12062,
2278,
8314,
82,
6,
397,
202,
202,
6,
1652,
1041,
273,
296,
12062,
1114,
8314,
82,
6,
397,
202,
202,
6,
1652,
1836,
1435,
23241,
82,
6,
397,
202,
202,
6,
565,
1172,
296,
2278,
1086,
5124,
64,
82,
6,
397,
202,
202,
6,
225,
289,
64,
82,
6,
397,
202,
202,
6,
1532,
11272,
9506,
202,
14571,
14573,
3208,
595,
273,
394,
2989,
14571,
14573,
3208,
12,
2704,
1659,
63,
7073,
71,
5779,
314,
830,
11272,
202,
202,
9865,
28278,
982,
273,
394,
7867,
28278,
5621,
202,
202,
2938,
18,
4861,
9865,
3381,
12,
14571,
14573,
3208,
18,
25039,
67,
734,
16,
595,
1769,
9506,
202,
14571,
14573,
5576,
17182,
2195,
273,
394,
10812,
14573,
5576,
17182,
12,
2910,
16,
2938,
1769,
202,
202,
28278,
1103,
273,
2195,
18,
14895,
12,
2704,
7867,
4745,
1042,
10663,
202,
202,
11231,
5962,
12,
5900,
1769,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
11207,
10660,
7276,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
202,
202,
797,
276,
273,
314,
830,
18,
2670,
797,
12,
202,
202,
6,
1106,
8005,
2278,
18890,
82,
315,
397,
202,
202,
6,
1652,
787,
6763,
273,
2130,
64,
82,
6,
397,
202,
202,
6,
1652,
2021,
273,
4336,
64,
82,
6,
397,
202,
202,
6,
1652,
508,
273,
296,
12062,
2278,
8314,
82,
6,
397,
202,
202,
6,
1652,
1041,
273,
296,
12062,
1114,
8314,
82,
6,
397,
202,
202,
6,
1652,
1836,
1435,
23241,
82,
6,
397,
202,
202,
6,
565,
1172,
296,
2278,
1086,
5124,
64,
82,
6,
397,
202,
202,
2
] |
public LocationPath createAbsoluteLocationPath() throws JaxenException { return new DefaultAbsoluteLocationPath(); }
|
12974 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12974/b2b8245c3f10c560d442911f2a4a99b31d6e660f/DefaultXPathFactory.java/clean/src/java/main/org/jaxen/expr/DefaultXPathFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
2735,
743,
2640,
10368,
2735,
743,
1435,
15069,
46,
651,
275,
503,
95,
2463,
2704,
1868,
10368,
2735,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2735,
743,
2640,
10368,
2735,
743,
1435,
15069,
46,
651,
275,
503,
95,
2463,
2704,
1868,
10368,
2735,
743,
5621,
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
] |
||
parse(buffer.toString(), ParserLanguage.CPP, true, true);
|
parse(buffer.toString(), ParserLanguage.CPP, true, 0);
|
public void test14_7_3s1() { // TODO have similar bug StringBuffer buffer = new StringBuffer(); buffer.append("template<class T> class stream;\n"); //$NON-NLS-1$ buffer.append("template<> class stream<char> { };\n"); //$NON-NLS-1$ buffer.append("template<class T> class Array { };\n"); //$NON-NLS-1$ buffer.append("template<class T> void sort(Array<T>& v) { }\n"); //$NON-NLS-1$ buffer.append("template<> void sort<char*>(Array<char*>&) ;\n"); //$NON-NLS-1$ try { parse(buffer.toString(), ParserLanguage.CPP, true, true); assertTrue(false); } catch (Exception e) { } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecFailingTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecFailingTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3461,
67,
27,
67,
23,
87,
21,
1435,
225,
288,
368,
2660,
1240,
7281,
7934,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
3202,
32,
1106,
399,
34,
667,
1407,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
29667,
667,
1407,
32,
3001,
34,
288,
225,
289,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
32,
1106,
399,
34,
667,
1510,
288,
225,
289,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
32,
1106,
399,
34,
918,
1524,
12,
1076,
32,
56,
22393,
331,
13,
288,
225,
289,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
29667,
918,
1524,
32,
3001,
14,
34,
12,
1076,
32,
3001,
14,
22393,
13,
274,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
698,
288,
202,
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
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3461,
67,
27,
67,
23,
87,
21,
1435,
225,
288,
368,
2660,
1240,
7281,
7934,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
3202,
32,
1106,
399,
34,
667,
1407,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
29667,
667,
1407,
32,
3001,
34,
288,
225,
289,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
32,
1106,
399,
34,
667,
1510,
288,
225,
289,
9747,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
4106,
18,
6923,
2932,
3202,
32,
1106,
399,
34,
918,
1524,
12,
1076,
2
] |
if (audioLine.isOpen()) {
|
if (open()) {
|
public synchronized boolean startRecording() { if (audioLine.isOpen()) { setRecording(true); notifyAll(); while (!isStarted()) { try { wait(); } catch (InterruptedException ie) { ie.printStackTrace(); } } return true; } else { return false; } }
|
47105 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47105/d34c0d48f54d6fea7a8d381a59bac073c33c84b7/Microphone.java/clean/sphinx4/edu/cmu/sphinx/frontend/Microphone.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
787,
21037,
1435,
288,
3639,
309,
261,
3190,
10756,
288,
5411,
444,
21037,
12,
3767,
1769,
5411,
5066,
1595,
5621,
5411,
1323,
16051,
291,
9217,
10756,
288,
7734,
775,
288,
10792,
2529,
5621,
7734,
289,
1044,
261,
24485,
503,
9228,
13,
288,
10792,
9228,
18,
1188,
6332,
5621,
7734,
289,
5411,
289,
5411,
327,
638,
31,
3639,
289,
469,
288,
5411,
327,
629,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
787,
21037,
1435,
288,
3639,
309,
261,
3190,
10756,
288,
5411,
444,
21037,
12,
3767,
1769,
5411,
5066,
1595,
5621,
5411,
1323,
16051,
291,
9217,
10756,
288,
7734,
775,
288,
10792,
2529,
5621,
7734,
289,
1044,
261,
24485,
503,
9228,
13,
288,
10792,
9228,
18,
1188,
6332,
5621,
7734,
289,
5411,
289,
5411,
327,
638,
31,
3639,
289,
469,
288,
5411,
327,
629,
31,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
alertNode.addChild("#", replace(TOO_MANY_CONNECTIONS, "{CONNS}", Integer.toString(conns)));
|
alertNode.addChild("#", replace(TOO_MANY_CONNECTIONS, "\\{CONNS\\}", Integer.toString(conns)));
|
public HTMLNode getHTMLText() { HTMLNode alertNode = new HTMLNode("div"); int disconnected = peers - conns; if (peers == 0) { if(n.isTestnetEnabled()) alertNode.addChild("#", NO_PEERS_TESTNET); else alertNode.addChild("#", NO_PEERS_DARKNET); } else if (conns == 0) { alertNode.addChild("#", NO_CONNS); } else if (conns == 1) { alertNode.addChild("#", ONE_CONN); } else if (conns == 2) { alertNode.addChild("#", TWO_CONNS); } else if (neverConn > MAX_NEVER_CONNECTED_PEER_ALERT_THRESHOLD) { alertNode.addChild("#", replace(NEVER_CONN_START, "{NEVER_CONN}", Integer.toString(neverConn))); alertNode.addChild(NEVER_CONN_MIDDLE_NODE()); alertNode.addChild("#", replace(NEVER_CONN_END, "{NEVER_CONN}", Integer.toString(neverConn))); } else if ((peers - conns) > MAX_DISCONN_PEER_ALERT_THRESHOLD) { alertNode.addChild("#", replace(DISCONNECTED, "{DISCONNECTED}", Integer.toString(disconnected))); } else if (conns > MAX_CONN_ALERT_THRESHOLD) { alertNode.addChild("#", replace(TOO_MANY_CONNECTIONS, "{CONNS}", Integer.toString(conns))); } else if (peers > MAX_PEER_ALERT_THRESHOLD) { alertNode.addChild("#", replace(TOO_MANY_PEERS, "{PEERS}", Integer.toString(peers))); } else if (n.bwlimitDelayAlertRelevant && (bwlimitDelayTime > Node.MAX_BWLIMIT_DELAY_TIME_ALERT_THRESHOLD)) { alertNode.addChild("#", replace(TOO_HIGH_BWLIMITDELAYTIME, "{BWLIMIT_DELAY_TIME}", Integer.toString(bwlimitDelayTime))); } else if (n.nodeAveragePingAlertRelevant && (nodeAveragePingTime > Node.MAX_NODE_AVERAGE_PING_TIME_ALERT_THRESHOLD)) { alertNode.addChild("#", replace(TOO_HIGH_PING, "{PING_TIME}", Integer.toString(bwlimitDelayTime))); } else if (oldestNeverConnectedPeerAge > MAX_OLDEST_NEVER_CONNECTED_PEER_AGE_ALERT_THRESHOLD) { alertNode.addChild("#", NEVER_CONNECTED_TWO_WEEKS); } else throw new IllegalArgumentException("not valid"); return alertNode; }
|
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/28a46f35660692dcdfcd4b918eded109fffdff3e/PeerManagerUserAlert.java/buggy/src/freenet/node/useralerts/PeerManagerUserAlert.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3982,
907,
336,
4870,
1528,
1435,
288,
202,
202,
4870,
907,
6881,
907,
273,
394,
3982,
907,
2932,
2892,
8863,
202,
202,
474,
17853,
273,
10082,
300,
18976,
31,
202,
202,
430,
261,
30502,
422,
374,
13,
288,
1082,
202,
430,
12,
82,
18,
291,
4709,
2758,
1526,
10756,
9506,
202,
11798,
907,
18,
1289,
1763,
2932,
7,
3113,
3741,
67,
1423,
11367,
67,
16961,
14843,
1769,
1082,
202,
12107,
9506,
202,
11798,
907,
18,
1289,
1763,
2932,
7,
3113,
3741,
67,
1423,
11367,
67,
40,
9584,
14843,
1769,
3196,
202,
97,
469,
309,
261,
591,
2387,
422,
374,
13,
288,
1082,
202,
11798,
907,
18,
1289,
1763,
2932,
7,
3113,
3741,
67,
2248,
3156,
1769,
202,
202,
97,
469,
309,
261,
591,
2387,
422,
404,
13,
288,
1082,
202,
11798,
907,
18,
1289,
1763,
2932,
7,
3113,
15623,
67,
27733,
1769,
202,
202,
97,
469,
309,
261,
591,
2387,
422,
576,
13,
288,
1082,
202,
11798,
907,
18,
1289,
1763,
2932,
7,
3113,
24722,
51,
67,
2248,
3156,
1769,
202,
202,
97,
469,
309,
261,
4644,
502,
3543,
405,
4552,
67,
5407,
2204,
67,
29011,
67,
1423,
654,
67,
1013,
11539,
67,
23840,
13,
288,
1082,
202,
11798,
907,
18,
1289,
1763,
2932,
7,
3113,
1453,
12,
5407,
2204,
67,
27733,
67,
7570,
16,
4144,
5407,
2204,
67,
27733,
1532,
16,
2144,
18,
10492,
12,
4644,
502,
3543,
3719,
1769,
1082,
202,
11798,
907,
18,
1289,
1763,
12,
5407,
2204,
67,
27733,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3982,
907,
336,
4870,
1528,
1435,
288,
202,
202,
4870,
907,
6881,
907,
273,
394,
3982,
907,
2932,
2892,
8863,
202,
202,
474,
17853,
273,
10082,
300,
18976,
31,
202,
202,
430,
261,
30502,
422,
374,
13,
288,
1082,
202,
430,
12,
82,
18,
291,
4709,
2758,
1526,
10756,
9506,
202,
11798,
907,
18,
1289,
1763,
2932,
7,
3113,
3741,
67,
1423,
11367,
67,
16961,
14843,
1769,
1082,
202,
12107,
9506,
202,
11798,
907,
18,
1289,
1763,
2932,
7,
3113,
3741,
67,
1423,
11367,
67,
40,
9584,
14843,
1769,
3196,
202,
97,
469,
309,
261,
591,
2387,
422,
374,
13,
288,
1082,
202,
11798,
907,
18,
1289,
1763,
2932,
7,
3113,
3741,
67,
2248,
3156,
1769,
2
] |
JFileChooser saveChooser; String currentDirectoryPath = Pooka.getProperty("Pooka.tmp.currentDirectory", ""); if (currentDirectoryPath == "") saveChooser = new JFileChooser(); else saveChooser = new JFileChooser(currentDirectoryPath); if (fileName != null) saveChooser.setSelectedFile(new File(fileName));
|
JFileChooser saveChooser; String currentDirectoryPath = Pooka.getProperty("Pooka.tmp.currentDirectory", ""); if (currentDirectoryPath == "") saveChooser = new JFileChooser(); else saveChooser = new JFileChooser(currentDirectoryPath); if (fileName != null) saveChooser.setSelectedFile(new File(fileName));
|
public void run() { JFileChooser saveChooser; String currentDirectoryPath = Pooka.getProperty("Pooka.tmp.currentDirectory", ""); if (currentDirectoryPath == "") saveChooser = new JFileChooser(); else saveChooser = new JFileChooser(currentDirectoryPath); if (fileName != null) saveChooser.setSelectedFile(new File(fileName)); int saveConfirm = saveChooser.showSaveDialog(fComponent); Pooka.getResources().setProperty("Pooka.tmp.currentDirectory", saveChooser.getCurrentDirectory().getPath(), true); if (saveConfirm == JFileChooser.APPROVE_OPTION) { try { // saveFileAs creates a new thread, so don't bother // dispatching this somewhere else. saveFileAs(fAttachment, saveChooser.getSelectedFile()); } catch (IOException exc) { showError(Pooka.getProperty("error.SaveFile", "Error saving file") + ":\n", Pooka.getProperty("error.SaveFile", "Error saving file"), exc); } } }
|
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/AttachmentHandler.java/buggy/src/net/suberic/pooka/gui/AttachmentHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
225,
1071,
918,
1086,
1435,
288,
202,
565,
804,
812,
17324,
1923,
17324,
31,
202,
565,
514,
783,
31995,
273,
453,
1184,
69,
18,
588,
1396,
2932,
52,
1184,
69,
18,
5645,
18,
2972,
2853,
3113,
1408,
1769,
202,
565,
309,
261,
2972,
31995,
422,
1408,
13,
202,
1377,
1923,
17324,
273,
394,
804,
812,
17324,
5621,
202,
565,
469,
202,
1377,
1923,
17324,
273,
394,
804,
812,
17324,
12,
2972,
31995,
1769,
202,
377,
202,
565,
309,
261,
17812,
480,
446,
13,
202,
1377,
1923,
17324,
18,
542,
7416,
812,
12,
2704,
1387,
12,
17812,
10019,
4202,
202,
565,
509,
1923,
11269,
273,
1923,
17324,
18,
4500,
4755,
6353,
12,
74,
1841,
1769,
202,
565,
453,
1184,
69,
18,
588,
3805,
7675,
542,
1396,
2932,
52,
1184,
69,
18,
5645,
18,
2972,
2853,
3113,
1923,
17324,
18,
588,
3935,
2853,
7675,
588,
743,
9334,
638,
1769,
202,
565,
309,
261,
5688,
11269,
422,
804,
812,
17324,
18,
2203,
3373,
3412,
67,
7425,
13,
288,
202,
1377,
775,
288,
202,
202,
759,
1923,
812,
1463,
3414,
279,
394,
2650,
16,
1427,
2727,
1404,
23440,
202,
202,
759,
3435,
310,
333,
22234,
469,
18,
202,
202,
5688,
812,
1463,
12,
74,
6803,
16,
1923,
17324,
18,
588,
7416,
812,
10663,
202,
1377,
289,
1044,
261,
14106,
3533,
13,
288,
202,
202,
4500,
668,
12,
52,
1184,
69,
18,
588,
1396,
2932,
1636,
18,
4755,
812,
3113,
315,
668,
12392,
585,
7923,
397,
315,
5581,
82,
3113,
453,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
225,
1071,
918,
1086,
1435,
288,
202,
565,
804,
812,
17324,
1923,
17324,
31,
202,
565,
514,
783,
31995,
273,
453,
1184,
69,
18,
588,
1396,
2932,
52,
1184,
69,
18,
5645,
18,
2972,
2853,
3113,
1408,
1769,
202,
565,
309,
261,
2972,
31995,
422,
1408,
13,
202,
1377,
1923,
17324,
273,
394,
804,
812,
17324,
5621,
202,
565,
469,
202,
1377,
1923,
17324,
273,
394,
804,
812,
17324,
12,
2972,
31995,
1769,
202,
377,
202,
565,
309,
261,
17812,
480,
446,
13,
202,
1377,
1923,
17324,
18,
542,
7416,
812,
12,
2704,
1387,
12,
17812,
10019,
4202,
202,
565,
509,
1923,
11269,
273,
1923,
17324,
18,
4500,
4755,
6353,
12,
74,
1841,
1769,
202,
565,
453,
1184,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.