rem
stringlengths 1
53.3k
| add
stringlengths 0
80.5k
| context
stringlengths 6
326k
| meta
stringlengths 141
403
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
String baseName = base.getEid().getValue();
|
public String getDisplayName() { String baseName = base.getEid().getValue(); if (base.isRole()) { return parent.getMessageFromBundle("decorated_role_format", new Object[]{base.getDisplayName()}); } else { return parent.getMessageFromBundle("decorated_user_format", new Object[]{base.getDisplayName(), baseName}); } }
|
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/0830436cf23514a09ea3347c898df458fa1f1140/DecoratedMember.java/clean/common/tool-lib/src/java/org/theospi/portfolio/security/tool/DecoratedMember.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
514,
22055,
1435,
288,
6647,
309,
261,
1969,
18,
291,
2996,
10756,
288,
540,
327,
982,
18,
24906,
1265,
3405,
2932,
11880,
690,
67,
4615,
67,
2139,
3113,
9079,
394,
1033,
63,
7073,
1969,
18,
588,
20524,
17767,
1769,
1377,
289,
1377,
469,
288,
540,
327,
982,
18,
24906,
1265,
3405,
2932,
11880,
690,
67,
1355,
67,
2139,
3113,
9079,
394,
1033,
63,
7073,
1969,
18,
588,
20524,
9334,
16162,
22938,
1377,
289,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
514,
22055,
1435,
288,
6647,
309,
261,
1969,
18,
291,
2996,
10756,
288,
540,
327,
982,
18,
24906,
1265,
3405,
2932,
11880,
690,
67,
4615,
67,
2139,
3113,
9079,
394,
1033,
63,
7073,
1969,
18,
588,
20524,
17767,
1769,
1377,
289,
1377,
469,
288,
540,
327,
982,
18,
24906,
1265,
3405,
2932,
11880,
690,
67,
1355,
67,
2139,
3113,
9079,
394,
1033,
63,
7073,
1969,
18,
588,
20524,
9334,
16162,
22938,
1377,
289,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
expandToDefaultLevel( );
|
if ( getControl( ).isFocusControl( ) ) { IMemento memento = viewerMemento.getChild( PropertyMementoUtil.getElementType( (DesignElementHandle) focus ) ); if ( memento == null ) { expandToDefaultLevel( ); if ( viewer.getTree( ).getItemCount( ) > 0 ) { ViewsMemento elementMemento = (ViewsMemento) viewerMemento.createChild( PropertyMementoUtil.getElementType( (DesignElementHandle) focus ), MementoElement.Type_Element ); elementMemento.getMementoElement( ) .setValue( new Integer( 0 ) ); } } if ( memento != null && memento instanceof ViewsMemento ) { expandToDefaultLevel( ); expandTreeFromMemento( (ViewsMemento) memento ); } changed = false; }else{ changed = true; }
|
public void elementChanged( DesignElementHandle focus, NotificationEvent ev ) { if ( !viewer.getTree( ).isDisposed( ) ) { viewer.refresh( true ); expandToDefaultLevel( ); } }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4a02c746af9cd43e31a2b882cd63c484ba236fc1/ReportPropertySheetPage.java/clean/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/views/property/ReportPropertySheetPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
430,
261,
401,
25256,
18,
588,
2471,
12,
262,
18,
291,
1669,
7423,
12,
262,
262,
202,
202,
95,
1082,
202,
25256,
18,
9144,
12,
638,
11272,
1082,
202,
12320,
774,
1868,
2355,
12,
11272,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
430,
261,
401,
25256,
18,
588,
2471,
12,
262,
18,
291,
1669,
7423,
12,
262,
262,
202,
202,
95,
1082,
202,
25256,
18,
9144,
12,
638,
11272,
1082,
202,
12320,
774,
1868,
2355,
12,
11272,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else if( name == GLU.GLU.GLU_EXTENSIONS ) {
|
} else if( name == GLU.GLU_EXTENSIONS ) {
|
public static String gluGetString(int name) { if( name == GLU.GLU.GLU_VERSION ) { return( "1.3" ); } else if( name == GLU.GLU.GLU_EXTENSIONS ) { return( "GLU_EXT_nurbs_tessellator GLU_EXT_object_space_tess " ); } return( null ); }
|
47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/dfbee835b5a50b1c6219bd53e15823ea83d73dd6/Registry.java/clean/src/net/java/games/jogl/impl/registry/Registry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
5118,
89,
967,
780,
12,
474,
508,
13,
288,
565,
309,
12,
508,
422,
10252,
57,
18,
11261,
57,
18,
11261,
57,
67,
5757,
262,
288,
1377,
327,
12,
315,
21,
18,
23,
6,
11272,
565,
289,
469,
309,
12,
508,
422,
10252,
57,
18,
11261,
57,
67,
12796,
55,
262,
288,
1377,
327,
12,
315,
11261,
57,
67,
4142,
67,
82,
295,
2038,
67,
88,
403,
1165,
639,
10252,
57,
67,
4142,
67,
1612,
67,
2981,
67,
88,
403,
315,
11272,
565,
289,
565,
327,
12,
446,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
5118,
89,
967,
780,
12,
474,
508,
13,
288,
565,
309,
12,
508,
422,
10252,
57,
18,
11261,
57,
18,
11261,
57,
67,
5757,
262,
288,
1377,
327,
12,
315,
21,
18,
23,
6,
11272,
565,
289,
469,
309,
12,
508,
422,
10252,
57,
18,
11261,
57,
67,
12796,
55,
262,
288,
1377,
327,
12,
315,
11261,
57,
67,
4142,
67,
82,
295,
2038,
67,
88,
403,
1165,
639,
10252,
57,
67,
4142,
67,
1612,
67,
2981,
67,
88,
403,
315,
11272,
565,
289,
565,
327,
12,
446,
11272,
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
] |
if (session == null) {
|
if (session == null || serverName == null) {
|
public void removeSession(ClientSession session) { // TODO: Requires better error checking to ensure the session count is maintained // TODO: properly (removal actually does remove). if (session == null) { return; } SessionMap sessionMap = null; if (anonymousSessions.containsValue(session)) { anonymousSessions.remove(session.getAddress().getResource()); sessionCount--; } else { // If this is a non-anonymous session then remove the session from the SessionMap if (session.getAddress() != null && session.getAddress().getNode() != null) { String username = session.getAddress().getNode().toLowerCase(); synchronized (username.intern()) { sessionMap = sessions.get(username); if (sessionMap != null) { sessionMap.removeSession(session); sessionCount--; if (sessionMap.isEmpty()) { sessions.remove(username); } } } } } // If the user is still available then send an unavailable presence Presence presence = session.getPresence(); if (presence == null || presence.isAvailable()) { Presence offline = new Presence(); offline.setFrom(session.getAddress()); offline.setTo(new JID(null, serverName, null)); offline.setType(Presence.Type.unavailable); router.route(offline); } else if (preAuthenticatedSessions.containsValue(session)) { // Remove the session from the pre-Authenticated sessions list preAuthenticatedSessions.remove(session.getAddress().toString()); } }
|
6161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6161/3540a9e72c202635d78529696914124fb298129c/SessionManager.java/buggy/src/java/org/jivesoftware/messenger/SessionManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
2157,
12,
1227,
2157,
1339,
13,
288,
3639,
368,
2660,
30,
16412,
7844,
555,
6728,
358,
3387,
326,
1339,
1056,
353,
11566,
8707,
3639,
368,
2660,
30,
8214,
261,
2764,
10866,
6013,
1552,
1206,
2934,
1850,
309,
261,
3184,
422,
446,
747,
10926,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
3877,
863,
1339,
863,
273,
446,
31,
3639,
309,
261,
19070,
13566,
18,
12298,
620,
12,
3184,
3719,
288,
5411,
13236,
13566,
18,
4479,
12,
3184,
18,
588,
1887,
7675,
588,
1420,
10663,
5411,
1339,
1380,
413,
31,
3639,
289,
3639,
469,
288,
5411,
368,
971,
333,
353,
279,
1661,
17,
19070,
1339,
1508,
1206,
326,
1339,
628,
326,
3877,
863,
5411,
309,
261,
3184,
18,
588,
1887,
1435,
480,
446,
597,
1339,
18,
588,
1887,
7675,
588,
907,
1435,
480,
446,
13,
288,
7734,
514,
2718,
273,
1339,
18,
588,
1887,
7675,
588,
907,
7675,
869,
5630,
5621,
7734,
3852,
261,
5053,
18,
267,
798,
10756,
288,
10792,
1339,
863,
273,
8856,
18,
588,
12,
5053,
1769,
10792,
309,
261,
3184,
863,
480,
446,
13,
288,
13491,
1339,
863,
18,
4479,
2157,
12,
3184,
1769,
13491,
1339,
1380,
413,
31,
13491,
309,
261,
3184,
863,
18,
291,
1921,
10756,
288,
18701,
8856,
18,
4479,
12,
5053,
1769,
13491,
289,
10792,
289,
7734,
289,
5411,
289,
3639,
289,
3639,
368,
971,
326,
729,
353,
4859,
2319,
1508,
1366,
392,
15781,
9805,
3639,
31517,
9805,
273,
1339,
18,
588,
22590,
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,
1071,
918,
1206,
2157,
12,
1227,
2157,
1339,
13,
288,
3639,
368,
2660,
30,
16412,
7844,
555,
6728,
358,
3387,
326,
1339,
1056,
353,
11566,
8707,
3639,
368,
2660,
30,
8214,
261,
2764,
10866,
6013,
1552,
1206,
2934,
1850,
309,
261,
3184,
422,
446,
747,
10926,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
3639,
3877,
863,
1339,
863,
273,
446,
31,
3639,
309,
261,
19070,
13566,
18,
12298,
620,
12,
3184,
3719,
288,
5411,
13236,
13566,
18,
4479,
12,
3184,
18,
588,
1887,
7675,
588,
1420,
10663,
5411,
1339,
1380,
413,
31,
3639,
289,
3639,
469,
288,
5411,
368,
971,
333,
353,
279,
1661,
17,
19070,
1339,
1508,
1206,
326,
1339,
628,
326,
3877,
863,
5411,
2
] |
if (node.getProp(Node.ISNUMBER_PROP) != null) {
|
if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) {
|
private void visitIncDec(Node node, boolean isInc) { Node child = node.getFirstChild(); if (node.getProp(Node.ISNUMBER_PROP) != null) { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); if (lVar.getJRegister() == -1) lVar.assignJRegister(getNewWordPairLocal()); dload(lVar.getJRegister()); addByteCode(ByteCode.DUP2); push(1.0); addByteCode((isInc) ? ByteCode.DADD : ByteCode.DSUB); dstore(lVar.getJRegister()); } else { OptLocalVariable lVar = (OptLocalVariable)(child.getProp(Node.VARIABLE_PROP)); String routine = (isInc) ? "postIncrement" : "postDecrement"; if (hasVarsInRegs && child.getType() == TokenStream.GETVAR) { if (lVar == null) lVar = (OptLocalVariable) vars.getVariable(child.getString()); if (lVar.getJRegister() == -1) lVar.assignJRegister(getNewWordLocal()); aload(lVar.getJRegister()); addByteCode(ByteCode.DUP); addScriptRuntimeInvoke(routine, "(Ljava/lang/Object;)", "Ljava/lang/Object;"); astore(lVar.getJRegister()); } else { if (child.getType() == TokenStream.GETPROP) { Node getPropChild = child.getFirstChild(); generateCodeFromNode(getPropChild, node, -1, -1); generateCodeFromNode(getPropChild.getNextSibling(), node, -1, -1); aload(variableObjectLocal); addScriptRuntimeInvoke(routine, "(Ljava/lang/Object;Ljava/lang/String;" + "Lorg/mozilla/javascript/Scriptable;)", "Ljava/lang/Object;"); } else { if (child.getType() == TokenStream.GETELEM) { routine += "Elem"; Node getPropChild = child.getFirstChild(); generateCodeFromNode(getPropChild, node, -1, -1); generateCodeFromNode(getPropChild.getNextSibling(), node, -1, -1); aload(variableObjectLocal); addScriptRuntimeInvoke(routine, "(Ljava/lang/Object;Ljava/lang/Object;" + "Lorg/mozilla/javascript/Scriptable;)", "Ljava/lang/Object;"); } else { aload(variableObjectLocal); push(child.getString()); // push name addScriptRuntimeInvoke(routine, "(Lorg/mozilla/javascript/Scriptable;Ljava/lang/String;)", "Ljava/lang/Object;"); } } } } }
|
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3757,
14559,
1799,
12,
907,
756,
16,
1250,
8048,
71,
13,
565,
288,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
309,
261,
2159,
18,
588,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
300,
21,
13,
480,
300,
21,
13,
288,
5411,
12056,
2042,
3092,
328,
1537,
10792,
273,
261,
6179,
2042,
3092,
21433,
3624,
18,
588,
4658,
12,
907,
18,
16444,
67,
15811,
10019,
5411,
309,
261,
80,
1537,
18,
588,
46,
3996,
1435,
422,
300,
21,
13,
7734,
328,
1537,
18,
6145,
46,
3996,
12,
588,
1908,
3944,
4154,
2042,
10663,
5411,
302,
945,
12,
80,
1537,
18,
588,
46,
3996,
10663,
5411,
527,
3216,
1085,
12,
3216,
1085,
18,
30387,
22,
1769,
5411,
1817,
12,
21,
18,
20,
1769,
5411,
527,
3216,
1085,
12443,
291,
14559,
13,
692,
3506,
1085,
18,
40,
8355,
294,
3506,
1085,
18,
3948,
3457,
1769,
5411,
27723,
12,
80,
1537,
18,
588,
46,
3996,
10663,
3639,
289,
469,
288,
5411,
12056,
2042,
3092,
328,
1537,
10792,
273,
261,
6179,
2042,
3092,
21433,
3624,
18,
588,
4658,
12,
907,
18,
16444,
67,
15811,
10019,
5411,
514,
12245,
273,
261,
291,
14559,
13,
692,
315,
2767,
10798,
6,
294,
315,
2767,
23326,
475,
14432,
5411,
309,
261,
5332,
5555,
382,
426,
564,
597,
1151,
18,
588,
559,
1435,
422,
3155,
1228,
18,
3264,
7716,
13,
288,
7734,
309,
261,
80,
1537,
422,
446,
13,
5397,
328,
1537,
273,
261,
6179,
2042,
3092,
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,
3757,
14559,
1799,
12,
907,
756,
16,
1250,
8048,
71,
13,
565,
288,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
309,
261,
2159,
18,
588,
1702,
4658,
12,
907,
18,
5127,
9931,
67,
15811,
16,
300,
21,
13,
480,
300,
21,
13,
288,
5411,
12056,
2042,
3092,
328,
1537,
10792,
273,
261,
6179,
2042,
3092,
21433,
3624,
18,
588,
4658,
12,
907,
18,
16444,
67,
15811,
10019,
5411,
309,
261,
80,
1537,
18,
588,
46,
3996,
1435,
422,
300,
21,
13,
7734,
328,
1537,
18,
6145,
46,
3996,
12,
588,
1908,
3944,
4154,
2042,
10663,
5411,
302,
945,
12,
80,
1537,
18,
588,
46,
3996,
10663,
5411,
527,
3216,
1085,
12,
3216,
2
] |
finalizeVar();System.out.println("----ARRAYREF:"+name.getText()+"\n");
|
finalizeVar();printConsole("----ARRAYREF:"+name.getText()+"\n");
|
public final void arrayReference() throws RecognitionException, TokenStreamException { Token name = null; try { // for error handling match(ARRAY_REF); name = LT(1); match(ADR); match(NL); addVar("Array->"+name.getText()," ");System.out.println("++++ARRAYREF:"+name.getText()+"\n"); { switch ( LA(1)) { case INDENT_START: { arrayEntries(); break; } case EOF: case ARRAY_NAME: case SCALAR_NAME: case HASH_NAME: case NUMBER: case INDENT_END: case FILE_HANDLE: case NL: case STRING: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } finalizeVar();System.out.println("----ARRAYREF:"+name.getText()+"\n"); } catch (RecognitionException ex) { reportError(ex); consume(); consumeUntil(_tokenSet_5); } }
|
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/72375d88949c7cd568747d5147388993cafd19ac/PerlParserSimple.java/clean/org.epic.debug/src/org/epic/debug/varparser/PerlParserSimple.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
526,
2404,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
1345,
225,
508,
273,
446,
31,
9506,
202,
698,
288,
1377,
368,
364,
555,
5057,
1082,
202,
1916,
12,
8552,
67,
10771,
1769,
1082,
202,
529,
273,
11807,
12,
21,
1769,
1082,
202,
1916,
12,
1880,
54,
1769,
1082,
202,
1916,
12,
24924,
1769,
1082,
202,
1289,
1537,
2932,
1076,
2122,
6,
15,
529,
18,
588,
1528,
9334,
6,
315,
1769,
3163,
18,
659,
18,
8222,
2932,
20934,
8552,
10771,
2773,
15,
529,
18,
588,
1528,
1435,
9078,
64,
82,
8863,
1082,
202,
95,
1082,
202,
9610,
261,
2928,
12,
21,
3719,
288,
1082,
202,
3593,
30009,
67,
7570,
30,
1082,
202,
95,
9506,
202,
1126,
5400,
5621,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
6431,
30,
1082,
202,
3593,
14884,
67,
1985,
30,
1082,
202,
3593,
348,
7913,
985,
67,
1985,
30,
1082,
202,
3593,
20857,
67,
1985,
30,
1082,
202,
3593,
15532,
30,
1082,
202,
3593,
30009,
67,
4415,
30,
1082,
202,
3593,
7527,
67,
23056,
30,
1082,
202,
3593,
18520,
30,
1082,
202,
3593,
9469,
30,
1082,
202,
95,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
1886,
30,
1082,
202,
95,
9506,
202,
12849,
394,
17114,
12,
12050,
12,
21,
3631,
14632,
10663,
1082,
202,
97,
1082,
202,
97,
1082,
202,
97,
1082,
202,
30343,
1537,
5621,
3163,
18,
659,
18,
8222,
2932,
553,
8552,
10771,
2773,
15,
529,
18,
588,
1528,
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,
526,
2404,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
1345,
225,
508,
273,
446,
31,
9506,
202,
698,
288,
1377,
368,
364,
555,
5057,
1082,
202,
1916,
12,
8552,
67,
10771,
1769,
1082,
202,
529,
273,
11807,
12,
21,
1769,
1082,
202,
1916,
12,
1880,
54,
1769,
1082,
202,
1916,
12,
24924,
1769,
1082,
202,
1289,
1537,
2932,
1076,
2122,
6,
15,
529,
18,
588,
1528,
9334,
6,
315,
1769,
3163,
18,
659,
18,
8222,
2932,
20934,
8552,
10771,
2773,
15,
529,
18,
588,
1528,
1435,
9078,
64,
82,
8863,
1082,
202,
95,
1082,
202,
9610,
261,
2928,
12,
21,
3719,
288,
1082,
202,
3593,
30009,
67,
7570,
30,
1082,
202,
2
] |
SVNEntry2 newEntry = new SVNEntry2(new HashMap(entry.asMap()), this, entry.getName()); myEntries.put(entry.getName(), newEntry);
|
public SVNAdminArea upgradeFormat(SVNAdminArea adminArea) throws SVNException { File logFile = adminArea.getAdminFile("log"); SVNFileType type = SVNFileType.getType(logFile); if (type == SVNFileType.FILE) { return adminArea; } ISVNLog log = getLog(); Map command = new HashMap(); command.put(ISVNLog.FORMAT_ATTR, String.valueOf(getFormatVersion())); log.addCommand(ISVNLog.UPGRADE_FORMAT, command, false); command.clear(); Iterator entries = adminArea.entries(true); myEntries = new HashMap(); Map basePropsCache = getBasePropertiesStorage(true); Map propsCache = getPropertiesStorage(true); for (; entries.hasNext();) { SVNEntry2 entry = (SVNEntry2) entries.next(); if (entry.getKind() != SVNNodeKind.FILE && !adminArea.getThisDirName().equals(entry.getName())) { continue; } SVNEntry2 newEntry = new SVNEntry2(new HashMap(entry.asMap()), this, entry.getName()); myEntries.put(entry.getName(), newEntry); ISVNProperties srcBaseProps = adminArea.getBaseProperties(entry.getName()); if (!srcBaseProps.isEmpty()) { Map basePropsHolder = new HashMap(srcBaseProps.asMap()); ISVNProperties dstBaseProps = new SVNProperties13(basePropsHolder); basePropsCache.put(entry.getName(), dstBaseProps); } ISVNProperties srcProps = adminArea.getProperties(entry.getName()); ISVNProperties dstProps = new SVNProperties14(new HashMap(srcProps.asMap()), this, entry.getName()){ protected Map loadProperties() throws SVNException { return myProperties; } }; propsCache.put(entry.getName(), dstProps); dstProps.setModified(true); command.put(ISVNLog.NAME_ATTR, entry.getName()); command.put(SVNProperty.shortPropertyName(SVNProperty.PROP_TIME), SVNTimeUtil.formatDate(new Date(0), true)); log.addCommand(ISVNLog.MODIFY_ENTRY, command, false); command.clear(); ISVNProperties wcProps = adminArea.getWCProperties(entry.getName()); log.logChangedWCProperties(entry.getName(),wcProps.asMap()); } saveVersionedProperties(log, true); log.save(); SVNFileUtil.deleteFile(getAdminFile("README.txt")); SVNFileUtil.deleteFile(getAdminFile("empty-file")); SVNFileUtil.deleteAll(getAdminFile("wcprops"), true); SVNFileUtil.deleteAll(getAdminFile("tmp/wcprops"), true); SVNFileUtil.deleteAll(getAdminFile("dir-wcprops"), true); runLogs(); return this; }
|
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/78e9b32bf6616d0a46e48833084f65511a2daaad/SVNAdminArea14.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/admin/SVNAdminArea14.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
4446,
5484,
8400,
1630,
12,
23927,
50,
4446,
5484,
3981,
5484,
13,
1216,
29537,
50,
503,
288,
3639,
1387,
20169,
273,
3981,
5484,
18,
588,
4446,
812,
2932,
1330,
8863,
3639,
29537,
50,
28941,
618,
273,
29537,
50,
28941,
18,
588,
559,
12,
1330,
812,
1769,
3639,
309,
261,
723,
422,
29537,
50,
28941,
18,
3776,
13,
288,
5411,
327,
3981,
5484,
31,
3639,
289,
3639,
4437,
58,
50,
1343,
613,
273,
9189,
5621,
3639,
1635,
1296,
273,
394,
4317,
5621,
3639,
1296,
18,
458,
12,
5127,
58,
50,
1343,
18,
7254,
67,
12043,
16,
514,
18,
1132,
951,
12,
588,
1630,
1444,
1435,
10019,
3639,
613,
18,
1289,
2189,
12,
5127,
58,
50,
1343,
18,
3079,
24554,
1639,
67,
7254,
16,
1296,
16,
629,
1769,
3639,
1296,
18,
8507,
5621,
7734,
4498,
3222,
273,
3981,
5484,
18,
8219,
12,
3767,
1769,
3639,
3399,
5400,
273,
394,
4317,
5621,
3639,
1635,
1026,
5047,
1649,
273,
8297,
2297,
3245,
12,
3767,
1769,
3639,
1635,
3458,
1649,
273,
9392,
3245,
12,
3767,
1769,
7734,
364,
261,
31,
3222,
18,
5332,
2134,
5621,
13,
288,
5411,
29537,
50,
1622,
22,
1241,
273,
261,
23927,
50,
1622,
22,
13,
3222,
18,
4285,
5621,
5411,
309,
261,
4099,
18,
588,
5677,
1435,
480,
29537,
50,
907,
5677,
18,
3776,
597,
401,
3666,
5484,
18,
588,
2503,
28780,
7675,
14963,
12,
4099,
18,
17994,
1435,
3719,
288,
7734,
1324,
31,
5411,
289,
13491,
29537,
50,
1622,
22,
24086,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29537,
50,
4446,
5484,
8400,
1630,
12,
23927,
50,
4446,
5484,
3981,
5484,
13,
1216,
29537,
50,
503,
288,
3639,
1387,
20169,
273,
3981,
5484,
18,
588,
4446,
812,
2932,
1330,
8863,
3639,
29537,
50,
28941,
618,
273,
29537,
50,
28941,
18,
588,
559,
12,
1330,
812,
1769,
3639,
309,
261,
723,
422,
29537,
50,
28941,
18,
3776,
13,
288,
5411,
327,
3981,
5484,
31,
3639,
289,
3639,
4437,
58,
50,
1343,
613,
273,
9189,
5621,
3639,
1635,
1296,
273,
394,
4317,
5621,
3639,
1296,
18,
458,
12,
5127,
58,
50,
1343,
18,
7254,
67,
12043,
16,
514,
18,
1132,
951,
12,
588,
1630,
1444,
1435,
10019,
3639,
613,
18,
1289,
2189,
12,
5127,
58,
50,
1343,
2
] |
|
public RubyString downcase_bang() {
|
public IRubyObject downcase_bang() {
|
public RubyString downcase_bang() { String result = getValue().toLowerCase(); if (result.equals(getValue())) { return nilString(getRuntime()); } setValue(result); return this; }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/RubyString.java/clean/src/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
21662,
67,
70,
539,
1435,
288,
3639,
514,
563,
273,
2366,
7675,
869,
5630,
5621,
3639,
309,
261,
2088,
18,
14963,
12,
24805,
1435,
3719,
288,
5411,
327,
515,
780,
12,
588,
5576,
10663,
3639,
289,
202,
202,
542,
620,
12,
2088,
1769,
202,
202,
2463,
333,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
21662,
67,
70,
539,
1435,
288,
3639,
514,
563,
273,
2366,
7675,
869,
5630,
5621,
3639,
309,
261,
2088,
18,
14963,
12,
24805,
1435,
3719,
288,
5411,
327,
515,
780,
12,
588,
5576,
10663,
3639,
289,
202,
202,
542,
620,
12,
2088,
1769,
202,
202,
2463,
333,
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
] |
} else { return obj;
|
public IRubyObject readchar() { IRubyObject obj = getc(); if (obj.isNil()) { throw new EOFError(runtime); } else { return obj; } }
|
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyIO.java/clean/src/org/jruby/RubyIO.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
855,
3001,
1435,
288,
3639,
15908,
10340,
921,
1081,
273,
336,
71,
5621,
3639,
309,
261,
2603,
18,
291,
12616,
10756,
288,
5411,
604,
394,
6431,
668,
12,
9448,
1769,
3639,
289,
469,
288,
5411,
327,
1081,
31,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
855,
3001,
1435,
288,
3639,
15908,
10340,
921,
1081,
273,
336,
71,
5621,
3639,
309,
261,
2603,
18,
291,
12616,
10756,
288,
5411,
604,
394,
6431,
668,
12,
9448,
1769,
3639,
289,
469,
288,
5411,
327,
1081,
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,
-100,
-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(comp); lookup.push(lastDecl); lookup.push(positionDecl);
|
this(null);
|
public XQResolveNames (Compilation comp) { super(comp); lookup.push(lastDecl); lookup.push(positionDecl); }
|
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/03db21ac6cb4fce3182a84bb78e6f567b8fb05eb/XQResolveNames.java/buggy/gnu/xquery/lang/XQResolveNames.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1139,
53,
8460,
1557,
261,
19184,
1161,
13,
225,
288,
565,
2240,
12,
2919,
1769,
565,
3689,
18,
6206,
12,
2722,
3456,
1769,
565,
3689,
18,
6206,
12,
3276,
3456,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1139,
53,
8460,
1557,
261,
19184,
1161,
13,
225,
288,
565,
2240,
12,
2919,
1769,
565,
3689,
18,
6206,
12,
2722,
3456,
1769,
565,
3689,
18,
6206,
12,
3276,
3456,
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
] |
reportError(cx, scopeObj, "msg.no.re.input.for", toString());
|
reportError("msg.no.re.input.for", toString());
|
private Object execSub(Context cx, Scriptable scopeObj, Object[] args, int matchType) { RegExpImpl reImpl = getImpl(cx); String str; if (args.length == 0) { str = reImpl.input; if (str == null) { reportError(cx, scopeObj, "msg.no.re.input.for", toString()); } } else { str = ScriptRuntime.toString(args[0]); } double d = ((re.flags & JSREG_GLOB) != 0) ? lastIndex : 0; Object rval; if (d < 0 || str.length() < d) { lastIndex = 0; rval = null; } else { int indexp[] = { (int)d }; rval = executeRegExp(cx, scopeObj, reImpl, str, indexp, matchType); if ((re.flags & JSREG_GLOB) != 0) { lastIndex = (rval == null || rval == Undefined.instance) ? 0 : indexp[0]; } } return rval; }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/8df24a01d813540ecdfcd8a3a380c84cc9993734/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
1196,
1676,
12,
1042,
9494,
16,
22780,
2146,
2675,
16,
21821,
1033,
8526,
833,
16,
509,
845,
559,
13,
565,
288,
3639,
10679,
2828,
283,
2828,
273,
336,
2828,
12,
71,
92,
1769,
3639,
514,
609,
31,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
609,
273,
283,
2828,
18,
2630,
31,
5411,
309,
261,
701,
422,
446,
13,
288,
7734,
17887,
2932,
3576,
18,
2135,
18,
266,
18,
2630,
18,
1884,
3113,
1762,
10663,
5411,
289,
3639,
289,
469,
288,
5411,
609,
273,
7739,
5576,
18,
10492,
12,
1968,
63,
20,
19226,
3639,
289,
3639,
1645,
302,
273,
14015,
266,
18,
7133,
473,
6756,
5937,
67,
43,
6038,
13,
480,
374,
13,
692,
7536,
294,
374,
31,
3639,
1033,
14267,
31,
3639,
309,
261,
72,
411,
374,
747,
609,
18,
2469,
1435,
411,
302,
13,
288,
5411,
7536,
273,
374,
31,
5411,
14267,
273,
446,
31,
3639,
289,
3639,
469,
288,
5411,
509,
770,
84,
8526,
273,
288,
261,
474,
13,
72,
289,
31,
5411,
14267,
273,
1836,
13673,
12,
71,
92,
16,
2146,
2675,
16,
283,
2828,
16,
609,
16,
770,
84,
16,
845,
559,
1769,
5411,
309,
14015,
266,
18,
7133,
473,
6756,
5937,
67,
43,
6038,
13,
480,
374,
13,
288,
7734,
7536,
273,
261,
86,
1125,
422,
446,
747,
14267,
422,
22243,
18,
1336,
13,
18701,
692,
374,
294,
770,
84,
63,
20,
15533,
5411,
289,
3639,
289,
3639,
327,
14267,
31,
565,
289,
2,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
1196,
1676,
12,
1042,
9494,
16,
22780,
2146,
2675,
16,
21821,
1033,
8526,
833,
16,
509,
845,
559,
13,
565,
288,
3639,
10679,
2828,
283,
2828,
273,
336,
2828,
12,
71,
92,
1769,
3639,
514,
609,
31,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
609,
273,
283,
2828,
18,
2630,
31,
5411,
309,
261,
701,
422,
446,
13,
288,
7734,
17887,
2932,
3576,
18,
2135,
18,
266,
18,
2630,
18,
1884,
3113,
1762,
10663,
5411,
289,
3639,
289,
469,
288,
5411,
609,
273,
7739,
5576,
18,
10492,
12,
1968,
63,
20,
19226,
3639,
289,
3639,
1645,
302,
273,
14015,
266,
18,
7133,
473,
6756,
5937,
67,
43,
6038,
13,
480,
374,
13,
2
] |
long secsSinceStart = (System.currentTimeMillis()-startTime)/1000+1; float mbs = ((float)bytesTransferred)/(1024*1024); float transferRate = mbs/secsSinceStart;
|
long secsSinceStart = (System.currentTimeMillis()-startTime)/1000+1; float mbs = ((float)bytesTransferred)/(1024*1024); float transferRate = mbs/secsSinceStart;
|
public boolean prepare() throws IOException { // cleanup from failures this.mapOutputFile.removeAll(reduceTask.getTaskId()); final int numOutputs = reduceTask.getNumMaps(); List neededOutputs = new ArrayList(numOutputs); List knownOutputs = new ArrayList(100); int numInFlight = 0, numCopied = 0; int lowThreshold = numCopiers*2; long bytesTransferred = 0; DecimalFormat mbpsFormat = new DecimalFormat("0.00"); Random backoff = new Random(); final Progress copyPhase = getTask().getProgress().phase(); for (int i = 0; i < numOutputs; i++) { neededOutputs.add(new Integer(i)); copyPhase.addPhase(); // add sub-phase per file } InterTrackerProtocol jobClient = getTracker().getJobClient(); MapOutputCopier[] copiers = new MapOutputCopier[numCopiers]; // start all the copying threads for (int i=0; i < copiers.length; i++) { copiers[i] = new MapOutputCopier(); copiers[i].start(); } // start the clock for bandwidth measurement long startTime = System.currentTimeMillis(); long currentTime = startTime; // loop until we get all required outputs or are killed while (!killed && numCopied < numOutputs) { LOG.info(reduceTask.getTaskId() + " Need " + (numOutputs-numCopied) + " map output(s)"); if (!neededOutputs.isEmpty()) { LOG.info(reduceTask.getTaskId() + " Need " + neededOutputs.size() + " map output location(s)"); try { MapOutputLocation[] locs = queryJobTracker(neededOutputs, jobClient); // remove discovered outputs from needed list // and put them on the known list for (int i=0; i < locs.length; i++) { neededOutputs.remove(new Integer(locs[i].getMapId())); knownOutputs.add(locs[i]); } LOG.info(reduceTask.getTaskId() + " Got " + (locs == null ? 0 : locs.length) + " map outputs from jobtracker"); } catch (IOException ie) { LOG.warning(reduceTask.getTaskId() + " Problem locating map outputs: " + StringUtils.stringifyException(ie)); } } // now walk through the cache and schedule what we can int numKnown = knownOutputs.size(), numScheduled = 0; int numSlow = 0, numDups = 0; LOG.info(reduceTask.getTaskId() + " Got " + numKnown + " known map output location(s); scheduling..."); synchronized (scheduledCopies) { ListIterator locIt = knownOutputs.listIterator(); currentTime = System.currentTimeMillis(); while (locIt.hasNext()) { MapOutputLocation loc = (MapOutputLocation)locIt.next(); Long penaltyEnd = (Long)penaltyBox.get(loc.getHost()); boolean penalized = false, duplicate = false; if (penaltyEnd != null && currentTime < penaltyEnd.longValue()) { penalized = true; numSlow++; } if (uniqueHosts.contains(loc.getHost())) { duplicate = true; numDups++; } if (!penalized && !duplicate) { uniqueHosts.add(loc.getHost()); scheduledCopies.add(loc); locIt.remove(); // remove from knownOutputs numInFlight++; numScheduled++; } } scheduledCopies.notifyAll(); } LOG.info(reduceTask.getTaskId() + " Scheduled " + numScheduled + " of " + numKnown + " known outputs (" + numSlow + " slow hosts and " + numDups + " dup hosts)"); // if we have no copies in flight and we can't schedule anything // new, just wait for a bit try { if (numInFlight == 0 && numScheduled == 0) { Thread.sleep(5000); } } catch (InterruptedException e) { } // IGNORE while (!killed && numInFlight > 0) { CopyResult cr = getCopyResult(); if (cr.getSuccess()) { // a successful copy numCopied++; bytesTransferred += cr.getSize(); long secsSinceStart = (System.currentTimeMillis()-startTime)/1000+1; float mbs = ((float)bytesTransferred)/(1024*1024); float transferRate = mbs/secsSinceStart; copyPhase.startNextPhase(); copyPhase.setStatus("copy (" + numCopied + " of " + numOutputs + " at " + mbpsFormat.format(transferRate) + " MB/s)"); getTask().reportProgress(getTracker()); } else { // this copy failed, put it back onto neededOutputs neededOutputs.add(new Integer(cr.getMapId())); // wait a random amount of time for next contact currentTime = System.currentTimeMillis(); long nextContact = currentTime + 60 * 1000 + backoff.nextInt(maxBackoff*1000); penaltyBox.put(cr.getHost(), new Long(nextContact)); LOG.warning(reduceTask.getTaskId() + " adding host " + cr.getHost() + " to penalty box, next contact in " + ((nextContact-currentTime)/1000) + " seconds"); } uniqueHosts.remove(cr.getHost()); numInFlight--; // ensure we have enough to keep us busy if (numInFlight < lowThreshold && (numOutputs-numCopied) > PROBE_SAMPLE_SIZE) { break; } } } // all done, inform the copiers to exit synchronized (scheduledCopies) { for (int i=0; i < copiers.length; i++) { copiers[i].interrupt(); } } return numCopied == numOutputs && !killed; }
|
49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/c2a4ca97744572ae677bc3bd90afb73a558e8067/ReduceTaskRunner.java/buggy/src/java/org/apache/hadoop/mapred/ReduceTaskRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
2911,
1435,
1216,
1860,
288,
3639,
368,
6686,
628,
11720,
565,
333,
18,
1458,
1447,
812,
18,
4479,
1595,
12,
12498,
2174,
18,
588,
30182,
10663,
3639,
727,
509,
1377,
818,
13856,
273,
5459,
2174,
18,
588,
2578,
8903,
5621,
565,
987,
6647,
3577,
13856,
273,
394,
2407,
12,
2107,
13856,
1769,
565,
987,
6647,
4846,
13856,
273,
394,
2407,
12,
6625,
1769,
565,
509,
5411,
818,
382,
24243,
273,
374,
16,
818,
28127,
273,
374,
31,
565,
509,
5411,
4587,
7614,
273,
818,
11635,
20778,
14,
22,
31,
565,
1525,
6647,
1731,
1429,
4193,
273,
374,
31,
565,
29665,
225,
4903,
1121,
1630,
273,
394,
29665,
2932,
20,
18,
713,
8863,
565,
8072,
540,
12260,
273,
394,
8072,
5621,
565,
727,
10980,
1610,
11406,
273,
11478,
7675,
588,
5491,
7675,
13961,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
818,
13856,
31,
277,
27245,
288,
1377,
3577,
13856,
18,
1289,
12,
2704,
2144,
12,
77,
10019,
1377,
1610,
11406,
18,
1289,
11406,
5621,
4202,
368,
527,
720,
17,
13961,
1534,
585,
565,
289,
565,
5294,
8135,
5752,
1719,
1227,
273,
336,
8135,
7675,
588,
2278,
1227,
5621,
565,
1635,
1447,
11635,
2453,
8526,
6529,
20778,
273,
394,
1635,
1447,
11635,
2453,
63,
2107,
11635,
20778,
15533,
565,
368,
787,
777,
326,
8933,
7403,
565,
364,
261,
474,
277,
33,
20,
31,
277,
411,
6529,
20778,
18,
2469,
31,
277,
27245,
288,
1377,
6529,
20778,
63,
77,
65,
273,
394,
1635,
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,
1250,
2911,
1435,
1216,
1860,
288,
3639,
368,
6686,
628,
11720,
565,
333,
18,
1458,
1447,
812,
18,
4479,
1595,
12,
12498,
2174,
18,
588,
30182,
10663,
3639,
727,
509,
1377,
818,
13856,
273,
5459,
2174,
18,
588,
2578,
8903,
5621,
565,
987,
6647,
3577,
13856,
273,
394,
2407,
12,
2107,
13856,
1769,
565,
987,
6647,
4846,
13856,
273,
394,
2407,
12,
6625,
1769,
565,
509,
5411,
818,
382,
24243,
273,
374,
16,
818,
28127,
273,
374,
31,
565,
509,
5411,
4587,
7614,
273,
818,
11635,
20778,
14,
22,
31,
565,
1525,
6647,
1731,
1429,
4193,
273,
374,
31,
565,
29665,
225,
4903,
1121,
1630,
273,
394,
29665,
2932,
20,
18,
713,
8863,
565,
8072,
540,
12260,
2
] |
public void characters (char buf [], int offset, int len) throws SAXException { docHandler.characters (buf, offset, len); }
|
public void characters(char[] buf, int offset, int len) throws SAXException { docHandler.characters(buf, offset, len); }
|
public void characters (char buf [], int offset, int len) throws SAXException { docHandler.characters (buf, offset, len); }
|
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/7fb7568e63c3fe14af521de4699cb37898923ca7/SAXDriver.java/buggy/libjava/gnu/xml/aelfred2/SAXDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3949,
261,
3001,
1681,
5378,
16,
509,
1384,
16,
509,
562,
13,
202,
15069,
14366,
202,
565,
288,
997,
1503,
18,
20558,
261,
4385,
16,
1384,
16,
562,
1769,
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,
225,
202,
482,
918,
3949,
261,
3001,
1681,
5378,
16,
509,
1384,
16,
509,
562,
13,
202,
15069,
14366,
202,
565,
288,
997,
1503,
18,
20558,
261,
4385,
16,
1384,
16,
562,
1769,
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
] |
public org.quickfix.field.FutSettDate2 getFutSettDate2() throws FieldNotFound { org.quickfix.field.FutSettDate2 value = new org.quickfix.field.FutSettDate2();
|
public quickfix.field.FutSettDate2 getFutSettDate2() throws FieldNotFound { quickfix.field.FutSettDate2 value = new quickfix.field.FutSettDate2();
|
public org.quickfix.field.FutSettDate2 getFutSettDate2() throws FieldNotFound { org.quickfix.field.FutSettDate2 value = new org.quickfix.field.FutSettDate2(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequest.java/buggy/src/java/src/quickfix/fix42/QuoteRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
42,
322,
694,
88,
1626,
22,
2812,
322,
694,
88,
1626,
22,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
42,
322,
694,
88,
1626,
22,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
42,
322,
694,
88,
1626,
22,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
42,
322,
694,
88,
1626,
22,
2812,
322,
694,
88,
1626,
22,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
42,
322,
694,
88,
1626,
22,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
42,
322,
694,
88,
1626,
22,
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
] |
public AcceptorProtocolProvider(Map acceptorSessions, NetworkingOptions networkingOptions, EventHandlingStrategy eventHandlingStrategy) { protocolHandler = new AcceptorProtocolHandler(acceptorSessions, networkingOptions, eventHandlingStrategy);
|
public AcceptorProtocolProvider(Map acceptorSessions, NetworkingOptions networkingOptions, EventHandlingStrategy eventHandlingStrategy) { protocolHandler = new AcceptorProtocolHandler(acceptorSessions, networkingOptions, eventHandlingStrategy);
|
public AcceptorProtocolProvider(Map acceptorSessions, NetworkingOptions networkingOptions, EventHandlingStrategy eventHandlingStrategy) { protocolHandler = new AcceptorProtocolHandler(acceptorSessions, networkingOptions, eventHandlingStrategy); }
|
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/e9fa4bee1a766615b30213682168e0407cff4cce/AcceptorProtocolProvider.java/buggy/src/quickfix/mina/acceptor/AcceptorProtocolProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8662,
280,
5752,
2249,
12,
863,
2791,
280,
13566,
16,
5128,
310,
1320,
26259,
1320,
16,
2587,
14701,
4525,
871,
14701,
4525,
13,
288,
3639,
1771,
1503,
273,
394,
8662,
280,
5752,
1503,
12,
1077,
6757,
13566,
16,
26259,
1320,
16,
871,
14701,
4525,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8662,
280,
5752,
2249,
12,
863,
2791,
280,
13566,
16,
5128,
310,
1320,
26259,
1320,
16,
2587,
14701,
4525,
871,
14701,
4525,
13,
288,
3639,
1771,
1503,
273,
394,
8662,
280,
5752,
1503,
12,
1077,
6757,
13566,
16,
26259,
1320,
16,
871,
14701,
4525,
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
] |
jCheckBoxMappingHFileActionPerformed(evt);
|
jCheckBoxNumberLinesActionPerformed(evt);
|
public void actionPerformed(java.awt.event.ActionEvent evt) { jCheckBoxMappingHFileActionPerformed(evt); }
|
7731 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7731/1353d26b3e581366864bd35e0c02968df79ae56b/jFrame.java/clean/Project/jFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
525,
19174,
1854,
5763,
19449,
12,
73,
11734,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
525,
19174,
1854,
5763,
19449,
12,
73,
11734,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
protected void createButtonsForButtonBar(Composite parent) { // create OK and Cancel buttons by default okButton = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); //do this here because setting the text will set enablement on the ok button text.setFocus(); if (value != null) { text.setText(value); text.selectAll(); }}
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/b55db1f8df03ebade4e59f55f97c8c3917057362/InputDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/InputDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
752,
14388,
1290,
3616,
5190,
12,
9400,
982,
13,
288,
202,
759,
752,
7791,
471,
10347,
9502,
635,
805,
202,
601,
3616,
273,
752,
3616,
12,
2938,
16,
1599,
3529,
2918,
18,
3141,
67,
734,
16,
1599,
3529,
2918,
18,
3141,
67,
13545,
16,
638,
1769,
202,
2640,
3616,
12,
2938,
16,
1599,
3529,
2918,
18,
25268,
67,
734,
16,
1599,
3529,
2918,
18,
25268,
67,
13545,
16,
629,
1769,
202,
759,
2896,
333,
2674,
2724,
3637,
326,
977,
903,
444,
4237,
475,
603,
326,
1529,
3568,
202,
955,
18,
542,
9233,
5621,
202,
430,
261,
1132,
480,
446,
13,
288,
202,
202,
955,
18,
542,
1528,
12,
1132,
1769,
202,
202,
955,
18,
4025,
1595,
5621,
202,
9090,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
752,
14388,
1290,
3616,
5190,
12,
9400,
982,
13,
288,
202,
759,
752,
7791,
471,
10347,
9502,
635,
805,
202,
601,
3616,
273,
752,
3616,
12,
2938,
16,
1599,
3529,
2918,
18,
3141,
67,
734,
16,
1599,
3529,
2918,
18,
3141,
67,
13545,
16,
638,
1769,
202,
2640,
3616,
12,
2938,
16,
1599,
3529,
2918,
18,
25268,
67,
734,
16,
1599,
3529,
2918,
18,
25268,
67,
13545,
16,
629,
1769,
202,
759,
2896,
333,
2674,
2724,
3637,
326,
977,
903,
444,
4237,
475,
603,
326,
1529,
3568,
202,
955,
18,
542,
9233,
5621,
202,
430,
261,
1132,
480,
446,
13,
288,
202,
202,
955,
18,
542,
1528,
12,
1132,
1769,
202,
202,
955,
18,
4025,
1595,
5621,
2
] |
|
public StringDatatypeValidator () throws InvalidDatatypeFacetException{ //System.out.println( "Inside constructor" ); this( null, null, false ); // Native, No Facets defined, Restriction }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/39e16e4b523ddff48664e75623b0617a550e4e95/StringDatatypeValidator.java/clean/src/org/apache/xerces/validators/datatype/StringDatatypeValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
20228,
5126,
1435,
15069,
1941,
20228,
11137,
503,
95,
759,
3163,
18,
659,
18,
8222,
2932,
18619,
12316,
8863,
2211,
12,
2011,
16,
2011,
16,
5743,
1769,
759,
9220,
16,
2279,
6645,
2413,
2178,
16,
11670,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
20228,
5126,
1435,
15069,
1941,
20228,
11137,
503,
95,
759,
3163,
18,
659,
18,
8222,
2932,
18619,
12316,
8863,
2211,
12,
2011,
16,
2011,
16,
5743,
1769,
759,
9220,
16,
2279,
6645,
2413,
2178,
16,
11670,
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
] |
||
Object[] paramValues = new Object[]{ newRoleId, role_name, new Integer( 0 ), new Integer( 0 )};
|
Object[] paramValues = new Object[]{newRoleId, role_name, new Integer( 0 ), new Integer( 0 )};
|
public int sproc_RoleAddNew( final String role_name ) { final SQLTransaction transaction = sqlProcessor.createNewTransaction( Connection.TRANSACTION_SERIALIZABLE, defaultTransactionRetries ); transaction.executeAndCommit( new TransactionContent() { public void execute() throws SQLException { Integer newRoleId = getNextUniquePrimaryKey( "roles", "role_id" ); String sql = "INSERT INTO roles ( role_id , role_name, permissions, admin_role ) VALUES( ?, ?, ?, ? )"; Object[] paramValues = new Object[]{ newRoleId, role_name, new Integer( 0 ), new Integer( 0 )}; transaction.executeUpdate( sql, paramValues ); } } ); return transaction.getRowCount(); }
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/1006917dfe63a5d85d047011540205a2b02407a8/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
272,
9381,
67,
2996,
986,
1908,
12,
727,
514,
2478,
67,
529,
262,
288,
3639,
727,
3063,
3342,
2492,
273,
1847,
5164,
18,
2640,
1908,
3342,
12,
4050,
18,
22364,
67,
2123,
15154,
2782,
16,
805,
3342,
13656,
11272,
3639,
2492,
18,
8837,
1876,
5580,
12,
394,
5947,
1350,
1435,
288,
5411,
1071,
918,
1836,
1435,
1216,
6483,
288,
7734,
2144,
394,
2996,
548,
273,
6927,
6303,
11575,
12,
315,
7774,
3113,
315,
4615,
67,
350,
6,
11272,
7734,
514,
1847,
273,
315,
11356,
12421,
4900,
261,
2478,
67,
350,
269,
2478,
67,
529,
16,
4371,
16,
3981,
67,
4615,
262,
13477,
12,
20033,
20033,
20033,
692,
262,
14432,
7734,
1033,
8526,
579,
1972,
273,
394,
1033,
63,
7073,
2704,
2996,
548,
16,
2478,
67,
529,
16,
394,
2144,
12,
374,
262,
16,
394,
2144,
12,
374,
262,
20451,
7734,
2492,
18,
8837,
1891,
12,
1847,
16,
579,
1972,
11272,
5411,
289,
3639,
289,
11272,
3639,
327,
2492,
18,
588,
26359,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
272,
9381,
67,
2996,
986,
1908,
12,
727,
514,
2478,
67,
529,
262,
288,
3639,
727,
3063,
3342,
2492,
273,
1847,
5164,
18,
2640,
1908,
3342,
12,
4050,
18,
22364,
67,
2123,
15154,
2782,
16,
805,
3342,
13656,
11272,
3639,
2492,
18,
8837,
1876,
5580,
12,
394,
5947,
1350,
1435,
288,
5411,
1071,
918,
1836,
1435,
1216,
6483,
288,
7734,
2144,
394,
2996,
548,
273,
6927,
6303,
11575,
12,
315,
7774,
3113,
315,
4615,
67,
350,
6,
11272,
7734,
514,
1847,
273,
315,
11356,
12421,
4900,
261,
2478,
67,
350,
269,
2478,
67,
529,
16,
4371,
16,
3981,
67,
4615,
262,
13477,
12,
20033,
20033,
20033,
692,
262,
14432,
7734,
1033,
8526,
579,
1972,
273,
394,
2
] |
final IStatus result[] = { new Status(IStatus.OK, WorkbenchPlugin.PI_WORKBENCH, IStatus.OK, "", null) }; Platform.run(new SafeRunnable(WorkbenchMessages.ErrorReadingState) { public void run() throws Exception { FileInputStream input = new FileInputStream(stateFile); BufferedReader reader = new BufferedReader( new InputStreamReader(input, "utf-8")); IMemento memento = XMLMemento.createReadRoot(reader);
|
final IStatus result[] = { new Status(IStatus.OK, WorkbenchPlugin.PI_WORKBENCH, IStatus.OK, "", null) }; Platform.run(new SafeRunnable(WorkbenchMessages.ErrorReadingState) { public void run() throws Exception { FileInputStream input = new FileInputStream(stateFile); BufferedReader reader = new BufferedReader( new InputStreamReader(input, "utf-8")); IMemento memento = XMLMemento.createReadRoot(reader);
|
/* package */IStatus restoreState() { if (!getWorkbenchConfigurer().getSaveAndRestore()) { String msg = WorkbenchMessages.Workbench_restoreDisabled; return new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, IWorkbenchConfigurer.RESTORE_CODE_RESET, msg, null); } // Read the workbench state file. final File stateFile = getWorkbenchStateFile(); // If there is no state file cause one to open. if (stateFile == null || !stateFile.exists()) { String msg = WorkbenchMessages.Workbench_noStateToRestore; return new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, IWorkbenchConfigurer.RESTORE_CODE_RESET, msg, null); } final IStatus result[] = { new Status(IStatus.OK, WorkbenchPlugin.PI_WORKBENCH, IStatus.OK, "", null) }; //$NON-NLS-1$ Platform.run(new SafeRunnable(WorkbenchMessages.ErrorReadingState) { public void run() throws Exception { FileInputStream input = new FileInputStream(stateFile); BufferedReader reader = new BufferedReader( new InputStreamReader(input, "utf-8")); //$NON-NLS-1$ IMemento memento = XMLMemento.createReadRoot(reader); // Validate known version format String version = memento .getString(IWorkbenchConstants.TAG_VERSION); boolean valid = false; for (int i = 0; i < VERSION_STRING.length; i++) { if (VERSION_STRING[i].equals(version)) { valid = true; break; } } if (!valid) { reader.close(); String msg = WorkbenchMessages.Invalid_workbench_state_ve; MessageDialog.openError((Shell) null, WorkbenchMessages.Restoring_Problems, msg); //$NON-NLS-1$ stateFile.delete(); result[0] = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, IWorkbenchConfigurer.RESTORE_CODE_RESET, msg, null); return; } // Validate compatible version format // We no longer support the release 1.0 format if (VERSION_STRING[0].equals(version)) { reader.close(); String msg = WorkbenchMessages.Workbench_incompatibleSavedStateVersion; boolean ignoreSavedState = new MessageDialog( null, WorkbenchMessages.Workbench_incompatibleUIState, null, msg, MessageDialog.WARNING, new String[] { IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL }, 0) .open() == 0; // OK is the default if (ignoreSavedState) { stateFile.delete(); result[0] = new Status( IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, IWorkbenchConfigurer.RESTORE_CODE_RESET, msg, null); } else { result[0] = new Status(IStatus.WARNING, WorkbenchPlugin.PI_WORKBENCH, IWorkbenchConfigurer.RESTORE_CODE_EXIT, msg, null); } return; } // Restore the saved state IStatus restoreResult = restoreState(memento); reader.close(); if (restoreResult.getSeverity() == IStatus.ERROR) { ErrorDialog .openError( null, WorkbenchMessages.Workspace_problemsTitle, WorkbenchMessages.Workbench_problemsRestoringMsg, restoreResult); } } public void handleException(Throwable e) { super.handleException(e); String msg = e.getMessage() == null ? "" : e.getMessage(); //$NON-NLS-1$ result[0] = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, IWorkbenchConfigurer.RESTORE_CODE_RESET, msg, e); stateFile.delete(); } }); // ensure at least one window was opened if (result[0].isOK() && windowManager.getWindows().length == 0) { String msg = WorkbenchMessages.Workbench_noWindowsRestored; result[0] = new Status(IStatus.ERROR, WorkbenchPlugin.PI_WORKBENCH, IWorkbenchConfigurer.RESTORE_CODE_RESET, msg, null); } return result[0]; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9337b828e86179850647141c34d497be28275ed2/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1748,
2181,
1195,
45,
1482,
5217,
1119,
1435,
288,
3639,
309,
16051,
588,
2421,
22144,
809,
11278,
7675,
588,
4755,
1876,
10874,
10756,
288,
5411,
514,
1234,
273,
4147,
22144,
5058,
18,
2421,
22144,
67,
13991,
8853,
31,
2398,
327,
394,
2685,
12,
45,
1482,
18,
9511,
16,
4147,
22144,
3773,
18,
1102,
67,
10566,
38,
1157,
1792,
16,
10792,
467,
2421,
22144,
809,
11278,
18,
12030,
8607,
67,
5572,
67,
26665,
16,
1234,
16,
446,
1769,
3639,
289,
3639,
368,
2720,
326,
1440,
22144,
919,
585,
18,
3639,
727,
1387,
919,
812,
273,
29026,
22144,
1119,
812,
5621,
3639,
368,
971,
1915,
353,
1158,
919,
585,
4620,
1245,
358,
1696,
18,
3639,
309,
261,
2019,
812,
422,
446,
747,
401,
2019,
812,
18,
1808,
10756,
288,
5411,
514,
1234,
273,
4147,
22144,
5058,
18,
2421,
22144,
67,
2135,
1119,
774,
10874,
31,
2398,
327,
394,
2685,
12,
45,
1482,
18,
9511,
16,
4147,
22144,
3773,
18,
1102,
67,
10566,
38,
1157,
1792,
16,
10792,
467,
2421,
22144,
809,
11278,
18,
12030,
8607,
67,
5572,
67,
26665,
16,
1234,
16,
446,
1769,
540,
289,
3639,
727,
467,
1482,
563,
8526,
273,
288,
394,
2685,
12,
45,
1482,
18,
3141,
16,
7734,
4147,
22144,
3773,
18,
1102,
67,
10566,
38,
1157,
1792,
16,
467,
1482,
18,
3141,
16,
23453,
446,
13,
289,
31,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
11810,
18,
2681,
12,
2704,
14060,
20013,
12,
2421,
22144,
5058,
18,
668,
15714,
1119,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1748,
2181,
1195,
45,
1482,
5217,
1119,
1435,
288,
3639,
309,
16051,
588,
2421,
22144,
809,
11278,
7675,
588,
4755,
1876,
10874,
10756,
288,
5411,
514,
1234,
273,
4147,
22144,
5058,
18,
2421,
22144,
67,
13991,
8853,
31,
2398,
327,
394,
2685,
12,
45,
1482,
18,
9511,
16,
4147,
22144,
3773,
18,
1102,
67,
10566,
38,
1157,
1792,
16,
10792,
467,
2421,
22144,
809,
11278,
18,
12030,
8607,
67,
5572,
67,
26665,
16,
1234,
16,
446,
1769,
3639,
289,
3639,
368,
2720,
326,
1440,
22144,
919,
585,
18,
3639,
727,
1387,
919,
812,
273,
29026,
22144,
1119,
812,
5621,
3639,
368,
971,
1915,
353,
1158,
919,
585,
4620,
1245,
358,
1696,
18,
3639,
309,
261,
2019,
812,
422,
2
] |
cssDictionary.put( Style.MARGIN_BOTTOM_PROP,
|
cssDictionary.put( IStyleModel.MARGIN_BOTTOM_PROP,
|
private static void populateCSSDictionary( ) { cssDictionary.put( Style.BACKGROUND_ATTACHMENT_PROP, DesignSchemaConstants.BACKGROUND_ATTACHMENT_ATTRIB ); cssDictionary.put( Style.BACKGROUND_COLOR_PROP, DesignSchemaConstants.BACKGROUND_COLOR_ATTRIB ); cssDictionary.put( Style.BACKGROUND_IMAGE_PROP, DesignSchemaConstants.BACKGROUND_IMAGE_ATTRIB ); cssDictionary.put( Style.BACKGROUND_POSITION_X_PROP, DesignSchemaConstants.BACKGROUND_POSITION_X_ATTRIB ); cssDictionary.put( Style.BACKGROUND_POSITION_Y_PROP, DesignSchemaConstants.BACKGROUND_POSITION_Y_ATTRIB ); cssDictionary.put( Style.BACKGROUND_REPEAT_PROP, DesignSchemaConstants.BACKGROUND_REPEAT_ATTRIB ); cssDictionary.put( Style.BORDER_BOTTOM_COLOR_PROP, DesignSchemaConstants.BORDER_BOTTOM_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_BOTTOM_STYLE_PROP, DesignSchemaConstants.BORDER_BOTTOM_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_BOTTOM_WIDTH_PROP, DesignSchemaConstants.BORDER_BOTTOM_WIDTH_ATTRIB ); cssDictionary.put( Style.BORDER_LEFT_COLOR_PROP, DesignSchemaConstants.BORDER_LEFT_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_LEFT_STYLE_PROP, DesignSchemaConstants.BORDER_LEFT_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_LEFT_WIDTH_PROP, DesignSchemaConstants.BORDER_BOTTOM_WIDTH_ATTRIB ); cssDictionary.put( Style.BORDER_RIGHT_COLOR_PROP, DesignSchemaConstants.BORDER_RIGHT_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_RIGHT_STYLE_PROP, DesignSchemaConstants.BORDER_BOTTOM_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_RIGHT_WIDTH_PROP, DesignSchemaConstants.BORDER_BOTTOM_WIDTH_ATTRIB ); cssDictionary.put( Style.BORDER_TOP_COLOR_PROP, DesignSchemaConstants.BORDER_TOP_COLOR_ATTRIB ); cssDictionary.put( Style.BORDER_TOP_STYLE_PROP, DesignSchemaConstants.BORDER_TOP_STYLE_ATTRIB ); cssDictionary.put( Style.BORDER_TOP_WIDTH_PROP, DesignSchemaConstants.BORDER_TOP_WIDTH_ATTRIB ); cssDictionary.put( Style.CAN_SHRINK_PROP, DesignSchemaConstants.CAN_SHRINK_ATTRIB ); cssDictionary .put( Style.COLOR_PROP, DesignSchemaConstants.COLOR_ATTRIB ); cssDictionary.put( Style.DISPLAY_PROP, DesignSchemaConstants.SECTION_DISPLAY_ATTRIB ); cssDictionary.put( Style.FONT_FAMILY_PROP, DesignSchemaConstants.FONT_FAMILY_ATTRIB ); cssDictionary.put( Style.FONT_SIZE_PROP, DesignSchemaConstants.FONT_SIZE_ATTRIB ); cssDictionary.put( Style.FONT_STYLE_PROP, DesignSchemaConstants.FONT_STYLE_ATTRIB ); cssDictionary.put( Style.FONT_VARIANT_PROP, DesignSchemaConstants.FONT_VARIANT_ATTRIB ); cssDictionary.put( Style.FONT_WEIGHT_PROP, DesignSchemaConstants.FONT_WEIGHT_ATTRIB ); cssDictionary.put( Style.LETTER_SPACING_PROP, DesignSchemaConstants.TEXT_LETTER_SPACING_ATTRIB ); cssDictionary.put( Style.LINE_HEIGHT_PROP, DesignSchemaConstants.TEXT_LINE_HEIGHT_ATTRIB ); cssDictionary.put( Style.MARGIN_BOTTOM_PROP, DesignSchemaConstants.MARGIN_BOTTOM_ATTRIB ); cssDictionary.put( Style.MARGIN_LEFT_PROP, DesignSchemaConstants.MARGIN_LEFT_ATTRIB ); cssDictionary.put( Style.MARGIN_RIGHT_PROP, DesignSchemaConstants.MARGIN_RIGHT_ATTRIB ); cssDictionary.put( Style.MARGIN_TOP_PROP, DesignSchemaConstants.MARGIN_TOP_ATTRIB ); cssDictionary.put( Style.ORPHANS_PROP, DesignSchemaConstants.TEXT_ORPHANS_ATTRIB ); cssDictionary.put( Style.PADDING_BOTTOM_PROP, DesignSchemaConstants.PADDING_BOTTOM_ATTRIB ); cssDictionary.put( Style.PADDING_LEFT_PROP, DesignSchemaConstants.PADDING_LEFT_ATTRIB ); cssDictionary.put( Style.PADDING_RIGHT_PROP, DesignSchemaConstants.PADDING_RIGHT_ATTRIB ); cssDictionary.put( Style.PADDING_TOP_PROP, DesignSchemaConstants.PADDING_TOP_ATTRIB ); cssDictionary.put( Style.PAGE_BREAK_AFTER_PROP, DesignSchemaConstants.SECTION_PAGE_BREAK_AFTER_ATTRIB ); cssDictionary.put( Style.PAGE_BREAK_BEFORE_PROP, DesignSchemaConstants.SECTION_PAGE_BREAK_BEFORE_ATTRIB ); cssDictionary.put( Style.PAGE_BREAK_INSIDE_PROP, DesignSchemaConstants.SECTION_PAGE_BREAK_INSIDE_ATTRIB ); cssDictionary.put( Style.SHOW_IF_BLANK_PROP, DesignSchemaConstants.SECTION_SHOW_LF_BLANK_ATTRIB ); cssDictionary.put( Style.TEXT_ALIGN_PROP, DesignSchemaConstants.TEXT_ALIGN_ATTRIB ); cssDictionary.put( Style.TEXT_INDENT_PROP, DesignSchemaConstants.TEXT_INDENT_ATTRIB ); cssDictionary.put( Style.TEXT_LINE_THROUGH_PROP, DesignSchemaConstants.TEXT_LINE_THROUGH_ATTRIB ); cssDictionary.put( Style.TEXT_OVERLINE_PROP, DesignSchemaConstants.TEXT_OVERLINE_ATTRIB ); cssDictionary.put( Style.TEXT_TRANSFORM_PROP, DesignSchemaConstants.TEXT_TRANSFORM_ATTRIB ); cssDictionary.put( Style.TEXT_UNDERLINE_PROP, DesignSchemaConstants.TEXT_UNDERLINE_ATTRIB ); cssDictionary.put( Style.VERTICAL_ALIGN_PROP, DesignSchemaConstants.TEXT_VERTICAL_ALIGN_ATTRIB ); cssDictionary.put( Style.WHITE_SPACE_PROP, DesignSchemaConstants.TEXT_WHITE_SPACE_ATTRIB ); cssDictionary.put( Style.WIDOWS_PROP, DesignSchemaConstants.TEXT_WIDOWS_ATTRIB ); cssDictionary.put( Style.WORD_SPACING_PROP, DesignSchemaConstants.TEXT_WORD_SPACING_ATTRIB ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d802c33711e0d111551ae23575895cd060f085b6/Style.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/elements/Style.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
6490,
10276,
10905,
12,
262,
202,
95,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
10989,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
10989,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
13603,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
13603,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
15258,
67,
60,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
15258,
67,
60,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
15258,
67,
61,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
15258,
67,
61,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
862,
31804,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
862,
31804,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
38,
7954,
67,
28891,
67,
10989,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
38,
7954,
67,
28891,
67,
10989,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
38,
7954,
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,
1152,
760,
918,
6490,
10276,
10905,
12,
262,
202,
95,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
10989,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
10989,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
13603,
67,
15811,
16,
9506,
202,
15478,
3078,
2918,
18,
8720,
20166,
67,
13603,
67,
26741,
11272,
202,
202,
5212,
10905,
18,
458,
12,
9767,
18,
8720,
20166,
67,
15258,
67,
2
] |
if (PROXY) { hostConf.setProxy(PROXY_HOST, PROXY_PORT);
|
if (useProxy) { hostConf.setProxy(proxyHost, proxyPort);
|
private static void configureClient() { // get a client isntance -- we just need one. client = new HttpClient(connectionManager); // Set up an HTTPS socket factory that accepts self-signed certs. Protocol dummyhttps = new Protocol("https", new DummySSLProtocolSocketFactory(), 443); Protocol.registerProtocol("https", dummyhttps); HttpConnectionManagerParams params = connectionManager.getParams(); params.setConnectionTimeout(TIMEOUT); params.setSoTimeout(TIMEOUT); params.setSendBufferSize(BUFFER_SIZE); params.setReceiveBufferSize(BUFFER_SIZE); params.setMaxTotalConnections(MAX_THREADS_TOTAL); if (MAX_THREADS_TOTAL > MAX_THREADS_PER_HOST) { params.setDefaultMaxConnectionsPerHost(MAX_THREADS_PER_HOST); } else { params.setDefaultMaxConnectionsPerHost(MAX_THREADS_TOTAL); } HostConfiguration hostConf = client.getHostConfiguration(); ArrayList headers = new ArrayList(); // prefer English headers.add(new Header("Accept-Language", "en-us,en-gb,en;q=0.7,*;q=0.3")); // prefer UTF-8 headers.add(new Header("Accept-Charset", "utf-8,ISO-8859-1;q=0.7,*;q=0.7")); // prefer understandable formats headers.add(new Header("Accept", "text/html,application/xml;q=0.9,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5")); hostConf.getParams().setParameter("http.default-headers", headers); if (PROXY) { hostConf.setProxy(PROXY_HOST, PROXY_PORT); } if (NTLM_USERNAME.length() > 0) { Credentials ntCreds = new NTCredentials(NTLM_USERNAME, NTLM_PASSWORD, NTLM_HOST, NTLM_DOMAIN); client.getState().setCredentials(new AuthScope(NTLM_HOST, AuthScope.ANY_PORT), ntCreds); LOG.info("Added NTLM credentials for " + NTLM_USERNAME); } LOG.info("Configured Client"); }
|
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/329ff64e9d7295aff108f85e9a8103f5e5f8f398/Http.java/buggy/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/Http.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
5068,
1227,
1435,
288,
565,
368,
336,
279,
1004,
353,
496,
1359,
1493,
732,
2537,
1608,
1245,
18,
565,
1004,
273,
394,
16308,
12,
4071,
1318,
1769,
565,
368,
1000,
731,
392,
18904,
2987,
3272,
716,
8104,
365,
17,
5679,
13870,
18,
565,
4547,
9609,
4528,
273,
394,
4547,
2932,
4528,
3113,
394,
28622,
6745,
5752,
4534,
1733,
9334,
23796,
1769,
565,
4547,
18,
4861,
5752,
2932,
4528,
3113,
9609,
4528,
1769,
3639,
2541,
1952,
1318,
1370,
859,
273,
1459,
1318,
18,
588,
1370,
5621,
565,
859,
18,
542,
1952,
2694,
12,
9503,
1769,
565,
859,
18,
542,
10225,
2694,
12,
9503,
1769,
565,
859,
18,
542,
3826,
15384,
12,
11302,
67,
4574,
1769,
565,
859,
18,
542,
11323,
15384,
12,
11302,
67,
4574,
1769,
565,
859,
18,
542,
2747,
5269,
9314,
12,
6694,
67,
21730,
55,
67,
28624,
1769,
565,
309,
261,
6694,
67,
21730,
55,
67,
28624,
405,
4552,
67,
21730,
55,
67,
3194,
67,
8908,
13,
288,
1377,
859,
18,
542,
1868,
2747,
9314,
2173,
2594,
12,
6694,
67,
21730,
55,
67,
3194,
67,
8908,
1769,
565,
289,
469,
288,
1377,
859,
18,
542,
1868,
2747,
9314,
2173,
2594,
12,
6694,
67,
21730,
55,
67,
28624,
1769,
565,
289,
565,
4893,
1750,
1479,
3976,
273,
1004,
18,
588,
2594,
1750,
5621,
565,
2407,
1607,
273,
394,
2407,
5621,
565,
368,
13256,
24151,
565,
1607,
18,
1289,
12,
2704,
4304,
2932,
5933,
17,
3779,
3113,
315,
275,
17,
407,
16,
275,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
5068,
1227,
1435,
288,
565,
368,
336,
279,
1004,
353,
496,
1359,
1493,
732,
2537,
1608,
1245,
18,
565,
1004,
273,
394,
16308,
12,
4071,
1318,
1769,
565,
368,
1000,
731,
392,
18904,
2987,
3272,
716,
8104,
365,
17,
5679,
13870,
18,
565,
4547,
9609,
4528,
273,
394,
4547,
2932,
4528,
3113,
394,
28622,
6745,
5752,
4534,
1733,
9334,
23796,
1769,
565,
4547,
18,
4861,
5752,
2932,
4528,
3113,
9609,
4528,
1769,
3639,
2541,
1952,
1318,
1370,
859,
273,
1459,
1318,
18,
588,
1370,
5621,
565,
859,
18,
542,
1952,
2694,
12,
9503,
1769,
565,
859,
18,
542,
10225,
2694,
12,
9503,
1769,
565,
859,
18,
542,
3826,
15384,
12,
11302,
67,
4574,
1769,
565,
2
] |
switch (seen) { case ASTORE_1: case ASTORE_2: case ASTORE_3: case ASTORE: thisOnTopOfStack = doubleThisOnTopOfStack; return; case ALOAD_0: thisOnTopOfStack = true; return; case DUP: doubleThisOnTopOfStack = thisOnTopOfStack; return; case MONITOREXIT: if (thisLockingOnly && !thisLocked) break; updateStats(fieldsWritten, WRITTEN_LOCKED); updateStats(fieldsRead, READ_LOCKED); state = 2; fieldsWritten.clear(); fieldsRead.clear(); break; case MONITORENTER: thisLocked = thisOnTopOfStack; if (thisLockingOnly && !thisLocked) break; updateStats(fieldsWritten, WRITTEN_UNLOCKED); updateStats(fieldsRead, READ_UNLOCKED); state = 1; fieldsWritten.clear(); fieldsRead.clear(); break; case PUTFIELD: { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); writtenOutsideOfConstructor.add(f); if (!getClassName().equals(getClassConstantOperand())) break; fieldsWritten.add(f);
|
switch (seen) { case ASTORE_1: case ASTORE_2: case ASTORE_3: case ASTORE: thisOnTopOfStack = doubleThisOnTopOfStack; return; case ALOAD_0: thisOnTopOfStack = true; return; case DUP: doubleThisOnTopOfStack = thisOnTopOfStack; return; case MONITOREXIT: if (thisLockingOnly && !thisLocked) break; updateStats(fieldsWritten, WRITTEN_LOCKED); updateStats(fieldsRead, READ_LOCKED); state = 2; fieldsWritten.clear(); fieldsRead.clear(); break; case MONITORENTER: thisLocked = thisOnTopOfStack; if (thisLockingOnly && !thisLocked) break; updateStats(fieldsWritten, WRITTEN_UNLOCKED); updateStats(fieldsRead, READ_UNLOCKED); state = 1; fieldsWritten.clear(); fieldsRead.clear(); break; case PUTFIELD: { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); writtenOutsideOfConstructor.add(f); if (!getClassName().equals(getClassConstantOperand())) break; fieldsWritten.add(f); } break; case GETFIELD: int next = codeBytes[getPC() + 3] & 0xff; if (!thisOnTopOfStack) break; if (next != IFNULL && next != IFNONNULL) { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); fieldsRead.add(f); /* System.out.println("After read of " + classConstant + "." + nameConstant + ", next PC is " + (PC+3) ); System.out.println("After read of " + classConstant + "." + nameConstant + ", next opcode is " + OPCODE_NAMES[next] + " (" + next + ")" ); */ } break;
|
public void sawOpcode(int seen) { // state: 0 - unlocked // state: 1 - locked // state: 2 - saw unlocked, but might still be locked switch (seen) { case ASTORE_1: case ASTORE_2: case ASTORE_3: case ASTORE: thisOnTopOfStack = doubleThisOnTopOfStack; return; case ALOAD_0: thisOnTopOfStack = true; return; case DUP: doubleThisOnTopOfStack = thisOnTopOfStack; return; case MONITOREXIT: if (thisLockingOnly && !thisLocked) break; updateStats(fieldsWritten, WRITTEN_LOCKED); updateStats(fieldsRead, READ_LOCKED); state = 2; // System.out.println("monitorexit " + thisLocked); fieldsWritten.clear(); fieldsRead.clear(); break; case MONITORENTER: thisLocked = thisOnTopOfStack; if (thisLockingOnly && !thisLocked) break; updateStats(fieldsWritten, WRITTEN_UNLOCKED); updateStats(fieldsRead, READ_UNLOCKED); // System.out.println("monitorenter " + thisLocked); state = 1; fieldsWritten.clear(); fieldsRead.clear(); break; case PUTFIELD: { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); writtenOutsideOfConstructor.add(f); if (!getClassName().equals(getClassConstantOperand())) break; // System.out.println("putfield " + f + ", state = " + state); fieldsWritten.add(f); } break; case GETFIELD: int next = codeBytes[getPC()+3] & 0xff; if (!thisOnTopOfStack) break; if (next != IFNULL && next != IFNONNULL) { FieldAnnotation f = FieldAnnotation.fromReferencedField(this); // System.out.println("getfield " + f); fieldsRead.add(f); /* System.out.println("After read of " + classConstant + "." + nameConstant + ", next PC is " + (PC+3) ); System.out.println("After read of " + classConstant + "." + nameConstant + ", next opcode is " + OPCODE_NAMES[next] + " (" + next + ")" ); */ } // OPCODE_NAMES break; } thisOnTopOfStack = false; doubleThisOnTopOfStack = false; }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/LockedFields.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/LockedFields.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19821,
22808,
12,
474,
5881,
13,
288,
202,
759,
919,
30,
374,
300,
25966,
202,
759,
919,
30,
404,
300,
8586,
202,
759,
919,
30,
576,
300,
19821,
25966,
16,
1496,
4825,
4859,
506,
8586,
202,
9610,
261,
15156,
13,
288,
202,
3593,
9183,
8607,
67,
21,
30,
202,
3593,
9183,
8607,
67,
22,
30,
202,
3593,
9183,
8607,
67,
23,
30,
202,
3593,
9183,
8607,
30,
202,
202,
2211,
1398,
3401,
951,
2624,
273,
1645,
2503,
1398,
3401,
951,
2624,
31,
202,
202,
2463,
31,
202,
3593,
432,
7783,
67,
20,
30,
202,
202,
2211,
1398,
3401,
951,
2624,
273,
638,
31,
202,
202,
2463,
31,
202,
3593,
24559,
30,
202,
202,
9056,
2503,
1398,
3401,
951,
2624,
273,
333,
1398,
3401,
951,
2624,
31,
202,
202,
2463,
31,
202,
3593,
30215,
1285,
8607,
60,
1285,
30,
202,
202,
430,
261,
2211,
2531,
310,
3386,
597,
401,
2211,
8966,
13,
898,
31,
202,
202,
2725,
4195,
12,
2821,
12643,
16,
12984,
30972,
1157,
67,
6589,
2056,
1769,
202,
202,
2725,
4195,
12,
2821,
1994,
16,
10746,
67,
6589,
2056,
1769,
202,
202,
2019,
273,
576,
31,
202,
202,
759,
2332,
18,
659,
18,
8222,
2932,
2586,
305,
479,
92,
305,
202,
6,
397,
333,
8966,
1769,
202,
202,
2821,
12643,
18,
8507,
5621,
202,
202,
2821,
1994,
18,
8507,
5621,
202,
202,
8820,
31,
202,
3593,
30215,
1285,
51,
7480,
654,
30,
202,
202,
2211,
8966,
273,
333,
1398,
3401,
951,
2624,
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,
19821,
22808,
12,
474,
5881,
13,
288,
202,
759,
919,
30,
374,
300,
25966,
202,
759,
919,
30,
404,
300,
8586,
202,
759,
919,
30,
576,
300,
19821,
25966,
16,
1496,
4825,
4859,
506,
8586,
202,
9610,
261,
15156,
13,
288,
202,
3593,
9183,
8607,
67,
21,
30,
202,
3593,
9183,
8607,
67,
22,
30,
202,
3593,
9183,
8607,
67,
23,
30,
202,
3593,
9183,
8607,
30,
202,
202,
2211,
1398,
3401,
951,
2624,
273,
1645,
2503,
1398,
3401,
951,
2624,
31,
202,
202,
2463,
31,
202,
3593,
432,
7783,
67,
20,
30,
202,
202,
2211,
1398,
3401,
951,
2624,
273,
638,
31,
202,
202,
2463,
31,
202,
3593,
24559,
30,
202,
202,
9056,
2503,
1398,
2
] |
if( req.getParameter("CANCEL") != null || req.getParameter("CANCEL.x") != null ) { res.sendRedirect(MetaInfo.getServletPath(req) + "ConfDiscView") ; return ; }
|
if(addType.equalsIgnoreCase("REPLY") && ( req.getParameter("ADD") != null || req.getParameter("ADD.x") != null ) ) {
|
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets validate the session, e.g has the user logged in to Janus? if (super.checkSession(req,res) == false) return ; // Lets get all parameters for this servlet Properties params = this.getParameters(req) ; if (super.checkParameters(req, res, params) == false) { String header = SERVLET_NAME + " servlet. " ; String msg = params.toString() ; ConfError err = new ConfError(req,res,header,1) ; return ; } // Lets get the user object imcode.server.User user = super.getUserObj(req,res) ; if(user == null) return ; if ( !isUserAuthorized( req, res, user ) ) { return; } // Lets get the userinformation Properties userParams = getUserParameters(user) ; // Lets detect which addtype we have String addType = "" ; addType = req.getParameter("ADDTYPE") ; // log("ADD.x: " + req.getParameter("ADD.x")); // log("CANCEL.x: " + req.getParameter("CANCEL.x")) ; // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; String confPoolServer = Utility.getDomainPref("conference_server",host) ; int metaId = Integer.parseInt( params.getProperty("META_ID") ); if ( userHasRightToEdit( imcServer, metaId, user ) ) { // ********* CANCEL ******** if( req.getParameter("CANCEL") != null || req.getParameter("CANCEL.x") != null ) { // if(req.getParameter("CANCEL") != null ) { // Lets redirect to the servlet which holds in us. res.sendRedirect(MetaInfo.getServletPath(req) + "ConfDiscView") ; return ; } // ********* ADD DISCUSSION ******** if(addType.equalsIgnoreCase("DISCUSSION") && ( req.getParameter("ADD") != null || req.getParameter("ADD.x") != null ) ) { // if(req.getParameter("ADD") != null && addType.equalsIgnoreCase("DISCUSSION")) { //log("Nu r vi i AddDiscussion") ; // Lets add a new discussion to the database String aForumId = params.getProperty("FORUM_ID") ; // String userId = userParams.getProperty("USER_ID") ; RmiConf rmi = new RmiConf(user) ; String userId = "" ; HttpSession session = req.getSession(false) ; if (session != null) { userId = (String) session.getAttribute("Conference.user_id") ; } // log("USERPARAMS :" + userParams.toString()) ; // Before Adding something, we need to see if the user exists in DB // this.addUserToDB(rmi, userParams, params ) ; // Lets get the users reply level String levelQ = "A_ConfUsersGetUserLevel "+ params.getProperty("META_ID") ; levelQ += ", " + userId ; String level = rmi.execSqlProcedureStr(confPoolServer, levelQ) ; if(level.equalsIgnoreCase("-1")) { log("An error occured in reading the users level") ; level = "0" ; } // Lets verify the fields the user have had to write freetext in // to verify that the sql questions wont go mad. //log("HEADER BEFORE: " + params.getProperty("ADD_HEADER")) ; //log("TEXT BEFORE: " + params.getProperty("ADD_TEXT")) ; String addHeader = super.verifySqlText(params.getProperty("ADD_HEADER")) ; String addText = super.verifySqlText(params.getProperty("ADD_TEXT")) ; //log("TEXT AFTER: " + addText) ; // Lets check the data size if(addText.length() > 32000) { String header = SERVLET_NAME + " servlet. " ; String msg = params.toString() ; ConfError err = new ConfError(req,res,header,74) ; return ; } //log("HEADER AFTER: " + addHeader) ; //log("TEXT AFTER: " + addText) ; // Ok, Lets add the discussion to DB String sqlQuest = "A_AddNewDisc " + aForumId + ", " + userId + ", " ; sqlQuest += sqlPDelim(addHeader) ; sqlQuest += sqlP(addText) + ", " + level ; //log("AddNewDiscSQL: " + sqlQuest) ; rmi.execSqlUpdateProcedure(confPoolServer, sqlQuest) ; // Lets add the new discussion id to the session object // Ok, Lets get the last discussion in that forum // HttpSession session = req.getSession(false) ; if (session != null) { String latestDiscId = rmi.execSqlProcedureStr(confPoolServer, "A_GetLastDiscussionId " + params.getProperty("META_ID") + ", " + aForumId) ; session.setAttribute("Conference.disc_id", latestDiscId) ; // userId = (String) session.getAttribute("Conference.user_id") ; } // Lets update the users logindate. As he is writing, then we know that // he is in the system now, so lets update hist lastlogindate // String sqlQuest = "ConfUsersUpdateLoginDate " + metaId +", "+ loginUserId +", '" ; // sqlQuest += firstName + "', '" + lastName + "'" ; // Lets redirect to the servlet which holds in us. res.sendRedirect(MetaInfo.getServletPath(req) + "ConfDiscView") ; return ; } // ********* ADD REPLY ******** // This is a workaround to fix the possibility to use gifs OR submit buttons if(addType.equalsIgnoreCase("REPLY") && ( req.getParameter("ADD") != null || req.getParameter("ADD.x") != null ) ) { // if(req.getParameter("ADD") != null && addType.equalsIgnoreCase("REPLY")) { //log("Nu r vi i AddReply") ; // Before Adding something, we need to see if the user exists in DB RmiConf rmi = new RmiConf(user) ; // this.addUserToDB(rmi, userParams, params ) ; // Lets add a new Reply to the database //String userId = userParams.getProperty("USER_ID") ; String discId = params.getProperty("DISC_ID") ; String userId = "" ; HttpSession session = req.getSession(false) ; if (session != null) { userId = (String) session.getAttribute("Conference.user_id") ; } // Lets get the users reply level String levelQ = "A_ConfUsersGetUserLevel "+ params.getProperty("META_ID") ; levelQ += ", " + userId ; String level = rmi.execSqlProcedureStr(confPoolServer, levelQ) ; if(level.equalsIgnoreCase("-1")) { log("An error occured in reading the users level") ; level = "0" ; } // Lets verify the textfields String addHeader = super.verifySqlText(params.getProperty("ADD_HEADER")) ; String addText = super.verifySqlText(params.getProperty("ADD_TEXT")) ; // Lets check the data size if(addText.length() > 32000) { String header = SERVLET_NAME + " servlet. " ; String msg = params.toString() ; ConfError err = new ConfError(req,res,header,74) ; return ; } // Ok, Lets add the reply String sqlQuest = "A_AddReply " + userId + ", " + discId + ", " ; sqlQuest += sqlPDelim(addHeader); sqlQuest += sqlP(addText) + ", " + level ; // log("AddReply Sql: " + sqlQuest) ; rmi.execSqlUpdateProcedure(confPoolServer, sqlQuest) ; // Lets redirect to the servlet which holds in us. res.sendRedirect(MetaInfo.getServletPath(req) + "ConfDiscView") ; // log("AddReply r klar") ; return ; } } else { String header = SERVLET_NAME + " servlet. " ; ConfError err = new ConfError( req, res ,header , 100 ) ; return ; } } // DoPost
|
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ConfAdd.java/buggy/servlets/conf/ConfAdd.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
288,
202,
202,
759,
511,
2413,
1954,
326,
1339,
16,
425,
18,
75,
711,
326,
729,
7545,
316,
358,
23214,
407,
35,
202,
202,
430,
261,
9565,
18,
1893,
2157,
12,
3658,
16,
455,
13,
422,
629,
13,
202,
2463,
274,
202,
202,
759,
511,
2413,
336,
777,
1472,
364,
333,
8100,
202,
202,
2297,
859,
273,
333,
18,
588,
2402,
12,
3658,
13,
274,
202,
202,
430,
261,
9565,
18,
1893,
2402,
12,
3658,
16,
400,
16,
859,
13,
422,
629,
13,
288,
1082,
202,
780,
1446,
273,
7758,
58,
15146,
67,
1985,
397,
315,
8100,
18,
315,
274,
1082,
202,
780,
1234,
273,
859,
18,
10492,
1435,
274,
1082,
202,
3976,
668,
393,
273,
394,
9675,
668,
12,
3658,
16,
455,
16,
3374,
16,
21,
13,
274,
1082,
202,
2463,
274,
202,
202,
97,
202,
202,
759,
511,
2413,
336,
326,
729,
733,
202,
202,
381,
710,
18,
3567,
18,
1299,
729,
273,
2240,
18,
588,
1299,
2675,
12,
3658,
16,
455,
13,
274,
202,
202,
430,
12,
1355,
422,
446,
13,
327,
274,
202,
202,
430,
261,
401,
291,
1299,
15341,
12,
1111,
16,
400,
16,
729,
262,
262,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
511,
2413,
336,
326,
729,
13117,
202,
202,
2297,
729,
1370,
273,
4735,
2402,
12,
1355,
13,
274,
202,
202,
759,
511,
2413,
5966,
1492,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
288,
202,
202,
759,
511,
2413,
1954,
326,
1339,
16,
425,
18,
75,
711,
326,
729,
7545,
316,
358,
23214,
407,
35,
202,
202,
430,
261,
9565,
18,
1893,
2157,
12,
3658,
16,
455,
13,
422,
629,
13,
202,
2463,
274,
202,
202,
759,
511,
2413,
336,
777,
1472,
364,
333,
8100,
202,
202,
2297,
859,
273,
333,
18,
588,
2402,
12,
3658,
13,
274,
202,
202,
430,
261,
9565,
18,
1893,
2402,
12,
3658,
16,
400,
16,
859,
13,
422,
629,
13,
288,
1082,
202,
780,
1446,
273,
7758,
58,
15146,
67,
1985,
397,
315,
8100,
18,
315,
274,
2
] |
}
|
public void setSearchString(String searchString, int searchIn) { if(searchString == null) { find.setText(null); searchCurrentBuffer.setSelected(true); } else { if(searchString.indexOf('\n') == -1) { find.setText(searchString); find.selectAll(); searchCurrentBuffer.setSelected(true); } else if(searchIn == CURRENT_BUFFER) { searchSelection.setSelected(true); hyperSearch.setSelected(true); } } if(searchIn == CURRENT_BUFFER) { if(!searchSelection.isSelected()) { // might be already selected, see above. searchCurrentBuffer.setSelected(true); /* this property is only loaded and saved if * the 'current buffer' file set is selected. * otherwise, it defaults to on. */ hyperSearch.setSelected(jEdit.getBooleanProperty( "search.hypersearch.toggle")); } } else if(searchIn == ALL_BUFFERS) { searchAllBuffers.setSelected(true); hyperSearch.setSelected(true); } else if(searchIn == DIRECTORY) { hyperSearch.setSelected(true); searchDirectory.setSelected(true); } updateEnabled(); } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/68878229d59ad2d85e60c62afcafdd6dce7b1a7e/SearchDialog.java/clean/org/gjt/sp/jedit/search/SearchDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
2979,
780,
12,
780,
1623,
780,
16,
509,
1623,
382,
13,
202,
95,
202,
202,
430,
12,
3072,
780,
422,
446,
13,
202,
202,
95,
1082,
202,
4720,
18,
542,
1528,
12,
2011,
1769,
1082,
202,
3072,
3935,
1892,
18,
542,
7416,
12,
3767,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
430,
12,
3072,
780,
18,
31806,
2668,
64,
82,
6134,
422,
300,
21,
13,
1082,
202,
95,
9506,
202,
4720,
18,
542,
1528,
12,
3072,
780,
1769,
9506,
202,
4720,
18,
4025,
1595,
5621,
9506,
202,
3072,
3935,
1892,
18,
542,
7416,
12,
3767,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
12,
3072,
382,
422,
18484,
67,
11302,
13,
1082,
202,
95,
9506,
202,
3072,
6233,
18,
542,
7416,
12,
3767,
1769,
9506,
202,
17203,
2979,
18,
542,
7416,
12,
3767,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
430,
12,
3072,
382,
422,
18484,
67,
11302,
13,
202,
202,
95,
1082,
202,
430,
12,
5,
3072,
6233,
18,
291,
7416,
10756,
1082,
202,
95,
9506,
202,
759,
4825,
506,
1818,
3170,
16,
2621,
5721,
18,
9506,
202,
3072,
3935,
1892,
18,
542,
7416,
12,
3767,
1769,
9506,
202,
20308,
333,
1272,
353,
1338,
4203,
471,
5198,
309,
6862,
380,
326,
296,
2972,
1613,
11,
585,
444,
353,
3170,
18,
6862,
380,
3541,
16,
518,
3467,
358,
603,
18,
1195,
9506,
202,
17203,
2979,
18,
542,
7416,
12,
78,
4666,
18,
588,
5507,
1396,
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,
444,
2979,
780,
12,
780,
1623,
780,
16,
509,
1623,
382,
13,
202,
95,
202,
202,
430,
12,
3072,
780,
422,
446,
13,
202,
202,
95,
1082,
202,
4720,
18,
542,
1528,
12,
2011,
1769,
1082,
202,
3072,
3935,
1892,
18,
542,
7416,
12,
3767,
1769,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
430,
12,
3072,
780,
18,
31806,
2668,
64,
82,
6134,
422,
300,
21,
13,
1082,
202,
95,
9506,
202,
4720,
18,
542,
1528,
12,
3072,
780,
1769,
9506,
202,
4720,
18,
4025,
1595,
5621,
9506,
202,
3072,
3935,
1892,
18,
542,
7416,
12,
3767,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
12,
3072,
382,
422,
18484,
67,
2
] |
|
new Object[] { adapter.getLabel(parent)}); Job job = new Job(jobName) { public IStatus run(IProgressMonitor monitor) { adapter.fetchDeferredChildren(parent, collector, monitor); return Status.OK_STATUS; }
|
new Object[] { adapter.getLabel(parent)}); Job job = new Job(jobName) { public IStatus run(IProgressMonitor monitor) { adapter.fetchDeferredChildren(parent, collector, monitor); return Status.OK_STATUS; }
|
private void startFetchingDeferredChildren( final Object parent, final IDeferredWorkbenchAdapter adapter, final PendingUpdateAdapter placeholder) { final IElementCollector collector = new IElementCollector() { public void add(Object element, IProgressMonitor monitor) { add(new Object[] { element }, monitor); } public void add(Object[] elements, IProgressMonitor monitor) { addChildren(parent, elements, placeholder, monitor); } /* (non-Javadoc) * @see org.eclipse.jface.progress.IElementCollector#done() */ public void done() { runClearPlaceholderJob(placeholder); } }; // Cancel any jobs currently fetching children for the same parent instance. Platform.getJobManager().cancel(parent); String jobName = ProgressMessages.format("DeferredTreeContentManager.FetchingName", //$NON-NLS-1$ new Object[] { adapter.getLabel(parent)}); Job job = new Job(jobName) { public IStatus run(IProgressMonitor monitor) { adapter.fetchDeferredChildren(parent, collector, monitor); return Status.OK_STATUS; } /** * Check if the object is equal to parent or one * of parents children so that the job can be cancelled * if the parent is refreshed. */ public boolean belongsTo(Object family) { return isParent(family, parent); } /** * Check if the parent of element is equal to the * parent used in this job. * @return boolean */ private boolean isParent(Object family, Object child) { if (family.equals(child)) return true; IWorkbenchAdapter workbenchAdapter = getWorkbenchAdapter(child); if (workbenchAdapter == null) return false; Object elementParent = workbenchAdapter.getParent(child); if (elementParent == null) return false; return isParent(family, elementParent); } /** * Get the workbench adapter for the element. */ private IWorkbenchAdapter getWorkbenchAdapter(Object element) { if (element instanceof IWorkbenchAdapter) return (IWorkbenchAdapter) element; if (!(element instanceof IAdaptable)) return null; Object workbenchAdapter = ((IAdaptable) element).getAdapter(IWorkbenchAdapter.class); if (workbenchAdapter == null) return null; else return (IWorkbenchAdapter) workbenchAdapter; } }; job.addJobChangeListener(new JobChangeAdapter() { /* (non-Javadoc) * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#done(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void done(IJobChangeEvent event) { runClearPlaceholderJob(placeholder); } }); job.setRule(adapter.getRule(parent)); job.schedule(); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/09a1632e2d88d9079014c811ff3f92f883d50b30/DeferredTreeContentManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
787,
30806,
16886,
4212,
12,
202,
202,
6385,
1033,
982,
16,
202,
202,
6385,
467,
16886,
2421,
22144,
4216,
4516,
16,
202,
202,
6385,
16034,
1891,
4216,
6695,
13,
288,
202,
202,
6385,
467,
1046,
7134,
8543,
273,
394,
467,
1046,
7134,
1435,
288,
1082,
202,
482,
918,
527,
12,
921,
930,
16,
467,
5491,
7187,
6438,
13,
288,
9506,
202,
1289,
12,
2704,
1033,
8526,
288,
930,
19879,
6438,
1769,
1082,
202,
97,
1082,
202,
482,
918,
527,
12,
921,
8526,
2186,
16,
467,
5491,
7187,
6438,
13,
288,
9506,
202,
1289,
4212,
12,
2938,
16,
2186,
16,
6695,
16,
6438,
1769,
1082,
202,
97,
1082,
202,
20308,
261,
5836,
17,
24060,
13,
9506,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
8298,
18,
45,
1046,
7134,
7,
8734,
1435,
9506,
1195,
1082,
202,
482,
918,
2731,
1435,
288,
9506,
202,
2681,
9094,
14038,
2278,
12,
12988,
1769,
1082,
202,
97,
202,
202,
20451,
202,
202,
759,
10347,
1281,
6550,
4551,
16191,
2325,
364,
326,
1967,
982,
791,
18,
202,
202,
8201,
18,
588,
2278,
1318,
7675,
10996,
12,
2938,
1769,
1082,
202,
780,
17833,
273,
10980,
5058,
18,
2139,
2932,
16886,
2471,
1350,
1318,
18,
30806,
461,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
202,
2704,
1033,
8526,
288,
4516,
18,
588,
2224,
12,
2938,
16869,
1769,
202,
202,
2278,
1719,
273,
394,
3956,
12,
4688,
461,
13,
288,
1082,
202,
482,
467,
1482,
1086,
12,
45,
5491,
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,
787,
30806,
16886,
4212,
12,
202,
202,
6385,
1033,
982,
16,
202,
202,
6385,
467,
16886,
2421,
22144,
4216,
4516,
16,
202,
202,
6385,
16034,
1891,
4216,
6695,
13,
288,
202,
202,
6385,
467,
1046,
7134,
8543,
273,
394,
467,
1046,
7134,
1435,
288,
1082,
202,
482,
918,
527,
12,
921,
930,
16,
467,
5491,
7187,
6438,
13,
288,
9506,
202,
1289,
12,
2704,
1033,
8526,
288,
930,
19879,
6438,
1769,
1082,
202,
97,
1082,
202,
482,
918,
527,
12,
921,
8526,
2186,
16,
467,
5491,
7187,
6438,
13,
288,
9506,
202,
1289,
4212,
12,
2938,
16,
2186,
16,
6695,
16,
6438,
1769,
1082,
202,
97,
1082,
202,
20308,
261,
5836,
17,
24060,
13,
9506,
2
] |
lineIndex = Integer.parseInt(fileAndLine.substring(colonIndex + 1)); exception = new PdeException(exception.getMessage(), codeIndex, lineIndex - 1, -1); foundMessageSource = true;
|
if (codeIndex != -1) { lineIndex = Integer.parseInt(fileAndLine.substring(colonIndex + 1)); exception = new PdeException(exception.getMessage(), codeIndex, lineIndex - 1, -1); foundMessageSource = true; }
|
public void message(String s) { //System.out.println("M" + s.length() + ":" + s); // this is PApplet sending a message (via System.out.println) // that signals that the applet has been quit. if (s.indexOf(PApplet.EXTERNAL_QUIT) == 0) { editor.doClose(); return; } // this is the PApplet sending us a message that the applet // is being moved to a new window location if (s.indexOf(PApplet.EXTERNAL_MOVE) == 0) { String nums = s.substring(s.indexOf(' ') + 1); int space = nums.indexOf(' '); int left = Integer.parseInt(nums.substring(0, space)); int top = Integer.parseInt(nums.substring(space + 1)); editor.appletLocation = new Point(left, top); //System.out.println("wanna move to " + left + " " + top); return; } //System.err.println("message " + s.length() + ":" + s); if (s.length() > 2) System.err.println(s); // this is PApplet sending a message saying "i'm about to spew // a stack trace because an error occurred during PApplet.run()" if (s.indexOf(PApplet.LEECH_WAKEUP) == 0) { // newMessage being set to 'true' means that the next time // message() is called, expect the first line of the actual // error message & stack trace to be sent from the applet. newMessage = true; return; // this line ignored } // if s.length <=2, ignore it because that probably means // that it's just the platform line-terminators. if (newMessage && s.length() > 2) { exception = new PdeException(s); // type of java ex //System.out.println("setting ex type to " + s); newMessage = false; foundMessageSource = false; messageLineCount = 0; } else { messageLineCount++; // TODO this is insufficient. need to cycle through the // different classes that are currently loaded and see if // there is an error in one of them. //String className = sketch.mainClassName; //\s+at\s([\w\d\._]+)\.([\<\w\d_]+)\(([\w\d_].java\:(\d+) /*java.lang.NullPointerException at javatest.<init>(javatest.java:5) at Temporary_2425_1153.draw(Temporary_2425_1153.java:11) at PApplet.nextFrame(PApplet.java:481) at PApplet.run(PApplet.java:428) at java.lang.Thread.run(Unknown Source) */ if (!foundMessageSource) { // " at javatest.<init>(javatest.java:5)" // -> "javatest.<init>(javatest.java:5)" int afterAt = s.indexOf("at") + 3; //if (afterAt == -1) { if (afterAt == 2) { // means indexOf was -1 System.err.println(s); return; } s = s.substring(afterAt + 1); // "javatest.<init>(javatest.java:5)" // -> "javatest.<init>" and "(javatest.java:5)" int startParen = s.indexOf('('); // at javatest.<init>(javatest.java:5) String pkgClassFxn = null; //String fileLine = null; int codeIndex = -1; int lineIndex = -1; if (startParen == -1) { pkgClassFxn = s; } else { pkgClassFxn = s.substring(0, startParen); // "(javatest.java:5)" String fileAndLine = s.substring(startParen + 1); fileAndLine = fileAndLine.substring(0, fileAndLine.length() - 1); //if (!fileAndLine.equals("Unknown Source")) { // "javatest.java:5" int colonIndex = fileAndLine.indexOf(':'); if (colonIndex != -1) { String filename = fileAndLine.substring(0, colonIndex); // "javatest.java" and "5" for (int i = 0; i < sketch.codeCount; i++) { if (sketch.code[i].preprocName.equals(filename)) { codeIndex = i; break; } } // lineIndex is 1-indexed, but editor wants zero-indexed lineIndex = Integer.parseInt(fileAndLine.substring(colonIndex + 1)); //System.out.println("code/line is " + codeIndex + " " + lineIndex); exception = new PdeException(exception.getMessage(), codeIndex, lineIndex - 1, -1); foundMessageSource = true; } } editor.error(exception); /* int index = s.indexOf(className + ".java"); if (index != -1) { int len = (className + ".java").length(); String lineNumberStr = s.substring(index + len + 1); index = lineNumberStr.indexOf(')'); lineNumberStr = lineNumberStr.substring(0, index); try { exception.line = Integer.parseInt(lineNumberStr) - 1; //2; } catch (NumberFormatException e) { } //e.printStackTrace(); // a recursive error waiting to happen? // if nfe occurs, who cares, still send the error on up editor.error(exception); */ /* // WARNING THESE ARE DISABLED!! } else if ((index = s.indexOf(className + ".class")) != -1) { // code to check for: // at Temporary_484_3845.loop(Compiled Code) // would also probably get: // at Temporary_484_3845.loop // which (i believe) is used by the mac and/or jview String functionStr = s.substring(index + (className + ".class").length() + 1); index = functionStr.indexOf('('); if (index != -1) { functionStr = functionStr.substring(0, index); } exception = new PdeException(//"inside \"" + functionStr + "()\": " + exception.getMessage() + " inside " + functionStr + "() " + "[add Compiler.disable() to setup()]"); editor.error(exception); // this will fall through in tihs example: // at Temporary_4636_9696.pootie(Compiled Code) // at Temporary_4636_9696.loop(Temporary_4636_9696.java:24) // because pootie() (re)sets the exception title // and throws it, but then the line number gets set // because of the line that comes after */ } else if (messageLineCount > 5) { // this means the class name may not be mentioned // in the stack trace.. this is just a general purpose // error, but needs to make it through anyway. // so if five lines have gone past, might as well signal messageLineCount = -100; exception = new PdeException(exception.getMessage()); editor.error(exception); } else { //System.err.print(s); } //System.out.println("got it " + s); } }
|
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/8135d974bf4865c30abe0241db99ae7cad4b1bd6/PdeRuntime.java/buggy/app/PdeRuntime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
883,
12,
780,
272,
13,
288,
565,
368,
3163,
18,
659,
18,
8222,
2932,
49,
6,
397,
272,
18,
2469,
1435,
397,
6153,
397,
272,
1769,
565,
368,
333,
353,
453,
23696,
5431,
279,
883,
261,
21985,
2332,
18,
659,
18,
8222,
13,
565,
368,
716,
11505,
716,
326,
21853,
711,
2118,
9706,
18,
565,
309,
261,
87,
18,
31806,
12,
52,
23696,
18,
2294,
11702,
67,
3500,
1285,
13,
422,
374,
13,
288,
1377,
4858,
18,
2896,
4605,
5621,
1377,
327,
31,
565,
289,
565,
368,
333,
353,
326,
453,
23696,
5431,
584,
279,
883,
716,
326,
21853,
565,
368,
353,
3832,
10456,
358,
279,
394,
2742,
2117,
565,
309,
261,
87,
18,
31806,
12,
52,
23696,
18,
2294,
11702,
67,
16537,
13,
422,
374,
13,
288,
1377,
514,
21060,
273,
272,
18,
28023,
12,
87,
18,
31806,
2668,
8624,
397,
404,
1769,
1377,
509,
3476,
273,
21060,
18,
31806,
2668,
28005,
1377,
509,
2002,
273,
2144,
18,
2670,
1702,
12,
21180,
18,
28023,
12,
20,
16,
3476,
10019,
1377,
509,
1760,
273,
2144,
18,
2670,
1702,
12,
21180,
18,
28023,
12,
2981,
397,
404,
10019,
1377,
4858,
18,
438,
1469,
2735,
273,
394,
4686,
12,
4482,
16,
1760,
1769,
1377,
368,
3163,
18,
659,
18,
8222,
2932,
91,
1072,
69,
3635,
358,
315,
397,
2002,
397,
315,
315,
397,
1760,
1769,
1377,
327,
31,
565,
289,
565,
368,
3163,
18,
370,
18,
8222,
2932,
2150,
315,
397,
272,
18,
2469,
1435,
397,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
883,
12,
780,
272,
13,
288,
565,
368,
3163,
18,
659,
18,
8222,
2932,
49,
6,
397,
272,
18,
2469,
1435,
397,
6153,
397,
272,
1769,
565,
368,
333,
353,
453,
23696,
5431,
279,
883,
261,
21985,
2332,
18,
659,
18,
8222,
13,
565,
368,
716,
11505,
716,
326,
21853,
711,
2118,
9706,
18,
565,
309,
261,
87,
18,
31806,
12,
52,
23696,
18,
2294,
11702,
67,
3500,
1285,
13,
422,
374,
13,
288,
1377,
4858,
18,
2896,
4605,
5621,
1377,
327,
31,
565,
289,
565,
368,
333,
353,
326,
453,
23696,
5431,
584,
279,
883,
716,
326,
21853,
565,
368,
353,
3832,
10456,
358,
279,
394,
2742,
2117,
565,
309,
261,
87,
18,
31806,
12,
2
] |
switch (id - idBase) {
|
switch (id - super.getMaxInstanceId()) {
|
protected void setInstanceIdValue(int id, Object value) { switch (id - idBase) { case Id_ignoreComments: lib.ignoreComments = ScriptRuntime.toBoolean(value); return; case Id_ignoreProcessingInstructions: lib.ignoreProcessingInstructions = ScriptRuntime.toBoolean(value); return; case Id_ignoreWhitespace: lib.ignoreWhitespace = ScriptRuntime.toBoolean(value); return; case Id_prettyIndent: lib.prettyIndent = ScriptRuntime.toInt32(value); return; case Id_prettyPrinting: lib.prettyPrinting = ScriptRuntime.toBoolean(value); return; } super.setInstanceIdValue(id, value); }
|
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/08f0cfede0b5665f6b5139b8993251dc3a80ec16/XMLCtor.java/clean/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLCtor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
15327,
620,
12,
474,
612,
16,
1033,
460,
13,
565,
288,
3639,
1620,
261,
350,
300,
2240,
18,
588,
2747,
15327,
10756,
288,
1850,
648,
3124,
67,
6185,
9051,
30,
5411,
2561,
18,
6185,
9051,
273,
7739,
5576,
18,
869,
5507,
12,
1132,
1769,
5411,
327,
31,
1850,
648,
3124,
67,
6185,
7798,
26712,
30,
5411,
2561,
18,
6185,
7798,
26712,
273,
7739,
5576,
18,
869,
5507,
12,
1132,
1769,
5411,
327,
31,
1850,
648,
3124,
67,
6185,
9431,
30,
5411,
2561,
18,
6185,
9431,
273,
7739,
5576,
18,
869,
5507,
12,
1132,
1769,
5411,
327,
31,
1850,
648,
3124,
67,
19073,
7790,
30,
5411,
2561,
18,
19073,
7790,
273,
7739,
5576,
18,
869,
1702,
1578,
12,
1132,
1769,
5411,
327,
31,
1850,
648,
3124,
67,
19073,
5108,
310,
30,
5411,
2561,
18,
19073,
5108,
310,
273,
7739,
5576,
18,
869,
5507,
12,
1132,
1769,
5411,
327,
31,
3639,
289,
3639,
2240,
18,
542,
15327,
620,
12,
350,
16,
460,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
444,
15327,
620,
12,
474,
612,
16,
1033,
460,
13,
565,
288,
3639,
1620,
261,
350,
300,
2240,
18,
588,
2747,
15327,
10756,
288,
1850,
648,
3124,
67,
6185,
9051,
30,
5411,
2561,
18,
6185,
9051,
273,
7739,
5576,
18,
869,
5507,
12,
1132,
1769,
5411,
327,
31,
1850,
648,
3124,
67,
6185,
7798,
26712,
30,
5411,
2561,
18,
6185,
7798,
26712,
273,
7739,
5576,
18,
869,
5507,
12,
1132,
1769,
5411,
327,
31,
1850,
648,
3124,
67,
6185,
9431,
30,
5411,
2561,
18,
6185,
9431,
273,
7739,
5576,
18,
869,
5507,
12,
1132,
1769,
5411,
327,
31,
1850,
648,
3124,
67,
19073,
7790,
30,
5411,
2561,
18,
19073,
7790,
273,
7739,
5576,
18,
869,
1702,
2
] |
getSecuritySystem().doAction(map,new SecureAction(){ public <T extends IObject> T updateObject(T obj) { iUpdate.deleteObject( obj ); return null; } });
|
getSecuritySystem().doAction(map, new SecureAction() { public <T extends IObject> T updateObject(T obj) { iUpdate.deleteObject(obj); return null; } });
|
public void removeGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; if (groups == null) return; Experimenter foundUser = getExperimenter(user.getId()); List<Long> toRemove = new ArrayList<Long>(); for (ExperimenterGroup g : groups) { if (g.getId()!=null) toRemove.add(g.getId()); } for (GroupExperimenterMap map : (List<GroupExperimenterMap>) foundUser.collectGroupExperimenterMap(null)) { if (toRemove.contains(map.parent().getId())) { map.child().removeGroupExperimenterMap(map, false); map.parent().removeGroupExperimenterMap(map, false); getSecuritySystem().doAction(map,new SecureAction(){ public <T extends IObject> T updateObject(T obj) { iUpdate.deleteObject( obj ); return null; } }); } } iUpdate.flush(); }
|
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/7e7c45d25ea1bbef3485ae116b3eb108d9f6f5ef/AdminImpl.java/buggy/components/server/src/ome/logic/AdminImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
3621,
12,
424,
457,
381,
2328,
729,
16,
1312,
457,
381,
2328,
1114,
2777,
3252,
13,
565,
288,
377,
202,
430,
261,
1355,
422,
446,
13,
327,
31,
377,
202,
430,
261,
4650,
422,
446,
13,
327,
31,
377,
202,
3639,
1312,
457,
381,
2328,
1392,
1299,
273,
26246,
457,
381,
2328,
12,
1355,
18,
26321,
10663,
3639,
987,
32,
3708,
34,
23511,
273,
394,
2407,
32,
3708,
34,
5621,
7734,
364,
261,
424,
457,
381,
2328,
1114,
314,
294,
3252,
13,
288,
540,
202,
430,
261,
75,
18,
26321,
1435,
5,
33,
2011,
13,
23511,
18,
1289,
12,
75,
18,
26321,
10663,
202,
202,
97,
3639,
364,
261,
1114,
424,
457,
381,
2328,
863,
852,
294,
261,
682,
32,
1114,
424,
457,
381,
2328,
863,
23429,
540,
202,
202,
7015,
1299,
18,
14676,
1114,
424,
457,
381,
2328,
863,
12,
2011,
3719,
540,
288,
1082,
202,
430,
261,
869,
3288,
18,
12298,
12,
1458,
18,
2938,
7675,
26321,
1435,
3719,
1082,
202,
95,
9506,
202,
1458,
18,
3624,
7675,
4479,
1114,
424,
457,
381,
2328,
863,
12,
1458,
16,
629,
1769,
9506,
202,
1458,
18,
2938,
7675,
4479,
1114,
424,
457,
381,
2328,
863,
12,
1458,
16,
629,
1769,
202,
540,
202,
588,
4368,
3163,
7675,
2896,
1803,
12,
1458,
16,
2704,
15653,
1803,
1435,
95,
202,
540,
202,
202,
482,
411,
56,
3231,
467,
921,
34,
399,
1089,
921,
12,
56,
1081,
13,
288,
202,
540,
1082,
202,
77,
1891,
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,
1206,
3621,
12,
424,
457,
381,
2328,
729,
16,
1312,
457,
381,
2328,
1114,
2777,
3252,
13,
565,
288,
377,
202,
430,
261,
1355,
422,
446,
13,
327,
31,
377,
202,
430,
261,
4650,
422,
446,
13,
327,
31,
377,
202,
3639,
1312,
457,
381,
2328,
1392,
1299,
273,
26246,
457,
381,
2328,
12,
1355,
18,
26321,
10663,
3639,
987,
32,
3708,
34,
23511,
273,
394,
2407,
32,
3708,
34,
5621,
7734,
364,
261,
424,
457,
381,
2328,
1114,
314,
294,
3252,
13,
288,
540,
202,
430,
261,
75,
18,
26321,
1435,
5,
33,
2011,
13,
23511,
18,
1289,
12,
75,
18,
26321,
10663,
202,
202,
97,
3639,
364,
261,
1114,
424,
457,
381,
2328,
863,
2
] |
public PatternDescr lhs_or() throws RecognitionException { PatternDescr d; PatternDescr left = null; PatternDescr right = null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:777:17: (left= lhs_and ( ('or'|'||')right= lhs_and )* ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:777:17: left= lhs_and ( ('or'|'||')right= lhs_and )* { OrDescr or = null; following.push(FOLLOW_lhs_and_in_lhs_or2207); left=lhs_and(); following.pop(); d = left; // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:779:17: ( ('or'|'||')right= lhs_and )* loop54: do { int alt54=2; int LA54_0 = input.LA(1); if ( LA54_0==39||LA54_0==50 ) { alt54=1; } switch (alt54) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:779:25: ('or'|'||')right= lhs_and { if ( input.LA(1)==39||input.LA(1)==50 ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2217); throw mse; } following.push(FOLLOW_lhs_and_in_lhs_or2228); right=lhs_and(); following.pop(); if ( or == null ) { or = new OrDescr(); or.addDescr( left ); d = or; } or.addDescr( right ); } break; default : break loop54; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/bf3305a89ef5e916acbab744c38aaaec83bf67ff/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
280,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
2002,
273,
446,
31,
3639,
6830,
16198,
2145,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
14509,
30,
4033,
30,
261,
4482,
33,
8499,
67,
464,
261,
7707,
280,
11,
16637,
20081,
6134,
4083,
33,
8499,
67,
464,
8618,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
14509,
30,
4033,
30,
2002,
33,
8499,
67,
464,
261,
7707,
280,
11,
16637,
20081,
6134,
4083,
33,
8499,
67,
464,
8618,
5411,
288,
2398,
2965,
16198,
578,
273,
446,
31,
2398,
3751,
18,
6206,
12,
29890,
67,
80,
4487,
67,
464,
67,
267,
67,
80,
4487,
67,
280,
27246,
27,
1769,
5411,
2002,
33,
80,
4487,
67,
464,
5621,
5411,
3751,
18,
5120,
5621,
5411,
302,
273,
2002,
31,
2398,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
4700,
29,
30,
4033,
30,
261,
7707,
280,
11,
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,
6830,
16198,
8499,
67,
280,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
2002,
273,
446,
31,
3639,
6830,
16198,
2145,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
14509,
30,
4033,
30,
261,
4482,
33,
8499,
67,
464,
261,
7707,
280,
11,
16637,
20081,
6134,
4083,
33,
8499,
67,
464,
8618,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
2
] |
||
case 63: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(63, 64); break;
|
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 73; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x3ff000000000000L & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 1: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 2: case 39: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(2, 3); break; case 3: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: case 48: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 10: case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: case 61: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 13); break; case 13: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(14); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 17: case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(20); break; case 20: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if ((0x600000000000L & l) != 0L) jjCheckNAdd(25); break; case 25: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(27, 29); break; case 27: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(27, 28); break; case 28: if ((0x600000000000L & l) != 0L) jjCheckNAdd(29); break; case 29: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(28, 29); break; case 30: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 31: if (curChar == 46) jjCheckNAdd(32); break; case 32: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(31, 32); break; case 33: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(33, 34); break; case 34: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 35: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: case 37: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(37); break; case 38: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(38, 39); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 41: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 42: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: case 44: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 45: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(46); break; case 46: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 46); break; case 47: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(47, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 50: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: case 53: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(55); break; case 55: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 57: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: case 59: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 60: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(60, 61); break; case 64: if (curChar == 39) jjstateSet[jjnewStateCnt++] = 65; break; case 67: if (curChar == 46) jjCheckNAdd(68); break; case 69: if (curChar != 46) break; if (kind > 3) kind = 3; jjCheckNAdd(68); break; case 71: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 72; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 35); if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(36, 37); break; case 3: if (curChar == 95) jjCheckNAdd(4); break; case 4: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if (curChar == 95) jjCheckNAdd(7); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if (curChar == 95) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(38, 39); break; case 13: if (curChar == 95) jjCheckNAdd(14); break; case 14: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if (curChar == 95) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(40, 41); break; case 19: if (curChar == 95) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if (curChar == 95) jjCheckNAdd(25); break; case 25: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(27, 29); break; case 26: if (curChar == 64) jjCheckNAdd(27); break; case 27: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(27, 28); break; case 29: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(28, 29); break; case 30: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(30, 31); break; case 32: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(31, 32); break; case 33: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(33, 34); break; case 34: if (curChar == 95) jjCheckNAddTwoStates(35, 36); break; case 35: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 37: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 37; break; case 38: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(38, 39); break; case 40: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 41: if (curChar == 95) jjCheckNAddTwoStates(42, 43); break; case 42: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 44: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(42, 43); break; case 45: if (curChar == 95) jjCheckNAdd(46); break; case 46: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 46); break; case 47: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(47, 48); break; case 49: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 50: if (curChar == 95) jjCheckNAddTwoStates(51, 52); break; case 51: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 53: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: if (curChar == 95) jjCheckNAdd(55); break; case 55: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if (curChar == 95) jjCheckNAddTwoStates(57, 58); break; case 57: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 59: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 60: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(60, 61); break; case 62: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 35); break; case 63: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(63, 64); break; case 65: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(64, 65); break; case 66: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(66, 67); break; case 68: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(44, 45); break; case 70: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(70, 71); break; case 71: if (curChar == 64) jjCheckNAdd(72); break; case 72: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAdd(72); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) { if (kind > 12) kind = 12; } if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); if (jjCanMove_2(hiByte, i1, i2, l1, l2)) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 35); break; case 1: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); break; case 2: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 4: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 4; break; case 5: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 7: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(46, 47); break; case 9: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(48, 49); break; case 10: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 11: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 14: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(14, 15); break; case 16: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(50, 51); break; case 17: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 18: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 20: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(24, 26); break; case 25: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(27, 29); break; case 27: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(27, 28); break; case 29: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(28, 29); break; case 30: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(30, 31); break; case 32: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(31, 32); break; case 33: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(33, 34); break; case 35: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(52, 53); break; case 36: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(37); break; case 37: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(37); break; case 38: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(38, 39); break; case 39: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 40: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(40, 41); break; case 42: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(54, 55); break; case 43: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(44, 45); break; case 44: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(44, 45); break; case 46: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(41, 46); break; case 47: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(47, 48); break; case 48: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 49: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(49, 50); break; case 51: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(56, 57); break; case 52: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(53, 54); break; case 53: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(53, 54); break; case 55: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(58, 59); break; case 57: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(60, 61); break; case 58: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 59: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(54, 59); break; case 60: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(60, 61); break; case 61: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 62: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 35); break; case 63: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(63, 64); break; case 65: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(64, 65); break; case 66: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(66, 67); break; case 68: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(44, 45); break; case 70: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(70, 71); break; case 72: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 4) kind = 4; jjstateSet[jjnewStateCnt++] = 72; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 73 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/f00afeee7aba8e1024c6f792c6bb469b7a16def9/StandardTokenizerTokenManager.java/clean/src/java/org/apache/lucene/analysis/standard/StandardTokenizerTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
26103,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
741,
540,
288,
5411,
1620,
12,
78,
78,
2019,
694,
63,
413,
77,
5717,
5411,
288,
9079,
648,
374,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5375,
288,
5397,
309,
261,
9224,
405,
404,
13,
13491,
3846,
273,
404,
31,
5397,
10684,
1564,
50,
986,
7629,
12,
20,
16,
8043,
1769,
5375,
289,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5397,
10684,
1564,
50,
986,
7629,
12,
2643,
16,
10213,
1769,
5375,
898,
31,
9079,
648,
404,
30,
5375,
309,
14015,
20,
92,
23,
1403,
12648,
2787,
48,
473,
328,
13,
480,
374,
48,
13,
5397,
10684,
1564,
50,
986,
7629,
12,
2643,
16,
10213,
1769,
5375,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,
273,
26103,
31,
282,
509,
277,
273,
404,
31,
282,
10684,
2019,
694,
63,
20,
65,
273,
787,
1119,
31,
282,
509,
525,
16,
3846,
273,
374,
92,
27,
18217,
74,
31,
282,
364,
261,
25708,
13,
282,
288,
1377,
309,
261,
9904,
78,
78,
2260,
422,
374,
92,
27,
18217,
74,
13,
540,
868,
2570,
54,
9284,
5621,
1377,
309,
261,
1397,
2156,
411,
5178,
13,
1377,
288,
540,
1525,
328,
273,
404,
48,
2296,
662,
2156,
31,
540,
4639,
6452,
30,
2
] |
|
public void getData(GetFileNamesMeta meta) { final GetFileNamesMeta in = meta; if (in.getFileName() !=null) { wFilenameList.removeAll(); for (int i=0;i<in.getFileName().length;i++) { wFilenameList.add(new String[] { in.getFileName()[i], in.getFileMask()[i], in.getFileRequired()[i] } ); } wFilenameList.removeEmptyRows(); wFilenameList.setRowNums(); wFilenameList.optWidth(true); } wStepname.selectAll(); }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/e1fac432cc56bbc2ac07761e81d693a957cbef82/GetFileNamesDialog.java/clean/src/be/ibridge/kettle/trans/step/getfilenames/GetFileNamesDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4303,
12,
967,
812,
1557,
2781,
2191,
13,
202,
95,
3639,
727,
968,
812,
1557,
2781,
316,
273,
2191,
31,
540,
202,
202,
430,
261,
267,
18,
588,
4771,
1435,
480,
2011,
13,
3196,
202,
95,
1082,
202,
91,
5359,
682,
18,
4479,
1595,
5621,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
267,
18,
588,
4771,
7675,
2469,
31,
77,
27245,
1875,
202,
95,
9506,
202,
91,
5359,
682,
18,
1289,
12,
2704,
514,
8526,
288,
316,
18,
588,
4771,
1435,
63,
77,
6487,
316,
18,
29925,
5796,
1435,
63,
77,
6487,
316,
18,
29925,
3705,
1435,
63,
77,
65,
289,
11272,
1082,
202,
97,
1082,
202,
91,
5359,
682,
18,
4479,
1921,
4300,
5621,
1082,
202,
91,
5359,
682,
18,
542,
1999,
25532,
5621,
1082,
202,
91,
5359,
682,
18,
3838,
2384,
12,
3767,
1769,
202,
202,
97,
202,
202,
91,
4160,
529,
18,
4025,
1595,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4303,
12,
967,
812,
1557,
2781,
2191,
13,
202,
95,
3639,
727,
968,
812,
1557,
2781,
316,
273,
2191,
31,
540,
202,
202,
430,
261,
267,
18,
588,
4771,
1435,
480,
2011,
13,
3196,
202,
95,
1082,
202,
91,
5359,
682,
18,
4479,
1595,
5621,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
267,
18,
588,
4771,
7675,
2469,
31,
77,
27245,
1875,
202,
95,
9506,
202,
91,
5359,
682,
18,
1289,
12,
2704,
514,
8526,
288,
316,
18,
588,
4771,
1435,
63,
77,
6487,
316,
18,
29925,
5796,
1435,
63,
77,
6487,
316,
18,
29925,
3705,
1435,
63,
77,
65,
289,
11272,
1082,
202,
97,
1082,
202,
91,
5359,
682,
18,
2
] |
||
return nameStartChars.indexOf(c) >= 0 || nameChars.indexOf(c) >= 0
|
return NAME_START_CHARS.indexOf(c) >= 0 || NAME_CHARS.indexOf(c) >= 0
|
private static final boolean isNameChar(char c) { return nameStartChars.indexOf(c) >= 0 || nameChars.indexOf(c) >= 0 || c >= 0x80; }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/8fd4fe9a4a6f32e65807c7d157c36f1d13889c75/PropertyTokenizer.java/clean/src/org/apache/fop/fo/expr/PropertyTokenizer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
1250,
30430,
2156,
12,
3001,
276,
13,
288,
3639,
327,
6048,
67,
7570,
67,
21666,
18,
31806,
12,
71,
13,
1545,
374,
747,
6048,
67,
21666,
18,
31806,
12,
71,
13,
1545,
374,
9079,
747,
276,
1545,
374,
92,
3672,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
727,
1250,
30430,
2156,
12,
3001,
276,
13,
288,
3639,
327,
6048,
67,
7570,
67,
21666,
18,
31806,
12,
71,
13,
1545,
374,
747,
6048,
67,
21666,
18,
31806,
12,
71,
13,
1545,
374,
9079,
747,
276,
1545,
374,
92,
3672,
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
] |
percentileValue = new Double ( 1.0 / iCount );
|
percentileValue = new Double ( 0 );
|
public final SeriesRenderingHints getSeriesRenderingHints( Series seOrthogonal ) throws ChartException, IllegalArgumentException { final EList elCategories = cwoa.getSeriesDefinitions( ); if ( elCategories.size( ) != 1 ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_FORMAT, "exception.cwoa.single.series.definition", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } final SeriesDefinition sd = (SeriesDefinition) elCategories.get( 0 ); final ArrayList al = sd.getRunTimeSeries( ); if ( al.size( ) != 1 ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_FORMAT, "exception.cwoa.single.runtime.series", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } final Series seBase = (Series) al.get( 0 ); final DataSetIterator dsiBaseValues = new DataSetIterator( seBase.getDataSet( ) ); final DataSetIterator dsiOrthogonalValues = new DataSetIterator( seOrthogonal.getDataSet( ) ); DataPointHints[] dpha = null; if ( dsiBaseValues.size( ) != dsiOrthogonalValues.size( ) ) // DO NOT // COMPUTE // DATA // POINT // HINTS FOR // OUT-OF-SYNC // DATA { logger.log( ILogger.INFORMATION, Messages.getString( "exception.data.outofsync", //$NON-NLS-1$ new Object[]{ new Integer( dsiBaseValues.size( ) ), new Integer( dsiOrthogonalValues.size( ) ) }, rtc.getULocale( ) ) ); } else { final int iCount = dsiOrthogonalValues.size( ); dpha = new DataPointHints[iCount]; // OPTIMIZED PRE-FETCH FORMAT SPECIFIERS FOR ALL DATA POINTS final DataPoint dp = seOrthogonal.getDataPoint( ); final EList el = dp.getComponents( ); DataPointComponent dpc; DataPointComponentType dpct; FormatSpecifier fsBase = null, fsOrthogonal = null, fsSeries = null, fsPercentile = null; for ( int i = 0; i < el.size( ); i++ ) { dpc = (DataPointComponent) el.get( i ); dpct = dpc.getType( ); if ( dpct == DataPointComponentType.BASE_VALUE_LITERAL ) { fsBase = dpc.getFormatSpecifier( ); if ( fsBase == null ) // BACKUP { fsBase = sd.getFormatSpecifier( ); } } else if ( dpct == DataPointComponentType.ORTHOGONAL_VALUE_LITERAL ) { fsOrthogonal = dpc.getFormatSpecifier( ); if ( fsOrthogonal == null && seOrthogonal.eContainer( ) instanceof SeriesDefinition ) { fsOrthogonal = ( (SeriesDefinition) seOrthogonal.eContainer( ) ).getFormatSpecifier( ); } } else if ( dpct == DataPointComponentType.SERIES_VALUE_LITERAL ) { fsSeries = dpc.getFormatSpecifier( ); } else if ( dpct == DataPointComponentType.PERCENTILE_ORTHOGONAL_VALUE_LITERAL ) { fsPercentile = dpc.getFormatSpecifier( ); } } UserDataSetHints udsh = new UserDataSetHints( seOrthogonal.getDataSets( ) ); udsh.reset( ); double total = 0; boolean isZeroValue = true; // get total orthogonal value. for ( int i = 0; i < iCount; i++ ) { Object v = dsiOrthogonalValues.next( ); if ( v instanceof Number ) { if ( ( (Number) v ).doubleValue( ) != 0.0 ) { isZeroValue = false; } total += ( (Number) v ).doubleValue( ); } else if ( v instanceof NumberDataElement ) { if ( ( (NumberDataElement) v ).getValue( ) != 0.0 ) { isZeroValue = false; } total += ( (NumberDataElement) v ).getValue( ); } } dsiOrthogonalValues.reset( ); for ( int i = 0; i < iCount; i++ ) { Object orthValue = dsiOrthogonalValues.next( ); Object percentileValue = null; if ( total != 0 ) { if ( orthValue instanceof Number ) { percentileValue = new Double( ( (Number) orthValue ).doubleValue( ) / total ); } else if ( orthValue instanceof NumberDataElement ) { percentileValue = new Double( ( (NumberDataElement) orthValue ).getValue( ) / total ); } } else if ( isZeroValue == true ) { percentileValue = new Double ( 1.0 / iCount ); } dpha[i] = new DataPointHints( dsiBaseValues.next( ), orthValue, seOrthogonal.getSeriesIdentifier( ), percentileValue, seOrthogonal.getDataPoint( ), fsBase, fsOrthogonal, fsSeries, fsPercentile, i, null, -1, rtc ); udsh.next( dpha[i] ); } } return new SeriesRenderingHints( this, dpha, dsiBaseValues, dsiOrthogonalValues ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/185b4f0f17b3aced471ea75c8b524583cfcf1156/PlotWithoutAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withoutaxes/PlotWithoutAxes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
9225,
14261,
13368,
336,
6485,
14261,
13368,
12,
1082,
202,
6485,
695,
1162,
451,
28396,
262,
1216,
14804,
503,
16,
1082,
202,
31237,
202,
95,
202,
202,
6385,
17021,
415,
10487,
273,
276,
6933,
69,
18,
588,
6485,
7130,
12,
11272,
202,
202,
430,
261,
415,
10487,
18,
1467,
12,
262,
480,
404,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
4883,
67,
7254,
16,
6862,
202,
6,
4064,
18,
71,
6933,
69,
18,
7526,
18,
10222,
18,
6907,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
5058,
18,
588,
18731,
12,
436,
5111,
18,
588,
57,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
6385,
9225,
1852,
8349,
273,
261,
6485,
1852,
13,
415,
10487,
18,
588,
12,
374,
11272,
202,
202,
6385,
2407,
524,
273,
8349,
18,
588,
1997,
28486,
12,
11272,
202,
202,
430,
261,
524,
18,
1467,
12,
262,
480,
404,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
4883,
67,
7254,
16,
6862,
202,
6,
4064,
18,
71,
6933,
69,
18,
7526,
18,
9448,
18,
10222,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
5058,
18,
588,
18731,
12,
436,
5111,
18,
588,
57,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
6385,
9225,
695,
2171,
273,
261,
6485,
13,
524,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
9225,
14261,
13368,
336,
6485,
14261,
13368,
12,
1082,
202,
6485,
695,
1162,
451,
28396,
262,
1216,
14804,
503,
16,
1082,
202,
31237,
202,
95,
202,
202,
6385,
17021,
415,
10487,
273,
276,
6933,
69,
18,
588,
6485,
7130,
12,
11272,
202,
202,
430,
261,
415,
10487,
18,
1467,
12,
262,
480,
404,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
4883,
67,
7254,
16,
6862,
202,
6,
4064,
18,
71,
6933,
69,
18,
7526,
18,
10222,
18,
6907,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
5058,
18,
588,
18731,
12,
436,
5111,
18,
588,
57,
3916,
12,
2
] |
throw new Error("constructing invalid interval "+
|
throw new IllegalArgumentException("constructing invalid interval "+
|
public IntervalSet invert(int maxSize) { IntervalSet ret = new IntervalSet(); if(maxSize < 1) return ret; //return an empty IntervalSet if (intervals.size()==0) {//Nothing recorded? Interval block=new Interval(0, maxSize-1); ret.add(block); return ret; } //Now step through list one element at a time, putting gaps into buf. //We take advantage of the fact that intervals are disjoint. Treat //beginning specially. //LOOP INVARIANT: interval!=null ==> low==interval.high int low=-1; Interval interval=null; for (Iterator iter=intervals.iterator(); iter.hasNext(); ) { interval=(Interval)iter.next(); if (interval.low!=0 && low<interval.low) {//needed for first interval if (low+1 > interval.low-1) throw new Error("constructing invalid interval "+ " while trying to invert \n"+toString()+ " \n with size "+maxSize); ret.add(new Interval(low+1, interval.low-1)); } low=interval.high; } //Special case space between last block and end of file. Assert.that(interval!=null, "Null interval in getFreeBlocks"); if (interval.high < maxSize-1) ret.add(new Interval(interval.high+1, maxSize-1)); return ret; }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/24124ba785b83dfa95cc6604135988030623fc63/IntervalSet.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/util/IntervalSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10803,
694,
9848,
12,
474,
14777,
13,
288,
3639,
10803,
694,
325,
273,
394,
10803,
694,
5621,
3639,
309,
12,
1896,
1225,
411,
404,
13,
2398,
327,
325,
31,
368,
2463,
392,
1008,
10803,
694,
3639,
309,
261,
19812,
18,
1467,
1435,
631,
20,
13,
288,
759,
23814,
16421,
35,
5411,
10803,
1203,
33,
2704,
10803,
12,
20,
16,
14777,
17,
21,
1769,
5411,
325,
18,
1289,
12,
2629,
1769,
5411,
327,
325,
31,
3639,
289,
10792,
368,
8674,
2235,
3059,
666,
1245,
930,
622,
279,
813,
16,
29379,
21085,
1368,
1681,
18,
3639,
368,
3218,
4862,
1261,
7445,
410,
434,
326,
5410,
716,
10389,
854,
1015,
16452,
18,
225,
26564,
3639,
368,
10086,
2093,
857,
6261,
18,
1850,
368,
28677,
2120,
29744,
6856,
30,
3673,
5,
33,
2011,
422,
34,
4587,
631,
6624,
18,
8766,
3639,
509,
4587,
29711,
21,
31,
3639,
10803,
3673,
33,
2011,
31,
3639,
364,
261,
3198,
1400,
33,
19812,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
262,
288,
5411,
3673,
28657,
4006,
13,
2165,
18,
4285,
5621,
5411,
309,
261,
6624,
18,
821,
5,
33,
20,
597,
4587,
32,
6624,
18,
821,
13,
288,
759,
17471,
364,
1122,
3673,
7734,
309,
261,
821,
15,
21,
405,
3673,
18,
821,
17,
21,
13,
10792,
604,
394,
2754,
2932,
10062,
310,
2057,
3673,
13773,
18701,
315,
1323,
8374,
358,
9848,
521,
82,
6,
15,
10492,
1435,
15,
18701,
315,
521,
82,
598,
963,
13773,
1896,
1225,
1769,
7734,
325,
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,
10803,
694,
9848,
12,
474,
14777,
13,
288,
3639,
10803,
694,
325,
273,
394,
10803,
694,
5621,
3639,
309,
12,
1896,
1225,
411,
404,
13,
2398,
327,
325,
31,
368,
2463,
392,
1008,
10803,
694,
3639,
309,
261,
19812,
18,
1467,
1435,
631,
20,
13,
288,
759,
23814,
16421,
35,
5411,
10803,
1203,
33,
2704,
10803,
12,
20,
16,
14777,
17,
21,
1769,
5411,
325,
18,
1289,
12,
2629,
1769,
5411,
327,
325,
31,
3639,
289,
10792,
368,
8674,
2235,
3059,
666,
1245,
930,
622,
279,
813,
16,
29379,
21085,
1368,
1681,
18,
3639,
368,
3218,
4862,
1261,
7445,
410,
434,
326,
5410,
716,
10389,
854,
1015,
16452,
18,
225,
26564,
3639,
368,
10086,
2093,
857,
6261,
2
] |
return "RPC error " + errorCode + ", status " + errorStatus;
|
return "RPC error " + errorCode + ", status " + errorStatus + ", message: " + super.getMessage();
|
public String getMessage() { return "RPC error " + errorCode + ", status " + errorStatus; }
|
49589 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49589/898db5bf4c1caf3442f19eff93ac75346aaf531a/RpcFailure.java/buggy/nu/dll/lyskom/RpcFailure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2381,
1435,
288,
202,
2463,
315,
8087,
555,
315,
397,
12079,
397,
3104,
1267,
315,
397,
555,
1482,
397,
3104,
883,
30,
315,
397,
2240,
18,
24906,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2381,
1435,
288,
202,
2463,
315,
8087,
555,
315,
397,
12079,
397,
3104,
1267,
315,
397,
555,
1482,
397,
3104,
883,
30,
315,
397,
2240,
18,
24906,
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
] |
assertFalse(filter.isExcludeTransitive()); filter.setExcludeTransitive(true); assertTrue(filter.isExcludeTransitive());
|
assertFalse( filter.isExcludeTransitive() ); filter.setExcludeTransitive( true ); assertTrue( filter.isExcludeTransitive() );
|
public void testExclude() { TransitivityFilter filter = new TransitivityFilter( directArtifacts, false ); assertFalse(filter.isExcludeTransitive()); filter.setExcludeTransitive(true); assertTrue(filter.isExcludeTransitive()); Set result = filter.filter( artifacts, log ); assertEquals( 2, result.size() ); Iterator iter = result.iterator(); while ( iter.hasNext() ) { Artifact artifact = (Artifact) iter.next(); assertTrue( artifact.getArtifactId().equals( "release" ) || artifact.getArtifactId().equals( "snapshot" ) ); } }
|
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/cc3a01ab903ce7a1610784db39e6913daeb39597/TestTransitivityFilter.java/clean/maven-dependency-plugin/src/test/java/org/apache/maven/plugin/dependency/utils/filters/TestTransitivityFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12689,
1435,
565,
288,
3639,
2604,
20862,
1586,
1034,
273,
394,
2604,
20862,
1586,
12,
2657,
16981,
16,
629,
11272,
3639,
1815,
8381,
12,
2188,
18,
291,
12689,
1429,
3720,
10663,
3639,
1034,
18,
542,
12689,
1429,
3720,
12,
3767,
1769,
3639,
1815,
5510,
12,
2188,
18,
291,
12689,
1429,
3720,
10663,
3639,
1000,
563,
273,
1034,
18,
2188,
12,
16259,
16,
613,
11272,
3639,
1815,
8867,
12,
576,
16,
563,
18,
1467,
1435,
11272,
3639,
4498,
1400,
273,
563,
18,
9838,
5621,
3639,
1323,
261,
1400,
18,
5332,
2134,
1435,
262,
3639,
288,
5411,
14022,
6462,
273,
261,
7581,
13,
1400,
18,
4285,
5621,
5411,
1815,
5510,
12,
6462,
18,
588,
7581,
548,
7675,
14963,
12,
315,
9340,
6,
262,
747,
6462,
18,
588,
7581,
548,
7675,
14963,
12,
315,
11171,
6,
262,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
12689,
1435,
565,
288,
3639,
2604,
20862,
1586,
1034,
273,
394,
2604,
20862,
1586,
12,
2657,
16981,
16,
629,
11272,
3639,
1815,
8381,
12,
2188,
18,
291,
12689,
1429,
3720,
10663,
3639,
1034,
18,
542,
12689,
1429,
3720,
12,
3767,
1769,
3639,
1815,
5510,
12,
2188,
18,
291,
12689,
1429,
3720,
10663,
3639,
1000,
563,
273,
1034,
18,
2188,
12,
16259,
16,
613,
11272,
3639,
1815,
8867,
12,
576,
16,
563,
18,
1467,
1435,
11272,
3639,
4498,
1400,
273,
563,
18,
9838,
5621,
3639,
1323,
261,
1400,
18,
5332,
2134,
1435,
262,
3639,
288,
5411,
14022,
6462,
273,
261,
7581,
13,
1400,
18,
4285,
5621,
5411,
1815,
5510,
12,
6462,
18,
588,
7581,
548,
7675,
2
] |
user = (tmp != null && tmp.length() > 1) ? tmp : DEFAULTUSER;
|
user = (tmp != null && tmp.length() > 1) ? tmp : DEFAULTUSER; tmp = p.getProperty("jdbc_driver"); jdbcDriver = (tmp != null && tmp.length() > 1) ? tmp : DEFAULT_JDBC_DRIVER;
|
public void init() { connectionconf = ClassLoader.getSystemResource(MARTJ_DB_CONFIG_URL); if (connectionconf != null) { try { p.load(connectionconf.openStream()); String tmp = p.getProperty("databaseType"); databaseType = (tmp != null && tmp.length() > 1) ? tmp : DEFAULTDBTYPE; tmp = p.getProperty("host"); host = (tmp != null && tmp.length() > 1) ? tmp : DEFAULTHOST; tmp = p.getProperty("port"); port = (tmp != null && tmp.length() > 1) ? tmp : DEFAULTPORT; tmp = p.getProperty("databaseName"); databaseName = (tmp != null && tmp.length() > 1) ? tmp : DEFAULTDATABASE; tmp = p.getProperty("user"); user = (tmp != null && tmp.length() > 1) ? tmp : DEFAULTUSER; password = p.getProperty("password"); } catch (java.io.IOException e) { System.out.println( "Caught IOException when trying to open connection configuration file " + MARTJ_DB_CONFIG_URL + "\n" + e + "\n\nusing default connection parameters"); } } else { System.out.println("Failed to find connection configuration file " + MARTJ_DB_CONFIG_URL + " using default connection parameters"); databaseType = DEFAULTDBTYPE; host = DEFAULTHOST; databaseName = DEFAULTDATABASE; user = DEFAULTUSER; } try { ensjDriver = DriverManager.load(ENSJ_DB_CONFIG_URL); } catch (ConfigurationException e) { logger.log(Level.WARNING, "", e ); } }
|
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/51d0e75cc3bdf7cf9cc1087ced014fbce0f1dd72/Base.java/buggy/src/java/org/ensembl/mart/lib/test/Base.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
1435,
288,
377,
202,
202,
4071,
3923,
273,
9403,
18,
588,
3163,
1420,
12,
49,
4928,
46,
67,
2290,
67,
7203,
67,
1785,
1769,
202,
202,
430,
261,
4071,
3923,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
84,
18,
945,
12,
4071,
3923,
18,
3190,
1228,
10663,
3639,
514,
1853,
273,
293,
18,
588,
1396,
2932,
6231,
559,
8863,
9506,
202,
6231,
559,
273,
261,
5645,
480,
446,
597,
1853,
18,
2469,
1435,
405,
404,
13,
692,
1853,
294,
3331,
2290,
2399,
31,
6862,
9506,
202,
5645,
273,
293,
18,
588,
1396,
2932,
2564,
8863,
9506,
202,
2564,
273,
261,
5645,
480,
446,
597,
1853,
18,
2469,
1435,
405,
404,
13,
692,
1853,
294,
3331,
8908,
31,
6862,
3639,
1853,
273,
293,
18,
588,
1396,
2932,
655,
8863,
9506,
202,
655,
273,
261,
5645,
480,
446,
597,
1853,
18,
2469,
1435,
405,
404,
13,
692,
1853,
294,
3331,
6354,
31,
6862,
3639,
1853,
273,
293,
18,
588,
1396,
2932,
6231,
461,
8863,
9506,
202,
6231,
461,
273,
261,
5645,
480,
446,
597,
1853,
18,
2469,
1435,
405,
404,
13,
692,
1853,
294,
3331,
22366,
31,
6862,
9506,
202,
5645,
273,
293,
18,
588,
1396,
2932,
1355,
8863,
9506,
202,
1355,
273,
225,
261,
5645,
480,
446,
597,
1853,
18,
2469,
1435,
405,
404,
13,
692,
1853,
294,
3331,
4714,
31,
6862,
9506,
202,
3664,
273,
293,
18,
588,
1396,
2932,
3664,
8863,
1082,
202,
97,
1044,
261,
6290,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
1435,
288,
377,
202,
202,
4071,
3923,
273,
9403,
18,
588,
3163,
1420,
12,
49,
4928,
46,
67,
2290,
67,
7203,
67,
1785,
1769,
202,
202,
430,
261,
4071,
3923,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
84,
18,
945,
12,
4071,
3923,
18,
3190,
1228,
10663,
3639,
514,
1853,
273,
293,
18,
588,
1396,
2932,
6231,
559,
8863,
9506,
202,
6231,
559,
273,
261,
5645,
480,
446,
597,
1853,
18,
2469,
1435,
405,
404,
13,
692,
1853,
294,
3331,
2290,
2399,
31,
6862,
9506,
202,
5645,
273,
293,
18,
588,
1396,
2932,
2564,
8863,
9506,
202,
2564,
273,
261,
5645,
480,
446,
597,
1853,
18,
2469,
1435,
405,
404,
13,
2
] |
if ( ( _accessMode == AccessMode.Exclusive || _accessMode == AccessMode.DbLocked ) && ! entry.oid.isDbLock() ) {
|
if ( ( _accessMode == AccessMode.Exclusive && ! entry.engine.hasLock( _tx, oid, true ) ) || ( _accessMode == AccessMode.DbLocked && ! entry.oid.isDbLock() ) ) {
|
public Object fetch() throws TransactionNotInProgressException, PersistenceException, ObjectNotFoundException, LockNotGrantedException { TransactionContext.ObjectEntry entry; OID oid; ClassHandler handler; Object object; // Make sure transaction is still open. if ( _tx.getStatus() != Status.STATUS_ACTIVE ) throw new TransactionNotInProgressException( Messages.message( "persist.noTransaction" ) ); if ( _lastIdentity == null ) throw new IllegalStateException( Messages.message( "jdo.fetchNoNextIdentity" ) ); synchronized ( _tx ) { // Get the next OID from the query engine. The object is // already loaded into the persistence engine at this point and // has a lock based on the original query (i.e. read write // or exclusive). If no next record return null. handler = _engine.getClassHandler( _query.getResultType() ); oid = new OID( handler, _lastIdentity ); // Did we already load (or created) this object in this // transaction. entry = _tx.getObjectEntry( _engine, oid ); if ( entry != null ) { // The object has already been loaded in this transaction // and is available from the persistence engine. if ( entry.deleted ) // Object has been deleted in this transaction, so skip // to next object. throw new ObjectNotFoundExceptionImpl( handler.getJavaClass(), _lastIdentity ); else { if ( ( _accessMode == AccessMode.Exclusive || _accessMode == AccessMode.DbLocked ) && ! entry.oid.isDbLock() ) { // If we are in exclusive mode and object has not been // loaded in exclusive mode before, then we have a // problem. We cannot return an object that is not // synchronized with the database, but we cannot // synchronize a live object. throw new PersistenceExceptionImpl( "persist.lockConflict", _query.getResultType(), _lastIdentity ); } else { // Either read only or exclusive mode, and we // already have an object in that mode, so we // return that object. return entry.object; } } } else { // First time we see the object in this transaction, // must create a new record for this object. We only // record the object in the transaction if in read-write // or exclusive mode. oid = _engine.fetch( _tx, _query, _lastIdentity, _accessMode, _tx.getLockTimeout() ); handler = _engine.getClassHandler( oid.getJavaClass() ); object = handler.newInstance(); entry = _tx.addObjectEntry( object, oid, _engine ); try { _engine.copyObject( _tx, oid, object ); if ( handler.getCallback() != null ) { handler.getCallback().using( object, _db ); handler.getCallback().loaded( object ); } } catch ( Exception except ) { _tx.removeObjectEntry( object ); _engine.forgetObject( _tx, oid ); if ( handler.getCallback() != null ) handler.getCallback().releasing( object, false ); if ( except instanceof PersistenceException ) throw (PersistenceException) except; throw new PersistenceExceptionImpl( except ); } if ( _accessMode == AccessMode.ReadOnly ) { _tx.removeObjectEntry( object ); _engine.releaseLock( _tx, oid ); } return object; } } }
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/f005e1d15f5451ff909a64c6c0f1ee309d4aa13b/QueryResults.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/persist/QueryResults.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2158,
1435,
3639,
1216,
5947,
1248,
13434,
503,
16,
13381,
503,
16,
9079,
1033,
3990,
16,
3488,
1248,
14570,
503,
565,
288,
3639,
5947,
1042,
18,
921,
1622,
1241,
31,
3639,
18026,
2868,
7764,
31,
3639,
1659,
1503,
377,
1838,
31,
3639,
1033,
6647,
733,
31,
7734,
368,
4344,
3071,
2492,
353,
4859,
1696,
18,
3639,
309,
261,
389,
978,
18,
588,
1482,
1435,
480,
2685,
18,
8608,
67,
13301,
262,
5411,
604,
394,
5947,
1248,
13434,
503,
12,
4838,
18,
2150,
12,
315,
19251,
18,
2135,
3342,
6,
262,
11272,
3639,
309,
261,
389,
2722,
4334,
422,
446,
262,
5411,
604,
394,
5477,
12,
4838,
18,
2150,
12,
315,
78,
2896,
18,
5754,
2279,
2134,
4334,
6,
262,
11272,
3639,
3852,
261,
389,
978,
262,
288,
5411,
368,
968,
326,
1024,
18026,
628,
326,
843,
4073,
18,
1021,
733,
353,
5411,
368,
1818,
4203,
1368,
326,
9756,
4073,
622,
333,
1634,
471,
5411,
368,
711,
279,
2176,
2511,
603,
326,
2282,
843,
261,
77,
18,
73,
18,
855,
1045,
5411,
368,
578,
12060,
2934,
971,
1158,
1024,
1409,
327,
446,
18,
5411,
1838,
273,
389,
8944,
18,
588,
797,
1503,
12,
389,
2271,
18,
588,
1253,
559,
1435,
11272,
5411,
7764,
273,
394,
18026,
12,
1838,
16,
389,
2722,
4334,
11272,
13491,
368,
21148,
732,
1818,
1262,
261,
280,
2522,
13,
333,
733,
316,
333,
5411,
368,
2492,
18,
5411,
1241,
273,
389,
978,
18,
588,
921,
1622,
12,
389,
8944,
16,
7764,
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,
1033,
2158,
1435,
3639,
1216,
5947,
1248,
13434,
503,
16,
13381,
503,
16,
9079,
1033,
3990,
16,
3488,
1248,
14570,
503,
565,
288,
3639,
5947,
1042,
18,
921,
1622,
1241,
31,
3639,
18026,
2868,
7764,
31,
3639,
1659,
1503,
377,
1838,
31,
3639,
1033,
6647,
733,
31,
7734,
368,
4344,
3071,
2492,
353,
4859,
1696,
18,
3639,
309,
261,
389,
978,
18,
588,
1482,
1435,
480,
2685,
18,
8608,
67,
13301,
262,
5411,
604,
394,
5947,
1248,
13434,
503,
12,
4838,
18,
2150,
12,
315,
19251,
18,
2135,
3342,
6,
262,
11272,
3639,
309,
261,
389,
2722,
4334,
422,
446,
262,
5411,
604,
394,
5477,
12,
4838,
18,
2150,
12,
315,
78,
2896,
18,
5754,
2279,
2134,
2
] |
public XmlAstMarshal(Map delegates) { this.delegates = delegates;
|
public XmlAstMarshal() { this(null);
|
public XmlAstMarshal(Map delegates) { this.delegates = delegates; }
|
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/870e1da9b41bfdbae259e1fc5f18fc8b76686998/XmlAstMarshal.java/buggy/src/org/ablaf/internal/ast/XmlAstMarshal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5714,
21385,
8105,
12,
863,
22310,
13,
288,
3639,
333,
18,
3771,
1332,
815,
273,
22310,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5714,
21385,
8105,
12,
863,
22310,
13,
288,
3639,
333,
18,
3771,
1332,
815,
273,
22310,
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
] |
double[] charges = (double[]) atomChargeMap.get(atom);
|
int[] charges = (int[]) atomChargeMap.get(atom);
|
public void testUndo() { HashMap atomChargeMap = createAllChargesPlus1Mol(); Set atoms = atomChargeMap.keySet(); Iterator it = atoms.iterator(); while (it.hasNext()) { Atom atom = (Atom) it.next(); double[] charges = (double[]) atomChargeMap.get(atom); UndoableEdit edit = new ChangeChargeEdit(atom, charges[0], charges[1]); edit.undo(); assertTrue(atom.getCharge() == charges[0]); } }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/17811f5949958f1eb24c0b5946c69fb6d934fb4e/ChangeChargeEditTest.java/buggy/src/org/openscience/cdk/test/applications/undoredo/ChangeChargeEditTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
31224,
1435,
288,
202,
202,
8658,
3179,
17649,
863,
273,
752,
1595,
2156,
2852,
13207,
21,
49,
355,
5621,
202,
202,
694,
9006,
273,
3179,
17649,
863,
18,
856,
694,
5621,
202,
202,
3198,
518,
273,
9006,
18,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
3641,
3179,
273,
261,
3641,
13,
518,
18,
4285,
5621,
1082,
202,
9056,
8526,
1149,
2852,
273,
261,
9056,
63,
5717,
3179,
17649,
863,
18,
588,
12,
7466,
1769,
1082,
202,
31224,
429,
4666,
3874,
273,
394,
7576,
17649,
4666,
12,
7466,
16,
1149,
2852,
63,
20,
6487,
6862,
202,
3001,
2852,
63,
21,
19226,
1082,
202,
4619,
18,
31226,
5621,
1082,
202,
11231,
5510,
12,
7466,
18,
588,
17649,
1435,
422,
1149,
2852,
63,
20,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
31224,
1435,
288,
202,
202,
8658,
3179,
17649,
863,
273,
752,
1595,
2156,
2852,
13207,
21,
49,
355,
5621,
202,
202,
694,
9006,
273,
3179,
17649,
863,
18,
856,
694,
5621,
202,
202,
3198,
518,
273,
9006,
18,
9838,
5621,
202,
202,
17523,
261,
305,
18,
5332,
2134,
10756,
288,
1082,
202,
3641,
3179,
273,
261,
3641,
13,
518,
18,
4285,
5621,
1082,
202,
9056,
8526,
1149,
2852,
273,
261,
9056,
63,
5717,
3179,
17649,
863,
18,
588,
12,
7466,
1769,
1082,
202,
31224,
429,
4666,
3874,
273,
394,
7576,
17649,
4666,
12,
7466,
16,
1149,
2852,
63,
20,
6487,
6862,
202,
3001,
2852,
63,
21,
19226,
1082,
202,
4619,
18,
31226,
5621,
1082,
2
] |
if (positionId.indexOf(' ') >= 0) { Matcher m = REGEX_PERCENT.matcher(positionId);
|
if (m.find()) { int x = Integer.parseInt(m.group(1)); int y = Integer.parseInt(m.group(2)); if (x < 0 || x > 100 || y < 0 || y > 100) throw new IllegalArgumentException("x < 0 || x > 100 || y < 0 || y > 100 : " + positionId);
|
public static final Position valueOf(String positionId) { if (positionId == null) throw new IllegalArgumentException("positionId == null"); positionId = positionId.trim(); if (positionId.equals("")) throw new IllegalArgumentException("positionId.equals(\"\")"); if (positionId.indexOf(' ') >= 0) { Matcher m = REGEX_PERCENT.matcher(positionId); if (m.find()) { int x = Integer.parseInt(m.group(1)); int y = Integer.parseInt(m.group(2)); if (x < 0 || x > 100 || y < 0 || y > 100) throw new IllegalArgumentException("x < 0 || x > 100 || y < 0 || y > 100 : " + positionId); for (Position p : VALUES) { if (p.x == x && p.y == y) return p; } return new Position(null, x, y); } else { throw new IllegalArgumentException("positionId '" + positionId + "' has an unrecognized position format"); } } else { positionId = positionId.toUpperCase().replace(' ', '_'); for (Position p : VALUES) { if (p.name.equals(positionId)) { return p; } } throw new IllegalArgumentException("positionId '" + positionId + "' is not a valid position format name"); } }
|
51553 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51553/f4e3db72b522ead8ce13c99577affe8d85f812fd/Background.java/clean/src/thinwire/ui/style/Background.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
760,
727,
11010,
4323,
12,
780,
1754,
548,
13,
288,
5411,
309,
261,
3276,
548,
422,
446,
13,
604,
394,
2754,
2932,
3276,
548,
422,
446,
8863,
5411,
1754,
548,
273,
1754,
548,
18,
5290,
5621,
5411,
309,
261,
3276,
548,
18,
14963,
2932,
6,
3719,
604,
394,
2754,
2932,
3276,
548,
18,
14963,
23031,
2412,
2225,
1769,
5411,
309,
261,
3276,
548,
18,
31806,
2668,
8624,
1545,
374,
13,
288,
7734,
9757,
312,
273,
25941,
67,
3194,
19666,
18,
22761,
12,
3276,
548,
1769,
7734,
309,
261,
81,
18,
4720,
10756,
288,
10792,
509,
619,
273,
2144,
18,
2670,
1702,
12,
81,
18,
1655,
12,
21,
10019,
10792,
509,
677,
273,
2144,
18,
2670,
1702,
12,
81,
18,
1655,
12,
22,
10019,
4766,
3639,
309,
261,
92,
411,
374,
747,
619,
405,
2130,
747,
677,
411,
374,
747,
677,
405,
2130,
13,
13491,
604,
394,
2754,
2932,
92,
411,
374,
747,
619,
405,
2130,
747,
677,
411,
374,
747,
677,
405,
2130,
294,
315,
397,
1754,
548,
1769,
10792,
364,
261,
2555,
293,
294,
13477,
13,
288,
13491,
309,
261,
84,
18,
92,
422,
619,
597,
293,
18,
93,
422,
677,
13,
327,
293,
31,
10792,
289,
4766,
3639,
327,
394,
11010,
12,
2011,
16,
619,
16,
677,
1769,
7734,
289,
469,
288,
10792,
604,
394,
2754,
2932,
3276,
548,
2119,
397,
1754,
548,
397,
2491,
711,
392,
28333,
1754,
740,
8863,
7734,
289,
5411,
289,
469,
288,
7734,
1754,
548,
273,
1754,
548,
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,
760,
727,
11010,
4323,
12,
780,
1754,
548,
13,
288,
5411,
309,
261,
3276,
548,
422,
446,
13,
604,
394,
2754,
2932,
3276,
548,
422,
446,
8863,
5411,
1754,
548,
273,
1754,
548,
18,
5290,
5621,
5411,
309,
261,
3276,
548,
18,
14963,
2932,
6,
3719,
604,
394,
2754,
2932,
3276,
548,
18,
14963,
23031,
2412,
2225,
1769,
5411,
309,
261,
3276,
548,
18,
31806,
2668,
8624,
1545,
374,
13,
288,
7734,
9757,
312,
273,
25941,
67,
3194,
19666,
18,
22761,
12,
3276,
548,
1769,
7734,
309,
261,
81,
18,
4720,
10756,
288,
10792,
509,
619,
273,
2144,
18,
2670,
1702,
12,
81,
18,
1655,
12,
21,
10019,
10792,
509,
677,
273,
2144,
18,
2670,
1702,
12,
2
] |
void store(Connection db) throws SQLException {
|
void store() throws SQLException {
|
void store(Connection db) throws SQLException { if (m_changed != 0 || m_fromDb == false) { if (m_fromDb) update(db); else insert(db); } }
|
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/55bbc92c9c64c8cc1fcbd2d7c9611fd716e63765/DbSnmpInterfaceEntry.java/buggy/src/services/org/opennms/netmgt/capsd/DbSnmpInterfaceEntry.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1707,
1435,
1216,
6483,
288,
3639,
309,
261,
81,
67,
6703,
480,
374,
747,
312,
67,
2080,
4331,
422,
629,
13,
288,
5411,
309,
261,
81,
67,
2080,
4331,
13,
7734,
1089,
12,
1966,
1769,
5411,
469,
7734,
2243,
12,
1966,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1707,
1435,
1216,
6483,
288,
3639,
309,
261,
81,
67,
6703,
480,
374,
747,
312,
67,
2080,
4331,
422,
629,
13,
288,
5411,
309,
261,
81,
67,
2080,
4331,
13,
7734,
1089,
12,
1966,
1769,
5411,
469,
7734,
2243,
12,
1966,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
.addEqualTo("web", spaceName);
|
.addEqualTo("space", spaceName);
|
public List getSpaceDocsName(final String spaceName, XWikiContext context) throws XWikiException { try { return (List) executeRead(context, new JcrCallBack(){ public Object doInJcr(XWikiJcrSession session) throws Exception { Filter filter = session.getObjectQueryManager().createFilter(XWikiDocument.class) .addEqualTo("web", spaceName); return searchStringAttribute(session, filter, "name"); } }); } catch (Exception e) { throw new XWikiException(XWikiException.MODULE_XWIKI_STORE, XWikiException.ERROR_XWIKI_STORE_JCR_OTHER, "Exception while getSpaceDocsName", e); } }
|
52380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52380/e7c4eb72db7b3ef7664bc92027dc60c212c67b76/XWikiJcrStore.java/buggy/src/main/java/com/xpn/xwiki/store/jcr/XWikiJcrStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
1322,
909,
12656,
461,
12,
6385,
514,
3476,
461,
16,
1139,
25438,
1042,
819,
13,
1216,
1139,
25438,
503,
288,
202,
202,
698,
288,
1082,
202,
2463,
261,
682,
13,
1836,
1994,
12,
2472,
16,
394,
22481,
30008,
1435,
95,
9506,
202,
482,
1033,
741,
382,
46,
3353,
12,
60,
25438,
46,
3353,
2157,
1339,
13,
1216,
1185,
288,
6862,
202,
1586,
1034,
273,
1339,
18,
588,
921,
1138,
1318,
7675,
2640,
1586,
12,
60,
25438,
2519,
18,
1106,
13,
25083,
202,
18,
1289,
5812,
774,
2932,
4875,
3113,
3476,
461,
1769,
6862,
202,
2463,
1623,
780,
1499,
12,
3184,
16,
1034,
16,
315,
529,
8863,
9506,
202,
97,
1082,
202,
22938,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
12849,
394,
1139,
25438,
503,
12,
60,
25438,
503,
18,
12194,
67,
60,
23109,
47,
45,
67,
13651,
16,
1139,
25438,
503,
18,
3589,
67,
60,
23109,
47,
45,
67,
13651,
67,
46,
5093,
67,
23940,
16,
315,
503,
1323,
1322,
909,
12656,
461,
3113,
425,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
987,
1322,
909,
12656,
461,
12,
6385,
514,
3476,
461,
16,
1139,
25438,
1042,
819,
13,
1216,
1139,
25438,
503,
288,
202,
202,
698,
288,
1082,
202,
2463,
261,
682,
13,
1836,
1994,
12,
2472,
16,
394,
22481,
30008,
1435,
95,
9506,
202,
482,
1033,
741,
382,
46,
3353,
12,
60,
25438,
46,
3353,
2157,
1339,
13,
1216,
1185,
288,
6862,
202,
1586,
1034,
273,
1339,
18,
588,
921,
1138,
1318,
7675,
2640,
1586,
12,
60,
25438,
2519,
18,
1106,
13,
25083,
202,
18,
1289,
5812,
774,
2932,
4875,
3113,
3476,
461,
1769,
6862,
202,
2463,
1623,
780,
1499,
12,
3184,
16,
1034,
16,
315,
529,
8863,
9506,
202,
97,
1082,
202,
22938,
202,
202,
97,
2
] |
Assert.assertNotNull(substringFilter);
|
assertNotNull(substringFilter);
|
public void testDecodeSearchRequestSubstringAnyAnyAny() { Asn1Decoder ldapDecoder = new LdapDecoder(); ByteBuffer stream = ByteBuffer.allocate( 0x6A ); stream.put( new byte[] { 0x30, 0x68, // LDAPMessage ::=SEQUENCE { 0x02, 0x01, 0x01, // messageID MessageID 0x63, 0x63, // CHOICE { ..., searchRequest SearchRequest, ... // SearchRequest ::= APPLICATION[3] SEQUENCE { 0x04, 0x1F, // baseObject LDAPDN, 'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd', 'c', '=', 'e', 'x', 'a', 'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01, // scope ENUMERATED { // baseObject (0), // singleLevel (1), // wholeSubtree (2) }, 0x0A, 0x01, 0x03, // derefAliases ENUMERATED { // neverDerefAliases (0), // derefInSearching (1), // derefFindingBaseObj (2), // derefAlways (3) }, // sizeLimit INTEGER (0 .. maxInt), (1000) 0x02, 0x02, 0x03, (byte)0xE8, // timeLimit INTEGER (0 .. maxInt), (1000) 0x02, 0x02, 0x03, (byte)0xE8, 0x01, 0x01, (byte)0xFF, // typesOnly BOOLEAN, (TRUE) // filter Filter, (byte)0xA4, 0x18, // Filter ::= CHOICE { // substrings [4] SubstringFilter // } // SubstringFilter ::= SEQUENCE { 0x04, 0x0B, // type AttributeDescription, 'o', 'b', 'j', 'e', 'c', 't', 'c', 'l', 'a', 's', 's', 0x30, 0x09, (byte)0x81, 0x01, 't', // (byte)0x81, 0x01, 't', // (byte)0x81, 0x01, 't', // 0x30, 0x15, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription 0x04, 0x05, 'a', 't', 't', 'r', '0', // AttributeDescription ::= LDAPString 0x04, 0x05, 'a', 't', 't', 'r', '1', // AttributeDescription ::= LDAPString 0x04, 0x05, 'a', 't', 't', 'r', '2' // AttributeDescription ::= LDAPString } ); String decodedPdu = StringTools.dumpBytes( stream.array() ); stream.flip(); // Allocate a BindRequest Container IAsn1Container ldapMessageContainer = new LdapMessageContainer(); try { ldapDecoder.decode( stream, ldapMessageContainer ); } catch ( DecoderException de ) { de.printStackTrace(); Assert.fail( de.getMessage() ); } LdapMessage message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage(); SearchRequest sr = message.getSearchRequest(); Assert.assertEquals( 1, message.getMessageId() ); Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", sr.getBaseObject().toString() ); Assert.assertEquals( LdapConstants.SCOPE_SINGLE_LEVEL, sr.getScope() ); Assert.assertEquals( LdapConstants.DEREF_ALWAYS, sr.getDerefAliases() ); Assert.assertEquals( 1000, sr.getSizeLimit() ); Assert.assertEquals( 1000, sr.getTimeLimit() ); Assert.assertEquals( true, sr.isTypesOnly() ); // (objectclass=t*) SubstringFilter substringFilter = (SubstringFilter)sr.getFilter(); Assert.assertNotNull(substringFilter); Assert.assertEquals("objectclass", substringFilter.getType().getString()); Assert.assertEquals(null, substringFilter.getInitialSubstrings()); Assert.assertEquals("t", ((LdapString)substringFilter.getAnySubstrings().get(0)).getString()); Assert.assertEquals("t", ((LdapString)substringFilter.getAnySubstrings().get(1)).getString()); Assert.assertEquals("t", (( LdapString )substringFilter.getAnySubstrings().get(2)).getString()); Assert.assertEquals(null, substringFilter.getFinalSubstrings()); // The attributes Attributes attributes = sr.getAttributes(); for (int i = 0; i < attributes.size(); i++) { Assert.assertNotNull( attributes.get( "attr" + i ) ); } // Check the length Assert.assertEquals(0x6A, message.computeLength()); // Check the encoding // We won't check the whole PDU, as it may differs because // attributes may have been reordered try { ByteBuffer bb = message.encode( null ); String encodedPdu = StringTools.dumpBytes( bb.array() ); Assert.assertEquals(encodedPdu.substring( 0, 0x5B ), decodedPdu.substring( 0, 0x5B ) ); } catch ( EncoderException ee ) { ee.printStackTrace(); Assert.fail( ee.getMessage() ); } }
|
54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/3561f4cdd29c534a78cee8464a6bc4c88d5b1783/SearchRequestTest.java/buggy/ldap/src/test/java/org/apache/ldap/common/codec/search/SearchRequestTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6615,
2979,
691,
1676,
1080,
2961,
2961,
2961,
1435,
565,
288,
3639,
31277,
21,
7975,
8079,
7975,
273,
394,
18053,
7975,
5621,
3639,
7400,
225,
1407,
1377,
273,
7400,
18,
16247,
12,
374,
92,
26,
37,
11272,
3639,
1407,
18,
458,
12,
5411,
394,
1160,
8526,
5411,
288,
7734,
374,
92,
5082,
16,
374,
92,
9470,
16,
10402,
368,
11916,
1079,
493,
33,
25330,
288,
6862,
225,
374,
92,
3103,
16,
374,
92,
1611,
16,
374,
92,
1611,
16,
3196,
1850,
368,
3639,
883,
734,
2350,
734,
6862,
225,
374,
92,
4449,
16,
374,
92,
4449,
16,
10402,
368,
202,
1377,
6469,
51,
11774,
288,
1372,
16,
1623,
691,
5167,
691,
16,
1372,
7682,
9506,
1377,
202,
225,
368,
5167,
691,
493,
33,
14148,
63,
23,
65,
27118,
288,
6862,
565,
374,
92,
3028,
16,
374,
92,
21,
42,
16,
1875,
1377,
202,
225,
368,
565,
1026,
921,
11916,
8609,
16,
6862,
565,
296,
89,
2187,
296,
77,
2187,
296,
72,
2187,
15196,
2187,
296,
69,
2187,
296,
79,
2187,
296,
69,
2187,
296,
86,
2187,
296,
69,
2187,
296,
87,
2187,
296,
89,
2187,
296,
80,
2187,
296,
89,
2187,
2265,
2187,
296,
72,
2187,
296,
71,
2187,
15196,
2187,
10792,
296,
73,
2187,
296,
92,
2187,
296,
69,
2187,
296,
81,
2187,
296,
84,
2187,
296,
80,
2187,
296,
73,
2187,
2265,
2187,
296,
72,
2187,
296,
71,
2187,
15196,
2187,
296,
71,
2187,
296,
83,
2187,
296,
81,
2187,
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,
1842,
6615,
2979,
691,
1676,
1080,
2961,
2961,
2961,
1435,
565,
288,
3639,
31277,
21,
7975,
8079,
7975,
273,
394,
18053,
7975,
5621,
3639,
7400,
225,
1407,
1377,
273,
7400,
18,
16247,
12,
374,
92,
26,
37,
11272,
3639,
1407,
18,
458,
12,
5411,
394,
1160,
8526,
5411,
288,
7734,
374,
92,
5082,
16,
374,
92,
9470,
16,
10402,
368,
11916,
1079,
493,
33,
25330,
288,
6862,
225,
374,
92,
3103,
16,
374,
92,
1611,
16,
374,
92,
1611,
16,
3196,
1850,
368,
3639,
883,
734,
2350,
734,
6862,
225,
374,
92,
4449,
16,
374,
92,
4449,
16,
10402,
368,
202,
1377,
6469,
51,
11774,
288,
1372,
16,
1623,
691,
5167,
691,
16,
1372,
7682,
9506,
2
] |
IsNullValue resultValue; if (result == NO_KABOOM_NN) resultValue = noKaboomNonNullValue(a.locationOfKaBoom); else resultValue = instanceByFlagsList[combinedFlags >> FLAG_SHIFT][result];
|
IsNullValue resultValue = (result == NO_KABOOM_NN) ? noKaboomNonNullValue(a.locationOfKaBoom) : instanceByFlagsList[combinedFlags >> FLAG_SHIFT][result];
|
public static IsNullValue merge(IsNullValue a, IsNullValue b) { if (a == b) return a; if (a.equals(b)) return a; int aKind = a.kind & 0xff; int bKind = b.kind & 0xff; int aFlags = a.getFlags(); int bFlags = b.getFlags(); int combinedFlags = aFlags & bFlags; if (!(a.isNullOnSomePath() || a.isDefinitelyNull()) && b.isException()) combinedFlags |= EXCEPTION; else if (!(b.isNullOnSomePath() || b.isDefinitelyNull()) && a.isException()) combinedFlags |= EXCEPTION; // Left hand value should be >=, since it is used // as the first dimension of the matrix to index. if (aKind < bKind) { int tmp = aKind; aKind = bKind; bKind = tmp; } assert aKind >= bKind; int result = mergeMatrix[aKind][bKind]; IsNullValue resultValue; if (result == NO_KABOOM_NN) resultValue = noKaboomNonNullValue(a.locationOfKaBoom); else resultValue = instanceByFlagsList[combinedFlags >> FLAG_SHIFT][result]; return resultValue; }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/0ce739a8b463341c6a82af970a92dfc66721e26b/IsNullValue.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/npe/IsNullValue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
30230,
620,
2691,
12,
2520,
2041,
620,
279,
16,
30230,
620,
324,
13,
288,
202,
202,
430,
261,
69,
422,
324,
13,
327,
279,
31,
202,
202,
430,
261,
69,
18,
14963,
12,
70,
3719,
327,
279,
31,
202,
202,
474,
279,
5677,
273,
279,
18,
9224,
473,
374,
5297,
31,
202,
202,
474,
324,
5677,
273,
324,
18,
9224,
473,
374,
5297,
31,
202,
202,
474,
279,
5094,
273,
279,
18,
588,
5094,
5621,
202,
202,
474,
324,
5094,
273,
324,
18,
588,
5094,
5621,
9506,
202,
474,
8224,
5094,
273,
225,
279,
5094,
473,
324,
5094,
31,
9506,
202,
430,
16051,
12,
69,
18,
291,
2041,
1398,
17358,
743,
1435,
747,
279,
18,
291,
6443,
25818,
2041,
10756,
597,
324,
18,
291,
503,
10756,
9506,
202,
27458,
5094,
5626,
23136,
31,
202,
202,
12107,
1082,
202,
430,
16051,
12,
70,
18,
291,
2041,
1398,
17358,
743,
1435,
747,
324,
18,
291,
6443,
25818,
2041,
10756,
597,
279,
18,
291,
503,
10756,
9506,
202,
27458,
5094,
5626,
23136,
31,
9506,
202,
759,
13338,
948,
460,
1410,
506,
1545,
16,
3241,
518,
353,
1399,
202,
202,
759,
487,
326,
1122,
4968,
434,
326,
3148,
358,
770,
18,
202,
202,
430,
261,
69,
5677,
411,
324,
5677,
13,
288,
1082,
202,
474,
1853,
273,
279,
5677,
31,
1082,
202,
69,
5677,
273,
324,
5677,
31,
1082,
202,
70,
5677,
273,
1853,
31,
202,
202,
97,
202,
202,
11231,
279,
5677,
1545,
324,
5677,
31,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
30230,
620,
2691,
12,
2520,
2041,
620,
279,
16,
30230,
620,
324,
13,
288,
202,
202,
430,
261,
69,
422,
324,
13,
327,
279,
31,
202,
202,
430,
261,
69,
18,
14963,
12,
70,
3719,
327,
279,
31,
202,
202,
474,
279,
5677,
273,
279,
18,
9224,
473,
374,
5297,
31,
202,
202,
474,
324,
5677,
273,
324,
18,
9224,
473,
374,
5297,
31,
202,
202,
474,
279,
5094,
273,
279,
18,
588,
5094,
5621,
202,
202,
474,
324,
5094,
273,
324,
18,
588,
5094,
5621,
9506,
202,
474,
8224,
5094,
273,
225,
279,
5094,
473,
324,
5094,
31,
9506,
202,
430,
16051,
12,
69,
18,
291,
2041,
1398,
17358,
743,
1435,
747,
279,
18,
2
] |
CACHE.put(lang, extension);
|
this.nutchConf.setObject(lang, extension);
|
private static Extension getExtension(String lang) { Extension extension = (Extension) CACHE.get(lang); if (extension == null) { extension = findExtension(lang); CACHE.put(lang, extension); } return extension; }
|
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/329ff64e9d7295aff108f85e9a8103f5e5f8f398/AnalyzerFactory.java/clean/src/java/org/apache/nutch/analysis/AnalyzerFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
10021,
12374,
12,
780,
3303,
13,
288,
565,
10021,
2710,
273,
261,
3625,
13,
13669,
18,
588,
12,
4936,
1769,
565,
309,
261,
6447,
422,
446,
13,
288,
1377,
2710,
273,
1104,
3625,
12,
4936,
1769,
1377,
333,
18,
82,
322,
343,
3976,
18,
542,
921,
12,
4936,
16,
2710,
1769,
565,
289,
565,
327,
2710,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3238,
760,
10021,
12374,
12,
780,
3303,
13,
288,
565,
10021,
2710,
273,
261,
3625,
13,
13669,
18,
588,
12,
4936,
1769,
565,
309,
261,
6447,
422,
446,
13,
288,
1377,
2710,
273,
1104,
3625,
12,
4936,
1769,
1377,
333,
18,
82,
322,
343,
3976,
18,
542,
921,
12,
4936,
16,
2710,
1769,
565,
289,
565,
327,
2710,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( focus instanceof TableHandle )
|
if ( focus instanceof TableHandle || focus instanceof TableGroupHandle )
|
public void elementChanged( DesignElementHandle focus, NotificationEvent ev ) { if ( !isActive( ) ) { return; } switch ( ev.getEventType( ) ) { case NotificationEvent.CONTENT_EVENT : { markDirty( true ); if ( focus instanceof TableHandle ) { addListenerToChildren( ); } refreshChildren( ); refreshVisuals( ); break; } case NotificationEvent.PROPERTY_EVENT : { markDirty( true ); reLayout( ); PropertyEvent event = (PropertyEvent) ev; if ( event.getPropertyName( ).startsWith( "border" ) )//$NON-NLS-1$ { refreshVisuals( ); } if ( event.getPropertyName( ).equals( Style.PADDING_TOP_PROP ) || event.getPropertyName( ) .equals( Style.PADDING_BOTTOM_PROP ) || event.getPropertyName( ) .equals( Style.PADDING_LEFT_PROP ) || event.getPropertyName( ) .equals( Style.PADDING_RIGHT_PROP ) ) { invalidParent( ); } if ( event.getPropertyName( ).equals( ReportItem.WIDTH_PROP ) || event.getPropertyName( ) .equals( ReportItem.HEIGHT_PROP ) ) { invalidParent( ); } refresh( ); break; } case NotificationEvent.ELEMENT_DELETE_EVENT : { markDirty( true ); refresh( ); break; } case NotificationEvent.STYLE_EVENT : { markDirty( true ); invalidParent( ); refresh( ); } default : break; } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/1cdfe256fe9671b46f1986c9f6fec32e01807b6b/TableEditPart.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/TableEditPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
430,
261,
401,
291,
3896,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
9610,
261,
2113,
18,
588,
16346,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
8050,
1133,
18,
9689,
67,
10454,
294,
1082,
202,
95,
9506,
202,
3355,
10785,
12,
638,
11272,
9506,
202,
430,
261,
7155,
1276,
3555,
3259,
262,
9506,
202,
95,
6862,
202,
1289,
2223,
774,
4212,
12,
11272,
9506,
202,
97,
9506,
202,
9144,
4212,
12,
11272,
9506,
202,
9144,
3282,
12588,
12,
11272,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
8050,
1133,
18,
9900,
67,
10454,
294,
1082,
202,
95,
9506,
202,
3355,
10785,
12,
638,
11272,
9506,
202,
266,
3744,
12,
11272,
9506,
202,
1396,
1133,
871,
273,
261,
1396,
1133,
13,
2113,
31,
9506,
202,
430,
261,
871,
18,
588,
13073,
12,
262,
18,
17514,
1190,
12,
315,
8815,
6,
262,
262,
759,
8,
3993,
17,
5106,
17,
21,
8,
9506,
202,
95,
6862,
202,
9144,
3282,
12588,
12,
11272,
9506,
202,
97,
9506,
202,
430,
261,
871,
18,
588,
13073,
12,
262,
18,
14963,
12,
9767,
18,
52,
26710,
67,
10462,
67,
15811,
262,
25083,
202,
20081,
871,
18,
588,
13073,
12,
262,
6862,
9506,
202,
18,
14963,
12,
9767,
18,
52,
26710,
67,
28891,
67,
15811,
262,
25083,
202,
20081,
871,
18,
588,
13073,
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,
930,
5033,
12,
29703,
1046,
3259,
7155,
16,
8050,
1133,
2113,
262,
202,
95,
202,
202,
430,
261,
401,
291,
3896,
12,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
9610,
261,
2113,
18,
588,
16346,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
8050,
1133,
18,
9689,
67,
10454,
294,
1082,
202,
95,
9506,
202,
3355,
10785,
12,
638,
11272,
9506,
202,
430,
261,
7155,
1276,
3555,
3259,
262,
9506,
202,
95,
6862,
202,
1289,
2223,
774,
4212,
12,
11272,
9506,
202,
97,
9506,
202,
9144,
4212,
12,
11272,
9506,
202,
9144,
3282,
12588,
12,
11272,
9506,
202,
8820,
31,
1082,
202,
97,
1082,
202,
3593,
8050,
2
] |
return ( (ChartWizardContext) getContext( ) ).getDataServiceProvider( ) .getReportDataSet( ) != null || ( (ChartWizardContext) getContext( ) ).getDataServiceProvider( ) .getBoundDataSet( ) != null;
|
return getDataServiceProvider( ).getReportDataSet( ) != null || getDataServiceProvider( ).getBoundDataSet( ) != null;
|
private boolean hasDataSet( ) { return ( (ChartWizardContext) getContext( ) ).getDataServiceProvider( ) .getReportDataSet( ) != null || ( (ChartWizardContext) getContext( ) ).getDataServiceProvider( ) .getBoundDataSet( ) != null; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/649fa478aae2cd4788d2d0f5d2137f32e8b838ed/TaskFormatChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskFormatChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
711,
13676,
12,
262,
202,
95,
202,
202,
2463,
261,
261,
7984,
27130,
1042,
13,
6474,
12,
262,
262,
18,
588,
751,
16300,
12,
262,
9506,
202,
18,
588,
4820,
13676,
12,
262,
480,
446,
9506,
202,
20081,
261,
261,
7984,
27130,
1042,
13,
6474,
12,
262,
262,
18,
588,
751,
16300,
12,
262,
25083,
202,
18,
588,
3499,
13676,
12,
262,
480,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
711,
13676,
12,
262,
202,
95,
202,
202,
2463,
261,
261,
7984,
27130,
1042,
13,
6474,
12,
262,
262,
18,
588,
751,
16300,
12,
262,
9506,
202,
18,
588,
4820,
13676,
12,
262,
480,
446,
9506,
202,
20081,
261,
261,
7984,
27130,
1042,
13,
6474,
12,
262,
262,
18,
588,
751,
16300,
12,
262,
25083,
202,
18,
588,
3499,
13676,
12,
262,
480,
446,
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
] |
}
|
}
|
public int hashCode() { if (m_uuid == null) { return 509; } else { return m_uuid.hashCode(); } }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8559f73a78ab4b2e227015e778727c8857b1937f/CmsDriverManager.java/clean/src/org/opencms/db/CmsDriverManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
13374,
1435,
288,
5411,
309,
261,
81,
67,
7080,
422,
446,
13,
288,
7734,
327,
1381,
5908,
31,
5411,
289,
469,
288,
7734,
327,
312,
67,
7080,
18,
2816,
1085,
5621,
5411,
289,
10792,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
13374,
1435,
288,
5411,
309,
261,
81,
67,
7080,
422,
446,
13,
288,
7734,
327,
1381,
5908,
31,
5411,
289,
469,
288,
7734,
327,
312,
67,
7080,
18,
2816,
1085,
5621,
5411,
289,
10792,
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
] |
WindowPeer wp = (WindowPeer) peer; wp.toBack();
|
if( alwaysOnTop ) setAlwaysOnTop( false ); ( (WindowPeer) peer ).toBack();
|
public void toBack() { if (peer != null) { WindowPeer wp = (WindowPeer) peer; wp.toBack(); } }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/bbf4a3c323efc72d1aa98631a6ceee6b23e8592a/Window.java/buggy/java/awt/Window.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
358,
2711,
1435,
225,
288,
565,
309,
261,
12210,
480,
446,
13,
1377,
288,
202,
3829,
6813,
6357,
273,
261,
3829,
6813,
13,
4261,
31,
202,
8612,
18,
869,
2711,
5621,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
358,
2711,
1435,
225,
288,
565,
309,
261,
12210,
480,
446,
13,
1377,
288,
202,
3829,
6813,
6357,
273,
261,
3829,
6813,
13,
4261,
31,
202,
8612,
18,
869,
2711,
5621,
1377,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.pad = pad; }
|
this.pad = pad; }
|
private VirtualNodeHandler(ProActiveDescriptor pad) { this.pad = pad; }
|
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/000226e4ef1e3f125e75d956afcc83f758de61a3/ProActiveDescriptorHandler.java/buggy/src/org/objectweb/proactive/core/descriptor/xml/ProActiveDescriptorHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
7269,
907,
1503,
12,
626,
3896,
3187,
4627,
13,
288,
5411,
333,
18,
6982,
273,
4627,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
7269,
907,
1503,
12,
626,
3896,
3187,
4627,
13,
288,
5411,
333,
18,
6982,
273,
4627,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
UIJob updateJob = new UIJob(ProgressMessages.getString("DeferredTreeContentManager.AddChildrenJob")) {
|
UIJob updateJob = new UIJob( ProgressMessages.getString( "DeferredTreeContentManager.AddingChildren")) {
|
private void addChildren( final Object parent, final Object[] children, IProgressMonitor monitor) { UIJob updateJob = new UIJob(ProgressMessages.getString("DeferredTreeContentManager.AddChildrenJob")) { //$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { //Cancel the job if the tree viewer got closed if(treeViewer.getControl().isDisposed()) return Status.CANCEL_STATUS; monitor.beginTask(ProgressMessages.getString("DeferredTreeContentManager.AddingChildren"), 100); //$NON-NLS-1$ if (placeholder != null) { monitor.subTask(ProgressMessages.getString("DeferredTreeContentManager.RemovingProgress")); //$NON-NLS-1$ treeViewer.remove(placeholder); placeholder = null; } monitor.worked(20); treeViewer.add(parent, children); monitor.worked(80); return Status.OK_STATUS; } }; updateJob.schedule(); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/640beb96d9dcc0e04ca3d516f7dd3c156842daa1/DeferredTreeContentManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
4212,
12,
202,
202,
6385,
1033,
982,
16,
202,
202,
6385,
1033,
8526,
2325,
16,
202,
202,
45,
5491,
7187,
6438,
13,
288,
202,
202,
5370,
2278,
1089,
2278,
273,
394,
6484,
2278,
12,
10980,
5058,
18,
588,
780,
12,
315,
16886,
2471,
1350,
1318,
18,
13962,
4212,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
20308,
261,
5836,
17,
24060,
13,
9506,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
8298,
18,
5370,
2278,
7,
2681,
382,
57,
1285,
76,
896,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
13,
9506,
1195,
1082,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
759,
6691,
326,
1719,
309,
326,
2151,
14157,
2363,
4375,
9506,
202,
430,
12,
3413,
18415,
18,
588,
3367,
7675,
291,
1669,
7423,
10756,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
6862,
202,
10259,
18,
10086,
2174,
12,
5491,
5058,
18,
588,
780,
2932,
16886,
2471,
1350,
1318,
18,
13962,
4212,
6,
3631,
2130,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
430,
261,
12988,
480,
446,
13,
288,
6862,
202,
10259,
18,
1717,
2174,
12,
5491,
5058,
18,
588,
780,
2932,
16886,
2471,
1350,
1318,
18,
18939,
5491,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
3413,
18415,
18,
4479,
12,
12988,
1769,
6862,
202,
12988,
273,
446,
31,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
4212,
12,
202,
202,
6385,
1033,
982,
16,
202,
202,
6385,
1033,
8526,
2325,
16,
202,
202,
45,
5491,
7187,
6438,
13,
288,
202,
202,
5370,
2278,
1089,
2278,
273,
394,
6484,
2278,
12,
10980,
5058,
18,
588,
780,
12,
315,
16886,
2471,
1350,
1318,
18,
13962,
4212,
6,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
20308,
261,
5836,
17,
24060,
13,
9506,
380,
632,
5946,
2358,
18,
20416,
18,
4881,
18,
8298,
18,
5370,
2278,
7,
2681,
382,
57,
1285,
76,
896,
12,
3341,
18,
20416,
18,
3644,
18,
9448,
18,
45,
5491,
7187,
13,
9506,
1195,
1082,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
2
] |
/******************/
|
public List addSpecifications(File specificationFile, boolean ignoreErors, List errorMessages) throws JDOMException, IOException, YPersistenceException { logger.debug("--> addSpecification: File=" + specificationFile.getAbsolutePath()); List returnIDs = new Vector(); List newSpecifications; String parsingMsg; try { //if there is an XML Schema problem _report it and abort newSpecifications = YMarshal.unmarshalSpecifications(specificationFile.getAbsolutePath()); } catch (YSyntaxException e) { parsingMsg = e.getMessage(); //catch the xml parsers exception, //transform it into YAWL format and abort the load for (StringTokenizer tokens = new StringTokenizer(parsingMsg, "\n"); tokens.hasMoreTokens();) { String msg = tokens.nextToken(); errorMessages.add(new YVerificationMessage(null, msg, YVerificationMessage.ERROR_STATUS)); } logger.debug("<-- addSpecifcations: syntax exceptions found"); return returnIDs; } catch (YSchemaBuildingException e) { logger.error("Could not build schema.", e); e.printStackTrace(); return null; } for (Iterator iterator = newSpecifications.iterator(); iterator.hasNext();) { YSpecification specification = (YSpecification) iterator.next(); List messages = specification.verify(); if (messages.size() > 0 && !ignoreErors) { YMessagePrinter.printMessages(messages); errorMessages.addAll(messages); } //if the error messages are empty or contain only warnings if (YVerificationMessage.containsNoErrors(errorMessages)) { boolean success = loadSpecification(specification); if (success) { logger.info("Persisting specification loaded from file " + specificationFile.getAbsolutePath()); YSpecFile yspec = new YSpecFile(specificationFile.getAbsolutePath()); /* INSERTED FOR PERSISTANCE */// TODO if (!restoring) {// logger.info("Persisting specification loaded from file " + specificationFile.getAbsolutePath());// YSpecFile yspec = new YSpecFile(specificationFile.getAbsolutePath());////// TODO if (journalising) {//// YPersistenceManager pmgr = new YPersistenceManager(getPMSessionFactory());//// try {//// pmgr.startTransactionalSession();//// pmgr.storeObject(yspec);//// pmgr.commit();//// } catch (YPersistenceException e) {//// throw new YPersistenceException("Failrue whilst persisting new specification", e);//// }//// }// } /******************/ returnIDs.add(specification.getID()); } else {//the user has loaded the specification with identical id errorMessages.add(new YVerificationMessage(this, "There is a specification with an identical id to [" + specification.getID() + "] already loaded into the engine.", YVerificationMessage.ERROR_STATUS)); } } } logger.debug("<-- addSpecifications: " + returnIDs.size() + " IDs loaded"); return returnIDs; }
|
51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/ed1da828f89690667ee030203e85ed07d67587cc/AbstractEngine.java/clean/yawl/src/au/edu/qut/yawl/engine/AbstractEngine.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
527,
27044,
12,
812,
7490,
812,
16,
1250,
2305,
29228,
1383,
16,
987,
22241,
13,
1216,
804,
8168,
503,
16,
1860,
16,
1624,
13182,
503,
288,
5411,
1194,
18,
4148,
2932,
413,
34,
527,
8615,
30,
1387,
1546,
397,
7490,
812,
18,
588,
10368,
743,
10663,
5411,
987,
327,
5103,
273,
394,
5589,
5621,
5411,
987,
394,
27044,
31,
5411,
514,
5811,
3332,
31,
5411,
775,
288,
7734,
368,
430,
1915,
353,
392,
3167,
4611,
6199,
389,
6006,
518,
471,
6263,
7734,
394,
27044,
273,
1624,
8105,
18,
318,
3108,
27044,
12,
31543,
812,
18,
588,
10368,
743,
10663,
5411,
289,
1044,
261,
61,
14714,
425,
13,
288,
7734,
5811,
3332,
273,
425,
18,
24906,
5621,
7734,
368,
14683,
326,
2025,
14212,
1520,
16,
7734,
368,
6547,
518,
1368,
1624,
12999,
48,
740,
471,
6263,
326,
1262,
7734,
364,
261,
780,
10524,
2430,
273,
394,
16370,
12,
24979,
3332,
16,
1548,
82,
8863,
2430,
18,
5332,
7417,
5157,
5621,
13,
288,
10792,
514,
1234,
273,
2430,
18,
4285,
1345,
5621,
10792,
22241,
18,
1289,
12,
2704,
1624,
13483,
1079,
12,
2011,
16,
1234,
16,
1624,
13483,
1079,
18,
3589,
67,
8608,
10019,
7734,
289,
7734,
1194,
18,
4148,
2932,
32,
413,
527,
1990,
430,
71,
1012,
30,
6279,
4798,
1392,
8863,
7734,
327,
327,
5103,
31,
5411,
289,
1044,
261,
61,
3078,
16713,
503,
425,
13,
288,
7734,
1194,
18,
1636,
2932,
4445,
486,
1361,
1963,
1199,
16,
425,
1769,
7734,
425,
18,
1188,
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,
987,
527,
27044,
12,
812,
7490,
812,
16,
1250,
2305,
29228,
1383,
16,
987,
22241,
13,
1216,
804,
8168,
503,
16,
1860,
16,
1624,
13182,
503,
288,
5411,
1194,
18,
4148,
2932,
413,
34,
527,
8615,
30,
1387,
1546,
397,
7490,
812,
18,
588,
10368,
743,
10663,
5411,
987,
327,
5103,
273,
394,
5589,
5621,
5411,
987,
394,
27044,
31,
5411,
514,
5811,
3332,
31,
5411,
775,
288,
7734,
368,
430,
1915,
353,
392,
3167,
4611,
6199,
389,
6006,
518,
471,
6263,
7734,
394,
27044,
273,
1624,
8105,
18,
318,
3108,
27044,
12,
31543,
812,
18,
588,
10368,
743,
10663,
5411,
289,
1044,
261,
61,
14714,
425,
13,
288,
7734,
5811,
3332,
273,
425,
18,
24906,
5621,
2
] |
|
public void addWarning(String msg) { DriverManager.println(msg); // Add the warning to the chain if(firstWarning!=null) firstWarning.setNextWarning(new SQLWarning(msg)); else firstWarning = new SQLWarning(msg); // Now check for some specific messages // This is obsolete in 6.5, but I've left it in here so if we need to use this // technique again, we'll know where to place it. // // This is generated by the SQL "show datestyle" //if(msg.startsWith("NOTICE:") && msg.indexOf("DateStyle")>0) { //// 13 is the length off "DateStyle is " //msg = msg.substring(msg.indexOf("DateStyle is ")+13); // //for(int i=0;i<dateStyles.length;i+=2) //if(msg.startsWith(dateStyles[i])) //currentDateStyle=i+1; // this is the index of the format //} }
|
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,
918,
527,
6210,
12,
780,
1234,
13,
565,
288,
202,
4668,
1318,
18,
8222,
12,
3576,
1769,
202,
759,
1436,
326,
3436,
358,
326,
2687,
202,
430,
12,
3645,
6210,
5,
33,
2011,
13,
202,
565,
1122,
6210,
18,
542,
2134,
6210,
12,
2704,
3063,
6210,
12,
3576,
10019,
202,
12107,
202,
565,
1122,
6210,
273,
394,
3063,
6210,
12,
3576,
1769,
202,
759,
4494,
866,
364,
2690,
2923,
2743,
202,
759,
1220,
353,
27191,
316,
1666,
18,
25,
16,
1496,
467,
8081,
2002,
518,
316,
2674,
1427,
309,
732,
1608,
358,
999,
333,
202,
759,
17734,
2161,
3382,
16,
732,
5614,
5055,
1625,
358,
3166,
518,
18,
202,
759,
202,
759,
1220,
353,
4374,
635,
326,
3063,
315,
4500,
1150,
19706,
6,
202,
759,
430,
12,
3576,
18,
17514,
1190,
2932,
20559,
2773,
13,
597,
1234,
18,
31806,
2932,
1626,
2885,
7923,
34,
20,
13,
288,
202,
1307,
5958,
353,
326,
769,
3397,
315,
1626,
2885,
353,
315,
202,
759,
3576,
273,
1234,
18,
28023,
12,
3576,
18,
31806,
2932,
1626,
2885,
353,
9369,
15,
3437,
1769,
202,
759,
202,
759,
1884,
12,
474,
277,
33,
20,
31,
77,
32,
712,
9725,
18,
2469,
31,
77,
15,
33,
22,
13,
202,
759,
430,
12,
3576,
18,
17514,
1190,
12,
712,
9725,
63,
77,
22643,
202,
759,
2972,
1626,
2885,
33,
77,
15,
21,
31,
368,
333,
353,
326,
770,
434,
326,
740,
202,
759,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
6210,
12,
780,
1234,
13,
565,
288,
202,
4668,
1318,
18,
8222,
12,
3576,
1769,
202,
759,
1436,
326,
3436,
358,
326,
2687,
202,
430,
12,
3645,
6210,
5,
33,
2011,
13,
202,
565,
1122,
6210,
18,
542,
2134,
6210,
12,
2704,
3063,
6210,
12,
3576,
10019,
202,
12107,
202,
565,
1122,
6210,
273,
394,
3063,
6210,
12,
3576,
1769,
202,
759,
4494,
866,
364,
2690,
2923,
2743,
202,
759,
1220,
353,
27191,
316,
1666,
18,
25,
16,
1496,
467,
8081,
2002,
518,
316,
2674,
1427,
309,
732,
1608,
358,
999,
333,
202,
759,
17734,
2161,
3382,
16,
732,
5614,
5055,
1625,
358,
3166,
518,
18,
202,
759,
202,
759,
1220,
353,
4374,
635,
326,
2
] |
||
modelAndView.addObject(ControllerDynamicMethods.ERRORS_PROPERTY, controller.getProperty(ControllerDynamicMethods.ERRORS_PROPERTY) );
|
public ModelAndView handleActionResponse( GroovyObject controller,Object returnValue,String closurePropertyName, String viewName) { boolean viewNameBlank = (viewName == null || viewName.length() == 0); // reset the metaclass ModelAndView explicityModelAndView = (ModelAndView)controller.getProperty(ControllerDynamicMethods.MODEL_AND_VIEW_PROPERTY); if(explicityModelAndView != null) { return explicityModelAndView; } else if (returnValue == null) { if (viewNameBlank) { return null; } else { return new ModelAndView(viewName, new BeanMap(controller)); } } else if (returnValue instanceof Map) { // remove any Proxy wrappers and set the adaptee as the value removeProxiesFromModelObjects((Map)returnValue); if (viewNameBlank) { throw new NoViewNameDefinedException("Map instance returned by and no view name specified for closure on property [" + closurePropertyName + "] in controller [" + controller.getClass() + "]!"); } else { Map returnMap = (Map)returnValue; returnMap.put( ControllerDynamicMethods.ERRORS_PROPERTY, controller.getProperty(ControllerDynamicMethods.ERRORS_PROPERTY) ); if(!this.chainModel.isEmpty()) { this.chainModel.putAll( returnMap ); return new ModelAndView(viewName, this.chainModel); } else { return new ModelAndView(viewName, returnMap); } } } else if (returnValue instanceof ModelAndView) { ModelAndView modelAndView = (ModelAndView)returnValue; // remove any Proxy wrappers and set the adaptee as the value Map modelMap = modelAndView.getModel(); removeProxiesFromModelObjects(modelMap); modelAndView.addObject(ControllerDynamicMethods.ERRORS_PROPERTY, controller.getProperty(ControllerDynamicMethods.ERRORS_PROPERTY) ); if(!this.chainModel.isEmpty()) { this.chainModel.putAll(modelMap); modelAndView.addAllObjects(this.chainModel); } if (modelAndView.getView() == null && modelAndView.getViewName() == null) { if (viewNameBlank) { throw new NoViewNameDefinedException("ModelAndView instance returned by and no view name defined by nor for closure on property [" + closurePropertyName + "] in controller [" + controller.getClass() + "]!"); } else { modelAndView.setViewName(viewName); } } return modelAndView; } else { Map modelMap = new BeanMap(controller); ModelAndView modelAndView = new ModelAndView(viewName, modelMap); if(!this.chainModel.isEmpty()) { this.chainModel.putAll(modelMap); modelAndView.addAllObjects(this.chainModel); } return modelAndView; } }
|
51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/9319b2487e82433202c4b7e86c557193a7ad2ae3/SimpleGrailsControllerHelper.java/buggy/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsControllerHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3164,
1876,
1767,
1640,
1803,
1064,
12,
20841,
921,
2596,
16,
921,
7750,
16,
780,
7213,
13073,
16,
514,
22244,
13,
288,
202,
202,
6494,
22244,
7796,
273,
261,
1945,
461,
422,
446,
747,
22244,
18,
2469,
1435,
422,
374,
1769,
202,
202,
759,
2715,
326,
2191,
1106,
202,
202,
1488,
1876,
1767,
431,
20458,
1488,
1876,
1767,
273,
261,
1488,
1876,
1767,
13,
5723,
18,
588,
1396,
12,
2933,
9791,
4712,
18,
17391,
67,
4307,
67,
12145,
67,
9900,
1769,
3639,
309,
12,
338,
20458,
1488,
1876,
1767,
480,
446,
13,
288,
5411,
327,
431,
20458,
1488,
1876,
1767,
31,
3639,
289,
3639,
469,
309,
261,
2463,
620,
422,
446,
13,
288,
1082,
202,
430,
261,
1945,
461,
7796,
13,
288,
9506,
202,
2463,
446,
31,
1082,
202,
97,
469,
288,
9506,
202,
2463,
394,
3164,
1876,
1767,
12,
1945,
461,
16,
394,
7704,
863,
12,
5723,
10019,
1082,
202,
97,
202,
202,
97,
469,
309,
261,
2463,
620,
1276,
1635,
13,
288,
1082,
202,
759,
1206,
1281,
7659,
21589,
471,
444,
326,
5855,
1340,
487,
326,
460,
1082,
202,
4479,
21488,
1265,
1488,
4710,
12443,
863,
13,
2463,
620,
1769,
1082,
202,
430,
261,
1945,
461,
7796,
13,
288,
9506,
202,
12849,
394,
2631,
27146,
8116,
503,
2932,
863,
791,
2106,
635,
471,
1158,
1476,
508,
1269,
364,
7213,
603,
1272,
8247,
397,
7213,
13073,
397,
9850,
316,
2596,
8247,
397,
2596,
18,
588,
797,
1435,
397,
9850,
4442,
1769,
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,
3164,
1876,
1767,
1640,
1803,
1064,
12,
20841,
921,
2596,
16,
921,
7750,
16,
780,
7213,
13073,
16,
514,
22244,
13,
288,
202,
202,
6494,
22244,
7796,
273,
261,
1945,
461,
422,
446,
747,
22244,
18,
2469,
1435,
422,
374,
1769,
202,
202,
759,
2715,
326,
2191,
1106,
202,
202,
1488,
1876,
1767,
431,
20458,
1488,
1876,
1767,
273,
261,
1488,
1876,
1767,
13,
5723,
18,
588,
1396,
12,
2933,
9791,
4712,
18,
17391,
67,
4307,
67,
12145,
67,
9900,
1769,
3639,
309,
12,
338,
20458,
1488,
1876,
1767,
480,
446,
13,
288,
5411,
327,
431,
20458,
1488,
1876,
1767,
31,
3639,
289,
3639,
469,
309,
261,
2463,
620,
422,
446,
13,
288,
1082,
202,
430,
2
] |
|
double [] m = {mle};
|
double[] m = {mle};
|
private double calculateBIC(int [] instList, Instance center, double mle, Instances model) { int [][] w1 = new int[1][instList.length]; for (int i = 0; i < instList.length; i++) { w1[0][i] = instList[i]; } double [] m = {mle}; Instances w2 = new Instances(model, 1); w2.add(center); return calculateBIC(w1, w2, m); }
|
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/a69b2abf668082a9b5ae27956ab7bf1bbac7a793/XMeans.java/buggy/trunk/weka/clusterers/XMeans.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
4604,
38,
2871,
12,
474,
5378,
1804,
682,
16,
5180,
4617,
16,
9506,
1377,
1645,
312,
298,
16,
18357,
938,
13,
288,
565,
509,
5378,
8526,
341,
21,
273,
394,
509,
63,
21,
6362,
8591,
682,
18,
2469,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1804,
682,
18,
2469,
31,
277,
27245,
288,
1377,
341,
21,
63,
20,
6362,
77,
65,
273,
1804,
682,
63,
77,
15533,
565,
289,
565,
1645,
8526,
312,
273,
288,
81,
298,
20451,
565,
18357,
341,
22,
273,
394,
18357,
12,
2284,
16,
404,
1769,
565,
341,
22,
18,
1289,
12,
5693,
1769,
565,
327,
4604,
38,
2871,
12,
91,
21,
16,
341,
22,
16,
312,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1645,
4604,
38,
2871,
12,
474,
5378,
1804,
682,
16,
5180,
4617,
16,
9506,
1377,
1645,
312,
298,
16,
18357,
938,
13,
288,
565,
509,
5378,
8526,
341,
21,
273,
394,
509,
63,
21,
6362,
8591,
682,
18,
2469,
15533,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1804,
682,
18,
2469,
31,
277,
27245,
288,
1377,
341,
21,
63,
20,
6362,
77,
65,
273,
1804,
682,
63,
77,
15533,
565,
289,
565,
1645,
8526,
312,
273,
288,
81,
298,
20451,
565,
18357,
341,
22,
273,
394,
18357,
12,
2284,
16,
404,
1769,
565,
341,
22,
18,
1289,
12,
5693,
1769,
565,
327,
4604,
38,
2871,
12,
91,
21,
16,
341,
22,
16,
312,
1769,
2
] |
getFlowCtx().start(new CompanyEditWidget(id), null, null);
|
getFlowCtx().start(new CompanyEditWidget(id), null, new FlowContext.Handler() { public void onFinish(Object returnValue) throws Exception { log.debug("Company added with Id of " + returnValue + " sucessfully"); refreshList(); } public void onCancel() throws Exception { } } );
|
public void handleEventEdit(String eventParameter) throws Exception { log.debug("Event 'edit' received!"); Long id = ((CompanyMO) this.list.getRowFromRequestId(eventParameter)).getId(); log.debug("Company selected with Id of " + id); getFlowCtx().start(new CompanyEditWidget(id), null, null); }
|
53585 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53585/ef7d1cf6adfc3a8026b62261c68d1f640972fcdd/CompanyListWidget.java/buggy/examples/main/src/org/araneaframework/example/main/web/company/CompanyListWidget.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1640,
1133,
4666,
12,
780,
871,
1662,
13,
1216,
1185,
288,
565,
613,
18,
4148,
2932,
1133,
296,
4619,
11,
5079,
4442,
1769,
565,
3407,
612,
273,
14015,
12627,
5980,
13,
333,
18,
1098,
18,
588,
1999,
1265,
15493,
12,
2575,
1662,
13,
2934,
26321,
5621,
565,
613,
18,
4148,
2932,
12627,
3170,
598,
3124,
434,
315,
397,
612,
1769,
565,
2812,
821,
6442,
7675,
1937,
12,
2704,
26782,
4666,
4609,
12,
350,
3631,
446,
16,
394,
9473,
1042,
18,
1503,
1435,
288,
1071,
918,
603,
11641,
12,
921,
7750,
13,
1216,
1185,
288,
613,
18,
4148,
2932,
12627,
3096,
598,
3124,
434,
315,
397,
7750,
397,
315,
1597,
614,
4095,
8863,
4460,
682,
5621,
289,
1071,
918,
603,
6691,
1435,
1216,
1185,
288,
289,
289,
11272,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1640,
1133,
4666,
12,
780,
871,
1662,
13,
1216,
1185,
288,
565,
613,
18,
4148,
2932,
1133,
296,
4619,
11,
5079,
4442,
1769,
565,
3407,
612,
273,
14015,
12627,
5980,
13,
333,
18,
1098,
18,
588,
1999,
1265,
15493,
12,
2575,
1662,
13,
2934,
26321,
5621,
565,
613,
18,
4148,
2932,
12627,
3170,
598,
3124,
434,
315,
397,
612,
1769,
565,
2812,
821,
6442,
7675,
1937,
12,
2704,
26782,
4666,
4609,
12,
350,
3631,
446,
16,
394,
9473,
1042,
18,
1503,
1435,
288,
1071,
918,
603,
11641,
12,
921,
7750,
13,
1216,
1185,
288,
613,
18,
4148,
2932,
12627,
3096,
598,
3124,
434,
315,
397,
7750,
397,
315,
1597,
614,
4095,
8863,
4460,
682,
5621,
289,
2
] |
index = new Integer(getNumTypes());
|
index = (Integer)(getNumTypes());
|
int getIndexOfType(ObjectType type) { Integer index = typeIndexMap.get(type); if (index == null) { index = new Integer(getNumTypes()); typeList.add(type); typeIndexMap.put(type, index); } return index.intValue(); }
|
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/56b036bb1acb557bc0a2ffd171d54beee49f5094/ExceptionSetFactory.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/type/ExceptionSetFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
8088,
18859,
12,
17610,
618,
13,
288,
202,
202,
4522,
770,
273,
618,
1016,
863,
18,
588,
12,
723,
1769,
202,
202,
430,
261,
1615,
422,
446,
13,
288,
1082,
202,
1615,
273,
394,
2144,
12,
588,
2578,
2016,
10663,
1082,
202,
723,
682,
18,
1289,
12,
723,
1769,
1082,
202,
723,
1016,
863,
18,
458,
12,
723,
16,
770,
1769,
202,
202,
97,
202,
202,
2463,
770,
18,
474,
620,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
8088,
18859,
12,
17610,
618,
13,
288,
202,
202,
4522,
770,
273,
618,
1016,
863,
18,
588,
12,
723,
1769,
202,
202,
430,
261,
1615,
422,
446,
13,
288,
1082,
202,
1615,
273,
394,
2144,
12,
588,
2578,
2016,
10663,
1082,
202,
723,
682,
18,
1289,
12,
723,
1769,
1082,
202,
723,
1016,
863,
18,
458,
12,
723,
16,
770,
1769,
202,
202,
97,
202,
202,
2463,
770,
18,
474,
620,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (self instanceof PyUnicode||arg0 instanceof PyUnicode) {
|
if (self instanceof PyUnicode||(arg0.__len__() > 0 && arg0.__getitem__(0) instanceof PyUnicode)) {
|
public static void typeSetup(PyObject dict,PyType.Newstyle marker) { class exposed___ne__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___ne__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___ne__((PyString)self,info); } public PyObject __call__(PyObject arg0) { PyObject ret=self.str___ne__(arg0); if (ret==null) return Py.NotImplemented; return ret; } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; PyObject ret=self.str___ne__(arg0); if (ret==null) return Py.NotImplemented; return ret; } } dict.__setitem__("__ne__",new PyMethodDescr("__ne__",PyString.class,1,1,new exposed___ne__(null,null))); class exposed___eq__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___eq__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___eq__((PyString)self,info); } public PyObject __call__(PyObject arg0) { PyObject ret=self.str___eq__(arg0); if (ret==null) return Py.NotImplemented; return ret; } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; PyObject ret=self.str___eq__(arg0); if (ret==null) return Py.NotImplemented; return ret; } } dict.__setitem__("__eq__",new PyMethodDescr("__eq__",PyString.class,1,1,new exposed___eq__(null,null))); class exposed___contains__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___contains__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___contains__((PyString)self,info); } public PyObject __call__(PyObject arg0) { return Py.newBoolean(self.str___contains__(arg0)); } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; return Py.newBoolean(self.str___contains__(arg0)); } } dict.__setitem__("__contains__",new PyMethodDescr("__contains__",PyString.class,1,1,new exposed___contains__(null,null))); class exposed___len__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___len__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___len__((PyString)self,info); } public PyObject __call__() { return Py.newInteger(self.str___len__()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newInteger(self.str___len__()); } } dict.__setitem__("__len__",new PyMethodDescr("__len__",PyString.class,0,0,new exposed___len__(null,null))); class exposed___add__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___add__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___add__((PyString)self,info); } public PyObject __call__(PyObject arg0) { return self.str___add__(arg0); } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; return self.str___add__(arg0); } } dict.__setitem__("__add__",new PyMethodDescr("__add__",PyString.class,1,1,new exposed___add__(null,null))); class exposed___getitem__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___getitem__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___getitem__((PyString)self,info); } public PyObject __call__(PyObject arg0) { return self.str___getitem__(arg0); } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; return self.str___getitem__(arg0); } } dict.__setitem__("__getitem__",new PyMethodDescr("__getitem__",PyString.class,1,1,new exposed___getitem__(null,null))); class exposed___getslice__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___getslice__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___getslice__((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1,PyObject arg2) { return self.str___getslice__(arg0,arg1,arg2); } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1,PyObject arg2) { PyString self=(PyString)gself; return self.str___getslice__(arg0,arg1,arg2); } public PyObject __call__(PyObject arg0,PyObject arg1) { return self.str___getslice__(arg0,arg1); } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; return self.str___getslice__(arg0,arg1); } } dict.__setitem__("__getslice__",new PyMethodDescr("__getslice__",PyString.class,2,3,new exposed___getslice__(null,null))); class exposed___iter__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___iter__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___iter__((PyString)self,info); } public PyObject __call__() { return self.str___iter__(); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return self.str___iter__(); } } dict.__setitem__("__iter__",new PyMethodDescr("__iter__",PyString.class,0,0,new exposed___iter__(null,null))); class exposed___mul__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___mul__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___mul__((PyString)self,info); } public PyObject __call__(PyObject arg0) { return self.str___mul__(arg0); } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; return self.str___mul__(arg0); } } dict.__setitem__("__mul__",new PyMethodDescr("__mul__",PyString.class,1,1,new exposed___mul__(null,null))); class exposed___reduce__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___reduce__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___reduce__((PyString)self,info); } public PyObject __call__() { return self.str___reduce__(); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return self.str___reduce__(); } } dict.__setitem__("__reduce__",new PyMethodDescr("__reduce__",PyString.class,0,0,new exposed___reduce__(null,null))); class exposed___rmul__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___rmul__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___rmul__((PyString)self,info); } public PyObject __call__(PyObject arg0) { return self.str___rmul__(arg0); } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; return self.str___rmul__(arg0); } } dict.__setitem__("__rmul__",new PyMethodDescr("__rmul__",PyString.class,1,1,new exposed___rmul__(null,null))); class exposed___str__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___str__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___str__((PyString)self,info); } public PyObject __call__() { return self.str___str__(); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return self.str___str__(); } } dict.__setitem__("__str__",new PyMethodDescr("__str__",PyString.class,0,0,new exposed___str__(null,null))); class exposed___unicode__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___unicode__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___unicode__((PyString)self,info); } public PyObject __call__() { return self.str___unicode__(); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return self.str___unicode__(); } } dict.__setitem__("__unicode__",new PyMethodDescr("__unicode__",PyString.class,0,0,new exposed___unicode__(null,null))); class exposed___hash__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___hash__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___hash__((PyString)self,info); } public PyObject __call__() { return Py.newInteger(self.str_hashCode()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newInteger(self.str_hashCode()); } } dict.__setitem__("__hash__",new PyMethodDescr("__hash__",PyString.class,0,0,new exposed___hash__(null,null))); class exposed___repr__ extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed___repr__(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed___repr__((PyString)self,info); } public PyObject __call__() { return new PyString(self.str_toString()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_toString()); } } dict.__setitem__("__repr__",new PyMethodDescr("__repr__",PyString.class,0,0,new exposed___repr__(null,null))); class exposed_capitalize extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_capitalize(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_capitalize((PyString)self,info); } public PyObject __call__() { return new PyString(self.str_capitalize()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_capitalize()); } } dict.__setitem__("capitalize",new PyMethodDescr("capitalize",PyString.class,0,0,new exposed_capitalize(null,null))); class exposed_center extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_center(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_center((PyString)self,info); } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_center(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_center(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("center",new PyMethodDescr("center",PyString.class,1,1,new exposed_center(null,null))); class exposed_count extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_count(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_count((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1,PyObject arg2) { try { return Py.newInteger(self.str_count(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1,PyObject arg2) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_count(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return Py.newInteger(self.str_count(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_count(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return Py.newInteger(self.str_count(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_count(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("count",new PyMethodDescr("count",PyString.class,1,3,new exposed_count(null,null))); class exposed_decode extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_decode(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_decode((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return new PyString(self.str_decode(arg0.asString(0),arg1.asString(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return new PyString(self.str_decode(arg0.asString(0),arg1.asString(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_decode(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_decode(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__() { return new PyString(self.str_decode()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_decode()); } } dict.__setitem__("decode",new PyMethodDescr("decode",PyString.class,0,2,new exposed_decode(null,null))); class exposed_encode extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_encode(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_encode((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return new PyString(self.str_encode(arg0.asString(0),arg1.asString(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return new PyString(self.str_encode(arg0.asString(0),arg1.asString(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_encode(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_encode(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__() { return new PyString(self.str_encode()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_encode()); } } dict.__setitem__("encode",new PyMethodDescr("encode",PyString.class,0,2,new exposed_encode(null,null))); class exposed_endswith extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_endswith(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_endswith((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1,PyObject arg2) { try { return Py.newBoolean(self.str_endswith(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1,PyObject arg2) { PyString self=(PyString)gself; try { return Py.newBoolean(self.str_endswith(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return Py.newBoolean(self.str_endswith(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return Py.newBoolean(self.str_endswith(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return Py.newBoolean(self.str_endswith(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return Py.newBoolean(self.str_endswith(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("endswith",new PyMethodDescr("endswith",PyString.class,1,3,new exposed_endswith(null,null))); class exposed_expandtabs extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_expandtabs(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_expandtabs((PyString)self,info); } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_expandtabs(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_expandtabs(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__() { return new PyString(self.str_expandtabs()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_expandtabs()); } } dict.__setitem__("expandtabs",new PyMethodDescr("expandtabs",PyString.class,0,1,new exposed_expandtabs(null,null))); class exposed_find extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_find(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_find((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1,PyObject arg2) { try { return Py.newInteger(self.str_find(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1,PyObject arg2) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_find(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return Py.newInteger(self.str_find(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_find(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return Py.newInteger(self.str_find(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_find(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("find",new PyMethodDescr("find",PyString.class,1,3,new exposed_find(null,null))); class exposed_index extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_index(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_index((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1,PyObject arg2) { try { return Py.newInteger(self.str_index(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1,PyObject arg2) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_index(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return Py.newInteger(self.str_index(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_index(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return Py.newInteger(self.str_index(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_index(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("index",new PyMethodDescr("index",PyString.class,1,3,new exposed_index(null,null))); class exposed_isalnum extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_isalnum(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_isalnum((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_isalnum()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_isalnum()); } } dict.__setitem__("isalnum",new PyMethodDescr("isalnum",PyString.class,0,0,new exposed_isalnum(null,null))); class exposed_isalpha extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_isalpha(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_isalpha((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_isalpha()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_isalpha()); } } dict.__setitem__("isalpha",new PyMethodDescr("isalpha",PyString.class,0,0,new exposed_isalpha(null,null))); class exposed_isdecimal extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_isdecimal(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_isdecimal((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_isdecimal()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_isdecimal()); } } dict.__setitem__("isdecimal",new PyMethodDescr("isdecimal",PyString.class,0,0,new exposed_isdecimal(null,null))); class exposed_isdigit extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_isdigit(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_isdigit((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_isdigit()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_isdigit()); } } dict.__setitem__("isdigit",new PyMethodDescr("isdigit",PyString.class,0,0,new exposed_isdigit(null,null))); class exposed_islower extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_islower(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_islower((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_islower()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_islower()); } } dict.__setitem__("islower",new PyMethodDescr("islower",PyString.class,0,0,new exposed_islower(null,null))); class exposed_isnumeric extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_isnumeric(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_isnumeric((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_isnumeric()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_isnumeric()); } } dict.__setitem__("isnumeric",new PyMethodDescr("isnumeric",PyString.class,0,0,new exposed_isnumeric(null,null))); class exposed_isspace extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_isspace(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_isspace((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_isspace()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_isspace()); } } dict.__setitem__("isspace",new PyMethodDescr("isspace",PyString.class,0,0,new exposed_isspace(null,null))); class exposed_istitle extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_istitle(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_istitle((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_istitle()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_istitle()); } } dict.__setitem__("istitle",new PyMethodDescr("istitle",PyString.class,0,0,new exposed_istitle(null,null))); class exposed_isunicode extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_isunicode(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_isunicode((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_isunicode()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_isunicode()); } } dict.__setitem__("isunicode",new PyMethodDescr("isunicode",PyString.class,0,0,new exposed_isunicode(null,null))); class exposed_isupper extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_isupper(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_isupper((PyString)self,info); } public PyObject __call__() { return Py.newBoolean(self.str_isupper()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return Py.newBoolean(self.str_isupper()); } } dict.__setitem__("isupper",new PyMethodDescr("isupper",PyString.class,0,0,new exposed_isupper(null,null))); class exposed_join extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_join(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_join((PyString)self,info); } public PyObject __call__(PyObject arg0) { String result=self.str_join(arg0); //XXX: do we really need to check self? if (self instanceof PyUnicode||arg0 instanceof PyUnicode) { return new PyUnicode(result); } else { return new PyString(result); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; String result=self.str_join(arg0); //XXX: do we really need to check self? if (self instanceof PyUnicode||arg0 instanceof PyUnicode) { return new PyUnicode(result); } else { return new PyString(result); } } } dict.__setitem__("join",new PyMethodDescr("join",PyString.class,1,1,new exposed_join(null,null))); class exposed_ljust extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_ljust(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_ljust((PyString)self,info); } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_ljust(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_ljust(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("ljust",new PyMethodDescr("ljust",PyString.class,1,1,new exposed_ljust(null,null))); class exposed_lower extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_lower(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_lower((PyString)self,info); } public PyObject __call__() { return new PyString(self.str_lower()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_lower()); } } dict.__setitem__("lower",new PyMethodDescr("lower",PyString.class,0,0,new exposed_lower(null,null))); class exposed_lstrip extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_lstrip(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_lstrip((PyString)self,info); } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_lstrip(arg0.asStringOrNull(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_lstrip(arg0.asStringOrNull(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__() { return new PyString(self.str_lstrip()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_lstrip()); } } dict.__setitem__("lstrip",new PyMethodDescr("lstrip",PyString.class,0,1,new exposed_lstrip(null,null))); class exposed_replace extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_replace(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_replace((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1,PyObject arg2) { try { return new PyString(self.str_replace(arg0.asString(0),arg1.asString(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 2: msg="expected an integer"; break; case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1,PyObject arg2) { PyString self=(PyString)gself; try { return new PyString(self.str_replace(arg0.asString(0),arg1.asString(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 2: msg="expected an integer"; break; case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return new PyString(self.str_replace(arg0.asString(0),arg1.asString(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return new PyString(self.str_replace(arg0.asString(0),arg1.asString(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("replace",new PyMethodDescr("replace",PyString.class,2,3,new exposed_replace(null,null))); class exposed_rfind extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_rfind(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_rfind((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1,PyObject arg2) { try { return Py.newInteger(self.str_rfind(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1,PyObject arg2) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_rfind(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return Py.newInteger(self.str_rfind(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_rfind(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return Py.newInteger(self.str_rfind(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_rfind(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("rfind",new PyMethodDescr("rfind",PyString.class,1,3,new exposed_rfind(null,null))); class exposed_rindex extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_rindex(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_rindex((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1,PyObject arg2) { try { return Py.newInteger(self.str_rindex(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1,PyObject arg2) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_rindex(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return Py.newInteger(self.str_rindex(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_rindex(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return Py.newInteger(self.str_rindex(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return Py.newInteger(self.str_rindex(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("rindex",new PyMethodDescr("rindex",PyString.class,1,3,new exposed_rindex(null,null))); class exposed_rjust extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_rjust(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_rjust((PyString)self,info); } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_rjust(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_rjust(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("rjust",new PyMethodDescr("rjust",PyString.class,1,1,new exposed_rjust(null,null))); class exposed_rstrip extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_rstrip(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_rstrip((PyString)self,info); } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_rstrip(arg0.asStringOrNull(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_rstrip(arg0.asStringOrNull(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__() { return new PyString(self.str_rstrip()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_rstrip()); } } dict.__setitem__("rstrip",new PyMethodDescr("rstrip",PyString.class,0,1,new exposed_rstrip(null,null))); class exposed_split extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_split(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_split((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return self.str_split(arg0.asStringOrNull(0),arg1.asInt(1)); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return self.str_split(arg0.asStringOrNull(0),arg1.asInt(1)); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return self.str_split(arg0.asStringOrNull(0)); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return self.str_split(arg0.asStringOrNull(0)); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__() { return self.str_split(); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return self.str_split(); } } dict.__setitem__("split",new PyMethodDescr("split",PyString.class,0,2,new exposed_split(null,null))); class exposed_splitlines extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_splitlines(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_splitlines((PyString)self,info); } public PyObject __call__(PyObject arg0) { return self.str_splitlines(arg0.__nonzero__()); } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; return self.str_splitlines(arg0.__nonzero__()); } public PyObject __call__() { return self.str_splitlines(); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return self.str_splitlines(); } } dict.__setitem__("splitlines",new PyMethodDescr("splitlines",PyString.class,0,1,new exposed_splitlines(null,null))); class exposed_startswith extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_startswith(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_startswith((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1,PyObject arg2) { try { return Py.newBoolean(self.str_startswith(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1,PyObject arg2) { PyString self=(PyString)gself; try { return Py.newBoolean(self.str_startswith(arg0.asString(0),arg1.asInt(1),arg2.asInt(2))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: case 2: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return Py.newBoolean(self.str_startswith(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return Py.newBoolean(self.str_startswith(arg0.asString(0),arg1.asInt(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 1: msg="expected an integer"; break; case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return Py.newBoolean(self.str_startswith(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return Py.newBoolean(self.str_startswith(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("startswith",new PyMethodDescr("startswith",PyString.class,1,3,new exposed_startswith(null,null))); class exposed_strip extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_strip(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_strip((PyString)self,info); } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_strip(arg0.asStringOrNull(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_strip(arg0.asStringOrNull(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string or None"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__() { return new PyString(self.str_strip()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_strip()); } } dict.__setitem__("strip",new PyMethodDescr("strip",PyString.class,0,1,new exposed_strip(null,null))); class exposed_swapcase extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_swapcase(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_swapcase((PyString)self,info); } public PyObject __call__() { return new PyString(self.str_swapcase()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_swapcase()); } } dict.__setitem__("swapcase",new PyMethodDescr("swapcase",PyString.class,0,0,new exposed_swapcase(null,null))); class exposed_title extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_title(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_title((PyString)self,info); } public PyObject __call__() { return new PyString(self.str_title()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_title()); } } dict.__setitem__("title",new PyMethodDescr("title",PyString.class,0,0,new exposed_title(null,null))); class exposed_translate extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_translate(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_translate((PyString)self,info); } public PyObject __call__(PyObject arg0,PyObject arg1) { try { return new PyString(self.str_translate(arg0.asString(0),arg1.asString(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0,PyObject arg1) { PyString self=(PyString)gself; try { return new PyString(self.str_translate(arg0.asString(0),arg1.asString(1))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: case 1: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_translate(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_translate(arg0.asString(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected a string"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("translate",new PyMethodDescr("translate",PyString.class,1,2,new exposed_translate(null,null))); class exposed_upper extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_upper(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_upper((PyString)self,info); } public PyObject __call__() { return new PyString(self.str_upper()); } public PyObject inst_call(PyObject gself) { PyString self=(PyString)gself; return new PyString(self.str_upper()); } } dict.__setitem__("upper",new PyMethodDescr("upper",PyString.class,0,0,new exposed_upper(null,null))); class exposed_zfill extends PyBuiltinFunctionNarrow { private PyString self; public PyObject getSelf() { return self; } exposed_zfill(PyString self,PyBuiltinFunction.Info info) { super(info); this.self=self; } public PyBuiltinFunction makeBound(PyObject self) { return new exposed_zfill((PyString)self,info); } public PyObject __call__(PyObject arg0) { try { return new PyString(self.str_zfill(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } public PyObject inst_call(PyObject gself,PyObject arg0) { PyString self=(PyString)gself; try { return new PyString(self.str_zfill(arg0.asInt(0))); } catch (PyObject.ConversionException e) { String msg; switch (e.index) { case 0: msg="expected an integer"; break; default: msg="xxx"; } throw Py.TypeError(msg); } } } dict.__setitem__("zfill",new PyMethodDescr("zfill",PyString.class,1,1,new exposed_zfill(null,null))); dict.__setitem__("__new__",new PyNewWrapper(PyString.class,"__new__",-1,-1) { public PyObject new_impl(boolean init,PyType subtype,PyObject[]args,String[]keywords) { return str_new(this,init,subtype,args,keywords); } }); }
|
6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/d8392acd4441d3cae1f0e9b174e96e66d192d32e/PyString.java/buggy/src/org/python/core/PyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
618,
7365,
12,
9413,
921,
2065,
16,
9413,
559,
18,
1908,
4060,
5373,
13,
288,
3639,
667,
16265,
31268,
4644,
972,
3231,
4707,
28032,
2083,
11936,
288,
5411,
3238,
4707,
780,
365,
31,
5411,
1071,
4707,
921,
8880,
74,
1435,
288,
7734,
327,
365,
31,
5411,
289,
5411,
16265,
31268,
4644,
972,
12,
9413,
780,
365,
16,
9413,
28032,
2083,
18,
966,
1123,
13,
288,
7734,
2240,
12,
1376,
1769,
7734,
333,
18,
2890,
33,
2890,
31,
5411,
289,
5411,
1071,
4707,
28032,
2083,
1221,
3499,
12,
9413,
921,
365,
13,
288,
7734,
327,
394,
16265,
31268,
4644,
972,
12443,
9413,
780,
13,
2890,
16,
1376,
1769,
5411,
289,
5411,
1071,
4707,
921,
1001,
1991,
972,
12,
9413,
921,
1501,
20,
13,
288,
7734,
4707,
921,
325,
33,
2890,
18,
701,
31268,
4644,
972,
12,
3175,
20,
1769,
7734,
309,
261,
1349,
631,
2011,
13,
10792,
327,
4707,
18,
1248,
8644,
31,
7734,
327,
325,
31,
5411,
289,
5411,
1071,
4707,
921,
1804,
67,
1991,
12,
9413,
921,
314,
2890,
16,
9413,
921,
1501,
20,
13,
288,
7734,
4707,
780,
365,
28657,
9413,
780,
13,
564,
19079,
31,
7734,
4707,
921,
325,
33,
2890,
18,
701,
31268,
4644,
972,
12,
3175,
20,
1769,
7734,
309,
261,
1349,
631,
2011,
13,
10792,
327,
4707,
18,
1248,
8644,
31,
7734,
327,
325,
31,
5411,
289,
3639,
289,
3639,
2065,
16186,
542,
1726,
972,
2932,
972,
4644,
972,
3113,
2704,
4707,
1305,
16198,
2932,
972,
4644,
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,
618,
7365,
12,
9413,
921,
2065,
16,
9413,
559,
18,
1908,
4060,
5373,
13,
288,
3639,
667,
16265,
31268,
4644,
972,
3231,
4707,
28032,
2083,
11936,
288,
5411,
3238,
4707,
780,
365,
31,
5411,
1071,
4707,
921,
8880,
74,
1435,
288,
7734,
327,
365,
31,
5411,
289,
5411,
16265,
31268,
4644,
972,
12,
9413,
780,
365,
16,
9413,
28032,
2083,
18,
966,
1123,
13,
288,
7734,
2240,
12,
1376,
1769,
7734,
333,
18,
2890,
33,
2890,
31,
5411,
289,
5411,
1071,
4707,
28032,
2083,
1221,
3499,
12,
9413,
921,
365,
13,
288,
7734,
327,
394,
16265,
31268,
4644,
972,
12443,
9413,
780,
13,
2890,
16,
1376,
1769,
5411,
289,
5411,
1071,
4707,
921,
1001,
1991,
2
] |
if (hand.index < 10) { _paintButtons = false; super.dragHandle(mX, mY, anX, anY, hand); return;
|
if (hand.index < 10) { _paintButtons = false; super.dragHandle(mX, mY, anX, anY, hand); return; } int cx = _content.getX(), cy = _content.getY(); int cw = _content.getWidth(), ch = _content.getHeight(); int newX = cx, newY = cy, newW = cw, newH = ch; Dimension minSize = _content.getMinimumSize(); int minWidth = minSize.width, minHeight = minSize.height; Class edgeClass = null; Class nodeClass = MComponentInstanceImpl.class; int bx = mX, by = mY; boolean reverse = false; switch (hand.index) { case 10: edgeClass = MDependency.class; by = cy; bx = cx + cw / 2; break; case 11: edgeClass = MDependency.class; reverse = true; by = cy + ch; bx = cx + cw / 2; break; case 12: edgeClass = MDependency.class; by = cy + ch / 2; bx = cx + cw; break; case 13: edgeClass = MDependency.class; reverse = true; by = cy + ch / 2; bx = cx; break; default: cat.warn("invalid handle number"); break; } if (edgeClass != null && nodeClass != null) { Editor ce = Globals.curEditor(); ModeCreateEdgeAndNode m = new ModeCreateEdgeAndNode(ce, edgeClass, nodeClass, false); m.setup((FigNode) _content, _content.getOwner(), bx, by, reverse); ce.mode(m); }
|
public void dragHandle(int mX, int mY, int anX, int anY, Handle hand) { if (hand.index < 10) { _paintButtons = false; super.dragHandle(mX, mY, anX, anY, hand); return; } int cx = _content.getX(), cy = _content.getY(); int cw = _content.getWidth(), ch = _content.getHeight(); int newX = cx, newY = cy, newW = cw, newH = ch; Dimension minSize = _content.getMinimumSize(); int minWidth = minSize.width, minHeight = minSize.height; Class edgeClass = null; Class nodeClass = MComponentInstanceImpl.class; int bx = mX, by = mY; boolean reverse = false; switch (hand.index) { case 10: //add dep edgeClass = MDependency.class; // reverse = true; by = cy; bx = cx + cw/2; break; case 11: //add dep edgeClass = MDependency.class; reverse = true; by = cy + ch; bx = cx + cw/2; break; case 12: //add dep edgeClass = MDependency.class; // reverse = true; by = cy + ch/2; bx = cx + cw; break; case 13: // add dep edgeClass = MDependency.class; reverse = true; by = cy + ch/2; bx = cx; break; default: cat.warn("invalid handle number"); break; } if (edgeClass != null && nodeClass != null) { Editor ce = Globals.curEditor(); ModeCreateEdgeAndNode m = new ModeCreateEdgeAndNode(ce, edgeClass, nodeClass, false); m.setup((FigNode)_content, _content.getOwner(), bx, by, reverse); ce.mode(m); } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/SelectionComponentInstance.java/clean/src_new/org/argouml/uml/diagram/deployment/ui/SelectionComponentInstance.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8823,
3259,
12,
474,
312,
60,
16,
509,
312,
61,
16,
509,
392,
60,
16,
509,
392,
61,
16,
5004,
948,
13,
288,
565,
309,
261,
2349,
18,
1615,
411,
1728,
13,
288,
1377,
389,
84,
1598,
14388,
273,
629,
31,
1377,
2240,
18,
15997,
3259,
12,
81,
60,
16,
312,
61,
16,
392,
60,
16,
392,
61,
16,
948,
1769,
1377,
327,
31,
565,
289,
565,
509,
9494,
273,
389,
1745,
18,
588,
60,
9334,
6143,
273,
389,
1745,
18,
588,
61,
5621,
565,
509,
14098,
273,
389,
1745,
18,
588,
2384,
9334,
462,
273,
389,
1745,
18,
588,
2686,
5621,
565,
509,
394,
60,
273,
9494,
16,
394,
61,
273,
6143,
16,
394,
59,
273,
14098,
16,
394,
44,
273,
462,
31,
565,
13037,
29343,
273,
389,
1745,
18,
588,
13042,
1225,
5621,
565,
509,
1131,
2384,
273,
29343,
18,
2819,
16,
1131,
2686,
273,
29343,
18,
4210,
31,
565,
1659,
3591,
797,
273,
446,
31,
565,
1659,
756,
797,
273,
490,
1841,
1442,
2828,
18,
1106,
31,
565,
509,
24356,
273,
312,
60,
16,
635,
273,
312,
61,
31,
565,
1250,
4219,
273,
629,
31,
565,
1620,
261,
2349,
18,
1615,
13,
288,
565,
648,
1728,
30,
368,
1289,
5993,
1377,
3591,
797,
273,
490,
7787,
18,
1106,
31,
1377,
368,
4219,
273,
638,
31,
1377,
635,
273,
6143,
31,
1377,
24356,
273,
9494,
397,
14098,
19,
22,
31,
1377,
898,
31,
565,
648,
4648,
30,
368,
1289,
5993,
1377,
3591,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8823,
3259,
12,
474,
312,
60,
16,
509,
312,
61,
16,
509,
392,
60,
16,
509,
392,
61,
16,
5004,
948,
13,
288,
565,
309,
261,
2349,
18,
1615,
411,
1728,
13,
288,
1377,
389,
84,
1598,
14388,
273,
629,
31,
1377,
2240,
18,
15997,
3259,
12,
81,
60,
16,
312,
61,
16,
392,
60,
16,
392,
61,
16,
948,
1769,
1377,
327,
31,
565,
289,
565,
509,
9494,
273,
389,
1745,
18,
588,
60,
9334,
6143,
273,
389,
1745,
18,
588,
61,
5621,
565,
509,
14098,
273,
389,
1745,
18,
588,
2384,
9334,
462,
273,
389,
1745,
18,
588,
2686,
5621,
565,
509,
394,
60,
273,
9494,
16,
394,
61,
273,
6143,
16,
394,
59,
2
] |
if (getAgentIdentifier() == null) {
|
if (getAgentIdentifier() == null && logger.isErrorEnabled()) {
|
protected void setupSubscriptions() { detReqSubscription = (IncrementalSubscription) blackboard.subscribe(new DetInvReqPredicate(taskUtils)); aggMILSubscription = (CollectionSubscription) blackboard.subscribe(new AggMILPredicate(), false); milSubscription = (IncrementalSubscription) blackboard.subscribe(new MILPredicate()); addRehydratedInventories(blackboard.query(new InventoryPredicate(supplyType))); detReqHandler.addMILTasks(milSubscription.elements()); selfOrganizations = (IncrementalSubscription) blackboard.subscribe(orgsPredicate); inventoryPolicySubscription = (IncrementalSubscription) blackboard.subscribe(new InventoryPolicyPredicate(supplyType)); logisticsOPlanSubscription = (IncrementalSubscription) blackboard.subscribe(new LogisticsOPlanPredicate()); withdrawTaskSubscription = (IncrementalSubscription) blackboard.subscribe(new WithdrawPredicate(supplyType)); projectWithdrawTaskSubscription = (IncrementalSubscription) blackboard.subscribe(new ProjectWithdrawPredicate(supplyType)); MIExpansionSubscription = (IncrementalSubscription)blackboard.subscribe(new MIExpansionPredicate(supplyType, taskUtils)); MITopExpansionSubscription = (IncrementalSubscription)blackboard.subscribe(new MITopExpansionPredicate()); DetReqInvExpansionSubscription = (IncrementalSubscription)blackboard.subscribe(new DetReqInvExpansionPredicate(taskUtils)); if (getAgentIdentifier() == null) { logger.error("No agentIdentifier ... subscriptions need this info!! In plugin: " + this); } refillAllocationSubscription = (IncrementalSubscription) blackboard. subscribe(new RefillAllocPredicate(supplyType, getAgentIdentifier().toString(), taskUtils)); expansionSubscription = (IncrementalSubscription)blackboard. subscribe(new ExpansionPredicate(supplyType, getAgentIdentifier().toString(), taskUtils)); refillSubscription = (IncrementalSubscription)blackboard. subscribe(new RefillPredicate(supplyType, getAgentIdentifier().toString(), taskUtils)); supplyTaskSubscription = (IncrementalSubscription) blackboard. subscribe(new SupplyTaskPredicate(supplyType, getAgentIdentifier().toString(), taskUtils)); projectionTaskSubscription = (IncrementalSubscription) blackboard. subscribe( new ProjectionTaskPredicate(supplyType, getAgentIdentifier().toString(), taskUtils)); }
|
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/70544843d760459a50542b13dba37f24805d5bdd/InventoryPlugin.java/buggy/bbn/src/org/cougaar/logistics/plugin/inventory/InventoryPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3875,
15440,
1435,
288,
565,
3023,
6113,
6663,
273,
261,
10798,
287,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
8083,
3605,
6113,
8634,
12,
4146,
1989,
10019,
565,
10421,
49,
2627,
6663,
273,
261,
2532,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
25618,
49,
2627,
8634,
9334,
629,
1769,
565,
312,
330,
6663,
273,
261,
10798,
287,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
490,
2627,
8634,
10663,
565,
527,
426,
23540,
690,
382,
616,
2401,
12,
11223,
3752,
18,
2271,
12,
2704,
24835,
8634,
12,
2859,
1283,
559,
3719,
1769,
565,
3023,
6113,
1503,
18,
1289,
49,
2627,
6685,
12,
81,
330,
6663,
18,
6274,
10663,
565,
365,
25533,
273,
261,
10798,
287,
6663,
13,
7721,
3752,
18,
9174,
12,
280,
564,
8634,
1769,
565,
13086,
2582,
6663,
273,
261,
10798,
287,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
24835,
2582,
8634,
12,
2859,
1283,
559,
10019,
565,
613,
4287,
51,
5365,
6663,
273,
261,
10798,
287,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
1827,
4287,
51,
5365,
8634,
10663,
565,
598,
9446,
2174,
6663,
273,
261,
10798,
287,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
3423,
9446,
8634,
12,
2859,
1283,
559,
10019,
565,
1984,
1190,
9446,
2174,
6663,
273,
261,
10798,
287,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
5420,
1190,
9446,
8634,
12,
2859,
1283,
559,
10019,
565,
20806,
2966,
12162,
6663,
273,
261,
10798,
287,
6663,
13,
11223,
3752,
18,
9174,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3875,
15440,
1435,
288,
565,
3023,
6113,
6663,
273,
261,
10798,
287,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
8083,
3605,
6113,
8634,
12,
4146,
1989,
10019,
565,
10421,
49,
2627,
6663,
273,
261,
2532,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
25618,
49,
2627,
8634,
9334,
629,
1769,
565,
312,
330,
6663,
273,
261,
10798,
287,
6663,
13,
7721,
3752,
18,
9174,
12,
2704,
490,
2627,
8634,
10663,
565,
527,
426,
23540,
690,
382,
616,
2401,
12,
11223,
3752,
18,
2271,
12,
2704,
24835,
8634,
12,
2859,
1283,
559,
3719,
1769,
565,
3023,
6113,
1503,
18,
1289,
49,
2627,
6685,
12,
81,
330,
6663,
18,
6274,
10663,
565,
365,
25533,
273,
261,
10798,
2
] |
HttpSession session = request.getSession(false);
|
HttpSession session = request.getSession(false);
|
public ActionForward chooseExecutionYear(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(false); if (session != null) { session.setAttribute(SessionConstants.EXECUTION_YEAR, request.getParameter("executionYear")); Integer curricularPlanID = new Integer(request.getParameter("degreeCurricularPlanID")); if (curricularPlanID == null) { curricularPlanID = (Integer) request.getAttribute("curricularPlanID"); } request.setAttribute("degreeCurricularPlanID", curricularPlanID); request.setAttribute(SessionConstants.EXECUTION_DEGREE, request .getParameter("executionDegreeID")); return mapping.findForward("CreateReady"); } throw new Exception(); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/2080c097df142d6126af6f98e51cf90fa6996709/CreateCandidateDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/masterDegree/administrativeOffice/candidate/CreateCandidateDispatchAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
9876,
3210,
5593,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
1082,
202,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
1185,
288,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
202,
202,
430,
261,
3184,
480,
446,
13,
288,
1082,
202,
3184,
18,
542,
1499,
12,
2157,
2918,
18,
15271,
13269,
67,
15137,
16,
590,
18,
588,
1662,
2932,
16414,
5593,
7923,
1769,
1082,
202,
4522,
662,
1512,
2490,
5365,
734,
273,
394,
2144,
12,
2293,
18,
588,
1662,
2932,
21361,
2408,
1512,
2490,
5365,
734,
7923,
1769,
1082,
202,
430,
261,
1397,
1512,
2490,
5365,
734,
422,
446,
13,
288,
9506,
202,
1397,
1512,
2490,
5365,
734,
273,
261,
4522,
13,
590,
18,
588,
1499,
2932,
1397,
1512,
2490,
5365,
734,
8863,
1082,
202,
97,
1082,
202,
2293,
18,
542,
1499,
2932,
21361,
2408,
1512,
2490,
5365,
734,
3113,
662,
1512,
2490,
5365,
734,
1769,
1082,
202,
2293,
18,
542,
1499,
12,
2157,
2918,
18,
15271,
13269,
67,
1639,
43,
9719,
16,
590,
6862,
202,
18,
588,
1662,
2932,
16414,
22885,
734,
7923,
1769,
1082,
202,
2463,
2874,
18,
4720,
8514,
2932,
1684,
8367,
8863,
202,
202,
97,
202,
202,
12849,
394,
1185,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
9876,
3210,
5593,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
1082,
202,
2940,
18572,
590,
16,
12446,
766,
13,
1216,
1185,
288,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
12,
5743,
1769,
202,
202,
430,
261,
3184,
480,
446,
13,
288,
1082,
202,
3184,
18,
542,
1499,
12,
2157,
2918,
18,
15271,
13269,
67,
15137,
16,
590,
18,
588,
1662,
2932,
16414,
5593,
7923,
1769,
1082,
202,
4522,
662,
1512,
2490,
5365,
734,
273,
394,
2144,
12,
2293,
18,
588,
1662,
2932,
21361,
2408,
1512,
2490,
5365,
734,
7923,
1769,
1082,
202,
430,
261,
1397,
1512,
2490,
5365,
734,
422,
446,
13,
288,
9506,
202,
1397,
1512,
2490,
5365,
2
] |
throw new NoClassDefFoundError();
|
throw new NoClassDefFoundError(arrClsName);
|
public static Object anewarray(VmMethod currentMethod, VmType vmClass, int elements) throws PragmaUninterruptible { VmType arrCls; try { AbstractVmClassLoader curLoader = currentMethod.getDeclaringClass().getLoader(); arrCls = curLoader.loadClass(vmClass.getArrayClassName(), true); //Screen.debug("an cls{"); //Screen.debug(vmClass.getName()); if (arrCls == null) { throw new NoClassDefFoundError(); } } catch (ClassNotFoundException ex) { throw new NoClassDefFoundError(); } VmHeapManager hm = heapManager; if (hm == null) { heapManager = hm = Vm.getVm().getHeapManager(); } final Object result = hm.newArray((VmArrayClass) arrCls, elements); //Screen.debug("}"); return result; }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/c2a519140737c4d249f6c5d568256db2030112e9/SoftByteCodes.java/buggy/core/src/core/org/jnode/vm/SoftByteCodes.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1033,
392,
359,
1126,
12,
22143,
1305,
783,
1305,
16,
776,
81,
559,
4268,
797,
16,
509,
2186,
13,
1216,
2301,
9454,
984,
31847,
1523,
288,
202,
202,
22143,
559,
2454,
20822,
31,
202,
202,
698,
288,
1082,
202,
7469,
22143,
7805,
662,
2886,
273,
783,
1305,
18,
588,
3456,
14682,
7675,
588,
2886,
5621,
1082,
202,
5399,
20822,
273,
662,
2886,
18,
945,
797,
12,
3489,
797,
18,
588,
1076,
3834,
9334,
638,
1769,
1082,
202,
759,
7956,
18,
4148,
2932,
304,
2028,
95,
8863,
1082,
202,
759,
7956,
18,
4148,
12,
3489,
797,
18,
17994,
10663,
1082,
202,
430,
261,
5399,
20822,
422,
446,
13,
288,
9506,
202,
12849,
394,
2631,
797,
3262,
2043,
668,
5621,
1082,
202,
97,
202,
202,
97,
1044,
261,
797,
3990,
431,
13,
288,
1082,
202,
12849,
394,
2631,
797,
3262,
2043,
668,
5621,
202,
202,
97,
202,
202,
22143,
15648,
1318,
16349,
273,
10500,
1318,
31,
202,
202,
430,
261,
76,
81,
422,
446,
13,
288,
1082,
202,
25506,
1318,
273,
16349,
273,
776,
81,
18,
588,
22143,
7675,
588,
15648,
1318,
5621,
202,
202,
97,
202,
202,
6385,
1033,
563,
273,
16349,
18,
2704,
1076,
12443,
22143,
1076,
797,
13,
2454,
20822,
16,
2186,
1769,
202,
202,
759,
7956,
18,
4148,
2932,
1532,
1769,
202,
202,
2463,
563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1033,
392,
359,
1126,
12,
22143,
1305,
783,
1305,
16,
776,
81,
559,
4268,
797,
16,
509,
2186,
13,
1216,
2301,
9454,
984,
31847,
1523,
288,
202,
202,
22143,
559,
2454,
20822,
31,
202,
202,
698,
288,
1082,
202,
7469,
22143,
7805,
662,
2886,
273,
783,
1305,
18,
588,
3456,
14682,
7675,
588,
2886,
5621,
1082,
202,
5399,
20822,
273,
662,
2886,
18,
945,
797,
12,
3489,
797,
18,
588,
1076,
3834,
9334,
638,
1769,
1082,
202,
759,
7956,
18,
4148,
2932,
304,
2028,
95,
8863,
1082,
202,
759,
7956,
18,
4148,
12,
3489,
797,
18,
17994,
10663,
1082,
202,
430,
261,
5399,
20822,
422,
446,
13,
288,
9506,
202,
12849,
394,
2631,
797,
3262,
2
] |
return getPackageName() + "." + getTypeName();
|
return getPackageName() + "." + getTypeName();
|
private static String getClassName() { return getPackageName() + "." + getTypeName(); }
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c80b21caa7335f2dacd02879f687b71c92d3e1aa/LoaderTestAnnotationProcessor.java/clean/org.eclipse.jdt.apt.tests/srcext/org/eclipse/jdt/apt/tests/external/annotations/loadertest/LoaderTestAnnotationProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
11819,
1435,
288,
202,
202,
2463,
28951,
1435,
397,
4585,
397,
17898,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
11819,
1435,
288,
202,
202,
2463,
28951,
1435,
397,
4585,
397,
17898,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
.append(" damage");
|
.append(" damage +").append(damMod);
|
private void checkFor20Damage() { for (Enumeration i = game.getEntities(); i.hasMoreElements();) { final Entity entity = (Entity)i.nextElement(); if (entity.getMovementType() == Entity.MovementType.BIPED || entity.getMovementType() == Entity.MovementType.QUAD) { // if this mech has 20+ damage, add another roll to the list. if (entity.damageThisPhase >= 20) { if ( game.getOptions().booleanOption("maxtech_round_damage") ) { int damMod = (entity.damageThisPhase / 20); int weightMod = 0; StringBuffer reportStr = new StringBuffer(); reportStr.append(entity.damageThisPhase) .append(" damage"); switch ( entity.getWeightClass() ) { case Entity.WEIGHT_LIGHT: weightMod = 1; break; case Entity.WEIGHT_MEDIUM: weightMod = 0; break; case Entity.WEIGHT_HEAVY: weightMod = -1; break; case Entity.WEIGHT_ASSAULT: weightMod = -2; break; } if ( weightMod != 0 ) { reportStr.append(": ").append(weightMod) .append(" weight mod"); } game.addPSR(new PilotingRollData(entity.getId(), damMod + weightMod, reportStr.toString())); } else { game.addPSR(new PilotingRollData(entity.getId(), 1, "20+ damage")); } } } } }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/95aaa3d288f07916e6a8af84949b7cb3d66a1930/Server.java/clean/megamek/src/megamek/server/Server.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
13855,
3462,
40,
301,
410,
1435,
288,
3639,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
727,
3887,
1522,
273,
261,
1943,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
1096,
18,
588,
49,
26140,
559,
1435,
422,
3887,
18,
49,
26140,
559,
18,
31558,
12120,
747,
5411,
1522,
18,
588,
49,
26140,
559,
1435,
422,
3887,
18,
49,
26140,
559,
18,
3500,
1880,
13,
288,
7734,
368,
309,
333,
1791,
343,
711,
4200,
15,
302,
301,
410,
16,
527,
4042,
5824,
358,
326,
666,
18,
7734,
309,
261,
1096,
18,
72,
301,
410,
2503,
11406,
1545,
4200,
13,
288,
10792,
309,
261,
7920,
18,
588,
1320,
7675,
6494,
1895,
2932,
1896,
28012,
67,
2260,
67,
72,
301,
410,
7923,
262,
288,
8227,
509,
302,
301,
1739,
273,
261,
1096,
18,
72,
301,
410,
2503,
11406,
342,
4200,
1769,
8227,
509,
3119,
1739,
273,
374,
31,
8227,
6674,
2605,
1585,
273,
394,
6674,
5621,
8227,
2605,
1585,
18,
6923,
12,
1096,
18,
72,
301,
410,
2503,
11406,
13,
12900,
263,
6923,
2932,
302,
301,
410,
397,
20387,
6923,
12,
72,
301,
1739,
1769,
8227,
1620,
261,
1522,
18,
588,
6544,
797,
1435,
262,
288,
13491,
648,
3887,
18,
29988,
67,
23516,
30,
12900,
3119,
1739,
273,
404,
31,
12900,
898,
31,
13491,
648,
3887,
18,
29988,
67,
15971,
2799,
30,
12900,
3119,
1739,
273,
374,
31,
12900,
898,
31,
13491,
648,
3887,
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,
13855,
3462,
40,
301,
410,
1435,
288,
3639,
364,
261,
21847,
277,
273,
7920,
18,
588,
8108,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
727,
3887,
1522,
273,
261,
1943,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
1096,
18,
588,
49,
26140,
559,
1435,
422,
3887,
18,
49,
26140,
559,
18,
31558,
12120,
747,
5411,
1522,
18,
588,
49,
26140,
559,
1435,
422,
3887,
18,
49,
26140,
559,
18,
3500,
1880,
13,
288,
7734,
368,
309,
333,
1791,
343,
711,
4200,
15,
302,
301,
410,
16,
527,
4042,
5824,
358,
326,
666,
18,
7734,
309,
261,
1096,
18,
72,
301,
410,
2503,
11406,
1545,
4200,
13,
288,
10792,
309,
261,
7920,
2
] |
public IListNode getArgsNode() {
|
public INode getArgsNode() {
|
public IListNode getArgsNode() { return argsNode; }
|
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/f5c9a1ebd775712f2dc086acfce1a14a123ec632/CallNode.java/clean/src/org/jruby/ast/CallNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21176,
30169,
907,
1435,
288,
3639,
327,
833,
907,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21176,
30169,
907,
1435,
288,
3639,
327,
833,
907,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String childName = child.getLocalName();
|
String childName = DOMUtil.getLocalName(child);
|
XSAttributeGroupDecl traverseLocal(Element elmNode, XSDocumentInfo schemaDoc, SchemaGrammar grammar) { // General Attribute Checking for elmNode declared locally Object[] attrValues = fAttrChecker.checkAttributes(elmNode, false, schemaDoc); // get attribute QName refAttr = (QName) attrValues[XSAttributeChecker.ATTIDX_REF]; XSAttributeGroupDecl attrGrp = null; // ref should be here. if (refAttr == null) { reportGenericSchemaError("Local attributeGroup declaration should have ref."); fAttrChecker.returnAttrArray(attrValues, schemaDoc); return null; } // get global decl attrGrp = (XSAttributeGroupDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.ATTRIBUTEGROUP_TYPE, refAttr); // no children are allowed here except annotation, which is optional. Element child = DOMUtil.getFirstChildElement(elmNode); if (child != null) { String childName = child.getLocalName(); if (childName.equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(child, attrValues, false, schemaDoc); child = DOMUtil.getNextSiblingElement(child); childName = child.getLocalName(); } if (child != null) { Object[] args = new Object [] { "attributeGroup", childName}; fErrorReporter.reportError(XSMessageFormatter.SCHEMA_DOMAIN, "AttributeGroupContentRestricted", args, XMLErrorReporter.SEVERITY_ERROR); } } // if fAttrChecker.returnAttrArray(attrValues, schemaDoc); return attrGrp; } // traverseLocal
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/ece7bef955e186b8ddeb59de9f470c068cb6b533/XSDAttributeGroupTraverser.java/buggy/src/org/apache/xerces/impl/v2/XSDAttributeGroupTraverser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1139,
55,
1499,
1114,
3456,
10080,
2042,
12,
1046,
12531,
907,
16,
4766,
4202,
1139,
55,
2519,
966,
1963,
1759,
16,
4766,
4202,
4611,
18576,
6473,
13,
288,
3639,
368,
9544,
3601,
24471,
364,
12531,
907,
7886,
13760,
3639,
1033,
8526,
1604,
1972,
273,
284,
3843,
8847,
18,
1893,
2498,
12,
19597,
907,
16,
629,
16,
1963,
1759,
1769,
3639,
368,
336,
1566,
3639,
16723,
282,
1278,
3843,
202,
33,
261,
13688,
13,
282,
1604,
1972,
63,
60,
55,
1499,
8847,
18,
789,
56,
25647,
67,
10771,
15533,
3639,
1139,
55,
1499,
1114,
3456,
1604,
43,
13832,
273,
446,
31,
3639,
368,
1278,
1410,
506,
2674,
18,
3639,
309,
261,
1734,
3843,
422,
446,
13,
288,
5411,
2605,
7014,
3078,
668,
2932,
2042,
1566,
1114,
8266,
1410,
1240,
1278,
1199,
1769,
5411,
284,
3843,
8847,
18,
2463,
3843,
1076,
12,
1747,
1972,
16,
1963,
1759,
1769,
5411,
327,
446,
31,
3639,
289,
3639,
368,
336,
2552,
3496,
3639,
1604,
43,
13832,
273,
261,
60,
55,
1499,
1114,
3456,
13,
74,
3078,
1503,
18,
588,
5160,
3456,
12,
4821,
1759,
16,
26462,
1503,
18,
11616,
8468,
67,
2399,
16,
1278,
3843,
1769,
3639,
368,
1158,
2325,
854,
2935,
2674,
1335,
3204,
16,
1492,
353,
3129,
18,
3639,
3010,
1151,
273,
4703,
1304,
18,
588,
3759,
1763,
1046,
12,
19597,
907,
1769,
3639,
309,
261,
3624,
480,
446,
13,
288,
5411,
514,
27440,
273,
4703,
1304,
18,
588,
29583,
12,
3624,
1769,
5411,
309,
261,
3624,
461,
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,
1139,
55,
1499,
1114,
3456,
10080,
2042,
12,
1046,
12531,
907,
16,
4766,
4202,
1139,
55,
2519,
966,
1963,
1759,
16,
4766,
4202,
4611,
18576,
6473,
13,
288,
3639,
368,
9544,
3601,
24471,
364,
12531,
907,
7886,
13760,
3639,
1033,
8526,
1604,
1972,
273,
284,
3843,
8847,
18,
1893,
2498,
12,
19597,
907,
16,
629,
16,
1963,
1759,
1769,
3639,
368,
336,
1566,
3639,
16723,
282,
1278,
3843,
202,
33,
261,
13688,
13,
282,
1604,
1972,
63,
60,
55,
1499,
8847,
18,
789,
56,
25647,
67,
10771,
15533,
3639,
1139,
55,
1499,
1114,
3456,
1604,
43,
13832,
273,
446,
31,
3639,
368,
1278,
1410,
506,
2674,
18,
3639,
309,
261,
1734,
3843,
422,
446,
13,
288,
5411,
2605,
2
] |
IWorkbenchAction action = new ToggleEditorsVisibilityAction(window); action.setId(getId());
|
RetargetAction action = new RetargetAction(getId(), WorkbenchMessages.getString("Workbench.selectAll")); action.setToolTipText(WorkbenchMessages .getString("Workbench.selectAllToolTip")); window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.edit.selectAll");
|
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } IWorkbenchAction action = new ToggleEditorsVisibilityAction(window); action.setId(getId()); return action; }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a068a7b2f086dec18f37d899ac6f919caaf29048/ActionFactory.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ActionFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
5411,
309,
261,
5668,
422,
446,
13,
288,
7734,
604,
394,
2754,
5621,
5411,
289,
5411,
467,
2421,
22144,
1803,
1301,
273,
394,
399,
9891,
4666,
1383,
10135,
1803,
12,
5668,
1769,
5411,
1301,
18,
542,
548,
12,
26321,
10663,
5411,
327,
1301,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
5411,
309,
261,
5668,
422,
446,
13,
288,
7734,
604,
394,
2754,
5621,
5411,
289,
5411,
467,
2421,
22144,
1803,
1301,
273,
394,
399,
9891,
4666,
1383,
10135,
1803,
12,
5668,
1769,
5411,
1301,
18,
542,
548,
12,
26321,
10663,
5411,
327,
1301,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
byte slotDescription = VM_Statics.getSlotDescription(offset>>LOG_BYTES_IN_INT); Offset off = Offset.fromIntSignExtend(offset);
|
byte slotDescription = VM_Statics.getSlotDescription(VM_Statics.offsetAsSlot(offset));
|
protected void emit_ldc(int offset) { if (unreachableBytecode) return; if (VM.BuildFor64Addr) { if (VM.VerifyAssertions) VM._assert(NOT_REACHED); } byte slotDescription = VM_Statics.getSlotDescription(offset>>LOG_BYTES_IN_INT); Offset off = Offset.fromIntSignExtend(offset); switch (slotDescription) { case VM_Statics.FLOAT_LITERAL: assignRegisters(0, FLOAT_TYPE); asm.emitLFStoc(sro0, off, S0); break; case VM_Statics.STRING_LITERAL: assignRegisters(0, OBJECT_TYPE); asm.emitLAddrToc(sro0, off); break; default: assignRegisters(0, WORD_TYPE); asm.emitLIntToc(sro0, off); break; } cleanupRegisters(); }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/d1d1434574eb350f48cb1d82f04917a27eea9bdc/VM_QuickCompiler.java/clean/rvm/src/vm/arch/powerPC/compilers/quick/VM_QuickCompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3626,
67,
1236,
71,
12,
474,
1384,
13,
288,
565,
309,
261,
318,
17246,
858,
16651,
13,
327,
31,
565,
309,
261,
7397,
18,
3116,
1290,
1105,
3178,
13,
288,
1377,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
4400,
67,
29416,
15023,
1769,
565,
289,
565,
1160,
4694,
3291,
273,
8251,
67,
5000,
2102,
18,
588,
8764,
3291,
12,
3348,
9778,
4842,
67,
13718,
67,
706,
67,
3217,
1769,
565,
9874,
3397,
273,
9874,
18,
2080,
1702,
2766,
16675,
12,
3348,
1769,
377,
1620,
261,
14194,
3291,
13,
288,
565,
648,
8251,
67,
5000,
2102,
18,
15640,
67,
23225,
30,
1377,
2683,
10277,
12,
20,
16,
225,
15483,
67,
2399,
1769,
1377,
20415,
18,
18356,
9105,
510,
504,
12,
87,
303,
20,
16,
225,
3397,
16,
348,
20,
1769,
1377,
898,
31,
565,
648,
8251,
67,
5000,
2102,
18,
5804,
67,
23225,
30,
1377,
2683,
10277,
12,
20,
16,
225,
12166,
67,
2399,
1769,
1377,
20415,
18,
18356,
48,
3178,
56,
504,
12,
87,
303,
20,
16,
225,
3397,
1769,
1377,
898,
31,
565,
805,
30,
1377,
2683,
10277,
12,
20,
16,
225,
21464,
67,
2399,
1769,
1377,
20415,
18,
18356,
48,
1702,
56,
504,
12,
87,
303,
20,
16,
225,
3397,
1769,
1377,
898,
31,
565,
289,
565,
6686,
10277,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3626,
67,
1236,
71,
12,
474,
1384,
13,
288,
565,
309,
261,
318,
17246,
858,
16651,
13,
327,
31,
565,
309,
261,
7397,
18,
3116,
1290,
1105,
3178,
13,
288,
1377,
309,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
4400,
67,
29416,
15023,
1769,
565,
289,
565,
1160,
4694,
3291,
273,
8251,
67,
5000,
2102,
18,
588,
8764,
3291,
12,
3348,
9778,
4842,
67,
13718,
67,
706,
67,
3217,
1769,
565,
9874,
3397,
273,
9874,
18,
2080,
1702,
2766,
16675,
12,
3348,
1769,
377,
1620,
261,
14194,
3291,
13,
288,
565,
648,
8251,
67,
5000,
2102,
18,
15640,
67,
23225,
30,
1377,
2683,
10277,
12,
20,
16,
225,
15483,
67,
2399,
1769,
2
] |
else { org.objectweb.proactive.core.mop.Proxy theProxy = ((StubObject)obj).getProxy(); /* If the object does not represent a group */ if (!(theProxy instanceof org.objectweb.proactive.core.group.ProxyForGroup)) throw new java.lang.IllegalArgumentException("Parameter doesn't represent a group"); else
|
else
|
public static int size (Object obj) { if (!(MOP.isReifiedObject (obj))) throw new java.lang.IllegalArgumentException("Parameter doesn't represent a group"); else { org.objectweb.proactive.core.mop.Proxy theProxy = ((StubObject)obj).getProxy(); /* If the object does not represent a group */ if (!(theProxy instanceof org.objectweb.proactive.core.group.ProxyForGroup)) throw new java.lang.IllegalArgumentException("Parameter doesn't represent a group"); else return ((org.objectweb.proactive.core.group.ProxyForGroup)theProxy).size(); } }
|
58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/b5b6b2bb6ded96a8d2ca2db6f12836cec349b290/ProActiveGroup.java/clean/src/org/objectweb/proactive/core/group/ProActiveGroup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
963,
261,
921,
1081,
13,
288,
202,
430,
16051,
12,
49,
3665,
18,
291,
426,
939,
921,
261,
2603,
20349,
202,
565,
604,
394,
2252,
18,
4936,
18,
31237,
2932,
1662,
3302,
1404,
2406,
279,
1041,
8863,
202,
12107,
288,
202,
565,
2358,
18,
1612,
4875,
18,
685,
3535,
18,
3644,
18,
81,
556,
18,
3886,
326,
3886,
273,
14015,
11974,
921,
13,
2603,
2934,
588,
3886,
5621,
202,
565,
1748,
971,
326,
733,
1552,
486,
2406,
279,
1041,
1195,
202,
565,
309,
16051,
12,
5787,
3886,
1276,
2358,
18,
1612,
4875,
18,
685,
3535,
18,
3644,
18,
1655,
18,
3886,
1290,
1114,
3719,
202,
202,
12849,
394,
2252,
18,
4936,
18,
31237,
2932,
1662,
3302,
1404,
2406,
279,
1041,
8863,
202,
565,
469,
202,
202,
2463,
14015,
3341,
18,
1612,
4875,
18,
685,
3535,
18,
3644,
18,
1655,
18,
3886,
1290,
1114,
13,
5787,
3886,
2934,
1467,
5621,
202,
97,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
963,
261,
921,
1081,
13,
288,
202,
430,
16051,
12,
49,
3665,
18,
291,
426,
939,
921,
261,
2603,
20349,
202,
565,
604,
394,
2252,
18,
4936,
18,
31237,
2932,
1662,
3302,
1404,
2406,
279,
1041,
8863,
202,
12107,
288,
202,
565,
2358,
18,
1612,
4875,
18,
685,
3535,
18,
3644,
18,
81,
556,
18,
3886,
326,
3886,
273,
14015,
11974,
921,
13,
2603,
2934,
588,
3886,
5621,
202,
565,
1748,
971,
326,
733,
1552,
486,
2406,
279,
1041,
1195,
202,
565,
309,
16051,
12,
5787,
3886,
1276,
2358,
18,
1612,
4875,
18,
685,
3535,
18,
3644,
18,
1655,
18,
3886,
1290,
1114,
3719,
202,
202,
12849,
394,
2252,
18,
4936,
18,
31237,
2932,
1662,
2
] |
Hashtable ret = new Hashtable(properties); Map locals = threadLocalProperties.getProps(); for (Iterator i = locals.entrySet().iterator(); i.hasNext();) { Map.Entry e = (Map.Entry) i.next(); List l = (List) e.getValue(); if (l != null && l.size() > 0) { LocalProperty p = (LocalProperty) l.get(l.size() - 1); if (p.getValue() == null) { if (ret.get(e.getKey()) != null) { ret.remove(e.getKey()); } } else { ret.put(e.getKey(), p.getValue()); } } } return ret;
|
return new Hashtable(properties);
|
public Hashtable getProperties() { Hashtable ret = new Hashtable(properties); Map locals = threadLocalProperties.getProps(); for (Iterator i = locals.entrySet().iterator(); i.hasNext();) { Map.Entry e = (Map.Entry) i.next(); List l = (List) e.getValue(); if (l != null && l.size() > 0) { LocalProperty p = (LocalProperty) l.get(l.size() - 1); if (p.getValue() == null) { if (ret.get(e.getKey()) != null) { ret.remove(e.getKey()); } } else { ret.put(e.getKey(), p.getValue()); } } } return ret; // There is a better way to save the context. This shouldn't // delegate to next, it's for backward compatibility only. }
|
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/781a2ed11e930ead82864bf494d4d3c0b3e945f8/PropertyHelper.java/buggy/src/main/org/apache/tools/ant/PropertyHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
18559,
9392,
1435,
288,
3639,
18559,
325,
273,
394,
18559,
12,
4738,
1769,
3639,
1635,
8985,
273,
2650,
2042,
2297,
18,
588,
5047,
5621,
3639,
364,
261,
3198,
277,
273,
8985,
18,
4099,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
1635,
18,
1622,
425,
273,
261,
863,
18,
1622,
13,
277,
18,
4285,
5621,
5411,
987,
328,
273,
261,
682,
13,
425,
18,
24805,
5621,
5411,
309,
261,
80,
480,
446,
597,
328,
18,
1467,
1435,
405,
374,
13,
288,
7734,
3566,
1396,
293,
273,
261,
2042,
1396,
13,
328,
18,
588,
12,
80,
18,
1467,
1435,
300,
404,
1769,
7734,
309,
261,
84,
18,
24805,
1435,
422,
446,
13,
288,
10792,
309,
261,
1349,
18,
588,
12,
73,
18,
588,
653,
10756,
480,
446,
13,
288,
13491,
325,
18,
4479,
12,
73,
18,
588,
653,
10663,
10792,
289,
7734,
289,
469,
288,
10792,
325,
18,
458,
12,
73,
18,
588,
653,
9334,
293,
18,
24805,
10663,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
325,
31,
3639,
368,
6149,
353,
279,
7844,
4031,
358,
1923,
326,
819,
18,
1220,
12044,
1404,
3639,
368,
7152,
358,
1024,
16,
518,
1807,
364,
12555,
8926,
1338,
18,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
18559,
9392,
1435,
288,
3639,
18559,
325,
273,
394,
18559,
12,
4738,
1769,
3639,
1635,
8985,
273,
2650,
2042,
2297,
18,
588,
5047,
5621,
3639,
364,
261,
3198,
277,
273,
8985,
18,
4099,
694,
7675,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
288,
5411,
1635,
18,
1622,
425,
273,
261,
863,
18,
1622,
13,
277,
18,
4285,
5621,
5411,
987,
328,
273,
261,
682,
13,
425,
18,
24805,
5621,
5411,
309,
261,
80,
480,
446,
597,
328,
18,
1467,
1435,
405,
374,
13,
288,
7734,
3566,
1396,
293,
273,
261,
2042,
1396,
13,
328,
18,
588,
12,
80,
18,
1467,
1435,
300,
404,
1769,
7734,
309,
261,
84,
18,
24805,
1435,
422,
446,
13,
288,
10792,
2
] |
GridLayout glTest = new GridLayout( ); glTest.numColumns = 1; glTest.marginHeight = 10; glTest.marginWidth = 20;
|
private void placeComponents( ) { // Initialize and layout UI components of the framework Composite cmpHeader = new Composite( shell, SWT.NONE ); cmpHeader.setBackground( Display.getDefault( ) .getSystemColor( SWT.COLOR_WHITE ) ); GridLayout layout = new GridLayout( 2, false ); layout.marginHeight = 0; layout.marginWidth = 0; cmpHeader.setLayout( layout ); cmpHeader.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); Label lblHeader = new Label( cmpHeader, SWT.NONE ); { GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalIndent = 10; lblHeader.setLayoutData( gd ); lblHeader.setBackground( Display.getDefault( ) .getSystemColor( SWT.COLOR_WHITE ) ); lblHeader.setText( strHeader ); } if ( imgHeader != null ) { new Label( cmpHeader, SWT.NONE ).setImage( imgHeader ); } Label lblSeparator = new Label( shell, SWT.SEPARATOR | SWT.HORIZONTAL ); lblSeparator.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); GridLayout glTest = new GridLayout( ); glTest.numColumns = 1; glTest.marginHeight = 10; glTest.marginWidth = 20; cmpTaskContainer = new TabFolder( shell, SWT.TOP ); cmpTaskContainer.setLayoutData( new GridData( GridData.FILL_BOTH ) ); cmpTaskContainer.addSelectionListener( this ); Composite cmpButton = new Composite( shell, SWT.NONE ); { cmpButton.setLayout( new GridLayout( ) ); GridData gd = new GridData( ); gd.horizontalAlignment = SWT.END; cmpButton.setLayoutData( gd ); } buttonpanel = new ButtonPanel( cmpButton, SWT.NONE, this ); }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c0cd31cde45e687d64e16b4cfce0a9756a4d970e/WizardBase.java/buggy/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/WizardBase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3166,
7171,
12,
262,
202,
95,
202,
202,
759,
9190,
471,
3511,
6484,
4085,
434,
326,
8257,
202,
202,
9400,
9411,
1864,
273,
394,
14728,
12,
5972,
16,
348,
8588,
18,
9826,
11272,
202,
202,
9625,
1864,
18,
542,
8199,
12,
9311,
18,
588,
1868,
12,
262,
9506,
202,
18,
588,
3163,
2957,
12,
348,
8588,
18,
10989,
67,
16861,
262,
11272,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
576,
16,
629,
11272,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
9625,
1864,
18,
542,
3744,
12,
3511,
11272,
202,
202,
9625,
1864,
18,
542,
3744,
751,
12,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
262,
11272,
202,
202,
2224,
14284,
1864,
273,
394,
5287,
12,
9411,
1864,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
11272,
1082,
202,
19016,
18,
18396,
7790,
273,
1728,
31,
1082,
202,
31885,
1864,
18,
542,
3744,
751,
12,
15551,
11272,
1082,
202,
31885,
1864,
18,
542,
8199,
12,
9311,
18,
588,
1868,
12,
262,
6862,
202,
18,
588,
3163,
2957,
12,
348,
8588,
18,
10989,
67,
16861,
262,
11272,
1082,
202,
31885,
1864,
18,
542,
1528,
12,
609,
1864,
11272,
202,
202,
97,
202,
202,
430,
261,
3774,
1864,
480,
446,
262,
202,
202,
95,
1082,
202,
2704,
5287,
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,
3166,
7171,
12,
262,
202,
95,
202,
202,
759,
9190,
471,
3511,
6484,
4085,
434,
326,
8257,
202,
202,
9400,
9411,
1864,
273,
394,
14728,
12,
5972,
16,
348,
8588,
18,
9826,
11272,
202,
202,
9625,
1864,
18,
542,
8199,
12,
9311,
18,
588,
1868,
12,
262,
9506,
202,
18,
588,
3163,
2957,
12,
348,
8588,
18,
10989,
67,
16861,
262,
11272,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
12,
576,
16,
629,
11272,
202,
202,
6741,
18,
10107,
2686,
273,
374,
31,
202,
202,
6741,
18,
10107,
2384,
273,
374,
31,
202,
202,
9625,
1864,
18,
542,
3744,
12,
3511,
11272,
202,
202,
9625,
1864,
18,
542,
3744,
751,
12,
394,
7145,
2
] |
|
String[] buttonLabels = new String[] { /* 0 */CPathEntryMessages.getString("CPathsBlock.path.up.button"),
|
String[] buttonLabels = new String[]{ /* 0 */CPathEntryMessages.getString("CPathsBlock.path.up.button"),
|
public CPathTabBlock(IStatusChangeListener context, int pageToShow) { super(context, pageToShow); String[] buttonLabels = new String[] { /* 0 */CPathEntryMessages.getString("CPathsBlock.path.up.button"), //$NON-NLS-1$ /* 1 */CPathEntryMessages.getString("CPathsBlock.path.down.button"), //$NON-NLS-1$ /* 2 */null, /* 3 */CPathEntryMessages.getString("CPathsBlock.path.checkall.button"), //$NON-NLS-1$ /* 4 */CPathEntryMessages.getString("CPathsBlock.path.uncheckall.button") //$NON-NLS-1$ }; BuildPathAdapter adapter = new BuildPathAdapter(); fCPathList = new ListDialogField(null, buttonLabels, null); fCPathList.setDialogFieldListener(adapter); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/6f341e4ccb7d93ec563ced01847760ba22498b8a/CPathTabBlock.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathTabBlock.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
743,
5661,
1768,
12,
45,
1482,
15744,
819,
16,
509,
1363,
774,
5706,
13,
288,
202,
202,
9565,
12,
2472,
16,
1363,
774,
5706,
1769,
202,
202,
780,
8526,
3568,
5888,
273,
394,
514,
63,
7073,
1748,
374,
1195,
39,
743,
1622,
5058,
18,
588,
780,
2932,
39,
4466,
1768,
18,
803,
18,
416,
18,
5391,
6,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
20308,
404,
1195,
39,
743,
1622,
5058,
18,
588,
780,
2932,
39,
4466,
1768,
18,
803,
18,
2378,
18,
5391,
6,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
20308,
576,
1195,
2011,
16,
1748,
890,
1195,
39,
743,
1622,
5058,
18,
588,
780,
2932,
39,
4466,
1768,
18,
803,
18,
1893,
454,
18,
5391,
6,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
20308,
1059,
1195,
39,
743,
1622,
5058,
18,
588,
780,
2932,
39,
4466,
1768,
18,
803,
18,
318,
1893,
454,
18,
5391,
7923,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
20451,
202,
202,
3116,
743,
4216,
4516,
273,
394,
3998,
743,
4216,
5621,
202,
202,
74,
39,
743,
682,
273,
394,
987,
6353,
974,
12,
2011,
16,
3568,
5888,
16,
446,
1769,
202,
202,
74,
39,
743,
682,
18,
542,
6353,
974,
2223,
12,
10204,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
743,
5661,
1768,
12,
45,
1482,
15744,
819,
16,
509,
1363,
774,
5706,
13,
288,
202,
202,
9565,
12,
2472,
16,
1363,
774,
5706,
1769,
202,
202,
780,
8526,
3568,
5888,
273,
394,
514,
63,
7073,
1748,
374,
1195,
39,
743,
1622,
5058,
18,
588,
780,
2932,
39,
4466,
1768,
18,
803,
18,
416,
18,
5391,
6,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
20308,
404,
1195,
39,
743,
1622,
5058,
18,
588,
780,
2932,
39,
4466,
1768,
18,
803,
18,
2378,
18,
5391,
6,
3631,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
20308,
576,
1195,
2011,
16,
1748,
890,
1195,
39,
743,
1622,
5058,
18,
588,
780,
2932,
39,
2
] |
public void assertDOMEquals( String s, Node n ) throws java.io.IOException,
|
public void assertDOMEquals( URL url, Node actual ) throws java.io.IOException,
|
public void assertDOMEquals( String s, Node n ) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException { assertDOMEquals( s, n, "string:", 0 ); }
|
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/270e06c9083690c4df3628f68e94fa5a7a0d4cbc/TestCase.java/clean/util/src/main/uk/ac/starlink/util/TestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1815,
3191,
958,
6360,
12,
514,
272,
16,
2029,
290,
262,
5411,
1216,
5411,
2252,
18,
1594,
18,
14106,
16,
5411,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
16,
5411,
6863,
18,
2902,
18,
11104,
18,
2678,
10737,
288,
3639,
1815,
3191,
958,
6360,
12,
272,
16,
290,
16,
315,
1080,
2773,
16,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1815,
3191,
958,
6360,
12,
514,
272,
16,
2029,
290,
262,
5411,
1216,
5411,
2252,
18,
1594,
18,
14106,
16,
5411,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
16,
5411,
6863,
18,
2902,
18,
11104,
18,
2678,
10737,
288,
3639,
1815,
3191,
958,
6360,
12,
272,
16,
290,
16,
315,
1080,
2773,
16,
374,
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
] |
void closeAllPerspectives() {
|
public void closeAllPerspectives(boolean saveEditors, boolean closePage) {
|
void closeAllPerspectives() { if (perspList.isEmpty()) return; // Always unzoom if (isZoomed()) zoomOut(); // Close all editors if (!closeAllEditors(true)) return; // Deactivate the active perspective and part setPerspective((Perspective) null); // Close each perspective in turn PerspectiveList oldList = perspList; perspList = new PerspectiveList(); Iterator itr = oldList.iterator(); while (itr.hasNext()) closePerspective((Perspective) itr.next(), false, false); close(); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0b575d3fd8a606ede9fefedd40c7d4e72d4f2a84/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1595,
14781,
1181,
3606,
12,
6494,
1923,
4666,
1383,
16,
1250,
1746,
1964,
13,
288,
3639,
309,
261,
10422,
84,
682,
18,
291,
1921,
10756,
5411,
327,
31,
3639,
368,
14178,
640,
14932,
3639,
309,
261,
291,
11497,
329,
10756,
5411,
7182,
1182,
5621,
3639,
368,
3527,
777,
29431,
3639,
309,
16051,
4412,
1595,
4666,
1383,
12,
3767,
3719,
5411,
327,
31,
3639,
368,
1505,
10014,
326,
2695,
26651,
471,
1087,
3639,
444,
14781,
16772,
12443,
14781,
16772,
13,
446,
1769,
3639,
368,
3527,
1517,
26651,
316,
7005,
3639,
453,
414,
16772,
682,
1592,
682,
273,
13508,
84,
682,
31,
3639,
13508,
84,
682,
273,
394,
453,
414,
16772,
682,
5621,
3639,
4498,
11176,
273,
1592,
682,
18,
9838,
5621,
3639,
1323,
261,
305,
86,
18,
5332,
2134,
10756,
5411,
1746,
14781,
16772,
12443,
14781,
16772,
13,
11176,
18,
4285,
9334,
629,
16,
629,
1769,
3639,
1746,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
1595,
14781,
1181,
3606,
12,
6494,
1923,
4666,
1383,
16,
1250,
1746,
1964,
13,
288,
3639,
309,
261,
10422,
84,
682,
18,
291,
1921,
10756,
5411,
327,
31,
3639,
368,
14178,
640,
14932,
3639,
309,
261,
291,
11497,
329,
10756,
5411,
7182,
1182,
5621,
3639,
368,
3527,
777,
29431,
3639,
309,
16051,
4412,
1595,
4666,
1383,
12,
3767,
3719,
5411,
327,
31,
3639,
368,
1505,
10014,
326,
2695,
26651,
471,
1087,
3639,
444,
14781,
16772,
12443,
14781,
16772,
13,
446,
1769,
3639,
368,
3527,
1517,
26651,
316,
7005,
3639,
453,
414,
16772,
682,
1592,
682,
273,
13508,
84,
682,
31,
3639,
13508,
84,
682,
273,
394,
453,
414,
16772,
682,
5621,
3639,
4498,
11176,
273,
2
] |
IASTDeclarationStatement declStatement = (IASTDeclarationStatement) compoundStatement .getStatements()[0]; IASTSimpleDeclaration decl2 = (IASTSimpleDeclaration) declStatement .getDeclaration(); compTypeSpec = (IASTElaboratedTypeSpecifier) decl2.getDeclSpecifier(); IASTName nameA2 = compTypeSpec.getName(); IASTDeclarator dtor = decl2.getDeclarators()[0]; IASTName namea = dtor.getName(); assertEquals(1, dtor.getPointerOperators().length); assertTrue(dtor.getPointerOperators()[0] instanceof ICASTPointer);
|
IASTDeclarationStatement declStatement = (IASTDeclarationStatement) compoundStatement .getStatements()[0]; IASTSimpleDeclaration decl2 = (IASTSimpleDeclaration) declStatement .getDeclaration(); compTypeSpec = (IASTElaboratedTypeSpecifier) decl2.getDeclSpecifier(); IASTName nameA2 = compTypeSpec.getName(); IASTDeclarator dtor = decl2.getDeclarators()[0]; IASTName namea = dtor.getName(); assertEquals(1, dtor.getPointerOperators().length); assertTrue(dtor.getPointerOperators()[0] instanceof ICASTPointer);
|
public void testStructureTagScoping_2() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("struct A; \n"); //$NON-NLS-1$ buffer.append("void f(){ \n"); //$NON-NLS-1$ buffer.append(" struct A * a; \n"); //$NON-NLS-1$ buffer.append("} \r\n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); //struct A; IASTSimpleDeclaration decl1 = (IASTSimpleDeclaration) tu .getDeclarations()[0]; IASTElaboratedTypeSpecifier compTypeSpec = (IASTElaboratedTypeSpecifier) decl1 .getDeclSpecifier(); assertEquals(0, decl1.getDeclarators().length); IASTName nameA1 = compTypeSpec.getName(); //void f() { IASTFunctionDefinition fndef = (IASTFunctionDefinition) tu .getDeclarations()[1]; IASTCompoundStatement compoundStatement = (IASTCompoundStatement) fndef .getBody(); assertEquals(1, compoundStatement.getStatements().length); // struct A * a; IASTDeclarationStatement declStatement = (IASTDeclarationStatement) compoundStatement .getStatements()[0]; IASTSimpleDeclaration decl2 = (IASTSimpleDeclaration) declStatement .getDeclaration(); compTypeSpec = (IASTElaboratedTypeSpecifier) decl2.getDeclSpecifier(); IASTName nameA2 = compTypeSpec.getName(); IASTDeclarator dtor = decl2.getDeclarators()[0]; IASTName namea = dtor.getName(); assertEquals(1, dtor.getPointerOperators().length); assertTrue(dtor.getPointerOperators()[0] instanceof ICASTPointer); //bindings ICompositeType str1 = (ICompositeType) nameA1.resolveBinding(); ICompositeType str2 = (ICompositeType) nameA2.resolveBinding(); IVariable var = (IVariable) namea.resolveBinding(); IPointerType str3pointer = (IPointerType) var.getType(); ICompositeType str3 = (ICompositeType) str3pointer.getType(); assertNotNull(str1); assertSame(str1, str2); assertSame(str2, str3); // test tu.getDeclarations(IBinding) IASTName[] decls = tu.getDeclarations(nameA1.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], nameA1); decls = tu.getDeclarations(fndef.getDeclarator().getName() .resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], fndef.getDeclarator().getName()); decls = tu.getDeclarations(nameA2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], nameA1); decls = tu.getDeclarations(namea.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], namea); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/98145350e052e39e57313251e0f805a20472a08d/AST2Tests.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6999,
1805,
1541,
22384,
67,
22,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
1697,
432,
31,
2398,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
6459,
284,
1435,
95,
2398,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
1958,
432,
380,
279,
31,
1377,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
97,
5397,
521,
86,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
467,
9053,
6717,
2802,
28325,
273,
1109,
12,
4106,
18,
10492,
9334,
6783,
3779,
18,
39,
1769,
1377,
368,
1697,
432,
31,
1377,
467,
9053,
5784,
6094,
3496,
21,
273,
261,
45,
9053,
5784,
6094,
13,
28325,
5411,
263,
588,
21408,
1435,
63,
20,
15533,
1377,
467,
9053,
4958,
378,
280,
690,
559,
21416,
1161,
559,
1990,
273,
261,
45,
9053,
4958,
378,
280,
690,
559,
21416,
13,
3496,
21,
5411,
263,
588,
3456,
21416,
5621,
1377,
1815,
8867,
12,
20,
16,
3496,
21,
18,
588,
3456,
297,
3062,
7675,
2469,
1769,
1377,
467,
9053,
461,
508,
37,
21,
273,
1161,
559,
1990,
18,
17994,
5621,
1377,
368,
6459,
284,
1435,
288,
1377,
467,
9053,
2083,
1852,
2295,
536,
273,
261,
45,
9053,
2083,
1852,
13,
28325,
5411,
263,
588,
21408,
1435,
63,
21,
15533,
1377,
467,
9053,
16835,
3406,
11360,
3406,
273,
261,
45,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6999,
1805,
1541,
22384,
67,
22,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
1697,
432,
31,
2398,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
6459,
284,
1435,
95,
2398,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
1958,
432,
380,
279,
31,
1377,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
97,
5397,
521,
86,
64,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
467,
9053,
6717,
2802,
28325,
273,
1109,
12,
4106,
18,
10492,
9334,
6783,
3779,
18,
39,
1769,
2
] |
runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "bad, local variable of type Hashtable", 1, rule), new TestDescriptor(TEST2, "bad, param of type Hashtable", 1, rule), }); }
|
runTests(rule); }
|
public void testAll() { runTests(new TestDescriptor[]{ new TestDescriptor(TEST1, "bad, local variable of type Hashtable", 1, rule), new TestDescriptor(TEST2, "bad, param of type Hashtable", 1, rule), }); }
|
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/ReplaceHashtableWithMapTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/migrating/ReplaceHashtableWithMapTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1595,
1435,
288,
3639,
1086,
14650,
12,
2704,
7766,
3187,
63,
7073,
5411,
394,
7766,
3187,
12,
16961,
21,
16,
315,
8759,
16,
1191,
2190,
434,
618,
18559,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
22,
16,
315,
8759,
16,
579,
434,
618,
18559,
3113,
404,
16,
1720,
3631,
3639,
15549,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1595,
1435,
288,
3639,
1086,
14650,
12,
2704,
7766,
3187,
63,
7073,
5411,
394,
7766,
3187,
12,
16961,
21,
16,
315,
8759,
16,
1191,
2190,
434,
618,
18559,
3113,
404,
16,
1720,
3631,
5411,
394,
7766,
3187,
12,
16961,
22,
16,
315,
8759,
16,
579,
434,
618,
18559,
3113,
404,
16,
1720,
3631,
3639,
15549,
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
] |
boolean isConst = false, isVolatile = false, isRestrict = false;
|
boolean isConst = false, isVolatile = false, isRestrict = false;
|
protected void consumePointerOperators(List pointerOps) throws EndOfFileException, BacktrackException { for (;;) { IToken mark = mark(); IToken last = null; boolean isConst = false, isVolatile = false, isRestrict = false; if (LT(1) != IToken.tSTAR) { backup(mark); break; } last = consume(IToken.tSTAR); int startOffset = mark.getOffset(); for (;;) { IToken t = LA(1); switch (LT(1)) { case IToken.t_const: last = consume(IToken.t_const); isConst = true; break; case IToken.t_volatile: last = consume(IToken.t_volatile); isVolatile = true; break; case IToken.t_restrict: last = consume(IToken.t_restrict); isRestrict = true; break; } if (t == LA(1)) break; } IASTPointerOperator po = createPointer(); ((ASTNode) po).setOffsetAndLength(startOffset, last.getEndOffset() - startOffset); ((ICASTPointer) po).setConst(isConst); ((ICASTPointer) po).setVolatile(isVolatile); ((ICASTPointer) po).setRestrict(isRestrict); pointerOps.add(po); } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8d833f012a81dac41a0d33c7e0f047c1dfe415f2/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
7865,
4926,
24473,
12,
682,
4407,
8132,
13,
540,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
1377,
364,
261,
25708,
13,
288,
540,
467,
1345,
2267,
273,
2267,
5621,
540,
467,
1345,
1142,
273,
446,
31,
540,
1250,
353,
9661,
273,
629,
16,
353,
17431,
20295,
273,
629,
16,
353,
29371,
273,
629,
31,
540,
309,
261,
12050,
12,
21,
13,
480,
467,
1345,
18,
88,
20943,
13,
288,
5411,
5114,
12,
3355,
1769,
5411,
898,
31,
540,
289,
540,
1142,
273,
7865,
12,
1285,
969,
18,
88,
20943,
1769,
540,
509,
18245,
273,
2267,
18,
588,
2335,
5621,
540,
364,
261,
25708,
13,
288,
5411,
467,
1345,
268,
273,
2928,
12,
21,
1769,
5411,
1620,
261,
12050,
12,
21,
3719,
288,
9079,
648,
467,
1345,
18,
88,
67,
10248,
30,
5375,
1142,
273,
7865,
12,
1285,
969,
18,
88,
67,
10248,
1769,
5375,
353,
9661,
273,
638,
31,
5375,
898,
31,
9079,
648,
467,
1345,
18,
88,
67,
15416,
20295,
30,
5375,
1142,
273,
7865,
12,
1285,
969,
18,
88,
67,
15416,
20295,
1769,
5375,
353,
17431,
20295,
273,
638,
31,
5375,
898,
31,
9079,
648,
467,
1345,
18,
88,
67,
30604,
30,
5375,
1142,
273,
7865,
12,
1285,
969,
18,
88,
67,
30604,
1769,
5375,
353,
29371,
273,
638,
31,
5375,
898,
31,
5411,
289,
5411,
309,
261,
88,
422,
2928,
12,
21,
3719,
9079,
898,
31,
540,
289,
540,
467,
9053,
4926,
5592,
8275,
273,
752,
4926,
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,
565,
4750,
918,
7865,
4926,
24473,
12,
682,
4407,
8132,
13,
540,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
1377,
364,
261,
25708,
13,
288,
540,
467,
1345,
2267,
273,
2267,
5621,
540,
467,
1345,
1142,
273,
446,
31,
540,
1250,
353,
9661,
273,
629,
16,
353,
17431,
20295,
273,
629,
16,
353,
29371,
273,
629,
31,
540,
309,
261,
12050,
12,
21,
13,
480,
467,
1345,
18,
88,
20943,
13,
288,
5411,
5114,
12,
3355,
1769,
5411,
898,
31,
540,
289,
540,
1142,
273,
7865,
12,
1285,
969,
18,
88,
20943,
1769,
540,
509,
18245,
273,
2267,
18,
588,
2335,
5621,
540,
364,
261,
25708,
13,
288,
5411,
467,
1345,
268,
273,
2928,
12,
21,
2
] |
public org.quickfix.field.OrigClOrdID getOrigClOrdID() throws FieldNotFound { org.quickfix.field.OrigClOrdID value = new org.quickfix.field.OrigClOrdID();
|
public quickfix.field.OrigClOrdID getOrigClOrdID() throws FieldNotFound { quickfix.field.OrigClOrdID value = new quickfix.field.OrigClOrdID();
|
public org.quickfix.field.OrigClOrdID getOrigClOrdID() throws FieldNotFound { org.quickfix.field.OrigClOrdID value = new org.quickfix.field.OrigClOrdID(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix44/CrossOrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
336,
4741,
2009,
15383,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
336,
4741,
2009,
15383,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4741,
2009,
15383,
734,
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
] |
int startOffset, int endOffset) { super(parent, startOffset, endOffset); this.reader = reader; }
|
int startOffset, int endOffset) { super(parent, startOffset, endOffset, reader); }
|
public _Inclusion(_CompositeContext parent, CodeReader reader, int startOffset, int endOffset) { super(parent, startOffset, endOffset); this.reader = reader; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/33390e2e03dc3a1dd0c3bedcc27e52231c6a907e/LocationMap.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/LocationMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
389,
382,
15335,
24899,
9400,
1042,
982,
16,
3356,
2514,
2949,
16,
5411,
509,
18245,
16,
509,
25507,
13,
288,
540,
2240,
12,
2938,
16,
18245,
16,
25507,
1769,
540,
333,
18,
10530,
273,
2949,
31,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
389,
382,
15335,
24899,
9400,
1042,
982,
16,
3356,
2514,
2949,
16,
5411,
509,
18245,
16,
509,
25507,
13,
288,
540,
2240,
12,
2938,
16,
18245,
16,
25507,
1769,
540,
333,
18,
10530,
273,
2949,
31,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
retval = "CREATE TABLE "+databaseMeta.quoteField(tablename)+Const.CR;
|
retval = "CREATE TABLE "+tablename+Const.CR;
|
public String getCreateTableStatement(String tablename, Row fields, String tk, boolean use_autoinc, String pk, boolean semicolon) { String retval; retval = "CREATE TABLE "+databaseMeta.quoteField(tablename)+Const.CR; retval+= "("+Const.CR; for (int i=0;i<fields.size();i++) { if (i>0) retval+=", "; else retval+=" "; Value v=fields.getValue(i); retval+=databaseMeta.getFieldDefinition(v, tk, pk, use_autoinc); } // At the end, before the closing of the statement, we might need to add some constraints... // Technical keys if (tk!=null) { if (databaseMeta.getDatabaseType()==DatabaseMeta.TYPE_DATABASE_CACHE) { retval+=", PRIMARY KEY ("+tk+")"+Const.CR; } } // Primary keys if (pk!=null) { if (databaseMeta.getDatabaseType()==DatabaseMeta.TYPE_DATABASE_ORACLE) { retval+=", PRIMARY KEY ("+pk+")"+Const.CR; } } retval+= ")"+Const.CR; if (databaseMeta.getDatabaseType()==DatabaseMeta.TYPE_DATABASE_ORACLE && databaseMeta.getIndexTablespace()!=null && databaseMeta.getIndexTablespace().length()>0) { retval+="TABLESPACE "+databaseMeta.getDataTablespace(); } if (semicolon) retval+=";"; retval+=Const.CR; return retval; }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/70a2d315dbb7ca263c936f81e226f8817c55f187/Database.java/buggy/src/be/ibridge/kettle/core/database/Database.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
25667,
1388,
3406,
12,
780,
19096,
16,
6556,
1466,
16,
514,
13030,
16,
1250,
999,
67,
5854,
885,
71,
16,
514,
2365,
16,
1250,
23682,
13,
202,
95,
202,
202,
780,
5221,
31,
9506,
202,
18341,
273,
315,
9344,
7567,
13773,
6231,
2781,
18,
6889,
974,
12,
7032,
14724,
27921,
9661,
18,
5093,
31,
202,
202,
18341,
15,
33,
12452,
15,
9661,
18,
5093,
31,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
2821,
18,
1467,
5621,
77,
27245,
202,
202,
95,
1082,
202,
430,
261,
77,
34,
20,
13,
5221,
15,
1546,
16,
13636,
469,
5221,
15,
1546,
225,
13636,
25083,
202,
620,
331,
33,
2821,
18,
24805,
12,
77,
1769,
1082,
202,
18341,
15,
33,
6231,
2781,
18,
588,
26380,
12,
90,
16,
13030,
16,
2365,
16,
999,
67,
5854,
885,
71,
1769,
202,
202,
97,
202,
202,
759,
2380,
326,
679,
16,
1865,
326,
7647,
434,
326,
3021,
16,
732,
4825,
1608,
358,
527,
2690,
6237,
2777,
202,
202,
759,
30960,
1706,
1311,
202,
202,
430,
261,
16099,
5,
33,
2011,
13,
202,
202,
95,
1082,
202,
430,
261,
6231,
2781,
18,
588,
4254,
559,
1435,
631,
4254,
2781,
18,
2399,
67,
22366,
67,
8495,
13,
1082,
202,
95,
9506,
202,
18341,
15,
1546,
16,
20058,
5311,
7566,
15,
16099,
9078,
2225,
15,
9661,
18,
5093,
31,
1082,
202,
97,
202,
202,
97,
9506,
202,
759,
15884,
1311,
202,
202,
430,
261,
5465,
5,
33,
2011,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
25667,
1388,
3406,
12,
780,
19096,
16,
6556,
1466,
16,
514,
13030,
16,
1250,
999,
67,
5854,
885,
71,
16,
514,
2365,
16,
1250,
23682,
13,
202,
95,
202,
202,
780,
5221,
31,
9506,
202,
18341,
273,
315,
9344,
7567,
13773,
6231,
2781,
18,
6889,
974,
12,
7032,
14724,
27921,
9661,
18,
5093,
31,
202,
202,
18341,
15,
33,
12452,
15,
9661,
18,
5093,
31,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
77,
32,
2821,
18,
1467,
5621,
77,
27245,
202,
202,
95,
1082,
202,
430,
261,
77,
34,
20,
13,
5221,
15,
1546,
16,
13636,
469,
5221,
15,
1546,
225,
13636,
25083,
202,
620,
331,
33,
2821,
18,
24805,
12,
77,
1769,
2
] |
namespaces.addElement(aPrefix == XMLSymbols.PREFIX_XMLNS ?
|
namespaces.add(aPrefix == XMLSymbols.PREFIX_XMLNS ?
|
void startAnnotation(QName elemName, XMLAttributes attributes, NamespaceContext namespaceContext) { if(fAnnotationBuffer == null) fAnnotationBuffer = new StringBuffer(256); fAnnotationBuffer.append("<").append(elemName.rawname).append(" "); // attributes are a bit of a pain. To get this right, we have to keep track // of the namespaces we've seen declared, then examine the namespace context // for other namespaces so that we can also include them. // optimized for simplicity and the case that not many // namespaces are declared on this annotation... Vector namespaces = new Vector(); for (int i = 0; i < attributes.getLength(); ++i) { String aValue = attributes.getValue(i); String aPrefix = attributes.getPrefix(i); String aQName = attributes.getQName(i); // if it's xmlns:* or xmlns, must be a namespace decl if (aPrefix == XMLSymbols.PREFIX_XMLNS || aQName == XMLSymbols.PREFIX_XMLNS) { namespaces.addElement(aPrefix == XMLSymbols.PREFIX_XMLNS ? attributes.getLocalName(i) : XMLSymbols.EMPTY_STRING); } fAnnotationBuffer.append(aQName).append("=\"").append(processAttValue(aValue)).append("\" "); } // now we have to look through currently in-scope namespaces to see what // wasn't declared here Enumeration currPrefixes = namespaceContext.getAllPrefixes(); while(currPrefixes.hasMoreElements()) { String prefix = (String)currPrefixes.nextElement(); String uri = namespaceContext.getURI(prefix); if (uri == null) { uri = XMLSymbols.EMPTY_STRING; } if (!namespaces.contains(prefix)) { // have to declare this one if(prefix == XMLSymbols.EMPTY_STRING) { fAnnotationBuffer.append("xmlns").append("=\"").append(processAttValue(uri)).append("\" "); } else { fAnnotationBuffer.append("xmlns:").append(prefix).append("=\"").append(processAttValue(uri)).append("\" "); } } } fAnnotationBuffer.append(">\n"); }
|
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/7a5a67c52f05e1b3026a1f319f8ac581e2dfed72/SchemaDOM.java/clean/src/org/apache/xerces/impl/xs/opti/SchemaDOM.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
787,
3257,
12,
13688,
3659,
461,
16,
3167,
2498,
1677,
16,
5411,
6005,
1042,
1981,
1042,
13,
288,
3639,
309,
12,
74,
3257,
1892,
422,
446,
13,
284,
3257,
1892,
273,
394,
6674,
12,
5034,
1769,
3639,
284,
3257,
1892,
18,
6923,
2932,
32,
20387,
6923,
12,
10037,
461,
18,
1899,
529,
2934,
6923,
2932,
315,
1769,
7734,
368,
1677,
854,
279,
2831,
434,
279,
293,
530,
18,
225,
2974,
336,
333,
2145,
16,
732,
1240,
358,
3455,
3298,
3639,
368,
434,
326,
7728,
732,
8081,
5881,
7886,
16,
1508,
19707,
558,
326,
1981,
819,
3639,
368,
364,
1308,
7728,
1427,
716,
732,
848,
2546,
2341,
2182,
18,
3639,
368,
15411,
364,
3142,
20458,
471,
326,
648,
716,
486,
4906,
3639,
368,
7728,
854,
7886,
603,
333,
3204,
2777,
3639,
5589,
7728,
273,
394,
5589,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1677,
18,
588,
1782,
5621,
965,
77,
13,
288,
5411,
514,
24406,
273,
1677,
18,
24805,
12,
77,
1769,
5411,
514,
279,
2244,
273,
1677,
18,
588,
2244,
12,
77,
1769,
5411,
514,
279,
13688,
273,
1677,
18,
588,
13688,
12,
77,
1769,
5411,
368,
309,
518,
1807,
12302,
30,
14,
578,
12302,
16,
1297,
506,
279,
1981,
3496,
5411,
309,
261,
69,
2244,
422,
3167,
14821,
18,
6307,
67,
4201,
3156,
747,
279,
13688,
422,
3167,
14821,
18,
6307,
67,
4201,
3156,
13,
288,
7734,
7728,
18,
1289,
12,
69,
2244,
422,
3167,
14821,
18,
6307,
67,
4201,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
787,
3257,
12,
13688,
3659,
461,
16,
3167,
2498,
1677,
16,
5411,
6005,
1042,
1981,
1042,
13,
288,
3639,
309,
12,
74,
3257,
1892,
422,
446,
13,
284,
3257,
1892,
273,
394,
6674,
12,
5034,
1769,
3639,
284,
3257,
1892,
18,
6923,
2932,
32,
20387,
6923,
12,
10037,
461,
18,
1899,
529,
2934,
6923,
2932,
315,
1769,
7734,
368,
1677,
854,
279,
2831,
434,
279,
293,
530,
18,
225,
2974,
336,
333,
2145,
16,
732,
1240,
358,
3455,
3298,
3639,
368,
434,
326,
7728,
732,
8081,
5881,
7886,
16,
1508,
19707,
558,
326,
1981,
819,
3639,
368,
364,
1308,
7728,
1427,
716,
732,
848,
2546,
2341,
2182,
18,
3639,
368,
15411,
364,
3142,
20458,
471,
326,
648,
2
] |
private void buildSmallBlockArray(int fileSize, int firstBlock)
|
private void buildSmallBlockArray(int fileSize, int firstBlock)
|
private void buildSmallBlockArray(int fileSize, int firstBlock) throws IOException { int numBigBlocks = ((fileSize / 64) / bigBlock) + 1; smallBlockArray = new byte[0]; int blocksRead = 0; while ((numBigBlocks > 0) && (firstBlock > 0)) { in.seek(firstBlock * bigBlock); read.add(new Integer(firstBlock)); byte[] block = new byte[bigBlock]; in.read(block); for (int i=0; i<block.length; i+=4) { if ((blocksRead*bigBlock + (i / 4)) < (fileSize / 64)) { int blockNumber = DataTools.bytesToInt(block, i, 4, true); if ((blockNumber*bigBlock) > 0) { byte[] tmp = smallBlockArray; smallBlockArray = new byte[tmp.length + bigBlock]; System.arraycopy(tmp, 0, smallBlockArray, 0, tmp.length); in.seek(blockNumber * bigBlock); read.add(new Integer(blockNumber)); in.read(smallBlockArray, tmp.length, bigBlock); } } } firstBlock = sbat[firstBlock]; blocksRead++; numBigBlocks--; } }
|
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/e1c1aa6cc0c7d00068e668cc26f365c20679cd01/OLEParser.java/clean/loci/formats/OLEParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1361,
19187,
1768,
1076,
12,
474,
18984,
16,
509,
1122,
1768,
13,
565,
1216,
1860,
225,
288,
565,
509,
818,
9901,
6450,
273,
14015,
768,
1225,
342,
5178,
13,
342,
5446,
1768,
13,
397,
404,
31,
565,
5264,
1768,
1076,
273,
394,
1160,
63,
20,
15533,
565,
509,
4398,
1994,
273,
374,
31,
565,
1323,
14015,
2107,
9901,
6450,
405,
374,
13,
597,
261,
3645,
1768,
405,
374,
3719,
288,
1377,
316,
18,
16508,
12,
3645,
1768,
380,
5446,
1768,
1769,
1377,
855,
18,
1289,
12,
2704,
2144,
12,
3645,
1768,
10019,
1377,
1160,
8526,
1203,
273,
394,
1160,
63,
14002,
1768,
15533,
1377,
316,
18,
896,
12,
2629,
1769,
1377,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2629,
18,
2469,
31,
277,
15,
33,
24,
13,
288,
3639,
309,
14015,
7996,
1994,
14,
14002,
1768,
397,
261,
77,
342,
1059,
3719,
411,
261,
768,
1225,
342,
5178,
3719,
288,
1850,
509,
1203,
1854,
273,
1910,
10348,
18,
3890,
17864,
12,
2629,
16,
277,
16,
1059,
16,
638,
1769,
1850,
309,
14015,
2629,
1854,
14,
14002,
1768,
13,
405,
374,
13,
288,
5411,
1160,
8526,
1853,
273,
5264,
1768,
1076,
31,
5411,
5264,
1768,
1076,
273,
394,
1160,
63,
5645,
18,
2469,
397,
5446,
1768,
15533,
5411,
2332,
18,
1126,
3530,
12,
5645,
16,
374,
16,
5264,
1768,
1076,
16,
374,
16,
1853,
18,
2469,
1769,
5411,
316,
18,
16508,
12,
2629,
1854,
380,
5446,
1768,
1769,
5411,
855,
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,
282,
3238,
918,
1361,
19187,
1768,
1076,
12,
474,
18984,
16,
509,
1122,
1768,
13,
565,
1216,
1860,
225,
288,
565,
509,
818,
9901,
6450,
273,
14015,
768,
1225,
342,
5178,
13,
342,
5446,
1768,
13,
397,
404,
31,
565,
5264,
1768,
1076,
273,
394,
1160,
63,
20,
15533,
565,
509,
4398,
1994,
273,
374,
31,
565,
1323,
14015,
2107,
9901,
6450,
405,
374,
13,
597,
261,
3645,
1768,
405,
374,
3719,
288,
1377,
316,
18,
16508,
12,
3645,
1768,
380,
5446,
1768,
1769,
1377,
855,
18,
1289,
12,
2704,
2144,
12,
3645,
1768,
10019,
1377,
1160,
8526,
1203,
273,
394,
1160,
63,
14002,
1768,
15533,
1377,
316,
18,
896,
12,
2629,
1769,
1377,
364,
261,
474,
277,
33,
2
] |
return Float.toString((((PACKET_SIZE * 1000 / getDelay())) / 1024)) + " k/sec, (w: "
|
return Double.toString((((PACKET_SIZE * 1000.0 / getDelay())) / 1024)) + " k/sec, (w: "
|
public String toString() { return Float.toString((((PACKET_SIZE * 1000 / getDelay())) / 1024)) + " k/sec, (w: " + _simulatedWindowSize + ", r:" + _roundTripTime + ", d:" + (((float) _droppedPackets / (float) _totalPackets)) + ")"; }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/d69dceaa72feee5ece14b8de951841aa9b614188/PacketThrottle.java/buggy/src/freenet/io/xfer/PacketThrottle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
5450,
18,
10492,
12443,
12443,
12231,
1584,
67,
4574,
380,
4336,
342,
18531,
528,
1435,
3719,
342,
6250,
3719,
397,
315,
417,
19,
3321,
16,
261,
91,
30,
315,
9506,
202,
15,
389,
9812,
11799,
3829,
1225,
397,
3104,
436,
2773,
397,
389,
2260,
16148,
950,
397,
3104,
302,
2773,
9506,
202,
15,
261,
12443,
5659,
13,
389,
7285,
1845,
27328,
342,
261,
5659,
13,
389,
4963,
27328,
3719,
397,
7310,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
1435,
288,
202,
202,
2463,
5450,
18,
10492,
12443,
12443,
12231,
1584,
67,
4574,
380,
4336,
342,
18531,
528,
1435,
3719,
342,
6250,
3719,
397,
315,
417,
19,
3321,
16,
261,
91,
30,
315,
9506,
202,
15,
389,
9812,
11799,
3829,
1225,
397,
3104,
436,
2773,
397,
389,
2260,
16148,
950,
397,
3104,
302,
2773,
9506,
202,
15,
261,
12443,
5659,
13,
389,
7285,
1845,
27328,
342,
261,
5659,
13,
389,
4963,
27328,
3719,
397,
7310,
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
] |
if (tail instanceof String) { tail = new StrNode(position, (String)tail);
|
if (tail == null) { return head;
|
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { list = (ListNode) head; } if (tail instanceof String) { tail = new StrNode(position, (String)tail); } list.add((Node)tail); return list; }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/e9bf476d31a1adc390bf346977ba9fb6e8419f5b/ParserSupport.java/clean/src/org/jruby/parser/ParserSupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
7158,
67,
16426,
12,
45,
1830,
2555,
1754,
16,
2029,
910,
16,
2398,
1033,
5798,
13,
288,
3639,
987,
907,
666,
31,
7734,
309,
261,
1978,
422,
446,
13,
288,
5411,
666,
273,
394,
463,
1585,
907,
12,
3276,
1769,
3639,
289,
469,
309,
261,
1978,
1276,
30964,
1585,
907,
13,
288,
5411,
666,
273,
394,
463,
1585,
907,
12,
3276,
2934,
1289,
12,
1978,
1769,
3639,
289,
469,
288,
5411,
666,
273,
261,
682,
907,
13,
910,
31,
3639,
289,
7734,
309,
261,
13101,
1276,
514,
13,
288,
5411,
5798,
273,
394,
3978,
907,
12,
3276,
16,
261,
780,
13,
13101,
1769,
3639,
289,
3639,
666,
18,
1289,
12443,
907,
13,
13101,
1769,
7734,
327,
666,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
2029,
7158,
67,
16426,
12,
45,
1830,
2555,
1754,
16,
2029,
910,
16,
2398,
1033,
5798,
13,
288,
3639,
987,
907,
666,
31,
7734,
309,
261,
1978,
422,
446,
13,
288,
5411,
666,
273,
394,
463,
1585,
907,
12,
3276,
1769,
3639,
289,
469,
309,
261,
1978,
1276,
30964,
1585,
907,
13,
288,
5411,
666,
273,
394,
463,
1585,
907,
12,
3276,
2934,
1289,
12,
1978,
1769,
3639,
289,
469,
288,
5411,
666,
273,
261,
682,
907,
13,
910,
31,
3639,
289,
7734,
309,
261,
13101,
1276,
514,
13,
288,
5411,
5798,
273,
394,
3978,
907,
12,
3276,
16,
261,
780,
13,
13101,
1769,
3639,
289,
3639,
666,
18,
1289,
12443,
907,
13,
13101,
1769,
7734,
327,
2
] |
return book; }
|
return book; }
|
protected PageBook getPageBook() { return book; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9ff1117bd4d0d76888bfb35def7ce85f6378a2d3/PageBookView.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/PageBookView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3460,
9084,
8957,
9084,
1435,
288,
3639,
327,
6978,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3460,
9084,
8957,
9084,
1435,
288,
3639,
327,
6978,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
graphics.fillOval(screenCoords[0], screenCoords[1], (int)(width*r2dm.getZoomFactor()), (int)(height*r2dm.getZoomFactor())); double innerWidth = width*0.9; double innerHeight = height*0.9; int[] innerCoords = {(int)(center.x - (innerWidth/2.0)), (int)(center.y + (innerHeight/2.0))}; screenCoords = getScreenCoordinates(innerCoords);
|
graphics.fillOval( screenCoords[0], screenCoords[1], ring_width, ring_height);
|
public void paintRingRing(Ring ring, Color bondColor, Graphics graphics) { Point2d center = ring.get2DCenter(); double[] minmax = GeometryTools.getMinMax(ring); double width = (minmax[2]- minmax[0])*0.7; double height = (minmax[3]- minmax[1])*0.7; int[] coords = {(int)(center.x - (width/2.0)), (int)(center.y + (height/2.0))}; int[] screenCoords = getScreenCoordinates(coords); graphics.setColor(bondColor); graphics.fillOval(screenCoords[0], screenCoords[1], (int)(width*r2dm.getZoomFactor()), (int)(height*r2dm.getZoomFactor())); double innerWidth = width*0.9; double innerHeight = height*0.9; int[] innerCoords = {(int)(center.x - (innerWidth/2.0)), (int)(center.y + (innerHeight/2.0))}; screenCoords = getScreenCoordinates(innerCoords); graphics.setColor(r2dm.getBackColor()); graphics.fillOval(screenCoords[0], screenCoords[1], (int)(innerWidth*r2dm.getZoomFactor()), (int)(innerHeight*r2dm.getZoomFactor())); graphics.setColor(bondColor); }
|
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/6e097502675dcad10ac8b292b0538fdca508f03e/Renderer2D.java/buggy/src/org/openscience/cdk/renderer/Renderer2D.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
10369,
10369,
12,
10369,
9221,
16,
5563,
8427,
2957,
16,
16830,
17313,
13,
288,
202,
202,
2148,
22,
72,
4617,
273,
9221,
18,
588,
22,
5528,
2328,
5621,
3639,
1645,
8526,
30112,
273,
8344,
10348,
18,
588,
17454,
12,
8022,
1769,
3639,
1645,
1835,
273,
261,
1154,
1896,
63,
22,
65,
17,
30112,
63,
20,
5717,
14,
20,
18,
27,
31,
3639,
1645,
2072,
273,
261,
1154,
1896,
63,
23,
65,
17,
30112,
63,
21,
5717,
14,
20,
18,
27,
31,
202,
202,
474,
8526,
6074,
273,
288,
12,
474,
21433,
5693,
18,
92,
300,
261,
2819,
19,
22,
18,
20,
13,
3631,
7682,
261,
474,
21433,
5693,
18,
93,
397,
261,
4210,
19,
22,
18,
20,
3719,
20451,
3639,
509,
8526,
5518,
13089,
273,
22303,
13431,
12,
9076,
1769,
3639,
17313,
18,
542,
2957,
12,
26425,
2957,
1769,
3639,
17313,
18,
5935,
51,
1125,
12,
9252,
13089,
63,
20,
6487,
5518,
13089,
63,
21,
6487,
21821,
261,
474,
21433,
2819,
14,
86,
22,
10956,
18,
588,
11497,
6837,
1435,
3631,
21821,
261,
474,
21433,
4210,
14,
86,
22,
10956,
18,
588,
11497,
6837,
1435,
10019,
7734,
1645,
3443,
2384,
273,
1835,
14,
20,
18,
29,
31,
3639,
1645,
3443,
2686,
273,
2072,
14,
20,
18,
29,
31,
202,
202,
474,
8526,
3443,
13089,
273,
288,
12,
474,
21433,
5693,
18,
92,
300,
261,
7872,
2384,
19,
22,
18,
20,
13,
3631,
17311,
261,
474,
21433,
5693,
18,
93,
397,
261,
7872,
2686,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
10369,
10369,
12,
10369,
9221,
16,
5563,
8427,
2957,
16,
16830,
17313,
13,
288,
202,
202,
2148,
22,
72,
4617,
273,
9221,
18,
588,
22,
5528,
2328,
5621,
3639,
1645,
8526,
30112,
273,
8344,
10348,
18,
588,
17454,
12,
8022,
1769,
3639,
1645,
1835,
273,
261,
1154,
1896,
63,
22,
65,
17,
30112,
63,
20,
5717,
14,
20,
18,
27,
31,
3639,
1645,
2072,
273,
261,
1154,
1896,
63,
23,
65,
17,
30112,
63,
21,
5717,
14,
20,
18,
27,
31,
202,
202,
474,
8526,
6074,
273,
288,
12,
474,
21433,
5693,
18,
92,
300,
261,
2819,
19,
22,
18,
20,
13,
3631,
7682,
261,
474,
21433,
5693,
18,
93,
397,
261,
4210,
19,
22,
2
] |
if (!isPassenger(passenger) && (passengers.size() <= maxPassengers)) passengers.addElement(passenger);
|
if ( (passengers.size() < maxPassengers) && !isPassenger(passenger) ) { passengers.addElement(passenger); }
|
public void addPassenger(Person passenger) { if (!isPassenger(passenger) && (passengers.size() <= maxPassengers)) passengers.addElement(passenger); }
|
49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/3d9881fb9904bbdab3fde5037628340bffd5e397/Vehicle.java/clean/Vehicle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
6433,
14348,
12,
8346,
1342,
14348,
13,
288,
225,
202,
430,
261,
261,
5466,
275,
6215,
18,
1467,
1435,
411,
943,
6433,
275,
6215,
13,
597,
401,
291,
6433,
14348,
12,
5466,
14348,
13,
262,
288,
1342,
275,
6215,
18,
1289,
1046,
12,
5466,
14348,
1769,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
6433,
14348,
12,
8346,
1342,
14348,
13,
288,
225,
202,
430,
261,
261,
5466,
275,
6215,
18,
1467,
1435,
411,
943,
6433,
275,
6215,
13,
597,
401,
291,
6433,
14348,
12,
5466,
14348,
13,
262,
288,
1342,
275,
6215,
18,
1289,
1046,
12,
5466,
14348,
1769,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.bugId = taskData.getId();
|
this.id = taskData.getId();
|
public ExistingBugEditorInput(TaskRepository repository, RepositoryTaskData taskData) { super(repository, taskData); this.bugId = taskData.getId(); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/6f349472f453609a630d48f7596ea92999810019/ExistingBugEditorInput.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/editors/ExistingBugEditorInput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
28257,
19865,
6946,
1210,
12,
2174,
3305,
3352,
16,
6281,
2174,
751,
1562,
751,
13,
288,
202,
202,
9565,
12,
9071,
16,
1562,
751,
1769,
202,
202,
2211,
18,
925,
548,
273,
1562,
751,
18,
26321,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28257,
19865,
6946,
1210,
12,
2174,
3305,
3352,
16,
6281,
2174,
751,
1562,
751,
13,
288,
202,
202,
9565,
12,
9071,
16,
1562,
751,
1769,
202,
202,
2211,
18,
925,
548,
273,
1562,
751,
18,
26321,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( synPredMatched572 ) {
|
if ( synPredMatched571 ) {
|
public final void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = STRING_LITERAL; int _saveIndex; int tt=0; boolean synPredMatched572 = false; if (((LA(1)=='\'') && (LA(2)=='\'') && (LA(3)=='\'') && ((LA(4) >= '\u0003' && LA(4) <= '\uffff')))) { int _m572 = mark(); synPredMatched572 = true; inputState.guessing++; try { { match("'''"); } } catch (RecognitionException pe) { synPredMatched572 = false; } rewind(_m572); inputState.guessing--; } if ( synPredMatched572 ) { _saveIndex=text.length(); match("'''"); text.setLength(_saveIndex); { _loop577: do { switch ( LA(1)) { case '\n': case '\r': case '\\': { mESC(false); break; } case '"': { match('"'); break; } case '$': { match('$'); break; } default: boolean synPredMatched576 = false; if (((LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && ((LA(3) >= '\u0003' && LA(3) <= '\uffff')) && ((LA(4) >= '\u0003' && LA(4) <= '\uffff')))) { int _m576 = mark(); synPredMatched576 = true; inputState.guessing++; try { { match('\''); { if ((_tokenSet_2.member(LA(1)))) { matchNot('\''); } else if ((LA(1)=='\'')) { match('\''); matchNot('\''); } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } catch (RecognitionException pe) { synPredMatched576 = false; } rewind(_m576); inputState.guessing--; } if ( synPredMatched576 ) { match('\''); } else if ((_tokenSet_3.member(LA(1)))) { mSTRING_CH(false); } else { break _loop577; } } } while (true); } _saveIndex=text.length(); match("'''"); text.setLength(_saveIndex); } else { boolean synPredMatched581 = false; if (((LA(1)=='"') && (LA(2)=='"') && (LA(3)=='"') && ((LA(4) >= '\u0003' && LA(4) <= '\uffff')))) { int _m581 = mark(); synPredMatched581 = true; inputState.guessing++; try { { match("\"\"\""); } } catch (RecognitionException pe) { synPredMatched581 = false; } rewind(_m581); inputState.guessing--; } if ( synPredMatched581 ) { _saveIndex=text.length(); match("\"\"\""); text.setLength(_saveIndex); tt=mSTRING_CTOR_END(false,true, /*tripleQuote:*/ true); if ( inputState.guessing==0 ) { _ttype = tt; } } else if ((LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && (true) && (true)) { _saveIndex=text.length(); match('\''); text.setLength(_saveIndex); if ( inputState.guessing==0 ) { ++suppressNewline; } { _loop579: do { switch ( LA(1)) { case '\n': case '\r': case '\\': { mESC(false); break; } case '"': { match('"'); break; } case '$': { match('$'); break; } default: if ((_tokenSet_3.member(LA(1)))) { mSTRING_CH(false); } else { break _loop579; } } } while (true); } if ( inputState.guessing==0 ) { --suppressNewline; } _saveIndex=text.length(); match('\''); text.setLength(_saveIndex); } else if ((LA(1)=='"') && ((LA(2) >= '\u0003' && LA(2) <= '\uffff')) && (true) && (true)) { _saveIndex=text.length(); match('"'); text.setLength(_saveIndex); if ( inputState.guessing==0 ) { ++suppressNewline; } tt=mSTRING_CTOR_END(false,true, /*tripleQuote:*/ false); if ( inputState.guessing==0 ) { _ttype = tt; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
|
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27957314a380e54096257a6753ad9d316ee78892/GroovyLexer.java/clean/src/main/org/codehaus/groovy/antlr/parser/GroovyLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
5804,
67,
23225,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
9469,
67,
23225,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
474,
3574,
33,
20,
31,
9506,
202,
6494,
6194,
10391,
15400,
25,
9060,
273,
629,
31,
202,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
3730,
6134,
597,
261,
2534,
12,
22,
13,
18920,
3730,
6134,
597,
261,
2534,
12,
23,
13,
18920,
3730,
6134,
597,
14015,
2534,
12,
24,
13,
1545,
2337,
89,
30770,
11,
597,
2928,
12,
24,
13,
1648,
2337,
696,
25449,
26112,
3719,
288,
1082,
202,
474,
389,
81,
25,
9060,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
25,
9060,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
1082,
202,
698,
288,
9506,
202,
95,
9506,
202,
1916,
2932,
6309,
4970,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
261,
5650,
7909,
503,
2804,
13,
288,
9506,
202,
11982,
10391,
15400,
25,
9060,
273,
629,
31,
1082,
202,
97,
1082,
202,
266,
10094,
24899,
81,
25,
9060,
1769,
1082,
202,
2630,
1119,
18,
20885,
310,
413,
31,
202,
202,
97,
202,
202,
430,
261,
6194,
10391,
15400,
25,
9060,
262,
288,
1082,
202,
67,
5688,
1016,
33,
955,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
5804,
67,
23225,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
9469,
67,
23225,
31,
202,
202,
474,
389,
5688,
1016,
31,
202,
202,
474,
3574,
33,
20,
31,
9506,
202,
6494,
6194,
10391,
15400,
25,
9060,
273,
629,
31,
202,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
3730,
6134,
597,
261,
2534,
12,
22,
13,
18920,
3730,
6134,
597,
261,
2534,
12,
23,
13,
18920,
3730,
6134,
597,
14015,
2534,
12,
24,
13,
1545,
2
] |
} DelegatingMetaClass metaClass = (DelegatingMetaClass)InvokerHelper.getInstance().getMetaRegistry().getMetaClass(target.getClass()); metaClass.setProperty(target,DomainClassMethods.ERRORS_PROPERTY,errors);
|
} if(target instanceof GroovyObject) { ((GroovyObject)target).setProperty(DomainClassMethods.ERRORS_PROPERTY,errors); } else { DelegatingMetaClass metaClass = (DelegatingMetaClass)InvokerHelper.getInstance().getMetaRegistry().getMetaClass(target.getClass()); metaClass.setProperty(target,DomainClassMethods.ERRORS_PROPERTY,errors); }
|
protected Object doInvokeInternal(Object target, Object[] arguments) { HibernateTemplate t = getHibernateTemplate(); Errors errors = new BindException(target, target.getClass().getName()); GrailsDomainClass domainClass = application.getGrailsDomainClass( target.getClass().getName() ); Validator validator = null; boolean doValidation = true; if(domainClass != null) { validator = domainClass.getValidator(); doValidation = true; if(arguments.length > 0) { if(arguments[0] instanceof Boolean) { doValidation = ((Boolean)arguments[0]).booleanValue(); } } } if(doValidation) { if(validator != null) { if(validator instanceof GrailsDomainClassValidator) { ((GrailsDomainClassValidator)validator).setHibernateTemplate(getHibernateTemplate()); } validator.validate(target,errors); if(errors.hasErrors()) { // if the target is within the session evict it // this is so that if validation fails hibernate doesn't save // the object automatically when the session is flushed if(t.contains(target)) { t.evict(target); } DelegatingMetaClass metaClass = (DelegatingMetaClass)InvokerHelper.getInstance().getMetaRegistry().getMetaClass(target.getClass()); metaClass.setProperty(target,DomainClassMethods.ERRORS_PROPERTY,errors); return null; } } } // this piece of code will retrieve a persistent instant // of a domain class property is only the id is set thus // relieving this burden off the developer if(domainClass != null) { BeanWrapper bean = new BeanWrapperImpl(target); GrailsDomainClassProperty[] props = domainClass.getPersistantProperties(); for (int i = 0; i < props.length; i++) { GrailsDomainClassProperty prop = props[i]; if(prop.isManyToOne() || prop.isOneToOne()) { Object propValue = bean.getPropertyValue(prop.getName()); if(propValue != null && !t.contains(propValue)) { GrailsDomainClass otherSide = application.getGrailsDomainClass(prop.getType().getName()); if(otherSide != null) { BeanWrapper propBean = new BeanWrapperImpl(propValue); Serializable id = (Serializable)propBean.getPropertyValue(otherSide.getIdentifier().getName()); if(id != null) { bean.setPropertyValue(prop.getName(),t.get(prop.getType(),id)); } } } } } } t.saveOrUpdate(target); return target; }
|
47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/1117b8e5ad82296dfa5cee6143e23f06de19968b/SavePersistentMethod.java/buggy/grails/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/SavePersistentMethod.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
741,
10969,
3061,
12,
921,
1018,
16,
1033,
8526,
1775,
13,
288,
3639,
670,
24360,
2283,
268,
273,
7628,
24360,
2283,
5621,
3639,
9372,
1334,
273,
394,
6936,
503,
12,
3299,
16,
1018,
18,
588,
797,
7675,
17994,
10663,
3639,
10812,
14573,
3748,
797,
2461,
797,
273,
2521,
18,
588,
14571,
14573,
3748,
797,
12,
1018,
18,
588,
797,
7675,
17994,
1435,
11272,
3639,
9150,
4213,
273,
446,
31,
3639,
1250,
741,
4354,
273,
638,
31,
3639,
309,
12,
4308,
797,
480,
446,
13,
288,
5411,
4213,
273,
2461,
797,
18,
588,
5126,
5621,
5411,
741,
4354,
273,
638,
31,
5411,
309,
12,
7099,
18,
2469,
405,
374,
13,
288,
7734,
309,
12,
7099,
63,
20,
65,
1276,
3411,
13,
288,
10792,
741,
4354,
273,
14015,
5507,
13,
7099,
63,
20,
65,
2934,
6494,
620,
5621,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
12,
2896,
4354,
13,
288,
5411,
309,
12,
7357,
480,
446,
13,
288,
7734,
309,
12,
7357,
1276,
10812,
14573,
3748,
797,
5126,
13,
288,
5397,
14015,
14571,
14573,
3748,
797,
5126,
13,
7357,
2934,
542,
44,
24360,
2283,
12,
588,
44,
24360,
2283,
10663,
7734,
289,
7734,
4213,
18,
5662,
12,
3299,
16,
4324,
1769,
7734,
309,
12,
4324,
18,
5332,
4229,
10756,
288,
10792,
368,
309,
326,
1018,
353,
3470,
326,
1339,
18161,
518,
10792,
368,
333,
353,
1427,
716,
309,
3379,
6684,
366,
24360,
3302,
1404,
1923,
10792,
368,
326,
733,
6635,
1347,
326,
1339,
353,
22604,
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,
1033,
741,
10969,
3061,
12,
921,
1018,
16,
1033,
8526,
1775,
13,
288,
3639,
670,
24360,
2283,
268,
273,
7628,
24360,
2283,
5621,
3639,
9372,
1334,
273,
394,
6936,
503,
12,
3299,
16,
1018,
18,
588,
797,
7675,
17994,
10663,
3639,
10812,
14573,
3748,
797,
2461,
797,
273,
2521,
18,
588,
14571,
14573,
3748,
797,
12,
1018,
18,
588,
797,
7675,
17994,
1435,
11272,
3639,
9150,
4213,
273,
446,
31,
3639,
1250,
741,
4354,
273,
638,
31,
3639,
309,
12,
4308,
797,
480,
446,
13,
288,
5411,
4213,
273,
2461,
797,
18,
588,
5126,
5621,
5411,
741,
4354,
273,
638,
31,
5411,
309,
12,
7099,
18,
2469,
405,
374,
13,
288,
7734,
309,
12,
7099,
63,
20,
2
] |
return baseColor +"_anime";
|
return baseColor.anime();
|
public String getIconColor() { if(!isBuilding()) { // already built if(result==Result.SUCCESS) return "blue"; if(result== Result.UNSTABLE) return "yellow"; else return "red"; } // a new build is in progress String baseColor; if(previousBuild==null) baseColor = "grey"; else baseColor = previousBuild.getIconColor(); return baseColor +"_anime"; }
|
30846 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/30846/84e0676229b1f5526d4ad0e0107998685f04a0e2/Run.java/buggy/core/src/main/java/hudson/model/Run.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
21724,
2957,
1435,
288,
3639,
309,
12,
5,
291,
16713,
10756,
288,
5411,
368,
1818,
6650,
5411,
309,
12,
2088,
631,
1253,
18,
12778,
13,
7734,
327,
315,
14081,
14432,
5411,
309,
12,
2088,
631,
3438,
18,
2124,
882,
2782,
13,
7734,
327,
315,
19227,
14432,
5411,
469,
7734,
327,
315,
1118,
14432,
3639,
289,
3639,
368,
279,
394,
1361,
353,
316,
4007,
3639,
514,
1026,
2957,
31,
3639,
309,
12,
11515,
3116,
631,
2011,
13,
5411,
1026,
2957,
273,
315,
11556,
93,
14432,
3639,
469,
5411,
1026,
2957,
273,
2416,
3116,
18,
588,
5554,
2957,
5621,
3639,
327,
1026,
2957,
18,
304,
494,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
514,
21724,
2957,
1435,
288,
3639,
309,
12,
5,
291,
16713,
10756,
288,
5411,
368,
1818,
6650,
5411,
309,
12,
2088,
631,
1253,
18,
12778,
13,
7734,
327,
315,
14081,
14432,
5411,
309,
12,
2088,
631,
3438,
18,
2124,
882,
2782,
13,
7734,
327,
315,
19227,
14432,
5411,
469,
7734,
327,
315,
1118,
14432,
3639,
289,
3639,
368,
279,
394,
1361,
353,
316,
4007,
3639,
514,
1026,
2957,
31,
3639,
309,
12,
11515,
3116,
631,
2011,
13,
5411,
1026,
2957,
273,
315,
11556,
93,
14432,
3639,
469,
5411,
1026,
2957,
273,
2416,
3116,
18,
588,
5554,
2957,
5621,
3639,
327,
1026,
2957,
18,
304,
494,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super.hitHandle(r, h); if (h.index != -1) return; if (!_paintButtons) return; Editor ce = Globals.curEditor(); SelectionManager sm = ce.getSelectionManager(); if (sm.size() != 1) return; ModeManager mm = ce.getModeManager(); if (mm.includes(ModeModify.class) && _pressedButton == -1) return; int cx = _content.getX(); int cy = _content.getY(); int cw = _content.getWidth(); int ch = _content.getHeight(); int sCw = stimCall.getIconWidth(); int sCh = stimCall.getIconHeight(); int sRw = stimRet.getIconWidth(); int sRh = stimRet.getIconHeight();
|
super.hitHandle(r, h); if (h.index != -1) return; if (!_paintButtons) return; Editor ce = Globals.curEditor(); SelectionManager sm = ce.getSelectionManager(); if (sm.size() != 1) return; ModeManager mm = ce.getModeManager(); if (mm.includes(ModeModify.class) && _pressedButton == -1) return; int cx = _content.getX(); int cy = _content.getY(); int cw = _content.getWidth(); int ch = _content.getHeight(); int sCw = stimCall.getIconWidth(); int sCh = stimCall.getIconHeight(); int sRw = stimRet.getIconWidth(); int sRh = stimRet.getIconHeight();
|
public void hitHandle(Rectangle r, Handle h) { super.hitHandle(r, h); if (h.index != -1) return; if (!_paintButtons) return; Editor ce = Globals.curEditor(); SelectionManager sm = ce.getSelectionManager(); if (sm.size() != 1) return; ModeManager mm = ce.getModeManager(); if (mm.includes(ModeModify.class) && _pressedButton == -1) return; int cx = _content.getX(); int cy = _content.getY(); int cw = _content.getWidth(); int ch = _content.getHeight(); int sCw = stimCall.getIconWidth(); int sCh = stimCall.getIconHeight(); int sRw = stimRet.getIconWidth(); int sRh = stimRet.getIconHeight(); if (hitLeft(cx + cw, yPos, sCw, sCh, r)) { h.index = 10; h.instructions = "Add a called object"; } else if (hitRight(cx, yPos, sRw, sRh, r)) { h.index = 11; h.instructions = "Add a calling object"; } else { h.index = -1; h.instructions = "Move object(s)"; } }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/SelectionSeqObject.java/buggy/src_new/org/argouml/uml/diagram/sequence/ui/SelectionSeqObject.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
6800,
3259,
12,
19463,
436,
16,
5004,
366,
13,
288,
565,
2240,
18,
15989,
3259,
12,
86,
16,
366,
1769,
565,
309,
261,
76,
18,
1615,
480,
300,
21,
13,
327,
31,
565,
309,
16051,
67,
84,
1598,
14388,
13,
327,
31,
565,
18451,
5898,
273,
18901,
1031,
18,
1397,
6946,
5621,
565,
12977,
1318,
3029,
273,
5898,
18,
588,
6233,
1318,
5621,
565,
309,
261,
4808,
18,
1467,
1435,
480,
404,
13,
327,
31,
565,
8126,
1318,
9740,
273,
5898,
18,
588,
2309,
1318,
5621,
565,
309,
261,
7020,
18,
18499,
12,
2309,
11047,
18,
1106,
13,
597,
389,
10906,
3616,
422,
300,
21,
13,
327,
31,
565,
509,
9494,
273,
389,
1745,
18,
588,
60,
5621,
565,
509,
6143,
273,
389,
1745,
18,
588,
61,
5621,
565,
509,
14098,
273,
389,
1745,
18,
588,
2384,
5621,
565,
509,
462,
273,
389,
1745,
18,
588,
2686,
5621,
565,
509,
272,
39,
91,
273,
25542,
1477,
18,
588,
5554,
2384,
5621,
565,
509,
272,
782,
273,
25542,
1477,
18,
588,
5554,
2686,
5621,
565,
509,
272,
54,
91,
273,
25542,
7055,
18,
588,
5554,
2384,
5621,
565,
509,
272,
54,
76,
273,
25542,
7055,
18,
588,
5554,
2686,
5621,
565,
309,
261,
15989,
3910,
12,
71,
92,
397,
14098,
16,
677,
1616,
16,
272,
39,
91,
16,
272,
782,
16,
436,
3719,
288,
1377,
366,
18,
1615,
273,
1728,
31,
1377,
366,
18,
25758,
273,
315,
986,
279,
2566,
733,
14432,
565,
289,
565,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
6800,
3259,
12,
19463,
436,
16,
5004,
366,
13,
288,
565,
2240,
18,
15989,
3259,
12,
86,
16,
366,
1769,
565,
309,
261,
76,
18,
1615,
480,
300,
21,
13,
327,
31,
565,
309,
16051,
67,
84,
1598,
14388,
13,
327,
31,
565,
18451,
5898,
273,
18901,
1031,
18,
1397,
6946,
5621,
565,
12977,
1318,
3029,
273,
5898,
18,
588,
6233,
1318,
5621,
565,
309,
261,
4808,
18,
1467,
1435,
480,
404,
13,
327,
31,
565,
8126,
1318,
9740,
273,
5898,
18,
588,
2309,
1318,
5621,
565,
309,
261,
7020,
18,
18499,
12,
2309,
11047,
18,
1106,
13,
597,
389,
10906,
3616,
422,
300,
21,
13,
327,
31,
565,
509,
9494,
273,
389,
1745,
18,
588,
2
] |
public void doTag(XMLOutput output) throws Exception { Project project = getAntProject(); String tagName = getTagName(); Object parentObject = null; // must be a datatype. TaskSource ancestor = (TaskSource) findAncestorWithClass( TaskSource.class ); if ( ancestor != null ) { parentObject = ancestor.getTaskObject(); } // lets assume that Task instances are not nested inside other Task instances // for example <manifest> inside a <jar> should be a nested object, where as // if the parent is not a Task the <manifest> should create a ManifestTask if ( ! ( parentObject instanceof Task ) && project.getTaskDefinitions().containsKey( tagName ) ) { if ( log.isDebugEnabled() ) { log.debug( "Creating an ant Task for name: " + tagName ); } // the following algorithm follows the lifetime of a tag // http://jakarta.apache.org/ant/manual/develop.html#writingowntask // kindly recommended by Stefan Bodewig // create and set its project reference task = createTask( tagName ); if ( task instanceof TaskAdapter ) { setObject( ((TaskAdapter)task).getProxy() ); } else { setObject( task ); } // set the task ID if one is given Object id = getAttributes().remove( "id" ); if ( id != null ) { project.addReference( (String) id, task ); } // ### we might want to spoof a Target setting here // now lets initialize task.init(); // now lets invoke the body to call all the createXXX() or addXXX() methods String body = getBodyText(); // now lets set any attributes of this tag... setBeanProperties(); // now lets set the addText() of the body content, if its applicaable Method method = MethodUtils.getAccessibleMethod( task.getClass(), "addText", addTaskParamTypes ); if (method != null) { String text = getBodyText(); Object[] args = { text }; method.invoke(this.task, args); } // now lets set all the attributes of the child elements // XXXX: to do! // now we're ready to invoke the task // XXX: should we call execute() or perform()? task.perform(); } else { if ( log.isDebugEnabled() ) { log.debug( "Creating a nested object name: " + tagName ); } if ( parentObject == null ) { parentObject = findBeanAncestor(); } Object nested = createNestedObject( parentObject, tagName ); if ( nested == null ) { nested = createDataType( tagName ); } if ( nested != null ) { setObject( nested ); // set the task ID if one is given Object id = getAttributes().remove( "id" ); if ( id != null ) { project.addReference( (String) id, nested ); } try{ PropertyUtils.setProperty( nested, "name", tagName ); } catch (Exception e) { } // now lets invoke the body String body = getBodyText(); // now lets set any attributes of this tag... setBeanProperties(); // now lets add it to its parent if ( parentObject != null ) { IntrospectionHelper ih = IntrospectionHelper.getHelper( parentObject.getClass() ); try { ih.storeElement( project, parentObject, nested, tagName ); } catch (Exception e) { //log.warn( "Caught exception setting nested: " + tagName, e ); } } } else { // lets treat this tag as static XML... StaticTag tag = new StaticTag("", tagName, tagName); tag.setParent( getParent() ); tag.setBody( getBody() ); tag.setContext(context); for (Iterator iter = getAttributes().entrySet().iterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); String name = (String) entry.getKey(); Object value = entry.getValue(); tag.setAttribute(name, value); } tag.doTag(output); } } }
|
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/a4977fc0abd2c06fcc46090a70a47ab78b29e9d1/AntTag.java/buggy/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/AntTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
1805,
12,
4201,
1447,
876,
13,
1216,
1185,
288,
3639,
5420,
1984,
273,
4506,
496,
4109,
5621,
3639,
514,
7196,
273,
336,
8520,
5621,
3639,
1033,
982,
921,
273,
446,
31,
3639,
368,
1297,
506,
279,
11172,
18,
3639,
3837,
1830,
9731,
273,
261,
2174,
1830,
13,
1104,
15637,
1190,
797,
12,
3837,
1830,
18,
1106,
11272,
3639,
309,
261,
9731,
480,
446,
262,
288,
5411,
982,
921,
273,
9731,
18,
588,
2174,
921,
5621,
3639,
289,
3639,
368,
14557,
6750,
716,
3837,
3884,
854,
486,
4764,
4832,
1308,
3837,
3884,
3639,
368,
364,
3454,
411,
14357,
34,
4832,
279,
411,
11930,
34,
1410,
506,
279,
4764,
733,
16,
1625,
487,
540,
368,
309,
326,
982,
353,
486,
279,
3837,
326,
411,
14357,
34,
1410,
752,
279,
15443,
2174,
13491,
309,
261,
401,
261,
982,
921,
1276,
3837,
262,
597,
2398,
1984,
18,
588,
2174,
7130,
7675,
12298,
653,
12,
7196,
262,
262,
288,
4766,
10792,
309,
261,
613,
18,
291,
2829,
1526,
1435,
262,
288,
7734,
613,
18,
4148,
12,
315,
11092,
392,
17841,
3837,
364,
508,
30,
315,
397,
7196,
11272,
13491,
289,
5411,
368,
326,
3751,
4886,
13040,
326,
12486,
434,
279,
1047,
5411,
368,
1062,
2207,
78,
581,
485,
69,
18,
19211,
18,
3341,
19,
970,
19,
19840,
19,
323,
8250,
18,
2620,
7,
14345,
543,
496,
835,
5411,
368,
3846,
715,
14553,
635,
7780,
74,
304,
605,
390,
5837,
5411,
368,
752,
471,
444,
2097,
1984,
2114,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
1805,
12,
4201,
1447,
876,
13,
1216,
1185,
288,
3639,
5420,
1984,
273,
4506,
496,
4109,
5621,
3639,
514,
7196,
273,
336,
8520,
5621,
3639,
1033,
982,
921,
273,
446,
31,
3639,
368,
1297,
506,
279,
11172,
18,
3639,
3837,
1830,
9731,
273,
261,
2174,
1830,
13,
1104,
15637,
1190,
797,
12,
3837,
1830,
18,
1106,
11272,
3639,
309,
261,
9731,
480,
446,
262,
288,
5411,
982,
921,
273,
9731,
18,
588,
2174,
921,
5621,
3639,
289,
3639,
368,
14557,
6750,
716,
3837,
3884,
854,
486,
4764,
4832,
1308,
3837,
3884,
3639,
368,
364,
3454,
411,
14357,
34,
4832,
279,
411,
11930,
34,
1410,
506,
279,
4764,
733,
16,
1625,
487,
540,
368,
309,
326,
2
] |
||
public int doStartTag() throws JspException { try { if (style != null && style.equals("full")) { renderFull(); } else { renderDefault(); } } catch (java.sql.SQLException e) { throw new JspException(e); } catch (IOException ie) { throw new JspException(ie); } return SKIP_BODY; }
|
public int doStartTag() throws JspException { try { if (style != null && style.equals("full")) { renderFull(); } else { renderDefault(); } } catch (java.sql.SQLException e) { throw new JspException(e); } catch (IOException ie) { throw new JspException(ie); } return SKIP_BODY; }
|
public int doStartTag() throws JspException { try { if (style != null && style.equals("full")) { renderFull(); } else { renderDefault(); } } catch (java.sql.SQLException e) { throw new JspException(e); } catch (IOException ie) { throw new JspException(ie); } return SKIP_BODY; }
|
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/c0a6aa00241d4104417114883e740ef30b79f94b/ItemTag.java/buggy/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
565,
1216,
27485,
565,
288,
3639,
775,
3639,
288,
5411,
309,
261,
4060,
480,
446,
597,
2154,
18,
14963,
2932,
2854,
6,
3719,
5411,
288,
7734,
1743,
5080,
5621,
5411,
289,
5411,
469,
5411,
288,
7734,
1743,
1868,
5621,
5411,
289,
3639,
289,
3639,
1044,
261,
6290,
18,
4669,
18,
23116,
425,
13,
3639,
288,
5411,
604,
394,
27485,
12,
73,
1769,
3639,
289,
3639,
1044,
261,
14106,
9228,
13,
3639,
288,
5411,
604,
394,
27485,
12,
1385,
1769,
3639,
289,
7734,
327,
18420,
67,
16691,
31,
565,
289,
540,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
565,
1216,
27485,
565,
288,
3639,
775,
3639,
288,
5411,
309,
261,
4060,
480,
446,
597,
2154,
18,
14963,
2932,
2854,
6,
3719,
5411,
288,
7734,
1743,
5080,
5621,
5411,
289,
5411,
469,
5411,
288,
7734,
1743,
1868,
5621,
5411,
289,
3639,
289,
3639,
1044,
261,
6290,
18,
4669,
18,
23116,
425,
13,
3639,
288,
5411,
604,
394,
27485,
12,
73,
1769,
3639,
289,
3639,
1044,
261,
14106,
9228,
13,
3639,
288,
5411,
604,
394,
27485,
12,
1385,
1769,
3639,
289,
7734,
327,
18420,
67,
16691,
31,
565,
289,
540,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (!symbol.isClass()) break;
|
if (!symbol.owner().isType()) break;
|
public Type apply(Type type) { switch (type) { case TypeRef(Type prefix, Symbol symbol, Type[] targs): if (!symbol.isClass()) break; prefix = apply(prefix); targs = map(targs); targs = Type.concat(getOuterTypeArgs(prefix, symbol), targs); return Type.TypeRef(prefix, symbol, targs); } return map(type); }
|
49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/57a845d6766e58396184af3897915db42dfb6f6f/ExplicitOuterClassesPhase.java/buggy/sources/scalac/transformer/ExplicitOuterClassesPhase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1412,
2230,
12,
559,
618,
13,
288,
5411,
1620,
261,
723,
13,
288,
5411,
648,
1412,
1957,
12,
559,
1633,
16,
8565,
3273,
16,
1412,
8526,
268,
1968,
4672,
7734,
309,
16051,
7175,
18,
8443,
7675,
291,
559,
10756,
898,
31,
7734,
1633,
273,
2230,
12,
3239,
1769,
7734,
268,
1968,
273,
852,
12,
88,
1968,
1769,
7734,
268,
1968,
273,
1412,
18,
16426,
12,
588,
15040,
559,
2615,
12,
3239,
16,
3273,
3631,
268,
1968,
1769,
7734,
327,
1412,
18,
25950,
12,
3239,
16,
3273,
16,
268,
1968,
1769,
5411,
289,
5411,
327,
852,
12,
723,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1412,
2230,
12,
559,
618,
13,
288,
5411,
1620,
261,
723,
13,
288,
5411,
648,
1412,
1957,
12,
559,
1633,
16,
8565,
3273,
16,
1412,
8526,
268,
1968,
4672,
7734,
309,
16051,
7175,
18,
8443,
7675,
291,
559,
10756,
898,
31,
7734,
1633,
273,
2230,
12,
3239,
1769,
7734,
268,
1968,
273,
852,
12,
88,
1968,
1769,
7734,
268,
1968,
273,
1412,
18,
16426,
12,
588,
15040,
559,
2615,
12,
3239,
16,
3273,
3631,
268,
1968,
1769,
7734,
327,
1412,
18,
25950,
12,
3239,
16,
3273,
16,
268,
1968,
1769,
5411,
289,
5411,
327,
852,
12,
723,
1769,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
method = f.getClass().getDeclaredMethod("ping", null);
|
method = f.getClass().getDeclaredMethod("ping", (java.lang.Class[])null);
|
public static void main(String argv[]) { Bar b = new Bar(); Foo f = b.create(); FooBar fb = new FooBar(); FooBar2 fb2 = new FooBar2(); { String s = fb.used(); if (!s.equals("Foo::pang();Bar::pong();Foo::pong();FooBar::ping();")) throw new RuntimeException( "bad FooBar::used" ); } { String s = fb2.used(); if (!s.equals("FooBar2::pang();Bar::pong();Foo::pong();FooBar2::ping();")) throw new RuntimeException( "bad FooBar2::used" ); } { String s = b.pong(); if (!s.equals("Bar::pong();Foo::pong();Bar::ping();")) throw new RuntimeException( "bad Bar::pong" ); } { String s = f.pong(); if (!s.equals("Bar::pong();Foo::pong();Bar::ping();")) throw new RuntimeException(" bad Foo::pong" ); } { String s3 = fb.pong(); if (!s3.equals("Bar::pong();Foo::pong();FooBar::ping();")) throw new RuntimeException(" bad FooBar::pong" ); } try { Method method = b.getClass().getDeclaredMethod("ping", null); if ( !Modifier.isProtected(method.getModifiers()) ) throw new RuntimeException("Bar::ping should be protected" ); method = f.getClass().getDeclaredMethod("ping", null); if ( !Modifier.isProtected(method.getModifiers()) ) throw new RuntimeException("Foo::ping should be protected" ); } catch (NoSuchMethodException n) { throw new RuntimeException("NoSuchmethodException caught. Test failed."); } catch (SecurityException s) { throw new RuntimeException("SecurityException caught. Test failed."); } }
|
47242 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47242/5fa239910605fdb156f3f5778c8018c27342cb54/director_protected_runme.java/clean/Examples/test-suite/java/director_protected_runme.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
16654,
324,
273,
394,
16654,
5621,
565,
23077,
284,
273,
324,
18,
2640,
5621,
565,
23077,
5190,
12754,
273,
394,
23077,
5190,
5621,
565,
23077,
5190,
22,
12754,
22,
273,
394,
23077,
5190,
22,
5621,
565,
288,
1377,
514,
272,
273,
12754,
18,
3668,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
42,
5161,
2866,
84,
539,
5621,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
42,
5161,
5190,
2866,
1382,
26994,
3719,
3639,
604,
394,
3235,
12,
315,
8759,
23077,
5190,
2866,
3668,
6,
11272,
565,
289,
565,
288,
1377,
514,
272,
273,
12754,
22,
18,
3668,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
42,
5161,
5190,
22,
2866,
84,
539,
5621,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
42,
5161,
5190,
22,
2866,
1382,
26994,
3719,
3639,
604,
394,
3235,
12,
315,
8759,
23077,
5190,
22,
2866,
3668,
6,
11272,
565,
289,
565,
288,
1377,
514,
272,
273,
324,
18,
500,
75,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
5190,
2866,
1382,
26994,
3719,
3639,
604,
394,
3235,
12,
315,
8759,
16654,
2866,
500,
75,
6,
11272,
565,
289,
565,
288,
1377,
514,
272,
273,
284,
18,
500,
75,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
5190,
2866,
1382,
26994,
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,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
16654,
324,
273,
394,
16654,
5621,
565,
23077,
284,
273,
324,
18,
2640,
5621,
565,
23077,
5190,
12754,
273,
394,
23077,
5190,
5621,
565,
23077,
5190,
22,
12754,
22,
273,
394,
23077,
5190,
22,
5621,
565,
288,
1377,
514,
272,
273,
12754,
18,
3668,
5621,
1377,
309,
16051,
87,
18,
14963,
2932,
42,
5161,
2866,
84,
539,
5621,
5190,
2866,
500,
75,
5621,
42,
5161,
2866,
500,
75,
5621,
42,
5161,
5190,
2866,
1382,
26994,
3719,
3639,
604,
394,
3235,
12,
315,
8759,
23077,
5190,
2866,
3668,
6,
11272,
565,
289,
565,
288,
1377,
514,
272,
273,
12754,
22,
18,
3668,
5621,
1377,
309,
16051,
87,
18,
2
] |
assertTrue(g_arr.length == b_arr.length);
|
PixelsService ps = new PixelsService("/tmp"+PixelsService.ROOT_DEFAULT); PixelBuffer pb = ps.getPixelBuffer(image2pixels(i)); Integer Z = Integer.valueOf(z), C = Integer.valueOf(c), T=Integer.valueOf(t); byte[] result = new byte[b_arr.length]; stats.n_start(); stats.n_stop();
|
void compare(Stats stats, Image i, int z, int c, int t) throws IOException{ stats.g_start(); byte[] g_arr = Gateway.getPlane(i.id, z, c, t); stats.g_stop(); assertFalse(g_arr.length == 0); stats.b_start(); byte[] b_arr = io.getPlane(i.id, z, c, t); stats.b_stop(); assertFalse(b_arr.length == 0); assertTrue(g_arr.length == b_arr.length); stats.update(); System.err.println("Slowdown:"+stats.s_times.get(stats.last()-1)); }
|
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3400,
12,
4195,
3177,
16,
3421,
277,
16,
509,
998,
16,
509,
276,
16,
509,
268,
13,
1216,
1860,
95,
3639,
3177,
18,
75,
67,
1937,
5621,
3639,
1160,
8526,
314,
67,
5399,
273,
11381,
18,
588,
19505,
12,
77,
18,
350,
16,
998,
16,
276,
16,
268,
1769,
3639,
3177,
18,
75,
67,
5681,
5621,
3639,
1815,
8381,
12,
75,
67,
5399,
18,
2469,
422,
374,
1769,
3639,
3177,
18,
70,
67,
1937,
5621,
3639,
1160,
8526,
324,
67,
5399,
273,
2527,
18,
588,
19505,
12,
77,
18,
350,
16,
998,
16,
276,
16,
268,
1769,
3639,
3177,
18,
70,
67,
5681,
5621,
3639,
1815,
8381,
12,
70,
67,
5399,
18,
2469,
422,
374,
1769,
3639,
26070,
87,
1179,
4250,
273,
394,
26070,
87,
1179,
2932,
19,
5645,
6,
15,
18079,
1179,
18,
9185,
67,
5280,
1769,
26070,
1892,
6386,
273,
4250,
18,
588,
9037,
1892,
12,
2730,
22,
21084,
12,
77,
10019,
2144,
2285,
273,
2144,
18,
1132,
951,
12,
94,
3631,
385,
273,
2144,
18,
1132,
951,
12,
71,
3631,
399,
33,
4522,
18,
1132,
951,
12,
88,
1769,
225,
1160,
8526,
563,
273,
394,
1160,
63,
70,
67,
5399,
18,
2469,
15533,
3177,
18,
82,
67,
1937,
5621,
377,
3177,
18,
82,
67,
5681,
5621,
5411,
3177,
18,
2725,
5621,
3639,
2332,
18,
370,
18,
8222,
2932,
28733,
2378,
2773,
15,
5296,
18,
87,
67,
8293,
18,
588,
12,
5296,
18,
2722,
1435,
17,
21,
10019,
565,
289,
2,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3400,
12,
4195,
3177,
16,
3421,
277,
16,
509,
998,
16,
509,
276,
16,
509,
268,
13,
1216,
1860,
95,
3639,
3177,
18,
75,
67,
1937,
5621,
3639,
1160,
8526,
314,
67,
5399,
273,
11381,
18,
588,
19505,
12,
77,
18,
350,
16,
998,
16,
276,
16,
268,
1769,
3639,
3177,
18,
75,
67,
5681,
5621,
3639,
1815,
8381,
12,
75,
67,
5399,
18,
2469,
422,
374,
1769,
3639,
3177,
18,
70,
67,
1937,
5621,
3639,
1160,
8526,
324,
67,
5399,
273,
2527,
18,
588,
19505,
12,
77,
18,
350,
16,
998,
16,
276,
16,
268,
1769,
3639,
3177,
18,
70,
67,
5681,
5621,
3639,
1815,
8381,
12,
70,
67,
5399,
18,
2469,
422,
374,
1769,
3639,
2
] |
setTo(packet, state.getSentIP(), state.getSentPort());
|
setTo(packet, to, state.getSentPort());
|
public UDPPacket buildSessionCreatedPacket(InboundEstablishState state, int externalPort, SessionKey ourIntroKey) { UDPPacket packet = UDPPacket.acquire(_context); try { packet.getPacket().setAddress(InetAddress.getByAddress(state.getSentIP())); } catch (UnknownHostException uhe) { if (_log.shouldLog(Log.ERROR)) _log.error("How did we think this was a valid IP? " + state.getRemoteHostInfo()); return null; } state.prepareSessionCreated(); byte data[] = packet.getPacket().getData(); Arrays.fill(data, 0, data.length, (byte)0x0); int off = UDPPacket.MAC_SIZE + UDPPacket.IV_SIZE; // header data[off] = SESSION_CREATED_FLAG_BYTE; off++; long now = _context.clock().now() / 1000; DataHelper.toLong(data, off, 4, now); off += 4; // now for the body System.arraycopy(state.getSentY(), 0, data, off, state.getSentY().length); off += state.getSentY().length; DataHelper.toLong(data, off, 1, state.getSentIP().length); off += 1; System.arraycopy(state.getSentIP(), 0, data, off, state.getSentIP().length); off += state.getSentIP().length; DataHelper.toLong(data, off, 2, state.getSentPort()); off += 2; DataHelper.toLong(data, off, 4, state.getSentRelayTag()); off += 4; DataHelper.toLong(data, off, 4, state.getSentSignedOnTime()); off += 4; System.arraycopy(state.getSentSignature().getData(), 0, data, off, Signature.SIGNATURE_BYTES); off += Signature.SIGNATURE_BYTES; // ok, we need another 8 bytes of random padding // (ok, this only gives us 63 bits, not 64) long l = _context.random().nextLong(); if (l < 0) l = 0 - l; DataHelper.toLong(data, off, 8, l); off += 8; if (_log.shouldLog(Log.DEBUG)) { StringBuffer buf = new StringBuffer(128); buf.append("Sending sessionCreated:"); buf.append(" AliceIP: ").append(Base64.encode(state.getSentIP())); buf.append(" AlicePort: ").append(state.getSentPort()); buf.append(" BobIP: ").append(Base64.encode(state.getReceivedOurIP())); buf.append(" BobPort: ").append(externalPort); buf.append(" RelayTag: ").append(state.getSentRelayTag()); buf.append(" SignedOn: ").append(state.getSentSignedOnTime()); buf.append(" signature: ").append(Base64.encode(state.getSentSignature().getData())); buf.append("\nRawCreated: ").append(Base64.encode(data, 0, off)); buf.append("\nsignedTime: ").append(Base64.encode(data, off-8-Signature.SIGNATURE_BYTES-4, 4)); _log.debug(buf.toString()); } // ok, now the full data is in there, but we also need to encrypt // the signature, which means we need the IV ByteArray iv = _ivCache.acquire(); _context.random().nextBytes(iv.getData()); int encrWrite = Signature.SIGNATURE_BYTES + 8; int sigBegin = off - encrWrite; _context.aes().encrypt(data, sigBegin, data, sigBegin, state.getCipherKey(), iv.getData(), encrWrite); // pad up so we're on the encryption boundary if ( (off % 16) != 0) off += 16 - (off % 16); packet.getPacket().setLength(off); authenticate(packet, ourIntroKey, ourIntroKey, iv); setTo(packet, state.getSentIP(), state.getSentPort()); _ivCache.release(iv); return packet; }
|
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/7389cec78f037e4e0cf8e623a87110d02363b0cf/PacketBuilder.java/clean/router/java/src/net/i2p/router/transport/udp/PacketBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16230,
6667,
1361,
2157,
6119,
6667,
12,
20571,
9122,
23385,
1119,
919,
16,
509,
3903,
2617,
16,
3877,
653,
3134,
1702,
303,
653,
13,
288,
3639,
16230,
6667,
4414,
273,
16230,
6667,
18,
1077,
1039,
24899,
2472,
1769,
3639,
775,
288,
5411,
4414,
18,
588,
6667,
7675,
542,
1887,
12,
382,
278,
1887,
18,
588,
858,
1887,
12,
2019,
18,
588,
7828,
2579,
1435,
10019,
3639,
289,
1044,
261,
4874,
29776,
582,
580,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
2932,
44,
543,
5061,
732,
15507,
333,
1703,
279,
923,
2971,
35,
225,
315,
397,
919,
18,
588,
5169,
2594,
966,
10663,
5411,
327,
446,
31,
3639,
289,
7734,
919,
18,
9366,
2157,
6119,
5621,
7734,
1160,
501,
8526,
273,
4414,
18,
588,
6667,
7675,
588,
751,
5621,
3639,
5647,
18,
5935,
12,
892,
16,
374,
16,
501,
18,
2469,
16,
261,
7229,
13,
20,
92,
20,
1769,
3639,
509,
3397,
273,
16230,
6667,
18,
10875,
67,
4574,
397,
16230,
6667,
18,
8188,
67,
4574,
31,
7734,
368,
1446,
3639,
501,
63,
3674,
65,
273,
10307,
67,
18546,
67,
9651,
67,
15377,
31,
3639,
3397,
9904,
31,
3639,
1525,
2037,
273,
389,
2472,
18,
18517,
7675,
3338,
1435,
342,
4336,
31,
3639,
1910,
2276,
18,
869,
3708,
12,
892,
16,
3397,
16,
1059,
16,
2037,
1769,
3639,
3397,
1011,
1059,
31,
7734,
368,
2037,
364,
326,
1417,
3639,
2332,
18,
1126,
3530,
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,
16230,
6667,
1361,
2157,
6119,
6667,
12,
20571,
9122,
23385,
1119,
919,
16,
509,
3903,
2617,
16,
3877,
653,
3134,
1702,
303,
653,
13,
288,
3639,
16230,
6667,
4414,
273,
16230,
6667,
18,
1077,
1039,
24899,
2472,
1769,
3639,
775,
288,
5411,
4414,
18,
588,
6667,
7675,
542,
1887,
12,
382,
278,
1887,
18,
588,
858,
1887,
12,
2019,
18,
588,
7828,
2579,
1435,
10019,
3639,
289,
1044,
261,
4874,
29776,
582,
580,
13,
288,
5411,
309,
261,
67,
1330,
18,
13139,
1343,
12,
1343,
18,
3589,
3719,
7734,
389,
1330,
18,
1636,
2932,
44,
543,
5061,
732,
15507,
333,
1703,
279,
923,
2971,
35,
225,
315,
397,
919,
18,
588,
5169,
2594,
966,
10663,
5411,
327,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.