rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
public static Element parseJSON(String js) throws SoapParseException { return parseJSON(js, JavaScriptElement.mFactory); }
|
public static Element parseJSON(InputStream is) throws SoapParseException { return parseJSON(is, JavaScriptElement.mFactory); }
|
public static Element parseJSON(String js) throws SoapParseException { return parseJSON(js, JavaScriptElement.mFactory); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0c9fab6c109d16c5d723fd25631e62949944518a/Element.java/buggy/ZimbraServer/src/java/com/zimbra/soap/Element.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3010,
1109,
2986,
12,
780,
3828,
13,
1216,
21789,
13047,
288,
327,
1109,
2986,
12,
2924,
16,
11905,
1046,
18,
81,
1733,
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,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3010,
1109,
2986,
12,
780,
3828,
13,
1216,
21789,
13047,
288,
327,
1109,
2986,
12,
2924,
16,
11905,
1046,
18,
81,
1733,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern.toLowerCase())+"' ";
|
sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern)+"' ";
|
public java.sql.ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { Field f[] = new Field[8]; Vector v = new Vector(); if (table == null) table = "%"; if (columnNamePattern == null) columnNamePattern = "%"; else columnNamePattern = columnNamePattern.toLowerCase(); f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, getMaxNameLength()); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, getMaxNameLength()); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "GRANTOR", iVarcharOid, getMaxNameLength()); f[5] = new Field(connection, "GRANTEE", iVarcharOid, getMaxNameLength()); f[6] = new Field(connection, "PRIVILEGE", iVarcharOid, getMaxNameLength()); f[7] = new Field(connection, "IS_GRANTABLE", iVarcharOid, getMaxNameLength()); String sql; if (connection.haveMinimumServerVersion("7.3")) { sql = "SELECT n.nspname,c.relname,u.usename,c.relacl,a.attname "+ " FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c, pg_catalog.pg_user u, pg_catalog.pg_attribute a "+ " WHERE c.relnamespace = n.oid "+ " AND u.usesysid = c.relowner "+ " AND c.oid = a.attrelid "+ " AND c.relkind = 'r' "+ " AND a.attnum > 0 AND NOT a.attisdropped "; if (schema != null && !"".equals(schema)) { sql += " AND n.nspname = '"+escapeQuotes(schema.toLowerCase())+"' "; } } else { sql = "SELECT NULL::text AS nspname,c.relname,u.usename,c.relacl,a.attname "+ "FROM pg_class c, pg_user u,pg_attribute a "+ " WHERE u.usesysid = c.relowner "+ " AND c.oid = a.attrelid "+ " AND a.attnum > 0 "+ " AND c.relkind = 'r' "; } sql += " AND c.relname = '"+escapeQuotes(table.toLowerCase())+"' "; if (columnNamePattern != null && !"".equals(columnNamePattern)) { sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern.toLowerCase())+"' "; } sql += " ORDER BY attname "; ResultSet rs = connection.createStatement().executeQuery(sql); while (rs.next()) { byte schemaName[] = rs.getBytes("nspname"); byte tableName[] = rs.getBytes("relname"); byte column[] = rs.getBytes("attname"); String owner = rs.getString("usename"); String acl = rs.getString("relacl"); Hashtable permissions = parseACL(acl); String permNames[] = new String[permissions.size()]; Enumeration e = permissions.keys(); int i=0; while (e.hasMoreElements()) { permNames[i++] = (String)e.nextElement(); } sortStringArray(permNames); for (i=0; i<permNames.length; i++) { byte[] privilege = permNames[i].getBytes(); Vector grantees = (Vector)permissions.get(permNames[i]); for (int j=0; j<grantees.size(); j++) { String grantee = (String)grantees.elementAt(j); String grantable = owner.equals(grantee) ? "YES" : "NO"; byte[][] tuple = new byte[8][]; tuple[0] = null; tuple[1] = schemaName; tuple[2] = tableName; tuple[3] = column; tuple[4] = owner.getBytes(); tuple[5] = grantee.getBytes(); tuple[6] = privilege; tuple[7] = grantable.getBytes(); v.addElement(tuple); } } } rs.close(); return connection.getResultSet(null, f, v, "OK", 1); }
|
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/718820fdcbe37650edf9773102d952e1d9fc6432/AbstractJdbc1DatabaseMetaData.java/clean/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
6716,
27692,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
28,
15533,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
430,
261,
2121,
422,
446,
13,
1082,
202,
2121,
273,
2213,
14432,
202,
202,
430,
261,
2827,
461,
3234,
422,
446,
13,
1082,
202,
2827,
461,
3234,
273,
2213,
14432,
202,
202,
12107,
1082,
202,
2827,
461,
3234,
273,
7578,
3234,
18,
869,
5630,
5621,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
11009,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
6997,
6856,
916,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
10663,
202,
202,
74,
63,
25,
65,
273,
394,
2286,
12,
4071,
16,
315,
6997,
1258,
1448,
41,
3113,
277,
58,
22483,
19105,
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,
2252,
18,
4669,
18,
13198,
6716,
27692,
12,
780,
6222,
16,
514,
1963,
16,
514,
1014,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
974,
284,
8526,
273,
394,
2286,
63,
28,
15533,
202,
202,
5018,
331,
273,
394,
5589,
5621,
202,
202,
430,
261,
2121,
422,
446,
13,
1082,
202,
2121,
273,
2213,
14432,
202,
202,
430,
261,
2827,
461,
3234,
422,
446,
13,
1082,
202,
2827,
461,
3234,
273,
2213,
14432,
202,
202,
12107,
1082,
202,
2827,
461,
3234,
273,
7578,
3234,
18,
869,
5630,
5621,
202,
202,
74,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
7288,
461,
1782,
2
] |
EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(changeEvent);
|
ChangeListener[] listeners = getChangeListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].stateChanged(changeEvent);
|
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(changeEvent); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4452,
1119,
5033,
12,
20930,
425,
13,
225,
288,
565,
22090,
8526,
6579,
273,
2991,
682,
18,
588,
5583,
12,
15744,
18,
1106,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6579,
18,
2469,
31,
277,
27245,
1377,
14015,
15744,
13,
2906,
63,
77,
65,
2934,
2019,
5033,
12,
3427,
1133,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
918,
4452,
1119,
5033,
12,
20930,
425,
13,
225,
288,
565,
22090,
8526,
6579,
273,
2991,
682,
18,
588,
5583,
12,
15744,
18,
1106,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
6579,
18,
2469,
31,
277,
27245,
1377,
14015,
15744,
13,
2906,
63,
77,
65,
2934,
2019,
5033,
12,
3427,
1133,
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
] |
if (isBinary) {
|
if (binary) {
|
private int getFinalLOC() { if (isBinary) { return 0; } String revision = null; try { revision = builder.getRevision(name); } catch (final IOException e) { if (!finalRevisionIsDead()) { LOGGER.warning(e.getMessage()); } } try { // if ("1.1".equals(revision)) { // return builder.getLOC(name) + locDelta; // } else { if (!revisions.isEmpty()) { final RevisionData firstAdded = (RevisionData) revisions.get(0); if (!finalRevisionIsDead() && !firstAdded.getRevisionNumber().equals(revision)) { LOGGER.warning("Revision of " + name + " does not match expected revision"); } } return builder.getLOC(name); // } } catch (final NoLineCountException e) { if (!finalRevisionIsDead()) { LOGGER.warning(e.getMessage()); } return approximateFinalLOC(); } }
|
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/4e7ce090e642cacf9f92e8fbdc24fab0c88c47c5/FileBuilder.java/buggy/statsvn/src/net/sf/statsvn/input/FileBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2812,
1490,
29450,
1435,
288,
3639,
309,
261,
8578,
13,
288,
5411,
327,
374,
31,
3639,
289,
3639,
514,
6350,
273,
446,
31,
3639,
775,
288,
5411,
6350,
273,
2089,
18,
588,
7939,
12,
529,
1769,
3639,
289,
1044,
261,
6385,
1860,
425,
13,
288,
5411,
309,
16051,
6385,
7939,
2520,
11852,
10756,
288,
7734,
4145,
18,
8551,
12,
73,
18,
24906,
10663,
5411,
289,
3639,
289,
3639,
775,
288,
5411,
368,
309,
7566,
21,
18,
21,
9654,
14963,
12,
13057,
3719,
288,
5411,
368,
327,
2089,
18,
588,
29450,
12,
529,
13,
397,
1515,
9242,
31,
5411,
368,
289,
469,
288,
5411,
309,
16051,
29892,
18,
291,
1921,
10756,
288,
7734,
727,
13132,
751,
1122,
8602,
273,
261,
7939,
751,
13,
18325,
18,
588,
12,
20,
1769,
7734,
309,
16051,
6385,
7939,
2520,
11852,
1435,
597,
401,
3645,
8602,
18,
588,
7939,
1854,
7675,
14963,
12,
13057,
3719,
288,
10792,
4145,
18,
8551,
2932,
7939,
434,
315,
397,
508,
397,
315,
1552,
486,
845,
2665,
6350,
8863,
7734,
289,
5411,
289,
5411,
327,
2089,
18,
588,
29450,
12,
529,
1769,
5411,
368,
289,
3639,
289,
1044,
261,
6385,
2631,
1670,
1380,
503,
425,
13,
288,
5411,
309,
16051,
6385,
7939,
2520,
11852,
10756,
288,
7734,
4145,
18,
8551,
12,
73,
18,
24906,
10663,
5411,
289,
5411,
327,
21204,
7951,
29450,
5621,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
2812,
1490,
29450,
1435,
288,
3639,
309,
261,
8578,
13,
288,
5411,
327,
374,
31,
3639,
289,
3639,
514,
6350,
273,
446,
31,
3639,
775,
288,
5411,
6350,
273,
2089,
18,
588,
7939,
12,
529,
1769,
3639,
289,
1044,
261,
6385,
1860,
425,
13,
288,
5411,
309,
16051,
6385,
7939,
2520,
11852,
10756,
288,
7734,
4145,
18,
8551,
12,
73,
18,
24906,
10663,
5411,
289,
3639,
289,
3639,
775,
288,
5411,
368,
309,
7566,
21,
18,
21,
9654,
14963,
12,
13057,
3719,
288,
5411,
368,
327,
2089,
18,
588,
29450,
12,
529,
13,
397,
1515,
9242,
31,
5411,
368,
289,
469,
288,
5411,
309,
16051,
29892,
18,
291,
1921,
10756,
288,
7734,
727,
13132,
751,
1122,
2
] |
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); FillLayout layout = new FillLayout(); container.setLayout(layout); serverUrlEditor = new StringFieldEditor("", LABEL_SERVER, StringFieldEditor.UNLIMITED, container) { @Override protected boolean doCheckState() { return isValidUrl(getStringValue()); } @Override protected void valueChanged() { super.valueChanged(); getWizard().getContainer().updateButtons(); } }; serverUrlEditor.setErrorMessage("Server path must be a valid http(s):// url"); userNameEditor = new StringFieldEditor("", LABEL_USER, StringFieldEditor.UNLIMITED, container); passwordEditor = new RepositoryStringFieldEditor("", LABEL_PASSWORD, StringFieldEditor.UNLIMITED, container); if (repository != null) { try { serverUrlEditor.setStringValue(repository.getUrl()); userNameEditor.setStringValue(repository.getUserName()); passwordEditor.setStringValue(repository.getPassword()); } catch (Throwable t) { MylarStatusHandler.fail(t, "could not set field value for: " + repository, false); } } // bug 131656: must set echo char after setting value on Mac passwordEditor.getTextControl().setEchoChar('*'); createAdditionalControls(container); validateServerButton = new Button(container, SWT.PUSH); validateServerButton.setText("Validate Settings"); validateServerButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { validateSettings(); } }); setControl(container); }
|
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d41c4a120fae710254e27245566966390ce439f9/AbstractRepositorySettingsPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/AbstractRepositorySettingsPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
3511,
273,
394,
14192,
3744,
5621,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
3567,
1489,
6946,
273,
394,
30916,
6946,
2932,
3113,
18210,
67,
4370,
16,
30916,
6946,
18,
2124,
8283,
2056,
16,
1478,
13,
288,
1082,
202,
36,
6618,
1082,
202,
1117,
1250,
741,
1564,
1119,
1435,
288,
9506,
202,
2463,
4908,
1489,
12,
588,
19733,
10663,
1082,
202,
97,
1082,
202,
36,
6618,
1082,
202,
1117,
918,
460,
5033,
1435,
288,
9506,
202,
9565,
18,
1132,
5033,
5621,
9506,
202,
588,
27130,
7675,
588,
2170,
7675,
2725,
14388,
5621,
1082,
202,
97,
202,
202,
20451,
202,
202,
3567,
1489,
6946,
18,
542,
14935,
2932,
2081,
589,
1297,
506,
279,
923,
1062,
12,
87,
13,
2207,
880,
8863,
202,
202,
1355,
461,
6946,
273,
394,
30916,
6946,
2932,
3113,
18210,
67,
4714,
16,
30916,
6946,
18,
2124,
8283,
2056,
16,
1478,
1769,
202,
202,
3664,
6946,
273,
394,
6281,
780,
974,
6946,
2932,
3113,
18210,
67,
13784,
16,
30916,
6946,
18,
2124,
8283,
2056,
16,
1478,
1769,
202,
202,
430,
261,
9071,
480,
446,
13,
288,
25083,
202,
698,
288,
1082,
202,
3567,
1489,
6946,
18,
542,
19733,
12,
9071,
18,
588,
1489,
10663,
1082,
202,
1355,
461,
6946,
18,
542,
19733,
12,
9071,
18,
588,
15296,
10663,
1082,
202,
3664,
6946,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
9400,
1478,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
8560,
1769,
202,
202,
8026,
3744,
3511,
273,
394,
14192,
3744,
5621,
202,
202,
3782,
18,
542,
3744,
12,
6741,
1769,
202,
202,
3567,
1489,
6946,
273,
394,
30916,
6946,
2932,
3113,
18210,
67,
4370,
16,
30916,
6946,
18,
2124,
8283,
2056,
16,
1478,
13,
288,
1082,
202,
36,
6618,
1082,
202,
1117,
1250,
741,
1564,
1119,
1435,
288,
9506,
202,
2463,
4908,
1489,
12,
588,
19733,
10663,
1082,
202,
97,
1082,
202,
36,
6618,
1082,
202,
1117,
918,
460,
5033,
1435,
288,
9506,
202,
9565,
18,
1132,
5033,
5621,
9506,
202,
588,
27130,
7675,
2
] |
||
return value == ((ZipShort) o).getValue();
|
return value == ( (ZipShort) o ).getValue();
|
public boolean equals(Object o) { if (o == null || !(o instanceof ZipShort)) { return false; } return value == ((ZipShort) o).getValue(); }
|
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/ZipShort.java/clean/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/zip/ZipShort.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
320,
13,
288,
3639,
309,
261,
83,
422,
446,
747,
401,
12,
83,
1276,
8603,
4897,
3719,
288,
5411,
327,
629,
31,
3639,
289,
3639,
327,
460,
422,
261,
261,
9141,
4897,
13,
320,
262,
18,
24805,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
320,
13,
288,
3639,
309,
261,
83,
422,
446,
747,
401,
12,
83,
1276,
8603,
4897,
3719,
288,
5411,
327,
629,
31,
3639,
289,
3639,
327,
460,
422,
261,
261,
9141,
4897,
13,
320,
262,
18,
24805,
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
] |
ColorType col = (ColorType)area.getTrait(Trait.COLOR);
|
Color col = (Color)area.getTrait(Trait.COLOR);
|
public void renderLeader(Leader area) { renderInlineAreaBackAndBorders(area); endTextObject(); saveGraphicsState(); int style = area.getRuleStyle(); float startx = (currentIPPosition + area.getBorderAndPaddingWidthStart()) / 1000f; float starty = (currentBPPosition + area.getOffset()) / 1000f; float endx = (currentIPPosition + area.getBorderAndPaddingWidthStart() + area.getIPD()) / 1000f; float ruleThickness = area.getRuleThickness() / 1000f; ColorType col = (ColorType)area.getTrait(Trait.COLOR); try { switch (style) { case EN_SOLID: case EN_DASHED: case EN_DOUBLE: drawBorderLine(startx, starty, endx, starty + ruleThickness, true, true, style, col); break; case EN_DOTTED: clipRect(startx, starty, endx - startx, ruleThickness); //This displaces the dots to the right by half a dot's width //TODO There's room for improvement here gen.concatMatrix(1, 0, 0, 1, ruleThickness / 2, 0); drawBorderLine(startx, starty, endx, starty + ruleThickness, true, true, style, col); break; case EN_GROOVE: case EN_RIDGE: float half = area.getRuleThickness() / 2000f; gen.useRGBColor(lightenColor(toColor(col), 0.6f)); moveTo(startx, starty); lineTo(endx, starty); lineTo(endx, starty + 2 * half); lineTo(startx, starty + 2 * half); closePath(); gen.writeln(" fill newpath"); gen.useRGBColor(toColor(col)); if (style == EN_GROOVE) { moveTo(startx, starty); lineTo(endx, starty); lineTo(endx, starty + half); lineTo(startx + half, starty + half); lineTo(startx, starty + 2 * half); } else { moveTo(endx, starty); lineTo(endx, starty + 2 * half); lineTo(startx, starty + 2 * half); lineTo(startx, starty + half); lineTo(endx - half, starty + half); } closePath(); gen.writeln(" fill newpath"); break; default: throw new UnsupportedOperationException("rule style not supported"); } } catch (IOException ioe) { handleIOTrouble(ioe); } restoreGraphicsState(); super.renderLeader(area); }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/ed31364eaf18c370b5fb76ea05c7e84508c2c44c/PSRenderer.java/buggy/src/java/org/apache/fop/render/ps/PSRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
15254,
12,
15254,
5091,
13,
288,
3639,
1743,
10870,
5484,
2711,
1876,
21621,
12,
5036,
1769,
3639,
679,
1528,
921,
5621,
3639,
1923,
17558,
1119,
5621,
3639,
509,
2154,
273,
5091,
18,
588,
2175,
2885,
5621,
3639,
1431,
787,
92,
273,
261,
2972,
2579,
2555,
397,
5091,
18,
588,
8107,
1876,
9485,
2384,
1685,
10756,
342,
4336,
74,
31,
3639,
1431,
787,
93,
273,
261,
2972,
30573,
2555,
397,
5091,
18,
588,
2335,
10756,
342,
4336,
74,
31,
3639,
1431,
679,
92,
273,
261,
2972,
2579,
2555,
397,
5091,
18,
588,
8107,
1876,
9485,
2384,
1685,
1435,
7682,
397,
5091,
18,
588,
2579,
40,
10756,
342,
4336,
74,
31,
3639,
1431,
1720,
1315,
19517,
273,
5091,
18,
588,
2175,
1315,
19517,
1435,
342,
4336,
74,
31,
3639,
5563,
645,
273,
261,
2957,
13,
5036,
18,
588,
15525,
12,
15525,
18,
10989,
1769,
3639,
775,
288,
5411,
1620,
261,
4060,
13,
288,
7734,
648,
6693,
67,
19815,
734,
30,
7734,
648,
6693,
67,
9793,
2664,
2056,
30,
7734,
648,
6693,
67,
17088,
30,
10792,
3724,
8107,
1670,
12,
1937,
92,
16,
787,
93,
16,
679,
92,
16,
787,
93,
397,
1720,
1315,
19517,
16,
11794,
638,
16,
638,
16,
2154,
16,
645,
1769,
10792,
898,
31,
7734,
648,
6693,
67,
17591,
6404,
30,
10792,
6807,
6120,
12,
1937,
92,
16,
787,
93,
16,
679,
92,
300,
787,
92,
16,
1720,
1315,
19517,
1769,
10792,
368,
2503,
1015,
11350,
326,
19522,
358,
326,
2145,
635,
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,
1743,
15254,
12,
15254,
5091,
13,
288,
3639,
1743,
10870,
5484,
2711,
1876,
21621,
12,
5036,
1769,
3639,
679,
1528,
921,
5621,
3639,
1923,
17558,
1119,
5621,
3639,
509,
2154,
273,
5091,
18,
588,
2175,
2885,
5621,
3639,
1431,
787,
92,
273,
261,
2972,
2579,
2555,
397,
5091,
18,
588,
8107,
1876,
9485,
2384,
1685,
10756,
342,
4336,
74,
31,
3639,
1431,
787,
93,
273,
261,
2972,
30573,
2555,
397,
5091,
18,
588,
2335,
10756,
342,
4336,
74,
31,
3639,
1431,
679,
92,
273,
261,
2972,
2579,
2555,
397,
5091,
18,
588,
8107,
1876,
9485,
2384,
1685,
1435,
7682,
397,
5091,
18,
588,
2579,
40,
10756,
342,
4336,
74,
31,
3639,
1431,
1720,
1315,
19517,
273,
2
] |
if ( this.contains(gm) ) throw new GroupsException(gm + " is already a member of " + this);
|
if ( this.contains(gm) ) throw new GroupsException(gm + " is already a member of " + this);
|
private void checkIfAlreadyMember(IGroupMember gm) throws GroupsException { if ( this.contains(gm) ) throw new GroupsException(gm + " is already a member of " + this); }
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/4c34db578b77ba3c1f4c891c4e5bc40fe5d7a231/EntityGroupImpl.java/buggy/source/org/jasig/portal/groups/EntityGroupImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
19130,
9430,
4419,
12,
45,
1114,
4419,
14125,
13,
1216,
14712,
503,
288,
202,
430,
261,
333,
18,
12298,
12,
23336,
13,
262,
202,
202,
12849,
394,
14712,
503,
12,
23336,
397,
315,
353,
1818,
279,
3140,
434,
315,
397,
333,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
19130,
9430,
4419,
12,
45,
1114,
4419,
14125,
13,
1216,
14712,
503,
288,
202,
430,
261,
333,
18,
12298,
12,
23336,
13,
262,
202,
202,
12849,
394,
14712,
503,
12,
23336,
397,
315,
353,
1818,
279,
3140,
434,
315,
397,
333,
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
] |
String newStr = getSqueeze(args); if (newStr.equals(getValue())) {
|
StringBuffer newStr = getSqueeze(args); if (sameAs(newStr)) {
|
public IRubyObject squeeze_bang(IRubyObject[] args) { String newStr = getSqueeze(args); if (newStr.equals(getValue())) { return getRuntime().getNil(); } setValue(newStr); return this; }
|
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
17173,
67,
70,
539,
12,
7937,
10340,
921,
8526,
833,
13,
288,
202,
202,
780,
394,
1585,
273,
1322,
14652,
12,
1968,
1769,
202,
202,
430,
261,
2704,
1585,
18,
14963,
12,
24805,
1435,
3719,
288,
1082,
202,
2463,
18814,
7675,
588,
12616,
5621,
202,
202,
97,
202,
202,
542,
620,
12,
2704,
1585,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
17173,
67,
70,
539,
12,
7937,
10340,
921,
8526,
833,
13,
288,
202,
202,
780,
394,
1585,
273,
1322,
14652,
12,
1968,
1769,
202,
202,
430,
261,
2704,
1585,
18,
14963,
12,
24805,
1435,
3719,
288,
1082,
202,
2463,
18814,
7675,
588,
12616,
5621,
202,
202,
97,
202,
202,
542,
620,
12,
2704,
1585,
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
] |
public final Object postCreate(final TransactionContext tx, final OID oid,
|
public Object postCreate(final TransactionContext tx, final OID oid,
|
public final Object postCreate(final TransactionContext tx, final OID oid, final Object object, final Object field, final Object createdId) { return field; }
|
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/3253146e50bfcc6526ac0284fa20a7ffd2f6ec6d/OneToManyRelationResolver.java/buggy/trunk/castor/src/main/org/castor/persist/resolver/OneToManyRelationResolver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1603,
1684,
12,
6385,
5947,
1042,
2229,
16,
727,
18026,
7764,
16,
5411,
727,
1033,
733,
16,
727,
1033,
652,
16,
2398,
727,
1033,
2522,
548,
13,
288,
3639,
327,
652,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1603,
1684,
12,
6385,
5947,
1042,
2229,
16,
727,
18026,
7764,
16,
5411,
727,
1033,
733,
16,
727,
1033,
652,
16,
2398,
727,
1033,
2522,
548,
13,
288,
3639,
327,
652,
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
] |
if (family.element.equals(child)) return true;
|
if (family.element.equals(child)) { return true; }
|
private boolean isParent(DeferredContentFamily family, Object child) { if (family.element.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); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/DeferredTreeContentManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
3238,
1250,
353,
3054,
12,
16886,
1350,
9203,
6755,
16,
1033,
1151,
13,
288,
7734,
309,
261,
9309,
18,
2956,
18,
14963,
12,
3624,
3719,
10792,
327,
638,
31,
7734,
467,
2421,
22144,
4216,
1440,
22144,
4216,
273,
29026,
22144,
4216,
12,
3624,
1769,
7734,
309,
261,
1252,
22144,
4216,
422,
446,
13,
10792,
327,
629,
31,
7734,
1033,
930,
3054,
273,
1440,
22144,
4216,
18,
588,
3054,
12,
3624,
1769,
7734,
309,
261,
2956,
3054,
422,
446,
13,
10792,
327,
629,
31,
7734,
327,
353,
3054,
12,
9309,
16,
930,
3054,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2398,
3238,
1250,
353,
3054,
12,
16886,
1350,
9203,
6755,
16,
1033,
1151,
13,
288,
7734,
309,
261,
9309,
18,
2956,
18,
14963,
12,
3624,
3719,
10792,
327,
638,
31,
7734,
467,
2421,
22144,
4216,
1440,
22144,
4216,
273,
29026,
22144,
4216,
12,
3624,
1769,
7734,
309,
261,
1252,
22144,
4216,
422,
446,
13,
10792,
327,
629,
31,
7734,
1033,
930,
3054,
273,
1440,
22144,
4216,
18,
588,
3054,
12,
3624,
1769,
7734,
309,
261,
2956,
3054,
422,
446,
13,
10792,
327,
629,
31,
7734,
327,
353,
3054,
12,
9309,
16,
930,
3054,
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
] |
model.setProperty(FlexibleJ2EEModuleCreationDataModel.EAR_MODULE_NAME, project.getName());
|
model.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_NAME, project.getName());
|
protected void createEarAndStandaloneComposite(Composite parent) { if (model.getBooleanProperty(FlexibleJ2EEModuleCreationDataModel.UI_SHOW_EAR_SECTION)) { Label separator = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL); GridData gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 3; separator.setLayoutData(gd); new Label(parent, SWT.NONE); //pad // Create Add to EAR checkbox addToEAR = new Button(parent, SWT.CHECK); addToEAR.setText(J2EEUIMessages.getResourceString(J2EEUIMessages.LINK_MODULETO_EAR_PROJECT)); addToEAR.setSelection(true); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; addToEAR.setLayoutData(gd); synchHelper.synchCheckbox(addToEAR, FlexibleJ2EEModuleCreationDataModel.ADD_TO_EAR, null); addToEAR.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { handleAddToEarSelection(); } public void widgetDefaultSelected(SelectionEvent e) { //do nothing } }); // Create EAR Group earLabel = new Label(parent, SWT.NONE); earLabel.setText(J2EEUIMessages.getResourceString(J2EEUIMessages.EAR_PROJECT_FOR_MODULE_CREATION)); earCombo = new Combo(parent, SWT.NONE); earCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); newEAR = new Button(parent, SWT.NONE); newEAR.setText(J2EEUIMessages.getResourceString(J2EEUIMessages.NEW_THREE_DOTS_W)); newEAR.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); newEAR.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { handleNewEarSelected(); } public void widgetDefaultSelected(SelectionEvent e) { //do nothing } }); IProject project = getCurrentProject(); if (project != null) model.setProperty(FlexibleJ2EEModuleCreationDataModel.EAR_MODULE_NAME, project.getName()); Control[] deps = new Control[]{earLabel, newEAR}; synchHelper.synchCombo(earCombo, FlexibleJ2EEModuleCreationDataModel.EAR_MODULE_NAME, deps); } }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/3031f53be0adbf835f39609909ba56af3402ccaf/ServerEarAndStandaloneGroup.java/buggy/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/wizard/ServerEarAndStandaloneGroup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
25184,
297,
1876,
20612,
12451,
9400,
12,
9400,
982,
13,
288,
202,
202,
430,
261,
2284,
18,
588,
5507,
1396,
12,
19667,
1523,
46,
22,
9383,
3120,
9906,
26349,
18,
5370,
67,
16677,
67,
9250,
67,
19082,
3719,
288,
1082,
202,
2224,
4182,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
4550,
571,
348,
8588,
18,
44,
20344,
1769,
1082,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
1769,
1082,
202,
19016,
18,
18396,
6952,
273,
890,
31,
1082,
202,
11287,
18,
542,
3744,
751,
12,
19016,
1769,
1082,
202,
2704,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
368,
6982,
1082,
202,
759,
1788,
1436,
358,
512,
985,
11832,
1082,
202,
1289,
774,
9250,
273,
394,
12569,
12,
2938,
16,
348,
8588,
18,
10687,
1769,
1082,
202,
1289,
774,
9250,
18,
542,
1528,
12,
46,
22,
9383,
57,
3445,
1753,
18,
588,
1420,
780,
12,
46,
22,
9383,
57,
3445,
1753,
18,
10554,
67,
12194,
4296,
67,
9250,
67,
17147,
10019,
1082,
202,
1289,
774,
9250,
18,
542,
6233,
12,
3767,
1769,
1082,
202,
19016,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
1769,
1082,
202,
19016,
18,
18396,
6952,
273,
576,
31,
1082,
202,
1289,
774,
9250,
18,
542,
3744,
751,
12,
19016,
1769,
1082,
202,
87,
2515,
2276,
18,
87,
2515,
21272,
12,
1289,
774,
9250,
16,
478,
21873,
46,
22,
9383,
3120,
9906,
26349,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
25184,
297,
1876,
20612,
12451,
9400,
12,
9400,
982,
13,
288,
202,
202,
430,
261,
2284,
18,
588,
5507,
1396,
12,
19667,
1523,
46,
22,
9383,
3120,
9906,
26349,
18,
5370,
67,
16677,
67,
9250,
67,
19082,
3719,
288,
1082,
202,
2224,
4182,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
4550,
571,
348,
8588,
18,
44,
20344,
1769,
1082,
202,
6313,
751,
15551,
273,
394,
7145,
751,
12,
6313,
751,
18,
29818,
67,
44,
20344,
1769,
1082,
202,
19016,
18,
18396,
6952,
273,
890,
31,
1082,
202,
11287,
18,
542,
3744,
751,
12,
19016,
1769,
1082,
202,
2704,
5287,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
368,
6982,
1082,
202,
759,
1788,
2
] |
public void setCompositeKey(Name newCompositeKey)
|
public synchronized void setCompositeKey(Name newCompositeKey)
|
public void setCompositeKey(Name newCompositeKey){ compositeKey = newCompositeKey;}
|
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/0eedd637d189db4452d154e813c65478cd299731/CompositeEntityIdentifier.java/buggy/source/org/jasig/portal/groups/CompositeEntityIdentifier.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
444,
9400,
653,
12,
461,
394,
9400,
653,
15329,
565,
9635,
653,
273,
394,
9400,
653,
31,
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,
1071,
918,
444,
9400,
653,
12,
461,
394,
9400,
653,
15329,
565,
9635,
653,
273,
394,
9400,
653,
31,
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
] |
public void calcBounds() { Rectangle bounds = getBounds(); if (_font == null) return; if (_fm == null) _fm = Toolkit.getDefaultToolkit().getFontMetrics(_font); int overallW = 0; int numLines = 1; StringTokenizer lines = new StringTokenizer(_curText, "\n\r", true); while (lines.hasMoreTokens()) { String curLine = lines.nextToken(); int chunkW = _fm.stringWidth(curLine); if (curLine.equals("\n") || curLine.equals("\r")) numLines++; else overallW = Math.max(chunkW, overallW); } _lineHeight = _fm.getHeight(); int maxDescent = _fm.getMaxDescent(); int overallH = (_lineHeight + _lineSpacing) * numLines + _topMargin + _botMargin + maxDescent; overallW = Math.max(MIN_TEXT_WIDTH, overallW + _leftMargin + _rightMargin); switch (_justification) { case JUSTIFY_LEFT: break; case JUSTIFY_CENTER: if (_w < overallW) _x -= (overallW - _w) / 2; break; case JUSTIFY_RIGHT: if (_w < overallW) _x -= (overallW - _w); break; } _w = _expandOnly ? Math.max(_w, overallW) : overallW; _h = _expandOnly ? Math.max(_h, overallH) : overallH; }
|
1732 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1732/0ff531b8527d8f232467fbdc8f396d4c17b9432c/FigText.java/clean/src/org/tigris/gef/presentation/FigText.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
7029,
5694,
1435,
288,
565,
13264,
4972,
273,
22107,
5621,
565,
309,
261,
67,
5776,
422,
446,
13,
327,
31,
565,
309,
261,
67,
25089,
422,
446,
13,
389,
25089,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
5711,
5653,
24899,
5776,
1769,
565,
509,
13914,
59,
273,
374,
31,
565,
509,
818,
5763,
273,
404,
31,
565,
16370,
2362,
273,
394,
16370,
24899,
1397,
1528,
16,
1548,
82,
64,
86,
3113,
638,
1769,
565,
1323,
261,
3548,
18,
5332,
7417,
5157,
10756,
288,
1377,
514,
662,
1670,
273,
2362,
18,
4285,
1345,
5621,
1377,
509,
2441,
59,
273,
389,
25089,
18,
1080,
2384,
12,
1397,
1670,
1769,
1377,
309,
261,
1397,
1670,
18,
14963,
31458,
82,
7923,
747,
662,
1670,
18,
14963,
31458,
86,
6,
3719,
818,
5763,
9904,
31,
1377,
469,
13914,
59,
273,
2361,
18,
1896,
12,
6551,
59,
16,
13914,
59,
1769,
565,
289,
565,
389,
1369,
2686,
273,
389,
25089,
18,
588,
2686,
5621,
565,
509,
943,
4217,
319,
273,
389,
25089,
18,
588,
2747,
4217,
319,
5621,
565,
509,
13914,
44,
273,
261,
67,
1369,
2686,
397,
389,
1369,
18006,
13,
380,
818,
5763,
397,
1377,
389,
3669,
9524,
397,
389,
4819,
9524,
397,
943,
4217,
319,
31,
565,
13914,
59,
273,
2361,
18,
1896,
12,
6236,
67,
5151,
67,
10023,
16,
13914,
59,
397,
389,
4482,
9524,
397,
389,
4083,
9524,
1769,
565,
1620,
261,
67,
3732,
1480,
13,
288,
1377,
648,
804,
5996,
12096,
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,
7029,
5694,
1435,
288,
565,
13264,
4972,
273,
22107,
5621,
565,
309,
261,
67,
5776,
422,
446,
13,
327,
31,
565,
309,
261,
67,
25089,
422,
446,
13,
389,
25089,
273,
13288,
8691,
18,
588,
1868,
6364,
8691,
7675,
588,
5711,
5653,
24899,
5776,
1769,
565,
509,
13914,
59,
273,
374,
31,
565,
509,
818,
5763,
273,
404,
31,
565,
16370,
2362,
273,
394,
16370,
24899,
1397,
1528,
16,
1548,
82,
64,
86,
3113,
638,
1769,
565,
1323,
261,
3548,
18,
5332,
7417,
5157,
10756,
288,
1377,
514,
662,
1670,
273,
2362,
18,
4285,
1345,
5621,
1377,
509,
2441,
59,
273,
389,
25089,
18,
1080,
2384,
12,
1397,
1670,
1769,
1377,
309,
261,
1397,
1670,
18,
2
] |
||
if(mbr != null && !seen.contains(mbr)) seen.addElement(mbr);
|
if(mbr != null && !seen.contains(mbr)) seen.addElement(mbr);
|
public void addToSeenList(Address mbr) { if(mbr != null && !seen.contains(mbr)) seen.addElement(mbr); }
|
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/462c7e2ed6980678c603a434a8eb5bc2e6749ac2/Gossip.java/buggy/src/org/jgroups/protocols/pbcast/Gossip.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9604,
15160,
682,
12,
1887,
312,
2848,
13,
288,
202,
430,
12,
1627,
86,
480,
446,
597,
401,
15156,
18,
12298,
12,
1627,
86,
3719,
202,
565,
5881,
18,
1289,
1046,
12,
1627,
86,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
9604,
15160,
682,
12,
1887,
312,
2848,
13,
288,
202,
430,
12,
1627,
86,
480,
446,
597,
401,
15156,
18,
12298,
12,
1627,
86,
3719,
202,
565,
5881,
18,
1289,
1046,
12,
1627,
86,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
jjCheckNAddStates(40, 43);
|
jjCheckNAddStates(46, 49);
|
private final int jjMoveNfa_5(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 16; 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 3: if (curChar == 36) { if (kind > 10) kind = 10; jjCheckNAddTwoStates(13, 14); } else if (curChar == 46) jjstateSet[jjnewStateCnt++] = 7; else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 13) kind = 13; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 5: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 56) kind = 56; jjstateSet[jjnewStateCnt++] = 5; break; case 6: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 7; break; case 10: if (curChar == 36 && kind > 10) kind = 10; break; case 12: if (curChar == 36) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 33 && kind > 11) kind = 11; break; case 15: if (curChar != 36) break; if (kind > 10) kind = 10; jjCheckNAddTwoStates(13, 14); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(5); } else if (curChar == 92) jjCheckNAddStates(40, 43); break; case 1: if (kind > 13) kind = 13; break; case 4: case 5: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(5); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L && kind > 57) kind = 57; break; case 8: if (curChar == 92) jjCheckNAddStates(40, 43); break; case 9: if (curChar == 92) jjCheckNAddTwoStates(9, 10); break; case 11: if (curChar == 92) jjCheckNAddTwoStates(11, 12); break; case 13: if (curChar == 92) jjAddStates(46, 47); 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 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13) kind = 13; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 16 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
|
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
25,
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,
2872,
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,
890,
30,
5375,
309,
261,
1397,
2156,
422,
6580,
13,
5375,
288,
5397,
309,
261,
9224,
405,
1728,
13,
13491,
3846,
273,
1728,
31,
5397,
10684,
1564,
50,
986,
11710,
7629,
12,
3437,
16,
5045,
1769,
5375,
289,
5375,
469,
309,
261,
1397,
2156,
422,
17077,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
1119,
11750,
9904,
65,
273,
2371,
31,
5375,
469,
309,
261,
1397,
2156,
422,
13191,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
1119,
11750,
9904,
65,
273,
576,
31,
5375,
898,
31,
9079,
648,
374,
30,
5375,
309,
261,
1397,
2156,
422,
14856,
13,
5397,
10684,
2019,
694,
63,
78,
78,
2704,
1119,
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,
25,
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,
2872,
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
] |
stringBuffer.append(TEXT_138);
|
stringBuffer.append(TEXT_143);
|
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenEditorView genEditor = (GenEditorView) ((Object[]) argument)[0];final GenDiagram genDiagram = genEditor.getEditorGen().getDiagram();final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];final boolean isRichClientPlatform = genDiagram.getEditorGen().getDomainGenModel().isRichClientPlatform();final boolean isEclipseEditor = genEditor.isEclipseEditor();importManager.emitPackageStatement(stringBuffer);importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_1); importManager.registerInnerClass(genEditor.getClassName() + "ContextMenuProvider");if (!isRichClientPlatform) { importManager.registerInnerClass("ResourceTracker");} stringBuffer.append(TEXT_2); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_3); stringBuffer.append(importManager.getImportedName(isEclipseEditor ? "org.eclipse.gmf.runtime.lite.parts.DiagramEditor" : "org.eclipse.gmf.runtime.lite.parts.DiagramViewPart")); stringBuffer.append(TEXT_4); stringBuffer.append(genEditor.getID()); stringBuffer.append(TEXT_5); if (!isRichClientPlatform && isEclipseEditor) { stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceChangeListener")); stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceChangeEvent")); stringBuffer.append(TEXT_8); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_9); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_11); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_12); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_13); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_14); /*XXX: make sure unsaved deleted file is handled correctly*/ stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_16); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.ResourcesPlugin")); stringBuffer.append(TEXT_17); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_18); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_19); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_24); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.part.FileEditorInput")); stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Display")); stringBuffer.append(TEXT_26); }if (!isEclipseEditor) { stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName(genEditor.getActionBarContributorQualifiedClassName())); stringBuffer.append(TEXT_28); } stringBuffer.append(TEXT_29); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_31); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ComposedAdapterFactory")); stringBuffer.append(TEXT_32); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.UndoAction")); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.RedoAction")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.DeleteAction")); stringBuffer.append(TEXT_35); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_36); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.DirectEditAction")); stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_44); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_45); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_48); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_50); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_51); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_52); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_55); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_56); if (isEclipseEditor) { stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.SaveAction")); stringBuffer.append(TEXT_58); } stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.PrintAction")); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.ui.actions.LayoutDiagramAction")); stringBuffer.append(TEXT_61); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction")); stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.ZoomInAction")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction")); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.ZoomOutAction")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyHandler")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyStroke")); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyStroke")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_72); if (!isRichClientPlatform && isEclipseEditor) { stringBuffer.append(TEXT_73); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_74); }if (!isEclipseEditor) { stringBuffer.append(TEXT_75); } stringBuffer.append(TEXT_76); if (!isRichClientPlatform && isEclipseEditor) { stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_78); }if (!isEclipseEditor) { stringBuffer.append(TEXT_79); } stringBuffer.append(TEXT_80); if (isEclipseEditor) { stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IProgressMonitor")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.dialogs.ErrorDialog")); stringBuffer.append(TEXT_84); stringBuffer.append(genDiagram.getEditorGen().getDomainGenModel().getModelName()); stringBuffer.append(TEXT_85); } stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.palette.PaletteRoot")); stringBuffer.append(TEXT_87); { final Palette palette = genDiagram.getPalette(); if (palette != null) { stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_89); }} stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_92); if (isEclipseEditor) { stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorSite")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_95); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_97); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_100); if (!isRichClientPlatform) { stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_102); } stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_104); if (!isRichClientPlatform) { stringBuffer.append(TEXT_105); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_106); } stringBuffer.append(TEXT_107); if (!isRichClientPlatform) { stringBuffer.append(TEXT_108); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_111); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_113); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IPath")); stringBuffer.append(TEXT_114); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.ResourcesPlugin")); stringBuffer.append(TEXT_117); } stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_119); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_120); if (!isRichClientPlatform) { stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_124); } stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_126); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IPathEditorInput")); stringBuffer.append(TEXT_128); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_129); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IPathEditorInput")); stringBuffer.append(TEXT_130); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_131); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_132); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_133); } //editor-specific code stringBuffer.append(TEXT_134); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.AdapterFactory")); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("java.util.ArrayList")); stringBuffer.append(TEXT_137); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory")); stringBuffer.append(TEXT_138); final EList genPackages = genDiagram.getEditorGen().getAllDomainGenPackages(true);for (int i = 0; i < genPackages.size(); i++) { GenPackage genPackage = (GenPackage) genPackages.get(i); stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName(genPackage.getQualifiedItemProviderAdapterFactoryClassName())); stringBuffer.append(TEXT_140); } stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory")); stringBuffer.append(TEXT_142); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.provider.NotationItemProviderAdapterFactory")); stringBuffer.append(TEXT_143); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ComposedAdapterFactory")); stringBuffer.append(TEXT_144); if (!isEclipseEditor) { stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_146); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IActionBars")); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName(genEditor.getActionBarContributorQualifiedClassName())); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_149); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IStatus")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_154); } stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_156); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_157); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.ResourceSet")); stringBuffer.append(TEXT_159); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.workspace.AbstractEMFOperation")); stringBuffer.append(TEXT_161); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.workspace.AbstractEMFOperation")); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IStatus")); stringBuffer.append(TEXT_163); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IProgressMonitor")); stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IAdaptable")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.core.commands.ExecutionException")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_169); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_171); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_172); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_173); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_174); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_175); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_177); { boolean sameFile = genDiagram.getEditorGen().isSameFileForDiagramAndModel(); String resourceToUse; if (!sameFile) { stringBuffer.append(TEXT_178); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_179); stringBuffer.append(genDiagram.getDiagramEditorUtilClassName()); stringBuffer.append(TEXT_180); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_182); resourceToUse = "modelResource"; } else { resourceToUse = "diagramResource"; } stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_184); stringBuffer.append(resourceToUse); stringBuffer.append(TEXT_185); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_186); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getGenPackage().getQualifiedFactoryInterfaceName())); stringBuffer.append(TEXT_187); stringBuffer.append(genDiagram.getDomainDiagramElement().getClassifierAccessorName()); stringBuffer.append(TEXT_188); stringBuffer.append(resourceToUse); stringBuffer.append(TEXT_189); if (genDiagram.getDomainDiagramElement().isExternalInterface()) { stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_191); } stringBuffer.append(TEXT_192); stringBuffer.append(resourceToUse); stringBuffer.append(TEXT_193); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_195); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_196); if (genDiagram.getDomainDiagramElement().isExternalInterface()) { stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_198); } stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_200); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_201); if (isEclipseEditor) { stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_203); } else { stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_207); } stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.core.commands.ExecutionException")); stringBuffer.append(TEXT_211); }//local declarations stringBuffer.append(TEXT_212); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_213); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LayeredPane")); stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LayeredPane")); stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.LayerConstants")); stringBuffer.append(TEXT_220); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayer")); stringBuffer.append(TEXT_221); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayer")); stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.DelegatingLayout")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.LayerConstants")); stringBuffer.append(TEXT_225); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ContextMenuProvider")); stringBuffer.append(TEXT_227); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyHandler")); stringBuffer.append(TEXT_230); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler")); stringBuffer.append(TEXT_231); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.MouseWheelHandler")); stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_233); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.MouseWheelZoomHandler")); stringBuffer.append(TEXT_234); stringBuffer.append(genDiagram.getPalette() != null && genDiagram.getPalette().isFlyout()); stringBuffer.append(TEXT_235); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ContextMenuProvider")); stringBuffer.append(TEXT_237); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_238); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPartViewer")); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager")); stringBuffer.append(TEXT_240); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_242); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_243); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_245); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_246); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_248); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_253); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.ui.actions.ActionIds")); stringBuffer.append(TEXT_254); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_255); if (isEclipseEditor) { stringBuffer.append(TEXT_256); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_257); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_258); } stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager")); stringBuffer.append(TEXT_260); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.MenuManager")); stringBuffer.append(TEXT_261); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.MenuManager")); stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.Separator")); stringBuffer.append(TEXT_263); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_264); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_265); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_266); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_267); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_268); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_269); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_270); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_272); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_274); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_276); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_277); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager")); stringBuffer.append(TEXT_278); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction")); stringBuffer.append(TEXT_279); importManager.emitSortedImports(); stringBuffer.append(TEXT_280); return stringBuffer.toString(); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/d0f2de3f37a520b7ed04e5e0d7a1b0a7ddc569d5/EditorGenerator.java/buggy/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/EditorGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6946,
1767,
3157,
6946,
273,
261,
7642,
6946,
1767,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
14058,
1940,
3157,
14058,
1940,
273,
3157,
6946,
18,
588,
6946,
7642,
7675,
588,
14058,
1940,
5621,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
6385,
1250,
353,
22591,
1227,
8201,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
3748,
7642,
1488,
7675,
291,
22591,
1227,
8201,
5621,
6385,
1250,
353,
23057,
10472,
6946,
273,
3157,
6946,
18,
291,
23057,
10472,
6946,
5621,
5666,
1318,
18,
18356,
2261,
3406,
12,
1080,
1892,
1769,
5666,
1318,
18,
3355,
5010,
2735,
12,
1080,
1892,
1769,
565,
533,
1892,
18,
6923,
12,
5151,
67,
21,
1769,
565,
1930,
1318,
18,
4861,
2857,
797,
12,
4507,
6946,
18,
588,
3834,
1435,
397,
315,
27315,
2249,
8863,
430,
16051,
291,
22591,
1227,
8201,
13,
288,
202,
5666,
1318,
18,
4861,
2857,
797,
2932,
1420,
8135,
8863,
97,
565,
533,
1892,
18,
6923,
12,
5151,
67,
22,
1769,
565,
533,
1892,
18,
6923,
12,
4507,
6946,
18,
588,
3834,
10663,
565,
533,
1892,
18,
6923,
12,
5151,
67,
23,
1769,
565,
533,
1892,
18,
6923,
12,
5666,
1318,
18,
588,
24934,
461,
12,
291,
23057,
10472,
6946,
692,
315,
3341,
18,
20416,
18,
75,
16126,
18,
9448,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6946,
1767,
3157,
6946,
273,
261,
7642,
6946,
1767,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
14058,
1940,
3157,
14058,
1940,
273,
3157,
6946,
18,
588,
6946,
7642,
7675,
588,
14058,
1940,
5621,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
6385,
1250,
353,
22591,
1227,
8201,
273,
3157,
14058,
1940,
18,
588,
6946,
7642,
7675,
588,
3748,
7642,
1488,
7675,
291,
22591,
1227,
8201,
5621,
6385,
1250,
353,
23057,
10472,
6946,
273,
3157,
6946,
18,
291,
23057,
10472,
6946,
5621,
2
] |
String prefix = validatePrefix( name.getPrefix(), uri, local, true );
|
public static void element_setAttributeNS ( Dom e, String uri, String qName, String value ) { QName name = e.locale().makeQualifiedQName( uri, qName ); String local = name.getLocalPart(); Dom a = attributes_getNamedItemNS( e, uri, local ); if (a == null) { String prefix = validatePrefix( name.getPrefix(), uri, local, true ); a = document_createAttributeNS( node_getOwnerDocument( e ), uri, local ); node_setPrefix( a, prefix ); attributes_setNamedItemNS( e, a ); } node_setNodeValue( a, value ); }
|
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/e20123e0be9f336c9164ccbcc76b15b1357665a7/DomImpl.java/buggy/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/DomImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
930,
67,
542,
1499,
3156,
261,
12965,
425,
16,
514,
2003,
16,
514,
22914,
16,
514,
460,
262,
565,
288,
3639,
16723,
508,
273,
425,
18,
6339,
7675,
6540,
8708,
13688,
12,
2003,
16,
22914,
11272,
3639,
514,
1191,
273,
508,
18,
588,
2042,
1988,
5621,
3639,
12965,
279,
273,
1677,
67,
588,
7604,
1180,
3156,
12,
425,
16,
2003,
16,
1191,
11272,
3639,
309,
261,
69,
422,
446,
13,
3639,
288,
8227,
279,
273,
1668,
67,
2640,
1499,
3156,
12,
756,
67,
588,
5541,
2519,
12,
425,
262,
16,
2003,
16,
1191,
11272,
5411,
756,
67,
542,
2244,
12,
279,
16,
1633,
11272,
13491,
1677,
67,
542,
7604,
1180,
3156,
12,
425,
16,
279,
11272,
3639,
289,
3639,
756,
67,
542,
907,
620,
12,
279,
16,
460,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
930,
67,
542,
1499,
3156,
261,
12965,
425,
16,
514,
2003,
16,
514,
22914,
16,
514,
460,
262,
565,
288,
3639,
16723,
508,
273,
425,
18,
6339,
7675,
6540,
8708,
13688,
12,
2003,
16,
22914,
11272,
3639,
514,
1191,
273,
508,
18,
588,
2042,
1988,
5621,
3639,
12965,
279,
273,
1677,
67,
588,
7604,
1180,
3156,
12,
425,
16,
2003,
16,
1191,
11272,
3639,
309,
261,
69,
422,
446,
13,
3639,
288,
8227,
279,
273,
1668,
67,
2640,
1499,
3156,
12,
756,
67,
588,
5541,
2519,
12,
425,
262,
16,
2003,
16,
1191,
11272,
5411,
756,
67,
542,
2244,
12,
279,
16,
1633,
11272,
13491,
1677,
67,
542,
7604,
1180,
3156,
12,
425,
16,
279,
2
] |
|
public void setUri(String uri) { this.uri = uri; }
|
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/385983011bec6e4d63814970f52d6250ee50da81/ImportTag.java/buggy/src/java/org/apache/commons/jelly/tags/core/ImportTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
542,
3006,
12,
780,
1650,
15329,
2211,
18,
1650,
33,
1650,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
542,
3006,
12,
780,
1650,
15329,
2211,
18,
1650,
33,
1650,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
_impl.log("\t"+msg+"\n", MSG_ERR);
|
if (_impl != null) { _impl.log("\t"+msg+"\n", MSG_ERR); } else { System.err.println(msg); }
|
public static void sumupProblems() { if (_problems.size() > 0) { info("\n:: problems summary ::"); if (_warns.size() > 0) { info("---------------- WARNINGS"); for (Iterator iter = _warns.iterator(); iter.hasNext();) { String msg = (String) iter.next(); _impl.log("\t"+msg+"\n", MSG_WARN); } } if (_errors.size() > 0) { info("---------------- ERRORS"); for (Iterator iter = _errors.iterator(); iter.hasNext();) { String msg = (String) iter.next(); _impl.log("\t"+msg+"\n", MSG_ERR); } } info("\t--- USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS ---"); _problems.clear(); _warns.clear(); _errors.clear(); } }
|
45724 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45724/2fd76a1a31ad87de8b68d18b3563b4881512a12d/Message.java/buggy/src/java/fr/jayasoft/ivy/util/Message.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2142,
416,
626,
19122,
1435,
288,
3639,
309,
261,
67,
29812,
18,
1467,
1435,
405,
374,
13,
288,
5411,
1123,
31458,
82,
2866,
9688,
4916,
493,
8863,
5411,
309,
261,
67,
905,
2387,
18,
1467,
1435,
405,
374,
13,
288,
2398,
202,
1376,
2932,
1271,
9744,
55,
8863,
2398,
202,
1884,
261,
3198,
1400,
273,
389,
905,
2387,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
2398,
202,
202,
780,
1234,
273,
261,
780,
13,
1400,
18,
4285,
5621,
2398,
202,
202,
67,
11299,
18,
1330,
31458,
88,
6,
15,
3576,
9078,
64,
82,
3113,
13771,
67,
27999,
1769,
2398,
202,
97,
5411,
289,
5411,
309,
261,
67,
4324,
18,
1467,
1435,
405,
374,
13,
288,
7734,
1123,
2932,
1271,
5475,
55,
8863,
2398,
202,
1884,
261,
3198,
1400,
273,
389,
4324,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
2398,
202,
202,
780,
1234,
273,
261,
780,
13,
1400,
18,
4285,
5621,
2398,
202,
202,
430,
261,
67,
11299,
480,
446,
13,
288,
389,
11299,
18,
1330,
31458,
88,
6,
15,
3576,
9078,
64,
82,
3113,
13771,
67,
9712,
1769,
289,
469,
288,
2332,
18,
370,
18,
8222,
12,
3576,
1769,
289,
2398,
202,
97,
5411,
289,
5411,
1123,
31458,
88,
6062,
14988,
27857,
4869,
6369,
9841,
15080,
12108,
490,
8607,
463,
26785,
9948,
8863,
5411,
389,
29812,
18,
8507,
5621,
5411,
389,
905,
2387,
18,
8507,
5621,
5411,
389,
4324,
18,
8507,
5621,
3639,
289,
565,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2142,
416,
626,
19122,
1435,
288,
3639,
309,
261,
67,
29812,
18,
1467,
1435,
405,
374,
13,
288,
5411,
1123,
31458,
82,
2866,
9688,
4916,
493,
8863,
5411,
309,
261,
67,
905,
2387,
18,
1467,
1435,
405,
374,
13,
288,
2398,
202,
1376,
2932,
1271,
9744,
55,
8863,
2398,
202,
1884,
261,
3198,
1400,
273,
389,
905,
2387,
18,
9838,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
2398,
202,
202,
780,
1234,
273,
261,
780,
13,
1400,
18,
4285,
5621,
2398,
202,
202,
67,
11299,
18,
1330,
31458,
88,
6,
15,
3576,
9078,
64,
82,
3113,
13771,
67,
27999,
1769,
2398,
202,
97,
5411,
289,
5411,
309,
261,
67,
4324,
18,
1467,
1435,
405,
2
] |
List senoneSequenceList = new ArrayList();
|
List<SenoneSequence> senoneSequenceList = new ArrayList<SenoneSequence>();
|
public SenoneSequence getCompositeSenoneSequence(Unit unit, HMMPosition position) { Context context = unit.getContext(); SenoneSequence compositeSenoneSequence = null; compositeSenoneSequence = (SenoneSequence) compositeSenoneSequenceCache.get(unit.toString()); if (logger.isLoggable(Level.FINE)) { logger.fine("getCompositeSenoneSequence: " + unit.toString() + ((compositeSenoneSequence != null) ? "Cached" : "")); } if (compositeSenoneSequence != null) { return compositeSenoneSequence; } // Iterate through all HMMs looking for // a) An hmm with a unit that has the proper base // b) matches the non-null context List senoneSequenceList = new ArrayList(); // collect all senone sequences that match the pattern for (Iterator i = getHMMIterator(); i.hasNext(); ) { SenoneHMM hmm = (SenoneHMM) i.next(); if (hmm.getPosition() == position) { Unit hmmUnit = hmm.getUnit(); if (hmmUnit.isPartialMatch(unit.getName(), context)) { if (logger.isLoggable(Level.FINE)) { logger.fine("collected: " + hmm.getUnit().toString()); } senoneSequenceList.add(hmm.getSenoneSequence()); } } } // couldn't find any matches, so at least include the CI unit if (senoneSequenceList.size() == 0) { Unit ciUnit = unitManager.getUnit(unit.getName(), unit.isFiller()); SenoneHMM baseHMM = lookupHMM(ciUnit, HMMPosition.UNDEFINED); senoneSequenceList.add(baseHMM.getSenoneSequence()); } // Add this point we have all of the senone sequences that // match the base/context pattern collected into the list. // Next we build a CompositeSenone consisting of all of the // senones in each position of the list. // First find the longest senone sequence int longestSequence = 0; for (int i = 0; i < senoneSequenceList.size(); i++) { SenoneSequence ss = (SenoneSequence) senoneSequenceList.get(i); if (ss.getSenones().length > longestSequence) { longestSequence = ss.getSenones().length; } } // now collect all of the senones at each position into // arrays so we can create CompositeSenones from them // QUESTION: is is possible to have different size senone // sequences. For now lets assume the worst case. List compositeSenones = new ArrayList(); float logWeight = 0.0f; for (int i = 0; i < longestSequence; i++) { Set compositeSenoneSet = new HashSet(); for (int j = 0; j < senoneSequenceList.size(); j++) { SenoneSequence senoneSequence = (SenoneSequence) senoneSequenceList.get(j); if (i < senoneSequence.getSenones().length) { Senone senone = senoneSequence.getSenones()[i]; compositeSenoneSet.add(senone); } } compositeSenones.add(CompositeSenone.create( compositeSenoneSet, logWeight)); } compositeSenoneSequence = SenoneSequence.create(compositeSenones); compositeSenoneSequenceCache.put(unit.toString(), compositeSenoneSequence); if (logger.isLoggable(Level.FINE)) { logger.fine(unit.toString() + " consists of " + compositeSenones.size() + " composite senones"); if (logger.isLoggable(Level.FINEST)) { compositeSenoneSequence.dump("am"); } } return compositeSenoneSequence; }
|
8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/94bee29ed07df3c970a54ab347a7e12d065b258e/TiedStateAcousticModel.java/clean/sphinx4/src/sphinx4/edu/cmu/sphinx/linguist/acoustic/tiedstate/TiedStateAcousticModel.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1071,
348,
275,
476,
4021,
336,
9400,
55,
275,
476,
4021,
12,
2802,
2836,
16,
2398,
670,
8206,
2555,
1754,
13,
288,
202,
1772,
819,
273,
2836,
18,
29120,
5621,
202,
348,
275,
476,
4021,
9635,
55,
275,
476,
4021,
273,
446,
31,
202,
9635,
55,
275,
476,
4021,
273,
261,
55,
275,
476,
4021,
13,
202,
377,
9635,
55,
275,
476,
4021,
1649,
18,
588,
12,
4873,
18,
10492,
10663,
202,
309,
261,
4901,
18,
291,
1343,
8455,
12,
2355,
18,
42,
3740,
3719,
288,
202,
565,
1194,
18,
74,
558,
2932,
588,
9400,
55,
275,
476,
4021,
30,
315,
397,
2836,
18,
10492,
1435,
1875,
565,
397,
14015,
27676,
55,
275,
476,
4021,
480,
446,
13,
692,
315,
9839,
6,
294,
1408,
10019,
202,
289,
202,
309,
261,
27676,
55,
275,
476,
4021,
480,
446,
13,
288,
202,
377,
327,
9635,
55,
275,
476,
4021,
31,
202,
289,
202,
368,
11436,
3059,
777,
670,
49,
6947,
7849,
364,
202,
368,
279,
13,
1922,
366,
7020,
598,
279,
2836,
716,
711,
326,
5338,
1026,
202,
368,
324,
13,
1885,
326,
1661,
17,
2011,
819,
202,
987,
28901,
476,
4021,
682,
273,
394,
2407,
5621,
202,
759,
3274,
777,
28901,
476,
8463,
716,
845,
326,
1936,
202,
364,
261,
3198,
277,
273,
7628,
8206,
3198,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
202,
377,
348,
275,
476,
44,
8206,
366,
7020,
273,
261,
55,
275,
476,
44,
8206,
13,
277,
18,
4285,
5621,
2398,
309,
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,
1377,
1071,
348,
275,
476,
4021,
336,
9400,
55,
275,
476,
4021,
12,
2802,
2836,
16,
2398,
670,
8206,
2555,
1754,
13,
288,
202,
1772,
819,
273,
2836,
18,
29120,
5621,
202,
348,
275,
476,
4021,
9635,
55,
275,
476,
4021,
273,
446,
31,
202,
9635,
55,
275,
476,
4021,
273,
261,
55,
275,
476,
4021,
13,
202,
377,
9635,
55,
275,
476,
4021,
1649,
18,
588,
12,
4873,
18,
10492,
10663,
202,
309,
261,
4901,
18,
291,
1343,
8455,
12,
2355,
18,
42,
3740,
3719,
288,
202,
565,
1194,
18,
74,
558,
2932,
588,
9400,
55,
275,
476,
4021,
30,
315,
397,
2836,
18,
10492,
1435,
1875,
565,
397,
14015,
27676,
55,
275,
476,
4021,
480,
446,
13,
2
] |
AST __t634 = _t; AST tmp572_AST_in = (AST)_t;
|
AST __t638 = _t; AST tmp571_AST_in = (AST)_t;
|
public final void buffercomparestate(AST _t) throws RecognitionException { AST buffercomparestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t618 = _t; AST tmp558_AST_in = (AST)_t; match(_t,BUFFERCOMPARE); _t = _t.getFirstChild(); AST tmp559_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t620 = _t; AST tmp560_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop622: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { field(_t); _t = _retTree; } else { break _loop622; } } while (true); } _t = __t620; _t = _t.getNextSibling(); break; } case USING: { AST __t623 = _t; AST tmp561_AST_in = (AST)_t; match(_t,USING); _t = _t.getFirstChild(); { int _cnt625=0; _loop625: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { field(_t); _t = _retTree; } else { if ( _cnt625>=1 ) { break _loop625; } else {throw new NoViableAltException(_t);} } _cnt625++; } while (true); } _t = __t623; _t = _t.getNextSibling(); break; } case TO: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp562_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); AST tmp563_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CASESENSITIVE: { AST tmp564_AST_in = (AST)_t; match(_t,CASESENSITIVE); _t = _t.getNextSibling(); break; } case BINARY: { AST tmp565_AST_in = (AST)_t; match(_t,BINARY); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case EXPLICIT: case NOERROR_KW: case SAVE: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SAVE: { AST __t628 = _t; AST tmp566_AST_in = (AST)_t; match(_t,SAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RESULT: { AST __t630 = _t; AST tmp567_AST_in = (AST)_t; match(_t,RESULT); _t = _t.getFirstChild(); AST tmp568_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); _t = __t630; _t = _t.getNextSibling(); break; } case Field_ref: { break; } default: { throw new NoViableAltException(_t); } } } field(_t); _t = _retTree; _t = __t628; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case EXPLICIT: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXPLICIT: { AST tmp569_AST_in = (AST)_t; match(_t,EXPLICIT); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMPARES: { AST tmp570_AST_in = (AST)_t; match(_t,COMPARES); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp571_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } block_colon(_t); _t = _retTree; AST __t634 = _t; AST tmp572_AST_in = (AST)_t; match(_t,Code_block); _t = _t.getFirstChild(); { _loop637: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==WHEN)) { AST __t636 = _t; AST tmp573_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp574_AST_in = (AST)_t; match(_t,THEN); _t = _t.getNextSibling(); blockorstate(_t); _t = _retTree; _t = __t636; _t = _t.getNextSibling(); } else { break _loop637; } } while (true); } _t = __t634; _t = _t.getNextSibling(); AST __t638 = _t; AST tmp575_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMPARES: { AST tmp576_AST_in = (AST)_t; match(_t,COMPARES); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t638; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOLOBS: { AST tmp577_AST_in = (AST)_t; match(_t,NOLOBS); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp578_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t618; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1613,
9877,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1613,
9877,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
26,
2643,
273,
389,
88,
31,
202,
202,
9053,
1853,
2539,
28,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
11302,
4208,
11713,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2539,
29,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
22261,
67,
1985,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
5675,
14514,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
26,
3462,
273,
389,
88,
31,
1082,
202,
9053,
1853,
4313,
20,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
2294,
14514,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
95,
1082,
202,
67,
6498,
26,
3787,
30,
1082,
202,
2896,
288,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
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,
1613,
9877,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1613,
9877,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
26,
2643,
273,
389,
88,
31,
202,
202,
9053,
1853,
2539,
28,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
11302,
4208,
11713,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2539,
29,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
22261,
67,
1985,
2
] |
{
|
{
|
public AccessibleContext getAccessibleContext(){ return null;}
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/buggy/core/src/classpath/java/java/awt/MenuComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
5016,
1523,
1042,
336,
10451,
1042,
1435,
95,
225,
327,
446,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1071,
5016,
1523,
1042,
336,
10451,
1042,
1435,
95,
225,
327,
446,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public DoubleArrayResult(int size) { this.array = new ArrayList(size);
|
public DoubleArrayResult() { this.array = new ArrayList();
|
public DoubleArrayResult(int size) { this.array = new ArrayList(size); }
|
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/1fa30576a16b9e998cf1cfb8c355ef042a4af880/DoubleArrayResult.java/buggy/src/org/openscience/cdk/qsar/result/DoubleArrayResult.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3698,
1076,
1253,
12,
474,
963,
13,
288,
3639,
333,
18,
1126,
273,
394,
2407,
12,
1467,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3698,
1076,
1253,
12,
474,
963,
13,
288,
3639,
333,
18,
1126,
273,
394,
2407,
12,
1467,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void testImportLibrary( ) throws Exception { openDesign(fileName); designHandle.includeLibrary( inputLibraryName, "LibA" ); LibraryHandle libHandle = designHandle.getLibrary( "LibA" ); TextItemHandle textLibHandle = (TextItemHandle)libHandle.findElement( "myText" ); assertNotNull("Text should not be null", textLibHandle); TableHandle tableLibHandle = (TableHandle)libHandle.findElement( "myTable" ); assertNotNull("Table should not be null", tableLibHandle); StyleHandle styleLibHandle = (StyleHandle)libHandle.findStyle( "myStyle" ); assertNotNull("Style should not be null", styleLibHandle); ParameterHandle parameterLibHandle = (ParameterHandle)libHandle.findParameter( "Parameter1" ); assertNotNull("Parameter should not be null", parameterLibHandle); LabelHandle labelLibHandle = (LabelHandle)libHandle.findElement( "myLabel" ); assertNotNull("Label should not be null", labelLibHandle); ImageHandle imageLibHandle = (ImageHandle)libHandle.findElement( "myImage" ); assertNotNull("Image should not be null", imageLibHandle); DataItemHandle dataLibHandle = (DataItemHandle)libHandle.findElement( "myData" ); assertNotNull("Data should not be null", dataLibHandle); DataSourceHandle dataSourceLibHandle = (DataSourceHandle)libHandle.findDataSource( "db2d" ); assertNotNull("Datasource should not be null", dataSourceLibHandle); DataSetHandle dataSetLibHandle = (DataSetHandle)libHandle.findDataSet( "db2ds" ); assertNotNull("Dataset should not be null", dataSetLibHandle); TextItemHandle textHandle = (TextItemHandle)designHandle.getElementFactory().newElementFrom( textLibHandle, "myText" ); TableHandle tableHandle = (TableHandle)designHandle.getElementFactory().newElementFrom( tableLibHandle, "myTable" ); StyleHandle styleHandle = (StyleHandle)designHandle.getElementFactory().newStyle( "myStyle" ); ParameterHandle parameterHandle = (ParameterHandle)designHandle.getElementFactory().newElementFrom( parameterLibHandle, "Parameter1" ); LabelHandle labelHandle = (LabelHandle)designHandle.getElementFactory().newElementFrom( labelLibHandle, "myLabel" ); ImageHandle imageHandle = (ImageHandle)designHandle.getElementFactory().newElementFrom( imageLibHandle, "myImage" ); DataItemHandle dataHandle = (DataItemHandle)designHandle.getElementFactory().newElementFrom( dataLibHandle, "myData" ); DataSourceHandle dataSourceHandle = (DataSourceHandle)designHandle.getElementFactory().newOdaDataSource( "db2d" ); DataSetHandle dataSetHandle = (DataSetHandle)designHandle.getElementFactory().newOdaDataSet( "db2ds" ); designHandle.getDataSources().add( dataSourceHandle ); designHandle.getDataSets().add( dataSetHandle ); designHandle.getStyles().add( styleHandle ); designHandle.getBody().add( dataHandle ); designHandle.getParameters().add( parameterHandle ); designHandle.getBody().add( textHandle ); designHandle.getBody().add( labelHandle ); designHandle.getBody().add( tableHandle ); designHandle.getBody().add( imageHandle ); assertNotNull(designHandle); super.saveAs( outputFileName ); assertTrue( compareTextFile( goldenFileName, outputFileName ) ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1941630e9393afd3a96a0625deeab2c94ff76436/LibraryImportTest.java/buggy/testsuites/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/api/LibraryImportTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5010,
9313,
12,
262,
1216,
1185,
202,
95,
25083,
202,
3190,
15478,
12,
17812,
1769,
202,
202,
16934,
3259,
18,
6702,
9313,
12,
810,
9313,
461,
16,
315,
5664,
37,
6,
11272,
202,
202,
9313,
3259,
2561,
3259,
273,
8281,
3259,
18,
588,
9313,
12,
315,
5664,
37,
6,
11272,
9506,
202,
1528,
1180,
3259,
977,
5664,
3259,
273,
261,
1528,
1180,
3259,
13,
2941,
3259,
18,
4720,
1046,
12,
315,
4811,
1528,
6,
11272,
202,
202,
11231,
5962,
2932,
1528,
1410,
486,
506,
446,
3113,
977,
5664,
3259,
1769,
3196,
202,
1388,
3259,
1014,
5664,
3259,
273,
261,
1388,
3259,
13,
2941,
3259,
18,
4720,
1046,
12,
315,
4811,
1388,
6,
11272,
202,
202,
11231,
5962,
2932,
1388,
1410,
486,
506,
446,
3113,
1014,
5664,
3259,
1769,
202,
202,
2885,
3259,
2154,
5664,
3259,
273,
261,
2885,
3259,
13,
2941,
3259,
18,
4720,
2885,
12,
315,
4811,
2885,
6,
11272,
202,
202,
11231,
5962,
2932,
2885,
1410,
486,
506,
446,
3113,
2154,
5664,
3259,
1769,
202,
202,
1662,
3259,
1569,
5664,
3259,
273,
261,
1662,
3259,
13,
2941,
3259,
18,
4720,
1662,
12,
315,
1662,
21,
6,
11272,
202,
202,
11231,
5962,
2932,
1662,
1410,
486,
506,
446,
3113,
1569,
5664,
3259,
1769,
202,
202,
2224,
3259,
1433,
5664,
3259,
273,
261,
2224,
3259,
13,
2941,
3259,
18,
4720,
1046,
12,
315,
4811,
2224,
6,
11272,
202,
202,
11231,
5962,
2932,
2224,
1410,
486,
506,
446,
3113,
1433,
5664,
3259,
1769,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5010,
9313,
12,
262,
1216,
1185,
202,
95,
25083,
202,
3190,
15478,
12,
17812,
1769,
202,
202,
16934,
3259,
18,
6702,
9313,
12,
810,
9313,
461,
16,
315,
5664,
37,
6,
11272,
202,
202,
9313,
3259,
2561,
3259,
273,
8281,
3259,
18,
588,
9313,
12,
315,
5664,
37,
6,
11272,
9506,
202,
1528,
1180,
3259,
977,
5664,
3259,
273,
261,
1528,
1180,
3259,
13,
2941,
3259,
18,
4720,
1046,
12,
315,
4811,
1528,
6,
11272,
202,
202,
11231,
5962,
2932,
1528,
1410,
486,
506,
446,
3113,
977,
5664,
3259,
1769,
3196,
202,
1388,
3259,
1014,
5664,
3259,
273,
261,
1388,
3259,
13,
2941,
3259,
18,
4720,
1046,
12,
315,
4811,
1388,
6,
11272,
202,
2
] |
||
Macros.runScript(null,new File( directory,snippets[i]).getPath(),true);
|
File snippet = snippets[i]; Macros.Handler handler = Macros.getHandlerForFileName( snippet.getName()); if(handler == null) continue; try { Macros.Macro newMacro = handler.createMacro( snippet.getName(), snippet.getPath()); handler.runMacro(null,newMacro,false); } catch(Exception e) { Log.log(Log.ERROR,jEdit.class,e); }
|
private static void runStartupScripts(File directory) { if (!directory.isDirectory()) return; String[] snippets = directory.list(); if (snippets == null) return; MiscUtilities.quicksort(snippets, new MiscUtilities.StringICaseCompare()); for(int i = 0; i < snippets.length; ++i) { Macros.runScript(null,new File( directory,snippets[i]).getPath(),true); } } //}}}
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/1644996a1ccc26225fb16f1b8cd5fdcf4d3fc5de/jEdit.java/buggy/org/gjt/sp/jedit/jEdit.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1086,
22178,
15041,
12,
812,
1867,
13,
202,
95,
202,
202,
430,
16051,
5149,
18,
291,
2853,
10756,
1082,
202,
2463,
31,
202,
202,
780,
8526,
24613,
273,
1867,
18,
1098,
5621,
202,
202,
430,
261,
8134,
16664,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
11729,
71,
11864,
18,
19525,
3804,
12,
8134,
16664,
16,
1082,
202,
2704,
16584,
71,
11864,
18,
780,
45,
2449,
8583,
10663,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
24613,
18,
2469,
31,
965,
77,
13,
202,
202,
95,
1082,
202,
9990,
6973,
18,
2681,
3651,
12,
2011,
16,
2704,
1387,
12,
9506,
202,
5149,
16,
8134,
16664,
63,
77,
65,
2934,
588,
743,
9334,
3767,
1769,
202,
202,
97,
202,
97,
368,
9090,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1086,
22178,
15041,
12,
812,
1867,
13,
202,
95,
202,
202,
430,
16051,
5149,
18,
291,
2853,
10756,
1082,
202,
2463,
31,
202,
202,
780,
8526,
24613,
273,
1867,
18,
1098,
5621,
202,
202,
430,
261,
8134,
16664,
422,
446,
13,
1082,
202,
2463,
31,
202,
202,
11729,
71,
11864,
18,
19525,
3804,
12,
8134,
16664,
16,
1082,
202,
2704,
16584,
71,
11864,
18,
780,
45,
2449,
8583,
10663,
202,
202,
1884,
12,
474,
277,
273,
374,
31,
277,
411,
24613,
18,
2469,
31,
965,
77,
13,
202,
202,
95,
1082,
202,
9990,
6973,
18,
2681,
3651,
12,
2011,
16,
2704,
1387,
12,
9506,
202,
5149,
16,
8134,
16664,
63,
77,
65,
2934,
588,
2
] |
Messages.getFormattedString( "GuiExtensionManager.tooltip.insert", new Object[]{ displayName }), getExtendedPalletTemplateName(point),
|
Messages.getFormattedString( "GuiExtensionManager.tooltip.insert", new Object[]{displayName} ), getExtendedPalletTemplateName( point ),
|
private static Object doPalette( Object object, String type ) { assert ( object instanceof PaletteRoot ); PaletteRoot root = (PaletteRoot) object; List list = root.getChildren( ); List exts = ExtensionPointManager.getInstance( ) .getExtendedElementPoints( ); if ( exts == null ) { return root; } for ( Iterator itor = exts.iterator( ); itor.hasNext( ); ) { ExtendedElementUIPoint point = (ExtendedElementUIPoint) itor.next( ); if ( point == null ) { return root; } String category = (String) point.getAttribute( IExtensionConstants.ATTRIBUTE_PALETTE_CATEGORY ); ImageDescriptor icon = (ImageDescriptor) point.getAttribute( IExtensionConstants.ATTRIBUTE_KEY_PALETTE_ICON ); IReportItemFigureProvider UI = point.getReportItemUI( ); if ( UI == null ) { return root; } if ( PALETTE_DESIGNER.equals( type ) ) { Boolean bool = (Boolean) point.getAttribute( IExtensionConstants.ATTRIBUTE_EDITOR_SHOW_IN_DESIGNER ); if ( !bool.booleanValue( ) ) { continue; } } else if ( PALETTE_MASTERPAGE.equals( type ) ) { Boolean bool = (Boolean) point.getAttribute( IExtensionConstants.ATTRIBUTE_EDITOR_SHOW_IN_MASTERPAGE ); if ( !bool.booleanValue( ) ) { continue; } } String displayName = DesignEngine.getMetaDataDictionary( ) .getExtension( point.getExtensionName( ) ) .getDisplayName( ); CombinedTemplateCreationEntry combined = new ReportCombinedTemplateCreationEntry( displayName, Messages.getFormattedString( "GuiExtensionManager.tooltip.insert", new Object[]{ displayName }), //$NON-NLS-1$ getExtendedPalletTemplateName(point), new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_EXTENDED + point.getExtensionName( ) ), icon, icon, BasePaletteFactory.getAbstractToolHandleExtendsFromPalletName(getExtendedPalletTemplateName(point)) ); PaletteContainer entry = findCategory( list, category ); if ( entry == null ) { String categoryLabel = (String) point.getAttribute( IExtensionConstants.ATTRIBUTE_PALETTE_CATEGORY_DISPLAYNAME ); if ( categoryLabel == null ) { categoryLabel = category; } entry = new PaletteCategory( category, categoryLabel, null ); root.add( entry ); } entry.add( combined ); } return root; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/8881b5505fc0ba3f08558dcedf523f0b91dfcba5/GuiExtensionManager.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/extensions/GuiExtensionManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1033,
741,
25863,
12,
1033,
733,
16,
514,
618,
262,
202,
95,
202,
202,
11231,
261,
733,
1276,
453,
8786,
2375,
11272,
202,
202,
25863,
2375,
1365,
273,
261,
25863,
2375,
13,
733,
31,
202,
202,
682,
666,
273,
1365,
18,
588,
4212,
12,
11272,
202,
202,
682,
20793,
273,
10021,
2148,
1318,
18,
588,
1442,
12,
262,
9506,
202,
18,
588,
11456,
1046,
5636,
12,
11272,
202,
202,
430,
261,
20793,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
1365,
31,
202,
202,
97,
202,
202,
1884,
261,
4498,
518,
280,
273,
20793,
18,
9838,
12,
11272,
518,
280,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
1082,
202,
11456,
1046,
5370,
2148,
1634,
273,
261,
11456,
1046,
5370,
2148,
13,
518,
280,
18,
4285,
12,
11272,
1082,
202,
430,
261,
1634,
422,
446,
262,
1082,
202,
95,
9506,
202,
2463,
1365,
31,
1082,
202,
97,
1082,
202,
780,
3150,
273,
261,
780,
13,
1634,
18,
588,
1499,
12,
467,
3625,
2918,
18,
11616,
67,
4066,
15146,
1448,
67,
24847,
11272,
1082,
202,
2040,
3187,
4126,
273,
261,
2040,
3187,
13,
1634,
18,
588,
1499,
12,
467,
3625,
2918,
18,
11616,
67,
3297,
67,
4066,
15146,
1448,
67,
21745,
11272,
1082,
202,
45,
4820,
1180,
42,
15906,
2249,
6484,
273,
1634,
18,
588,
4820,
1180,
5370,
12,
11272,
1082,
202,
430,
261,
6484,
422,
446,
262,
1082,
202,
95,
9506,
202,
2463,
1365,
31,
1082,
202,
97,
1082,
202,
430,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1033,
741,
25863,
12,
1033,
733,
16,
514,
618,
262,
202,
95,
202,
202,
11231,
261,
733,
1276,
453,
8786,
2375,
11272,
202,
202,
25863,
2375,
1365,
273,
261,
25863,
2375,
13,
733,
31,
202,
202,
682,
666,
273,
1365,
18,
588,
4212,
12,
11272,
202,
202,
682,
20793,
273,
10021,
2148,
1318,
18,
588,
1442,
12,
262,
9506,
202,
18,
588,
11456,
1046,
5636,
12,
11272,
202,
202,
430,
261,
20793,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
1365,
31,
202,
202,
97,
202,
202,
1884,
261,
4498,
518,
280,
273,
20793,
18,
9838,
12,
11272,
518,
280,
18,
5332,
2134,
12,
11272,
262,
202,
202,
95,
1082,
202,
11456,
1046,
5370,
2
] |
public Object clone() {
|
public Object clone() throws CloneNotSupportedException {
|
public Object clone() { Object clone = null; try { clone = super.clone(); } catch (Exception exception) { logger.error("Could not clone DebugAtom: " + exception.getMessage(), exception); logger.debug(exception); } return clone; }
|
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/2b55a607674535cd8492e3539d8f3dce16fc3b92/DebugLonePair.java/buggy/src/org/openscience/cdk/debug/DebugLonePair.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3236,
1435,
1216,
12758,
25482,
288,
3639,
1033,
3236,
273,
446,
31,
3639,
775,
288,
540,
202,
14056,
273,
2240,
18,
14056,
5621,
3639,
289,
1044,
261,
503,
1520,
13,
288,
540,
202,
4901,
18,
1636,
2932,
4445,
486,
3236,
4015,
3641,
30,
315,
397,
1520,
18,
24906,
9334,
1520,
1769,
540,
202,
4901,
18,
4148,
12,
4064,
1769,
3639,
289,
3639,
327,
3236,
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,
482,
1033,
3236,
1435,
1216,
12758,
25482,
288,
3639,
1033,
3236,
273,
446,
31,
3639,
775,
288,
540,
202,
14056,
273,
2240,
18,
14056,
5621,
3639,
289,
1044,
261,
503,
1520,
13,
288,
540,
202,
4901,
18,
1636,
2932,
4445,
486,
3236,
4015,
3641,
30,
315,
397,
1520,
18,
24906,
9334,
1520,
1769,
540,
202,
4901,
18,
4148,
12,
4064,
1769,
3639,
289,
3639,
327,
3236,
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
] |
dumpElement ("CLASSDESC NAME=");
|
public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeserializing = true;// DEBUG ("MARKER "); byte marker = this.realInputStream.readByte (); switch (marker) { case TC_BLOCKDATA: case TC_BLOCKDATALONG: readNextBlock (marker); throw new BlockDataException (this.blockDataBytes); case TC_NULL: ret_val = null; break; case TC_REFERENCE: {// DEBUG ("REFERENCE "); Integer oid = new Integer (this.realInputStream.readInt ()); ret_val = ((ObjectIdentityWrapper) this.objectLookupTable.get (oid)).object; break; } case TC_CLASS: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); assignNewHandle (clazz); ret_val = clazz; break; } case TC_CLASSDESC: {// DEBUG ("CLASSDESC NAME "); String name = this.realInputStream.readUTF ();// DEBUG ("UID "); long uid = this.realInputStream.readLong ();// DEBUG ("FLAGS "); byte flags = this.realInputStream.readByte ();// DEBUG ("FIELD COUNT "); short field_count = this.realInputStream.readShort (); ObjectStreamField[] fields = new ObjectStreamField[field_count]; ObjectStreamClass osc = new ObjectStreamClass (name, uid, flags, fields); assignNewHandle (osc); for (int i=0; i < field_count; i++) {// DEBUG ("TYPE CODE "); char type_code = (char)this.realInputStream.readByte ();// DEBUG ("FIELD NAME "); String field_name = this.realInputStream.readUTF (); String class_name; if (type_code == 'L' || type_code == '[') class_name = (String)readObject (); else class_name = String.valueOf (type_code); fields[i] = new ObjectStreamField (field_name, TypeSignature.getClassForEncoding (class_name)); } setBlockDataMode (true); osc.setClass (resolveClass (osc)); setBlockDataMode (false);// DEBUG ("ENDBLOCKDATA "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("Data annotated to class was not consumed."); osc.setSuperclass ((ObjectStreamClass)readObject ()); ret_val = osc; break; } case TC_STRING: {// DEBUG ("STRING "); String s = this.realInputStream.readUTF (); ret_val = processResolution (s, assignNewHandle (s)); break; } case TC_ARRAY: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class componenetType = osc.forClass ().getComponentType ();// DEBUG ("ARRAY LENGTH "); int length = this.realInputStream.readInt (); Object array = Array.newInstance (componenetType, length); int handle = assignNewHandle (array); readArrayElements (array, componenetType); ret_val = processResolution (array, handle); break; } case TC_OBJECT: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); if (!Serializable.class.isAssignableFrom (clazz)) throw new NotSerializableException (clazz + " is not Serializable, and thus cannot be deserialized."); if (Externalizable.class.isAssignableFrom (clazz)) { Externalizable obj = null; try { obj = (Externalizable)clazz.newInstance (); } catch (InstantiationException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); } catch (IllegalAccessException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because class or zero-argument constructor is not accessible"); } catch (NoSuchMethodError e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because zero-argument constructor is not defined"); } int handle = assignNewHandle (obj); boolean read_from_blocks = ((osc.getFlags () & SC_BLOCK_DATA) != 0); if (read_from_blocks) setBlockDataMode (true); obj.readExternal (this); if (read_from_blocks) setBlockDataMode (false); ret_val = processResolution (obj, handle); break; } // end if (Externalizable.class.isAssignableFrom (clazz)) // find the first non-serializable, non-abstract // class in clazz's inheritance hierarchy Class first_nonserial = clazz.getSuperclass (); while (Serializable.class.isAssignableFrom (first_nonserial) || Modifier.isAbstract (first_nonserial.getModifiers ())) first_nonserial = first_nonserial.getSuperclass ();// DEBUGln ("Using " + first_nonserial// + " as starting point for constructing " + clazz); Object obj = null; obj = newObject (clazz, first_nonserial); if (obj == null) throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); int handle = assignNewHandle (obj); this.currentObject = obj; ObjectStreamClass[] hierarchy = ObjectStreamClass.getObjectStreamClasses (clazz);// DEBUGln ("Got class hierarchy of depth " + hierarchy.length); boolean has_read; for (int i=0; i < hierarchy.length; i++) { this.currentObjectStreamClass = hierarchy[i];// DEBUGln ("Reading fields of "// + this.currentObjectStreamClass.getName ()); has_read = true; try { this.currentObjectStreamClass.forClass (). getDeclaredMethod ("readObject", readObjectParams); } catch (NoSuchMethodException e) { has_read = false; } // XXX: should initialize fields in classes in the hierarchy // that aren't in the stream // should skip over classes in the stream that aren't in the // real classes hierarchy readFields (obj, this.currentObjectStreamClass.fields, has_read, this.currentObjectStreamClass); if (has_read) {// DEBUG ("ENDBLOCKDATA? "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); } } this.currentObject = null; this.currentObjectStreamClass = null; ret_val = processResolution (obj, handle); break; } case TC_RESET: clearHandles (); ret_val = readObject (); break; case TC_EXCEPTION: { Exception e = (Exception)readObject (); clearHandles (); throw new WriteAbortedException ("Exception thrown during writing of stream", e); } default: throw new IOException ("Unknown marker on stream"); } this.isDeserializing = was_deserializing; if (! was_deserializing) { setBlockDataMode (true); if (validators.size () > 0) invokeValidators (); } return ret_val; }
|
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/fc168340950fe24246924819019e0b004bdb5365/ObjectInputStream.java/clean/libjava/java/io/ObjectInputStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1071,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
727,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1033,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
17362,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1832,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1216,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
10403,
16,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1860,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
288,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
309,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
261,
2211,
18,
1202,
1676,
1106,
1305,
13,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
327,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
17362,
22042,
13898,
2801,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
261,
1769,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
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,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1071,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
727,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1033,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
17362,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1832,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1216,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
10403,
16,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
1860,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
288,
8481,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
6048,
1546,
1769,
4657,
1046,
7566,
5237,
10964,
2
] |
|
myMacroDefinition = new AntTypeDefinitionImpl(new AntTypeId(getName()), thisClassName, true, attributes, nestedElements, this);
|
final AntTypeId definedTypeId = new AntTypeId(getName()); if (myMacroDefinition == null) { myMacroDefinition = new AntTypeDefinitionImpl(definedTypeId, thisClassName, true, attributes, nestedElements, this); } else { myMacroDefinition.setTypeId(definedTypeId); myMacroDefinition.setClassName(thisClassName); myMacroDefinition.setIsTask(true); myMacroDefinition.setDefiningElement(this); }
|
private void invalidateMacroDefinition() { if (!hasNameElement()) { myMacroDefinition = null; return; } final AntFile file = getAntFile(); final String thisClassName = toString(); final HashMap<String, AntAttributeType> attributes = new HashMap<String, AntAttributeType>(); final HashMap<AntTypeId, String> nestedElements = new HashMap<AntTypeId, String>(); for (AntElement child : getChildren()) { if (child instanceof AntStructuredElement) { AntStructuredElement se = (AntStructuredElement)child; final String name = se.getName(); if (name != null) { final String tagName = se.getSourceElement().getName(); if (tagName.equals("attribute")) { attributes.put(name, AntAttributeType.STRING); } else if (tagName.equals("element")) { final AntTypeDefinitionImpl nestedDef = new AntTypeDefinitionImpl((AntTypeDefinitionImpl)file.getTargetDefinition()); final AntTypeId typeId = new AntTypeId(name); nestedDef.setTypeId(typeId); nestedDef.setIsTask(false); nestedDef.setClassName(thisClassName + '.' + name); nestedDef.setDefiningElement(child); file.registerCustomType(nestedDef); nestedElements.put(typeId, nestedDef.getClassName()); } } } } myMacroDefinition = new AntTypeDefinitionImpl(new AntTypeId(getName()), thisClassName, true, attributes, nestedElements, this); getAntParent().registerCustomType(myMacroDefinition); }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8db64e6f6295a85b1ed9bb2320343787f08b11ba/AntMacroDefImpl.java/buggy/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntMacroDefImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
11587,
17392,
1852,
1435,
288,
565,
309,
16051,
5332,
461,
1046,
10756,
288,
1377,
3399,
17392,
1852,
273,
446,
31,
1377,
327,
31,
565,
289,
565,
727,
18830,
812,
585,
273,
4506,
496,
812,
5621,
565,
727,
514,
333,
3834,
273,
1762,
5621,
565,
727,
4317,
32,
780,
16,
18830,
19529,
34,
1677,
273,
394,
4317,
32,
780,
16,
18830,
19529,
34,
5621,
565,
727,
4317,
32,
14925,
11731,
16,
514,
34,
4764,
3471,
273,
394,
4317,
32,
14925,
11731,
16,
514,
34,
5621,
565,
364,
261,
14925,
1046,
1151,
294,
10268,
10756,
288,
1377,
309,
261,
3624,
1276,
18830,
30733,
1046,
13,
288,
3639,
18830,
30733,
1046,
695,
273,
261,
14925,
30733,
1046,
13,
3624,
31,
3639,
727,
514,
508,
273,
695,
18,
17994,
5621,
3639,
309,
261,
529,
480,
446,
13,
288,
1850,
727,
514,
7196,
273,
695,
18,
588,
1830,
1046,
7675,
17994,
5621,
1850,
309,
261,
2692,
461,
18,
14963,
2932,
4589,
6,
3719,
288,
5411,
1677,
18,
458,
12,
529,
16,
18830,
19529,
18,
5804,
1769,
1850,
289,
1850,
469,
309,
261,
2692,
461,
18,
14963,
2932,
2956,
6,
3719,
288,
5411,
727,
18830,
559,
1852,
2828,
4764,
3262,
273,
2868,
394,
18830,
559,
1852,
2828,
12443,
14925,
559,
1852,
2828,
13,
768,
18,
588,
2326,
1852,
10663,
5411,
727,
18830,
11731,
24361,
273,
394,
18830,
11731,
12,
529,
1769,
5411,
4764,
3262,
18,
542,
11731,
12,
723,
548,
1769,
5411,
4764,
3262,
18,
542,
2520,
2174,
12,
5743,
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,
11587,
17392,
1852,
1435,
288,
565,
309,
16051,
5332,
461,
1046,
10756,
288,
1377,
3399,
17392,
1852,
273,
446,
31,
1377,
327,
31,
565,
289,
565,
727,
18830,
812,
585,
273,
4506,
496,
812,
5621,
565,
727,
514,
333,
3834,
273,
1762,
5621,
565,
727,
4317,
32,
780,
16,
18830,
19529,
34,
1677,
273,
394,
4317,
32,
780,
16,
18830,
19529,
34,
5621,
565,
727,
4317,
32,
14925,
11731,
16,
514,
34,
4764,
3471,
273,
394,
4317,
32,
14925,
11731,
16,
514,
34,
5621,
565,
364,
261,
14925,
1046,
1151,
294,
10268,
10756,
288,
1377,
309,
261,
3624,
1276,
18830,
30733,
1046,
13,
288,
3639,
18830,
30733,
1046,
695,
273,
261,
14925,
30733,
1046,
13,
3624,
2
] |
new SetNextRule(this, methodName, paramType));
|
new SetNextRule(this, methodName));
|
public void addSetNext(String pattern, String methodName, String paramType) { addRule(pattern, new SetNextRule(this, methodName, paramType)); }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/4f739886107796036f7a96cafd7383a9b5116ae7/Digester.java/buggy/src/share/org/apache/struts/digester/Digester.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
694,
2134,
12,
780,
1936,
16,
514,
4918,
16,
377,
9506,
282,
514,
20781,
13,
288,
202,
1289,
2175,
12,
4951,
16,
202,
3639,
394,
1000,
2134,
2175,
12,
2211,
16,
4918,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
377,
1071,
918,
527,
694,
2134,
12,
780,
1936,
16,
514,
4918,
16,
377,
9506,
282,
514,
20781,
13,
288,
202,
1289,
2175,
12,
4951,
16,
202,
3639,
394,
1000,
2134,
2175,
12,
2211,
16,
4918,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
text = text.replaceAll("(http:
|
Matcher matcher = Pattern.compile("(http: StringBuffer result = new StringBuffer(); int end = 0; while (matcher.find()) { result.append(text.substring(end, matcher.start())); result.append("<a href=\""); String linkText = text.substring(matcher.start(), matcher.end()); if (!linkText.startsWith("http: result.append("http: } result.append(linkText); result.append("\">"); result.append(linkText); result.append("</a>"); end = matcher.end(); } result.append(text.substring(end)); text = result.toString();
|
public static String convertTextToHtml(String text, boolean createLinks) { // Disarm html entities text = IOUtilities.replace(text.trim(), "<", "<"); text = IOUtilities.replace(text.trim(), ">", ">"); // Translate line breaks to html breaks text = IOUtilities.replace(text.trim(), "\n", "<br>"); // Create links for URLs if (createLinks) { text = text.replaceAll("(http://|www.)[^\\s<]*", "<a href=\"$0\">$0</a>"); } return text; }
|
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/b7a956b52160bd5e08595d5825389ab60be8a5fc/HTMLTextHelper.java/clean/tvbrowser/src/util/ui/html/HTMLTextHelper.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
514,
1765,
1528,
774,
4353,
12,
780,
977,
16,
1250,
752,
7100,
13,
288,
565,
368,
3035,
4610,
1729,
5140,
565,
977,
273,
1665,
11864,
18,
2079,
12,
955,
18,
5290,
9334,
3532,
3113,
7830,
5618,
4868,
1769,
565,
977,
273,
1665,
11864,
18,
2079,
12,
955,
18,
5290,
9334,
14675,
16,
7830,
4521,
4868,
1769,
565,
368,
16820,
980,
16217,
358,
1729,
16217,
565,
977,
273,
1665,
11864,
18,
2079,
12,
955,
18,
5290,
9334,
1548,
82,
3113,
3532,
2848,
2984,
1769,
565,
368,
1788,
4716,
364,
10414,
565,
309,
261,
2640,
7100,
13,
288,
1377,
977,
273,
977,
18,
2079,
1595,
2932,
12,
2505,
2207,
96,
5591,
12998,
5969,
1695,
87,
32,
5772,
3113,
3532,
69,
3897,
28251,
20,
2412,
16200,
20,
1757,
69,
2984,
1769,
565,
289,
565,
327,
977,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
760,
514,
1765,
1528,
774,
4353,
12,
780,
977,
16,
1250,
752,
7100,
13,
288,
565,
368,
3035,
4610,
1729,
5140,
565,
977,
273,
1665,
11864,
18,
2079,
12,
955,
18,
5290,
9334,
3532,
3113,
7830,
5618,
4868,
1769,
565,
977,
273,
1665,
11864,
18,
2079,
12,
955,
18,
5290,
9334,
14675,
16,
7830,
4521,
4868,
1769,
565,
368,
16820,
980,
16217,
358,
1729,
16217,
565,
977,
273,
1665,
11864,
18,
2079,
12,
955,
18,
5290,
9334,
1548,
82,
3113,
3532,
2848,
2984,
1769,
565,
368,
1788,
4716,
364,
10414,
565,
309,
261,
2640,
7100,
13,
288,
1377,
977,
273,
977,
18,
2079,
1595,
2932,
12,
2505,
2207,
96,
5591,
12998,
5969,
1695,
87,
32,
5772,
3113,
2
] |
logger.error("Settings not yet initialized. State: " + txtx.getRunState() );
|
logger.error("Settings not yet initialized. State: " + getTransformContext().getRunState() );
|
public AirgapSettings getAirgapSettings() { validateSettings(); if( settings == null ) logger.error("Settings not yet initialized. State: " + txtx.getRunState() ); return settings; }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/380cfe209cd037a8ef84b1a3dbad1f56d10bcca0/AirgapTransformImpl.java/clean/tran/airgap/main/com/metavize/tran/airgap/AirgapTransformImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
432,
481,
14048,
2628,
4506,
481,
14048,
2628,
1435,
565,
288,
3639,
1954,
2628,
5621,
202,
430,
12,
1947,
422,
446,
262,
202,
565,
1194,
18,
1636,
2932,
2628,
486,
4671,
6454,
18,
3287,
30,
315,
397,
336,
4059,
1042,
7675,
588,
1997,
1119,
1435,
11272,
3639,
327,
1947,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
432,
481,
14048,
2628,
4506,
481,
14048,
2628,
1435,
565,
288,
3639,
1954,
2628,
5621,
202,
430,
12,
1947,
422,
446,
262,
202,
565,
1194,
18,
1636,
2932,
2628,
486,
4671,
6454,
18,
3287,
30,
315,
397,
336,
4059,
1042,
7675,
588,
1997,
1119,
1435,
11272,
3639,
327,
1947,
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
] |
cons.gridy = 3;
|
cons.gridy = 4;
|
public EditorOptionPane() { super("editor"); GridBagLayout layout = new GridBagLayout(); setLayout(layout); GridBagConstraints cons = new GridBagConstraints(); cons.gridx = cons.gridy = 0; cons.gridwidth = 3; cons.gridheight = 1; cons.fill = GridBagConstraints.BOTH; cons.weightx = 1.0f; JLabel label = new JLabel(jEdit.getProperty("options.editor" + ".font"),SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; font = new JComboBox(getToolkit().getFontList()); font.setSelectedItem(jEdit.getProperty("view.font")); layout.setConstraints(font,cons); add(font); cons.gridx = 0; cons.gridy = 1; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty("options.editor.fontsize"), SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; String[] sizes = { "9", "10", "12", "14", "18", "24" }; size = new JComboBox(sizes); size.setSelectedItem(jEdit.getProperty("view.fontsize")); layout.setConstraints(size,cons); add(size); cons.gridx = 0; cons.gridy = 2; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty("options.editor.width"), SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; viewWidth = new JTextField(jEdit.getProperty("view.geometry.w")); layout.setConstraints(viewWidth,cons); add(viewWidth); cons.gridx = 0; cons.gridy = 3; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty("options.editor.height"), SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; viewHeight = new JTextField(jEdit.getProperty("view.geometry.h")); layout.setConstraints(viewHeight,cons); add(viewHeight); cons.gridx = 0; cons.gridy = 4; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty("options.editor.tabSize"), SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; tabSize = new JTextField(jEdit.getProperty("buffer.tabSize")); layout.setConstraints(tabSize,cons); add(tabSize); cons.gridx = 0; cons.gridy = 5; cons.gridwidth = cons.REMAINDER; lineHighlight = new JCheckBox(jEdit.getProperty("options.editor" + ".lineHighlight")); lineHighlight.getModel().setSelected("on".equals(jEdit .getProperty("view.lineHighlight"))); layout.setConstraints(lineHighlight,cons); add(lineHighlight); cons.gridy = 6; bracketHighlight = new JCheckBox(jEdit.getProperty("options.editor" + ".bracketHighlight")); bracketHighlight.getModel().setSelected("on".equals(jEdit .getProperty("view.bracketHighlight"))); layout.setConstraints(bracketHighlight,cons); add(bracketHighlight); cons.gridy = 7; syntax = new JCheckBox(jEdit.getProperty("options.editor" + ".syntax")); syntax.getModel().setSelected("on".equals(jEdit.getProperty( "buffer.syntax"))); layout.setConstraints(syntax,cons); add(syntax); cons.gridy = 8; autoIndent = new JCheckBox(jEdit.getProperty("options.editor" + ".autoIndent")); autoIndent.getModel().setSelected("on".equals(jEdit.getProperty( "view.autoindent"))); layout.setConstraints(autoIndent,cons); add(autoIndent); cons.gridy = 9; blinkCaret = new JCheckBox(jEdit.getProperty("options.editor" + ".blinkCaret")); blinkCaret.getModel().setSelected(!"0".equals(jEdit.getProperty( "view.caretBlinkRate"))); layout.setConstraints(blinkCaret,cons); add(blinkCaret); }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/3dd880fa154feb10894aee38225042b80125b1bc/EditorOptionPane.java/buggy/org/gjt/sp/jedit/options/EditorOptionPane.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
18451,
1895,
8485,
1435,
202,
95,
202,
202,
9565,
2932,
9177,
8863,
202,
202,
6313,
5013,
3744,
3511,
273,
394,
7145,
5013,
3744,
5621,
202,
202,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
6852,
1959,
273,
394,
13075,
5621,
202,
202,
8559,
18,
5222,
92,
273,
1959,
18,
5222,
93,
273,
374,
31,
202,
202,
8559,
18,
5222,
2819,
273,
890,
31,
202,
202,
8559,
18,
5222,
4210,
273,
404,
31,
202,
202,
8559,
18,
5935,
273,
13075,
18,
38,
18307,
31,
202,
202,
8559,
18,
4865,
92,
273,
404,
18,
20,
74,
31,
202,
202,
46,
2224,
1433,
273,
394,
21403,
12,
78,
4666,
18,
588,
1396,
2932,
2116,
18,
9177,
6,
1082,
202,
15,
3552,
5776,
6,
3631,
6050,
310,
2918,
18,
11847,
1769,
202,
202,
6741,
18,
542,
4878,
12,
1925,
16,
8559,
1769,
202,
202,
1289,
12,
1925,
1769,
202,
202,
8559,
18,
5222,
92,
273,
890,
31,
202,
202,
8559,
18,
5222,
2819,
273,
404,
31,
202,
202,
5776,
273,
394,
804,
22199,
12,
588,
6364,
8691,
7675,
588,
5711,
682,
10663,
202,
202,
5776,
18,
542,
7416,
1180,
12,
78,
4666,
18,
588,
1396,
2932,
1945,
18,
5776,
7923,
1769,
202,
202,
6741,
18,
542,
4878,
12,
5776,
16,
8559,
1769,
202,
202,
1289,
12,
5776,
1769,
202,
202,
8559,
18,
5222,
92,
273,
374,
31,
202,
202,
8559,
18,
5222,
93,
273,
404,
31,
202,
202,
8559,
18,
5222,
2819,
273,
890,
31,
202,
202,
1925,
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,
18451,
1895,
8485,
1435,
202,
95,
202,
202,
9565,
2932,
9177,
8863,
202,
202,
6313,
5013,
3744,
3511,
273,
394,
7145,
5013,
3744,
5621,
202,
202,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
6852,
1959,
273,
394,
13075,
5621,
202,
202,
8559,
18,
5222,
92,
273,
1959,
18,
5222,
93,
273,
374,
31,
202,
202,
8559,
18,
5222,
2819,
273,
890,
31,
202,
202,
8559,
18,
5222,
4210,
273,
404,
31,
202,
202,
8559,
18,
5935,
273,
13075,
18,
38,
18307,
31,
202,
202,
8559,
18,
4865,
92,
273,
404,
18,
20,
74,
31,
202,
202,
46,
2224,
1433,
273,
394,
21403,
12,
78,
4666,
18,
588,
1396,
2932,
2116,
18,
9177,
6,
1082,
202,
2
] |
rb_define_method(rb_cString, "capitalize", rb_str_capitalize, 0); rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0);
|
*/ stringClass.defineMethod("capitalize", getMethod("m_capitalize", false)); /*rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0);
|
public static RubyClass createStringClass(Ruby ruby) { RubyClass stringClass = ruby.defineClass("String", ruby.getObjectClass()); stringClass.includeModule(ruby.getRubyClass("Comparable")); // stringClass.includeModule(ruby.getModules().getEnumerable()); stringClass.defineSingletonMethod("new", getSingletonMethod("m_new", true)); stringClass.defineMethod("initialize", getMethod("m_replace", RubyString.class));/* rb_define_method(rb_cString, "clone", rb_str_clone, 0); rb_define_method(rb_cString, "dup", rb_str_dup, 0);*/ stringClass.defineMethod("<=>", getMethod("op_cmp", RubyObject.class)); stringClass.defineMethod("==", getMethod("m_equal", RubyObject.class)); stringClass.defineMethod("===", getMethod("m_equal", RubyObject.class)); stringClass.defineMethod("eql?", getMethod("m_equal", RubyObject.class)); /*rb_define_method(rb_cString, "hash", rb_str_hash_m, 0); rb_define_method(rb_cString, "+", rb_str_plus, 1); rb_define_method(rb_cString, "*", rb_str_times, 1); rb_define_method(rb_cString, "%", rb_str_format, 1); */ stringClass.defineMethod("[]", getMethod("m_slice", true)); /*rb_define_method(rb_cString, "[]=", rb_str_aset_m, -1); rb_define_method(rb_cString, "length", rb_str_length, 0); rb_define_method(rb_cString, "size", rb_str_length, 0); rb_define_method(rb_cString, "empty?", rb_str_empty, 0); rb_define_method(rb_cString, "=~", rb_str_match, 1); rb_define_method(rb_cString, "~", rb_str_match2, 0); rb_define_method(rb_cString, "succ", rb_str_succ, 0); rb_define_method(rb_cString, "succ!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "next", rb_str_succ, 0); rb_define_method(rb_cString, "next!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "upto", rb_str_upto_m, 1); rb_define_method(rb_cString, "index", rb_str_index_m, -1); rb_define_method(rb_cString, "rindex", rb_str_rindex, -1); rb_define_method(rb_cString, "replace", rb_str_replace_m, 1); rb_define_method(rb_cString, "to_i", rb_str_to_i, 0); */ stringClass.defineMethod("to_s", getMethod("m_to_s", false)); stringClass.defineMethod("to_str", getMethod("m_to_s", false)); /* rb_define_method(rb_cString, "inspect", rb_str_inspect, 0); rb_define_method(rb_cString, "dump", rb_str_dump, 0); rb_define_method(rb_cString, "upcase", rb_str_upcase, 0); rb_define_method(rb_cString, "downcase", rb_str_downcase, 0); rb_define_method(rb_cString, "capitalize", rb_str_capitalize, 0); rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0); rb_define_method(rb_cString, "upcase!", rb_str_upcase_bang, 0); rb_define_method(rb_cString, "downcase!", rb_str_downcase_bang, 0); rb_define_method(rb_cString, "capitalize!", rb_str_capitalize_bang, 0); rb_define_method(rb_cString, "swapcase!", rb_str_swapcase_bang, 0); rb_define_method(rb_cString, "hex", rb_str_hex, 0); rb_define_method(rb_cString, "oct", rb_str_oct, 0); rb_define_method(rb_cString, "split", rb_str_split_m, -1);*/ stringClass.defineMethod("reverse", getMethod("m_reverse", false)); /*rb_define_method(rb_cString, "reverse!", rb_str_reverse_bang, 0); rb_define_method(rb_cString, "concat", rb_str_concat, 1); rb_define_method(rb_cString, "<<", rb_str_concat, 1); rb_define_method(rb_cString, "crypt", rb_str_crypt, 1); rb_define_method(rb_cString, "intern", rb_str_intern, 0); rb_define_method(rb_cString, "include?", rb_str_include, 1); rb_define_method(rb_cString, "scan", rb_str_scan, 1); rb_define_method(rb_cString, "ljust", rb_str_ljust, 1); rb_define_method(rb_cString, "rjust", rb_str_rjust, 1); rb_define_method(rb_cString, "center", rb_str_center, 1); rb_define_method(rb_cString, "sub", rb_str_sub, -1); rb_define_method(rb_cString, "gsub", rb_str_gsub, -1); rb_define_method(rb_cString, "chop", rb_str_chop, 0); rb_define_method(rb_cString, "chomp", rb_str_chomp, -1); rb_define_method(rb_cString, "strip", rb_str_strip, 0); rb_define_method(rb_cString, "sub!", rb_str_sub_bang, -1); rb_define_method(rb_cString, "gsub!", rb_str_gsub_bang, -1); rb_define_method(rb_cString, "strip!", rb_str_strip_bang, 0); rb_define_method(rb_cString, "chop!", rb_str_chop_bang, 0); rb_define_method(rb_cString, "chomp!", rb_str_chomp_bang, -1); rb_define_method(rb_cString, "tr", rb_str_tr, 2); rb_define_method(rb_cString, "tr_s", rb_str_tr_s, 2); rb_define_method(rb_cString, "delete", rb_str_delete, -1); rb_define_method(rb_cString, "squeeze", rb_str_squeeze, -1); rb_define_method(rb_cString, "count", rb_str_count, -1); rb_define_method(rb_cString, "tr!", rb_str_tr_bang, 2); rb_define_method(rb_cString, "tr_s!", rb_str_tr_s_bang, 2); rb_define_method(rb_cString, "delete!", rb_str_delete_bang, -1); rb_define_method(rb_cString, "squeeze!", rb_str_squeeze_bang, -1); rb_define_method(rb_cString, "each_line", rb_str_each_line, -1); rb_define_method(rb_cString, "each", rb_str_each_line, -1); rb_define_method(rb_cString, "each_byte", rb_str_each_byte, 0); rb_define_method(rb_cString, "sum", rb_str_sum, -1); rb_define_global_function("sub", rb_f_sub, -1); rb_define_global_function("gsub", rb_f_gsub, -1); rb_define_global_function("sub!", rb_f_sub_bang, -1); rb_define_global_function("gsub!", rb_f_gsub_bang, -1); rb_define_global_function("chop", rb_f_chop, 0); rb_define_global_function("chop!", rb_f_chop_bang, 0); rb_define_global_function("chomp", rb_f_chomp, -1); rb_define_global_function("chomp!", rb_f_chomp_bang, -1); rb_define_global_function("split", rb_f_split, -1); rb_define_global_function("scan", rb_f_scan, 1);*/ stringClass.defineMethod("slice", getMethod("m_slice", true)); /*rb_define_method(rb_cString, "slice!", rb_str_slice_bang, -1); id_to_s = rb_intern("to_s"); rb_fs = Qnil; rb_define_hooked_variable("$;", &rb_fs, 0, rb_str_setter); rb_define_hooked_variable("$-F", &rb_fs, 0, rb_str_setter);*/ return stringClass; }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/8e00ad1c7ae96f50ae0bd521483380788f891b7b/RbString.java/clean/org/jruby/core/RbString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
780,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
533,
797,
273,
22155,
18,
11255,
797,
2932,
780,
3113,
22155,
18,
588,
921,
797,
10663,
7734,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
54,
10340,
797,
2932,
799,
10207,
7923,
1769,
3639,
368,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
7782,
7675,
588,
3572,
25121,
10663,
7734,
533,
797,
18,
11255,
19571,
1305,
2932,
2704,
3113,
31662,
1305,
2932,
81,
67,
2704,
3113,
638,
10019,
3639,
533,
797,
18,
11255,
1305,
2932,
11160,
3113,
6272,
2932,
81,
67,
2079,
3113,
19817,
780,
18,
1106,
10019,
20308,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
16,
315,
14056,
3113,
7138,
67,
701,
67,
14056,
16,
374,
1769,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
16,
315,
26427,
3113,
7138,
67,
701,
67,
26427,
16,
374,
1769,
5549,
7734,
533,
797,
18,
11255,
1305,
2932,
32,
33,
2984,
16,
6272,
2932,
556,
67,
9625,
3113,
19817,
921,
18,
1106,
10019,
3639,
533,
797,
18,
11255,
1305,
2932,
631,
3113,
6272,
2932,
81,
67,
9729,
3113,
19817,
921,
18,
1106,
10019,
3639,
533,
797,
18,
11255,
1305,
2932,
631,
1546,
16,
6272,
2932,
81,
67,
9729,
3113,
19817,
921,
18,
1106,
10019,
3639,
533,
797,
18,
11255,
1305,
2932,
73,
1217,
35,
3113,
6272,
2932,
81,
67,
9729,
3113,
19817,
921,
18,
1106,
10019,
5411,
1748,
6731,
67,
11255,
67,
2039,
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,
19817,
797,
752,
780,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
533,
797,
273,
22155,
18,
11255,
797,
2932,
780,
3113,
22155,
18,
588,
921,
797,
10663,
7734,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
54,
10340,
797,
2932,
799,
10207,
7923,
1769,
3639,
368,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
7782,
7675,
588,
3572,
25121,
10663,
7734,
533,
797,
18,
11255,
19571,
1305,
2932,
2704,
3113,
31662,
1305,
2932,
81,
67,
2704,
3113,
638,
10019,
3639,
533,
797,
18,
11255,
1305,
2932,
11160,
3113,
6272,
2932,
81,
67,
2079,
3113,
19817,
780,
18,
1106,
10019,
20308,
565,
7138,
67,
11255,
67,
2039,
12,
6731,
67,
71,
780,
2
] |
org.eclipse.draw2d.geometry.Point pageSize = PageInfoHelper.getPageSize(fPreferences, false);
|
org.eclipse.draw2d.geometry.Point pageSize = PageInfoHelper.getPageSize(fPreferences, false, getMapMode());
|
protected void printToScale(DiagramEditPart dgrmEP, boolean loadedPreferences, IPreferenceStore fPreferences) { assert null != printer : "printer must be set"; //$NON-NLS-1$ Rectangle figureBounds = PrintHelper.getPageBreakBounds(dgrmEP, loadedPreferences); //translate to offset initial figure position translated = new Point(-figureBounds.x, -figureBounds.y); this.graphics.translate(translated.x, translated.y); this.graphics.scale(userScale); //calculate the number of page rows and columns org.eclipse.draw2d.geometry.Point pageSize = PageInfoHelper.getPageSize(fPreferences, false); float fNumRows = (figureBounds.height * userScale) / pageSize.y; int numRows = (int) Math.ceil(fNumRows); float fNumCols = (figureBounds.width * userScale) / pageSize.x; int numCols = (int) Math.ceil(fNumCols); PageMargins margins = PageInfoHelper.getPageMargins(fPreferences); adjustMargins(margins, userScale, getPrinterOffset()); GC gc_ = new GC(Display.getDefault()); FontData fontData = JFaceResources.getDefaultFont().getFontData()[0]; Font font = new Font(printer, fontData); try { //print the pages in row, column order for (int row = 1; row <= numRows; row++) { for (int col = 1; col <= numCols; col++) { printer.startPage(); drawPage(gc_, dgrmEP, fPreferences, figureBounds, margins, font, row, col); printer.endPage(); } } } finally { //must dispose resources font.dispose(); gc_.dispose(); } }
|
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/adc1102179d667e4a670bfc5711892726a23a343/DiagramPrinter.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.printing/src/org/eclipse/gmf/runtime/diagram/ui/printing/internal/util/DiagramPrinter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1172,
774,
5587,
12,
14058,
1940,
4666,
1988,
302,
3197,
81,
10541,
16,
1250,
4203,
12377,
16,
467,
9624,
2257,
284,
12377,
13,
288,
202,
202,
11231,
446,
480,
12539,
294,
315,
30439,
1297,
506,
444,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
19463,
7837,
5694,
273,
3038,
2276,
18,
588,
1964,
7634,
5694,
12,
72,
3197,
81,
10541,
16,
4203,
12377,
1769,
202,
202,
759,
13929,
358,
1384,
2172,
7837,
1754,
202,
202,
22899,
273,
394,
4686,
19236,
19675,
5694,
18,
92,
16,
300,
19675,
5694,
18,
93,
1769,
202,
202,
2211,
18,
31586,
18,
13929,
12,
22899,
18,
92,
16,
9955,
18,
93,
1769,
202,
202,
2211,
18,
31586,
18,
5864,
12,
1355,
5587,
1769,
202,
202,
759,
11162,
326,
1300,
434,
1363,
2595,
471,
2168,
9506,
202,
3341,
18,
20416,
18,
9446,
22,
72,
18,
14330,
18,
2148,
13387,
273,
3460,
966,
2276,
18,
588,
24035,
12,
74,
12377,
16,
629,
1769,
9506,
202,
5659,
284,
2578,
4300,
273,
261,
19675,
5694,
18,
4210,
380,
729,
5587,
13,
1082,
202,
19,
13387,
18,
93,
31,
202,
202,
474,
12934,
273,
261,
474,
13,
2361,
18,
311,
330,
12,
74,
2578,
4300,
1769,
202,
202,
5659,
284,
2578,
8011,
273,
261,
19675,
5694,
18,
2819,
380,
729,
5587,
13,
1082,
202,
19,
13387,
18,
92,
31,
202,
202,
474,
15243,
273,
261,
474,
13,
2361,
18,
311,
330,
12,
74,
2578,
8011,
1769,
9506,
202,
1964,
28528,
24889,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1172,
774,
5587,
12,
14058,
1940,
4666,
1988,
302,
3197,
81,
10541,
16,
1250,
4203,
12377,
16,
467,
9624,
2257,
284,
12377,
13,
288,
202,
202,
11231,
446,
480,
12539,
294,
315,
30439,
1297,
506,
444,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
19463,
7837,
5694,
273,
3038,
2276,
18,
588,
1964,
7634,
5694,
12,
72,
3197,
81,
10541,
16,
4203,
12377,
1769,
202,
202,
759,
13929,
358,
1384,
2172,
7837,
1754,
202,
202,
22899,
273,
394,
4686,
19236,
19675,
5694,
18,
92,
16,
300,
19675,
5694,
18,
93,
1769,
202,
202,
2211,
18,
31586,
18,
13929,
12,
22899,
18,
92,
16,
9955,
18,
93,
1769,
202,
202,
2211,
18,
31586,
18,
2
] |
AST tmp1640_AST_in = (AST)_t;
|
AST tmp1641_AST_in = (AST)_t;
|
public final void createviewstate(AST _t) throws RecognitionException { AST createviewstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1250 = _t; AST tmp1638_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); AST tmp1639_AST_in = (AST)_t; match(_t,VIEW); _t = _t.getNextSibling(); AST tmp1640_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_list: { AST __t1252 = _t; AST tmp1641_AST_in = (AST)_t; match(_t,Field_list); _t = _t.getFirstChild(); AST tmp1642_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); fld(_t,CQ.SYMBOL); _t = _retTree; { _loop1254: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1643_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); fld(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop1254; } } while (true); } AST tmp1644_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1252; _t = _t.getNextSibling(); break; } case AS: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1645_AST_in = (AST)_t; match(_t,AS); _t = _t.getNextSibling(); selectstatea(_t); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1250; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
752,
1945,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
752,
1945,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
2138,
3361,
273,
389,
88,
31,
202,
202,
9053,
1853,
2313,
7414,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
9344,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2313,
5520,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
12145,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
9053,
1853,
23147,
20,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
734,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
2286,
67,
1098,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
2138,
9401,
273,
389,
88,
31,
1082,
202,
9053,
1853,
23147,
21,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
974,
67,
1098,
1769,
1082,
202,
67,
88,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
752,
1945,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
752,
1945,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
2138,
3361,
273,
389,
88,
31,
202,
202,
9053,
1853,
2313,
7414,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
9344,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
2313,
5520,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
12145,
1769,
202,
202,
67,
2
] |
"single_invalid_username_dir", new Object[] { invalidUsernames.get(0) });
|
"single_invalid_username_dir", new Object[] { });
|
public boolean usernamesValid(CSV studentGrades) { boolean usersAreValid = true; List blankRows = new ArrayList(); List invalidUsernames = new ArrayList(); int row=1; List studentList = studentGrades.getStudents(); Iterator studentIter = studentList.iterator(); while (studentIter.hasNext()) { row++; List s1 = (List) studentIter.next(); String usr = ((String) s1.get(0)).trim(); if(usr.equals("") || usr == null) { usersAreValid = false; blankRows.add(new Integer(row)); } else if(!isSiteMember(getUserId(usr))) { usersAreValid = false; invalidUsernames.add(usr); } } if (blankRows.size() == 1) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_single_username", new Object[] { }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_location", new Object[] { blankRows.get(0) }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_username_dir", new Object[] { }); } else if (blankRows.size() > 1) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_mult_usernames", new Object[] { }); for(int i=0; i < blankRows.size(); i++) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_location", new Object[] { blankRows.get(i) }); } PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_username_dir", new Object[] { }); } if (invalidUsernames.size() == 1) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "blank", new Object[] { }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "single_invalid_username", new Object[] { }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "invalid_username", new Object[] { invalidUsernames.get(0) }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "single_invalid_username_dir", new Object[] { invalidUsernames.get(0) }); } else if (invalidUsernames.size() > 1) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "blank", new Object[] { }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "mult_invalid_usernames", new Object[] { }); for(int j=0; j < invalidUsernames.size(); j++) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "invalid_username", new Object[] { invalidUsernames.get(j) }); } PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "mult_invalid_usernames_dir", new Object[] { }); } return usersAreValid; }
|
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/895b626c4d7be4c9f1ba9d85ac10640abd71da99/PostemTool.java/clean/postem/postem-app/src/java/org/sakaiproject/tool/postem/PostemTool.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
27675,
1556,
12,
16570,
18110,
14571,
5489,
13,
288,
202,
202,
6494,
3677,
4704,
1556,
273,
638,
31,
202,
202,
682,
7052,
4300,
273,
394,
2407,
5621,
202,
202,
682,
2057,
1299,
1973,
273,
394,
2407,
5621,
202,
202,
474,
1027,
33,
21,
31,
9506,
202,
682,
18110,
682,
273,
18110,
14571,
5489,
18,
588,
19943,
4877,
5621,
202,
202,
3198,
18110,
2360,
273,
18110,
682,
18,
9838,
5621,
202,
202,
17523,
261,
26240,
2360,
18,
5332,
2134,
10756,
288,
1082,
202,
492,
9904,
31,
1082,
202,
682,
272,
21,
273,
261,
682,
13,
18110,
2360,
18,
4285,
5621,
1082,
202,
780,
16575,
273,
14015,
780,
13,
272,
21,
18,
588,
12,
20,
13,
2934,
5290,
5621,
25083,
202,
430,
12,
13640,
18,
14963,
2932,
7923,
747,
16575,
422,
446,
13,
288,
9506,
202,
5577,
4704,
1556,
273,
629,
31,
9506,
202,
12111,
4300,
18,
1289,
12,
2704,
2144,
12,
492,
10019,
1082,
202,
97,
469,
309,
12,
5,
291,
4956,
4419,
12,
588,
10502,
12,
13640,
20349,
288,
6862,
225,
3677,
4704,
1556,
273,
629,
31,
6862,
225,
2057,
1299,
1973,
18,
1289,
12,
13640,
1769,
1082,
202,
97,
1082,
202,
97,
9506,
202,
430,
261,
12111,
4300,
18,
1467,
1435,
422,
404,
13,
288,
1082,
202,
3349,
351,
6364,
18,
19936,
1079,
12,
17268,
1079,
18,
1090,
2204,
4107,
67,
3589,
16,
6862,
202,
6,
7337,
67,
7526,
67,
5053,
3113,
394,
1033,
8526,
288,
15549,
1082,
202,
3349,
351,
6364,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
27675,
1556,
12,
16570,
18110,
14571,
5489,
13,
288,
202,
202,
6494,
3677,
4704,
1556,
273,
638,
31,
202,
202,
682,
7052,
4300,
273,
394,
2407,
5621,
202,
202,
682,
2057,
1299,
1973,
273,
394,
2407,
5621,
202,
202,
474,
1027,
33,
21,
31,
9506,
202,
682,
18110,
682,
273,
18110,
14571,
5489,
18,
588,
19943,
4877,
5621,
202,
202,
3198,
18110,
2360,
273,
18110,
682,
18,
9838,
5621,
202,
202,
17523,
261,
26240,
2360,
18,
5332,
2134,
10756,
288,
1082,
202,
492,
9904,
31,
1082,
202,
682,
272,
21,
273,
261,
682,
13,
18110,
2360,
18,
4285,
5621,
1082,
202,
780,
16575,
273,
14015,
780,
13,
272,
21,
18,
588,
12,
20,
13,
2934,
2
] |
copyNonNullPermissions( newDetails, source.getPermissions() ); applyUmaskIfNecessary( newDetails ); if (source.getOwner() != null && ! source.getOwner().getId().equals( newDetails.getOwner().getId() )) { if ( currentUserIsAdmin() ) { newDetails.setOwner( source.getOwner() ); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner().getId() )); } }
|
if (hasPrivilegedToken(obj)) return obj.getDetails();
|
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) { copyNonNullPermissions( newDetails, source.getPermissions() ); applyUmaskIfNecessary( newDetails ); // users *aren't* allowed to set the owner of an item. if (source.getOwner() != null && ! source.getOwner().getId().equals( newDetails.getOwner().getId() )) { // but this is root if ( currentUserIsAdmin() ) { newDetails.setOwner( source.getOwner() ); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner().getId() )); } } // users are only allowed to set to another of their groups if (source.getGroup() != null && source.getGroup().getId() != null) { // users can change to their own group if (memberOfGroups().contains( source.getGroup().getId())) { newDetails.setGroup( source.getGroup() ); } // and admin can change it too else if ( currentUserIsAdmin() ) { newDetails.setGroup( source.getGroup() ); } // oops. boom! else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterGroupID"+ " for %s to %d", obj, source.getGroup().getId() )); } } } return newDetails; }
|
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/9c53370b3f7a88f29e38673527398c205d19f7d6/BasicSecuritySystem.java/clean/components/server/src/ome/security/BasicSecuritySystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21897,
12315,
3790,
12,
467,
921,
1081,
262,
565,
288,
377,
202,
377,
202,
1893,
8367,
2932,
22670,
3790,
8863,
377,
202,
377,
202,
430,
261,
711,
18845,
1345,
12,
1081,
262,
262,
327,
1081,
18,
588,
3790,
5621,
368,
512,
985,
7076,
28407,
377,
202,
3639,
21897,
1084,
273,
1081,
18,
588,
3790,
5621,
3639,
21897,
394,
3790,
273,
6562,
3790,
18,
2640,
3790,
5621,
3639,
309,
261,
1084,
480,
446,
262,
3639,
288,
540,
202,
3530,
8921,
6521,
12,
394,
3790,
16,
1084,
18,
588,
6521,
1435,
11272,
540,
202,
9010,
57,
4455,
26034,
12,
394,
3790,
11272,
4766,
565,
368,
3677,
380,
7892,
1404,
14,
2935,
358,
444,
326,
3410,
434,
392,
761,
18,
5411,
309,
261,
3168,
18,
588,
5541,
1435,
480,
446,
5397,
597,
401,
1084,
18,
588,
5541,
7675,
26321,
7675,
14963,
12,
11794,
394,
3790,
18,
588,
5541,
7675,
26321,
1435,
8623,
5411,
288,
7734,
368,
1496,
333,
353,
1365,
7734,
309,
261,
13970,
2520,
4446,
1435,
262,
7734,
288,
10792,
394,
3790,
18,
542,
5541,
12,
1084,
18,
588,
5541,
1435,
11272,
7734,
289,
469,
288,
10792,
604,
394,
6036,
11683,
12,
780,
18,
2139,
12,
13491,
315,
6225,
854,
486,
10799,
358,
444,
326,
1312,
457,
381,
2328,
734,
6,
397,
13491,
315,
364,
738,
87,
358,
738,
72,
3113,
1081,
16,
1084,
18,
588,
5541,
7675,
26321,
1435,
7682,
262,
1769,
7734,
289,
18701,
289,
5411,
368,
3677,
854,
1338,
2935,
358,
444,
358,
4042,
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,
21897,
12315,
3790,
12,
467,
921,
1081,
262,
565,
288,
377,
202,
377,
202,
1893,
8367,
2932,
22670,
3790,
8863,
377,
202,
377,
202,
430,
261,
711,
18845,
1345,
12,
1081,
262,
262,
327,
1081,
18,
588,
3790,
5621,
368,
512,
985,
7076,
28407,
377,
202,
3639,
21897,
1084,
273,
1081,
18,
588,
3790,
5621,
3639,
21897,
394,
3790,
273,
6562,
3790,
18,
2640,
3790,
5621,
3639,
309,
261,
1084,
480,
446,
262,
3639,
288,
540,
202,
3530,
8921,
6521,
12,
394,
3790,
16,
1084,
18,
588,
6521,
1435,
11272,
540,
202,
9010,
57,
4455,
26034,
12,
394,
3790,
11272,
4766,
565,
368,
3677,
380,
7892,
1404,
14,
2935,
358,
444,
326,
3410,
434,
392,
761,
18,
2
] |
addEndpointIdentfierRules(digester, path);
|
addEndpointIdentifierRules(digester, path);
|
public MuleXmlConfigurationBuilder() throws ConfigurationException { ConvertUtils.register(new EndpointConverter(), UMOEndpoint.class); ConvertUtils.register(new TransformerConverter(), UMOTransformer.class); ConvertUtils.register(new ConnectorConverter(), UMOConnector.class); ConvertUtils.register(new TransactionFactoryConverter(), UMOTransactionFactory.class); ConvertUtils.register(new EndpointURIConverter(), UMOEndpointURI.class); //This is a hack to stop Digester spitting out unnecessary warnings where there is // a customer error handler registered digester = new Digester() { public void warning(SAXParseException e) throws SAXException { if(errorHandler!=null) { errorHandler.warning(e); } } }; digester.setEntityResolver(new MuleDtdResolver()); String temp = System.getProperty("org.mule.xml.validate", "true"); digester.setValidating((temp.equalsIgnoreCase("true"))); digester.setErrorHandler(new ErrorHandler() { public void error(SAXParseException exception) throws SAXException { logger.error(exception.getMessage(), exception); throw new SAXException(exception); } public void fatalError(SAXParseException exception) throws SAXException { logger.fatal(exception.getMessage(), exception); throw new SAXException(exception); } public void warning(SAXParseException exception) throws SAXException { logger.warn(exception.getMessage()); } }); String path = "mule-configuration"; addMuleConfigurationRules(digester, path); addContainerContextRules(digester, path); addTransformerRules(digester, path); addMuleEnvironmentPropertiesRules(digester, path); addSecurityManagerRules(digester, path); addTransactionManagerRules(digester, path); addGlobalEndpointRules(digester, path); addEndpointIdentfierRules(digester, path); addInterceptorStackRules(digester, path); addConnectorRules(digester, path); addAgentRules(digester, path); addModelRules(digester, path); //Threse rules allow for individual component configurations addMuleDescriptorRules(digester, path); }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/1c15d7a249a9c5b97cdd22a3dae46924e57eb999/MuleXmlConfigurationBuilder.java/buggy/src/java/org/mule/config/builders/MuleXmlConfigurationBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
490,
725,
4432,
1750,
1263,
1435,
1216,
22196,
288,
3639,
4037,
1989,
18,
4861,
12,
2704,
6961,
5072,
9334,
587,
5980,
3293,
18,
1106,
1769,
3639,
4037,
1989,
18,
4861,
12,
2704,
11519,
5072,
9334,
587,
5980,
8319,
18,
1106,
1769,
3639,
4037,
1989,
18,
4861,
12,
2704,
15779,
5072,
9334,
587,
5980,
7487,
18,
1106,
1769,
3639,
4037,
1989,
18,
4861,
12,
2704,
5947,
1733,
5072,
9334,
587,
5980,
3342,
1733,
18,
1106,
1769,
3639,
4037,
1989,
18,
4861,
12,
2704,
6961,
3098,
5072,
9334,
587,
5980,
3293,
3098,
18,
1106,
1769,
3639,
368,
2503,
353,
279,
11769,
358,
2132,
11678,
7654,
1694,
305,
1787,
596,
19908,
5599,
1625,
1915,
353,
3639,
368,
279,
6666,
555,
1838,
4104,
3639,
23821,
273,
394,
11678,
7654,
1435,
288,
5411,
1071,
918,
3436,
12,
55,
2501,
13047,
425,
13,
1216,
14366,
288,
7734,
309,
12,
1636,
1503,
5,
33,
2011,
13,
288,
10792,
17227,
18,
8551,
12,
73,
1769,
7734,
289,
5411,
289,
3639,
289,
31,
3639,
23821,
18,
542,
1943,
4301,
12,
2704,
490,
725,
40,
4465,
4301,
10663,
3639,
514,
1906,
273,
2332,
18,
588,
1396,
2932,
3341,
18,
81,
725,
18,
2902,
18,
5662,
3113,
315,
3767,
8863,
3639,
23821,
18,
542,
31496,
12443,
5814,
18,
14963,
5556,
2932,
3767,
6,
3719,
1769,
3639,
23821,
18,
542,
17729,
12,
2704,
26406,
1435,
288,
5411,
1071,
918,
555,
12,
55,
2501,
13047,
1520,
13,
1216,
14366,
5411,
288,
7734,
1194,
18,
1636,
12,
4064,
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,
490,
725,
4432,
1750,
1263,
1435,
1216,
22196,
288,
3639,
4037,
1989,
18,
4861,
12,
2704,
6961,
5072,
9334,
587,
5980,
3293,
18,
1106,
1769,
3639,
4037,
1989,
18,
4861,
12,
2704,
11519,
5072,
9334,
587,
5980,
8319,
18,
1106,
1769,
3639,
4037,
1989,
18,
4861,
12,
2704,
15779,
5072,
9334,
587,
5980,
7487,
18,
1106,
1769,
3639,
4037,
1989,
18,
4861,
12,
2704,
5947,
1733,
5072,
9334,
587,
5980,
3342,
1733,
18,
1106,
1769,
3639,
4037,
1989,
18,
4861,
12,
2704,
6961,
3098,
5072,
9334,
587,
5980,
3293,
3098,
18,
1106,
1769,
3639,
368,
2503,
353,
279,
11769,
358,
2132,
11678,
7654,
1694,
305,
1787,
596,
19908,
5599,
1625,
1915,
353,
3639,
368,
279,
6666,
555,
2
] |
public boolean isSet(org.quickfix.field.EventType field)
|
public boolean isSet(quickfix.field.EventType field)
|
public boolean isSet(org.quickfix.field.EventType field) { return isSetField(field); }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinitionRequest.java/clean/src/java/src/quickfix/fix44/SecurityDefinitionRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
16346,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
16346,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super(position);
|
super(position, NodeTypes.SVALUENODE);
|
public SValueNode(ISourcePosition position, Node node) { super(position); this.node = node; }
|
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/6e15491217631472c05c6928672f9c7064a978b3/SValueNode.java/buggy/src/org/jruby/ast/SValueNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
348,
620,
907,
12,
45,
1830,
2555,
1754,
16,
2029,
756,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
55,
2669,
57,
1157,
2712,
1769,
3639,
333,
18,
2159,
273,
756,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
348,
620,
907,
12,
45,
1830,
2555,
1754,
16,
2029,
756,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
55,
2669,
57,
1157,
2712,
1769,
3639,
333,
18,
2159,
273,
756,
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
] |
} catch(IOException ignored) {}
|
} catch(IOException ignored) { ioproblem = true; }
|
public synchronized void addEntry(File incompleteFile, VerifyingFile vf) { // We must canonicalize the file. try { incompleteFile = FileUtils.getCanonicalFile(incompleteFile); } catch(IOException ignored) {} blocks.put(incompleteFile,vf); registerIncompleteFile(incompleteFile); }
|
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/a3f4bb9ba3fdfcb73638beafc32cbbd4f8d089fa/IncompleteFileManager.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/downloader/IncompleteFileManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
527,
1622,
12,
812,
14715,
812,
16,
8553,
310,
812,
28902,
13,
288,
3639,
368,
1660,
1297,
25839,
326,
585,
18,
3639,
775,
288,
5411,
14715,
812,
273,
13779,
18,
588,
15512,
812,
12,
17624,
812,
1769,
3639,
289,
1044,
12,
14106,
5455,
13,
288,
277,
556,
303,
70,
3269,
273,
638,
31,
289,
3639,
4398,
18,
458,
12,
17624,
812,
16,
90,
74,
1769,
7734,
1744,
27531,
812,
12,
17624,
812,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
527,
1622,
12,
812,
14715,
812,
16,
8553,
310,
812,
28902,
13,
288,
3639,
368,
1660,
1297,
25839,
326,
585,
18,
3639,
775,
288,
5411,
14715,
812,
273,
13779,
18,
588,
15512,
812,
12,
17624,
812,
1769,
3639,
289,
1044,
12,
14106,
5455,
13,
288,
277,
556,
303,
70,
3269,
273,
638,
31,
289,
3639,
4398,
18,
458,
12,
17624,
812,
16,
90,
74,
1769,
7734,
1744,
27531,
812,
12,
17624,
812,
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
] |
|| (AuthzGroupService.isAllowed(SessionManager.getCurrentSessionUserId(), SECURE_ALL_GROUPS, SiteService.siteReference(context))))
|
|| AuthzGroupService.isAllowed(SessionManager.getCurrentSessionUserId(), SECURE_ALL_GROUPS, SiteService.siteReference(context)) && unlockCheck(function, SiteService.siteReference(context)))
|
protected Collection getGroupsAllowFunction(String function, String context) { Collection rv = new Vector(); try { // get the site groups Site site = SiteService.getSite(context); Collection groups = site.getGroups(); // if the user has SECURE_ALL_GROUPS in the context (site), or a super user, select all site groups if (SecurityService.isSuperUser() || (AuthzGroupService.isAllowed(SessionManager.getCurrentSessionUserId(), SECURE_ALL_GROUPS, SiteService.siteReference(context)))) { return groups; } // otherwise, check the groups for function // get a list of the group refs, which are authzGroup ids Collection groupRefs = new Vector(); for (Iterator i = groups.iterator(); i.hasNext();) { Group group = (Group) i.next(); groupRefs.add(group.getReference()); } // ask the authzGroup service to filter them down based on function groupRefs = AuthzGroupService.getAuthzGroupsIsAllowed(SessionManager.getCurrentSessionUserId(), function, groupRefs); // pick the Group objects from the site's groups to return, those that are in the groupRefs list for (Iterator i = groups.iterator(); i.hasNext();) { Group group = (Group) i.next(); if (groupRefs.contains(group.getReference())) { rv.add(group); } } } catch (IdUnusedException e) { } return rv; }
|
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/4f7565a9731b1acafc9e2370e1b4b6bfa6e41c64/BaseAssignmentService.java/buggy/assignment/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2200,
22708,
7009,
2083,
12,
780,
445,
16,
514,
819,
13,
202,
95,
202,
202,
2532,
5633,
273,
394,
5589,
5621,
9506,
202,
698,
202,
202,
95,
1082,
202,
759,
336,
326,
2834,
3252,
1082,
202,
4956,
2834,
273,
9063,
1179,
18,
588,
4956,
12,
2472,
1769,
1082,
202,
2532,
3252,
273,
2834,
18,
588,
3621,
5621,
1082,
202,
759,
309,
326,
729,
711,
31418,
4830,
67,
4685,
67,
28977,
316,
326,
819,
261,
4256,
3631,
578,
225,
279,
2240,
729,
16,
2027,
777,
2834,
3252,
1082,
202,
430,
261,
4368,
1179,
18,
291,
8051,
1299,
1435,
9506,
202,
20081,
261,
1730,
94,
1114,
1179,
18,
291,
5042,
12,
2157,
1318,
18,
588,
3935,
2157,
10502,
9334,
31418,
4830,
67,
4685,
67,
28977,
16,
9063,
1179,
18,
4256,
2404,
12,
2472,
3719,
3719,
1082,
202,
95,
9506,
202,
2463,
3252,
31,
1082,
202,
97,
1082,
202,
759,
3541,
16,
866,
326,
3252,
364,
445,
1082,
202,
759,
336,
279,
666,
434,
326,
1041,
9047,
16,
1492,
854,
18686,
1114,
3258,
1082,
202,
2532,
1041,
9837,
273,
394,
5589,
5621,
1082,
202,
1884,
261,
3198,
277,
273,
3252,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
13,
1082,
202,
95,
9506,
202,
1114,
1041,
273,
261,
1114,
13,
277,
18,
4285,
5621,
9506,
202,
1655,
9837,
18,
1289,
12,
1655,
18,
588,
2404,
10663,
1082,
202,
97,
1082,
202,
759,
6827,
326,
18686,
1114,
1156,
358,
1034,
2182,
2588,
2511,
603,
445,
1082,
202,
1655,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2200,
22708,
7009,
2083,
12,
780,
445,
16,
514,
819,
13,
202,
95,
202,
202,
2532,
5633,
273,
394,
5589,
5621,
9506,
202,
698,
202,
202,
95,
1082,
202,
759,
336,
326,
2834,
3252,
1082,
202,
4956,
2834,
273,
9063,
1179,
18,
588,
4956,
12,
2472,
1769,
1082,
202,
2532,
3252,
273,
2834,
18,
588,
3621,
5621,
1082,
202,
759,
309,
326,
729,
711,
31418,
4830,
67,
4685,
67,
28977,
316,
326,
819,
261,
4256,
3631,
578,
225,
279,
2240,
729,
16,
2027,
777,
2834,
3252,
1082,
202,
430,
261,
4368,
1179,
18,
291,
8051,
1299,
1435,
9506,
202,
20081,
261,
1730,
94,
1114,
1179,
18,
291,
5042,
12,
2157,
1318,
18,
588,
3935,
2157,
10502,
2
] |
public org.quickfix.field.LocaleOfIssue getLocaleOfIssue() throws FieldNotFound { org.quickfix.field.LocaleOfIssue value = new org.quickfix.field.LocaleOfIssue();
|
public quickfix.field.LocaleOfIssue getLocaleOfIssue() throws FieldNotFound { quickfix.field.LocaleOfIssue value = new quickfix.field.LocaleOfIssue();
|
public org.quickfix.field.LocaleOfIssue getLocaleOfIssue() throws FieldNotFound { org.quickfix.field.LocaleOfIssue value = new org.quickfix.field.LocaleOfIssue(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassStatusRequest.java/clean/src/java/src/quickfix/fix43/OrderMassStatusRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
3916,
951,
12956,
9595,
951,
12956,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
3916,
951,
12956,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
3916,
951,
12956,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
3916,
951,
12956,
9595,
951,
12956,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
3916,
951,
12956,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
3916,
951,
12956,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static String removeExtension( final String filename ) { final int index = filename.lastIndexOf( '.' );
|
public static String removeExtension(final String filename) { final int index = filename.lastIndexOf('.');
|
public static String removeExtension( final String filename ) { final int index = filename.lastIndexOf( '.' ); if( -1 == index ) { return filename; } else { return filename.substring( 0, index ); } }
|
49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/6a1bb4d53562a50bbaad48ee2c94971649e24cf5/FileUtils.java/clean/src/java/org/apache/commons/io/FileUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1206,
3625,
12,
727,
514,
1544,
262,
565,
288,
3639,
727,
509,
770,
273,
1544,
18,
2722,
31985,
12,
2611,
11272,
3639,
309,
12,
300,
21,
422,
770,
262,
3639,
288,
5411,
327,
1544,
31,
3639,
289,
3639,
469,
3639,
288,
5411,
327,
1544,
18,
28023,
12,
374,
16,
770,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1206,
3625,
12,
727,
514,
1544,
262,
565,
288,
3639,
727,
509,
770,
273,
1544,
18,
2722,
31985,
12,
2611,
11272,
3639,
309,
12,
300,
21,
422,
770,
262,
3639,
288,
5411,
327,
1544,
31,
3639,
289,
3639,
469,
3639,
288,
5411,
327,
1544,
18,
28023,
12,
374,
16,
770,
11272,
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
] |
if (null == MVVM_CONTEXT) { synchronized (MvvmContextFactory.class) { if (null == MVVM_CONTEXT) { MVVM_CONTEXT = MvvmContextImpl.context(); } } }
|
public static MvvmLocalContext context() { if (null == MVVM_CONTEXT) { synchronized (MvvmContextFactory.class) { if (null == MVVM_CONTEXT) { MVVM_CONTEXT = MvvmContextImpl.context(); } } } return MVVM_CONTEXT; }
|
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/0583f43289ab7a7371bd12d51cc0d7c42bdbcdae/MvvmContextFactory.java/buggy/mvvm/main/com/metavize/mvvm/MvvmContextFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
490,
90,
3489,
2042,
1042,
819,
1435,
565,
288,
3639,
309,
261,
2011,
422,
25324,
7397,
67,
13181,
13,
288,
5411,
3852,
261,
49,
90,
3489,
29871,
18,
1106,
13,
288,
7734,
309,
261,
2011,
422,
25324,
7397,
67,
13181,
13,
288,
10792,
25324,
7397,
67,
13181,
273,
490,
90,
3489,
1042,
2828,
18,
2472,
5621,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
25324,
7397,
67,
13181,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
490,
90,
3489,
2042,
1042,
819,
1435,
565,
288,
3639,
309,
261,
2011,
422,
25324,
7397,
67,
13181,
13,
288,
5411,
3852,
261,
49,
90,
3489,
29871,
18,
1106,
13,
288,
7734,
309,
261,
2011,
422,
25324,
7397,
67,
13181,
13,
288,
10792,
25324,
7397,
67,
13181,
273,
490,
90,
3489,
1042,
2828,
18,
2472,
5621,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
25324,
7397,
67,
13181,
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
] |
|
for (int i=0; i<getAssociatesLength0(); i++) if (areAssociated(which,i))
|
for (int i=0; i<taxaB.getNumTaxa(); i++) if (areAssociated(which,i))
|
public int getNumAssociates(Taxon taxon){ if (!includedTaxon(taxon)) return 0; int which = taxaA.whichTaxonNumber(taxon); if (which==-1) { //taxon belongs to B; need to look down matrix which = taxaB.whichTaxonNumber(taxon); if (which==-1) return 0; int num = 0; for (int i=0; i<getAssociatesLength(); i++) //counting how many associates if (areAssociated(i, which)) num++; return num; } else { //taxon belongs to A; need to look across matrix int num = 0; for (int i=0; i<getAssociatesLength0(); i++) //counting how many associates if (areAssociated(which,i)) num++; return num; } }
|
55939 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55939/b8fce5dbd78e4aa283e90e7c67e2862d5f93ea7d/TaxaAssociation.java/buggy/Source/mesquite/assoc/lib/TaxaAssociation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11187,
28469,
12,
7731,
265,
25458,
15329,
202,
202,
430,
16051,
20405,
7731,
265,
12,
8066,
265,
3719,
1082,
202,
2463,
374,
31,
202,
202,
474,
1492,
273,
5320,
69,
37,
18,
12784,
7731,
265,
1854,
12,
8066,
265,
1769,
202,
202,
430,
261,
12784,
631,
17,
21,
13,
288,
368,
8066,
265,
11081,
358,
605,
31,
1608,
358,
2324,
2588,
3148,
1082,
202,
12784,
273,
5320,
69,
38,
18,
12784,
7731,
265,
1854,
12,
8066,
265,
1769,
1082,
202,
430,
261,
12784,
631,
17,
21,
13,
9506,
202,
2463,
374,
31,
1082,
202,
474,
818,
273,
374,
31,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
588,
28469,
1782,
5621,
277,
27245,
368,
1883,
310,
3661,
4906,
2576,
815,
9506,
202,
430,
261,
834,
19233,
12,
77,
16,
1492,
3719,
6862,
202,
2107,
9904,
31,
1082,
202,
2463,
818,
31,
202,
202,
97,
202,
202,
12107,
282,
288,
368,
8066,
265,
11081,
358,
432,
31,
1608,
358,
2324,
10279,
3148,
1082,
202,
474,
818,
273,
374,
31,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
588,
28469,
1782,
20,
5621,
277,
27245,
368,
1883,
310,
3661,
4906,
2576,
815,
9506,
202,
430,
261,
834,
19233,
12,
12784,
16,
77,
3719,
6862,
202,
2107,
9904,
31,
1082,
202,
2463,
818,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
11187,
28469,
12,
7731,
265,
25458,
15329,
202,
202,
430,
16051,
20405,
7731,
265,
12,
8066,
265,
3719,
1082,
202,
2463,
374,
31,
202,
202,
474,
1492,
273,
5320,
69,
37,
18,
12784,
7731,
265,
1854,
12,
8066,
265,
1769,
202,
202,
430,
261,
12784,
631,
17,
21,
13,
288,
368,
8066,
265,
11081,
358,
605,
31,
1608,
358,
2324,
2588,
3148,
1082,
202,
12784,
273,
5320,
69,
38,
18,
12784,
7731,
265,
1854,
12,
8066,
265,
1769,
1082,
202,
430,
261,
12784,
631,
17,
21,
13,
9506,
202,
2463,
374,
31,
1082,
202,
474,
818,
273,
374,
31,
1082,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
588,
28469,
1782,
5621,
277,
2
] |
} else if (editorInput instanceof NewBugEditorInput) {
|
} else if (editorInput instanceof NewTaskEditorInput) {
|
public EditorPart createEditor(MylarTaskEditor parentEditor, IEditorInput editorInput) { AbstractRepositoryTaskEditor editor = null; if (editorInput instanceof RepositoryTaskEditorInput || editorInput instanceof TaskEditorInput) { editor = new BugzillaTaskEditor(parentEditor); } else if (editorInput instanceof NewBugEditorInput) { editor = new NewBugzillaTaskEditor(parentEditor); } return editor; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/18b9826f38b318f8daeb4ddbc60cd58a67591379/BugzillaTaskEditorFactory.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskEditorFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
18451,
1988,
752,
6946,
12,
12062,
7901,
2174,
6946,
982,
6946,
16,
467,
6946,
1210,
4858,
1210,
13,
288,
202,
202,
7469,
3305,
2174,
6946,
4858,
273,
446,
31,
202,
202,
430,
261,
9177,
1210,
1276,
6281,
2174,
6946,
1210,
747,
4858,
1210,
1276,
3837,
6946,
1210,
13,
288,
1082,
202,
9177,
273,
394,
16907,
15990,
2174,
6946,
12,
2938,
6946,
1769,
202,
202,
97,
469,
309,
261,
9177,
1210,
1276,
1166,
19865,
6946,
1210,
13,
288,
1082,
202,
9177,
273,
394,
1166,
19865,
15990,
2174,
6946,
12,
2938,
6946,
1769,
202,
202,
97,
3196,
202,
2463,
4858,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
18451,
1988,
752,
6946,
12,
12062,
7901,
2174,
6946,
982,
6946,
16,
467,
6946,
1210,
4858,
1210,
13,
288,
202,
202,
7469,
3305,
2174,
6946,
4858,
273,
446,
31,
202,
202,
430,
261,
9177,
1210,
1276,
6281,
2174,
6946,
1210,
747,
4858,
1210,
1276,
3837,
6946,
1210,
13,
288,
1082,
202,
9177,
273,
394,
16907,
15990,
2174,
6946,
12,
2938,
6946,
1769,
202,
202,
97,
469,
309,
261,
9177,
1210,
1276,
1166,
19865,
6946,
1210,
13,
288,
1082,
202,
9177,
273,
394,
1166,
19865,
15990,
2174,
6946,
12,
2938,
6946,
1769,
202,
202,
97,
3196,
202,
2463,
4858,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public final Class getCategory()
|
public Class getCategory()
|
public final Class getCategory() { return PDLOverrideSupported.class; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/PDLOverrideSupported.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/PDLOverrideSupported.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1659,
19110,
1435,
225,
288,
565,
327,
28704,
1502,
1197,
7223,
18,
1106,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1659,
19110,
1435,
225,
288,
565,
327,
28704,
1502,
1197,
7223,
18,
1106,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void load() {
|
protected synchronized void load() {
|
private void load() { // load XmlFile file = getConfigFile(); if(!file.exists()) return; try { Object o = file.unmarshal(this); if(o instanceof Map) { // legacy format convert((Map<String,Object>)o); save(); // convert to the new format } } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to load "+file, e); } }
|
27266 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27266/b46bf8b2b4dd56fb0fa41c4d98a0a8cadd4ae191/Descriptor.java/buggy/core/src/main/java/hudson/model/Descriptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1262,
1435,
288,
4202,
368,
1262,
3639,
5714,
812,
585,
273,
4367,
812,
5621,
3639,
309,
12,
5,
768,
18,
1808,
10756,
5411,
327,
31,
3639,
775,
288,
5411,
1033,
320,
273,
585,
18,
318,
3108,
12,
2211,
1769,
5411,
309,
12,
83,
1276,
1635,
13,
288,
7734,
368,
8866,
740,
7734,
1765,
12443,
863,
32,
780,
16,
921,
23429,
83,
1769,
7734,
1923,
5621,
377,
368,
1765,
358,
326,
394,
740,
5411,
289,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
4145,
18,
1330,
12,
2355,
18,
9511,
16,
315,
2925,
358,
1262,
13773,
768,
16,
425,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
1262,
1435,
288,
4202,
368,
1262,
3639,
5714,
812,
585,
273,
4367,
812,
5621,
3639,
309,
12,
5,
768,
18,
1808,
10756,
5411,
327,
31,
3639,
775,
288,
5411,
1033,
320,
273,
585,
18,
318,
3108,
12,
2211,
1769,
5411,
309,
12,
83,
1276,
1635,
13,
288,
7734,
368,
8866,
740,
7734,
1765,
12443,
863,
32,
780,
16,
921,
23429,
83,
1769,
7734,
1923,
5621,
377,
368,
1765,
358,
326,
394,
740,
5411,
289,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
4145,
18,
1330,
12,
2355,
18,
9511,
16,
315,
2925,
358,
1262,
13773,
768,
16,
425,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
yaccValue = new Token(""+c, getPosition(null, false));
|
yaccValue = new Token(""+c, getPositionMinusOne());
|
private int parseQuote(char c) { char term; char paren; if (!Character.isLetterOrDigit(c)) { term = c; c = 'Q'; } else { term = src.read(); if (Character.isLetterOrDigit(term) /* no mb || ismbchar(term)*/) { throw new SyntaxException(src.getPosition(), "unknown type of %string"); } } if (c == EOF || term == EOF) { throw new SyntaxException(src.getPosition(), "unterminated quoted string meets end of file"); } paren = term; if (term == '(') term = ')'; else if (term == '[') term = ']'; else if (term == '{') term = '}'; else if (term == '<') term = '>'; else paren = '\0'; switch (c) { case 'Q': lex_strterm = new StringTerm(str_dquote, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tSTRING_BEG; case 'q': lex_strterm = new StringTerm(str_squote, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tSTRING_BEG; case 'W': lex_strterm = new StringTerm(str_dquote | STR_FUNC_QWORDS, term, paren); do {c = src.read();} while (Character.isWhitespace(c)); src.unread(c); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tWORDS_BEG; case 'w': lex_strterm = new StringTerm(str_squote | STR_FUNC_QWORDS, term, paren); do {c = src.read();} while (Character.isWhitespace(c)); src.unread(c); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tQWORDS_BEG; case 'x': lex_strterm = new StringTerm(str_xquote, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tXSTRING_BEG; case 'r': lex_strterm = new StringTerm(str_regexp, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tREGEXP_BEG; case 's': lex_strterm = new StringTerm(str_ssym, term, paren); lex_state = LexState.EXPR_FNAME; yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tSYMBEG; default: throw new SyntaxException(src.getPosition(), "Unknown type of %string. Expected 'Q', 'q', 'w', 'x', 'r' or any non letter character, but found '" + c + "'."); } }
|
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/67a441c8ea70c9532cdedb2001a6741b63e793ae/RubyYaccLexer.java/clean/src/org/jruby/lexer/yacc/RubyYaccLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
10257,
12,
3001,
276,
13,
288,
3639,
1149,
2481,
31,
3639,
1149,
22146,
31,
7734,
309,
16051,
7069,
18,
291,
13938,
1162,
10907,
12,
71,
3719,
288,
5411,
2481,
273,
276,
31,
5411,
276,
273,
296,
53,
13506,
3639,
289,
469,
288,
5411,
2481,
273,
1705,
18,
896,
5621,
5411,
309,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
6408,
13,
1748,
1158,
4903,
747,
353,
1627,
3001,
12,
6408,
13,
5549,
13,
288,
7734,
604,
394,
11517,
503,
12,
4816,
18,
588,
2555,
9334,
315,
8172,
618,
434,
738,
1080,
8863,
5411,
289,
3639,
289,
3639,
309,
261,
71,
422,
6431,
747,
2481,
422,
6431,
13,
288,
5411,
604,
394,
11517,
503,
12,
4816,
18,
588,
2555,
9334,
315,
318,
29133,
9298,
533,
1791,
2413,
679,
434,
585,
8863,
3639,
289,
3639,
22146,
273,
2481,
31,
3639,
309,
261,
6408,
422,
7321,
13,
2481,
273,
5777,
31,
3639,
469,
309,
261,
6408,
422,
8375,
13,
2481,
273,
8641,
31,
3639,
469,
309,
261,
6408,
422,
2292,
6134,
2481,
273,
9571,
31,
3639,
469,
309,
261,
6408,
422,
2368,
6134,
2481,
273,
7481,
31,
3639,
469,
22146,
273,
2337,
20,
13506,
3639,
1620,
261,
71,
13,
288,
3639,
648,
296,
53,
4278,
5411,
5275,
67,
701,
6408,
273,
394,
514,
4065,
12,
701,
67,
72,
6889,
16,
2481,
16,
22146,
1769,
5411,
677,
8981,
620,
273,
394,
3155,
2932,
6,
15,
71,
16,
14441,
18434,
3335,
10663,
5411,
327,
13899,
18,
88,
5804,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
10257,
12,
3001,
276,
13,
288,
3639,
1149,
2481,
31,
3639,
1149,
22146,
31,
7734,
309,
16051,
7069,
18,
291,
13938,
1162,
10907,
12,
71,
3719,
288,
5411,
2481,
273,
276,
31,
5411,
276,
273,
296,
53,
13506,
3639,
289,
469,
288,
5411,
2481,
273,
1705,
18,
896,
5621,
5411,
309,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
6408,
13,
1748,
1158,
4903,
747,
353,
1627,
3001,
12,
6408,
13,
5549,
13,
288,
7734,
604,
394,
11517,
503,
12,
4816,
18,
588,
2555,
9334,
315,
8172,
618,
434,
738,
1080,
8863,
5411,
289,
3639,
289,
3639,
309,
261,
71,
422,
6431,
747,
2481,
422,
6431,
13,
288,
5411,
604,
394,
11517,
503,
12,
4816,
2
] |
}
|
private EMSA_PKCS1_V1_5(final IMessageDigest hash) { super(); this.hash = hash; hLen = hash.hashSize(); final String name = hash.name(); if (name.equals(Registry.MD2_HASH)) { prefix = MD2_PREFIX; } else if (name.equals(Registry.MD5_HASH)) { prefix = MD5_PREFIX; } else if (name.equals(Registry.SHA160_HASH)) { prefix = SHA160_PREFIX; } else if (name.equals(Registry.SHA256_HASH)) { prefix = SHA256_PREFIX; } else if (name.equals(Registry.SHA384_HASH)) { prefix = SHA384_PREFIX; } else if (name.equals(Registry.SHA512_HASH)) { prefix = SHA512_PREFIX; } else { throw new UnsupportedOperationException(); // should not happen } }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/EMSA_PKCS1_V1_5.java/clean/core/src/classpath/gnu/gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
512,
3537,
37,
67,
26044,
21,
67,
58,
21,
67,
25,
12,
6385,
467,
1079,
9568,
1651,
13,
225,
288,
565,
2240,
5621,
565,
333,
18,
2816,
273,
1651,
31,
565,
366,
2891,
273,
1651,
18,
2816,
1225,
5621,
565,
727,
514,
508,
273,
1651,
18,
529,
5621,
565,
309,
261,
529,
18,
14963,
12,
4243,
18,
6188,
22,
67,
15920,
3719,
1377,
288,
3639,
1633,
273,
10852,
22,
67,
6307,
31,
540,
469,
309,
261,
529,
18,
14963,
12,
4243,
18,
6188,
25,
67,
15920,
3719,
1377,
288,
3639,
1633,
273,
10852,
25,
67,
6307,
31,
540,
469,
309,
261,
529,
18,
14963,
12,
4243,
18,
8325,
16874,
67,
15920,
3719,
1377,
288,
3639,
1633,
273,
9777,
16874,
67,
6307,
31,
540,
469,
309,
261,
529,
18,
14963,
12,
4243,
18,
8325,
5034,
67,
15920,
3719,
1377,
288,
3639,
1633,
273,
9777,
5034,
67,
6307,
31,
540,
469,
309,
261,
529,
18,
14963,
12,
4243,
18,
8325,
17295,
67,
15920,
3719,
1377,
288,
3639,
1633,
273,
9777,
17295,
67,
6307,
31,
540,
469,
309,
261,
529,
18,
14963,
12,
4243,
18,
8325,
13757,
67,
15920,
3719,
1377,
288,
3639,
1633,
273,
9777,
13757,
67,
6307,
31,
540,
469,
1377,
288,
3639,
604,
394,
13172,
5621,
368,
1410,
486,
5865,
4202,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
512,
3537,
37,
67,
26044,
21,
67,
58,
21,
67,
25,
12,
6385,
467,
1079,
9568,
1651,
13,
225,
288,
565,
2240,
5621,
565,
333,
18,
2816,
273,
1651,
31,
565,
366,
2891,
273,
1651,
18,
2816,
1225,
5621,
565,
727,
514,
508,
273,
1651,
18,
529,
5621,
565,
309,
261,
529,
18,
14963,
12,
4243,
18,
6188,
22,
67,
15920,
3719,
1377,
288,
3639,
1633,
273,
10852,
22,
67,
6307,
31,
540,
469,
309,
261,
529,
18,
14963,
12,
4243,
18,
6188,
25,
67,
15920,
3719,
1377,
288,
3639,
1633,
273,
10852,
25,
67,
6307,
31,
540,
469,
309,
261,
529,
18,
14963,
12,
4243,
18,
8325,
16874,
67,
15920,
3719,
1377,
288,
3639,
1633,
273,
2
] |
|
Assert.isNotNull(elements); for (int i = 0, n = elements.length; i < n; ++i) { Assert.isNotNull(elements[i]); } }
|
Assert.isNotNull(elements); for (int i = 0, n = elements.length; i < n; ++i) { Assert.isNotNull(elements[i]); } }
|
protected void assertElementsNotNull(Object[] elements) { Assert.isNotNull(elements); for (int i = 0, n = elements.length; i < n; ++i) { Assert.isNotNull(elements[i]); } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/dc85f0b1334fe6aa79c5c32e8024d573af99e0d2/StructuredViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1815,
3471,
5962,
12,
921,
8526,
2186,
13,
288,
3639,
5452,
18,
291,
5962,
12,
6274,
1769,
3639,
364,
261,
474,
277,
273,
374,
16,
290,
273,
2186,
18,
2469,
31,
277,
411,
290,
31,
965,
77,
13,
288,
5411,
5452,
18,
291,
5962,
12,
6274,
63,
77,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
4750,
918,
1815,
3471,
5962,
12,
921,
8526,
2186,
13,
288,
3639,
5452,
18,
291,
5962,
12,
6274,
1769,
3639,
364,
261,
474,
277,
273,
374,
16,
290,
273,
2186,
18,
2469,
31,
277,
411,
290,
31,
965,
77,
13,
288,
5411,
5452,
18,
291,
5962,
12,
6274,
63,
77,
19226,
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
] |
dm.endDraggingFrame(frame);
|
dm.endDraggingFrame(frame);
|
public void mouseReleased(MouseEvent e) { DesktopManager dm = getDesktopManager(); xOffset = 0; yOffset = 0; if (e.getSource() == frame && frame.isResizable()) dm.endResizingFrame(frame); else if (e.getSource() == titlePane) dm.endDraggingFrame(frame); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
565,
288,
1377,
10597,
11869,
1318,
9113,
273,
2343,
281,
11869,
1318,
5621,
1377,
619,
2335,
273,
374,
31,
1377,
677,
2335,
273,
374,
31,
1377,
309,
261,
73,
18,
588,
1830,
1435,
422,
2623,
597,
2623,
18,
291,
607,
6934,
10756,
202,
10956,
18,
409,
607,
6894,
3219,
12,
3789,
1769,
1377,
469,
309,
261,
73,
18,
588,
1830,
1435,
422,
2077,
8485,
13,
202,
10956,
18,
409,
11728,
1998,
3219,
12,
3789,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
26363,
12,
9186,
1133,
425,
13,
565,
288,
1377,
10597,
11869,
1318,
9113,
273,
2343,
281,
11869,
1318,
5621,
1377,
619,
2335,
273,
374,
31,
1377,
677,
2335,
273,
374,
31,
1377,
309,
261,
73,
18,
588,
1830,
1435,
422,
2623,
597,
2623,
18,
291,
607,
6934,
10756,
202,
10956,
18,
409,
607,
6894,
3219,
12,
3789,
1769,
1377,
469,
309,
261,
73,
18,
588,
1830,
1435,
422,
2077,
8485,
13,
202,
10956,
18,
409,
11728,
1998,
3219,
12,
3789,
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
] |
fPluginConfigurationPage = new ConfigurationPage(this, false); fFeatureConfigurationPage = new ConfigurationPage(this, true); if (useFeatures()) addPage(fFeatureConfigurationPage); else addPage(fPluginConfigurationPage);
|
addPage(new ConfigurationPage(this, useFeatures()));
|
protected void addPages() { try { addPage(new OverviewPage(this)); fPluginConfigurationPage = new ConfigurationPage(this, false); fFeatureConfigurationPage = new ConfigurationPage(this, true); if (useFeatures()) addPage(fFeatureConfigurationPage); else addPage(fPluginConfigurationPage); addPage(new LauncherPage(this)); addPage(new BrandingPage(this)); } catch (PartInitException e) { PDEPlugin.logException(e); } }
|
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/82cefb5219425d9e6933401e00cf61251ef234f0/ProductEditor.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/ProductEditor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
5716,
1435,
288,
202,
202,
698,
288,
1082,
202,
1289,
1964,
12,
2704,
10752,
1945,
1964,
12,
2211,
10019,
1082,
202,
74,
3773,
1750,
1964,
273,
394,
4659,
1964,
12,
2211,
16,
629,
1769,
1082,
202,
74,
4595,
1750,
1964,
273,
394,
4659,
1964,
12,
2211,
16,
638,
1769,
1082,
202,
430,
261,
1202,
8696,
10756,
9506,
202,
1289,
1964,
12,
74,
4595,
1750,
1964,
1769,
1082,
202,
12107,
9506,
202,
1289,
1964,
12,
74,
3773,
1750,
1964,
1769,
1082,
202,
1289,
1964,
12,
2704,
14643,
264,
1964,
12,
2211,
10019,
1082,
202,
1289,
1964,
12,
2704,
605,
7884,
310,
1964,
12,
2211,
10019,
202,
202,
97,
1044,
261,
1988,
2570,
503,
425,
13,
288,
1082,
202,
52,
1639,
3773,
18,
1330,
503,
12,
73,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
5716,
1435,
288,
202,
202,
698,
288,
1082,
202,
1289,
1964,
12,
2704,
10752,
1945,
1964,
12,
2211,
10019,
1082,
202,
74,
3773,
1750,
1964,
273,
394,
4659,
1964,
12,
2211,
16,
629,
1769,
1082,
202,
74,
4595,
1750,
1964,
273,
394,
4659,
1964,
12,
2211,
16,
638,
1769,
1082,
202,
430,
261,
1202,
8696,
10756,
9506,
202,
1289,
1964,
12,
74,
4595,
1750,
1964,
1769,
1082,
202,
12107,
9506,
202,
1289,
1964,
12,
74,
3773,
1750,
1964,
1769,
1082,
202,
1289,
1964,
12,
2704,
14643,
264,
1964,
12,
2211,
10019,
1082,
202,
1289,
1964,
12,
2704,
605,
7884,
310,
1964,
12,
2211,
10019,
202,
202,
97,
1044,
261,
1988,
2570,
503,
425,
13,
2
] |
doFinish( locPath, fileName, stream, monitor );
|
doFinish( locPath, fileName, libraryFileName, monitor );
|
public boolean performFinish( ) { final IPath locPath = getContainerFullPath( ); String fn = getFileName( ); final String fileName; if ( !fn.endsWith( SUFFIX ) ) //$NON-NLS-1$ { fileName = fn + SUFFIX; //$NON-NLS-1$ } else { fileName = fn; } InputStream inputData = null; URL url = Platform.find( Platform.getBundle( ReportPlugin.REPORT_UI ), new Path( TEMPLATE_FILE ) ); if ( url != null ) { try { inputData = url.openStream( ); } catch ( IOException e1 ) { // ignore. } } final InputStream stream = inputData; IRunnableWithProgress op = new IRunnableWithProgress( ) { public void run( IProgressMonitor monitor ) { try { doFinish( locPath, fileName, stream, monitor ); } finally { monitor.done( ); } } }; try { getContainer( ).run( true, false, op ); } catch ( InterruptedException e ) { return false; } catch ( InvocationTargetException e ) { Throwable realException = e.getTargetException( ); ExceptionHandler.handle( realException ); return false; } return true; }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/76ebe408a984f02b49cbaf1597c0c7a0213901fe/WizardNewLibraryCreationPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.rcp/src/org/eclipse/birt/report/designer/ui/internal/rcp/wizards/WizardNewLibraryCreationPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
11641,
12,
262,
202,
95,
202,
202,
6385,
467,
743,
1515,
743,
273,
9272,
24173,
12,
11272,
202,
202,
780,
2295,
273,
13807,
12,
11272,
202,
202,
6385,
514,
3968,
31,
202,
202,
430,
261,
401,
4293,
18,
5839,
1190,
12,
11726,
13144,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
95,
1082,
202,
17812,
273,
2295,
397,
11726,
13144,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
17812,
273,
2295,
31,
202,
202,
97,
202,
202,
4348,
24149,
273,
446,
31,
202,
202,
1785,
880,
273,
11810,
18,
4720,
12,
11810,
18,
588,
3405,
12,
8706,
3773,
18,
22710,
67,
5370,
262,
16,
9506,
202,
2704,
2666,
12,
20835,
67,
3776,
262,
11272,
202,
202,
430,
261,
880,
480,
446,
262,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
2630,
751,
273,
880,
18,
3190,
1228,
12,
11272,
1082,
202,
97,
1082,
202,
14683,
261,
1860,
425,
21,
262,
1082,
202,
95,
9506,
202,
759,
2305,
18,
1082,
202,
97,
202,
202,
97,
202,
202,
6385,
5037,
1407,
273,
24149,
31,
202,
202,
45,
20013,
1190,
5491,
1061,
273,
394,
467,
20013,
1190,
5491,
12,
262,
288,
1082,
202,
482,
918,
1086,
12,
467,
5491,
7187,
6438,
262,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
2896,
11641,
12,
1515,
743,
16,
3968,
16,
1407,
16,
6438,
11272,
9506,
202,
97,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
11641,
12,
262,
202,
95,
202,
202,
6385,
467,
743,
1515,
743,
273,
9272,
24173,
12,
11272,
202,
202,
780,
2295,
273,
13807,
12,
11272,
202,
202,
6385,
514,
3968,
31,
202,
202,
430,
261,
401,
4293,
18,
5839,
1190,
12,
11726,
13144,
262,
262,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
95,
1082,
202,
17812,
273,
2295,
397,
11726,
13144,
31,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
17812,
273,
2295,
31,
202,
202,
97,
202,
202,
4348,
24149,
273,
446,
31,
202,
202,
1785,
880,
273,
11810,
18,
4720,
12,
11810,
18,
588,
3405,
12,
8706,
3773,
18,
22710,
2
] |
filenames[0] = "src/test/output/test-" + sdf.format(cal.getTime()); filenames[1] = "src/test/output/test.log";
|
filenames[0] = Constants.TEST_DIR_PREFIX + "output/test-" + sdf.format(cal.getTime()); filenames[1] = Constants.TEST_DIR_PREFIX + "/output/test.log";
|
public void testRename() throws Exception { RollingFileAppender rfa = new RollingFileAppender(); rfa.setLayout(layout); rfa.setContext(context); rfa.setFile("src/test/output/test.log"); // rollover by the second String datePattern = "yyyy-MM-dd_HH_mm_ss"; SimpleDateFormat sdf = new SimpleDateFormat(datePattern); String[] filenames = new String[2]; TimeBasedRollingPolicy tbrp = new TimeBasedRollingPolicy(); tbrp.setFileNamePattern("src/test/output/test-%d{" + datePattern + "}"); //tbrp.setActiveFileName("src/test/output/test.log"); tbrp.setContext(context); tbrp.setParent(rfa); tbrp.start(); rfa.setRollingPolicy(tbrp); rfa.start(); //StatusPrinter.print(context.getStatusManager()); Calendar cal = Calendar.getInstance(); rfa.doAppend("Hello 0"); DelayerUtil.delayUntilNextSecond(50); rfa.doAppend("Hello 1"); filenames[0] = "src/test/output/test-" + sdf.format(cal.getTime()); filenames[1] = "src/test/output/test.log"; for (int i = 0; i < filenames.length; i++) { //System.out.println("before i=" + i); assertTrue(Compare.compare(filenames[i], "src/test/witness/rolling/renaming." + i)); //System.out.println("post i=" + i); } }
|
51675 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51675/9bd8f1bd2c318517068244dc23c1f941119f40ec/RenamingTest.java/buggy/logback-core/src/test/java/ch/qos/logback/core/rolling/RenamingTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
16019,
1435,
1216,
1185,
288,
565,
29495,
812,
17302,
436,
507,
273,
394,
29495,
812,
17302,
5621,
565,
436,
507,
18,
542,
3744,
12,
6741,
1769,
565,
436,
507,
18,
542,
1042,
12,
2472,
1769,
565,
436,
507,
18,
542,
812,
2932,
4816,
19,
3813,
19,
2844,
19,
3813,
18,
1330,
8863,
3639,
368,
10643,
21896,
635,
326,
2205,
565,
514,
1509,
3234,
273,
315,
17722,
17,
8206,
17,
449,
67,
17500,
67,
7020,
67,
1049,
14432,
565,
17005,
31789,
273,
394,
17005,
12,
712,
3234,
1769,
565,
514,
8526,
9066,
273,
394,
514,
63,
22,
15533,
565,
2647,
9802,
28068,
2582,
268,
2848,
84,
273,
394,
2647,
9802,
28068,
2582,
5621,
565,
268,
2848,
84,
18,
542,
4771,
3234,
2932,
4816,
19,
3813,
19,
2844,
19,
3813,
6456,
72,
16711,
397,
1509,
3234,
397,
11883,
1769,
565,
368,
88,
2848,
84,
18,
542,
3896,
4771,
2932,
4816,
19,
3813,
19,
2844,
19,
3813,
18,
1330,
8863,
565,
268,
2848,
84,
18,
542,
1042,
12,
2472,
1769,
565,
268,
2848,
84,
18,
542,
3054,
12,
86,
507,
1769,
565,
268,
2848,
84,
18,
1937,
5621,
565,
436,
507,
18,
542,
28068,
2582,
12,
88,
2848,
84,
1769,
565,
436,
507,
18,
1937,
5621,
565,
368,
1482,
12149,
18,
1188,
12,
2472,
18,
588,
1482,
1318,
10663,
565,
5542,
1443,
273,
5542,
18,
588,
1442,
5621,
565,
436,
507,
18,
2896,
5736,
2932,
18601,
374,
8863,
565,
6603,
1773,
1304,
18,
10790,
9716,
2134,
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,
1842,
16019,
1435,
1216,
1185,
288,
565,
29495,
812,
17302,
436,
507,
273,
394,
29495,
812,
17302,
5621,
565,
436,
507,
18,
542,
3744,
12,
6741,
1769,
565,
436,
507,
18,
542,
1042,
12,
2472,
1769,
565,
436,
507,
18,
542,
812,
2932,
4816,
19,
3813,
19,
2844,
19,
3813,
18,
1330,
8863,
3639,
368,
10643,
21896,
635,
326,
2205,
565,
514,
1509,
3234,
273,
315,
17722,
17,
8206,
17,
449,
67,
17500,
67,
7020,
67,
1049,
14432,
565,
17005,
31789,
273,
394,
17005,
12,
712,
3234,
1769,
565,
514,
8526,
9066,
273,
394,
514,
63,
22,
15533,
565,
2647,
9802,
28068,
2582,
268,
2848,
84,
273,
394,
2647,
9802,
28068,
2582,
5621,
565,
268,
2848,
2
] |
if(!isNonDisplayableJob(next,false))
|
if (!isNonDisplayableJob(next, false))
|
private boolean hasNoRegularJobInfos() { synchronized (jobs) { Iterator iterator = jobs.keySet().iterator(); while (iterator.hasNext()) { Job next = (Job) iterator.next(); if(!isNonDisplayableJob(next,false)) return false; } return true; } }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d3b4b31ecabe1d86134fe8862237288d7938f95b/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
711,
2279,
17974,
2278,
7655,
1435,
288,
202,
202,
22043,
261,
10088,
13,
288,
6862,
6862,
202,
3198,
2775,
273,
6550,
18,
856,
694,
7675,
9838,
5621,
1082,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
9506,
202,
2278,
1024,
273,
261,
2278,
13,
2775,
18,
4285,
5621,
9506,
202,
430,
12,
5,
291,
3989,
4236,
429,
2278,
12,
4285,
16,
5743,
3719,
6862,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
711,
2279,
17974,
2278,
7655,
1435,
288,
202,
202,
22043,
261,
10088,
13,
288,
6862,
6862,
202,
3198,
2775,
273,
6550,
18,
856,
694,
7675,
9838,
5621,
1082,
202,
17523,
261,
9838,
18,
5332,
2134,
10756,
288,
9506,
202,
2278,
1024,
273,
261,
2278,
13,
2775,
18,
4285,
5621,
9506,
202,
430,
12,
5,
291,
3989,
4236,
429,
2278,
12,
4285,
16,
5743,
3719,
6862,
202,
2463,
629,
31,
1082,
202,
97,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return toString(new Context(ctxt, req, item));
|
return toString(new Context(ctxt, item));
|
public String toString(WikiContext ctxt, HttpServletRequest req, MailItem item) throws ServiceException, IOException { return toString(new Context(ctxt, req, item)); }
|
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/725e4688fbf5b3fddb9e57ed34b1482c76155438/WikiTemplate.java/clean/ZimbraServer/src/java/com/zimbra/cs/wiki/WikiTemplate.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1762,
12,
25438,
1042,
14286,
16,
9984,
1111,
16,
11542,
1180,
761,
13,
202,
15069,
16489,
16,
1860,
288,
202,
202,
2463,
1762,
12,
2704,
1772,
12,
20364,
16,
1111,
16,
761,
10019,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
514,
1762,
12,
25438,
1042,
14286,
16,
9984,
1111,
16,
11542,
1180,
761,
13,
202,
15069,
16489,
16,
1860,
288,
202,
202,
2463,
1762,
12,
2704,
1772,
12,
20364,
16,
1111,
16,
761,
10019,
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
] |
public static FontData asFontData(String value, FontData dflt) {
|
public static FontData asFontData(String value) throws DataFormatException { if (value == null) throw new DataFormatException( "Null doesn't represent a valid font data"); String name = null; int height = 0; int style = 0;
|
public static FontData asFontData(String value, FontData dflt) { try { return asFontData(value); } catch (DataFormatException e) { return dflt; } }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ee0b2663c5e61933cb88889479cf69cb1e2baafc/StringConverter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
10063,
751,
487,
5711,
751,
12,
780,
460,
13,
1216,
1910,
9291,
288,
309,
261,
1132,
422,
446,
13,
604,
394,
1910,
9291,
12,
315,
2041,
3302,
1404,
2406,
279,
923,
3512,
501,
8863,
514,
508,
273,
446,
31,
509,
2072,
273,
374,
31,
509,
2154,
273,
374,
31,
3639,
775,
288,
5411,
327,
487,
5711,
751,
12,
1132,
1769,
3639,
289,
1044,
261,
751,
9291,
425,
13,
288,
5411,
327,
302,
31864,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
10063,
751,
487,
5711,
751,
12,
780,
460,
13,
1216,
1910,
9291,
288,
309,
261,
1132,
422,
446,
13,
604,
394,
1910,
9291,
12,
315,
2041,
3302,
1404,
2406,
279,
923,
3512,
501,
8863,
514,
508,
273,
446,
31,
509,
2072,
273,
374,
31,
509,
2154,
273,
374,
31,
3639,
775,
288,
5411,
327,
487,
5711,
751,
12,
1132,
1769,
3639,
289,
1044,
261,
751,
9291,
425,
13,
288,
5411,
327,
302,
31864,
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
] |
public StyleRange[] lineGetStyle(int eventLineOffset, int eventLineLength) { StyleRange[] eventStyles = EMPTY_STYLE_RANGE; try { if (getDocument() == null) { // during initialization, this is sometimes called before our // structured // is set, in which case we set styles to be the empty style // range // (event.styles can not be null) eventStyles = EMPTY_STYLE_RANGE; return eventStyles; } int start = eventLineOffset; int length = eventLineLength; int end = start + length - 1; // we sometimes get odd requests from the very last CRLF in the // document // it has no length, and there is no node for it! if (length == 0) { eventStyles = EMPTY_STYLE_RANGE; } else { IRegion vr = null; if (getTextViewer() != null) { vr = getTextViewer().getVisibleRegion(); } else { vr = new Region(0, getDocument().getLength()); } if (start > vr.getLength()) { eventStyles = EMPTY_STYLE_RANGE; } else { // Determine if we're highlighting a visual portion of the // model not // starting at zero. If so, adjust the location from which // we retrieve // the style information if (vr.getOffset() > 0) { start += vr.getOffset(); end += vr.getOffset(); } // // ================ // if (start == fSavedOffset && length == fSavedLength && // fSavedRanges != null) { // eventStyles = (StyleRange[]) fSavedRanges; // } else { ITypedRegion[] partitions = getDocument().getDocumentPartitioner().computePartitioning(start, length); eventStyles = prepareStyleRangesArray(partitions, start, length); // If there is a subtext offset, the style ranges must be // adjusted to the expected // offsets if (vr.getOffset() > 0) adjust(eventStyles, -vr.getOffset()); // fSavedOffset = start; // fSavedLength = length; // fSavedRanges = (StyleRange[]) eventStyles; // for debugging only if (DEBUG) { if (!valid(eventStyles, eventLineOffset, eventLineLength)) { Logger.log(Logger.WARNING, "Highlighter::lineGetStyle found invalid styles at offset " + eventLineOffset); //$NON-NLS-1$ } } // } } } } catch (Exception e) { // if ANY exception occurs during highlighting, // just return "no highlighting" eventStyles = EMPTY_STYLE_RANGE; if (Debug.syntaxHighlighting) { System.out.println("Exception during highlighting!"); //$NON-NLS-1$ } } return eventStyles; }
|
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/791611f2da8627e0accb507a70c293529c4f39ae/Highlighter.java/buggy/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/style/Highlighter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
9767,
2655,
8526,
980,
967,
2885,
12,
474,
871,
1670,
2335,
16,
509,
871,
1670,
1782,
13,
288,
202,
202,
2885,
2655,
8526,
871,
9725,
273,
8984,
67,
15066,
67,
15928,
31,
202,
202,
698,
288,
1082,
202,
430,
261,
588,
2519,
1435,
422,
446,
13,
288,
9506,
202,
759,
4982,
10313,
16,
333,
353,
16594,
2566,
1865,
3134,
9506,
202,
759,
19788,
9506,
202,
759,
353,
444,
16,
316,
1492,
648,
732,
444,
5687,
358,
506,
326,
1008,
2154,
9506,
202,
759,
1048,
9506,
202,
759,
261,
2575,
18,
10218,
848,
486,
506,
446,
13,
9506,
202,
2575,
9725,
273,
8984,
67,
15066,
67,
15928,
31,
9506,
202,
2463,
871,
9725,
31,
1082,
202,
97,
1082,
202,
474,
787,
273,
871,
1670,
2335,
31,
1082,
202,
474,
769,
273,
871,
1670,
1782,
31,
1082,
202,
474,
679,
273,
787,
397,
769,
300,
404,
31,
1082,
202,
759,
732,
16594,
336,
14800,
3285,
628,
326,
8572,
1142,
21791,
316,
326,
1082,
202,
759,
1668,
1082,
202,
759,
518,
711,
1158,
769,
16,
471,
1915,
353,
1158,
756,
364,
518,
5,
1082,
202,
430,
261,
2469,
422,
374,
13,
288,
9506,
202,
2575,
9725,
273,
8984,
67,
15066,
67,
15928,
31,
1082,
202,
97,
469,
288,
9506,
202,
45,
5165,
16612,
273,
446,
31,
9506,
202,
430,
261,
588,
1528,
18415,
1435,
480,
446,
13,
288,
6862,
202,
18090,
273,
6701,
18415,
7675,
588,
6207,
5165,
5621,
9506,
202,
97,
469,
288,
6862,
202,
18090,
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,
9767,
2655,
8526,
980,
967,
2885,
12,
474,
871,
1670,
2335,
16,
509,
871,
1670,
1782,
13,
288,
202,
202,
2885,
2655,
8526,
871,
9725,
273,
8984,
67,
15066,
67,
15928,
31,
202,
202,
698,
288,
1082,
202,
430,
261,
588,
2519,
1435,
422,
446,
13,
288,
9506,
202,
759,
4982,
10313,
16,
333,
353,
16594,
2566,
1865,
3134,
9506,
202,
759,
19788,
9506,
202,
759,
353,
444,
16,
316,
1492,
648,
732,
444,
5687,
358,
506,
326,
1008,
2154,
9506,
202,
759,
1048,
9506,
202,
759,
261,
2575,
18,
10218,
848,
486,
506,
446,
13,
9506,
202,
2575,
9725,
273,
8984,
67,
15066,
67,
15928,
31,
9506,
202,
2463,
871,
9725,
31,
1082,
202,
97,
2
] |
||
element.setCvsroot("cvsroot");
|
element.setCvsRoot("cvsroot");
|
public void testHistoryCommandNullLocal() { Date lastBuildTime = new Date(); Date currTime = new Date(); CVSElement element = new CVSElement(); element.setCvsroot("cvsroot"); element.setLocalWorkingCopy(null); String[] expectedCommand = new String[] { "cvs", "-d", "cvsroot", "log", "-N", "-d", CVSElement.formatCVSDate(lastBuildTime) + "<" + CVSElement.formatCVSDate(currTime)}; String[] actualCommand = element.buildHistoryCommand(lastBuildTime, currTime).getCommandline(); assertEquals("Mismatched lengths!", expectedCommand.length, actualCommand.length); for (int i = 0; i < expectedCommand.length; i++) { assertEquals(expectedCommand[i], actualCommand[i]); } }
|
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/21dcf5aec80e729f9cd80fcb03d2da7c0cdb6ad6/CVSElementTest.java/clean/main/test/net/sourceforge/cruisecontrol/CVSElementTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5623,
2189,
2041,
2042,
1435,
288,
3639,
2167,
1142,
3116,
950,
273,
394,
2167,
5621,
3639,
2167,
4306,
950,
273,
394,
2167,
5621,
7734,
385,
14640,
1046,
930,
273,
394,
385,
14640,
1046,
5621,
3639,
930,
18,
542,
39,
6904,
2375,
2932,
71,
6904,
3085,
8863,
3639,
930,
18,
542,
2042,
14836,
2951,
12,
2011,
1769,
3639,
514,
8526,
2665,
2189,
273,
394,
514,
8526,
288,
315,
71,
6904,
3113,
3701,
72,
3113,
315,
71,
6904,
3085,
3113,
315,
1330,
3113,
1850,
3701,
50,
3113,
3701,
72,
3113,
385,
14640,
1046,
18,
2139,
39,
14640,
1626,
12,
2722,
3116,
950,
13,
397,
18165,
1850,
397,
385,
14640,
1046,
18,
2139,
39,
14640,
1626,
12,
17016,
950,
16869,
31,
7734,
514,
8526,
3214,
2189,
273,
1850,
930,
18,
3510,
5623,
2189,
12,
2722,
3116,
950,
16,
4306,
950,
2934,
588,
2189,
1369,
5621,
3639,
1815,
8867,
2932,
11729,
11073,
10917,
5,
3113,
2665,
2189,
18,
2469,
16,
1850,
3214,
2189,
18,
2469,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2665,
2189,
18,
2469,
31,
277,
27245,
288,
5411,
1815,
8867,
12,
3825,
2189,
63,
77,
6487,
3214,
2189,
63,
77,
19226,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5623,
2189,
2041,
2042,
1435,
288,
3639,
2167,
1142,
3116,
950,
273,
394,
2167,
5621,
3639,
2167,
4306,
950,
273,
394,
2167,
5621,
7734,
385,
14640,
1046,
930,
273,
394,
385,
14640,
1046,
5621,
3639,
930,
18,
542,
39,
6904,
2375,
2932,
71,
6904,
3085,
8863,
3639,
930,
18,
542,
2042,
14836,
2951,
12,
2011,
1769,
3639,
514,
8526,
2665,
2189,
273,
394,
514,
8526,
288,
315,
71,
6904,
3113,
3701,
72,
3113,
315,
71,
6904,
3085,
3113,
315,
1330,
3113,
1850,
3701,
50,
3113,
3701,
72,
3113,
385,
14640,
1046,
18,
2139,
39,
14640,
1626,
12,
2722,
3116,
950,
13,
397,
18165,
1850,
397,
385,
14640,
1046,
18,
2139,
39,
14640,
1626,
12,
17016,
2
] |
conf = config.subset("tables.table.fields.field"); prop = conf.getProperty("name");
|
subset = config.subset("tables.table.fields.field"); prop = subset.getProperty("name");
|
public void testSubset() { Configuration conf = config.subset("tables.table(0)"); assertEquals("users", conf.getProperty("name")); Object prop = conf.getProperty("fields.field.name"); assertNotNull(prop); assertTrue(prop instanceof Collection); assertEquals(5, ((Collection) prop).size()); for(int i = 0; i < fields[0].length; i++) { ConfigurationKey key = new ConfigurationKey(); key.append("fields").append("field").appendIndex(i); key.append("name"); assertEquals(fields[0][i], conf.getProperty(key.toString())); } /* for */ assertTrue("subset is not empty", config.subset("tables.table(2)").isEmpty()); conf = config.subset("tables.table.fields.field"); prop = conf.getProperty("name"); assertTrue("prop is not a collection", prop instanceof Collection); assertEquals(10, ((Collection) prop).size()); conf = config.subset("tables.table.fields.field.name"); assertTrue("subset is not empty", conf.isEmpty()); }
|
56523 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56523/ac301177d363629f82d8d19c2da376f4819fd6b6/TestHierarchicalConfiguration.java/buggy/src/test/org/apache/commons/configuration/TestHierarchicalConfiguration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
20315,
1435,
565,
288,
3639,
4659,
2195,
273,
642,
18,
15657,
2932,
9373,
18,
2121,
12,
20,
2225,
1769,
3639,
1815,
8867,
2932,
5577,
3113,
2195,
18,
588,
1396,
2932,
529,
7923,
1769,
3639,
1033,
2270,
273,
2195,
18,
588,
1396,
2932,
2821,
18,
1518,
18,
529,
8863,
3639,
25395,
12,
5986,
1769,
3639,
1815,
5510,
12,
5986,
1276,
2200,
1769,
3639,
1815,
8867,
12,
25,
16,
14015,
2532,
13,
2270,
2934,
1467,
10663,
7734,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1466,
63,
20,
8009,
2469,
31,
277,
27245,
3639,
288,
5411,
4659,
653,
498,
273,
394,
4659,
653,
5621,
5411,
498,
18,
6923,
2932,
2821,
20387,
6923,
2932,
1518,
20387,
6923,
1016,
12,
77,
1769,
5411,
498,
18,
6923,
2932,
529,
8863,
5411,
1815,
8867,
12,
2821,
63,
20,
6362,
77,
6487,
2195,
18,
588,
1396,
12,
856,
18,
10492,
1435,
10019,
3639,
289,
225,
1748,
364,
1195,
3639,
1815,
5510,
2932,
15657,
353,
486,
1008,
3113,
642,
18,
15657,
2932,
9373,
18,
2121,
12,
22,
2225,
2934,
291,
1921,
10663,
3639,
2195,
273,
642,
18,
15657,
2932,
9373,
18,
2121,
18,
2821,
18,
1518,
8863,
3639,
2270,
273,
2195,
18,
588,
1396,
2932,
529,
8863,
3639,
1815,
5510,
2932,
5986,
353,
486,
279,
1849,
3113,
2270,
1276,
2200,
1769,
3639,
1815,
8867,
12,
2163,
16,
14015,
2532,
13,
2270,
2934,
1467,
10663,
7734,
2195,
273,
642,
18,
15657,
2932,
9373,
18,
2121,
18,
2821,
18,
1518,
18,
529,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
20315,
1435,
565,
288,
3639,
4659,
2195,
273,
642,
18,
15657,
2932,
9373,
18,
2121,
12,
20,
2225,
1769,
3639,
1815,
8867,
2932,
5577,
3113,
2195,
18,
588,
1396,
2932,
529,
7923,
1769,
3639,
1033,
2270,
273,
2195,
18,
588,
1396,
2932,
2821,
18,
1518,
18,
529,
8863,
3639,
25395,
12,
5986,
1769,
3639,
1815,
5510,
12,
5986,
1276,
2200,
1769,
3639,
1815,
8867,
12,
25,
16,
14015,
2532,
13,
2270,
2934,
1467,
10663,
7734,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1466,
63,
20,
8009,
2469,
31,
277,
27245,
3639,
288,
5411,
4659,
653,
498,
273,
394,
4659,
653,
5621,
5411,
498,
18,
6923,
2932,
2821,
20387,
6923,
2932,
1518,
20387,
6923,
2
] |
final public void ddiv() {
|
public void ddiv() {
|
final public void ddiv() { if (DEBUG) System.out.println(position + "\t\tddiv"); //$NON-NLS-1$ countLabels = 0; stackDepth -= 2; if (classFileOffset >= bCodeStream.length) { resizeByteArray(); } position++; bCodeStream[classFileOffset++] = OPC_ddiv;}
|
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/5a485cb39d1ee33622141cf426fac71c4bf93ded/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
1071,
918,
302,
2892,
1435,
288,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
12,
3276,
397,
1548,
88,
64,
88,
449,
427,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
1883,
5888,
273,
374,
31,
202,
3772,
6148,
3947,
576,
31,
202,
430,
261,
1106,
812,
2335,
1545,
324,
1085,
1228,
18,
2469,
13,
288,
202,
202,
15169,
8826,
5621,
202,
97,
202,
3276,
9904,
31,
202,
70,
1085,
1228,
63,
1106,
812,
2335,
9904,
65,
273,
531,
3513,
67,
449,
427,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
1071,
918,
302,
2892,
1435,
288,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
12,
3276,
397,
1548,
88,
64,
88,
449,
427,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
1883,
5888,
273,
374,
31,
202,
3772,
6148,
3947,
576,
31,
202,
430,
261,
1106,
812,
2335,
1545,
324,
1085,
1228,
18,
2469,
13,
288,
202,
202,
15169,
8826,
5621,
202,
97,
202,
3276,
9904,
31,
202,
70,
1085,
1228,
63,
1106,
812,
2335,
9904,
65,
273,
531,
3513,
67,
449,
427,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (visitedLockedFolder || currentResource.isLocked()) {
|
if (visitedLockedFolder && !currentResource.isLocked()) {
|
public List readPath(CmsUser currentUser, CmsProject currentProject, String path, boolean includeDeleted) throws CmsException { // splits the path into folder and filename tokens StringTokenizer tokens = null; // # of folders in the path int folderCount = 0; // true if the path doesn't end with a folder boolean lastResourceIsFile = false; // holds the CmsResource instances in the path List pathList = null; // the current path token String currentResourceName = null; // the current path String currentPath = null; // the current resource CmsResource currentResource = null; // this is a comment. i love comments! int i = 0, count = 0; // key to cache the resources String cacheKey = null; // the parent resource of the current resource CmsResource lastParent = null; // true if a upper folder in the path was locked boolean visitedLockedFolder = false; // the project ID of an upper locked folder int lockedInProject = currentProject.getId(); // the user ID of an upper locked folder CmsUUID lockedByUserId = CmsUUID.getNullUUID(); tokens = new StringTokenizer(path, I_CmsConstants.C_FOLDER_SEPARATOR); // the root folder is no token in the path but a resource which has to be added to the path count = tokens.countTokens() + 1; pathList = (List) new ArrayList(count); folderCount = count; if (!path.endsWith(I_CmsConstants.C_FOLDER_SEPARATOR)) { folderCount--; lastResourceIsFile = true; } // read the root folder, coz it's ID is required to read any sub-resources currentResourceName = currentPath = I_CmsConstants.C_ROOT; cacheKey = getCacheKey(null, currentUser, currentProject, currentPath); if ((currentResource = (CmsResource) m_resourceCache.get(cacheKey)) == null) { currentResource = (CmsResource) m_vfsDriver.readFolder(currentProject.getId(), CmsUUID.getNullUUID(), currentResourceName); currentResource.setFullResourceName(currentPath); m_resourceCache.put(cacheKey, currentResource); } pathList.add(0, currentResource); lastParent = currentResource; if (count == 1) { // the root folder was requested- no further operations required return pathList; } // save the current lock state if (currentResource.isLocked()) { visitedLockedFolder = true; lockedInProject = currentResource.getLockedInProject(); lockedByUserId = currentResource.isLockedBy(); } currentResourceName = tokens.nextToken(); // read the folder resources in the path /a/b/c/ for (i = 1; i < folderCount; i++) { currentPath += currentResourceName + I_CmsConstants.C_FOLDER_SEPARATOR; // read the folder cacheKey = getCacheKey(null, currentUser, currentProject, currentPath); if ((currentResource = (CmsResource) m_resourceCache.get(cacheKey)) == null) { currentResource = (CmsResource) m_vfsDriver.readFolder(currentProject.getId(), lastParent.getId(), currentResourceName); currentResource.setFullResourceName(currentPath); m_resourceCache.put(cacheKey, currentResource); } // update/save the lock state if (visitedLockedFolder) { currentResource.setLocked(lockedByUserId); currentResource.setLockedInProject(lockedInProject); currentResource.setProjectId(lockedInProject); m_resourceCache.put(cacheKey, currentResource); } else if (currentResource.isLocked()) { visitedLockedFolder = true; lockedInProject = currentResource.getLockedInProject(); lockedByUserId = currentResource.isLockedBy(); } pathList.add(i, currentResource); lastParent = currentResource; if (i < folderCount - 1) { currentResourceName = tokens.nextToken(); } } // read the (optional) last file resource in the path /x.html if (lastResourceIsFile) { currentResourceName = tokens.nextToken(); currentPath += currentResourceName; // read the file cacheKey = getCacheKey(null, currentUser, currentProject, currentPath); if ((currentResource = (CmsResource) m_resourceCache.get(cacheKey)) == null) { currentResource = (CmsResource) m_vfsDriver.readFileHeader(currentProject.getId(), lastParent.getId(), currentResourceName, includeDeleted); currentResource.setFullResourceName(currentPath); m_resourceCache.put(cacheKey, currentResource); } // update/save the lock state if (visitedLockedFolder || currentResource.isLocked()) { currentResource.setLocked(lockedByUserId); currentResource.setLockedInProject(lockedInProject); currentResource.setProjectId(lockedInProject); m_resourceCache.put(cacheKey, currentResource); } pathList.add(i, currentResource); } return pathList; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/cd3e7ecce0b0fc0d4106437db74ff960e02ef1c0/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
743,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
514,
589,
16,
1250,
2341,
7977,
13,
1216,
11228,
288,
3639,
368,
11019,
326,
589,
1368,
3009,
471,
1544,
2430,
3639,
16370,
2430,
273,
446,
31,
3639,
368,
468,
434,
9907,
316,
326,
589,
3639,
509,
3009,
1380,
273,
374,
31,
3639,
368,
638,
309,
326,
589,
3302,
1404,
679,
598,
279,
3009,
3639,
1250,
1142,
1420,
2520,
812,
273,
629,
31,
3639,
368,
14798,
326,
7630,
3884,
316,
326,
589,
3639,
987,
589,
682,
273,
446,
31,
3639,
368,
326,
783,
589,
1147,
3639,
514,
783,
19327,
273,
446,
31,
3639,
368,
326,
783,
589,
3639,
514,
18027,
273,
446,
31,
3639,
368,
326,
783,
1058,
3639,
7630,
783,
1420,
273,
446,
31,
3639,
368,
333,
353,
279,
2879,
18,
277,
437,
537,
5678,
5,
3639,
509,
277,
273,
374,
16,
1056,
273,
374,
31,
3639,
368,
498,
358,
1247,
326,
2703,
3639,
514,
9097,
273,
446,
31,
3639,
368,
326,
982,
1058,
434,
326,
783,
1058,
3639,
7630,
1142,
3054,
273,
446,
31,
3639,
368,
638,
309,
279,
3854,
3009,
316,
326,
589,
1703,
8586,
3639,
1250,
9711,
8966,
3899,
273,
629,
31,
3639,
368,
326,
1984,
1599,
434,
392,
3854,
8586,
3009,
3639,
509,
8586,
382,
4109,
273,
783,
4109,
18,
26321,
5621,
3639,
368,
326,
729,
1599,
434,
392,
3854,
8586,
3009,
3639,
15792,
8586,
858,
10502,
273,
15792,
18,
588,
2041,
5562,
5621,
7734,
2430,
273,
394,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
855,
743,
12,
4747,
1299,
13970,
16,
2149,
4109,
783,
4109,
16,
514,
589,
16,
1250,
2341,
7977,
13,
1216,
11228,
288,
3639,
368,
11019,
326,
589,
1368,
3009,
471,
1544,
2430,
3639,
16370,
2430,
273,
446,
31,
3639,
368,
468,
434,
9907,
316,
326,
589,
3639,
509,
3009,
1380,
273,
374,
31,
3639,
368,
638,
309,
326,
589,
3302,
1404,
679,
598,
279,
3009,
3639,
1250,
1142,
1420,
2520,
812,
273,
629,
31,
3639,
368,
14798,
326,
7630,
3884,
316,
326,
589,
3639,
987,
589,
682,
273,
446,
31,
3639,
368,
326,
783,
589,
1147,
3639,
514,
783,
19327,
273,
446,
31,
3639,
368,
326,
783,
589,
3639,
514,
18027,
273,
446,
31,
3639,
368,
2
] |
rargs[rlen] = ctx; Object thisValue;
|
rargs[paramCount] = ctx; Object extraArg;
|
public int matchN (Object[] args, CallContext ctx) { int nargs = args.length; boolean takesVarArgs = takesVarArgs(); int mlength = minArgs() + (takesVarArgs ? 1 : 0); int fixArgs = takesVarArgs ? mlength - 1 : mlength; if (takesVarArgs) { if (nargs < fixArgs) return NO_MATCH_TOO_FEW_ARGS|fixArgs; } else { if (nargs != mlength) if (nargs < mlength) return NO_MATCH_TOO_FEW_ARGS|fixArgs; else return NO_MATCH_TOO_MANY_ARGS|fixArgs; } int arg_count = argTypes.length; Type elementType = null; Object[] restArray = null; int this_count = getStaticFlag() ? 0 : 1; boolean takesContext = takesContext(); int rlen = mlength - this_count; Object[] rargs = new Object[rlen + (takesContext ? 1 : 0)]; if (takesContext) rargs[rlen] = ctx; Object thisValue; if (takesVarArgs) { Type restType = argTypes[arg_count-1]; if (restType == Compilation.scmListType) { // FIXME rargs[rlen-1] = gnu.lists.LList.makeList(args, fixArgs); nargs = fixArgs; } else { ArrayType restArrayType = (ArrayType) restType; elementType = restArrayType.getComponentType(); Class elementClass = elementType.getReflectClass(); restArray = (Object[]) java.lang.reflect.Array.newInstance(elementClass, nargs-fixArgs); rargs[rlen-1] = restArray; } } if (this_count != 0) { try { thisValue = method.getDeclaringClass().coerceFromObject(args[0]); } catch (ClassCastException ex) { return NO_MATCH_BAD_TYPE|1; } } else thisValue = null; for (int i = this_count; i < nargs; i++) { try { Object arg = args[i]; Type type = i < fixArgs ? argTypes[i-this_count] : elementType; if (type != Type.pointer_type) arg = type.coerceFromObject(arg); if (i < fixArgs) rargs[i-this_count] = arg; else restArray[i - fixArgs] = arg; } catch (ClassCastException ex) { return NO_MATCH_BAD_TYPE|(i+1); } } ctx.value1 = thisValue; ctx.values = rargs; ctx.proc = this; return 0; }
|
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/9ffd285436376614d0cda3108aca14db21d8c15c/PrimProcedure.java/buggy/gnu/expr/PrimProcedure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
845,
50,
261,
921,
8526,
833,
16,
3049,
1042,
1103,
13,
225,
288,
565,
509,
14440,
273,
833,
18,
2469,
31,
565,
1250,
5530,
1537,
2615,
273,
5530,
1537,
2615,
5621,
565,
509,
312,
2469,
273,
1131,
2615,
1435,
397,
261,
88,
3223,
1537,
2615,
692,
404,
294,
374,
1769,
565,
509,
2917,
2615,
273,
5530,
1537,
2615,
692,
312,
2469,
300,
404,
294,
312,
2469,
31,
565,
309,
261,
88,
3223,
1537,
2615,
13,
1377,
288,
3639,
309,
261,
82,
1968,
411,
2917,
2615,
13,
1850,
327,
3741,
67,
11793,
67,
4296,
51,
67,
42,
7245,
67,
22439,
96,
904,
2615,
31,
1377,
289,
565,
469,
1377,
288,
3639,
309,
261,
82,
1968,
480,
312,
2469,
13,
1850,
309,
261,
82,
1968,
411,
312,
2469,
13,
5411,
327,
3741,
67,
11793,
67,
4296,
51,
67,
42,
7245,
67,
22439,
96,
904,
2615,
31,
1850,
469,
5411,
327,
3741,
67,
11793,
67,
4296,
51,
67,
24177,
67,
22439,
96,
904,
2615,
31,
1377,
289,
565,
509,
1501,
67,
1883,
273,
30973,
18,
2469,
31,
565,
1412,
21427,
273,
446,
31,
565,
1033,
8526,
3127,
1076,
273,
446,
31,
565,
509,
333,
67,
1883,
273,
23414,
4678,
1435,
692,
374,
294,
404,
31,
565,
1250,
5530,
1042,
273,
5530,
1042,
5621,
565,
509,
436,
1897,
273,
312,
2469,
300,
333,
67,
1883,
31,
565,
1033,
8526,
436,
1968,
273,
394,
1033,
63,
1321,
275,
397,
261,
88,
3223,
1042,
692,
404,
294,
374,
13,
15533,
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,
509,
845,
50,
261,
921,
8526,
833,
16,
3049,
1042,
1103,
13,
225,
288,
565,
509,
14440,
273,
833,
18,
2469,
31,
565,
1250,
5530,
1537,
2615,
273,
5530,
1537,
2615,
5621,
565,
509,
312,
2469,
273,
1131,
2615,
1435,
397,
261,
88,
3223,
1537,
2615,
692,
404,
294,
374,
1769,
565,
509,
2917,
2615,
273,
5530,
1537,
2615,
692,
312,
2469,
300,
404,
294,
312,
2469,
31,
565,
309,
261,
88,
3223,
1537,
2615,
13,
1377,
288,
3639,
309,
261,
82,
1968,
411,
2917,
2615,
13,
1850,
327,
3741,
67,
11793,
67,
4296,
51,
67,
42,
7245,
67,
22439,
96,
904,
2615,
31,
1377,
289,
565,
469,
1377,
288,
3639,
309,
261,
82,
1968,
480,
312,
2
] |
Member member = methodsOrCtors[i]; Class[] type = methodOrCtorTypes[i]; String sig = NativeJavaMethod.memberSignature(member, type); if (name.equals(sig)) { return member;
|
Class[] type = methodsOrCtors[i].argTypes; String sig = liveConnectSignature(type); if (sigStart + sig.length() == name.length() && name.regionMatches(sigStart, sig, 0, sig.length())) { return methodsOrCtors[i];
|
private Member findExplicitFunction(String name, boolean isStatic) { int sigStart = name.indexOf('('); if (sigStart < 0) { return null; } Hashtable ht = isStatic ? staticMembers : members; Member[] methodsOrCtors = null; Class[][] methodOrCtorTypes = null; boolean isCtor = (isStatic && sigStart == 0); if (isCtor) { // Explicit request for an overloaded constructor methodsOrCtors = ctors; methodOrCtorTypes = ctorTypes; } else { // Explicit request for an overloaded method String trueName = name.substring(0,sigStart); Object obj = ht.get(trueName); if (!isStatic && obj == null) { // Try to get static member from instance (LC3) obj = staticMembers.get(trueName); } if (obj instanceof NativeJavaMethod) { NativeJavaMethod njm = (NativeJavaMethod)obj; methodsOrCtors = njm.methods; methodOrCtorTypes = njm.methodTypes; } } if (methodsOrCtors != null) { for (int i = 0; i < methodsOrCtors.length; i++) { Member member = methodsOrCtors[i]; Class[] type = methodOrCtorTypes[i]; String sig = NativeJavaMethod.memberSignature(member, type); if (name.equals(sig)) { return member; } } } return null; }
|
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
8596,
1104,
17186,
2083,
12,
780,
508,
16,
1250,
16116,
13,
565,
288,
3639,
509,
3553,
1685,
273,
508,
18,
31806,
2668,
2668,
1769,
3639,
309,
261,
7340,
1685,
411,
374,
13,
288,
327,
446,
31,
289,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
8596,
8526,
2590,
1162,
39,
88,
1383,
273,
446,
31,
3639,
1659,
63,
6362,
65,
707,
1162,
27425,
2016,
273,
446,
31,
3639,
1250,
25249,
13039,
273,
261,
291,
5788,
597,
3553,
1685,
422,
374,
1769,
3639,
309,
261,
291,
27425,
13,
288,
5411,
368,
24321,
590,
364,
392,
1879,
4230,
3885,
5411,
2590,
1162,
39,
88,
1383,
273,
5691,
1383,
31,
5411,
707,
1162,
27425,
2016,
273,
15120,
2016,
31,
3639,
289,
469,
288,
5411,
368,
24321,
590,
364,
392,
1879,
4230,
707,
5411,
514,
638,
461,
273,
508,
18,
28023,
12,
20,
16,
7340,
1685,
1769,
5411,
1033,
1081,
273,
14049,
18,
588,
12,
3767,
461,
1769,
5411,
309,
16051,
291,
5788,
597,
1081,
422,
446,
13,
288,
7734,
368,
6161,
358,
336,
760,
3140,
628,
791,
261,
13394,
23,
13,
7734,
1081,
273,
760,
6918,
18,
588,
12,
3767,
461,
1769,
5411,
289,
5411,
309,
261,
2603,
1276,
16717,
5852,
1305,
13,
288,
7734,
16717,
5852,
1305,
290,
78,
81,
273,
261,
9220,
5852,
1305,
13,
2603,
31,
7734,
2590,
1162,
39,
88,
1383,
273,
290,
78,
81,
18,
5163,
31,
7734,
707,
1162,
27425,
2016,
273,
290,
78,
81,
18,
2039,
2016,
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,
8596,
1104,
17186,
2083,
12,
780,
508,
16,
1250,
16116,
13,
565,
288,
3639,
509,
3553,
1685,
273,
508,
18,
31806,
2668,
2668,
1769,
3639,
309,
261,
7340,
1685,
411,
374,
13,
288,
327,
446,
31,
289,
3639,
18559,
14049,
273,
16116,
692,
760,
6918,
294,
4833,
31,
3639,
8596,
8526,
2590,
1162,
39,
88,
1383,
273,
446,
31,
3639,
1659,
63,
6362,
65,
707,
1162,
27425,
2016,
273,
446,
31,
3639,
1250,
25249,
13039,
273,
261,
291,
5788,
597,
3553,
1685,
422,
374,
1769,
3639,
309,
261,
291,
27425,
13,
288,
5411,
368,
24321,
590,
364,
392,
1879,
4230,
3885,
5411,
2590,
1162,
39,
88,
1383,
273,
5691,
1383,
31,
5411,
707,
1162,
27425,
2016,
273,
2
] |
match(_t,NOHIDE); _t = _t.getNextSibling(); break; } case NOLABELS:
|
match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case USEDICTEXPS:
|
public final void framephrase(AST _t) throws RecognitionException { AST framephrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1421 = _t; AST tmp372_AST_in = (AST)_t; match(_t,WITH); _t = _t.getFirstChild(); { _loop1451: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ACCUMULATE: { AST __t1423 = _t; AST tmp373_AST_in = (AST)_t; match(_t,ACCUMULATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t1423; _t = _t.getNextSibling(); break; } case ATTRSPACE: { AST tmp374_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp375_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case CANCELBUTTON: { AST __t1425 = _t; AST tmp376_AST_in = (AST)_t; match(_t,CANCELBUTTON); _t = _t.getFirstChild(); field(_t); _t = _retTree; _t = __t1425; _t = _t.getNextSibling(); break; } case CENTERED: { AST tmp377_AST_in = (AST)_t; match(_t,CENTERED); _t = _t.getNextSibling(); break; } case COLUMN: { AST __t1426 = _t; AST tmp378_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1426; _t = _t.getNextSibling(); break; } case CONTEXTHELP: { AST tmp379_AST_in = (AST)_t; match(_t,CONTEXTHELP); _t = _t.getNextSibling(); break; } case CONTEXTHELPFILE: { AST tmp380_AST_in = (AST)_t; match(_t,CONTEXTHELPFILE); _t = _t.getNextSibling(); expression(_t); _t = _retTree; break; } case DEFAULTBUTTON: { AST __t1427 = _t; AST tmp381_AST_in = (AST)_t; match(_t,DEFAULTBUTTON); _t = _t.getFirstChild(); field(_t); _t = _retTree; _t = __t1427; _t = _t.getNextSibling(); break; } case EXPORT: { AST tmp382_AST_in = (AST)_t; match(_t,EXPORT); _t = _t.getNextSibling(); break; } case FITLASTCOLUMN: { AST tmp383_AST_in = (AST)_t; match(_t,FITLASTCOLUMN); _t = _t.getNextSibling(); break; } case FONT: { AST __t1428 = _t; AST tmp384_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1428; _t = _t.getNextSibling(); break; } case FONTBASEDLAYOUT: { AST tmp385_AST_in = (AST)_t; match(_t,FONTBASEDLAYOUT); _t = _t.getNextSibling(); break; } case FRAME: { AST __t1429 = _t; AST tmp386_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getFirstChild(); AST tmp387_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); _t = __t1429; _t = _t.getNextSibling(); break; } case LABELFONT: { AST __t1430 = _t; AST tmp388_AST_in = (AST)_t; match(_t,LABELFONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1430; _t = _t.getNextSibling(); break; } case LABELDCOLOR: { AST __t1431 = _t; AST tmp389_AST_in = (AST)_t; match(_t,LABELDCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1431; _t = _t.getNextSibling(); break; } case LABELFGCOLOR: { AST __t1432 = _t; AST tmp390_AST_in = (AST)_t; match(_t,LABELFGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1432; _t = _t.getNextSibling(); break; } case LABELBGCOLOR: { AST __t1433 = _t; AST tmp391_AST_in = (AST)_t; match(_t,LABELBGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1433; _t = _t.getNextSibling(); break; } case MULTIPLE: { AST tmp392_AST_in = (AST)_t; match(_t,MULTIPLE); _t = _t.getNextSibling(); break; } case SINGLE: { AST tmp393_AST_in = (AST)_t; match(_t,SINGLE); _t = _t.getNextSibling(); break; } case SEPARATORS: { AST tmp394_AST_in = (AST)_t; match(_t,SEPARATORS); _t = _t.getNextSibling(); break; } case NOSEPARATORS: { AST tmp395_AST_in = (AST)_t; match(_t,NOSEPARATORS); _t = _t.getNextSibling(); break; } case NOASSIGN: { AST tmp396_AST_in = (AST)_t; match(_t,NOASSIGN); _t = _t.getNextSibling(); break; } case NOROWMARKERS: { AST tmp397_AST_in = (AST)_t; match(_t,NOROWMARKERS); _t = _t.getNextSibling(); break; } case NOSCROLLBARVERTICAL: { AST tmp398_AST_in = (AST)_t; match(_t,NOSCROLLBARVERTICAL); _t = _t.getNextSibling(); break; } case SCROLLBARVERTICAL: { AST tmp399_AST_in = (AST)_t; match(_t,SCROLLBARVERTICAL); _t = _t.getNextSibling(); break; } case ROWHEIGHTCHARS: { AST __t1434 = _t; AST tmp400_AST_in = (AST)_t; match(_t,ROWHEIGHTCHARS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1434; _t = _t.getNextSibling(); break; } case ROWHEIGHTPIXELS: { AST __t1435 = _t; AST tmp401_AST_in = (AST)_t; match(_t,ROWHEIGHTPIXELS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1435; _t = _t.getNextSibling(); break; } case EXPANDABLE: { AST tmp402_AST_in = (AST)_t; match(_t,EXPANDABLE); _t = _t.getNextSibling(); break; } case DROPTARGET: { AST tmp403_AST_in = (AST)_t; match(_t,DROPTARGET); _t = _t.getNextSibling(); break; } case NOAUTOVALIDATE: { AST tmp404_AST_in = (AST)_t; match(_t,NOAUTOVALIDATE); _t = _t.getNextSibling(); break; } case NOCOLUMNSCROLLING: { AST tmp405_AST_in = (AST)_t; match(_t,NOCOLUMNSCROLLING); _t = _t.getNextSibling(); break; } case KEEPTABORDER: { AST tmp406_AST_in = (AST)_t; match(_t,KEEPTABORDER); _t = _t.getNextSibling(); break; } case NOBOX: { AST tmp407_AST_in = (AST)_t; match(_t,NOBOX); _t = _t.getNextSibling(); break; } case NOEMPTYSPACE: { AST tmp408_AST_in = (AST)_t; match(_t,NOEMPTYSPACE); _t = _t.getNextSibling(); break; } case NOHIDE: { AST tmp409_AST_in = (AST)_t; match(_t,NOHIDE); _t = _t.getNextSibling(); break; } case NOLABELS: { AST tmp410_AST_in = (AST)_t; match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case USEDICTEXPS: { AST tmp411_AST_in = (AST)_t; match(_t,USEDICTEXPS); _t = _t.getNextSibling(); break; } case NOVALIDATE: { AST tmp412_AST_in = (AST)_t; match(_t,NOVALIDATE); _t = _t.getNextSibling(); break; } case NOHELP: { AST tmp413_AST_in = (AST)_t; match(_t,NOHELP); _t = _t.getNextSibling(); break; } case NOUNDERLINE: { AST tmp414_AST_in = (AST)_t; match(_t,NOUNDERLINE); _t = _t.getNextSibling(); break; } case OVERLAY: { AST tmp415_AST_in = (AST)_t; match(_t,OVERLAY); _t = _t.getNextSibling(); break; } case PAGEBOTTOM: { AST tmp416_AST_in = (AST)_t; match(_t,PAGEBOTTOM); _t = _t.getNextSibling(); break; } case PAGETOP: { AST tmp417_AST_in = (AST)_t; match(_t,PAGETOP); _t = _t.getNextSibling(); break; } case NOTABSTOP: { AST tmp418_AST_in = (AST)_t; match(_t,NOTABSTOP); _t = _t.getNextSibling(); break; } case RETAIN: { AST __t1436 = _t; AST tmp419_AST_in = (AST)_t; match(_t,RETAIN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1436; _t = _t.getNextSibling(); break; } case ROW: { AST __t1437 = _t; AST tmp420_AST_in = (AST)_t; match(_t,ROW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1437; _t = _t.getNextSibling(); break; } case SCREENIO: { AST tmp421_AST_in = (AST)_t; match(_t,SCREENIO); _t = _t.getNextSibling(); break; } case STREAMIO: { AST tmp422_AST_in = (AST)_t; match(_t,STREAMIO); _t = _t.getNextSibling(); break; } case SCROLL: { AST __t1438 = _t; AST tmp423_AST_in = (AST)_t; match(_t,SCROLL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1438; _t = _t.getNextSibling(); break; } case SCROLLABLE: { AST tmp424_AST_in = (AST)_t; match(_t,SCROLLABLE); _t = _t.getNextSibling(); break; } case SIDELABELS: { AST tmp425_AST_in = (AST)_t; match(_t,SIDELABELS); _t = _t.getNextSibling(); break; } case STREAM: { stream_name(_t); _t = _retTree; break; } case THREED: { AST tmp426_AST_in = (AST)_t; match(_t,THREED); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case TOPONLY: { AST tmp427_AST_in = (AST)_t; match(_t,TOPONLY); _t = _t.getNextSibling(); break; } case USETEXT: { AST tmp428_AST_in = (AST)_t; match(_t,USETEXT); _t = _t.getNextSibling(); break; } case V6FRAME: { AST tmp429_AST_in = (AST)_t; match(_t,V6FRAME); _t = _t.getNextSibling(); break; } case USEREVVIDEO: { AST tmp430_AST_in = (AST)_t; match(_t,USEREVVIDEO); _t = _t.getNextSibling(); break; } case USEUNDERLINE: { AST tmp431_AST_in = (AST)_t; match(_t,USEUNDERLINE); _t = _t.getNextSibling(); break; } case VIEWAS: { AST __t1439 = _t; AST tmp432_AST_in = (AST)_t; match(_t,VIEWAS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DIALOGBOX: { AST __t1441 = _t; AST tmp433_AST_in = (AST)_t; match(_t,DIALOGBOX); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DIALOGHELP: { AST tmp434_AST_in = (AST)_t; match(_t,DIALOGHELP); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1441; _t = _t.getNextSibling(); break; } case MESSAGELINE: { AST tmp435_AST_in = (AST)_t; match(_t,MESSAGELINE); _t = _t.getNextSibling(); break; } case STATUSBAR: { AST tmp436_AST_in = (AST)_t; match(_t,STATUSBAR); _t = _t.getNextSibling(); break; } case TOOLBAR: { AST __t1444 = _t; AST tmp437_AST_in = (AST)_t; match(_t,TOOLBAR); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTACHMENT: { AST tmp438_AST_in = (AST)_t; match(_t,ATTACHMENT); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TOP: { AST tmp439_AST_in = (AST)_t; match(_t,TOP); _t = _t.getNextSibling(); break; } case BOTTOM: { AST tmp440_AST_in = (AST)_t; match(_t,BOTTOM); _t = _t.getNextSibling(); break; } case LEFT: { AST tmp441_AST_in = (AST)_t; match(_t,LEFT); _t = _t.getNextSibling(); break; } case RIGHT: { AST tmp442_AST_in = (AST)_t; match(_t,RIGHT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1444; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } _t = __t1439; _t = _t.getNextSibling(); break; } case WIDTH: { AST __t1447 = _t; AST tmp443_AST_in = (AST)_t; match(_t,WIDTH); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1447; _t = _t.getNextSibling(); break; } case IN_KW: { AST __t1448 = _t; AST tmp444_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp445_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t1448; _t = _t.getNextSibling(); break; } case BGCOLOR: case COLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { colorspecification(_t); _t = _retTree; break; } case AT: { atphrase(_t); _t = _retTree; break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; break; } case TITLE: { titlephrase(_t); _t = _retTree; break; } case With_columns: { AST __t1449 = _t; AST tmp446_AST_in = (AST)_t; match(_t,With_columns); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp447_AST_in = (AST)_t; match(_t,COLUMNS); _t = _t.getNextSibling(); _t = __t1449; _t = _t.getNextSibling(); break; } case With_down: { AST __t1450 = _t; AST tmp448_AST_in = (AST)_t; match(_t,With_down); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp449_AST_in = (AST)_t; match(_t,DOWN); _t = _t.getNextSibling(); _t = __t1450; _t = _t.getNextSibling(); break; } case DOWN: { AST tmp450_AST_in = (AST)_t; match(_t,DOWN); _t = _t.getNextSibling(); break; } case WIDGETID: { widget_id(_t); _t = _retTree; break; } case WITH: { AST tmp451_AST_in = (AST)_t; match(_t,WITH); _t = _t.getNextSibling(); break; } default: { break _loop1451; } } } while (true); } _t = __t1421; _t = _t.getNextSibling(); _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2623,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2623,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3461,
5340,
273,
389,
88,
31,
202,
202,
9053,
1853,
6418,
22,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
9147,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
67,
6498,
3461,
10593,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
1082,
202,
3593,
18816,
2799,
1506,
1777,
30,
1082,
202,
95,
9506,
202,
9053,
1001,
88,
3461,
4366,
273,
389,
88,
31,
9506,
202,
9053,
1853,
6418,
23,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
9506,
202,
1916,
24899,
88,
16,
31414,
2799,
1506,
1777,
1769,
9506,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
9506,
202,
95,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
9506,
202,
430,
14015,
67,
2316,
694,
67,
23,
18,
5990,
24899,
88,
18,
588,
559,
1435,
20349,
288,
6862,
202,
8692,
24899,
88,
1769,
6862,
202,
67,
88,
273,
389,
1349,
2471,
31,
9506,
202,
97,
9506,
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,
2623,
9429,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2623,
9429,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
3461,
5340,
273,
389,
88,
31,
202,
202,
9053,
1853,
6418,
22,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
9147,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
202,
67,
6498,
3461,
10593,
30,
202,
202,
2896,
288,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
2
] |
re = new NativeRegExp(cx, scope, src, opt);
|
re = new NativeRegExp(cx, scope, src, opt, forceFlat);
|
private static Object matchOrReplace(Context cx, Scriptable thisObj, Object[] args, Function funObj, GlobData data) throws JavaScriptException { NativeRegExp re; String str = ScriptRuntime.toString(thisObj); data.str = str; RegExpImpl reImpl = RegExpImpl.getRegExpImpl(cx); Scriptable scope = ScriptableObject.getTopLevelScope(funObj); if (args.length == 0) re = new NativeRegExp(cx, scope, "", ""); else if (args[0] instanceof NativeRegExp) { re = (NativeRegExp) args[0]; } else { String src = ScriptRuntime.toString(args[0]); String opt; if (data.optarg < args.length) { args[0] = src; opt = ScriptRuntime.toString(args[data.optarg]); } else { opt = null; } re = new NativeRegExp(cx, scope, src, opt); } data.regexp = re; data.global = (re.getFlags() & NativeRegExp.GLOB) != 0; int[] indexp = { 0 }; Object result = null; if (data.mode == GlobData.GLOB_SEARCH) { result = re.executeRegExp(funObj, str, indexp, true); if (result != null && result.equals(Boolean.TRUE)) result = new Integer(reImpl.leftContext.length); else result = new Integer(-1); } else if (data.global) { re.setLastIndex(0); for (int count = 0; indexp[0] <= str.length(); count++) { result = re.executeRegExp(funObj, str, indexp, true); if (result == null || !result.equals(Boolean.TRUE)) break; data.doGlobal(funObj, count); if (reImpl.lastMatch.length == 0) { if (indexp[0] == str.length()) break; indexp[0]++; } } } else { result = re.executeRegExp(funObj, str, indexp, data.mode == GlobData.GLOB_REPLACE); } return result; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bcf6134bdea4b7078a51fba9f7ad09d436f5fab3/RegExpImpl.java/buggy/js/rhino/org/mozilla/javascript/regexp/RegExpImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
845,
1162,
5729,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1033,
8526,
833,
16,
4284,
9831,
2675,
16,
29159,
18901,
751,
501,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
16717,
13673,
283,
31,
3639,
514,
609,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
501,
18,
701,
273,
609,
31,
3639,
10679,
2828,
283,
2828,
273,
10679,
2828,
18,
588,
13673,
2828,
12,
71,
92,
1769,
3639,
22780,
2146,
273,
22780,
921,
18,
588,
27046,
3876,
12,
12125,
2675,
1769,
7734,
309,
261,
1968,
18,
2469,
422,
374,
13,
5411,
283,
273,
394,
16717,
13673,
12,
71,
92,
16,
2146,
16,
23453,
1408,
1769,
3639,
469,
5411,
309,
261,
1968,
63,
20,
65,
1276,
16717,
13673,
13,
288,
7734,
283,
273,
261,
9220,
13673,
13,
833,
63,
20,
15533,
5411,
289,
469,
288,
7734,
514,
1705,
273,
7739,
5576,
18,
10492,
12,
1968,
63,
20,
19226,
7734,
514,
2153,
31,
7734,
309,
261,
892,
18,
3838,
3175,
411,
833,
18,
2469,
13,
288,
10792,
833,
63,
20,
65,
273,
1705,
31,
10792,
2153,
273,
7739,
5576,
18,
10492,
12,
1968,
63,
892,
18,
3838,
3175,
19226,
7734,
289,
469,
288,
10792,
2153,
273,
446,
31,
7734,
289,
27573,
283,
273,
394,
16717,
13673,
12,
71,
92,
16,
2146,
16,
1705,
16,
2153,
16,
2944,
16384,
1769,
5411,
289,
3639,
501,
18,
17745,
273,
283,
31,
3639,
501,
18,
6347,
273,
261,
266,
18,
588,
5094,
1435,
473,
16717,
13673,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1033,
845,
1162,
5729,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1033,
8526,
833,
16,
4284,
9831,
2675,
16,
29159,
18901,
751,
501,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
16717,
13673,
283,
31,
3639,
514,
609,
273,
7739,
5576,
18,
10492,
12,
2211,
2675,
1769,
3639,
501,
18,
701,
273,
609,
31,
3639,
10679,
2828,
283,
2828,
273,
10679,
2828,
18,
588,
13673,
2828,
12,
71,
92,
1769,
3639,
22780,
2146,
273,
22780,
921,
18,
588,
27046,
3876,
12,
12125,
2675,
1769,
7734,
309,
261,
1968,
18,
2469,
422,
374,
13,
5411,
283,
273,
394,
16717,
13673,
12,
71,
92,
16,
2146,
16,
23453,
1408,
1769,
3639,
469,
5411,
309,
261,
1968,
63,
2
] |
return new Dimension(d.width + insetsW + iconWidth, d.height + insetsH);
|
return new Dimension(d.width + insetsW + iconWidth, d.height + insetsH); } else return new Dimension(d.width + insetsW + (d.height + insetsH) - 4, d.height + insetsH + 1);
|
public Dimension getMinimumSize(JComponent c) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Icon icon = b.getComboIcon(); Insets insets = b.getInsets(); Dimension d = getDisplaySize(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; int iconWidth = icon.getIconWidth() + 6; return new Dimension(d.width + insetsW + iconWidth, d.height + insetsH); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/MetalComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalComboBoxUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
30665,
1225,
12,
46,
1841,
276,
13,
225,
288,
565,
21604,
287,
22199,
3616,
324,
273,
261,
26365,
22199,
3616,
13,
12274,
3616,
31,
565,
16011,
4126,
273,
324,
18,
588,
16156,
5554,
5621,
565,
22300,
23576,
273,
324,
18,
588,
382,
4424,
5621,
565,
13037,
302,
273,
13854,
1225,
5621,
565,
509,
23576,
44,
273,
23576,
18,
3669,
397,
23576,
18,
9176,
31,
565,
509,
23576,
59,
273,
23576,
18,
4482,
397,
23576,
18,
4083,
31,
565,
509,
4126,
2384,
273,
4126,
18,
588,
5554,
2384,
1435,
397,
1666,
31,
565,
327,
394,
13037,
12,
72,
18,
2819,
397,
23576,
59,
397,
4126,
2384,
16,
2398,
302,
18,
4210,
397,
23576,
44,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
30665,
1225,
12,
46,
1841,
276,
13,
225,
288,
565,
21604,
287,
22199,
3616,
324,
273,
261,
26365,
22199,
3616,
13,
12274,
3616,
31,
565,
16011,
4126,
273,
324,
18,
588,
16156,
5554,
5621,
565,
22300,
23576,
273,
324,
18,
588,
382,
4424,
5621,
565,
13037,
302,
273,
13854,
1225,
5621,
565,
509,
23576,
44,
273,
23576,
18,
3669,
397,
23576,
18,
9176,
31,
565,
509,
23576,
59,
273,
23576,
18,
4482,
397,
23576,
18,
4083,
31,
565,
509,
4126,
2384,
273,
4126,
18,
588,
5554,
2384,
1435,
397,
1666,
31,
565,
327,
394,
13037,
12,
72,
18,
2819,
397,
23576,
59,
397,
4126,
2384,
16,
2398,
302,
18,
4210,
397,
23576,
44,
1769,
225,
289,
2
] |
IResource.NONE, monitor );
|
IResource.NONE, monitor );
|
private void saveFile( final ModuleHandle moduleHandle, final File file, IProgressMonitor monitor ) { IRunnableWithProgress op = new IRunnableWithProgress( ) { public synchronized final void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { try { IWorkspaceRunnable workspaceRunnable = new IWorkspaceRunnable( ) { public void run( IProgressMonitor pm ) throws CoreException { try { execute( pm ); } catch ( CoreException e ) { throw e; } catch ( IOException e ) { ExceptionHandler.handle( e ); } } }; ResourcesPlugin.getWorkspace( ).run( workspaceRunnable, ResourcesPlugin.getWorkspace( ).getRoot( ), IResource.NONE, monitor ); } catch ( CoreException e ) { throw new InvocationTargetException( e ); } catch ( OperationCanceledException e ) { throw new InterruptedException( e.getMessage( ) ); } } public void execute( final IProgressMonitor monitor ) throws CoreException, IOException { if ( file.exists( ) || file.createNewFile( ) ) { FileOutputStream out = new FileOutputStream( file ); moduleHandle.serialize( out ); out.close( ); } } }; try { new ProgressMonitorDialog( UIUtil.getDefaultShell( ) ).run( false, true, op ); } catch ( Exception e ) { ExceptionHandler.handle( e ); } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/0c3229334ab3352862830f19eec73f8815cb56fb/FileReportProvider.java/buggy/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/editors/FileReportProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1923,
812,
12,
727,
5924,
3259,
1605,
3259,
16,
727,
1387,
585,
16,
1082,
202,
45,
5491,
7187,
6438,
262,
202,
95,
202,
202,
45,
20013,
1190,
5491,
1061,
273,
394,
467,
20013,
1190,
5491,
12,
262,
288,
1082,
202,
482,
3852,
727,
918,
1086,
12,
467,
5491,
7187,
6438,
262,
6862,
202,
15069,
15342,
16,
7558,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
45,
8241,
20013,
6003,
20013,
273,
394,
467,
8241,
20013,
12,
262,
288,
25083,
202,
482,
918,
1086,
12,
467,
5491,
7187,
7430,
262,
6862,
9506,
202,
15069,
30015,
25083,
202,
95,
6862,
1082,
202,
698,
6862,
1082,
202,
95,
6862,
9506,
202,
8837,
12,
7430,
11272,
6862,
1082,
202,
97,
6862,
1082,
202,
14683,
261,
30015,
425,
262,
6862,
1082,
202,
95,
6862,
9506,
202,
12849,
425,
31,
6862,
1082,
202,
97,
6862,
1082,
202,
14683,
261,
1860,
425,
262,
6862,
1082,
202,
95,
6862,
9506,
202,
18894,
18,
4110,
12,
425,
11272,
6862,
1082,
202,
97,
25083,
202,
97,
6862,
202,
20451,
6862,
202,
3805,
3773,
18,
588,
8241,
12,
262,
18,
2681,
12,
6003,
20013,
16,
6862,
1082,
202,
3805,
3773,
18,
588,
8241,
12,
262,
18,
588,
2375,
12,
262,
16,
6862,
1082,
202,
45,
1420,
18,
9826,
16,
6438,
11272,
9506,
202,
97,
9506,
202,
14683,
261,
30015,
425,
262,
9506,
202,
95,
6862,
202,
12849,
394,
15342,
12,
425,
11272,
9506,
202,
97,
9506,
202,
14683,
261,
4189,
23163,
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,
1923,
812,
12,
727,
5924,
3259,
1605,
3259,
16,
727,
1387,
585,
16,
1082,
202,
45,
5491,
7187,
6438,
262,
202,
95,
202,
202,
45,
20013,
1190,
5491,
1061,
273,
394,
467,
20013,
1190,
5491,
12,
262,
288,
1082,
202,
482,
3852,
727,
918,
1086,
12,
467,
5491,
7187,
6438,
262,
6862,
202,
15069,
15342,
16,
7558,
1082,
202,
95,
9506,
202,
698,
9506,
202,
95,
6862,
202,
45,
8241,
20013,
6003,
20013,
273,
394,
467,
8241,
20013,
12,
262,
288,
25083,
202,
482,
918,
1086,
12,
467,
5491,
7187,
7430,
262,
6862,
9506,
202,
15069,
30015,
25083,
202,
95,
6862,
1082,
202,
698,
6862,
1082,
202,
95,
6862,
9506,
202,
8837,
12,
7430,
11272,
2
] |
return new MethodDescriptor( name, type, parameters, attributes, attributes );
|
return new MethodDescriptor( name, type, parameters, attributes, attributes );
|
MethodDescriptor buildMethod( final JavaMethod method, final QDoxAttributeInterceptor interceptor ) { final String name = method.getName(); final Type returns = method.getReturns(); final String type; if( null != returns ) { type = returns.getValue(); } else { type = ""; } final Attribute[] originalAttributes = buildAttributes( method, interceptor ); final Attribute[] attributes = interceptor.processMethodAttributes( method, originalAttributes ); final ParameterDescriptor[] parameters = buildParameters( method.getParameters() ); return new MethodDescriptor( name, type, parameters, attributes, attributes ); }
|
6333 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6333/aa8d469ec0fdc5826bad677c510538e34183f336/QDoxDescriptorParser.java/clean/tools/src/java/org/codehaus/metaclass/tools/qdox/QDoxDescriptorParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2985,
3187,
1361,
1305,
12,
727,
5110,
1305,
707,
16,
21394,
727,
2238,
40,
2409,
1499,
10281,
13810,
262,
565,
288,
3639,
727,
514,
508,
273,
707,
18,
17994,
5621,
3639,
727,
1412,
1135,
273,
707,
18,
588,
1356,
5621,
3639,
727,
514,
618,
31,
3639,
309,
12,
446,
480,
1135,
262,
3639,
288,
5411,
618,
273,
1135,
18,
24805,
5621,
3639,
289,
3639,
469,
3639,
288,
5411,
618,
273,
1408,
31,
3639,
289,
3639,
727,
3601,
8526,
2282,
2498,
273,
1361,
2498,
12,
707,
16,
13810,
11272,
3639,
727,
3601,
8526,
1677,
273,
5411,
13810,
18,
2567,
1305,
2498,
12,
707,
16,
2282,
2498,
11272,
3639,
727,
5498,
3187,
8526,
1472,
273,
5411,
1361,
2402,
12,
707,
18,
588,
2402,
1435,
11272,
3639,
327,
394,
2985,
3187,
12,
508,
16,
19694,
618,
16,
19694,
1472,
16,
19694,
1677,
16,
4766,
1377,
1677,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
2985,
3187,
1361,
1305,
12,
727,
5110,
1305,
707,
16,
21394,
727,
2238,
40,
2409,
1499,
10281,
13810,
262,
565,
288,
3639,
727,
514,
508,
273,
707,
18,
17994,
5621,
3639,
727,
1412,
1135,
273,
707,
18,
588,
1356,
5621,
3639,
727,
514,
618,
31,
3639,
309,
12,
446,
480,
1135,
262,
3639,
288,
5411,
618,
273,
1135,
18,
24805,
5621,
3639,
289,
3639,
469,
3639,
288,
5411,
618,
273,
1408,
31,
3639,
289,
3639,
727,
3601,
8526,
2282,
2498,
273,
1361,
2498,
12,
707,
16,
13810,
11272,
3639,
727,
3601,
8526,
1677,
273,
5411,
13810,
18,
2567,
1305,
2498,
12,
707,
16,
2282,
2498,
11272,
3639,
727,
5498,
3187,
8526,
1472,
273,
5411,
1361,
2402,
12,
707,
2
] |
sendRedirect(req, res);
|
if (Validator.isNotNull(cmd)) { sendRedirect(req, res); }
|
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { String cmd = ParamUtil.getString(req, Constants.CMD); try { if (cmd.equals(Constants.ADD) || cmd.equals(Constants.UPDATE)) { updateQuestion(req); } else if (cmd.equals(Constants.DELETE)) { deleteQuestion(req); } sendRedirect(req, res); } catch (Exception e) { if (e != null && e instanceof NoSuchQuestionException || e instanceof PrincipalException) { SessionErrors.add(req, e.getClass().getName()); setForward(req, "portlet.polls.error"); } else if (e != null && e instanceof DuplicateVoteException || e instanceof NoSuchChoiceException || e instanceof QuestionChoiceException || e instanceof QuestionDescriptionException || e instanceof QuestionExpirationDateException || e instanceof QuestionTitleException) { SessionErrors.add(req, e.getClass().getName()); } else { throw e; } } }
|
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/6aa5c2d37af830219ee88ae47f54ec5a79a6b334/EditQuestionAction.java/buggy/portal-ejb/src/com/liferay/portlet/polls/action/EditQuestionAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
1803,
12,
1082,
202,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
21305,
809,
642,
16,
1082,
202,
1803,
691,
1111,
16,
4382,
1064,
400,
13,
202,
202,
15069,
1185,
288,
202,
202,
780,
1797,
273,
3014,
1304,
18,
588,
780,
12,
3658,
16,
5245,
18,
19473,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
4172,
18,
14963,
12,
2918,
18,
8355,
13,
747,
1797,
18,
14963,
12,
2918,
18,
8217,
3719,
288,
9506,
202,
2725,
11665,
12,
3658,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
261,
4172,
18,
14963,
12,
2918,
18,
6460,
3719,
288,
9506,
202,
3733,
11665,
12,
3658,
1769,
1082,
202,
97,
1082,
202,
4661,
5961,
12,
3658,
16,
400,
1769,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
288,
1082,
202,
430,
261,
73,
480,
446,
597,
9506,
202,
73,
1276,
5823,
11665,
503,
747,
9506,
202,
73,
1276,
17010,
503,
13,
288,
9506,
202,
2157,
4229,
18,
1289,
12,
3658,
16,
425,
18,
588,
797,
7675,
17994,
10663,
9506,
202,
542,
8514,
12,
3658,
16,
315,
655,
1810,
18,
3915,
3251,
18,
1636,
8863,
1082,
202,
97,
1082,
202,
12107,
309,
261,
73,
480,
446,
597,
25083,
425,
1276,
19072,
19338,
503,
747,
25083,
425,
1276,
5823,
10538,
503,
747,
25083,
425,
1276,
18267,
10538,
503,
747,
25083,
425,
1276,
18267,
3291,
503,
747,
25083,
425,
1276,
18267,
12028,
1626,
503,
747,
25083,
425,
1276,
18267,
4247,
503,
13,
288,
9506,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1207,
1803,
12,
1082,
202,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
21305,
809,
642,
16,
1082,
202,
1803,
691,
1111,
16,
4382,
1064,
400,
13,
202,
202,
15069,
1185,
288,
202,
202,
780,
1797,
273,
3014,
1304,
18,
588,
780,
12,
3658,
16,
5245,
18,
19473,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
4172,
18,
14963,
12,
2918,
18,
8355,
13,
747,
1797,
18,
14963,
12,
2918,
18,
8217,
3719,
288,
9506,
202,
2725,
11665,
12,
3658,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
261,
4172,
18,
14963,
12,
2918,
18,
6460,
3719,
288,
9506,
202,
3733,
11665,
12,
3658,
1769,
1082,
202,
97,
1082,
202,
4661,
5961,
12,
3658,
2
] |
new RequiredTextField<Double>(this, "doubleProperty", Double.class); new RequiredTextField<Integer>(this, "integerInRangeProperty", Integer.class)
|
new TextField<Double>(this, "doubleProperty", Double.class).setRequired(true); new TextField<Integer>(this, "integerInRangeProperty", Integer.class).setRequired(true)
|
public InputForm(final MarkupContainer parent, final String name) { super(parent, name, new CompoundPropertyModel<FormInputModel>(new FormInputModel())); // Dropdown for selecting locale new LocaleDropDownChoice(this, "localeSelect"); // Link to return to default locale new Link(this, "defaultLocaleLink") { @Override public void onClick() { WebRequest request = (WebRequest)getRequest(); setLocale(request.getLocale()); } }; RequiredTextField stringTextField = new RequiredTextField<String>(this, "stringProperty"); stringTextField.setLabel(new Model<String>("String")); RequiredTextField integerTextField = new RequiredTextField<Integer>(this, "integerProperty", Integer.class); integerTextField.add(NumberValidator.POSITIVE); new RequiredTextField<Double>(this, "doubleProperty", Double.class); new RequiredTextField<Integer>(this, "integerInRangeProperty", Integer.class) .add(NumberValidator.range(0, 100)); new CheckBox(this, "booleanProperty"); new Multiply(this, "multiply"); new Label(this, "multiplyLabel", new PropertyModel(getModel(), "multiply")); RadioChoice<String> rc = new RadioChoice<String>(this, "numberRadioChoice", NUMBERS) .setSuffix(""); rc.setLabel(new Model<String>("number")); rc.setRequired(true); RadioGroup group = new RadioGroup(this, "numbersGroup"); new ListView<String>(group, "numbers", NUMBERS) { @Override protected void populateItem(final ListItem<String> item) { new Radio<String>(item, "radio", item.getModel()); new Label(item, "number", item.getModelObject()); }; }; CheckGroup checks = new CheckGroup(this, "numbersCheckGroup"); new ListView<String>(checks, "numbers", NUMBERS) { @Override protected void populateItem(final ListItem<String> item) { new Check<String>(item, "check", item.getModel()); new Label(item, "number", item.getModelObject()); }; }; new ListMultipleChoice<String>(this, "siteSelection", SITES); // TextField using a custom converter. new TextField<URL>(this, "urlProperty", URL.class) { /** * @see wicket.Component#getConverter(java.lang.Class) */ @Override public IConverter getConverter(final Class type) { return new SimpleConverterAdapter() { @Override public Object toObject(final String value) { try { return new URL(value.toString()); } catch (MalformedURLException e) { throw new ConversionException("'" + value + "' is not a valid URL"); } } @Override public String toString(final Object value) { return value != null ? value.toString() : null; } }; } }; // TextField using a mask converter new TextField<UsPhoneNumber>(this, "phoneNumberUS", UsPhoneNumber.class) { /** * @see wicket.Component#getConverter(java.lang.Class) */ @Override public IConverter getConverter(final Class type) { // US telephone number mask return new MaskConverter("(###) ###-####", UsPhoneNumber.class); } }; // and this is to show we can nest ListViews in Forms too new LinesListView(this, "lines"); new Button<String>(this, "saveButton", new ResourceModel("save")) { @Override public void onSubmit() { // need to do nothing for this example here } }; new Button<String>(this, "resetButton", new ResourceModel("reset")) { @Override public void onSubmit() { // trigger reload InputForm.this.modelChanged(); } }.setDefaultFormProcessing(false); // set default form processing so that only this button's // submit method will be called }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/f1126e985810d916caa142189e1e004517e6b363/FormInput.java/clean/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
2741,
1204,
12,
6385,
26420,
2170,
982,
16,
727,
514,
508,
13,
202,
202,
95,
1082,
202,
9565,
12,
2938,
16,
508,
16,
394,
21327,
1396,
1488,
32,
1204,
1210,
1488,
34,
12,
2704,
2748,
1210,
1488,
1435,
10019,
1082,
202,
759,
10895,
2378,
364,
24674,
2573,
1082,
202,
2704,
6458,
7544,
4164,
10538,
12,
2211,
16,
315,
6339,
3391,
8863,
1082,
202,
759,
4048,
358,
327,
358,
805,
2573,
1082,
202,
2704,
4048,
12,
2211,
16,
315,
1886,
3916,
2098,
7923,
1082,
202,
95,
9506,
202,
36,
6618,
9506,
202,
482,
918,
18296,
1435,
9506,
202,
95,
6862,
202,
4079,
691,
590,
273,
261,
4079,
691,
13,
588,
691,
5621,
6862,
202,
542,
3916,
12,
2293,
18,
588,
3916,
10663,
9506,
202,
97,
1082,
202,
20451,
1082,
202,
3705,
16157,
533,
16157,
273,
394,
10647,
16157,
32,
780,
34,
12,
2211,
16,
6862,
202,
6,
1080,
1396,
8863,
1082,
202,
1080,
16157,
18,
542,
2224,
12,
2704,
3164,
32,
780,
34,
2932,
780,
7923,
1769,
1082,
202,
3705,
16157,
3571,
16157,
273,
394,
10647,
16157,
32,
4522,
34,
12,
2211,
16,
6862,
202,
6,
7745,
1396,
3113,
2144,
18,
1106,
1769,
1082,
202,
7745,
16157,
18,
1289,
12,
1854,
5126,
18,
7057,
16325,
1769,
1082,
202,
2704,
10647,
16157,
32,
5265,
34,
12,
2211,
16,
315,
9056,
1396,
3113,
3698,
18,
1106,
1769,
1082,
202,
2704,
10647,
16157,
32,
4522,
34,
12,
2211,
16,
315,
7745,
25277,
1396,
3113,
2144,
18,
1106,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
2741,
1204,
12,
6385,
26420,
2170,
982,
16,
727,
514,
508,
13,
202,
202,
95,
1082,
202,
9565,
12,
2938,
16,
508,
16,
394,
21327,
1396,
1488,
32,
1204,
1210,
1488,
34,
12,
2704,
2748,
1210,
1488,
1435,
10019,
1082,
202,
759,
10895,
2378,
364,
24674,
2573,
1082,
202,
2704,
6458,
7544,
4164,
10538,
12,
2211,
16,
315,
6339,
3391,
8863,
1082,
202,
759,
4048,
358,
327,
358,
805,
2573,
1082,
202,
2704,
4048,
12,
2211,
16,
315,
1886,
3916,
2098,
7923,
1082,
202,
95,
9506,
202,
36,
6618,
9506,
202,
482,
918,
18296,
1435,
9506,
202,
95,
6862,
202,
4079,
691,
590,
273,
261,
4079,
691,
13,
588,
691,
5621,
6862,
202,
542,
3916,
12,
2
] |
fMenu = buildMenu("menus.xml", Util.MergeActions(actions, fFolderPanel.getActions()));
|
XMLMenuBuilder builder = new XMLMenuBuilder(Util.MergeActions(actions, fFolderPanel.getActions())); fMenu = builder.buildFrom("ui/menus.xml", this);
|
public FolderFrame(Folder aFolder) { super("folderFrameLabel", "folder"); fFolderPanel = new FolderPanel(); fFolderPanel.addFolderPanelListener(new MessageSelectionListener()); fPanel.add(fFolderPanel); // fMenu = buildMenu("folderMain", Util.MergeActions(actions, // fFolderPanel.getActions())); fMenu = buildMenu("menus.xml", Util.MergeActions(actions, fFolderPanel.getActions())); getRootPane().setJMenuBar(fMenu); fToolBar = fFolderPanel.getToolBar(); // fToolBar.addItem(ToolbarFactory.MakeINSToolbarItem(ToolBarLayout.CreateSpring(), // null));// fToolBar.addItem(ToolbarFactory.MakeINSToolbarItem(fAnimation, null)); fToolBarPanel.add(fToolBar); fStatusBar = buildStatusBar(); fPanel.add(BorderLayout.SOUTH, fStatusBar); setFolder(aFolder); fFolderFrames.addElement(this); restoreBounds(); }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/FolderFrame.java/buggy/grendel/sources/grendel/ui/FolderFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
12623,
3219,
12,
3899,
279,
3899,
13,
288,
565,
2240,
2932,
5609,
3219,
2224,
3113,
315,
5609,
8863,
565,
284,
3899,
5537,
273,
394,
12623,
5537,
5621,
565,
284,
3899,
5537,
18,
1289,
3899,
5537,
2223,
12,
2704,
2350,
6233,
2223,
10663,
565,
284,
5537,
18,
1289,
12,
74,
3899,
5537,
1769,
565,
368,
565,
284,
4599,
273,
1361,
4599,
2932,
5609,
6376,
3113,
3564,
18,
6786,
6100,
12,
4905,
16,
565,
368,
4766,
2398,
284,
3899,
5537,
18,
588,
6100,
1435,
10019,
565,
284,
4599,
273,
1361,
4599,
2932,
26065,
18,
2902,
3113,
8227,
3564,
18,
6786,
6100,
12,
4905,
16,
284,
3899,
5537,
18,
588,
6100,
1435,
10019,
565,
7656,
8485,
7675,
542,
46,
4599,
5190,
12,
74,
4599,
1769,
565,
284,
6364,
5190,
273,
284,
3899,
5537,
18,
588,
6364,
5190,
5621,
565,
368,
225,
284,
6364,
5190,
18,
1289,
1180,
12,
17907,
1733,
18,
6464,
706,
55,
17907,
1180,
12,
6364,
5190,
3744,
18,
1684,
55,
11638,
9334,
565,
368,
4766,
15604,
446,
10019,
759,
284,
6364,
5190,
18,
1289,
1180,
12,
17907,
1733,
18,
6464,
706,
55,
17907,
1180,
12,
74,
10816,
16,
446,
10019,
565,
284,
6364,
5190,
5537,
18,
1289,
12,
74,
6364,
5190,
1769,
565,
284,
1482,
5190,
273,
1361,
1482,
5190,
5621,
565,
284,
5537,
18,
1289,
12,
8107,
3744,
18,
3584,
5844,
16,
284,
1482,
5190,
1769,
565,
444,
3899,
12,
69,
3899,
1769,
565,
284,
3899,
15162,
18,
1289,
1046,
12,
2211,
1769,
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,
12623,
3219,
12,
3899,
279,
3899,
13,
288,
565,
2240,
2932,
5609,
3219,
2224,
3113,
315,
5609,
8863,
565,
284,
3899,
5537,
273,
394,
12623,
5537,
5621,
565,
284,
3899,
5537,
18,
1289,
3899,
5537,
2223,
12,
2704,
2350,
6233,
2223,
10663,
565,
284,
5537,
18,
1289,
12,
74,
3899,
5537,
1769,
565,
368,
565,
284,
4599,
273,
1361,
4599,
2932,
5609,
6376,
3113,
3564,
18,
6786,
6100,
12,
4905,
16,
565,
368,
4766,
2398,
284,
3899,
5537,
18,
588,
6100,
1435,
10019,
565,
284,
4599,
273,
1361,
4599,
2932,
26065,
18,
2902,
3113,
8227,
3564,
18,
6786,
6100,
12,
4905,
16,
284,
3899,
5537,
18,
588,
6100,
1435,
10019,
565,
7656,
8485,
7675,
542,
46,
4599,
2
] |
public Pair<Integer,Integer> getSelection() { return _sel; }
|
public Pair<Integer,Integer> getSelection() { return _sel; }
|
public Pair<Integer,Integer> getSelection() { return _sel; }
|
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/94ede5fc3e289a571a76fcd6a91c26510fe57b12/DocFile.java/buggy/drjava/src/edu/rice/cs/drjava/project/DocFile.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8599,
32,
4522,
16,
4522,
34,
23204,
1435,
288,
565,
327,
389,
1786,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8599,
32,
4522,
16,
4522,
34,
23204,
1435,
288,
565,
327,
389,
1786,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= args.length) stack[VAR_SHFT + i] = undefined; else
|
int definedArgs = theData.itsVariableTable.getParameterCount(); if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) {
|
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); final int maxLocals = theData.itsMaxLocals; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; // stack[0 <= i < VAR_SHFT]: stack data // stack[VAR_SHFT <= i < LOCAL_SHFT]: variables // stack[LOCAL_SHFT <= i]: // used for newtemp/usetemp etc. // id stack[x] == DBL_MRK, real value for stack[x] is in sDbl[x] final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[LOCAL_SHFT + maxLocals]; double[] sDbl = new double[LOCAL_SHFT + maxLocals]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= args.length) stack[VAR_SHFT + i] = undefined; else stack[VAR_SHFT + i] = args[i]; } for ( ; i < maxVars; i++) stack[VAR_SHFT + i] = undefined; } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (theData.itsMaxTryDepth > 0) { // catchStack[2 * i]: catch data // catchStack[2 * i + 1]: finally data catchStack = new int[theData.itsMaxTryDepth * 2]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, ee.getErrorObject()); // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw ee; } } stack[0] = ee.getErrorObject(); } else { if (frame != null) cx.popFrame(); throw ee; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, ScriptRuntime.unwrapJavaScriptException(jsx)); } stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jsx; } stack[0] = jsx; } else { stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } } else { if (frame != null) cx.popFrame(); throw jsx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, jx); cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = catchStack[--tryStackTop * 2 + 1]; scope = scopeStack[tryStackTop]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jx; } } else { if (frame != null) cx.popFrame(); throw jx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); return result; }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/bee05de110e688522361fc733e5ee8210b9508c9/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
7734,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
540,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
31,
540,
368,
2110,
63,
20,
1648,
277,
411,
8350,
67,
2664,
4464,
14542,
2110,
501,
3639,
368,
2110,
63,
7716,
67,
2664,
4464,
1648,
277,
411,
15234,
67,
2664,
4464,
14542,
3152,
3639,
368,
2110,
63,
14922,
67,
2664,
4464,
1648,
277,
14542,
225,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
368,
612,
2110,
63,
92,
65,
422,
2383,
48,
67,
23464,
47,
16,
2863,
460,
364,
2110,
63,
92,
65,
353,
316,
272,
40,
3083,
63,
92,
65,
7734,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
7734,
1033,
8526,
2110,
273,
394,
1033,
63,
14922,
67,
2664,
4464,
397,
943,
1333,
1031,
15533,
3639,
1645,
8526,
272,
40,
3083,
273,
394,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
4766,
565,
22780,
15261,
16,
1033,
8526,
833,
16,
4766,
565,
22780,
2295,
1162,
3651,
16,
4766,
282,
5294,
11599,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
509,
277,
31,
3639,
1033,
8499,
31,
3639,
727,
509,
943,
2624,
273,
326,
751,
18,
1282,
2747,
2624,
31,
3639,
727,
509,
943,
5555,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
727,
509,
943,
1333,
1031,
273,
326,
751,
18,
1282,
2747,
1333,
1031,
31,
7734,
727,
509,
8350,
67,
2664,
4464,
273,
943,
2624,
31,
540,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
67,
2664,
4464,
397,
943,
5555,
2
] |
if (base <= provisionalTop) return deq[provisionalTop & (deq.length-1)].take(); else { /* Reset DEQ indices to zero whenever it is empty. This both avoids unnecessary calls to checkOverflow in push, and helps keep the DEQ from accumulating garbage */
|
if (base <= provisionalTop) return deq[provisionalTop & (deq.length - 1)].take(); else { /* Reset DEQ indices to zero whenever it is empty. This both avoids unnecessary calls to checkOverflow in push, and helps keep the DEQ from accumulating garbage */
|
protected final synchronized FJTask confirmPop(int provisionalTop) { if (base <= provisionalTop) return deq[provisionalTop & (deq.length-1)].take(); else { // was empty /* Reset DEQ indices to zero whenever it is empty. This both avoids unnecessary calls to checkOverflow in push, and helps keep the DEQ from accumulating garbage */ top = base = 0; return null; } }
|
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/FJTaskRunner.java/clean/src/java/org/logicalcobwebs/concurrent/FJTaskRunner.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
3852,
478,
46,
2174,
6932,
7049,
12,
474,
10595,
287,
3401,
13,
288,
565,
309,
261,
1969,
1648,
10595,
287,
3401,
13,
4202,
327,
443,
85,
63,
17051,
287,
3401,
473,
261,
323,
85,
18,
2469,
17,
21,
13,
8009,
22188,
5621,
565,
469,
288,
565,
368,
1703,
1008,
1377,
1748,
3639,
7151,
2030,
53,
4295,
358,
3634,
17334,
518,
353,
1008,
18,
3639,
1220,
3937,
24192,
19908,
4097,
358,
866,
15526,
3639,
316,
1817,
16,
471,
21814,
3455,
326,
2030,
53,
628,
8822,
1776,
15340,
1377,
1195,
1377,
1760,
273,
1026,
273,
374,
31,
1377,
327,
446,
31,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
727,
3852,
478,
46,
2174,
6932,
7049,
12,
474,
10595,
287,
3401,
13,
288,
565,
309,
261,
1969,
1648,
10595,
287,
3401,
13,
4202,
327,
443,
85,
63,
17051,
287,
3401,
473,
261,
323,
85,
18,
2469,
17,
21,
13,
8009,
22188,
5621,
565,
469,
288,
565,
368,
1703,
1008,
1377,
1748,
3639,
7151,
2030,
53,
4295,
358,
3634,
17334,
518,
353,
1008,
18,
3639,
1220,
3937,
24192,
19908,
4097,
358,
866,
15526,
3639,
316,
1817,
16,
471,
21814,
3455,
326,
2030,
53,
628,
8822,
1776,
15340,
1377,
1195,
1377,
1760,
273,
1026,
273,
374,
31,
1377,
327,
446,
31,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
InetAddress addr;
|
FreenetInetAddress addr;
|
public void set(String val) throws InvalidConfigValueException { // FIXME do we need to tell anyone? if(val.length() == 0) { // Set to null overrideIPAddress = null; lastIPAddress = null; redetectAddress(); shouldInsertARK(); return; } InetAddress addr; try { addr = InetAddress.getByName(val); } catch (UnknownHostException e) { throw new InvalidConfigValueException("Unknown host: "+e.getMessage()); } overrideIPAddress = addr; lastIPAddress = null; redetectAddress(); shouldInsertARK(); }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/474d190c633c367c5c3ff7fbe0f75a1ea669294b/Node.java/buggy/src/freenet/node/Node.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
444,
12,
780,
1244,
13,
1216,
1962,
809,
9738,
288,
9506,
202,
759,
9852,
741,
732,
1608,
358,
9276,
1281,
476,
35,
9506,
202,
430,
12,
1125,
18,
2469,
1435,
422,
374,
13,
288,
6862,
202,
759,
1000,
358,
446,
6862,
202,
10601,
22507,
273,
446,
31,
6862,
202,
2722,
22507,
273,
446,
31,
6862,
202,
1118,
278,
386,
1887,
5621,
6862,
202,
13139,
4600,
9584,
5621,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
382,
278,
1887,
3091,
31,
9506,
202,
698,
288,
6862,
202,
4793,
273,
14218,
18,
588,
5911,
12,
1125,
1769,
9506,
202,
97,
1044,
261,
4874,
29776,
425,
13,
288,
6862,
202,
12849,
394,
1962,
809,
9738,
2932,
4874,
1479,
30,
13773,
73,
18,
24906,
10663,
9506,
202,
97,
9506,
202,
10601,
22507,
273,
3091,
31,
9506,
202,
2722,
22507,
273,
446,
31,
9506,
202,
1118,
278,
386,
1887,
5621,
9506,
202,
13139,
4600,
9584,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
444,
12,
780,
1244,
13,
1216,
1962,
809,
9738,
288,
9506,
202,
759,
9852,
741,
732,
1608,
358,
9276,
1281,
476,
35,
9506,
202,
430,
12,
1125,
18,
2469,
1435,
422,
374,
13,
288,
6862,
202,
759,
1000,
358,
446,
6862,
202,
10601,
22507,
273,
446,
31,
6862,
202,
2722,
22507,
273,
446,
31,
6862,
202,
1118,
278,
386,
1887,
5621,
6862,
202,
13139,
4600,
9584,
5621,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
382,
278,
1887,
3091,
31,
9506,
202,
698,
288,
6862,
202,
4793,
273,
14218,
18,
588,
5911,
12,
1125,
1769,
9506,
202,
97,
1044,
261,
4874,
29776,
425,
13,
288,
6862,
202,
12849,
394,
1962,
809,
9738,
2932,
4874,
2
] |
} else if ( name.equals( "CH2B_MEDIAN" ) || name.equals( "CH2_BKD" ) ) {
|
} else if ( name.equals( "CH2B_MEDIAN" ) || name.equals( "CH2_BKD" ) || name.toLowerCase().matches( "b635[\\s_\\.](mean|median)" ) || name.equals( "BACKGROUND_CHANNEL 2MEDIAN" ) || name.equals( "R_BG_MEDIAN" ) ) {
|
public Collection<DesignElementDataVector> computeMissingValues( ExpressionExperiment expExp, double signalToNoiseThreshold ) { Collection<DesignElementDataVector> allVectors = expExp.getDesignElementDataVectors(); Collection<DesignElementDataVector> finalResults = new HashSet<DesignElementDataVector>(); Collection<BioAssayDimension> dimensions = new HashSet<BioAssayDimension>(); for ( DesignElementDataVector vector : allVectors ) { dimensions.add( vector.getBioAssayDimension() ); } QuantitationType signalChannelA = null; QuantitationType signalChannelB = null; QuantitationType backgroundChannelA = null; QuantitationType backgroundChannelB = null; // FIXME this only supports Genepix and QuantArray data, and in a very primitive way. for ( DesignElementDataVector vector : allVectors ) { QuantitationType qType = vector.getQuantitationType(); String name = qType.getName(); // if ( qType.getType().equals( StandardQuantitationType.MEASUREDSIGNAL ) ) { // if ( qType.getIsBackground() == true ) { if ( name.equals( "CH1B_MEDIAN" ) || name.equals( "CH1_BKD" ) ) { backgroundChannelA = qType; } else if ( name.equals( "CH2B_MEDIAN" ) || name.equals( "CH2_BKD" ) ) { backgroundChannelB = qType; } else // } else { if ( name.equals( "CH1I_MEDIAN" ) || name.equals( "CH1_MEAN" ) ) { signalChannelA = qType; } else if ( name.equals( "CH2I_MEDIAN" ) || name.equals( "CH2_MEAN" ) ) { signalChannelB = qType; } // } // } if ( signalChannelA != null && signalChannelB != null && backgroundChannelA != null && backgroundChannelB != null ) { break; // no need to go through them all. } } if ( !( signalChannelA != null && signalChannelB != null && backgroundChannelA != null && backgroundChannelB != null ) ) { throw new IllegalStateException( "Could not determine all the signals and backgrounds" ); } for ( BioAssayDimension bioAssayDimension : dimensions ) { ExpressionDataDoubleMatrix signalDataA = new ExpressionDataDoubleMatrix( expExp, signalChannelA ); ExpressionDataDoubleMatrix signalDataB = new ExpressionDataDoubleMatrix( expExp, signalChannelB ); ExpressionDataDoubleMatrix bkgDataA = new ExpressionDataDoubleMatrix( expExp, backgroundChannelA ); ExpressionDataDoubleMatrix bkgDataB = new ExpressionDataDoubleMatrix( expExp, backgroundChannelB ); Collection<DesignElementDataVector> dimRes = computeMissingValues( expExp, bioAssayDimension, signalDataA, signalDataB, bkgDataA, bkgDataB, signalToNoiseThreshold ); finalResults.addAll( dimRes ); } return finalResults; }
|
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/0a7df6ffaf96f0be21e35e75c60352550d94315a/TwoChannelMissingValues.java/buggy/gemma-core/src/main/java/ubic/gemma/analysis/preprocess/TwoChannelMissingValues.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
32,
15478,
1046,
751,
5018,
34,
3671,
4841,
1972,
12,
5371,
22338,
1329,
2966,
16,
5411,
1645,
4277,
774,
2279,
784,
7614,
262,
288,
3639,
2200,
32,
15478,
1046,
751,
5018,
34,
777,
21680,
273,
1329,
2966,
18,
588,
15478,
1046,
751,
21680,
5621,
3639,
2200,
32,
15478,
1046,
751,
5018,
34,
727,
3447,
273,
394,
6847,
32,
15478,
1046,
751,
5018,
34,
5621,
3639,
2200,
32,
38,
1594,
2610,
528,
8611,
34,
5769,
273,
394,
6847,
32,
38,
1594,
2610,
528,
8611,
34,
5621,
3639,
364,
261,
29703,
1046,
751,
5018,
3806,
294,
777,
21680,
262,
288,
5411,
5769,
18,
1289,
12,
3806,
18,
588,
38,
1594,
2610,
528,
8611,
1435,
11272,
3639,
289,
3639,
4783,
970,
8773,
559,
4277,
2909,
37,
273,
446,
31,
3639,
4783,
970,
8773,
559,
4277,
2909,
38,
273,
446,
31,
3639,
4783,
970,
8773,
559,
5412,
2909,
37,
273,
446,
31,
3639,
4783,
970,
8773,
559,
5412,
2909,
38,
273,
446,
31,
3639,
368,
9852,
333,
1338,
6146,
10938,
881,
697,
471,
4783,
970,
1076,
501,
16,
471,
316,
279,
8572,
8225,
4031,
18,
3639,
364,
261,
29703,
1046,
751,
5018,
3806,
294,
777,
21680,
262,
288,
5411,
4783,
970,
8773,
559,
1043,
559,
273,
3806,
18,
588,
19471,
8773,
559,
5621,
5411,
514,
508,
273,
1043,
559,
18,
17994,
5621,
5411,
368,
309,
261,
1043,
559,
18,
588,
559,
7675,
14963,
12,
8263,
19471,
8773,
559,
18,
28964,
40,
11260,
1013,
262,
262,
288,
5411,
368,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
32,
15478,
1046,
751,
5018,
34,
3671,
4841,
1972,
12,
5371,
22338,
1329,
2966,
16,
5411,
1645,
4277,
774,
2279,
784,
7614,
262,
288,
3639,
2200,
32,
15478,
1046,
751,
5018,
34,
777,
21680,
273,
1329,
2966,
18,
588,
15478,
1046,
751,
21680,
5621,
3639,
2200,
32,
15478,
1046,
751,
5018,
34,
727,
3447,
273,
394,
6847,
32,
15478,
1046,
751,
5018,
34,
5621,
3639,
2200,
32,
38,
1594,
2610,
528,
8611,
34,
5769,
273,
394,
6847,
32,
38,
1594,
2610,
528,
8611,
34,
5621,
3639,
364,
261,
29703,
1046,
751,
5018,
3806,
294,
777,
21680,
262,
288,
5411,
5769,
18,
1289,
12,
3806,
18,
588,
38,
1594,
2610,
528,
8611,
1435,
11272,
3639,
289,
3639,
2
] |
}catch(RemarshalException rem){
|
} catch(RemarshalException rem) {
|
private void _invoke( boolean response_expected ) { while (true) { org.jacorb.orb.Delegate deleg = (org.jacorb.orb.Delegate)((org.omg.CORBA.portable.ObjectImpl)target)._get_delegate(); RequestOutputStream ros = (RequestOutputStream) deleg.request(target, operation, response_expected); ros.setRequest(this); for( Iterator it = ((org.jacorb.orb.NVList)arguments).iterator(); it.hasNext();) { org.jacorb.orb.NamedValue nv = (org.jacorb.orb.NamedValue)it.next(); if( nv.flags() != org.omg.CORBA.ARG_OUT.value ) { nv.send(ros); } } try { reply = deleg.invoke(target, ros); if( response_expected ) { _read_result(); if (info != null) { info.setResult (result_value.value()); InterceptorManager manager = orb.getInterceptorManager(); info.setCurrent (manager.getCurrent()); try{ deleg.invokeInterceptors(info, ClientInterceptorIterator.RECEIVE_REPLY); }catch(RemarshalException rem){ //not allowed to happen here anyway } info = null; } } } catch (RemarshalException rem) { // Try again continue; } catch (ApplicationException ae) { org.omg.CORBA.Any any; org.omg.CORBA.TypeCode tc; String id = ae.getId (); int count = exceptions.count (); for (int i = 0; i < count; i++) { try { tc = exceptions.item (i); if (id.equals (tc.id ())) { any = orb.create_any (); any.read_value (ae.getInputStream (), tc); env.exception (new org.omg.CORBA.UnknownUserException (any)); break; } } catch (org.omg.CORBA.TypeCodePackage.BadKind ex) { // ignored } catch (org.omg.CORBA.Bounds ex) { break; } } break; } catch (Exception e) { env.exception (e); break; } break; } }
|
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7dc258e1d898c133fa8113c1af1594d926e8ccff/Request.java/buggy/src/org/jacorb/orb/dii/Request.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
389,
14407,
12,
1250,
766,
67,
3825,
262,
565,
288,
3639,
1323,
261,
3767,
13,
3639,
288,
5411,
2358,
18,
31390,
16640,
18,
16640,
18,
9586,
11158,
273,
7734,
261,
3341,
18,
31390,
16640,
18,
16640,
18,
9586,
13,
12443,
3341,
18,
362,
75,
18,
9428,
12536,
18,
655,
429,
18,
921,
2828,
13,
3299,
2934,
67,
588,
67,
22216,
5621,
5411,
1567,
4632,
721,
87,
273,
261,
691,
4632,
13,
7734,
11158,
18,
2293,
12,
3299,
16,
1674,
16,
766,
67,
3825,
1769,
5411,
721,
87,
18,
542,
691,
12,
2211,
1769,
5411,
364,
12,
4498,
518,
273,
14015,
3341,
18,
31390,
16640,
18,
16640,
18,
11679,
682,
13,
7099,
2934,
9838,
5621,
518,
18,
5332,
2134,
5621,
13,
5411,
288,
7734,
2358,
18,
31390,
16640,
18,
16640,
18,
7604,
620,
8779,
273,
261,
3341,
18,
31390,
16640,
18,
16640,
18,
7604,
620,
13,
305,
18,
4285,
5621,
7734,
309,
12,
8779,
18,
7133,
1435,
480,
2358,
18,
362,
75,
18,
9428,
12536,
18,
10973,
67,
5069,
18,
1132,
262,
7734,
288,
10792,
8779,
18,
4661,
12,
6973,
1769,
7734,
289,
5411,
289,
5411,
775,
5411,
288,
7734,
4332,
273,
11158,
18,
14407,
12,
3299,
16,
721,
87,
1769,
7734,
309,
12,
766,
67,
3825,
262,
7734,
288,
10792,
389,
896,
67,
2088,
5621,
10792,
309,
261,
1376,
480,
446,
13,
10792,
288,
13491,
1123,
18,
542,
1253,
261,
2088,
67,
1132,
18,
1132,
10663,
13491,
23499,
1318,
3301,
273,
16823,
18,
588,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
389,
14407,
12,
1250,
766,
67,
3825,
262,
565,
288,
3639,
1323,
261,
3767,
13,
3639,
288,
5411,
2358,
18,
31390,
16640,
18,
16640,
18,
9586,
11158,
273,
7734,
261,
3341,
18,
31390,
16640,
18,
16640,
18,
9586,
13,
12443,
3341,
18,
362,
75,
18,
9428,
12536,
18,
655,
429,
18,
921,
2828,
13,
3299,
2934,
67,
588,
67,
22216,
5621,
5411,
1567,
4632,
721,
87,
273,
261,
691,
4632,
13,
7734,
11158,
18,
2293,
12,
3299,
16,
1674,
16,
766,
67,
3825,
1769,
5411,
721,
87,
18,
542,
691,
12,
2211,
1769,
5411,
364,
12,
4498,
518,
273,
14015,
3341,
18,
31390,
16640,
18,
16640,
18,
11679,
682,
13,
7099,
2934,
9838,
5621,
518,
18,
2
] |
public float getOmega() { return omega; }
|
public float getOmega() { return omega; }
|
public float getOmega() { return omega; }
|
1612 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1612/0330f8331b2038088807459d5ce9cf7280175c10/ITrack.java/buggy/src/java/hep/lcio/implementation/event/ITrack.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1431,
17971,
81,
11061,
1435,
288,
202,
202,
2463,
17220,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1431,
17971,
81,
11061,
1435,
288,
202,
202,
2463,
17220,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return new IntegerToken( IToken.tINTEGER, Integer.parseInt( value ), scannerData.getContextStack() );
|
return new IntegerToken( IToken.tINTEGER, Long.parseLong( value ), scannerData.getContextStack() );
|
public static IToken createIntegerToken( String value, IScannerData scannerData ) { if( value.length() > 15 ) return createUniquelyImagedToken( IToken.tINTEGER, value, scannerData ); if( scannerData.getContextStack().getCurrentContext().getKind() == IScannerContext.ContextKind.MACROEXPANSION ) return new IntegerExpansionToken( IToken.tINTEGER, Integer.parseInt(value ), scannerData.getContextStack() ); return new IntegerToken( IToken.tINTEGER, Integer.parseInt( value ), scannerData.getContextStack() ); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/b1157be81cef49a3ce5d885cff5418b2483b0399/TokenFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/token/TokenFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
1345,
752,
4522,
1345,
12,
514,
460,
16,
467,
11338,
751,
7683,
751,
262,
202,
95,
202,
202,
430,
12,
460,
18,
2469,
1435,
405,
4711,
262,
1082,
202,
2463,
752,
984,
18988,
2357,
1170,
11349,
1345,
12,
467,
1345,
18,
88,
14217,
16,
460,
16,
7683,
751,
11272,
202,
202,
430,
12,
7683,
751,
18,
29120,
2624,
7675,
588,
3935,
1042,
7675,
588,
5677,
1435,
422,
467,
11338,
1042,
18,
1042,
5677,
18,
10875,
1457,
16109,
1258,
3686,
262,
1082,
202,
2463,
394,
2144,
2966,
12162,
1345,
12,
467,
1345,
18,
88,
14217,
16,
2144,
18,
2670,
1702,
12,
1132,
262,
16,
7683,
751,
18,
29120,
2624,
1435,
11272,
6862,
202,
2463,
394,
2144,
1345,
12,
467,
1345,
18,
88,
14217,
16,
2144,
18,
2670,
1702,
12,
460,
262,
16,
7683,
751,
18,
29120,
2624,
1435,
11272,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
1345,
752,
4522,
1345,
12,
514,
460,
16,
467,
11338,
751,
7683,
751,
262,
202,
95,
202,
202,
430,
12,
460,
18,
2469,
1435,
405,
4711,
262,
1082,
202,
2463,
752,
984,
18988,
2357,
1170,
11349,
1345,
12,
467,
1345,
18,
88,
14217,
16,
460,
16,
7683,
751,
11272,
202,
202,
430,
12,
7683,
751,
18,
29120,
2624,
7675,
588,
3935,
1042,
7675,
588,
5677,
1435,
422,
467,
11338,
1042,
18,
1042,
5677,
18,
10875,
1457,
16109,
1258,
3686,
262,
1082,
202,
2463,
394,
2144,
2966,
12162,
1345,
12,
467,
1345,
18,
88,
14217,
16,
2144,
18,
2670,
1702,
12,
1132,
262,
16,
7683,
751,
18,
29120,
2624,
1435,
11272,
6862,
202,
2463,
394,
2
] |
public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram();
|
public quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { quickfix.field.UnderlyingCPProgram value = new quickfix.field.UnderlyingCPProgram();
|
public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataRequest.java/clean/src/java/src/quickfix/fix44/MarketDataRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
10833,
765,
6291,
4258,
9459,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
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,
14655,
6291,
4258,
9459,
10833,
765,
6291,
4258,
9459,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
4258,
9459,
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
] |
Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExpandControl(path, click.x, click.y); boolean isLeaf = isLeaf(row); if (isLeaf) bounds.width += rightChildIndent + gap; else if (hasControlIcons()) bounds.width += getCurrentControlIcon(path).getIconWidth() + gap; boolean inBounds = bounds.contains(click.x, click.y); if ((inBounds || cntlClick) && tree.isVisible(path)) { selectPath(tree, path); if (inBounds && e.getClickCount() == 2 && !isLeaf(row)) toggleExpandState(path); if (cntlClick) { handleExpandControlClick(path, click.x, click.y); if (cellEditor != null) cellEditor.cancelCellEditing(); } else if (tree.isEditable()) startEditing(path, e); } }
|
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExpandControl(path, click.x, click.y); boolean isLeaf = isLeaf(row); if (isLeaf) bounds.width += rightChildIndent + gap; else if (hasControlIcons()) bounds.width += getCurrentControlIcon(path).getIconWidth() + gap; boolean inBounds = bounds.contains(click.x, click.y); if ((inBounds || cntlClick) && tree.isVisible(path)) { selectPath(tree, path); if (inBounds && e.getClickCount() == 2 && !isLeaf(row)) toggleExpandState(path); if (cntlClick) { handleExpandControlClick(path, click.x, click.y); if (cellEditor != null) cellEditor.cancelCellEditing(); } else if (tree.isEditable()) startEditing(path, e); } } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
565,
288,
1377,
4686,
4682,
273,
425,
18,
588,
2148,
5621,
1377,
4902,
743,
589,
273,
1927,
383,
7781,
743,
1290,
2735,
12,
3413,
16,
4682,
18,
92,
16,
4682,
18,
93,
1769,
1377,
309,
261,
803,
480,
446,
13,
3639,
288,
1850,
4972,
273,
4339,
5694,
12,
3413,
16,
589,
1769,
1850,
509,
1027,
273,
11835,
25589,
12,
3413,
16,
589,
1769,
1850,
1250,
7599,
80,
6563,
273,
353,
2735,
382,
12271,
3367,
12,
803,
16,
4682,
18,
92,
16,
4682,
18,
93,
1769,
10792,
1250,
31356,
273,
31356,
12,
492,
1769,
1850,
309,
261,
291,
9858,
13,
5411,
4972,
18,
2819,
1011,
2145,
1763,
7790,
397,
9300,
31,
1850,
469,
309,
261,
5332,
3367,
27510,
10756,
5411,
4972,
18,
2819,
1011,
5175,
3367,
5554,
12,
803,
2934,
588,
5554,
2384,
1435,
397,
9300,
31,
1850,
1250,
316,
5694,
273,
4972,
18,
12298,
12,
7475,
18,
92,
16,
4682,
18,
93,
1769,
1850,
309,
14015,
267,
5694,
747,
7599,
80,
6563,
13,
597,
2151,
18,
291,
6207,
12,
803,
3719,
5411,
288,
2868,
2027,
743,
12,
3413,
16,
589,
1769,
2868,
309,
261,
267,
5694,
597,
425,
18,
588,
6563,
1380,
1435,
422,
576,
597,
401,
291,
9858,
12,
492,
3719,
5375,
10486,
12271,
1119,
12,
803,
1769,
18701,
309,
261,
13085,
80,
6563,
13,
7734,
288,
5375,
1640,
12271,
3367,
6563,
12,
803,
16,
4682,
18,
92,
16,
4682,
18,
93,
1769,
5375,
309,
261,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
13,
565,
288,
1377,
4686,
4682,
273,
425,
18,
588,
2148,
5621,
1377,
4902,
743,
589,
273,
1927,
383,
7781,
743,
1290,
2735,
12,
3413,
16,
4682,
18,
92,
16,
4682,
18,
93,
1769,
1377,
309,
261,
803,
480,
446,
13,
3639,
288,
1850,
4972,
273,
4339,
5694,
12,
3413,
16,
589,
1769,
1850,
509,
1027,
273,
11835,
25589,
12,
3413,
16,
589,
1769,
1850,
1250,
7599,
80,
6563,
273,
353,
2735,
382,
12271,
3367,
12,
803,
16,
4682,
18,
92,
16,
4682,
18,
93,
1769,
10792,
1250,
31356,
273,
31356,
12,
492,
1769,
1850,
309,
261,
291,
9858,
13,
5411,
4972,
18,
2819,
1011,
2145,
1763,
7790,
397,
9300,
2
] |
|
assertTrue("Object could not be reclaimed.", wr.get() == null);
|
assertNull("Object could not be reclaimed.", wr.get());
|
public void test_general() { // Test the general/overall functionality of Reference. class TestObject { public boolean finalized; public TestObject() { finalized = false; } protected void finalize() { finalized = true; } } final ReferenceQueue rq = new ReferenceQueue(); class TestThread extends Thread { public void run() { // Create the object in a separate thread to ensure it will be // gc'ed Object testObj = new TestObject(); wr = new WeakReference(testObj, rq); testObj = null; } } Reference ref; try { Thread t = new TestThread(); t.start(); t.join(); System.gc(); System.runFinalization(); ref = rq.remove(); assertTrue("Unexpected ref1", ref == wr); assertTrue("Object not garbage collected1.", ref != null); assertTrue("Object could not be reclaimed1.", wr.get() == null); } catch (InterruptedException e) { fail("InterruptedException : " + e.getMessage()); } try { Thread t = new TestThread(); t.start(); t.join(); System.gc(); System.runFinalization(); ref = rq.poll(); assertTrue("Unexpected ref2", ref == wr); assertTrue("Object not garbage collected.", ref != null); assertTrue("Object could not be reclaimed.", ref.get() == null); // Reference wr so it does not get collected assertTrue("Object could not be reclaimed.", wr.get() == null); } catch (Exception e) { fail("Exception : " + e.getMessage()); } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/ReferenceTest.java/buggy/modules/luni/src/test/java/tests/api/java/lang/ref/ReferenceTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
12259,
1435,
288,
202,
202,
759,
7766,
326,
7470,
19,
27145,
14176,
434,
6268,
18,
202,
202,
1106,
7766,
921,
288,
1082,
202,
482,
1250,
727,
1235,
31,
1082,
202,
482,
7766,
921,
1435,
288,
9506,
202,
6385,
1235,
273,
629,
31,
1082,
202,
97,
1082,
202,
1117,
918,
12409,
1435,
288,
9506,
202,
6385,
1235,
273,
638,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
6385,
6268,
3183,
22227,
273,
394,
6268,
3183,
5621,
202,
202,
1106,
7766,
3830,
3231,
4884,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
759,
1788,
326,
733,
316,
279,
9004,
2650,
358,
3387,
518,
903,
506,
9506,
202,
759,
8859,
11,
329,
9506,
202,
921,
1842,
2675,
273,
394,
7766,
921,
5621,
9506,
202,
91,
86,
273,
394,
23632,
2404,
12,
3813,
2675,
16,
22227,
1769,
9506,
202,
3813,
2675,
273,
446,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
2404,
1278,
31,
202,
202,
698,
288,
1082,
202,
3830,
268,
273,
394,
7766,
3830,
5621,
1082,
202,
88,
18,
1937,
5621,
1082,
202,
88,
18,
5701,
5621,
1082,
202,
3163,
18,
13241,
5621,
1082,
202,
3163,
18,
2681,
7951,
1588,
5621,
1082,
202,
1734,
273,
22227,
18,
4479,
5621,
1082,
202,
11231,
5510,
2932,
7762,
1278,
21,
3113,
1278,
422,
12408,
1769,
1082,
202,
11231,
5510,
2932,
921,
486,
15340,
12230,
21,
1199,
16,
1278,
480,
446,
1769,
1082,
202,
11231,
5510,
2932,
921,
3377,
486,
506,
283,
14784,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
12259,
1435,
288,
202,
202,
759,
7766,
326,
7470,
19,
27145,
14176,
434,
6268,
18,
202,
202,
1106,
7766,
921,
288,
1082,
202,
482,
1250,
727,
1235,
31,
1082,
202,
482,
7766,
921,
1435,
288,
9506,
202,
6385,
1235,
273,
629,
31,
1082,
202,
97,
1082,
202,
1117,
918,
12409,
1435,
288,
9506,
202,
6385,
1235,
273,
638,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
6385,
6268,
3183,
22227,
273,
394,
6268,
3183,
5621,
202,
202,
1106,
7766,
3830,
3231,
4884,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
759,
1788,
326,
733,
316,
279,
9004,
2650,
358,
3387,
518,
903,
506,
9506,
202,
759,
8859,
11,
329,
9506,
2
] |
instructionLabel.setText(IDEWorkbenchMessages.getString("MultiStepReviewWizardPage.instructionLabel"));
|
instructionLabel.setText(IDEWorkbenchMessages.getString("MultiStepReviewWizardPage.instructionFinishLabel"));
|
private void createInstructionsGroup(Composite parent) { instructionLabel = new Label(parent, SWT.LEFT); instructionLabel.setText(IDEWorkbenchMessages.getString("MultiStepReviewWizardPage.instructionLabel")); //$NON-NLS-1$ GridData data = new GridData(); data.verticalAlignment = SWT.TOP; data.horizontalSpan = 2; instructionLabel.setLayoutData(data); instructionLabel.setFont(parent.getFont()); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5f66f012d964fb2d38e01d894590ab05bc28a3b4/MultiStepReviewWizardPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/MultiStepReviewWizardPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
26712,
1114,
12,
9400,
982,
13,
288,
202,
202,
19116,
2224,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
10066,
1769,
202,
202,
19116,
2224,
18,
542,
1528,
12,
10385,
2421,
22144,
5058,
18,
588,
780,
2932,
5002,
4160,
9159,
27130,
1964,
18,
19116,
11641,
2224,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
5621,
202,
202,
892,
18,
17824,
11535,
273,
348,
8588,
18,
10462,
31,
202,
202,
892,
18,
18396,
6952,
273,
576,
31,
202,
202,
19116,
2224,
18,
542,
3744,
751,
12,
892,
1769,
202,
202,
19116,
2224,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
26712,
1114,
12,
9400,
982,
13,
288,
202,
202,
19116,
2224,
273,
394,
5287,
12,
2938,
16,
348,
8588,
18,
10066,
1769,
202,
202,
19116,
2224,
18,
542,
1528,
12,
10385,
2421,
22144,
5058,
18,
588,
780,
2932,
5002,
4160,
9159,
27130,
1964,
18,
19116,
11641,
2224,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6313,
751,
501,
273,
394,
7145,
751,
5621,
202,
202,
892,
18,
17824,
11535,
273,
348,
8588,
18,
10462,
31,
202,
202,
892,
18,
18396,
6952,
273,
576,
31,
202,
202,
19116,
2224,
18,
542,
3744,
751,
12,
892,
1769,
202,
202,
19116,
2224,
18,
542,
5711,
12,
2938,
18,
588,
5711,
10663,
202,
97,
2,
-100
] |
results = compare(retEnv, tempPath); assertTrue(results);
|
compare(retEnv, tempPath);
|
public void testR2GCEchoInterger() throws AxisFault { url = "http://www.whitemesa.net/interop/std/echohdr"; soapAction = "http://soapinterop.org/"; util = new GroupcIntergerUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "WMGcIntergerRes.xml"; results = compare(retEnv, tempPath); assertTrue(results); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/WMRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/WMRound2InteropTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
22,
43,
1441,
2599,
2465,
693,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
5591,
18,
3350,
1726,
281,
69,
18,
2758,
19,
30376,
19,
5084,
19,
12946,
16587,
14432,
3639,
9930,
1803,
273,
315,
2505,
2207,
19215,
30376,
18,
3341,
4898,
31,
3639,
1709,
273,
394,
3756,
71,
2465,
693,
1304,
5621,
3639,
325,
3491,
273,
31608,
11066,
22,
1227,
18,
4661,
3332,
12,
1367,
16,
880,
16,
9930,
1803,
1769,
3639,
1906,
743,
273,
400,
5598,
397,
315,
25173,
43,
71,
2465,
693,
607,
18,
2902,
14432,
3639,
1686,
273,
3400,
12,
1349,
3491,
16,
1906,
743,
1769,
3639,
1815,
5510,
12,
4717,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
54,
22,
43,
1441,
2599,
2465,
693,
1435,
1216,
15509,
7083,
288,
3639,
880,
273,
315,
2505,
2207,
5591,
18,
3350,
1726,
281,
69,
18,
2758,
19,
30376,
19,
5084,
19,
12946,
16587,
14432,
3639,
9930,
1803,
273,
315,
2505,
2207,
19215,
30376,
18,
3341,
4898,
31,
3639,
1709,
273,
394,
3756,
71,
2465,
693,
1304,
5621,
3639,
325,
3491,
273,
31608,
11066,
22,
1227,
18,
4661,
3332,
12,
1367,
16,
880,
16,
9930,
1803,
1769,
3639,
1906,
743,
273,
400,
5598,
397,
315,
25173,
43,
71,
2465,
693,
607,
18,
2902,
14432,
3639,
1686,
273,
3400,
12,
1349,
3491,
16,
1906,
743,
1769,
3639,
1815,
5510,
12,
4717,
1769,
565,
289,
2,
-100,
-100,
-100
] |
RootNode root = new RootNode(); path.add(root);
|
RootNode root= new RootNode(); path.add(root);
|
public final void expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException { AST expr_AST_in = (AST)_t; Expression step = null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_or: { AST __t94 = _t; AST tmp3_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left = new PathExpr(); PathExpr right = new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t94; _t = _t.getNextSibling(); OpOr or = new OpOr(); or.add(left); or.add(right); path.addPath(or); break; } case LITERAL_and: { AST __t95 = _t; AST tmp4_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left = new PathExpr(); PathExpr right = new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t95; _t = _t.getNextSibling(); OpAnd and = new OpAnd(); and.add(left); and.add(right); path.addPath(and); break; } case PARENTHESIZED: { AST __t96 = _t; AST tmp5_AST_in = (AST)_t; match(_t,PARENTHESIZED); _t = _t.getFirstChild(); PathExpr expr = new PathExpr(); path.addPath(expr); expr(_t,expr); _t = _retTree; _t = __t96; _t = _t.getNextSibling(); break; } case UNION: { AST __t97 = _t; AST tmp6_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left = new PathExpr(); PathExpr right = new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t97; _t = _t.getNextSibling(); Union union = new Union(left, right); path.addPath(union); break; } case ABSOLUTE_SLASH: { AST __t98 = _t; AST tmp7_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root = new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case NCNAME: case LITERAL_or: case LITERAL_and: case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case STRING_LITERAL: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t98; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t100 = _t; AST tmp8_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root = new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; if(step instanceof LocationStep) { LocationStep s = (LocationStep)step; if(s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t100; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
288,
9506,
202,
9053,
3065,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
6862,
202,
2300,
2235,
273,
446,
31,
25083,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
511,
18454,
67,
280,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
11290,
273,
389,
88,
31,
1082,
202,
9053,
1853,
23,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
23225,
67,
280,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
6862,
6862,
202,
743,
4742,
2002,
273,
394,
2666,
4742,
5621,
25083,
202,
743,
4742,
2145,
273,
394,
2666,
4742,
5621,
6862,
9506,
202,
8638,
24899,
88,
16,
4482,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
8638,
24899,
88,
16,
4083,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
11290,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
6862,
6862,
202,
3817,
1162,
578,
273,
394,
6066,
1162,
5621,
25083,
202,
280,
18,
1289,
12,
4482,
1769,
25083,
202,
280,
18,
1289,
12,
4083,
1769,
25083,
202,
803,
18,
1289,
743,
12,
280,
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,
3065,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
288,
9506,
202,
9053,
3065,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
6862,
202,
2300,
2235,
273,
446,
31,
25083,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
511,
18454,
67,
280,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
11290,
273,
389,
88,
31,
1082,
202,
9053,
1853,
23,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
2
] |
public Boolean get(final String key, final Boolean defaultValue) {
|
public Boolean get(final String key, final Boolean defaultValue) {
|
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt(javaProperties.getProperty(key, String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(context + "." + key, defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(context + "." + key, value); } }; }
|
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/7415f9b22667609444c144f9cd7a6b17f686db7f/PersistenceFactory.java/clean/client-ui/src/main/java/com/thinkparity/browser/platform/util/persistence/PersistenceFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
13381,
752,
13182,
12,
6385,
1659,
23268,
94,
13,
288,
202,
202,
2463,
394,
13381,
1435,
288,
5411,
1783,
432,
819,
364,
326,
1790,
18,
1195,
5411,
3238,
727,
514,
819,
273,
23268,
94,
18,
17994,
5621,
1082,
202,
482,
3411,
336,
12,
6385,
514,
498,
16,
727,
3411,
4593,
13,
288,
9506,
202,
2463,
3411,
18,
2670,
5507,
12,
588,
12,
856,
16,
4593,
18,
10492,
1435,
10019,
1082,
202,
97,
1082,
202,
482,
13037,
336,
12,
780,
498,
16,
13037,
4593,
13,
288,
9506,
202,
2463,
394,
13037,
12,
25083,
202,
588,
12,
856,
397,
3552,
2819,
3113,
4593,
18,
2819,
3631,
25083,
202,
588,
12,
856,
397,
3552,
4210,
3113,
4593,
18,
4210,
10019,
1082,
202,
97,
1082,
202,
482,
509,
336,
12,
6385,
514,
498,
16,
727,
509,
4593,
13,
288,
9506,
202,
698,
288,
327,
2144,
18,
2670,
1702,
12,
6290,
2297,
18,
588,
1396,
12,
856,
16,
514,
18,
1132,
951,
12,
27652,
3719,
1769,
289,
9506,
202,
14683,
12,
6385,
12100,
13958,
92,
13,
288,
327,
4593,
31,
289,
1082,
202,
97,
1082,
202,
482,
4686,
336,
12,
780,
498,
16,
4686,
4593,
13,
288,
9506,
202,
2463,
394,
4686,
12,
25083,
202,
588,
12,
856,
397,
3552,
92,
3113,
4593,
18,
92,
3631,
25083,
202,
588,
12,
856,
397,
3552,
93,
3113,
4593,
18,
93,
10019,
1082,
202,
97,
1082,
202,
482,
514,
336,
12,
780,
498,
16,
514,
4593,
13,
288,
9506,
202,
2463,
2252,
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,
13381,
752,
13182,
12,
6385,
1659,
23268,
94,
13,
288,
202,
202,
2463,
394,
13381,
1435,
288,
5411,
1783,
432,
819,
364,
326,
1790,
18,
1195,
5411,
3238,
727,
514,
819,
273,
23268,
94,
18,
17994,
5621,
1082,
202,
482,
3411,
336,
12,
6385,
514,
498,
16,
727,
3411,
4593,
13,
288,
9506,
202,
2463,
3411,
18,
2670,
5507,
12,
588,
12,
856,
16,
4593,
18,
10492,
1435,
10019,
1082,
202,
97,
1082,
202,
482,
13037,
336,
12,
780,
498,
16,
13037,
4593,
13,
288,
9506,
202,
2463,
394,
13037,
12,
25083,
202,
588,
12,
856,
397,
3552,
2819,
3113,
4593,
18,
2819,
3631,
25083,
202,
588,
12,
856,
397,
3552,
4210,
3113,
4593,
18,
4210,
2
] |
try { String builderClassName = getBuilderClassName(configFile); String configString = Utility.loadResourceAsString(configFile, getClass()); StringReader configReader = new StringReader(configString); doConfigure(configReader, builderClassName);
|
public void setConfigFile(String configFile) throws PicoCompositionException { this.configFile = configFile; try { String builderClassName = getBuilderClassName(configFile); String configString = Utility.loadResourceAsString(configFile, getClass()); StringReader configReader = new StringReader(configString); doConfigure(configReader, builderClassName); } catch (Exception e) { throw new PicoCompositionException(e); } }
|
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/67e123292b9b3ff0a0ee9089c3287dbc6a435a1a/PicoContainerContext.java/buggy/mule-extras/picocontainer/src/java/org/mule/extras/picocontainer/PicoContainerContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
13705,
12,
780,
12247,
13,
1216,
453,
10764,
28940,
503,
565,
288,
3639,
333,
18,
1425,
812,
273,
12247,
31,
3639,
775,
3639,
288,
5411,
514,
2089,
3834,
273,
23314,
3834,
12,
1425,
812,
1769,
5411,
514,
642,
780,
273,
13134,
18,
945,
1420,
8092,
12,
1425,
812,
16,
2900,
10663,
5411,
26227,
642,
2514,
273,
394,
26227,
12,
1425,
780,
1769,
5411,
741,
11207,
12,
1425,
2514,
16,
2089,
3834,
1769,
3639,
289,
1044,
261,
503,
425,
13,
3639,
288,
5411,
604,
394,
453,
10764,
28940,
503,
12,
73,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
13705,
12,
780,
12247,
13,
1216,
453,
10764,
28940,
503,
565,
288,
3639,
333,
18,
1425,
812,
273,
12247,
31,
3639,
775,
3639,
288,
5411,
514,
2089,
3834,
273,
23314,
3834,
12,
1425,
812,
1769,
5411,
514,
642,
780,
273,
13134,
18,
945,
1420,
8092,
12,
1425,
812,
16,
2900,
10663,
5411,
26227,
642,
2514,
273,
394,
26227,
12,
1425,
780,
1769,
5411,
741,
11207,
12,
1425,
2514,
16,
2089,
3834,
1769,
3639,
289,
1044,
261,
503,
425,
13,
3639,
288,
5411,
604,
394,
453,
10764,
28940,
503,
12,
73,
1769,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
state = gData.stateStack[gData.stateStackTop]; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; state.savedBackTrackLast = gData.backTrackLast; state.index = gData.cp; ++gData.stateStackTop;
|
executeREBytecode(REGlobalData gData, char[] chars, int end) { int pc = 0; byte program[] = gData.regexp.program; int op = program[pc++]; int currentContinuation_op; int currentContinuation_pc; boolean result = false; currentContinuation_pc = 0; currentContinuation_op = REOP_END;if (debug) {System.out.println("Input = \"" + new String(chars) + "\", start at " + gData.cp);} for (;;) {if (debug) {System.out.println("Testing at " + gData.cp + ", op = " + op);} switch (op) { case REOP_EMPTY: result = true; break; case REOP_BOL: if (gData.cp != 0) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp - 1])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_EOL: if (gData.cp != end) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_WBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ !((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_WNONBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ ((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_DOT: result = (gData.cp != end && !isLineTerm(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_DIGIT: result = (gData.cp != end && isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONDIGIT: result = (gData.cp != end && !isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_SPACE: result = (gData.cp != end && isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONSPACE: result = (gData.cp != end && !isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_ALNUM: result = (gData.cp != end && isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONALNUM: result = (gData.cp != end && !isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_FLAT: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNMatcher(gData, offset, length, chars, end); } break; case REOP_FLATi: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNIMatcher(gData, offset, length, chars, end); } break; case REOP_FLAT1: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_FLAT1i: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_UCFLAT1: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_UCFLAT1i: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_ALT: { int nextpc; byte nextop; REProgState state; state = gData.stateStack[gData.stateStackTop]; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; ++gData.stateStackTop; nextpc = pc + GET_OFFSET(program, pc); nextop = program[nextpc++]; pushBackTrackState(gData, nextop, nextpc); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_JUMP: { int offset; REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; offset = GET_OFFSET(program, pc); pc += offset; op = program[pc++]; } continue; case REOP_LPAREN: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; gData.set_parens(parenIndex, gData.cp, 0); op = program[pc++]; } continue; case REOP_RPAREN: { int cap_index; int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; cap_index = gData.parens_index(parenIndex); gData.set_parens(parenIndex, cap_index, gData.cp - cap_index); if (parenIndex > gData.lastParen) gData.lastParen = parenIndex; op = program[pc++]; } continue; case REOP_BACKREF: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; result = backrefMatcher(gData, parenIndex, chars, end); } break; case REOP_CLASS: { int index = GET_ARG(program, pc); pc += ARG_LEN; if (gData.cp != end) { if (classMatcher(gData, gData.regexp.classList[index], chars[gData.cp])) { gData.cp++; result = true; break; } } result = false; } break; case REOP_ASSERT: case REOP_ASSERT_NOT: { byte testOp; REProgState state; if (op == REOP_ASSERT) { testOp = REOP_ASSERTTEST; } else { testOp = REOP_ASSERTNOTTEST; } state = gData.stateStack[gData.stateStackTop]; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; state.savedBackTrackLast = gData.backTrackLast; state.index = gData.cp; ++gData.stateStackTop; pushBackTrackState(gData, testOp, pc + GET_OFFSET(program, pc)); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_ASSERTTEST: case REOP_ASSERTNOTTEST: { REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; gData.cp = state.index; gData.backTrackLast = state.savedBackTrackLast; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; if (result) { if (op == REOP_ASSERTTEST) { result = true; } else { result = false; } } else { if (op == REOP_ASSERTTEST) { // Do nothing } else { result = true; } } } break; case REOP_STAR: case REOP_PLUS: case REOP_OPT: case REOP_QUANT: case REOP_MINIMALSTAR: case REOP_MINIMALPLUS: case REOP_MINIMALOPT: case REOP_MINIMALQUANT: { REProgState state; int min, max; boolean greedy = false; switch (op) { case REOP_STAR: greedy = true; // fallthrough case REOP_MINIMALSTAR: min = 0; max = -1; break; case REOP_PLUS: greedy = true; // fallthrough case REOP_MINIMALPLUS: min = 1; max = -1; break; case REOP_OPT: greedy = true; // fallthrough case REOP_MINIMALOPT: min = 0; max = 1; break; case REOP_QUANT: greedy = true; // fallthrough case REOP_MINIMALQUANT: min = GET_ARG(program, pc); pc += ARG_LEN; max = GET_ARG(program, pc); pc += ARG_LEN; break; default: throw Kit.codeBug(); } state = gData.stateStack[gData.stateStackTop]; state.min = min; state.max = max; state.index = gData.cp; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; ++gData.stateStackTop; if (greedy) { currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { if (min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); --gData.stateStackTop; pc += 2 * ARG_LEN; // <parencount> & <parenindex> pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } } } continue; case REOP_ENDCHILD: pc = currentContinuation_pc; op = currentContinuation_op; continue; case REOP_REPEAT: { REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; if (!result) { // // There's been a failure, see if we have enough // children. // if (state.min == 0) result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(program, pc); break; } else { if (state.min == 0 && gData.cp == state.index) { // matched an empty string, that'll get us nowhere result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } if (state.min != 0) state.min--; if (state.max != -1) state.max--; if (state.max == 0) { result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } state.index = gData.cp; ++gData.stateStackTop; currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; op = program[pc++]; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } } } continue; case REOP_MINIMALREPEAT: { REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; if (!result) { // // Non-greedy failure - try to consume another child. // if (state.max == -1 || state.max > 0) { state.index = gData.cp; currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } ++gData.stateStackTop; op = program[pc++]; continue; } else { // Don't need to adjust pc since we're going to pop. currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } } else { if (state.min == 0 && gData.cp == state.index) { // Matched an empty string, that'll get us nowhere. result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } if (state.min != 0) state.min--; if (state.max != -1) state.max--; if (state.min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } state.index = gData.cp; ++gData.stateStackTop; op = program[pc++]; } else { currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; state.index = gData.cp; ++gData.stateStackTop; pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); --gData.stateStackTop; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } continue; } } case REOP_END: return true; default: throw Kit.codeBug(); } /* * If the match failed and there's a backtrack option, take it. * Otherwise this is a complete and utter failure. */ if (!result) { REBackTrackData backTrackData = gData.backTrackLast; if (backTrackData != null) { gData.backTrackLast = backTrackData.previous; gData.lastParen = backTrackData.lastParen; // XXX: If backTrackData will no longer be used, then // there is no need to clone backTrackData.parens if (backTrackData.parens != null) { gData.parens = (long[])backTrackData.parens.clone(); } gData.cp = backTrackData.cp; for (int k = 0; k < backTrackData.precedingStateTop; k++) gData.stateStack[k] = backTrackData.precedingState[k]; gData.stateStackTop = backTrackData.precedingStateTop + 1; gData.stateStack[gData.stateStackTop - 1] = backTrackData.currentState; currentContinuation_op = gData.stateStack[gData.stateStackTop - 1].continuation_op; currentContinuation_pc = gData.stateStack[gData.stateStackTop - 1].continuation_pc; pc = backTrackData.continuation_pc; op = backTrackData.continuation_op; continue; } else return false; } /* * Continue with the expression. If this the end of the child, use * the current continuation. */ op = program[pc++]; if (op == REOP_ENDCHILD) { pc = currentContinuation_pc; op = currentContinuation_op; } } }
|
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/cffffeb8c045b41851c6663dee3635480dafb5bf/NativeRegExp.java/clean/src/org/mozilla/javascript/regexp/NativeRegExp.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
18,
12890,
31,
3639,
509,
1061,
273,
5402,
63,
2436,
9904,
15533,
3639,
509,
783,
660,
23946,
67,
556,
31,
3639,
509,
783,
660,
23946,
67,
2436,
31,
3639,
1250,
563,
273,
629,
31,
3639,
783,
660,
23946,
67,
2436,
273,
374,
31,
3639,
783,
660,
23946,
67,
556,
273,
2438,
3665,
67,
4415,
31,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
1210,
273,
11843,
397,
394,
514,
12,
7549,
13,
397,
1548,
3113,
787,
622,
315,
397,
314,
751,
18,
4057,
1769,
97,
3639,
364,
261,
25708,
13,
288,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
22218,
622,
315,
397,
314,
751,
18,
4057,
397,
3104,
1061,
273,
315,
397,
1061,
1769,
97,
5411,
1620,
261,
556,
13,
288,
5411,
648,
2438,
3665,
67,
13625,
30,
7734,
563,
273,
638,
31,
7734,
898,
31,
5411,
648,
2438,
3665,
67,
38,
1741,
30,
7734,
309,
261,
75,
751,
18,
4057,
480,
374,
13,
288,
10792,
309,
261,
75,
751,
18,
5421,
12554,
747,
18701,
14015,
75,
751,
18,
17745,
18,
7133,
473,
6756,
5937,
67,
12845,
30690,
13,
480,
374,
3719,
288,
13491,
309,
16051,
291,
1670,
4065,
12,
7549,
63,
75,
751,
18,
4057,
300,
404,
22643,
288,
18701,
563,
273,
629,
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,
1836,
862,
858,
16651,
12,
862,
5160,
751,
314,
751,
16,
1149,
8526,
5230,
16,
509,
679,
13,
565,
288,
3639,
509,
6125,
273,
374,
31,
3639,
1160,
5402,
8526,
273,
314,
751,
18,
17745,
18,
12890,
31,
3639,
509,
1061,
273,
5402,
63,
2436,
9904,
15533,
3639,
509,
783,
660,
23946,
67,
556,
31,
3639,
509,
783,
660,
23946,
67,
2436,
31,
3639,
1250,
563,
273,
629,
31,
3639,
783,
660,
23946,
67,
2436,
273,
374,
31,
3639,
783,
660,
23946,
67,
556,
273,
2438,
3665,
67,
4415,
31,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
1210,
273,
11843,
397,
394,
514,
12,
7549,
13,
397,
1548,
3113,
787,
622,
315,
397,
314,
2
] |
|
buf.append("<li><a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">");
|
buf.append("<li style=\"clear: right; \">\n"); buf.append("<input type=\"submit\" name=\"delete_"+b.hashCode()+"\" value=\"Delete\" style=\"float: right; \" />\n"); buf.append("<input type=\"submit\" name=\"edit_"+b.hashCode()+"\" value=\"Edit\" style=\"float: right; \" />\n"); buf.append("<a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">");
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { StringBuffer buf = new StringBuffer(); HTTPRequest request = new HTTPRequest(uri); if (request.getParam("newbookmark").length() > 0) { ctx.getPageMaker().makeHead(buf, "Add a Bookmark"); buf.append("<form action=\".\" method=\"post\">\n"); buf.append("<div>\n"); buf.append("Please confirm that you wish to add the key:<br />\n"); buf.append("<i>"+request.getParam("newbookmark")+"</i><br />"); buf.append("To your bookmarks, and enter the description that you would prefer:<br />\n"); buf.append("Description:\n"); buf.append("<input type=\"text\" name=\"name\" value=\""+HTMLEncoder.encode(request.getParam("desc"))+"\" style=\"width: 100%; \" />\n"); buf.append("<input type=\"hidden\" name=\"key\" value=\""+HTMLEncoder.encode(request.getParam("newbookmark"))+"\" />\n"); buf.append("<input type=\"submit\" name=\"addbookmark\" value=\"Add Bookmark\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); return; } else if (request.isParameterSet("managebookmarks")) { ctx.getPageMaker().makeHead(buf, "Bookmark Manager"); // existing bookmarks buf.append("<form action=\".\" method=\"post\">\n"); buf.append("<div class=\"infobox\">\n"); buf.append("<h2>My Bookmarks</h2>\n"); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { buf.append("<i>You currently have no bookmarks defined</i>"); } else { buf.append("<ul id=\"bookmarks\">\n"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); buf.append("<li><a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">"); buf.append(HTMLEncoder.encode(b.getDesc())); buf.append("</a>\n"); buf.append("<input type=\"submit\" name=\"delete_"+b.hashCode()+"\" value=\"Delete\" style=\"float: right; \" />\n"); buf.append("<input type=\"submit\" name=\"edit_"+b.hashCode()+"\" value=\"Edit\" style=\"float: right; \" />\n"); buf.append("</li>\n"); } buf.append("</ul>\n"); } buf.append("<input type=\"hidden\" name=\"managebookmarks\" value=\"yes\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); // new bookmark this.makeBookmarkEditForm(buf, MODE_ADD, null, "", "", null); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); return; } ctx.getPageMaker().makeHead(buf, "Freenet FProxy Homepage"); if(node.isTestnetEnabled()) buf.append("<div style=\"color: red; font-size: 200%; \">WARNING: TESTNET MODE ENABLED</div>"); // Alerts node.alerts.toHtml(buf); // Fetch-a-key box buf.append("<br style=\"clear: all; \" />\n"); buf.append("<form action=\"/\" method=\"get\">\n"); buf.append("<div class=\"infobox\">\n"); buf.append("<h2>Fetch a Key</h2>\n"); buf.append("Key: <input type=\"text\" size=\"80\" name=\"key\"/>\n"); buf.append("<input type=\"submit\" value=\"Fetch\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); // Bookmarks buf.append("<div class=\"infobox\">\n"); buf.append("<h2>My Bookmarks</h2>"); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { buf.append("<i>You currently have no bookmarks defined</i>"); } else { buf.append("<ul id=\"bookmarks\">\n"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); buf.append("<li><a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">"); buf.append(HTMLEncoder.encode(b.getDesc())); buf.append("</a></li>\n"); } buf.append("</ul>\n"); } buf.append("<div id=\"bookmarkedit\">\n"); buf.append("<a href=\"?managebookmarks\" class=\"interfacelink\">Edit My Bookmarks</a>\n"); buf.append("</div>\n"); buf.append("</div>\n"); // Version info buf.append("<div class=\"infobox\">\n"); buf.append("<h2>Version</h2>"); buf.append("Freenet version "+Version.nodeVersion+" build #"+Version.buildNumber()); if(Version.buildNumber() < Version.highestSeenBuild) { buf.append("<br />"); buf.append("<b>A newer version is available! (Build #"+Version.highestSeenBuild+")</b>"); } buf.append("</div>\n"); // Quit Form buf.append("<form method=\"post\" action=\".\">\n"); buf.append("<div class=\"exit\">\n"); buf.append("<input type=\"hidden\" name=\"exit\" value=\"true\" /><input type=\"submit\" value=\"Shut down the node\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); // Activity buf.append("<div class=\"infobox\">\n"); buf.append("<h2>Current Activity</h2>\n"); buf.append("<ul id=\"activity\">\n" + "<li>Inserts: "+this.node.getNumInserts()+"</li>\n" + "<li>Requests: "+this.node.getNumRequests()+"</li>\n" + "<li>Transferring Requests: "+this.node.getNumTransferringRequests()+"</li>\n" + "</ul>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/3e9a0e69aa75e1bc4861d7046dee1bbd1997387b/WelcomeToadlet.java/clean/src/freenet/clients/http/WelcomeToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
1769,
202,
202,
430,
261,
2293,
18,
588,
786,
2932,
2704,
3618,
3355,
20387,
2469,
1435,
405,
374,
13,
288,
1082,
202,
5900,
18,
588,
1964,
12373,
7675,
6540,
1414,
12,
4385,
16,
315,
986,
279,
20258,
3355,
8863,
25083,
202,
4385,
18,
6923,
2932,
32,
687,
1301,
5189,
18,
2412,
707,
5189,
2767,
28219,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
32,
2892,
5333,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
8496,
6932,
716,
1846,
14302,
358,
527,
326,
498,
22292,
2848,
342,
5333,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
32,
77,
2984,
15,
2293,
18,
588,
786,
2932,
2704,
3618,
3355,
7923,
9078,
1757,
77,
4438,
2848,
28505,
1769,
1082,
202,
4385,
18,
6923,
2932,
774,
3433,
13696,
87,
16,
471,
6103,
326,
2477,
716,
1846,
4102,
13256,
22292,
2848,
342,
5333,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
3291,
5581,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
32,
2630,
618,
5189,
955,
2412,
508,
5189,
529,
2412,
460,
13186,
15,
4870,
7204,
18,
3015,
12,
2293,
18,
588,
786,
2932,
5569,
6,
3719,
9078,
2412,
2154,
5189,
2819,
30,
2130,
9,
31,
1239,
342,
5333,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
32,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
780,
1892,
1681,
273,
394,
6674,
5621,
9506,
202,
23891,
590,
273,
394,
25238,
12,
1650,
1769,
202,
202,
430,
261,
2293,
18,
588,
786,
2932,
2704,
3618,
3355,
20387,
2469,
1435,
405,
374,
13,
288,
1082,
202,
5900,
18,
588,
1964,
12373,
7675,
6540,
1414,
12,
4385,
16,
315,
986,
279,
20258,
3355,
8863,
25083,
202,
4385,
18,
6923,
2932,
32,
687,
1301,
5189,
18,
2412,
707,
5189,
2767,
28219,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
32,
2892,
5333,
82,
8863,
1082,
202,
4385,
18,
6923,
2932,
8496,
2
] |
public void setCaretPosition (int pos) { caretPosition = pos; }
|
public void setCaretPosition (int pos) { caretPosition = pos; if (peer != null) { TextComponentPeer t = (TextComponentPeer) peer; t.setCaretPosition (pos); } }
|
public void setCaretPosition (int pos) { caretPosition = pos; }
|
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/708062224a502c41561e122dcde5accf23f77ad9/TextComponent.java/buggy/libjava/java/awt/TextComponent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11440,
20731,
2555,
261,
474,
949,
13,
288,
21683,
2555,
273,
949,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
11440,
20731,
2555,
261,
474,
949,
13,
288,
21683,
2555,
273,
949,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public static RubyFloat atan2(IRubyObject recv, IRubyObject other, IRubyObject other2) { double x = RubyNumeric.numericValue(other).getDoubleValue(); double y = RubyNumeric.numericValue(other2).getDoubleValue(); return RubyFloat.newFloat(recv.getRuntime(), Math.atan2(x, y));
|
public static RubyFloat atan2(IRubyObject recv, RubyNumeric x, RubyNumeric y) { return RubyFloat.newFloat(recv.getRuntime(), Math.atan2(x.getDoubleValue(), y.getDoubleValue()));
|
public static RubyFloat atan2(IRubyObject recv, IRubyObject other, IRubyObject other2) { double x = RubyNumeric.numericValue(other).getDoubleValue(); double y = RubyNumeric.numericValue(other2).getDoubleValue(); return RubyFloat.newFloat(recv.getRuntime(), Math.atan2(x, y)); }
|
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyMath.java/buggy/src/org/jruby/RubyMath.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
4723,
19646,
22,
12,
7937,
10340,
921,
10665,
16,
4405,
225,
15908,
10340,
921,
1308,
16,
15908,
10340,
921,
1308,
22,
13,
288,
202,
9056,
619,
273,
19817,
9902,
18,
5246,
620,
12,
3011,
2934,
588,
5265,
620,
5621,
202,
9056,
677,
273,
19817,
9902,
18,
5246,
620,
12,
3011,
22,
2934,
588,
5265,
620,
5621,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
18334,
18,
588,
5576,
9334,
2361,
18,
270,
304,
22,
12,
92,
16,
677,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
4723,
19646,
22,
12,
7937,
10340,
921,
10665,
16,
4405,
225,
15908,
10340,
921,
1308,
16,
15908,
10340,
921,
1308,
22,
13,
288,
202,
9056,
619,
273,
19817,
9902,
18,
5246,
620,
12,
3011,
2934,
588,
5265,
620,
5621,
202,
9056,
677,
273,
19817,
9902,
18,
5246,
620,
12,
3011,
22,
2934,
588,
5265,
620,
5621,
3639,
327,
19817,
4723,
18,
2704,
4723,
12,
18334,
18,
588,
5576,
9334,
2361,
18,
270,
304,
22,
12,
92,
16,
677,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
}
|
public void testEncode() throws IOException { final XMLLogger logger = new XMLLogger(outStream, false); final String[][] encodings = { {"<", "<"}, {">", ">"}, {"'", "'"}, {"\"", """}, {"&", "&"}, {"<", "<"}, {"abc;", "abc;"}, }; for (int i = 0; i < encodings.length; i++) { final String encoded = logger.encode(encodings[i][0]); assertEquals("\"" + encodings[i][0] + "\"", encodings[i][1], encoded); } outStream.close(); }
|
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/53197d9be9366ccf9ebccc1e6e31270c1dff8e95/XMLLoggerTest.java/clean/src/tests/com/puppycrawl/tools/checkstyle/XMLLoggerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5509,
1435,
3639,
1216,
1860,
565,
288,
3639,
727,
3167,
3328,
1194,
273,
394,
3167,
3328,
12,
659,
1228,
16,
629,
1769,
3639,
727,
514,
63,
6362,
65,
24118,
273,
288,
5411,
12528,
32,
3113,
7830,
5618,
4868,
5779,
5411,
12528,
2984,
16,
7830,
4521,
4868,
5779,
5411,
288,
5187,
3113,
7830,
438,
538,
4868,
5779,
5411,
12528,
2412,
3113,
7830,
9270,
4868,
5779,
5411,
12528,
10,
3113,
7830,
931,
4868,
5779,
5411,
12528,
10,
5618,
31,
3113,
7830,
5618,
4868,
5779,
5411,
12528,
18947,
31,
3113,
315,
18947,
4868,
5779,
3639,
289,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
24118,
18,
2469,
31,
277,
27245,
288,
5411,
727,
514,
3749,
273,
1194,
18,
3015,
12,
1331,
369,
899,
63,
77,
6362,
20,
19226,
5411,
1815,
8867,
2932,
8530,
397,
24118,
63,
77,
6362,
20,
65,
397,
7023,
3113,
24118,
63,
77,
6362,
21,
6487,
3749,
1769,
3639,
289,
540,
28997,
18,
4412,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5509,
1435,
3639,
1216,
1860,
565,
288,
3639,
727,
3167,
3328,
1194,
273,
394,
3167,
3328,
12,
659,
1228,
16,
629,
1769,
3639,
727,
514,
63,
6362,
65,
24118,
273,
288,
5411,
12528,
32,
3113,
7830,
5618,
4868,
5779,
5411,
12528,
2984,
16,
7830,
4521,
4868,
5779,
5411,
288,
5187,
3113,
7830,
438,
538,
4868,
5779,
5411,
12528,
2412,
3113,
7830,
9270,
4868,
5779,
5411,
12528,
10,
3113,
7830,
931,
4868,
5779,
5411,
12528,
10,
5618,
31,
3113,
7830,
5618,
4868,
5779,
5411,
12528,
18947,
31,
3113,
315,
18947,
4868,
5779,
3639,
289,
31,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
24118,
18,
2469,
31,
277,
27245,
288,
5411,
727,
514,
3749,
2
] |
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) { DSAPublicKeySpec spec = (DSAPublicKeySpec) keySpec; BigInteger p = spec.getP(); BigInteger q = spec.getQ(); BigInteger g = spec.getG(); BigInteger y = spec.getY(); return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); } if (keySpec instanceof X509EncodedKeySpec) { X509EncodedKeySpec spec = (X509EncodedKeySpec) keySpec; byte[] encoded = spec.getEncoded(); PublicKey result; try { result = new DSSKeyPairX509Codec().decodePublicKey(encoded); return result; } catch (RuntimeException x) { InvalidKeySpecException y = new InvalidKeySpecException(); y.initCause(x); throw y; } } throw new InvalidKeySpecException("Unsupported (public) key specification"); }
|
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/jce/sig/DSSKeyFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
9632,
8944,
4625,
4782,
12,
653,
55,
347,
363,
402,
1990,
13,
15069,
1941,
653,
1990,
503,
95,
430,
12,
856,
1990,
1336,
792,
3948,
2203,
24312,
1990,
15329,
3948,
2203,
24312,
1990,
2793,
28657,
3948,
2203,
24312,
1990,
13,
856,
1990,
31,
24198,
84,
33,
2793,
18,
588,
52,
5621,
24198,
85,
33,
2793,
18,
588,
53,
5621,
24198,
75,
33,
2793,
18,
588,
43,
5621,
9901,
382,
736,
75,
627,
33,
2793,
18,
588,
61,
5621,
2463,
2704,
40,
1260,
9632,
12,
4243,
18,
60,
5995,
67,
14672,
67,
734,
16,
84,
16,
85,
16,
75,
16,
93,
1769,
97,
430,
12,
856,
1990,
1336,
792,
60,
5995,
10397,
653,
1990,
15329,
60,
5995,
10397,
653,
1990,
2793,
28657,
60,
5995,
10397,
653,
1990,
13,
856,
1990,
31,
7229,
8526,
10787,
33,
2793,
18,
588,
10397,
5621,
9632,
2088,
31,
698,
95,
2088,
33,
2704,
40,
1260,
15099,
60,
5995,
11008,
7675,
3922,
9632,
12,
10787,
1769,
2463,
2088,
31,
97,
14683,
12,
11949,
92,
15329,
1941,
653,
1990,
503,
93,
33,
2704,
1941,
653,
1990,
503,
5621,
93,
18,
2738,
10683,
12,
92,
1769,
12849,
93,
31,
9090,
12849,
2704,
1941,
653,
1990,
503,
2932,
8544,
12,
482,
13,
2452,
705,
1480,
8863,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
9632,
8944,
4625,
4782,
12,
653,
55,
347,
363,
402,
1990,
13,
15069,
1941,
653,
1990,
503,
95,
430,
12,
856,
1990,
1336,
792,
3948,
2203,
24312,
1990,
15329,
3948,
2203,
24312,
1990,
2793,
28657,
3948,
2203,
24312,
1990,
13,
856,
1990,
31,
24198,
84,
33,
2793,
18,
588,
52,
5621,
24198,
85,
33,
2793,
18,
588,
53,
5621,
24198,
75,
33,
2793,
18,
588,
43,
5621,
9901,
382,
736,
75,
627,
33,
2793,
18,
588,
61,
5621,
2463,
2704,
40,
1260,
9632,
12,
4243,
18,
60,
5995,
67,
14672,
67,
734,
16,
84,
16,
85,
16,
75,
16,
93,
1769,
97,
430,
12,
856,
1990,
1336,
792,
60,
5995,
10397,
653,
1990,
15329,
60,
5995,
10397,
653,
2
] |
||
Object c = _lineField.getSelectedItem(); if (_target == null || c == null) return; _target.startTrans(); if (c instanceof Color) _target.setLineColor((Color)c); _target.setLineWidth((c instanceof Color) ? 1 : 0); _target.endTrans(); }
|
Object c = _lineField.getSelectedItem(); if (_target == null || c == null) return; _target.startTrans(); if (c instanceof Color) _target.setLineColor((Color) c); _target.setLineWidth((c instanceof Color) ? 1 : 0); _target.endTrans(); }
|
public void setTargetLine() { Object c = _lineField.getSelectedItem(); if (_target == null || c == null) return; _target.startTrans(); if (c instanceof Color) _target.setLineColor((Color)c); _target.setLineWidth((c instanceof Color) ? 1 : 0); _target.endTrans(); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/SPFigEdgeModelElement.java/clean/src_new/org/argouml/uml/diagram/ui/SPFigEdgeModelElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18367,
1670,
1435,
288,
565,
1033,
276,
273,
225,
389,
1369,
974,
18,
588,
7416,
1180,
5621,
565,
309,
261,
67,
3299,
422,
446,
747,
276,
422,
446,
13,
327,
31,
565,
389,
3299,
18,
1937,
1429,
5621,
565,
309,
261,
71,
1276,
5563,
13,
389,
3299,
18,
542,
1670,
2957,
12443,
2957,
13,
71,
1769,
565,
389,
3299,
18,
542,
1670,
2384,
12443,
71,
1276,
5563,
13,
692,
404,
294,
374,
1769,
565,
389,
3299,
18,
409,
1429,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18367,
1670,
1435,
288,
565,
1033,
276,
273,
225,
389,
1369,
974,
18,
588,
7416,
1180,
5621,
565,
309,
261,
67,
3299,
422,
446,
747,
276,
422,
446,
13,
327,
31,
565,
389,
3299,
18,
1937,
1429,
5621,
565,
309,
261,
71,
1276,
5563,
13,
389,
3299,
18,
542,
1670,
2957,
12443,
2957,
13,
71,
1769,
565,
389,
3299,
18,
542,
1670,
2384,
12443,
71,
1276,
5563,
13,
692,
404,
294,
374,
1769,
565,
389,
3299,
18,
409,
1429,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MessageBox mb = new MessageBox(m_Shell, SWT.ICON_ERROR | SWT.OK | SWT.WRAP); mb.setMessage(m_Simulation.getLastErrorMessage()); mb.setText("Eaters Error"); mb.open();
|
MessageBox mb1 = new MessageBox(m_Shell, SWT.ICON_ERROR | SWT.OK | SWT.WRAP); mb1.setMessage(m_Simulation.getLastErrorMessage()); mb1.setText("TankSoar Error"); mb1.open(); return; case SimulationListener.kNotificationEvent: MessageBox mb2 = new MessageBox(m_Shell, SWT.ICON_INFORMATION | SWT.OK | SWT.WRAP); mb2.setMessage(m_Simulation.getLastErrorMessage()); mb2.setText("TankSoar"); mb2.open();
|
void dispatchEvent(int type) { switch (type) { case SimulationListener.kStartEvent: m_SimButtons.updateButtons(); m_MapButtons.updateButtons(); m_AgentDisplay.updateButtons(); return; case SimulationListener.kStopEvent: m_VisualWorld.redraw(); m_SimButtons.updateButtons(); m_MapButtons.updateButtons(); m_AgentDisplay.updateButtons(); return; case SimulationListener.kErrorMessageEvent: MessageBox mb = new MessageBox(m_Shell, SWT.ICON_ERROR | SWT.OK | SWT.WRAP); mb.setMessage(m_Simulation.getLastErrorMessage()); mb.setText("Eaters Error"); mb.open(); return; case SimulationListener.kUpdateEvent: m_VisualWorld.redraw(); m_AgentDisplay.worldChangeEvent(); return; case SimulationListener.kResetEvent: updateWorldGroup(); m_VisualWorld.generateBackground(); m_VisualWorld.setRepaint(); m_VisualWorld.redraw(); m_SimButtons.updateButtons(); m_AgentDisplay.worldChangeEvent(); return; case SimulationListener.kAgentCreatedEvent: m_VisualWorld.setRepaint(); m_VisualWorld.redraw(); VisualWorld.remapEntityColors(m_Simulation.getWorldManager().getEntities()); m_SimButtons.updateButtons(); m_AgentDisplay.agentEvent(); return; case SimulationListener.kAgentDestroyedEvent: m_VisualWorld.setRepaint(); m_VisualWorld.redraw(); VisualWorld.remapEntityColors(m_Simulation.getWorldManager().getEntities()); m_SimButtons.updateButtons(); m_AgentDisplay.agentEvent(); return; default: m_Logger.log("Invalid event type received: " + new Integer(type)); return; } }
|
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/631bf843cad2217c3aa2f0d9a836e92c1b3dd03f/TankSoarWindowManager.java/clean/SoarSuite/Environments/JavaTankSoar/source/tanksoar/visuals/TankSoarWindowManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
15678,
12,
474,
618,
13,
288,
202,
202,
9610,
261,
723,
13,
288,
202,
202,
3593,
9587,
6234,
2223,
18,
79,
1685,
1133,
30,
1082,
202,
81,
67,
7993,
14388,
18,
2725,
14388,
5621,
1082,
202,
81,
67,
863,
14388,
18,
2725,
14388,
5621,
1082,
202,
81,
67,
3630,
4236,
18,
2725,
14388,
5621,
1082,
202,
2463,
31,
6862,
202,
3593,
9587,
6234,
2223,
18,
79,
4947,
1133,
30,
1082,
202,
81,
67,
25780,
18071,
18,
1118,
1899,
5621,
1082,
202,
81,
67,
7993,
14388,
18,
2725,
14388,
5621,
1082,
202,
81,
67,
863,
14388,
18,
2725,
14388,
5621,
1082,
202,
81,
67,
3630,
4236,
18,
2725,
14388,
5621,
1082,
202,
2463,
31,
6862,
202,
3593,
9587,
6234,
2223,
18,
79,
14935,
1133,
30,
1082,
202,
27647,
4903,
273,
394,
2350,
3514,
12,
81,
67,
13220,
16,
348,
8588,
18,
21745,
67,
3589,
571,
348,
8588,
18,
3141,
571,
348,
8588,
18,
27664,
1769,
1082,
202,
1627,
18,
542,
1079,
12,
81,
67,
18419,
18,
588,
3024,
14935,
10663,
1082,
202,
1627,
18,
542,
1528,
2932,
41,
31302,
1068,
8863,
1082,
202,
1627,
18,
3190,
5621,
1082,
202,
2463,
31,
6862,
202,
3593,
9587,
6234,
2223,
18,
79,
1891,
1133,
30,
1082,
202,
81,
67,
25780,
18071,
18,
1118,
1899,
5621,
1082,
202,
81,
67,
3630,
4236,
18,
18179,
20930,
5621,
1082,
202,
2463,
31,
6862,
202,
3593,
9587,
6234,
2223,
18,
79,
7013,
1133,
30,
1082,
202,
2725,
18071,
1114,
5621,
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,
6459,
15678,
12,
474,
618,
13,
288,
202,
202,
9610,
261,
723,
13,
288,
202,
202,
3593,
9587,
6234,
2223,
18,
79,
1685,
1133,
30,
1082,
202,
81,
67,
7993,
14388,
18,
2725,
14388,
5621,
1082,
202,
81,
67,
863,
14388,
18,
2725,
14388,
5621,
1082,
202,
81,
67,
3630,
4236,
18,
2725,
14388,
5621,
1082,
202,
2463,
31,
6862,
202,
3593,
9587,
6234,
2223,
18,
79,
4947,
1133,
30,
1082,
202,
81,
67,
25780,
18071,
18,
1118,
1899,
5621,
1082,
202,
81,
67,
7993,
14388,
18,
2725,
14388,
5621,
1082,
202,
81,
67,
863,
14388,
18,
2725,
14388,
5621,
1082,
202,
81,
67,
3630,
4236,
18,
2725,
14388,
5621,
1082,
202,
2463,
31,
6862,
202,
3593,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.