rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
Interval(int low, int high) {
public Interval(int low, int high) {
Interval(int low, int high) { this.low=low; this.high=high; }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/a18bd2c8022e33e4637405ee8e7f185afab019c6/Interval.java/buggy/components/gnutella-core/src/main/java/com/limegroup/gnutella/downloader/Interval.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10803, 12, 474, 4587, 16, 509, 3551, 13, 288, 3639, 333, 18, 821, 33, 821, 31, 3639, 333, 18, 8766, 33, 8766, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10803, 12, 474, 4587, 16, 509, 3551, 13, 288, 3639, 333, 18, 821, 33, 821, 31, 3639, 333, 18, 8766, 33, 8766, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public List getParameters() { return this.parameters; }
47110 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47110/b52300faa3dca53c86263226da2f26800e59b4d1/DefaultFunctionCallExpr.java/buggy/jaxen/src/java/main/org/jaxen/expr/DefaultFunctionCallExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 682, 588, 2402, 1435, 95, 2463, 2211, 18, 3977, 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, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 682, 588, 2402, 1435, 95, 2463, 2211, 18, 3977, 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, -100, -100 ]
if (connection.haveMinimumServerVersion("7.3")) {
if (connection.haveMinimumServerVersion("7.4")) { String sql = "SELECT NULL::text AS PKTABLE_CAT, pkn.nspname AS PKTABLE_SCHEMA, pkc.relname AS PKTABLE_NAME, pka.attname AS PKCOLUMN_NAME, "+ "NULL::text AS FK_TABLE_CAT, fkn.nspname AS FKTABLE_SCHEMA, fkc.relname AS FKTABLE_NAME, fka.attname AS FKCOLUMN_NAME, "+ "pos.n AS KEY_SEQ, "+ "CASE con.confupdtype "+ " WHEN 'c' THEN " + DatabaseMetaData.importedKeyCascade + " WHEN 'n' THEN " + DatabaseMetaData.importedKeySetNull + " WHEN 'd' THEN " + DatabaseMetaData.importedKeySetDefault + " WHEN 'r' THEN " + DatabaseMetaData.importedKeyRestrict + " WHEN 'a' THEN " + DatabaseMetaData.importedKeyNoAction + " ELSE NULL END AS UPDATE_RULE, "+ "CASE con.confdeltype "+ " WHEN 'c' THEN " + DatabaseMetaData.importedKeyCascade + " WHEN 'n' THEN " + DatabaseMetaData.importedKeySetNull + " WHEN 'd' THEN " + DatabaseMetaData.importedKeySetDefault + " WHEN 'r' THEN " + DatabaseMetaData.importedKeyRestrict + " WHEN 'a' THEN " + DatabaseMetaData.importedKeyNoAction + " ELSE NULL END AS DELETE_RULE, "+ "con.conname AS FK_NAME, pkic.relname AS PK_NAME, "+ "CASE "+ " WHEN con.condeferrable AND con.condeferred THEN " + DatabaseMetaData.importedKeyInitiallyDeferred + " WHEN con.condeferrable THEN " + DatabaseMetaData.importedKeyInitiallyImmediate + " ELSE " + DatabaseMetaData.importedKeyNotDeferrable+ " END AS DEFERRABILITY "+ " FROM "+ " pg_catalog.pg_namespace pkn, pg_catalog.pg_class pkc, pg_catalog.pg_attribute pka, "+ " pg_catalog.pg_namespace fkn, pg_catalog.pg_class fkc, pg_catalog.pg_attribute fka, "+ " pg_catalog.pg_constraint con, information_schema._pg_keypositions() pos(n), "+ " pg_catalog.pg_depend dep, pg_catalog.pg_class pkic "+ " WHERE pkn.oid = pkc.relnamespace AND pkc.oid = pka.attrelid AND pka.attnum = con.confkey[pos.n] AND con.confrelid = pkc.oid "+ " AND fkn.oid = fkc.relnamespace AND fkc.oid = fka.attrelid AND fka.attnum = con.conkey[pos.n] AND con.conrelid = fkc.oid "+ " AND con.contype = 'f' AND con.oid = dep.objid AND pkic.oid = dep.refobjid AND pkic.relkind = 'i' AND dep.classid = 'pg_constraint'::regclass::oid AND dep.refclassid = 'pg_class'::regclass::oid "; if (primarySchema != null && !"".equals(primarySchema)) { sql += " AND pkn.nspname = '"+escapeQuotes(primarySchema)+"' "; } if (foreignSchema != null && !"".equals(foreignSchema)) { sql += " AND fkn.nspname = '"+escapeQuotes(foreignSchema)+"' "; } if (primaryTable != null && !"".equals(primaryTable)) { sql += " AND pkc.relname = '"+escapeQuotes(primaryTable)+"' "; } if (foreignTable != null && !"".equals(foreignTable)) { sql += " AND fkc.relname = '"+escapeQuotes(foreignTable)+"' "; } if (primaryTable != null) { sql += " ORDER BY fkn.nspname,fkc.relname,pos.n"; } else { sql += " ORDER BY pkn.nspname,pkc.relname,pos.n"; } return connection.createStatement().executeQuery(sql); } else if (connection.haveMinimumServerVersion("7.3")) {
protected java.sql.ResultSet getImportedExportedKeys(String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable) throws SQLException { Field f[] = new Field[14]; f[0] = new Field(connection, "PKTABLE_CAT", iVarcharOid, getMaxNameLength()); f[1] = new Field(connection, "PKTABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[2] = new Field(connection, "PKTABLE_NAME", iVarcharOid, getMaxNameLength()); f[3] = new Field(connection, "PKCOLUMN_NAME", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "FKTABLE_CAT", iVarcharOid, getMaxNameLength()); f[5] = new Field(connection, "FKTABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[6] = new Field(connection, "FKTABLE_NAME", iVarcharOid, getMaxNameLength()); f[7] = new Field(connection, "FKCOLUMN_NAME", iVarcharOid, getMaxNameLength()); f[8] = new Field(connection, "KEY_SEQ", iInt2Oid, 2); f[9] = new Field(connection, "UPDATE_RULE", iInt2Oid, 2); f[10] = new Field(connection, "DELETE_RULE", iInt2Oid, 2); f[11] = new Field(connection, "FK_NAME", iVarcharOid, getMaxNameLength()); f[12] = new Field(connection, "PK_NAME", iVarcharOid, getMaxNameLength()); f[13] = new Field(connection, "DEFERRABILITY", iInt2Oid, 2); String select; String from; String where = ""; /* * The addition of the pg_constraint in 7.3 table should have really * helped us out here, but it comes up just a bit short. * - The conkey, confkey columns aren't really useful without * contrib/array unless we want to issues separate queries. * - Unique indexes that can support foreign keys are not necessarily * added to pg_constraint. Also multiple unique indexes covering * the same keys can be created which make it difficult to determine * the PK_NAME field. */ if (connection.haveMinimumServerVersion("7.3")) { select = "SELECT DISTINCT n1.nspname as pnspname,n2.nspname as fnspname, "; from = " FROM pg_catalog.pg_namespace n1 "+ " JOIN pg_catalog.pg_class c1 ON (c1.relnamespace = n1.oid) "+ " JOIN pg_catalog.pg_index i ON (c1.oid=i.indrelid) "+ " JOIN pg_catalog.pg_class ic ON (i.indexrelid=ic.oid) "+ " JOIN pg_catalog.pg_attribute a ON (ic.oid=a.attrelid), "+ " pg_catalog.pg_namespace n2 "+ " JOIN pg_catalog.pg_class c2 ON (c2.relnamespace=n2.oid), "+ " pg_catalog.pg_trigger t1 "+ " JOIN pg_catalog.pg_proc p1 ON (t1.tgfoid=p1.oid), "+ " pg_catalog.pg_trigger t2 "+ " JOIN pg_catalog.pg_proc p2 ON (t2.tgfoid=p2.oid) "; if (primarySchema != null && !"".equals(primarySchema)) { where += " AND n1.nspname = '"+escapeQuotes(primarySchema)+"' "; } if (foreignSchema != null && !"".equals(foreignSchema)) { where += " AND n2.nspname = '"+escapeQuotes(foreignSchema)+"' "; } } else { select = "SELECT DISTINCT NULL::text as pnspname, NULL::text as fnspname, "; from = " FROM pg_class c1 "+ " JOIN pg_index i ON (c1.oid=i.indrelid) "+ " JOIN pg_class ic ON (i.indexrelid=ic.oid) "+ " JOIN pg_attribute a ON (ic.oid=a.attrelid), "+ " pg_class c2, "+ " pg_trigger t1 "+ " JOIN pg_proc p1 ON (t1.tgfoid=p1.oid), "+ " pg_trigger t2 "+ " JOIN pg_proc p2 ON (t2.tgfoid=p2.oid) "; } String sql = select + "c1.relname as prelname, " + "c2.relname as frelname, " + "t1.tgconstrname, " + "a.attnum as keyseq, " + "ic.relname as fkeyname, " + "t1.tgdeferrable, " + "t1.tginitdeferred, " + "t1.tgnargs,t1.tgargs, " + "p1.proname as updaterule, " + "p2.proname as deleterule " + from + "WHERE " // isolate the update rule + "(t1.tgrelid=c1.oid " + "AND t1.tgisconstraint " + "AND t1.tgconstrrelid=c2.oid " + "AND p1.proname LIKE 'RI\\\\_FKey\\\\_%\\\\_upd') " + "AND " // isolate the delete rule + "(t2.tgrelid=c1.oid " + "AND t2.tgisconstraint " + "AND t2.tgconstrrelid=c2.oid " + "AND p2.proname LIKE 'RI\\\\_FKey\\\\_%\\\\_del') " + "AND i.indisprimary " + where; if (primaryTable != null) { sql += "AND c1.relname='" + escapeQuotes(primaryTable) + "' "; } if (foreignTable != null) { sql += "AND c2.relname='" + escapeQuotes(foreignTable) + "' "; } sql += "ORDER BY "; // orderby is as follows getExported, orders by FKTABLE, // getImported orders by PKTABLE // getCrossReference orders by FKTABLE, so this should work for both, // since when getting crossreference, primaryTable will be defined if (primaryTable != null) { if (connection.haveMinimumServerVersion("7.3")) { sql += "fnspname,"; } sql += "frelname"; } else { if (connection.haveMinimumServerVersion("7.3")) { sql += "pnspname,"; } sql += "prelname"; } sql += ",keyseq"; ResultSet rs = connection.createStatement().executeQuery(sql); // returns the following columns // and some example data with a table defined as follows // create table people ( id int primary key); // create table policy ( id int primary key); // create table users ( id int primary key, people_id int references people(id), policy_id int references policy(id)) // prelname | frelname | tgconstrname | keyseq | fkeyName | tgdeferrable | tginitdeferred // 1 | 2 | 3 | 4 | 5 | 6 | 7 // people | users | <unnamed> | 1 | people_pkey | f | f // | tgnargs | tgargs | updaterule | deleterule // | 8 | 9 | 10 | 11 // | 6 | <unnamed>\000users\000people\000UNSPECIFIED\000people_id\000id\000 | RI_FKey_noaction_upd | RI_FKey_noaction_del Vector tuples = new Vector(); while ( rs.next() ) { byte tuple[][] = new byte[14][]; tuple[1] = rs.getBytes(1); //PKTABLE_SCHEM tuple[5] = rs.getBytes(2); //FKTABLE_SCHEM tuple[2] = rs.getBytes(3); //PKTABLE_NAME tuple[6] = rs.getBytes(4); //FKTABLE_NAME String fKeyName = rs.getString(5); String updateRule = rs.getString(12); if (updateRule != null ) { // Rules look like this RI_FKey_noaction_del so we want to pull out the part between the 'Key_' and the last '_' s String rule = updateRule.substring(8, updateRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ( rule == null || "noaction".equals(rule) ) action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; else if ("restrict".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyRestrict; tuple[9] = Integer.toString(action).getBytes(); } String deleteRule = rs.getString(13); if ( deleteRule != null ) { String rule = deleteRule.substring(8, deleteRule.length() - 4); int action = java.sql.DatabaseMetaData.importedKeyNoAction; if ("cascade".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyCascade; else if ("setnull".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetNull; else if ("setdefault".equals(rule)) action = java.sql.DatabaseMetaData.importedKeySetDefault; else if ("restrict".equals(rule)) action = java.sql.DatabaseMetaData.importedKeyRestrict; tuple[10] = Integer.toString(action).getBytes(); } int keySequence = rs.getInt(6); //KEY_SEQ // Parse the tgargs data String fkeyColumn = ""; String pkeyColumn = ""; String fkName = ""; // Note, I am guessing at most of this, but it should be close // if not, please correct // the keys are in pairs and start after the first four arguments // the arguments are seperated by \000 String targs = rs.getString(11); // args look like this //<unnamed>\000ww\000vv\000UNSPECIFIED\000m\000a\000n\000b\000 // we are primarily interested in the column names which are the last items in the string Vector tokens = tokenize(targs, "\\000"); if (tokens.size() > 0) { fkName = (String)tokens.elementAt(0); } if (fkName.startsWith("<unnamed>")) { fkName = targs; } int element = 4 + (keySequence - 1) * 2; if (tokens.size() > element) { fkeyColumn = (String)tokens.elementAt(element); } element++; if (tokens.size() > element) { pkeyColumn = (String)tokens.elementAt(element); } tuple[3] = pkeyColumn.getBytes(); //PKCOLUMN_NAME tuple[7] = fkeyColumn.getBytes(); //FKCOLUMN_NAME tuple[8] = rs.getBytes(6); //KEY_SEQ tuple[11] = fkName.getBytes(); //FK_NAME this will give us a unique name for the foreign key tuple[12] = rs.getBytes(7); //PK_NAME // DEFERRABILITY int deferrability = java.sql.DatabaseMetaData.importedKeyNotDeferrable; boolean deferrable = rs.getBoolean(8); boolean initiallyDeferred = rs.getBoolean(9); if (deferrable) { if (initiallyDeferred) deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyDeferred; else deferrability = java.sql.DatabaseMetaData.importedKeyInitiallyImmediate; } tuple[13] = Integer.toString(deferrability).getBytes(); tuples.addElement(tuple); } return (ResultSet) ((BaseStatement)connection.createStatement()).createResultSet(f, tuples, "OK", 1, 0, false); }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/fc1dc0cd332aa277856827027aeddc27c34d7cb0/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 3354, 9769, 16, 514, 3354, 3078, 16, 514, 3354, 1388, 16, 514, 5523, 9769, 16, 514, 5523, 3078, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 3461, 15533, 202, 202, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 8784, 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, 8784, 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, 8784, 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, 8784, 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, 13121, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 25, 65, 273, 394, 2286, 12, 4071, 16, 315, 13121, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 26, 65, 273, 394, 2286, 12, 4071, 16, 315, 13121, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 7288, 461, 1782, 10663, 202, 202, 74, 63, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2252, 18, 4669, 18, 13198, 336, 24934, 31140, 2396, 12, 780, 3354, 9769, 16, 514, 3354, 3078, 16, 514, 3354, 1388, 16, 514, 5523, 9769, 16, 514, 5523, 3078, 16, 514, 5523, 1388, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, 63, 3461, 15533, 202, 202, 74, 63, 20, 65, 273, 394, 2286, 12, 4071, 16, 315, 8784, 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, 8784, 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, 2 ]
return sStateProv;
return sStateProv;
public String getStateProv() { return sStateProv; }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/29cbb0ca760565a8dbe9b0061fe757ebefc52029/CityStateZip.java/buggy/apps/examples/src/main/java/org/apache/struts/webapp/validator/CityStateZip.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8997, 626, 90, 1435, 288, 4202, 327, 272, 1119, 626, 90, 31, 202, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 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, 377, 1071, 514, 8997, 626, 90, 1435, 288, 4202, 327, 272, 1119, 626, 90, 31, 202, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
asm.emitPUSH_RegIdx(S0, T0, asm.LONG, ONE_SLOT); asm.emitPUSH_RegIdx(S0, T0, asm.LONG, NO_SLOT);
asm.emitPUSH_RegIdx(S0, T0, VM_Assembler.LONG, ONE_SLOT); asm.emitPUSH_RegIdx(S0, T0, VM_Assembler.LONG, NO_SLOT);
protected final void emit_laload() { asm.emitMOV_Reg_RegDisp(T0, SP, NO_SLOT); // T0 is array index asm.emitMOV_Reg_RegDisp(S0, SP, ONE_SLOT); // S0 is the array ref genBoundsCheck(asm, T0, S0); // T0 is index, S0 is address of array asm.emitADD_Reg_Imm(SP, WORDSIZE*2); // complete popping the 2 args asm.emitPUSH_RegIdx(S0, T0, asm.LONG, ONE_SLOT); // load high part of desired long array element asm.emitPUSH_RegIdx(S0, T0, asm.LONG, NO_SLOT); // load low part of desired long array element }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/b456534d9b99de463325c8cc3907b41fc605cb4c/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 918, 3626, 67, 80, 287, 6189, 1435, 288, 565, 20415, 18, 18356, 5980, 58, 67, 1617, 67, 1617, 1669, 84, 12, 56, 20, 16, 11405, 16, 3741, 67, 55, 1502, 56, 1769, 2868, 368, 399, 20, 353, 526, 770, 565, 20415, 18, 18356, 5980, 58, 67, 1617, 67, 1617, 1669, 84, 12, 55, 20, 16, 11405, 16, 15623, 67, 55, 1502, 56, 1769, 2868, 368, 348, 20, 353, 326, 526, 1278, 565, 3157, 5694, 1564, 12, 23522, 16, 399, 20, 16, 348, 20, 1769, 5397, 368, 399, 20, 353, 770, 16, 348, 20, 353, 1758, 434, 526, 565, 20415, 18, 18356, 8355, 67, 1617, 67, 1170, 81, 12, 3118, 16, 21464, 4574, 14, 22, 1769, 2398, 368, 3912, 1843, 1382, 326, 576, 833, 565, 20415, 18, 18356, 30348, 67, 1617, 4223, 12, 55, 20, 16, 399, 20, 16, 20415, 18, 14639, 16, 15623, 67, 55, 1502, 56, 1769, 368, 1262, 3551, 1087, 434, 6049, 1525, 526, 930, 565, 20415, 18, 18356, 30348, 67, 1617, 4223, 12, 55, 20, 16, 399, 20, 16, 20415, 18, 14639, 16, 3741, 67, 55, 1502, 56, 1769, 3639, 368, 1262, 4587, 1087, 434, 6049, 1525, 526, 930, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 918, 3626, 67, 80, 287, 6189, 1435, 288, 565, 20415, 18, 18356, 5980, 58, 67, 1617, 67, 1617, 1669, 84, 12, 56, 20, 16, 11405, 16, 3741, 67, 55, 1502, 56, 1769, 2868, 368, 399, 20, 353, 526, 770, 565, 20415, 18, 18356, 5980, 58, 67, 1617, 67, 1617, 1669, 84, 12, 55, 20, 16, 11405, 16, 15623, 67, 55, 1502, 56, 1769, 2868, 368, 348, 20, 353, 326, 526, 1278, 565, 3157, 5694, 1564, 12, 23522, 16, 399, 20, 16, 348, 20, 1769, 5397, 368, 399, 20, 353, 770, 16, 348, 20, 353, 1758, 434, 526, 565, 20415, 18, 18356, 8355, 67, 1617, 67, 1170, 81, 12, 3118, 16, 21464, 4574, 14, 22, 1769, 2398, 2 ]
if (item instanceof ITerminate) { if (((ITerminate) item).isTerminated()) { label= DebugUIUtils.getResourceString(PREFIX + TERMINATED) + label; return label; } } return label;
} catch (DebugException e) { return getResourceString(NOT_RESPSPONDING);
public String getText(Object item) { boolean showQualified= isShowQualifiedNames(); if (item instanceof IJavaVariable) { return getVariableText((IJavaVariable) item); } else if (item instanceof IStackFrame) { return getStackFrameText((IStackFrame) item); } else if (item instanceof IMarker) { return getMarkerText((IMarker) item); } else { String label= null; if (item instanceof IJavaThread) { label= getThreadText((IJavaThread) item, showQualified); } else if (item instanceof IJavaDebugTarget) { label= getDebugTargetText((IJavaDebugTarget) item, showQualified); } else if (item instanceof IJavaValue) { label= getValueText((IJavaValue) item); } if (item instanceof ITerminate) { if (((ITerminate) item).isTerminated()) { label= DebugUIUtils.getResourceString(PREFIX + TERMINATED) + label; return label; } } return label; } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/135df9ad5da63df47197df3e325aae882fd88bec/JDIModelPresentation.java/buggy/org.eclipse.jdt.ui/ui debug/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6701, 12, 921, 761, 13, 288, 202, 202, 6494, 2405, 8708, 33, 353, 5706, 8708, 1557, 5621, 202, 202, 430, 261, 1726, 1276, 467, 5852, 3092, 13, 288, 1082, 202, 2463, 13522, 1528, 12443, 45, 5852, 3092, 13, 761, 1769, 202, 202, 97, 469, 309, 261, 1726, 1276, 467, 2624, 3219, 13, 288, 1082, 202, 2463, 18457, 3219, 1528, 12443, 45, 2624, 3219, 13, 761, 1769, 202, 202, 97, 469, 309, 261, 1726, 1276, 467, 7078, 13, 288, 1082, 202, 2463, 23232, 264, 1528, 12443, 3445, 1313, 264, 13, 761, 1769, 202, 202, 97, 469, 288, 1082, 202, 780, 1433, 33, 446, 31, 1082, 202, 430, 261, 1726, 1276, 467, 5852, 3830, 13, 288, 9506, 202, 1925, 33, 24459, 1528, 12443, 45, 5852, 3830, 13, 761, 16, 2405, 8708, 1769, 1082, 202, 97, 469, 309, 261, 1726, 1276, 467, 5852, 2829, 2326, 13, 288, 9506, 202, 1925, 33, 29264, 2326, 1528, 12443, 45, 5852, 2829, 2326, 13, 761, 16, 2405, 8708, 1769, 1082, 202, 97, 469, 309, 261, 1726, 1276, 467, 5852, 620, 13, 288, 9506, 202, 1925, 33, 2366, 1528, 12443, 45, 5852, 620, 13, 761, 1769, 1082, 202, 97, 1082, 202, 430, 261, 1726, 1276, 467, 26106, 13, 288, 9506, 202, 430, 261, 12443, 1285, 1035, 3322, 13, 761, 2934, 291, 21888, 10756, 288, 6862, 202, 1925, 33, 4015, 5370, 1989, 18, 588, 1420, 780, 12, 6307, 397, 20772, 6236, 6344, 13, 397, 1433, 31, 6862, 202, 2463, 1433, 31, 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, 514, 6701, 12, 921, 761, 13, 288, 202, 202, 6494, 2405, 8708, 33, 353, 5706, 8708, 1557, 5621, 202, 202, 430, 261, 1726, 1276, 467, 5852, 3092, 13, 288, 1082, 202, 2463, 13522, 1528, 12443, 45, 5852, 3092, 13, 761, 1769, 202, 202, 97, 469, 309, 261, 1726, 1276, 467, 2624, 3219, 13, 288, 1082, 202, 2463, 18457, 3219, 1528, 12443, 45, 2624, 3219, 13, 761, 1769, 202, 202, 97, 469, 309, 261, 1726, 1276, 467, 7078, 13, 288, 1082, 202, 2463, 23232, 264, 1528, 12443, 3445, 1313, 264, 13, 761, 1769, 202, 202, 97, 469, 288, 1082, 202, 780, 1433, 33, 446, 31, 1082, 202, 430, 261, 1726, 1276, 467, 5852, 3830, 13, 288, 9506, 2 ]
public void JSLFrameIconified(JSLFrameEvent e) {}
public void JSLFrameIconified(JSLFrameEvent e) { }
public void JSLFrameIconified(JSLFrameEvent e) {}
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/c8c2f2d41919d6587858edc131d215f4eebaeb4b/LibraryFrame.java/buggy/JSynthLib/core/LibraryFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 804, 4559, 3219, 5554, 939, 12, 46, 4559, 3219, 1133, 425, 13, 5411, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 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, 2398, 1071, 918, 804, 4559, 3219, 5554, 939, 12, 46, 4559, 3219, 1133, 425, 13, 5411, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Set toRemoveIds = new HashSet(4); Set toRemoveDates = new HashSet(4);
Set toRemoveIds = null; Set toRemoveDates = null;
private void locked_cleanReceivedIds(long now) { Set toRemoveIds = new HashSet(4); Set toRemoveDates = new HashSet(4); for (Iterator iter = _receivedIdExpirations.keySet().iterator(); iter.hasNext(); ) { Long date = (Long)iter.next(); if (date.longValue() <= now) { // no need to keep track of things in the past toRemoveDates.add(date); toRemoveIds.add(_receivedIdExpirations.get(date)); } else { // the expiration is in the future, we still need to keep track of // it to prevent replays break; } } for (Iterator iter = toRemoveDates.iterator(); iter.hasNext(); ) _receivedIdExpirations.remove(iter.next()); for (Iterator iter = toRemoveIds.iterator(); iter.hasNext(); ) _receivedIds.remove(iter.next()); if (_log.shouldLog(Log.INFO)) _log.info("Cleaned out " + toRemoveDates.size() + " expired messageIds, leaving " + _receivedIds.size() + " remaining"); }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/c19355a7b21eb1bf5e62fcbb56ec14e54dcc49d2/MessageValidator.java/buggy/router/java/src/net/i2p/router/MessageValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 8586, 67, 6200, 8872, 2673, 12, 5748, 2037, 13, 288, 3639, 1000, 23511, 2673, 273, 394, 6847, 12, 24, 1769, 3639, 1000, 23511, 15578, 273, 394, 6847, 12, 24, 1769, 3639, 364, 261, 3198, 1400, 273, 389, 15213, 548, 2966, 481, 1012, 18, 856, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 3407, 1509, 273, 261, 3708, 13, 2165, 18, 4285, 5621, 5411, 309, 261, 712, 18, 5748, 620, 1435, 1648, 2037, 13, 288, 7734, 368, 1158, 1608, 358, 3455, 3298, 434, 9198, 316, 326, 8854, 7734, 23511, 15578, 18, 1289, 12, 712, 1769, 7734, 23511, 2673, 18, 1289, 24899, 15213, 548, 2966, 481, 1012, 18, 588, 12, 712, 10019, 5411, 289, 469, 288, 7734, 368, 326, 7686, 353, 316, 326, 3563, 16, 732, 4859, 1608, 358, 3455, 3298, 434, 7734, 368, 518, 358, 5309, 16033, 87, 7734, 898, 31, 5411, 289, 3639, 289, 3639, 364, 261, 3198, 1400, 273, 23511, 15578, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 5411, 389, 15213, 548, 2966, 481, 1012, 18, 4479, 12, 2165, 18, 4285, 10663, 3639, 364, 261, 3198, 1400, 273, 23511, 2673, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 5411, 389, 15213, 2673, 18, 4479, 12, 2165, 18, 4285, 10663, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 5923, 3719, 5411, 389, 1330, 18, 1376, 2932, 7605, 329, 596, 315, 397, 23511, 15578, 18, 1467, 1435, 397, 315, 7708, 883, 2673, 16, 15086, 315, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 8586, 67, 6200, 8872, 2673, 12, 5748, 2037, 13, 288, 3639, 1000, 23511, 2673, 273, 394, 6847, 12, 24, 1769, 3639, 1000, 23511, 15578, 273, 394, 6847, 12, 24, 1769, 3639, 364, 261, 3198, 1400, 273, 389, 15213, 548, 2966, 481, 1012, 18, 856, 694, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 288, 5411, 3407, 1509, 273, 261, 3708, 13, 2165, 18, 4285, 5621, 5411, 309, 261, 712, 18, 5748, 620, 1435, 1648, 2037, 13, 288, 7734, 368, 1158, 1608, 358, 3455, 3298, 434, 9198, 316, 326, 8854, 7734, 23511, 15578, 18, 1289, 12, 712, 1769, 7734, 23511, 2673, 18, 1289, 24899, 15213, 548, 2966, 481, 1012, 18, 588, 12, 712, 10019, 5411, 289, 2 ]
_connect(_owner(), _nsButton5, "motherButton");
_connect(_owner(), _nsButton5, "fatherButton");
protected void _awaken() { super._awaken(); if (_replacedObjects.objectForKey("_eoFrame0") == null) { _connect(_owner(), _eoFrame0, "reportsWindow"); } if (_replacedObjects.objectForKey("_individualList0") == null) { _connect(_individualList0, _owner(), "document"); } if (_replacedObjects.objectForKey("_individualList0") == null) { _connect(_owner(), _individualList0, "individualList"); } if (_replacedObjects.objectForKey("_familyList0") == null) { _connect(_familyList0, _owner(), "document"); } if (_replacedObjects.objectForKey("_familyList0") == null) { _connect(_owner(), _familyList0, "familyList"); } if (_replacedObjects.objectForKey("_eoFrame4") == null) { _connect(_owner(), _eoFrame4, "noteWindow"); } if (_replacedObjects.objectForKey("_nsTextView1") == null) { _connect(_owner(), _nsTextView1, "noteTextView"); } if (_replacedObjects.objectForKey("_eoFrame3") == null) { _connect(_owner(), _eoFrame3, "familyEditWindow"); } _nsComboBox2.setModel(new javax.swing.DefaultComboBoxModel()); _nsComboBox2.addItem(""); _nsComboBox2.addItem("Jr."); _nsComboBox2.addItem("Sr."); _nsComboBox2.addItem("III"); _nsComboBox2.setSelectedIndex(0); _nsComboBox1.setModel(new javax.swing.DefaultComboBoxModel()); _nsComboBox1.addItem(""); _nsComboBox1.addItem("Dr."); _nsComboBox1.addItem("Mr."); _nsComboBox1.addItem("Mrs."); _nsComboBox1.addItem("Ms."); _nsComboBox1.addItem("Sir"); _nsComboBox1.setSelectedIndex(0); _popup0.setModel(new javax.swing.DefaultComboBoxModel()); _popup0.addItem("Female"); _popup0.addItem("Male"); _popup0.addItem("Unknown"); if (_replacedObjects.objectForKey("_eoFrame2") == null) { _connect(_owner(), _eoFrame2, "individualEditWindow"); } if (_replacedObjects.objectForKey("_eoFrame1") == null) { _connect(_eoFrame1, _owner(), "delegate"); } if (_replacedObjects.objectForKey("_individualDetailController0") == null) { _connect(_owner(), _individualDetailController0, "individualDetailController"); } if (_replacedObjects.objectForKey("_nsButton9") == null) { _connect(_owner(), _nsButton9, "familyAsSpouseButton"); } if (_replacedObjects.objectForKey("_nsButton9") == null) { _connect(_owner(), _nsButton9, "individualFamilyButton"); } _nsButton9.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "openFamilyEditSheet", _nsButton9), "")); if (_replacedObjects.objectForKey("_nsButton8") == null) { _connect(_owner(), _nsButton8, "maternalGrandmotherButton"); } _nsButton8.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton8), "")); if (_replacedObjects.objectForKey("_nsButton7") == null) { _connect(_owner(), _nsButton7, "maternalGrandfatherButton"); } _nsButton7.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton7), "")); if (_replacedObjects.objectForKey("_nsButton6") == null) { _connect(_owner(), _nsButton6, "paternalGrandmotherButton"); } _nsButton6.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton6), "")); if (_replacedObjects.objectForKey("_nsButton5") == null) { _connect(_owner(), _nsButton5, "motherButton"); } _nsButton5.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton5), "")); if (_replacedObjects.objectForKey("_nsButton4") == null) { _connect(_owner(), _nsButton4, "spouseButton"); } _nsButton4.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton4), "")); if (_replacedObjects.objectForKey("_nsButton3") == null) { _connect(_owner(), _nsButton3, "individualButton"); } _nsButton3.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "openIndividualEditSheet", _nsButton3), "")); if (_replacedObjects.objectForKey("_nsButton2") == null) { _connect(_owner(), _nsButton2, "fatherButton"); } _nsButton2.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton2), "")); if (_replacedObjects.objectForKey("_nsButton1") == null) { _connect(_owner(), _nsButton1, "paternalGrandfatherButton"); } _nsButton1.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsButton1), "")); if (_replacedObjects.objectForKey("_nsButton0") == null) { _connect(_owner(), _nsButton0, "familyAsChildButton"); } if (_replacedObjects.objectForKey("_nsButton0") == null) { _connect(_owner(), _nsButton0, "parentFamilyButton"); } _nsButton0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "openFamilyEditSheet", _nsButton0), "")); if (_replacedObjects.objectForKey("_nsTableView1") == null) { _connect(_owner(), _nsTableView1, "spouseTable"); } _nsTableView1.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsTableView1), "")); if (_replacedObjects.objectForKey("_nsTableView1") == null) { _connect(_nsTableView1, _owner(), "dataSource"); } if (_replacedObjects.objectForKey("_nsTableView0") == null) { _connect(_owner(), _nsTableView0, "childrenTable"); } _nsTableView0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "setIndividual", _nsTableView0), "")); if (_replacedObjects.objectForKey("_nsTableView0") == null) { _connect(_nsTableView0, _owner(), "dataSource"); } if (_replacedObjects.objectForKey("_eoFrame1") == null) { _connect(_owner(), _eoFrame1, "window"); } if (_replacedObjects.objectForKey("_nsMatrix0") == null) { _connect(_owner(), _nsMatrix0, "reportsRadio"); } }
6190 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6190/da48cac11a5f1f0affd57bba7a54108fd37ff96c/_MyDocument_EOArchive_English.java/clean/MacPAF/English.lproj/MyDocument.nib/_MyDocument_EOArchive_English.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 389, 2219, 7940, 1435, 288, 3639, 2240, 6315, 2219, 7940, 5621, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 4361, 3219, 20, 7923, 422, 446, 13, 288, 5411, 389, 3612, 24899, 8443, 9334, 389, 4361, 3219, 20, 16, 315, 20195, 3829, 8863, 3639, 289, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 22032, 5557, 682, 20, 7923, 422, 446, 13, 288, 5411, 389, 3612, 24899, 22032, 5557, 682, 20, 16, 389, 8443, 9334, 315, 5457, 8863, 3639, 289, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 22032, 5557, 682, 20, 7923, 422, 446, 13, 288, 5411, 389, 3612, 24899, 8443, 9334, 389, 22032, 5557, 682, 20, 16, 315, 22032, 5557, 682, 8863, 3639, 289, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 9309, 682, 20, 7923, 422, 446, 13, 288, 5411, 389, 3612, 24899, 9309, 682, 20, 16, 389, 8443, 9334, 315, 5457, 8863, 3639, 289, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 9309, 682, 20, 7923, 422, 446, 13, 288, 5411, 389, 3612, 24899, 8443, 9334, 389, 9309, 682, 20, 16, 315, 9309, 682, 8863, 3639, 289, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 4361, 3219, 24, 7923, 422, 446, 13, 288, 5411, 389, 3612, 24899, 8443, 9334, 389, 4361, 3219, 24, 16, 315, 7652, 3829, 8863, 3639, 289, 3639, 309, 261, 67, 2079, 72, 4710, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 389, 2219, 7940, 1435, 288, 3639, 2240, 6315, 2219, 7940, 5621, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 4361, 3219, 20, 7923, 422, 446, 13, 288, 5411, 389, 3612, 24899, 8443, 9334, 389, 4361, 3219, 20, 16, 315, 20195, 3829, 8863, 3639, 289, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 22032, 5557, 682, 20, 7923, 422, 446, 13, 288, 5411, 389, 3612, 24899, 22032, 5557, 682, 20, 16, 389, 8443, 9334, 315, 5457, 8863, 3639, 289, 3639, 309, 261, 67, 2079, 72, 4710, 18, 1612, 19759, 2932, 67, 22032, 5557, 682, 20, 7923, 422, 446, 13, 288, 5411, 389, 3612, 24899, 8443, 9334, 389, 22032, 5557, 2 ]
throws SQLException {
throws SQLException {
public long getTimeInMs(ResultSet rs) throws SQLException { Timestamp value = rs.getTimestamp(1); long ms = value.getTime(); if (!Driver.JDBC3) { // Not Running under 1.4 so need to add milliseconds ms += ((java.sql.Timestamp)value).getNanos() / 1000000; } return ms; }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/86f78c52738d6a74a5ebb6ffc5d12e45b9b795ee/TimestampTest.java/clean/src/test/net/sourceforge/jtds/test/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 6135, 382, 6947, 12, 13198, 3597, 13, 3639, 1216, 6483, 288, 3639, 8159, 460, 273, 3597, 18, 588, 4921, 12, 21, 1769, 3639, 1525, 4086, 273, 460, 18, 588, 950, 5621, 3639, 309, 16051, 4668, 18, 30499, 23, 13, 288, 5411, 368, 2288, 20480, 3613, 404, 18, 24, 1427, 1608, 358, 527, 10993, 5411, 4086, 1011, 14015, 6290, 18, 4669, 18, 4921, 13, 1132, 2934, 588, 15739, 1435, 342, 15088, 31, 3639, 289, 3639, 327, 4086, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 6135, 382, 6947, 12, 13198, 3597, 13, 3639, 1216, 6483, 288, 3639, 8159, 460, 273, 3597, 18, 588, 4921, 12, 21, 1769, 3639, 1525, 4086, 273, 460, 18, 588, 950, 5621, 3639, 309, 16051, 4668, 18, 30499, 23, 13, 288, 5411, 368, 2288, 20480, 3613, 404, 18, 24, 1427, 1608, 358, 527, 10993, 5411, 4086, 1011, 14015, 6290, 18, 4669, 18, 4921, 13, 1132, 2934, 588, 15739, 1435, 342, 15088, 31, 3639, 289, 3639, 327, 4086, 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 ]
if (!showAll) expandedElements = viewer.getExpandedElements();
private void createViewer(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridData data = new GridData(GridData.FILL_BOTH); data.widthHint = SIZING_VIEWER_WIDTH; boolean needsHint = DialogUtil.inRegularFontMode(parent); //Only give a height hint if the dialog is going to be too small if (needsHint) { data.heightHint = SIZING_LISTS_HEIGHT; } composite.setLayoutData(data); GridLayout layout = new GridLayout(2, false); layout.marginHeight = 0; layout.marginWidth = 0; composite.setLayout(layout); Tree tree = new Tree(composite, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); viewer = new TreeViewer(tree); viewer.setContentProvider(new WizardContentProvider()); viewer.setLabelProvider(new WorkbenchLabelProvider()); viewer.setSorter(NewWizardCollectionSorter.INSTANCE); viewer.addSelectionChangedListener(this); viewer.addDoubleClickListener(this); ArrayList inputArray = new ArrayList(); for (int i = 0; i < primaryWizards.length; i++) { inputArray.add(primaryWizards[i]); } boolean expandTop = false; if (wizardCategories != null) { if (wizardCategories.getParent(wizardCategories) == null) { Object[] children = wizardCategories.getChildren(); for (int i = 0; i < children.length; i++) { inputArray.add(children[i]); } } else { expandTop = true; inputArray.add(wizardCategories); } } // ensure the category is expanded. If there is a remembered expansion it will be set later. if (expandTop) viewer.setAutoExpandLevel(2); AdaptableList input = new AdaptableList(inputArray); viewer.setInput(input); tree.setFont(parent.getFont()); viewer.addDoubleClickListener(new IDoubleClickListener() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IDoubleClickListener#doubleClick(org.eclipse.jface.viewers.DoubleClickEvent) */ public void doubleClick(DoubleClickEvent event) { IStructuredSelection s = (IStructuredSelection) event .getSelection(); Object element = s.getFirstElement(); if (viewer.isExpandable(element)) { viewer.setExpandedState(element, !viewer .getExpandedState(element)); } else if (element instanceof WorkbenchWizardElement) { page.advanceToNextPage(); } } }); viewer.addFilter(filter); data = new GridData(GridData.FILL_BOTH); data.horizontalSpan = 2; tree.setLayoutData(data); if (needShowAll) { showAllCheck = new Button(composite, SWT.CHECK); data = new GridData(); showAllCheck.setLayoutData(data); showAllCheck.setFont(parent.getFont()); showAllCheck.setText(WorkbenchMessages .getString("NewWizardNewPage.showAll")); //$NON-NLS-1$ showAllCheck.setSelection(false); // flipping tabs updates the selected node showAllCheck.addSelectionListener(new SelectionAdapter() { private Object[] expandedElements = new Object[0]; public void widgetSelected(SelectionEvent e) { boolean showAll = showAllCheck.getSelection(); if (!showAll) expandedElements = viewer.getExpandedElements(); if (showAll) { viewer.getControl().setRedraw(false); } try { if (showAll) { viewer.resetFilters(); viewer.setExpandedElements(expandedElements); } else { viewer.addFilter(filter); } viewer.refresh(false); } finally { if (showAll) viewer.getControl().setRedraw(true); } } }); } Image buttonImage = WorkbenchImages .getImage(IWorkbenchGraphicConstants.IMG_LCL_LINKTO_HELP); ToolBar toolBar = new ToolBar(composite, SWT.FLAT); helpButton = new ToolItem(toolBar, SWT.NONE); helpButton.setImage(buttonImage); helpButton.setEnabled(false); helpButton.setToolTipText(WorkbenchMessages .getString("NewWizardNewPage.moreHelp")); //$NON-NLS-1$ data = new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.VERTICAL_ALIGN_END); if (!needShowAll) data.horizontalSpan = 2; toolBar.setLayoutData(data); helpButton.addSelectionListener(new SelectionAdapter() { /* (non-Javadoc) * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { WorkbenchHelp.displayHelpResource(wizardHelpHref); } }); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/43b0c3508e68e62b7e3b816489e762fee5ff76b6/NewWizardNewPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizardNewPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 15193, 264, 12, 9400, 982, 13, 288, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 751, 501, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 1769, 3639, 501, 18, 2819, 7002, 273, 5705, 62, 1360, 67, 12145, 654, 67, 10023, 31, 3639, 1250, 4260, 7002, 273, 17242, 1304, 18, 267, 17974, 5711, 2309, 12, 2938, 1769, 3639, 368, 3386, 8492, 279, 2072, 7380, 309, 326, 6176, 353, 8554, 358, 506, 4885, 5264, 3639, 309, 261, 20600, 7002, 13, 288, 5411, 501, 18, 4210, 7002, 273, 5705, 62, 1360, 67, 7085, 55, 67, 14595, 31, 3639, 289, 3639, 9635, 18, 542, 3744, 751, 12, 892, 1769, 3639, 7145, 3744, 3511, 273, 394, 7145, 3744, 12, 22, 16, 629, 1769, 3639, 3511, 18, 10107, 2686, 273, 374, 31, 3639, 3511, 18, 10107, 2384, 273, 374, 31, 3639, 9635, 18, 542, 3744, 12, 6741, 1769, 3639, 4902, 2151, 273, 394, 4902, 12, 27676, 16, 348, 8588, 18, 20184, 571, 348, 8588, 18, 44, 67, 2312, 14555, 7734, 571, 348, 8588, 18, 58, 67, 2312, 14555, 571, 348, 8588, 18, 38, 7954, 1769, 3639, 14157, 273, 394, 4902, 18415, 12, 3413, 1769, 3639, 14157, 18, 542, 1350, 2249, 12, 2704, 678, 13412, 1350, 2249, 10663, 3639, 14157, 18, 542, 2224, 2249, 12, 2704, 4147, 22144, 2224, 2249, 10663, 3639, 14157, 18, 542, 24952, 12, 1908, 27130, 2532, 24952, 18, 13341, 1769, 3639, 14157, 18, 1289, 6233, 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, 15193, 264, 12, 9400, 982, 13, 288, 3639, 14728, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 3639, 7145, 751, 501, 273, 394, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 1769, 3639, 501, 18, 2819, 7002, 273, 5705, 62, 1360, 67, 12145, 654, 67, 10023, 31, 3639, 1250, 4260, 7002, 273, 17242, 1304, 18, 267, 17974, 5711, 2309, 12, 2938, 1769, 3639, 368, 3386, 8492, 279, 2072, 7380, 309, 326, 6176, 353, 8554, 358, 506, 4885, 5264, 3639, 309, 261, 20600, 7002, 13, 288, 5411, 501, 18, 4210, 7002, 273, 5705, 62, 1360, 67, 7085, 55, 67, 14595, 31, 3639, 289, 3639, 9635, 18, 542, 3744, 751, 12, 892, 2 ]
public void write (byte b[], int off, int len) throws IOException
public void write (int data) throws IOException
public void write (byte b[], int off, int len) throws IOException { if (writeDataAsBlocks) { if (len < 0) throw new IndexOutOfBoundsException (); if (blockDataCount + len < BUFFER_SIZE) { System.arraycopy (b, off, blockData, blockDataCount, len); blockDataCount += len; } else { drain (); writeBlockDataHeader (len); realOutput.write (b, off, len); } } else realOutput.write (b, off, len); }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/19f06d8622c5119a2b265f34d018cd1646e244f1/ObjectOutputStream.java/buggy/libjava/java/io/ObjectOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 261, 474, 501, 13, 1216, 1860, 225, 288, 565, 309, 261, 2626, 751, 1463, 6450, 13, 565, 288, 1377, 309, 261, 1897, 411, 374, 13, 202, 12849, 394, 17768, 261, 1769, 1377, 309, 261, 2629, 751, 1380, 397, 562, 411, 25859, 67, 4574, 13, 1377, 288, 202, 3163, 18, 1126, 3530, 261, 70, 16, 3397, 16, 1203, 751, 16, 1203, 751, 1380, 16, 562, 1769, 202, 2629, 751, 1380, 1011, 562, 31, 1377, 289, 1377, 469, 1377, 288, 202, 72, 7596, 261, 1769, 202, 2626, 1768, 751, 1864, 261, 1897, 1769, 202, 7688, 1447, 18, 2626, 261, 70, 16, 3397, 16, 562, 1769, 1377, 289, 565, 289, 565, 469, 1377, 2863, 1447, 18, 2626, 261, 70, 16, 3397, 16, 562, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 261, 474, 501, 13, 1216, 1860, 225, 288, 565, 309, 261, 2626, 751, 1463, 6450, 13, 565, 288, 1377, 309, 261, 1897, 411, 374, 13, 202, 12849, 394, 17768, 261, 1769, 1377, 309, 261, 2629, 751, 1380, 397, 562, 411, 25859, 67, 4574, 13, 1377, 288, 202, 3163, 18, 1126, 3530, 261, 70, 16, 3397, 16, 1203, 751, 16, 1203, 751, 1380, 16, 562, 1769, 202, 2629, 751, 1380, 1011, 562, 31, 1377, 289, 1377, 469, 1377, 288, 202, 72, 7596, 261, 1769, 202, 2626, 1768, 751, 1864, 261, 1897, 1769, 202, 7688, 1447, 18, 2626, 261, 70, 16, 3397, 16, 562, 1769, 1377, 289, 565, 289, 565, 469, 1377, 2863, 1447, 18, 2626, 261, 2 ]
private MBeanOperationInfo defineOperation(String signature, String metaData, ResourceBundle bundle) { String[] tokens=metaData.split(":",3); int i=tokens.length-1; String description=tokens[i--]; String impact_name = i<0?"UNKNOWN":tokens[i--]; boolean onMBean= i==0 && "MBean".equalsIgnoreCase(tokens[0]); boolean convert= i==0 && "MObject".equalsIgnoreCase(tokens[0]); if (Log.isDebugEnabled()) Log.debug("defineOperation "+signature+" "+onMBean+":"+impact_name+":"+description); Class oClass = onMBean ? this.getClass() : _managed.getClass(); try { // Resolve the impact int impact=MBeanOperationInfo.UNKNOWN; if (impact_name==null || impact_name.equals("UNKNOWN")) impact=MBeanOperationInfo.UNKNOWN; else if (impact_name.equals("ACTION")) impact=MBeanOperationInfo.ACTION; else if (impact_name.equals("INFO")) impact=MBeanOperationInfo.INFO; else if (impact_name.equals("ACTION_INFO")) impact=MBeanOperationInfo.ACTION_INFO; else Log.warn("Unknown impact '"+impact_name+"' for "+signature); // split the signature String[] parts=signature.split("[\\(\\)]"); String method_name=parts[0]; String arguments=parts.length==2?parts[1]:null; String[] args=arguments==null?new String[0]:arguments.split(" *, *"); // Check types and normalize signature. Class[] types = new Class[args.length]; MBeanParameterInfo[] pInfo = new MBeanParameterInfo[args.length]; signature=method_name; for (i = 0; i < args.length; i++) { Class type = TypeUtil.fromName(args[i]); if (type == null) type = Thread.currentThread().getContextClassLoader().loadClass(args[i]); types[i] = type; args[i] = type.isPrimitive() ? TypeUtil.toName(type) : args[i]; signature+=(i>0?",":"(")+args[i]; } signature+=(i>0?")":"()"); // Build param infos for (i = 0; i < args.length; i++) { String param_desc = bundle.getString(signature + "[" + i + "]"); parts=param_desc.split(" *: *",2); if (Log.isDebugEnabled()) Log.debug(parts[0]+": "+parts[1]); pInfo[i] = new MBeanParameterInfo(parts[0].trim(), args[i], parts[1].trim()); } // build the operation info Method method = oClass.getMethod(method_name, types); Class returnClass = method.getReturnType(); _methods.put(signature, method); if (convert) _convert.add(signature); return new MBeanOperationInfo(method_name, description, pInfo, returnClass.isPrimitive() ? TypeUtil.toName(returnClass) : (returnClass.getName()), impact); } catch (Exception e) { Log.warn("Operation '"+signature+"'", e); throw new IllegalArgumentException(e.toString()); } }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/3ffefaca0e55f3f8d9e8f8927dbe6f6bbb03d1ae/ObjectMBean.java/buggy/modules/management/src/main/java/org/mortbay/management/ObjectMBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16622, 2988, 966, 4426, 2988, 12, 780, 3372, 16, 514, 11651, 16, 19198, 3440, 13, 565, 288, 3639, 514, 8526, 2430, 33, 3901, 751, 18, 4939, 2932, 2773, 16, 23, 1769, 3639, 509, 277, 33, 7860, 18, 2469, 17, 21, 31, 3639, 514, 2477, 33, 7860, 63, 77, 413, 15533, 3639, 514, 15800, 67, 529, 273, 277, 32, 20, 7225, 14737, 6877, 7860, 63, 77, 413, 15533, 3639, 1250, 603, 18089, 33, 277, 631, 20, 597, 315, 18089, 9654, 14963, 5556, 12, 7860, 63, 20, 19226, 3639, 1250, 1765, 33, 277, 631, 20, 597, 315, 49, 921, 9654, 14963, 5556, 12, 7860, 63, 20, 19226, 9079, 309, 261, 1343, 18, 291, 2829, 1526, 10756, 5411, 1827, 18, 4148, 2932, 11255, 2988, 13773, 8195, 9078, 13773, 265, 18089, 9078, 2773, 15, 14532, 621, 67, 529, 9078, 2773, 15, 3384, 1769, 7734, 1659, 320, 797, 273, 603, 18089, 692, 333, 18, 588, 797, 1435, 294, 389, 19360, 18, 588, 797, 5621, 3639, 775, 3639, 288, 5411, 368, 9910, 326, 15800, 5411, 509, 15800, 33, 18089, 2988, 966, 18, 14737, 31, 5411, 309, 261, 14532, 621, 67, 529, 631, 2011, 747, 15800, 67, 529, 18, 14963, 2932, 14737, 6, 3719, 7734, 15800, 33, 18089, 2988, 966, 18, 14737, 31, 5411, 469, 309, 261, 14532, 621, 67, 529, 18, 14963, 2932, 12249, 6, 3719, 7734, 15800, 33, 18089, 2988, 966, 18, 12249, 31, 5411, 469, 309, 261, 14532, 621, 67, 529, 18, 14963, 2932, 5923, 6, 3719, 7734, 15800, 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, 16622, 2988, 966, 4426, 2988, 12, 780, 3372, 16, 514, 11651, 16, 19198, 3440, 13, 565, 288, 3639, 514, 8526, 2430, 33, 3901, 751, 18, 4939, 2932, 2773, 16, 23, 1769, 3639, 509, 277, 33, 7860, 18, 2469, 17, 21, 31, 3639, 514, 2477, 33, 7860, 63, 77, 413, 15533, 3639, 514, 15800, 67, 529, 273, 277, 32, 20, 7225, 14737, 6877, 7860, 63, 77, 413, 15533, 3639, 1250, 603, 18089, 33, 277, 631, 20, 597, 315, 18089, 9654, 14963, 5556, 12, 7860, 63, 20, 19226, 3639, 1250, 1765, 33, 277, 631, 20, 597, 315, 49, 921, 9654, 14963, 5556, 12, 7860, 63, 20, 19226, 9079, 309, 261, 1343, 18, 291, 2829, 1526, 10756, 5411, 1827, 18, 2 ]
paintEmptySpace(hMultiplierCoords[0], hMultiplierCoords[1] - hMultiplierH,
paintEmptySpace(hMultiplierCoords[0], hMultiplierCoords[1] + hMultiplierH,
public void paintAtomSymbol(Atom atom, Color backColor, Graphics graphics, int alignment, int atomNumber) { if (atom.getPoint2D() == null) { logger.warn("Cannot draw atom without 2D coordinate"); return; } // The fonts for calculating geometries float subscriptFraction = 0.7f; Font normalFont = graphics.getFont(); int normalFontSize = normalFont.getSize(); Font subscriptFont = normalFont.deriveFont( normalFontSize*subscriptFraction); // get drawing fonts float normalScreenFontSize = getScreenSize(normalFontSize); Font normalScreenFont = normalFont.deriveFont(normalScreenFontSize); Font subscriptScreenFont = normalScreenFont.deriveFont( normalScreenFontSize*subscriptFraction); // STEP 1: calculate widths and heights for all parts in the label // calculate SYMBOL width, height String atomSymbol = atom.getSymbol(); if (r2dm.drawNumbers()) { if (atomSymbol.equals("C")) { atomSymbol = "" + atomNumber; } else if (atomNumber != 0 && !atomSymbol.equals("")) { atomSymbol += "-" + atomNumber; } } graphics.setFont(normalFont); FontMetrics fm = graphics.getFontMetrics(); int atomSymbolW = (new Integer(fm.stringWidth(atomSymbol))).intValue(); int atomSymbolFirstCharW = (new Integer(fm.stringWidth(atomSymbol.substring(0,1)))).intValue(); int atomSymbolH = (new Integer(fm.getAscent())).intValue(); int atomSymbolXOffset = atomSymbolFirstCharW/2; int atomSymbolYOffset = atomSymbolH/2; // calculate IMPLICIT H width, height int implicitHydrogenCount = atom.getHydrogenCount(); int hSymbolW = 0; // unless next condition, this is the default int hSymbolH = 0; // unless next condition, this is the default String hSymbol = "H"; String hMultiplierString = new Integer(implicitHydrogenCount).toString(); if (implicitHydrogenCount > 0) { // fm is identical, don't change hSymbolW = (new Integer(fm.stringWidth(hSymbol))).intValue(); hSymbolH = atomSymbolH; } graphics.setFont(subscriptFont); fm = graphics.getFontMetrics(); int hMultiplierW = 0; int hMultiplierH = 0; if (implicitHydrogenCount > 1) { // fm is identical, don't change hMultiplierW = (new Integer(fm.stringWidth(hMultiplierString))).intValue(); hMultiplierH = (new Integer(fm.getAscent())).intValue(); } // calculate CHARGE width, height // font is still subscript, that's fine int formalCharge = atom.getFormalCharge(); int formalChargeW = 0; // unless next condition, this is the default int formalChargeH = 0; String formalChargeString = ""; // if charge == 0, then don't print anything if (formalCharge != 0) { if (formalCharge > 1) { formalChargeString = new Integer(formalCharge).toString() + "+"; } else if (formalCharge > 0) { formalChargeString = "+"; } else if (formalCharge < -1) { formalChargeString = new Integer(formalCharge*-1).toString() + "-"; } else if (formalCharge < 0) { formalChargeString = "-"; } graphics.setFont(subscriptFont); fm = graphics.getFontMetrics(); formalChargeW = (new Integer(fm.stringWidth(formalChargeString))).intValue(); formalChargeH = (new Integer(fm.getAscent())).intValue(); } // calculate ISOTOPE width, height // font is still subscript, that's fine int atomicMassNumber = atom.getMassNumber(); int isotopeW = 0; // unless next condition, this is the default int isotopeH = 0; String isotopeString = ""; if (atomicMassNumber != 0 && isotopeFactory != null) { Isotope majorIsotope = isotopeFactory.getMajorIsotope(atom.getSymbol()); if (majorIsotope != null && atomicMassNumber != majorIsotope.getMassNumber()) { graphics.setFont(subscriptFont); fm = graphics.getFontMetrics(); isotopeString = new Integer(atomicMassNumber).toString(); isotopeW = (new Integer(fm.stringWidth(isotopeString))).intValue(); isotopeH = (new Integer(fm.getAscent())).intValue(); } } // STEP 2: calculate x's and y's for all parts in the label int labelX = 0; int labelY = 0; if (alignment == 1) { // left alignment labelX = (int)(atom.getPoint2D().x - (atomSymbolXOffset + isotopeW)); } else { // right alignment labelX = (int)(atom.getPoint2D().x - (atomSymbolXOffset + Math.max(isotopeW,hMultiplierW) + hSymbolW)); } // labelY and labelH are the same for both left/right aligned labelY = (int)(atom.getPoint2D().y - (atomSymbolYOffset + isotopeH)); // xy for atom symbol int[] atomSymbolCoords = new int[2]; if (alignment == 1) { // left alignment atomSymbolCoords[0] = labelX + isotopeW; } else { // right alignment atomSymbolCoords[0] = labelX + hSymbolW + Math.max(isotopeW, hMultiplierW); } atomSymbolCoords[1] = labelY + isotopeH + atomSymbolH; // xy for implicit hydrogens int[] hSymbolCoords = new int[2]; if (alignment == 1) { // left alignment hSymbolCoords[0] = labelX + isotopeW + atomSymbolW; } else { // right alignment hSymbolCoords[0] = labelX; } hSymbolCoords[1] = labelY + isotopeH + atomSymbolH; // xy for implicit hydrogens multiplier int[] hMultiplierCoords = new int[2]; if (alignment == 1) { // left alignment hMultiplierCoords[0] = labelX + isotopeW + atomSymbolW +hSymbolW; } else { // right alignment hMultiplierCoords[0] = labelX + hSymbolW; } hMultiplierCoords[1] = labelY + isotopeH + atomSymbolH + hMultiplierH/2; // xy for charge int[] chargeCoords = new int[2]; if (alignment == 1) { // left alignment chargeCoords[0] = labelX + isotopeW + atomSymbolW + hSymbolW; } else { // right alignment chargeCoords[0] = labelX + hSymbolW + Math.max(isotopeW, hMultiplierW) + atomSymbolW; } chargeCoords[1] = labelY + isotopeH; //xy for isotope int[] isotopeCoords = new int[2]; if (alignment == 1) { // left alignment isotopeCoords[0] = labelX; } else { // right alignment isotopeCoords[0] = labelX + hSymbolW; } isotopeCoords[1] = labelY + isotopeH; // STEP 3: draw empty backgrounds for all parts in the label int border = 2; // border for clearing background in pixels paintEmptySpace(atomSymbolCoords[0], atomSymbolCoords[1] - atomSymbolH, atomSymbolW, atomSymbolH, border, backColor, graphics); paintEmptySpace(hSymbolCoords[0], hSymbolCoords[1] - hSymbolH, hSymbolW, hSymbolH, border, backColor, graphics); paintEmptySpace(hMultiplierCoords[0], hMultiplierCoords[1] - hMultiplierH, hMultiplierW, hMultiplierH, border, backColor, graphics); paintEmptySpace(chargeCoords[0], chargeCoords[1] - formalChargeH, formalChargeW, formalChargeH, border, backColor, graphics); paintEmptySpace(isotopeCoords[0], isotopeCoords[1] - isotopeH, isotopeW, isotopeH, border, backColor, graphics); // STEP 4: draw all parts in the label Color atomColor = r2dm.getAtomColor(atom); // draw SYMBOL { int[] screenCoords = getScreenCoordinates(atomSymbolCoords); graphics.setColor(atomColor); graphics.setFont(normalScreenFont); graphics.drawString(atomSymbol, screenCoords[0], screenCoords[1]); // possibly underline SYMBOL if (atom.getProperty(ProblemMarker.ERROR_MARKER) != null || atom.getProperty(ProblemMarker.WARNING_MARKER) != null) { // RED for error, ORANGE for warnings if (atom.getProperty(ProblemMarker.ERROR_MARKER) != null) { graphics.setColor(Color.red); } else if (atom.getProperty(ProblemMarker.WARNING_MARKER) != null) { graphics.setColor(Color.orange); } // make zig zag bond int symbolLength = atom.getSymbol().length(); int zigzags = 1+(2*symbolLength); int spacing = atomSymbolW/zigzags; int width = atomSymbolH/3; for (int i=-symbolLength; i<=symbolLength; i++) { int[] lineCoords = new int[6]; int halfspacing = spacing/2; lineCoords[0]=atomSymbolCoords[0] + (atomSymbolW/2) + (i*spacing) - halfspacing; lineCoords[1]=atomSymbolCoords[1] + 1*width; lineCoords[2]=lineCoords[0]+halfspacing; lineCoords[3]=atomSymbolCoords[1] + 2*width; lineCoords[4]=lineCoords[2]+halfspacing; lineCoords[5]=lineCoords[1]; int[] lineScreenCoords = getScreenCoordinates(lineCoords); graphics.drawLine(lineScreenCoords[0], lineScreenCoords[1], lineScreenCoords[2], lineScreenCoords[3]); graphics.drawLine(lineScreenCoords[2], lineScreenCoords[3], lineScreenCoords[4], lineScreenCoords[5]); } } } // draw IMPLICIT H's if (implicitHydrogenCount > 0 && r2dm.getShowImplicitHydrogens()) { int[] screenCoords = getScreenCoordinates(hSymbolCoords); graphics.setColor(atomColor); graphics.setFont(normalScreenFont); graphics.drawString(hSymbol, screenCoords[0], screenCoords[1]); if (implicitHydrogenCount > 1) { // draw number of hydrogens screenCoords = getScreenCoordinates(hMultiplierCoords); graphics.setColor(atomColor); graphics.setFont(subscriptScreenFont); graphics.drawString(hMultiplierString, screenCoords[0], screenCoords[1]); } } // draw CHARGE if (formalCharge != 0) { int[] screenCoords = getScreenCoordinates(chargeCoords); graphics.setColor(atomColor); graphics.setFont(normalScreenFont); graphics.drawString(formalChargeString, screenCoords[0], screenCoords[1]); } // draw ISOTOPE if (isotopeString.length() > 0) { int[] screenCoords = getScreenCoordinates(isotopeCoords); graphics.setColor(atomColor); graphics.setFont(subscriptScreenFont); graphics.drawString(isotopeString, screenCoords[0], screenCoords[1]); } // reset old font & color graphics.setFont(normalFont); graphics.setColor(r2dm.getForeColor()); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/024b5bd543555ab0427fdc6b91c9895dbe18db45/Renderer2D.java/buggy/src/org/openscience/cdk/renderer/Renderer2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 3641, 5335, 12, 3641, 3179, 16, 5563, 1473, 2957, 16, 16830, 17313, 16, 509, 8710, 16, 509, 3179, 1854, 13, 288, 3639, 309, 261, 7466, 18, 588, 2148, 22, 40, 1435, 422, 446, 13, 288, 5411, 1194, 18, 8935, 2932, 4515, 3724, 3179, 2887, 576, 40, 7799, 8863, 5411, 327, 31, 3639, 289, 7734, 368, 1021, 16450, 364, 21046, 21891, 3639, 1431, 31855, 13724, 273, 374, 18, 27, 74, 31, 3639, 10063, 2212, 5711, 273, 17313, 18, 588, 5711, 5621, 3639, 509, 2212, 22688, 273, 2212, 5711, 18, 588, 1225, 5621, 3639, 10063, 31855, 5711, 273, 2212, 5711, 18, 765, 688, 5711, 12, 5411, 2212, 22688, 14, 1717, 4263, 13724, 1769, 3639, 368, 336, 16327, 16450, 3639, 1431, 2212, 7956, 22688, 273, 22303, 1225, 12, 6130, 22688, 1769, 3639, 10063, 2212, 7956, 5711, 273, 2212, 5711, 18, 765, 688, 5711, 12, 6130, 7956, 22688, 1769, 3639, 10063, 31855, 7956, 5711, 273, 2212, 7956, 5711, 18, 765, 688, 5711, 12, 5411, 2212, 7956, 22688, 14, 1717, 4263, 13724, 1769, 7734, 368, 25538, 404, 30, 4604, 15801, 471, 24779, 364, 777, 2140, 316, 326, 1433, 7734, 368, 4604, 26059, 1835, 16, 2072, 3639, 514, 3179, 5335, 273, 3179, 18, 588, 5335, 5621, 3639, 309, 261, 86, 22, 10956, 18, 9446, 10072, 10756, 288, 5411, 309, 261, 7466, 5335, 18, 14963, 2932, 39, 6, 3719, 288, 7734, 3179, 5335, 273, 1408, 397, 3179, 1854, 31, 5411, 289, 469, 309, 261, 7466, 1854, 480, 374, 597, 401, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 3641, 5335, 12, 3641, 3179, 16, 5563, 1473, 2957, 16, 16830, 17313, 16, 509, 8710, 16, 509, 3179, 1854, 13, 288, 3639, 309, 261, 7466, 18, 588, 2148, 22, 40, 1435, 422, 446, 13, 288, 5411, 1194, 18, 8935, 2932, 4515, 3724, 3179, 2887, 576, 40, 7799, 8863, 5411, 327, 31, 3639, 289, 7734, 368, 1021, 16450, 364, 21046, 21891, 3639, 1431, 31855, 13724, 273, 374, 18, 27, 74, 31, 3639, 10063, 2212, 5711, 273, 17313, 18, 588, 5711, 5621, 3639, 509, 2212, 22688, 273, 2212, 5711, 18, 588, 1225, 5621, 3639, 10063, 31855, 5711, 273, 2212, 5711, 18, 765, 688, 5711, 12, 5411, 2212, 22688, 14, 1717, 4263, 13724, 1769, 3639, 368, 336, 16327, 2 ]
return (RubyGlobalEntry)u2;
return (RubyGlobalEntry)u3;
public RubyGlobalEntry getEntry() { return (RubyGlobalEntry)u2; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/9a05f18f2b6207bf93455d756436fe8f0002b542/Node.java/buggy/org/jruby/nodes/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5160, 1622, 15428, 1435, 288, 3639, 327, 261, 54, 10340, 5160, 1622, 13, 89, 23, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5160, 1622, 15428, 1435, 288, 3639, 327, 261, 54, 10340, 5160, 1622, 13, 89, 23, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this.script = new File(TEST_DIR + File.separator + filename);
public ScriptTest(Ruby ruby, String filename) { super(filename); this.ruby = ruby; this.filename = filename; this.script = new File(TEST_DIR + File.separator + filename); }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/68ea79c613972391a1d5009c8c9590b9b87d509a/ScriptTestSuite.java/buggy/org/jruby/test/ScriptTestSuite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 7739, 4709, 12, 54, 10340, 22155, 16, 514, 1544, 13, 288, 5411, 2240, 12, 3459, 1769, 5411, 333, 18, 27768, 273, 22155, 31, 5411, 333, 18, 3459, 273, 1544, 31, 10402, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 7739, 4709, 12, 54, 10340, 22155, 16, 514, 1544, 13, 288, 5411, 2240, 12, 3459, 1769, 5411, 333, 18, 27768, 273, 22155, 31, 5411, 333, 18, 3459, 273, 1544, 31, 10402, 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 ]
classMethodMap));
classMethodMap, true /*force AfterClass execution*/));
public List<ITestResult> invokeTestMethods(ITestNGMethod testMethod, XmlSuite suite, Map<String, String> parameters, ITestNGMethod[] allTestMethods, int testMethodIndex, ConfigurationGroupMethods groupMethods) { List<ITestResult> result = null; ITestClass testClass= testMethod.getTestClass(); Method method= testMethod.getMethod(); // Potential bug here if the test method was declared on a parent class assert null != testClass : "COULDN'T FIND TESTCLASS FOR " + method.getDeclaringClass(); long start= System.currentTimeMillis(); // // Invoke before method methods // ITestNGMethod[] beforeMethods = filterMethods(testClass, testClass.getBeforeTestMethods()); ITestNGMethod[] afterMethods = filterMethods(testClass, testClass.getAfterTestMethods()); int invocationCount = testMethod.getInvocationCount(); if (isWithinThreadedMethod()) invocationCount = 1; int failureCount = 0; // This boolean is used to exit this loop early if we are using a pool // thread. The reason is that in this case, all the invocationCount methods // will be invoked at once in different threads boolean more = true; int threadPoolSize = testMethod.getThreadPoolSize(); Class[] expectedExceptionClasses = findExpectedExceptions(m_annotationFinder, testMethod.getMethod()); while(invocationCount-- > 0 && more) { boolean okToProceed = checkDependencies(testMethod, testClass, allTestMethods); Object[] parameterValues = null; if (okToProceed) { // // Invoke test method // Map<String, String> allParameterNames = new HashMap<String, String>(); Iterator<Object[]> allParameterValues = handleParameters(testMethod, allParameterNames, testClass, parameters, suite); // // Invoke the test method if it's enabled // if (MethodHelper.isEnabled(testMethod.getMethod(), m_annotationFinder)) { Iterator<Object[]> it = allParameterValues; while (it.hasNext()) { parameterValues = it.next();// Reporter.setCurrentOutput(testMethod.getExtraOutput().getOutput()); Object[] instances = testClass.getInstances(true); // // Special behavior for JUnit: call setName on the instance with // the name of the method to be invoked // if (JUnitUtils.isAssignableFromTestCase(testClass.getRealClass())) { String name = testMethod.getMethodName(); try { Method m = testClass.getRealClass().getMethod("setName", new Class[] { String.class }); for (Object instance : instances) { m.invoke(instance, new Object[] { name }); } } catch (Exception e) { e.printStackTrace(); } } // JUnit // // If threadPoolSize specified, run this method in its own // pool thread. The extra boolean is here to make sure // we don't invoke the invoker recursively forever. // if (threadPoolSize > 1 && ! isWithinThreadedMethod()) { // // Create the workers // Map<ITestClass, ITestClass> beforeMethodsMap = new HashMap<ITestClass, ITestClass>(); Map<ITestClass, ITestClass> afterMethodsMap = new HashMap<ITestClass, ITestClass>(); List<TestMethodWorker> workers= new ArrayList<TestMethodWorker>(); ClassMethodMap classMethodMap = new ClassMethodMap(allTestMethods); for (int i = 0; i < testMethod.getInvocationCount(); i++) { workers.add(new TestMethodWorker(this, new ITestNGMethod[] {testMethod}, suite, parameters, beforeMethodsMap, afterMethodsMap, allTestMethods, groupMethods, classMethodMap)); } setWithinThreadedMethod(true); try { result = runWorkers(testMethod, workers, threadPoolSize); } finally { setWithinThreadedMethod(false); more = false; } } // // No threads, regular invocation // else { result = invokeMethod(instances, testMethod, parameterValues, suite, allParameterNames, testClass, beforeMethods, afterMethods, groupMethods); } // // Go through all the results and create a TestResult for each of them // for(ITestResult testResult : result) { Throwable ite= testResult.getThrowable(); int status= testResult.getStatus(); // Exception thrown? if(ite != null) { // Invocation caused an exception, see if the method was annotated with @ExpectedException if(isExpectedException(ite, expectedExceptionClasses)) { testResult.setStatus(ITestResult.SUCCESS); status= ITestResult.SUCCESS; } else { handleException(ite, testMethod, testResult, failureCount++); status= testResult.getStatus(); } } // No exception thrown, make sure we weren't expecting one else if(status != ITestResult.SKIP) { if (expectedExceptionClasses.length > 0) { testResult.setThrowable(new TestException("Expected an exception in test method " + testMethod)); status= ITestResult.FAILURE; } } testResult.setStatus(status); // Collect the results if(ITestResult.SUCCESS == status) { m_notifier.addPassedTest(testMethod, testResult); } else if(ITestResult.SKIP == status) { m_notifier.addSkippedTest(testMethod, testResult); } else if(ITestResult.FAILURE == status) { m_notifier.addFailedTest(testMethod, testResult); } else if(ITestResult.SUCCESS_PERCENTAGE_FAILURE == status) { m_notifier.addFailedButWithinSuccessPercentageTest(testMethod, testResult); } else { assert false : "UNKNOWN STATUS:" + status; } if (! isWithinThreadedMethod()) { runTestListeners(testResult); } } // isTestMethodEnabled } // for } // for parameters } // okToProceed else { // // Test is being skipped // ITestResult testResult= new TestResult(testClass, null, testMethod, null, start, System.currentTimeMillis()); testResult.setEndMillis(System.currentTimeMillis()); testResult.setParameters(parameterValues); String missingGroup = testMethod.getMissingGroup(); if (missingGroup != null) { testResult.setThrowable( new Throwable("Method " + testMethod + " depends on nonexistent group \"" + missingGroup + "\"")); } testResult.setStatus(ITestResult.SKIP); m_notifier.addSkippedTest(testMethod, testResult); runTestListeners(testResult); } }// Reporter.setCurrentOutput(null); return result; } // invokeTestMethod
50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/bf13e58b4d7d36d3323750879a8c2053e597bfbd/Invoker.java/buggy/src/main/org/testng/internal/Invoker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 987, 32, 1285, 395, 1253, 34, 4356, 4709, 4712, 12, 1285, 395, 4960, 1305, 1842, 1305, 16, 27573, 5714, 13587, 11371, 16, 27573, 1635, 32, 780, 16, 514, 34, 1472, 16, 27573, 467, 4709, 4960, 1305, 8526, 777, 4709, 4712, 16, 27573, 509, 1842, 1305, 1016, 16, 27573, 4659, 1114, 4712, 1041, 4712, 13, 225, 288, 565, 987, 32, 1285, 395, 1253, 34, 563, 273, 446, 31, 3639, 467, 4709, 797, 1842, 797, 33, 1842, 1305, 18, 588, 4709, 797, 5621, 565, 2985, 707, 33, 1842, 1305, 18, 588, 1305, 5621, 565, 368, 23435, 2001, 7934, 2674, 309, 326, 1842, 707, 1703, 7886, 603, 279, 982, 667, 565, 1815, 446, 480, 1842, 797, 294, 315, 3865, 1506, 8609, 11, 56, 28934, 22130, 5237, 12108, 315, 397, 707, 18, 588, 3456, 14682, 5621, 565, 1525, 787, 33, 2332, 18, 2972, 28512, 5621, 565, 368, 565, 368, 14373, 1865, 707, 2590, 565, 368, 565, 467, 4709, 4960, 1305, 8526, 1865, 4712, 273, 1034, 4712, 12, 3813, 797, 16, 1842, 797, 18, 588, 4649, 4709, 4712, 10663, 565, 467, 4709, 4960, 1305, 8526, 1839, 4712, 273, 1034, 4712, 12, 3813, 797, 16, 1842, 797, 18, 588, 4436, 4709, 4712, 10663, 565, 509, 9495, 1380, 273, 1842, 1305, 18, 588, 9267, 1380, 5621, 565, 309, 261, 291, 18949, 1315, 20528, 1305, 10756, 9495, 1380, 273, 404, 31, 565, 509, 5166, 1380, 273, 374, 31, 565, 368, 1220, 1250, 353, 1399, 358, 2427, 333, 2798, 11646, 309, 732, 854, 1450, 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, 987, 32, 1285, 395, 1253, 34, 4356, 4709, 4712, 12, 1285, 395, 4960, 1305, 1842, 1305, 16, 27573, 5714, 13587, 11371, 16, 27573, 1635, 32, 780, 16, 514, 34, 1472, 16, 27573, 467, 4709, 4960, 1305, 8526, 777, 4709, 4712, 16, 27573, 509, 1842, 1305, 1016, 16, 27573, 4659, 1114, 4712, 1041, 4712, 13, 225, 288, 565, 987, 32, 1285, 395, 1253, 34, 563, 273, 446, 31, 3639, 467, 4709, 797, 1842, 797, 33, 1842, 1305, 18, 588, 4709, 797, 5621, 565, 2985, 707, 33, 1842, 1305, 18, 588, 1305, 5621, 565, 368, 23435, 2001, 7934, 2674, 309, 326, 1842, 707, 1703, 7886, 603, 279, 982, 667, 565, 1815, 446, 480, 1842, 797, 294, 315, 3865, 1506, 2 ]
public static Entry[] convertStringEntries(String searchString) {
public static Entry[] convertStringEntries(final String searchString) {
public static Entry[] convertStringEntries(String searchString) { searchString.replace(',', ';'); StringTokenizer tokenizer = new StringTokenizer(searchString.trim(), ";"); ArrayList entriesList = new ArrayList(); while (tokenizer.hasMoreElements()) { String token = tokenizer.nextToken(); PropertyEntry entry = new PropertyEntry(); entry.name = token.substring(0, token.indexOf("=")).trim(); entry.value = token.substring(token.indexOf("=") + 1).trim(); entriesList.add(entry); } LOG.debug("Entry List: " + entriesList); final Entry[] arrEntries; if (entriesList.size() == 0) { arrEntries = null; } else { arrEntries = (Entry[]) entriesList.toArray(new Entry[entriesList.size()]); } return arrEntries; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/0e3b303687ee2c38a1baf9187b401c67768adca4/ReggieUtil.java/buggy/contrib/distributed/src/net/sourceforge/cruisecontrol/distributed/util/ReggieUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3841, 8526, 1765, 780, 5400, 12, 6385, 514, 1623, 780, 13, 288, 3639, 1623, 780, 18, 2079, 12, 2187, 2187, 7554, 1769, 3639, 16370, 10123, 273, 394, 16370, 12, 3072, 780, 18, 5290, 9334, 11430, 1769, 3639, 2407, 3222, 682, 273, 394, 2407, 5621, 3639, 1323, 261, 2316, 1824, 18, 5332, 7417, 3471, 10756, 288, 5411, 514, 1147, 273, 10123, 18, 4285, 1345, 5621, 5411, 4276, 1622, 1241, 273, 394, 4276, 1622, 5621, 5411, 1241, 18, 529, 273, 1147, 18, 28023, 12, 20, 16, 1147, 18, 31806, 2932, 1546, 13, 2934, 5290, 5621, 5411, 1241, 18, 1132, 273, 1147, 18, 28023, 12, 2316, 18, 31806, 2932, 1546, 13, 397, 404, 2934, 5290, 5621, 5411, 3222, 682, 18, 1289, 12, 4099, 1769, 3639, 289, 3639, 2018, 18, 4148, 2932, 1622, 987, 30, 315, 397, 3222, 682, 1769, 7734, 727, 3841, 8526, 2454, 5400, 31, 3639, 309, 261, 8219, 682, 18, 1467, 1435, 422, 374, 13, 288, 5411, 2454, 5400, 273, 446, 31, 3639, 289, 469, 288, 5411, 2454, 5400, 273, 261, 1622, 63, 5717, 3222, 682, 18, 31447, 12, 2704, 3841, 63, 8219, 682, 18, 1467, 1435, 19226, 3639, 289, 3639, 327, 2454, 5400, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3841, 8526, 1765, 780, 5400, 12, 6385, 514, 1623, 780, 13, 288, 3639, 1623, 780, 18, 2079, 12, 2187, 2187, 7554, 1769, 3639, 16370, 10123, 273, 394, 16370, 12, 3072, 780, 18, 5290, 9334, 11430, 1769, 3639, 2407, 3222, 682, 273, 394, 2407, 5621, 3639, 1323, 261, 2316, 1824, 18, 5332, 7417, 3471, 10756, 288, 5411, 514, 1147, 273, 10123, 18, 4285, 1345, 5621, 5411, 4276, 1622, 1241, 273, 394, 4276, 1622, 5621, 5411, 1241, 18, 529, 273, 1147, 18, 28023, 12, 20, 16, 1147, 18, 31806, 2932, 1546, 13, 2934, 5290, 5621, 5411, 1241, 18, 1132, 273, 1147, 18, 28023, 12, 2316, 18, 31806, 2932, 1546, 13, 397, 404, 2934, 5290, 5621, 5411, 3222, 682, 2 ]
Link tmp; for(int i=0; i < links.size(); i++) { tmp=(Link)links.elementAt(i); tmp.stop(); } links.removeAllElements();
Link tmp; for(int i=0; i < links.size(); i++) { tmp=(Link)links.elementAt(i); tmp.stop(); } links.removeAllElements();
public void removeAllLinks() { Link tmp; for(int i=0; i < links.size(); i++) { tmp=(Link)links.elementAt(i); tmp.stop(); } links.removeAllElements(); }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/5ad015d9a78e1da3350d9b398b46b2f5d4508564/LogicalLink.java/clean/src/org/jgroups/blocks/LogicalLink.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12787, 7100, 1435, 288, 202, 2098, 1853, 31, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 411, 4716, 18, 1467, 5621, 277, 27245, 288, 202, 565, 1853, 28657, 2098, 13, 7135, 18, 2956, 861, 12, 77, 1769, 202, 565, 1853, 18, 5681, 5621, 202, 97, 202, 7135, 18, 4479, 1595, 3471, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12787, 7100, 1435, 288, 202, 2098, 1853, 31, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 411, 4716, 18, 1467, 5621, 277, 27245, 288, 202, 565, 1853, 28657, 2098, 13, 7135, 18, 2956, 861, 12, 77, 1769, 202, 565, 1853, 18, 5681, 5621, 202, 97, 202, 7135, 18, 4479, 1595, 3471, 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 ]
protected Object doInvokeInternal(final Class clazz, String methodName, Object[] arguments) { List expressions = new ArrayList(); Matcher match = super.getPattern().matcher( methodName ); // find match match.find(); String[] queryParameters = null; int totalRequiredArguments = 0; // get the sequence clauses String querySequence = match.group(2); // if it contains operator and split boolean containsOperator = false; for (int i = 0; i < operators.length; i++) { Matcher currentMatcher = operatorPatterns[i].matcher( querySequence ); if(currentMatcher.find()) { containsOperator = true; operatorInUse = this.operators[i]; queryParameters = new String[2]; queryParameters[0] = currentMatcher.group(1); queryParameters[1] = currentMatcher.group(3) + currentMatcher.group(4); // loop through query parameters and create expressions // calculating the numBer of arguments required for the expression int argumentCursor = 0; for (int j = 0; j < queryParameters.length; j++) { GrailsMethodExpression currentExpression = GrailsMethodExpression.create(this.application,clazz,queryParameters[j]); totalRequiredArguments += currentExpression.argumentsRequired; // populate the arguments into the GrailsExpression from the argument list Object[] currentArguments = new Object[currentExpression.argumentsRequired]; if((argumentCursor + currentExpression.argumentsRequired) > arguments.length) throw new MissingMethodException(methodName,clazz,arguments); for (int k = 0; k < currentExpression.argumentsRequired; k++,argumentCursor++) { currentArguments[k] = arguments[argumentCursor]; } try { currentExpression.setArguments(currentArguments); }catch(IllegalArgumentException iae) { LOG.debug(iae.getMessage(),iae); throw new MissingMethodException(methodName,clazz,arguments); } // add to list of expressions expressions.add(currentExpression); } break; } } // otherwise there is only one expression if(!containsOperator) { GrailsMethodExpression solo = GrailsMethodExpression.create(this.application, clazz,querySequence ); if(solo.argumentsRequired > arguments.length) throw new MissingMethodException(methodName,clazz,arguments); totalRequiredArguments += solo.argumentsRequired; Object[] soloArgs = new Object[solo.argumentsRequired]; for (int i = 0; i < solo.argumentsRequired; i++) { soloArgs[i] = arguments[i]; } try { solo.setArguments(soloArgs); } catch(IllegalArgumentException iae) { LOG.debug(iae.getMessage(),iae); throw new MissingMethodException(methodName,clazz,arguments); } expressions.add(solo); } // if the total of all the arguments necessary does not equal the number of arguments // throw exception if(totalRequiredArguments > arguments.length) throw new MissingMethodException(methodName,clazz,arguments); // calculate the remaining arguments Object[] remainingArguments = new Object[arguments.length - totalRequiredArguments]; if(remainingArguments.length > 0) { for (int i = 0, j = totalRequiredArguments; i < remainingArguments.length; i++,j++) { remainingArguments[i] = arguments[j]; } } if(LOG.isTraceEnabled()) LOG.trace("Calculated expressions: " + expressions); return doInvokeInternalWithExpressions(clazz, methodName, remainingArguments, expressions); }
50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/eb420a51890989f6ca7f281725a19ebec728f77c/AbstractClausedStaticPersistentMethod.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 741, 10969, 3061, 12, 6385, 1659, 4003, 16, 514, 4918, 16, 1082, 202, 921, 8526, 1775, 13, 288, 202, 202, 682, 8041, 273, 394, 2407, 5621, 202, 202, 6286, 845, 273, 2240, 18, 588, 3234, 7675, 22761, 12, 4918, 11272, 202, 202, 759, 1104, 845, 202, 202, 1916, 18, 4720, 5621, 9506, 202, 780, 8526, 31485, 273, 446, 31, 202, 202, 474, 2078, 3705, 4628, 273, 374, 31, 202, 202, 759, 336, 326, 3102, 14093, 202, 202, 780, 843, 4021, 273, 845, 18, 1655, 12, 22, 1769, 202, 202, 759, 309, 518, 1914, 3726, 471, 1416, 202, 202, 6494, 1914, 5592, 273, 629, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 12213, 18, 2469, 31, 277, 27245, 288, 1082, 202, 6286, 783, 6286, 273, 3726, 11268, 63, 77, 8009, 22761, 12, 843, 4021, 11272, 1082, 202, 430, 12, 2972, 6286, 18, 4720, 10756, 288, 9506, 202, 12298, 5592, 273, 638, 31, 9506, 202, 9497, 15435, 273, 333, 18, 30659, 63, 77, 15533, 6862, 9506, 202, 2271, 2402, 273, 394, 514, 63, 22, 15533, 9506, 202, 2271, 2402, 63, 20, 65, 273, 783, 6286, 18, 1655, 12, 21, 1769, 9506, 202, 2271, 2402, 63, 21, 65, 273, 783, 6286, 18, 1655, 12, 23, 13, 397, 783, 6286, 18, 1655, 12, 24, 1769, 6862, 9506, 202, 759, 2798, 3059, 843, 1472, 471, 752, 8041, 9506, 202, 759, 21046, 326, 818, 38, 264, 434, 1775, 1931, 364, 326, 2652, 9506, 202, 474, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 741, 10969, 3061, 12, 6385, 1659, 4003, 16, 514, 4918, 16, 1082, 202, 921, 8526, 1775, 13, 288, 202, 202, 682, 8041, 273, 394, 2407, 5621, 202, 202, 6286, 845, 273, 2240, 18, 588, 3234, 7675, 22761, 12, 4918, 11272, 202, 202, 759, 1104, 845, 202, 202, 1916, 18, 4720, 5621, 9506, 202, 780, 8526, 31485, 273, 446, 31, 202, 202, 474, 2078, 3705, 4628, 273, 374, 31, 202, 202, 759, 336, 326, 3102, 14093, 202, 202, 780, 843, 4021, 273, 845, 18, 1655, 12, 22, 1769, 202, 202, 759, 309, 518, 1914, 3726, 471, 1416, 202, 202, 6494, 1914, 5592, 273, 629, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2 ]
String readFile(String fileName) {
private String readFile(String fileName) {
String readFile(String fileName) { String text; try { Reader r = new FileReader(fileName); try { text = Kit.readReader(r); } finally { r.close(); } } catch (IOException ex) { MessageDialogWrapper.showMessageDialog(this, ex.getMessage(), "Error reading "+fileName, JOptionPane.ERROR_MESSAGE); text = null; } return text; }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/2d4fc75b74d717c754829dde488ff0a7456682cc/SwingGui.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/SwingGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 10413, 12, 780, 3968, 13, 565, 288, 3639, 514, 977, 31, 3639, 775, 288, 5411, 5393, 436, 273, 394, 23010, 12, 17812, 1769, 5411, 775, 288, 7734, 977, 273, 1475, 305, 18, 896, 2514, 12, 86, 1769, 5411, 289, 3095, 288, 7734, 436, 18, 4412, 5621, 5411, 289, 3639, 289, 1044, 261, 14106, 431, 13, 288, 5411, 2350, 6353, 3611, 18, 4500, 1079, 6353, 12, 2211, 16, 4766, 10402, 431, 18, 24906, 9334, 4766, 10402, 315, 668, 6453, 13773, 17812, 16, 4766, 10402, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 5411, 977, 273, 446, 31, 3639, 289, 3639, 327, 977, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 10413, 12, 780, 3968, 13, 565, 288, 3639, 514, 977, 31, 3639, 775, 288, 5411, 5393, 436, 273, 394, 23010, 12, 17812, 1769, 5411, 775, 288, 7734, 977, 273, 1475, 305, 18, 896, 2514, 12, 86, 1769, 5411, 289, 3095, 288, 7734, 436, 18, 4412, 5621, 5411, 289, 3639, 289, 1044, 261, 14106, 431, 13, 288, 5411, 2350, 6353, 3611, 18, 4500, 1079, 6353, 12, 2211, 16, 4766, 10402, 431, 18, 24906, 9334, 4766, 10402, 315, 668, 6453, 13773, 17812, 16, 4766, 10402, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 5411, 977, 273, 446, 31, 3639, 289, 3639, 327, 977, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return RubyArray.create(this, new IRubyObject[] { begin(index), end(index)});
return RubyArray.newArray(getRuntime(), new IRubyObject[] { begin(index), end(index)});
public IRubyObject offset(RubyFixnum index) { if (outOfBounds(index)) { return getRuntime().getNil(); } return RubyArray.create(this, new IRubyObject[] { begin(index), end(index)}); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3acff782b00a5f6892fe6bd44e0665cc6194f9aa/RubyMatchData.java/clean/org/jruby/RubyMatchData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1384, 12, 54, 10340, 8585, 2107, 770, 13, 288, 3639, 309, 261, 659, 951, 5694, 12, 1615, 3719, 288, 5411, 327, 18814, 7675, 588, 12616, 5621, 3639, 289, 3639, 327, 19817, 1076, 18, 2704, 1076, 12, 588, 5576, 9334, 394, 15908, 10340, 921, 8526, 288, 2376, 12, 1615, 3631, 679, 12, 1615, 16869, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1384, 12, 54, 10340, 8585, 2107, 770, 13, 288, 3639, 309, 261, 659, 951, 5694, 12, 1615, 3719, 288, 5411, 327, 18814, 7675, 588, 12616, 5621, 3639, 289, 3639, 327, 19817, 1076, 18, 2704, 1076, 12, 588, 5576, 9334, 394, 15908, 10340, 921, 8526, 288, 2376, 12, 1615, 3631, 679, 12, 1615, 16869, 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 ]
out.println("</TD></TR></TABLE>");
out.println("</td></tr></table>");
public int doStartTag() throws JspException { try { JspWriter out = pageContext.getOut(); HttpServletRequest req = (HttpServletRequest) pageContext .getRequest(); out .print("<table><tr><td colspan=2><select multiple name=\"eperson_id\" SIZE="); out.print(multiple ? "10" : "1"); out.println(">"); if (epeople != null) { for (int i = 0; i < epeople.length; i++) { out.print("<OPTION VALUE=\"" + epeople[i].getID() + "\">"); out.print(epeople[i].getFullName() + " (" + epeople[i].getEmail() + ")"); out.println("</OPTION>"); } } out.print("</SELECT></TD>"); if (multiple) { out.print("</TR><TR><TD width=\"50%\" align=\"center\">"); } else { out.print("<TD>"); } String p = (multiple ? LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.SelectEPersonTag.selectPeople") : LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.SelectEPersonTag.selectPerson") ); out.print("<input type=\"button\" value=\"" + p + "\" onclick=\"javascript:popup_window('" + req.getContextPath() + "/tools/eperson-list?multiple=" + multiple + "', 'eperson_popup');\">"); if (multiple) { out.print("</TD><TD width=\"50%\" align=\"center\">"); out.print("<input type=\"button\" value=\"" + LocaleSupport.getLocalizedMessage(pageContext, "org.dspace.app.webui.jsptag.SelectEPersonTag.removeSelected") + "\" onclick=\"javascript:removeSelected(window.document.forms[0].eperson_id);\">"); } out.println("</TD></TR></TABLE>"); } catch (IOException ie) { throw new JspException(ie); } return SKIP_BODY; }
31338 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31338/7246c4d1de39cbc642fdd3020918ab51e8c815bd/SelectEPersonTag.java/clean/dspace/src/org/dspace/app/webui/jsptag/SelectEPersonTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 30512, 1435, 1216, 27485, 565, 288, 3639, 775, 3639, 288, 5411, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 5411, 9984, 1111, 273, 261, 2940, 18572, 13, 21442, 10792, 263, 588, 691, 5621, 5411, 596, 10792, 263, 1188, 2932, 32, 2121, 4438, 313, 4438, 4465, 20856, 33, 22, 4438, 4025, 3229, 508, 5189, 881, 3565, 67, 350, 2412, 11963, 1546, 1769, 5411, 596, 18, 1188, 12, 9622, 692, 315, 2163, 6, 294, 315, 21, 8863, 5411, 596, 18, 8222, 2932, 2984, 1769, 5411, 309, 261, 73, 28035, 480, 446, 13, 5411, 288, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 425, 28035, 18, 2469, 31, 277, 27245, 7734, 288, 10792, 596, 18, 1188, 2932, 32, 7425, 5848, 13186, 397, 425, 28035, 63, 77, 8009, 588, 734, 1435, 397, 7023, 2984, 1769, 10792, 596, 18, 1188, 12, 73, 28035, 63, 77, 8009, 588, 19223, 1435, 397, 315, 7566, 18701, 397, 425, 28035, 63, 77, 8009, 588, 4134, 1435, 397, 7310, 1769, 10792, 596, 18, 8222, 2932, 1757, 7425, 2984, 1769, 7734, 289, 5411, 289, 5411, 596, 18, 1188, 2932, 1757, 4803, 4695, 23409, 2984, 1769, 5411, 309, 261, 9622, 13, 5411, 288, 7734, 596, 18, 1188, 2932, 1757, 4349, 4438, 4349, 4438, 23409, 1835, 5189, 3361, 9, 2412, 5689, 5189, 5693, 21121, 1769, 5411, 289, 5411, 469, 5411, 288, 7734, 596, 18, 1188, 2932, 32, 23409, 2984, 1769, 5411, 289, 5411, 514, 293, 273, 261, 9622, 692, 11794, 6458, 6289, 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, 509, 741, 30512, 1435, 1216, 27485, 565, 288, 3639, 775, 3639, 288, 5411, 19300, 2289, 596, 273, 21442, 18, 588, 1182, 5621, 5411, 9984, 1111, 273, 261, 2940, 18572, 13, 21442, 10792, 263, 588, 691, 5621, 5411, 596, 10792, 263, 1188, 2932, 32, 2121, 4438, 313, 4438, 4465, 20856, 33, 22, 4438, 4025, 3229, 508, 5189, 881, 3565, 67, 350, 2412, 11963, 1546, 1769, 5411, 596, 18, 1188, 12, 9622, 692, 315, 2163, 6, 294, 315, 21, 8863, 5411, 596, 18, 8222, 2932, 2984, 1769, 5411, 309, 261, 73, 28035, 480, 446, 13, 5411, 288, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 425, 28035, 18, 2469, 31, 277, 27245, 7734, 288, 10792, 596, 18, 2 ]
event.addProperty(new ZProperty(ICalTok.EXRULE, srr.getRecur().toString()));
component.addProperty(new ZProperty(ICalTok.EXRULE, srr.getRecur().toString()));
public ZComponent newToVComponent(boolean useOutlookCompatMode) throws ServiceException { ZComponent event = new ZComponent(IcalXmlStrMap.sCompTypeMap.toIcal(mCompType)); event.addProperty(new ZProperty(ICalTok.UID, getUid())); IRecurrence recur = getRecurrence(); if (recur != null) { for (Iterator iter = recur.addRulesIterator(); iter!=null && iter.hasNext();) { IRecurrence cur = (IRecurrence)iter.next(); switch (cur.getType()) { case Recurrence.TYPE_SINGLE_INSTANCE: //Recurrence.SingleInstanceRule sir = (Recurrence.SingleInstanceRule)cur; // FIXME break; case Recurrence.TYPE_REPEATING: Recurrence.SimpleRepeatingRule srr = (Recurrence.SimpleRepeatingRule)cur; event.addProperty(new ZProperty(ICalTok.RRULE, srr.getRecur().toString())); break; } } for (Iterator iter = recur.subRulesIterator(); iter!=null && iter.hasNext();) { IRecurrence cur = (IRecurrence)iter.next(); switch (cur.getType()) { case Recurrence.TYPE_SINGLE_INSTANCE: //Recurrence.SingleInstanceRule sir = (Recurrence.SingleInstanceRule)cur; // FIXME break; case Recurrence.TYPE_REPEATING: Recurrence.SimpleRepeatingRule srr = (Recurrence.SimpleRepeatingRule)cur; event.addProperty(new ZProperty(ICalTok.EXRULE, srr.getRecur().toString())); break; } } } // ORGANIZER if (hasOrganizer()) event.addProperty(getOrganizer().toProperty()); // SUMMARY (aka Name or Subject) String name = getName(); if (name != null && name.length()>0) event.addProperty(new ZProperty(ICalTok.SUMMARY, name)); // DESCRIPTION String fragment = getFragment(); if (fragment != null && fragment.length()>0) event.addProperty(new ZProperty(ICalTok.DESCRIPTION, fragment)); // COMMENT String comment = getComment(); if (comment != null && comment.length()>0) event.addProperty(new ZProperty(ICalTok.COMMENT, comment)); // DTSTART ParsedDateTime dtstart = getStartTime(); if (dtstart != null) event.addProperty(dtstart.toProperty(ICalTok.DTSTART, useOutlookCompatMode)); // DTEND or DUE ParsedDateTime dtend = getEndTime(); if (dtend != null) { ICalTok prop = ICalTok.DTEND; if (isTodo()) prop = ICalTok.DUE; event.addProperty(dtend.toProperty(prop, useOutlookCompatMode)); } // DURATION ParsedDuration dur = getDuration(); if (dur != null) event.addProperty(new ZProperty(ICalTok.DURATION, dur.toString())); // LOCATION String location = getLocation(); if (location != null) event.addProperty(new ZProperty(ICalTok.LOCATION, location.toString())); // STATUS String status = getStatus(); String statusIcal = IcalXmlStrMap.sStatusMap.toIcal(status); if (IcalXmlStrMap.STATUS_ZCO_WAITING.equals(status) || IcalXmlStrMap.STATUS_ZCO_DEFERRED.equals(status)) { ZParameter param = new ZParameter(ICalTok.X_ZIMBRA_STATUS, statusIcal); ZProperty prop = new ZProperty(ICalTok.STATUS, ICalTok.IN_PROCESS.toString()); prop.addParameter(param); event.addProperty(prop); } else { event.addProperty(new ZProperty(ICalTok.STATUS, statusIcal)); } if (isEvent()) { // allDay if (isAllDayEvent()) event.addProperty(new ZProperty(ICalTok.X_MICROSOFT_CDO_ALLDAYEVENT, true)); // Microsoft Outlook compatibility for free-busy status { String outlookFreeBusy = IcalXmlStrMap.sOutlookFreeBusyMap.toIcal(getFreeBusy()); event.addProperty(new ZProperty(ICalTok.X_MICROSOFT_CDO_BUSYSTATUS, outlookFreeBusy)); event.addProperty(new ZProperty(ICalTok.X_MICROSOFT_CDO_INTENDEDSTATUS, outlookFreeBusy)); } // TRANSPARENCY event.addProperty(new ZProperty(ICalTok.TRANSP, IcalXmlStrMap.sTranspMap.toIcal(getTransparency()))); } // ATTENDEES for (ZAttendee at : (List<ZAttendee>)getAttendees()) event.addProperty(at.toProperty()); // RECURRENCE-ID RecurId recurId = getRecurId(); if (recurId != null) event.addProperty(recurId.toProperty(useOutlookCompatMode)); // DTSTAMP ParsedDateTime dtStamp = ParsedDateTime.fromUTCTime(getDTStamp()); event.addProperty(dtStamp.toProperty(ICalTok.DTSTAMP, useOutlookCompatMode)); // SEQUENCE event.addProperty(new ZProperty(ICalTok.SEQUENCE, getSeqNo())); // PRIORITY if (mPriority != null) event.addProperty(new ZProperty(ICalTok.PRIORITY, mPriority)); // PERCENT-COMPLETE if (isTodo() && mPercentComplete != null) event.addProperty(new ZProperty(ICalTok.PERCENT_COMPLETE, mPercentComplete)); // COMPLETED if (isTodo() && mCompleted != 0) { ParsedDateTime completed = ParsedDateTime.fromUTCTime(mCompleted); event.addProperty(completed.toProperty(ICalTok.COMPLETED, false)); } return event; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/d2bb4f39fb971bbc73c0ecff01cbd6d1962c353b/Invite.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/calendar/Invite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2285, 1841, 394, 774, 58, 1841, 12, 6494, 999, 1182, 7330, 13322, 2309, 13, 565, 1216, 16489, 288, 3639, 2285, 1841, 871, 273, 394, 2285, 1841, 12, 45, 771, 4432, 1585, 863, 18, 87, 2945, 23968, 18, 869, 45, 771, 12, 81, 2945, 559, 10019, 3639, 871, 18, 1289, 1396, 12, 2704, 2285, 1396, 12, 2871, 287, 20477, 18, 3060, 16, 31652, 1435, 10019, 7734, 467, 426, 17131, 8112, 273, 5561, 17131, 5621, 3639, 309, 261, 266, 1397, 480, 446, 13, 288, 5411, 364, 261, 3198, 1400, 273, 8112, 18, 1289, 4478, 3198, 5621, 1400, 5, 33, 2011, 597, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 467, 426, 17131, 662, 273, 261, 45, 426, 17131, 13, 2165, 18, 4285, 5621, 7734, 1620, 261, 1397, 18, 588, 559, 10756, 288, 1171, 648, 868, 17131, 18, 2399, 67, 20184, 67, 13341, 30, 10792, 368, 426, 17131, 18, 5281, 1442, 2175, 272, 481, 273, 261, 426, 17131, 18, 5281, 1442, 2175, 13, 1397, 31, 10792, 368, 9852, 10792, 898, 31, 7734, 648, 868, 17131, 18, 2399, 67, 862, 1423, 28054, 30, 10792, 868, 17131, 18, 5784, 426, 347, 1776, 2175, 272, 523, 273, 261, 426, 17131, 18, 5784, 426, 347, 1776, 2175, 13, 1397, 31, 10792, 871, 18, 1289, 1396, 12, 2704, 2285, 1396, 12, 2871, 287, 20477, 18, 54, 14920, 16, 272, 523, 18, 588, 426, 1397, 7675, 10492, 1435, 10019, 10792, 898, 31, 7734, 289, 18701, 289, 5411, 364, 261, 3198, 1400, 273, 8112, 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, 2285, 1841, 394, 774, 58, 1841, 12, 6494, 999, 1182, 7330, 13322, 2309, 13, 565, 1216, 16489, 288, 3639, 2285, 1841, 871, 273, 394, 2285, 1841, 12, 45, 771, 4432, 1585, 863, 18, 87, 2945, 23968, 18, 869, 45, 771, 12, 81, 2945, 559, 10019, 3639, 871, 18, 1289, 1396, 12, 2704, 2285, 1396, 12, 2871, 287, 20477, 18, 3060, 16, 31652, 1435, 10019, 7734, 467, 426, 17131, 8112, 273, 5561, 17131, 5621, 3639, 309, 261, 266, 1397, 480, 446, 13, 288, 5411, 364, 261, 3198, 1400, 273, 8112, 18, 1289, 4478, 3198, 5621, 1400, 5, 33, 2011, 597, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 467, 426, 17131, 662, 273, 261, 45, 426, 17131, 13, 2 ]
Offset offset = Offset.fromInt(myThread.tsFPOffset + STACKFRAME_RETURN_ADDRESS_OFFSET);
Offset offset = myThread.tsFPOffset.add(STACKFRAME_RETURN_ADDRESS_OFFSET);
public static void postProcess(VM_Thread myThread) throws NoInlinePragma { /* We need to generate thread specific code and install new code. * We have to make sure that no GC happens from here and before * the new code get executed. */ // add branch instruction from CTR. VM_CodeArray bridge = myThread.bridgeInstructions; Address bridgeaddr = VM_Magic.objectAsAddress(bridge); if (VM.TraceOnStackReplacement) { VM.sysWrite("osr post processing\n"); } Offset offset = Offset.fromInt(myThread.tsFPOffset + STACKFRAME_RETURN_ADDRESS_OFFSET); VM_Magic.objectAsAddress(myThread.stack).store(bridgeaddr, offset); myThread.tsFPOffset = 0; myThread.isWaitingForOsr = false; myThread.bridgeInstructions = null; // no GC should happen until the glue code gets executed. }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/OSR_PostThreadSwitch.java/buggy/rvm/src/vm/arch/intel/executionState/OSR_PostThreadSwitch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1603, 2227, 12, 7397, 67, 3830, 3399, 3830, 13, 377, 1216, 2631, 10870, 2050, 9454, 288, 565, 1748, 1660, 1608, 358, 2103, 2650, 2923, 981, 471, 3799, 394, 981, 18, 377, 380, 1660, 1240, 358, 1221, 3071, 716, 1158, 15085, 10555, 628, 2674, 471, 1865, 1377, 380, 326, 394, 981, 336, 7120, 18, 377, 1195, 565, 368, 527, 3803, 7592, 628, 31568, 18, 565, 8251, 67, 1085, 1076, 10105, 282, 273, 3399, 3830, 18, 18337, 26712, 31, 1850, 5267, 324, 1691, 75, 684, 3069, 273, 8251, 67, 19289, 18, 1612, 1463, 1887, 12, 18337, 1769, 565, 309, 261, 7397, 18, 3448, 1398, 2624, 15201, 13, 288, 1377, 8251, 18, 9499, 3067, 2932, 538, 86, 1603, 4929, 64, 82, 8863, 565, 289, 5411, 9874, 1384, 273, 3399, 3830, 18, 3428, 30246, 2335, 18, 1289, 12, 21971, 15072, 67, 14033, 67, 15140, 67, 11271, 1769, 565, 8251, 67, 19289, 18, 1612, 1463, 1887, 12, 4811, 3830, 18, 3772, 2934, 2233, 12, 14400, 75, 684, 3069, 16, 1384, 1769, 565, 3399, 3830, 18, 3428, 30246, 2335, 273, 374, 31, 565, 3399, 3830, 18, 291, 15946, 1290, 51, 11254, 273, 629, 31, 565, 3399, 3830, 18, 18337, 26712, 273, 446, 31, 565, 368, 1158, 15085, 1410, 5865, 3180, 326, 17960, 981, 5571, 7120, 18, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1603, 2227, 12, 7397, 67, 3830, 3399, 3830, 13, 377, 1216, 2631, 10870, 2050, 9454, 288, 565, 1748, 1660, 1608, 358, 2103, 2650, 2923, 981, 471, 3799, 394, 981, 18, 377, 380, 1660, 1240, 358, 1221, 3071, 716, 1158, 15085, 10555, 628, 2674, 471, 1865, 1377, 380, 326, 394, 981, 336, 7120, 18, 377, 1195, 565, 368, 527, 3803, 7592, 628, 31568, 18, 565, 8251, 67, 1085, 1076, 10105, 282, 273, 3399, 3830, 18, 18337, 26712, 31, 1850, 5267, 324, 1691, 75, 684, 3069, 273, 8251, 67, 19289, 18, 1612, 1463, 1887, 12, 18337, 1769, 565, 309, 261, 7397, 18, 3448, 1398, 2624, 15201, 13, 288, 1377, 8251, 18, 9499, 3067, 2932, 538, 86, 1603, 2 ]
CurrentBuildFileWriter.writefile("<span class=\"link\">Current Build Started At:<br>", new Date(), fileName);
CurrentBuildFileWriter.writefile("Current Build Started At:\n", new Date(), fileName);
public void bootstrap() throws CruiseControlException { CurrentBuildFileWriter.writefile("<span class=\"link\">Current Build Started At:<br>", new Date(), fileName); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/4d2be163ca309c13eb694ae6aba96b2019aca592/CurrentBuildStatusBootstrapper.java/buggy/main/src/net/sourceforge/cruisecontrol/bootstrappers/CurrentBuildStatusBootstrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7065, 1435, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 6562, 3116, 812, 2289, 18, 2626, 768, 2932, 3935, 3998, 29386, 2380, 5581, 82, 3113, 394, 2167, 9334, 3968, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7065, 1435, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 6562, 3116, 812, 2289, 18, 2626, 768, 2932, 3935, 3998, 29386, 2380, 5581, 82, 3113, 394, 2167, 9334, 3968, 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 ]
element.fDefault = defaultAtt;
element.fDefault = new ValidatedInfo(); element.fDefault.normalizedValue = defaultAtt;
XSElementDecl traverseNamedElement(Element elmDecl, Object[] attrValues, XSDocumentInfo schemaDoc, SchemaGrammar grammar, boolean isGlobal) { Boolean abstractAtt = (Boolean) attrValues[XSAttributeChecker.ATTIDX_ABSTRACT]; XInt blockAtt = (XInt) attrValues[XSAttributeChecker.ATTIDX_BLOCK]; String defaultAtt = (String) attrValues[XSAttributeChecker.ATTIDX_DEFAULT]; XInt finalAtt = (XInt) attrValues[XSAttributeChecker.ATTIDX_FINAL]; String fixedAtt = (String) attrValues[XSAttributeChecker.ATTIDX_FIXED]; XInt formAtt = (XInt) attrValues[XSAttributeChecker.ATTIDX_FORM]; String nameAtt = (String) attrValues[XSAttributeChecker.ATTIDX_NAME]; Boolean nillableAtt = (Boolean) attrValues[XSAttributeChecker.ATTIDX_NILLABLE]; QName subGroupAtt = (QName) attrValues[XSAttributeChecker.ATTIDX_SUBSGROUP]; QName typeAtt = (QName) attrValues[XSAttributeChecker.ATTIDX_TYPE]; // Step 1: get declaration information XSElementDecl element = new XSElementDecl(); // get 'name' if (nameAtt != null) element.fName = fSymbolTable.addSymbol(nameAtt); // get 'target namespace' if (isGlobal) { element.fTargetNamespace = schemaDoc.fTargetNamespace; } else if (formAtt != null) { if (formAtt.intValue() == SchemaSymbols.FORM_QUALIFIED) element.fTargetNamespace = schemaDoc.fTargetNamespace; else element.fTargetNamespace = null; } else if (schemaDoc.fAreLocalElementsQualified) { element.fTargetNamespace = schemaDoc.fTargetNamespace; } else { element.fTargetNamespace = null; } // get 'block', 'final', 'nillable', 'abstract' element.fBlock = blockAtt == null ? schemaDoc.fBlockDefault : blockAtt.shortValue(); element.fFinal = finalAtt == null ? schemaDoc.fFinalDefault : finalAtt.shortValue(); if (nillableAtt.booleanValue()) element.setIsNillable(); if (abstractAtt != null && abstractAtt.booleanValue()) element.setIsAbstract(); // get 'value constraint' if (fixedAtt != null) { element.fDefault = fixedAtt; element.setConstraintType(XSElementDecl.FIXED_VALUE); } else if (defaultAtt != null) { element.fDefault = defaultAtt; element.setConstraintType(XSElementDecl.DEFAULT_VALUE); } else { element.setConstraintType(XSElementDecl.NO_CONSTRAINT); } // get 'substitutionGroup affiliation' // REVISIT: allow mutual-substitution // we need to back-patch both fSubGroup and fType // if there is no type attribute and no anonymous type if (subGroupAtt != null) { element.fSubGroup = (XSElementDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.ELEMENT_TYPE, subGroupAtt); } // get 'annotation' Element child = DOMUtil.getFirstChildElement(elmDecl); if(child != null && DOMUtil.getLocalName(child).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(child, attrValues, false, schemaDoc); child = DOMUtil.getNextSiblingElement(child); } // get 'type definition' XSTypeDecl elementType = null; boolean haveAnonType = false; // Handle Anonymous type if there is one if (child != null) { String childName = DOMUtil.getLocalName(child); if (childName.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { elementType = fSchemaHandler.fComplexTypeTraverser.traverseLocal(child, schemaDoc, grammar); haveAnonType = true; child = DOMUtil.getNextSiblingElement(child); } else if (childName.equals(SchemaSymbols.ELT_SIMPLETYPE)) { elementType = fSchemaHandler.fSimpleTypeTraverser.traverseLocal(child, schemaDoc, grammar); haveAnonType = true; child = DOMUtil.getNextSiblingElement(child); } } // Handler type attribute if (elementType == null && typeAtt != null) { elementType = (XSTypeDecl)fSchemaHandler.getGlobalDecl(schemaDoc, XSDHandler.TYPEDECL_TYPE, typeAtt); } // Get it from the substitutionGroup declaration if (elementType == null && element.fSubGroup != null) { elementType = element.fSubGroup.fType; } if (elementType == null) { elementType = SchemaGrammar.fAnyType; } element.fType = elementType; // get 'identity constraint' // see if there's something here; it had better be key, keyref or unique. if (child != null) { String childName = DOMUtil.getLocalName(child); while (child != null && (childName.equals(SchemaSymbols.ELT_KEY) || childName.equals(SchemaSymbols.ELT_KEYREF) || childName.equals(SchemaSymbols.ELT_UNIQUE))) { if (childName.equals(SchemaSymbols.ELT_KEY) || childName.equals(SchemaSymbols.ELT_UNIQUE)) { fSchemaHandler.fUniqueOrKeyTraverser.traverse(child, element, schemaDoc, grammar); if(DOMUtil.getAttrValue(child, SchemaSymbols.ATT_NAME).length() != 0 ) { fSchemaHandler.checkForDuplicateNames( (schemaDoc.fTargetNamespace == null) ? ","+DOMUtil.getAttrValue(child, SchemaSymbols.ATT_NAME) : schemaDoc.fTargetNamespace+","+ DOMUtil.getAttrValue(child, SchemaSymbols.ATT_NAME), fSchemaHandler.getIDRegistry(), child, schemaDoc); } } else if (childName.equals(SchemaSymbols.ELT_KEYREF)) { fSchemaHandler.storeKeyRef(child, schemaDoc, element); } child = DOMUtil.getNextSiblingElement(child); if (child != null) { childName = DOMUtil.getLocalName(child); } } } // Step 2: register the element decl to the grammar if (isGlobal && nameAtt != null) grammar.addGlobalElementDecl(element); // Step 3: check against schema for schemas // required attributes if (nameAtt == null) { if (isGlobal) reportSchemaError("s4s-att-must-appear", new Object[]{NO_NAME, SchemaSymbols.ATT_NAME}); else reportSchemaError("src-element.2.1", null); nameAtt = NO_NAME; } // element if (child != null) { reportSchemaError("s4s-elt-must-match", new Object[]{nameAtt, "(annotation?, (simpleType | complexType)?, (unique | key | keyref)*))"}); } // Step 4: check 3.3.3 constraints // src-element // 1 default and fixed must not both be present. if (defaultAtt != null && fixedAtt != null) { reportSchemaError("src-element.1", new Object[]{nameAtt}); } // 2 If the item's parent is not <schema>, then all of the following must be true: // 2.1 One of ref or name must be present, but not both. // This is checked in XSAttributeChecker // 2.2 If ref is present, then all of <complexType>, <simpleType>, <key>, <keyref>, <unique>, nillable, default, fixed, form, block and type must be absent, i.e. only minOccurs, maxOccurs, id are allowed in addition to ref, along with <annotation>. // Attributes are checked in XSAttributeChecker, elements are checked in "traverse" method // 3 type and either <simpleType> or <complexType> are mutually exclusive. if (haveAnonType && (typeAtt != null)) { reportSchemaError("src-element.3", new Object[]{nameAtt}); } // Step 5: check 3.3.6 constraints // check for NOTATION type checkNotationType(nameAtt, elementType); // e-props-correct // 2 If there is a {value constraint}, the canonical lexical representation of its value must be valid with respect to the {type definition} as defined in Element Default Valid (Immediate) (3.3.6). if (element.fDefault != null) { fValidationState.setNamespaceSupport(schemaDoc.fNamespaceSupport); Object actualValue = XSConstraints.ElementDefaultValidImmediate(element.fType, element.fDefault.toString(), fValidationState); if (actualValue == null) { reportSchemaError ("e-props-correct.2", new Object[]{nameAtt, element.fDefault}); element.setConstraintType(XSElementDecl.NO_CONSTRAINT); } element.fDefault = actualValue; } // 3 If there is an {substitution group affiliation}, the {type definition} of the element declaration must be validly derived from the {type definition} of the {substitution group affiliation}, given the value of the {substitution group exclusions} of the {substitution group affiliation}, as defined in Type Derivation OK (Complex) (3.4.6) (if the {type definition} is complex) or as defined in Type Derivation OK (Simple) (b3.14.6) (if the {type definition} is simple). if (element.fSubGroup != null) { if (!XSConstraints.checkTypeDerivationOk(element.fType, element.fSubGroup.fType, element.fSubGroup.fFinal)) { reportSchemaError ("e-props-correct.3", new Object[]{nameAtt, subGroupAtt.prefix+":"+subGroupAtt.localpart}); } } // 4 If the {type definition} or {type definition}'s {content type} is or is derived from ID then there must not be a {value constraint}. if (element.fDefault != null) { if (elementType instanceof IDDatatypeValidator || elementType instanceof XSComplexTypeDecl && ((XSComplexTypeDecl)elementType).containsTypeID()) { reportSchemaError ("e-props-correct.4", new Object[]{element.fName}); } } return element; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/5b0cf65d1d2e090172d69189c96c522d6a30ac2c/XSDElementTraverser.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDElementTraverser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1139, 55, 1046, 3456, 10080, 7604, 1046, 12, 1046, 12531, 3456, 16, 4766, 4202, 1033, 8526, 1604, 1972, 16, 4766, 4202, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 4202, 4611, 18576, 6473, 16, 4766, 4202, 1250, 353, 5160, 13, 288, 3639, 3411, 8770, 3075, 225, 273, 261, 5507, 13, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 26756, 15533, 3639, 1139, 1702, 565, 1203, 3075, 377, 273, 261, 60, 1702, 13, 565, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 11403, 15533, 3639, 514, 225, 805, 3075, 282, 273, 261, 780, 13, 225, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 5280, 15533, 3639, 1139, 1702, 565, 727, 3075, 377, 273, 261, 60, 1702, 13, 565, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 7263, 1013, 15533, 3639, 514, 225, 5499, 3075, 377, 273, 261, 780, 13, 225, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 30406, 15533, 3639, 1139, 1702, 565, 646, 3075, 1377, 273, 261, 60, 1702, 13, 565, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 4983, 15533, 3639, 514, 225, 508, 3075, 1377, 273, 261, 780, 13, 225, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 1985, 15533, 3639, 3411, 515, 80, 429, 3075, 225, 273, 261, 5507, 13, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 50, 15125, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1139, 55, 1046, 3456, 10080, 7604, 1046, 12, 1046, 12531, 3456, 16, 4766, 4202, 1033, 8526, 1604, 1972, 16, 4766, 4202, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 4202, 4611, 18576, 6473, 16, 4766, 4202, 1250, 353, 5160, 13, 288, 3639, 3411, 8770, 3075, 225, 273, 261, 5507, 13, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 26756, 15533, 3639, 1139, 1702, 565, 1203, 3075, 377, 273, 261, 60, 1702, 13, 565, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 11403, 15533, 3639, 514, 225, 805, 3075, 282, 273, 261, 780, 13, 225, 1604, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 5280, 15533, 3639, 1139, 2 ]
organizer.newSociety();
organizer.newFolder();
public void actionPerformed(ActionEvent e) { organizer.newSociety(); }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/a671d5282cffbfc9f602a99846223fb2a25d1c23/CSMART.java/buggy/csmart/src/org/cougaar/tools/csmart/ui/viewer/CSMART.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1850, 15501, 1824, 18, 2704, 3899, 5621, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1850, 15501, 1824, 18, 2704, 3899, 5621, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.AgreementDesc getAgreementDesc() throws FieldNotFound { org.quickfix.field.AgreementDesc value = new org.quickfix.field.AgreementDesc();
public quickfix.field.AgreementDesc getAgreementDesc() throws FieldNotFound { quickfix.field.AgreementDesc value = new quickfix.field.AgreementDesc();
public org.quickfix.field.AgreementDesc getAgreementDesc() throws FieldNotFound { org.quickfix.field.AgreementDesc value = new org.quickfix.field.AgreementDesc(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiry.java/buggy/src/java/src/quickfix/fix44/CollateralInquiry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17420, 4217, 336, 17420, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17420, 4217, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 17420, 4217, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17420, 4217, 336, 17420, 4217, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17420, 4217, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 17420, 4217, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
getControl().setVisible(visible); getControl().setSize(getControl().getPreferredSize());
getControl().setVisible(visible); getControl().setSize(getControl().getPreferredSize());
public void setVisible(boolean visible) { getControl().setVisible(visible); // manually set the size, otherwise sometimes the overlay is not shown (it has size 0,0) getControl().setSize(getControl().getPreferredSize()); if (visible) { MessageSource messageSource = (MessageSource)ApplicationServicesLocator.services().getService(MessageSource.class); String dirtyTooltip = messageSource.getMessage(DIRTY_MESSAGE_KEY, new Object[] { formModel.getFieldFace(propertyName).getDisplayName(), originalValueHolder.getValue() }, Locale.getDefault()); dirtyLabel.setToolTipText(dirtyTooltip); String revertTooltip = messageSource.getMessage(REVERT_MESSAGE_KEY, new Object[] { formModel.getFieldFace(propertyName).getDisplayName() }, Locale.getDefault()); revertButton.setToolTipText(revertTooltip); } }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/8fd429e9d910a1ad1ca042ad31228f709bbd528a/DirtyIndicatorInterceptor.java/buggy/support/src/main/java/org/springframework/richclient/form/builder/support/DirtyIndicatorInterceptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 16697, 12, 6494, 6021, 13, 288, 5411, 27174, 7675, 542, 6207, 12, 8613, 1769, 5411, 368, 10036, 444, 326, 963, 16, 3541, 16594, 326, 9218, 353, 486, 12188, 261, 305, 711, 963, 374, 16, 20, 13, 5411, 27174, 7675, 542, 1225, 12, 588, 3367, 7675, 588, 16028, 1225, 10663, 13491, 309, 261, 8613, 13, 288, 7734, 2350, 1830, 883, 1830, 273, 10792, 261, 1079, 1830, 13, 3208, 5676, 5786, 18, 8387, 7675, 588, 1179, 12, 1079, 1830, 18, 1106, 1769, 7734, 514, 9603, 22444, 273, 10792, 883, 1830, 18, 24906, 12, 4537, 5538, 67, 8723, 67, 3297, 16, 394, 1033, 8526, 288, 646, 1488, 18, 588, 974, 11824, 12, 4468, 461, 2934, 588, 20524, 9334, 28524, 9079, 2282, 620, 6064, 18, 24805, 1435, 19879, 4766, 2398, 6458, 18, 588, 1868, 10663, 7734, 9603, 2224, 18, 542, 29250, 1528, 12, 18013, 22444, 1769, 7734, 514, 15226, 22444, 273, 10792, 883, 1830, 18, 24906, 12, 862, 21654, 67, 8723, 67, 3297, 16, 394, 1033, 8526, 288, 646, 1488, 18, 588, 974, 11824, 12, 4468, 461, 2934, 588, 20524, 1435, 19879, 4766, 2398, 6458, 18, 588, 1868, 10663, 7734, 15226, 3616, 18, 542, 29250, 1528, 12, 266, 1097, 22444, 1769, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 16697, 12, 6494, 6021, 13, 288, 5411, 27174, 7675, 542, 6207, 12, 8613, 1769, 5411, 368, 10036, 444, 326, 963, 16, 3541, 16594, 326, 9218, 353, 486, 12188, 261, 305, 711, 963, 374, 16, 20, 13, 5411, 27174, 7675, 542, 1225, 12, 588, 3367, 7675, 588, 16028, 1225, 10663, 13491, 309, 261, 8613, 13, 288, 7734, 2350, 1830, 883, 1830, 273, 10792, 261, 1079, 1830, 13, 3208, 5676, 5786, 18, 8387, 7675, 588, 1179, 12, 1079, 1830, 18, 1106, 1769, 7734, 514, 9603, 22444, 273, 10792, 883, 1830, 18, 24906, 12, 4537, 5538, 67, 8723, 67, 3297, 16, 394, 1033, 8526, 288, 646, 1488, 18, 588, 974, 11824, 12, 4468, 461, 2934, 588, 20524, 9334, 28524, 2 ]
Socket s = null;
Socket socket = new Socket(); InetSocketAddress endpoint = new InetSocketAddress(host, port); if (policy == null && PolicyProvider != null) { policy = PolicyProvider.getPolicy(); } if (policy != null) { int timeout = policy.getConnectTimeout(this, host, port); socket.connect(endpoint, timeout); } else { socket.connect(endpoint); }
public Socket createSocket(String host, int port) throws IOException, UnknownHostException { Socket s = null; if (use_ssl) { javax.net.SocketFactory socfac = getSSLSocketFactory(); s = socfac.createSocket(host, port); } else { s = new Socket(host, port); } return use_aspects ? AspectSupportImpl.attachRMISocketAspects(s) : s; }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/90db33d0c1aa79d9346c0f3d75b42a9639107c91/SocketFactory.java/buggy/core/src/org/cougaar/core/mts/SocketFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8758, 752, 4534, 12, 780, 1479, 16, 509, 1756, 13, 225, 202, 15069, 1860, 16, 30592, 377, 288, 202, 4534, 272, 273, 446, 31, 202, 430, 261, 1202, 67, 8157, 13, 288, 202, 565, 6863, 18, 2758, 18, 4534, 1733, 30904, 11639, 273, 336, 1260, 25831, 1733, 5621, 202, 565, 272, 273, 30904, 11639, 18, 2640, 4534, 12, 2564, 16, 1756, 1769, 202, 97, 469, 288, 202, 565, 272, 273, 394, 8758, 12, 2564, 16, 1756, 1769, 202, 97, 225, 202, 2463, 999, 67, 23579, 87, 692, 2970, 1181, 6289, 2828, 18, 7331, 54, 7492, 4534, 17468, 87, 12, 87, 13, 294, 272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 8758, 752, 4534, 12, 780, 1479, 16, 509, 1756, 13, 225, 202, 15069, 1860, 16, 30592, 377, 288, 202, 4534, 272, 273, 446, 31, 202, 430, 261, 1202, 67, 8157, 13, 288, 202, 565, 6863, 18, 2758, 18, 4534, 1733, 30904, 11639, 273, 336, 1260, 25831, 1733, 5621, 202, 565, 272, 273, 30904, 11639, 18, 2640, 4534, 12, 2564, 16, 1756, 1769, 202, 97, 469, 288, 202, 565, 272, 273, 394, 8758, 12, 2564, 16, 1756, 1769, 202, 97, 225, 202, 2463, 999, 67, 23579, 87, 692, 2970, 1181, 6289, 2828, 18, 7331, 54, 7492, 4534, 17468, 87, 12, 87, 13, 294, 272, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
lastIPAddress = oldIPAddress;
lastIPAddress = new FreenetInetAddress(oldIPAddress);
InetAddress detectPrimaryIPAddress() { if(overrideIPAddress != null) { Logger.minor(this, "Returning overridden address: "+overrideIPAddress); lastIPAddress = overrideIPAddress; return overrideIPAddress; } Logger.minor(this, "IP address not overridden"); InetAddress addr = ipDetector.getAddress(); if(addr != null) { lastIPAddress = addr; return addr; } // Try to pick it up from our connections if(peers != null) { PeerNode[] peerList = peers.connectedPeers; HashMap countsByPeer = new HashMap(); // FIXME use a standard mutable int object, we have one somewhere for(int i=0;i<peerList.length;i++) { Peer p = peerList[i].getRemoteDetectedPeer(); if(p == null || p.isNull()) continue; InetAddress ip = p.getAddress(); if(!IPUtil.checkAddress(ip)) continue; if(countsByPeer.containsKey(ip)) { Integer count = (Integer) countsByPeer.get(ip); Integer newCount = new Integer(count.intValue()+1); countsByPeer.put(ip, newCount); } else { countsByPeer.put(ip, new Integer(1)); } } if(countsByPeer.size() == 0) return null; Iterator it = countsByPeer.keySet().iterator(); if(countsByPeer.size() == 1) { return (InetAddress) it.next(); } // Pick most popular address // FIXME use multi-homing here InetAddress best = null; int bestPopularity = 0; while(it.hasNext()) { InetAddress cur = (InetAddress) it.next(); int curPop = ((Integer) (countsByPeer.get(best))).intValue(); if(curPop > bestPopularity) { bestPopularity = curPop; best = cur; } } lastIPAddress = best; } else { lastIPAddress = oldIPAddress; } if (lastIPAddress == null) { this.alerts.register(primaryIPUndetectedAlert); } else { this.alerts.unregister(primaryIPUndetectedAlert); } return lastIPAddress; }
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/474d190c633c367c5c3ff7fbe0f75a1ea669294b/Node.java/clean/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 14218, 5966, 6793, 22507, 1435, 288, 3639, 309, 12, 10601, 22507, 480, 446, 13, 288, 5411, 4242, 18, 17364, 12, 2211, 16, 315, 28365, 11000, 1758, 30, 13773, 10601, 22507, 1769, 5411, 1142, 22507, 273, 3849, 22507, 31, 5411, 327, 3849, 22507, 31, 3639, 289, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 2579, 1758, 486, 11000, 8863, 3639, 202, 382, 278, 1887, 3091, 273, 2359, 12594, 18, 588, 1887, 5621, 3639, 202, 430, 12, 4793, 480, 446, 13, 288, 3639, 202, 202, 2722, 22507, 273, 3091, 31, 3639, 202, 202, 2463, 3091, 31, 3639, 202, 97, 565, 202, 202, 759, 6161, 358, 6002, 518, 731, 628, 3134, 5921, 3639, 202, 430, 12, 30502, 480, 446, 13, 288, 3639, 202, 202, 6813, 907, 8526, 4261, 682, 273, 10082, 18, 8537, 14858, 31, 3639, 202, 202, 8658, 6880, 858, 6813, 273, 394, 4317, 5621, 3639, 202, 202, 759, 9852, 999, 279, 4529, 16074, 509, 733, 16, 732, 1240, 1245, 22234, 3639, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 12210, 682, 18, 2469, 31, 77, 27245, 288, 3639, 1082, 202, 6813, 293, 273, 4261, 682, 63, 77, 8009, 588, 5169, 22614, 6813, 5621, 3639, 1082, 202, 430, 12, 84, 422, 446, 747, 293, 18, 291, 2041, 10756, 1324, 31, 3639, 1082, 202, 382, 278, 1887, 2359, 273, 293, 18, 588, 1887, 5621, 3639, 1082, 202, 430, 12, 5, 2579, 1304, 18, 1893, 1887, 12, 625, 3719, 1324, 31, 3639, 1082, 202, 430, 12, 8008, 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, 14218, 5966, 6793, 22507, 1435, 288, 3639, 309, 12, 10601, 22507, 480, 446, 13, 288, 5411, 4242, 18, 17364, 12, 2211, 16, 315, 28365, 11000, 1758, 30, 13773, 10601, 22507, 1769, 5411, 1142, 22507, 273, 3849, 22507, 31, 5411, 327, 3849, 22507, 31, 3639, 289, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 2579, 1758, 486, 11000, 8863, 3639, 202, 382, 278, 1887, 3091, 273, 2359, 12594, 18, 588, 1887, 5621, 3639, 202, 430, 12, 4793, 480, 446, 13, 288, 3639, 202, 202, 2722, 22507, 273, 3091, 31, 3639, 202, 202, 2463, 3091, 31, 3639, 202, 97, 565, 202, 202, 759, 6161, 358, 6002, 518, 731, 628, 3134, 5921, 3639, 202, 430, 12, 30502, 480, 446, 13, 288, 2 ]
private void processNewInviteRequestOrCancel(ParsedMessage pm, Invite newInvite, boolean force, int folderId, short volumeId)
private void processNewInviteRequestOrCancel(ZOrganizer originalOrganizer, ParsedMessage pm, Invite newInvite, boolean force, int folderId, short volumeId)
private void processNewInviteRequestOrCancel(ParsedMessage pm, Invite newInvite, boolean force, int folderId, short volumeId) throws ServiceException { String method = newInvite.getMethod(); // Remove everyone that is made obselete by this request boolean addNewOne = true; boolean isCancel = method.equals(ICalTok.CANCEL.toString()); if (!canAccess(isCancel ? ACL.RIGHT_DELETE : ACL.RIGHT_WRITE)) throw ServiceException.PERM_DENIED("you do not have sufficient permissions on this appointment"); // If we're doing a modify rather than cancel, make sure the organizer // in the new Invite is the same as the original organizer. if (!isCancel && newInvite.hasOrganizer()) { String newOrgAddr = newInvite.getOrganizer().getAddress(); Invite defInv = getDefaultInvite(); if (!defInv.hasOrganizer()) throw ServiceException.INVALID_REQUEST( "Changing organizer of an appointment is not allowed: old=(unspecified), new=" + newOrgAddr, null); String origOrgAddr = defInv.getOrganizer().getAddress(); if (!newOrgAddr.equalsIgnoreCase(origOrgAddr)) throw ServiceException.INVALID_REQUEST( "Changing organizer of an appointment is not allowed: old=" + origOrgAddr + ", new=" + newOrgAddr, null); } boolean modifiedAppt = false; Invite prev = null; // (the first) invite which has been made obsolete by the new one coming in ArrayList /* Invite */ toRemove = new ArrayList(); // Invites to remove from our blob store ArrayList /* Integer */ idxsToRemove = new ArrayList(); // indexes to remove from mInvites for (int i = 0; i < numInvites(); i++) { Invite cur = getInvite(i); // UID already matches...next check if RecurId matches // if so, then seqNo is next // finally use DTStamp // // See RFC2446: 2.1.5 Message Sequencing // if ((cur.getRecurId() != null && cur.getRecurId().equals(newInvite.getRecurId())) || (cur.getRecurId() == null && newInvite.getRecurId() == null)) { if (force || ((cur.getSeqNo() < newInvite.getSeqNo()) // in the CANCEL case, accept one with the exact same DTSTAMP as the request // being cancelled ( >= instead of strictly > for DTSTAMP) || ( (!isCancel && (cur.getSeqNo() == newInvite.getSeqNo() && cur.getDTStamp() < newInvite.getDTStamp())) || (isCancel && (cur.getSeqNo() == newInvite.getSeqNo() && cur.getDTStamp() <= newInvite.getDTStamp()))))) { Invite inf = (Invite)mInvites.get(i); toRemove.add(inf); // add to FRONT of list, so when we iterate for the removals we go from HIGHER TO LOWER // that way the numbers all match up as the list contracts! idxsToRemove.add(0, new Integer(i)); // clean up any old REPLYs that have been made obscelete by this new invite mReplyList.removeObsceleteEntries(newInvite.getRecurId(), newInvite.getSeqNo(), newInvite.getDTStamp()); prev = cur; modifiedAppt = true; if (isCancel && !newInvite.hasRecurId()) { addNewOne = false; // can't CANCEL just the recurId=0 entry -- we must be deleting the whole series } } else { // found a more-recent invite already here -- so don't add // the passed-in one! addNewOne = false; }// break; // don't stop here! new Invite *could* obscelete multiple existing ones! } } if (addNewOne) { newInvite.setAppointment(this); Account account = getMailbox().getAccount(); boolean thisAcctIsOrganizer = newInvite.thisAcctIsOrganizer(account); if (prev!=null && !thisAcctIsOrganizer && newInvite.sentByMe()) { // A non-organizer attendee is modifying data on his/her // appointment. Any information that is tracked in // metadata rather than in the iCal MIME part must be // carried over from the last invite to the new one. newInvite.setPartStat(prev.getPartStat()); newInvite.setRsvp(prev.getRsvp()); newInvite.setNeedsReply(prev.needsReply()); newInvite.getAppointment().saveMetadata(); // No need to mark invite as modified item in mailbox as // it has already been marked as a created item. } else { processPartStat(newInvite, pm != null ? pm.getMimeMessage() : null, false); } mInvites.add(newInvite); // the appointment stores an uber-tzmap, for its uber-recurrence // this might give us problems if we had two invites with conflicting TZ // defs....should be very unlikely mTzMap.add(newInvite.getTimeZoneMap()); modifyBlob(toRemove, pm, newInvite, volumeId); modifiedAppt = true; } else { modifyBlob(toRemove, null, null, volumeId); } // now remove the inviteid's from our list for (Iterator iter = idxsToRemove.iterator(); iter.hasNext();) { Integer i = (Integer)iter.next(); mInvites.remove(i.intValue()); } if (getFolderId() != folderId) { // Move appointment to a different folder. Folder folder = getMailbox().getFolderById(folderId); move(folder); } boolean hasRequests = false; for (Iterator iter = mInvites.iterator(); iter.hasNext();) { Invite cur = (Invite)iter.next(); if (cur.getMethod().equals(ICalTok.REQUEST.toString()) || cur.getMethod().equals(ICalTok.PUBLISH.toString())) { hasRequests = true; break; } } if (!hasRequests) { this.delete(); // delete this appointment from the table, it // doesn't have anymore REQUESTs! } else { if (modifiedAppt) { if (!updateRecurrence()) { // no default invite! This appointment no longer valid this.delete(); } else { this.saveMetadata(); } } } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/a9a426060debe3ae250f60b52eb634c025fb8835/Appointment.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/Appointment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1908, 22730, 691, 1162, 6691, 12, 62, 6001, 304, 1824, 2282, 6001, 304, 1824, 16, 19244, 1079, 7430, 16, 30981, 394, 22730, 16, 1250, 2944, 16, 509, 31996, 16, 3025, 3940, 548, 13, 565, 1216, 16489, 288, 3639, 514, 707, 273, 394, 22730, 18, 588, 1305, 5621, 3639, 368, 3581, 3614, 476, 716, 353, 7165, 7160, 929, 635, 333, 590, 3639, 1250, 20973, 3335, 273, 638, 31, 3639, 1250, 353, 6691, 273, 707, 18, 14963, 12, 2871, 287, 20477, 18, 25268, 18, 10492, 10663, 3639, 309, 16051, 4169, 1862, 12, 291, 6691, 692, 10098, 18, 11847, 67, 6460, 294, 10098, 18, 11847, 67, 11677, 3719, 5411, 604, 16489, 18, 3194, 49, 67, 13296, 29229, 2932, 19940, 741, 486, 1240, 18662, 4371, 603, 333, 595, 763, 475, 8863, 3639, 368, 971, 732, 4565, 9957, 279, 5612, 9178, 2353, 3755, 16, 1221, 3071, 326, 15501, 1824, 3639, 368, 316, 326, 394, 30981, 353, 326, 1967, 487, 326, 2282, 15501, 1824, 18, 3639, 309, 16051, 291, 6691, 597, 394, 22730, 18, 5332, 6001, 304, 1824, 10756, 288, 5411, 514, 394, 6001, 3178, 273, 394, 22730, 18, 588, 6001, 304, 1824, 7675, 588, 1887, 5621, 5411, 30981, 1652, 3605, 273, 4829, 22730, 5621, 5411, 309, 16051, 536, 3605, 18, 5332, 6001, 304, 1824, 10756, 7734, 604, 16489, 18, 9347, 67, 5519, 12, 13491, 315, 782, 18183, 15501, 1824, 434, 392, 595, 763, 475, 353, 486, 2935, 30, 1592, 28657, 318, 13827, 3631, 394, 1546, 397, 394, 6001, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1908, 22730, 691, 1162, 6691, 12, 62, 6001, 304, 1824, 2282, 6001, 304, 1824, 16, 19244, 1079, 7430, 16, 30981, 394, 22730, 16, 1250, 2944, 16, 509, 31996, 16, 3025, 3940, 548, 13, 565, 1216, 16489, 288, 3639, 514, 707, 273, 394, 22730, 18, 588, 1305, 5621, 3639, 368, 3581, 3614, 476, 716, 353, 7165, 7160, 929, 635, 333, 590, 3639, 1250, 20973, 3335, 273, 638, 31, 3639, 1250, 353, 6691, 273, 707, 18, 14963, 12, 2871, 287, 20477, 18, 25268, 18, 10492, 10663, 3639, 309, 16051, 4169, 1862, 12, 291, 6691, 692, 10098, 18, 11847, 67, 6460, 294, 10098, 18, 11847, 67, 11677, 3719, 5411, 604, 16489, 18, 3194, 49, 67, 13296, 29229, 2932, 2 ]
"()Ljava/util/concurrent/Lock;",
"()Ljava/util/concurrent/locks/Lock;",
private static PatternElement[] createPatternElementList(BugReporter bugReporter) { ArrayList<PatternElement> list = new ArrayList<PatternElement>(); // Standard return check methods list.add(new Invoke("java.lang.String", "/.*", "/\\(.*\\)Ljava/lang/String;", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("java.lang.StringBuffer", "toString", "()Ljava/lang/String;", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.lang.Thread", "<init>", "/.*", Invoke.CONSTRUCTOR, bugReporter)); list.add(new Invoke("java.security.MessageDigest", "digest", "([B)[B", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.net.InetAddress", "/.*", "/.*", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("java.math.BigDecimal", "/.*", "/.*", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("java.math.BigInteger", "/.*", "/.*", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("java.io.File", "createNewFile", "()Z", Invoke.INSTANCE, bugReporter)); /* new Invoke("java.lang.Thread", "currentThread", "()Ljava/lang/Thread;", Invoke.STATIC, bugReporter), */ // Determine which Java version we're using String version = System.getProperty("java.version"); Pattern pattern = Pattern.compile("^(\\d+)\\.(\\d+)\\..*$"); Matcher matcher = pattern.matcher(version); if (matcher.matches()) { try { int major = Integer.parseInt(matcher.group(1)); int minor = Integer.parseInt(matcher.group(2)); //System.out.println("major = " + major + ", minor = " + minor); if (CHECK_ALL || major > 1 || minor >= 5) { // Add JDK 1.5 and later return check functions list.add(new Invoke("+java.util.concurrent.locks.ReadWriteLock", "readLock", "()Ljava/util/concurrent/Lock;", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.locks.ReadWriteLock", "writeLock", "()Ljava/util/concurrent/Lock;", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.locks.Condition", "await", "(JLjava/util/concurrent/TimeUnit;)Z", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.locks.Condition", "awaitUtil", "(Ljava/util/Date;)Z", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.locks.Condition", "awaitNanos", "(J)Z", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.Semaphore", "tryAcquire", "(JLjava/util/concurrent/TimeUnit;)Z", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.Semaphore", "tryAcquire", "()Z", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.locks.Lock", "tryLock", "(JLjava/util/concurrent/TimeUnit;)Z", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.locks.Lock", "tryLock", "()Z", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.Queue", "offer", "(Ljava/lang/Object;)Z", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.BlockingQueue", "offer", "(Ljava/lang/Object;JLjava/util/concurrent/TimeUnit;)Z", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.concurrent.BlockingQueue", "poll", "(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;", Invoke.INSTANCE, bugReporter)); list.add(new Invoke("+java.util.Queue", "poll", "()Ljava/lang/Object;", Invoke.INSTANCE, bugReporter)); /* new Invoke("java.util.concurrent.locks.ReentrantLock", "tryLock", "()Z", Invoke.INSTANCE, bugReporter), */ } } catch (NumberFormatException e) { bugReporter.logError("Bad java version: " + version); } } return list.toArray(new PatternElement[0]); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/e47ba64d2e2509205da671670dfb711cc5c85625/BCPMethodReturnCheck.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/BCPMethodReturnCheck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 6830, 1046, 8526, 752, 3234, 1046, 682, 12, 19865, 13289, 7934, 13289, 13, 288, 202, 202, 19558, 32, 3234, 1046, 34, 666, 273, 394, 2407, 32, 3234, 1046, 34, 5621, 202, 202, 759, 8263, 327, 866, 2590, 202, 202, 1098, 18, 1289, 12, 2704, 14373, 2932, 6290, 18, 4936, 18, 780, 3113, 2206, 4509, 3113, 4405, 202, 6, 19, 1695, 7444, 1695, 13, 21159, 19, 4936, 19, 780, 31, 3113, 4405, 202, 10969, 18, 13341, 16, 7934, 13289, 10019, 202, 202, 1098, 18, 1289, 12, 2704, 14373, 2932, 6290, 18, 4936, 18, 780, 1892, 3113, 315, 10492, 3113, 4405, 202, 6, 1435, 21159, 19, 4936, 19, 780, 31, 3113, 4405, 202, 10969, 18, 13341, 16, 4405, 202, 925, 13289, 10019, 202, 202, 1098, 18, 1289, 12, 2704, 14373, 2932, 15, 6290, 18, 4936, 18, 3830, 3113, 3532, 2738, 2984, 16, 4405, 202, 6, 19, 4509, 3113, 4405, 202, 10969, 18, 26935, 916, 16, 4405, 202, 925, 13289, 10019, 202, 202, 1098, 18, 1289, 12, 2704, 14373, 2932, 6290, 18, 7462, 18, 1079, 9568, 3113, 4405, 202, 6, 10171, 3113, 315, 3816, 38, 25146, 38, 3113, 4405, 202, 10969, 18, 13341, 16, 7934, 13289, 10019, 202, 202, 1098, 18, 1289, 12, 2704, 14373, 2932, 15, 6290, 18, 2758, 18, 382, 278, 1887, 3113, 2206, 4509, 3113, 2206, 4509, 3113, 4405, 202, 10969, 18, 13341, 16, 7934, 13289, 10019, 202, 202, 1098, 18, 1289, 12, 2704, 14373, 2932, 6290, 18, 15949, 18, 29436, 3113, 2206, 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, 6830, 1046, 8526, 752, 3234, 1046, 682, 12, 19865, 13289, 7934, 13289, 13, 288, 202, 202, 19558, 32, 3234, 1046, 34, 666, 273, 394, 2407, 32, 3234, 1046, 34, 5621, 202, 202, 759, 8263, 327, 866, 2590, 202, 202, 1098, 18, 1289, 12, 2704, 14373, 2932, 6290, 18, 4936, 18, 780, 3113, 2206, 4509, 3113, 4405, 202, 6, 19, 1695, 7444, 1695, 13, 21159, 19, 4936, 19, 780, 31, 3113, 4405, 202, 10969, 18, 13341, 16, 7934, 13289, 10019, 202, 202, 1098, 18, 1289, 12, 2704, 14373, 2932, 6290, 18, 4936, 18, 780, 1892, 3113, 315, 10492, 3113, 4405, 202, 6, 1435, 21159, 19, 4936, 19, 780, 31, 3113, 4405, 202, 10969, 18, 13341, 16, 2 ]
if (protocol.length() != 0)
if (protocol != null && protocol.length() > 0)
protected String toExternalForm(URL url) { String protocol; String host; String file; String ref; String user; int port; protocol = url.getProtocol(); // JDK 1.2 online doc infers that host could be null because it // explicitly states that file cannot be null, but is silent on host. host = url.getHost(); if (host == null) host = ""; port = url.getPort(); file = url.getFile(); ref = url.getRef(); user = url.getUserInfo(); // Guess a reasonable size for the string buffer so we have to resize // at most once. int size = protocol.length() + host.length() + file.length() + 24; StringBuffer sb = new StringBuffer(size); if (protocol.length() != 0) { sb.append(protocol); sb.append(":"); } if (host.length() != 0) { sb.append("//"); if (user != null && ! "".equals(user)) sb.append(user).append('@'); sb.append(host); // Append port if port was in URL spec. if (port >= 0) sb.append(':').append(port); } sb.append(file); if (ref != null) sb.append('#').append(ref); return sb.toString(); }
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/141410702d2753052385e841596a13c4a870b7d7/URLStreamHandler.java/buggy/libjava/java/net/URLStreamHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 514, 358, 6841, 1204, 12, 1785, 880, 13, 225, 288, 565, 514, 1771, 31, 565, 514, 1479, 31, 565, 514, 585, 31, 565, 514, 1278, 31, 565, 514, 729, 31, 565, 509, 1756, 31, 565, 1771, 273, 880, 18, 588, 5752, 5621, 565, 368, 24387, 404, 18, 22, 12365, 997, 8286, 414, 716, 1479, 3377, 506, 446, 2724, 518, 565, 368, 8122, 5493, 716, 585, 2780, 506, 446, 16, 1496, 353, 10404, 603, 1479, 18, 565, 1479, 273, 880, 18, 588, 2594, 5621, 565, 309, 261, 2564, 422, 446, 13, 1377, 1479, 273, 1408, 31, 565, 1756, 273, 880, 18, 588, 2617, 5621, 565, 585, 273, 880, 18, 29925, 5621, 565, 1278, 273, 880, 18, 588, 1957, 5621, 565, 729, 273, 880, 18, 588, 21015, 5621, 565, 368, 30282, 279, 23589, 963, 364, 326, 533, 1613, 1427, 732, 1240, 358, 7041, 565, 368, 622, 4486, 3647, 18, 565, 509, 963, 273, 1771, 18, 2469, 1435, 397, 1479, 18, 2469, 1435, 397, 585, 18, 2469, 1435, 397, 4248, 31, 565, 6674, 2393, 273, 394, 6674, 12, 1467, 1769, 565, 309, 261, 8373, 480, 446, 597, 1771, 18, 2469, 1435, 405, 374, 13, 1377, 288, 202, 18366, 18, 6923, 12, 8373, 1769, 202, 18366, 18, 6923, 2932, 2773, 1769, 1377, 289, 565, 309, 261, 2564, 18, 2469, 1435, 480, 374, 13, 1377, 288, 202, 18366, 18, 6923, 2932, 759, 8863, 202, 430, 261, 1355, 480, 446, 597, 401, 1408, 18, 14963, 12, 1355, 3719, 202, 225, 2393, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 514, 358, 6841, 1204, 12, 1785, 880, 13, 225, 288, 565, 514, 1771, 31, 565, 514, 1479, 31, 565, 514, 585, 31, 565, 514, 1278, 31, 565, 514, 729, 31, 565, 509, 1756, 31, 565, 1771, 273, 880, 18, 588, 5752, 5621, 565, 368, 24387, 404, 18, 22, 12365, 997, 8286, 414, 716, 1479, 3377, 506, 446, 2724, 518, 565, 368, 8122, 5493, 716, 585, 2780, 506, 446, 16, 1496, 353, 10404, 603, 1479, 18, 565, 1479, 273, 880, 18, 588, 2594, 5621, 565, 309, 261, 2564, 422, 446, 13, 1377, 1479, 273, 1408, 31, 565, 1756, 273, 880, 18, 588, 2617, 5621, 565, 585, 273, 880, 18, 29925, 5621, 565, 1278, 273, 880, 18, 588, 1957, 2 ]
Layer layer = getAppropriateLayer(); if (changed) { currentLayer.removeNotify(); setPaletteTab(targetIndex); remove(currentLayer);
Layer layer = getAppropriateLayer(); if (changed) { currentLayer.removeNotify(); setPaletteTab(targetIndex); remove(currentLayer);
public void projectionChanged(ProjectionEvent ev) { Projection proj = ev.getProjection(); Layer currentLayer = getAppropriateLayer(); boolean changed = setTargetIndex(proj.getScale()); // get the appropriate layer and invoke projectionChanged Layer layer = getAppropriateLayer(); if (changed) { currentLayer.removeNotify(); setPaletteTab(targetIndex); remove(currentLayer); // This will handle the repaint() requests from the layer... add(layer); layer.addNotify(); checkMouseMode(); } fireStatusUpdate(LayerStatusEvent.START_WORKING); layer.projectionChanged(ev); }
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/b510b23a2f6e3a1833c274dda10d99f77db59ed1/ScaleFilterLayer.java/buggy/src/openmap/com/bbn/openmap/layer/ScaleFilterLayer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 8106, 5033, 12, 14789, 1133, 2113, 13, 288, 202, 14789, 10296, 273, 2113, 18, 588, 14789, 5621, 202, 4576, 783, 4576, 273, 336, 1294, 5986, 566, 340, 4576, 5621, 202, 6494, 3550, 273, 18367, 1016, 12, 17995, 18, 588, 5587, 10663, 202, 759, 336, 326, 5505, 3018, 471, 4356, 8106, 5033, 202, 4576, 3018, 273, 336, 1294, 5986, 566, 340, 4576, 5621, 202, 430, 261, 6703, 13, 288, 202, 565, 783, 4576, 18, 4479, 9168, 5621, 202, 565, 17004, 8786, 5661, 12, 3299, 1016, 1769, 202, 565, 1206, 12, 2972, 4576, 1769, 202, 565, 368, 1220, 903, 1640, 326, 24962, 1435, 3285, 628, 326, 3018, 2777, 202, 565, 527, 12, 6363, 1769, 202, 565, 3018, 18, 1289, 9168, 5621, 202, 565, 866, 9186, 2309, 5621, 202, 97, 202, 12179, 1482, 1891, 12, 4576, 1482, 1133, 18, 7570, 67, 10566, 1360, 1769, 202, 6363, 18, 19183, 5033, 12, 14965, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 8106, 5033, 12, 14789, 1133, 2113, 13, 288, 202, 14789, 10296, 273, 2113, 18, 588, 14789, 5621, 202, 4576, 783, 4576, 273, 336, 1294, 5986, 566, 340, 4576, 5621, 202, 6494, 3550, 273, 18367, 1016, 12, 17995, 18, 588, 5587, 10663, 202, 759, 336, 326, 5505, 3018, 471, 4356, 8106, 5033, 202, 4576, 3018, 273, 336, 1294, 5986, 566, 340, 4576, 5621, 202, 430, 261, 6703, 13, 288, 202, 565, 783, 4576, 18, 4479, 9168, 5621, 202, 565, 17004, 8786, 5661, 12, 3299, 1016, 1769, 202, 565, 1206, 12, 2972, 4576, 1769, 202, 565, 368, 1220, 903, 1640, 326, 24962, 1435, 3285, 628, 326, 3018, 2777, 202, 565, 527, 12, 6363, 1769, 202, 565, 3018, 18, 2 ]
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); clipboard.setContents(new StringSelection(interpretedText1.getText()), null);
receivedText1.setText(""); receivedText2.setText("");
public void actionPerformed(ActionEvent e) { // Get the clipboard Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); // Set the sent text as the new content of the clipboard clipboard.setContents(new StringSelection(interpretedText1.getText()), null); }
45655 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45655/465100fdc621d2779a0b32a40e5cda3827671b25/LiteDebugger.java/clean/source/org/jivesoftware/smack/debugger/LiteDebugger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 368, 968, 326, 20304, 7734, 385, 3169, 3752, 20304, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 15339, 3752, 5621, 7734, 368, 1000, 326, 3271, 977, 487, 326, 394, 913, 434, 326, 20304, 7734, 20304, 18, 542, 6323, 12, 2704, 514, 6233, 12, 24713, 329, 1528, 21, 18, 588, 1528, 1435, 3631, 446, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 368, 968, 326, 20304, 7734, 385, 3169, 3752, 20304, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 15339, 3752, 5621, 7734, 368, 1000, 326, 3271, 977, 487, 326, 394, 913, 434, 326, 20304, 7734, 20304, 18, 542, 6323, 12, 2704, 514, 6233, 12, 24713, 329, 1528, 21, 18, 588, 1528, 1435, 3631, 446, 1769, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return null;
return runnable;
public Object getDesignObject( ) { // TODO Auto-generated method stub return null; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/593a2a26389f37c225fb92d1cef17318272cc832/BirtViewerReportDesignHandle.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportDesignHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 2343, 281, 724, 921, 12, 262, 202, 95, 202, 202, 759, 2660, 8064, 17, 11168, 707, 7168, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 2343, 281, 724, 921, 12, 262, 202, 95, 202, 202, 759, 2660, 8064, 17, 11168, 707, 7168, 202, 202, 2463, 446, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
/** * Have we determined a single concrete type for a field? If so, * return the concrete type. Else, return null. */ public static VM_Type getConcreteType (VM_Field f) { if (!isCandidate(f.getType())) return f.getType(); if (isTrouble(f)) return null; if (DEBUG) { VM_Type t = db.getConcreteType(f); if (t != null) debug("CONCRETE TYPE " + f + " IS " + t); } return db.getConcreteType(f); }
private static boolean isCandidate (VM_Type t) { if (VM.VerifyAssertions) { if (t.isClassType() && !t.asClass().isLoaded()) { VM.sysWrite("NOT LOADED: " + t + "\n"); VM.assert(false); } } if (t.isPrimitiveType()) return false; if (t.isClassType() && t.asClass().isFinal()) return false; if (t.isArrayType()) { VM_Type et = t.asArray().getInnermostElementType(); if (et.isClassType() && !et.asClass().isLoaded()) return false; else return isCandidate(et); } return true; } /** * Have we determined a single concrete type for a field? If so, * return the concrete type. Else, return null. */ public static VM_Type getConcreteType (VM_Field f) { // don't bother for primitives and arrays of primitives // and friends if (!isCandidate(f.getType())) return f.getType(); // for some special classes, the flow-insensitive summaries // are INCORRECT due to using the wrong implementation // during boot image writing. For these special cases, // give up. if (isTrouble(f)) return null; if (DEBUG) { VM_Type t = db.getConcreteType(f); if (t != null) debug("CONCRETE TYPE " + f + " IS " + t); } return db.getConcreteType(f); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/40e21dc6ed844793c7ae07ad49c4ba40eadcacf4/OPT_FieldAnalysis.java/clean/rvm/src/vm/compilers/optimizing/optimizations/ipa/summaries/OPT_FieldAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1250, 353, 11910, 261, 7397, 67, 559, 268, 13, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 288, 1377, 309, 261, 88, 18, 291, 18328, 1435, 597, 401, 88, 18, 345, 797, 7675, 291, 8835, 10756, 288, 3639, 8251, 18, 9499, 3067, 2932, 4400, 1806, 26129, 30, 315, 397, 268, 397, 1548, 82, 8863, 3639, 8251, 18, 11231, 12, 5743, 1769, 1377, 289, 565, 289, 565, 309, 261, 88, 18, 291, 9840, 559, 10756, 1377, 327, 225, 629, 31, 565, 309, 261, 88, 18, 291, 18328, 1435, 597, 268, 18, 345, 797, 7675, 291, 7951, 10756, 1377, 327, 225, 629, 31, 565, 309, 261, 88, 18, 291, 27182, 10756, 288, 1377, 8251, 67, 559, 3393, 273, 268, 18, 345, 1076, 7675, 588, 382, 82, 28055, 17481, 5621, 1377, 309, 261, 278, 18, 291, 18328, 1435, 597, 401, 278, 18, 345, 797, 7675, 291, 8835, 10756, 3639, 327, 225, 629, 31, 4202, 469, 540, 327, 225, 353, 11910, 12, 278, 1769, 565, 289, 565, 327, 225, 638, 31, 225, 289, 225, 1783, 282, 380, 21940, 732, 11383, 279, 2202, 12220, 618, 364, 279, 652, 35, 971, 1427, 16, 282, 380, 327, 326, 12220, 618, 18, 225, 16289, 16, 327, 446, 18, 282, 1195, 225, 1071, 760, 8251, 67, 559, 336, 25845, 559, 261, 7397, 67, 974, 284, 13, 288, 565, 368, 2727, 1404, 23440, 364, 23376, 471, 5352, 434, 23376, 565, 368, 471, 284, 22259, 565, 309, 16051, 291, 11910, 12, 74, 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, 282, 3238, 760, 1250, 353, 11910, 261, 7397, 67, 559, 268, 13, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 288, 1377, 309, 261, 88, 18, 291, 18328, 1435, 597, 401, 88, 18, 345, 797, 7675, 291, 8835, 10756, 288, 3639, 8251, 18, 9499, 3067, 2932, 4400, 1806, 26129, 30, 315, 397, 268, 397, 1548, 82, 8863, 3639, 8251, 18, 11231, 12, 5743, 1769, 1377, 289, 565, 289, 565, 309, 261, 88, 18, 291, 9840, 559, 10756, 1377, 327, 225, 629, 31, 565, 309, 261, 88, 18, 291, 18328, 1435, 597, 268, 18, 345, 797, 7675, 291, 7951, 10756, 1377, 327, 225, 629, 31, 565, 309, 261, 88, 18, 291, 27182, 10756, 288, 1377, 8251, 67, 559, 2 ]
SeriesDefinition seriesDefn, IUIServiceProvider builder, Object oContext, String sTitle )
SeriesDefinition seriesDefn, ChartWizardContext context, String sTitle )
public ISelectDataComponent getSeriesDataComponent( int seriesType, SeriesDefinition seriesDefn, IUIServiceProvider builder, Object oContext, String sTitle ) { return null; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c60a4815037b62e9358af2625eb6236e7c979d0f/DefaultSeriesUIProvider.java/clean/chart/org.eclipse.birt.chart.ui/src/org/eclipse/birt/chart/ui/swt/DefaultSeriesUIProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3391, 751, 1841, 336, 6485, 751, 1841, 12, 509, 4166, 559, 16, 1082, 202, 6485, 1852, 4166, 3262, 82, 16, 467, 5370, 16300, 2089, 16, 1082, 202, 921, 320, 1042, 16, 514, 272, 4247, 262, 202, 95, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3391, 751, 1841, 336, 6485, 751, 1841, 12, 509, 4166, 559, 16, 1082, 202, 6485, 1852, 4166, 3262, 82, 16, 467, 5370, 16300, 2089, 16, 1082, 202, 921, 320, 1042, 16, 514, 272, 4247, 262, 202, 95, 202, 202, 2463, 446, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 buildFinder( JDOClassDescriptor clsDesc ) throws MappingException, QueryException { Vector fields; QueryExpression expr; QueryExpression find; fields = new Vector(); expr = _factory.getQueryExpression(); find = _factory.getQueryExpression(); //addLoadSql( expr, fields, false, true, true ); //_fields = new FieldInfo[ fields.size() ]; //fields.copyInto( _fields ); // get id columns' names String[] idnames = new String[_ids.length]; for ( int i=0; i<_ids.length; i++ ) { idnames[i] = _ids[i].name; expr.addParameter( _mapTo, _ids[i].name, QueryExpression.OpEquals ); } // join all the extended table JDOClassDescriptor base = clsDesc; while ( base.getExtends() != null ) { base = (JDOClassDescriptor)base.getExtends(); expr.addInnerJoin( _mapTo, idnames, base.getTableName(), idnames ); find.addInnerJoin( _mapTo, idnames, base.getTableName(), idnames ); } for ( int i=0; i<_ids.length; i++ ) { find.addColumn( _mapTo, idnames[i] ); } // join all the related/depended table Vector joinTables = new Vector(); for ( int i=0; i<_fields.length; i++ ) { if ( _fields[i].load ) { if ( _fields[i].joined /*&& !joinTables.contains( _fields[i].tableName )*/ ) { //System.out.println("join field: "+_fields[i].jdoName); //System.out.println("current table: "+_mapTo+" other table: "+_fields[i].tableName); int offset = 0; //clsDesc.getDepends()!=null? clsDesc.getIdentities().length : 0; String[] rightCol = _fields[i].joinFields; String[] leftCol = new String[_ids.length-offset]; for ( int j=0; j<leftCol.length; j++ ) { leftCol[j] = _ids[j+offset].name; //System.out.println("this id: "+leftCol); //System.out.println("other table id: "+rightCol[j]); } expr.addOuterJoin( _mapTo, leftCol, _fields[i].tableName, rightCol ); find.addOuterJoin( _mapTo, leftCol, _fields[i].tableName, rightCol ); joinTables.add( _fields[i].tableName ); } for ( int j=0; j<_fields[i].columns.length; j++ ) { expr.addColumn( _fields[i].tableName, _fields[i].columns[j].name ); find.addColumn( _fields[i].tableName, _fields[i].columns[j].name ); } } } _sqlLoad = expr.getStatement( false ); _sqlLoadLock = expr.getStatement( true ); _sqlFinder = find; if ( _logInterceptor != null ) _logInterceptor.storeStatement( "SQL for loading " + _type + ": " + _sqlLoad ); }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/d98326ba46c9d51c1937e77738e58d4817ac8146/SQLEngine.java/clean/branches/castorone/castor-2002/castor/src/main/org/exolab/castor/jdo/engine/SQLEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 3510, 8441, 12, 46, 3191, 797, 3187, 6429, 4217, 13, 15069, 3233, 503, 16, 1138, 503, 95, 5018, 2821, 31, 1138, 2300, 8638, 31, 1138, 2300, 4720, 31, 2821, 33, 2704, 5018, 5621, 8638, 33, 67, 6848, 18, 588, 1138, 2300, 5621, 4720, 33, 67, 6848, 18, 588, 1138, 2300, 5621, 759, 1289, 2563, 5101, 12, 8638, 16, 2821, 16, 5743, 16, 3767, 16, 3767, 1769, 759, 67, 2821, 33, 2704, 974, 966, 63, 2821, 18, 1467, 1435, 15533, 759, 2821, 18, 3530, 5952, 24899, 2821, 1769, 759, 588, 350, 5112, 11, 1973, 780, 8526, 350, 1973, 33, 2704, 780, 63, 67, 2232, 18, 2469, 15533, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 67, 2232, 18, 2469, 31, 77, 27245, 95, 350, 1973, 63, 77, 65, 33, 67, 2232, 63, 77, 8009, 529, 31, 8638, 18, 1289, 1662, 24899, 1458, 774, 16, 67, 2232, 63, 77, 8009, 529, 16, 1138, 2300, 18, 3817, 8867, 1769, 97, 759, 5701, 454, 5787, 14948, 2121, 46, 3191, 797, 3187, 1969, 33, 6429, 4217, 31, 17523, 12, 1969, 18, 588, 19581, 1435, 5, 33, 2011, 15329, 1969, 28657, 46, 3191, 797, 3187, 13, 1969, 18, 588, 19581, 5621, 8638, 18, 1289, 2857, 4572, 24899, 1458, 774, 16, 350, 1973, 16, 1969, 18, 588, 7147, 9334, 350, 1973, 1769, 4720, 18, 1289, 2857, 4572, 24899, 1458, 774, 16, 350, 1973, 16, 1969, 18, 588, 7147, 9334, 350, 1973, 1769, 97, 1884, 12, 474, 77, 33, 20, 31, 77, 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, 6459, 3510, 8441, 12, 46, 3191, 797, 3187, 6429, 4217, 13, 15069, 3233, 503, 16, 1138, 503, 95, 5018, 2821, 31, 1138, 2300, 8638, 31, 1138, 2300, 4720, 31, 2821, 33, 2704, 5018, 5621, 8638, 33, 67, 6848, 18, 588, 1138, 2300, 5621, 4720, 33, 67, 6848, 18, 588, 1138, 2300, 5621, 759, 1289, 2563, 5101, 12, 8638, 16, 2821, 16, 5743, 16, 3767, 16, 3767, 1769, 759, 67, 2821, 33, 2704, 974, 966, 63, 2821, 18, 1467, 1435, 15533, 759, 2821, 18, 3530, 5952, 24899, 2821, 1769, 759, 588, 350, 5112, 11, 1973, 780, 8526, 350, 1973, 33, 2704, 780, 63, 67, 2232, 18, 2469, 15533, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 67, 2232, 2 ]
final IHandlerService service = (IHandlerService) serviceLocator
final IHandlerService service = (IHandlerService) locator
public void setGlobalActionHandler(String actionID, IAction handler) { if (handler != null) { // Update the action handlers. if (actionHandlers == null) actionHandlers = new HashMap(11); actionHandlers.put(actionID, handler); // Update the handler activations. final IHandlerService service = (IHandlerService) serviceLocator .getService(IHandlerService.class); if (activationsByActionId == null) { activationsByActionId = new HashMap(); } else { if (activationsByActionId.containsKey(actionID)) { final Object value = activationsByActionId.get(actionID); if (value instanceof IHandlerActivation) { final IHandlerActivation activation = (IHandlerActivation) value; service.deactivateHandler(activation); activation.getHandler().dispose(); } } } // Add a mapping from this action id to the command id. final IActionCommandMappingService mappingService = (IActionCommandMappingService) serviceLocator .getService(IActionCommandMappingService.class); final String commandId = mappingService.getCommandId(actionID); if (commandId != null) { // Register this as a handler with the given definition id. final IHandler actionHandler = new ActionHandler(handler); final IHandlerActivation activation = service.activateHandler( commandId, actionHandler); activationsByActionId.put(actionID, activation); } } else { if (actionHandlers != null) actionHandlers.remove(actionID); // Remove the handler activation. final IHandlerService service = (IHandlerService) serviceLocator .getService(IHandlerService.class); if (activationsByActionId != null) { if (activationsByActionId.containsKey(actionID)) { final Object value = activationsByActionId.remove(actionID); if (value instanceof IHandlerActivation) { final IHandlerActivation activation = (IHandlerActivation) value; service.deactivateHandler(activation); activation.getHandler().dispose(); } } } } actionHandlersChanged = true; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/737e2015c1ee36d160bb0f37c176259f57dd336f/SubActionBars.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5160, 1803, 1503, 12, 780, 1301, 734, 16, 467, 1803, 1838, 13, 288, 202, 202, 430, 261, 4176, 480, 446, 13, 288, 1082, 202, 759, 2315, 326, 1301, 4919, 18, 1082, 202, 430, 261, 1128, 6919, 422, 446, 13, 9506, 202, 1128, 6919, 273, 394, 4317, 12, 2499, 1769, 1082, 202, 1128, 6919, 18, 458, 12, 1128, 734, 16, 1838, 1769, 1082, 202, 759, 2315, 326, 1838, 25751, 18, 1082, 202, 6385, 467, 1503, 1179, 1156, 273, 261, 45, 1503, 1179, 13, 13580, 6862, 202, 18, 588, 1179, 12, 45, 1503, 1179, 18, 1106, 1769, 1082, 202, 430, 261, 11422, 1012, 858, 1803, 548, 422, 446, 13, 288, 9506, 202, 11422, 1012, 858, 1803, 548, 273, 394, 4317, 5621, 1082, 202, 97, 469, 288, 9506, 202, 430, 261, 11422, 1012, 858, 1803, 548, 18, 12298, 653, 12, 1128, 734, 3719, 288, 6862, 202, 6385, 1033, 460, 273, 25751, 858, 1803, 548, 18, 588, 12, 1128, 734, 1769, 6862, 202, 430, 261, 1132, 1276, 467, 1503, 14857, 13, 288, 25083, 202, 6385, 467, 1503, 14857, 10027, 273, 261, 45, 1503, 14857, 13, 460, 31, 25083, 202, 3278, 18, 323, 10014, 1503, 12, 16908, 1769, 25083, 202, 16908, 18, 588, 1503, 7675, 2251, 4150, 5621, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 1082, 202, 759, 1436, 279, 2874, 628, 333, 1301, 612, 358, 326, 1296, 612, 18, 1082, 202, 6385, 467, 1803, 2189, 3233, 1179, 2874, 1179, 273, 261, 45, 1803, 2189, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 5160, 1803, 1503, 12, 780, 1301, 734, 16, 467, 1803, 1838, 13, 288, 202, 202, 430, 261, 4176, 480, 446, 13, 288, 1082, 202, 759, 2315, 326, 1301, 4919, 18, 1082, 202, 430, 261, 1128, 6919, 422, 446, 13, 9506, 202, 1128, 6919, 273, 394, 4317, 12, 2499, 1769, 1082, 202, 1128, 6919, 18, 458, 12, 1128, 734, 16, 1838, 1769, 1082, 202, 759, 2315, 326, 1838, 25751, 18, 1082, 202, 6385, 467, 1503, 1179, 1156, 273, 261, 45, 1503, 1179, 13, 13580, 6862, 202, 18, 588, 1179, 12, 45, 1503, 1179, 18, 1106, 1769, 1082, 202, 430, 261, 11422, 1012, 858, 1803, 548, 422, 446, 13, 288, 9506, 202, 11422, 1012, 858, 1803, 2 ]
public StyleSheetReference(String id, ResourceReference resourceReference)
public StyleSheetReference(String id, Class referer, String file)
public StyleSheetReference(String id, ResourceReference resourceReference) { super(id, resourceReference, "href"); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/447941f686c63bae711b55816738fed2b8b9d367/StyleSheetReference.java/buggy/wicket-extensions/src/java/wicket/extensions/markup/html/resources/StyleSheetReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9767, 8229, 2404, 12, 780, 612, 16, 2591, 2404, 1058, 2404, 13, 202, 95, 202, 202, 9565, 12, 350, 16, 1058, 2404, 16, 315, 7547, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9767, 8229, 2404, 12, 780, 612, 16, 2591, 2404, 1058, 2404, 13, 202, 95, 202, 202, 9565, 12, 350, 16, 1058, 2404, 16, 315, 7547, 8863, 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 ]
EMIT(MIR_BinaryAcc.create(IA32_OR, R(lhsReg), IC(high)));
EMIT(MIR_BinaryAcc.create(IA32_OR, new OPT_RegisterOperand(lhsReg, VM_TypeReference.Int), IC(high)));
protected final void LONG_OR(OPT_Instruction s, OPT_RegisterOperand result, OPT_Operand value) { OPT_Register lhsReg = result.register; OPT_Register lowlhsReg = regpool.getSecondReg(lhsReg); if (value instanceof OPT_RegisterOperand) { OPT_Register rhsReg = ((OPT_RegisterOperand)value).register; OPT_Register lowrhsReg = regpool.getSecondReg(rhsReg); EMIT(MIR_BinaryAcc.create(IA32_OR, R(lowlhsReg), R(lowrhsReg))); EMIT(MIR_BinaryAcc.mutate(s, IA32_OR, R(lhsReg), R(rhsReg))); } else { OPT_LongConstantOperand rhs = (OPT_LongConstantOperand)value; int low = rhs.lower32(); int high = rhs.upper32(); if (low == 0) { // x |= 0 ==> x = x ==> nop } else if (low == -1) { // x |= 0xffffffff ==> x = 0xffffffff EMIT(MIR_Move.create(IA32_MOV, R(lowlhsReg), IC(-1))); } else { EMIT(MIR_BinaryAcc.create(IA32_OR, R(lowlhsReg), IC(low))); } if (high == 0) { // x |= 0 ==> x = x ==> nop } else if (high == -1) { // x |= 0xffffffff ==> x = 0xffffffff EMIT(MIR_Move.create(IA32_MOV, R(lhsReg), IC(-1))); } else { EMIT(MIR_BinaryAcc.create(IA32_OR, R(lhsReg), IC(high))); } } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/8dfe8cd586b96d63fa7fc0e721eee0627995e5e3/OPT_BURS_Helpers.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/ir/conversions/lir2mir/OPT_BURS_Helpers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 918, 14011, 67, 916, 12, 15620, 67, 11983, 272, 16, 1171, 9079, 16456, 67, 3996, 10265, 563, 16, 1171, 9079, 16456, 67, 10265, 460, 13, 288, 565, 16456, 67, 3996, 8499, 1617, 273, 563, 18, 4861, 31, 565, 16456, 67, 3996, 4587, 80, 4487, 1617, 273, 960, 6011, 18, 588, 8211, 1617, 12, 80, 4487, 1617, 1769, 565, 309, 261, 1132, 1276, 16456, 67, 3996, 10265, 13, 288, 1377, 16456, 67, 3996, 7711, 1617, 273, 14015, 15620, 67, 3996, 10265, 13, 1132, 2934, 4861, 31, 1377, 16456, 67, 3996, 4587, 86, 4487, 1617, 273, 960, 6011, 18, 588, 8211, 1617, 12, 86, 4487, 1617, 1769, 1377, 512, 6068, 12, 7492, 54, 67, 5905, 8973, 18, 2640, 12, 15188, 1578, 67, 916, 16, 534, 12, 821, 80, 4487, 1617, 3631, 534, 12, 821, 86, 4487, 1617, 3719, 1769, 1377, 512, 6068, 12, 7492, 54, 67, 5905, 8973, 18, 10735, 340, 12, 87, 16, 467, 37, 1578, 67, 916, 16, 534, 12, 80, 4487, 1617, 3631, 534, 12, 86, 4487, 1617, 3719, 1769, 565, 289, 469, 288, 1377, 16456, 67, 3708, 6902, 10265, 7711, 273, 261, 15620, 67, 3708, 6902, 10265, 13, 1132, 31, 1377, 509, 4587, 273, 7711, 18, 8167, 1578, 5621, 1377, 509, 3551, 273, 7711, 18, 5797, 1578, 5621, 1377, 309, 261, 821, 422, 374, 13, 288, 368, 619, 5626, 374, 422, 34, 619, 273, 619, 422, 34, 28797, 1377, 289, 469, 309, 261, 821, 422, 300, 21, 13, 288, 368, 619, 5626, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 918, 14011, 67, 916, 12, 15620, 67, 11983, 272, 16, 1171, 9079, 16456, 67, 3996, 10265, 563, 16, 1171, 9079, 16456, 67, 10265, 460, 13, 288, 565, 16456, 67, 3996, 8499, 1617, 273, 563, 18, 4861, 31, 565, 16456, 67, 3996, 4587, 80, 4487, 1617, 273, 960, 6011, 18, 588, 8211, 1617, 12, 80, 4487, 1617, 1769, 565, 309, 261, 1132, 1276, 16456, 67, 3996, 10265, 13, 288, 1377, 16456, 67, 3996, 7711, 1617, 273, 14015, 15620, 67, 3996, 10265, 13, 1132, 2934, 4861, 31, 1377, 16456, 67, 3996, 4587, 86, 4487, 1617, 273, 960, 6011, 18, 588, 8211, 1617, 12, 86, 4487, 1617, 1769, 1377, 512, 6068, 12, 7492, 54, 67, 5905, 8973, 18, 2640, 2 ]
if (list.size() == entries.length) return entries; return (ACL.Entry[])list.toArray(new ACL.Entry[list.size()]);
if (response.size() == entries.length) return entries; return (ACL.Entry[])response.toArray(new ACL.Entry[response.size()]);
private ACL.Entry[] getNonEmptyEntries( ACL.Entry[] entries ) { if ( entries == null ) return new ACL.Entry[0]; ArrayList list = new ArrayList( entries.length ); for (int i = 0; i < entries.length; i++) { boolean isNonEmpty = entries[i].canRead() || entries[i].canLookup() || entries[i].canWrite() || entries[i].canInsert() || entries[i].canDelete() || entries[i].canLock() || entries[i].canAdmin(); if (isNonEmpty) list.add(entries[i]); } if (list.size() == entries.length) return entries; return (ACL.Entry[])list.toArray(new ACL.Entry[list.size()]); }
46627 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46627/2a4a4f417dd4193df9e0a3deae14aacd3f94ccb1/ACL.java/buggy/src/JAVA/classes/org/openafs/jafs/ACL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 10098, 18, 1622, 8526, 336, 23176, 5400, 12, 10098, 18, 1622, 8526, 3222, 262, 225, 288, 565, 309, 261, 3222, 422, 446, 262, 327, 394, 10098, 18, 1622, 63, 20, 15533, 565, 2407, 666, 273, 394, 2407, 12, 3222, 18, 2469, 11272, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3222, 18, 2469, 31, 277, 27245, 565, 288, 1377, 1250, 353, 23176, 273, 3222, 63, 77, 8009, 4169, 1994, 1435, 282, 747, 21821, 3222, 63, 77, 8009, 4169, 6609, 1435, 747, 21821, 3222, 63, 77, 8009, 4169, 3067, 1435, 225, 747, 21821, 3222, 63, 77, 8009, 4169, 4600, 1435, 747, 21821, 3222, 63, 77, 8009, 4169, 2613, 1435, 747, 21821, 3222, 63, 77, 8009, 4169, 2531, 1435, 282, 747, 21821, 3222, 63, 77, 8009, 4169, 4446, 5621, 1377, 309, 261, 291, 23176, 13, 666, 18, 1289, 12, 8219, 63, 77, 19226, 565, 289, 565, 309, 261, 1098, 18, 1467, 1435, 422, 3222, 18, 2469, 13, 327, 3222, 31, 565, 327, 261, 9486, 18, 1622, 63, 5717, 1098, 18, 31447, 12, 2704, 10098, 18, 1622, 63, 1098, 18, 1467, 1435, 19226, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 10098, 18, 1622, 8526, 336, 23176, 5400, 12, 10098, 18, 1622, 8526, 3222, 262, 225, 288, 565, 309, 261, 3222, 422, 446, 262, 327, 394, 10098, 18, 1622, 63, 20, 15533, 565, 2407, 666, 273, 394, 2407, 12, 3222, 18, 2469, 11272, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3222, 18, 2469, 31, 277, 27245, 565, 288, 1377, 1250, 353, 23176, 273, 3222, 63, 77, 8009, 4169, 1994, 1435, 282, 747, 21821, 3222, 63, 77, 8009, 4169, 6609, 1435, 747, 21821, 3222, 63, 77, 8009, 4169, 3067, 1435, 225, 747, 21821, 3222, 63, 77, 8009, 4169, 4600, 1435, 747, 21821, 3222, 63, 77, 8009, 4169, 2613, 1435, 747, 21821, 3222, 63, 77, 8009, 4169, 2 ]
System.arraycopy(k, k.length-bytes.length, bytes, 0, bytes.length);
System.arraycopy(vals, vals.length-bytes.length, bytes, 0, bytes.length);
private void testECDSA192bitPrime() { BigInteger r = new BigInteger("3342403536405981729393488334694600415596881826869351677613"); BigInteger s = new BigInteger("5735822328888155254683894997897571951568553642892029982342"); SecureRandom k = new SecureRandom() { public void nextBytes(byte[] bytes) { byte[] k = new BigInteger("6140507067065001063065065565667405560006161556565665656654").toByteArray(); System.arraycopy(k, k.length-bytes.length, bytes, 0, bytes.length); } }; ECCurve.Fp curve = new ECCurve.Fp( new BigInteger("6277101735386680763835789423207666416083908700390324961279"), // q new BigInteger("fffffffffffffffffffffffffffffffefffffffffffffffc", 16), // a new BigInteger("64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1", 16)); // b ECDomainParameters params = new ECDomainParameters( curve, curve.decodePoint(Hex.decode("03188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012")), // G new BigInteger("6277101735386680763835789423176059013767194773182842284081")); // n ECPrivateKeyParameters priKey = new ECPrivateKeyParameters( new BigInteger("651056770906015076056810763456358567190100156695615665659"), // d params); ParametersWithRandom param = new ParametersWithRandom(priKey, k); ECDSASigner ecdsa = new ECDSASigner(); ecdsa.init(true, param); byte[] message = new BigInteger("968236873715988614170569073515315707566766479517").toByteArray(); BigInteger[] sig = ecdsa.generateSignature(message); if (!r.equals(sig[0])) { fail("r component wrong." + System.getProperty("line.separator") + " expecting: " + r + System.getProperty("line.separator") + " got : " + sig[0]); } if (!s.equals(sig[1])) { fail("s component wrong." + System.getProperty("line.separator") + " expecting: " + s + System.getProperty("line.separator") + " got : " + sig[1]); } // Verify the signature ECPublicKeyParameters pubKey = new ECPublicKeyParameters( curve.decodePoint(Hex.decode("0262b12d60690cdcf330babab6e69763b471f994dd702d16a5")), // Q params); ecdsa.init(false, pubKey); if (!ecdsa.verifySignature(message, sig[0], sig[1])) { fail("verification fails"); } }
53000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53000/f10cfc303c8059955d9f44a8f648a442764c60bf/ECTest.java/buggy/crypto/test/src/org/bouncycastle/crypto/test/ECTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1842, 7228, 19748, 15561, 3682, 23327, 1435, 565, 288, 3639, 10246, 436, 273, 394, 10246, 2932, 3707, 24, 3247, 4630, 8643, 1105, 20, 6162, 28, 4033, 5540, 5520, 5026, 5482, 3707, 24, 8148, 8749, 713, 9803, 2539, 10525, 5482, 2643, 5558, 5292, 29, 4763, 2313, 4700, 26, 3437, 8863, 3639, 10246, 272, 273, 394, 10246, 2932, 10321, 4763, 24532, 1578, 5482, 5482, 23643, 2947, 8749, 10261, 6675, 24, 2733, 27, 6675, 5877, 27, 31677, 3600, 9470, 2539, 23, 1105, 6030, 9975, 3103, 2733, 28, 4366, 9452, 8863, 3639, 15653, 8529, 565, 417, 273, 394, 15653, 8529, 1435, 3639, 288, 5411, 1071, 918, 1024, 2160, 12, 7229, 8526, 1731, 13, 5411, 288, 7734, 1160, 8526, 417, 273, 394, 10246, 2932, 26, 27092, 3361, 7301, 26, 7301, 9222, 713, 2163, 4449, 7677, 3361, 26, 2539, 26, 4313, 26, 5608, 20, 2539, 26, 3784, 26, 2313, 23643, 26, 4313, 4313, 26, 4313, 4313, 26, 6564, 20387, 869, 8826, 5621, 7734, 2332, 18, 1126, 3530, 12, 4524, 16, 5773, 18, 2469, 17, 3890, 18, 2469, 16, 1731, 16, 374, 16, 1731, 18, 2469, 1769, 5411, 289, 3639, 289, 31, 3639, 7773, 9423, 18, 42, 84, 8882, 273, 394, 7773, 9423, 18, 42, 84, 12, 5411, 394, 10246, 2932, 8898, 4700, 15168, 27, 4763, 23, 5292, 26, 3672, 27, 4449, 28, 4763, 27, 6675, 9452, 1578, 8642, 6028, 1105, 2313, 6840, 5520, 6840, 26874, 5520, 20, 1578, 7616, 26, 2138, 7235, 6, 3631, 368, 1043, 5411, 394, 10246, 2932, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1842, 7228, 19748, 15561, 3682, 23327, 1435, 565, 288, 3639, 10246, 436, 273, 394, 10246, 2932, 3707, 24, 3247, 4630, 8643, 1105, 20, 6162, 28, 4033, 5540, 5520, 5026, 5482, 3707, 24, 8148, 8749, 713, 9803, 2539, 10525, 5482, 2643, 5558, 5292, 29, 4763, 2313, 4700, 26, 3437, 8863, 3639, 10246, 272, 273, 394, 10246, 2932, 10321, 4763, 24532, 1578, 5482, 5482, 23643, 2947, 8749, 10261, 6675, 24, 2733, 27, 6675, 5877, 27, 31677, 3600, 9470, 2539, 23, 1105, 6030, 9975, 3103, 2733, 28, 4366, 9452, 8863, 3639, 15653, 8529, 565, 417, 273, 394, 15653, 8529, 1435, 3639, 288, 5411, 1071, 918, 1024, 2160, 12, 7229, 8526, 1731, 13, 5411, 288, 7734, 1160, 8526, 417, 273, 2 ]
RubyModule kernelModule = getRuntime().getClasses().getKernelModule();
RubyModule kernelModule = getRuntime().getModule("Kernel");
private void pollReceivedExceptions() { if (receivedException != null) { RubyModule kernelModule = getRuntime().getClasses().getKernelModule(); kernelModule.callMethod("raise", receivedException); } }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyThread.java/clean/src/org/jruby/RubyThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 7672, 8872, 11416, 1435, 288, 3639, 309, 261, 15213, 503, 480, 446, 13, 288, 5411, 19817, 3120, 5536, 3120, 273, 18814, 7675, 588, 3120, 2932, 11286, 8863, 5411, 5536, 3120, 18, 1991, 1305, 2932, 11628, 3113, 5079, 503, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 918, 7672, 8872, 11416, 1435, 288, 3639, 309, 261, 15213, 503, 480, 446, 13, 288, 5411, 19817, 3120, 5536, 3120, 273, 18814, 7675, 588, 3120, 2932, 11286, 8863, 5411, 5536, 3120, 18, 1991, 1305, 2932, 11628, 3113, 5079, 503, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println(showPreviewS);
public MainFrame() { mGalleryComm = new GalleryComm(); mFileList = new ArrayList(); mAlbumList = new ArrayList(); //-- load the properties file --- mPropertiesFile = new PropertiesFile("remote"); String currentDirectory = (String) mPropertiesFile.getProperty("filedialogpath"); if (currentDirectory != null) { AddFileDialog.currentDirectory = new File(currentDirectory); } String showPreviewS = (String) mPropertiesFile.getProperty("showpreview"); System.out.println(showPreviewS); if (showPreviewS != null) { showPreview = Boolean.valueOf(showPreviewS).booleanValue(); } String showThumbnailsS = (String) mPropertiesFile.getProperty("showthumbnails"); if (showThumbnailsS != null) { showThumbnails = Boolean.valueOf(showThumbnailsS).booleanValue(); } String thumbnailWidthS = (String) mPropertiesFile.getProperty("thumbnailwidth"); String thumbnailHeightS = (String) mPropertiesFile.getProperty("thumbnailheight"); if (thumbnailWidthS != null && thumbnailHeightS != null) { thumbnailSize = new Dimension(Integer.parseInt(thumbnailWidthS), Integer.parseInt(thumbnailHeightS)); } String thumbnailQuality = (String) mPropertiesFile.getProperty("thumbnailquality"); if (thumbnailQuality != null && thumbnailQuality.toLowerCase().startsWith("hi")) { highQualityThumbnails = true; } String showPathS = (String) mPropertiesFile.getProperty("showpath"); if (showPathS != null) { showPath = Boolean.valueOf(showPathS).booleanValue(); } }
5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/14757bcf53d86c4ccfb55765937a9f033e14bce1/MainFrame.java/clean/gallery_remote/com/gallery/GalleryRemote/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12740, 3219, 1435, 288, 7734, 312, 18511, 12136, 273, 394, 31398, 12136, 5621, 3639, 312, 26098, 273, 394, 2407, 5621, 3639, 312, 30330, 682, 273, 394, 2407, 5621, 7734, 368, 413, 1262, 326, 1790, 585, 9948, 3639, 312, 2297, 812, 273, 394, 6183, 812, 2932, 7222, 8863, 3639, 514, 783, 2853, 273, 261, 780, 13, 312, 2297, 812, 18, 588, 1396, 2932, 768, 12730, 803, 8863, 3639, 309, 261, 2972, 2853, 480, 446, 13, 288, 5411, 1436, 812, 6353, 18, 2972, 2853, 273, 394, 1387, 12, 2972, 2853, 1769, 3639, 289, 7734, 514, 2405, 11124, 55, 273, 261, 780, 13, 312, 2297, 812, 18, 588, 1396, 2932, 4500, 12102, 8863, 9079, 309, 261, 4500, 11124, 55, 480, 446, 13, 288, 5411, 2405, 11124, 273, 3411, 18, 1132, 951, 12, 4500, 11124, 55, 2934, 6494, 620, 5621, 3639, 289, 7734, 514, 2405, 16270, 87, 55, 273, 261, 780, 13, 312, 2297, 812, 18, 588, 1396, 2932, 4500, 14904, 87, 8863, 3639, 309, 261, 4500, 16270, 87, 55, 480, 446, 13, 288, 5411, 2405, 16270, 87, 273, 3411, 18, 1132, 951, 12, 4500, 16270, 87, 55, 2934, 6494, 620, 5621, 3639, 289, 7734, 514, 9134, 2384, 55, 273, 261, 780, 13, 312, 2297, 812, 18, 588, 1396, 2932, 14904, 2819, 8863, 3639, 514, 9134, 2686, 55, 273, 261, 780, 13, 312, 2297, 812, 18, 588, 1396, 2932, 14904, 4210, 8863, 7734, 309, 261, 14904, 2384, 55, 480, 446, 597, 9134, 2686, 55, 480, 446, 13, 288, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12740, 3219, 1435, 288, 7734, 312, 18511, 12136, 273, 394, 31398, 12136, 5621, 3639, 312, 26098, 273, 394, 2407, 5621, 3639, 312, 30330, 682, 273, 394, 2407, 5621, 7734, 368, 413, 1262, 326, 1790, 585, 9948, 3639, 312, 2297, 812, 273, 394, 6183, 812, 2932, 7222, 8863, 3639, 514, 783, 2853, 273, 261, 780, 13, 312, 2297, 812, 18, 588, 1396, 2932, 768, 12730, 803, 8863, 3639, 309, 261, 2972, 2853, 480, 446, 13, 288, 5411, 1436, 812, 6353, 18, 2972, 2853, 273, 394, 1387, 12, 2972, 2853, 1769, 3639, 289, 7734, 514, 2405, 11124, 55, 273, 261, 780, 13, 312, 2297, 812, 18, 588, 1396, 2932, 4500, 12102, 8863, 9079, 309, 261, 4500, 11124, 55, 480, 2 ]
IBinding binding = findSingleBinding(elName); checkDefinition(binding, "def" + "08", 2); checkReference(binding, "ref" + "08", 2); checkDefinition(binding, "defS" + "08", 2); checkReference(binding, "refS" + "08", 2);
IBinding[] binds = pdom.findBindings(Pattern.compile(elName), true, IndexFilter.ALL, new NullProgressMonitor()); assertEquals(0, binds.length);
public void testStaticBindings_f08_unexpected() throws Exception { // should be 2 bindings, otherwise how to distinguish proper def/decl // pairs? String elName = "foo" + "08"; IBinding binding = findSingleBinding(elName); checkDefinition(binding, "def" + "08", 2); checkReference(binding, "ref" + "08", 2); checkDefinition(binding, "defS" + "08", 2); checkReference(binding, "refS" + "08", 2); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/429128162f4564252658dfb6b4d215d1d264a808/DefDeclTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/internal/pdom/tests/DefDeclTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5788, 10497, 67, 74, 6840, 67, 21248, 1435, 1216, 1185, 288, 202, 202, 759, 1410, 506, 576, 7394, 16, 3541, 3661, 358, 23926, 5338, 1652, 19, 8840, 202, 202, 759, 5574, 35, 202, 202, 780, 415, 461, 273, 315, 11351, 6, 397, 315, 6840, 14432, 202, 202, 45, 5250, 5085, 273, 1104, 5281, 5250, 12, 292, 461, 1769, 202, 202, 1893, 1852, 12, 7374, 16, 315, 536, 6, 397, 315, 6840, 3113, 576, 1769, 202, 202, 1893, 2404, 12, 7374, 16, 315, 1734, 6, 397, 315, 6840, 3113, 576, 1769, 202, 202, 1893, 1852, 12, 7374, 16, 315, 536, 55, 6, 397, 315, 6840, 3113, 576, 1769, 202, 202, 1893, 2404, 12, 7374, 16, 315, 1734, 55, 6, 397, 315, 6840, 3113, 576, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 482, 918, 1842, 5788, 10497, 67, 74, 6840, 67, 21248, 1435, 1216, 1185, 288, 202, 202, 759, 1410, 506, 576, 7394, 16, 3541, 3661, 358, 23926, 5338, 1652, 19, 8840, 202, 202, 759, 5574, 35, 202, 202, 780, 415, 461, 273, 315, 11351, 6, 397, 315, 6840, 14432, 202, 202, 45, 5250, 5085, 273, 1104, 5281, 5250, 12, 292, 461, 1769, 202, 202, 1893, 1852, 12, 7374, 16, 315, 536, 6, 397, 315, 6840, 3113, 576, 1769, 202, 202, 1893, 2404, 12, 7374, 16, 315, 1734, 6, 397, 315, 6840, 3113, 576, 1769, 202, 202, 1893, 1852, 12, 7374, 16, 315, 536, 55, 6, 397, 315, 6840, 3113, 576, 1769, 202, 202, 1893, 2404, 12, 7374, 16, 2 ]
}
}
static void doStatus(SVNWorkspace ws, ISVNDirectoryEntry parent, SVNStatusEditor editor, ISVNStatusHandler handler, String path, Collection externals, boolean descend, boolean includeUnmodified, boolean includeIgnored, boolean descendInUnversioned) throws SVNException { externals = externals == null ? new HashSet() : externals; ISVNEntry entry = ws.locateEntry(path, true); if (entry != null && entry.isDirectory()) { externals = SVNExternal.create(entry.asDirectory(), externals); } Map statuses = localStatus(ws, parent, path, null, externals, !descend); if (editor != null) { statuses = editor.completeStatus(statuses, path, descend); } // fill in remote information from editor. if (!entry.isDirectory()) { // ignore ignored, unchanged... handleStatus(handler, (SVNStatus) statuses.get(entry.getName()), includeUnmodified, includeIgnored); return; } SVNStatus dirStatus = (SVNStatus) statuses.remove(""); if (dirStatus.getContentsStatus() == SVNStatus.EXTERNAL || (!descendInUnversioned && !entry.isManaged())) { handleStatus(handler, dirStatus, includeUnmodified, includeIgnored); return; } // descend if (descend && dirStatus.getContentsStatus() != SVNStatus.OBSTRUCTED) { for(Iterator names = statuses.keySet().iterator(); names.hasNext();) { String name = (String) names.next(); SVNStatus status = (SVNStatus) statuses.get(name); if (status == null) { if (!includeIgnored && entry.asDirectory().isIgnored(name)) { continue; } doStatus(ws, entry.asDirectory(), editor, handler, PathUtil.append(path, name), externals, true, includeUnmodified, includeIgnored, descendInUnversioned); } } } for(Iterator names = statuses.keySet().iterator(); names.hasNext();) { String name = (String) names.next(); SVNStatus status = (SVNStatus) statuses.get(name); if (status != null) { handleStatus(handler, status, includeUnmodified, includeIgnored); } } handleStatus(handler, dirStatus, includeUnmodified, includeIgnored); }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/25a98f8f0cb2065dc9fe2ef044a25d527ff91efa/SVNStatusUtil.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/SVNStatusUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 741, 1482, 12, 23927, 50, 8241, 4945, 16, 4437, 58, 50, 2853, 1622, 982, 16, 29537, 50, 1482, 6946, 4858, 16, 4437, 58, 50, 1482, 1503, 1838, 16, 514, 589, 16, 2200, 18885, 1031, 16, 1250, 10653, 16, 5411, 1250, 2341, 984, 7342, 16, 1250, 2341, 15596, 16, 1250, 10653, 382, 984, 21415, 13, 1216, 29537, 50, 503, 288, 3639, 18885, 1031, 273, 18885, 1031, 422, 446, 692, 394, 6847, 1435, 294, 18885, 1031, 31, 7734, 4437, 58, 50, 1622, 1241, 273, 4945, 18, 25450, 1622, 12, 803, 16, 638, 1769, 3639, 309, 261, 4099, 480, 446, 597, 1241, 18, 291, 2853, 10756, 288, 5411, 18885, 1031, 273, 29537, 50, 6841, 18, 2640, 12, 4099, 18, 345, 2853, 9334, 18885, 1031, 1769, 3639, 289, 3639, 1635, 13516, 273, 1191, 1482, 12, 4749, 16, 982, 16, 589, 16, 446, 16, 18885, 1031, 16, 401, 26236, 1769, 3639, 309, 261, 9177, 480, 446, 13, 288, 2398, 13516, 273, 4858, 18, 6226, 1482, 12, 21655, 16, 589, 16, 10653, 1769, 3639, 289, 3639, 368, 3636, 316, 2632, 1779, 628, 4858, 18, 7734, 309, 16051, 4099, 18, 291, 2853, 10756, 288, 5411, 368, 2305, 5455, 16, 14827, 2777, 5411, 1640, 1482, 12, 4176, 16, 261, 23927, 50, 1482, 13, 13516, 18, 588, 12, 4099, 18, 17994, 1435, 3631, 2341, 984, 7342, 16, 2341, 15596, 1769, 5411, 327, 31, 3639, 289, 3639, 29537, 50, 1482, 1577, 1482, 273, 261, 23927, 50, 1482, 13, 13516, 18, 4479, 2932, 8863, 3639, 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, 760, 918, 741, 1482, 12, 23927, 50, 8241, 4945, 16, 4437, 58, 50, 2853, 1622, 982, 16, 29537, 50, 1482, 6946, 4858, 16, 4437, 58, 50, 1482, 1503, 1838, 16, 514, 589, 16, 2200, 18885, 1031, 16, 1250, 10653, 16, 5411, 1250, 2341, 984, 7342, 16, 1250, 2341, 15596, 16, 1250, 10653, 382, 984, 21415, 13, 1216, 29537, 50, 503, 288, 3639, 18885, 1031, 273, 18885, 1031, 422, 446, 692, 394, 6847, 1435, 294, 18885, 1031, 31, 7734, 4437, 58, 50, 1622, 1241, 273, 4945, 18, 25450, 1622, 12, 803, 16, 638, 1769, 3639, 309, 261, 4099, 480, 446, 597, 1241, 18, 291, 2853, 10756, 288, 5411, 18885, 1031, 273, 29537, 50, 6841, 18, 2640, 12, 4099, 18, 2 ]
if(len > ctx.maxOutputLength || len > ctx.maxTempLength) {
if((len > ctx.maxOutputLength) || (len > ctx.maxTempLength)) {
private void handleMetadata() throws FetchException, MetadataParseException, ArchiveFailureException, ArchiveRestartException { while(true) { if(metadata.isSimpleManifest()) { Logger.minor(this, "Is simple manifest"); String name; if(metaStrings.isEmpty()) throw new FetchException(FetchException.NOT_ENOUGH_METASTRINGS); else name = (String) metaStrings.removeFirst(); // Since metadata is a document, we just replace metadata here Logger.minor(this, "Next meta-string: "+name); if(name == null) { metadata = metadata.getDefaultDocument(); if(metadata == null) throw new FetchException(FetchException.NOT_ENOUGH_METASTRINGS); } else { metadata = metadata.getDocument(name); thisKey = thisKey.pushMetaString(name); if(metadata == null) throw new FetchException(FetchException.NOT_IN_ARCHIVE); } continue; // loop } else if(metadata.isArchiveManifest()) { Logger.minor(this, "Is archive manifest"); if(metaStrings.isEmpty() && ctx.returnZIPManifests) { // Just return the archive, whole. metadata.setSimpleRedirect(); continue; } // First we need the archive metadata. // Then parse it. // Then we may need to fetch something from inside the archive. ah = (ArchiveStoreContext) ctx.archiveManager.makeHandler(thisKey, metadata.getArchiveType(), false); archiveMetadata = metadata; // ah is set. This means we are currently handling an archive. Bucket metadataBucket; metadataBucket = ah.getMetadata(actx, null, recursionLevel+1, true); if(metadataBucket != null) { try { metadata = Metadata.construct(metadataBucket); } catch (IOException e) { // Bucket error? throw new FetchException(FetchException.BUCKET_ERROR, e); } } else { fetchArchive(false, archiveMetadata); // will result in this function being called again return; } continue; } else if(metadata.isArchiveInternalRedirect()) { Logger.minor(this, "Is archive-internal redirect"); clientMetadata.mergeNoOverwrite(metadata.getClientMetadata()); // Fetch it from the archive if(ah == null) throw new FetchException(FetchException.UNKNOWN_METADATA, "Archive redirect not in an archive manifest"); String filename = metadata.getZIPInternalName(); Logger.minor(this, "Fetching "+filename); Bucket dataBucket = ah.get(filename, actx, null, recursionLevel+1, true); if(dataBucket != null) { Logger.minor(this, "Returning data"); // The client may free it, which is bad, or it may hang on to it for so long that it gets // freed by us, which is also bad. // So copy it. // FIXME this is stupid, reconsider how we determine when to free buckets; refcounts maybe? Bucket out; try { if(returnBucket != null) out = returnBucket; else out = ctx.bucketFactory.makeBucket(dataBucket.size()); BucketTools.copy(dataBucket, out); } catch (IOException e) { onFailure(new FetchException(FetchException.BUCKET_ERROR)); return; } // Return the data onSuccess(new FetchResult(this.clientMetadata, out)); return; } else { Logger.minor(this, "Fetching archive"); // Metadata cannot contain pointers to files which don't exist. // We enforce this in ArchiveHandler. // Therefore, the archive needs to be fetched. fetchArchive(true, archiveMetadata); // Will call back into this function when it has been fetched. return; } } else if(metadata.isMultiLevelMetadata()) { Logger.minor(this, "Is multi-level metadata"); // Fetch on a second SingleFileFetcher, like with archives. Metadata newMeta = (Metadata) metadata.clone(); newMeta.setSimpleRedirect(); SingleFileFetcher f = new SingleFileFetcher(this, newMeta, new MultiLevelMetadataCallback(), ctx); f.handleMetadata(); return; } else if(metadata.isSingleFileRedirect()) { Logger.minor(this, "Is single-file redirect"); clientMetadata.mergeNoOverwrite(metadata.getClientMetadata()); // even splitfiles can have mime types! // FIXME implement implicit archive support // Simple redirect // Just create a new SingleFileFetcher // Which will then fetch the target URI, and call the rcd.success // Hopefully! FreenetURI uri = metadata.getSingleTarget(); Logger.minor(this, "Redirecting to "+uri); ClientKey key; try { BaseClientKey k = ClientKey.getBaseKey(uri); if(k instanceof ClientKey) key = (ClientKey) k; else // FIXME do we want to allow redirects to USKs? // Without redirects to USKs, all SSK and CHKs are static. // This may be a desirable property. throw new FetchException(FetchException.UNKNOWN_METADATA, "Redirect to a USK"); } catch (MalformedURLException e) { throw new FetchException(FetchException.INVALID_URI, e); } if(key instanceof ClientCHK && !((ClientCHK)key).isMetadata()) rcb.onBlockSetFinished(this); LinkedList newMetaStrings = uri.listMetaStrings(); // Move any new meta strings to beginning of our list of remaining meta strings while(!newMetaStrings.isEmpty()) { Object o = newMetaStrings.removeLast(); metaStrings.addFirst(o); } // **FIXME** Is key in the call to SingleFileFetcher here supposed to be this.key or the same key used in the try block above? MultiLevelMetadataCallback.onSuccess() below uses this.key, thus the question SingleFileFetcher f = new SingleFileFetcher((ClientGetter)parent, rcb, clientMetadata, key, metaStrings, ctx, actx, maxRetries, recursionLevel, false, null, true, returnBucket); if(metadata.isCompressed()) { Compressor codec = Compressor.getCompressionAlgorithmByMetadataID(metadata.getCompressionCodec()); f.addDecompressor(codec); } f.schedule(); // All done! No longer our problem! return; } else if(metadata.isSplitfile()) { Logger.minor(this, "Fetching splitfile"); // FIXME implicit archive support clientMetadata.mergeNoOverwrite(metadata.getClientMetadata()); // even splitfiles can have mime types! // Splitfile (possibly compressed) if(metadata.isCompressed()) { Compressor codec = Compressor.getCompressionAlgorithmByMetadataID(metadata.getCompressionCodec()); addDecompressor(codec); } long len = metadata.dataLength(); if(metadata.uncompressedDataLength() > len) len = metadata.uncompressedDataLength(); if(len > ctx.maxOutputLength || len > ctx.maxTempLength) { boolean finished = (rcb == parent); onFailure(new FetchException(FetchException.TOO_BIG, len, finished, clientMetadata.getMIMEType())); return; } SplitFileFetcher sf = new SplitFileFetcher(metadata, rcb, (ClientGetter)parent, ctx, decompressors, clientMetadata, actx, recursionLevel, returnBucket, false); sf.schedule(); rcb.onBlockSetFinished(this); // SplitFile will now run. // Then it will return data to rcd. // We are now out of the loop. Yay! return; } else { Logger.error(this, "Don't know what to do with metadata: "+metadata); throw new FetchException(FetchException.UNKNOWN_METADATA); } } }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SingleFileFetcher.java/buggy/src/freenet/client/async/SingleFileFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 2277, 1435, 1216, 8065, 503, 16, 6912, 13047, 16, 13124, 14389, 16, 13124, 15057, 503, 288, 202, 202, 17523, 12, 3767, 13, 288, 1082, 202, 430, 12, 4165, 18, 291, 5784, 9121, 10756, 288, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 315, 2520, 4143, 5643, 8863, 9506, 202, 780, 508, 31, 9506, 202, 430, 12, 3901, 7957, 18, 291, 1921, 10756, 6862, 202, 12849, 394, 8065, 503, 12, 5005, 503, 18, 4400, 67, 1157, 26556, 16715, 67, 19294, 5804, 55, 1769, 9506, 202, 12107, 6862, 202, 529, 273, 261, 780, 13, 2191, 7957, 18, 4479, 3759, 5621, 9506, 202, 759, 7897, 1982, 353, 279, 1668, 16, 732, 2537, 1453, 1982, 2674, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 315, 2134, 2191, 17, 1080, 30, 13773, 529, 1769, 9506, 202, 430, 12, 529, 422, 446, 13, 288, 6862, 202, 4165, 273, 1982, 18, 588, 1868, 2519, 5621, 6862, 202, 430, 12, 4165, 422, 446, 13, 25083, 202, 12849, 394, 8065, 503, 12, 5005, 503, 18, 4400, 67, 1157, 26556, 16715, 67, 19294, 5804, 55, 1769, 9506, 202, 97, 469, 288, 6862, 202, 4165, 273, 1982, 18, 588, 2519, 12, 529, 1769, 6862, 202, 2211, 653, 273, 333, 653, 18, 6206, 2781, 780, 12, 529, 1769, 6862, 202, 430, 12, 4165, 422, 446, 13, 25083, 202, 12849, 394, 8065, 503, 12, 5005, 503, 18, 4400, 67, 706, 67, 10586, 5354, 1769, 9506, 202, 97, 9506, 202, 17143, 31, 368, 2798, 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, 1152, 918, 1640, 2277, 1435, 1216, 8065, 503, 16, 6912, 13047, 16, 13124, 14389, 16, 13124, 15057, 503, 288, 202, 202, 17523, 12, 3767, 13, 288, 1082, 202, 430, 12, 4165, 18, 291, 5784, 9121, 10756, 288, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 315, 2520, 4143, 5643, 8863, 9506, 202, 780, 508, 31, 9506, 202, 430, 12, 3901, 7957, 18, 291, 1921, 10756, 6862, 202, 12849, 394, 8065, 503, 12, 5005, 503, 18, 4400, 67, 1157, 26556, 16715, 67, 19294, 5804, 55, 1769, 9506, 202, 12107, 6862, 202, 529, 273, 261, 780, 13, 2191, 7957, 18, 4479, 3759, 5621, 9506, 202, 759, 7897, 1982, 353, 279, 1668, 16, 732, 2537, 1453, 1982, 2674, 9506, 202, 2 ]
this.observer = observer;
image.setObserver (observer);
public boolean prepareImage (Image image, int width, int height, ImageObserver observer) { GtkImage i = (GtkImage) image; if (i.isLoaded ()) return true; class PrepareImage extends Thread { GtkImage image; ImageObserver observer; PrepareImage (GtkImage image, ImageObserver observer) { this.image = image; this.observer = observer; } public void run () { // XXX: need to return data to image observer image.source.startProduction (null); } } new PrepareImage (i, observer).start (); return false; }
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/122ce965e6a2cfd03426146540e17f6a5034e45c/GtkComponentPeer.java/clean/libjava/gnu/java/awt/peer/gtk/GtkComponentPeer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 2911, 2040, 261, 2040, 1316, 16, 509, 1835, 16, 509, 2072, 16, 9506, 4202, 3421, 11048, 9655, 13, 282, 288, 565, 22132, 2040, 277, 273, 261, 43, 16099, 2040, 13, 1316, 31, 565, 309, 261, 77, 18, 291, 8835, 1832, 13, 327, 638, 31, 565, 667, 7730, 2040, 3231, 4884, 565, 288, 1377, 22132, 2040, 1316, 31, 1377, 3421, 11048, 9655, 31, 1377, 7730, 2040, 261, 43, 16099, 2040, 1316, 16, 3421, 11048, 9655, 13, 1377, 288, 202, 2211, 18, 2730, 273, 1316, 31, 202, 2730, 18, 542, 11048, 261, 30971, 1769, 1377, 289, 5411, 1071, 918, 1086, 1832, 1377, 288, 202, 759, 11329, 30, 1608, 358, 327, 501, 358, 1316, 9655, 202, 2730, 18, 3168, 18, 1937, 31590, 261, 2011, 1769, 1377, 289, 565, 289, 565, 394, 7730, 2040, 261, 77, 16, 9655, 2934, 1937, 261, 1769, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 1250, 2911, 2040, 261, 2040, 1316, 16, 509, 1835, 16, 509, 2072, 16, 9506, 4202, 3421, 11048, 9655, 13, 282, 288, 565, 22132, 2040, 277, 273, 261, 43, 16099, 2040, 13, 1316, 31, 565, 309, 261, 77, 18, 291, 8835, 1832, 13, 327, 638, 31, 565, 667, 7730, 2040, 3231, 4884, 565, 288, 1377, 22132, 2040, 1316, 31, 1377, 3421, 11048, 9655, 31, 1377, 7730, 2040, 261, 43, 16099, 2040, 1316, 16, 3421, 11048, 9655, 13, 1377, 288, 202, 2211, 18, 2730, 273, 1316, 31, 202, 2730, 18, 542, 11048, 261, 30971, 1769, 1377, 289, 5411, 1071, 918, 1086, 1832, 1377, 288, 202, 759, 11329, 30, 1608, 358, 327, 501, 358, 1316, 9655, 202, 2730, 18, 3168, 2 ]
bugReportPostHandler.add(KEY_SHORT_DESC, bug.getAttribute(BugReport.ATTR_SUMMARY).getNewValue());
if (bug.getAttribute(BugReport.ATTR_SUMMARY) != null) { bugReportPostHandler.add(KEY_SHORT_DESC, bug.getAttribute(BugReport.ATTR_SUMMARY).getNewValue()); }
public static BugzillaReportSubmitForm makeExistingBugPost(BugReport bug, TaskRepository repository, Set<String> removeCC) { BugzillaReportSubmitForm bugReportPostHandler = new BugzillaReportSubmitForm(); setDefaultCCValue(bug, repository); setURL(bugReportPostHandler, repository, PROCESS_BUG_CGI); if (bug.getCharset() != null) { bugReportPostHandler.setCharset(bug.getCharset()); } // go through all of the attributes and add them to the bug post for (Iterator<Attribute> it = bug.getAttributes().iterator(); it.hasNext();) { Attribute a = it.next(); if (a != null && a.getParameterName() != null && a.getParameterName().compareTo("") != 0 && !a.isHidden()) { String value = a.getNewValue(); // add the attribute to the bug post bugReportPostHandler.add(a.getParameterName(), value != null ? value : ""); } else if (a != null && a.getParameterName() != null && a.getParameterName().compareTo("") != 0 && a.isHidden()) { // we have a hidden attribute and we should send it back. bugReportPostHandler.add(a.getParameterName(), a.getValue()); } } // add the operation to the bug post Operation o = bug.getSelectedOperation(); if (o == null) bugReportPostHandler.add(KEY_KNOB, VAL_NONE); else { bugReportPostHandler.add(KEY_KNOB, o.getKnobName()); if (o.hasOptions()) { String sel = o.getOptionValue(o.getOptionSelection()); bugReportPostHandler.add(o.getOptionName(), sel); } else if (o.isInput()) { String sel = o.getInputValue(); bugReportPostHandler.add(o.getInputName(), sel); } } bugReportPostHandler.add(KEY_FORM_NAME, VAL_PROCESS_BUG); bug.setNewNewComment(formatTextToLineWrap(bug.getNewNewComment(), repository)); bugReportPostHandler.add(KEY_SHORT_DESC, bug.getAttribute(BugReport.ATTR_SUMMARY).getNewValue()); // add the new comment to the bug post if there is some text in it if (bug.getNewNewComment().length() != 0) { bugReportPostHandler.add(KEY_COMMENT, bug.getNewNewComment()); } if (removeCC != null && removeCC.size() > 0) { String[] s = new String[removeCC.size()]; bugReportPostHandler.add(KEY_CC, toCommaSeparatedList(removeCC.toArray(s))); bugReportPostHandler.add(KEY_REMOVECC, VAL_TRUE); } return bugReportPostHandler; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/2611e96fd7cdbfad041c14def2801476afafa0a8/BugzillaReportSubmitForm.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaReportSubmitForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 16907, 15990, 4820, 11620, 1204, 1221, 9895, 19865, 3349, 12, 19865, 4820, 7934, 16, 3837, 3305, 3352, 16, 1000, 32, 780, 34, 1206, 6743, 13, 288, 202, 202, 19865, 15990, 4820, 11620, 1204, 7934, 4820, 3349, 1503, 273, 394, 16907, 15990, 4820, 11620, 1204, 5621, 202, 202, 542, 1868, 6743, 620, 12, 925, 16, 3352, 1769, 202, 202, 542, 1785, 12, 925, 4820, 3349, 1503, 16, 3352, 16, 20647, 67, 4827, 67, 39, 13797, 1769, 202, 202, 430, 261, 925, 18, 588, 9652, 1435, 480, 446, 13, 288, 1082, 202, 925, 4820, 3349, 1503, 18, 542, 9652, 12, 925, 18, 588, 9652, 10663, 202, 202, 97, 202, 202, 759, 1960, 3059, 777, 434, 326, 1677, 471, 527, 2182, 358, 326, 7934, 1603, 202, 202, 1884, 261, 3198, 32, 1499, 34, 518, 273, 7934, 18, 588, 2498, 7675, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 1499, 279, 273, 518, 18, 4285, 5621, 1082, 202, 430, 261, 69, 480, 446, 597, 279, 18, 588, 24586, 1435, 480, 446, 597, 279, 18, 588, 24586, 7675, 9877, 774, 2932, 7923, 480, 374, 597, 401, 69, 18, 291, 9345, 10756, 288, 9506, 202, 780, 460, 273, 279, 18, 588, 1908, 620, 5621, 9506, 202, 759, 527, 326, 1566, 358, 326, 7934, 1603, 9506, 202, 925, 4820, 3349, 1503, 18, 1289, 12, 69, 18, 588, 24586, 9334, 460, 480, 446, 692, 460, 294, 1408, 1769, 1082, 202, 97, 469, 309, 261, 69, 480, 446, 597, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 16907, 15990, 4820, 11620, 1204, 1221, 9895, 19865, 3349, 12, 19865, 4820, 7934, 16, 3837, 3305, 3352, 16, 1000, 32, 780, 34, 1206, 6743, 13, 288, 202, 202, 19865, 15990, 4820, 11620, 1204, 7934, 4820, 3349, 1503, 273, 394, 16907, 15990, 4820, 11620, 1204, 5621, 202, 202, 542, 1868, 6743, 620, 12, 925, 16, 3352, 1769, 202, 202, 542, 1785, 12, 925, 4820, 3349, 1503, 16, 3352, 16, 20647, 67, 4827, 67, 39, 13797, 1769, 202, 202, 430, 261, 925, 18, 588, 9652, 1435, 480, 446, 13, 288, 1082, 202, 925, 4820, 3349, 1503, 18, 542, 9652, 12, 925, 18, 588, 9652, 10663, 202, 202, 97, 202, 202, 759, 1960, 3059, 777, 434, 326, 1677, 2 ]
((CvValue)_cvVector.elementAt(getCvNum())).addPropertyChangeListener(this);
CvValue cv = ((CvValue)_cvVector.elementAt(getCvNum())); cv.addPropertyChangeListener(this); cv.setState(CvValue.FROMFILE);
public DecVariableValue(String name, String comment, boolean readOnly, int cvNum, String mask, int minVal, int maxVal, Vector v, JLabel status, String stdname) { super(name, comment, readOnly, cvNum, mask, v, status, stdname); _maxVal = maxVal; _minVal = minVal; _value = new JTextField("0",4); _defaultColor = _value.getBackground(); _value.setBackground(COLOR_UNKNOWN); // connect to the JTextField value, cv _value.addActionListener(this); ((CvValue)_cvVector.elementAt(getCvNum())).addPropertyChangeListener(this); }
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/9838a0e2f26f462973efb8981a5e7627ad7073a3/DecVariableValue.java/clean/jmrit/symbolicprog/DecVariableValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3416, 3092, 620, 12, 780, 508, 16, 514, 2879, 16, 1250, 15075, 16, 6862, 1082, 202, 474, 8951, 2578, 16, 514, 3066, 16, 509, 1131, 3053, 16, 509, 943, 3053, 16, 6862, 1082, 202, 5018, 331, 16, 21403, 1267, 16, 514, 2044, 529, 13, 288, 202, 202, 9565, 12, 529, 16, 2879, 16, 15075, 16, 8951, 2578, 16, 3066, 16, 331, 16, 1267, 16, 2044, 529, 1769, 202, 202, 67, 1896, 3053, 273, 943, 3053, 31, 202, 202, 67, 1154, 3053, 273, 1131, 3053, 31, 202, 202, 67, 1132, 273, 394, 804, 16157, 2932, 20, 3113, 24, 1769, 202, 202, 67, 1886, 2957, 273, 389, 1132, 18, 588, 8199, 5621, 202, 202, 67, 1132, 18, 542, 8199, 12, 10989, 67, 14737, 1769, 202, 202, 759, 3077, 358, 326, 804, 16157, 460, 16, 8951, 202, 202, 67, 1132, 18, 1289, 1803, 2223, 12, 2211, 1769, 202, 202, 12443, 39, 90, 620, 13, 67, 19774, 5018, 18, 2956, 861, 12, 588, 39, 90, 2578, 10756, 2934, 1289, 1396, 15744, 12, 2211, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3416, 3092, 620, 12, 780, 508, 16, 514, 2879, 16, 1250, 15075, 16, 6862, 1082, 202, 474, 8951, 2578, 16, 514, 3066, 16, 509, 1131, 3053, 16, 509, 943, 3053, 16, 6862, 1082, 202, 5018, 331, 16, 21403, 1267, 16, 514, 2044, 529, 13, 288, 202, 202, 9565, 12, 529, 16, 2879, 16, 15075, 16, 8951, 2578, 16, 3066, 16, 331, 16, 1267, 16, 2044, 529, 1769, 202, 202, 67, 1896, 3053, 273, 943, 3053, 31, 202, 202, 67, 1154, 3053, 273, 1131, 3053, 31, 202, 202, 67, 1132, 273, 394, 804, 16157, 2932, 20, 3113, 24, 1769, 202, 202, 67, 1886, 2957, 273, 389, 1132, 18, 588, 8199, 5621, 202, 202, 67, 1132, 18, 542, 2 ]
if ((name.length() / 2) <= maxIdxPerLine) {
if ((name.length() - substring_1.length()) <= maxIdxPerLine) {
private String adjustStringBreaksByWidth(final String name, final Font font, final boolean isAntiAliased, final int maxWidth) { String shortenedName = name; Rectangle2D r = font.getStringBounds(name, new FontRenderContext(new AffineTransform(), isAntiAliased, false)); if (r.getWidth() > maxWidth) { String substring_1; String substring_2; int maxIdxPerLine = (int)(maxWidth / r.getWidth() * name.length()); for (int i = maxIdxPerLine; i > 0; i--) { if (name.charAt(i) == ' ') { substring_1 = name.substring(0, i) + "<br>"; if ((name.length() / 2) <= maxIdxPerLine) { substring_2 = name.substring(i + 1, name.length()); } else { maxIdxPerLine = i + maxIdxPerLine - 2; substring_2 = name.substring(i + 1, maxIdxPerLine) + "..."; } shortenedName = substring_1 + substring_2; break; } } // In case there were no space characters for breaking the name properly, the name is cut to take only one line with ellipsis at the end if (shortenedName.equals(name) && shortenedName.length() > maxIdxPerLine) { shortenedName = name.substring(0, maxIdxPerLine - 2) + "..."; } } return "<html>" + shortenedName + "</html>"; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/b080fd0d58ab279226f25e1ebd84392c26dd5f33/WelcomeScreen.java/buggy/source/com/intellij/openapi/wm/impl/welcomeScreen/WelcomeScreen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 5765, 780, 26806, 858, 2384, 12, 6385, 514, 508, 16, 727, 10063, 3512, 16, 727, 1250, 353, 14925, 77, 37, 29809, 16, 727, 509, 17681, 13, 288, 565, 514, 19651, 329, 461, 273, 508, 31, 565, 13264, 22, 40, 436, 273, 3512, 18, 588, 780, 5694, 12, 529, 16, 394, 10063, 3420, 1042, 12, 2704, 23906, 558, 4059, 9334, 353, 14925, 77, 37, 29809, 16, 629, 10019, 565, 309, 261, 86, 18, 588, 2384, 1435, 405, 17681, 13, 288, 1377, 514, 3019, 67, 21, 31, 1377, 514, 3019, 67, 22, 31, 1377, 509, 943, 4223, 2173, 1670, 273, 261, 474, 21433, 1896, 2384, 342, 436, 18, 588, 2384, 1435, 380, 508, 18, 2469, 10663, 1377, 364, 261, 474, 277, 273, 943, 4223, 2173, 1670, 31, 277, 405, 374, 31, 277, 413, 13, 288, 3639, 309, 261, 529, 18, 3001, 861, 12, 77, 13, 422, 296, 8624, 288, 1850, 3019, 67, 21, 273, 508, 18, 28023, 12, 20, 16, 277, 13, 397, 3532, 2848, 2984, 31, 1850, 309, 14015, 529, 18, 2469, 1435, 300, 3019, 67, 21, 18, 2469, 10756, 1648, 943, 4223, 2173, 1670, 13, 288, 5411, 3019, 67, 22, 273, 508, 18, 28023, 12, 77, 397, 404, 16, 508, 18, 2469, 10663, 1850, 289, 1850, 469, 288, 5411, 943, 4223, 2173, 1670, 273, 277, 397, 943, 4223, 2173, 1670, 300, 576, 31, 5411, 3019, 67, 22, 273, 508, 18, 28023, 12, 77, 397, 404, 16, 943, 4223, 2173, 1670, 13, 397, 26456, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 5765, 780, 26806, 858, 2384, 12, 6385, 514, 508, 16, 727, 10063, 3512, 16, 727, 1250, 353, 14925, 77, 37, 29809, 16, 727, 509, 17681, 13, 288, 565, 514, 19651, 329, 461, 273, 508, 31, 565, 13264, 22, 40, 436, 273, 3512, 18, 588, 780, 5694, 12, 529, 16, 394, 10063, 3420, 1042, 12, 2704, 23906, 558, 4059, 9334, 353, 14925, 77, 37, 29809, 16, 629, 10019, 565, 309, 261, 86, 18, 588, 2384, 1435, 405, 17681, 13, 288, 1377, 514, 3019, 67, 21, 31, 1377, 514, 3019, 67, 22, 31, 1377, 509, 943, 4223, 2173, 1670, 273, 261, 474, 21433, 1896, 2384, 342, 436, 18, 588, 2384, 1435, 380, 508, 18, 2469, 10663, 1377, 364, 2 ]
final DatePicker datePicker = new DatePicker(composite, SWT.NULL); datePicker.setDateText("<reminder>");
final DatePicker datePicker = new DatePicker(composite, SWT.NULL); datePicker.setDateText("<reminder>");
protected Control createDialogArea(Composite parent) { Composite composite = (Composite) super.createDialogArea(parent); final DatePicker datePicker = new DatePicker(composite, SWT.NULL); datePicker.setDateText("<reminder>"); datePicker.addPickerSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent arg0) { reminderDate = datePicker.getDate().getTime(); } public void widgetDefaultSelected(SelectionEvent arg0) { // ignore } }); return composite; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bcbd1b8c581189a4c534dc6fd11d8f91c9494e67/ReminderCellEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/planner/ui/ReminderCellEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 1082, 202, 9400, 9635, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 2938, 1769, 1082, 202, 6385, 2167, 13194, 1509, 13194, 273, 394, 2167, 13194, 12, 27676, 16, 348, 8588, 18, 8560, 1769, 1082, 3639, 1509, 13194, 18, 542, 1626, 1528, 2932, 32, 2764, 14055, 2984, 1769, 1082, 202, 712, 13194, 18, 1289, 13194, 6233, 2223, 12, 2704, 12977, 2223, 1435, 288, 9506, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 1501, 20, 13, 288, 6862, 202, 2764, 14055, 1626, 273, 1509, 13194, 18, 588, 1626, 7675, 588, 950, 5621, 9506, 202, 97, 9506, 202, 482, 918, 3604, 1868, 7416, 12, 6233, 1133, 1501, 20, 13, 288, 6862, 202, 759, 2305, 9506, 202, 97, 1082, 202, 22938, 1082, 202, 2463, 9635, 31, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3196, 202, 1117, 8888, 752, 6353, 5484, 12, 9400, 982, 13, 288, 1082, 202, 9400, 9635, 273, 261, 9400, 13, 2240, 18, 2640, 6353, 5484, 12, 2938, 1769, 1082, 202, 6385, 2167, 13194, 1509, 13194, 273, 394, 2167, 13194, 12, 27676, 16, 348, 8588, 18, 8560, 1769, 1082, 3639, 1509, 13194, 18, 542, 1626, 1528, 2932, 32, 2764, 14055, 2984, 1769, 1082, 202, 712, 13194, 18, 1289, 13194, 6233, 2223, 12, 2704, 12977, 2223, 1435, 288, 9506, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 1501, 20, 13, 288, 6862, 202, 2764, 14055, 1626, 273, 1509, 13194, 18, 588, 1626, 7675, 588, 950, 5621, 9506, 202, 97, 9506, 202, 482, 918, 3604, 1868, 7416, 12, 6233, 1133, 1501, 20, 2 ]
public CertificateIssuer(byte[] encoding) { super(encoding);
public CertificateIssuer(GeneralName issuer) { super(ASN1.encode(issuer));
public CertificateIssuer(byte[] encoding) { super(encoding); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/f11cfd830ea760eba58b7cead5464ffc5dc7bc8a/CertificateIssuer.java/buggy/modules/security/src/main/java/common/org/apache/harmony/security/x509/CertificateIssuer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6660, 16667, 12, 7229, 8526, 2688, 13, 288, 3639, 2240, 12, 5999, 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, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6660, 16667, 12, 7229, 8526, 2688, 13, 288, 3639, 2240, 12, 5999, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (sym.isPackage())
if (sym.isPackage() || sym.isPackageClass())
private void addSymbolTable(Symbol[] syms, String title, boolean useFullName) { if (syms.length > 0) { page.printlnBold(title); page.printlnOTag("table", ATTRS_LIST).indent(); page.printlnOTag("tr").indent(); page.printlnOTag("td", new XMLAttribute[] { new XMLAttribute("style", "white-space:nowrap;")}).indent(); for (int i = 0; i < syms.length; i++) { Symbol sym = syms[i]; if (! sym.isRoot()) { String name = sym.nameString(); if (sym.isPackage()) page.printAhref(definitionURL(sym), CLASSES_FRAME, name); else { Symbol user = (useFullName) ? global.definitions.ROOT_CLASS : Symbol.NONE; page.printAhref(definitionURL(sym), ROOT_FRAME, name); } page.printlnSTag("br"); } } page.undent(); page.printlnCTag("td").undent(); page.printlnCTag("tr").undent(); page.printlnCTag("table"); page.printlnSTag("p"); } }
32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/65f20e3f1a9cdce298ba7b0185388aba35db32a9/HTMLGenerator.java/clean/sources/scala/tools/scaladoc/HTMLGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 5335, 1388, 12, 5335, 8526, 24367, 16, 514, 2077, 16, 1250, 999, 19223, 13, 288, 3639, 309, 261, 9009, 959, 18, 2469, 405, 374, 13, 288, 5411, 1363, 18, 8222, 38, 1673, 12, 2649, 1769, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 2121, 3113, 12759, 55, 67, 7085, 2934, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 313, 20387, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 4465, 3113, 394, 3167, 1499, 8526, 288, 7734, 394, 3167, 1499, 2932, 4060, 3113, 315, 14739, 17, 2981, 30, 3338, 1266, 4868, 16869, 2934, 9355, 5621, 202, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 24367, 18, 2469, 31, 277, 27245, 288, 202, 3639, 8565, 5382, 273, 24367, 63, 77, 15533, 7734, 309, 16051, 5382, 18, 291, 2375, 10756, 288, 10792, 514, 508, 273, 5382, 18, 529, 780, 5621, 10792, 309, 261, 8117, 18, 291, 2261, 1435, 747, 5382, 18, 291, 2261, 797, 10756, 13491, 1363, 18, 1188, 37, 7547, 12, 6907, 1785, 12, 8117, 3631, 29859, 20230, 67, 15072, 16, 508, 1769, 10792, 469, 288, 13491, 8565, 729, 273, 261, 1202, 19223, 13, 692, 2552, 18, 13314, 18, 9185, 67, 5237, 294, 8565, 18, 9826, 31, 13491, 1363, 18, 1188, 37, 7547, 12, 6907, 1785, 12, 8117, 3631, 11011, 67, 15072, 16, 508, 1769, 10792, 289, 202, 5411, 1363, 18, 8222, 882, 346, 2932, 2848, 8863, 7734, 289, 202, 565, 289, 5411, 1363, 18, 1074, 319, 5621, 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, 377, 3238, 918, 527, 5335, 1388, 12, 5335, 8526, 24367, 16, 514, 2077, 16, 1250, 999, 19223, 13, 288, 3639, 309, 261, 9009, 959, 18, 2469, 405, 374, 13, 288, 5411, 1363, 18, 8222, 38, 1673, 12, 2649, 1769, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 2121, 3113, 12759, 55, 67, 7085, 2934, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 313, 20387, 9355, 5621, 202, 565, 1363, 18, 8222, 51, 1805, 2932, 4465, 3113, 394, 3167, 1499, 8526, 288, 7734, 394, 3167, 1499, 2932, 4060, 3113, 315, 14739, 17, 2981, 30, 3338, 1266, 4868, 16869, 2934, 9355, 5621, 202, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 24367, 18, 2469, 31, 277, 27245, 2 ]
c.fill = GridBagConstraints.BOTH;
c.fill = GridBagConstraints.VERTICAL;
public StartingPositionDialog(ClientGUI clientgui) { super(clientgui.frame, Messages.getString("StartingPositionDialog.title"), true); //$NON-NLS-1$ client = clientgui.getClient(); this.clientgui = clientgui; lisStartList.setEnabled(false); setupStartGrid(); setupButtons(); // layout GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); getContentPane().setLayout(gridbag); c.fill = GridBagConstraints.BOTH; c.insets = new Insets(4, 4, 4, 4); c.weightx = 1.0; c.weighty = 1.0; c.gridwidth = 1; gridbag.setConstraints(panStartButtons, c); getContentPane().add(panStartButtons); c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(lisStartList, c); getContentPane().add(lisStartList); c.fill = GridBagConstraints.VERTICAL; gridbag.setConstraints(panButtons, c); getContentPane().add(panButtons); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { setVisible(false); } }); pack(); setResizable(false); setLocation(clientgui.frame.getLocation().x + clientgui.frame.getSize().width / 2 - getSize().width / 2, clientgui.frame.getLocation().y + clientgui.frame.getSize().height / 2 - getSize().height / 2); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/2fec5c4b34186293b7be95651520151697c2a083/StartingPositionDialog.java/buggy/megamek/src/megamek/client/ui/swing/StartingPositionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24591, 2555, 6353, 12, 1227, 43, 5370, 1004, 20292, 13, 288, 3639, 2240, 12, 2625, 20292, 18, 3789, 16, 4838, 18, 588, 780, 2932, 11715, 2555, 6353, 18, 2649, 6, 3631, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1004, 273, 1004, 20292, 18, 588, 1227, 5621, 3639, 333, 18, 2625, 20292, 273, 1004, 20292, 31, 3639, 328, 291, 1685, 682, 18, 542, 1526, 12, 5743, 1769, 3639, 3875, 1685, 6313, 5621, 3639, 3875, 14388, 5621, 3639, 368, 3511, 3639, 7145, 5013, 3744, 3068, 22551, 273, 394, 7145, 5013, 3744, 5621, 3639, 13075, 276, 273, 394, 13075, 5621, 3639, 5154, 8485, 7675, 542, 3744, 12, 5222, 22551, 1769, 3639, 276, 18, 5935, 273, 13075, 18, 21654, 10109, 31, 3639, 276, 18, 267, 4424, 273, 394, 22300, 12, 24, 16, 1059, 16, 1059, 16, 1059, 1769, 3639, 276, 18, 4865, 92, 273, 404, 18, 20, 31, 3639, 276, 18, 4865, 93, 273, 404, 18, 20, 31, 3639, 276, 18, 5222, 2819, 273, 404, 31, 3639, 3068, 22551, 18, 542, 4878, 12, 7355, 1685, 14388, 16, 276, 1769, 3639, 5154, 8485, 7675, 1289, 12, 7355, 1685, 14388, 1769, 3639, 276, 18, 5222, 2819, 273, 13075, 18, 862, 5535, 14822, 31, 3639, 3068, 22551, 18, 542, 4878, 12, 80, 291, 1685, 682, 16, 276, 1769, 3639, 5154, 8485, 7675, 1289, 12, 80, 291, 1685, 682, 1769, 3639, 276, 18, 5935, 273, 13075, 18, 21654, 10109, 31, 3639, 3068, 22551, 18, 542, 4878, 12, 7355, 14388, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24591, 2555, 6353, 12, 1227, 43, 5370, 1004, 20292, 13, 288, 3639, 2240, 12, 2625, 20292, 18, 3789, 16, 4838, 18, 588, 780, 2932, 11715, 2555, 6353, 18, 2649, 6, 3631, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 1004, 273, 1004, 20292, 18, 588, 1227, 5621, 3639, 333, 18, 2625, 20292, 273, 1004, 20292, 31, 3639, 328, 291, 1685, 682, 18, 542, 1526, 12, 5743, 1769, 3639, 3875, 1685, 6313, 5621, 3639, 3875, 14388, 5621, 3639, 368, 3511, 3639, 7145, 5013, 3744, 3068, 22551, 273, 394, 7145, 5013, 3744, 5621, 3639, 13075, 276, 273, 394, 13075, 5621, 3639, 5154, 8485, 7675, 542, 3744, 12, 5222, 22551, 1769, 3639, 276, 18, 5935, 273, 13075, 18, 2 ]
String namenode) throws IOException {
String namenode, boolean taskTrackerFirst) throws IOException {
public MiniMRCluster(int jobTrackerPort, int taskTrackerPort, int numTaskTrackers, String namenode) throws IOException { this.jobTrackerPort = jobTrackerPort; this.taskTrackerPort = taskTrackerPort; this.numTaskTrackers = numTaskTrackers; this.namenode = namenode; File configDir = new File("build", "minimr"); configDir.mkdirs(); File siteFile = new File(configDir, "hadoop-site.xml"); PrintWriter pw = new PrintWriter(siteFile); pw.print("<?xml version=\"1.0\"?>\n"+ "<?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?>\n"+ "<configuration>\n"+ " <property>\n"+ " <name>mapred.system.dir</name>\n"+ " <value>build/test/mapred/system</value>\n"+ " </property>\n"+ "</configuration>\n"); pw.close(); jobTracker = new JobTrackerRunner(); jobTrackerThread = new Thread(jobTracker); jobTrackerThread.start(); try { // let jobTracker get started Thread.sleep(2000); } catch(InterruptedException e) { } for (int idx = 0; idx < numTaskTrackers; idx++) { TaskTrackerRunner taskTracker = new TaskTrackerRunner(); Thread taskTrackerThread = new Thread(taskTracker); taskTrackerThread.start(); taskTrackerList.add(taskTracker); taskTrackerThreadList.add(taskTrackerThread); } try { // let taskTrackers get started Thread.sleep(2000); } catch(InterruptedException e) { } }
50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/ee039b4163b10a4788ed4da43d9c13b314eb6a46/MiniMRCluster.java/buggy/src/test/org/apache/hadoop/mapred/MiniMRCluster.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27987, 23464, 3629, 12, 474, 1719, 8135, 2617, 16, 5411, 509, 1562, 8135, 2617, 16, 5411, 509, 818, 2174, 4402, 414, 16, 5411, 514, 15135, 20680, 16, 1250, 1562, 8135, 3759, 13, 1216, 1860, 288, 3639, 333, 18, 4688, 8135, 2617, 273, 1719, 8135, 2617, 31, 3639, 333, 18, 4146, 8135, 2617, 273, 1562, 8135, 2617, 31, 3639, 333, 18, 2107, 2174, 4402, 414, 273, 818, 2174, 4402, 414, 31, 3639, 333, 18, 17808, 20680, 273, 15135, 20680, 31, 7734, 1387, 30395, 273, 394, 1387, 2932, 3510, 3113, 315, 1154, 381, 86, 8863, 3639, 30395, 18, 24816, 8291, 5621, 3639, 1387, 2834, 812, 273, 394, 1387, 12, 1425, 1621, 16, 315, 76, 12460, 17, 4256, 18, 2902, 8863, 3639, 14071, 8772, 273, 394, 14071, 12, 4256, 812, 1769, 3639, 8772, 18, 1188, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 35, 5333, 82, 6, 15, 7734, 20410, 2902, 17, 19403, 618, 5189, 955, 19, 30903, 2412, 3897, 5189, 7025, 18, 30903, 2412, 35, 5333, 82, 6, 15, 7734, 3532, 7025, 5333, 82, 6, 15, 7734, 315, 411, 4468, 5333, 82, 6, 15, 7734, 315, 282, 411, 529, 34, 1458, 1118, 18, 4299, 18, 1214, 1757, 529, 5333, 82, 6, 15, 7734, 315, 282, 411, 1132, 34, 3510, 19, 3813, 19, 1458, 1118, 19, 4299, 1757, 1132, 5333, 82, 6, 15, 7734, 315, 7765, 4468, 5333, 82, 6, 15, 7734, 6823, 7025, 5333, 82, 8863, 3639, 8772, 18, 4412, 5621, 3639, 1719, 8135, 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, 27987, 23464, 3629, 12, 474, 1719, 8135, 2617, 16, 5411, 509, 1562, 8135, 2617, 16, 5411, 509, 818, 2174, 4402, 414, 16, 5411, 514, 15135, 20680, 16, 1250, 1562, 8135, 3759, 13, 1216, 1860, 288, 3639, 333, 18, 4688, 8135, 2617, 273, 1719, 8135, 2617, 31, 3639, 333, 18, 4146, 8135, 2617, 273, 1562, 8135, 2617, 31, 3639, 333, 18, 2107, 2174, 4402, 414, 273, 818, 2174, 4402, 414, 31, 3639, 333, 18, 17808, 20680, 273, 15135, 20680, 31, 7734, 1387, 30395, 273, 394, 1387, 2932, 3510, 3113, 315, 1154, 381, 86, 8863, 3639, 30395, 18, 24816, 8291, 5621, 3639, 1387, 2834, 812, 273, 394, 1387, 12, 1425, 1621, 16, 315, 76, 12460, 17, 4256, 18, 2902, 2 ]
myLexer.syntaxError(s);
short tagCode = ((Astro)yylval).getOptTagCode(); if (LexerFace.EOFTOK == tagCode) { myLexer.needMore("Unexpected EOF"); return; }
private void yyerror(String s) throws SyntaxException { if ("syntax error".equals(s)) { if (null == yylval) { myLexer.needMore("Unexpected EOF"); return; //give the compiler better info } short tagCode = ((Astro)yylval).getOptTagCode(); if (LexerFace.EOFTOK == tagCode) { myLexer.needMore("Unexpected EOF"); return; //give the compiler better info } } myLexer.syntaxError(s); }
48789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48789/6a5f07d44e3741f9878c8fc478a6622a65c9c359/GrammarParser.java/clean/src/jsrc/org/quasiliteral/term/GrammarParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 9016, 1636, 12, 780, 272, 13, 1216, 11517, 503, 288, 3639, 309, 7566, 14308, 555, 9654, 14963, 12, 87, 3719, 288, 5411, 309, 261, 2011, 422, 9016, 80, 1125, 13, 288, 7734, 3399, 13356, 18, 14891, 7417, 2932, 7762, 6431, 8863, 7734, 327, 31, 368, 75, 688, 326, 5274, 7844, 1123, 5411, 289, 5411, 3025, 1047, 1085, 273, 14015, 21385, 303, 13, 6795, 80, 1125, 2934, 588, 6179, 1805, 1085, 5621, 5411, 309, 261, 13356, 11824, 18, 12706, 56, 3141, 422, 1047, 1085, 13, 288, 7734, 3399, 13356, 18, 14891, 7417, 2932, 7762, 6431, 8863, 7734, 327, 31, 368, 75, 688, 326, 5274, 7844, 1123, 5411, 289, 3639, 289, 3639, 3025, 1047, 1085, 273, 14015, 21385, 303, 13, 6795, 80, 1125, 2934, 588, 6179, 1805, 1085, 5621, 309, 261, 13356, 11824, 18, 12706, 56, 3141, 422, 1047, 1085, 13, 288, 3399, 13356, 18, 14891, 7417, 2932, 7762, 6431, 8863, 327, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 9016, 1636, 12, 780, 272, 13, 1216, 11517, 503, 288, 3639, 309, 7566, 14308, 555, 9654, 14963, 12, 87, 3719, 288, 5411, 309, 261, 2011, 422, 9016, 80, 1125, 13, 288, 7734, 3399, 13356, 18, 14891, 7417, 2932, 7762, 6431, 8863, 7734, 327, 31, 368, 75, 688, 326, 5274, 7844, 1123, 5411, 289, 5411, 3025, 1047, 1085, 273, 14015, 21385, 303, 13, 6795, 80, 1125, 2934, 588, 6179, 1805, 1085, 5621, 5411, 309, 261, 13356, 11824, 18, 12706, 56, 3141, 422, 1047, 1085, 13, 288, 7734, 3399, 13356, 18, 14891, 7417, 2932, 7762, 6431, 8863, 7734, 327, 31, 368, 75, 688, 326, 5274, 7844, 1123, 5411, 289, 3639, 289, 3639, 3025, 1047, 1085, 273, 14015, 21385, 2 ]
public void openWith(Attachment pAttachment) { if (Pooka.isDebug()) System.out.println("calling AttachmentHandler.openWith()"); try { String mimeType = pAttachment.getMimeType().toString(); if (mimeType.indexOf(';') != -1) mimeType = mimeType.substring(0, mimeType.indexOf(';')); final String mType = mimeType; final Attachment fAttachment = pAttachment; // have to get the ActionThread for later. ActionThread actionThread = null; Thread currentThread = Thread.currentThread(); if (currentThread instanceof ActionThread) { actionThread = (ActionThread) currentThread; } final ActionThread fActionThread = actionThread; SwingUtilities.invokeLater(new Runnable() { public void run() { String inputMessage = Pooka.getProperty("AttchmentPane.openWith.message", "Enter the command with which \r\nto open the attchment."); String inputTitle = Pooka.getProperty("AttachmentPane.openWith.title", "Open Attachment With"); String makeDefaultLabel = Pooka.getProperty("AttachmentPane.openWith.makeDefaultMessage", "Make default command?"); JLabel toggleMsgLabel = new JLabel(makeDefaultLabel); toggleMsgLabel.setForeground(Color.getColor("Black")); JRadioButton toggleButton = new JRadioButton(); JPanel togglePanel = new JPanel(); togglePanel.add(toggleMsgLabel); togglePanel.add(toggleButton); Object[] messageArray = new Object[2]; messageArray[0] = inputMessage; messageArray[1] = togglePanel; String cmd = null; if (getMessageUI() != null) cmd = getMessageUI().showInputDialog(messageArray, inputTitle); else cmd = Pooka.getUIFactory().showInputDialog(messageArray, inputTitle); if (cmd != null) { if (cmd.indexOf("%s") == -1) cmd = cmd.concat(" %s"); if (toggleButton.isSelected()) { String newMailcap = new String(mType.toLowerCase() + ";" + cmd); ((FullMailcapCommandMap)Pooka.getMailcap()).addMailcap(newMailcap); } final DataHandler dh = fAttachment.getDataHandler(); final String fCmd = cmd; if (dh != null) { AbstractAction action = new AbstractAction() { public void actionPerformed(java.awt.event.ActionEvent ae) { try { dh.setCommandMap(Pooka.getMailcap()); ExternalLauncher el = new ExternalLauncher(); el.setCommandContext(fCmd, dh); // create a progress dialog for the external launcher int attachmentSize = fAttachment.getSize(); if (fAttachment.getEncoding() != null && fAttachment.getEncoding().equalsIgnoreCase("base64")) attachmentSize = (int) (attachmentSize * .73); ProgressDialog dlg; if (getMessageUI() != null) { dlg = getMessageUI().createProgressDialog(0, attachmentSize, 0, "Fetching attachment","Fetching attachment"); } else { dlg = Pooka.getUIFactory().createProgressDialog(0, attachmentSize, 0, "Fetching attachment","Fetching attachment"); } final ExternalLauncher fLauncher = el; dlg.addCancelListener(new ProgressDialogListener() { public void dialogCancelled() { fLauncher.cancelSave(); } }); el.setProgressDialog(dlg); if (Pooka.isDebug()) System.out.println("opening external launcher with "); el.show(); } catch (Exception elException) { getMessageUI().showError("Error opening attachment", elException); } } }; if (fActionThread != null) { fActionThread.addToQueue(action, new java.awt.event.ActionEvent(AttachmentHandler.this, 0, "attachment-open")); } else { action.actionPerformed( new java.awt.event.ActionEvent(AttachmentHandler.this, 0, "attachment-open")); } } } } }); } catch (Exception e) { e.printStackTrace(); } }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/AttachmentHandler.java/buggy/src/net/suberic/pooka/gui/AttachmentHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1696, 1190, 12, 6803, 293, 6803, 13, 288, 565, 309, 261, 52, 1184, 69, 18, 291, 2829, 10756, 1377, 2332, 18, 659, 18, 8222, 2932, 31623, 15939, 1503, 18, 3190, 1190, 1435, 8863, 565, 775, 288, 1377, 514, 10707, 273, 293, 6803, 18, 588, 16821, 7675, 10492, 5621, 1377, 309, 261, 19176, 18, 31806, 2668, 4359, 13, 480, 300, 21, 13, 202, 19176, 273, 10707, 18, 28023, 12, 20, 16, 10707, 18, 31806, 2668, 4359, 10019, 1377, 727, 514, 312, 559, 273, 10707, 31, 5411, 727, 15939, 284, 6803, 273, 293, 6803, 31, 1377, 368, 1240, 358, 336, 326, 4382, 3830, 364, 5137, 18, 1377, 4382, 3830, 1301, 3830, 273, 446, 31, 1377, 4884, 11800, 273, 4884, 18, 2972, 3830, 5621, 1377, 309, 261, 2972, 3830, 1276, 4382, 3830, 13, 288, 202, 1128, 3830, 273, 261, 1803, 3830, 13, 11800, 31, 1377, 289, 1377, 727, 4382, 3830, 284, 1803, 3830, 273, 1301, 3830, 31, 5411, 26145, 11864, 18, 14407, 20607, 12, 2704, 10254, 1435, 288, 202, 225, 1071, 918, 1086, 1435, 288, 202, 565, 514, 810, 1079, 273, 453, 1184, 69, 18, 588, 1396, 2932, 3075, 343, 475, 8485, 18, 3190, 1190, 18, 2150, 3113, 315, 10237, 326, 1296, 598, 1492, 521, 86, 64, 496, 83, 1696, 326, 2403, 343, 475, 1199, 1769, 202, 565, 514, 810, 4247, 273, 453, 1184, 69, 18, 588, 1396, 2932, 6803, 8485, 18, 3190, 1190, 18, 2649, 3113, 315, 3678, 15939, 3423, 8863, 202, 565, 514, 1221, 1868, 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, 1696, 1190, 12, 6803, 293, 6803, 13, 288, 565, 309, 261, 52, 1184, 69, 18, 291, 2829, 10756, 1377, 2332, 18, 659, 18, 8222, 2932, 31623, 15939, 1503, 18, 3190, 1190, 1435, 8863, 565, 775, 288, 1377, 514, 10707, 273, 293, 6803, 18, 588, 16821, 7675, 10492, 5621, 1377, 309, 261, 19176, 18, 31806, 2668, 4359, 13, 480, 300, 21, 13, 202, 19176, 273, 10707, 18, 28023, 12, 20, 16, 10707, 18, 31806, 2668, 4359, 10019, 1377, 727, 514, 312, 559, 273, 10707, 31, 5411, 727, 15939, 284, 6803, 273, 293, 6803, 31, 1377, 368, 1240, 358, 336, 326, 4382, 3830, 364, 5137, 18, 1377, 4382, 3830, 1301, 3830, 273, 446, 31, 1377, 4884, 11800, 273, 2 ]
setValue(text); }
setValue(text); }
public final void setText(java.lang.String text) { setValue(text); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/ButtonComponent.java/clean/org.rcfaces.core/src/org/rcfaces/core/component/ButtonComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 7883, 12, 6290, 18, 4936, 18, 780, 977, 13, 288, 3639, 5524, 12, 955, 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, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 7883, 12, 6290, 18, 4936, 18, 780, 977, 13, 288, 3639, 5524, 12, 955, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try { CompiledSQLQuery csql = new CompiledSQLQuery( conn, query ); String sqlbase = csql.toSQL(); String structure_table = dataset+"_structure_dm"; sqlbase += " order by "+structure_table+".transcript_id, "+structure_table+".rank"; while (moreRows) { sql = sqlbase; if (limit > 0) { sql += " limit "+limit; moreRows = false; } else { sql += " limit "+batchStart+" , "+batchLength; batchStart += batchLength; } logger.info( "QUERY : " + query ); logger.info( "SQL : " +sql ); PreparedStatement ps = conn.prepareStatement( sql ); int p=1; for( int i=0, n=query.getFilters().length; i<n; ++i) { Filter f = query.getFilters()[i]; String value = f.getValue(); if ( value!=null ) { logger.info("SQL (prepared statement value) : "+p+" = " + value); ps.setString( p++, value); } } ResultSet rs = ps.executeQuery(); ResultSetMetaData rmeta = rs.getMetaData(); for (int i = 1, nColumns = rmeta.getColumnCount(); i <= nColumns; ++i) { String column = rmeta.getColumnName(i); if (column.equals(queryID)) queryIDindex = i; else if (column.equals(Rank)) rankIndex = i; else if (column.equals(AssemblyColumn)) assemblyIndex = i; else if (column.equals(coordStart)) startIndex = i; else if (column.equals(coordEnd)) endIndex = i; else if (column.equals(Chr)) chromIndex = i; else if (column.equals(StrandColumn)) strandIndex = i; else if (displayIDs.contains(column)) displayIDindices.add(new Integer(i)); else otherIndices.add(new Integer(i)); } int rows = 0; Integer lastTran = new Integer(0); while ( rs.next() ) { rows++; Integer tranID = new Integer(rs.getInt(queryIDindex)); Integer rank = new Integer(rs.getInt(rankIndex)); if (! ( traniDs.containsKey(tranID) ) ) { if (traniDs.size() > 0) { seqWriter.writeSequences(lastTran); traniDs = new TreeMap(); } lastTran = tranID; Hashtable atts = new Hashtable(); atts.put(Locations, new TreeMap()); atts.put(Assembly, rs.getString(assemblyIndex)); traniDs.put(tranID, atts); } Hashtable tranatts = (Hashtable) traniDs.get(tranID); int start = rs.getInt(startIndex); if (start > 0) { String chr = rs.getString(chromIndex); int end = rs.getInt(endIndex); int strand = rs.getInt(strandIndex); ((TreeMap) tranatts.get(Locations)).put(rank, new SequenceLocation(chr, start, end, strand)); if (! ( tranatts.containsKey(Geneloc) ) ) { tranatts.put(Geneloc, new SequenceLocation(chr, start, end, strand)); } else { SequenceLocation geneloc = (SequenceLocation) ((Hashtable) traniDs.get(tranID)).get(Geneloc); if (start < geneloc.getStart()) { tranatts.put(Geneloc, new SequenceLocation(chr, start, geneloc.getEnd(), strand)); if (end > geneloc.getEnd()) tranatts.put(Geneloc, new SequenceLocation(chr, geneloc.getStart(), end, strand)); } } } if (! ( tranatts.containsKey(DisplayID) ) ) { StringBuffer displayID = new StringBuffer(); for (int i = 0, n = displayIDindices.size(); i < n; i++) { if (i>0) displayID.append( separator ); int currindex = ((Integer) displayIDindices.get(i)).intValue(); if ( rs.getString(currindex) != null ) displayID.append( rs.getString(currindex) ); } tranatts.put(DisplayID, displayID.toString()); } for (int i = 0, n = otherIndices.size(); i < n; i++) { int currindex = ((Integer) otherIndices.get(i)).intValue(); if (rs.getString(currindex) != null ) { String field = attributes[currindex-1].getName(); if (! fields.contains(field)) fields.add(field); String value = rs.getString(currindex); if ( tranatts.containsKey(field) ) { if (! ((ArrayList) tranatts.get(field)).contains(value)) ((ArrayList) tranatts.get(field)).add(value); } else { List values = new ArrayList(); values.add(value); tranatts.put(field, values); } } } if (! ( tranatts.containsKey(Description) ) ) tranatts.put( Description, seqd.getDescription() ); } if (lastTran.intValue() > 0) seqWriter.writeSequences(lastTran); if (rows < batchLength) moreRows = false; }
try { CompiledSQLQuery csql = new CompiledSQLQuery(conn, query); String sqlbase = csql.toSQL(); String structure_table = dataset + "_structure_dm"; sqlbase += " order by " + structure_table + ".transcript_id, " + structure_table + ".rank"; while (moreRows) { sql = sqlbase; if (limit > 0) { sql += " limit " + limit; moreRows = false; } else { sql += " limit " + batchStart + " , " + batchLength; batchStart += batchLength; } logger.info("QUERY : " + query); logger.info("SQL : " + sql); PreparedStatement ps = conn.prepareStatement(sql); int p = 1; for (int i = 0, n = query.getFilters().length; i < n; ++i) { Filter f = query.getFilters()[i]; String value = f.getValue(); if (value != null) { logger.info( "SQL (prepared statement value) : " + p + " = " + value); ps.setString(p++, value); } } ResultSet rs = ps.executeQuery(); ResultSetMetaData rmeta = rs.getMetaData(); for (int i = 1, nColumns = rmeta.getColumnCount(); i <= nColumns; ++i) { String column = rmeta.getColumnName(i); if (column.equals(queryID)) queryIDindex = i; else if (column.equals(Rank)) rankIndex = i; else if (column.equals(AssemblyColumn)) assemblyIndex = i; else if (column.equals(coordStart)) startIndex = i; else if (column.equals(coordEnd)) endIndex = i; else if (column.equals(Chr)) chromIndex = i; else if (column.equals(StrandColumn)) strandIndex = i; else if (displayIDs.contains(column)) displayIDindices.add(new Integer(i)); else otherIndices.add(new Integer(i)); } int rows = 0; Integer lastTran = new Integer(0); while (rs.next()) { rows++; Integer tranID = new Integer(rs.getInt(queryIDindex)); Integer rank = new Integer(rs.getInt(rankIndex)); if (!(traniDs.containsKey(tranID))) { if (traniDs.size() > 0) { if (lastTran.intValue() > 0) seqWriter.writeSequences(lastTran); traniDs = new TreeMap(); } lastTran = tranID; Hashtable atts = new Hashtable(); atts.put(Locations, new TreeMap()); atts.put(Assembly, rs.getString(assemblyIndex)); traniDs.put(tranID, atts); } Hashtable tranatts = (Hashtable) traniDs.get(tranID); int start = rs.getInt(startIndex); if (start > 0) { String chr = rs.getString(chromIndex); int end = rs.getInt(endIndex); int strand = rs.getInt(strandIndex); ((TreeMap) tranatts.get(Locations)).put( rank, new SequenceLocation(chr, start, end, strand)); if (!(tranatts.containsKey(Geneloc))) { tranatts.put( Geneloc, new SequenceLocation(chr, start, end, strand)); } else { SequenceLocation geneloc = (SequenceLocation) ((Hashtable) traniDs.get(tranID)).get( Geneloc); if (start < geneloc.getStart()) { tranatts.put( Geneloc, new SequenceLocation( chr, start, geneloc.getEnd(), strand)); if (end > geneloc.getEnd()) tranatts.put( Geneloc, new SequenceLocation( chr, geneloc.getStart(), end, strand)); } } } if (!(tranatts.containsKey(DisplayID))) { StringBuffer displayID = new StringBuffer(); for (int i = 0, n = displayIDindices.size(); i < n; i++) { if (i > 0) displayID.append(separator); int currindex = ((Integer) displayIDindices.get(i)).intValue(); if (rs.getString(currindex) != null) displayID.append(rs.getString(currindex)); } tranatts.put(DisplayID, displayID.toString()); } for (int i = 0, n = otherIndices.size(); i < n; i++) { int currindex = ((Integer) otherIndices.get(i)).intValue(); if (rs.getString(currindex) != null) { String field = attributes[currindex - 1].getName(); if (!fields.contains(field)) fields.add(field); String value = rs.getString(currindex); if (tranatts.containsKey(field)) { if (!((ArrayList) tranatts.get(field)) .contains(value)) ((ArrayList) tranatts.get(field)).add( value); } else { List values = new ArrayList(); values.add(value); tranatts.put(field, values); } } } if (!(tranatts.containsKey(Description))) tranatts.put(Description, seqd.getDescription()); } if (lastTran.intValue() > 0) seqWriter.writeSequences(lastTran); if (rows < batchLength) moreRows = false; }
public void execute(int limit) throws SequenceException, InvalidQueryException { SequenceDescription seqd = query.getSequenceDescription(); boolean moreRows = true; // will turn false on last batch of SQL int batchStart = 0; // need to know these indexes specifically int queryIDindex = 0; int rankIndex = 0; int assemblyIndex = 0; int startIndex = 0; int endIndex = 0; int chromIndex = 0; int strandIndex = 0; List displayIDindices = new ArrayList(); List otherIndices = new ArrayList(); queryID = "transcript_id"; coordStart = "coding_start"; coordEnd = "coding_end"; displayIDs.add("transcript_stable_id_v"); displayIDs.add("gene_stable_id_v"); updateQuery(); Attribute[] attributes = query.getAttributes(); String sql = null; try { CompiledSQLQuery csql = new CompiledSQLQuery( conn, query ); String sqlbase = csql.toSQL(); String structure_table = dataset+"_structure_dm"; sqlbase += " order by "+structure_table+".transcript_id, "+structure_table+".rank"; while (moreRows) { sql = sqlbase; if (limit > 0) { sql += " limit "+limit; moreRows = false; // for client supplied limit, run one query } else { sql += " limit "+batchStart+" , "+batchLength; batchStart += batchLength; } logger.info( "QUERY : " + query ); logger.info( "SQL : " +sql ); PreparedStatement ps = conn.prepareStatement( sql ); int p=1; for( int i=0, n=query.getFilters().length; i<n; ++i) { Filter f = query.getFilters()[i]; String value = f.getValue(); if ( value!=null ) { logger.info("SQL (prepared statement value) : "+p+" = " + value); ps.setString( p++, value); } } ResultSet rs = ps.executeQuery(); ResultSetMetaData rmeta = rs.getMetaData(); // process columnNames for required attribute indices for (int i = 1, nColumns = rmeta.getColumnCount(); i <= nColumns; ++i) { String column = rmeta.getColumnName(i); if (column.equals(queryID)) queryIDindex = i; else if (column.equals(Rank)) rankIndex = i; else if (column.equals(AssemblyColumn)) assemblyIndex = i; else if (column.equals(coordStart)) startIndex = i; else if (column.equals(coordEnd)) endIndex = i; else if (column.equals(Chr)) chromIndex = i; else if (column.equals(StrandColumn)) strandIndex = i; else if (displayIDs.contains(column)) displayIDindices.add(new Integer(i)); else otherIndices.add(new Integer(i)); } int rows = 0; //rowcount Integer lastTran = new Integer(0); // will hold last transcript, when a new one is encountered while ( rs.next() ) { rows++; Integer tranID = new Integer(rs.getInt(queryIDindex)); Integer rank = new Integer(rs.getInt(rankIndex)); if (! ( traniDs.containsKey(tranID) ) ) { if (traniDs.size() > 0) { // process the previous tranID, if this isnt the first time through, then refresh the traniDs TreeMap seqWriter.writeSequences(lastTran); traniDs = new TreeMap(); } lastTran = tranID; Hashtable atts = new Hashtable(); atts.put(Locations, new TreeMap()); atts.put(Assembly, rs.getString(assemblyIndex)); traniDs.put(tranID, atts); } Hashtable tranatts = (Hashtable) traniDs.get(tranID); int start = rs.getInt(startIndex); if (start > 0) { // if start is not null, create a new SequenceLocation object from the chr, start, end, and strand String chr = rs.getString(chromIndex); int end = rs.getInt(endIndex); int strand = rs.getInt(strandIndex); // order the locations by their rank in ascending order ((TreeMap) tranatts.get(Locations)).put(rank, new SequenceLocation(chr, start, end, strand)); // keep track of the lowest start and highest end for the gene if (! ( tranatts.containsKey(Geneloc) ) ) { tranatts.put(Geneloc, new SequenceLocation(chr, start, end, strand)); } else { SequenceLocation geneloc = (SequenceLocation) ((Hashtable) traniDs.get(tranID)).get(Geneloc); if (start < geneloc.getStart()) { tranatts.put(Geneloc, new SequenceLocation(chr, start, geneloc.getEnd(), strand)); // overwrite the previous copy if (end > geneloc.getEnd()) tranatts.put(Geneloc, new SequenceLocation(chr, geneloc.getStart(), end, strand)); // overwrite the previous copy } } } // process displayID, if necessary if (! ( tranatts.containsKey(DisplayID) ) ) { StringBuffer displayID = new StringBuffer(); for (int i = 0, n = displayIDindices.size(); i < n; i++) { if (i>0) displayID.append( separator ); int currindex = ((Integer) displayIDindices.get(i)).intValue(); if ( rs.getString(currindex) != null ) displayID.append( rs.getString(currindex) ); } tranatts.put(DisplayID, displayID.toString()); } // Rest can be duplicates, or novel values for a given field, collect lists of values for each field // currindex is now the last index of the DisplayIDs. Increment it, and iterate over the rest of the ResultSet to print the description for (int i = 0, n = otherIndices.size(); i < n; i++) { int currindex = ((Integer) otherIndices.get(i)).intValue(); if (rs.getString(currindex) != null ) { String field = attributes[currindex-1].getName(); if (! fields.contains(field)) fields.add(field); String value = rs.getString(currindex); if ( tranatts.containsKey(field) ) { if (! ((ArrayList) tranatts.get(field)).contains(value)) ((ArrayList) tranatts.get(field)).add(value); } else { List values = new ArrayList(); values.add(value); tranatts.put(field, values); } } } // add the description, if necessary if (! ( tranatts.containsKey(Description) ) ) tranatts.put( Description, seqd.getDescription() ); } // write the last transcripts data, if present if (lastTran.intValue() > 0) seqWriter.writeSequences(lastTran); if (rows < batchLength) moreRows = false; // on the odd chance that the last resultset has equal rowcount with batchLength, an extra attempt will be made } } catch (IOException e) { throw new InvalidQueryException(e); } catch (SQLException e) { throw new SequenceException(e + ":"+sql); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/47e8a48fd57c1301cf94459ce61bcbde06c272f7/PeptideSeqQueryRunner.java/clean/src/java/org/ensembl/mart/explorer/PeptideSeqQueryRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 474, 1800, 13, 1216, 8370, 503, 16, 1962, 1138, 503, 288, 202, 202, 4021, 3291, 3833, 72, 273, 843, 18, 588, 4021, 3291, 5621, 565, 1250, 1898, 4300, 273, 638, 31, 368, 903, 7005, 629, 603, 1142, 2581, 434, 3063, 565, 509, 2581, 1685, 273, 374, 31, 377, 202, 202, 759, 1608, 358, 5055, 4259, 5596, 21195, 202, 202, 474, 843, 734, 1615, 273, 374, 31, 202, 202, 474, 6171, 1016, 273, 374, 31, 202, 202, 474, 19931, 1016, 273, 374, 31, 202, 202, 474, 10588, 273, 374, 31, 202, 202, 474, 13818, 273, 374, 31, 202, 202, 474, 8123, 1016, 273, 374, 31, 202, 202, 474, 16706, 1016, 273, 374, 31, 202, 202, 682, 2562, 734, 6836, 273, 394, 2407, 5621, 202, 202, 682, 1308, 8776, 273, 394, 2407, 5621, 540, 202, 202, 2271, 734, 273, 315, 27257, 67, 350, 14432, 202, 202, 5732, 1685, 273, 315, 2014, 67, 1937, 14432, 202, 202, 5732, 1638, 273, 315, 2014, 67, 409, 14432, 202, 202, 5417, 5103, 18, 1289, 2932, 27257, 67, 15021, 67, 350, 67, 90, 8863, 202, 202, 5417, 5103, 18, 1289, 2932, 11857, 67, 15021, 67, 350, 67, 90, 8863, 202, 202, 2725, 1138, 5621, 25083, 202, 1499, 8526, 1677, 273, 843, 18, 588, 2498, 5621, 202, 202, 780, 1847, 273, 446, 31, 565, 775, 288, 1082, 225, 25854, 3997, 1138, 2873, 1217, 273, 394, 25854, 3997, 1138, 12, 1487, 16, 843, 11272, 1082, 225, 514, 1847, 1969, 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, 918, 1836, 12, 474, 1800, 13, 1216, 8370, 503, 16, 1962, 1138, 503, 288, 202, 202, 4021, 3291, 3833, 72, 273, 843, 18, 588, 4021, 3291, 5621, 565, 1250, 1898, 4300, 273, 638, 31, 368, 903, 7005, 629, 603, 1142, 2581, 434, 3063, 565, 509, 2581, 1685, 273, 374, 31, 377, 202, 202, 759, 1608, 358, 5055, 4259, 5596, 21195, 202, 202, 474, 843, 734, 1615, 273, 374, 31, 202, 202, 474, 6171, 1016, 273, 374, 31, 202, 202, 474, 19931, 1016, 273, 374, 31, 202, 202, 474, 10588, 273, 374, 31, 202, 202, 474, 13818, 273, 374, 31, 202, 202, 474, 8123, 1016, 273, 374, 31, 202, 202, 474, 16706, 1016, 273, 374, 31, 202, 2 ]
if (title.length() == 0) return title;
if (oldtitle.length() == 0) return oldtitle; String title = oldtitle.toLowerCase();
public static String normalizeEnglish(String title) { // Corner cases if (title == null) return null; if (title.length() == 0) return title; // State variables // First find leading whitespace, if any int startAt = firstWhitespace(title); boolean modified = (startAt != 0); boolean usedStopWord = false; String stop = null; // Examine each stop word for (int i = 0; i < STOP_WORDS.length; i++) { stop = STOP_WORDS[i]; int stoplen = stop.length(); // The title must start with the stop word (skipping white space // and ignoring case). boolean found = title.toLowerCase().startsWith(stop.toLowerCase(), startAt) && // The title must be longer than whitespace plus the stop word title.length() >= (startAt + stoplen + 1) && // The stop word must be followed by white space Character.isWhitespace(title.charAt(startAt + stoplen)); if (found) { modified = true; usedStopWord = true; startAt += stoplen; // Strip leading whitespace again, if any int firstw = firstWhitespace(title, startAt); if (firstw != 0) startAt = firstw; // Only process a single stop word break; } } // If we didn't change anything, just return the title as-is if (!modified) return title; // If we just stripped white space, return a substring if (!usedStopWord) return title.substring(startAt); // Otherwise, return the substring with the stop word appended return new StringBuffer(title.substring(startAt)) .append(", ") .append(stop).toString(); }
47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/8db8baa075e5a32c35f11b76087f25334474badd/Browse.java/clean/dspace/src/org/dspace/browse/Browse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3883, 664, 13740, 12, 780, 2077, 13, 565, 288, 3639, 368, 9557, 1224, 6088, 3639, 309, 261, 2649, 422, 446, 13, 5411, 327, 446, 31, 3639, 309, 261, 2649, 18, 2469, 1435, 422, 374, 13, 5411, 327, 2077, 31, 3639, 368, 3287, 3152, 3639, 368, 5783, 1104, 7676, 7983, 16, 309, 1281, 3639, 509, 787, 861, 273, 1122, 9431, 12, 2649, 1769, 3639, 1250, 4358, 273, 261, 1937, 861, 480, 374, 1769, 3639, 1250, 1399, 4947, 3944, 273, 629, 31, 3639, 514, 2132, 273, 446, 31, 3639, 368, 1312, 301, 558, 1517, 2132, 2076, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 17815, 67, 23287, 18, 2469, 31, 277, 27245, 3639, 288, 5411, 2132, 273, 17815, 67, 23287, 63, 77, 15533, 5411, 509, 31139, 28907, 273, 2132, 18, 2469, 5621, 5411, 368, 282, 1021, 2077, 1297, 787, 598, 326, 2132, 2076, 261, 7457, 1382, 9578, 3476, 5411, 368, 377, 471, 14398, 648, 2934, 5411, 1250, 1392, 273, 2077, 18, 869, 5630, 7675, 17514, 1190, 12, 5681, 18, 869, 5630, 9334, 787, 861, 13, 597, 7734, 368, 282, 1021, 2077, 1297, 506, 7144, 2353, 7983, 8737, 326, 2132, 2076, 7734, 2077, 18, 2469, 1435, 1545, 261, 1937, 861, 397, 31139, 28907, 397, 404, 13, 597, 7734, 368, 282, 1021, 2132, 2076, 1297, 506, 10860, 635, 9578, 3476, 7734, 6577, 18, 291, 9431, 12, 2649, 18, 3001, 861, 12, 1937, 861, 397, 31139, 28907, 10019, 5411, 309, 261, 7015, 13, 5411, 288, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3883, 664, 13740, 12, 780, 2077, 13, 565, 288, 3639, 368, 9557, 1224, 6088, 3639, 309, 261, 2649, 422, 446, 13, 5411, 327, 446, 31, 3639, 309, 261, 2649, 18, 2469, 1435, 422, 374, 13, 5411, 327, 2077, 31, 3639, 368, 3287, 3152, 3639, 368, 5783, 1104, 7676, 7983, 16, 309, 1281, 3639, 509, 787, 861, 273, 1122, 9431, 12, 2649, 1769, 3639, 1250, 4358, 273, 261, 1937, 861, 480, 374, 1769, 3639, 1250, 1399, 4947, 3944, 273, 629, 31, 3639, 514, 2132, 273, 446, 31, 3639, 368, 1312, 301, 558, 1517, 2132, 2076, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 17815, 67, 23287, 18, 2469, 31, 277, 27245, 3639, 288, 5411, 2 ]
return true;
return Boolean.TRUE;
public static boolean validateDate(Object bean, ValidatorAction va, Field field, ActionMessages errors, HttpServletRequest request) { Date result = null; String value = null; if (isString(bean)) { value = (String) bean; } else { value = ValidatorUtils.getValueAsString(bean, field.getProperty()); } String datePattern = field.getVarValue("datePattern"); String datePatternStrict = field.getVarValue("datePatternStrict"); Locale locale = RequestUtils.getUserLocale(request, null); if (GenericValidator.isBlankOrNull(value)) { return true; } try { if (datePattern != null && datePattern.length() > 0) { result = GenericTypeValidator.formatDate(value, datePattern, false); } else if (datePatternStrict != null && datePatternStrict.length() > 0) { result = GenericTypeValidator.formatDate(value, datePatternStrict, true); } else { result = GenericTypeValidator.formatDate(value, locale); } } catch (Exception e) { log.error(e.getMessage(), e); } if (result == null) { errors.add(field.getKey(), Resources.getActionMessage(request, va, field)); } return result == null ? false : true; }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/5643e25dd644f2849fe9db78f1a75247d7bb68ea/FieldChecks.java/buggy/src/share/org/apache/struts/validator/FieldChecks.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 1954, 1626, 12, 921, 3931, 16, 4766, 565, 9150, 1803, 14162, 16, 2286, 652, 16, 4766, 565, 4382, 5058, 1334, 16, 4766, 565, 9984, 590, 13, 288, 3639, 2167, 563, 273, 446, 31, 3639, 514, 460, 273, 446, 31, 3639, 309, 261, 291, 780, 12, 14496, 3719, 288, 5411, 460, 273, 261, 780, 13, 3931, 31, 3639, 289, 469, 288, 5411, 460, 273, 9150, 1989, 18, 24805, 8092, 12, 14496, 16, 652, 18, 588, 1396, 10663, 3639, 289, 3639, 514, 1509, 3234, 273, 652, 18, 588, 1537, 620, 2932, 712, 3234, 8863, 3639, 514, 1509, 3234, 14809, 273, 652, 18, 588, 1537, 620, 2932, 712, 3234, 14809, 8863, 3639, 6458, 2573, 273, 1567, 1989, 18, 588, 1299, 3916, 12, 2293, 16, 446, 1769, 3639, 309, 261, 7014, 5126, 18, 291, 7796, 18936, 12, 1132, 3719, 288, 5411, 327, 3411, 18, 18724, 31, 3639, 289, 3639, 775, 288, 5411, 309, 261, 712, 3234, 480, 446, 597, 1509, 3234, 18, 2469, 1435, 405, 374, 13, 288, 7734, 563, 273, 7928, 559, 5126, 18, 2139, 1626, 12, 1132, 16, 1509, 3234, 16, 629, 1769, 5411, 289, 469, 309, 261, 712, 3234, 14809, 480, 446, 597, 1509, 3234, 14809, 18, 2469, 1435, 405, 374, 13, 288, 7734, 563, 273, 7928, 559, 5126, 18, 2139, 1626, 12, 1132, 16, 1509, 3234, 14809, 16, 638, 1769, 5411, 289, 469, 288, 7734, 563, 273, 7928, 559, 5126, 18, 2139, 1626, 12, 1132, 16, 2573, 1769, 5411, 289, 3639, 289, 1044, 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, 1250, 1954, 1626, 12, 921, 3931, 16, 4766, 565, 9150, 1803, 14162, 16, 2286, 652, 16, 4766, 565, 4382, 5058, 1334, 16, 4766, 565, 9984, 590, 13, 288, 3639, 2167, 563, 273, 446, 31, 3639, 514, 460, 273, 446, 31, 3639, 309, 261, 291, 780, 12, 14496, 3719, 288, 5411, 460, 273, 261, 780, 13, 3931, 31, 3639, 289, 469, 288, 5411, 460, 273, 9150, 1989, 18, 24805, 8092, 12, 14496, 16, 652, 18, 588, 1396, 10663, 3639, 289, 3639, 514, 1509, 3234, 273, 652, 18, 588, 1537, 620, 2932, 712, 3234, 8863, 3639, 514, 1509, 3234, 14809, 273, 652, 18, 588, 1537, 620, 2932, 712, 3234, 14809, 8863, 3639, 6458, 2573, 273, 1567, 1989, 18, 2 ]
public ItemPK(Integer uniqueId)
public ItemPK()
public ItemPK(Integer uniqueId) { id = uniqueId; }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/ItemPK.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/ItemPK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4342, 8784, 1435, 225, 288, 565, 612, 273, 22345, 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, 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, 282, 1071, 4342, 8784, 1435, 225, 288, 565, 612, 273, 22345, 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, -100, -100, -100, -100 ]
bufferOut.append(" .methodStyle\r\n");
bufferOut.append(" ." + methodStyle + "\r\n");
public String makeHTML(StringBuffer bufferIn, String sourceFileName) { int codeLineNumber = 0; boolean isNewLine = true; boolean isNewBlock = true; int identifierLength = 0; int qualifiedIdentifierLength = 0; int presentIndex = -1; int spaceLength = 0; int saveIndex = 0; char presentChar = 0; State presentState = State.TEXT; StringBuffer bufferOut = new StringBuffer(8192); if (!isCodeSnippet) { bufferOut.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"); if (isXHTML_1_1) { bufferOut.append("<!DOCTYPE html PUBLIC " + "\"-//W3C//DTD XHTML 1.1//EN\"\r\n"); bufferOut.append(" \"http://www.w3.org/TR/xhtml11/DTD/" + "xhtml11.dtd\">\r\n"); bufferOut.append("<html xmlns=\"http://www.w3.org/1999/xhtml\""+ " xml:lang=\"en\">\r\n"); } else { bufferOut.append("<!DOCTYPE html PUBLIC " + "\"-//W3C//DTD XHTML 1.0 Strict//EN\"\r\n"); bufferOut.append(" \"http://www.w3.org/TR/xhtml1/DTD/" + "xhtml1-strict.dtd\">\r\n"); bufferOut.append("<html xmlns=\"http://www.w3.org/1999/xhtml\""+ " xml:lang=\"en\" lang=\"en\">\r\n"); } bufferOut.append(" <head>\r\n"); bufferOut.append(" <title>\r\n"); bufferOut.append(" " + sourceFileName + "\r\n"); bufferOut.append(" </title>\r\n"); bufferOut.append(" <meta name=\"generator\"\r\n"); bufferOut.append(" content=\"Java2xhtml 0.9\" />\r\n"); if (hasInternalStyleSheet) { bufferOut.append(" <style type=\"text/css\">\r\n"); bufferOut.append(" <!-- /* <![CDATA[ */\r\n"); bufferOut.append(" .sourceCodeStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: #FFFFFF;\r\n"); if (hasAllBoldSourceCode) { bufferOut.append(" font-weight: bold;\r\n"); } bufferOut.append(" }\r\n"); bufferOut.append(" .lineNumberStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-weight: normal;\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); if (lineModulus > 0) { bufferOut.append(" .modulusLineNumberStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-weight: bold;\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: "); bufferOut.append("transparent;\r\n"); bufferOut.append(" }\r\n"); if (hasLineModulusDrawnLines) { bufferOut.append(" .modulusLineStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" text-decoration: "); bufferOut.append("line-through;\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: "); bufferOut.append("transparent;\r\n"); bufferOut.append(" }\r\n"); } if (hasLineModulusCodeBlocks) { bufferOut.append(" .modulusBlockPREStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" margin: 0em\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .modulusBlockStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #000000;\r\n"); bufferOut.append(" background-color: "); bufferOut.append("#CCCCCC;\r\n"); bufferOut.append(" }\r\n"); } } bufferOut.append(" .keywordStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #9900FF;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .methodStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #0000FF;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .variableStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #CC9933;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .singleLineCommentStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #CC3333;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .traditionalCommentStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #FF0000;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .javadocCommentStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #CC0033;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .javadocTagStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #0099CC;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .importNameStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #33CCCC;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .packageNameStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #339999;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .primitiveTypeStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #009900;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .nonPrimitiveTypeStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #009966;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .constructorStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #3300CC;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .constantStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #666666;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .doubleQuoteStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #996633;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" font-style: italic;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .singleQuoteStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #663333;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" font-style: oblique;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .numericalLiteralStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #333300;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" .primitiveLiteralStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" color: #006600;\r\n"); bufferOut.append(" background-color: transparent;\r\n"); bufferOut.append(" }\r\n"); if (hasFooterIcons) { bufferOut.append(" .iconStyle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" border-style: none;\r\n"); bufferOut.append(" }\r\n"); } if (hasTitle) { bufferOut.append(" #title\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" text-align: center;\r\n"); bufferOut.append(" font-size: xx-large;\r\n"); bufferOut.append(" }\r\n"); } if (hasLegend) { bufferOut.append(" #legendTitle\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" text-align: center;\r\n"); bufferOut.append(" font-size: x-large;\r\n"); bufferOut.append(" }\r\n"); bufferOut.append(" #legend\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-family: monospace;\r\n"); bufferOut.append(" font-size: large;\r\n"); bufferOut.append(" }\r\n"); } if (hasFooter) { bufferOut.append(" #footer\r\n"); bufferOut.append(" {\r\n"); bufferOut.append(" font-size: xx-small;\r\n"); bufferOut.append(" }\r\n"); } bufferOut.append(" /* ]]> */ -->\r\n"); bufferOut.append(" </style>\r\n"); } if (hasExternalStyleSheet) { bufferOut.append(" <link rel=\"stylesheet\" " + "type=\"text/css\" href=\"" + externalStyleSheetName + "\" />\r\n"); } bufferOut.append(" </head>\r\n"); bufferOut.append(" <body>\r\n"); } if (hasTitle) { bufferOut.append(" <div id=\"title\">\r\n"); bufferOut.append(" " + sourceFileName + "\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" <hr />\r\n"); } if (hasLegend) { bufferOut.append(" <div id=\"legendTitle\">\r\n"); bufferOut.append(" Legend\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" <div class=\"sourceCodeStyle\">\r\n"); bufferOut.append(" <div id=\"legend\">\r\n"); bufferOut.append(" <span class=\"keywordStyle\">"); bufferOut.append("keyword</span>\r\n"); bufferOut.append(" <span class=\"methodStyle\">"); bufferOut.append("method</span>\r\n"); bufferOut.append(" <span class=\"variableStyle\">variable" + "</span>\r\n"); bufferOut.append(" <span class=\"singleLineCommentStyle\">" + "singleLineComment</span>\r\n"); bufferOut.append(" <span class=\"traditionalCommentStyle\">" + "traditionalComment</span>\r\n"); bufferOut.append(" <span class=\"javadocCommentStyle\">" + "javadocComment</span>\r\n"); bufferOut.append(" <span class=\"javadocTagStyle\">javadocTag" + "</span>\r\n"); bufferOut.append(" <span class=\"importNameStyle\">" + "importName</span>\r\n"); bufferOut.append(" <span class=\"packageNameStyle\">" + "packageName</span>\r\n"); bufferOut.append(" <span class=\"primitiveTypeStyle\">" + "primitiveType</span>\r\n"); bufferOut.append(" <span class=\"nonPrimitiveTypeStyle\">" + "nonPrimitiveType</span>\r\n"); bufferOut.append(" <span class=\"constructorStyle\">" + "constructor</span>\r\n"); bufferOut.append(" <span class=\"constantStyle\">" + "constant</span>\r\n"); bufferOut.append(" <span class=\"doubleQuoteStyle\">" + "doubleQuote</span>\r\n"); bufferOut.append(" <span class=\"singleQuoteStyle\">" + "singleQuote</span>\r\n"); bufferOut.append(" <span class=\"numericalLiteralStyle\">" + "numericalLiteral</span>\r\n"); bufferOut.append(" <span class=\"primitiveLiteralStyle\">" + "primitiveLiteral</span>\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append(" <hr />\r\n"); } bufferOut.append(" <div class=\"sourceCodeStyle\">\r\n"); if (hasLineModulusCodeBlocks) { bufferOut.append("<pre class=\"modulusBlockPREStyle\">\r\n"); } else { bufferOut.append("<pre>\r\n"); } // process the input Java code Stringbuffer // subtract 2 from the bufferIn.length() to get EOF marker while (presentIndex++ < (bufferIn.length() - 2)) { for (int i = 0; i < extraIndentation; i++) { bufferOut.append(" "); } if ((hasLineNumbers || hasLineModulusCodeBlocks) && isNewLine) { // add line numbers if desired // line numbers are 1 - 9999 then rotate line numbers codeLineNumber = (++codeLineNumber)%10000; if ((lineModulus > 0) && hasLineModulusCodeBlocks && (codeLineNumber%lineModulus == 1)) { if (isNewBlock) { if ((State.TRADITIONAL_COMMENT == presentState) || (State.JAVADOC == presentState)) { bufferOut.insert((bufferOut.length() - ("\r\n").length()), "</span>"); } bufferOut.append("</pre>\r\n"); bufferOut.append(" <div class="); bufferOut.append("\"modulusBlockStyle\">"); bufferOut.append("\r\n<pre class=\""); bufferOut.append("modulusBlockPREStyle\">\r\n"); if (State.TRADITIONAL_COMMENT == presentState) { bufferOut.append("<span class=" + "\"traditionalCommentStyle\">"); } if (State.JAVADOC == presentState) { bufferOut.append("<span class=" + "\"javadocCommentStyle\">"); } } isNewBlock = !isNewBlock; } // make straight columns of line numbers if (codeLineNumber < 1000) { bufferOut.append(" "); } if (codeLineNumber < 100) { bufferOut.append(" "); } if (codeLineNumber < 10) { bufferOut.append(" "); } bufferOut.append("<a name=\"line."); bufferOut.append(codeLineNumber); bufferOut.append("\"/>"); if (hasLineNumbers) { if ((lineModulus > 0) && (codeLineNumber%lineModulus == 0)) { bufferOut.append("<span class=" + "\"modulusLineNumberStyle\">"); bufferOut.append(codeLineNumber); bufferOut.append(": </span>"); if (hasLineModulusDrawnLines) { // compute spaceLength so a line can be drawn while ((presentIndex != (bufferIn.length() - 1)) && ((Character.isSpaceChar( bufferIn.charAt(presentIndex))) || (bufferIn.charAt(presentIndex) == '\t'))) { // for each tab, insert tabSize spaces if (bufferIn.charAt(presentIndex) == '\t') { for (int i = 0; i < tabSize; i++) { bufferIn.insert(presentIndex + 1, " "); } presentIndex++; continue; } if (' ' == bufferIn.charAt(presentIndex)) { // read a space so place a space bufferOut.append(" "); spaceLength += (" ").length(); } else { // a white space character was read bufferOut.append(bufferIn.charAt( presentIndex)); ++spaceLength; } presentIndex++; } // check if line is empty // (no printable characters on line) if ((presentIndex == (bufferIn.length() - 1)) || (Character.isWhitespace(bufferIn.charAt( presentIndex)))) { spaceLength = 0; } // draw the line if (spaceLength > 1) { bufferOut.insert((bufferOut.length() - spaceLength), "<span class=" + "\"modulusLineStyle\">"); bufferOut.insert((bufferOut.length() - (" ").length()), "</span>"); } spaceLength = 0; } } else { // line numbers are in lineNumberColor bufferOut.append("<span class=\"lineNumberStyle\">"); bufferOut.append(codeLineNumber); bufferOut.append(":</span> "); } } isNewLine = false; } // a state machine presentChar = bufferIn.charAt(presentIndex); if ((Character.isJavaIdentifierPart(presentChar)) || ((State.IMPORT_NAME == presentState) && (presentChar == '*'))) { // this is an identifier bufferOut.append(presentChar); identifierLength++; continue; // keep adding characters until identifier is done } if (identifierLength > 0) { // identifier qualifiedIdentifierLength = qualifiedIdentifierLength + identifierLength; if (bufferIn.charAt(presentIndex) == '.') { // qualified identifier bufferOut.append(presentChar); qualifiedIdentifierLength++; identifierLength = 0; continue; // keep adding characters to qualified identifier } String identifier = bufferOut.substring(bufferOut.length() - identifierLength); if ((State.PARAM_VARIABLE == presentState)) { // any identifier after a param in a javadoc is assumed to // be a variable bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"variableStyle\">"); bufferOut.append("</span>"); presentState = State.JAVADOC; } else if (State.JAVADOC == presentState) { // in javadoc state if ((javadocTagCollection.contains(identifier)) && (bufferIn.charAt(presentIndex - (identifierLength + 1)) == '@')) { // identifier is a javadocTag bufferOut.insert(bufferOut.length() - identifierLength, "<span class=\"javadocTagStyle\">"); bufferOut.append("</span>"); if (("param").equals(identifier)) { // any identifier after a param is assumed to // be a variable, get into a state to do this presentState = State.PARAM_VARIABLE; } } } else if (State.IMPORT_NAME == presentState) { // import identifier bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"importNameStyle\">"); bufferOut.append("</span>"); presentState = State.TEXT; } else if (State.PACKAGE_NAME == presentState) { // package identifier bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"packageNameStyle\">"); bufferOut.append("</span>"); presentState = State.TEXT; } else if (State.TEXT == presentState) { if (keywordCollection.contains(identifier)) { // identifier is a keyword bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"keywordStyle\">"); bufferOut.append("</span>"); if (("import").equals(identifier)) { // anything after an import in text mode must be // an import name, so enter state to process this presentState = State.IMPORT_NAME; } else if (("package").equals(identifier)) { // anything after an package in text mode must be // an package name, so enter state to process this presentState = State.PACKAGE_NAME; } } else if (primitiveTypeCollection.contains(identifier)) { // identifier is a primitive type bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"primitiveTypeStyle\">"); bufferOut.append("</span>"); } else if ((identifier.equals(identifier.toUpperCase())) && (!(Character.isDigit(identifier.charAt(0))))) { // identifier is a constant bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"constantStyle\">"); bufferOut.append("</span>"); } else if (Character.isUpperCase(identifier.charAt(0))) { // identifier is a constructor or non-primitive type // eat white space saveIndex = presentIndex; while (Character.isWhitespace( bufferIn.charAt(saveIndex++))) { //empty body } if (bufferIn.charAt(--saveIndex) == '(') { // identifier is a constructor bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=" + "\"constructorStyle\">"); bufferOut.append("</span>"); } else { // identifier is a non-primitive type bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=" + "\"nonPrimitiveTypeStyle\">"); bufferOut.append("</span>"); } } else if (!(Character.isDigit(identifier.charAt(0)) || primitiveLiteralCollection.contains(identifier))) { // identifier is a method or a variable // eat white space saveIndex = presentIndex; while (Character.isWhitespace( bufferIn.charAt(saveIndex++))) { // empty body } --saveIndex; // identifier is a method if (bufferIn.charAt(saveIndex) == '(') { bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"methodStyle\">"); bufferOut.append("</span>"); } else if (bufferIn.charAt(saveIndex) == ',') { // comma seperated variables bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"variableStyle\">"); bufferOut.append("</span>"); } else { // a variable // take care of cases such as array[index].variable if (bufferIn.charAt(presentIndex - (qualifiedIdentifierLength + 1)) == '.') { qualifiedIdentifierLength++; } bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=\"variableStyle\">"); bufferOut.append("</span>"); } } else { if (primitiveLiteralCollection.contains(identifier)) { // primitiveLiteral (boolean or null) bufferOut.insert(bufferOut.length() - identifierLength, "<span class=" + "\"primitiveLiteralStyle\">"); bufferOut.append("</span>"); } // a numerical literal else { if (((presentIndex - (qualifiedIdentifierLength + 1)) > 0) && (bufferIn.charAt(presentIndex - (qualifiedIdentifierLength + 1)) == '.')) { qualifiedIdentifierLength++; } bufferOut.insert(bufferOut.length() - qualifiedIdentifierLength, "<span class=" + "\"numericalLiteralStyle\">"); bufferOut.append("</span>"); } } } qualifiedIdentifierLength = 0; identifierLength = 0; } // process characters NOT in identifiers switch (presentChar) { case '&': //ampersand bufferOut.append("&amp;"); // HTMLify character break; case '<': // less than sign bufferOut.append("&lt;"); // HTMLify character break; case '>': // greater than sign bufferOut.append("&gt;"); // HTMLify character break; case '\"': // double quote bufferOut.append("&quot;"); // HTMLify character if (State.TEXT == presentState) { presentState = State.DOUBLE_QUOTE; bufferOut.insert(bufferOut.length()-("&quot;").length(), "<span class=\"doubleQuoteStyle\">"); } else if (State.DOUBLE_QUOTE == presentState) { presentState = State.TEXT; bufferOut.append("</span>"); } break; case '\'': // single quote bufferOut.append("\'"); if (State.TEXT == presentState) { presentState = State.SINGLE_QUOTE; bufferOut.insert(bufferOut.length() - ("\'").length(), "<span class=\"singleQuoteStyle\">"); } else if (State.SINGLE_QUOTE == presentState) { presentState = State.TEXT; bufferOut.append("</span>"); } break; case '\\': // backslash bufferOut.append("\\"); if ((State.DOUBLE_QUOTE == presentState) || (State.SINGLE_QUOTE == presentState)) { // treat as a character escape sequence bufferOut.append(bufferIn.charAt(++presentIndex)); } break; case '\t': // tab // replace tabs with tabsize number of spaces for (int i = 0; i < tabSize; i++) { bufferOut.append(' '); } break; case '*': // star bufferOut.append("*"); if ((State.TEXT == presentState) && (bufferIn.charAt(presentIndex - 1) == '/')) { if (((bufferIn.length() - 1) > presentIndex) && (bufferIn.charAt(presentIndex + 1) == '*')) { presentState = State.JAVADOC; bufferOut.insert(bufferOut.length() - ("/*").length(), "<span class=" + "\"javadocCommentStyle\">"); } else { presentState = State.TRADITIONAL_COMMENT; bufferOut.insert(bufferOut.length() - ("/*").length(), "<span class=" + "\"traditionalCommentStyle\">"); } } break; case '/': // foward slash bufferOut.append("/"); if (((State.TRADITIONAL_COMMENT == presentState) || (State.JAVADOC == presentState)) && (bufferIn.charAt(presentIndex - 1) == '*')) { bufferOut.append("</span>"); presentState = State.TEXT; } if ((State.TEXT == presentState) && (presentIndex > 0) && (bufferIn.charAt(presentIndex - 1) == '/')) { bufferOut.insert(bufferOut.length() - ("//").length(), "<span class=" + "\"singleLineCommentStyle\">"); presentState = State.LINE_COMMENT; } break; case '\r': // carriage return // fall through case '\n': // line feed // all HTML lines end in \r\n if ((bufferIn.charAt(presentIndex) == '\r') && ((bufferIn.length() - 1) > presentIndex) && (bufferIn.charAt(presentIndex + 1) == '\n')) { ++presentIndex; } // end single line comments if (State.LINE_COMMENT == presentState) { bufferOut.append("</span>"); presentState = State.TEXT; } // end of block if ((lineModulus > 0) && hasLineModulusCodeBlocks && ((codeLineNumber%lineModulus == 0) && !isNewBlock)) { // end multi-line spanning states if ((State.TRADITIONAL_COMMENT == presentState) || (State.JAVADOC == presentState)) { bufferOut.append("</span>"); } bufferOut.append("\r\n"); bufferOut.append("</pre>\r\n"); bufferOut.append(" </div>\r\n"); bufferOut.append("<pre class=\""); bufferOut.append("modulusBlockPREStyle\">\r\n"); // restart multi-line spanning states if (State.TRADITIONAL_COMMENT == presentState) { bufferOut.append("<span class=" + "\"traditionalCommentStyle\">"); } if (State.JAVADOC == presentState) { bufferOut.append("<span class=" + "\"javadocCommentStyle\">"); } } else { // div automatically starts new line bufferOut.append("\r\n"); } isNewLine = true; break; case 0: // nul character if ((State.LINE_COMMENT == presentState) && (presentIndex == (bufferIn.length() - 1))) { bufferOut.append("</span>"); } break; default: // everything else bufferOut.append(presentChar); } qualifiedIdentifierLength = 0; } if (presentState == State.LINE_COMMENT) { bufferOut.append("</span>\r\n"); } bufferOut.append("</pre>\r\n"); // end block early if no more source code if ((lineModulus > 0) && hasLineModulusCodeBlocks && !isNewBlock && (codeLineNumber%lineModulus != 0)) { bufferOut.append(" </div>\r\n"); } bufferOut.append(" </div>\r\n"); // end div of sourceCodeStyle // if code snippet then don't add ending tags of xhtml page if (!isCodeSnippet) { // if footer mode then add a footer if (hasFooter) { bufferOut.append(" <hr />\r\n"); bufferOut.append(" <div id=\"footer\">\r\n"); if (hasFooterIcons) { if (hasFooterDate) { bufferOut.append(" <script type=\"text/javaScript\""); bufferOut.append(">\r\n"); bufferOut.append(" <!-- // <![CDATA[\r\n"); bufferOut.append(" document.write(\"Document last"); bufferOut.append(" modified on \""); bufferOut.append(" + document.lastModified + "); bufferOut.append("\"<br />\");\r\n"); bufferOut.append(" // ]]> -->\r\n"); bufferOut.append(" </script>\r\n"); } bufferOut.append(" <a href=\""); bufferOut.append("http://validator.w3.org/check/referer"); bufferOut.append("\">\r\n"); bufferOut.append(" <img class=\"iconStyle\" src=\""); bufferOut.append("http://www.w3.org/Icons/"); if (isXHTML_1_1) { bufferOut.append("valid-xhtml11\"\r\n"); bufferOut.append(" alt=\"Valid XHTML 1.1!\""); } else { bufferOut.append("valid-xhtml10\"\r\n"); bufferOut.append(" alt=\"Valid XHTML 1.0!\""); } bufferOut.append(" height=\"31\" "); bufferOut.append("width=\"88\" />\r\n"); bufferOut.append(" </a>\r\n"); bufferOut.append(" &#160;\r\n"); bufferOut.append(" <a href=\""); bufferOut.append("http://jigsaw.w3.org"); bufferOut.append("/css-validator/check/referer"); bufferOut.append("\">\r\n"); bufferOut.append(" <img class=\"iconStyle\" src=\""); bufferOut.append("http://jigsaw.w3.org/"); bufferOut.append("css-validator/images/vcss"); bufferOut.append("\"\r\n"); bufferOut.append(" alt=\"Valid CSS!\""); bufferOut.append(" height=\"31\" width=\"88\" />\r\n"); bufferOut.append(" </a>\r\n"); } else { bufferOut.append(" This is a valid\r\n"); bufferOut.append(" <a href=\"http://"); bufferOut.append("validator.w3.org/check/referer"); if (isXHTML_1_1) { bufferOut.append("\">XHTML 1.1</a>\r\n"); } else { bufferOut.append("\">XHTML 1.0</a>\r\n"); } bufferOut.append(" with\r\n"); bufferOut.append(" <a href=\"http://"); bufferOut.append("jigsaw.w3.org"); bufferOut.append("/css-validator/check/referer"); bufferOut.append("\">CSS</a>\r\n"); bufferOut.append(" document \r\n"); if (hasFooterDate) { bufferOut.append(" <script type=\"text/javaScript\""); bufferOut.append(">\r\n"); bufferOut.append(" <!-- // <![CDATA[\r\n"); bufferOut.append(" document.write(\"last modified"); bufferOut.append(" on \" + document.lastModified);"); bufferOut.append("\r\n"); bufferOut.append(" // ]]> -->\r\n"); bufferOut.append(" </script>\r\n"); } } bufferOut.append(" </div>\r\n"); } bufferOut.append(" </body>\r\n"); bufferOut.append("</html>\r\n"); } return bufferOut.toString(); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/8ba362c9ba53284a2fd251ad596b8e586a877afc/Java2xhtml.java/clean/tools/gjdoc/javalib/gnu/classpath/tools/java2xhtml/Java2xhtml.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1221, 4870, 12, 780, 1892, 1613, 382, 16, 514, 1084, 4771, 13, 565, 288, 3639, 509, 981, 31063, 273, 374, 31, 3639, 1250, 10783, 1670, 273, 638, 31, 3639, 1250, 10783, 1768, 273, 638, 31, 3639, 509, 2756, 1782, 273, 374, 31, 3639, 509, 9348, 3004, 1782, 273, 374, 31, 3639, 509, 3430, 1016, 273, 300, 21, 31, 3639, 509, 3476, 1782, 273, 374, 31, 3639, 509, 1923, 1016, 273, 374, 31, 3639, 1149, 3430, 2156, 273, 374, 31, 3639, 3287, 3430, 1119, 273, 3287, 18, 5151, 31, 3639, 6674, 1613, 1182, 273, 394, 6674, 12, 28, 15561, 1769, 3639, 309, 16051, 291, 1085, 19614, 13, 3639, 288, 5411, 1613, 1182, 18, 6923, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 2412, 35, 5333, 86, 64, 82, 8863, 2398, 309, 261, 291, 60, 4870, 67, 21, 67, 21, 13, 5411, 288, 7734, 1613, 1182, 18, 6923, 2932, 5586, 29824, 1729, 17187, 315, 397, 4766, 7023, 17, 759, 59, 23, 39, 759, 25728, 30551, 404, 18, 21, 759, 1157, 31670, 86, 64, 82, 8863, 7734, 1613, 1182, 18, 6923, 2932, 565, 1239, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 4349, 19, 26341, 2499, 19, 25728, 4898, 397, 4766, 315, 26341, 2499, 18, 31834, 28219, 86, 64, 82, 8863, 7734, 1613, 1182, 18, 6923, 2932, 32, 2620, 12302, 5189, 2505, 2207, 5591, 18, 91, 23, 18, 3341, 19, 21, 11984, 19, 26341, 8530, 15, 4766, 315, 2025, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1221, 4870, 12, 780, 1892, 1613, 382, 16, 514, 1084, 4771, 13, 565, 288, 3639, 509, 981, 31063, 273, 374, 31, 3639, 1250, 10783, 1670, 273, 638, 31, 3639, 1250, 10783, 1768, 273, 638, 31, 3639, 509, 2756, 1782, 273, 374, 31, 3639, 509, 9348, 3004, 1782, 273, 374, 31, 3639, 509, 3430, 1016, 273, 300, 21, 31, 3639, 509, 3476, 1782, 273, 374, 31, 3639, 509, 1923, 1016, 273, 374, 31, 3639, 1149, 3430, 2156, 273, 374, 31, 3639, 3287, 3430, 1119, 273, 3287, 18, 5151, 31, 3639, 6674, 1613, 1182, 273, 394, 6674, 12, 28, 15561, 1769, 3639, 309, 16051, 291, 1085, 19614, 13, 3639, 288, 5411, 1613, 1182, 18, 6923, 2932, 12880, 2902, 2 ]
Log.write("space failure: "); Log.writeln(object);
Log.write("space failure: "); Log.writeln(object);
public boolean isLive(ObjectReference object) throws InlinePragma { Space space = Space.getSpaceForObject(object); if (space == Plan.loSpace) return Plan.loSpace.isLive(object); else if (space == null) { if (Assert.VERIFY_ASSERTIONS) { Log.write("space failure: "); Log.writeln(object); } } return true; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/TraceLocal.java/buggy/MMTk/src/org/mmtk/plan/TraceLocal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 12328, 12, 22101, 733, 13, 1216, 16355, 2050, 9454, 288, 565, 14059, 3476, 273, 14059, 18, 588, 3819, 1290, 921, 12, 1612, 1769, 565, 309, 261, 2981, 422, 12540, 18, 383, 3819, 13, 1377, 327, 12540, 18, 383, 3819, 18, 291, 12328, 12, 1612, 1769, 565, 469, 309, 261, 2981, 422, 446, 13, 288, 1377, 309, 261, 8213, 18, 23756, 67, 8423, 11539, 1146, 55, 13, 288, 3639, 1827, 18, 2626, 2932, 2981, 5166, 30, 315, 1769, 1827, 18, 5363, 292, 82, 12, 1612, 1769, 1377, 289, 565, 289, 565, 327, 638, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 1250, 353, 12328, 12, 22101, 733, 13, 1216, 16355, 2050, 9454, 288, 565, 14059, 3476, 273, 14059, 18, 588, 3819, 1290, 921, 12, 1612, 1769, 565, 309, 261, 2981, 422, 12540, 18, 383, 3819, 13, 1377, 327, 12540, 18, 383, 3819, 18, 291, 12328, 12, 1612, 1769, 565, 469, 309, 261, 2981, 422, 446, 13, 288, 1377, 309, 261, 8213, 18, 23756, 67, 8423, 11539, 1146, 55, 13, 288, 3639, 1827, 18, 2626, 2932, 2981, 5166, 30, 315, 1769, 1827, 18, 5363, 292, 82, 12, 1612, 1769, 1377, 289, 565, 289, 565, 327, 638, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int index = BasicListUI.this.locationToIndex(list, click);
int index = locationToIndex(list, click);
public void mouseClicked(MouseEvent event) { Point click = event.getPoint(); int index = BasicListUI.this.locationToIndex(list, click); if (index == -1) return; if (event.isShiftDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) BasicListUI.this.list.setSelectedIndex(index); else if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_INTERVAL_SELECTION) // COMPAT: the IBM VM is compatible with the following line of code. // However, compliance with Sun's VM would correspond to replacing // getAnchorSelectionIndex() with getLeadSelectionIndex().This is // both unnatural and contradictory to the way they handle other // similar UI interactions. BasicListUI.this.list.setSelectionInterval (BasicListUI.this.list.getAnchorSelectionIndex(), index); else // COMPAT: both Sun and IBM are compatible instead with: // BasicListUI.this.list.setSelectionInterval // (BasicListUI.this.list.getLeadSelectionIndex(),index); // Note that for IBM this is contradictory to what they did in // the above situation for SINGLE_INTERVAL_SELECTION. // The most natural thing to do is the following: BasicListUI.this.list.getSelectionModel(). setLeadSelectionIndex(index); } else if (event.isControlDown()) { if (BasicListUI.this.list.getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) BasicListUI.this.list.setSelectedIndex(index); else if (BasicListUI.this.list.isSelectedIndex(index)) BasicListUI.this.list.removeSelectionInterval(index,index); else BasicListUI.this.list.addSelectionInterval(index,index); } else BasicListUI.this.list.setSelectedIndex(index); BasicListUI.this.list.ensureIndexIsVisible (BasicListUI.this.list.getLeadSelectionIndex()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 27633, 12, 9186, 1133, 871, 13, 565, 288, 1377, 4686, 4682, 273, 871, 18, 588, 2148, 5621, 1377, 509, 770, 273, 2117, 19418, 12, 1098, 16, 4682, 1769, 1377, 309, 261, 1615, 422, 300, 21, 13, 3639, 327, 31, 1377, 309, 261, 2575, 18, 291, 10544, 4164, 10756, 3639, 288, 1850, 309, 261, 8252, 682, 5370, 18, 2211, 18, 1098, 18, 588, 6233, 2309, 1435, 422, 9079, 987, 6233, 1488, 18, 20184, 67, 1090, 15445, 13, 5411, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 542, 7416, 1016, 12, 1615, 1769, 1850, 469, 309, 261, 8252, 682, 5370, 18, 2211, 18, 1098, 18, 588, 6233, 2309, 1435, 422, 10792, 987, 6233, 1488, 18, 20184, 67, 16435, 67, 1090, 15445, 13, 5411, 368, 5423, 8592, 30, 326, 23450, 49, 8251, 353, 7318, 598, 326, 3751, 980, 434, 981, 18, 5411, 368, 10724, 16, 29443, 598, 31608, 1807, 8251, 4102, 4325, 358, 13993, 2398, 368, 336, 11605, 6233, 1016, 1435, 598, 9014, 684, 6233, 1016, 7675, 2503, 353, 2398, 368, 3937, 16209, 270, 3766, 471, 16252, 361, 933, 630, 358, 326, 4031, 2898, 1640, 1308, 2398, 368, 7281, 6484, 23877, 18, 5411, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 542, 6233, 4006, 2868, 261, 8252, 682, 5370, 18, 2211, 18, 1098, 18, 588, 11605, 6233, 1016, 9334, 770, 1769, 1850, 469, 5411, 368, 5423, 8592, 30, 3937, 31608, 471, 23450, 49, 854, 7318, 3560, 598, 30, 5411, 368, 7651, 682, 5370, 18, 2211, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 27633, 12, 9186, 1133, 871, 13, 565, 288, 1377, 4686, 4682, 273, 871, 18, 588, 2148, 5621, 1377, 509, 770, 273, 2117, 19418, 12, 1098, 16, 4682, 1769, 1377, 309, 261, 1615, 422, 300, 21, 13, 3639, 327, 31, 1377, 309, 261, 2575, 18, 291, 10544, 4164, 10756, 3639, 288, 1850, 309, 261, 8252, 682, 5370, 18, 2211, 18, 1098, 18, 588, 6233, 2309, 1435, 422, 9079, 987, 6233, 1488, 18, 20184, 67, 1090, 15445, 13, 5411, 7651, 682, 5370, 18, 2211, 18, 1098, 18, 542, 7416, 1016, 12, 1615, 1769, 1850, 469, 309, 261, 8252, 682, 5370, 18, 2211, 18, 1098, 18, 588, 6233, 2309, 1435, 422, 10792, 987, 6233, 1488, 18, 20184, 67, 2 ]
return eBasicSetContainer( null, featureID, msgs );
return super.eInverseRemove( otherEnd, featureID, msgs );
public NotificationChain eInverseRemove( InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs ) { if ( featureID >= 0 ) { switch ( eDerivedStructuralFeatureID( featureID, baseClass ) ) { case ComponentPackage.AXIS__TITLE : return basicSetTitle( null, msgs ); case ComponentPackage.AXIS__SUB_TITLE : return basicSetSubTitle( null, msgs ); case ComponentPackage.AXIS__ASSOCIATED_AXES : return ( (InternalEList) getAssociatedAxes( ) ).basicRemove( otherEnd, msgs ); case ComponentPackage.AXIS__ANCILLARY_AXES : return ( (InternalEList) getAncillaryAxes( ) ).basicRemove( otherEnd, msgs ); case ComponentPackage.AXIS__SERIES_DEFINITIONS : return ( (InternalEList) getSeriesDefinitions( ) ).basicRemove( otherEnd, msgs ); case ComponentPackage.AXIS__LINE_ATTRIBUTES : return basicSetLineAttributes( null, msgs ); case ComponentPackage.AXIS__LABEL : return basicSetLabel( null, msgs ); case ComponentPackage.AXIS__FORMAT_SPECIFIER : return basicSetFormatSpecifier( null, msgs ); case ComponentPackage.AXIS__MARKER_LINES : return ( (InternalEList) getMarkerLines( ) ).basicRemove( otherEnd, msgs ); case ComponentPackage.AXIS__MARKER_RANGES : return ( (InternalEList) getMarkerRanges( ) ).basicRemove( otherEnd, msgs ); case ComponentPackage.AXIS__MAJOR_GRID : return basicSetMajorGrid( null, msgs ); case ComponentPackage.AXIS__MINOR_GRID : return basicSetMinorGrid( null, msgs ); case ComponentPackage.AXIS__SCALE : return basicSetScale( null, msgs ); case ComponentPackage.AXIS__ORIGIN : return basicSetOrigin( null, msgs ); default : return eDynamicInverseRemove( otherEnd, featureID, baseClass, msgs ); } } return eBasicSetContainer( null, featureID, msgs ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/AxisImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/AxisImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 27050, 425, 16376, 3288, 12, 3186, 8029, 1308, 1638, 16, 1082, 202, 474, 6966, 16, 1659, 23955, 16, 27050, 8733, 262, 202, 95, 202, 202, 430, 261, 6966, 1545, 374, 262, 202, 202, 95, 1082, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 6966, 16, 23955, 262, 262, 1082, 202, 95, 9506, 202, 3593, 5435, 2261, 18, 25614, 972, 14123, 294, 6862, 202, 2463, 5337, 694, 4247, 12, 446, 16, 8733, 11272, 9506, 202, 3593, 5435, 2261, 18, 25614, 972, 8362, 67, 14123, 294, 6862, 202, 2463, 5337, 694, 1676, 4247, 12, 446, 16, 8733, 11272, 9506, 202, 3593, 5435, 2261, 18, 25614, 972, 8423, 27248, 6344, 67, 2501, 3991, 294, 6862, 202, 2463, 261, 261, 3061, 41, 682, 13, 336, 19233, 26494, 12, 262, 262, 18, 13240, 3288, 12, 1308, 1638, 16, 6862, 1082, 202, 27439, 11272, 9506, 202, 3593, 5435, 2261, 18, 25614, 972, 1258, 39, 15125, 6043, 67, 2501, 3991, 294, 6862, 202, 2463, 261, 261, 3061, 41, 682, 13, 336, 979, 71, 737, 814, 26494, 12, 262, 262, 18, 13240, 3288, 12, 1308, 1638, 16, 6862, 1082, 202, 27439, 11272, 9506, 202, 3593, 5435, 2261, 18, 25614, 972, 2123, 8805, 67, 25312, 55, 294, 6862, 202, 2463, 261, 261, 3061, 41, 682, 13, 336, 6485, 7130, 12, 262, 262, 18, 13240, 3288, 12, 1308, 1638, 16, 6862, 1082, 202, 27439, 11272, 9506, 202, 3593, 5435, 2261, 18, 25614, 972, 5997, 67, 22308, 294, 6862, 202, 2463, 5337, 694, 1670, 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, 27050, 425, 16376, 3288, 12, 3186, 8029, 1308, 1638, 16, 1082, 202, 474, 6966, 16, 1659, 23955, 16, 27050, 8733, 262, 202, 95, 202, 202, 430, 261, 6966, 1545, 374, 262, 202, 202, 95, 1082, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 6966, 16, 23955, 262, 262, 1082, 202, 95, 9506, 202, 3593, 5435, 2261, 18, 25614, 972, 14123, 294, 6862, 202, 2463, 5337, 694, 4247, 12, 446, 16, 8733, 11272, 9506, 202, 3593, 5435, 2261, 18, 25614, 972, 8362, 67, 14123, 294, 6862, 202, 2463, 5337, 694, 1676, 4247, 12, 446, 16, 8733, 11272, 9506, 202, 3593, 5435, 2261, 18, 25614, 972, 8423, 27248, 6344, 67, 2501, 3991, 294, 6862, 202, 2463, 261, 2 ]
private void init( String path ) {
private void init( Map namespaces, String path ) {
private void init( String path ) { StringTokenizer tokenizer = new StringTokenizer(path, "/"); FastStringBuffer token = new FastStringBuffer(); String next; int pos = 0; char ch = 0; final int pathLen = path.length(); while ( pos < pathLen ) { ch = path.charAt(pos); switch ( ch ) { case '/': next = token.toString(); token.reset(); if ( next.length( ) > 0 ) addComponent( next ); if ( path.charAt( ++pos ) == '/' ) addComponent( WILDCARD ); break; default: token.append(ch); pos++; } } if ( token.length() > 0 ) addComponent( token.toString() ); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/baaf477804cc6e1b7d5b8a99598e4e2e0bd8c2f4/NodePath.java/clean/src/org/exist/storage/NodePath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 12, 1635, 7728, 16, 514, 589, 262, 288, 3639, 16370, 10123, 273, 394, 16370, 12, 803, 16, 4016, 1769, 3639, 9545, 780, 1892, 1147, 273, 394, 9545, 780, 1892, 5621, 3639, 514, 1024, 31, 3639, 509, 949, 273, 374, 31, 202, 202, 3001, 462, 273, 374, 31, 202, 202, 6385, 509, 589, 2891, 273, 589, 18, 2469, 5621, 3639, 1323, 261, 949, 411, 589, 2891, 262, 288, 1082, 202, 343, 273, 589, 18, 3001, 861, 12, 917, 1769, 5411, 1620, 261, 462, 262, 288, 5411, 648, 2023, 30, 7734, 1024, 273, 1147, 18, 10492, 5621, 7734, 1147, 18, 6208, 5621, 7734, 309, 261, 1024, 18, 2469, 12, 225, 262, 405, 374, 262, 10792, 15218, 12, 1024, 11272, 7734, 309, 261, 589, 18, 3001, 861, 12, 965, 917, 262, 422, 2023, 262, 10792, 15218, 12, 678, 29067, 11272, 7734, 898, 31, 5411, 805, 30, 7734, 1147, 18, 6923, 12, 343, 1769, 7734, 949, 9904, 31, 5411, 289, 3639, 289, 3639, 309, 261, 1147, 18, 2469, 1435, 405, 374, 262, 5411, 15218, 12, 1147, 18, 10492, 1435, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 12, 1635, 7728, 16, 514, 589, 262, 288, 3639, 16370, 10123, 273, 394, 16370, 12, 803, 16, 4016, 1769, 3639, 9545, 780, 1892, 1147, 273, 394, 9545, 780, 1892, 5621, 3639, 514, 1024, 31, 3639, 509, 949, 273, 374, 31, 202, 202, 3001, 462, 273, 374, 31, 202, 202, 6385, 509, 589, 2891, 273, 589, 18, 2469, 5621, 3639, 1323, 261, 949, 411, 589, 2891, 262, 288, 1082, 202, 343, 273, 589, 18, 3001, 861, 12, 917, 1769, 5411, 1620, 261, 462, 262, 288, 5411, 648, 2023, 30, 7734, 1024, 273, 1147, 18, 10492, 5621, 7734, 1147, 18, 6208, 5621, 7734, 309, 261, 1024, 18, 2469, 12, 225, 262, 405, 374, 262, 10792, 15218, 12, 2 ]
return var.getValue().getItemType();
int type = var.getValue().getItemType(); return type;
public int returnsType() { try { Variable var = context.resolveVariable(qname); if (var != null && var.getValue() != null) { return var.getValue().getItemType(); } } catch (XPathException e) { } return Type.ITEM; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/32e6ca62b436d3dd1c161a3795045b41f1c88dc5/VariableReference.java/buggy/src/org/exist/xquery/VariableReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 1135, 559, 1435, 288, 202, 202, 698, 288, 1082, 202, 3092, 569, 273, 819, 18, 10828, 3092, 12, 85, 529, 1769, 1082, 202, 430, 261, 1401, 480, 446, 597, 569, 18, 24805, 1435, 480, 446, 13, 288, 9506, 202, 2463, 569, 18, 24805, 7675, 588, 22580, 5621, 1082, 202, 97, 202, 202, 97, 1044, 261, 14124, 503, 425, 13, 288, 202, 202, 97, 202, 202, 2463, 1412, 18, 12674, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 1135, 559, 1435, 288, 202, 202, 698, 288, 1082, 202, 3092, 569, 273, 819, 18, 10828, 3092, 12, 85, 529, 1769, 1082, 202, 430, 261, 1401, 480, 446, 597, 569, 18, 24805, 1435, 480, 446, 13, 288, 9506, 202, 2463, 569, 18, 24805, 7675, 588, 22580, 5621, 1082, 202, 97, 202, 202, 97, 1044, 261, 14124, 503, 425, 13, 288, 202, 202, 97, 202, 202, 2463, 1412, 18, 12674, 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 ]
toCheck = new StringBuffer(response.getResponseHeaders()).append(new String(response.responseDataAsBA())).toString();
String data; try { data = new String(response.responseDataAsBA(),response.getDataEncoding()); } catch (UnsupportedEncodingException e) { log.warn("Problem with response encoding: "+e); data = new String(response.responseDataAsBA()); } toCheck=new StringBuffer(response.getResponseHeaders()).append(data).toString();
private AssertionResult evaluateResponse(SampleResult response) { boolean pass = true; boolean not = (NOT & getTestType()) > 0; AssertionResult result = new AssertionResult(); String toCheck=""; // The string to check (Url or data) if (getAssumeSuccess()) { response.setSuccessful(true);// Allow testing of failure codes } // What are we testing against? if (ResponseAssertion.RESPONSE_DATA.equals(getTestField())) { toCheck = new StringBuffer(response.getResponseHeaders()).append(new String(response.responseDataAsBA())).toString(); } else if (ResponseAssertion.RESPONSE_CODE.equals(getTestField())) { toCheck=response.getResponseCode(); } else if (ResponseAssertion.RESPONSE_MESSAGE.equals(getTestField())) { toCheck=response.getResponseMessage(); } else { // Assume it is the URL toCheck=response.getSamplerData(); if (toCheck == null) toCheck = ""; } if(toCheck.length()==0) { return result.setResultForNull(); } try { // Get the Matcher for this thread Perl5Matcher localMatcher = (Perl5Matcher) matcher.get(); PropertyIterator iter = getTestStrings().iterator(); while (iter.hasNext()) { String stringPattern = iter.next().getStringValue(); Pattern pattern = patternCache.getPattern( stringPattern, Perl5Compiler.READ_ONLY_MASK); boolean found; if ((CONTAINS & getTestType()) > 0) { found = localMatcher.contains(toCheck, pattern); } else { found = localMatcher.matches(toCheck, pattern); } pass = not ? !found : found; if (!pass) { result.setFailure(true); result.setFailureMessage(getFailText(stringPattern)); break; } } if (pass) { result.setFailure(false); } result.setError(false); } catch (MalformedCachePatternException e) { result.setError(true); result.setFailure(false); result.setFailureMessage("Bad test configuration " + e); } return result; }
50179 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50179/4a17ea83e702b9885d51bc3068285b7d6130ffc1/ResponseAssertion.java/buggy/src/components/org/apache/jmeter/assertions/ResponseAssertion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 9067, 1253, 5956, 1064, 12, 8504, 1253, 766, 13, 282, 288, 1377, 1250, 1342, 273, 638, 31, 1377, 1250, 486, 273, 261, 4400, 473, 29384, 559, 10756, 405, 374, 31, 1377, 9067, 1253, 563, 273, 394, 9067, 1253, 5621, 1377, 514, 358, 1564, 1546, 14432, 368, 1021, 533, 358, 866, 261, 1489, 578, 501, 13, 5411, 309, 261, 588, 2610, 2066, 4510, 10756, 1377, 288, 4202, 202, 2740, 18, 542, 14277, 12, 3767, 1769, 759, 7852, 7769, 434, 5166, 6198, 1377, 289, 1377, 368, 18734, 854, 732, 7769, 5314, 35, 1377, 309, 261, 1064, 14979, 18, 14508, 67, 4883, 18, 14963, 12, 588, 4709, 974, 1435, 3719, 1377, 288, 1082, 514, 501, 31, 775, 288, 501, 273, 394, 514, 12, 2740, 18, 2740, 751, 1463, 12536, 9334, 2740, 18, 588, 751, 4705, 10663, 289, 1044, 261, 8544, 13836, 425, 13, 288, 613, 18, 8935, 2932, 13719, 598, 766, 2688, 30, 13773, 73, 1769, 501, 273, 394, 514, 12, 2740, 18, 2740, 751, 1463, 12536, 10663, 289, 358, 1564, 33, 2704, 6674, 12, 2740, 18, 588, 1064, 3121, 1435, 2934, 6923, 12, 892, 2934, 10492, 5621, 1377, 289, 1377, 469, 309, 261, 1064, 14979, 18, 14508, 67, 5572, 18, 14963, 12, 588, 4709, 974, 1435, 3719, 1377, 288, 202, 202, 869, 1564, 33, 2740, 18, 588, 1064, 1085, 5621, 202, 225, 289, 202, 225, 469, 309, 261, 1064, 14979, 18, 14508, 67, 8723, 18, 14963, 12, 588, 4709, 974, 1435, 3719, 202, 225, 288, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 9067, 1253, 5956, 1064, 12, 8504, 1253, 766, 13, 282, 288, 1377, 1250, 1342, 273, 638, 31, 1377, 1250, 486, 273, 261, 4400, 473, 29384, 559, 10756, 405, 374, 31, 1377, 9067, 1253, 563, 273, 394, 9067, 1253, 5621, 1377, 514, 358, 1564, 1546, 14432, 368, 1021, 533, 358, 866, 261, 1489, 578, 501, 13, 5411, 309, 261, 588, 2610, 2066, 4510, 10756, 1377, 288, 4202, 202, 2740, 18, 542, 14277, 12, 3767, 1769, 759, 7852, 7769, 434, 5166, 6198, 1377, 289, 1377, 368, 18734, 854, 732, 7769, 5314, 35, 1377, 309, 261, 1064, 14979, 18, 14508, 67, 4883, 18, 14963, 12, 588, 4709, 974, 1435, 3719, 1377, 288, 1082, 514, 501, 31, 775, 288, 501, 273, 2 ]
protected static boolean isPatternCharAllowed(char patternChar){
protected static boolean isPatternCharAllowed(char patternChar) {
protected static boolean isPatternCharAllowed(char patternChar){ return Character.isUpperCase(patternChar); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f6a6b077cb5b91dfa306af0b33ea1a4ed7445674/SearchPattern.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/SearchPattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 1250, 353, 3234, 2156, 5042, 12, 3001, 1936, 2156, 15329, 202, 202, 2463, 6577, 18, 291, 8915, 12, 4951, 2156, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1117, 760, 1250, 353, 3234, 2156, 5042, 12, 3001, 1936, 2156, 15329, 202, 202, 2463, 6577, 18, 291, 8915, 12, 4951, 2156, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
entry.setData(value);
entry.setInternalData(value);
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (!value.isNil() && value.kind_of(entry.getRuby().getClasses().getExceptionClass()).isFalse()) { throw new TypeError(entry.getRuby(), "assigning non-exception to $!"); } entry.setData(value); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/RubyGlobal.java/clean/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 444, 12, 54, 10340, 921, 460, 16, 514, 612, 16, 19817, 921, 501, 16, 19817, 5160, 1622, 1241, 13, 288, 5411, 309, 16051, 1132, 18, 291, 12616, 1435, 597, 460, 18, 9224, 67, 792, 12, 4099, 18, 588, 54, 10340, 7675, 588, 4818, 7675, 588, 503, 797, 1435, 2934, 291, 8381, 10756, 288, 7734, 604, 394, 3580, 12, 4099, 18, 588, 54, 10340, 9334, 315, 6145, 310, 1661, 17, 4064, 358, 271, 4442, 1769, 5411, 289, 5411, 1241, 18, 542, 3061, 751, 12, 1132, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 444, 12, 54, 10340, 921, 460, 16, 514, 612, 16, 19817, 921, 501, 16, 19817, 5160, 1622, 1241, 13, 288, 5411, 309, 16051, 1132, 18, 291, 12616, 1435, 597, 460, 18, 9224, 67, 792, 12, 4099, 18, 588, 54, 10340, 7675, 588, 4818, 7675, 588, 503, 797, 1435, 2934, 291, 8381, 10756, 288, 7734, 604, 394, 3580, 12, 4099, 18, 588, 54, 10340, 9334, 315, 6145, 310, 1661, 17, 4064, 358, 271, 4442, 1769, 5411, 289, 5411, 1241, 18, 542, 3061, 751, 12, 1132, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("Typed");
log.debug("Typed");
public void keyTyped(KeyEvent e) { System.out.println("Typed"); }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/d828fad51993ed5f171429019828ebf910513875/FunctionPanel.java/clean/jmri/jmrit/throttle/FunctionPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 498, 11985, 12, 653, 1133, 425, 13, 202, 202, 95, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 11985, 8863, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3196, 202, 482, 918, 498, 11985, 12, 653, 1133, 425, 13, 202, 202, 95, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 11985, 8863, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new ArgumentError(recv.getRuntime(), "odd number of args for Hash");
throw recv.getRuntime().newArgumentError("odd number of args for Hash");
public static RubyHash create(IRubyObject recv, IRubyObject[] args) { RubyHash hash = new RubyHash(recv.getRuntime()); if (args.length == 1) { hash.setValueMap(new HashMap(((RubyHash) args[0]).getValueMap())); } else if (args.length % 2 != 0) { throw new ArgumentError(recv.getRuntime(), "odd number of args for Hash"); } else { for (int i = 0; i < args.length; i += 2) { hash.aset(args[i], args[i + 1]); } } return hash; }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyHash.java/clean/src/org/jruby/RubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 2310, 752, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 2310, 1651, 273, 394, 19817, 2310, 12, 18334, 18, 588, 5576, 10663, 3639, 309, 261, 1968, 18, 2469, 422, 404, 13, 288, 5411, 1651, 18, 542, 26795, 12, 2704, 4317, 12443, 12, 54, 10340, 2310, 13, 833, 63, 20, 65, 2934, 24805, 863, 1435, 10019, 3639, 289, 469, 309, 261, 1968, 18, 2469, 738, 576, 480, 374, 13, 288, 5411, 604, 10665, 18, 588, 5576, 7675, 2704, 1379, 668, 2932, 31755, 1300, 434, 833, 364, 2474, 8863, 3639, 289, 469, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 1011, 576, 13, 288, 7734, 1651, 18, 2759, 12, 1968, 63, 77, 6487, 833, 63, 77, 397, 404, 19226, 5411, 289, 3639, 289, 3639, 327, 1651, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 2310, 752, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 19817, 2310, 1651, 273, 394, 19817, 2310, 12, 18334, 18, 588, 5576, 10663, 3639, 309, 261, 1968, 18, 2469, 422, 404, 13, 288, 5411, 1651, 18, 542, 26795, 12, 2704, 4317, 12443, 12, 54, 10340, 2310, 13, 833, 63, 20, 65, 2934, 24805, 863, 1435, 10019, 3639, 289, 469, 309, 261, 1968, 18, 2469, 738, 576, 480, 374, 13, 288, 5411, 604, 10665, 18, 588, 5576, 7675, 2704, 1379, 668, 2932, 31755, 1300, 434, 833, 364, 2474, 8863, 3639, 289, 469, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 1011, 576, 2 ]
date += st.nextToken() + " ";
date = st.nextToken() + " " + st.nextToken() + " " + st.nextToken();
public static FTPFile parseLine(String line) { FTPFile file = new FTPFile(); StringTokenizer st = new StringTokenizer(line," "); String mode = st.nextToken(); if(Pattern.matches("[0-9]+", mode.substring(0, 3))) mode = mode.substring(3); if(st.countTokens() < 8) return null; file.setMode(mode); st.nextToken(); file.setUser(st.nextToken()); file.setGroup(st.nextToken()); file.setSize(Long.parseLong(st.nextToken())); String date = ""; while(st.countTokens() > 1) { date += st.nextToken() + " "; } date = date.trim(); file.setDate(date); String fileName = ""; while (st.hasMoreTokens()) fileName = (fileName.concat(" ")).concat(st.nextToken()); file.setName(fileName.trim()); return file; }
11835 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11835/c54ac7c9c5e85662882e65ec03df208651f2843d/FTPFile.java/buggy/ftp4che/src/java/org/ftp4che/util/FTPFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 19324, 812, 1109, 1670, 12, 780, 980, 13, 202, 95, 202, 565, 19324, 812, 585, 273, 394, 19324, 812, 5621, 202, 565, 16370, 384, 273, 394, 16370, 12, 1369, 10837, 315, 1769, 202, 565, 514, 1965, 273, 384, 18, 4285, 1345, 5621, 202, 565, 309, 12, 3234, 18, 8436, 2932, 63, 20, 17, 29, 3737, 3113, 1965, 18, 28023, 12, 20, 16, 890, 20349, 202, 377, 202, 3188, 273, 1965, 18, 28023, 12, 23, 1769, 202, 565, 309, 12, 334, 18, 1883, 5157, 1435, 411, 1725, 13, 202, 377, 202, 2463, 446, 31, 202, 565, 585, 18, 542, 2309, 12, 3188, 1769, 202, 565, 384, 18, 4285, 1345, 5621, 202, 565, 585, 18, 542, 1299, 12, 334, 18, 4285, 1345, 10663, 202, 565, 585, 18, 542, 1114, 12, 334, 18, 4285, 1345, 10663, 202, 565, 585, 18, 542, 1225, 12, 3708, 18, 2670, 3708, 12, 334, 18, 4285, 1345, 1435, 10019, 202, 565, 514, 1509, 273, 1408, 31, 202, 565, 1323, 12, 334, 18, 1883, 5157, 1435, 405, 404, 13, 202, 565, 288, 202, 3639, 1509, 1011, 384, 18, 4285, 1345, 1435, 397, 315, 13636, 202, 565, 289, 202, 565, 1509, 273, 1509, 18, 5290, 5621, 202, 565, 585, 18, 542, 1626, 12, 712, 1769, 202, 377, 202, 565, 514, 3968, 273, 1408, 31, 202, 565, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 202, 377, 202, 17812, 273, 261, 17812, 18, 16426, 2932, 9369, 2934, 16426, 12, 334, 18, 4285, 1345, 10663, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 19324, 812, 1109, 1670, 12, 780, 980, 13, 202, 95, 202, 565, 19324, 812, 585, 273, 394, 19324, 812, 5621, 202, 565, 16370, 384, 273, 394, 16370, 12, 1369, 10837, 315, 1769, 202, 565, 514, 1965, 273, 384, 18, 4285, 1345, 5621, 202, 565, 309, 12, 3234, 18, 8436, 2932, 63, 20, 17, 29, 3737, 3113, 1965, 18, 28023, 12, 20, 16, 890, 20349, 202, 377, 202, 3188, 273, 1965, 18, 28023, 12, 23, 1769, 202, 565, 309, 12, 334, 18, 1883, 5157, 1435, 411, 1725, 13, 202, 377, 202, 2463, 446, 31, 202, 565, 585, 18, 542, 2309, 12, 3188, 1769, 202, 565, 384, 18, 4285, 1345, 5621, 202, 565, 585, 18, 542, 1299, 2 ]
if (part != null)
if (part != null)
public Object getAdapter(Class adapter) { if (adapter.equals(IUndoContext.class)) { return undoContext; } if (adapter.equals(IProgressMonitor.class)) { if (progressDialog != null) return progressDialog.getProgressMonitor(); } if (site != null) { if (adapter.equals(Shell.class)) { return getWorkbenchWindow().getShell(); } if (adapter.equals(IWorkbenchWindow.class)) { return getWorkbenchWindow(); } if (adapter.equals(IWorkbenchPart.class)) { return site.getPart(); } // Refer all other requests to the part itself. // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=108144 IWorkbenchPart part = site.getPart(); if (part != null) return part.getAdapter(adapter); } return null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5cbd38a0f052e6f6724c958f8a04bdd24f9be228/OperationHistoryActionHandler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/OperationHistoryActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 16679, 12, 797, 4516, 13, 288, 202, 202, 430, 261, 10204, 18, 14963, 12, 45, 31224, 1042, 18, 1106, 3719, 288, 1082, 202, 2463, 15436, 1042, 31, 202, 202, 97, 202, 202, 430, 261, 10204, 18, 14963, 12, 45, 5491, 7187, 18, 1106, 3719, 288, 1082, 202, 430, 261, 8298, 6353, 480, 446, 13, 9506, 202, 2463, 4007, 6353, 18, 588, 5491, 7187, 5621, 202, 202, 97, 202, 202, 430, 261, 4256, 480, 446, 13, 288, 1082, 202, 430, 261, 10204, 18, 14963, 12, 13220, 18, 1106, 3719, 288, 9506, 202, 2463, 29026, 22144, 3829, 7675, 588, 13220, 5621, 1082, 202, 97, 1082, 202, 430, 261, 10204, 18, 14963, 12, 45, 2421, 22144, 3829, 18, 1106, 3719, 288, 9506, 202, 2463, 29026, 22144, 3829, 5621, 1082, 202, 97, 1082, 202, 430, 261, 10204, 18, 14963, 12, 45, 2421, 22144, 1988, 18, 1106, 3719, 288, 9506, 202, 2463, 2834, 18, 588, 1988, 5621, 1082, 202, 97, 1082, 202, 759, 868, 586, 777, 1308, 3285, 358, 326, 1087, 6174, 18, 1082, 202, 759, 2164, 2333, 2207, 19381, 18, 20416, 18, 3341, 19, 19381, 19, 4500, 67, 925, 18, 19062, 35, 350, 33, 21770, 25339, 1082, 202, 45, 2421, 22144, 1988, 1087, 273, 2834, 18, 588, 1988, 5621, 1082, 202, 430, 261, 2680, 480, 446, 13, 4697, 202, 2463, 1087, 18, 588, 4216, 12, 10204, 1769, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 16679, 12, 797, 4516, 13, 288, 202, 202, 430, 261, 10204, 18, 14963, 12, 45, 31224, 1042, 18, 1106, 3719, 288, 1082, 202, 2463, 15436, 1042, 31, 202, 202, 97, 202, 202, 430, 261, 10204, 18, 14963, 12, 45, 5491, 7187, 18, 1106, 3719, 288, 1082, 202, 430, 261, 8298, 6353, 480, 446, 13, 9506, 202, 2463, 4007, 6353, 18, 588, 5491, 7187, 5621, 202, 202, 97, 202, 202, 430, 261, 4256, 480, 446, 13, 288, 1082, 202, 430, 261, 10204, 18, 14963, 12, 13220, 18, 1106, 3719, 288, 9506, 202, 2463, 29026, 22144, 3829, 7675, 588, 13220, 5621, 1082, 202, 97, 1082, 202, 430, 261, 10204, 18, 14963, 12, 45, 2421, 22144, 3829, 18, 2 ]
case ICElement.C_METHOD:
case ICElement.C_METHOD: return CPluginImages.DESC_OBJS_PUBLIC_METHOD;
public ImageDescriptor getCElementImageDescriptor(int type) { switch (type) { case ICElement.C_CONTAINER: return CPluginImages.DESC_OBJS_CONTAINER; case ICElement.C_FILE: return CPluginImages.DESC_OBJS_TUNIT; case ICElement.C_STRUCT: return CPluginImages.DESC_OBJS_STRUCT; case ICElement.C_CLASS: return CPluginImages.DESC_OBJS_CLASS; case ICElement.C_UNION: return CPluginImages.DESC_OBJS_UNION; case ICElement.C_FIELD: case ICElement.C_VARIABLE: return CPluginImages.DESC_OBJS_FIELD; case ICElement.C_METHOD: // FIXME: Provide a different icon. case ICElement.C_FUNCTION: case ICElement.C_FUNCTION_DECLARATION: return CPluginImages.DESC_OBJS_FUNCTION; case ICElement.C_INCLUDE: return CPluginImages.DESC_OBJS_INCLUDE; case ICElement.C_MACRO: return CPluginImages.DESC_OBJS_MACRO; } System.out.println("Unknown base object ype " + type); return CPluginImages.DESC_OBJS_MACRO; //return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/dd13b8fe53c9269fb5ffac50641980c7978ca066/CElementImageProvider.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CElementImageProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 3187, 1927, 1046, 2040, 3187, 12, 474, 618, 13, 288, 202, 202, 9610, 261, 723, 13, 288, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 21395, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 21395, 31, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 3776, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 56, 15736, 31, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 13915, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 13915, 31, 6862, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 5237, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 5237, 31, 6862, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 2124, 1146, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 2124, 1146, 31, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 6776, 30, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 16444, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 6776, 31, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 5327, 30, 327, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 14939, 67, 5327, 31, 225, 368, 9852, 30, 26569, 279, 3775, 4126, 18, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 7788, 30, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 7788, 67, 23956, 985, 2689, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 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, 3421, 3187, 1927, 1046, 2040, 3187, 12, 474, 618, 13, 288, 202, 202, 9610, 261, 723, 13, 288, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 21395, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 21395, 31, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 3776, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 56, 15736, 31, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 13915, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 13915, 31, 6862, 1082, 202, 3593, 26899, 1046, 18, 39, 67, 5237, 30, 9506, 202, 2463, 385, 3773, 8946, 18, 10964, 67, 5704, 6479, 67, 5237, 31, 2 ]
item = unwrap(item);
public IContributionItem findUsingPath(String path) { String id = path; String rest = null; int separator = path.indexOf('/'); if (separator != -1) { id = path.substring(0, separator); rest = path.substring(separator + 1); } IContributionItem item = find(id); // unwraps item if (rest != null && item instanceof IMenuManager) { IMenuManager menu = (IMenuManager) item; item = menu.findUsingPath(rest); item = unwrap(item); } return item;}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/930a6362859ee5a9beff4cd3fafc57a2e8128db4/SubMenuManager.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/action/SubMenuManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 467, 442, 4027, 1180, 1104, 7736, 743, 12, 780, 589, 13, 288, 202, 780, 612, 273, 589, 31, 202, 780, 3127, 273, 446, 31, 202, 474, 4182, 273, 589, 18, 31806, 2668, 2473, 1769, 202, 430, 261, 11287, 480, 300, 21, 13, 288, 202, 202, 350, 273, 589, 18, 28023, 12, 20, 16, 4182, 1769, 202, 202, 8792, 273, 589, 18, 28023, 12, 11287, 397, 404, 1769, 202, 97, 202, 45, 442, 4027, 1180, 761, 273, 1104, 12, 350, 1769, 368, 640, 91, 7506, 761, 202, 430, 261, 8792, 480, 446, 597, 761, 1276, 467, 4599, 1318, 13, 288, 202, 202, 3445, 2104, 1318, 3824, 273, 261, 3445, 2104, 1318, 13, 761, 31, 202, 202, 1726, 273, 3824, 18, 4720, 7736, 743, 12, 8792, 1769, 202, 202, 1726, 273, 11014, 12, 1726, 1769, 202, 97, 202, 2463, 761, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 467, 442, 4027, 1180, 1104, 7736, 743, 12, 780, 589, 13, 288, 202, 780, 612, 273, 589, 31, 202, 780, 3127, 273, 446, 31, 202, 474, 4182, 273, 589, 18, 31806, 2668, 2473, 1769, 202, 430, 261, 11287, 480, 300, 21, 13, 288, 202, 202, 350, 273, 589, 18, 28023, 12, 20, 16, 4182, 1769, 202, 202, 8792, 273, 589, 18, 28023, 12, 11287, 397, 404, 1769, 202, 97, 202, 45, 442, 4027, 1180, 761, 273, 1104, 12, 350, 1769, 368, 640, 91, 7506, 761, 202, 430, 261, 8792, 480, 446, 597, 761, 1276, 467, 4599, 1318, 13, 288, 202, 202, 3445, 2104, 1318, 3824, 273, 261, 3445, 2104, 1318, 13, 761, 31, 202, 202, 1726, 273, 3824, 2 ]
= 25.4f / userConfig.getChild("resolution").getValueAsFloat(DEFAULT_RESOLUTION);
= userConfig.getChild("resolution").getValueAsFloat(DEFAULT_RESOLUTION);
public void initUserConfig() throws ConfigurationException { log.debug("Initializing User Agent Configuration"); if (userConfig.getChild("base", false) != null) { try { String cfgBaseDir = userConfig.getChild("base").getValue(null); if (cfgBaseDir != null) { File dir = new File(cfgBaseDir); if (dir.isDirectory()) { cfgBaseDir = "file://" + dir.getCanonicalPath() + System.getProperty("file.separator"); cfgBaseDir = cfgBaseDir.replace( System.getProperty("file.separator").charAt(0), '/'); } else { //The next statement is for validation only new URL(cfgBaseDir); } } setBaseURL(cfgBaseDir); } catch (MalformedURLException mue) { log.error("Base URL in user config is malformed!"); } catch (IOException ioe) { log.error("Error converting relative base directory to absolute URL."); } log.info("Base URL set to: " + baseURL); } if (userConfig.getChild("pixelToMillimeter", false) != null) { this.resolution = 25.4f / userConfig.getChild("pixelToMillimeter") .getAttributeAsFloat("value", DEFAULT_PX2MM); log.info("resolution set to: " + resolution + "dpi (px2mm=" + getPixelUnitToMillimeter() + ")"); } else if (userConfig.getChild("resolution", false) != null) { this.resolution = 25.4f / userConfig.getChild("resolution").getValueAsFloat(DEFAULT_RESOLUTION); log.info("resolution set to: " + resolution + "dpi (px2mm=" + getPixelUnitToMillimeter() + ")"); } if (userConfig.getChild("strict-validation", false) != null) { this.strictValidation = userConfig.getChild("strict-validation").getValueAsBoolean(); } if (userConfig.getChild("break-indent-inheritance", false) != null) { this.breakIndentInheritanceOnReferenceAreaBoundary = userConfig.getChild("break-indent-inheritance").getValueAsBoolean(); } Configuration pageConfig = userConfig.getChild("default-page-settings"); if (pageConfig.getAttribute("height", null) != null) { setPageHeight(pageConfig.getAttribute("height")); log.info("Default page-height set to: " + pageHeight); } if (pageConfig.getAttribute("width", null) != null) { setPageWidth(pageConfig.getAttribute("width")); log.info("Default page-width set to: " + pageWidth); } }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/050760b277a5f97196dfe0778fa5581ea896fff8/FOUserAgent.java/buggy/src/java/org/apache/fop/apps/FOUserAgent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 1299, 809, 1435, 1216, 22196, 288, 3639, 613, 18, 4148, 2932, 29782, 2177, 8669, 4659, 8863, 3639, 309, 261, 1355, 809, 18, 588, 1763, 2932, 1969, 3113, 629, 13, 480, 446, 13, 288, 5411, 775, 288, 7734, 514, 2776, 2171, 1621, 273, 729, 809, 18, 588, 1763, 2932, 1969, 20387, 24805, 12, 2011, 1769, 7734, 309, 261, 7066, 2171, 1621, 480, 446, 13, 288, 10792, 1387, 1577, 273, 394, 1387, 12, 7066, 2171, 1621, 1769, 10792, 309, 261, 1214, 18, 291, 2853, 10756, 288, 13491, 2776, 2171, 1621, 273, 315, 768, 14334, 397, 1577, 18, 588, 15512, 743, 1435, 11794, 397, 2332, 18, 588, 1396, 2932, 768, 18, 11287, 8863, 13491, 2776, 2171, 1621, 273, 2776, 2171, 1621, 18, 2079, 12, 27573, 2332, 18, 588, 1396, 2932, 768, 18, 11287, 20387, 3001, 861, 12, 20, 3631, 2023, 1769, 10792, 289, 469, 288, 13491, 368, 1986, 1024, 3021, 353, 364, 3379, 1338, 13491, 394, 1976, 12, 7066, 2171, 1621, 1769, 10792, 289, 7734, 289, 7734, 26435, 1785, 12, 7066, 2171, 1621, 1769, 5411, 289, 1044, 261, 18695, 20160, 312, 344, 13, 288, 7734, 613, 18, 1636, 2932, 2171, 1976, 316, 729, 642, 353, 17458, 4442, 1769, 5411, 289, 1044, 261, 14106, 10847, 13, 288, 7734, 613, 18, 1636, 2932, 668, 14540, 3632, 1026, 1867, 358, 4967, 1976, 1199, 1769, 5411, 289, 5411, 613, 18, 1376, 2932, 2171, 1976, 444, 358, 30, 315, 397, 17480, 1769, 3639, 289, 3639, 309, 261, 1355, 809, 18, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 1299, 809, 1435, 1216, 22196, 288, 3639, 613, 18, 4148, 2932, 29782, 2177, 8669, 4659, 8863, 3639, 309, 261, 1355, 809, 18, 588, 1763, 2932, 1969, 3113, 629, 13, 480, 446, 13, 288, 5411, 775, 288, 7734, 514, 2776, 2171, 1621, 273, 729, 809, 18, 588, 1763, 2932, 1969, 20387, 24805, 12, 2011, 1769, 7734, 309, 261, 7066, 2171, 1621, 480, 446, 13, 288, 10792, 1387, 1577, 273, 394, 1387, 12, 7066, 2171, 1621, 1769, 10792, 309, 261, 1214, 18, 291, 2853, 10756, 288, 13491, 2776, 2171, 1621, 273, 315, 768, 14334, 397, 1577, 18, 588, 15512, 743, 1435, 11794, 397, 2332, 18, 588, 1396, 2932, 768, 18, 11287, 8863, 13491, 2776, 2171, 1621, 273, 2 ]
if (e.getPresentation().isEnabled()) { final InspectionResultsView invoker = getInvoker(e); if (invoker != null) { ProblemDescriptor[] descriptors = invoker.getSelectedDescriptors(); boolean hasFixes = false; for (ProblemDescriptor descriptor : descriptors) { if (descriptor.getFix() != null && descriptor.getPsiElement() != null) { hasFixes = true; break; } } if (hasFixes) { e.getPresentation().setVisible(true); e.getPresentation().setEnabled(true); e.getPresentation().setText(getName(descriptors)); return; } } } e.getPresentation().setVisible(false); e.getPresentation().setEnabled(false);
getTemplatePresentation().setText(myText); e.getPresentation().setText(myText);
public void update(AnActionEvent e) { super.update(e); if (e.getPresentation().isEnabled()) { final InspectionResultsView invoker = getInvoker(e); if (invoker != null) { ProblemDescriptor[] descriptors = invoker.getSelectedDescriptors(); boolean hasFixes = false; for (ProblemDescriptor descriptor : descriptors) { if (descriptor.getFix() != null && descriptor.getPsiElement() != null) { hasFixes = true; break; } } if (hasFixes) { e.getPresentation().setVisible(true); e.getPresentation().setEnabled(true); e.getPresentation().setText(getName(descriptors)); return; } } } e.getPresentation().setVisible(false); e.getPresentation().setEnabled(false); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/7d18937b6c277d5ef28a5ed5045f90e8b80e937a/LocalQuickFixWrapper.java/clean/source/com/intellij/codeInspection/ex/LocalQuickFixWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1089, 12, 979, 1803, 1133, 425, 13, 288, 565, 2240, 18, 2725, 12, 73, 1769, 565, 309, 261, 73, 18, 588, 6351, 367, 7675, 291, 1526, 10756, 288, 1377, 727, 22085, 7017, 3447, 1767, 24920, 273, 336, 24455, 12, 73, 1769, 1377, 309, 261, 5768, 601, 264, 480, 446, 13, 288, 3639, 21685, 3187, 8526, 14215, 273, 24920, 18, 588, 7416, 12705, 5621, 3639, 1250, 711, 8585, 281, 273, 629, 31, 3639, 364, 261, 13719, 3187, 4950, 294, 14215, 13, 288, 1850, 309, 261, 12628, 18, 588, 8585, 1435, 480, 446, 597, 4950, 18, 588, 52, 7722, 1046, 1435, 480, 446, 13, 288, 5411, 711, 8585, 281, 273, 638, 31, 5411, 898, 31, 1850, 289, 3639, 289, 3639, 309, 261, 5332, 8585, 281, 13, 288, 1850, 425, 18, 588, 6351, 367, 7675, 542, 6207, 12, 3767, 1769, 1850, 425, 18, 588, 6351, 367, 7675, 542, 1526, 12, 3767, 1769, 1850, 425, 18, 588, 6351, 367, 7675, 542, 1528, 12, 17994, 12, 72, 8379, 10019, 1850, 327, 31, 3639, 289, 1377, 289, 565, 289, 565, 425, 18, 588, 6351, 367, 7675, 542, 6207, 12, 5743, 1769, 565, 425, 18, 588, 6351, 367, 7675, 542, 1526, 12, 5743, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 1089, 12, 979, 1803, 1133, 425, 13, 288, 565, 2240, 18, 2725, 12, 73, 1769, 565, 309, 261, 73, 18, 588, 6351, 367, 7675, 291, 1526, 10756, 288, 1377, 727, 22085, 7017, 3447, 1767, 24920, 273, 336, 24455, 12, 73, 1769, 1377, 309, 261, 5768, 601, 264, 480, 446, 13, 288, 3639, 21685, 3187, 8526, 14215, 273, 24920, 18, 588, 7416, 12705, 5621, 3639, 1250, 711, 8585, 281, 273, 629, 31, 3639, 364, 261, 13719, 3187, 4950, 294, 14215, 13, 288, 1850, 309, 261, 12628, 18, 588, 8585, 1435, 480, 446, 597, 4950, 18, 588, 52, 7722, 1046, 1435, 480, 446, 13, 288, 5411, 711, 8585, 281, 273, 638, 31, 5411, 898, 31, 1850, 289, 3639, 2 ]
public Entry next() {
public LinkedListNode next() {
public Entry next() { if( this.current == null ){ return null; } LinkedListNode node = this.current; current = (LinkedListNode) current.getNext(); return node; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/b6d27b51773c616f04e39b7d6c5e3cd95aeab255/LinkedList.java/buggy/drools-core/src/main/java/org/drools/util/LinkedList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 10688, 907, 1024, 1435, 288, 5411, 309, 12, 333, 18, 2972, 422, 446, 262, 95, 7734, 327, 446, 31, 5411, 289, 5411, 10688, 907, 756, 225, 273, 333, 18, 2972, 31, 5411, 783, 273, 261, 13174, 682, 907, 13, 783, 18, 588, 2134, 5621, 5411, 327, 756, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 10688, 907, 1024, 1435, 288, 5411, 309, 12, 333, 18, 2972, 422, 446, 262, 95, 7734, 327, 446, 31, 5411, 289, 5411, 10688, 907, 756, 225, 273, 333, 18, 2972, 31, 5411, 783, 273, 261, 13174, 682, 907, 13, 783, 18, 588, 2134, 5621, 5411, 327, 756, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String limitDecimal(double d, int placesAfterDecimal) {
static String limitDecimal(double d, int placesAfterDecimal) {
String limitDecimal(double d, int placesAfterDecimal) { String strVal = Double.toString(d); int decpt = strVal.indexOf("."); if (decpt >= 0) { strVal = strVal.substring(0, Math.min(strVal.length(), decpt + 1 + placesAfterDecimal)); } return strVal; }
50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/3edf52a076bb27988393e0a08038504e01855545/DFSShell.java/clean/src/java/org/apache/hadoop/dfs/DFSShell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 514, 1800, 5749, 12, 9056, 302, 16, 509, 12576, 4436, 5749, 13, 288, 3639, 514, 609, 3053, 273, 3698, 18, 10492, 12, 72, 1769, 3639, 509, 2109, 337, 273, 609, 3053, 18, 31806, 2932, 1199, 1769, 3639, 309, 261, 4924, 337, 1545, 374, 13, 288, 5411, 609, 3053, 273, 609, 3053, 18, 28023, 12, 20, 16, 2361, 18, 1154, 12, 701, 3053, 18, 2469, 9334, 2109, 337, 397, 404, 397, 12576, 4436, 5749, 10019, 3639, 289, 3639, 327, 609, 3053, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 514, 1800, 5749, 12, 9056, 302, 16, 509, 12576, 4436, 5749, 13, 288, 3639, 514, 609, 3053, 273, 3698, 18, 10492, 12, 72, 1769, 3639, 509, 2109, 337, 273, 609, 3053, 18, 31806, 2932, 1199, 1769, 3639, 309, 261, 4924, 337, 1545, 374, 13, 288, 5411, 609, 3053, 273, 609, 3053, 18, 28023, 12, 20, 16, 2361, 18, 1154, 12, 701, 3053, 18, 2469, 9334, 2109, 337, 397, 404, 397, 12576, 4436, 5749, 10019, 3639, 289, 3639, 327, 609, 3053, 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 ]
private TestResult blockCheck(
private void blockCheck(
private TestResult blockCheck( PaddedBufferedBlockCipher cipher, BlockCipherPadding padding, KeyParameter key, byte[] data) { byte[] out = new byte[data.length + 8]; byte[] dec = new byte[data.length]; try { cipher.init(true, key); int len = cipher.processBytes(data, 0, data.length, out, 0); len += cipher.doFinal(out, len); cipher.init(false, key); int decLen = cipher.processBytes(out, 0, len, dec, 0); decLen += cipher.doFinal(dec, decLen); if (!isEqualTo(data, dec)) { return new SimpleTestResult(false, getName() + ": failed to decrypt - i = " + data.length + ", padding = " + padding.getPaddingName()); } } catch (Exception e) { return new SimpleTestResult(false, getName() + ": Exception - " + e.toString(), e); } return new SimpleTestResult(true, getName() + ": Okay"); }
53000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53000/73354e090ff00fccbb497eaed85583f13adabdf7/PaddingTest.java/clean/crypto/test/src/org/bouncycastle/crypto/test/PaddingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1203, 1564, 12, 3639, 453, 9665, 17947, 1768, 13896, 282, 5867, 16, 3639, 3914, 13896, 9485, 1850, 4992, 16, 3639, 1929, 1662, 7734, 498, 16, 3639, 1160, 8526, 8227, 501, 13, 565, 288, 3639, 1160, 8526, 225, 596, 273, 394, 1160, 63, 892, 18, 2469, 397, 1725, 15533, 3639, 1160, 8526, 225, 2109, 273, 394, 1160, 63, 892, 18, 2469, 15533, 7734, 775, 3639, 288, 18701, 5867, 18, 2738, 12, 3767, 16, 498, 1769, 13491, 509, 565, 562, 273, 5867, 18, 2567, 2160, 12, 892, 16, 374, 16, 501, 18, 2469, 16, 596, 16, 374, 1769, 13491, 562, 1011, 5867, 18, 2896, 7951, 12, 659, 16, 562, 1769, 13491, 5867, 18, 2738, 12, 5743, 16, 498, 1769, 13491, 509, 565, 2109, 2891, 273, 5867, 18, 2567, 2160, 12, 659, 16, 374, 16, 562, 16, 2109, 16, 374, 1769, 13491, 2109, 2891, 1011, 5867, 18, 2896, 7951, 12, 4924, 16, 2109, 2891, 1769, 13491, 309, 16051, 291, 5812, 774, 12, 892, 16, 2109, 3719, 5411, 288, 7734, 327, 394, 4477, 4709, 1253, 12, 5743, 16, 1723, 1435, 397, 6398, 2535, 358, 8420, 300, 277, 273, 315, 397, 501, 18, 2469, 397, 3104, 4992, 273, 315, 397, 4992, 18, 588, 9485, 461, 10663, 5411, 289, 3639, 289, 3639, 1044, 261, 503, 425, 13, 3639, 288, 5411, 327, 394, 4477, 4709, 1253, 12, 5743, 16, 1723, 1435, 397, 6398, 1185, 300, 315, 397, 425, 18, 10492, 9334, 425, 1769, 3639, 289, 7734, 327, 394, 4477, 4709, 1253, 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, 1203, 1564, 12, 3639, 453, 9665, 17947, 1768, 13896, 282, 5867, 16, 3639, 3914, 13896, 9485, 1850, 4992, 16, 3639, 1929, 1662, 7734, 498, 16, 3639, 1160, 8526, 8227, 501, 13, 565, 288, 3639, 1160, 8526, 225, 596, 273, 394, 1160, 63, 892, 18, 2469, 397, 1725, 15533, 3639, 1160, 8526, 225, 2109, 273, 394, 1160, 63, 892, 18, 2469, 15533, 7734, 775, 3639, 288, 18701, 5867, 18, 2738, 12, 3767, 16, 498, 1769, 13491, 509, 565, 562, 273, 5867, 18, 2567, 2160, 12, 892, 16, 374, 16, 501, 18, 2469, 16, 596, 16, 374, 1769, 13491, 562, 1011, 5867, 18, 2896, 7951, 12, 659, 16, 562, 1769, 13491, 5867, 18, 2738, 12, 5743, 16, 498, 2 ]
Point herd = getHerdCenter(pieces);
Point herd = getControlCenter(pieces);
protected void moveUnit ( Piece[] pieces, Unit unit, PointSet moves, PointSet attacks) { // use special logic for the big shot if (unit.getConfig().rank == UnitConfig.Rank.BIGSHOT) { moveBigShot(pieces, unit, moves, attacks); return; } // find out if we can spook any cows towards the herd (including ones // we own; we don't want them straying too far) Point herd = getHerdCenter(pieces); Unit bshot = null; Cow ccow = null; Piece ctarget = null; _sresults.clear(); for (int ii = 0; ii < pieces.length; ii++) { if (pieces[ii] instanceof Unit && pieces[ii].owner == _pidx && pieces[ii].isAlive() && ((Unit)pieces[ii]).getConfig().rank == UnitConfig.Rank.BIGSHOT) { bshot = (Unit)pieces[ii]; continue; } else if (unit.validTarget(pieces[ii], false) && (ctarget == null || unit.getDistance(pieces[ii]) < unit.getDistance(ctarget)) && unit.validTarget(pieces[ii], false)) { ctarget = pieces[ii]; continue; } else if (!(pieces[ii] instanceof Cow)) { continue; } Cow cow = (Cow)pieces[ii]; if (cow.owner != _pidx && (ccow == null || unit.getDistance(cow) < unit.getDistance(ccow))) { ccow = cow; } updateSpookResults((Cow)pieces[ii], moves, herd); } if (_sresults.isEmpty()) { moveUnit(pieces, unit, moves, bshot, herd, ccow, ctarget); return; } // find the spot that scares the most cows towards the herd Map.Entry<Point, SpookResult> best = null; for (Map.Entry<Point, SpookResult> entry : _sresults.entrySet()) { if (best == null || entry.getValue().getTowardsIndex() > best.getValue().getTowardsIndex()) { best = entry; } } if (best.getValue().getTowardsIndex() <= 0) { moveUnit(pieces, unit, moves, bshot, herd, ccow, ctarget); return; } Point dest = best.getKey(); executeOrder(unit, dest.x, dest.y, getBestTarget(pieces, unit, dest.x, dest.y, TARGET_EVALUATOR)); }
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/5ab88323c505dc5ab1b8b61ffcd871fbc24ea022/CattleRustlingLogic.java/clean/src/java/com/threerings/bang/game/server/ai/CattleRustlingLogic.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3635, 2802, 261, 3639, 453, 8414, 8526, 10167, 16, 8380, 2836, 16, 4686, 694, 13934, 16, 4686, 694, 28444, 13, 565, 288, 3639, 368, 999, 4582, 4058, 364, 326, 5446, 24167, 3639, 309, 261, 4873, 18, 588, 809, 7675, 11500, 422, 8380, 809, 18, 12925, 18, 19044, 28683, 13, 288, 5411, 3635, 9901, 1555, 352, 12, 31016, 16, 2836, 16, 13934, 16, 28444, 1769, 5411, 327, 31, 3639, 289, 3639, 368, 1104, 596, 309, 732, 848, 1694, 1184, 1281, 276, 543, 87, 23248, 326, 22336, 72, 261, 31348, 5945, 3639, 368, 732, 4953, 31, 732, 2727, 1404, 2545, 2182, 609, 528, 310, 4885, 10247, 13, 3639, 4686, 22336, 72, 273, 27174, 8449, 12, 31016, 1769, 3639, 8380, 324, 2415, 273, 446, 31, 3639, 385, 543, 4946, 543, 273, 446, 31, 3639, 453, 8414, 276, 3299, 273, 446, 31, 3639, 389, 87, 4717, 18, 8507, 5621, 3639, 364, 261, 474, 6072, 273, 374, 31, 6072, 411, 10167, 18, 2469, 31, 6072, 27245, 288, 5411, 309, 261, 31016, 63, 2835, 65, 1276, 8380, 597, 10167, 63, 2835, 8009, 8443, 422, 389, 84, 3465, 597, 7734, 10167, 63, 2835, 8009, 291, 10608, 1435, 597, 14015, 2802, 13, 31016, 63, 2835, 65, 2934, 588, 809, 7675, 11500, 422, 10792, 8380, 809, 18, 12925, 18, 19044, 28683, 13, 288, 7734, 324, 2415, 273, 261, 2802, 13, 31016, 63, 2835, 15533, 7734, 1324, 31, 13491, 289, 469, 309, 261, 4873, 18, 877, 2326, 12, 31016, 63, 2835, 6487, 629, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3635, 2802, 261, 3639, 453, 8414, 8526, 10167, 16, 8380, 2836, 16, 4686, 694, 13934, 16, 4686, 694, 28444, 13, 565, 288, 3639, 368, 999, 4582, 4058, 364, 326, 5446, 24167, 3639, 309, 261, 4873, 18, 588, 809, 7675, 11500, 422, 8380, 809, 18, 12925, 18, 19044, 28683, 13, 288, 5411, 3635, 9901, 1555, 352, 12, 31016, 16, 2836, 16, 13934, 16, 28444, 1769, 5411, 327, 31, 3639, 289, 3639, 368, 1104, 596, 309, 732, 848, 1694, 1184, 1281, 276, 543, 87, 23248, 326, 22336, 72, 261, 31348, 5945, 3639, 368, 732, 4953, 31, 732, 2727, 1404, 2545, 2182, 609, 528, 310, 4885, 10247, 13, 3639, 4686, 22336, 72, 273, 27174, 8449, 12, 31016, 1769, 3639, 2 ]
AST tmp616_AST_in = (AST)_t;
AST tmp652_AST_in = (AST)_t;
public final void array_subscript(AST _t) throws RecognitionException { AST array_subscript_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1598 = _t; AST tmp613_AST_in = (AST)_t; match(_t,Array_subscript); _t = _t.getFirstChild(); AST tmp614_AST_in = (AST)_t; match(_t,LEFTBRACE); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST tmp615_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); expression(_t); _t = _retTree; break; } case RIGHTBRACE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp616_AST_in = (AST)_t; match(_t,RIGHTBRACE); _t = _t.getNextSibling(); _t = __t1598; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/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, 526, 67, 1717, 4263, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 526, 67, 1717, 4263, 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, 3600, 10689, 273, 389, 88, 31, 202, 202, 9053, 1853, 26, 3437, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 1076, 67, 1717, 4263, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 26, 3461, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 10066, 26980, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 8692, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 12108, 30, 202, 202, 95, 1082, 202, 9053, 1853, 26, 3600, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 7473, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8692, 24899, 88, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 526, 67, 1717, 4263, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 526, 67, 1717, 4263, 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, 3600, 10689, 273, 389, 88, 31, 202, 202, 9053, 1853, 26, 3437, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 1076, 67, 1717, 4263, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 26, 3461, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 2 ]
if (propertyId.regionMatches(prefixLength, Constants.SYMBOL_TABLE_PROPERTY, 0, Constants.SYMBOL_TABLE_PROPERTY.length())) {
if (suffixLength == Constants.SYMBOL_TABLE_PROPERTY.length() && propertyId.endsWith(Constants.SYMBOL_TABLE_PROPERTY)) {
public void setProperty(String propertyId, Object value) throws XMLConfigurationException { // Xerces properties if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) { final int prefixLength = Constants.XERCES_PROPERTY_PREFIX.length(); if (propertyId.regionMatches(prefixLength, Constants.SYMBOL_TABLE_PROPERTY, 0, Constants.SYMBOL_TABLE_PROPERTY.length())) { fSymbolTable = (SymbolTable)value; } else if (propertyId.regionMatches(prefixLength, Constants.ERROR_REPORTER_PROPERTY, 0, Constants.ERROR_REPORTER_PROPERTY.length())) { fErrorReporter = (XMLErrorReporter)value; } else if (propertyId.regionMatches(prefixLength, Constants.ENTITY_MANAGER_PROPERTY, 0, Constants.ENTITY_MANAGER_PROPERTY.length())) { fEntityManager = (XMLEntityManager)value; } } } // setProperty(String,Object)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/74854a4dd6ce7a572c298057865a9161761aaee5/XMLScanner.java/clean/src/org/apache/xerces/impl/XMLScanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7486, 12, 780, 31894, 16, 1033, 460, 13, 3639, 1216, 3167, 10737, 288, 7734, 368, 1139, 264, 764, 1790, 3639, 309, 261, 4468, 548, 18, 17514, 1190, 12, 2918, 18, 60, 654, 1441, 55, 67, 9900, 67, 6307, 3719, 288, 540, 202, 6385, 509, 31106, 273, 5245, 18, 60, 654, 1441, 55, 67, 9900, 67, 6307, 18, 2469, 5621, 540, 202, 5411, 309, 261, 4468, 548, 18, 6858, 6869, 12, 3239, 1782, 16, 5245, 18, 22093, 67, 7775, 67, 9900, 16, 7734, 374, 16, 5245, 18, 22093, 67, 7775, 67, 9900, 18, 2469, 1435, 3719, 288, 7734, 284, 5335, 1388, 273, 261, 5335, 1388, 13, 1132, 31, 5411, 289, 5411, 469, 309, 261, 4468, 548, 18, 6858, 6869, 12, 3239, 1782, 16, 5245, 18, 3589, 67, 28879, 916, 2560, 67, 9900, 16, 7734, 374, 16, 5245, 18, 3589, 67, 28879, 916, 2560, 67, 9900, 18, 2469, 1435, 3719, 288, 7734, 284, 668, 13289, 273, 261, 4201, 668, 13289, 13, 1132, 31, 5411, 289, 5411, 469, 309, 261, 4468, 548, 18, 6858, 6869, 12, 3239, 1782, 16, 5245, 18, 11101, 67, 19402, 67, 9900, 16, 7734, 374, 16, 5245, 18, 11101, 67, 19402, 67, 9900, 18, 2469, 1435, 3719, 288, 7734, 284, 24110, 273, 261, 60, 9687, 1628, 1318, 13, 1132, 31, 5411, 289, 3639, 289, 565, 289, 368, 7486, 12, 780, 16, 921, 13, 2, 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, 1, 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, 7486, 12, 780, 31894, 16, 1033, 460, 13, 3639, 1216, 3167, 10737, 288, 7734, 368, 1139, 264, 764, 1790, 3639, 309, 261, 4468, 548, 18, 17514, 1190, 12, 2918, 18, 60, 654, 1441, 55, 67, 9900, 67, 6307, 3719, 288, 540, 202, 6385, 509, 31106, 273, 5245, 18, 60, 654, 1441, 55, 67, 9900, 67, 6307, 18, 2469, 5621, 540, 202, 5411, 309, 261, 4468, 548, 18, 6858, 6869, 12, 3239, 1782, 16, 5245, 18, 22093, 67, 7775, 67, 9900, 16, 7734, 374, 16, 5245, 18, 22093, 67, 7775, 67, 9900, 18, 2469, 1435, 3719, 288, 7734, 284, 5335, 1388, 273, 261, 5335, 1388, 13, 1132, 31, 5411, 289, 5411, 469, 309, 261, 4468, 548, 18, 2 ]
getSingletonClass().defineMethod(name, method); }
getSingletonClass().defineMethod(name, method); }
public void defineSingletonMethod(String name, RubyCallbackMethod method) { getSingletonClass().defineMethod(name, method); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4426, 19571, 1305, 12, 780, 508, 16, 19817, 2428, 1305, 707, 13, 288, 202, 202, 588, 19571, 797, 7675, 11255, 1305, 12, 529, 16, 707, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4426, 19571, 1305, 12, 780, 508, 16, 19817, 2428, 1305, 707, 13, 288, 202, 202, 588, 19571, 797, 7675, 11255, 1305, 12, 529, 16, 707, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
|| getFixDeprecationProposals(context, coveringNode, null)
public boolean hasAssists(IInvocationContext context) throws CoreException { ASTNode coveringNode= context.getCoveringNode(); if (coveringNode != null) { return getCatchClauseToThrowsProposals(context, coveringNode, null) || getRenameLocalProposals(context, coveringNode, null, false, null) || getAssignToVariableProposals(context, coveringNode, null) || getUnWrapProposals(context, coveringNode, null) || getAssignParamToFieldProposals(context, coveringNode, null) || getJoinVariableProposals(context, coveringNode, null) || getAddFinallyProposals(context, coveringNode, null) || getAddElseProposals(context, coveringNode, null) || getSplitVariableProposals(context, coveringNode, null) || getAddBlockProposals(context, coveringNode, null) || getArrayInitializerToArrayCreation(context, coveringNode, null) || getCreateInSuperClassProposals(context, coveringNode, null) || getInvertEqualsProposal(context, coveringNode, null) || getConvertForLoopProposal(context, coveringNode, null) || getExtractLocalProposal(context, coveringNode, null) || getConvertIterableLoopProposal(context, coveringNode, null) || getSurroundWithRunnableProposal(context, coveringNode, null) || getRemoveBlockProposals(context, coveringNode, null) || getFixDeprecationProposals(context, coveringNode, null) || getMakeVariableDeclarationFinalProposals(context, coveringNode, null); } return false; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/412e5a102621d2071804c682d598c21813c57214/QuickAssistProcessor.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 711, 2610, 1486, 12, 45, 9267, 1042, 819, 13, 1216, 30015, 288, 202, 202, 9053, 907, 5590, 310, 907, 33, 819, 18, 588, 8084, 310, 907, 5621, 202, 202, 430, 261, 3165, 310, 907, 480, 446, 13, 288, 1082, 202, 2463, 1927, 505, 7044, 774, 21845, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 4170, 1069, 2042, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 16, 629, 16, 446, 13, 9506, 202, 20081, 336, 4910, 774, 3092, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 10833, 2964, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 336, 4910, 786, 774, 974, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 25762, 3092, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 336, 986, 29987, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 336, 986, 12427, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 1322, 1127, 3092, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 336, 986, 1768, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 12634, 14729, 11698, 9906, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 25667, 382, 8051, 797, 626, 22536, 12, 2472, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 711, 2610, 1486, 12, 45, 9267, 1042, 819, 13, 1216, 30015, 288, 202, 202, 9053, 907, 5590, 310, 907, 33, 819, 18, 588, 8084, 310, 907, 5621, 202, 202, 430, 261, 3165, 310, 907, 480, 446, 13, 288, 1082, 202, 2463, 1927, 505, 7044, 774, 21845, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 4170, 1069, 2042, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 16, 629, 16, 446, 13, 9506, 202, 20081, 336, 4910, 774, 3092, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 10833, 2964, 626, 22536, 12, 2472, 16, 5590, 310, 907, 16, 446, 13, 9506, 202, 20081, 2 ]
if (family.element.equals(child)) return true;
if (family.element.equals(child)) { return true; }
protected void startFetchingDeferredChildren(final Object parent, final IDeferredWorkbenchAdapter adapter, final PendingUpdateAdapter placeholder) { final IElementCollector collector = createElementCollector(parent, placeholder); // Cancel any jobs currently fetching children for the same parent // instance. cancel(parent); String jobName = getFetchJobName(parent, adapter); Job job = new Job(jobName) { /* (non-Javadoc) * @see org.eclipse.core.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus run(IProgressMonitor monitor) { adapter.fetchDeferredChildren(parent, collector, monitor); if(monitor.isCanceled()) return Status.CANCEL_STATUS; return Status.OK_STATUS; } /* (non-Javadoc) * @see org.eclipse.core.jobs.Job#belongsTo(java.lang.Object) */ public boolean belongsTo(Object family) { if (family instanceof DeferredContentFamily) { DeferredContentFamily contentFamily = (DeferredContentFamily) family; if (contentFamily.manager == DeferredTreeContentManager.this) return isParent(contentFamily, parent); } return false; } /** * Check if the parent of element is equal to the parent used in * this job. * * @param family * The DeferredContentFamily that defines a potential * ancestor of the current parent in a particualr manager. * @param child * The object to check against. * @return boolean <code>true</code> if the child or one of its * parents are the same as the element of the family. */ 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); } /** * Get the workbench adapter for the element. * * @param element * The object we are adapting to. */ private IWorkbenchAdapter getWorkbenchAdapter(Object element) { if (element instanceof IWorkbenchAdapter) return (IWorkbenchAdapter) element; if (!(element instanceof IAdaptable)) return null; Object workbenchAdapter = ((IAdaptable) element) .getAdapter(IWorkbenchAdapter.class); if (workbenchAdapter == null) return null; return (IWorkbenchAdapter) workbenchAdapter; } }; job.addJobChangeListener(new JobChangeAdapter() { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.JobChangeAdapter#done(org.eclipse.core.runtime.jobs.IJobChangeEvent) */ public void done(IJobChangeEvent event) { runClearPlaceholderJob(placeholder); } }); job.setRule(adapter.getRule(parent)); if (progressService == null) job.schedule(); else progressService.schedule(job); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/DeferredTreeContentManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 787, 30806, 16886, 4212, 12, 6385, 1033, 982, 16, 5411, 727, 467, 16886, 2421, 22144, 4216, 4516, 16, 5411, 727, 16034, 1891, 4216, 6695, 13, 288, 3639, 727, 467, 1046, 7134, 8543, 273, 6310, 7134, 12, 2938, 16, 7734, 6695, 1769, 3639, 368, 10347, 1281, 6550, 4551, 16191, 2325, 364, 326, 1967, 982, 3639, 368, 791, 18, 3639, 3755, 12, 2938, 1769, 3639, 514, 17833, 273, 2812, 1593, 29425, 12, 2938, 16, 4516, 1769, 3639, 3956, 1719, 273, 394, 3956, 12, 4688, 461, 13, 288, 5411, 1748, 261, 5836, 17, 24060, 13, 2398, 380, 632, 5946, 2358, 18, 20416, 18, 3644, 18, 10088, 18, 2278, 7, 2681, 12, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 13, 2398, 1195, 5411, 1071, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 7734, 4516, 18, 5754, 16886, 4212, 12, 2938, 16, 8543, 16, 6438, 1769, 7734, 309, 12, 10259, 18, 291, 23163, 10756, 1171, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 9506, 202, 2463, 2685, 18, 3141, 67, 8608, 31, 5411, 289, 15604, 1748, 261, 5836, 17, 24060, 13, 2398, 380, 632, 5946, 2358, 18, 20416, 18, 3644, 18, 10088, 18, 2278, 7, 13285, 27192, 12, 6290, 18, 4936, 18, 921, 13, 2398, 1195, 5411, 1071, 1250, 11081, 774, 12, 921, 6755, 13, 288, 2398, 202, 430, 261, 9309, 1276, 12816, 1350, 9203, 13, 288, 2398, 202, 202, 16886, 1350, 9203, 913, 9203, 273, 261, 16886, 1350, 9203, 13, 6755, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 787, 30806, 16886, 4212, 12, 6385, 1033, 982, 16, 5411, 727, 467, 16886, 2421, 22144, 4216, 4516, 16, 5411, 727, 16034, 1891, 4216, 6695, 13, 288, 3639, 727, 467, 1046, 7134, 8543, 273, 6310, 7134, 12, 2938, 16, 7734, 6695, 1769, 3639, 368, 10347, 1281, 6550, 4551, 16191, 2325, 364, 326, 1967, 982, 3639, 368, 791, 18, 3639, 3755, 12, 2938, 1769, 3639, 514, 17833, 273, 2812, 1593, 29425, 12, 2938, 16, 4516, 1769, 3639, 3956, 1719, 273, 394, 3956, 12, 4688, 461, 13, 288, 5411, 1748, 261, 5836, 17, 24060, 13, 2398, 380, 632, 5946, 2358, 18, 20416, 18, 3644, 18, 10088, 18, 2278, 7, 2681, 12, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 2 ]
public void addSubtreeToUpdate(DefaultMutableTreeNode rootNode) { if (LOG.isDebugEnabled()) { LOG.debug("addSubtreeToUpdate:" + rootNode); } for (Iterator iterator = myNodesToUpdate.iterator(); iterator.hasNext();) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) iterator.next(); if (rootNode.isNodeAncestor(node)){ return; } else if (node.isNodeAncestor(rootNode)){ iterator.remove(); } } myNodesToUpdate.add(rootNode); myAlarm.cancelAllRequests(); myAlarm.addRequest( new Runnable() { public void run() { if (myTreeBuilder.isDisposed()) return; if (myTreeBuilder.getTreeStructure().hasSomethingToCommit()) { myAlarm.addRequest(this, myDelay); return; } myTreeBuilder.getTreeStructure().commit(); //if (myAlarm.getActiveRequestCount() > 0) return; // do not update if commit caused some changes try { performUpdate(); } catch(RuntimeException e) { LOG.error(myTreeBuilder.getClass().getName(), e); } } }, myDelay, ModalityState.stateForComponent(myTreeBuilder.getTree()) ); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/82cb5be55c1112ea812db4c1117831ba147d5081/AbstractTreeUpdater.java/clean/source/com/intellij/ide/util/treeView/AbstractTreeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 18615, 21267, 12, 1868, 19536, 12513, 10181, 13, 288, 565, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1377, 2018, 18, 4148, 2932, 1289, 18615, 21267, 2773, 397, 10181, 1769, 565, 289, 565, 364, 261, 3198, 2775, 273, 3399, 3205, 21267, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 288, 1377, 2989, 19536, 12513, 756, 273, 261, 1868, 19536, 12513, 13, 2775, 18, 4285, 5621, 1377, 309, 261, 3085, 907, 18, 291, 907, 15637, 12, 2159, 3719, 95, 3639, 327, 31, 1377, 289, 1377, 469, 309, 261, 2159, 18, 291, 907, 15637, 12, 3085, 907, 3719, 95, 3639, 2775, 18, 4479, 5621, 1377, 289, 565, 289, 565, 3399, 3205, 21267, 18, 1289, 12, 3085, 907, 1769, 565, 3399, 16779, 18, 10996, 1595, 6421, 5621, 565, 3399, 16779, 18, 1289, 691, 12, 1377, 394, 10254, 1435, 288, 3639, 1071, 918, 1086, 1435, 288, 1850, 309, 261, 4811, 25060, 18, 291, 1669, 7423, 10756, 327, 31, 1850, 309, 261, 4811, 25060, 18, 588, 2471, 6999, 7675, 5332, 24332, 774, 5580, 10756, 288, 5411, 3399, 16779, 18, 1289, 691, 12, 2211, 16, 3399, 6763, 1769, 5411, 327, 31, 1850, 289, 1850, 3399, 25060, 18, 588, 2471, 6999, 7675, 7371, 5621, 1850, 368, 430, 261, 4811, 16779, 18, 588, 3896, 691, 1380, 1435, 405, 374, 13, 327, 31, 368, 741, 486, 1089, 309, 3294, 15848, 2690, 3478, 1850, 775, 288, 5411, 3073, 1891, 5621, 1850, 289, 1044, 12, 11949, 425, 13, 288, 5411, 2018, 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, 282, 1071, 918, 527, 18615, 21267, 12, 1868, 19536, 12513, 10181, 13, 288, 565, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 288, 1377, 2018, 18, 4148, 2932, 1289, 18615, 21267, 2773, 397, 10181, 1769, 565, 289, 565, 364, 261, 3198, 2775, 273, 3399, 3205, 21267, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 288, 1377, 2989, 19536, 12513, 756, 273, 261, 1868, 19536, 12513, 13, 2775, 18, 4285, 5621, 1377, 309, 261, 3085, 907, 18, 291, 907, 15637, 12, 2159, 3719, 95, 3639, 327, 31, 1377, 289, 1377, 469, 309, 261, 2159, 18, 291, 907, 15637, 12, 3085, 907, 3719, 95, 3639, 2775, 18, 4479, 5621, 1377, 289, 565, 289, 565, 3399, 3205, 21267, 18, 1289, 12, 2 ]
addFailures( reporter, artifact, "duplicate",
addFailure( reporter, artifact, "duplicate",
public void processArtifact( Artifact artifact, Model model, ReportingDatabase reporter ) { ArtifactRepository repository = artifact.getRepository(); if ( artifact.getFile() != null ) { RepositoryArtifactIndex index = indexFactory.createStandardIndex( new File( indexDirectory ) ); String checksum = null; try { checksum = digester.calc( artifact.getFile() ); } catch ( DigesterException e ) { addWarning( reporter, artifact, null, "Unable to generate checksum for " + artifact.getFile() + ": " + e ); } if ( checksum != null ) { try { List results = index.search( new LuceneQuery( new TermQuery( new Term( StandardIndexRecordFields.MD5, checksum.toLowerCase() ) ) ) ); if ( !results.isEmpty() ) { for ( Iterator i = results.iterator(); i.hasNext(); ) { StandardArtifactIndexRecord result = (StandardArtifactIndexRecord) i.next(); //make sure it is not the same artifact if ( !result.getFilename().equals( repository.pathOf( artifact ) ) ) { //report only duplicates from the same groupId String groupId = artifact.getGroupId(); if ( groupId.equals( result.getGroupId() ) ) { addFailures( reporter, artifact, "duplicate", "Found duplicate for " + artifact.getId() ); } } } } } catch ( RepositoryIndexSearchException e ) { addWarning( reporter, artifact, null, "Failed to search in index" + e ); } } } else { addWarning( reporter, artifact, null, "Artifact file is null" ); } }
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/50d424f8c09b9390d611d87824586b28d39e77c5/DuplicateArtifactFileReportProcessor.java/buggy/archiva-reports-standard/src/main/java/org/apache/maven/archiva/reporting/DuplicateArtifactFileReportProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 7581, 12, 14022, 6462, 16, 3164, 938, 16, 8706, 310, 4254, 11528, 262, 565, 288, 3639, 14022, 3305, 3352, 273, 6462, 18, 588, 3305, 5621, 3639, 309, 261, 6462, 18, 29925, 1435, 480, 446, 262, 3639, 288, 5411, 6281, 7581, 1016, 770, 273, 770, 1733, 18, 2640, 8336, 1016, 12, 394, 1387, 12, 770, 2853, 262, 11272, 5411, 514, 6697, 273, 446, 31, 5411, 775, 5411, 288, 7734, 6697, 273, 23821, 18, 12448, 12, 6462, 18, 29925, 1435, 11272, 5411, 289, 5411, 1044, 261, 11678, 7654, 503, 425, 262, 5411, 288, 7734, 527, 6210, 12, 11528, 16, 6462, 16, 446, 16, 18701, 315, 3370, 358, 2103, 6697, 364, 315, 397, 6462, 18, 29925, 1435, 397, 6398, 315, 397, 425, 11272, 5411, 289, 5411, 309, 261, 6697, 480, 446, 262, 5411, 288, 7734, 775, 7734, 288, 10792, 987, 1686, 273, 770, 18, 3072, 12, 394, 511, 14152, 1138, 12, 13491, 394, 6820, 1138, 12, 394, 6820, 12, 8263, 1016, 2115, 2314, 18, 6188, 25, 16, 6697, 18, 869, 5630, 1435, 262, 262, 262, 11272, 10792, 309, 261, 401, 4717, 18, 291, 1921, 1435, 262, 10792, 288, 13491, 364, 261, 4498, 277, 273, 1686, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 13491, 288, 18701, 8263, 7581, 1016, 2115, 563, 273, 261, 8336, 7581, 1016, 2115, 13, 277, 18, 4285, 5621, 18701, 368, 6540, 3071, 518, 353, 486, 326, 1967, 6462, 18701, 309, 261, 401, 2088, 18, 588, 5359, 7675, 14963, 12, 3352, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1207, 7581, 12, 14022, 6462, 16, 3164, 938, 16, 8706, 310, 4254, 11528, 262, 565, 288, 3639, 14022, 3305, 3352, 273, 6462, 18, 588, 3305, 5621, 3639, 309, 261, 6462, 18, 29925, 1435, 480, 446, 262, 3639, 288, 5411, 6281, 7581, 1016, 770, 273, 770, 1733, 18, 2640, 8336, 1016, 12, 394, 1387, 12, 770, 2853, 262, 11272, 5411, 514, 6697, 273, 446, 31, 5411, 775, 5411, 288, 7734, 6697, 273, 23821, 18, 12448, 12, 6462, 18, 29925, 1435, 11272, 5411, 289, 5411, 1044, 261, 11678, 7654, 503, 425, 262, 5411, 288, 7734, 527, 6210, 12, 11528, 16, 6462, 16, 446, 16, 18701, 315, 3370, 358, 2103, 6697, 364, 315, 397, 6462, 18, 29925, 1435, 397, 2 ]
synchronized (_readyJobs) {
synchronized (_jobLock) {
public void addJob(Job job) { if (job == null) return; if (job instanceof JobImpl) ((JobImpl)job).addedToQueue(); long numReady = 0; boolean alreadyExists = false; synchronized (_readyJobs) { if (_readyJobs.contains(job)) alreadyExists = true; numReady = _readyJobs.size(); } if (!alreadyExists) { synchronized (_timedJobs) { if (_timedJobs.contains(job)) alreadyExists = true; } } _context.statManager().addRateData("jobQueue.readyJobs", numReady, 0); if (shouldDrop(job, numReady)) { if (_log.shouldLog(Log.WARN)) _log.warn("Dropping job due to overload! # ready jobs: " + numReady + ": job = " + job); job.dropped(); _context.statManager().addRateData("jobQueue.droppedJobs", 1, 1); synchronized (_readyJobs) { _readyJobs.notifyAll(); } return; } if (!alreadyExists) { if (job.getTiming().getStartAfter() <= _context.clock().now()) { // don't skew us - its 'start after' its been queued, or later job.getTiming().setStartAfter(_context.clock().now()); if (job instanceof JobImpl) ((JobImpl)job).madeReady(); synchronized (_readyJobs) { _readyJobs.add(job); _readyJobs.notifyAll(); } } else { synchronized (_timedJobs) { _timedJobs.add(job); _timedJobs.notifyAll(); } } } else { if (_log.shouldLog(Log.DEBUG)) _log.debug("Not adding already enqueued job " + job.getName()); } return; }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/0c049f39d96cf62b9f8058619ba2591b804f993f/JobQueue.java/buggy/router/java/src/net/i2p/router/JobQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2278, 12, 2278, 1719, 13, 288, 3639, 309, 261, 4688, 422, 446, 13, 327, 31, 3639, 309, 261, 4688, 1276, 3956, 2828, 13, 5411, 14015, 2278, 2828, 13, 4688, 2934, 9665, 774, 3183, 5621, 3639, 1525, 818, 8367, 273, 374, 31, 3639, 1250, 1818, 4002, 273, 629, 31, 3639, 3852, 261, 67, 4688, 2531, 13, 288, 5411, 309, 261, 67, 1672, 7276, 18, 12298, 12, 4688, 3719, 7734, 1818, 4002, 273, 638, 31, 5411, 818, 8367, 273, 389, 1672, 7276, 18, 1467, 5621, 3639, 289, 3639, 309, 16051, 17583, 4002, 13, 288, 5411, 3852, 261, 67, 20905, 7276, 13, 288, 7734, 309, 261, 67, 20905, 7276, 18, 12298, 12, 4688, 3719, 10792, 1818, 4002, 273, 638, 31, 5411, 289, 3639, 289, 3639, 389, 2472, 18, 5642, 1318, 7675, 1289, 4727, 751, 2932, 4688, 3183, 18, 1672, 7276, 3113, 818, 8367, 16, 374, 1769, 3639, 309, 261, 13139, 7544, 12, 4688, 16, 818, 8367, 3719, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 27999, 3719, 7734, 389, 1330, 18, 8935, 2932, 7544, 1382, 1719, 6541, 358, 30402, 5, 225, 468, 5695, 6550, 30, 315, 21821, 397, 818, 8367, 397, 6398, 1719, 273, 315, 397, 1719, 1769, 5411, 1719, 18, 7285, 1845, 5621, 5411, 389, 2472, 18, 5642, 1318, 7675, 1289, 4727, 751, 2932, 4688, 3183, 18, 7285, 1845, 7276, 3113, 404, 16, 404, 1769, 5411, 3852, 261, 67, 4688, 2531, 13, 288, 7734, 389, 1672, 7276, 18, 12336, 1595, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 2278, 12, 2278, 1719, 13, 288, 3639, 309, 261, 4688, 422, 446, 13, 327, 31, 3639, 309, 261, 4688, 1276, 3956, 2828, 13, 5411, 14015, 2278, 2828, 13, 4688, 2934, 9665, 774, 3183, 5621, 3639, 1525, 818, 8367, 273, 374, 31, 3639, 1250, 1818, 4002, 273, 629, 31, 3639, 3852, 261, 67, 4688, 2531, 13, 288, 5411, 309, 261, 67, 1672, 7276, 18, 12298, 12, 4688, 3719, 7734, 1818, 4002, 273, 638, 31, 5411, 818, 8367, 273, 389, 1672, 7276, 18, 1467, 5621, 3639, 289, 3639, 309, 16051, 17583, 4002, 13, 288, 5411, 3852, 261, 67, 20905, 7276, 13, 288, 7734, 309, 261, 67, 20905, 7276, 18, 12298, 12, 4688, 3719, 10792, 1818, 4002, 273, 2 ]
TestHelper helper = new TestHelper("A"); helper.privateMethod(); TestHelper.staticPrivateMethod();
TestHelper helper = new TestHelper("A"); helper.privateMethod(); TestHelper.staticPrivateMethod();
public static void removeWarningsFromEclipse() { TestHelper helper = new TestHelper("A"); helper.privateMethod(); TestHelper.staticPrivateMethod(); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/5824da07523b18e569515e71bd0efab31291d7ec/TestHelper.java/buggy/test/org/jruby/test/TestHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1206, 4312, 1265, 23057, 10472, 1435, 288, 377, 202, 4709, 2276, 4222, 273, 394, 7766, 2276, 2932, 37, 8863, 377, 202, 4759, 18, 1152, 1305, 5621, 377, 202, 4709, 2276, 18, 3845, 6014, 1305, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1206, 4312, 1265, 23057, 10472, 1435, 288, 377, 202, 4709, 2276, 4222, 273, 394, 7766, 2276, 2932, 37, 8863, 377, 202, 4759, 18, 1152, 1305, 5621, 377, 202, 4709, 2276, 18, 3845, 6014, 1305, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void endGeneralEntity(String name, Augmentations augs) throws XNIException { if (DEBUG_EVENTS) { System.out.println("==>endGeneralEntity: ("+name+")"); } if (!fDeferNodeExpansion) { if (fFilterReject) { return; } setCharacterData(true); if (fDocumentType != null) { // get current entity declaration NamedNodeMap entities = fDocumentType.getEntities(); fCurrentEntityDecl = (EntityImpl) entities.getNamedItem(name); if (fCurrentEntityDecl != null) { if (fCurrentEntityDecl != null && fCurrentEntityDecl.getFirstChild() == null) { fCurrentEntityDecl.setReadOnly(false, true); Node child = fCurrentNode.getFirstChild(); while (child != null) { Node copy = child.cloneNode(true); fCurrentEntityDecl.appendChild(copy); child = child.getNextSibling(); } fCurrentEntityDecl.setReadOnly(true, true); //entities.setNamedItem(fCurrentEntityDecl); } fCurrentEntityDecl = null; } } boolean removeEntityRef = false; if (fCreateEntityRefNodes) { if (fDocumentImpl != null) { // Make entity ref node read only ((NodeImpl)fCurrentNode).setReadOnly(true, true); } if (fDOMFilter !=null && (fDOMFilter.getWhatToShow() & NodeFilter.SHOW_ENTITY_REFERENCE)!= 0) { short code = fDOMFilter.acceptNode(fCurrentNode); switch (code) { case LSParserFilter.FILTER_INTERRUPT:{ throw new RuntimeException("The normal processing of the document was interrupted."); } case LSParserFilter.FILTER_REJECT:{ Node parent = fCurrentNode.getParentNode(); parent.removeChild(fCurrentNode); fCurrentNode = parent; return; } case LSParserFilter.FILTER_SKIP: { // make sure we don't loose chars if next event is characters() fFirstChunk = true; removeEntityRef = true; break; } default: { fCurrentNode = fCurrentNode.getParentNode(); } } } else { fCurrentNode = fCurrentNode.getParentNode(); } } if (!fCreateEntityRefNodes || removeEntityRef) { // move entity reference children to the list of // siblings of its parent and remove entity reference NodeList children = fCurrentNode.getChildNodes(); Node parent = fCurrentNode.getParentNode(); int length = children.getLength(); if (length > 0) { // get previous sibling of the entity reference Node node = fCurrentNode.getPreviousSibling(); // normalize text nodes Node child = children.item(0); if (node != null && node.getNodeType() == Node.TEXT_NODE && child.getNodeType() == Node.TEXT_NODE) { ((Text)node).appendData(child.getNodeValue()); fCurrentNode.removeChild(child); } else { node = parent.insertBefore(child, fCurrentNode); handleBaseURI(node); } for (int i=1;i <length;i++) { node = parent.insertBefore(children.item(0), fCurrentNode); handleBaseURI(node); } } // length > 0 parent.removeChild(fCurrentNode); fCurrentNode = parent; } } else { if (fDocumentTypeIndex != -1) { // find corresponding Entity decl int node = fDeferredDocumentImpl.getLastChild(fDocumentTypeIndex, false); while (node != -1) { short nodeType = fDeferredDocumentImpl.getNodeType(node, false); if (nodeType == Node.ENTITY_NODE) { String nodeName = fDeferredDocumentImpl.getNodeName(node, false); if (nodeName.equals(name)) { fDeferredEntityDecl = node; break; } } node = fDeferredDocumentImpl.getRealPrevSibling(node, false); } } if (fDeferredEntityDecl != -1 && fDeferredDocumentImpl.getLastChild(fDeferredEntityDecl, false) == -1) { // entity definition exists and it does not have any children int prevIndex = -1; int childIndex = fDeferredDocumentImpl.getLastChild(fCurrentNodeIndex, false); while (childIndex != -1) { int cloneIndex = fDeferredDocumentImpl.cloneNode(childIndex, true); fDeferredDocumentImpl.insertBefore(fDeferredEntityDecl, cloneIndex, prevIndex); prevIndex = cloneIndex; childIndex = fDeferredDocumentImpl.getRealPrevSibling(childIndex, false); } } if (fCreateEntityRefNodes) { fCurrentNodeIndex = fDeferredDocumentImpl.getParentNode(fCurrentNodeIndex, false); } else { //!fCreateEntityRefNodes // move children of entity ref before the entity ref. // remove entity ref. // holds a child of entity ref int childIndex = fDeferredDocumentImpl.getLastChild(fCurrentNodeIndex, false); int parentIndex = fDeferredDocumentImpl.getParentNode(fCurrentNodeIndex, false); int prevIndex = fCurrentNodeIndex; int lastChild = childIndex; int sibling = -1; while (childIndex != -1) { handleBaseURI(childIndex); sibling = fDeferredDocumentImpl.getRealPrevSibling(childIndex, false); fDeferredDocumentImpl.insertBefore(parentIndex, childIndex, prevIndex); prevIndex = childIndex; childIndex = sibling; } if(lastChild != -1) fDeferredDocumentImpl.setAsLastChild(parentIndex, lastChild); else{ sibling = fDeferredDocumentImpl.getRealPrevSibling(prevIndex, false); fDeferredDocumentImpl.setAsLastChild(parentIndex, sibling); } fCurrentNodeIndex = parentIndex; } fDeferredEntityDecl = -1; } } // endGeneralEntity(String, Augmentations)
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/9d1dbf89c75cf6f564facc2b605dd9f2cf2dac4d/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 12580, 1943, 12, 780, 508, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 29221, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 631, 34, 409, 12580, 1943, 30, 7566, 15, 529, 9078, 2225, 1769, 3639, 289, 3639, 309, 16051, 74, 758, 586, 907, 2966, 12162, 13, 288, 5411, 309, 261, 74, 1586, 21705, 13, 288, 7734, 327, 31, 5411, 289, 5411, 444, 7069, 751, 12, 3767, 1769, 2398, 309, 261, 74, 2519, 559, 480, 446, 13, 288, 7734, 368, 336, 783, 1522, 8266, 7734, 9796, 907, 863, 5140, 273, 284, 2519, 559, 18, 588, 8108, 5621, 7734, 284, 3935, 1943, 3456, 273, 261, 1943, 2828, 13, 5140, 18, 588, 7604, 1180, 12, 529, 1769, 7734, 309, 261, 74, 3935, 1943, 3456, 480, 446, 13, 288, 27573, 309, 261, 74, 3935, 1943, 3456, 480, 446, 597, 284, 3935, 1943, 3456, 18, 588, 3759, 1763, 1435, 422, 446, 13, 288, 13491, 284, 3935, 1943, 3456, 18, 542, 12066, 12, 5743, 16, 638, 1769, 13491, 2029, 1151, 273, 284, 3935, 907, 18, 588, 3759, 1763, 5621, 13491, 1323, 261, 3624, 480, 446, 13, 288, 18701, 2029, 1610, 273, 1151, 18, 14056, 907, 12, 3767, 1769, 18701, 284, 3935, 1943, 3456, 18, 6923, 1763, 12, 3530, 1769, 18701, 1151, 273, 1151, 18, 588, 2134, 10291, 5621, 7682, 289, 13491, 284, 3935, 1943, 3456, 18, 542, 12066, 12, 3767, 16, 638, 1769, 13491, 368, 9996, 18, 542, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 12580, 1943, 12, 780, 508, 16, 432, 14870, 1012, 279, 9024, 13, 1216, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 29221, 13, 288, 5411, 2332, 18, 659, 18, 8222, 2932, 631, 34, 409, 12580, 1943, 30, 7566, 15, 529, 9078, 2225, 1769, 3639, 289, 3639, 309, 16051, 74, 758, 586, 907, 2966, 12162, 13, 288, 5411, 309, 261, 74, 1586, 21705, 13, 288, 7734, 327, 31, 5411, 289, 5411, 444, 7069, 751, 12, 3767, 1769, 2398, 309, 261, 74, 2519, 559, 480, 446, 13, 288, 7734, 368, 336, 783, 1522, 8266, 7734, 9796, 907, 863, 5140, 273, 284, 2519, 559, 18, 588, 8108, 5621, 7734, 284, 3935, 1943, 3456, 273, 261, 1943, 2 ]
saveAs( OUTPUT_FILE_WITH_EMPTY_PROPS ); assertTrue( compareTextFile( GOLDEN_FILE_WITH_EMPTY_PROPS, OUTPUT_FILE_WITH_EMPTY_PROPS ) );
save( ); assertTrue( compareTextFile( GOLDEN_FILE_WITH_EMPTY_PROPS ) );
public void testUpdateROMDataSetWithODADataSet( ) throws Exception { openDesign( INPUT_FILE_WITH_EMPTY_PROPS ); OdaDataSetHandle setHandle = (OdaDataSetHandle) designHandle .findDataSet( "myDataSet1" ); //$NON-NLS-1$ DataSetDesign sourceDesign = createDataSetDesign( ); new ModelOdaAdapter( ).updateDataSetHandle( sourceDesign, setHandle, true ); assertTrue( designHandle.getCommandStack( ).canUndo( ) ); assertFalse( designHandle.getCommandStack( ).canRedo( ) ); designHandle.getCommandStack( ).undo( ); assertFalse( designHandle.getCommandStack( ).canUndo( ) ); assertTrue( designHandle.getCommandStack( ).canRedo( ) ); saveAs( OUTPUT_FILE_WITH_EMPTY_PROPS ); assertTrue( compareTextFile( GOLDEN_FILE_WITH_EMPTY_PROPS, OUTPUT_FILE_WITH_EMPTY_PROPS ) ); designHandle.getCommandStack( ).redo( ); saveAs( OUTPUT_FILE1_WITH_EMPTY_PROPS ); assertTrue( compareTextFile( GOLDEN_FILE1_WITH_EMPTY_PROPS, OUTPUT_FILE1_WITH_EMPTY_PROPS ) ); openDesign( INPUT_FILE_WITH_LIB ); // the source is in the library, so no change. setHandle = (OdaDataSetHandle) designHandle.findDataSet( "myDataSet1" ); //$NON-NLS-1$ new ModelOdaAdapter( ).updateDataSetHandle( sourceDesign, setHandle, false ); assertEquals( "Library Data Source One", setHandle.getDataSource( ) //$NON-NLS-1$ .getDisplayName( ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/279e880701212f0b542ee4033d1023e75d24ac39/OdaDataSetAdapterTest.java/clean/model/org.eclipse.birt.report.model.adapter.oda.tests/test/org/eclipse/birt/report/model/adapter/oda/api/OdaDataSetAdapterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 1891, 3942, 13676, 1190, 1212, 37, 13676, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 12943, 67, 3776, 67, 9147, 67, 13625, 67, 3373, 5857, 11272, 202, 202, 51, 2414, 13676, 3259, 444, 3259, 273, 261, 51, 2414, 13676, 3259, 13, 8281, 3259, 9506, 202, 18, 4720, 13676, 12, 315, 4811, 13676, 21, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 13676, 15478, 1084, 15478, 273, 752, 13676, 15478, 12, 11272, 202, 202, 2704, 3164, 51, 2414, 4216, 12, 262, 18, 2725, 13676, 3259, 12, 1084, 15478, 16, 444, 3259, 16, 9506, 202, 3767, 11272, 202, 202, 11231, 5510, 12, 8281, 3259, 18, 588, 2189, 2624, 12, 262, 18, 4169, 31224, 12, 262, 11272, 202, 202, 11231, 8381, 12, 8281, 3259, 18, 588, 2189, 2624, 12, 262, 18, 4169, 3715, 83, 12, 262, 11272, 202, 202, 16934, 3259, 18, 588, 2189, 2624, 12, 262, 18, 31226, 12, 11272, 202, 202, 11231, 8381, 12, 8281, 3259, 18, 588, 2189, 2624, 12, 262, 18, 4169, 31224, 12, 262, 11272, 202, 202, 11231, 5510, 12, 8281, 3259, 18, 588, 2189, 2624, 12, 262, 18, 4169, 3715, 83, 12, 262, 11272, 202, 202, 5688, 1463, 12, 11550, 67, 3776, 67, 9147, 67, 13625, 67, 3373, 5857, 11272, 202, 202, 11231, 5510, 12, 3400, 1528, 812, 12, 611, 11846, 1157, 67, 3776, 67, 9147, 67, 13625, 67, 3373, 5857, 16, 9506, 202, 15527, 67, 3776, 67, 9147, 67, 13625, 67, 3373, 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, 1891, 3942, 13676, 1190, 1212, 37, 13676, 12, 262, 1216, 1185, 202, 95, 202, 202, 3190, 15478, 12, 12943, 67, 3776, 67, 9147, 67, 13625, 67, 3373, 5857, 11272, 202, 202, 51, 2414, 13676, 3259, 444, 3259, 273, 261, 51, 2414, 13676, 3259, 13, 8281, 3259, 9506, 202, 18, 4720, 13676, 12, 315, 4811, 13676, 21, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 13676, 15478, 1084, 15478, 273, 752, 13676, 15478, 12, 11272, 202, 202, 2704, 3164, 51, 2414, 4216, 12, 262, 18, 2725, 13676, 3259, 12, 1084, 15478, 16, 444, 3259, 16, 9506, 202, 3767, 11272, 202, 202, 11231, 5510, 12, 8281, 3259, 18, 588, 2189, 2624, 12, 262, 2 ]
}
}
protected boolean ensureCapacity(int chunk, int index) { // create buffers if (fNodeType == null) { fNodeType = new int[INITIAL_CHUNK_COUNT][]; fNodeName = new Object[INITIAL_CHUNK_COUNT][]; fNodeValue = new Object[INITIAL_CHUNK_COUNT][]; fNodeParent = new int[INITIAL_CHUNK_COUNT][]; fNodeLastChild = new int[INITIAL_CHUNK_COUNT][]; fNodePrevSib = new int[INITIAL_CHUNK_COUNT][]; fNodeURI = new Object[INITIAL_CHUNK_COUNT][]; fNodeExtra = new int[INITIAL_CHUNK_COUNT][]; } // return true if table is already big enough try { return fNodeType[chunk][index] != 0; } // resize the tables catch (ArrayIndexOutOfBoundsException ex) { int newsize = chunk * 2; int[][] newArray = new int[newsize][]; System.arraycopy(fNodeType, 0, newArray, 0, chunk); fNodeType = newArray; Object[][] newStrArray = new Object[newsize][]; System.arraycopy(fNodeName, 0, newStrArray, 0, chunk); fNodeName = newStrArray; newStrArray = new Object[newsize][]; System.arraycopy(fNodeValue, 0, newStrArray, 0, chunk); fNodeValue = newStrArray; newArray = new int[newsize][]; System.arraycopy(fNodeParent, 0, newArray, 0, chunk); fNodeParent = newArray; newArray = new int[newsize][]; System.arraycopy(fNodeLastChild, 0, newArray, 0, chunk); fNodeLastChild = newArray; newArray = new int[newsize][]; System.arraycopy(fNodePrevSib, 0, newArray, 0, chunk); fNodePrevSib = newArray; newStrArray = new Object[newsize][]; System.arraycopy(fNodeURI, 0, newStrArray, 0, chunk); fNodeURI = newStrArray; newArray = new int[newsize][]; System.arraycopy(fNodeExtra, 0, newArray, 0, chunk); fNodeExtra = newArray; } catch (NullPointerException ex) { // ignore } // create chunks createChunk(fNodeType, chunk); createChunk(fNodeName, chunk); createChunk(fNodeValue, chunk); createChunk(fNodeParent, chunk); createChunk(fNodeLastChild, chunk); createChunk(fNodePrevSib, chunk); createChunk(fNodeURI, chunk); createChunk(fNodeExtra, chunk); // success return true; } // ensureCapacity(int,int):boolean
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/976f5dddd232690346410c06dc0fd1e136634211/DeferredDocumentImpl.java/buggy/src/org/apache/xerces/dom/DeferredDocumentImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 3387, 7437, 12, 474, 2441, 16, 509, 770, 13, 288, 3639, 368, 752, 9664, 3639, 309, 261, 74, 15101, 422, 446, 13, 288, 5411, 284, 15101, 4202, 273, 394, 509, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 18948, 4202, 273, 394, 1033, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 620, 1377, 273, 394, 1033, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 3054, 377, 273, 394, 509, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 3024, 1763, 225, 273, 394, 509, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 9958, 25291, 565, 273, 394, 509, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 3098, 3639, 273, 394, 1033, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 7800, 1377, 273, 394, 509, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 3639, 289, 3639, 368, 327, 638, 309, 1014, 353, 1818, 5446, 7304, 3639, 775, 288, 5411, 327, 284, 15101, 63, 6551, 6362, 1615, 65, 480, 374, 31, 3639, 289, 3639, 368, 7041, 326, 4606, 3639, 1044, 261, 1076, 30548, 431, 13, 288, 5411, 509, 394, 1467, 273, 2441, 380, 576, 31, 5411, 509, 63, 6362, 65, 11653, 273, 394, 509, 63, 2704, 1467, 6362, 15533, 5411, 2332, 18, 1126, 3530, 12, 74, 15101, 16, 374, 16, 11653, 16, 374, 16, 2441, 1769, 5411, 284, 15101, 273, 11653, 31, 5411, 1033, 63, 6362, 65, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 3387, 7437, 12, 474, 2441, 16, 509, 770, 13, 288, 3639, 368, 752, 9664, 3639, 309, 261, 74, 15101, 422, 446, 13, 288, 5411, 284, 15101, 4202, 273, 394, 509, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 18948, 4202, 273, 394, 1033, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 620, 1377, 273, 394, 1033, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 3054, 377, 273, 394, 509, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 3024, 1763, 225, 273, 394, 509, 63, 28497, 67, 26464, 67, 7240, 6362, 15533, 5411, 284, 907, 9958, 25291, 565, 273, 394, 509, 63, 28497, 67, 26464, 67, 2 ]