rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
public static Element parseJSON(String js) throws SoapParseException { return parseJSON(js, JavaScriptElement.mFactory); }
public static Element parseJSON(InputStream is) throws SoapParseException { return parseJSON(is, JavaScriptElement.mFactory); }
public static Element parseJSON(String js) throws SoapParseException { return parseJSON(js, JavaScriptElement.mFactory); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0c9fab6c109d16c5d723fd25631e62949944518a/Element.java/buggy/ZimbraServer/src/java/com/zimbra/soap/Element.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3010, 1109, 2986, 12, 780, 3828, 13, 1216, 21789, 13047, 288, 327, 1109, 2986, 12, 2924, 16, 11905, 1046, 18, 81, 1733, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3010, 1109, 2986, 12, 780, 3828, 13, 1216, 21789, 13047, 288, 327, 1109, 2986, 12, 2924, 16, 11905, 1046, 18, 81, 1733, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern.toLowerCase())+"' ";
sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern)+"' ";
public java.sql.ResultSet getColumnPrivileges(String catalog, String schema, String table, String columnNamePattern) throws SQLException { Field f[] = new Field[8]; Vector v = new Vector(); if (table == null) table = "%"; if (columnNamePattern == null) columnNamePattern = "%"; else columnNamePattern = columnNamePattern.toLowerCase(); f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, getMaxNameLength()); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, getMaxNameLength()); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, getMaxNameLength()); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, getMaxNameLength()); f[4] = new Field(connection, "GRANTOR", iVarcharOid, getMaxNameLength()); f[5] = new Field(connection, "GRANTEE", iVarcharOid, getMaxNameLength()); f[6] = new Field(connection, "PRIVILEGE", iVarcharOid, getMaxNameLength()); f[7] = new Field(connection, "IS_GRANTABLE", iVarcharOid, getMaxNameLength()); String sql; if (connection.haveMinimumServerVersion("7.3")) { sql = "SELECT n.nspname,c.relname,u.usename,c.relacl,a.attname "+ " FROM pg_catalog.pg_namespace n, pg_catalog.pg_class c, pg_catalog.pg_user u, pg_catalog.pg_attribute a "+ " WHERE c.relnamespace = n.oid "+ " AND u.usesysid = c.relowner "+ " AND c.oid = a.attrelid "+ " AND c.relkind = 'r' "+ " AND a.attnum > 0 AND NOT a.attisdropped "; if (schema != null && !"".equals(schema)) { sql += " AND n.nspname = '"+escapeQuotes(schema.toLowerCase())+"' "; } } else { sql = "SELECT NULL::text AS nspname,c.relname,u.usename,c.relacl,a.attname "+ "FROM pg_class c, pg_user u,pg_attribute a "+ " WHERE u.usesysid = c.relowner "+ " AND c.oid = a.attrelid "+ " AND a.attnum > 0 "+ " AND c.relkind = 'r' "; } sql += " AND c.relname = '"+escapeQuotes(table.toLowerCase())+"' "; if (columnNamePattern != null && !"".equals(columnNamePattern)) { sql += " AND a.attname LIKE '"+escapeQuotes(columnNamePattern.toLowerCase())+"' "; } sql += " ORDER BY attname "; ResultSet rs = connection.createStatement().executeQuery(sql); while (rs.next()) { byte schemaName[] = rs.getBytes("nspname"); byte tableName[] = rs.getBytes("relname"); byte column[] = rs.getBytes("attname"); String owner = rs.getString("usename"); String acl = rs.getString("relacl"); Hashtable permissions = parseACL(acl); String permNames[] = new String[permissions.size()]; Enumeration e = permissions.keys(); int i=0; while (e.hasMoreElements()) { permNames[i++] = (String)e.nextElement(); } sortStringArray(permNames); for (i=0; i<permNames.length; i++) { byte[] privilege = permNames[i].getBytes(); Vector grantees = (Vector)permissions.get(permNames[i]); for (int j=0; j<grantees.size(); j++) { String grantee = (String)grantees.elementAt(j); String grantable = owner.equals(grantee) ? "YES" : "NO"; byte[][] tuple = new byte[8][]; tuple[0] = null; tuple[1] = schemaName; tuple[2] = tableName; tuple[3] = column; tuple[4] = owner.getBytes(); tuple[5] = grantee.getBytes(); tuple[6] = privilege; tuple[7] = grantable.getBytes(); v.addElement(tuple); } } } rs.close(); return connection.getResultSet(null, f, v, "OK", 1); }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/718820fdcbe37650edf9773102d952e1d9fc6432/AbstractJdbc1DatabaseMetaData.java/clean/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 6716, 27692, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 514, 7578, 3234, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 6716, 27692, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 16, 514, 7578, 3234, 13, 1216, 6483, 202, 95, 202, 202, 974, 284, 8526, 273, 394, 2286, ...
EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(changeEvent);
ChangeListener[] listeners = getChangeListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].stateChanged(changeEvent);
public void fireStateChanged(ChangeEvent e) { EventListener[] ll = listenerList.getListeners(ChangeListener.class); for (int i = 0; i < ll.length; i++) ((ChangeListener)ll[i]).stateChanged(changeEvent); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4452, 1119, 5033, 12, 20930, 425, 13, 225, 288, 565, 22090, 8526, 6579, 273, 2991, 682, 18, 588, 5583, 12, 15744, 18, 1106, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4452, 1119, 5033, 12, 20930, 425, 13, 225, 288, 565, 22090, 8526, 6579, 273, 2991, 682, 18, 588, 5583, 12, 15744, 18, 1106, 1769, 565, 364, 261, 474, 277, 273, 374, 31, 277, ...
if (isBinary) {
if (binary) {
private int getFinalLOC() { if (isBinary) { return 0; } String revision = null; try { revision = builder.getRevision(name); } catch (final IOException e) { if (!finalRevisionIsDead()) { LOGGER.warning(e.getMessage()); } } try { // if ("1.1".equals(revision)) { // return builder.getLOC(name) + locDelta; // } else { if (!revisions.isEmpty()) { final RevisionData firstAdded = (RevisionData) revisions.get(0); if (!finalRevisionIsDead() && !firstAdded.getRevisionNumber().equals(revision)) { LOGGER.warning("Revision of " + name + " does not match expected revision"); } } return builder.getLOC(name); // } } catch (final NoLineCountException e) { if (!finalRevisionIsDead()) { LOGGER.warning(e.getMessage()); } return approximateFinalLOC(); } }
48585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48585/4e7ce090e642cacf9f92e8fbdc24fab0c88c47c5/FileBuilder.java/buggy/statsvn/src/net/sf/statsvn/input/FileBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2812, 1490, 29450, 1435, 288, 3639, 309, 261, 8578, 13, 288, 5411, 327, 374, 31, 3639, 289, 3639, 514, 6350, 273, 446, 31, 3639, 775, 288, 5411, 6350, 273, 2089, 18, 588, 793...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2812, 1490, 29450, 1435, 288, 3639, 309, 261, 8578, 13, 288, 5411, 327, 374, 31, 3639, 289, 3639, 514, 6350, 273, 446, 31, 3639, 775, 288, 5411, 6350, 273, 2089, 18, 588, 793...
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); FillLayout layout = new FillLayout(); container.setLayout(layout); serverUrlEditor = new StringFieldEditor("", LABEL_SERVER, StringFieldEditor.UNLIMITED, container) { @Override protected boolean doCheckState() { return isValidUrl(getStringValue()); } @Override protected void valueChanged() { super.valueChanged(); getWizard().getContainer().updateButtons(); } }; serverUrlEditor.setErrorMessage("Server path must be a valid http(s):// url"); userNameEditor = new StringFieldEditor("", LABEL_USER, StringFieldEditor.UNLIMITED, container); passwordEditor = new RepositoryStringFieldEditor("", LABEL_PASSWORD, StringFieldEditor.UNLIMITED, container); if (repository != null) { try { serverUrlEditor.setStringValue(repository.getUrl()); userNameEditor.setStringValue(repository.getUserName()); passwordEditor.setStringValue(repository.getPassword()); } catch (Throwable t) { MylarStatusHandler.fail(t, "could not set field value for: " + repository, false); } } // bug 131656: must set echo char after setting value on Mac passwordEditor.getTextControl().setEchoChar('*'); createAdditionalControls(container); validateServerButton = new Button(container, SWT.PUSH); validateServerButton.setText("Validate Settings"); validateServerButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { validateSettings(); } }); setControl(container); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d41c4a120fae710254e27245566966390ce439f9/AbstractRepositorySettingsPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/AbstractRepositorySettingsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 8026, 3744, 3511, 273, 394, 14192, 3744, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 9400, 1478, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 8560, 1769, 202, 202, 8026, 3744, 3511, 273, 394, 14192, 3744, 5621...
return value == ((ZipShort) o).getValue();
return value == ( (ZipShort) o ).getValue();
public boolean equals(Object o) { if (o == null || !(o instanceof ZipShort)) { return false; } return value == ((ZipShort) o).getValue(); }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/ZipShort.java/clean/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/zip/ZipShort.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 320, 13, 288, 3639, 309, 261, 83, 422, 446, 747, 401, 12, 83, 1276, 8603, 4897, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 327, 460, 422, 261, 261, 914...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 320, 13, 288, 3639, 309, 261, 83, 422, 446, 747, 401, 12, 83, 1276, 8603, 4897, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 327, 460, 422, 261, 261, 914...
ColorType col = (ColorType)area.getTrait(Trait.COLOR);
Color col = (Color)area.getTrait(Trait.COLOR);
public void renderLeader(Leader area) { renderInlineAreaBackAndBorders(area); endTextObject(); saveGraphicsState(); int style = area.getRuleStyle(); float startx = (currentIPPosition + area.getBorderAndPaddingWidthStart()) / 1000f; float starty = (currentBPPosition + area.getOffset()) / 1000f; float endx = (currentIPPosition + area.getBorderAndPaddingWidthStart() + area.getIPD()) / 1000f; float ruleThickness = area.getRuleThickness() / 1000f; ColorType col = (ColorType)area.getTrait(Trait.COLOR); try { switch (style) { case EN_SOLID: case EN_DASHED: case EN_DOUBLE: drawBorderLine(startx, starty, endx, starty + ruleThickness, true, true, style, col); break; case EN_DOTTED: clipRect(startx, starty, endx - startx, ruleThickness); //This displaces the dots to the right by half a dot's width //TODO There's room for improvement here gen.concatMatrix(1, 0, 0, 1, ruleThickness / 2, 0); drawBorderLine(startx, starty, endx, starty + ruleThickness, true, true, style, col); break; case EN_GROOVE: case EN_RIDGE: float half = area.getRuleThickness() / 2000f; gen.useRGBColor(lightenColor(toColor(col), 0.6f)); moveTo(startx, starty); lineTo(endx, starty); lineTo(endx, starty + 2 * half); lineTo(startx, starty + 2 * half); closePath(); gen.writeln(" fill newpath"); gen.useRGBColor(toColor(col)); if (style == EN_GROOVE) { moveTo(startx, starty); lineTo(endx, starty); lineTo(endx, starty + half); lineTo(startx + half, starty + half); lineTo(startx, starty + 2 * half); } else { moveTo(endx, starty); lineTo(endx, starty + 2 * half); lineTo(startx, starty + 2 * half); lineTo(startx, starty + half); lineTo(endx - half, starty + half); } closePath(); gen.writeln(" fill newpath"); break; default: throw new UnsupportedOperationException("rule style not supported"); } } catch (IOException ioe) { handleIOTrouble(ioe); } restoreGraphicsState(); super.renderLeader(area); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/ed31364eaf18c370b5fb76ea05c7e84508c2c44c/PSRenderer.java/buggy/src/java/org/apache/fop/render/ps/PSRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1743, 15254, 12, 15254, 5091, 13, 288, 3639, 1743, 10870, 5484, 2711, 1876, 21621, 12, 5036, 1769, 3639, 679, 1528, 921, 5621, 3639, 1923, 17558, 1119, 5621, 3639, 509, 2154, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1743, 15254, 12, 15254, 5091, 13, 288, 3639, 1743, 10870, 5484, 2711, 1876, 21621, 12, 5036, 1769, 3639, 679, 1528, 921, 5621, 3639, 1923, 17558, 1119, 5621, 3639, 509, 2154, 273...
if ( this.contains(gm) ) throw new GroupsException(gm + " is already a member of " + this);
if ( this.contains(gm) ) throw new GroupsException(gm + " is already a member of " + this);
private void checkIfAlreadyMember(IGroupMember gm) throws GroupsException { if ( this.contains(gm) ) throw new GroupsException(gm + " is already a member of " + this); }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/4c34db578b77ba3c1f4c891c4e5bc40fe5d7a231/EntityGroupImpl.java/buggy/source/org/jasig/portal/groups/EntityGroupImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 19130, 9430, 4419, 12, 45, 1114, 4419, 14125, 13, 1216, 14712, 503, 288, 202, 430, 261, 333, 18, 12298, 12, 23336, 13, 262, 202, 202, 12849, 394, 14712, 503, 12, 23336, 397, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 19130, 9430, 4419, 12, 45, 1114, 4419, 14125, 13, 1216, 14712, 503, 288, 202, 430, 261, 333, 18, 12298, 12, 23336, 13, 262, 202, 202, 12849, 394, 14712, 503, 12, 23336, 397, 315, ...
String newStr = getSqueeze(args); if (newStr.equals(getValue())) {
StringBuffer newStr = getSqueeze(args); if (sameAs(newStr)) {
public IRubyObject squeeze_bang(IRubyObject[] args) { String newStr = getSqueeze(args); if (newStr.equals(getValue())) { return getRuntime().getNil(); } setValue(newStr); return this; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 17173, 67, 70, 539, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 202, 780, 394, 1585, 273, 1322, 14652, 12, 1968, 1769, 202, 202, 430, 261, 2704, 1585, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 17173, 67, 70, 539, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 202, 780, 394, 1585, 273, 1322, 14652, 12, 1968, 1769, 202, 202, 430, 261, 2704, 1585, 18...
public final Object postCreate(final TransactionContext tx, final OID oid,
public Object postCreate(final TransactionContext tx, final OID oid,
public final Object postCreate(final TransactionContext tx, final OID oid, final Object object, final Object field, final Object createdId) { return field; }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/3253146e50bfcc6526ac0284fa20a7ffd2f6ec6d/OneToManyRelationResolver.java/buggy/trunk/castor/src/main/org/castor/persist/resolver/OneToManyRelationResolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1603, 1684, 12, 6385, 5947, 1042, 2229, 16, 727, 18026, 7764, 16, 5411, 727, 1033, 733, 16, 727, 1033, 652, 16, 2398, 727, 1033, 2522, 548, 13, 288, 3639, 327, 652, 31, 565,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1603, 1684, 12, 6385, 5947, 1042, 2229, 16, 727, 18026, 7764, 16, 5411, 727, 1033, 733, 16, 727, 1033, 652, 16, 2398, 727, 1033, 2522, 548, 13, 288, 3639, 327, 652, 31, 565,...
if (family.element.equals(child)) return true;
if (family.element.equals(child)) { return true; }
private boolean isParent(DeferredContentFamily family, Object child) { if (family.element.equals(child)) return true; IWorkbenchAdapter workbenchAdapter = getWorkbenchAdapter(child); if (workbenchAdapter == null) return false; Object elementParent = workbenchAdapter.getParent(child); if (elementParent == null) return false; return isParent(family, elementParent); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/DeferredTreeContentManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/progress/DeferredTreeContentManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 3238, 1250, 353, 3054, 12, 16886, 1350, 9203, 6755, 16, 1033, 1151, 13, 288, 7734, 309, 261, 9309, 18, 2956, 18, 14963, 12, 3624, 3719, 10792, 327, 638, 31, 7734, 467, 2421, 22144, 4216,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2398, 3238, 1250, 353, 3054, 12, 16886, 1350, 9203, 6755, 16, 1033, 1151, 13, 288, 7734, 309, 261, 9309, 18, 2956, 18, 14963, 12, 3624, 3719, 10792, 327, 638, 31, 7734, 467, 2421, 22144, 4216,...
model.setProperty(FlexibleJ2EEModuleCreationDataModel.EAR_MODULE_NAME, project.getName());
model.setProperty(J2EEComponentCreationDataModel.EAR_MODULE_NAME, project.getName());
protected void createEarAndStandaloneComposite(Composite parent) { if (model.getBooleanProperty(FlexibleJ2EEModuleCreationDataModel.UI_SHOW_EAR_SECTION)) { Label separator = new Label(parent, SWT.SEPARATOR | SWT.HORIZONTAL); GridData gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 3; separator.setLayoutData(gd); new Label(parent, SWT.NONE); //pad // Create Add to EAR checkbox addToEAR = new Button(parent, SWT.CHECK); addToEAR.setText(J2EEUIMessages.getResourceString(J2EEUIMessages.LINK_MODULETO_EAR_PROJECT)); addToEAR.setSelection(true); gd = new GridData(GridData.FILL_HORIZONTAL); gd.horizontalSpan = 2; addToEAR.setLayoutData(gd); synchHelper.synchCheckbox(addToEAR, FlexibleJ2EEModuleCreationDataModel.ADD_TO_EAR, null); addToEAR.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { handleAddToEarSelection(); } public void widgetDefaultSelected(SelectionEvent e) { //do nothing } }); // Create EAR Group earLabel = new Label(parent, SWT.NONE); earLabel.setText(J2EEUIMessages.getResourceString(J2EEUIMessages.EAR_PROJECT_FOR_MODULE_CREATION)); earCombo = new Combo(parent, SWT.NONE); earCombo.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); newEAR = new Button(parent, SWT.NONE); newEAR.setText(J2EEUIMessages.getResourceString(J2EEUIMessages.NEW_THREE_DOTS_W)); newEAR.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); newEAR.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { handleNewEarSelected(); } public void widgetDefaultSelected(SelectionEvent e) { //do nothing } }); IProject project = getCurrentProject(); if (project != null) model.setProperty(FlexibleJ2EEModuleCreationDataModel.EAR_MODULE_NAME, project.getName()); Control[] deps = new Control[]{earLabel, newEAR}; synchHelper.synchCombo(earCombo, FlexibleJ2EEModuleCreationDataModel.EAR_MODULE_NAME, deps); } }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/3031f53be0adbf835f39609909ba56af3402ccaf/ServerEarAndStandaloneGroup.java/buggy/plugins/org.eclipse.jst.j2ee.ui/j2ee_ui/org/eclipse/jst/j2ee/internal/wizard/ServerEarAndStandaloneGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 25184, 297, 1876, 20612, 12451, 9400, 12, 9400, 982, 13, 288, 202, 202, 430, 261, 2284, 18, 588, 5507, 1396, 12, 19667, 1523, 46, 22, 9383, 3120, 9906, 26349, 18, 5370, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 25184, 297, 1876, 20612, 12451, 9400, 12, 9400, 982, 13, 288, 202, 202, 430, 261, 2284, 18, 588, 5507, 1396, 12, 19667, 1523, 46, 22, 9383, 3120, 9906, 26349, 18, 5370, ...
public void setCompositeKey(Name newCompositeKey)
public synchronized void setCompositeKey(Name newCompositeKey)
public void setCompositeKey(Name newCompositeKey){ compositeKey = newCompositeKey;}
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/0eedd637d189db4452d154e813c65478cd299731/CompositeEntityIdentifier.java/buggy/source/org/jasig/portal/groups/CompositeEntityIdentifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 444, 9400, 653, 12, 461, 394, 9400, 653, 15329, 565, 9635, 653, 273, 394, 9400, 653, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 444, 9400, 653, 12, 461, 394, 9400, 653, 15329, 565, 9635, 653, 273, 394, 9400, 653, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void calcBounds() { Rectangle bounds = getBounds(); if (_font == null) return; if (_fm == null) _fm = Toolkit.getDefaultToolkit().getFontMetrics(_font); int overallW = 0; int numLines = 1; StringTokenizer lines = new StringTokenizer(_curText, "\n\r", true); while (lines.hasMoreTokens()) { String curLine = lines.nextToken(); int chunkW = _fm.stringWidth(curLine); if (curLine.equals("\n") || curLine.equals("\r")) numLines++; else overallW = Math.max(chunkW, overallW); } _lineHeight = _fm.getHeight(); int maxDescent = _fm.getMaxDescent(); int overallH = (_lineHeight + _lineSpacing) * numLines + _topMargin + _botMargin + maxDescent; overallW = Math.max(MIN_TEXT_WIDTH, overallW + _leftMargin + _rightMargin); switch (_justification) { case JUSTIFY_LEFT: break; case JUSTIFY_CENTER: if (_w < overallW) _x -= (overallW - _w) / 2; break; case JUSTIFY_RIGHT: if (_w < overallW) _x -= (overallW - _w); break; } _w = _expandOnly ? Math.max(_w, overallW) : overallW; _h = _expandOnly ? Math.max(_h, overallH) : overallH; }
1732 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1732/0ff531b8527d8f232467fbdc8f396d4c17b9432c/FigText.java/clean/src/org/tigris/gef/presentation/FigText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 7029, 5694, 1435, 288, 565, 13264, 4972, 273, 22107, 5621, 565, 309, 261, 67, 5776, 422, 446, 13, 327, 31, 565, 309, 261, 67, 25089, 422, 446, 13, 389, 25089, 273, 13288, 869...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 7029, 5694, 1435, 288, 565, 13264, 4972, 273, 22107, 5621, 565, 309, 261, 67, 5776, 422, 446, 13, 327, 31, 565, 309, 261, 67, 25089, 422, 446, 13, 389, 25089, 273, 13288, 869...
if(mbr != null && !seen.contains(mbr)) seen.addElement(mbr);
if(mbr != null && !seen.contains(mbr)) seen.addElement(mbr);
public void addToSeenList(Address mbr) { if(mbr != null && !seen.contains(mbr)) seen.addElement(mbr); }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/462c7e2ed6980678c603a434a8eb5bc2e6749ac2/Gossip.java/buggy/src/org/jgroups/protocols/pbcast/Gossip.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9604, 15160, 682, 12, 1887, 312, 2848, 13, 288, 202, 430, 12, 1627, 86, 480, 446, 597, 401, 15156, 18, 12298, 12, 1627, 86, 3719, 202, 565, 5881, 18, 1289, 1046, 12, 1627, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9604, 15160, 682, 12, 1887, 312, 2848, 13, 288, 202, 430, 12, 1627, 86, 480, 446, 597, 401, 15156, 18, 12298, 12, 1627, 86, 3719, 202, 565, 5881, 18, 1289, 1046, 12, 1627, ...
jjCheckNAddStates(40, 43);
jjCheckNAddStates(46, 49);
private final int jjMoveNfa_5(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 16; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if (curChar == 36) { if (kind > 10) kind = 10; jjCheckNAddTwoStates(13, 14); } else if (curChar == 46) jjstateSet[jjnewStateCnt++] = 7; else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 13) kind = 13; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 5: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 56) kind = 56; jjstateSet[jjnewStateCnt++] = 5; break; case 6: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 7; break; case 10: if (curChar == 36 && kind > 10) kind = 10; break; case 12: if (curChar == 36) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 33 && kind > 11) kind = 11; break; case 15: if (curChar != 36) break; if (kind > 10) kind = 10; jjCheckNAddTwoStates(13, 14); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(5); } else if (curChar == 92) jjCheckNAddStates(40, 43); break; case 1: if (kind > 13) kind = 13; break; case 4: case 5: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(5); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L && kind > 57) kind = 57; break; case 8: if (curChar == 92) jjCheckNAddStates(40, 43); break; case 9: if (curChar == 92) jjCheckNAddTwoStates(9, 10); break; case 11: if (curChar == 92) jjCheckNAddTwoStates(11, 12); break; case 13: if (curChar == 92) jjAddStates(46, 47); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 13) kind = 13; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 16 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 25, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 25, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
stringBuffer.append(TEXT_138);
stringBuffer.append(TEXT_143);
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenEditorView genEditor = (GenEditorView) ((Object[]) argument)[0];final GenDiagram genDiagram = genEditor.getEditorGen().getDiagram();final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];final boolean isRichClientPlatform = genDiagram.getEditorGen().getDomainGenModel().isRichClientPlatform();final boolean isEclipseEditor = genEditor.isEclipseEditor();importManager.emitPackageStatement(stringBuffer);importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_1); importManager.registerInnerClass(genEditor.getClassName() + "ContextMenuProvider");if (!isRichClientPlatform) { importManager.registerInnerClass("ResourceTracker");} stringBuffer.append(TEXT_2); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_3); stringBuffer.append(importManager.getImportedName(isEclipseEditor ? "org.eclipse.gmf.runtime.lite.parts.DiagramEditor" : "org.eclipse.gmf.runtime.lite.parts.DiagramViewPart")); stringBuffer.append(TEXT_4); stringBuffer.append(genEditor.getID()); stringBuffer.append(TEXT_5); if (!isRichClientPlatform && isEclipseEditor) { stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceChangeListener")); stringBuffer.append(TEXT_7); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceChangeEvent")); stringBuffer.append(TEXT_8); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_9); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_10); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_11); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_12); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_13); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IResourceDelta")); stringBuffer.append(TEXT_14); /*XXX: make sure unsaved deleted file is handled correctly*/ stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_16); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.ResourcesPlugin")); stringBuffer.append(TEXT_17); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_18); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_19); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_20); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_21); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_23); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_24); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.part.FileEditorInput")); stringBuffer.append(TEXT_25); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Display")); stringBuffer.append(TEXT_26); }if (!isEclipseEditor) { stringBuffer.append(TEXT_27); stringBuffer.append(importManager.getImportedName(genEditor.getActionBarContributorQualifiedClassName())); stringBuffer.append(TEXT_28); } stringBuffer.append(TEXT_29); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_30); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_31); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ComposedAdapterFactory")); stringBuffer.append(TEXT_32); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.UndoAction")); stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.RedoAction")); stringBuffer.append(TEXT_34); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.DeleteAction")); stringBuffer.append(TEXT_35); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_36); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.DirectEditAction")); stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_39); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_40); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_44); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_45); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_48); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_50); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_51); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_52); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.AlignmentAction")); stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IWorkbenchPart")); stringBuffer.append(TEXT_55); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.PositionConstants")); stringBuffer.append(TEXT_56); if (isEclipseEditor) { stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.SaveAction")); stringBuffer.append(TEXT_58); } stringBuffer.append(TEXT_59); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.PrintAction")); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.ui.actions.LayoutDiagramAction")); stringBuffer.append(TEXT_61); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction")); stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.ZoomInAction")); stringBuffer.append(TEXT_63); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction")); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.ZoomOutAction")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyHandler")); stringBuffer.append(TEXT_66); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyStroke")); stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyStroke")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_71); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_72); if (!isRichClientPlatform && isEclipseEditor) { stringBuffer.append(TEXT_73); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_74); }if (!isEclipseEditor) { stringBuffer.append(TEXT_75); } stringBuffer.append(TEXT_76); if (!isRichClientPlatform && isEclipseEditor) { stringBuffer.append(TEXT_77); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_78); }if (!isEclipseEditor) { stringBuffer.append(TEXT_79); } stringBuffer.append(TEXT_80); if (isEclipseEditor) { stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IProgressMonitor")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.dialogs.ErrorDialog")); stringBuffer.append(TEXT_84); stringBuffer.append(genDiagram.getEditorGen().getDomainGenModel().getModelName()); stringBuffer.append(TEXT_85); } stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.palette.PaletteRoot")); stringBuffer.append(TEXT_87); { final Palette palette = genDiagram.getPalette(); if (palette != null) { stringBuffer.append(TEXT_88); stringBuffer.append(importManager.getImportedName(palette.getFactoryQualifiedClassName())); stringBuffer.append(TEXT_89); }} stringBuffer.append(TEXT_90); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_92); if (isEclipseEditor) { stringBuffer.append(TEXT_93); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorSite")); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_95); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_97); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_98); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.PartInitException")); stringBuffer.append(TEXT_99); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_100); if (!isRichClientPlatform) { stringBuffer.append(TEXT_101); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_102); } stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_104); if (!isRichClientPlatform) { stringBuffer.append(TEXT_105); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_106); } stringBuffer.append(TEXT_107); if (!isRichClientPlatform) { stringBuffer.append(TEXT_108); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.IFile")); stringBuffer.append(TEXT_109); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_110); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_111); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_113); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IPath")); stringBuffer.append(TEXT_114); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Path")); stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.core.resources.ResourcesPlugin")); stringBuffer.append(TEXT_117); } stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_119); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IEditorInput")); stringBuffer.append(TEXT_120); if (!isRichClientPlatform) { stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_123); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IFileEditorInput")); stringBuffer.append(TEXT_124); } stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_126); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.ui.URIEditorInput")); stringBuffer.append(TEXT_127); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IPathEditorInput")); stringBuffer.append(TEXT_128); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_129); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IPathEditorInput")); stringBuffer.append(TEXT_130); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_131); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_132); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_133); } //editor-specific code stringBuffer.append(TEXT_134); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.notify.AdapterFactory")); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName("java.util.List")); stringBuffer.append(TEXT_136); stringBuffer.append(importManager.getImportedName("java.util.ArrayList")); stringBuffer.append(TEXT_137); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.resource.ResourceItemProviderAdapterFactory")); stringBuffer.append(TEXT_138); final EList genPackages = genDiagram.getEditorGen().getAllDomainGenPackages(true);for (int i = 0; i < genPackages.size(); i++) { GenPackage genPackage = (GenPackage) genPackages.get(i); stringBuffer.append(TEXT_139); stringBuffer.append(importManager.getImportedName(genPackage.getQualifiedItemProviderAdapterFactoryClassName())); stringBuffer.append(TEXT_140); } stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ReflectiveItemProviderAdapterFactory")); stringBuffer.append(TEXT_142); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.provider.NotationItemProviderAdapterFactory")); stringBuffer.append(TEXT_143); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.provider.ComposedAdapterFactory")); stringBuffer.append(TEXT_144); if (!isEclipseEditor) { stringBuffer.append(TEXT_145); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.widgets.Composite")); stringBuffer.append(TEXT_146); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.IActionBars")); stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName(genEditor.getActionBarContributorQualifiedClassName())); stringBuffer.append(TEXT_148); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_149); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_150); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.CoreException")); stringBuffer.append(TEXT_151); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_152); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IStatus")); stringBuffer.append(TEXT_153); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_154); } stringBuffer.append(TEXT_155); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_156); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_157); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.ResourceSet")); stringBuffer.append(TEXT_159); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_160); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.workspace.AbstractEMFOperation")); stringBuffer.append(TEXT_161); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.workspace.AbstractEMFOperation")); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IStatus")); stringBuffer.append(TEXT_163); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IProgressMonitor")); stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.IAdaptable")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.core.commands.ExecutionException")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_169); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_170); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_171); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Diagram")); stringBuffer.append(TEXT_172); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationFactory")); stringBuffer.append(TEXT_173); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_174); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_175); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_177); { boolean sameFile = genDiagram.getEditorGen().isSameFileForDiagramAndModel(); String resourceToUse; if (!sameFile) { stringBuffer.append(TEXT_178); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.URI")); stringBuffer.append(TEXT_179); stringBuffer.append(genDiagram.getDiagramEditorUtilClassName()); stringBuffer.append(TEXT_180); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_182); resourceToUse = "modelResource"; } else { resourceToUse = "diagramResource"; } stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_184); stringBuffer.append(resourceToUse); stringBuffer.append(TEXT_185); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getQualifiedInterfaceName())); stringBuffer.append(TEXT_186); stringBuffer.append(importManager.getImportedName(genDiagram.getDomainDiagramElement().getGenPackage().getQualifiedFactoryInterfaceName())); stringBuffer.append(TEXT_187); stringBuffer.append(genDiagram.getDomainDiagramElement().getClassifierAccessorName()); stringBuffer.append(TEXT_188); stringBuffer.append(resourceToUse); stringBuffer.append(TEXT_189); if (genDiagram.getDomainDiagramElement().isExternalInterface()) { stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_191); } stringBuffer.append(TEXT_192); stringBuffer.append(resourceToUse); stringBuffer.append(TEXT_193); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_195); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_196); if (genDiagram.getDomainDiagramElement().isExternalInterface()) { stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_198); } stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_200); stringBuffer.append(importManager.getImportedName(genDiagram.getNotationViewFactoryQualifiedClassName())); stringBuffer.append(TEXT_201); if (isEclipseEditor) { stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_203); } else { stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName("java.util.Collections")); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName("java.io.IOException")); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_207); } stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.Status")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.core.runtime.NullProgressMonitor")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.core.commands.ExecutionException")); stringBuffer.append(TEXT_211); }//local declarations stringBuffer.append(TEXT_212); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.resource.Resource")); stringBuffer.append(TEXT_213); stringBuffer.append(importManager.getImportedName("java.util.Iterator")); stringBuffer.append(TEXT_214); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.ScalableFreeformRootEditPart")); stringBuffer.append(TEXT_216); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_217); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LayeredPane")); stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.LayeredPane")); stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.LayerConstants")); stringBuffer.append(TEXT_220); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayer")); stringBuffer.append(TEXT_221); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.FreeformLayer")); stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.DelegatingLayout")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName(genDiagram.getEditPartFactoryQualifiedClassName())); stringBuffer.append(TEXT_224); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.LayerConstants")); stringBuffer.append(TEXT_225); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalViewer")); stringBuffer.append(TEXT_226); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ContextMenuProvider")); stringBuffer.append(TEXT_227); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_229); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.KeyHandler")); stringBuffer.append(TEXT_230); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler")); stringBuffer.append(TEXT_231); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.MouseWheelHandler")); stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_233); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.MouseWheelZoomHandler")); stringBuffer.append(TEXT_234); stringBuffer.append(genDiagram.getPalette() != null && genDiagram.getPalette().isFlyout()); stringBuffer.append(TEXT_235); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ContextMenuProvider")); stringBuffer.append(TEXT_237); stringBuffer.append(genEditor.getClassName()); stringBuffer.append(TEXT_238); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPartViewer")); stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager")); stringBuffer.append(TEXT_240); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_241); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_242); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_243); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_244); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_245); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_246); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_247); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_248); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_249); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_251); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_252); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_253); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.ui.actions.ActionIds")); stringBuffer.append(TEXT_254); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_255); if (isEclipseEditor) { stringBuffer.append(TEXT_256); stringBuffer.append(importManager.getImportedName("org.eclipse.ui.actions.ActionFactory")); stringBuffer.append(TEXT_257); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_258); } stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager")); stringBuffer.append(TEXT_260); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.MenuManager")); stringBuffer.append(TEXT_261); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.MenuManager")); stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.Separator")); stringBuffer.append(TEXT_263); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_264); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_265); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_266); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_267); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_268); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_269); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_270); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_271); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_272); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_273); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_274); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_275); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_276); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.ui.actions.GEFActionConstants")); stringBuffer.append(TEXT_277); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IMenuManager")); stringBuffer.append(TEXT_278); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.action.IAction")); stringBuffer.append(TEXT_279); importManager.emitSortedImports(); stringBuffer.append(TEXT_280); return stringBuffer.toString(); }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/d0f2de3f37a520b7ed04e5e0d7a1b0a7ddc569d5/EditorGenerator.java/buggy/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/editor/EditorGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6946, 1767, 3157, 6946, 273, 261, 7642, 6946, 1767, 13, 14015, 921, 63, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 2103, 12, 921, 1237, 13, 225, 288, 565, 727, 6674, 533, 1892, 273, 394, 6674, 5621, 565, 727, 10938, 6946, 1767, 3157, 6946, 273, 261, 7642, 6946, 1767, 13, 14015, 921, 63, 5...
String prefix = validatePrefix( name.getPrefix(), uri, local, true );
public static void element_setAttributeNS ( Dom e, String uri, String qName, String value ) { QName name = e.locale().makeQualifiedQName( uri, qName ); String local = name.getLocalPart(); Dom a = attributes_getNamedItemNS( e, uri, local ); if (a == null) { String prefix = validatePrefix( name.getPrefix(), uri, local, true ); a = document_createAttributeNS( node_getOwnerDocument( e ), uri, local ); node_setPrefix( a, prefix ); attributes_setNamedItemNS( e, a ); } node_setNodeValue( a, value ); }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/e20123e0be9f336c9164ccbcc76b15b1357665a7/DomImpl.java/buggy/v2/src/newstore2/org/apache/xmlbeans/impl/newstore2/DomImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 930, 67, 542, 1499, 3156, 261, 12965, 425, 16, 514, 2003, 16, 514, 22914, 16, 514, 460, 262, 565, 288, 3639, 16723, 508, 273, 425, 18, 6339, 7675, 6540, 8708, 13688, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 930, 67, 542, 1499, 3156, 261, 12965, 425, 16, 514, 2003, 16, 514, 22914, 16, 514, 460, 262, 565, 288, 3639, 16723, 508, 273, 425, 18, 6339, 7675, 6540, 8708, 13688, 12,...
public void setUri(String uri) { this.uri = uri; }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/385983011bec6e4d63814970f52d6250ee50da81/ImportTag.java/buggy/src/java/org/apache/commons/jelly/tags/core/ImportTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 542, 3006, 12, 780, 1650, 15329, 2211, 18, 1650, 33, 1650, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 542, 3006, 12, 780, 1650, 15329, 2211, 18, 1650, 33, 1650, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
_impl.log("\t"+msg+"\n", MSG_ERR);
if (_impl != null) { _impl.log("\t"+msg+"\n", MSG_ERR); } else { System.err.println(msg); }
public static void sumupProblems() { if (_problems.size() > 0) { info("\n:: problems summary ::"); if (_warns.size() > 0) { info("---------------- WARNINGS"); for (Iterator iter = _warns.iterator(); iter.hasNext();) { String msg = (String) iter.next(); _impl.log("\t"+msg+"\n", MSG_WARN); } } if (_errors.size() > 0) { info("---------------- ERRORS"); for (Iterator iter = _errors.iterator(); iter.hasNext();) { String msg = (String) iter.next(); _impl.log("\t"+msg+"\n", MSG_ERR); } } info("\t--- USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS ---"); _problems.clear(); _warns.clear(); _errors.clear(); } }
45724 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45724/2fd76a1a31ad87de8b68d18b3563b4881512a12d/Message.java/buggy/src/java/fr/jayasoft/ivy/util/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2142, 416, 626, 19122, 1435, 288, 3639, 309, 261, 67, 29812, 18, 1467, 1435, 405, 374, 13, 288, 5411, 1123, 31458, 82, 2866, 9688, 4916, 493, 8863, 5411, 309, 261, 67, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2142, 416, 626, 19122, 1435, 288, 3639, 309, 261, 67, 29812, 18, 1467, 1435, 405, 374, 13, 288, 5411, 1123, 31458, 82, 2866, 9688, 4916, 493, 8863, 5411, 309, 261, 67, 9...
List senoneSequenceList = new ArrayList();
List<SenoneSequence> senoneSequenceList = new ArrayList<SenoneSequence>();
public SenoneSequence getCompositeSenoneSequence(Unit unit, HMMPosition position) { Context context = unit.getContext(); SenoneSequence compositeSenoneSequence = null; compositeSenoneSequence = (SenoneSequence) compositeSenoneSequenceCache.get(unit.toString()); if (logger.isLoggable(Level.FINE)) { logger.fine("getCompositeSenoneSequence: " + unit.toString() + ((compositeSenoneSequence != null) ? "Cached" : "")); } if (compositeSenoneSequence != null) { return compositeSenoneSequence; } // Iterate through all HMMs looking for // a) An hmm with a unit that has the proper base // b) matches the non-null context List senoneSequenceList = new ArrayList(); // collect all senone sequences that match the pattern for (Iterator i = getHMMIterator(); i.hasNext(); ) { SenoneHMM hmm = (SenoneHMM) i.next(); if (hmm.getPosition() == position) { Unit hmmUnit = hmm.getUnit(); if (hmmUnit.isPartialMatch(unit.getName(), context)) { if (logger.isLoggable(Level.FINE)) { logger.fine("collected: " + hmm.getUnit().toString()); } senoneSequenceList.add(hmm.getSenoneSequence()); } } } // couldn't find any matches, so at least include the CI unit if (senoneSequenceList.size() == 0) { Unit ciUnit = unitManager.getUnit(unit.getName(), unit.isFiller()); SenoneHMM baseHMM = lookupHMM(ciUnit, HMMPosition.UNDEFINED); senoneSequenceList.add(baseHMM.getSenoneSequence()); } // Add this point we have all of the senone sequences that // match the base/context pattern collected into the list. // Next we build a CompositeSenone consisting of all of the // senones in each position of the list. // First find the longest senone sequence int longestSequence = 0; for (int i = 0; i < senoneSequenceList.size(); i++) { SenoneSequence ss = (SenoneSequence) senoneSequenceList.get(i); if (ss.getSenones().length > longestSequence) { longestSequence = ss.getSenones().length; } } // now collect all of the senones at each position into // arrays so we can create CompositeSenones from them // QUESTION: is is possible to have different size senone // sequences. For now lets assume the worst case. List compositeSenones = new ArrayList(); float logWeight = 0.0f; for (int i = 0; i < longestSequence; i++) { Set compositeSenoneSet = new HashSet(); for (int j = 0; j < senoneSequenceList.size(); j++) { SenoneSequence senoneSequence = (SenoneSequence) senoneSequenceList.get(j); if (i < senoneSequence.getSenones().length) { Senone senone = senoneSequence.getSenones()[i]; compositeSenoneSet.add(senone); } } compositeSenones.add(CompositeSenone.create( compositeSenoneSet, logWeight)); } compositeSenoneSequence = SenoneSequence.create(compositeSenones); compositeSenoneSequenceCache.put(unit.toString(), compositeSenoneSequence); if (logger.isLoggable(Level.FINE)) { logger.fine(unit.toString() + " consists of " + compositeSenones.size() + " composite senones"); if (logger.isLoggable(Level.FINEST)) { compositeSenoneSequence.dump("am"); } } return compositeSenoneSequence; }
8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/94bee29ed07df3c970a54ab347a7e12d065b258e/TiedStateAcousticModel.java/clean/sphinx4/src/sphinx4/edu/cmu/sphinx/linguist/acoustic/tiedstate/TiedStateAcousticModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 348, 275, 476, 4021, 336, 9400, 55, 275, 476, 4021, 12, 2802, 2836, 16, 2398, 670, 8206, 2555, 1754, 13, 288, 202, 1772, 819, 273, 2836, 18, 29120, 5621, 202, 348, 275, 476, 4021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 348, 275, 476, 4021, 336, 9400, 55, 275, 476, 4021, 12, 2802, 2836, 16, 2398, 670, 8206, 2555, 1754, 13, 288, 202, 1772, 819, 273, 2836, 18, 29120, 5621, 202, 348, 275, 476, 4021...
AST __t634 = _t; AST tmp572_AST_in = (AST)_t;
AST __t638 = _t; AST tmp571_AST_in = (AST)_t;
public final void buffercomparestate(AST _t) throws RecognitionException { AST buffercomparestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t618 = _t; AST tmp558_AST_in = (AST)_t; match(_t,BUFFERCOMPARE); _t = _t.getFirstChild(); AST tmp559_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t620 = _t; AST tmp560_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop622: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { field(_t); _t = _retTree; } else { break _loop622; } } while (true); } _t = __t620; _t = _t.getNextSibling(); break; } case USING: { AST __t623 = _t; AST tmp561_AST_in = (AST)_t; match(_t,USING); _t = _t.getFirstChild(); { int _cnt625=0; _loop625: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { field(_t); _t = _retTree; } else { if ( _cnt625>=1 ) { break _loop625; } else {throw new NoViableAltException(_t);} } _cnt625++; } while (true); } _t = __t623; _t = _t.getNextSibling(); break; } case TO: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp562_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); AST tmp563_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CASESENSITIVE: { AST tmp564_AST_in = (AST)_t; match(_t,CASESENSITIVE); _t = _t.getNextSibling(); break; } case BINARY: { AST tmp565_AST_in = (AST)_t; match(_t,BINARY); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case EXPLICIT: case NOERROR_KW: case SAVE: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SAVE: { AST __t628 = _t; AST tmp566_AST_in = (AST)_t; match(_t,SAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case RESULT: { AST __t630 = _t; AST tmp567_AST_in = (AST)_t; match(_t,RESULT); _t = _t.getFirstChild(); AST tmp568_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); _t = __t630; _t = _t.getNextSibling(); break; } case Field_ref: { break; } default: { throw new NoViableAltException(_t); } } } field(_t); _t = _retTree; _t = __t628; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case EXPLICIT: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXPLICIT: { AST tmp569_AST_in = (AST)_t; match(_t,EXPLICIT); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMPARES: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMPARES: { AST tmp570_AST_in = (AST)_t; match(_t,COMPARES); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp571_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } block_colon(_t); _t = _retTree; AST __t634 = _t; AST tmp572_AST_in = (AST)_t; match(_t,Code_block); _t = _t.getFirstChild(); { _loop637: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==WHEN)) { AST __t636 = _t; AST tmp573_AST_in = (AST)_t; match(_t,WHEN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp574_AST_in = (AST)_t; match(_t,THEN); _t = _t.getNextSibling(); blockorstate(_t); _t = _retTree; _t = __t636; _t = _t.getNextSibling(); } else { break _loop637; } } while (true); } _t = __t634; _t = _t.getNextSibling(); AST __t638 = _t; AST tmp575_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMPARES: { AST tmp576_AST_in = (AST)_t; match(_t,COMPARES); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t638; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOLOBS: { AST tmp577_AST_in = (AST)_t; match(_t,NOLOBS); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp578_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t618; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1613, 9877, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1613, 9877, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1613, 9877, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1613, 9877, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
{
{
public AccessibleContext getAccessibleContext(){ return null;}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuComponent.java/buggy/core/src/classpath/java/java/awt/MenuComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 5016, 1523, 1042, 336, 10451, 1042, 1435, 95, 225, 327, 446, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 5016, 1523, 1042, 336, 10451, 1042, 1435, 95, 225, 327, 446, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public DoubleArrayResult(int size) { this.array = new ArrayList(size);
public DoubleArrayResult() { this.array = new ArrayList();
public DoubleArrayResult(int size) { this.array = new ArrayList(size); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/1fa30576a16b9e998cf1cfb8c355ef042a4af880/DoubleArrayResult.java/buggy/src/org/openscience/cdk/qsar/result/DoubleArrayResult.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3698, 1076, 1253, 12, 474, 963, 13, 288, 3639, 333, 18, 1126, 273, 394, 2407, 12, 1467, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3698, 1076, 1253, 12, 474, 963, 13, 288, 3639, 333, 18, 1126, 273, 394, 2407, 12, 1467, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void testImportLibrary( ) throws Exception { openDesign(fileName); designHandle.includeLibrary( inputLibraryName, "LibA" ); LibraryHandle libHandle = designHandle.getLibrary( "LibA" ); TextItemHandle textLibHandle = (TextItemHandle)libHandle.findElement( "myText" ); assertNotNull("Text should not be null", textLibHandle); TableHandle tableLibHandle = (TableHandle)libHandle.findElement( "myTable" ); assertNotNull("Table should not be null", tableLibHandle); StyleHandle styleLibHandle = (StyleHandle)libHandle.findStyle( "myStyle" ); assertNotNull("Style should not be null", styleLibHandle); ParameterHandle parameterLibHandle = (ParameterHandle)libHandle.findParameter( "Parameter1" ); assertNotNull("Parameter should not be null", parameterLibHandle); LabelHandle labelLibHandle = (LabelHandle)libHandle.findElement( "myLabel" ); assertNotNull("Label should not be null", labelLibHandle); ImageHandle imageLibHandle = (ImageHandle)libHandle.findElement( "myImage" ); assertNotNull("Image should not be null", imageLibHandle); DataItemHandle dataLibHandle = (DataItemHandle)libHandle.findElement( "myData" ); assertNotNull("Data should not be null", dataLibHandle); DataSourceHandle dataSourceLibHandle = (DataSourceHandle)libHandle.findDataSource( "db2d" ); assertNotNull("Datasource should not be null", dataSourceLibHandle); DataSetHandle dataSetLibHandle = (DataSetHandle)libHandle.findDataSet( "db2ds" ); assertNotNull("Dataset should not be null", dataSetLibHandle); TextItemHandle textHandle = (TextItemHandle)designHandle.getElementFactory().newElementFrom( textLibHandle, "myText" ); TableHandle tableHandle = (TableHandle)designHandle.getElementFactory().newElementFrom( tableLibHandle, "myTable" ); StyleHandle styleHandle = (StyleHandle)designHandle.getElementFactory().newStyle( "myStyle" ); ParameterHandle parameterHandle = (ParameterHandle)designHandle.getElementFactory().newElementFrom( parameterLibHandle, "Parameter1" ); LabelHandle labelHandle = (LabelHandle)designHandle.getElementFactory().newElementFrom( labelLibHandle, "myLabel" ); ImageHandle imageHandle = (ImageHandle)designHandle.getElementFactory().newElementFrom( imageLibHandle, "myImage" ); DataItemHandle dataHandle = (DataItemHandle)designHandle.getElementFactory().newElementFrom( dataLibHandle, "myData" ); DataSourceHandle dataSourceHandle = (DataSourceHandle)designHandle.getElementFactory().newOdaDataSource( "db2d" ); DataSetHandle dataSetHandle = (DataSetHandle)designHandle.getElementFactory().newOdaDataSet( "db2ds" ); designHandle.getDataSources().add( dataSourceHandle ); designHandle.getDataSets().add( dataSetHandle ); designHandle.getStyles().add( styleHandle ); designHandle.getBody().add( dataHandle ); designHandle.getParameters().add( parameterHandle ); designHandle.getBody().add( textHandle ); designHandle.getBody().add( labelHandle ); designHandle.getBody().add( tableHandle ); designHandle.getBody().add( imageHandle ); assertNotNull(designHandle); super.saveAs( outputFileName ); assertTrue( compareTextFile( goldenFileName, outputFileName ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1941630e9393afd3a96a0625deeab2c94ff76436/LibraryImportTest.java/buggy/testsuites/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/api/LibraryImportTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5010, 9313, 12, 262, 1216, 1185, 202, 95, 25083, 202, 3190, 15478, 12, 17812, 1769, 202, 202, 16934, 3259, 18, 6702, 9313, 12, 810, 9313, 461, 16, 315, 5664, 37, 6,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5010, 9313, 12, 262, 1216, 1185, 202, 95, 25083, 202, 3190, 15478, 12, 17812, 1769, 202, 202, 16934, 3259, 18, 6702, 9313, 12, 810, 9313, 461, 16, 315, 5664, 37, 6,...
Macros.runScript(null,new File( directory,snippets[i]).getPath(),true);
File snippet = snippets[i]; Macros.Handler handler = Macros.getHandlerForFileName( snippet.getName()); if(handler == null) continue; try { Macros.Macro newMacro = handler.createMacro( snippet.getName(), snippet.getPath()); handler.runMacro(null,newMacro,false); } catch(Exception e) { Log.log(Log.ERROR,jEdit.class,e); }
private static void runStartupScripts(File directory) { if (!directory.isDirectory()) return; String[] snippets = directory.list(); if (snippets == null) return; MiscUtilities.quicksort(snippets, new MiscUtilities.StringICaseCompare()); for(int i = 0; i < snippets.length; ++i) { Macros.runScript(null,new File( directory,snippets[i]).getPath(),true); } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/1644996a1ccc26225fb16f1b8cd5fdcf4d3fc5de/jEdit.java/buggy/org/gjt/sp/jedit/jEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1086, 22178, 15041, 12, 812, 1867, 13, 202, 95, 202, 202, 430, 16051, 5149, 18, 291, 2853, 10756, 1082, 202, 2463, 31, 202, 202, 780, 8526, 24613, 273, 1867, 18, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1086, 22178, 15041, 12, 812, 1867, 13, 202, 95, 202, 202, 430, 16051, 5149, 18, 291, 2853, 10756, 1082, 202, 2463, 31, 202, 202, 780, 8526, 24613, 273, 1867, 18, 10...
Messages.getFormattedString( "GuiExtensionManager.tooltip.insert", new Object[]{ displayName }), getExtendedPalletTemplateName(point),
Messages.getFormattedString( "GuiExtensionManager.tooltip.insert", new Object[]{displayName} ), getExtendedPalletTemplateName( point ),
private static Object doPalette( Object object, String type ) { assert ( object instanceof PaletteRoot ); PaletteRoot root = (PaletteRoot) object; List list = root.getChildren( ); List exts = ExtensionPointManager.getInstance( ) .getExtendedElementPoints( ); if ( exts == null ) { return root; } for ( Iterator itor = exts.iterator( ); itor.hasNext( ); ) { ExtendedElementUIPoint point = (ExtendedElementUIPoint) itor.next( ); if ( point == null ) { return root; } String category = (String) point.getAttribute( IExtensionConstants.ATTRIBUTE_PALETTE_CATEGORY ); ImageDescriptor icon = (ImageDescriptor) point.getAttribute( IExtensionConstants.ATTRIBUTE_KEY_PALETTE_ICON ); IReportItemFigureProvider UI = point.getReportItemUI( ); if ( UI == null ) { return root; } if ( PALETTE_DESIGNER.equals( type ) ) { Boolean bool = (Boolean) point.getAttribute( IExtensionConstants.ATTRIBUTE_EDITOR_SHOW_IN_DESIGNER ); if ( !bool.booleanValue( ) ) { continue; } } else if ( PALETTE_MASTERPAGE.equals( type ) ) { Boolean bool = (Boolean) point.getAttribute( IExtensionConstants.ATTRIBUTE_EDITOR_SHOW_IN_MASTERPAGE ); if ( !bool.booleanValue( ) ) { continue; } } String displayName = DesignEngine.getMetaDataDictionary( ) .getExtension( point.getExtensionName( ) ) .getDisplayName( ); CombinedTemplateCreationEntry combined = new ReportCombinedTemplateCreationEntry( displayName, Messages.getFormattedString( "GuiExtensionManager.tooltip.insert", new Object[]{ displayName }), //$NON-NLS-1$ getExtendedPalletTemplateName(point), new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_EXTENDED + point.getExtensionName( ) ), icon, icon, BasePaletteFactory.getAbstractToolHandleExtendsFromPalletName(getExtendedPalletTemplateName(point)) ); PaletteContainer entry = findCategory( list, category ); if ( entry == null ) { String categoryLabel = (String) point.getAttribute( IExtensionConstants.ATTRIBUTE_PALETTE_CATEGORY_DISPLAYNAME ); if ( categoryLabel == null ) { categoryLabel = category; } entry = new PaletteCategory( category, categoryLabel, null ); root.add( entry ); } entry.add( combined ); } return root; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/8881b5505fc0ba3f08558dcedf523f0b91dfcba5/GuiExtensionManager.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/extensions/GuiExtensionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1033, 741, 25863, 12, 1033, 733, 16, 514, 618, 262, 202, 95, 202, 202, 11231, 261, 733, 1276, 453, 8786, 2375, 11272, 202, 202, 25863, 2375, 1365, 273, 261, 25863, 2375, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1033, 741, 25863, 12, 1033, 733, 16, 514, 618, 262, 202, 95, 202, 202, 11231, 261, 733, 1276, 453, 8786, 2375, 11272, 202, 202, 25863, 2375, 1365, 273, 261, 25863, 2375, ...
public Object clone() {
public Object clone() throws CloneNotSupportedException {
public Object clone() { Object clone = null; try { clone = super.clone(); } catch (Exception exception) { logger.error("Could not clone DebugAtom: " + exception.getMessage(), exception); logger.debug(exception); } return clone; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/2b55a607674535cd8492e3539d8f3dce16fc3b92/DebugLonePair.java/buggy/src/org/openscience/cdk/debug/DebugLonePair.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3236, 1435, 1216, 12758, 25482, 288, 3639, 1033, 3236, 273, 446, 31, 3639, 775, 288, 540, 202, 14056, 273, 2240, 18, 14056, 5621, 3639, 289, 1044, 261, 503, 1520, 13, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3236, 1435, 1216, 12758, 25482, 288, 3639, 1033, 3236, 273, 446, 31, 3639, 775, 288, 540, 202, 14056, 273, 2240, 18, 14056, 5621, 3639, 289, 1044, 261, 503, 1520, 13, 288,...
dumpElement ("CLASSDESC NAME=");
public final Object readObject () throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride (); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; if (! was_deserializing) setBlockDataMode (false); this.isDeserializing = true;// DEBUG ("MARKER "); byte marker = this.realInputStream.readByte (); switch (marker) { case TC_BLOCKDATA: case TC_BLOCKDATALONG: readNextBlock (marker); throw new BlockDataException (this.blockDataBytes); case TC_NULL: ret_val = null; break; case TC_REFERENCE: {// DEBUG ("REFERENCE "); Integer oid = new Integer (this.realInputStream.readInt ()); ret_val = ((ObjectIdentityWrapper) this.objectLookupTable.get (oid)).object; break; } case TC_CLASS: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); assignNewHandle (clazz); ret_val = clazz; break; } case TC_CLASSDESC: {// DEBUG ("CLASSDESC NAME "); String name = this.realInputStream.readUTF ();// DEBUG ("UID "); long uid = this.realInputStream.readLong ();// DEBUG ("FLAGS "); byte flags = this.realInputStream.readByte ();// DEBUG ("FIELD COUNT "); short field_count = this.realInputStream.readShort (); ObjectStreamField[] fields = new ObjectStreamField[field_count]; ObjectStreamClass osc = new ObjectStreamClass (name, uid, flags, fields); assignNewHandle (osc); for (int i=0; i < field_count; i++) {// DEBUG ("TYPE CODE "); char type_code = (char)this.realInputStream.readByte ();// DEBUG ("FIELD NAME "); String field_name = this.realInputStream.readUTF (); String class_name; if (type_code == 'L' || type_code == '[') class_name = (String)readObject (); else class_name = String.valueOf (type_code); fields[i] = new ObjectStreamField (field_name, TypeSignature.getClassForEncoding (class_name)); } setBlockDataMode (true); osc.setClass (resolveClass (osc)); setBlockDataMode (false);// DEBUG ("ENDBLOCKDATA "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("Data annotated to class was not consumed."); osc.setSuperclass ((ObjectStreamClass)readObject ()); ret_val = osc; break; } case TC_STRING: {// DEBUG ("STRING "); String s = this.realInputStream.readUTF (); ret_val = processResolution (s, assignNewHandle (s)); break; } case TC_ARRAY: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class componenetType = osc.forClass ().getComponentType ();// DEBUG ("ARRAY LENGTH "); int length = this.realInputStream.readInt (); Object array = Array.newInstance (componenetType, length); int handle = assignNewHandle (array); readArrayElements (array, componenetType); ret_val = processResolution (array, handle); break; } case TC_OBJECT: { ObjectStreamClass osc = (ObjectStreamClass)readObject (); Class clazz = osc.forClass (); if (!Serializable.class.isAssignableFrom (clazz)) throw new NotSerializableException (clazz + " is not Serializable, and thus cannot be deserialized."); if (Externalizable.class.isAssignableFrom (clazz)) { Externalizable obj = null; try { obj = (Externalizable)clazz.newInstance (); } catch (InstantiationException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); } catch (IllegalAccessException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because class or zero-argument constructor is not accessible"); } catch (NoSuchMethodError e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because zero-argument constructor is not defined"); } int handle = assignNewHandle (obj); boolean read_from_blocks = ((osc.getFlags () & SC_BLOCK_DATA) != 0); if (read_from_blocks) setBlockDataMode (true); obj.readExternal (this); if (read_from_blocks) setBlockDataMode (false); ret_val = processResolution (obj, handle); break; } // end if (Externalizable.class.isAssignableFrom (clazz)) // find the first non-serializable, non-abstract // class in clazz's inheritance hierarchy Class first_nonserial = clazz.getSuperclass (); while (Serializable.class.isAssignableFrom (first_nonserial) || Modifier.isAbstract (first_nonserial.getModifiers ())) first_nonserial = first_nonserial.getSuperclass ();// DEBUGln ("Using " + first_nonserial// + " as starting point for constructing " + clazz); Object obj = null; obj = newObject (clazz, first_nonserial); if (obj == null) throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); int handle = assignNewHandle (obj); this.currentObject = obj; ObjectStreamClass[] hierarchy = ObjectStreamClass.getObjectStreamClasses (clazz);// DEBUGln ("Got class hierarchy of depth " + hierarchy.length); boolean has_read; for (int i=0; i < hierarchy.length; i++) { this.currentObjectStreamClass = hierarchy[i];// DEBUGln ("Reading fields of "// + this.currentObjectStreamClass.getName ()); has_read = true; try { this.currentObjectStreamClass.forClass (). getDeclaredMethod ("readObject", readObjectParams); } catch (NoSuchMethodException e) { has_read = false; } // XXX: should initialize fields in classes in the hierarchy // that aren't in the stream // should skip over classes in the stream that aren't in the // real classes hierarchy readFields (obj, this.currentObjectStreamClass.fields, has_read, this.currentObjectStreamClass); if (has_read) {// DEBUG ("ENDBLOCKDATA? "); if (this.realInputStream.readByte () != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); } } this.currentObject = null; this.currentObjectStreamClass = null; ret_val = processResolution (obj, handle); break; } case TC_RESET: clearHandles (); ret_val = readObject (); break; case TC_EXCEPTION: { Exception e = (Exception)readObject (); clearHandles (); throw new WriteAbortedException ("Exception thrown during writing of stream", e); } default: throw new IOException ("Unknown marker on stream"); } this.isDeserializing = was_deserializing; if (! was_deserializing) { setBlockDataMode (true); if (validators.size () > 0) invokeValidators (); } return ret_val; }
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/fc168340950fe24246924819019e0b004bdb5365/ObjectInputStream.java/clean/libjava/java/io/ObjectInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4657, 1046, 7566, 5237, 10964, 6048, 1546, 1769, 4657, 1046, 7566, 5237, 10964, 6048, 1546, 1769, 1071, 8481, 1046, 7566, 5237, 10964, 6048, 1546, 1769, 727, 8481, 1046, 7566, 5237, 10964, 6048, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4657, 1046, 7566, 5237, 10964, 6048, 1546, 1769, 4657, 1046, 7566, 5237, 10964, 6048, 1546, 1769, 1071, 8481, 1046, 7566, 5237, 10964, 6048, 1546, 1769, 727, 8481, 1046, 7566, 5237, 10964, 6048, 1...
myMacroDefinition = new AntTypeDefinitionImpl(new AntTypeId(getName()), thisClassName, true, attributes, nestedElements, this);
final AntTypeId definedTypeId = new AntTypeId(getName()); if (myMacroDefinition == null) { myMacroDefinition = new AntTypeDefinitionImpl(definedTypeId, thisClassName, true, attributes, nestedElements, this); } else { myMacroDefinition.setTypeId(definedTypeId); myMacroDefinition.setClassName(thisClassName); myMacroDefinition.setIsTask(true); myMacroDefinition.setDefiningElement(this); }
private void invalidateMacroDefinition() { if (!hasNameElement()) { myMacroDefinition = null; return; } final AntFile file = getAntFile(); final String thisClassName = toString(); final HashMap<String, AntAttributeType> attributes = new HashMap<String, AntAttributeType>(); final HashMap<AntTypeId, String> nestedElements = new HashMap<AntTypeId, String>(); for (AntElement child : getChildren()) { if (child instanceof AntStructuredElement) { AntStructuredElement se = (AntStructuredElement)child; final String name = se.getName(); if (name != null) { final String tagName = se.getSourceElement().getName(); if (tagName.equals("attribute")) { attributes.put(name, AntAttributeType.STRING); } else if (tagName.equals("element")) { final AntTypeDefinitionImpl nestedDef = new AntTypeDefinitionImpl((AntTypeDefinitionImpl)file.getTargetDefinition()); final AntTypeId typeId = new AntTypeId(name); nestedDef.setTypeId(typeId); nestedDef.setIsTask(false); nestedDef.setClassName(thisClassName + '.' + name); nestedDef.setDefiningElement(child); file.registerCustomType(nestedDef); nestedElements.put(typeId, nestedDef.getClassName()); } } } } myMacroDefinition = new AntTypeDefinitionImpl(new AntTypeId(getName()), thisClassName, true, attributes, nestedElements, this); getAntParent().registerCustomType(myMacroDefinition); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8db64e6f6295a85b1ed9bb2320343787f08b11ba/AntMacroDefImpl.java/buggy/plugins/ant/src/com/intellij/lang/ant/psi/impl/AntMacroDefImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 11587, 17392, 1852, 1435, 288, 565, 309, 16051, 5332, 461, 1046, 10756, 288, 1377, 3399, 17392, 1852, 273, 446, 31, 1377, 327, 31, 565, 289, 565, 727, 18830, 812, 585, 273, 450...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 11587, 17392, 1852, 1435, 288, 565, 309, 16051, 5332, 461, 1046, 10756, 288, 1377, 3399, 17392, 1852, 273, 446, 31, 1377, 327, 31, 565, 289, 565, 727, 18830, 812, 585, 273, 450...
new SetNextRule(this, methodName, paramType));
new SetNextRule(this, methodName));
public void addSetNext(String pattern, String methodName, String paramType) { addRule(pattern, new SetNextRule(this, methodName, paramType)); }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/4f739886107796036f7a96cafd7383a9b5116ae7/Digester.java/buggy/src/share/org/apache/struts/digester/Digester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 694, 2134, 12, 780, 1936, 16, 514, 4918, 16, 377, 9506, 282, 514, 20781, 13, 288, 202, 1289, 2175, 12, 4951, 16, 202, 3639, 394, 1000, 2134, 2175, 12, 2211, 16, 4918, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 694, 2134, 12, 780, 1936, 16, 514, 4918, 16, 377, 9506, 282, 514, 20781, 13, 288, 202, 1289, 2175, 12, 4951, 16, 202, 3639, 394, 1000, 2134, 2175, 12, 2211, 16, 4918, ...
text = text.replaceAll("(http:
Matcher matcher = Pattern.compile("(http: StringBuffer result = new StringBuffer(); int end = 0; while (matcher.find()) { result.append(text.substring(end, matcher.start())); result.append("<a href=\""); String linkText = text.substring(matcher.start(), matcher.end()); if (!linkText.startsWith("http: result.append("http: } result.append(linkText); result.append("\">"); result.append(linkText); result.append("</a>"); end = matcher.end(); } result.append(text.substring(end)); text = result.toString();
public static String convertTextToHtml(String text, boolean createLinks) { // Disarm html entities text = IOUtilities.replace(text.trim(), "<", "&lt;"); text = IOUtilities.replace(text.trim(), ">", "&gt;"); // Translate line breaks to html breaks text = IOUtilities.replace(text.trim(), "\n", "<br>"); // Create links for URLs if (createLinks) { text = text.replaceAll("(http://|www.)[^\\s<]*", "<a href=\"$0\">$0</a>"); } return text; }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/b7a956b52160bd5e08595d5825389ab60be8a5fc/HTMLTextHelper.java/clean/tvbrowser/src/util/ui/html/HTMLTextHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 1765, 1528, 774, 4353, 12, 780, 977, 16, 1250, 752, 7100, 13, 288, 565, 368, 3035, 4610, 1729, 5140, 565, 977, 273, 1665, 11864, 18, 2079, 12, 955, 18, 5290, 9334, 3532,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 1765, 1528, 774, 4353, 12, 780, 977, 16, 1250, 752, 7100, 13, 288, 565, 368, 3035, 4610, 1729, 5140, 565, 977, 273, 1665, 11864, 18, 2079, 12, 955, 18, 5290, 9334, 3532,...
logger.error("Settings not yet initialized. State: " + txtx.getRunState() );
logger.error("Settings not yet initialized. State: " + getTransformContext().getRunState() );
public AirgapSettings getAirgapSettings() { validateSettings(); if( settings == null ) logger.error("Settings not yet initialized. State: " + txtx.getRunState() ); return settings; }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/380cfe209cd037a8ef84b1a3dbad1f56d10bcca0/AirgapTransformImpl.java/clean/tran/airgap/main/com/metavize/tran/airgap/AirgapTransformImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 432, 481, 14048, 2628, 4506, 481, 14048, 2628, 1435, 565, 288, 3639, 1954, 2628, 5621, 202, 430, 12, 1947, 422, 446, 262, 202, 565, 1194, 18, 1636, 2932, 2628, 486, 4671, 6454, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 432, 481, 14048, 2628, 4506, 481, 14048, 2628, 1435, 565, 288, 3639, 1954, 2628, 5621, 202, 430, 12, 1947, 422, 446, 262, 202, 565, 1194, 18, 1636, 2932, 2628, 486, 4671, 6454, 18, ...
cons.gridy = 3;
cons.gridy = 4;
public EditorOptionPane() { super("editor"); GridBagLayout layout = new GridBagLayout(); setLayout(layout); GridBagConstraints cons = new GridBagConstraints(); cons.gridx = cons.gridy = 0; cons.gridwidth = 3; cons.gridheight = 1; cons.fill = GridBagConstraints.BOTH; cons.weightx = 1.0f; JLabel label = new JLabel(jEdit.getProperty("options.editor" + ".font"),SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; font = new JComboBox(getToolkit().getFontList()); font.setSelectedItem(jEdit.getProperty("view.font")); layout.setConstraints(font,cons); add(font); cons.gridx = 0; cons.gridy = 1; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty("options.editor.fontsize"), SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; String[] sizes = { "9", "10", "12", "14", "18", "24" }; size = new JComboBox(sizes); size.setSelectedItem(jEdit.getProperty("view.fontsize")); layout.setConstraints(size,cons); add(size); cons.gridx = 0; cons.gridy = 2; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty("options.editor.width"), SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; viewWidth = new JTextField(jEdit.getProperty("view.geometry.w")); layout.setConstraints(viewWidth,cons); add(viewWidth); cons.gridx = 0; cons.gridy = 3; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty("options.editor.height"), SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; viewHeight = new JTextField(jEdit.getProperty("view.geometry.h")); layout.setConstraints(viewHeight,cons); add(viewHeight); cons.gridx = 0; cons.gridy = 4; cons.gridwidth = 3; label = new JLabel(jEdit.getProperty("options.editor.tabSize"), SwingConstants.RIGHT); layout.setConstraints(label,cons); add(label); cons.gridx = 3; cons.gridwidth = 1; tabSize = new JTextField(jEdit.getProperty("buffer.tabSize")); layout.setConstraints(tabSize,cons); add(tabSize); cons.gridx = 0; cons.gridy = 5; cons.gridwidth = cons.REMAINDER; lineHighlight = new JCheckBox(jEdit.getProperty("options.editor" + ".lineHighlight")); lineHighlight.getModel().setSelected("on".equals(jEdit .getProperty("view.lineHighlight"))); layout.setConstraints(lineHighlight,cons); add(lineHighlight); cons.gridy = 6; bracketHighlight = new JCheckBox(jEdit.getProperty("options.editor" + ".bracketHighlight")); bracketHighlight.getModel().setSelected("on".equals(jEdit .getProperty("view.bracketHighlight"))); layout.setConstraints(bracketHighlight,cons); add(bracketHighlight); cons.gridy = 7; syntax = new JCheckBox(jEdit.getProperty("options.editor" + ".syntax")); syntax.getModel().setSelected("on".equals(jEdit.getProperty( "buffer.syntax"))); layout.setConstraints(syntax,cons); add(syntax); cons.gridy = 8; autoIndent = new JCheckBox(jEdit.getProperty("options.editor" + ".autoIndent")); autoIndent.getModel().setSelected("on".equals(jEdit.getProperty( "view.autoindent"))); layout.setConstraints(autoIndent,cons); add(autoIndent); cons.gridy = 9; blinkCaret = new JCheckBox(jEdit.getProperty("options.editor" + ".blinkCaret")); blinkCaret.getModel().setSelected(!"0".equals(jEdit.getProperty( "view.caretBlinkRate"))); layout.setConstraints(blinkCaret,cons); add(blinkCaret); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/3dd880fa154feb10894aee38225042b80125b1bc/EditorOptionPane.java/buggy/org/gjt/sp/jedit/options/EditorOptionPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18451, 1895, 8485, 1435, 202, 95, 202, 202, 9565, 2932, 9177, 8863, 202, 202, 6313, 5013, 3744, 3511, 273, 394, 7145, 5013, 3744, 5621, 202, 202, 542, 3744, 12, 6741, 1769, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18451, 1895, 8485, 1435, 202, 95, 202, 202, 9565, 2932, 9177, 8863, 202, 202, 6313, 5013, 3744, 3511, 273, 394, 7145, 5013, 3744, 5621, 202, 202, 542, 3744, 12, 6741, 1769, 202,...
rb_define_method(rb_cString, "capitalize", rb_str_capitalize, 0); rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0);
*/ stringClass.defineMethod("capitalize", getMethod("m_capitalize", false)); /*rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0);
public static RubyClass createStringClass(Ruby ruby) { RubyClass stringClass = ruby.defineClass("String", ruby.getObjectClass()); stringClass.includeModule(ruby.getRubyClass("Comparable")); // stringClass.includeModule(ruby.getModules().getEnumerable()); stringClass.defineSingletonMethod("new", getSingletonMethod("m_new", true)); stringClass.defineMethod("initialize", getMethod("m_replace", RubyString.class));/* rb_define_method(rb_cString, "clone", rb_str_clone, 0); rb_define_method(rb_cString, "dup", rb_str_dup, 0);*/ stringClass.defineMethod("<=>", getMethod("op_cmp", RubyObject.class)); stringClass.defineMethod("==", getMethod("m_equal", RubyObject.class)); stringClass.defineMethod("===", getMethod("m_equal", RubyObject.class)); stringClass.defineMethod("eql?", getMethod("m_equal", RubyObject.class)); /*rb_define_method(rb_cString, "hash", rb_str_hash_m, 0); rb_define_method(rb_cString, "+", rb_str_plus, 1); rb_define_method(rb_cString, "*", rb_str_times, 1); rb_define_method(rb_cString, "%", rb_str_format, 1); */ stringClass.defineMethod("[]", getMethod("m_slice", true)); /*rb_define_method(rb_cString, "[]=", rb_str_aset_m, -1); rb_define_method(rb_cString, "length", rb_str_length, 0); rb_define_method(rb_cString, "size", rb_str_length, 0); rb_define_method(rb_cString, "empty?", rb_str_empty, 0); rb_define_method(rb_cString, "=~", rb_str_match, 1); rb_define_method(rb_cString, "~", rb_str_match2, 0); rb_define_method(rb_cString, "succ", rb_str_succ, 0); rb_define_method(rb_cString, "succ!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "next", rb_str_succ, 0); rb_define_method(rb_cString, "next!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "upto", rb_str_upto_m, 1); rb_define_method(rb_cString, "index", rb_str_index_m, -1); rb_define_method(rb_cString, "rindex", rb_str_rindex, -1); rb_define_method(rb_cString, "replace", rb_str_replace_m, 1); rb_define_method(rb_cString, "to_i", rb_str_to_i, 0); */ stringClass.defineMethod("to_s", getMethod("m_to_s", false)); stringClass.defineMethod("to_str", getMethod("m_to_s", false)); /* rb_define_method(rb_cString, "inspect", rb_str_inspect, 0); rb_define_method(rb_cString, "dump", rb_str_dump, 0); rb_define_method(rb_cString, "upcase", rb_str_upcase, 0); rb_define_method(rb_cString, "downcase", rb_str_downcase, 0); rb_define_method(rb_cString, "capitalize", rb_str_capitalize, 0); rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0); rb_define_method(rb_cString, "upcase!", rb_str_upcase_bang, 0); rb_define_method(rb_cString, "downcase!", rb_str_downcase_bang, 0); rb_define_method(rb_cString, "capitalize!", rb_str_capitalize_bang, 0); rb_define_method(rb_cString, "swapcase!", rb_str_swapcase_bang, 0); rb_define_method(rb_cString, "hex", rb_str_hex, 0); rb_define_method(rb_cString, "oct", rb_str_oct, 0); rb_define_method(rb_cString, "split", rb_str_split_m, -1);*/ stringClass.defineMethod("reverse", getMethod("m_reverse", false)); /*rb_define_method(rb_cString, "reverse!", rb_str_reverse_bang, 0); rb_define_method(rb_cString, "concat", rb_str_concat, 1); rb_define_method(rb_cString, "<<", rb_str_concat, 1); rb_define_method(rb_cString, "crypt", rb_str_crypt, 1); rb_define_method(rb_cString, "intern", rb_str_intern, 0); rb_define_method(rb_cString, "include?", rb_str_include, 1); rb_define_method(rb_cString, "scan", rb_str_scan, 1); rb_define_method(rb_cString, "ljust", rb_str_ljust, 1); rb_define_method(rb_cString, "rjust", rb_str_rjust, 1); rb_define_method(rb_cString, "center", rb_str_center, 1); rb_define_method(rb_cString, "sub", rb_str_sub, -1); rb_define_method(rb_cString, "gsub", rb_str_gsub, -1); rb_define_method(rb_cString, "chop", rb_str_chop, 0); rb_define_method(rb_cString, "chomp", rb_str_chomp, -1); rb_define_method(rb_cString, "strip", rb_str_strip, 0); rb_define_method(rb_cString, "sub!", rb_str_sub_bang, -1); rb_define_method(rb_cString, "gsub!", rb_str_gsub_bang, -1); rb_define_method(rb_cString, "strip!", rb_str_strip_bang, 0); rb_define_method(rb_cString, "chop!", rb_str_chop_bang, 0); rb_define_method(rb_cString, "chomp!", rb_str_chomp_bang, -1); rb_define_method(rb_cString, "tr", rb_str_tr, 2); rb_define_method(rb_cString, "tr_s", rb_str_tr_s, 2); rb_define_method(rb_cString, "delete", rb_str_delete, -1); rb_define_method(rb_cString, "squeeze", rb_str_squeeze, -1); rb_define_method(rb_cString, "count", rb_str_count, -1); rb_define_method(rb_cString, "tr!", rb_str_tr_bang, 2); rb_define_method(rb_cString, "tr_s!", rb_str_tr_s_bang, 2); rb_define_method(rb_cString, "delete!", rb_str_delete_bang, -1); rb_define_method(rb_cString, "squeeze!", rb_str_squeeze_bang, -1); rb_define_method(rb_cString, "each_line", rb_str_each_line, -1); rb_define_method(rb_cString, "each", rb_str_each_line, -1); rb_define_method(rb_cString, "each_byte", rb_str_each_byte, 0); rb_define_method(rb_cString, "sum", rb_str_sum, -1); rb_define_global_function("sub", rb_f_sub, -1); rb_define_global_function("gsub", rb_f_gsub, -1); rb_define_global_function("sub!", rb_f_sub_bang, -1); rb_define_global_function("gsub!", rb_f_gsub_bang, -1); rb_define_global_function("chop", rb_f_chop, 0); rb_define_global_function("chop!", rb_f_chop_bang, 0); rb_define_global_function("chomp", rb_f_chomp, -1); rb_define_global_function("chomp!", rb_f_chomp_bang, -1); rb_define_global_function("split", rb_f_split, -1); rb_define_global_function("scan", rb_f_scan, 1);*/ stringClass.defineMethod("slice", getMethod("m_slice", true)); /*rb_define_method(rb_cString, "slice!", rb_str_slice_bang, -1); id_to_s = rb_intern("to_s"); rb_fs = Qnil; rb_define_hooked_variable("$;", &rb_fs, 0, rb_str_setter); rb_define_hooked_variable("$-F", &rb_fs, 0, rb_str_setter);*/ return stringClass; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/8e00ad1c7ae96f50ae0bd521483380788f891b7b/RbString.java/clean/org/jruby/core/RbString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 752, 780, 797, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 533, 797, 273, 22155, 18, 11255, 797, 2932, 780, 3113, 22155, 18, 588, 921, 797, 10663, 7734, 533, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 752, 780, 797, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 533, 797, 273, 22155, 18, 11255, 797, 2932, 780, 3113, 22155, 18, 588, 921, 797, 10663, 7734, 533, ...
org.eclipse.draw2d.geometry.Point pageSize = PageInfoHelper.getPageSize(fPreferences, false);
org.eclipse.draw2d.geometry.Point pageSize = PageInfoHelper.getPageSize(fPreferences, false, getMapMode());
protected void printToScale(DiagramEditPart dgrmEP, boolean loadedPreferences, IPreferenceStore fPreferences) { assert null != printer : "printer must be set"; //$NON-NLS-1$ Rectangle figureBounds = PrintHelper.getPageBreakBounds(dgrmEP, loadedPreferences); //translate to offset initial figure position translated = new Point(-figureBounds.x, -figureBounds.y); this.graphics.translate(translated.x, translated.y); this.graphics.scale(userScale); //calculate the number of page rows and columns org.eclipse.draw2d.geometry.Point pageSize = PageInfoHelper.getPageSize(fPreferences, false); float fNumRows = (figureBounds.height * userScale) / pageSize.y; int numRows = (int) Math.ceil(fNumRows); float fNumCols = (figureBounds.width * userScale) / pageSize.x; int numCols = (int) Math.ceil(fNumCols); PageMargins margins = PageInfoHelper.getPageMargins(fPreferences); adjustMargins(margins, userScale, getPrinterOffset()); GC gc_ = new GC(Display.getDefault()); FontData fontData = JFaceResources.getDefaultFont().getFontData()[0]; Font font = new Font(printer, fontData); try { //print the pages in row, column order for (int row = 1; row <= numRows; row++) { for (int col = 1; col <= numCols; col++) { printer.startPage(); drawPage(gc_, dgrmEP, fPreferences, figureBounds, margins, font, row, col); printer.endPage(); } } } finally { //must dispose resources font.dispose(); gc_.dispose(); } }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/adc1102179d667e4a670bfc5711892726a23a343/DiagramPrinter.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.printing/src/org/eclipse/gmf/runtime/diagram/ui/printing/internal/util/DiagramPrinter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1172, 774, 5587, 12, 14058, 1940, 4666, 1988, 302, 3197, 81, 10541, 16, 1250, 4203, 12377, 16, 467, 9624, 2257, 284, 12377, 13, 288, 202, 202, 11231, 446, 480, 12539, 294,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1172, 774, 5587, 12, 14058, 1940, 4666, 1988, 302, 3197, 81, 10541, 16, 1250, 4203, 12377, 16, 467, 9624, 2257, 284, 12377, 13, 288, 202, 202, 11231, 446, 480, 12539, 294,...
AST tmp1640_AST_in = (AST)_t;
AST tmp1641_AST_in = (AST)_t;
public final void createviewstate(AST _t) throws RecognitionException { AST createviewstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1250 = _t; AST tmp1638_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); AST tmp1639_AST_in = (AST)_t; match(_t,VIEW); _t = _t.getNextSibling(); AST tmp1640_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_list: { AST __t1252 = _t; AST tmp1641_AST_in = (AST)_t; match(_t,Field_list); _t = _t.getFirstChild(); AST tmp1642_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); fld(_t,CQ.SYMBOL); _t = _retTree; { _loop1254: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1643_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); fld(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop1254; } } while (true); } AST tmp1644_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1252; _t = _t.getNextSibling(); break; } case AS: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1645_AST_in = (AST)_t; match(_t,AS); _t = _t.getNextSibling(); selectstatea(_t); _t = _retTree; state_end(_t); _t = _retTree; _t = __t1250; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 752, 1945, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 1945, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 752, 1945, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 1945, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294,...
"single_invalid_username_dir", new Object[] { invalidUsernames.get(0) });
"single_invalid_username_dir", new Object[] { });
public boolean usernamesValid(CSV studentGrades) { boolean usersAreValid = true; List blankRows = new ArrayList(); List invalidUsernames = new ArrayList(); int row=1; List studentList = studentGrades.getStudents(); Iterator studentIter = studentList.iterator(); while (studentIter.hasNext()) { row++; List s1 = (List) studentIter.next(); String usr = ((String) s1.get(0)).trim(); if(usr.equals("") || usr == null) { usersAreValid = false; blankRows.add(new Integer(row)); } else if(!isSiteMember(getUserId(usr))) { usersAreValid = false; invalidUsernames.add(usr); } } if (blankRows.size() == 1) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_single_username", new Object[] { }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_location", new Object[] { blankRows.get(0) }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_username_dir", new Object[] { }); } else if (blankRows.size() > 1) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_mult_usernames", new Object[] { }); for(int i=0; i < blankRows.size(); i++) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_location", new Object[] { blankRows.get(i) }); } PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "missing_username_dir", new Object[] { }); } if (invalidUsernames.size() == 1) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "blank", new Object[] { }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "single_invalid_username", new Object[] { }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "invalid_username", new Object[] { invalidUsernames.get(0) }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "single_invalid_username_dir", new Object[] { invalidUsernames.get(0) }); } else if (invalidUsernames.size() > 1) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "blank", new Object[] { }); PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "mult_invalid_usernames", new Object[] { }); for(int j=0; j < invalidUsernames.size(); j++) { PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "invalid_username", new Object[] { invalidUsernames.get(j) }); } PostemTool.populateMessage(FacesMessage.SEVERITY_ERROR, "mult_invalid_usernames_dir", new Object[] { }); } return usersAreValid; }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/895b626c4d7be4c9f1ba9d85ac10640abd71da99/PostemTool.java/clean/postem/postem-app/src/java/org/sakaiproject/tool/postem/PostemTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 27675, 1556, 12, 16570, 18110, 14571, 5489, 13, 288, 202, 202, 6494, 3677, 4704, 1556, 273, 638, 31, 202, 202, 682, 7052, 4300, 273, 394, 2407, 5621, 202, 202, 682, 2057, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 27675, 1556, 12, 16570, 18110, 14571, 5489, 13, 288, 202, 202, 6494, 3677, 4704, 1556, 273, 638, 31, 202, 202, 682, 7052, 4300, 273, 394, 2407, 5621, 202, 202, 682, 2057, ...
copyNonNullPermissions( newDetails, source.getPermissions() ); applyUmaskIfNecessary( newDetails ); if (source.getOwner() != null && ! source.getOwner().getId().equals( newDetails.getOwner().getId() )) { if ( currentUserIsAdmin() ) { newDetails.setOwner( source.getOwner() ); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner().getId() )); } }
if (hasPrivilegedToken(obj)) return obj.getDetails();
public Details transientDetails( IObject obj ) { checkReady("transientDetails"); if ( hasPrivilegedToken( obj ) ) return obj.getDetails(); // EARLY EXIT Details source = obj.getDetails(); Details newDetails = CurrentDetails.createDetails(); if ( source != null ) { copyNonNullPermissions( newDetails, source.getPermissions() ); applyUmaskIfNecessary( newDetails ); // users *aren't* allowed to set the owner of an item. if (source.getOwner() != null && ! source.getOwner().getId().equals( newDetails.getOwner().getId() )) { // but this is root if ( currentUserIsAdmin() ) { newDetails.setOwner( source.getOwner() ); } else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterID" + " for %s to %d", obj, source.getOwner().getId() )); } } // users are only allowed to set to another of their groups if (source.getGroup() != null && source.getGroup().getId() != null) { // users can change to their own group if (memberOfGroups().contains( source.getGroup().getId())) { newDetails.setGroup( source.getGroup() ); } // and admin can change it too else if ( currentUserIsAdmin() ) { newDetails.setGroup( source.getGroup() ); } // oops. boom! else { throw new SecurityViolation(String.format( "You are not authorized to set the ExperimenterGroupID"+ " for %s to %d", obj, source.getGroup().getId() )); } } } return newDetails; }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/9c53370b3f7a88f29e38673527398c205d19f7d6/BasicSecuritySystem.java/clean/components/server/src/ome/security/BasicSecuritySystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21897, 12315, 3790, 12, 467, 921, 1081, 262, 565, 288, 377, 202, 377, 202, 1893, 8367, 2932, 22670, 3790, 8863, 377, 202, 377, 202, 430, 261, 711, 18845, 1345, 12, 1081, 262, 262, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21897, 12315, 3790, 12, 467, 921, 1081, 262, 565, 288, 377, 202, 377, 202, 1893, 8367, 2932, 22670, 3790, 8863, 377, 202, 377, 202, 430, 261, 711, 18845, 1345, 12, 1081, 262, 262, ...
addEndpointIdentfierRules(digester, path);
addEndpointIdentifierRules(digester, path);
public MuleXmlConfigurationBuilder() throws ConfigurationException { ConvertUtils.register(new EndpointConverter(), UMOEndpoint.class); ConvertUtils.register(new TransformerConverter(), UMOTransformer.class); ConvertUtils.register(new ConnectorConverter(), UMOConnector.class); ConvertUtils.register(new TransactionFactoryConverter(), UMOTransactionFactory.class); ConvertUtils.register(new EndpointURIConverter(), UMOEndpointURI.class); //This is a hack to stop Digester spitting out unnecessary warnings where there is // a customer error handler registered digester = new Digester() { public void warning(SAXParseException e) throws SAXException { if(errorHandler!=null) { errorHandler.warning(e); } } }; digester.setEntityResolver(new MuleDtdResolver()); String temp = System.getProperty("org.mule.xml.validate", "true"); digester.setValidating((temp.equalsIgnoreCase("true"))); digester.setErrorHandler(new ErrorHandler() { public void error(SAXParseException exception) throws SAXException { logger.error(exception.getMessage(), exception); throw new SAXException(exception); } public void fatalError(SAXParseException exception) throws SAXException { logger.fatal(exception.getMessage(), exception); throw new SAXException(exception); } public void warning(SAXParseException exception) throws SAXException { logger.warn(exception.getMessage()); } }); String path = "mule-configuration"; addMuleConfigurationRules(digester, path); addContainerContextRules(digester, path); addTransformerRules(digester, path); addMuleEnvironmentPropertiesRules(digester, path); addSecurityManagerRules(digester, path); addTransactionManagerRules(digester, path); addGlobalEndpointRules(digester, path); addEndpointIdentfierRules(digester, path); addInterceptorStackRules(digester, path); addConnectorRules(digester, path); addAgentRules(digester, path); addModelRules(digester, path); //Threse rules allow for individual component configurations addMuleDescriptorRules(digester, path); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/1c15d7a249a9c5b97cdd22a3dae46924e57eb999/MuleXmlConfigurationBuilder.java/buggy/src/java/org/mule/config/builders/MuleXmlConfigurationBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 725, 4432, 1750, 1263, 1435, 1216, 22196, 288, 3639, 4037, 1989, 18, 4861, 12, 2704, 6961, 5072, 9334, 587, 5980, 3293, 18, 1106, 1769, 3639, 4037, 1989, 18, 4861, 12, 2704, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 725, 4432, 1750, 1263, 1435, 1216, 22196, 288, 3639, 4037, 1989, 18, 4861, 12, 2704, 6961, 5072, 9334, 587, 5980, 3293, 18, 1106, 1769, 3639, 4037, 1989, 18, 4861, 12, 2704, 11...
public boolean isSet(org.quickfix.field.EventType field)
public boolean isSet(quickfix.field.EventType field)
public boolean isSet(org.quickfix.field.EventType field) { return isSetField(field); }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinitionRequest.java/clean/src/java/src/quickfix/fix44/SecurityDefinitionRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 16346, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 16346, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
super(position);
super(position, NodeTypes.SVALUENODE);
public SValueNode(ISourcePosition position, Node node) { super(position); this.node = node; }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/6e15491217631472c05c6928672f9c7064a978b3/SValueNode.java/buggy/src/org/jruby/ast/SValueNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 348, 620, 907, 12, 45, 1830, 2555, 1754, 16, 2029, 756, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 55, 2669, 57, 1157, 2712, 1769, 3639, 333, 18, 2159, 273, 756, 31, 565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 348, 620, 907, 12, 45, 1830, 2555, 1754, 16, 2029, 756, 13, 288, 3639, 2240, 12, 3276, 16, 2029, 2016, 18, 55, 2669, 57, 1157, 2712, 1769, 3639, 333, 18, 2159, 273, 756, 31, 565...
} catch(IOException ignored) {}
} catch(IOException ignored) { ioproblem = true; }
public synchronized void addEntry(File incompleteFile, VerifyingFile vf) { // We must canonicalize the file. try { incompleteFile = FileUtils.getCanonicalFile(incompleteFile); } catch(IOException ignored) {} blocks.put(incompleteFile,vf); registerIncompleteFile(incompleteFile); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/a3f4bb9ba3fdfcb73638beafc32cbbd4f8d089fa/IncompleteFileManager.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/downloader/IncompleteFileManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 527, 1622, 12, 812, 14715, 812, 16, 8553, 310, 812, 28902, 13, 288, 3639, 368, 1660, 1297, 25839, 326, 585, 18, 3639, 775, 288, 5411, 14715, 812, 273, 13779, 18, 588, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 527, 1622, 12, 812, 14715, 812, 16, 8553, 310, 812, 28902, 13, 288, 3639, 368, 1660, 1297, 25839, 326, 585, 18, 3639, 775, 288, 5411, 14715, 812, 273, 13779, 18, 588, 1...
|| (AuthzGroupService.isAllowed(SessionManager.getCurrentSessionUserId(), SECURE_ALL_GROUPS, SiteService.siteReference(context))))
|| AuthzGroupService.isAllowed(SessionManager.getCurrentSessionUserId(), SECURE_ALL_GROUPS, SiteService.siteReference(context)) && unlockCheck(function, SiteService.siteReference(context)))
protected Collection getGroupsAllowFunction(String function, String context) { Collection rv = new Vector(); try { // get the site groups Site site = SiteService.getSite(context); Collection groups = site.getGroups(); // if the user has SECURE_ALL_GROUPS in the context (site), or a super user, select all site groups if (SecurityService.isSuperUser() || (AuthzGroupService.isAllowed(SessionManager.getCurrentSessionUserId(), SECURE_ALL_GROUPS, SiteService.siteReference(context)))) { return groups; } // otherwise, check the groups for function // get a list of the group refs, which are authzGroup ids Collection groupRefs = new Vector(); for (Iterator i = groups.iterator(); i.hasNext();) { Group group = (Group) i.next(); groupRefs.add(group.getReference()); } // ask the authzGroup service to filter them down based on function groupRefs = AuthzGroupService.getAuthzGroupsIsAllowed(SessionManager.getCurrentSessionUserId(), function, groupRefs); // pick the Group objects from the site's groups to return, those that are in the groupRefs list for (Iterator i = groups.iterator(); i.hasNext();) { Group group = (Group) i.next(); if (groupRefs.contains(group.getReference())) { rv.add(group); } } } catch (IdUnusedException e) { } return rv; }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/4f7565a9731b1acafc9e2370e1b4b6bfa6e41c64/BaseAssignmentService.java/buggy/assignment/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2200, 22708, 7009, 2083, 12, 780, 445, 16, 514, 819, 13, 202, 95, 202, 202, 2532, 5633, 273, 394, 5589, 5621, 9506, 202, 698, 202, 202, 95, 1082, 202, 759, 336, 326, 2834, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2200, 22708, 7009, 2083, 12, 780, 445, 16, 514, 819, 13, 202, 95, 202, 202, 2532, 5633, 273, 394, 5589, 5621, 9506, 202, 698, 202, 202, 95, 1082, 202, 759, 336, 326, 2834, ...
public org.quickfix.field.LocaleOfIssue getLocaleOfIssue() throws FieldNotFound { org.quickfix.field.LocaleOfIssue value = new org.quickfix.field.LocaleOfIssue();
public quickfix.field.LocaleOfIssue getLocaleOfIssue() throws FieldNotFound { quickfix.field.LocaleOfIssue value = new quickfix.field.LocaleOfIssue();
public org.quickfix.field.LocaleOfIssue getLocaleOfIssue() throws FieldNotFound { org.quickfix.field.LocaleOfIssue value = new org.quickfix.field.LocaleOfIssue(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassStatusRequest.java/clean/src/java/src/quickfix/fix43/OrderMassStatusRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 9595, 951, 12956, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 460, 273, 394, 2358, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 9595, 951, 12956, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3916, 951, 12956, 460, 273, 394, 2358, ...
public static String removeExtension( final String filename ) { final int index = filename.lastIndexOf( '.' );
public static String removeExtension(final String filename) { final int index = filename.lastIndexOf('.');
public static String removeExtension( final String filename ) { final int index = filename.lastIndexOf( '.' ); if( -1 == index ) { return filename; } else { return filename.substring( 0, index ); } }
49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/6a1bb4d53562a50bbaad48ee2c94971649e24cf5/FileUtils.java/clean/src/java/org/apache/commons/io/FileUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1206, 3625, 12, 727, 514, 1544, 262, 565, 288, 3639, 727, 509, 770, 273, 1544, 18, 2722, 31985, 12, 2611, 11272, 3639, 309, 12, 300, 21, 422, 770, 262, 3639, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 3625, 12, 727, 514, 1544, 262, 565, 288, 3639, 727, 509, 770, 273, 1544, 18, 2722, 31985, 12, 2611, 11272, 3639, 309, 12, 300, 21, 422, 770, 262, 3639, 288, 5411, ...
if (null == MVVM_CONTEXT) { synchronized (MvvmContextFactory.class) { if (null == MVVM_CONTEXT) { MVVM_CONTEXT = MvvmContextImpl.context(); } } }
public static MvvmLocalContext context() { if (null == MVVM_CONTEXT) { synchronized (MvvmContextFactory.class) { if (null == MVVM_CONTEXT) { MVVM_CONTEXT = MvvmContextImpl.context(); } } } return MVVM_CONTEXT; }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/0583f43289ab7a7371bd12d51cc0d7c42bdbcdae/MvvmContextFactory.java/buggy/mvvm/main/com/metavize/mvvm/MvvmContextFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 490, 90, 3489, 2042, 1042, 819, 1435, 565, 288, 3639, 309, 261, 2011, 422, 25324, 7397, 67, 13181, 13, 288, 5411, 3852, 261, 49, 90, 3489, 29871, 18, 1106, 13, 288, 7734, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 490, 90, 3489, 2042, 1042, 819, 1435, 565, 288, 3639, 309, 261, 2011, 422, 25324, 7397, 67, 13181, 13, 288, 5411, 3852, 261, 49, 90, 3489, 29871, 18, 1106, 13, 288, 7734, 309...
for (int i=0; i<getAssociatesLength0(); i++) if (areAssociated(which,i))
for (int i=0; i<taxaB.getNumTaxa(); i++) if (areAssociated(which,i))
public int getNumAssociates(Taxon taxon){ if (!includedTaxon(taxon)) return 0; int which = taxaA.whichTaxonNumber(taxon); if (which==-1) { //taxon belongs to B; need to look down matrix which = taxaB.whichTaxonNumber(taxon); if (which==-1) return 0; int num = 0; for (int i=0; i<getAssociatesLength(); i++) //counting how many associates if (areAssociated(i, which)) num++; return num; } else { //taxon belongs to A; need to look across matrix int num = 0; for (int i=0; i<getAssociatesLength0(); i++) //counting how many associates if (areAssociated(which,i)) num++; return num; } }
55939 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55939/b8fce5dbd78e4aa283e90e7c67e2862d5f93ea7d/TaxaAssociation.java/buggy/Source/mesquite/assoc/lib/TaxaAssociation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 11187, 28469, 12, 7731, 265, 25458, 15329, 202, 202, 430, 16051, 20405, 7731, 265, 12, 8066, 265, 3719, 1082, 202, 2463, 374, 31, 202, 202, 474, 1492, 273, 5320, 69, 37, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 11187, 28469, 12, 7731, 265, 25458, 15329, 202, 202, 430, 16051, 20405, 7731, 265, 12, 8066, 265, 3719, 1082, 202, 2463, 374, 31, 202, 202, 474, 1492, 273, 5320, 69, 37, ...
} else if (editorInput instanceof NewBugEditorInput) {
} else if (editorInput instanceof NewTaskEditorInput) {
public EditorPart createEditor(MylarTaskEditor parentEditor, IEditorInput editorInput) { AbstractRepositoryTaskEditor editor = null; if (editorInput instanceof RepositoryTaskEditorInput || editorInput instanceof TaskEditorInput) { editor = new BugzillaTaskEditor(parentEditor); } else if (editorInput instanceof NewBugEditorInput) { editor = new NewBugzillaTaskEditor(parentEditor); } return editor; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/18b9826f38b318f8daeb4ddbc60cd58a67591379/BugzillaTaskEditorFactory.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTaskEditorFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18451, 1988, 752, 6946, 12, 12062, 7901, 2174, 6946, 982, 6946, 16, 467, 6946, 1210, 4858, 1210, 13, 288, 202, 202, 7469, 3305, 2174, 6946, 4858, 273, 446, 31, 202, 202, 430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 18451, 1988, 752, 6946, 12, 12062, 7901, 2174, 6946, 982, 6946, 16, 467, 6946, 1210, 4858, 1210, 13, 288, 202, 202, 7469, 3305, 2174, 6946, 4858, 273, 446, 31, 202, 202, 430, ...
public final Class getCategory()
public Class getCategory()
public final Class getCategory() { return PDLOverrideSupported.class; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/PDLOverrideSupported.java/buggy/core/src/classpath/javax/javax/print/attribute/standard/PDLOverrideSupported.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1659, 19110, 1435, 225, 288, 565, 327, 28704, 1502, 1197, 7223, 18, 1106, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1659, 19110, 1435, 225, 288, 565, 327, 28704, 1502, 1197, 7223, 18, 1106, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
private void load() {
protected synchronized void load() {
private void load() { // load XmlFile file = getConfigFile(); if(!file.exists()) return; try { Object o = file.unmarshal(this); if(o instanceof Map) { // legacy format convert((Map<String,Object>)o); save(); // convert to the new format } } catch (IOException e) { LOGGER.log(Level.WARNING, "Failed to load "+file, e); } }
27266 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27266/b46bf8b2b4dd56fb0fa41c4d98a0a8cadd4ae191/Descriptor.java/buggy/core/src/main/java/hudson/model/Descriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3852, 918, 1262, 1435, 288, 4202, 368, 1262, 3639, 5714, 812, 585, 273, 4367, 812, 5621, 3639, 309, 12, 5, 768, 18, 1808, 10756, 5411, 327, 31, 3639, 775, 288, 5411, 1033, 320, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 918, 1262, 1435, 288, 4202, 368, 1262, 3639, 5714, 812, 585, 273, 4367, 812, 5621, 3639, 309, 12, 5, 768, 18, 1808, 10756, 5411, 327, 31, 3639, 775, 288, 5411, 1033, 320, 27...
yaccValue = new Token(""+c, getPosition(null, false));
yaccValue = new Token(""+c, getPositionMinusOne());
private int parseQuote(char c) { char term; char paren; if (!Character.isLetterOrDigit(c)) { term = c; c = 'Q'; } else { term = src.read(); if (Character.isLetterOrDigit(term) /* no mb || ismbchar(term)*/) { throw new SyntaxException(src.getPosition(), "unknown type of %string"); } } if (c == EOF || term == EOF) { throw new SyntaxException(src.getPosition(), "unterminated quoted string meets end of file"); } paren = term; if (term == '(') term = ')'; else if (term == '[') term = ']'; else if (term == '{') term = '}'; else if (term == '<') term = '>'; else paren = '\0'; switch (c) { case 'Q': lex_strterm = new StringTerm(str_dquote, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tSTRING_BEG; case 'q': lex_strterm = new StringTerm(str_squote, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tSTRING_BEG; case 'W': lex_strterm = new StringTerm(str_dquote | STR_FUNC_QWORDS, term, paren); do {c = src.read();} while (Character.isWhitespace(c)); src.unread(c); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tWORDS_BEG; case 'w': lex_strterm = new StringTerm(str_squote | STR_FUNC_QWORDS, term, paren); do {c = src.read();} while (Character.isWhitespace(c)); src.unread(c); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tQWORDS_BEG; case 'x': lex_strterm = new StringTerm(str_xquote, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tXSTRING_BEG; case 'r': lex_strterm = new StringTerm(str_regexp, term, paren); yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tREGEXP_BEG; case 's': lex_strterm = new StringTerm(str_ssym, term, paren); lex_state = LexState.EXPR_FNAME; yaccValue = new Token(""+c, getPosition(null, false)); return Tokens.tSYMBEG; default: throw new SyntaxException(src.getPosition(), "Unknown type of %string. Expected 'Q', 'q', 'w', 'x', 'r' or any non letter character, but found '" + c + "'."); } }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/67a441c8ea70c9532cdedb2001a6741b63e793ae/RubyYaccLexer.java/clean/src/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 10257, 12, 3001, 276, 13, 288, 3639, 1149, 2481, 31, 3639, 1149, 22146, 31, 7734, 309, 16051, 7069, 18, 291, 13938, 1162, 10907, 12, 71, 3719, 288, 5411, 2481, 273, 276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1109, 10257, 12, 3001, 276, 13, 288, 3639, 1149, 2481, 31, 3639, 1149, 22146, 31, 7734, 309, 16051, 7069, 18, 291, 13938, 1162, 10907, 12, 71, 3719, 288, 5411, 2481, 273, 276, ...
}
private EMSA_PKCS1_V1_5(final IMessageDigest hash) { super(); this.hash = hash; hLen = hash.hashSize(); final String name = hash.name(); if (name.equals(Registry.MD2_HASH)) { prefix = MD2_PREFIX; } else if (name.equals(Registry.MD5_HASH)) { prefix = MD5_PREFIX; } else if (name.equals(Registry.SHA160_HASH)) { prefix = SHA160_PREFIX; } else if (name.equals(Registry.SHA256_HASH)) { prefix = SHA256_PREFIX; } else if (name.equals(Registry.SHA384_HASH)) { prefix = SHA384_PREFIX; } else if (name.equals(Registry.SHA512_HASH)) { prefix = SHA512_PREFIX; } else { throw new UnsupportedOperationException(); // should not happen } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/EMSA_PKCS1_V1_5.java/clean/core/src/classpath/gnu/gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 512, 3537, 37, 67, 26044, 21, 67, 58, 21, 67, 25, 12, 6385, 467, 1079, 9568, 1651, 13, 225, 288, 565, 2240, 5621, 565, 333, 18, 2816, 273, 1651, 31, 565, 366, 2891, 273, 1651, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 512, 3537, 37, 67, 26044, 21, 67, 58, 21, 67, 25, 12, 6385, 467, 1079, 9568, 1651, 13, 225, 288, 565, 2240, 5621, 565, 333, 18, 2816, 273, 1651, 31, 565, 366, 2891, 273, 1651, ...
Assert.isNotNull(elements); for (int i = 0, n = elements.length; i < n; ++i) { Assert.isNotNull(elements[i]); } }
Assert.isNotNull(elements); for (int i = 0, n = elements.length; i < n; ++i) { Assert.isNotNull(elements[i]); } }
protected void assertElementsNotNull(Object[] elements) { Assert.isNotNull(elements); for (int i = 0, n = elements.length; i < n; ++i) { Assert.isNotNull(elements[i]); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/dc85f0b1334fe6aa79c5c32e8024d573af99e0d2/StructuredViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1815, 3471, 5962, 12, 921, 8526, 2186, 13, 288, 3639, 5452, 18, 291, 5962, 12, 6274, 1769, 3639, 364, 261, 474, 277, 273, 374, 16, 290, 273, 2186, 18, 2469, 31, 277, 411, 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, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1815, 3471, 5962, 12, 921, 8526, 2186, 13, 288, 3639, 5452, 18, 291, 5962, 12, 6274, 1769, 3639, 364, 261, 474, 277, 273, 374, 16, 290, 273, 2186, 18, 2469, 31, 277, 411, 2...
dm.endDraggingFrame(frame);
dm.endDraggingFrame(frame);
public void mouseReleased(MouseEvent e) { DesktopManager dm = getDesktopManager(); xOffset = 0; yOffset = 0; if (e.getSource() == frame && frame.isResizable()) dm.endResizingFrame(frame); else if (e.getSource() == titlePane) dm.endDraggingFrame(frame); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicInternalFrameUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicInternalFrameUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 26363, 12, 9186, 1133, 425, 13, 565, 288, 1377, 10597, 11869, 1318, 9113, 273, 2343, 281, 11869, 1318, 5621, 1377, 619, 2335, 273, 374, 31, 1377, 677, 2335, 273, 374, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26363, 12, 9186, 1133, 425, 13, 565, 288, 1377, 10597, 11869, 1318, 9113, 273, 2343, 281, 11869, 1318, 5621, 1377, 619, 2335, 273, 374, 31, 1377, 677, 2335, 273, 374, 31,...
fPluginConfigurationPage = new ConfigurationPage(this, false); fFeatureConfigurationPage = new ConfigurationPage(this, true); if (useFeatures()) addPage(fFeatureConfigurationPage); else addPage(fPluginConfigurationPage);
addPage(new ConfigurationPage(this, useFeatures()));
protected void addPages() { try { addPage(new OverviewPage(this)); fPluginConfigurationPage = new ConfigurationPage(this, false); fFeatureConfigurationPage = new ConfigurationPage(this, true); if (useFeatures()) addPage(fFeatureConfigurationPage); else addPage(fPluginConfigurationPage); addPage(new LauncherPage(this)); addPage(new BrandingPage(this)); } catch (PartInitException e) { PDEPlugin.logException(e); } }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/82cefb5219425d9e6933401e00cf61251ef234f0/ProductEditor.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/product/ProductEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 5716, 1435, 288, 202, 202, 698, 288, 1082, 202, 1289, 1964, 12, 2704, 10752, 1945, 1964, 12, 2211, 10019, 1082, 202, 74, 3773, 1750, 1964, 273, 394, 4659, 1964, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 5716, 1435, 288, 202, 202, 698, 288, 1082, 202, 1289, 1964, 12, 2704, 10752, 1945, 1964, 12, 2211, 10019, 1082, 202, 74, 3773, 1750, 1964, 273, 394, 4659, 1964, 12, ...
doFinish( locPath, fileName, stream, monitor );
doFinish( locPath, fileName, libraryFileName, monitor );
public boolean performFinish( ) { final IPath locPath = getContainerFullPath( ); String fn = getFileName( ); final String fileName; if ( !fn.endsWith( SUFFIX ) ) //$NON-NLS-1$ { fileName = fn + SUFFIX; //$NON-NLS-1$ } else { fileName = fn; } InputStream inputData = null; URL url = Platform.find( Platform.getBundle( ReportPlugin.REPORT_UI ), new Path( TEMPLATE_FILE ) ); if ( url != null ) { try { inputData = url.openStream( ); } catch ( IOException e1 ) { // ignore. } } final InputStream stream = inputData; IRunnableWithProgress op = new IRunnableWithProgress( ) { public void run( IProgressMonitor monitor ) { try { doFinish( locPath, fileName, stream, monitor ); } finally { monitor.done( ); } } }; try { getContainer( ).run( true, false, op ); } catch ( InterruptedException e ) { return false; } catch ( InvocationTargetException e ) { Throwable realException = e.getTargetException( ); ExceptionHandler.handle( realException ); return false; } return true; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/76ebe408a984f02b49cbaf1597c0c7a0213901fe/WizardNewLibraryCreationPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.rcp/src/org/eclipse/birt/report/designer/ui/internal/rcp/wizards/WizardNewLibraryCreationPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 12, 262, 202, 95, 202, 202, 6385, 467, 743, 1515, 743, 273, 9272, 24173, 12, 11272, 202, 202, 780, 2295, 273, 13807, 12, 11272, 202, 202, 6385, 514, 3968, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 12, 262, 202, 95, 202, 202, 6385, 467, 743, 1515, 743, 273, 9272, 24173, 12, 11272, 202, 202, 780, 2295, 273, 13807, 12, 11272, 202, 202, 6385, 514, 3968, 3...
filenames[0] = "src/test/output/test-" + sdf.format(cal.getTime()); filenames[1] = "src/test/output/test.log";
filenames[0] = Constants.TEST_DIR_PREFIX + "output/test-" + sdf.format(cal.getTime()); filenames[1] = Constants.TEST_DIR_PREFIX + "/output/test.log";
public void testRename() throws Exception { RollingFileAppender rfa = new RollingFileAppender(); rfa.setLayout(layout); rfa.setContext(context); rfa.setFile("src/test/output/test.log"); // rollover by the second String datePattern = "yyyy-MM-dd_HH_mm_ss"; SimpleDateFormat sdf = new SimpleDateFormat(datePattern); String[] filenames = new String[2]; TimeBasedRollingPolicy tbrp = new TimeBasedRollingPolicy(); tbrp.setFileNamePattern("src/test/output/test-%d{" + datePattern + "}"); //tbrp.setActiveFileName("src/test/output/test.log"); tbrp.setContext(context); tbrp.setParent(rfa); tbrp.start(); rfa.setRollingPolicy(tbrp); rfa.start(); //StatusPrinter.print(context.getStatusManager()); Calendar cal = Calendar.getInstance(); rfa.doAppend("Hello 0"); DelayerUtil.delayUntilNextSecond(50); rfa.doAppend("Hello 1"); filenames[0] = "src/test/output/test-" + sdf.format(cal.getTime()); filenames[1] = "src/test/output/test.log"; for (int i = 0; i < filenames.length; i++) { //System.out.println("before i=" + i); assertTrue(Compare.compare(filenames[i], "src/test/witness/rolling/renaming." + i)); //System.out.println("post i=" + i); } }
51675 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51675/9bd8f1bd2c318517068244dc23c1f941119f40ec/RenamingTest.java/buggy/logback-core/src/test/java/ch/qos/logback/core/rolling/RenamingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 16019, 1435, 1216, 1185, 288, 565, 29495, 812, 17302, 436, 507, 273, 394, 29495, 812, 17302, 5621, 565, 436, 507, 18, 542, 3744, 12, 6741, 1769, 565, 436, 507, 18, 542, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 16019, 1435, 1216, 1185, 288, 565, 29495, 812, 17302, 436, 507, 273, 394, 29495, 812, 17302, 5621, 565, 436, 507, 18, 542, 3744, 12, 6741, 1769, 565, 436, 507, 18, 542, ...
if(!isNonDisplayableJob(next,false))
if (!isNonDisplayableJob(next, false))
private boolean hasNoRegularJobInfos() { synchronized (jobs) { Iterator iterator = jobs.keySet().iterator(); while (iterator.hasNext()) { Job next = (Job) iterator.next(); if(!isNonDisplayableJob(next,false)) return false; } return true; } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d3b4b31ecabe1d86134fe8862237288d7938f95b/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 711, 2279, 17974, 2278, 7655, 1435, 288, 202, 202, 22043, 261, 10088, 13, 288, 6862, 6862, 202, 3198, 2775, 273, 6550, 18, 856, 694, 7675, 9838, 5621, 1082, 202, 17523, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 711, 2279, 17974, 2278, 7655, 1435, 288, 202, 202, 22043, 261, 10088, 13, 288, 6862, 6862, 202, 3198, 2775, 273, 6550, 18, 856, 694, 7675, 9838, 5621, 1082, 202, 17523, 2...
return toString(new Context(ctxt, req, item));
return toString(new Context(ctxt, item));
public String toString(WikiContext ctxt, HttpServletRequest req, MailItem item) throws ServiceException, IOException { return toString(new Context(ctxt, req, item)); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/725e4688fbf5b3fddb9e57ed34b1482c76155438/WikiTemplate.java/clean/ZimbraServer/src/java/com/zimbra/cs/wiki/WikiTemplate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 12, 25438, 1042, 14286, 16, 9984, 1111, 16, 11542, 1180, 761, 13, 202, 15069, 16489, 16, 1860, 288, 202, 202, 2463, 1762, 12, 2704, 1772, 12, 20364, 16, 1111, 16, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 12, 25438, 1042, 14286, 16, 9984, 1111, 16, 11542, 1180, 761, 13, 202, 15069, 16489, 16, 1860, 288, 202, 202, 2463, 1762, 12, 2704, 1772, 12, 20364, 16, 1111, 16, 7...
public static FontData asFontData(String value, FontData dflt) {
public static FontData asFontData(String value) throws DataFormatException { if (value == null) throw new DataFormatException( "Null doesn't represent a valid font data"); String name = null; int height = 0; int style = 0;
public static FontData asFontData(String value, FontData dflt) { try { return asFontData(value); } catch (DataFormatException e) { return dflt; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ee0b2663c5e61933cb88889479cf69cb1e2baafc/StringConverter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/StringConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 10063, 751, 487, 5711, 751, 12, 780, 460, 13, 1216, 1910, 9291, 288, 309, 261, 1132, 422, 446, 13, 604, 394, 1910, 9291, 12, 315, 2041, 3302, 1404, 2406, 279, 923, 3512, 501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10063, 751, 487, 5711, 751, 12, 780, 460, 13, 1216, 1910, 9291, 288, 309, 261, 1132, 422, 446, 13, 604, 394, 1910, 9291, 12, 315, 2041, 3302, 1404, 2406, 279, 923, 3512, 501,...
public StyleRange[] lineGetStyle(int eventLineOffset, int eventLineLength) { StyleRange[] eventStyles = EMPTY_STYLE_RANGE; try { if (getDocument() == null) { // during initialization, this is sometimes called before our // structured // is set, in which case we set styles to be the empty style // range // (event.styles can not be null) eventStyles = EMPTY_STYLE_RANGE; return eventStyles; } int start = eventLineOffset; int length = eventLineLength; int end = start + length - 1; // we sometimes get odd requests from the very last CRLF in the // document // it has no length, and there is no node for it! if (length == 0) { eventStyles = EMPTY_STYLE_RANGE; } else { IRegion vr = null; if (getTextViewer() != null) { vr = getTextViewer().getVisibleRegion(); } else { vr = new Region(0, getDocument().getLength()); } if (start > vr.getLength()) { eventStyles = EMPTY_STYLE_RANGE; } else { // Determine if we're highlighting a visual portion of the // model not // starting at zero. If so, adjust the location from which // we retrieve // the style information if (vr.getOffset() > 0) { start += vr.getOffset(); end += vr.getOffset(); } // // ================ // if (start == fSavedOffset && length == fSavedLength && // fSavedRanges != null) { // eventStyles = (StyleRange[]) fSavedRanges; // } else { ITypedRegion[] partitions = getDocument().getDocumentPartitioner().computePartitioning(start, length); eventStyles = prepareStyleRangesArray(partitions, start, length); // If there is a subtext offset, the style ranges must be // adjusted to the expected // offsets if (vr.getOffset() > 0) adjust(eventStyles, -vr.getOffset()); // fSavedOffset = start; // fSavedLength = length; // fSavedRanges = (StyleRange[]) eventStyles; // for debugging only if (DEBUG) { if (!valid(eventStyles, eventLineOffset, eventLineLength)) { Logger.log(Logger.WARNING, "Highlighter::lineGetStyle found invalid styles at offset " + eventLineOffset); //$NON-NLS-1$ } } // } } } } catch (Exception e) { // if ANY exception occurs during highlighting, // just return "no highlighting" eventStyles = EMPTY_STYLE_RANGE; if (Debug.syntaxHighlighting) { System.out.println("Exception during highlighting!"); //$NON-NLS-1$ } } return eventStyles; }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/791611f2da8627e0accb507a70c293529c4f39ae/Highlighter.java/buggy/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/style/Highlighter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9767, 2655, 8526, 980, 967, 2885, 12, 474, 871, 1670, 2335, 16, 509, 871, 1670, 1782, 13, 288, 202, 202, 2885, 2655, 8526, 871, 9725, 273, 8984, 67, 15066, 67, 15928, 31, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 9767, 2655, 8526, 980, 967, 2885, 12, 474, 871, 1670, 2335, 16, 509, 871, 1670, 1782, 13, 288, 202, 202, 2885, 2655, 8526, 871, 9725, 273, 8984, 67, 15066, 67, 15928, 31, 202,...
element.setCvsroot("cvsroot");
element.setCvsRoot("cvsroot");
public void testHistoryCommandNullLocal() { Date lastBuildTime = new Date(); Date currTime = new Date(); CVSElement element = new CVSElement(); element.setCvsroot("cvsroot"); element.setLocalWorkingCopy(null); String[] expectedCommand = new String[] { "cvs", "-d", "cvsroot", "log", "-N", "-d", CVSElement.formatCVSDate(lastBuildTime) + "<" + CVSElement.formatCVSDate(currTime)}; String[] actualCommand = element.buildHistoryCommand(lastBuildTime, currTime).getCommandline(); assertEquals("Mismatched lengths!", expectedCommand.length, actualCommand.length); for (int i = 0; i < expectedCommand.length; i++) { assertEquals(expectedCommand[i], actualCommand[i]); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/21dcf5aec80e729f9cd80fcb03d2da7c0cdb6ad6/CVSElementTest.java/clean/main/test/net/sourceforge/cruisecontrol/CVSElementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5623, 2189, 2041, 2042, 1435, 288, 3639, 2167, 1142, 3116, 950, 273, 394, 2167, 5621, 3639, 2167, 4306, 950, 273, 394, 2167, 5621, 7734, 385, 14640, 1046, 930, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5623, 2189, 2041, 2042, 1435, 288, 3639, 2167, 1142, 3116, 950, 273, 394, 2167, 5621, 3639, 2167, 4306, 950, 273, 394, 2167, 5621, 7734, 385, 14640, 1046, 930, 273, 394, ...
conf = config.subset("tables.table.fields.field"); prop = conf.getProperty("name");
subset = config.subset("tables.table.fields.field"); prop = subset.getProperty("name");
public void testSubset() { Configuration conf = config.subset("tables.table(0)"); assertEquals("users", conf.getProperty("name")); Object prop = conf.getProperty("fields.field.name"); assertNotNull(prop); assertTrue(prop instanceof Collection); assertEquals(5, ((Collection) prop).size()); for(int i = 0; i < fields[0].length; i++) { ConfigurationKey key = new ConfigurationKey(); key.append("fields").append("field").appendIndex(i); key.append("name"); assertEquals(fields[0][i], conf.getProperty(key.toString())); } /* for */ assertTrue("subset is not empty", config.subset("tables.table(2)").isEmpty()); conf = config.subset("tables.table.fields.field"); prop = conf.getProperty("name"); assertTrue("prop is not a collection", prop instanceof Collection); assertEquals(10, ((Collection) prop).size()); conf = config.subset("tables.table.fields.field.name"); assertTrue("subset is not empty", conf.isEmpty()); }
56523 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56523/ac301177d363629f82d8d19c2da376f4819fd6b6/TestHierarchicalConfiguration.java/buggy/src/test/org/apache/commons/configuration/TestHierarchicalConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 20315, 1435, 565, 288, 3639, 4659, 2195, 273, 642, 18, 15657, 2932, 9373, 18, 2121, 12, 20, 2225, 1769, 3639, 1815, 8867, 2932, 5577, 3113, 2195, 18, 588, 1396, 2932, 529...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 20315, 1435, 565, 288, 3639, 4659, 2195, 273, 642, 18, 15657, 2932, 9373, 18, 2121, 12, 20, 2225, 1769, 3639, 1815, 8867, 2932, 5577, 3113, 2195, 18, 588, 1396, 2932, 529...
final public void ddiv() {
public void ddiv() {
final public void ddiv() { if (DEBUG) System.out.println(position + "\t\tddiv"); //$NON-NLS-1$ countLabels = 0; stackDepth -= 2; if (classFileOffset >= bCodeStream.length) { resizeByteArray(); } position++; bCodeStream[classFileOffset++] = OPC_ddiv;}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/5a485cb39d1ee33622141cf426fac71c4bf93ded/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 727, 1071, 918, 302, 2892, 1435, 288, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 12, 3276, 397, 1548, 88, 64, 88, 449, 427, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 1883, 5888, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1071, 918, 302, 2892, 1435, 288, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 12, 3276, 397, 1548, 88, 64, 88, 449, 427, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 1883, 5888, ...
if (visitedLockedFolder || currentResource.isLocked()) {
if (visitedLockedFolder && !currentResource.isLocked()) {
public List readPath(CmsUser currentUser, CmsProject currentProject, String path, boolean includeDeleted) throws CmsException { // splits the path into folder and filename tokens StringTokenizer tokens = null; // # of folders in the path int folderCount = 0; // true if the path doesn't end with a folder boolean lastResourceIsFile = false; // holds the CmsResource instances in the path List pathList = null; // the current path token String currentResourceName = null; // the current path String currentPath = null; // the current resource CmsResource currentResource = null; // this is a comment. i love comments! int i = 0, count = 0; // key to cache the resources String cacheKey = null; // the parent resource of the current resource CmsResource lastParent = null; // true if a upper folder in the path was locked boolean visitedLockedFolder = false; // the project ID of an upper locked folder int lockedInProject = currentProject.getId(); // the user ID of an upper locked folder CmsUUID lockedByUserId = CmsUUID.getNullUUID(); tokens = new StringTokenizer(path, I_CmsConstants.C_FOLDER_SEPARATOR); // the root folder is no token in the path but a resource which has to be added to the path count = tokens.countTokens() + 1; pathList = (List) new ArrayList(count); folderCount = count; if (!path.endsWith(I_CmsConstants.C_FOLDER_SEPARATOR)) { folderCount--; lastResourceIsFile = true; } // read the root folder, coz it's ID is required to read any sub-resources currentResourceName = currentPath = I_CmsConstants.C_ROOT; cacheKey = getCacheKey(null, currentUser, currentProject, currentPath); if ((currentResource = (CmsResource) m_resourceCache.get(cacheKey)) == null) { currentResource = (CmsResource) m_vfsDriver.readFolder(currentProject.getId(), CmsUUID.getNullUUID(), currentResourceName); currentResource.setFullResourceName(currentPath); m_resourceCache.put(cacheKey, currentResource); } pathList.add(0, currentResource); lastParent = currentResource; if (count == 1) { // the root folder was requested- no further operations required return pathList; } // save the current lock state if (currentResource.isLocked()) { visitedLockedFolder = true; lockedInProject = currentResource.getLockedInProject(); lockedByUserId = currentResource.isLockedBy(); } currentResourceName = tokens.nextToken(); // read the folder resources in the path /a/b/c/ for (i = 1; i < folderCount; i++) { currentPath += currentResourceName + I_CmsConstants.C_FOLDER_SEPARATOR; // read the folder cacheKey = getCacheKey(null, currentUser, currentProject, currentPath); if ((currentResource = (CmsResource) m_resourceCache.get(cacheKey)) == null) { currentResource = (CmsResource) m_vfsDriver.readFolder(currentProject.getId(), lastParent.getId(), currentResourceName); currentResource.setFullResourceName(currentPath); m_resourceCache.put(cacheKey, currentResource); } // update/save the lock state if (visitedLockedFolder) { currentResource.setLocked(lockedByUserId); currentResource.setLockedInProject(lockedInProject); currentResource.setProjectId(lockedInProject); m_resourceCache.put(cacheKey, currentResource); } else if (currentResource.isLocked()) { visitedLockedFolder = true; lockedInProject = currentResource.getLockedInProject(); lockedByUserId = currentResource.isLockedBy(); } pathList.add(i, currentResource); lastParent = currentResource; if (i < folderCount - 1) { currentResourceName = tokens.nextToken(); } } // read the (optional) last file resource in the path /x.html if (lastResourceIsFile) { currentResourceName = tokens.nextToken(); currentPath += currentResourceName; // read the file cacheKey = getCacheKey(null, currentUser, currentProject, currentPath); if ((currentResource = (CmsResource) m_resourceCache.get(cacheKey)) == null) { currentResource = (CmsResource) m_vfsDriver.readFileHeader(currentProject.getId(), lastParent.getId(), currentResourceName, includeDeleted); currentResource.setFullResourceName(currentPath); m_resourceCache.put(cacheKey, currentResource); } // update/save the lock state if (visitedLockedFolder || currentResource.isLocked()) { currentResource.setLocked(lockedByUserId); currentResource.setLockedInProject(lockedInProject); currentResource.setProjectId(lockedInProject); m_resourceCache.put(cacheKey, currentResource); } pathList.add(i, currentResource); } return pathList; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/cd3e7ecce0b0fc0d4106437db74ff960e02ef1c0/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 855, 743, 12, 4747, 1299, 13970, 16, 2149, 4109, 783, 4109, 16, 514, 589, 16, 1250, 2341, 7977, 13, 1216, 11228, 288, 3639, 368, 11019, 326, 589, 1368, 3009, 471, 1544, 2430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 855, 743, 12, 4747, 1299, 13970, 16, 2149, 4109, 783, 4109, 16, 514, 589, 16, 1250, 2341, 7977, 13, 1216, 11228, 288, 3639, 368, 11019, 326, 589, 1368, 3009, 471, 1544, 2430, ...
rargs[rlen] = ctx; Object thisValue;
rargs[paramCount] = ctx; Object extraArg;
public int matchN (Object[] args, CallContext ctx) { int nargs = args.length; boolean takesVarArgs = takesVarArgs(); int mlength = minArgs() + (takesVarArgs ? 1 : 0); int fixArgs = takesVarArgs ? mlength - 1 : mlength; if (takesVarArgs) { if (nargs < fixArgs) return NO_MATCH_TOO_FEW_ARGS|fixArgs; } else { if (nargs != mlength) if (nargs < mlength) return NO_MATCH_TOO_FEW_ARGS|fixArgs; else return NO_MATCH_TOO_MANY_ARGS|fixArgs; } int arg_count = argTypes.length; Type elementType = null; Object[] restArray = null; int this_count = getStaticFlag() ? 0 : 1; boolean takesContext = takesContext(); int rlen = mlength - this_count; Object[] rargs = new Object[rlen + (takesContext ? 1 : 0)]; if (takesContext) rargs[rlen] = ctx; Object thisValue; if (takesVarArgs) { Type restType = argTypes[arg_count-1]; if (restType == Compilation.scmListType) { // FIXME rargs[rlen-1] = gnu.lists.LList.makeList(args, fixArgs); nargs = fixArgs; } else { ArrayType restArrayType = (ArrayType) restType; elementType = restArrayType.getComponentType(); Class elementClass = elementType.getReflectClass(); restArray = (Object[]) java.lang.reflect.Array.newInstance(elementClass, nargs-fixArgs); rargs[rlen-1] = restArray; } } if (this_count != 0) { try { thisValue = method.getDeclaringClass().coerceFromObject(args[0]); } catch (ClassCastException ex) { return NO_MATCH_BAD_TYPE|1; } } else thisValue = null; for (int i = this_count; i < nargs; i++) { try { Object arg = args[i]; Type type = i < fixArgs ? argTypes[i-this_count] : elementType; if (type != Type.pointer_type) arg = type.coerceFromObject(arg); if (i < fixArgs) rargs[i-this_count] = arg; else restArray[i - fixArgs] = arg; } catch (ClassCastException ex) { return NO_MATCH_BAD_TYPE|(i+1); } } ctx.value1 = thisValue; ctx.values = rargs; ctx.proc = this; return 0; }
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/9ffd285436376614d0cda3108aca14db21d8c15c/PrimProcedure.java/buggy/gnu/expr/PrimProcedure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 845, 50, 261, 921, 8526, 833, 16, 3049, 1042, 1103, 13, 225, 288, 565, 509, 14440, 273, 833, 18, 2469, 31, 565, 1250, 5530, 1537, 2615, 273, 5530, 1537, 2615, 5621, 565, 509,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 845, 50, 261, 921, 8526, 833, 16, 3049, 1042, 1103, 13, 225, 288, 565, 509, 14440, 273, 833, 18, 2469, 31, 565, 1250, 5530, 1537, 2615, 273, 5530, 1537, 2615, 5621, 565, 509,...
Member member = methodsOrCtors[i]; Class[] type = methodOrCtorTypes[i]; String sig = NativeJavaMethod.memberSignature(member, type); if (name.equals(sig)) { return member;
Class[] type = methodsOrCtors[i].argTypes; String sig = liveConnectSignature(type); if (sigStart + sig.length() == name.length() && name.regionMatches(sigStart, sig, 0, sig.length())) { return methodsOrCtors[i];
private Member findExplicitFunction(String name, boolean isStatic) { int sigStart = name.indexOf('('); if (sigStart < 0) { return null; } Hashtable ht = isStatic ? staticMembers : members; Member[] methodsOrCtors = null; Class[][] methodOrCtorTypes = null; boolean isCtor = (isStatic && sigStart == 0); if (isCtor) { // Explicit request for an overloaded constructor methodsOrCtors = ctors; methodOrCtorTypes = ctorTypes; } else { // Explicit request for an overloaded method String trueName = name.substring(0,sigStart); Object obj = ht.get(trueName); if (!isStatic && obj == null) { // Try to get static member from instance (LC3) obj = staticMembers.get(trueName); } if (obj instanceof NativeJavaMethod) { NativeJavaMethod njm = (NativeJavaMethod)obj; methodsOrCtors = njm.methods; methodOrCtorTypes = njm.methodTypes; } } if (methodsOrCtors != null) { for (int i = 0; i < methodsOrCtors.length; i++) { Member member = methodsOrCtors[i]; Class[] type = methodOrCtorTypes[i]; String sig = NativeJavaMethod.memberSignature(member, type); if (name.equals(sig)) { return member; } } } return null; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 8596, 1104, 17186, 2083, 12, 780, 508, 16, 1250, 16116, 13, 565, 288, 3639, 509, 3553, 1685, 273, 508, 18, 31806, 2668, 2668, 1769, 3639, 309, 261, 7340, 1685, 411, 374, 13, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 8596, 1104, 17186, 2083, 12, 780, 508, 16, 1250, 16116, 13, 565, 288, 3639, 509, 3553, 1685, 273, 508, 18, 31806, 2668, 2668, 1769, 3639, 309, 261, 7340, 1685, 411, 374, 13, 288, ...
match(_t,NOHIDE); _t = _t.getNextSibling(); break; } case NOLABELS:
match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case USEDICTEXPS:
public final void framephrase(AST _t) throws RecognitionException { AST framephrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1421 = _t; AST tmp372_AST_in = (AST)_t; match(_t,WITH); _t = _t.getFirstChild(); { _loop1451: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ACCUMULATE: { AST __t1423 = _t; AST tmp373_AST_in = (AST)_t; match(_t,ACCUMULATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t1423; _t = _t.getNextSibling(); break; } case ATTRSPACE: { AST tmp374_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp375_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case CANCELBUTTON: { AST __t1425 = _t; AST tmp376_AST_in = (AST)_t; match(_t,CANCELBUTTON); _t = _t.getFirstChild(); field(_t); _t = _retTree; _t = __t1425; _t = _t.getNextSibling(); break; } case CENTERED: { AST tmp377_AST_in = (AST)_t; match(_t,CENTERED); _t = _t.getNextSibling(); break; } case COLUMN: { AST __t1426 = _t; AST tmp378_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1426; _t = _t.getNextSibling(); break; } case CONTEXTHELP: { AST tmp379_AST_in = (AST)_t; match(_t,CONTEXTHELP); _t = _t.getNextSibling(); break; } case CONTEXTHELPFILE: { AST tmp380_AST_in = (AST)_t; match(_t,CONTEXTHELPFILE); _t = _t.getNextSibling(); expression(_t); _t = _retTree; break; } case DEFAULTBUTTON: { AST __t1427 = _t; AST tmp381_AST_in = (AST)_t; match(_t,DEFAULTBUTTON); _t = _t.getFirstChild(); field(_t); _t = _retTree; _t = __t1427; _t = _t.getNextSibling(); break; } case EXPORT: { AST tmp382_AST_in = (AST)_t; match(_t,EXPORT); _t = _t.getNextSibling(); break; } case FITLASTCOLUMN: { AST tmp383_AST_in = (AST)_t; match(_t,FITLASTCOLUMN); _t = _t.getNextSibling(); break; } case FONT: { AST __t1428 = _t; AST tmp384_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1428; _t = _t.getNextSibling(); break; } case FONTBASEDLAYOUT: { AST tmp385_AST_in = (AST)_t; match(_t,FONTBASEDLAYOUT); _t = _t.getNextSibling(); break; } case FRAME: { AST __t1429 = _t; AST tmp386_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getFirstChild(); AST tmp387_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); _t = __t1429; _t = _t.getNextSibling(); break; } case LABELFONT: { AST __t1430 = _t; AST tmp388_AST_in = (AST)_t; match(_t,LABELFONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1430; _t = _t.getNextSibling(); break; } case LABELDCOLOR: { AST __t1431 = _t; AST tmp389_AST_in = (AST)_t; match(_t,LABELDCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1431; _t = _t.getNextSibling(); break; } case LABELFGCOLOR: { AST __t1432 = _t; AST tmp390_AST_in = (AST)_t; match(_t,LABELFGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1432; _t = _t.getNextSibling(); break; } case LABELBGCOLOR: { AST __t1433 = _t; AST tmp391_AST_in = (AST)_t; match(_t,LABELBGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1433; _t = _t.getNextSibling(); break; } case MULTIPLE: { AST tmp392_AST_in = (AST)_t; match(_t,MULTIPLE); _t = _t.getNextSibling(); break; } case SINGLE: { AST tmp393_AST_in = (AST)_t; match(_t,SINGLE); _t = _t.getNextSibling(); break; } case SEPARATORS: { AST tmp394_AST_in = (AST)_t; match(_t,SEPARATORS); _t = _t.getNextSibling(); break; } case NOSEPARATORS: { AST tmp395_AST_in = (AST)_t; match(_t,NOSEPARATORS); _t = _t.getNextSibling(); break; } case NOASSIGN: { AST tmp396_AST_in = (AST)_t; match(_t,NOASSIGN); _t = _t.getNextSibling(); break; } case NOROWMARKERS: { AST tmp397_AST_in = (AST)_t; match(_t,NOROWMARKERS); _t = _t.getNextSibling(); break; } case NOSCROLLBARVERTICAL: { AST tmp398_AST_in = (AST)_t; match(_t,NOSCROLLBARVERTICAL); _t = _t.getNextSibling(); break; } case SCROLLBARVERTICAL: { AST tmp399_AST_in = (AST)_t; match(_t,SCROLLBARVERTICAL); _t = _t.getNextSibling(); break; } case ROWHEIGHTCHARS: { AST __t1434 = _t; AST tmp400_AST_in = (AST)_t; match(_t,ROWHEIGHTCHARS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1434; _t = _t.getNextSibling(); break; } case ROWHEIGHTPIXELS: { AST __t1435 = _t; AST tmp401_AST_in = (AST)_t; match(_t,ROWHEIGHTPIXELS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1435; _t = _t.getNextSibling(); break; } case EXPANDABLE: { AST tmp402_AST_in = (AST)_t; match(_t,EXPANDABLE); _t = _t.getNextSibling(); break; } case DROPTARGET: { AST tmp403_AST_in = (AST)_t; match(_t,DROPTARGET); _t = _t.getNextSibling(); break; } case NOAUTOVALIDATE: { AST tmp404_AST_in = (AST)_t; match(_t,NOAUTOVALIDATE); _t = _t.getNextSibling(); break; } case NOCOLUMNSCROLLING: { AST tmp405_AST_in = (AST)_t; match(_t,NOCOLUMNSCROLLING); _t = _t.getNextSibling(); break; } case KEEPTABORDER: { AST tmp406_AST_in = (AST)_t; match(_t,KEEPTABORDER); _t = _t.getNextSibling(); break; } case NOBOX: { AST tmp407_AST_in = (AST)_t; match(_t,NOBOX); _t = _t.getNextSibling(); break; } case NOEMPTYSPACE: { AST tmp408_AST_in = (AST)_t; match(_t,NOEMPTYSPACE); _t = _t.getNextSibling(); break; } case NOHIDE: { AST tmp409_AST_in = (AST)_t; match(_t,NOHIDE); _t = _t.getNextSibling(); break; } case NOLABELS: { AST tmp410_AST_in = (AST)_t; match(_t,NOLABELS); _t = _t.getNextSibling(); break; } case USEDICTEXPS: { AST tmp411_AST_in = (AST)_t; match(_t,USEDICTEXPS); _t = _t.getNextSibling(); break; } case NOVALIDATE: { AST tmp412_AST_in = (AST)_t; match(_t,NOVALIDATE); _t = _t.getNextSibling(); break; } case NOHELP: { AST tmp413_AST_in = (AST)_t; match(_t,NOHELP); _t = _t.getNextSibling(); break; } case NOUNDERLINE: { AST tmp414_AST_in = (AST)_t; match(_t,NOUNDERLINE); _t = _t.getNextSibling(); break; } case OVERLAY: { AST tmp415_AST_in = (AST)_t; match(_t,OVERLAY); _t = _t.getNextSibling(); break; } case PAGEBOTTOM: { AST tmp416_AST_in = (AST)_t; match(_t,PAGEBOTTOM); _t = _t.getNextSibling(); break; } case PAGETOP: { AST tmp417_AST_in = (AST)_t; match(_t,PAGETOP); _t = _t.getNextSibling(); break; } case NOTABSTOP: { AST tmp418_AST_in = (AST)_t; match(_t,NOTABSTOP); _t = _t.getNextSibling(); break; } case RETAIN: { AST __t1436 = _t; AST tmp419_AST_in = (AST)_t; match(_t,RETAIN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1436; _t = _t.getNextSibling(); break; } case ROW: { AST __t1437 = _t; AST tmp420_AST_in = (AST)_t; match(_t,ROW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1437; _t = _t.getNextSibling(); break; } case SCREENIO: { AST tmp421_AST_in = (AST)_t; match(_t,SCREENIO); _t = _t.getNextSibling(); break; } case STREAMIO: { AST tmp422_AST_in = (AST)_t; match(_t,STREAMIO); _t = _t.getNextSibling(); break; } case SCROLL: { AST __t1438 = _t; AST tmp423_AST_in = (AST)_t; match(_t,SCROLL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1438; _t = _t.getNextSibling(); break; } case SCROLLABLE: { AST tmp424_AST_in = (AST)_t; match(_t,SCROLLABLE); _t = _t.getNextSibling(); break; } case SIDELABELS: { AST tmp425_AST_in = (AST)_t; match(_t,SIDELABELS); _t = _t.getNextSibling(); break; } case STREAM: { stream_name(_t); _t = _retTree; break; } case THREED: { AST tmp426_AST_in = (AST)_t; match(_t,THREED); _t = _t.getNextSibling(); break; } case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case TOPONLY: { AST tmp427_AST_in = (AST)_t; match(_t,TOPONLY); _t = _t.getNextSibling(); break; } case USETEXT: { AST tmp428_AST_in = (AST)_t; match(_t,USETEXT); _t = _t.getNextSibling(); break; } case V6FRAME: { AST tmp429_AST_in = (AST)_t; match(_t,V6FRAME); _t = _t.getNextSibling(); break; } case USEREVVIDEO: { AST tmp430_AST_in = (AST)_t; match(_t,USEREVVIDEO); _t = _t.getNextSibling(); break; } case USEUNDERLINE: { AST tmp431_AST_in = (AST)_t; match(_t,USEUNDERLINE); _t = _t.getNextSibling(); break; } case VIEWAS: { AST __t1439 = _t; AST tmp432_AST_in = (AST)_t; match(_t,VIEWAS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DIALOGBOX: { AST __t1441 = _t; AST tmp433_AST_in = (AST)_t; match(_t,DIALOGBOX); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DIALOGHELP: { AST tmp434_AST_in = (AST)_t; match(_t,DIALOGHELP); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1441; _t = _t.getNextSibling(); break; } case MESSAGELINE: { AST tmp435_AST_in = (AST)_t; match(_t,MESSAGELINE); _t = _t.getNextSibling(); break; } case STATUSBAR: { AST tmp436_AST_in = (AST)_t; match(_t,STATUSBAR); _t = _t.getNextSibling(); break; } case TOOLBAR: { AST __t1444 = _t; AST tmp437_AST_in = (AST)_t; match(_t,TOOLBAR); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTACHMENT: { AST tmp438_AST_in = (AST)_t; match(_t,ATTACHMENT); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TOP: { AST tmp439_AST_in = (AST)_t; match(_t,TOP); _t = _t.getNextSibling(); break; } case BOTTOM: { AST tmp440_AST_in = (AST)_t; match(_t,BOTTOM); _t = _t.getNextSibling(); break; } case LEFT: { AST tmp441_AST_in = (AST)_t; match(_t,LEFT); _t = _t.getNextSibling(); break; } case RIGHT: { AST tmp442_AST_in = (AST)_t; match(_t,RIGHT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1444; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } _t = __t1439; _t = _t.getNextSibling(); break; } case WIDTH: { AST __t1447 = _t; AST tmp443_AST_in = (AST)_t; match(_t,WIDTH); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1447; _t = _t.getNextSibling(); break; } case IN_KW: { AST __t1448 = _t; AST tmp444_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp445_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t1448; _t = _t.getNextSibling(); break; } case BGCOLOR: case COLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { colorspecification(_t); _t = _retTree; break; } case AT: { atphrase(_t); _t = _retTree; break; } case SIZE: case SIZECHARS: case SIZEPIXELS: { sizephrase(_t); _t = _retTree; break; } case TITLE: { titlephrase(_t); _t = _retTree; break; } case With_columns: { AST __t1449 = _t; AST tmp446_AST_in = (AST)_t; match(_t,With_columns); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp447_AST_in = (AST)_t; match(_t,COLUMNS); _t = _t.getNextSibling(); _t = __t1449; _t = _t.getNextSibling(); break; } case With_down: { AST __t1450 = _t; AST tmp448_AST_in = (AST)_t; match(_t,With_down); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp449_AST_in = (AST)_t; match(_t,DOWN); _t = _t.getNextSibling(); _t = __t1450; _t = _t.getNextSibling(); break; } case DOWN: { AST tmp450_AST_in = (AST)_t; match(_t,DOWN); _t = _t.getNextSibling(); break; } case WIDGETID: { widget_id(_t); _t = _retTree; break; } case WITH: { AST tmp451_AST_in = (AST)_t; match(_t,WITH); _t = _t.getNextSibling(); break; } default: { break _loop1451; } } } while (true); } _t = __t1421; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2623, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2623, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2623, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2623, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053...
re = new NativeRegExp(cx, scope, src, opt);
re = new NativeRegExp(cx, scope, src, opt, forceFlat);
private static Object matchOrReplace(Context cx, Scriptable thisObj, Object[] args, Function funObj, GlobData data) throws JavaScriptException { NativeRegExp re; String str = ScriptRuntime.toString(thisObj); data.str = str; RegExpImpl reImpl = RegExpImpl.getRegExpImpl(cx); Scriptable scope = ScriptableObject.getTopLevelScope(funObj); if (args.length == 0) re = new NativeRegExp(cx, scope, "", ""); else if (args[0] instanceof NativeRegExp) { re = (NativeRegExp) args[0]; } else { String src = ScriptRuntime.toString(args[0]); String opt; if (data.optarg < args.length) { args[0] = src; opt = ScriptRuntime.toString(args[data.optarg]); } else { opt = null; } re = new NativeRegExp(cx, scope, src, opt); } data.regexp = re; data.global = (re.getFlags() & NativeRegExp.GLOB) != 0; int[] indexp = { 0 }; Object result = null; if (data.mode == GlobData.GLOB_SEARCH) { result = re.executeRegExp(funObj, str, indexp, true); if (result != null && result.equals(Boolean.TRUE)) result = new Integer(reImpl.leftContext.length); else result = new Integer(-1); } else if (data.global) { re.setLastIndex(0); for (int count = 0; indexp[0] <= str.length(); count++) { result = re.executeRegExp(funObj, str, indexp, true); if (result == null || !result.equals(Boolean.TRUE)) break; data.doGlobal(funObj, count); if (reImpl.lastMatch.length == 0) { if (indexp[0] == str.length()) break; indexp[0]++; } } } else { result = re.executeRegExp(funObj, str, indexp, data.mode == GlobData.GLOB_REPLACE); } return result; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bcf6134bdea4b7078a51fba9f7ad09d436f5fab3/RegExpImpl.java/buggy/js/rhino/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 845, 1162, 5729, 12, 1042, 9494, 16, 22780, 15261, 16, 29159, 1033, 8526, 833, 16, 4284, 9831, 2675, 16, 29159, 18901, 751, 501, 13, 3639, 1216, 11905, 503, 565, 288, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 845, 1162, 5729, 12, 1042, 9494, 16, 22780, 15261, 16, 29159, 1033, 8526, 833, 16, 4284, 9831, 2675, 16, 29159, 18901, 751, 501, 13, 3639, 1216, 11905, 503, 565, 288, 363...
return new Dimension(d.width + insetsW + iconWidth, d.height + insetsH);
return new Dimension(d.width + insetsW + iconWidth, d.height + insetsH); } else return new Dimension(d.width + insetsW + (d.height + insetsH) - 4, d.height + insetsH + 1);
public Dimension getMinimumSize(JComponent c) { MetalComboBoxButton b = (MetalComboBoxButton) arrowButton; Icon icon = b.getComboIcon(); Insets insets = b.getInsets(); Dimension d = getDisplaySize(); int insetsH = insets.top + insets.bottom; int insetsW = insets.left + insets.right; int iconWidth = icon.getIconWidth() + 6; return new Dimension(d.width + insetsW + iconWidth, d.height + insetsH); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/MetalComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalComboBoxUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 30665, 1225, 12, 46, 1841, 276, 13, 225, 288, 565, 21604, 287, 22199, 3616, 324, 273, 261, 26365, 22199, 3616, 13, 12274, 3616, 31, 565, 16011, 4126, 273, 324, 18, 588, 16156...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13037, 30665, 1225, 12, 46, 1841, 276, 13, 225, 288, 565, 21604, 287, 22199, 3616, 324, 273, 261, 26365, 22199, 3616, 13, 12274, 3616, 31, 565, 16011, 4126, 273, 324, 18, 588, 16156...
IResource.NONE, monitor );
IResource.NONE, monitor );
private void saveFile( final ModuleHandle moduleHandle, final File file, IProgressMonitor monitor ) { IRunnableWithProgress op = new IRunnableWithProgress( ) { public synchronized final void run( IProgressMonitor monitor ) throws InvocationTargetException, InterruptedException { try { IWorkspaceRunnable workspaceRunnable = new IWorkspaceRunnable( ) { public void run( IProgressMonitor pm ) throws CoreException { try { execute( pm ); } catch ( CoreException e ) { throw e; } catch ( IOException e ) { ExceptionHandler.handle( e ); } } }; ResourcesPlugin.getWorkspace( ).run( workspaceRunnable, ResourcesPlugin.getWorkspace( ).getRoot( ), IResource.NONE, monitor ); } catch ( CoreException e ) { throw new InvocationTargetException( e ); } catch ( OperationCanceledException e ) { throw new InterruptedException( e.getMessage( ) ); } } public void execute( final IProgressMonitor monitor ) throws CoreException, IOException { if ( file.exists( ) || file.createNewFile( ) ) { FileOutputStream out = new FileOutputStream( file ); moduleHandle.serialize( out ); out.close( ); } } }; try { new ProgressMonitorDialog( UIUtil.getDefaultShell( ) ).run( false, true, op ); } catch ( Exception e ) { ExceptionHandler.handle( e ); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/0c3229334ab3352862830f19eec73f8815cb56fb/FileReportProvider.java/buggy/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/internal/ui/editors/FileReportProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1923, 812, 12, 727, 5924, 3259, 1605, 3259, 16, 727, 1387, 585, 16, 1082, 202, 45, 5491, 7187, 6438, 262, 202, 95, 202, 202, 45, 20013, 1190, 5491, 1061, 273, 394, 467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1923, 812, 12, 727, 5924, 3259, 1605, 3259, 16, 727, 1387, 585, 16, 1082, 202, 45, 5491, 7187, 6438, 262, 202, 95, 202, 202, 45, 20013, 1190, 5491, 1061, 273, 394, 467, ...
return new MethodDescriptor( name, type, parameters, attributes, attributes );
return new MethodDescriptor( name, type, parameters, attributes, attributes );
MethodDescriptor buildMethod( final JavaMethod method, final QDoxAttributeInterceptor interceptor ) { final String name = method.getName(); final Type returns = method.getReturns(); final String type; if( null != returns ) { type = returns.getValue(); } else { type = ""; } final Attribute[] originalAttributes = buildAttributes( method, interceptor ); final Attribute[] attributes = interceptor.processMethodAttributes( method, originalAttributes ); final ParameterDescriptor[] parameters = buildParameters( method.getParameters() ); return new MethodDescriptor( name, type, parameters, attributes, attributes ); }
6333 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6333/aa8d469ec0fdc5826bad677c510538e34183f336/QDoxDescriptorParser.java/clean/tools/src/java/org/codehaus/metaclass/tools/qdox/QDoxDescriptorParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2985, 3187, 1361, 1305, 12, 727, 5110, 1305, 707, 16, 21394, 727, 2238, 40, 2409, 1499, 10281, 13810, 262, 565, 288, 3639, 727, 514, 508, 273, 707, 18, 17994, 5621, 3639, 727, 1412, 1135,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2985, 3187, 1361, 1305, 12, 727, 5110, 1305, 707, 16, 21394, 727, 2238, 40, 2409, 1499, 10281, 13810, 262, 565, 288, 3639, 727, 514, 508, 273, 707, 18, 17994, 5621, 3639, 727, 1412, 1135,...
sendRedirect(req, res);
if (Validator.isNotNull(cmd)) { sendRedirect(req, res); }
public void processAction( ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception { String cmd = ParamUtil.getString(req, Constants.CMD); try { if (cmd.equals(Constants.ADD) || cmd.equals(Constants.UPDATE)) { updateQuestion(req); } else if (cmd.equals(Constants.DELETE)) { deleteQuestion(req); } sendRedirect(req, res); } catch (Exception e) { if (e != null && e instanceof NoSuchQuestionException || e instanceof PrincipalException) { SessionErrors.add(req, e.getClass().getName()); setForward(req, "portlet.polls.error"); } else if (e != null && e instanceof DuplicateVoteException || e instanceof NoSuchChoiceException || e instanceof QuestionChoiceException || e instanceof QuestionDescriptionException || e instanceof QuestionExpirationDateException || e instanceof QuestionTitleException) { SessionErrors.add(req, e.getClass().getName()); } else { throw e; } } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/6aa5c2d37af830219ee88ae47f54ec5a79a6b334/EditQuestionAction.java/buggy/portal-ejb/src/com/liferay/portlet/polls/action/EditQuestionAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1207, 1803, 12, 1082, 202, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 21305, 809, 642, 16, 1082, 202, 1803, 691, 1111, 16, 4382, 1064, 400, 13, 202, 202, 15069, 1185, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1207, 1803, 12, 1082, 202, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 21305, 809, 642, 16, 1082, 202, 1803, 691, 1111, 16, 4382, 1064, 400, 13, 202, 202, 15069, 1185, 288...
new RequiredTextField<Double>(this, "doubleProperty", Double.class); new RequiredTextField<Integer>(this, "integerInRangeProperty", Integer.class)
new TextField<Double>(this, "doubleProperty", Double.class).setRequired(true); new TextField<Integer>(this, "integerInRangeProperty", Integer.class).setRequired(true)
public InputForm(final MarkupContainer parent, final String name) { super(parent, name, new CompoundPropertyModel<FormInputModel>(new FormInputModel())); // Dropdown for selecting locale new LocaleDropDownChoice(this, "localeSelect"); // Link to return to default locale new Link(this, "defaultLocaleLink") { @Override public void onClick() { WebRequest request = (WebRequest)getRequest(); setLocale(request.getLocale()); } }; RequiredTextField stringTextField = new RequiredTextField<String>(this, "stringProperty"); stringTextField.setLabel(new Model<String>("String")); RequiredTextField integerTextField = new RequiredTextField<Integer>(this, "integerProperty", Integer.class); integerTextField.add(NumberValidator.POSITIVE); new RequiredTextField<Double>(this, "doubleProperty", Double.class); new RequiredTextField<Integer>(this, "integerInRangeProperty", Integer.class) .add(NumberValidator.range(0, 100)); new CheckBox(this, "booleanProperty"); new Multiply(this, "multiply"); new Label(this, "multiplyLabel", new PropertyModel(getModel(), "multiply")); RadioChoice<String> rc = new RadioChoice<String>(this, "numberRadioChoice", NUMBERS) .setSuffix(""); rc.setLabel(new Model<String>("number")); rc.setRequired(true); RadioGroup group = new RadioGroup(this, "numbersGroup"); new ListView<String>(group, "numbers", NUMBERS) { @Override protected void populateItem(final ListItem<String> item) { new Radio<String>(item, "radio", item.getModel()); new Label(item, "number", item.getModelObject()); }; }; CheckGroup checks = new CheckGroup(this, "numbersCheckGroup"); new ListView<String>(checks, "numbers", NUMBERS) { @Override protected void populateItem(final ListItem<String> item) { new Check<String>(item, "check", item.getModel()); new Label(item, "number", item.getModelObject()); }; }; new ListMultipleChoice<String>(this, "siteSelection", SITES); // TextField using a custom converter. new TextField<URL>(this, "urlProperty", URL.class) { /** * @see wicket.Component#getConverter(java.lang.Class) */ @Override public IConverter getConverter(final Class type) { return new SimpleConverterAdapter() { @Override public Object toObject(final String value) { try { return new URL(value.toString()); } catch (MalformedURLException e) { throw new ConversionException("'" + value + "' is not a valid URL"); } } @Override public String toString(final Object value) { return value != null ? value.toString() : null; } }; } }; // TextField using a mask converter new TextField<UsPhoneNumber>(this, "phoneNumberUS", UsPhoneNumber.class) { /** * @see wicket.Component#getConverter(java.lang.Class) */ @Override public IConverter getConverter(final Class type) { // US telephone number mask return new MaskConverter("(###) ###-####", UsPhoneNumber.class); } }; // and this is to show we can nest ListViews in Forms too new LinesListView(this, "lines"); new Button<String>(this, "saveButton", new ResourceModel("save")) { @Override public void onSubmit() { // need to do nothing for this example here } }; new Button<String>(this, "resetButton", new ResourceModel("reset")) { @Override public void onSubmit() { // trigger reload InputForm.this.modelChanged(); } }.setDefaultFormProcessing(false); // set default form processing so that only this button's // submit method will be called }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/f1126e985810d916caa142189e1e004517e6b363/FormInput.java/clean/wicket-examples/src/main/java/wicket/examples/forminput/FormInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 2741, 1204, 12, 6385, 26420, 2170, 982, 16, 727, 514, 508, 13, 202, 202, 95, 1082, 202, 9565, 12, 2938, 16, 508, 16, 394, 21327, 1396, 1488, 32, 1204, 1210, 1488, 34, 12, 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, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 2741, 1204, 12, 6385, 26420, 2170, 982, 16, 727, 514, 508, 13, 202, 202, 95, 1082, 202, 9565, 12, 2938, 16, 508, 16, 394, 21327, 1396, 1488, 32, 1204, 1210, 1488, 34, 12, 2...
fMenu = buildMenu("menus.xml", Util.MergeActions(actions, fFolderPanel.getActions()));
XMLMenuBuilder builder = new XMLMenuBuilder(Util.MergeActions(actions, fFolderPanel.getActions())); fMenu = builder.buildFrom("ui/menus.xml", this);
public FolderFrame(Folder aFolder) { super("folderFrameLabel", "folder"); fFolderPanel = new FolderPanel(); fFolderPanel.addFolderPanelListener(new MessageSelectionListener()); fPanel.add(fFolderPanel); // fMenu = buildMenu("folderMain", Util.MergeActions(actions, // fFolderPanel.getActions())); fMenu = buildMenu("menus.xml", Util.MergeActions(actions, fFolderPanel.getActions())); getRootPane().setJMenuBar(fMenu); fToolBar = fFolderPanel.getToolBar(); // fToolBar.addItem(ToolbarFactory.MakeINSToolbarItem(ToolBarLayout.CreateSpring(), // null));// fToolBar.addItem(ToolbarFactory.MakeINSToolbarItem(fAnimation, null)); fToolBarPanel.add(fToolBar); fStatusBar = buildStatusBar(); fPanel.add(BorderLayout.SOUTH, fStatusBar); setFolder(aFolder); fFolderFrames.addElement(this); restoreBounds(); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/FolderFrame.java/buggy/grendel/sources/grendel/ui/FolderFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12623, 3219, 12, 3899, 279, 3899, 13, 288, 565, 2240, 2932, 5609, 3219, 2224, 3113, 315, 5609, 8863, 565, 284, 3899, 5537, 273, 394, 12623, 5537, 5621, 565, 284, 3899, 5537, 18, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12623, 3219, 12, 3899, 279, 3899, 13, 288, 565, 2240, 2932, 5609, 3219, 2224, 3113, 315, 5609, 8863, 565, 284, 3899, 5537, 273, 394, 12623, 5537, 5621, 565, 284, 3899, 5537, 18, 128...
public Pair<Integer,Integer> getSelection() { return _sel; }
public Pair<Integer,Integer> getSelection() { return _sel; }
public Pair<Integer,Integer> getSelection() { return _sel; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/94ede5fc3e289a571a76fcd6a91c26510fe57b12/DocFile.java/buggy/drjava/src/edu/rice/cs/drjava/project/DocFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8599, 32, 4522, 16, 4522, 34, 23204, 1435, 288, 565, 327, 389, 1786, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8599, 32, 4522, 16, 4522, 34, 23204, 1435, 288, 565, 327, 389, 1786, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= args.length) stack[VAR_SHFT + i] = undefined; else
int definedArgs = theData.itsVariableTable.getParameterCount(); if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) {
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); final int maxLocals = theData.itsMaxLocals; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; // stack[0 <= i < VAR_SHFT]: stack data // stack[VAR_SHFT <= i < LOCAL_SHFT]: variables // stack[LOCAL_SHFT <= i]: // used for newtemp/usetemp etc. // id stack[x] == DBL_MRK, real value for stack[x] is in sDbl[x] final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[LOCAL_SHFT + maxLocals]; double[] sDbl = new double[LOCAL_SHFT + maxLocals]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= args.length) stack[VAR_SHFT + i] = undefined; else stack[VAR_SHFT + i] = args[i]; } for ( ; i < maxVars; i++) stack[VAR_SHFT + i] = undefined; } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (theData.itsMaxTryDepth > 0) { // catchStack[2 * i]: catch data // catchStack[2 * i + 1]: finally data catchStack = new int[theData.itsMaxTryDepth * 2]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, ee.getErrorObject()); // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw ee; } } stack[0] = ee.getErrorObject(); } else { if (frame != null) cx.popFrame(); throw ee; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { if (cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, ScriptRuntime.unwrapJavaScriptException(jsx)); } stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop * 2]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = catchStack[tryStackTop * 2 + 1]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jsx; } stack[0] = jsx; } else { stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } } else { if (frame != null) cx.popFrame(); throw jsx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { if (cx.debugger != null) cx.debugger.handleExceptionThrown(cx, jx); cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = catchStack[--tryStackTop * 2 + 1]; scope = scopeStack[tryStackTop]; if (pc == 0) { if (frame != null) cx.popFrame(); throw jx; } } else { if (frame != null) cx.popFrame(); throw jx; } // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); return result; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/bee05de110e688522361fc733e5ee8210b9508c9/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 75...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 75...
if (base <= provisionalTop) return deq[provisionalTop & (deq.length-1)].take(); else { /* Reset DEQ indices to zero whenever it is empty. This both avoids unnecessary calls to checkOverflow in push, and helps keep the DEQ from accumulating garbage */
if (base <= provisionalTop) return deq[provisionalTop & (deq.length - 1)].take(); else { /* Reset DEQ indices to zero whenever it is empty. This both avoids unnecessary calls to checkOverflow in push, and helps keep the DEQ from accumulating garbage */
protected final synchronized FJTask confirmPop(int provisionalTop) { if (base <= provisionalTop) return deq[provisionalTop & (deq.length-1)].take(); else { // was empty /* Reset DEQ indices to zero whenever it is empty. This both avoids unnecessary calls to checkOverflow in push, and helps keep the DEQ from accumulating garbage */ top = base = 0; return null; } }
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/FJTaskRunner.java/clean/src/java/org/logicalcobwebs/concurrent/FJTaskRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 3852, 478, 46, 2174, 6932, 7049, 12, 474, 10595, 287, 3401, 13, 288, 565, 309, 261, 1969, 1648, 10595, 287, 3401, 13, 4202, 327, 443, 85, 63, 17051, 287, 3401, 473, 261, 323,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3852, 478, 46, 2174, 6932, 7049, 12, 474, 10595, 287, 3401, 13, 288, 565, 309, 261, 1969, 1648, 10595, 287, 3401, 13, 4202, 327, 443, 85, 63, 17051, 287, 3401, 473, 261, 323,...
InetAddress addr;
FreenetInetAddress addr;
public void set(String val) throws InvalidConfigValueException { // FIXME do we need to tell anyone? if(val.length() == 0) { // Set to null overrideIPAddress = null; lastIPAddress = null; redetectAddress(); shouldInsertARK(); return; } InetAddress addr; try { addr = InetAddress.getByName(val); } catch (UnknownHostException e) { throw new InvalidConfigValueException("Unknown host: "+e.getMessage()); } overrideIPAddress = addr; lastIPAddress = null; redetectAddress(); shouldInsertARK(); }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/474d190c633c367c5c3ff7fbe0f75a1ea669294b/Node.java/buggy/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 444, 12, 780, 1244, 13, 1216, 1962, 809, 9738, 288, 9506, 202, 759, 9852, 741, 732, 1608, 358, 9276, 1281, 476, 35, 9506, 202, 430, 12, 1125, 18, 2469, 1435, 422, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1875, 202, 482, 918, 444, 12, 780, 1244, 13, 1216, 1962, 809, 9738, 288, 9506, 202, 759, 9852, 741, 732, 1608, 358, 9276, 1281, 476, 35, 9506, 202, 430, 12, 1125, 18, 2469, 1435, 422, 374, ...
} else if ( name.equals( "CH2B_MEDIAN" ) || name.equals( "CH2_BKD" ) ) {
} else if ( name.equals( "CH2B_MEDIAN" ) || name.equals( "CH2_BKD" ) || name.toLowerCase().matches( "b635[\\s_\\.](mean|median)" ) || name.equals( "BACKGROUND_CHANNEL 2MEDIAN" ) || name.equals( "R_BG_MEDIAN" ) ) {
public Collection<DesignElementDataVector> computeMissingValues( ExpressionExperiment expExp, double signalToNoiseThreshold ) { Collection<DesignElementDataVector> allVectors = expExp.getDesignElementDataVectors(); Collection<DesignElementDataVector> finalResults = new HashSet<DesignElementDataVector>(); Collection<BioAssayDimension> dimensions = new HashSet<BioAssayDimension>(); for ( DesignElementDataVector vector : allVectors ) { dimensions.add( vector.getBioAssayDimension() ); } QuantitationType signalChannelA = null; QuantitationType signalChannelB = null; QuantitationType backgroundChannelA = null; QuantitationType backgroundChannelB = null; // FIXME this only supports Genepix and QuantArray data, and in a very primitive way. for ( DesignElementDataVector vector : allVectors ) { QuantitationType qType = vector.getQuantitationType(); String name = qType.getName(); // if ( qType.getType().equals( StandardQuantitationType.MEASUREDSIGNAL ) ) { // if ( qType.getIsBackground() == true ) { if ( name.equals( "CH1B_MEDIAN" ) || name.equals( "CH1_BKD" ) ) { backgroundChannelA = qType; } else if ( name.equals( "CH2B_MEDIAN" ) || name.equals( "CH2_BKD" ) ) { backgroundChannelB = qType; } else // } else { if ( name.equals( "CH1I_MEDIAN" ) || name.equals( "CH1_MEAN" ) ) { signalChannelA = qType; } else if ( name.equals( "CH2I_MEDIAN" ) || name.equals( "CH2_MEAN" ) ) { signalChannelB = qType; } // } // } if ( signalChannelA != null && signalChannelB != null && backgroundChannelA != null && backgroundChannelB != null ) { break; // no need to go through them all. } } if ( !( signalChannelA != null && signalChannelB != null && backgroundChannelA != null && backgroundChannelB != null ) ) { throw new IllegalStateException( "Could not determine all the signals and backgrounds" ); } for ( BioAssayDimension bioAssayDimension : dimensions ) { ExpressionDataDoubleMatrix signalDataA = new ExpressionDataDoubleMatrix( expExp, signalChannelA ); ExpressionDataDoubleMatrix signalDataB = new ExpressionDataDoubleMatrix( expExp, signalChannelB ); ExpressionDataDoubleMatrix bkgDataA = new ExpressionDataDoubleMatrix( expExp, backgroundChannelA ); ExpressionDataDoubleMatrix bkgDataB = new ExpressionDataDoubleMatrix( expExp, backgroundChannelB ); Collection<DesignElementDataVector> dimRes = computeMissingValues( expExp, bioAssayDimension, signalDataA, signalDataB, bkgDataA, bkgDataB, signalToNoiseThreshold ); finalResults.addAll( dimRes ); } return finalResults; }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/0a7df6ffaf96f0be21e35e75c60352550d94315a/TwoChannelMissingValues.java/buggy/gemma-core/src/main/java/ubic/gemma/analysis/preprocess/TwoChannelMissingValues.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 32, 15478, 1046, 751, 5018, 34, 3671, 4841, 1972, 12, 5371, 22338, 1329, 2966, 16, 5411, 1645, 4277, 774, 2279, 784, 7614, 262, 288, 3639, 2200, 32, 15478, 1046, 751, 5018, 34...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2200, 32, 15478, 1046, 751, 5018, 34, 3671, 4841, 1972, 12, 5371, 22338, 1329, 2966, 16, 5411, 1645, 4277, 774, 2279, 784, 7614, 262, 288, 3639, 2200, 32, 15478, 1046, 751, 5018, 34...
}catch(RemarshalException rem){
} catch(RemarshalException rem) {
private void _invoke( boolean response_expected ) { while (true) { org.jacorb.orb.Delegate deleg = (org.jacorb.orb.Delegate)((org.omg.CORBA.portable.ObjectImpl)target)._get_delegate(); RequestOutputStream ros = (RequestOutputStream) deleg.request(target, operation, response_expected); ros.setRequest(this); for( Iterator it = ((org.jacorb.orb.NVList)arguments).iterator(); it.hasNext();) { org.jacorb.orb.NamedValue nv = (org.jacorb.orb.NamedValue)it.next(); if( nv.flags() != org.omg.CORBA.ARG_OUT.value ) { nv.send(ros); } } try { reply = deleg.invoke(target, ros); if( response_expected ) { _read_result(); if (info != null) { info.setResult (result_value.value()); InterceptorManager manager = orb.getInterceptorManager(); info.setCurrent (manager.getCurrent()); try{ deleg.invokeInterceptors(info, ClientInterceptorIterator.RECEIVE_REPLY); }catch(RemarshalException rem){ //not allowed to happen here anyway } info = null; } } } catch (RemarshalException rem) { // Try again continue; } catch (ApplicationException ae) { org.omg.CORBA.Any any; org.omg.CORBA.TypeCode tc; String id = ae.getId (); int count = exceptions.count (); for (int i = 0; i < count; i++) { try { tc = exceptions.item (i); if (id.equals (tc.id ())) { any = orb.create_any (); any.read_value (ae.getInputStream (), tc); env.exception (new org.omg.CORBA.UnknownUserException (any)); break; } } catch (org.omg.CORBA.TypeCodePackage.BadKind ex) { // ignored } catch (org.omg.CORBA.Bounds ex) { break; } } break; } catch (Exception e) { env.exception (e); break; } break; } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/7dc258e1d898c133fa8113c1af1594d926e8ccff/Request.java/buggy/src/org/jacorb/orb/dii/Request.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 389, 14407, 12, 1250, 766, 67, 3825, 262, 565, 288, 3639, 1323, 261, 3767, 13, 3639, 288, 5411, 2358, 18, 31390, 16640, 18, 16640, 18, 9586, 11158, 273, 7734, 261, 3341, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 389, 14407, 12, 1250, 766, 67, 3825, 262, 565, 288, 3639, 1323, 261, 3767, 13, 3639, 288, 5411, 2358, 18, 31390, 16640, 18, 16640, 18, 9586, 11158, 273, 7734, 261, 3341, 18, ...
public float getOmega() { return omega; }
public float getOmega() { return omega; }
public float getOmega() { return omega; }
1612 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1612/0330f8331b2038088807459d5ce9cf7280175c10/ITrack.java/buggy/src/java/hep/lcio/implementation/event/ITrack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1431, 17971, 81, 11061, 1435, 288, 202, 202, 2463, 17220, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1431, 17971, 81, 11061, 1435, 288, 202, 202, 2463, 17220, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
return new IntegerToken( IToken.tINTEGER, Integer.parseInt( value ), scannerData.getContextStack() );
return new IntegerToken( IToken.tINTEGER, Long.parseLong( value ), scannerData.getContextStack() );
public static IToken createIntegerToken( String value, IScannerData scannerData ) { if( value.length() > 15 ) return createUniquelyImagedToken( IToken.tINTEGER, value, scannerData ); if( scannerData.getContextStack().getCurrentContext().getKind() == IScannerContext.ContextKind.MACROEXPANSION ) return new IntegerExpansionToken( IToken.tINTEGER, Integer.parseInt(value ), scannerData.getContextStack() ); return new IntegerToken( IToken.tINTEGER, Integer.parseInt( value ), scannerData.getContextStack() ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/b1157be81cef49a3ce5d885cff5418b2483b0399/TokenFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/token/TokenFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 1345, 752, 4522, 1345, 12, 514, 460, 16, 467, 11338, 751, 7683, 751, 262, 202, 95, 202, 202, 430, 12, 460, 18, 2469, 1435, 405, 4711, 262, 1082, 202, 2463, 752, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 1345, 752, 4522, 1345, 12, 514, 460, 16, 467, 11338, 751, 7683, 751, 262, 202, 95, 202, 202, 430, 12, 460, 18, 2469, 1435, 405, 4711, 262, 1082, 202, 2463, 752, 98...
public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram();
public quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { quickfix.field.UnderlyingCPProgram value = new quickfix.field.UnderlyingCPProgram();
public org.quickfix.field.UnderlyingCPProgram getUnderlyingCPProgram() throws FieldNotFound { org.quickfix.field.UnderlyingCPProgram value = new org.quickfix.field.UnderlyingCPProgram(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataRequest.java/clean/src/java/src/quickfix/fix44/MarketDataRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4258, 9459, 10833, 765, 6291, 4258, 9459, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4258, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4258, 9459, 10833, 765, 6291, 4258, 9459, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4258, 9...
Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExpandControl(path, click.x, click.y); boolean isLeaf = isLeaf(row); if (isLeaf) bounds.width += rightChildIndent + gap; else if (hasControlIcons()) bounds.width += getCurrentControlIcon(path).getIconWidth() + gap; boolean inBounds = bounds.contains(click.x, click.y); if ((inBounds || cntlClick) && tree.isVisible(path)) { selectPath(tree, path); if (inBounds && e.getClickCount() == 2 && !isLeaf(row)) toggleExpandState(path); if (cntlClick) { handleExpandControlClick(path, click.x, click.y); if (cellEditor != null) cellEditor.cancelCellEditing(); } else if (tree.isEditable()) startEditing(path, e); } }
public void mousePressed(MouseEvent e) { Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y); if (path != null) { bounds = getPathBounds(tree, path); int row = getRowForPath(tree, path); boolean cntlClick = isLocationInExpandControl(path, click.x, click.y); boolean isLeaf = isLeaf(row); if (isLeaf) bounds.width += rightChildIndent + gap; else if (hasControlIcons()) bounds.width += getCurrentControlIcon(path).getIconWidth() + gap; boolean inBounds = bounds.contains(click.x, click.y); if ((inBounds || cntlClick) && tree.isVisible(path)) { selectPath(tree, path); if (inBounds && e.getClickCount() == 2 && !isLeaf(row)) toggleExpandState(path); if (cntlClick) { handleExpandControlClick(path, click.x, click.y); if (cellEditor != null) cellEditor.cancelCellEditing(); } else if (tree.isEditable()) startEditing(path, e); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 24624, 12, 9186, 1133, 425, 13, 565, 288, 1377, 4686, 4682, 273, 425, 18, 588, 2148, 5621, 1377, 4902, 743, 589, 273, 1927, 383, 7781, 743, 1290, 2735, 12, 3413, 16, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 24624, 12, 9186, 1133, 425, 13, 565, 288, 1377, 4686, 4682, 273, 425, 18, 588, 2148, 5621, 1377, 4902, 743, 589, 273, 1927, 383, 7781, 743, 1290, 2735, 12, 3413, 16, 46...
assertTrue("Object could not be reclaimed.", wr.get() == null);
assertNull("Object could not be reclaimed.", wr.get());
public void test_general() { // Test the general/overall functionality of Reference. class TestObject { public boolean finalized; public TestObject() { finalized = false; } protected void finalize() { finalized = true; } } final ReferenceQueue rq = new ReferenceQueue(); class TestThread extends Thread { public void run() { // Create the object in a separate thread to ensure it will be // gc'ed Object testObj = new TestObject(); wr = new WeakReference(testObj, rq); testObj = null; } } Reference ref; try { Thread t = new TestThread(); t.start(); t.join(); System.gc(); System.runFinalization(); ref = rq.remove(); assertTrue("Unexpected ref1", ref == wr); assertTrue("Object not garbage collected1.", ref != null); assertTrue("Object could not be reclaimed1.", wr.get() == null); } catch (InterruptedException e) { fail("InterruptedException : " + e.getMessage()); } try { Thread t = new TestThread(); t.start(); t.join(); System.gc(); System.runFinalization(); ref = rq.poll(); assertTrue("Unexpected ref2", ref == wr); assertTrue("Object not garbage collected.", ref != null); assertTrue("Object could not be reclaimed.", ref.get() == null); // Reference wr so it does not get collected assertTrue("Object could not be reclaimed.", wr.get() == null); } catch (Exception e) { fail("Exception : " + e.getMessage()); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/ReferenceTest.java/buggy/modules/luni/src/test/java/tests/api/java/lang/ref/ReferenceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 12259, 1435, 288, 202, 202, 759, 7766, 326, 7470, 19, 27145, 14176, 434, 6268, 18, 202, 202, 1106, 7766, 921, 288, 1082, 202, 482, 1250, 727, 1235, 31, 1082, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 12259, 1435, 288, 202, 202, 759, 7766, 326, 7470, 19, 27145, 14176, 434, 6268, 18, 202, 202, 1106, 7766, 921, 288, 1082, 202, 482, 1250, 727, 1235, 31, 1082, 20...
instructionLabel.setText(IDEWorkbenchMessages.getString("MultiStepReviewWizardPage.instructionLabel"));
instructionLabel.setText(IDEWorkbenchMessages.getString("MultiStepReviewWizardPage.instructionFinishLabel"));
private void createInstructionsGroup(Composite parent) { instructionLabel = new Label(parent, SWT.LEFT); instructionLabel.setText(IDEWorkbenchMessages.getString("MultiStepReviewWizardPage.instructionLabel")); //$NON-NLS-1$ GridData data = new GridData(); data.verticalAlignment = SWT.TOP; data.horizontalSpan = 2; instructionLabel.setLayoutData(data); instructionLabel.setFont(parent.getFont()); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5f66f012d964fb2d38e01d894590ab05bc28a3b4/MultiStepReviewWizardPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/MultiStepReviewWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 26712, 1114, 12, 9400, 982, 13, 288, 202, 202, 19116, 2224, 273, 394, 5287, 12, 2938, 16, 348, 8588, 18, 10066, 1769, 202, 202, 19116, 2224, 18, 542, 1528, 12, 1038...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 26712, 1114, 12, 9400, 982, 13, 288, 202, 202, 19116, 2224, 273, 394, 5287, 12, 2938, 16, 348, 8588, 18, 10066, 1769, 202, 202, 19116, 2224, 18, 542, 1528, 12, 1038...
results = compare(retEnv, tempPath); assertTrue(results);
compare(retEnv, tempPath);
public void testR2GCEchoInterger() throws AxisFault { url = "http://www.whitemesa.net/interop/std/echohdr"; soapAction = "http://soapinterop.org/"; util = new GroupcIntergerUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "WMGcIntergerRes.xml"; results = compare(retEnv, tempPath); assertTrue(results); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/WMRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/WMRound2InteropTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 43, 1441, 2599, 2465, 693, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 3350, 1726, 281, 69, 18, 2758, 19, 30376, 19, 5084, 19, 1294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 43, 1441, 2599, 2465, 693, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 3350, 1726, 281, 69, 18, 2758, 19, 30376, 19, 5084, 19, 1294...
RootNode root = new RootNode(); path.add(root);
RootNode root= new RootNode(); path.add(root);
public final void expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException { AST expr_AST_in = (AST)_t; Expression step = null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_or: { AST __t94 = _t; AST tmp3_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left = new PathExpr(); PathExpr right = new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t94; _t = _t.getNextSibling(); OpOr or = new OpOr(); or.add(left); or.add(right); path.addPath(or); break; } case LITERAL_and: { AST __t95 = _t; AST tmp4_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left = new PathExpr(); PathExpr right = new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t95; _t = _t.getNextSibling(); OpAnd and = new OpAnd(); and.add(left); and.add(right); path.addPath(and); break; } case PARENTHESIZED: { AST __t96 = _t; AST tmp5_AST_in = (AST)_t; match(_t,PARENTHESIZED); _t = _t.getFirstChild(); PathExpr expr = new PathExpr(); path.addPath(expr); expr(_t,expr); _t = _retTree; _t = __t96; _t = _t.getNextSibling(); break; } case UNION: { AST __t97 = _t; AST tmp6_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left = new PathExpr(); PathExpr right = new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t97; _t = _t.getNextSibling(); Union union = new Union(left, right); path.addPath(union); break; } case ABSOLUTE_SLASH: { AST __t98 = _t; AST tmp7_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root = new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case NCNAME: case LITERAL_or: case LITERAL_and: case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case STRING_LITERAL: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t98; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t100 = _t; AST tmp8_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root = new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; if(step instanceof LocationStep) { LocationStep s = (LocationStep)step; if(s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t100; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 288, 9506, 202, 9053, 3065, 67, 9053, 67, 267, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 288, 9506, 202, 9053, 3065, 67, 9053, 67, 267, 273...
public Boolean get(final String key, final Boolean defaultValue) {
public Boolean get(final String key, final Boolean defaultValue) {
private Persistence createPersistence(final Class clasz) { return new Persistence() { /** A context for the properties. */ private final String context = clasz.getName(); public Boolean get(final String key, final Boolean defaultValue) { return Boolean.parseBoolean(get(key, defaultValue.toString())); } public Dimension get(String key, Dimension defaultValue) { return new Dimension( get(key + ".width", defaultValue.width), get(key + ".height", defaultValue.height)); } public int get(final String key, final int defaultValue) { try { return Integer.parseInt(javaProperties.getProperty(key, String.valueOf(defaultValue))); } catch(final NumberFormatException nfx) { return defaultValue; } } public Point get(String key, Point defaultValue) { return new Point( get(key + ".x", defaultValue.x), get(key + ".y", defaultValue.y)); } public String get(String key, String defaultValue) { return javaProperties.getProperty(context + "." + key, defaultValue); } public void set(String key, Boolean value) { set(key, value.toString()); } public void set(String key, Dimension value) { set(key + ".height", value.height); set(key + ".width", value.width); } public void set(String key, int value) { javaProperties.setProperty(context + "." + key, String.valueOf(value)); } public void set(String key, Point value) { set(key + ".x", value.x); set(key + ".y", value.y); } public void set(String key, String value) { javaProperties.setProperty(context + "." + key, value); } }; }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/7415f9b22667609444c144f9cd7a6b17f686db7f/PersistenceFactory.java/clean/client-ui/src/main/java/com/thinkparity/browser/platform/util/persistence/PersistenceFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 13381, 752, 13182, 12, 6385, 1659, 23268, 94, 13, 288, 202, 202, 2463, 394, 13381, 1435, 288, 5411, 1783, 432, 819, 364, 326, 1790, 18, 1195, 5411, 3238, 727, 514, 819, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 13381, 752, 13182, 12, 6385, 1659, 23268, 94, 13, 288, 202, 202, 2463, 394, 13381, 1435, 288, 5411, 1783, 432, 819, 364, 326, 1790, 18, 1195, 5411, 3238, 727, 514, 819, 273, ...
try { String builderClassName = getBuilderClassName(configFile); String configString = Utility.loadResourceAsString(configFile, getClass()); StringReader configReader = new StringReader(configString); doConfigure(configReader, builderClassName);
public void setConfigFile(String configFile) throws PicoCompositionException { this.configFile = configFile; try { String builderClassName = getBuilderClassName(configFile); String configString = Utility.loadResourceAsString(configFile, getClass()); StringReader configReader = new StringReader(configString); doConfigure(configReader, builderClassName); } catch (Exception e) { throw new PicoCompositionException(e); } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/67e123292b9b3ff0a0ee9089c3287dbc6a435a1a/PicoContainerContext.java/buggy/mule-extras/picocontainer/src/java/org/mule/extras/picocontainer/PicoContainerContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 13705, 12, 780, 12247, 13, 1216, 453, 10764, 28940, 503, 565, 288, 3639, 333, 18, 1425, 812, 273, 12247, 31, 3639, 775, 3639, 288, 5411, 514, 2089, 3834, 273, 23314, 3834,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 13705, 12, 780, 12247, 13, 1216, 453, 10764, 28940, 503, 565, 288, 3639, 333, 18, 1425, 812, 273, 12247, 31, 3639, 775, 3639, 288, 5411, 514, 2089, 3834, 273, 23314, 3834,...
state = gData.stateStack[gData.stateStackTop]; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; state.savedBackTrackLast = gData.backTrackLast; state.index = gData.cp; ++gData.stateStackTop;
executeREBytecode(REGlobalData gData, char[] chars, int end) { int pc = 0; byte program[] = gData.regexp.program; int op = program[pc++]; int currentContinuation_op; int currentContinuation_pc; boolean result = false; currentContinuation_pc = 0; currentContinuation_op = REOP_END;if (debug) {System.out.println("Input = \"" + new String(chars) + "\", start at " + gData.cp);} for (;;) {if (debug) {System.out.println("Testing at " + gData.cp + ", op = " + op);} switch (op) { case REOP_EMPTY: result = true; break; case REOP_BOL: if (gData.cp != 0) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp - 1])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_EOL: if (gData.cp != end) { if (gData.multiline || ((gData.regexp.flags & JSREG_MULTILINE) != 0)) { if (!isLineTerm(chars[gData.cp])) { result = false; break; } } else { result = false; break; } } result = true; break; case REOP_WBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ !((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_WNONBDRY: result = ((gData.cp == 0 || !isWord(chars[gData.cp - 1])) ^ ((gData.cp < end) && isWord(chars[gData.cp]))); break; case REOP_DOT: result = (gData.cp != end && !isLineTerm(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_DIGIT: result = (gData.cp != end && isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONDIGIT: result = (gData.cp != end && !isDigit(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_SPACE: result = (gData.cp != end && isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONSPACE: result = (gData.cp != end && !isREWhiteSpace(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_ALNUM: result = (gData.cp != end && isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_NONALNUM: result = (gData.cp != end && !isWord(chars[gData.cp])); if (result) { gData.cp++; } break; case REOP_FLAT: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNMatcher(gData, offset, length, chars, end); } break; case REOP_FLATi: { int offset = GET_ARG(program, pc); pc += ARG_LEN; int length = GET_ARG(program, pc); pc += ARG_LEN; result = flatNIMatcher(gData, offset, length, chars, end); } break; case REOP_FLAT1: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_FLAT1i: { char matchCh = (char)(program[pc++] & 0xFF); result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_UCFLAT1: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && chars[gData.cp] == matchCh); if (result) { gData.cp++; } } break; case REOP_UCFLAT1i: { char matchCh = (char)GET_ARG(program, pc); pc += ARG_LEN; result = (gData.cp != end && upcase(chars[gData.cp]) == upcase(matchCh)); if (result) { gData.cp++; } } break; case REOP_ALT: { int nextpc; byte nextop; REProgState state; state = gData.stateStack[gData.stateStackTop]; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; ++gData.stateStackTop; nextpc = pc + GET_OFFSET(program, pc); nextop = program[nextpc++]; pushBackTrackState(gData, nextop, nextpc); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_JUMP: { int offset; REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; offset = GET_OFFSET(program, pc); pc += offset; op = program[pc++]; } continue; case REOP_LPAREN: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; gData.set_parens(parenIndex, gData.cp, 0); op = program[pc++]; } continue; case REOP_RPAREN: { int cap_index; int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; cap_index = gData.parens_index(parenIndex); gData.set_parens(parenIndex, cap_index, gData.cp - cap_index); if (parenIndex > gData.lastParen) gData.lastParen = parenIndex; op = program[pc++]; } continue; case REOP_BACKREF: { int parenIndex = GET_ARG(program, pc); pc += ARG_LEN; result = backrefMatcher(gData, parenIndex, chars, end); } break; case REOP_CLASS: { int index = GET_ARG(program, pc); pc += ARG_LEN; if (gData.cp != end) { if (classMatcher(gData, gData.regexp.classList[index], chars[gData.cp])) { gData.cp++; result = true; break; } } result = false; } break; case REOP_ASSERT: case REOP_ASSERT_NOT: { byte testOp; REProgState state; if (op == REOP_ASSERT) { testOp = REOP_ASSERTTEST; } else { testOp = REOP_ASSERTNOTTEST; } state = gData.stateStack[gData.stateStackTop]; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; state.savedBackTrackLast = gData.backTrackLast; state.index = gData.cp; ++gData.stateStackTop; pushBackTrackState(gData, testOp, pc + GET_OFFSET(program, pc)); pc += ARG_LEN; op = program[pc++]; } continue; case REOP_ASSERTTEST: case REOP_ASSERTNOTTEST: { REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; gData.cp = state.index; gData.backTrackLast = state.savedBackTrackLast; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; if (result) { if (op == REOP_ASSERTTEST) { result = true; } else { result = false; } } else { if (op == REOP_ASSERTTEST) { // Do nothing } else { result = true; } } } break; case REOP_STAR: case REOP_PLUS: case REOP_OPT: case REOP_QUANT: case REOP_MINIMALSTAR: case REOP_MINIMALPLUS: case REOP_MINIMALOPT: case REOP_MINIMALQUANT: { REProgState state; int min, max; boolean greedy = false; switch (op) { case REOP_STAR: greedy = true; // fallthrough case REOP_MINIMALSTAR: min = 0; max = -1; break; case REOP_PLUS: greedy = true; // fallthrough case REOP_MINIMALPLUS: min = 1; max = -1; break; case REOP_OPT: greedy = true; // fallthrough case REOP_MINIMALOPT: min = 0; max = 1; break; case REOP_QUANT: greedy = true; // fallthrough case REOP_MINIMALQUANT: min = GET_ARG(program, pc); pc += ARG_LEN; max = GET_ARG(program, pc); pc += ARG_LEN; break; default: throw Kit.codeBug(); } state = gData.stateStack[gData.stateStackTop]; state.min = min; state.max = max; state.index = gData.cp; state.continuation_pc = currentContinuation_pc; state.continuation_op = currentContinuation_op; ++gData.stateStackTop; if (greedy) { currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); /* Step over <parencount>, <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { if (min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; /* <parencount> <parenindex> & <next> */ pc += 3 * ARG_LEN; op = program[pc++]; } else { pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); --gData.stateStackTop; pc += 2 * ARG_LEN; // <parencount> & <parenindex> pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } } } continue; case REOP_ENDCHILD: pc = currentContinuation_pc; op = currentContinuation_op; continue; case REOP_REPEAT: { REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; if (!result) { // // There's been a failure, see if we have enough // children. // if (state.min == 0) result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; /* <parencount> & <parenindex> */ pc = pc + GET_OFFSET(program, pc); break; } else { if (state.min == 0 && gData.cp == state.index) { // matched an empty string, that'll get us nowhere result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } if (state.min != 0) state.min--; if (state.max != -1) state.max--; if (state.max == 0) { result = true; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); break; } state.index = gData.cp; ++gData.stateStackTop; currentContinuation_op = REOP_REPEAT; currentContinuation_pc = pc; pushBackTrackState(gData, REOP_REPEAT, pc); int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; op = program[pc++]; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } } } continue; case REOP_MINIMALREPEAT: { REProgState state; --gData.stateStackTop; state = gData.stateStack[gData.stateStackTop]; if (!result) { // // Non-greedy failure - try to consume another child. // if (state.max == -1 || state.max > 0) { state.index = gData.cp; currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } ++gData.stateStackTop; op = program[pc++]; continue; } else { // Don't need to adjust pc since we're going to pop. currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } } else { if (state.min == 0 && gData.cp == state.index) { // Matched an empty string, that'll get us nowhere. result = false; currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; break; } if (state.min != 0) state.min--; if (state.max != -1) state.max--; if (state.min != 0) { currentContinuation_op = REOP_MINIMALREPEAT; currentContinuation_pc = pc; int parenCount = GET_ARG(program, pc); pc += ARG_LEN; int parenIndex = GET_ARG(program, pc); pc += 2 * ARG_LEN; for (int k = 0; k < parenCount; k++) { gData.set_parens(parenIndex + k, -1, 0); } state.index = gData.cp; ++gData.stateStackTop; op = program[pc++]; } else { currentContinuation_pc = state.continuation_pc; currentContinuation_op = state.continuation_op; state.index = gData.cp; ++gData.stateStackTop; pushBackTrackState(gData, REOP_MINIMALREPEAT, pc); --gData.stateStackTop; pc += 2 * ARG_LEN; pc = pc + GET_OFFSET(program, pc); op = program[pc++]; } continue; } } case REOP_END: return true; default: throw Kit.codeBug(); } /* * If the match failed and there's a backtrack option, take it. * Otherwise this is a complete and utter failure. */ if (!result) { REBackTrackData backTrackData = gData.backTrackLast; if (backTrackData != null) { gData.backTrackLast = backTrackData.previous; gData.lastParen = backTrackData.lastParen; // XXX: If backTrackData will no longer be used, then // there is no need to clone backTrackData.parens if (backTrackData.parens != null) { gData.parens = (long[])backTrackData.parens.clone(); } gData.cp = backTrackData.cp; for (int k = 0; k < backTrackData.precedingStateTop; k++) gData.stateStack[k] = backTrackData.precedingState[k]; gData.stateStackTop = backTrackData.precedingStateTop + 1; gData.stateStack[gData.stateStackTop - 1] = backTrackData.currentState; currentContinuation_op = gData.stateStack[gData.stateStackTop - 1].continuation_op; currentContinuation_pc = gData.stateStack[gData.stateStackTop - 1].continuation_pc; pc = backTrackData.continuation_pc; op = backTrackData.continuation_op; continue; } else return false; } /* * Continue with the expression. If this the end of the child, use * the current continuation. */ op = program[pc++]; if (op == REOP_ENDCHILD) { pc = currentContinuation_pc; op = currentContinuation_op; } } }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/cffffeb8c045b41851c6663dee3635480dafb5bf/NativeRegExp.java/clean/src/org/mozilla/javascript/regexp/NativeRegExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1836, 862, 858, 16651, 12, 862, 5160, 751, 314, 751, 16, 1149, 8526, 5230, 16, 509, 679, 13, 565, 288, 3639, 509, 6125, 273, 374, 31, 3639, 1160, 5402, 8526, 273, 314, 751, 18, 17745, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1836, 862, 858, 16651, 12, 862, 5160, 751, 314, 751, 16, 1149, 8526, 5230, 16, 509, 679, 13, 565, 288, 3639, 509, 6125, 273, 374, 31, 3639, 1160, 5402, 8526, 273, 314, 751, 18, 17745, ...
buf.append("<li><a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">");
buf.append("<li style=\"clear: right; \">\n"); buf.append("<input type=\"submit\" name=\"delete_"+b.hashCode()+"\" value=\"Delete\" style=\"float: right; \" />\n"); buf.append("<input type=\"submit\" name=\"edit_"+b.hashCode()+"\" value=\"Edit\" style=\"float: right; \" />\n"); buf.append("<a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">");
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { StringBuffer buf = new StringBuffer(); HTTPRequest request = new HTTPRequest(uri); if (request.getParam("newbookmark").length() > 0) { ctx.getPageMaker().makeHead(buf, "Add a Bookmark"); buf.append("<form action=\".\" method=\"post\">\n"); buf.append("<div>\n"); buf.append("Please confirm that you wish to add the key:<br />\n"); buf.append("<i>"+request.getParam("newbookmark")+"</i><br />"); buf.append("To your bookmarks, and enter the description that you would prefer:<br />\n"); buf.append("Description:\n"); buf.append("<input type=\"text\" name=\"name\" value=\""+HTMLEncoder.encode(request.getParam("desc"))+"\" style=\"width: 100%; \" />\n"); buf.append("<input type=\"hidden\" name=\"key\" value=\""+HTMLEncoder.encode(request.getParam("newbookmark"))+"\" />\n"); buf.append("<input type=\"submit\" name=\"addbookmark\" value=\"Add Bookmark\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); return; } else if (request.isParameterSet("managebookmarks")) { ctx.getPageMaker().makeHead(buf, "Bookmark Manager"); // existing bookmarks buf.append("<form action=\".\" method=\"post\">\n"); buf.append("<div class=\"infobox\">\n"); buf.append("<h2>My Bookmarks</h2>\n"); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { buf.append("<i>You currently have no bookmarks defined</i>"); } else { buf.append("<ul id=\"bookmarks\">\n"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); buf.append("<li><a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">"); buf.append(HTMLEncoder.encode(b.getDesc())); buf.append("</a>\n"); buf.append("<input type=\"submit\" name=\"delete_"+b.hashCode()+"\" value=\"Delete\" style=\"float: right; \" />\n"); buf.append("<input type=\"submit\" name=\"edit_"+b.hashCode()+"\" value=\"Edit\" style=\"float: right; \" />\n"); buf.append("</li>\n"); } buf.append("</ul>\n"); } buf.append("<input type=\"hidden\" name=\"managebookmarks\" value=\"yes\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); // new bookmark this.makeBookmarkEditForm(buf, MODE_ADD, null, "", "", null); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); return; } ctx.getPageMaker().makeHead(buf, "Freenet FProxy Homepage"); if(node.isTestnetEnabled()) buf.append("<div style=\"color: red; font-size: 200%; \">WARNING: TESTNET MODE ENABLED</div>"); // Alerts node.alerts.toHtml(buf); // Fetch-a-key box buf.append("<br style=\"clear: all; \" />\n"); buf.append("<form action=\"/\" method=\"get\">\n"); buf.append("<div class=\"infobox\">\n"); buf.append("<h2>Fetch a Key</h2>\n"); buf.append("Key: <input type=\"text\" size=\"80\" name=\"key\"/>\n"); buf.append("<input type=\"submit\" value=\"Fetch\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); // Bookmarks buf.append("<div class=\"infobox\">\n"); buf.append("<h2>My Bookmarks</h2>"); Enumeration e = bookmarks.getBookmarks(); if (!e.hasMoreElements()) { buf.append("<i>You currently have no bookmarks defined</i>"); } else { buf.append("<ul id=\"bookmarks\">\n"); while (e.hasMoreElements()) { Bookmark b = (Bookmark)e.nextElement(); buf.append("<li><a href=\"/"+HTMLEncoder.encode(b.getKey())+"\">"); buf.append(HTMLEncoder.encode(b.getDesc())); buf.append("</a></li>\n"); } buf.append("</ul>\n"); } buf.append("<div id=\"bookmarkedit\">\n"); buf.append("<a href=\"?managebookmarks\" class=\"interfacelink\">Edit My Bookmarks</a>\n"); buf.append("</div>\n"); buf.append("</div>\n"); // Version info buf.append("<div class=\"infobox\">\n"); buf.append("<h2>Version</h2>"); buf.append("Freenet version "+Version.nodeVersion+" build #"+Version.buildNumber()); if(Version.buildNumber() < Version.highestSeenBuild) { buf.append("<br />"); buf.append("<b>A newer version is available! (Build #"+Version.highestSeenBuild+")</b>"); } buf.append("</div>\n"); // Quit Form buf.append("<form method=\"post\" action=\".\">\n"); buf.append("<div class=\"exit\">\n"); buf.append("<input type=\"hidden\" name=\"exit\" value=\"true\" /><input type=\"submit\" value=\"Shut down the node\" />\n"); buf.append("</div>\n"); buf.append("</form>\n"); // Activity buf.append("<div class=\"infobox\">\n"); buf.append("<h2>Current Activity</h2>\n"); buf.append("<ul id=\"activity\">\n" + "<li>Inserts: "+this.node.getNumInserts()+"</li>\n" + "<li>Requests: "+this.node.getNumRequests()+"</li>\n" + "<li>Transferring Requests: "+this.node.getNumTransferringRequests()+"</li>\n" + "</ul>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/3e9a0e69aa75e1bc4861d7046dee1bbd1997387b/WelcomeToadlet.java/clean/src/freenet/clients/http/WelcomeToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 288, 202, 202, 780, 1892, 1681, 273, 394, 6674, 5621, 95...
public void setCaretPosition (int pos) { caretPosition = pos; }
public void setCaretPosition (int pos) { caretPosition = pos; if (peer != null) { TextComponentPeer t = (TextComponentPeer) peer; t.setCaretPosition (pos); } }
public void setCaretPosition (int pos) { caretPosition = pos; }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/708062224a502c41561e122dcde5accf23f77ad9/TextComponent.java/buggy/libjava/java/awt/TextComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 11440, 20731, 2555, 261, 474, 949, 13, 288, 21683, 2555, 273, 949, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 11440, 20731, 2555, 261, 474, 949, 13, 288, 21683, 2555, 273, 949, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public static RubyFloat atan2(IRubyObject recv, IRubyObject other, IRubyObject other2) { double x = RubyNumeric.numericValue(other).getDoubleValue(); double y = RubyNumeric.numericValue(other2).getDoubleValue(); return RubyFloat.newFloat(recv.getRuntime(), Math.atan2(x, y));
public static RubyFloat atan2(IRubyObject recv, RubyNumeric x, RubyNumeric y) { return RubyFloat.newFloat(recv.getRuntime(), Math.atan2(x.getDoubleValue(), y.getDoubleValue()));
public static RubyFloat atan2(IRubyObject recv, IRubyObject other, IRubyObject other2) { double x = RubyNumeric.numericValue(other).getDoubleValue(); double y = RubyNumeric.numericValue(other2).getDoubleValue(); return RubyFloat.newFloat(recv.getRuntime(), Math.atan2(x, y)); }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyMath.java/buggy/src/org/jruby/RubyMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 4723, 19646, 22, 12, 7937, 10340, 921, 10665, 16, 4405, 225, 15908, 10340, 921, 1308, 16, 15908, 10340, 921, 1308, 22, 13, 288, 202, 9056, 619, 273, 19817, 9902, 18, 524...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 4723, 19646, 22, 12, 7937, 10340, 921, 10665, 16, 4405, 225, 15908, 10340, 921, 1308, 16, 15908, 10340, 921, 1308, 22, 13, 288, 202, 9056, 619, 273, 19817, 9902, 18, 524...
}
}
public void testEncode() throws IOException { final XMLLogger logger = new XMLLogger(outStream, false); final String[][] encodings = { {"<", "&lt;"}, {">", "&gt;"}, {"'", "&apos;"}, {"\"", "&quot;"}, {"&", "&amp;"}, {"&lt;", "&lt;"}, {"abc;", "abc;"}, }; for (int i = 0; i < encodings.length; i++) { final String encoded = logger.encode(encodings[i][0]); assertEquals("\"" + encodings[i][0] + "\"", encodings[i][1], encoded); } outStream.close(); }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/53197d9be9366ccf9ebccc1e6e31270c1dff8e95/XMLLoggerTest.java/clean/src/tests/com/puppycrawl/tools/checkstyle/XMLLoggerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5509, 1435, 3639, 1216, 1860, 565, 288, 3639, 727, 3167, 3328, 1194, 273, 394, 3167, 3328, 12, 659, 1228, 16, 629, 1769, 3639, 727, 514, 63, 6362, 65, 24118, 273, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5509, 1435, 3639, 1216, 1860, 565, 288, 3639, 727, 3167, 3328, 1194, 273, 394, 3167, 3328, 12, 659, 1228, 16, 629, 1769, 3639, 727, 514, 63, 6362, 65, 24118, 273, 288, ...
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) { DSAPublicKeySpec spec = (DSAPublicKeySpec) keySpec; BigInteger p = spec.getP(); BigInteger q = spec.getQ(); BigInteger g = spec.getG(); BigInteger y = spec.getY(); return new DSSPublicKey(Registry.X509_ENCODING_ID, p, q, g, y); } if (keySpec instanceof X509EncodedKeySpec) { X509EncodedKeySpec spec = (X509EncodedKeySpec) keySpec; byte[] encoded = spec.getEncoded(); PublicKey result; try { result = new DSSKeyPairX509Codec().decodePublicKey(encoded); return result; } catch (RuntimeException x) { InvalidKeySpecException y = new InvalidKeySpecException(); y.initCause(x); throw y; } } throw new InvalidKeySpecException("Unsupported (public) key specification"); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSKeyFactory.java/buggy/core/src/classpath/gnu/gnu/java/security/jce/sig/DSSKeyFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 9632, 8944, 4625, 4782, 12, 653, 55, 347, 363, 402, 1990, 13, 15069, 1941, 653, 1990, 503, 95, 430, 12, 856, 1990, 1336, 792, 3948, 2203, 24312, 1990, 15329, 3948, 2203, 24312, 1990, 279...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 9632, 8944, 4625, 4782, 12, 653, 55, 347, 363, 402, 1990, 13, 15069, 1941, 653, 1990, 503, 95, 430, 12, 856, 1990, 1336, 792, 3948, 2203, 24312, 1990, 15329, 3948, 2203, 24312, 1990, 279...
Object c = _lineField.getSelectedItem(); if (_target == null || c == null) return; _target.startTrans(); if (c instanceof Color) _target.setLineColor((Color)c); _target.setLineWidth((c instanceof Color) ? 1 : 0); _target.endTrans(); }
Object c = _lineField.getSelectedItem(); if (_target == null || c == null) return; _target.startTrans(); if (c instanceof Color) _target.setLineColor((Color) c); _target.setLineWidth((c instanceof Color) ? 1 : 0); _target.endTrans(); }
public void setTargetLine() { Object c = _lineField.getSelectedItem(); if (_target == null || c == null) return; _target.startTrans(); if (c instanceof Color) _target.setLineColor((Color)c); _target.setLineWidth((c instanceof Color) ? 1 : 0); _target.endTrans(); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/SPFigEdgeModelElement.java/clean/src_new/org/argouml/uml/diagram/ui/SPFigEdgeModelElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18367, 1670, 1435, 288, 565, 1033, 276, 273, 225, 389, 1369, 974, 18, 588, 7416, 1180, 5621, 565, 309, 261, 67, 3299, 422, 446, 747, 276, 422, 446, 13, 327, 31, 565, 389, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18367, 1670, 1435, 288, 565, 1033, 276, 273, 225, 389, 1369, 974, 18, 588, 7416, 1180, 5621, 565, 309, 261, 67, 3299, 422, 446, 747, 276, 422, 446, 13, 327, 31, 565, 389, 3...
MessageBox mb = new MessageBox(m_Shell, SWT.ICON_ERROR | SWT.OK | SWT.WRAP); mb.setMessage(m_Simulation.getLastErrorMessage()); mb.setText("Eaters Error"); mb.open();
MessageBox mb1 = new MessageBox(m_Shell, SWT.ICON_ERROR | SWT.OK | SWT.WRAP); mb1.setMessage(m_Simulation.getLastErrorMessage()); mb1.setText("TankSoar Error"); mb1.open(); return; case SimulationListener.kNotificationEvent: MessageBox mb2 = new MessageBox(m_Shell, SWT.ICON_INFORMATION | SWT.OK | SWT.WRAP); mb2.setMessage(m_Simulation.getLastErrorMessage()); mb2.setText("TankSoar"); mb2.open();
void dispatchEvent(int type) { switch (type) { case SimulationListener.kStartEvent: m_SimButtons.updateButtons(); m_MapButtons.updateButtons(); m_AgentDisplay.updateButtons(); return; case SimulationListener.kStopEvent: m_VisualWorld.redraw(); m_SimButtons.updateButtons(); m_MapButtons.updateButtons(); m_AgentDisplay.updateButtons(); return; case SimulationListener.kErrorMessageEvent: MessageBox mb = new MessageBox(m_Shell, SWT.ICON_ERROR | SWT.OK | SWT.WRAP); mb.setMessage(m_Simulation.getLastErrorMessage()); mb.setText("Eaters Error"); mb.open(); return; case SimulationListener.kUpdateEvent: m_VisualWorld.redraw(); m_AgentDisplay.worldChangeEvent(); return; case SimulationListener.kResetEvent: updateWorldGroup(); m_VisualWorld.generateBackground(); m_VisualWorld.setRepaint(); m_VisualWorld.redraw(); m_SimButtons.updateButtons(); m_AgentDisplay.worldChangeEvent(); return; case SimulationListener.kAgentCreatedEvent: m_VisualWorld.setRepaint(); m_VisualWorld.redraw(); VisualWorld.remapEntityColors(m_Simulation.getWorldManager().getEntities()); m_SimButtons.updateButtons(); m_AgentDisplay.agentEvent(); return; case SimulationListener.kAgentDestroyedEvent: m_VisualWorld.setRepaint(); m_VisualWorld.redraw(); VisualWorld.remapEntityColors(m_Simulation.getWorldManager().getEntities()); m_SimButtons.updateButtons(); m_AgentDisplay.agentEvent(); return; default: m_Logger.log("Invalid event type received: " + new Integer(type)); return; } }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/631bf843cad2217c3aa2f0d9a836e92c1b3dd03f/TankSoarWindowManager.java/clean/SoarSuite/Environments/JavaTankSoar/source/tanksoar/visuals/TankSoarWindowManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 15678, 12, 474, 618, 13, 288, 202, 202, 9610, 261, 723, 13, 288, 202, 202, 3593, 9587, 6234, 2223, 18, 79, 1685, 1133, 30, 1082, 202, 81, 67, 7993, 14388, 18, 2725, 14388, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 15678, 12, 474, 618, 13, 288, 202, 202, 9610, 261, 723, 13, 288, 202, 202, 3593, 9587, 6234, 2223, 18, 79, 1685, 1133, 30, 1082, 202, 81, 67, 7993, 14388, 18, 2725, 14388, ...