rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
if(pageToShow != null && pageForm != null){ pageForm.pageChanged(pageToShow.getId()); pageBook.showPage(PageForm.PAGE_FORM_ID); }
if (pageToShow != null && pageForm != null) { pageForm.pageChanged(pageToShow.getId()); pageBook.showPage(PageForm.PAGE_FORM_ID); }
private ScrolledPageBook createMainPageBook(FormToolkit toolkit, Form form) { // get body and create page book in it. Body has GridLayout. Composite body = form.getBody(); body.setLayout(new GridLayout()); // make sure page book expands h and v. ScrolledPageBook pageBook = toolkit.createPageBook(body, SWT.V_SCROLL | SWT.H_SCROLL); pageBook.setLayoutData(new GridData(GridData.FILL_BOTH)); // creating root page form. if (!pageBook.hasPage(model.getHomePage().getId())) { // if we do not have a root page form, create one RootPageForm rootPageForm = new RootPageForm(toolkit, model, form); rootPageForm.createPartControl(pageBook, sharedStyleManager); } // creating static page form. PageForm pageForm = null; if (!pageBook.hasPage(PageForm.PAGE_FORM_ID)) { // if we do not have this page create one in main page book. pageForm = new PageForm(toolkit, model, form); pageForm.createPartControl(pageBook, sharedStyleManager); } // now determine which page to show AbstractIntroPage pageToShow = model.getCurrentPage(); // if the page to show is the root page if(pageToShow != null && pageToShow instanceof IntroHomePage) { pageBook.showPage(pageToShow.getId()); } // we have to show one of the content pages else { if(pageToShow != null && pageForm != null){ // first create the correct content pageForm.pageChanged(pageToShow.getId()); // then show the page pageBook.showPage(PageForm.PAGE_FORM_ID); } } return pageBook; }
13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/969155cc18d4e44f9a1bdf9ad4116e1c574068fa/FormIntroPartImplementation.java/buggy/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/FormIntroPartImplementation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2850, 25054, 1964, 9084, 752, 6376, 1964, 9084, 12, 1204, 6364, 8691, 5226, 8691, 16, 2748, 646, 13, 288, 3639, 368, 336, 1417, 471, 752, 1363, 6978, 316, 518, 18, 5652, 711, 7145, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2850, 25054, 1964, 9084, 752, 6376, 1964, 9084, 12, 1204, 6364, 8691, 5226, 8691, 16, 2748, 646, 13, 288, 3639, 368, 336, 1417, 471, 752, 1363, 6978, 316, 518, 18, 5652, 711, 7145, ...
label_36:
label_38:
final public void ArrayDimsAndInits() throws ParseException { /*@bgen(jjtree) ArrayDimsAndInits */ ASTArrayDimsAndInits jjtn000 = new ASTArrayDimsAndInits(this, JJTARRAYDIMSANDINITS); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { if (jj_2_36(2)) { label_36: while (true) { jj_consume_token(LBRACKET); Expression(); jj_consume_token(RBRACKET); if (jj_2_34(2)) { ; } else { break label_36; } } label_37: while (true) { if (jj_2_35(2)) { ; } else { break label_37; } jj_consume_token(LBRACKET); jj_consume_token(RBRACKET); } } else { switch (jj_nt.kind) { case LBRACKET: label_38: while (true) { jj_consume_token(LBRACKET); jj_consume_token(RBRACKET); switch (jj_nt.kind) { case LBRACKET: ; break; default: jj_la1[99] = jj_gen; break label_38; } } ArrayInitializer(); break; default: jj_la1[100] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 1510, 25006, 1876, 382, 1282, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 1510, 25006, 1876, 382, 1282, 1195, 225, 9183, 1076, 25006, 1876, 382, 1282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1071, 918, 1510, 25006, 1876, 382, 1282, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 1510, 25006, 1876, 382, 1282, 1195, 225, 9183, 1076, 25006, 1876, 382, 1282...
public int get(String name, String namespace, String prepend) { IntVector nameList, uriList = null; if (m_nameTable == null) return -1; if (prepend != null) name = prepend + "::" + name; nameList = (IntVector)m_nameTable.get(name); if (nameList == null) return -1; if (namespace == null) namespace = ""; if ( m_uriTable != null) { uriList = (IntVector)m_uriTable.get(namespace); if (uriList == null) return -1; } // Return the element that is common to both lists for (int i=0; i< nameList.size(); i++) { for(int j=0; j< uriList.size(); j++) { if (nameList.elementAt(i) == uriList.elementAt(j)) return nameList.elementAt(i); } } // Not found. return -1; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/0e2298c0c460e281c6e54e92ac95421ec5eca2e4/LevelIndexer.java/buggy/src/org/apache/xalan/stree/LevelIndexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 336, 12, 780, 508, 16, 514, 1981, 16, 514, 8254, 13, 202, 565, 288, 1377, 3094, 5018, 508, 682, 16, 2003, 682, 273, 446, 31, 1377, 309, 261, 81, 67, 529, 1388, 422, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 336, 12, 780, 508, 16, 514, 1981, 16, 514, 8254, 13, 202, 565, 288, 1377, 3094, 5018, 508, 682, 16, 2003, 682, 273, 446, 31, 1377, 309, 261, 81, 67, 529, 1388, 422, 446, ...
public void setString(String string) { this.string = string;
public void setString(String str) { value = str;
public void setString(String string) { this.string = string; }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/086abcd7e5107a6e6813ecb64810deff5780af95/RubyString.java/clean/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14600, 12, 780, 533, 13, 288, 3639, 333, 18, 1080, 273, 533, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 377, 1071, 918, 14600, 12, 780, 533, 13, 288, 3639, 333, 18, 1080, 273, 533, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
dialog.setInputText(inputText);
dialog.setInputText(rawInputText);
public void run() { hideProgress(); DebuggerInputDialog dialog = new DebuggerInputDialog(debugger, debugger.getWindowComponent()); dialog.setInputText(inputText); if(dialog.runModal() == XJDialog.BUTTON_OK) { inputText = dialog.getInputText(); setStartRule(dialog.getRule()); showProgress(); } else cancel(); }
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/513d9ce2ce0cbb4b1e2a1d843c9f4b675b4aa09d/DBLocal.java/clean/src/org/antlr/works/debugger/local/DBLocal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 10792, 6853, 5491, 5621, 10792, 28645, 1210, 6353, 6176, 273, 394, 28645, 1210, 6353, 12, 4148, 693, 16, 19977, 18, 588, 3829, 1841, 10663, 10792, 6176, 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, 1171, 1071, 918, 1086, 1435, 288, 10792, 6853, 5491, 5621, 10792, 28645, 1210, 6353, 6176, 273, 394, 28645, 1210, 6353, 12, 4148, 693, 16, 19977, 18, 588, 3829, 1841, 10663, 10792, 6176, 18, 542...
if (_includePeerRankings) { stats.putAll(ProfileManager.getInstance().summarizePeers(_publishedStats)); includeRate("transport.sendProcessingTime", stats); includeRate("tcp.queueSize", stats); includeRate("jobQueue.jobLag", stats); includeRate("jobQueue.jobRun", stats); includeRate("crypto.elGamal.encrypt", stats); includeRate("jobQueue.readyJobs", stats); includeRate("jobQueue.droppedJobs", stats); stats.setProperty("stat_uptime", DataHelper.formatDuration(Router.getInstance().getUptime())); stats.setProperty("stat__rateKey", "avg;maxAvg;pctLifetime;[sat;satLim;maxSat;maxSatLim;][num;lifetimeFreq;maxFreq]"); _log.debug("Publishing peer rankings"); } else { _log.debug("Not publishing peer rankings"); }
if (_includePeerRankings) { stats.putAll(ProfileManager.getInstance().summarizePeers(_publishedStats)); includeRate("transport.sendProcessingTime", stats, new long[] { 60*1000, 60*60*1000 }); includeRate("jobQueue.jobLag", stats, new long[] { 60*1000, 60*60*1000 }); includeRate("jobQueue.jobRun", stats, new long[] { 60*1000, 60*60*1000 }); includeRate("crypto.elGamal.encrypt", stats, new long[] { 60*1000, 60*60*1000 }); includeRate("jobQueue.readyJobs", stats, new long[] { 60*1000, 60*60*1000 }); includeRate("jobQueue.droppedJobs", stats, new long[] { 60*60*1000, 24*60*60*1000 }); includeRate("inNetPool.dropped", stats, new long[] { 60*60*1000, 24*60*60*1000 }); includeRate("tunnel.participatingTunnels", stats, new long[] { 5*60*1000, 60*60*1000 }); includeRate("netDb.lookupsReceived", stats, new long[] { 5*60*1000, 60*60*1000 }); includeRate("netDb.lookupsHandled", stats, new long[] { 5*60*1000, 60*60*1000 }); includeRate("netDb.lookupsMatched", stats, new long[] { 5*60*1000, 60*60*1000 }); includeRate("netDb.storeSent", stats, new long[] { 5*60*1000, 60*60*1000 }); includeRate("netDb.successPeers", stats, new long[] { 60*60*1000 }); includeRate("transport.receiveMessageSize", stats, new long[] { 5*60*1000, 60*60*1000 }); includeRate("transport.sendMessageSize", stats, new long[] { 5*60*1000, 60*60*1000 }); stats.setProperty("stat_uptime", DataHelper.formatDuration(Router.getInstance().getUptime())); stats.setProperty("stat__rateKey", "avg;maxAvg;pctLifetime;[sat;satLim;maxSat;maxSatLim;][num;lifetimeFreq;maxFreq]"); _log.debug("Publishing peer rankings"); } else { _log.debug("Not publishing peer rankings"); }
public Properties publishStatistics() { Properties stats = new Properties(); stats.setProperty("router.version", RouterVersion.VERSION); stats.setProperty("router.id", RouterVersion.ID); stats.setProperty("coreVersion", CoreVersion.VERSION); stats.setProperty("core.id", CoreVersion.ID); if (_includePeerRankings) { stats.putAll(ProfileManager.getInstance().summarizePeers(_publishedStats)); includeRate("transport.sendProcessingTime", stats); includeRate("tcp.queueSize", stats); includeRate("jobQueue.jobLag", stats); includeRate("jobQueue.jobRun", stats); includeRate("crypto.elGamal.encrypt", stats); includeRate("jobQueue.readyJobs", stats); includeRate("jobQueue.droppedJobs", stats); stats.setProperty("stat_uptime", DataHelper.formatDuration(Router.getInstance().getUptime())); stats.setProperty("stat__rateKey", "avg;maxAvg;pctLifetime;[sat;satLim;maxSat;maxSatLim;][num;lifetimeFreq;maxFreq]"); _log.debug("Publishing peer rankings"); } else { _log.debug("Not publishing peer rankings"); } if (_log.shouldLog(Log.DEBUG)) _log.debug("Building status: " + stats); return stats; }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/86759d2f9c63d203488c7e8b34e64be162a16ce9/StatisticsManager.java/clean/router/java/src/net/i2p/router/StatisticsManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6183, 3808, 8569, 1435, 288, 225, 202, 2297, 3177, 273, 394, 6183, 5621, 202, 5296, 18, 542, 1396, 2932, 10717, 18, 1589, 3113, 9703, 1444, 18, 5757, 1769, 202, 5296, 18, 542, 1396,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6183, 3808, 8569, 1435, 288, 225, 202, 2297, 3177, 273, 394, 6183, 5621, 202, 5296, 18, 542, 1396, 2932, 10717, 18, 1589, 3113, 9703, 1444, 18, 5757, 1769, 202, 5296, 18, 542, 1396,...
tuple[16] = r.getBytes(5); tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes();
tuple[16] = rs.getBytes("attnum"); tuple[17] = (rs.getBoolean("attnotnull") ? "NO" : "YES").getBytes();
public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, NAME_SIZE); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, NAME_SIZE); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, NAME_SIZE); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, NAME_SIZE); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern.toLowerCase() + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern.toLowerCase() + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/format_type.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8) - VARHDRSZ; tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); } else { tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal } tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return connection.getResultSet(null, f, v, "OK", 1); }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/40327076bce2d4a086a440f2d10fd1d514f96450/AbstractJdbc1DatabaseMetaData.java/buggy/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 13198, 14226, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 7578, 3234, 13, 1216, 6483, 202, 95, 202, 202, 5018, 331, 273, 394, 5589, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14226, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 7578, 3234, 13, 1216, 6483, 202, 95, 202, 202, 5018, 331, 273, 394, 5589, ...
public void testSetBaseUrl() throws ParseException { parseTable(formatTable(startTableFmt)); assertEquals(baseUrl, fixture.getBaseUrl()); fixture.tester.assertTitleEquals("Start Page"); //System.out.println(tableToString()); assertEquals(formatTable(expectedTable), tableToString()); }
5239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5239/3bb58f7acfd0637ac23274ac559479bf768ee041/WebFixtureTest.java/buggy/jWebUnit/fitplugin/test/net/sourceforge/jwebunit/fit/WebFixtureTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 694, 14074, 1435, 15069, 13047, 95, 2670, 1388, 12, 2139, 1388, 12, 1937, 1388, 16090, 10019, 11231, 8867, 12, 31576, 16, 904, 10970, 18, 588, 14074, 10663, 904, 10970, 18, 107...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 694, 14074, 1435, 15069, 13047, 95, 2670, 1388, 12, 2139, 1388, 12, 1937, 1388, 16090, 10019, 11231, 8867, 12, 31576, 16, 904, 10970, 18, 588, 14074, 10663, 904, 10970, 18, 107...
public ClientPut(FCPConnectionHandler handler, ClientPutMessage message) {
public ClientPut(FCPConnectionHandler handler, ClientPutMessage message) throws IdentifierCollisionException {
public ClientPut(FCPConnectionHandler handler, ClientPutMessage message) { this.verbosity = message.verbosity; this.identifier = message.identifier; this.getCHKOnly = message.getCHKOnly; this.priorityClass = message.priorityClass; this.persistenceType = message.persistenceType; this.fromDisk = message.fromDisk; this.origFilename = message.origFilename; if(persistenceType == PERSIST_CONNECTION) this.origHandler = handler; else this.origHandler = null; if(message.global) { client = handler.server.globalClient; } else { client = handler.getClient(); } ctx = new InserterContext(client.defaultInsertContext, new SimpleEventProducer()); ctx.dontCompress = message.dontCompress; ctx.eventProducer.addEventListener(this); ctx.maxInsertRetries = message.maxRetries; // Now go through the fields one at a time uri = message.uri; String mimeType = message.contentType; clientToken = message.clientToken; block = new InsertBlock(message.bucket, new ClientMetadata(mimeType), uri); if(persistenceType != PERSIST_CONNECTION) client.register(this); inserter = new ClientPutter(this, message.bucket, uri, new ClientMetadata(mimeType), ctx, client.node.chkPutScheduler, client.node.sskPutScheduler, priorityClass, getCHKOnly, false, client); if(persistenceType != PERSIST_CONNECTION && handler != null) sendPendingMessages(handler.outputHandler, true); }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/5172c6eaf3d3ff5aaaf0703e2a38ccebe1b75ec3/ClientPut.java/clean/src/freenet/node/fcp/ClientPut.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 12, 42, 4258, 1952, 1503, 1838, 16, 2445, 6426, 1079, 883, 13, 288, 202, 202, 2211, 18, 16629, 8807, 273, 883, 18, 16629, 8807, 31, 202, 202, 2211, 18, 5644, 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, 2445, 6426, 12, 42, 4258, 1952, 1503, 1838, 16, 2445, 6426, 1079, 883, 13, 288, 202, 202, 2211, 18, 16629, 8807, 273, 883, 18, 16629, 8807, 31, 202, 202, 2211, 18, 5644, 273, ...
closeJob.cancel(); cleanNotified();
closeJob.cancel();
protected IStatus run(IProgressMonitor monitor) { try { if (!PlatformUI.getWorkbench().getDisplay().isDisposed()) { PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { if ((popup != null && popup.close()) || popup == null) { closeJob.cancel(); cleanNotified(); collectNotifications(); synchronized (TaskListNotificationManager.class) { if (currentlyNotifying.size() > 0) { popup = new TaskListNotificationPopup(PlatformUI.getWorkbench().getDisplay() .getActiveShell()); popup.setContents(new ArrayList<ITaskListNotification>(currentlyNotifying)); popup.setBlockOnOpen(false); popup.open(); closeJob.setSystem(runSystem); closeJob.schedule(CLOSE_POPUP_DELAY); popup.getShell().addShellListener(SHELL_LISTENER); } } } } }); } } finally { schedule(OPEN_POPUP_DELAY); } if (monitor.isCanceled()) return Status.CANCEL_STATUS; return Status.OK_STATUS; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/da567eec8ad0742a0b79ebfa48cac2255728e76d/TaskListNotificationManager.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/TaskListNotificationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 698, 288, 9506, 202, 430, 16051, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 291, 1669, 7423, 10756...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1117, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 1082, 202, 698, 288, 9506, 202, 430, 16051, 8201, 5370, 18, 588, 2421, 22144, 7675, 588, 4236, 7675, 291, 1669, 7423, 10756...
LinkedNode p = head; if (p != null && (head = p.next) == null) last = null; return p; }
LinkedNode p = head; if (p != null && (head = p.next) == null) last = null; return p; }
protected LinkedNode deq() { LinkedNode p = head; if (p != null && (head = p.next) == null) last = null; return p; }
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/SynchronousChannel.java/buggy/src/java/org/logicalcobwebs/concurrent/SynchronousChannel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 6546, 907, 443, 85, 1435, 288, 1377, 6546, 907, 293, 273, 910, 31, 1377, 309, 261, 84, 480, 446, 597, 261, 1978, 273, 293, 18, 4285, 13, 422, 446, 13, 540, 1142, 273, 446, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 6546, 907, 443, 85, 1435, 288, 1377, 6546, 907, 293, 273, 910, 31, 1377, 309, 261, 84, 480, 446, 597, 261, 1978, 273, 293, 18, 4285, 13, 422, 446, 13, 540, 1142, 273, 446, 31, ...
int value = (src.getSelection() == true) ? 0: 1;
int value = (src.getSelection() == true) ? 0: 1;
public void widgetSelected(SelectionEvent e) { Button src= (Button) e.widget; ConfigurableOption option= retrieveOption(src); int value = (src.getSelection() == true) ? 0: 1; // Dependant on CodeFormatter logic option.setValueIndex(value); if (option.getID() == TAB_CHECK_OPTION_ID) { updateTabWidgetDependency(); } updatePreview(fNewOptions); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/8ebb65c1c2f479365b7eabfc139b5d6a723992db/CodeFormatterPreferencePage.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 1082, 202, 3616, 1705, 33, 261, 3616, 13, 425, 18, 6587, 31, 1082, 202, 31660, 1895, 1456, 33, 225, 4614, 1895, 12, 4816, 1769,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 1082, 202, 3616, 1705, 33, 261, 3616, 13, 425, 18, 6587, 31, 1082, 202, 31660, 1895, 1456, 33, 225, 4614, 1895, 12, 4816, 1769,...
if ( _format.getIndenting() ) { _thisIndent = 0;
if ( _indenting ) { _printer.setThisIndent( 0 );
public void ignorableWhitespace( char[] chars, int start, int length ) { int i; content(); // Print ignorable whitespaces only when indenting, after // all they are indentation. Cancel the indentation to // not indent twice. if ( _format.getIndenting() ) { _thisIndent = 0; for ( i = start ; length-- > 0 ; ++i ) { if ( chars[ i ] == '\n' || chars[ i ] == '\r' ) breakLine( true ); else _text.append( chars[ i ] ); } } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/6a9b22474c21af7de8c770f415756a79307aa72e/BaseMarkupSerializer.java/buggy/src/org/apache/xml/serialize/BaseMarkupSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 9750, 15514, 9431, 12, 1149, 8526, 5230, 16, 509, 787, 16, 509, 769, 262, 565, 288, 3639, 509, 277, 31, 7734, 913, 5621, 7734, 368, 3038, 9750, 15514, 28186, 1338, 1347, 3504, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9750, 15514, 9431, 12, 1149, 8526, 5230, 16, 509, 787, 16, 509, 769, 262, 565, 288, 3639, 509, 277, 31, 7734, 913, 5621, 7734, 368, 3038, 9750, 15514, 28186, 1338, 1347, 3504, ...
ArrayList frameworkFileIDs = new ArrayList();
ArrayList wsresourceFileIDs = new ArrayList(); ArrayList frameworkFileIDs = new ArrayList();
public void save( File projectFile ) { ObjectsTable objectsTable = new ObjectsTable(); String projectPath; try { projectPath = projectFile.getCanonicalPath(); } catch (IOException ex) { throw new RuntimeException("Can't get path of project file: " + projectFile); } int last = projectPath.lastIndexOf(File.separator); if(last != -1) { projectPath = projectPath.substring(0, last); } last = projectPath.lastIndexOf(File.separator); if(last != -1) { projectPath = projectPath.substring(0, last); } ArrayList sourceBuildFileIDs = new ArrayList(); ArrayList resourceBuildFileIDs = new ArrayList(); ArrayList frameworkBuildFileIDs = new ArrayList(); ArrayList sourceFileIDs = new ArrayList(); ArrayList resourceFileIDs = new ArrayList(); ArrayList frameworkFileIDs = new ArrayList(); // Walk refs, creating the appropriate reference type and an associated // build file for each and adding it to the objects table and group children list. String path; Iterator it; it = _sourceRefs.iterator(); while( it.hasNext() ) { path = (String) it.next(); if(path.indexOf(projectPath) == 0) { path = path.substring(projectPath.length()+1); } File file = new File(path); Map reference = newFileReference(file.getName(), path); ObjectsTable.ID refID = objectsTable.insert(reference); sourceFileIDs.add(refID); sourceBuildFileIDs.add(objectsTable.insert(newBuildFile(refID))); } it = _fileRefs.iterator(); while( it.hasNext() ) { path = (String) it.next(); if(path.indexOf(projectPath) == 0) { path = path.substring(projectPath.length()+1); } File file = new File(path); Map reference = newFileReference(file.getName(), path); ObjectsTable.ID refID = objectsTable.insert(reference); resourceFileIDs.add(refID); resourceBuildFileIDs.add(objectsTable.insert(newBuildFile(refID))); } it = _folderRefs.iterator(); while( it.hasNext() ) { path = (String) it.next(); if(path.indexOf(projectPath) == 0) { path = path.substring(projectPath.length()+1); } File file = new File(path); Map reference = newFolderReference(file.getName(), path); ObjectsTable.ID refID = objectsTable.insert(reference); resourceFileIDs.add(refID); resourceBuildFileIDs.add(objectsTable.insert(newBuildFile(refID))); } it = _frameworkRefs.iterator(); while( it.hasNext() ) { path = (String) it.next(); Map reference = newFrameworkReference((new File(path)).getName(), path ); ObjectsTable.ID refID = objectsTable.insert(reference); frameworkFileIDs.add(refID); frameworkBuildFileIDs.add(objectsTable.insert(newBuildFile(refID))); } ArrayList childrenIDs = new ArrayList(); childrenIDs.add(objectsTable.insert(newGroup( "Sources", sourceFileIDs))); childrenIDs.add(objectsTable.insert(newGroup( "Resources", resourceFileIDs))); childrenIDs.add(objectsTable.insert(newGroup( "Frameworks", frameworkFileIDs))); // Create the PBXGroup and add it to the objects table. ObjectsTable.ID mainGroupID = objectsTable.insert( newGroup( "Root", childrenIDs) ); // Create the PBXBuildPhase and add it to the objects table. ArrayList buildPhaseIDs = new ArrayList( 1 ); if (hasBuildPhases()) { buildPhaseIDs.add( objectsTable.insert( newSourcesBuildPhase( sourceBuildFileIDs))); buildPhaseIDs.add( objectsTable.insert( newResourcesBuildPhase( resourceBuildFileIDs))); buildPhaseIDs.add( objectsTable.insert( newFrameworkBuildPhase( frameworkBuildFileIDs))); } // Create the PBXToolTarget and add it to the objects table and // the targets list. ArrayList targetIDs = new ArrayList( 1 ); targetIDs.add( objectsTable.insert( newAppServerTarget(buildPhaseIDs, objectsTable))); // Create the PBXProject and add it to the objects table. ObjectsTable.ID projectID = objectsTable.insert( newProject( mainGroupID, targetIDs, objectsTable )); // Create the root dictionary. Map pbxproj = newPBXProj( objectsTable, projectID); PropertyListSerialization.propertyListToFile( projectFile, pbxproj ); }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/480be17e4be6381db443f5d04495da4d910c541f/PBXProject.java/buggy/projects/woenvironment/src/java/org/objectstyle/woenvironment/pb/PBXProject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1923, 12, 1387, 1984, 812, 262, 288, 202, 565, 8487, 1388, 2184, 1388, 273, 394, 8487, 1388, 5621, 202, 565, 514, 1984, 743, 31, 202, 565, 775, 288, 202, 3639, 1984, 743,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1923, 12, 1387, 1984, 812, 262, 288, 202, 565, 8487, 1388, 2184, 1388, 273, 394, 8487, 1388, 5621, 202, 565, 514, 1984, 743, 31, 202, 565, 775, 288, 202, 3639, 1984, 743,...
for (int i = 0; i < numDimensions; ++i) numElements[i] = VM_Magic.getMemoryInt(argp.sub(4 * (i + 1)));
for (int i = 0; i < numDimensions; ++i) { int offset = (BYTES_IN_STACKSLOT * i) + BYTES_IN_INT; numElements[i] = VM_Magic.getMemoryInt(argp.sub(offset)); }
static Object newArrayArray(int methodId, int numDimensions, int id, int argOffset) throws NegativeArraySizeException, OutOfMemoryError { // fetch number of elements to be allocated for each array dimension // int[] numElements = new int[numDimensions]; VM.disableGC(); VM_Address argp = VM_Magic.getMemoryAddress(VM_Magic.getFramePointer()).add(argOffset); for (int i = 0; i < numDimensions; ++i) numElements[i] = VM_Magic.getMemoryInt(argp.sub(4 * (i + 1))); VM.enableGC(); // validate arguments // for (int i = 0; i < numDimensions; ++i) if (numElements[i] < 0) throw new NegativeArraySizeException(); // create array // VM_TypeReference tRef = VM_TypeReference.getTypeRef(id); VM_Array array = tRef.resolve().asArray(); return VM_Runtime.buildMultiDimensionalArray(methodId, numElements, array); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/2ba5eaf341cdcd88893c1d2bb9c814a9249668c3/VM_MultianewarrayHelper.java/buggy/rvm/src/vm/arch/powerPC/compilers/baseline/VM_MultianewarrayHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1033, 11653, 1076, 12, 474, 707, 548, 16, 509, 818, 10796, 16, 509, 612, 16, 509, 1501, 2335, 13, 565, 1216, 30716, 1076, 1225, 503, 16, 30378, 18407, 6031, 668, 225, 288, 565, 368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1033, 11653, 1076, 12, 474, 707, 548, 16, 509, 818, 10796, 16, 509, 612, 16, 509, 1501, 2335, 13, 565, 1216, 30716, 1076, 1225, 503, 16, 30378, 18407, 6031, 668, 225, 288, 565, 368...
cylinderDListsTable.put(jr.getGL(), dlists);
public static void setupCylinderDLists(JOGLRenderer jr) { int[] dlists = null; //getCylinderDLists(jr);// if (dlists != null) {// JOGLConfiguration.theLog.log(Level.WARNING,"Already have cylinder display lists for this renderer "+jr);// } GL gl = jr.getGL(); int n = 6; dlists = null; //if (!sharedDisplayLists) dlists = (int[] ) cylinderDListsTable.get(gl); //else dlists = new int[n]; JOGLConfiguration.theLog.log(Level.INFO,"Setting up cylinder display lists for context "+gl); int nv = 4; for (int i = 0; i<n; ++i) { dlists[i] = gl.glGenLists(1); gl.glNewList(dlists[i], GL.GL_COMPILE); //gl.glDisable(GL.GL_SMOOTH); IndexedFaceSet cyl = Primitives.cylinder(nv); nv *= 2; JOGLRendererHelper.drawFaces(jr, cyl, true, 1.0); gl.glEndList(); } //if (!sharedDisplayLists) cylinderDListsTable.put(jr.getGL(), dlists); //else globalSharedCylinderDisplayLists = dlists; }
25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/6f13970be7ed30ebe36bf4ce9b50e37c84770d13/JOGLCylinderUtility.java/buggy/src-jogl/de/jreality/jogl/JOGLCylinderUtility.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 3875, 17992, 80, 14055, 40, 7432, 12, 22720, 11261, 6747, 31928, 13, 202, 95, 202, 202, 474, 8526, 302, 9772, 273, 446, 31, 368, 588, 17992, 80, 14055, 40, 7432, 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, 482, 760, 918, 3875, 17992, 80, 14055, 40, 7432, 12, 22720, 11261, 6747, 31928, 13, 202, 95, 202, 202, 474, 8526, 302, 9772, 273, 446, 31, 368, 588, 17992, 80, 14055, 40, 7432, 12,...
split.add(qbox);
split.setTopComponent(qbox);
private void setupComponents() { getContentPane().setLayout(new BorderLayout()); JToolBar toolbar = new JToolBar(); URL url= getClass().getResource("icons/Open24.gif"); JButton button= new JButton(new ImageIcon(url)); button.setToolTipText( "Read query from file."); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { open(); } }); toolbar.add(button); url= getClass().getResource("icons/Save24.gif"); button= new JButton(new ImageIcon(url)); button.setToolTipText( "Write query to file."); button.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { save(); } }); toolbar.add(button); JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT); JComponent qbox= createQueryBox(); split.add(qbox); JPanel vbox = new JPanel(); vbox.setLayout(new BorderLayout()); JLabel label = new JLabel("Results:"); vbox.add(label, BorderLayout.NORTH); resultDisplay= new ClientTextArea(false, "XML"); resultDisplay.setText(""); resultDisplay.setPreferredSize(new Dimension(400, 250)); vbox.add(resultDisplay, BorderLayout.CENTER); split.add(vbox); getContentPane().add(toolbar, BorderLayout.NORTH); getContentPane().add(split, BorderLayout.CENTER); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ca3671ce7c752480b17278b434be7f75e3ec7d57/QueryDialog.java/clean/src/org/exist/client/QueryDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3875, 7171, 1435, 288, 202, 202, 588, 1350, 8485, 7675, 542, 3744, 12, 2704, 30814, 10663, 202, 202, 46, 6364, 5190, 12748, 273, 394, 804, 6364, 5190, 5621, 9506, 202, 178...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 7171, 1435, 288, 202, 202, 588, 1350, 8485, 7675, 542, 3744, 12, 2704, 30814, 10663, 202, 202, 46, 6364, 5190, 12748, 273, 394, 804, 6364, 5190, 5621, 9506, 202, 178...
/* (non-Javadoc) * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
/* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object)
protected IContentProvider getContentProvider() { return new IStructuredContentProvider(){ /* (non-Javadoc) * @see org.eclipse.jface.viewers.IContentProvider#dispose() */ public void dispose() {// Nothing to do here. } /* (non-Javadoc) * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object) */ public Object[] getElements(Object inputElement) { String[] elements = new String[10000]; for (int i = 0; i < 10000; i++){ elements[i] = "Element " + String.valueOf(i); } return elements; } /* (non-Javadoc) * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object) */ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { //Nothing to do here. } }; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8a90f738d710f6ad45ad9241f00bac86c329e84b/VirtualTableView.java/clean/tests/org.eclipse.ui.tests/Eclipse JFace Tests/org/eclipse/jface/tests/viewers/interactive/VirtualTableView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1350, 2249, 5154, 2249, 1435, 288, 202, 202, 2463, 394, 467, 30733, 1350, 2249, 1435, 95, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 9506, 380, 632, 5946, 2358, 18, 20416...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 1350, 2249, 5154, 2249, 1435, 288, 202, 202, 2463, 394, 467, 30733, 1350, 2249, 1435, 95, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 9506, 380, 632, 5946, 2358, 18, 20416...
diffControlsState(ch, children1, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds);
diffControlsState(ch, containingDocument, children1, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds);
public static void diffControlsState(ContentHandlerHelper ch, List state1, List state2, Map itemsetsFull1, Map itemsetsFull2, Map valueChangeControlIds) { // Trivial case if (state1 == null && state2 == null) return; // Both lists must have the same size if present; state1 can be null if ((state1 != null && state2 != null && state1.size() != state2.size()) || (state2 == null)) { throw new IllegalStateException("Illegal state when comparing controls."); } final AttributesImpl attributesImpl = new AttributesImpl(); final Iterator j = (state1 == null) ? null : state1.iterator(); for (Iterator i = state2.iterator(); i.hasNext();) { final XFormsControl xformsControl1 = (state1 == null) ? null : (XFormsControl) j.next(); final XFormsControl xformsControl2 = (XFormsControl) i.next(); // 1: Check current control if (!(xformsControl2 instanceof XFormsRepeatControl)) { // xforms:repeat doesn't need to be handled independently, iterations do it // Output diffs between controlInfo1 and controlInfo2 final boolean isValueChangeControl = valueChangeControlIds != null && valueChangeControlIds.get(xformsControl2.getEffectiveId()) != null; if (!xformsControl2.equals(xformsControl1) || isValueChangeControl) { // don't send anything if nothing has changed; but we force a change for controls whose values changed in the request attributesImpl.clear(); // Control id attributesImpl.addAttribute("", "id", "id", ContentHandlerHelper.CDATA, xformsControl2.getEffectiveId()); // Control children values if (!(xformsControl2 instanceof RepeatIterationControl)) { { final String labelValue1 = (xformsControl1 == null) ? null : xformsControl1.getLabel(); final String labelValue2 = xformsControl2.getLabel(); if (!((labelValue1 == null && labelValue2 == null) || (labelValue1 != null && labelValue2 != null && labelValue1.equals(labelValue2)))) { attributesImpl.addAttribute("", "label", "label", ContentHandlerHelper.CDATA, labelValue2 != null ? labelValue2 : ""); } } { final String helpValue1 = (xformsControl1 == null) ? null : xformsControl1.getHelp(); final String helpValue2 = xformsControl2.getHelp(); if (!((helpValue1 == null && helpValue2 == null) || (helpValue1 != null && helpValue2 != null && helpValue1.equals(helpValue2)))) { attributesImpl.addAttribute("", "help", "help", ContentHandlerHelper.CDATA, helpValue2 != null ? helpValue2 : ""); } } { final String hintValue1 = (xformsControl1 == null) ? null : xformsControl1.getHint(); final String hintValue2 = xformsControl2.getHint(); if (!((hintValue1 == null && hintValue2 == null) || (hintValue1 != null && hintValue2 != null && hintValue1.equals(hintValue2)))) { attributesImpl.addAttribute("", "hint", "hint", ContentHandlerHelper.CDATA, hintValue2 != null ? hintValue2 : ""); } } { final String alertValue1 = (xformsControl1 == null) ? null : xformsControl1.getAlert(); final String alertValue2 = xformsControl2.getAlert(); if (!((alertValue1 == null && alertValue2 == null) || (alertValue1 != null && alertValue2 != null && alertValue1.equals(alertValue2)))) { attributesImpl.addAttribute("", "alert", "alert", ContentHandlerHelper.CDATA, alertValue2 != null ? alertValue2 : ""); } } // Output xforms:output-specific information if (xformsControl2 instanceof XFormsOutputControl) { final XFormsOutputControl outputControlInfo1 = (XFormsOutputControl) xformsControl1; final XFormsOutputControl outputControlInfo2 = (XFormsOutputControl) xformsControl2; final String mediaTypeValue1 = (outputControlInfo1 == null) ? null : outputControlInfo1.getMediaTypeAttribute(); final String mediaTypeValue2 = outputControlInfo2.getMediaTypeAttribute(); if (!((mediaTypeValue1 == null && mediaTypeValue2 == null) || (mediaTypeValue1 != null && mediaTypeValue2 != null && mediaTypeValue1.equals(mediaTypeValue2)))) { attributesImpl.addAttribute("", "mediatype", "mediatype", ContentHandlerHelper.CDATA, mediaTypeValue2 != null ? mediaTypeValue2 : ""); } } } // Model item properties if (xformsControl1 == null || xformsControl1.isReadonly() != xformsControl2.isReadonly()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_READONLY_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isReadonly())); } if (xformsControl1 == null || xformsControl1.isRequired() != xformsControl2.isRequired()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_REQUIRED_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isRequired())); } if (xformsControl1 == null || xformsControl1.isRelevant() != xformsControl2.isRelevant()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_RELEVANT_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isRelevant())); } if (xformsControl1 == null || xformsControl1.isValid() != xformsControl2.isValid()) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_VALID_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, Boolean.toString(xformsControl2.isValid())); } final boolean isOutputControlWithValueAttribute = xformsControl2 instanceof XFormsOutputControl && ((XFormsOutputControl) xformsControl2).getValueAttribute() != null; if (!(xformsControl2 instanceof RepeatIterationControl) && !isOutputControlWithValueAttribute) { final String typeValue1 = (xformsControl1 == null) ? null : xformsControl1.getType(); final String typeValue2 = xformsControl2.getType(); if (xformsControl1 == null || !((typeValue1 == null && typeValue2 == null) || (typeValue1 != null && typeValue2 != null && typeValue1.equals(typeValue2)))) { attributesImpl.addAttribute("", XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, XFormsConstants.XXFORMS_TYPE_ATTRIBUTE_NAME, ContentHandlerHelper.CDATA, typeValue2 != null ? typeValue2 : ""); } } if (!(xformsControl2 instanceof RepeatIterationControl)) { // Regular control // Get current value if possible for this control // NOTE: We issue the new value in all cases because we don't have yet a mechanism to tell the // client not to update the value, unlike with attributes which can be missing if (XFormsControls.isValueControl(xformsControl2.getName()) && !(xformsControl2 instanceof XFormsUploadControl)) { // Check if a "display-value" attribute must be added if (!isOutputControlWithValueAttribute) { final String displayValue = xformsControl2.getDisplayValue(); if (displayValue != null) attributesImpl.addAttribute("", "display-value", "display-value", ContentHandlerHelper.CDATA, displayValue); } // Create element with text value ch.startElement("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); ch.text(xformsControl2.convertToExternalValue(xformsControl2.getValue())); ch.endElement(); } else if (!"case".equals(xformsControl2.getName())) { // No value, just output element with no content ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "control", attributesImpl); } } else { // Repeat iteration final RepeatIterationControl repeatIterationInfo = (RepeatIterationControl) xformsControl2; attributesImpl.addAttribute("", "iteration", "iteration", ContentHandlerHelper.CDATA, Integer.toString(repeatIterationInfo.getIteration())); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "repeat-iteration", attributesImpl); } } // Handle itemsets if (xformsControl2 instanceof XFormsSelect1Control || xformsControl2 instanceof XFormsSelectControl) { final XFormsSelect1Control xformsSelect1Control1 = (XFormsSelect1Control) xformsControl1; final XFormsSelect1Control xformsSelect1Control2 = (XFormsSelect1Control) xformsControl2; if (itemsetsFull1 != null && xformsSelect1Control1 != null) { final Object items = xformsSelect1Control1.getItemset(); if (items != null) itemsetsFull1.put(xformsSelect1Control1.getEffectiveId(), items); } if (itemsetsFull2 != null && xformsSelect1Control2 != null) { final Object items = xformsSelect1Control2.getItemset(); if (items != null) itemsetsFull2.put(xformsSelect1Control2.getEffectiveId(), items); } } } // 2: Check children if any if (XFormsControls.isGroupingControl(xformsControl2.getName()) || xformsControl2 instanceof RepeatIterationControl) { final List children1 = (xformsControl1 == null) ? null : xformsControl1.getChildren(); final List children2 = (xformsControl2.getChildren() == null) ? Collections.EMPTY_LIST : xformsControl2.getChildren(); // Repeat grouping control if (xformsControl2 instanceof XFormsRepeatControl && children1 != null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Special case of repeat update final int size1 = children1.size(); final int size2 = children2.size(); if (size1 == size2) { // No add or remove of children diffControlsState(ch, children1, xformsControl2.getChildren(), itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (size2 > size1) { // Size has grown // Copy template instructions for (int k = size1 + 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Diff the common subset diffControlsState(ch, children1, children2.subList(0, size1), itemsetsFull1, itemsetsFull2, valueChangeControlIds); // Issue new values for new iterations diffControlsState(ch, null, children2.subList(size1, size2), itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (size2 < size1) { // Size has shrunk final String repeatControlId = xformsControl2.getEffectiveId(); final int indexOfRepeatHierarchySeparator = repeatControlId.indexOf(XFormsConstants.REPEAT_HIERARCHY_SEPARATOR_1); final String templateId = (indexOfRepeatHierarchySeparator == -1) ? repeatControlId : repeatControlId.substring(0, indexOfRepeatHierarchySeparator); final String parentIndexes = (indexOfRepeatHierarchySeparator == -1) ? "" : repeatControlId.substring(indexOfRepeatHierarchySeparator + 1); ch.element("xxf", XFormsConstants.XXFORMS_NAMESPACE_URI, "delete-repeat-elements", new String[]{"id", templateId, "parent-indexes", parentIndexes, "count", "" + (size1 - size2)}); // Diff the remaining subset diffControlsState(ch, children1.subList(0, size2), children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } } else if (xformsControl2 instanceof XFormsRepeatControl && xformsControl1 == null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Handle new sub-xforms:repeat // Copy template instructions final int size2 = children2.size(); for (int k = 2; k <= size2; k++) { // don't copy the first template, which is already copied when the parent is copied outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(ch, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else if (xformsControl2 instanceof XFormsRepeatControl && children1 == null) { final XFormsRepeatControl repeatControlInfo = (XFormsRepeatControl) xformsControl2; // Handle repeat growing from size 0 (case of instance replacement, for example) // Copy template instructions final int size2 = children2.size(); for (int k = 1; k <= size2; k++) { outputCopyRepeatTemplate(ch, repeatControlInfo, k); } // Issue new values for the children diffControlsState(ch, null, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } else { // Other grouping controls diffControlsState(ch, children1, children2, itemsetsFull1, itemsetsFull2, valueChangeControlIds); } } } }
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/b77e48ac478dde2410cddb17a52a564e2f570d0e/XFormsServer.java/clean/src/java/org/orbeon/oxf/xforms/processor/XFormsServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 3122, 16795, 1119, 12, 1350, 1503, 2276, 462, 16, 987, 919, 21, 16, 987, 919, 22, 16, 1635, 761, 4424, 5080, 21, 16, 1635, 761, 4424, 5080, 22, 16, 1635, 460, 3043, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3122, 16795, 1119, 12, 1350, 1503, 2276, 462, 16, 987, 919, 21, 16, 987, 919, 22, 16, 1635, 761, 4424, 5080, 21, 16, 1635, 761, 4424, 5080, 22, 16, 1635, 460, 3043, 33...
typeInfo.contentSpecHandle = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_SEQ,
typeInfo.contentSpecHandle = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_SEQ,
private void processComplexContent(int typeNameIndex, Element complexContentChild, ComplexTypeInfo typeInfo, QName baseName, boolean isMixed) throws Exception { Element attrNode = null; int index=-2; if (complexContentChild != null) { // ------------------------------------------------------------- // GROUP, ALL, SEQUENCE or CHOICE, followed by attributes, if specified. // Note that it's possible that only attributes are specified. // ------------------------------------------------------------- String childName = complexContentChild.getLocalName(); if (childName.equals(SchemaSymbols.ELT_GROUP)) { index = expandContentModel(traverseGroupDecl(complexContentChild), complexContentChild); attrNode = XUtil.getNextSiblingElement(complexContentChild); } else if (childName.equals(SchemaSymbols.ELT_SEQUENCE)) { index = expandContentModel(traverseSequence(complexContentChild), complexContentChild); attrNode = XUtil.getNextSiblingElement(complexContentChild); } else if (childName.equals(SchemaSymbols.ELT_CHOICE)) { index = expandContentModel(traverseChoice(complexContentChild), complexContentChild); attrNode = XUtil.getNextSiblingElement(complexContentChild); } else if (childName.equals(SchemaSymbols.ELT_ALL)) { index = expandContentModel(traverseAll(complexContentChild), complexContentChild); attrNode = XUtil.getNextSiblingElement(complexContentChild); //TO DO: REVISIT //check that minOccurs = 1 and maxOccurs = 1 } else if (isAttrOrAttrGroup(complexContentChild)) { // reset the contentType typeInfo.contentType = XMLElementDecl.TYPE_ANY; attrNode = complexContentChild; } else { throw new ComplexTypeRecoverableError( "Invalid child '"+ childName +"' in the complex type"); } } if (isMixed) { // // TODO - check to see if we MUST have an element. What if only attributes // were specified?? // add #PCDATA leaf int pcdataNode = fSchemaGrammar.addContentSpecNode( XMLContentSpec.CONTENTSPECNODE_LEAF, -1, // -1 means "#PCDATA" is name -1, false); // // If there was an element, the content spec becomes a choice of PCDATA and // the element // if (index != -2) index = fSchemaGrammar.addContentSpecNode( XMLContentSpec.CONTENTSPECNODE_CHOICE,pcdataNode,index,false); else index = pcdataNode; } typeInfo.contentSpecHandle = index; // ----------------------------------------------------------------------- // Merge in information from base, if it exists // ----------------------------------------------------------------------- if (typeInfo.baseComplexTypeInfo != null) { int baseContentSpecHandle = typeInfo.baseComplexTypeInfo.contentSpecHandle; if (typeInfo.derivedBy == SchemaSymbols.RESTRICTION) { // check to see if the baseType permits derivation by restriction if((typeInfo.baseComplexTypeInfo.finalSet & SchemaSymbols.RESTRICTION) != 0) throw new ComplexTypeRecoverableError("Derivation by restriction is forbidden by either the base type " + fStringPool.toString(baseName.localpart) + " or the schema"); // //REVISIT: !!!really hairy stuff to check the particle derivation OK in 5.10 //checkParticleDerivationOK(); } else { // check to see if the baseType permits derivation by extension if((typeInfo.baseComplexTypeInfo.finalSet & SchemaSymbols.EXTENSION) != 0) throw new ComplexTypeRecoverableError("Derivation by extension is forbidden by either the base type " + fStringPool.toString(baseName.localpart) + " or the schema"); // // Compose the final content model by concatenating the base and the // current in sequence // if (baseFromAnotherSchema(baseName)) { String baseSchemaURI = fStringPool.toString(baseName.uri); SchemaGrammar aGrammar= (SchemaGrammar) fGrammarResolver.getGrammar( baseSchemaURI); baseContentSpecHandle = importContentSpec(aGrammar, baseContentSpecHandle); } if (typeInfo.contentSpecHandle == -2) { typeInfo.contentSpecHandle = baseContentSpecHandle; } else if (baseContentSpecHandle > -1) { typeInfo.contentSpecHandle = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_SEQ, baseContentSpecHandle, typeInfo.contentSpecHandle, false); } } } else { typeInfo.derivedBy = 0; } // ------------------------------------------------------------- // Set the content type // ------------------------------------------------------------- if (isMixed) typeInfo.contentType = XMLElementDecl.TYPE_MIXED; else if (typeInfo.contentSpecHandle == -2) typeInfo.contentType = XMLElementDecl.TYPE_EMPTY; else typeInfo.contentType = XMLElementDecl.TYPE_CHILDREN; // ------------------------------------------------------------- // add a template element to the grammar element decl pool. // ------------------------------------------------------------- String typeName = fStringPool.toString(typeNameIndex); int templateElementNameIndex = fStringPool.addSymbol("$"+typeName); typeInfo.templateElementIndex = fSchemaGrammar.addElementDecl( new QName(-1, templateElementNameIndex,typeNameIndex,fTargetNSURI), (fTargetNSURI==StringPool.EMPTY_STRING) ? StringPool.EMPTY_STRING : fCurrentScope, typeInfo.scopeDefined, typeInfo.contentType, typeInfo.contentSpecHandle, -1, typeInfo.datatypeValidator); typeInfo.attlistHead = fSchemaGrammar.getFirstAttributeDeclIndex( typeInfo.templateElementIndex); // ------------------------------------------------------------- // Now, check attributes and handle // ------------------------------------------------------------- if (attrNode !=null) { if (!isAttrOrAttrGroup(attrNode)) { throw new ComplexTypeRecoverableError( "Invalid child "+ attrNode.getLocalName() + " in the complexType or complexContent"); } else processAttributes(attrNode,baseName,typeInfo); } else if (typeInfo.baseComplexTypeInfo != null) processAttributes(null,baseName,typeInfo); } // end processComplexContent
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/0561c4be90e07e6ba8d6b8f42edef5dc8d6d453c/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 12795, 1350, 12, 474, 8173, 1016, 16, 9079, 3010, 7233, 1350, 1763, 16, 16060, 17305, 23112, 16, 16723, 16162, 16, 9079, 1250, 15707, 3960, 13, 1216, 1185, 288, 4202, 3010,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 12795, 1350, 12, 474, 8173, 1016, 16, 9079, 3010, 7233, 1350, 1763, 16, 16060, 17305, 23112, 16, 16723, 16162, 16, 9079, 1250, 15707, 3960, 13, 1216, 1185, 288, 4202, 3010,...
executeSQL("drop index ipinterface_nodeid_ipaddr_where_idx");
executeSQL("drop index ipinterface_nodeid_ipaddr_notzero_idx");
public void testIpInterfaceNonUniqueKeys() throws Exception { if (!isDBTestEnabled()) { return; } m_installer.createSequences(); m_installer.updatePlPgsql(); m_installer.addStoredProcedures(); addTableFromSQL("distpoller"); addTableFromSQL("node"); addTableFromSQL("snmpinterface"); addTableFromSQL("ipinterface"); executeSQL("drop index ipinterface_nodeid_ipaddr_where_idx"); executeSQL("INSERT INTO snmpInterface ( nodeID, snmpIfIndex ) " + "VALUES ( 1, 1 )"); executeSQL("INSERT INTO snmpInterface ( nodeID, snmpIfIndex ) " + "VALUES ( 1, 1 )"); ThrowableAnticipator ta = new ThrowableAnticipator(); ta.anticipate(new Exception("Unique index " + "'snmpinterface_nodeid_ifindex_idx' " + "cannot be added to table " + "'ipinterface' because 4 rows are not " + "unique. See the install guide for " + "details on how to correct this " + "problem. You can use the following SQL " + "to see which rows are not unique:\n" + "SELECT DISTINCT a.* FROM snmpinterface " + "a, snmpinterface b WHERE a.nodeID = " + "b.nodeID AND a.snmpIfIndex = " + "b.snmpIfIndex")); try { m_installer.checkIndexUniqueness(); } catch (Throwable t) { ta.throwableReceived(t); } ta.verifyAnticipated(); }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/e14afda26b6a106ace58fd834660594638109533/InstallerDBTest.java/buggy/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5273, 1358, 3989, 6303, 2396, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 312, 67, 20163, 18, 2640, 21710, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5273, 1358, 3989, 6303, 2396, 1435, 1216, 1185, 288, 3639, 309, 16051, 291, 2290, 4709, 1526, 10756, 288, 5411, 327, 31, 3639, 289, 3639, 312, 67, 20163, 18, 2640, 21710, ...
Perspective persp = window.getActiveWorkbenchPage().getActivePerspective();
public void dragFinished(Object draggedItem, boolean success) { if (oldFastView != null) { Perspective persp = window.getActiveWorkbenchPage().getActivePerspective(); if (persp.isFastView(oldFastView)) { persp.setActiveFastView(oldFastView); } } oldFastView = null; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fe50358c2886fffcf2b7c6d68ca9f81a63b74d06/FastViewBar.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 8823, 10577, 12, 921, 8823, 2423, 1180, 16, 1250, 2216, 13, 288, 9506, 202, 430, 261, 1673, 12305, 1767, 480, 446, 13, 288, 6862, 202, 14781, 16772, 13508, 84, 273, 2742, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8823, 10577, 12, 921, 8823, 2423, 1180, 16, 1250, 2216, 13, 288, 9506, 202, 430, 261, 1673, 12305, 1767, 480, 446, 13, 288, 6862, 202, 14781, 16772, 13508, 84, 273, 2742, ...
{ throw new SQLException("DatabaseMetaData not supported"); }
{ return new DatabaseMetaData(this); }
public java.sql.DatabaseMetaData getMetaData() throws SQLException {// return new DatabaseMetaData(this); throw new SQLException("DatabaseMetaData not supported"); }
45497 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45497/6a061da272f04e1463864065f87f1f3fd61d6162/Connection.java/clean/src/interfaces/jdbc/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 4669, 18, 4254, 6998, 23028, 1435, 1216, 6483, 202, 95, 759, 202, 202, 2463, 394, 5130, 6998, 12, 2211, 1769, 202, 202, 12849, 394, 6483, 2932, 4254, 6998, 486, 3260, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 2252, 18, 4669, 18, 4254, 6998, 23028, 1435, 1216, 6483, 202, 95, 759, 202, 202, 2463, 394, 5130, 6998, 12, 2211, 1769, 202, 202, 12849, 394, 6483, 2932, 4254, 6998, 486, 3260, ...
public final void collectionPhase(int phaseId) { Assert._assert(false);// if (phaseId == PREPARE) {// }// if (phaseID == RELEASE) {// }// super.collectionPhase(phaseId); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/NoGC.java/clean/MMTk/src/org/mmtk/plan/nogc/NoGC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 1849, 11406, 12, 474, 6855, 548, 13, 288, 565, 5452, 6315, 11231, 12, 5743, 1769, 759, 565, 309, 261, 13961, 548, 422, 7071, 11713, 13, 288, 759, 565, 289, 759, 565, 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, 282, 1071, 727, 918, 1849, 11406, 12, 474, 6855, 548, 13, 288, 565, 5452, 6315, 11231, 12, 5743, 1769, 759, 565, 309, 261, 13961, 548, 422, 7071, 11713, 13, 288, 759, 565, 289, 759, 565, 309...
private ArrayList loadFile(String xmlSchemaFile, HashSet loadedFiles) throws Exception { System.out.println("#### loading " + xmlSchemaFile); // RGFIX loadedFiles.add(new File(xmlSchemaFile).getCanonicalPath()); Logger.log("Added : "+ new File(xmlSchemaFile).getCanonicalPath()); String path = new File(xmlSchemaFile).getParent() + "/"; //--- load xml-schema elRoot = Xml.loadFile(xmlSchemaFile); // RGFIX: change target namespace String oldtargetNS = targetNS; String oldtargetNSPrefix = targetNSPrefix; targetNS = elRoot.getAttributeValue("targetNamespace"); targetNSPrefix = null; if (targetNS != null) for (Iterator i = elRoot.getAdditionalNamespaces().iterator(); i.hasNext(); ) { Namespace ns = (Namespace)i.next(); if (targetNS.equals(ns.getURI())) { targetNSPrefix = ns.getPrefix(); break; } } if ("".equals(targetNSPrefix)) targetNSPrefix = null; System.out.println("#### - target namespace is " + targetNS + " (" + targetNSPrefix + ")"); // RGFIX List children = elRoot.getChildren(); //--- collect elements into an array because we have to add elements //--- when we encounter the "import" element ArrayList alElementFiles = new ArrayList(); for(int i=0; i<children.size(); i++) { Element elChild = (Element) children.get(i); String name = elChild.getName(); if (name.equals("annotation")) ; else if (name.equals("import") || name.equals("include")) { String schemaLoc = elChild.getAttributeValue("schemaLocation"); //--- we must prevent imports from the web if (schemaLoc.startsWith("http:")) { int lastSlash = schemaLoc.lastIndexOf("/"); schemaLoc = schemaLoc.substring(lastSlash +1); } if (!loadedFiles.contains(new File(path + schemaLoc).getCanonicalPath())) alElementFiles.addAll(loadFile(path + schemaLoc, loadedFiles)); } else alElementFiles.add(new ElementInfo(elChild, xmlSchemaFile, targetNS, targetNSPrefix)); } // RGFIX: restore target namespace targetNS = oldtargetNS; targetNSPrefix = oldtargetNSPrefix; return alElementFiles; }
53415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53415/4777bb92bb3d62130cc5d12eb39ac86879b09162/SchemaLoader.java/clean/src/org/fao/geonet/kernel/schema/SchemaLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2407, 26953, 12, 780, 2025, 3078, 812, 16, 6847, 4203, 2697, 13, 1216, 1185, 202, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 1970, 7153, 315, 397, 2025, 3078, 812, 1769, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2407, 26953, 12, 780, 2025, 3078, 812, 16, 6847, 4203, 2697, 13, 1216, 1185, 202, 95, 202, 202, 3163, 18, 659, 18, 8222, 2932, 1970, 7153, 315, 397, 2025, 3078, 812, 1769, 36...
"java.lang.Boolean".equals(lhsType.getCanonicalText())) {
lhsType.equalsToText("java.lang.Boolean")) {
public void visitBinaryExpression(PsiBinaryExpression expression) { super.visitBinaryExpression(expression); final PsiJavaToken sign = expression.getOperationSign(); if(sign == null){ return; } final IElementType tokenType = sign.getTokenType(); if(!bitwiseTokens.contains(tokenType)) { return; } final PsiType expressionType = expression.getType(); if (expressionType == null) { return; } final PsiExpression rhs = expression.getROperand(); if (rhs == null) { return; } final PsiType rhsType = rhs.getType(); if (rhsType == null) { return; } if (rhsType.equals(PsiType.BOOLEAN) || "java.lang.Boolean".equals(rhsType.getCanonicalText())) { return; } final PsiExpression lhs = expression.getLOperand(); if (lhs == null) { return; } final PsiType lhsType = lhs.getType(); if (lhsType == null) { return; } if (lhsType.equals(PsiType.BOOLEAN) || "java.lang.Boolean".equals(lhsType.getCanonicalText())) { return; } final boolean isPointless; if (tokenType.equals(JavaTokenType.AND)) { isPointless = andExpressionIsPointless(lhs, rhs, expressionType); } else if (tokenType.equals(JavaTokenType.OR)) { isPointless = orExpressionIsPointless(lhs, rhs, expressionType); } else if (tokenType.equals(JavaTokenType.XOR)) { isPointless = xorExpressionIsPointless(lhs, rhs, expressionType); } else if (tokenType.equals(JavaTokenType.LTLT) || tokenType.equals(JavaTokenType.GTGT) || tokenType.equals(JavaTokenType.GTGTGT)) { isPointless = shiftExpressionIsPointless(rhs, expressionType); } else { isPointless = false; } if (!isPointless) { return; } registerError(expression); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/759e68fd5c7d25c7883aaff1724a10a4906fc874/PointlessBitwiseExpressionInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/PointlessBitwiseExpressionInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 5905, 2300, 12, 52, 7722, 5905, 2300, 2652, 13, 288, 5411, 2240, 18, 11658, 5905, 2300, 12, 8692, 1769, 5411, 727, 453, 7722, 5852, 1345, 1573, 273, 2652, 18, 588, 2988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 5905, 2300, 12, 52, 7722, 5905, 2300, 2652, 13, 288, 5411, 2240, 18, 11658, 5905, 2300, 12, 8692, 1769, 5411, 727, 453, 7722, 5852, 1345, 1573, 273, 2652, 18, 588, 2988, ...
TaskPlannerContentProvider planContentProvider = new TaskPlannerContentProvider(); final TableViewer planViewer = createTableSection(planContainer, toolkit, "Task Plan", planColumnNames, planColumnWidths, planSortConstants);
planContentProvider = new TaskPlannerContentProvider(); final TableViewer planViewer = createTableSection(planContainer, toolkit, LABEL_PLANNED_ACTIVITY, planColumnNames, planColumnWidths, planSortConstants);
public void createPartControl(Composite parent) { FormToolkit toolkit = new FormToolkit(parent.getDisplay()); ScrolledForm sform = toolkit.createScrolledForm(parent); Composite editorComposite = sform.getBody(); editorComposite.setLayout(new GridLayout()); GridData gridData = new GridData(); gridData.horizontalAlignment = GridData.FILL_BOTH; gridData.grabExcessHorizontalSpace = true; gridData.grabExcessVerticalSpace = true; editorComposite.setLayoutData(gridData); createSummarySection(editorComposite, toolkit, editorInput.getReportStartDate()); String label = LABEL_TASK_ACTIVITY; List<ITask> allTasks = new ArrayList<ITask>(); allTasks.addAll(editorInput.getCompletedTasks()); allTasks.addAll(editorInput.getInProgressTasks()); SashForm sashForm = new SashForm(editorComposite, SWT.VERTICAL); sashForm.setLayout(new GridLayout()); sashForm.setLayoutData(new GridData(GridData.FILL_BOTH)); TaskPlannerContentProvider activityContentProvider = new TaskPlannerContentProvider(allTasks); final TableViewer activityViewer = createTableSection(sashForm, toolkit, label, activityColumnNames, activityColumnWidths, activitySortConstants); activityViewer.setContentProvider(activityContentProvider); activityViewer.setLabelProvider(new TaskActivityLabelProvider()); setSorters(activityColumnNames, activitySortConstants, activityViewer.getTable(), activityViewer, false); activityViewer.setInput(editorInput); MenuManager activityContextMenuMgr = new MenuManager("#ActivityPlannerPopupMenu"); activityContextMenuMgr.setRemoveAllWhenShown(true); activityContextMenuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { TaskPlannerEditorPart.this.fillContextMenu(activityViewer, manager); } }); Menu menu = activityContextMenuMgr.createContextMenu(activityViewer.getControl()); activityViewer.getControl().setMenu(menu); getSite().registerContextMenu(activityContextMenuMgr, activityViewer); Composite planContainer = toolkit.createComposite(sashForm); GridLayout planLayout = new GridLayout(); planLayout.marginTop = 10; planContainer.setLayout(planLayout); TaskPlannerContentProvider planContentProvider = new TaskPlannerContentProvider(); final TableViewer planViewer = createTableSection(planContainer, toolkit, "Task Plan", planColumnNames, planColumnWidths, planSortConstants); planViewer.setContentProvider(planContentProvider); planViewer.setLabelProvider(new TaskPlanLabelProvider()); createPlanCellEditorListener(planViewer.getTable(), planViewer, planContentProvider); planViewer.setCellModifier(new PlannedTasksCellModifier(planViewer)); initDrop(planViewer, planContentProvider); setSorters(planColumnNames, planSortConstants, planViewer.getTable(), planViewer, true); planViewer.setInput(editorInput); MenuManager planContextMenuMgr = new MenuManager("#PlanPlannerPopupMenu"); planContextMenuMgr.setRemoveAllWhenShown(true); planContextMenuMgr.addMenuListener(new IMenuListener() { public void menuAboutToShow(IMenuManager manager) { TaskPlannerEditorPart.this.fillContextMenu(planViewer, manager); } }); Menu planMenu = planContextMenuMgr.createContextMenu(planViewer.getControl()); planViewer.getControl().setMenu(planMenu); getSite().registerContextMenu(planContextMenuMgr, planViewer); totalEstimatedHoursLabel = toolkit.createLabel(editorComposite, LABEL_ESTIMATED + "0 hours ", SWT.NULL); createButtons(editorComposite, toolkit, planViewer, planContentProvider); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/238f86b82ee5e0aaf837d5116f7523d8c554bc00/TaskPlannerEditorPart.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/planner/ui/TaskPlannerEditorPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 1204, 6364, 8691, 5226, 8691, 273, 394, 2748, 6364, 8691, 12, 2938, 18, 588, 4236, 10663, 202, 202, 1541, 25054, 1204, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 1204, 6364, 8691, 5226, 8691, 273, 394, 2748, 6364, 8691, 12, 2938, 18, 588, 4236, 10663, 202, 202, 1541, 25054, 1204, ...
boolean moreData = true;
protected String readWidgets() throws IOException, EOFException { JComponent widget; long startTime = System.currentTimeMillis(); String header = null; int widgetType; boolean moreData = true; float ver = link.dis.readFloat(); Debug.message("link", "LinkGUIList: reading graphics:"); while (true) { widget = null; // Just consume the header, don't create a useless // string object. header = link.readDelimiter(false); if (header == Link.END_TOTAL || header == Link.END_SECTION) { long endTime = System.currentTimeMillis(); Debug.message("link", "LinkGUIList: received bytes in " + (float) (endTime - startTime) / 1000.0f + " seconds"); return header; } widgetType = link.dis.readInt(); switch (widgetType) { default: System.err.println("LinkGUIList: received unknown graphic type."); } } }
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/2419f21f3cca678ab2c0f7da5e9a3cef0bdffbf7/LinkGUIList.java/buggy/src/openmap/com/bbn/openmap/layer/link/LinkGUIList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 855, 16166, 1435, 1216, 1860, 16, 30051, 288, 3639, 29058, 3604, 31, 3639, 1525, 8657, 273, 2332, 18, 2972, 28512, 5621, 3639, 514, 1446, 273, 446, 31, 3639, 509, 3604, 559, 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, 4750, 514, 855, 16166, 1435, 1216, 1860, 16, 30051, 288, 3639, 29058, 3604, 31, 3639, 1525, 8657, 273, 2332, 18, 2972, 28512, 5621, 3639, 514, 1446, 273, 446, 31, 3639, 509, 3604, 559, 31...
heap[0] = 0; weight[0] = 0; parent[0] = -2;
heap[ 0 ] = 0; weight[ 0 ] = 0; parent[ 0 ] = -2;
protected static void hbMakeCodeLengths(char[] len, int[] freq, int alphaSize, int maxLen) { /* Nodes and heap entries run from 1. Entry 0 for both the heap and nodes is a sentinel. */ int nNodes, nHeap, n1, n2, i, j, k; boolean tooLong; int[] heap = new int[MAX_ALPHA_SIZE + 2]; int[] weight = new int[MAX_ALPHA_SIZE * 2]; int[] parent = new int[MAX_ALPHA_SIZE * 2]; for (i = 0; i < alphaSize; i++) { weight[i + 1] = (freq[i] == 0 ? 1 : freq[i]) << 8; } while (true) { nNodes = alphaSize; nHeap = 0; heap[0] = 0; weight[0] = 0; parent[0] = -2; for (i = 1; i <= alphaSize; i++) { parent[i] = -1; nHeap++; heap[nHeap] = i; { int zz, tmp; zz = nHeap; tmp = heap[zz]; while (weight[tmp] < weight[heap[zz >> 1]]) { heap[zz] = heap[zz >> 1]; zz >>= 1; } heap[zz] = tmp; } } if (!(nHeap < (MAX_ALPHA_SIZE + 2))) { panic(); } while (nHeap > 1) { n1 = heap[1]; heap[1] = heap[nHeap]; nHeap--; { int zz = 0, yy = 0, tmp = 0; zz = 1; tmp = heap[zz]; while (true) { yy = zz << 1; if (yy > nHeap) { break; } if (yy < nHeap && weight[heap[yy + 1]] < weight[heap[yy]]) { yy++; } if (weight[tmp] < weight[heap[yy]]) { break; } heap[zz] = heap[yy]; zz = yy; } heap[zz] = tmp; } n2 = heap[1]; heap[1] = heap[nHeap]; nHeap--; { int zz = 0, yy = 0, tmp = 0; zz = 1; tmp = heap[zz]; while (true) { yy = zz << 1; if (yy > nHeap) { break; } if (yy < nHeap && weight[heap[yy + 1]] < weight[heap[yy]]) { yy++; } if (weight[tmp] < weight[heap[yy]]) { break; } heap[zz] = heap[yy]; zz = yy; } heap[zz] = tmp; } nNodes++; parent[n1] = parent[n2] = nNodes; weight[nNodes] = ((weight[n1] & 0xffffff00) + (weight[n2] & 0xffffff00)) | (1 + (((weight[n1] & 0x000000ff) > (weight[n2] & 0x000000ff)) ? (weight[n1] & 0x000000ff) : (weight[n2] & 0x000000ff))); parent[nNodes] = -1; nHeap++; heap[nHeap] = nNodes; { int zz = 0, tmp = 0; zz = nHeap; tmp = heap[zz]; while (weight[tmp] < weight[heap[zz >> 1]]) { heap[zz] = heap[zz >> 1]; zz >>= 1; } heap[zz] = tmp; } } if (!(nNodes < (MAX_ALPHA_SIZE * 2))) { panic(); } tooLong = false; for (i = 1; i <= alphaSize; i++) { j = 0; k = i; while (parent[k] >= 0) { k = parent[k]; j++; } len[i - 1] = (char) j; if (j > maxLen) { tooLong = true; } } if (!tooLong) { break; } for (i = 1; i < alphaSize; i++) { j = weight[i] >> 8; j = 1 + (j / 2); weight[i] = j << 8; } } }
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/CBZip2OutputStream.java/clean/src/main/java/org/codehaus/plexus/archiver/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 918, 21749, 6464, 1085, 22406, 12, 3001, 8526, 562, 16, 509, 8526, 7684, 16, 4766, 5411, 509, 4190, 1225, 16, 509, 29618, 13, 288, 3639, 1748, 1850, 14037, 471, 10500, 3222, 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, 377, 4750, 760, 918, 21749, 6464, 1085, 22406, 12, 3001, 8526, 562, 16, 509, 8526, 7684, 16, 4766, 5411, 509, 4190, 1225, 16, 509, 29618, 13, 288, 3639, 1748, 1850, 14037, 471, 10500, 3222, 10...
final int EPSILON = 4; final RadContainer container = FormEditingUtil.getRadContainerAt(editor, x, y, EPSILON);
int EPSILON = 4; RadContainer container = FormEditingUtil.getRadContainerAt(editor, x, y, EPSILON); if (container instanceof RadRootContainer && editor.getRootContainer().getComponentCount() == 1) { final RadComponent singleComponent = editor.getRootContainer().getComponents()[0]; if (singleComponent instanceof RadContainer) { Rectangle rc = singleComponent.getDelegee().getBounds(); rc.grow(EPSILON*2, EPSILON*2); final Point pnt = SwingUtilities.convertPoint(editor.getDragLayer(), x, y, editor.getRootContainer().getDelegee()); if (rc.contains(pnt)) { container = (RadContainer) singleComponent; EPSILON *= 2; } } }
static GridInsertLocation getGridInsertLocation(final GuiEditor editor, final int x, final int y, final int dragColumnDelta) { final int EPSILON = 4; final RadContainer container = FormEditingUtil.getRadContainerAt(editor, x, y, EPSILON); if (container == null || !container.isGrid()) { return new GridInsertLocation(GridInsertLocation.GridInsertMode.None); } final GridLayoutManager grid = (GridLayoutManager) container.getLayout(); final Point targetPoint = SwingUtilities.convertPoint(editor.getDragLayer(), x, y, container.getDelegee()); int[] xs = grid.getXs(); int[] ys = grid.getYs(); int[] widths = grid.getWidths(); int[] heights = grid.getHeights(); int[] horzGridLines = grid.getHorizontalGridLines(); int[] vertGridLines = grid.getVerticalGridLines(); int row=ys.length-1, col=xs.length-1; for(int i=0; i<xs.length; i++) { if (targetPoint.getX() < xs [i]+widths [i]) { col=i; break; } } for(int i=0; i<ys.length; i++) { if (targetPoint.getY() < ys [i]+heights [i]) { row=i; break; } } GridInsertLocation.GridInsertMode mode = GridInsertLocation.GridInsertMode.None; int dx = (int)(targetPoint.getX() - xs [col]); if (dx < EPSILON) { mode = GridInsertLocation.GridInsertMode.ColumnBefore; } else if (widths [col] - dx < EPSILON) { mode = GridInsertLocation.GridInsertMode.ColumnAfter; } int dy = (int)(targetPoint.getY() - ys [row]); if (dy < EPSILON) { mode = GridInsertLocation.GridInsertMode.RowBefore; } else if (heights [row] - dy < EPSILON) { mode = GridInsertLocation.GridInsertMode.RowAfter; } Rectangle cellRect = new Rectangle(vertGridLines [col], horzGridLines [row], vertGridLines [col+1]-vertGridLines [col], horzGridLines [row+1]-horzGridLines [row]); // if a number of adjacent components have been selected and the component being dragged // is not the leftmost, we return the column in which the leftmost component should be dropped if ((mode == GridInsertLocation.GridInsertMode.RowBefore || mode == GridInsertLocation.GridInsertMode.RowAfter) && col >= dragColumnDelta) { col -= dragColumnDelta; } return new GridInsertLocation(container, row, col, cellRect, mode); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/09eaa9816ccf576d29ac4134228f6944b9470a21/GridInsertProcessor.java/buggy/ui-designer/impl/com/intellij/uiDesigner/designSurface/GridInsertProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 7145, 4600, 2735, 336, 6313, 4600, 2735, 12, 6385, 611, 4881, 6946, 4858, 16, 727, 509, 619, 16, 727, 509, 677, 16, 727, 509, 8823, 1494, 9242, 13, 288, 565, 727, 509, 24067, 30229...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 7145, 4600, 2735, 336, 6313, 4600, 2735, 12, 6385, 611, 4881, 6946, 4858, 16, 727, 509, 619, 16, 727, 509, 677, 16, 727, 509, 8823, 1494, 9242, 13, 288, 565, 727, 509, 24067, 30229...
private void handleSelectionError(String msg) { cancel(); UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Invalid selection", msg); //remove the two selected planes. //setSelectedCell(oldRow, oldColumn, false); //setSelectedCell(curRow, curColumn, false); //view.table.repaint(); //setDefaultLocation(); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/3db37517e6873d11567ee5822e769ab058e1abed/AssistantDialogMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/AssistantDialogMng.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1640, 6233, 668, 12, 780, 1234, 13, 282, 288, 225, 3755, 5621, 225, 2177, 14889, 640, 273, 3325, 18, 588, 4243, 7675, 588, 1299, 14889, 5621, 225, 640, 18, 12336, 966, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1640, 6233, 668, 12, 780, 1234, 13, 282, 288, 225, 3755, 5621, 225, 2177, 14889, 640, 273, 3325, 18, 588, 4243, 7675, 588, 1299, 14889, 5621, 225, 640, 18, 12336, 966, 2932, ...
Vector contributorList = (Vector) contributors.get(targetType); if (contributorList == null) { contributorList = new Vector(5); contributors.put(targetType, contributorList);
Vector contributorList = (Vector) contributors.get(targetType); if (contributorList == null) { contributorList = new Vector(5); contributors.put(targetType, contributorList); } contributorList.addElement(contributor); flushLookup();
public void registerContributor(IObjectContributor contributor, String targetType) { Vector contributorList = (Vector) contributors.get(targetType); if (contributorList == null) { contributorList = new Vector(5); contributors.put(targetType, contributorList); } contributorList.addElement(contributor); flushLookup();}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f8685b0522e26c22b4270aa9a9be3499a2547f89/ObjectContributorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ObjectContributorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1744, 442, 19293, 12, 45, 921, 442, 19293, 31123, 16, 514, 16065, 13, 288, 202, 5018, 31123, 682, 273, 261, 5018, 13, 13608, 13595, 18, 588, 12, 3299, 559, 1769, 202, 430, 261, 59...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1744, 442, 19293, 12, 45, 921, 442, 19293, 31123, 16, 514, 16065, 13, 288, 202, 5018, 31123, 682, 273, 261, 5018, 13, 13608, 13595, 18, 588, 12, 3299, 559, 1769, 202, 430, 261, 59...
IContributionItem refItem = PluginActionSetBuilder.findInsertionPoint(id, null, parentMgr, false); if (refItem != null) { super.insertAfter(refItem.getId(), item); } else { WorkbenchPlugin.log("Reference item " + id + " not found for action " + item.getId());
IContributionItem refItem = PluginActionSetBuilder.findInsertionPoint(id, null, getParentMenuManager(), false); if (refItem != null) { super.insertAfter(refItem.getId(), item); } else { WorkbenchPlugin.log("Reference item " + id + " not found for action " + item.getId()); }
public void insertAfter(String id, IContributionItem item) { IContributionItem refItem = PluginActionSetBuilder.findInsertionPoint(id, null, parentMgr, false); if (refItem != null) { super.insertAfter(refItem.getId(), item); } else { WorkbenchPlugin.log("Reference item " + id + " not found for action " + item.getId()); //$NON-NLS-1$ }}
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/5ddde0e384bac44f41aeb754525f7bdab6a04e11/EditorMenuManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorMenuManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 2243, 4436, 12, 780, 612, 16, 467, 442, 4027, 1180, 761, 13, 288, 202, 45, 442, 4027, 1180, 1278, 1180, 273, 6258, 1803, 694, 1263, 18, 4720, 29739, 2148, 12, 350, 16, 202, 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, 1071, 918, 2243, 4436, 12, 780, 612, 16, 467, 442, 4027, 1180, 761, 13, 288, 202, 45, 442, 4027, 1180, 1278, 1180, 273, 6258, 1803, 694, 1263, 18, 4720, 29739, 2148, 12, 350, 16, 202, 202, ...
return getMultiArray( keys, null );
return getMultiArray( keys, null, false );
public Object[] getMultiArray( String[] keys ) { return getMultiArray( keys, null ); }
57489 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57489/d65f283ebfbfe22b65de0c593e5f8495602a34f7/MemCachedClient.java/clean/src/com/danga/MemCached/MemCachedClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 8526, 31863, 1076, 12, 514, 8526, 1311, 262, 288, 202, 202, 2463, 31863, 1076, 12, 1311, 16, 446, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 8526, 31863, 1076, 12, 514, 8526, 1311, 262, 288, 202, 202, 2463, 31863, 1076, 12, 1311, 16, 446, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
private ServiceClient createServiceClient() throws AxisFault{ AxisService service = createSimpleOneWayServiceforClient(serviceName, Echo.class.getName(), operationName); ConfigurationContext configcontext = UtilServer.createClientConfigurationContext(); ServiceClient sender = null; Options options = new Options(); options.setTo(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); options.setAction(operationName.getLocalPart()); options.setReplyTo(replyTo); options.setFaultTo(faultTo); sender = new ServiceClient(configcontext, service); sender.setOptions(options); sender.engageModule(new QName("addressing")); return sender; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/bf48280bb2cc17e59a92ab2d54f54ddd09c486e7/AddressingServiceTest.java/clean/modules/integration/test/org/apache/axis2/addressing/AddressingServiceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1956, 1227, 21073, 1227, 1435, 1216, 15509, 7083, 95, 3639, 15509, 1179, 1156, 273, 5411, 752, 5784, 3335, 21831, 1179, 1884, 1227, 12, 15423, 16, 13491, 28995, 18, 1106, 18, 17994, 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, 3238, 1956, 1227, 21073, 1227, 1435, 1216, 15509, 7083, 95, 3639, 15509, 1179, 1156, 273, 5411, 752, 5784, 3335, 21831, 1179, 1884, 1227, 12, 15423, 16, 13491, 28995, 18, 1106, 18, 17994, 9...
switch ( connection.getSQLType( fields[columnIndex].getPGType() ) )
Object valueObject = updateValues.get(columnName); if (valueObject instanceof NullObject) { rowBuffer[columnIndex] = null; } else
private void updateRowBuffer() throws SQLException { Enumeration columns = updateValues.keys(); while ( columns.hasMoreElements() ) { String columnName = (String) columns.nextElement(); int columnIndex = _findColumn( columnName ) - 1; switch ( connection.getSQLType( fields[columnIndex].getPGType() ) ) { case Types.DECIMAL: case Types.BIGINT: case Types.DOUBLE: case Types.BIT: case Types.VARCHAR: case Types.DATE: case Types.TIME: case Types.TIMESTAMP: case Types.SMALLINT: case Types.FLOAT: case Types.INTEGER: case Types.CHAR: case Types.NUMERIC: case Types.REAL: case Types.TINYINT: rowBuffer[columnIndex] = connection.getEncoding().encode(String.valueOf( updateValues.get( columnName ) )); case Types.NULL: continue; default: rowBuffer[columnIndex] = (byte[]) updateValues.get( columnName ); } } }
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/fdf6b4ff936167388fc18276cbcf88c54dd0d3b7/AbstractJdbc2ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 1999, 1892, 1435, 1216, 6483, 202, 95, 202, 202, 21847, 2168, 273, 1089, 1972, 18, 2452, 5621, 202, 202, 17523, 261, 2168, 18, 5332, 7417, 3471, 1435, 262, 202, 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, 1152, 918, 1089, 1999, 1892, 1435, 1216, 6483, 202, 95, 202, 202, 21847, 2168, 273, 1089, 1972, 18, 2452, 5621, 202, 202, 17523, 261, 2168, 18, 5332, 7417, 3471, 1435, 262, 202, 202,...
private void readData(Node stepnode, ArrayList databases) throws KettleXMLException { try { String commit; tablename = XMLHandler.getTagValue(stepnode, "table"); //$NON-NLS-1$ String con = XMLHandler.getTagValue(stepnode, "connection"); //$NON-NLS-1$ database = Const.findDatabase(databases, con); commit = XMLHandler.getTagValue(stepnode, "commit"); //$NON-NLS-1$ commitSize = Const.toInt(commit, 0); replaceFields ="Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "replace")); //$NON-NLS-1$ //$NON-NLS-2$ useHash ="Y".equalsIgnoreCase(XMLHandler.getTagValue(stepnode, "crc")); //$NON-NLS-1$ //$NON-NLS-2$ hashField = XMLHandler.getTagValue(stepnode, "crcfield"); //$NON-NLS-1$ Node keys = XMLHandler.getSubNode(stepnode, "fields"); //$NON-NLS-1$ int nrkeys = XMLHandler.countNodes(keys, "key"); //$NON-NLS-1$ allocate(nrkeys); // Read keys to dimension for (int i=0;i<nrkeys;i++) { Node knode = XMLHandler.getSubNodeByNr(keys, "key", i); //$NON-NLS-1$ keyField[i] = XMLHandler.getTagValue(knode, "name"); //$NON-NLS-1$ keyLookup[i]= XMLHandler.getTagValue(knode, "lookup"); //$NON-NLS-1$ } // If this is empty: use auto-increment field! sequenceFrom = XMLHandler.getTagValue(stepnode, "sequence"); //$NON-NLS-1$ Node fields = XMLHandler.getSubNode(stepnode, "fields"); //$NON-NLS-1$ Node retkey = XMLHandler.getSubNode(fields, "return"); //$NON-NLS-1$ technicalKeyField = XMLHandler.getTagValue(retkey, "name"); //$NON-NLS-1$ useAutoinc = !"N".equalsIgnoreCase(XMLHandler.getTagValue(retkey, "use_autoinc")); //$NON-NLS-1$ //$NON-NLS-2$ } catch(Exception e) { throw new KettleXMLException(Messages.getString("CombinationLookupMeta.Exception.UnableToLoadStepInfo"), e); //$NON-NLS-1$ } }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/8752f3f5e66d59d9e3a97e797cef7bc045d25df6/CombinationLookupMeta.java/buggy/src/be/ibridge/kettle/trans/step/combinationlookup/CombinationLookupMeta.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 20913, 12, 907, 2235, 2159, 16, 2407, 16358, 13, 202, 202, 15069, 1475, 278, 5929, 4201, 503, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 3294, 31, 25083, 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, 1152, 918, 20913, 12, 907, 2235, 2159, 16, 2407, 16358, 13, 202, 202, 15069, 1475, 278, 5929, 4201, 503, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 3294, 31, 25083, 202,...
SessionModelImpl.notifyArtifactClosed(artifactUniqueId, artifactClosedBy);
try { SessionModelImpl.notifyArtifactClosed( artifactUniqueId, artifactClosedBy); } catch(final ParityException px) { unexpectedOccured(px); } catch(final RuntimeException rx) { unexpectedOccured(rx); }
private void handleArtifactClosed(final UUID artifactUniqueId, final JabberId artifactClosedBy) { SessionModelImpl.notifyArtifactClosed(artifactUniqueId, artifactClosedBy); }
53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/eec9cca9b1e474106e990e3fd29d5a0e64ecd467/SessionModelXMPPHelper.java/buggy/local/model/src/main/java/com/thinkparity/model/parity/model/session/SessionModelXMPPHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 7581, 7395, 12, 6385, 5866, 6462, 24174, 16, 1082, 202, 6385, 804, 378, 744, 548, 6462, 7395, 858, 13, 288, 202, 202, 2157, 29974, 18, 12336, 7581, 7395, 12, 17706, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 7581, 7395, 12, 6385, 5866, 6462, 24174, 16, 1082, 202, 6385, 804, 378, 744, 548, 6462, 7395, 858, 13, 288, 202, 202, 2157, 29974, 18, 12336, 7581, 7395, 12, 17706, ...
public void reconectionSuccessful() {
public void reconnectionSuccessful() {
private void configureConnection(final XMPPConnection connection) { connection.addConnectionListener(new ConnectionListener() { public void connectionClosed() { cleanup(connection); } public void connectionClosedOnError(Exception e) { cleanup(connection); } public void reconnectionFailed(Exception e) { // ignore } public void reconectionSuccessful() { // ignore } public void reconnectingIn(int seconds) { // ignore } }); }
47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/4e0397e80ab9741dc565f49011ff0eb19de89f58/FileTransferNegotiator.java/clean/source/org/jivesoftware/smackx/filetransfer/FileTransferNegotiator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5068, 1952, 12, 6385, 23216, 1952, 1459, 13, 288, 3639, 1459, 18, 1289, 1952, 2223, 12, 2704, 4050, 2223, 1435, 288, 5411, 1071, 918, 1459, 7395, 1435, 288, 7734, 6686, 12, 407...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5068, 1952, 12, 6385, 23216, 1952, 1459, 13, 288, 3639, 1459, 18, 1289, 1952, 2223, 12, 2704, 4050, 2223, 1435, 288, 5411, 1071, 918, 1459, 7395, 1435, 288, 7734, 6686, 12, 407...
int bondCount = 0; for (int i = 0; i < electronContainerCount; i++) { if (electronContainers[i] instanceof org.openscience.cdk.interfaces.Bond) { bondCount++; } } return bondCount;
return getBondCount(getAtomAt(atomnumber));
public int getBondCount() { int bondCount = 0; for (int i = 0; i < electronContainerCount; i++) { if (electronContainers[i] instanceof org.openscience.cdk.interfaces.Bond) { bondCount++; } } return bondCount; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/233de5556197003fb4fa0a2ad725174bac07c352/AtomContainer.java/buggy/src/org/openscience/cdk/AtomContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 29585, 1380, 1435, 202, 95, 202, 202, 474, 8427, 1380, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 27484, 2170, 1380, 31, 277, 27245, 202, 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, 509, 29585, 1380, 1435, 202, 95, 202, 202, 474, 8427, 1380, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 27484, 2170, 1380, 31, 277, 27245, 202, 202, ...
protected double sumProduct(DataSequence data, FeatureGenerator featureGenerator, double lambda[], double grad[], double expFVals[], boolean onlyForwardPass) {
protected double sumProduct(DataSequence data, FeatureGenerator featureGenerator, double lambda[], double grad[], double expFVals[], boolean onlyForwardPass, int numRecord) {
protected double sumProduct(DataSequence data, FeatureGenerator featureGenerator, double lambda[], double grad[], double expFVals[], boolean onlyForwardPass) { FeatureGeneratorNested featureGenNested = (FeatureGeneratorNested)featureGenerator; CandSegDataSequence dataSeq = (CandSegDataSequence)data; int base = -1; if ((alpha_Y_Array == null) || (alpha_Y_Array.length < dataSeq.length()-base)) { allocateAlphaBeta(2*dataSeq.length()+1); } int dataSize = dataSeq.length(); CandidateSegments candidateSegs = (CandidateSegments)dataSeq; if (!onlyForwardPass) { DoubleMatrix1D oldBeta = beta_Y[dataSeq.length()-1]; beta_Y[dataSize-1] = allZeroVector; for (int i = dataSeq.length()-2; i >= 0; i--) { beta_Y[i].assign(RobustMath.LOG0); } for (int segEnd = dataSeq.length()-1; segEnd >= 0; segEnd--) { for (int nc = candidateSegs.numCandSegmentsEndingAt(segEnd)-1; nc >= 0; nc--) { int segStart = candidateSegs.candSegmentStart(segEnd,nc); int ell = segEnd-segStart+1; int i = segStart-1; if (i < 0) continue; // compute the Mi matrix initMDone = computeLogMi(dataSeq,i,i+ell,featureGenNested,lambda,Mi_YY,Ri_Y,reuseM,initMDone); tmp_Y.assign(Ri_Y); if (i+ell < dataSize-1) tmp_Y.assign(beta_Y[i+ell], sumFunc); if (!reuseM) Mi_YY.zMult(tmp_Y, beta_Y[i],1,1,false); else beta_Y[i].assign(tmp_Y, RobustMath.logSumExpFunc); } if (reuseM && (segEnd-1 >= 0)) { tmp_Y.assign(beta_Y[segEnd-1]); Mi_YY.zMult(tmp_Y, beta_Y[segEnd-1],1,0,false); } } } double thisSeqLogli = 0; for (int f = 0; f < lambda.length; f++) ExpF[f] = RobustMath.LOG0; if (reuseM) { for (int i = dataSeq.length(); i >= 0; i--) initAlphaMDone[i] = false; } alpha_Y_Array[0] = allZeroVector; //.assign(0); int trainingSegmentEnd=-1; int trainingSegmentStart = 0; boolean trainingSegmentFound = true; boolean noneFired=true; for (int segEnd = 0; segEnd < dataSize; segEnd++) { alpha_Y_Array[segEnd-base].assign(RobustMath.LOG0); if ((grad != null) && (trainingSegmentEnd < segEnd)) { if ((!trainingSegmentFound)&& noneFired) { System.out.println("Error: Training segment ("+trainingSegmentStart + " "+ trainingSegmentEnd + ") not found amongst candidate segments"); } trainingSegmentFound = false; trainingSegmentStart = segEnd; trainingSegmentEnd =((SegmentDataSequence)dataSeq).getSegmentEnd(segEnd); } for (int nc = candidateSegs.numCandSegmentsEndingAt(segEnd)-1; nc >= 0; nc--) { int ell = segEnd - candidateSegs.candSegmentStart(segEnd,nc)+1; // compute the Mi matrix initMDone=computeLogMi(dataSeq,segEnd-ell,segEnd,featureGenNested,lambda,Mi_YY,Ri_Y,reuseM,initMDone); boolean mAdded = false, rAdded = false; if (segEnd-ell >= 0) { if (!reuseM) Mi_YY.zMult(alpha_Y_Array[segEnd-ell-base],newAlpha_Y,1,0,true); else { if (!initAlphaMDone[segEnd-ell-base]) { alpha_Y_ArrayM[segEnd-ell-base].assign(RobustMath.LOG0); Mi_YY.zMult(alpha_Y_Array[segEnd-ell-base],alpha_Y_ArrayM[segEnd-ell-base],1,0,true); initAlphaMDone[segEnd-ell-base] = true; } newAlpha_Y.assign(alpha_Y_ArrayM[segEnd-ell-base]); } newAlpha_Y.assign(Ri_Y,sumFunc); } else newAlpha_Y.assign(Ri_Y); alpha_Y_Array[segEnd-base].assign(newAlpha_Y, RobustMath.logSumExpFunc); if ((expFVals != null) || (grad != null)) { // find features that fire at this position.. featureGenNested.startScanFeaturesAt(dataSeq, segEnd-ell,segEnd); while (featureGenNested.hasNext()) { Feature feature = featureGenNested.next(); int f = feature.index(); int yp = feature.y(); int yprev = feature.yprev(); float val = feature.value(); if ((grad != null) && dataSeq.holdsInTrainingData(feature,segEnd-ell,segEnd)) { grad[f] += val; thisSeqLogli += val*lambda[f]; noneFired=false; if (params.debugLvl > 2) { System.out.println("Feature fired " + f + " " + feature); } } if (yprev < 0) { ExpF[f] = RobustMath.logSumExp(ExpF[f], (newAlpha_Y.get(yp)+RobustMath.log(val)+beta_Y[segEnd].get(yp))); } else { ExpF[f] = RobustMath.logSumExp(ExpF[f], (alpha_Y_Array[segEnd-ell-base].get(yprev)+Ri_Y.get(yp)+Mi_YY.get(yprev,yp)+RobustMath.log(val)+beta_Y[segEnd].get(yp))); } } } if ((grad != null) && (segEnd == trainingSegmentEnd) && (segEnd-ell+1==trainingSegmentStart)) { trainingSegmentFound = true; double val1 = Ri_Y.get(dataSeq.y(trainingSegmentEnd)); double val2 = 0; if (trainingSegmentStart > 0) { val2 = Mi_YY.get(dataSeq.y(trainingSegmentStart-1), dataSeq.y(trainingSegmentEnd)); } if ((val1 == RobustMath.LOG0) || (val2 == RobustMath.LOG0)) { System.out.println("Error: training labels not covered in generated features " + val1 + " "+val2 + " y " + dataSeq.y(trainingSegmentEnd)); System.out.println(dataSeq); featureGenNested.startScanFeaturesAt(dataSeq, segEnd-ell,segEnd); while (featureGenNested.hasNext()) { Feature feature = featureGenNested.next(); System.out.println(feature + " " + feature.yprev() + " "+feature.y()); } } } } if (params.debugLvl > 2) { System.out.println("Alpha-i " + alpha_Y_Array[segEnd-base].toString()); System.out.println("Ri " + Ri_Y.toString()); System.out.println("Mi " + Mi_YY.toString()); System.out.println("Beta-i " + beta_Y[segEnd].toString()); } } double lZx = alpha_Y_Array[dataSeq.length()-1-base].zSum(); thisSeqLogli -= lZx; // update grad. if (grad != null) for (int f = 0; f < grad.length; f++) grad[f] -= expLE(ExpF[f]-lZx); if (expFVals!=null) { for (int f = 0; f < lambda.length; f++) { expFVals[f] += RobustMath.exp(ExpF[f]-lZx); } } return thisSeqLogli; }
45325 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45325/9d7d7ef96431a47fb3a1e2dfe7df19a71f0925ec/SegmentTrainer.java/clean/src/iitb/CRF/SegmentTrainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1645, 2142, 4133, 12, 751, 4021, 501, 16, 7881, 3908, 2572, 3908, 16, 1645, 3195, 63, 6487, 1645, 6058, 63, 6487, 1645, 1329, 42, 13169, 63, 6487, 1250, 1338, 8514, 6433, 16, 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, 377, 4750, 1645, 2142, 4133, 12, 751, 4021, 501, 16, 7881, 3908, 2572, 3908, 16, 1645, 3195, 63, 6487, 1645, 6058, 63, 6487, 1645, 1329, 42, 13169, 63, 6487, 1250, 1338, 8514, 6433, 16, 509, ...
EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); if ( !currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) ) { ArrayList axisTypes = new ArrayList( ); for ( int i = 0; i < axes.size( ); i++ ) { axisTypes.add( ( (Axis) axes.get( i ) ).getType( ) ); } currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ), ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getType( ), axisTypes ) ); }
private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); ChartDimension oldDimension = currentChart.getDimension( ); // Cache series to keep attributes during conversion ChartCacheManager.getInstance( ) .cacheSeries( ChartUIUtil.getAllOrthogonalSeriesDefinitions( helperModel ) ); if ( ( currentChart instanceof ChartWithAxes ) ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } } } } } else if ( currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) || currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) || currentChart.getType( ).equals( StockChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( BubbleChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( DifferenceChart.TYPE_LITERAL ) || currentChart.getType( ).equals( GanttChart.TYPE_LITERAL ) ) { EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); if ( !currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) ) { ArrayList axisTypes = new ArrayList( ); for ( int i = 0; i < axes.size( ); i++ ) { axisTypes.add( ( (Axis) axes.get( i ) ).getType( ) ); } currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ), ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getType( ), axisTypes ) ); } currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); for ( int i = 0, seriesIndex = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, seriesIndex++ ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } } else { return null; } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( ChartUIUtil.getDimensionType( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getInteractivity( ) != null ) { currentChart.getInteractivity( ) .setEnable( helperModel.getInteractivity( ).isEnable( ) ); currentChart.getInteractivity( ) .setLegendBehavior( helperModel.getInteractivity( ) .getLegendBehavior( ) ); } if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) || helperModel.getType( ).equals( MeterChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); // series = getConvertedSeries( series ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, j ); series.getLabel( ).setVisible( false ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getLegend( ) .setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( ChartUIUtil.getDimensionType( sNewDimension ) ) ) { currentChart.setDimension( ChartUIUtil.getDimensionType( sNewDimension ) ); } if ( sNewDimension.equals( THREE_DIMENSION_TYPE ) && ChartUIUtil.getDimensionType( sNewDimension ) != oldDimension ) { ( (ChartWithAxes) currentChart ).setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); if ( currentChart.getSampleData( ) .getAncillarySampleData( ) .isEmpty( ) ) { BaseSampleData sdAncillary = DataFactory.eINSTANCE.createBaseSampleData( ); sdAncillary.setDataSetRepresentation( "Series 1" ); //$NON-NLS-1$ currentChart.getSampleData( ) .getAncillarySampleData( ) .add( sdAncillary ); } EList seriesdefinitions = ChartUIUtil.getOrthogonalSeriesDefinitions( currentChart, 0 ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series.setStacked( false );// Stacked is unsupported in 3D if ( ( series instanceof BarSeries ) && ( series.getLabelPosition( ) != Position.OUTSIDE_LITERAL ) ) { series.setLabelPosition( Position.OUTSIDE_LITERAL ); } } } return currentChart; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4ce1e97aa23d1fe4046bd76743f3c5f90658bab6/BarChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/BarChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, ...
return width;
return width;
float widthLeft() { return width; }
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/6288f051b807f9da0a0f308a00b5851da285b8fb/PdfLine.java/buggy/itext/src/com/lowagie/text/pdf/PdfLine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1431, 1835, 3910, 1435, 288, 3639, 327, 1835, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1431, 1835, 3910, 1435, 288, 3639, 327, 1835, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
getDate(str, 0, end, date);
int dateEnd = getDate(str, 0, end, date);
protected int[] parse(String str) throws SchemaDateTimeException { int len = str.length(); int[] date = new int[TOTAL_SIZE]; int[] timeZone = new int[2]; int end = indexOf (str, 0, len, 'T'); // both time and date getDate(str, 0, end, date); getTime(str, end+1, len, date, timeZone); //validate and normalize //REVISIT: do we need SchemaDateTimeException? validateDateTime(date, timeZone); if ( date[utc]!=0 && date[utc]!='Z') { normalize(date, timeZone); } return date; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/f95b4bb832c3459fef7664cfc6312c4108e3ac1b/DateTimeDV.java/buggy/src/org/apache/xerces/impl/dv/xs/DateTimeDV.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 8526, 1109, 12, 780, 609, 13, 1216, 4611, 5096, 503, 288, 3639, 509, 562, 273, 609, 18, 2469, 5621, 3639, 509, 8526, 1509, 273, 394, 509, 63, 28624, 67, 4574, 15533, 3639, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 8526, 1109, 12, 780, 609, 13, 1216, 4611, 5096, 503, 288, 3639, 509, 562, 273, 609, 18, 2469, 5621, 3639, 509, 8526, 1509, 273, 394, 509, 63, 28624, 67, 4574, 15533, 3639, 50...
private void _openProjectHelper(File projectFile) { _currentProjFile = projectFile; File[] srcFiles = null; try{ srcFiles = _model.openProject(projectFile); _setUpContextMenus(); _recentProjectManager.updateOpenFiles(projectFile); } catch(MalformedProjectFileException e){ _showProjectFileParseError(e); return; } catch(FileNotFoundException e) { _showFileNotFoundError(e); return; } catch(IOException e){ _showIOError(e); return; } /** * now the model */ List<OpenDefinitionsDocument> nonProjDocs = _model.getNonProjectDocuments(); List<OpenDefinitionsDocument> projDocs = _model.getProjectDocuments(); /** * close all project files */// for(OpenDefinitionsDocument d: projDocs){// _model.closeFile(d);// } closeFiles(projDocs); /** * keep all nonproject files open */ IDocumentNavigator nav = _model.getDocumentNavigator();// nav.clear();// for(OpenDefinitionsDocument d: nonProjDocs){// System.err.println("adding" + d);// try{// /* transfer docs with files to new navigator */// nav.addDocument(_model.getIDocGivenODD(d), d.getFile().getParentFile().getAbsolutePath());// }catch(IllegalStateException e){// /* transfer untitled docs to new navigator */// nav.addDocument(_model.getIDocGivenODD(d));// }catch(FileMovedException e){// /* if the file has moved or been deleted,// * then add it to external files, since it's// * "no longer in the project directory"// */// nav.addDocument(_model.getIDocGivenODD(d));// }// } final File[] files = srcFiles; // project could be empty if(srcFiles.length > 0){ open(new FileOpenSelector(){ public File[] getFiles() { return files; } }); } _openProjectUpdate(); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/2499b0018a7f137bb1baaaf2d077c26486e3f12e/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 3190, 4109, 2276, 12, 812, 1984, 812, 13, 288, 565, 389, 2972, 626, 78, 812, 273, 1984, 812, 31, 565, 1387, 8526, 1705, 2697, 273, 446, 31, 565, 775, 95, 1377, 1705, 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, 282, 3238, 918, 389, 3190, 4109, 2276, 12, 812, 1984, 812, 13, 288, 565, 389, 2972, 626, 78, 812, 273, 1984, 812, 31, 565, 1387, 8526, 1705, 2697, 273, 446, 31, 565, 775, 95, 1377, 1705, 2...
InputStream uninst_is = getClass().getResourceAsStream("/lib/uninstaller.jar");
InputStream uninst_is = getClass().getResourceAsStream("/lib/uninstaller.jar");
protected ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("res").iterator(); while (iter.hasNext()) { XMLElement res = (XMLElement) iter.next(); // Do not prepend basedir if src is already an absolute path File src = new File(requireAttribute(res, "src")); if (! src.isAbsolute()) src = new File(basedir, src.getPath()); resources.add(new Resource(requireAttribute(res, "id"), src.getPath(), validateYesNoAttribute(res, "parse", NO), res.getAttribute("type"), res.getAttribute("encoding"))); } if (resources.isEmpty()) parseError (root, "<resources> requires a <res>"); // Uninstaller must be added as a resource for standalone compiler InputStream uninst_is = getClass().getResourceAsStream("/lib/uninstaller.jar"); if (uninst_is == null) { String uninst = Compiler.IZPACK_HOME + "lib" + File.separator + "uninstaller.jar"; try { uninst_is = new FileInputStream (uninst); } catch (IOException x) { // it's a runtime exception if this can't be found throw new RuntimeException ("The uninstaller ("+uninst+") seems to be missing: "+x.toString()); } } resources.add(new Resource("IzPack.uninstaller", uninst_is)); // We return the ArrayList return resources; }
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 2407, 14590, 12, 15223, 501, 13, 1216, 28227, 225, 288, 565, 368, 10188, 10742, 565, 2407, 2703, 273, 394, 2407, 5621, 565, 1139, 11155, 1365, 273, 501, 18, 588, 3759, 1763, 7604, 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, 282, 4750, 2407, 14590, 12, 15223, 501, 13, 1216, 28227, 225, 288, 565, 368, 10188, 10742, 565, 2407, 2703, 273, 394, 2407, 5621, 565, 1139, 11155, 1365, 273, 501, 18, 588, 3759, 1763, 7604, 2...
if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure; can't define singleton method."); } if (receiver.isFrozen()) { throw runtime.newFrozenError("object"); } if (!receiver.singletonMethodsAllowed()) { throw runtime.newTypeError("can't define singleton method \"" + iVisited.getName() + "\" for " + receiver.getType()); } RubyClass rubyClass = receiver.getSingletonClass();
RubyClass rubyClass; if (receiver.isNil()) { rubyClass = runtime.getNilClass(); } else if (receiver == runtime.getTrue()) { rubyClass = runtime.getClass("TrueClass"); } else if (receiver == runtime.getFalse()) { rubyClass = runtime.getClass("FalseClass"); } else { if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure; can't define singleton method."); } if (receiver.isFrozen()) { throw runtime.newFrozenError("object"); } if (!receiver.singletonMethodsAllowed()) { throw runtime.newTypeError("can't define singleton method \"" + iVisited.getName() + "\" for " + receiver.getType()); } rubyClass = receiver.getSingletonClass(); }
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode iVisited = (AliasNode) node; if (context.getRubyClass() == null) { throw runtime.newTypeError("no class to make alias"); } context.getRubyClass().defineAlias(iVisited.getNewName(), iVisited.getOldName()); context.getRubyClass().callMethod(context, "method_added", runtime.newSymbol(iVisited.getNewName())); return runtime.getNil(); } case NodeTypes.ANDNODE: { BinaryOperatorNode iVisited = (BinaryOperatorNode) node; IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) return result; node = iVisited.getSecondNode(); continue bigloop; } case NodeTypes.ARGSCATNODE: { ArgsCatNode iVisited = (ArgsCatNode) node; IRubyObject args = evalInternal(context, iVisited.getFirstNode(), self); IRubyObject secondArgs = splatValue(evalInternal(context, iVisited.getSecondNode(), self)); RubyArray list = args instanceof RubyArray ? (RubyArray) args : runtime.newArray(args); return list.concat(secondArgs); } // case NodeTypes.ARGSNODE: // EvaluateVisitor.argsNodeVisitor.execute(this, node); // break; // case NodeTypes.ARGUMENTNODE: // EvaluateVisitor.argumentNodeVisitor.execute(this, node); // break; case NodeTypes.ARRAYNODE: { ArrayNode iVisited = (ArrayNode) node; IRubyObject[] array = new IRubyObject[iVisited.size()]; int i = 0; for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node next = (Node) iterator.next(); array[i++] = evalInternal(context, next, self); } return runtime.newArray(array); } // case NodeTypes.ASSIGNABLENODE: // EvaluateVisitor.assignableNodeVisitor.execute(this, node); // break; case NodeTypes.BACKREFNODE: { BackRefNode iVisited = (BackRefNode) node; IRubyObject backref = context.getBackref(); switch (iVisited.getType()) { case '~': return backref; case '&': return RubyRegexp.last_match(backref); case '`': return RubyRegexp.match_pre(backref); case '\'': return RubyRegexp.match_post(backref); case '+': return RubyRegexp.match_last(backref); } break; } case NodeTypes.BEGINNODE: { BeginNode iVisited = (BeginNode) node; node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.BIGNUMNODE: { BignumNode iVisited = (BignumNode) node; return RubyBignum.newBignum(runtime, iVisited.getValue()); } // case NodeTypes.BINARYOPERATORNODE: // EvaluateVisitor.binaryOperatorNodeVisitor.execute(this, node); // break; // case NodeTypes.BLOCKARGNODE: // EvaluateVisitor.blockArgNodeVisitor.execute(this, node); // break; case NodeTypes.BLOCKNODE: { BlockNode iVisited = (BlockNode) node; IRubyObject result = runtime.getNil(); for (Iterator iter = iVisited.iterator(); iter.hasNext();) { result = evalInternal(context, (Node) iter.next(), self); } return result; } case NodeTypes.BLOCKPASSNODE: { BlockPassNode iVisited = (BlockPassNode) node; IRubyObject proc = evalInternal(context, iVisited.getBodyNode(), self); if (proc.isNil()) { context.setNoBlock(); try { return evalInternal(context, iVisited.getIterNode(), self); } finally { context.clearNoBlock(); } } // If not already a proc then we should try and make it one. if (!(proc instanceof RubyProc)) { proc = proc.convertToType("Proc", "to_proc", false); if (!(proc instanceof RubyProc)) { throw runtime.newTypeError("wrong argument type " + proc.getMetaClass().getName() + " (expected Proc)"); } } // TODO: Add safety check for taintedness Block block = (Block) context.getCurrentBlock(); if (block != null) { IRubyObject blockObject = block.getBlockObject(); // The current block is already associated with the proc. No need to create new // block for it. Just eval! if (blockObject != null && blockObject == proc) { try { context.setBlockAvailable(); return evalInternal(context, iVisited.getIterNode(), self); } finally { context.clearBlockAvailable(); } } } context.preBlockPassEval(((RubyProc) proc).getBlock()); try { return evalInternal(context, iVisited.getIterNode(), self); } finally { context.postBlockPassEval(); } } case NodeTypes.BREAKNODE: { BreakNode iVisited = (BreakNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); JumpException je = new JumpException(JumpException.JumpType.BreakJump); je.setPrimaryData(result); je.setSecondaryData(node); throw je; } case NodeTypes.CALLNODE: { CallNode iVisited = (CallNode) node; context.beginCallArgs(); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = evalInternal(context, iVisited.getReceiverNode(), self); args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } assert receiver.getMetaClass() != null : receiver.getClass().getName(); // If reciever is self then we do the call the same way as vcall CallType callType = (receiver == self ? CallType.VARIABLE : CallType.NORMAL); return receiver.callMethod(context, iVisited.getName(), args, callType); } case NodeTypes.CASENODE: { CaseNode iVisited = (CaseNode) node; IRubyObject expression = null; if (iVisited.getCaseNode() != null) { expression = evalInternal(context, iVisited.getCaseNode(), self); } context.pollThreadEvents(); IRubyObject result = runtime.getNil(); Node firstWhenNode = iVisited.getFirstWhenNode(); while (firstWhenNode != null) { if (!(firstWhenNode instanceof WhenNode)) { node = firstWhenNode; continue bigloop; } WhenNode whenNode = (WhenNode) firstWhenNode; if (whenNode.getExpressionNodes() instanceof ArrayNode) { for (Iterator iter = ((ArrayNode) whenNode.getExpressionNodes()).iterator(); iter .hasNext();) { Node tag = (Node) iter.next(); context.setPosition(tag.getPosition()); if (isTrace(runtime)) { callTraceFunction(context, "line", self); } // Ruby grammar has nested whens in a case body because of // productions case_body and when_args. if (tag instanceof WhenNode) { RubyArray expressions = (RubyArray) evalInternal(context, ((WhenNode) tag) .getExpressionNodes(), self); for (int j = 0; j < expressions.getLength(); j++) { IRubyObject condition = expressions.entry(j); if ((expression != null && condition.callMethod(context, "===", expression) .isTrue()) || (expression == null && condition.isTrue())) { node = ((WhenNode) firstWhenNode).getBodyNode(); continue bigloop; } } continue; } result = evalInternal(context, tag, self); if ((expression != null && result.callMethod(context, "===", expression).isTrue()) || (expression == null && result.isTrue())) { node = whenNode.getBodyNode(); continue bigloop; } } } else { result = evalInternal(context, whenNode.getExpressionNodes(), self); if ((expression != null && result.callMethod(context, "===", expression).isTrue()) || (expression == null && result.isTrue())) { node = ((WhenNode) firstWhenNode).getBodyNode(); continue bigloop; } } context.pollThreadEvents(); firstWhenNode = whenNode.getNextCase(); } return runtime.getNil(); } case NodeTypes.CLASSNODE: { ClassNode iVisited = (ClassNode) node; Node superNode = iVisited.getSuperNode(); RubyClass superClass = superNode == null ? null : (RubyClass) evalInternal(context, superNode, self); Node classNameNode = iVisited.getCPath(); String name = ((INameNode) classNameNode).getName(); RubyModule enclosingClass = getEnclosingModule(context, classNameNode, self); RubyClass rubyClass = enclosingClass.defineOrGetClassUnder(name, superClass); if (context.getWrapper() != null) { rubyClass.extendObject(context.getWrapper()); rubyClass.includeModule(context.getWrapper()); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), rubyClass, self); } case NodeTypes.CLASSVARASGNNODE: { ClassVarAsgnNode iVisited = (ClassVarAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); RubyModule rubyClass = (RubyModule) context.peekCRef().getValue(); if (rubyClass == null) { rubyClass = self.getMetaClass(); } else if (rubyClass.isSingleton()) { rubyClass = (RubyModule) rubyClass.getInstanceVariable("__attached__"); } rubyClass.setClassVar(iVisited.getName(), result); return result; } case NodeTypes.CLASSVARDECLNODE: { ClassVarDeclNode iVisited = (ClassVarDeclNode) node; // FIXME: shouldn't we use cref here? if (context.getRubyClass() == null) { throw runtime.newTypeError("no class/module to define class variable"); } IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); ((RubyModule) context.peekCRef().getValue()).setClassVar(iVisited.getName(), result); return runtime.getNil(); } case NodeTypes.CLASSVARNODE: { ClassVarNode iVisited = (ClassVarNode) node; RubyModule rubyClass = (RubyModule) context.peekCRef().getValue(); if (rubyClass == null) { rubyClass = self.getMetaClass(); } else if (rubyClass.isSingleton()) { rubyClass = (RubyModule)rubyClass.getInstanceVariable("__attached__"); } return rubyClass.getClassVar(iVisited.getName()); } case NodeTypes.COLON2NODE: { Colon2Node iVisited = (Colon2Node) node; Node leftNode = iVisited.getLeftNode(); // TODO: Made this more colon3 friendly because of cpath production // rule in grammar (it is convenient to think of them as the same thing // at a grammar level even though evaluation is). if (leftNode == null) { return runtime.getObject().getConstantFrom(iVisited.getName()); } else { IRubyObject result = evalInternal(context, iVisited.getLeftNode(), self); if (result instanceof RubyModule) { return ((RubyModule) result).getConstantFrom(iVisited.getName()); } else { return result.callMethod(context, iVisited.getName()); } } } case NodeTypes.COLON3NODE: { Colon3Node iVisited = (Colon3Node) node; return runtime.getObject().getConstantFrom(iVisited.getName()); } case NodeTypes.CONSTDECLNODE: { ConstDeclNode iVisited = (ConstDeclNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); IRubyObject module; if (iVisited.getPathNode() != null) { module = evalInternal(context, iVisited.getPathNode(), self); } else { // FIXME: why do we check RubyClass and then use CRef? if (context.getRubyClass() == null) { // TODO: wire into new exception handling mechanism throw runtime.newTypeError("no class/module to define constant"); } module = (RubyModule) context.peekCRef().getValue(); } // FIXME: shouldn't we use the result of this set in setResult? ((RubyModule) module).setConstant(iVisited.getName(), result); return result; } case NodeTypes.CONSTNODE: { ConstNode iVisited = (ConstNode) node; return context.getConstant(iVisited.getName()); } case NodeTypes.DASGNNODE: { DAsgnNode iVisited = (DAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // System.out.println("DSetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth() + " and set " + result); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } case NodeTypes.DEFINEDNODE: { DefinedNode iVisited = (DefinedNode) node; String definition = getDefinition(context, iVisited.getExpressionNode(), self); if (definition != null) { return runtime.newString(definition); } else { return runtime.getNil(); } } case NodeTypes.DEFNNODE: { DefnNode iVisited = (DefnNode) node; RubyModule containingClass = context.getRubyClass(); if (containingClass == null) { throw runtime.newTypeError("No class to add method."); } String name = iVisited.getName(); if (containingClass == runtime.getObject() && name.equals("initialize")) { runtime.getWarnings().warn("redefining Object#initialize may cause infinite loop"); } Visibility visibility = context.getCurrentVisibility(); if (name.equals("initialize") || visibility.isModuleFunction()) { visibility = Visibility.PRIVATE; } DefaultMethod newMethod = new DefaultMethod(containingClass, iVisited.getScope(), iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), visibility, context.peekCRef()); if (iVisited.getBodyNode() != null) { iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); } containingClass.addMethod(name, newMethod); if (context.getCurrentVisibility().isModuleFunction()) { containingClass.getSingletonClass().addMethod( name, new WrapperCallable(containingClass.getSingletonClass(), newMethod, Visibility.PUBLIC)); containingClass.callMethod(context, "singleton_method_added", runtime.newSymbol(name)); } // 'class << state.self' and 'class << obj' uses defn as opposed to defs if (containingClass.isSingleton()) { ((MetaClass) containingClass).getAttachedObject().callMethod( context, "singleton_method_added", runtime.newSymbol(iVisited.getName())); } else { containingClass.callMethod(context, "method_added", runtime.newSymbol(name)); } return runtime.getNil(); } case NodeTypes.DEFSNODE: { DefsNode iVisited = (DefsNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure; can't define singleton method."); } if (receiver.isFrozen()) { throw runtime.newFrozenError("object"); } if (!receiver.singletonMethodsAllowed()) { throw runtime.newTypeError("can't define singleton method \"" + iVisited.getName() + "\" for " + receiver.getType()); } RubyClass rubyClass = receiver.getSingletonClass(); if (runtime.getSafeLevel() >= 4) { ICallable method = (ICallable) rubyClass.getMethods().get(iVisited.getName()); if (method != null) { throw runtime.newSecurityError("Redefining method prohibited."); } } DefaultMethod newMethod = new DefaultMethod(rubyClass, iVisited.getScope(), iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), Visibility.PUBLIC, context.peekCRef()); if (iVisited.getBodyNode() != null) { iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); } rubyClass.addMethod(iVisited.getName(), newMethod); receiver.callMethod(context, "singleton_method_added", runtime.newSymbol(iVisited.getName())); return runtime.getNil(); } case NodeTypes.DOTNODE: { DotNode iVisited = (DotNode) node; return RubyRange.newRange(runtime, evalInternal(context, iVisited.getBeginNode(), self), evalInternal(context, iVisited .getEndNode(), self), iVisited.isExclusive()); } case NodeTypes.DREGEXPNODE: { DRegexpNode iVisited = (DRegexpNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { // param n lang = "n"; } else if((opts & 48) != 0) { // param s lang = "s"; } else if((opts & 64) != 0) { // param s lang = "u"; } return RubyRegexp.newRegexp(runtime, sb.toString(), iVisited.getOptions(), lang); } case NodeTypes.DSTRNODE: { DStrNode iVisited = (DStrNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return runtime.newString(sb.toString()); } case NodeTypes.DSYMBOLNODE: { DSymbolNode iVisited = (DSymbolNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.getNode().iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return runtime.newSymbol(sb.toString()); } case NodeTypes.DVARNODE: { DVarNode iVisited = (DVarNode) node; // System.out.println("DGetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth()); IRubyObject obj = context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()); // FIXME: null check is removable once we figure out how to assign to unset named block args return obj == null ? runtime.getNil() : obj; } case NodeTypes.DXSTRNODE: { DXStrNode iVisited = (DXStrNode) node; StringBuffer sb = new StringBuffer(); for (Iterator iterator = iVisited.iterator(); iterator.hasNext();) { Node iterNode = (Node) iterator.next(); sb.append(evalInternal(context, iterNode, self).toString()); } return self.callMethod(context, "`", runtime.newString(sb.toString())); } case NodeTypes.ENSURENODE: { EnsureNode iVisited = (EnsureNode) node; // save entering the try if there's nothing to ensure if (iVisited.getEnsureNode() != null) { IRubyObject result = runtime.getNil(); try { result = evalInternal(context, iVisited.getBodyNode(), self); } finally { evalInternal(context, iVisited.getEnsureNode(), self); } return result; } node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.EVSTRNODE: { EvStrNode iVisited = (EvStrNode) node; node = iVisited.getBody(); continue bigloop; } case NodeTypes.FALSENODE: { context.pollThreadEvents(); return runtime.getFalse(); } case NodeTypes.FCALLNODE: { FCallNode iVisited = (FCallNode) node; context.beginCallArgs(); IRubyObject[] args; try { args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } return self.callMethod(context, iVisited.getName(), args, CallType.FUNCTIONAL); } case NodeTypes.FIXNUMNODE: { FixnumNode iVisited = (FixnumNode) node; return runtime.newFixnum(iVisited.getValue()); } case NodeTypes.FLIPNODE: { FlipNode iVisited = (FlipNode) node; IRubyObject result = runtime.getNil(); if (iVisited.isExclusive()) { if (!context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()).isTrue()) { result = evalInternal(context, iVisited.getBeginNode(), self).isTrue() ? runtime.getFalse() : runtime.getTrue(); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } else { if (evalInternal(context, iVisited.getEndNode(), self).isTrue()) { context.getCurrentScope().setValue(iVisited.getIndex(), runtime.getFalse(), iVisited.getDepth()); } return runtime.getTrue(); } } else { if (!context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()).isTrue()) { if (evalInternal(context, iVisited.getBeginNode(), self).isTrue()) { context.getCurrentScope().setValue( iVisited.getIndex(), evalInternal(context, iVisited.getEndNode(), self).isTrue() ? runtime.getFalse() : runtime.getTrue(), iVisited.getDepth()); return runtime.getTrue(); } else { return runtime.getFalse(); } } else { if (evalInternal(context, iVisited.getEndNode(), self).isTrue()) { context.getCurrentScope().setValue(iVisited.getIndex(), runtime.getFalse(), iVisited.getDepth()); } return runtime.getTrue(); } } } case NodeTypes.FLOATNODE: { FloatNode iVisited = (FloatNode) node; return RubyFloat.newFloat(runtime, iVisited.getValue()); } case NodeTypes.FORNODE: { ForNode iVisited = (ForNode) node; // For nodes do not have to create an addition scope so we just pass null context.preForLoopEval(Block.createBlock(iVisited.getVarNode(), null, iVisited.getCallable(), self)); try { while (true) { try { ISourcePosition position = context.getPosition(); context.beginCallArgs(); IRubyObject recv = null; try { recv = evalInternal(context, iVisited.getIterNode(), self); } finally { context.setPosition(position); context.endCallArgs(); } return recv.callMethod(context, "each", IRubyObject.NULL_ARRAY, CallType.NORMAL); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // do nothing, allow loop to retry break; default: throw je; } } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postForLoopEval(); } } case NodeTypes.GLOBALASGNNODE: { GlobalAsgnNode iVisited = (GlobalAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); runtime.getGlobalVariables().set(iVisited.getName(), result); return result; } case NodeTypes.GLOBALVARNODE: { GlobalVarNode iVisited = (GlobalVarNode) node; return runtime.getGlobalVariables().get(iVisited.getName()); } case NodeTypes.HASHNODE: { HashNode iVisited = (HashNode) node; Map hash = null; if (iVisited.getListNode() != null) { hash = new HashMap(iVisited.getListNode().size() / 2); for (Iterator iterator = iVisited.getListNode().iterator(); iterator.hasNext();) { // insert all nodes in sequence, hash them in the final instruction // KEY IRubyObject key = evalInternal(context, (Node) iterator.next(), self); IRubyObject value = evalInternal(context, (Node) iterator.next(), self); hash.put(key, value); } } if (hash == null) { return RubyHash.newHash(runtime); } return RubyHash.newHash(runtime, hash, runtime.getNil()); } case NodeTypes.IFNODE: { IfNode iVisited = (IfNode) node; IRubyObject result = evalInternal(context, iVisited.getCondition(), self); if (result.isTrue()) { node = iVisited.getThenBody(); continue bigloop; } else { node = iVisited.getElseBody(); continue bigloop; } } case NodeTypes.INSTASGNNODE: { InstAsgnNode iVisited = (InstAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); self.setInstanceVariable(iVisited.getName(), result); return result; } case NodeTypes.INSTVARNODE: { InstVarNode iVisited = (InstVarNode) node; IRubyObject variable = self.getInstanceVariable(iVisited.getName()); return variable == null ? runtime.getNil() : variable; } // case NodeTypes.ISCOPINGNODE: // EvaluateVisitor.iScopingNodeVisitor.execute(this, node); // break; case NodeTypes.ITERNODE: { IterNode iVisited = (IterNode) node; context.preIterEval(Block.createBlock(iVisited.getVarNode(), new DynamicScope(iVisited.getScope(), context.getCurrentScope()), iVisited.getCallable(), self)); try { while (true) { try { context.setBlockAvailable(); return evalInternal(context, iVisited.getIterNode(), self); } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.RETRY: // allow loop to retry break; default: throw je; } } finally { context.clearBlockAvailable(); } } } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.BREAK: IRubyObject breakValue = (IRubyObject) je.getPrimaryData(); return breakValue == null ? runtime.getNil() : breakValue; default: throw je; } } finally { context.postIterEval(); } } case NodeTypes.LOCALASGNNODE: { LocalAsgnNode iVisited = (LocalAsgnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // System.out.println("LSetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth() + " and set " + result); context.getCurrentScope().setValue(iVisited.getIndex(), result, iVisited.getDepth()); return result; } case NodeTypes.LOCALVARNODE: { LocalVarNode iVisited = (LocalVarNode) node; //System.out.println("DGetting: " + iVisited.getName() + " at index " + iVisited.getIndex() + " and at depth " + iVisited.getDepth()); IRubyObject result = context.getCurrentScope().getValue(iVisited.getIndex(), iVisited.getDepth()); return result == null ? runtime.getNil() : result; } case NodeTypes.MATCH2NODE: { Match2Node iVisited = (Match2Node) node; IRubyObject recv = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = evalInternal(context, iVisited.getValueNode(), self); return ((RubyRegexp) recv).match(value); } case NodeTypes.MATCH3NODE: { Match3Node iVisited = (Match3Node) node; IRubyObject recv = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = evalInternal(context, iVisited.getValueNode(), self); if (value instanceof RubyString) { return ((RubyRegexp) recv).match(value); } else { return value.callMethod(context, "=~", recv); } } case NodeTypes.MATCHNODE: { MatchNode iVisited = (MatchNode) node; return ((RubyRegexp) evalInternal(context, iVisited.getRegexpNode(), self)).match2(); } case NodeTypes.MODULENODE: { ModuleNode iVisited = (ModuleNode) node; Node classNameNode = iVisited.getCPath(); String name = ((INameNode) classNameNode).getName(); RubyModule enclosingModule = getEnclosingModule(context, classNameNode, self); if (enclosingModule == null) { throw runtime.newTypeError("no outer class/module"); } RubyModule module; if (enclosingModule == runtime.getObject()) { module = runtime.getOrCreateModule(name); } else { module = enclosingModule.defineModuleUnder(name); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), module, self); } case NodeTypes.MULTIPLEASGNNODE: { MultipleAsgnNode iVisited = (MultipleAsgnNode) node; return AssignmentVisitor.assign(context, self, iVisited, evalInternal(context, iVisited.getValueNode(), self), false); } case NodeTypes.NEWLINENODE: { NewlineNode iVisited = (NewlineNode) node; // something in here is used to build up ruby stack trace... context.setPosition(iVisited.getPosition()); if (isTrace(runtime)) { callTraceFunction(context, "line", self); } // TODO: do above but not below for additional newline nodes node = iVisited.getNextNode(); continue bigloop; } case NodeTypes.NEXTNODE: { NextNode iVisited = (NextNode) node; context.pollThreadEvents(); IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.NextJump); je.setPrimaryData(result); je.setSecondaryData(iVisited); //state.setCurrentException(je); throw je; } case NodeTypes.NILNODE: return runtime.getNil(); case NodeTypes.NOTNODE: { NotNode iVisited = (NotNode) node; IRubyObject result = evalInternal(context, iVisited.getConditionNode(), self); return result.isTrue() ? runtime.getFalse() : runtime.getTrue(); } case NodeTypes.NTHREFNODE: { NthRefNode iVisited = (NthRefNode) node; return RubyRegexp.nth_match(iVisited.getMatchNumber(), context.getBackref()); } case NodeTypes.OPASGNANDNODE: { BinaryOperatorNode iVisited = (BinaryOperatorNode) node; // add in reverse order IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) return result; node = iVisited.getSecondNode(); continue bigloop; } case NodeTypes.OPASGNNODE: { OpAsgnNode iVisited = (OpAsgnNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject value = receiver.callMethod(context, iVisited.getVariableName()); if (iVisited.getOperatorName().equals("||")) { if (value.isTrue()) { return value; } value = evalInternal(context, iVisited.getValueNode(), self); } else if (iVisited.getOperatorName().equals("&&")) { if (!value.isTrue()) { return value; } value = evalInternal(context, iVisited.getValueNode(), self); } else { value = value.callMethod(context, iVisited.getOperatorName(), evalInternal(context, iVisited.getValueNode(), self)); } receiver.callMethod(context, iVisited.getVariableName() + "=", value); context.pollThreadEvents(); return value; } case NodeTypes.OPASGNORNODE: { OpAsgnOrNode iVisited = (OpAsgnOrNode) node; String def = getDefinition(context, iVisited.getFirstNode(), self); IRubyObject result = runtime.getNil(); if (def != null) { result = evalInternal(context, iVisited.getFirstNode(), self); } if (!result.isTrue()) { result = evalInternal(context, iVisited.getSecondNode(), self); } return result; } case NodeTypes.OPELEMENTASGNNODE: { OpElementAsgnNode iVisited = (OpElementAsgnNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); IRubyObject[] args = setupArgs(context, iVisited.getArgsNode(), self); IRubyObject firstValue = receiver.callMethod(context, "[]", args); if (iVisited.getOperatorName().equals("||")) { if (firstValue.isTrue()) { return firstValue; } firstValue = evalInternal(context, iVisited.getValueNode(), self); } else if (iVisited.getOperatorName().equals("&&")) { if (!firstValue.isTrue()) { return firstValue; } firstValue = evalInternal(context, iVisited.getValueNode(), self); } else { firstValue = firstValue.callMethod(context, iVisited.getOperatorName(), evalInternal(context, iVisited .getValueNode(), self)); } IRubyObject[] expandedArgs = new IRubyObject[args.length + 1]; System.arraycopy(args, 0, expandedArgs, 0, args.length); expandedArgs[expandedArgs.length - 1] = firstValue; return receiver.callMethod(context, "[]=", expandedArgs); } case NodeTypes.OPTNNODE: { OptNNode iVisited = (OptNNode) node; IRubyObject result = runtime.getNil(); while (RubyKernel.gets(runtime.getTopSelf(), IRubyObject.NULL_ARRAY).isTrue()) { loop: while (true) { // Used for the 'redo' command try { result = evalInternal(context, iVisited.getBodyNode(), self); break; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: // do nothing, this iteration restarts break; case JumpType.NEXT: // recheck condition break loop; case JumpType.BREAK: // end loop return (IRubyObject) je.getPrimaryData(); default: throw je; } } } } return result; } case NodeTypes.ORNODE: { OrNode iVisited = (OrNode) node; IRubyObject result = evalInternal(context, iVisited.getFirstNode(), self); if (!result.isTrue()) { result = evalInternal(context, iVisited.getSecondNode(), self); } return result; } // case NodeTypes.POSTEXENODE: // EvaluateVisitor.postExeNodeVisitor.execute(this, node); // break; case NodeTypes.REDONODE: { context.pollThreadEvents(); // now used as an interpreter event JumpException je = new JumpException(JumpException.JumpType.RedoJump); je.setSecondaryData(node); throw je; } case NodeTypes.REGEXPNODE: { RegexpNode iVisited = (RegexpNode) node; String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { // param n lang = "n"; } else if((opts & 48) != 0) { // param s lang = "s"; } else if((opts & 64) != 0) { // param s lang = "u"; } try { return RubyRegexp.newRegexp(runtime, iVisited.getPattern(), lang); } catch(java.util.regex.PatternSyntaxException e) { throw runtime.newSyntaxError(e.getMessage()); } } case NodeTypes.RESCUEBODYNODE: { RescueBodyNode iVisited = (RescueBodyNode) node; node = iVisited.getBodyNode(); continue bigloop; } case NodeTypes.RESCUENODE: { RescueNode iVisited = (RescueNode)node; RescuedBlock : while (true) { try { // Execute rescue block IRubyObject result = evalInternal(context, iVisited.getBodyNode(), self); // If no exception is thrown execute else block if (iVisited.getElseNode() != null) { if (iVisited.getRescueNode() == null) { runtime.getWarnings().warn(iVisited.getElseNode().getPosition(), "else without rescue is useless"); } result = evalInternal(context, iVisited.getElseNode(), self); } return result; } catch (RaiseException raiseJump) { RubyException raisedException = raiseJump.getException(); // TODO: Rubicon TestKernel dies without this line. A cursory glance implies we // falsely set $! to nil and this sets it back to something valid. This should // get fixed at the same time we address bug #1296484. runtime.getGlobalVariables().set("$!", raisedException); RescueBodyNode rescueNode = iVisited.getRescueNode(); while (rescueNode != null) { Node exceptionNodes = rescueNode.getExceptionNodes(); ListNode exceptionNodesList; if (exceptionNodes instanceof SplatNode) { exceptionNodesList = (ListNode) evalInternal(context, exceptionNodes, self); } else { exceptionNodesList = (ListNode) exceptionNodes; } if (isRescueHandled(context, raisedException, exceptionNodesList, self)) { try { return evalInternal(context, rescueNode, self); } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.RetryJump) { // should be handled in the finally block below //state.runtime.getGlobalVariables().set("$!", state.runtime.getNil()); //state.threadContext.setRaisedException(null); continue RescuedBlock; } else { throw je; } } } rescueNode = rescueNode.getOptRescueNode(); } // no takers; bubble up throw raiseJump; } finally { // clear exception when handled or retried runtime.getGlobalVariables().set("$!", runtime.getNil()); } } } case NodeTypes.RETRYNODE: { context.pollThreadEvents(); JumpException je = new JumpException(JumpException.JumpType.RetryJump); throw je; } case NodeTypes.RETURNNODE: { ReturnNode iVisited = (ReturnNode) node; IRubyObject result = evalInternal(context, iVisited.getValueNode(), self); JumpException je = new JumpException(JumpException.JumpType.ReturnJump); je.setPrimaryData(iVisited.getTarget()); je.setSecondaryData(result); je.setTertiaryData(iVisited); throw je; } case NodeTypes.ROOTNODE: { RootNode iVisited = (RootNode) node; DynamicScope scope = iVisited.getScope(); // Serialization killed our dynamic scope. We can just create an empty one // since serialization cannot serialize an eval (which is the only thing // which is capable of having a non-empty dynamic scope). if (scope == null) { scope = new DynamicScope(iVisited.getStaticScope(), null); } // Each root node has a top-level scope that we need to push context.preRootNode(scope); // FIXME: Wire up BEGIN and END nodes try { return eval(context, iVisited.getBodyNode(), self); } finally { context.postRootNode(); } } case NodeTypes.SCLASSNODE: { SClassNode iVisited = (SClassNode) node; IRubyObject receiver = evalInternal(context, iVisited.getReceiverNode(), self); RubyClass singletonClass; if (receiver.isNil()) { singletonClass = runtime.getNilClass(); } else if (receiver == runtime.getTrue()) { singletonClass = runtime.getClass("TrueClass"); } else if (receiver == runtime.getFalse()) { singletonClass = runtime.getClass("FalseClass"); } else { if (runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw runtime.newSecurityError("Insecure: can't extend object."); } singletonClass = receiver.getSingletonClass(); } if (context.getWrapper() != null) { singletonClass.extendObject(context.getWrapper()); singletonClass.includeModule(context.getWrapper()); } return evalClassDefinitionBody(context, iVisited.getScope(), iVisited.getBodyNode(), singletonClass, self); } case NodeTypes.SELFNODE: return self; case NodeTypes.SPLATNODE: { SplatNode iVisited = (SplatNode) node; return splatValue(evalInternal(context, iVisited.getValue(), self)); } //// case NodeTypes.STARNODE: //// EvaluateVisitor.starNodeVisitor.execute(this, node); //// break; case NodeTypes.STRNODE: { StrNode iVisited = (StrNode) node; return runtime.newString(iVisited.getValue()); } case NodeTypes.SUPERNODE: { SuperNode iVisited = (SuperNode) node; if (context.getFrameLastClass() == null) { String name = context.getFrameLastFunc(); throw runtime.newNameError("Superclass method '" + name + "' disabled.", name); } context.beginCallArgs(); IRubyObject[] args = null; try { args = setupArgs(context, iVisited.getArgsNode(), self); } finally { context.endCallArgs(); } return context.callSuper(args); } case NodeTypes.SVALUENODE: { SValueNode iVisited = (SValueNode) node; return aValueSplat(evalInternal(context, iVisited.getValue(), self)); } case NodeTypes.SYMBOLNODE: { SymbolNode iVisited = (SymbolNode) node; return runtime.newSymbol(iVisited.getName()); } case NodeTypes.TOARYNODE: { ToAryNode iVisited = (ToAryNode) node; return aryToAry(evalInternal(context, iVisited.getValue(), self)); } case NodeTypes.TRUENODE: { context.pollThreadEvents(); return runtime.getTrue(); } case NodeTypes.UNDEFNODE: { UndefNode iVisited = (UndefNode) node; if (context.getRubyClass() == null) { throw runtime .newTypeError("No class to undef method '" + iVisited.getName() + "'."); } context.getRubyClass().undef(iVisited.getName()); return runtime.getNil(); } case NodeTypes.UNTILNODE: { UntilNode iVisited = (UntilNode) node; IRubyObject result = runtime.getNil(); while (!(result = evalInternal(context, iVisited.getConditionNode(), self)).isTrue()) { loop: while (true) { // Used for the 'redo' command try { result = evalInternal(context, iVisited.getBodyNode(), self); break loop; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: continue; case JumpType.NEXT: break loop; case JumpType.BREAK: return (IRubyObject) je.getPrimaryData(); default: throw je; } } } } return result; } case NodeTypes.VALIASNODE: { VAliasNode iVisited = (VAliasNode) node; runtime.getGlobalVariables().alias(iVisited.getNewName(), iVisited.getOldName()); return runtime.getNil(); } case NodeTypes.VCALLNODE: { VCallNode iVisited = (VCallNode) node; return self.callMethod(context, iVisited.getName(), IRubyObject.NULL_ARRAY, CallType.VARIABLE); } case NodeTypes.WHENNODE: assert false; return null; case NodeTypes.WHILENODE: { WhileNode iVisited = (WhileNode) node; IRubyObject result = runtime.getNil(); boolean firstTest = iVisited.evaluateAtStart(); while (!firstTest || (result = evalInternal(context, iVisited.getConditionNode(), self)).isTrue()) { firstTest = true; loop: while (true) { // Used for the 'redo' command try { evalInternal(context, iVisited.getBodyNode(), self); break loop; } catch (JumpException je) { switch (je.getJumpType().getTypeId()) { case JumpType.REDO: continue; case JumpType.NEXT: break loop; case JumpType.BREAK: return result; default: throw je; } } } } return result; } case NodeTypes.XSTRNODE: { XStrNode iVisited = (XStrNode) node; return self.callMethod(context, "`", runtime.newString(iVisited.getValue())); } case NodeTypes.YIELDNODE: { YieldNode iVisited = (YieldNode) node; IRubyObject result = evalInternal(context, iVisited.getArgsNode(), self); if (iVisited.getArgsNode() == null) { result = null; } return context.yieldCurrentBlock(result, null, null, iVisited.getCheckState()); } case NodeTypes.ZARRAYNODE: { return runtime.newArray(); } case NodeTypes.ZSUPERNODE: { if (context.getFrameLastClass() == null) { String name = context.getFrameLastFunc(); throw runtime.newNameError("superclass method '" + name + "' disabled", name); } return context.callSuper(context.getFrameArgs(), true); } } } while (true); }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/b520257f51e4960a6f954cc9e72cf4601cfd900e/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 15908, 10340, 921, 5302, 3061, 12, 3830, 1042, 819, 16, 2029, 756, 16, 15908, 10340, 921, 365, 13, 288, 3639, 15908, 10340, 3099, 273, 819, 18, 588, 5576, 5621, 7734, 5446, 649...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 5302, 3061, 12, 3830, 1042, 819, 16, 2029, 756, 16, 15908, 10340, 921, 365, 13, 288, 3639, 15908, 10340, 3099, 273, 819, 18, 588, 5576, 5621, 7734, 5446, 649...
protected boolean isActive(String anExtensionId) {
public boolean isActive(String anExtensionId) {
protected boolean isActive(String anExtensionId) { return assistant.isActive(anExtensionId); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/187a6e5e9526ea47a03a969d7ddb741178d2527d/NavigatorContentService.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/NavigatorContentService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 15083, 12, 780, 392, 3625, 548, 13, 288, 202, 202, 2463, 28779, 18, 291, 3896, 12, 304, 3625, 548, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 15083, 12, 780, 392, 3625, 548, 13, 288, 202, 202, 2463, 28779, 18, 291, 3896, 12, 304, 3625, 548, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if (jj_scan_token(METHOD_PROTECTED)) return true; return false; }
if (jj_scan_token(METHOD_NOT)) return true; return false; }
static final private boolean jj_3R_66() { if (jj_scan_token(METHOD_PROTECTED)) return true; return false; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/3cbef97c5dee07422d7e9cdf6b2f9304448a9eee/ExpressionParser.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 6028, 1435, 288, 3639, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5327, 67, 3373, 26729, 3719, 5411, 327, 638, 31, 3639, 327, 629, 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, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 6028, 1435, 288, 3639, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 5327, 67, 3373, 26729, 3719, 5411, 327, 638, 31, 3639, 327, 629, 31, 565,...
private void init() { if ((source != null) && (source.equals(PRNG))) { // Don't try other sources. return; } if (!tryOneSource(source)) { int i = 0; while ((i < sourceOrder.length) && (!tryOneSource(sourceOrder[i]))) { i++; } } if ((randomSource != null) && (randomSource.exists())) { try { randStream = new FileInputStream(randomSource); } catch (FileNotFoundException ex) { Log.error("Random source disappeared! " + ex); System.exit(1); } Log.debug("Using " + source + " as the random source."); } else { Log.debug("Random source unavailable ! Falling back on a PRNG"); } }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/ebf54439529469978860d7d4e7076aac7caf5fbf/DevRandom.java/clean/Colossus/net/sf/colossus/util/DevRandom.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 1435, 565, 288, 3639, 309, 14015, 3168, 480, 446, 13, 597, 261, 3168, 18, 14963, 12, 8025, 4960, 20349, 3639, 288, 5411, 368, 7615, 1404, 775, 1308, 5550, 18, 5411, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 1435, 565, 288, 3639, 309, 14015, 3168, 480, 446, 13, 597, 261, 3168, 18, 14963, 12, 8025, 4960, 20349, 3639, 288, 5411, 368, 7615, 1404, 775, 1308, 5550, 18, 5411, 327, ...
errorManager.println("EDState: " + myID + ": starting succeed()", EDErrorManager.STATE); sm.setStarted(); for (int i = 0; i < parents.size(); i++) { EDState parent = (EDState)parents.get(i); if (parent != null && parent != this && parent.getCount() == -1) parent.kill(); } if (count > 1) { if (!hasStarted) { /*synchronized(parents)*/ { parents.removeAllElements(); parents.add(this); } hasStarted = true; } count --; errorManager.println ("EDState: " + myID + ": decreased count to " + count, EDErrorManager.STATE); } else if (count < 0) { errorManager.println("EDState: " + myID + ": LOOP state bearing itself", EDErrorManager.STATE); /* bear children, and myself */ bear(this); errorManager.println("EDState: " + myID + ": LOOP state bearing children", EDErrorManager.STATE); for (int i = 0; i < children.length; i++) sm.getState(children[i]).bear(this); hasStarted = true; } else if (count == 1) { for (int i = 0; i < children.length; i++) { sm.getState(children[i]).bear(this); } for (int i = 0; i < actions.length; i++) { errorManager.println("EDState: " + myID + ": sending notification: " + actions[i], EDErrorManager.STATE); sm.sendAction(actions[i], wildHash); } kill(); } errorManager.println("EDState: " + myID + ": finishing succeed()\n", EDErrorManager.STATE);
errorManager.println("EDState: " + myID + ": starting succeed()", EDErrorManager.STATE); sm.setStarted(); for (int i = 0; i < parents.size(); i++) { EDState parent = (EDState)parents.get(i); if (parent != null && parent != this && parent.getCount() == -1) parent.kill();
private void succeed() { errorManager.println("EDState: " + myID + ": starting succeed()", EDErrorManager.STATE); // the machine has started sm.setStarted(); // this state may be breaking the loop of its parent for (int i = 0; i < parents.size(); i++) { EDState parent = (EDState)parents.get(i); if (parent != null && parent != this && parent.getCount() == -1) parent.kill(); } if (count > 1) { // counter feature if (!hasStarted) { /*synchronized(parents)*/ { parents.removeAllElements(); parents.add(this); } hasStarted = true; } count --; errorManager.println ("EDState: " + myID + ": decreased count to " + count, EDErrorManager.STATE); } else if (count < 0) { // loop feature errorManager.println("EDState: " + myID + ": LOOP state bearing itself", EDErrorManager.STATE); /* bear children, and myself */ bear(this); errorManager.println("EDState: " + myID + ": LOOP state bearing children", EDErrorManager.STATE); for (int i = 0; i < children.length; i++) sm.getState(children[i]).bear(this); // the kids will kill me, if they make it hasStarted = true; } else if (count == 1) { // normal case // 4. bear children for (int i = 0; i < children.length; i++) { sm.getState(children[i]).bear(this); } // 5. tell the world we succeeded for (int i = 0; i < actions.length; i++) { errorManager.println("EDState: " + myID + ": sending notification: " + actions[i], EDErrorManager.STATE); sm.sendAction(actions[i], wildHash); } // 6. commit suicide kill(); } errorManager.println("EDState: " + myID + ": finishing succeed()\n", EDErrorManager.STATE); // reap will instantiate new machine, if necessary //if (sm.getSpecification().getInstantiationPolicy() == EDConst.ONE_AT_A_TIME) sm.reap(); // out for now, would make the reaper hangs... }
14534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14534/0357c307bd28e9de750dedad44eb509839eece12/EDState.java/clean/EDState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 12897, 1435, 288, 202, 1636, 1318, 18, 8222, 2932, 2056, 1119, 30, 315, 397, 3399, 734, 397, 6398, 5023, 12897, 1435, 3113, 15585, 668, 1318, 18, 7998, 1769, 202, 759, 326, 522...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12897, 1435, 288, 202, 1636, 1318, 18, 8222, 2932, 2056, 1119, 30, 315, 397, 3399, 734, 397, 6398, 5023, 12897, 1435, 3113, 15585, 668, 1318, 18, 7998, 1769, 202, 759, 326, 522...
Hashtable envmt)
Hashtable<?, ?> envmt)
Object getObjectInstance( Object o, Name n, Context c, Hashtable envmt) throws Exception;
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/233bf80da5e145236ad1120fa7f0b8b74b9e98df/ObjectFactory.java/buggy/modules/jndi/src/main/java/javax/naming/spi/ObjectFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1033, 6455, 1442, 12, 3639, 1033, 320, 16, 3639, 1770, 290, 16, 3639, 1772, 276, 16, 3639, 18559, 12880, 16, 14193, 1550, 1010, 13, 3639, 1216, 1185, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1033, 6455, 1442, 12, 3639, 1033, 320, 16, 3639, 1770, 290, 16, 3639, 1772, 276, 16, 3639, 18559, 12880, 16, 14193, 1550, 1010, 13, 3639, 1216, 1185, 31, 2, -100, -100, -100, -100, -100, ...
sbuf.append(escapeHTMLTags(s[i]));
sbuf.append(Transform.escapeTags(s[i]));
void appendThrowableAsHTML(String[] s, StringBuffer sbuf) { if(s != null) { int len = s.length; if(len == 0) return; sbuf.append(escapeHTMLTags(s[0])); sbuf.append(Layout.LINE_SEP); for(int i = 1; i < len; i++) { sbuf.append(TRACE_PREFIX); sbuf.append(escapeHTMLTags(s[i])); sbuf.append(Layout.LINE_SEP); } } }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/dc4f1e77bef3185fffaf264a005f744e38696ae1/HTMLLayout.java/clean/src/java/org/apache/log4j/HTMLLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 714, 15155, 1463, 4870, 12, 780, 8526, 272, 16, 6674, 2393, 696, 13, 288, 565, 309, 12, 87, 480, 446, 13, 288, 1377, 509, 562, 273, 272, 18, 2469, 31, 1377, 309, 12, 1897, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 714, 15155, 1463, 4870, 12, 780, 8526, 272, 16, 6674, 2393, 696, 13, 288, 565, 309, 12, 87, 480, 446, 13, 288, 1377, 509, 562, 273, 272, 18, 2469, 31, 1377, 309, 12, 1897, 422, ...
lArgs.add(rhs);
((IListNode)lArgs).add(rhs);
public INode node_assign(INode lhs, INode rhs) { if (lhs == null) { return null; } INode result = lhs; checkExpression(rhs); if (lhs instanceof IAssignableNode) { ((IAssignableNode) lhs).setValueNode(rhs); } else if (lhs instanceof CallNode) { CallNode lCallLHS = (CallNode) lhs; IListNode lArgs = lCallLHS.getArgsNode(); if (lArgs == null) { lArgs = new ArrayNode(lhs.getPosition()); result = new CallNode(lCallLHS.getPosition(), lCallLHS.getReceiverNode(), lCallLHS.getName(), lArgs); } lArgs.add(rhs); } return result; }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/f5c9a1ebd775712f2dc086acfce1a14a123ec632/ParserSupport.java/buggy/src/org/jruby/parser/ParserSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21176, 756, 67, 6145, 12, 23184, 8499, 16, 21176, 7711, 13, 288, 3639, 309, 261, 80, 4487, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 21176, 563, 273, 8499, 31, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21176, 756, 67, 6145, 12, 23184, 8499, 16, 21176, 7711, 13, 288, 3639, 309, 261, 80, 4487, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 21176, 563, 273, 8499, 31, 3639,...
"showOutside", null, 1, 1, Scale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED );
"showOutside", "true", 1, 1, Scale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED );
public void initializePackageContents( ) { if ( isInitialized ) return; isInitialized = true; // Initialize package setName( eNAME ); setNsPrefix( eNS_PREFIX ); setNsURI( eNS_URI ); // Obtain other dependent packages AttributePackage theAttributePackage = (AttributePackage) EPackage.Registry.INSTANCE.getEPackage( AttributePackage.eNS_URI ); DataPackage theDataPackage = (DataPackage) EPackage.Registry.INSTANCE.getEPackage( DataPackage.eNS_URI ); XMLTypePackage theXMLTypePackage = (XMLTypePackage) EPackage.Registry.INSTANCE.getEPackage( XMLTypePackage.eNS_URI ); LayoutPackage theLayoutPackage = (LayoutPackage) EPackage.Registry.INSTANCE.getEPackage( LayoutPackage.eNS_URI ); // Add supertypes to classes dialRegionEClass.getESuperTypes( ).add( this.getMarkerRange( ) ); // Initialize classes and features; add operations and parameters initEClass( axisEClass, Axis.class, "Axis", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEAttribute( getAxis_Type( ), theAttributePackage.getAxisType( ), "type", "Linear", 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEReference( getAxis_Title( ), this.getLabel( ), null, "title", null, 0, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_SubTitle( ), this.getLabel( ), null, "subTitle", null, 0, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getAxis_TitlePosition( ), theAttributePackage.getPosition( ), "titlePosition", "Above", 0, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEReference( getAxis_AssociatedAxes( ), this.getAxis( ), null, "associatedAxes", null, 0, -1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_AncillaryAxes( ), this.getAxis( ), null, "ancillaryAxes", null, 0, -1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_SeriesDefinitions( ), theDataPackage.getSeriesDefinition( ), null, "seriesDefinitions", null, 1, -1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getAxis_GapWidth( ), theXMLTypePackage.getDouble( ), "gapWidth", null, 0, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getAxis_Orientation( ), theAttributePackage.getOrientation( ), "orientation", "Horizontal", 0, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEReference( getAxis_LineAttributes( ), theAttributePackage.getLineAttributes( ), null, "lineAttributes", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_Label( ), this.getLabel( ), null, "label", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_FormatSpecifier( ), theAttributePackage.getFormatSpecifier( ), null, "formatSpecifier", null, 0, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getAxis_LabelPosition( ), theAttributePackage.getPosition( ), "labelPosition", "Above", 0, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEAttribute( getAxis_Staggered( ), theXMLTypePackage.getBoolean( ), "staggered", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getAxis_Interval( ), theXMLTypePackage.getInt( ), "interval", "1", 0, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEReference( getAxis_MarkerLines( ), this.getMarkerLine( ), null, "markerLines", null, 0, -1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_MarkerRanges( ), this.getMarkerRange( ), null, "markerRanges", null, 0, -1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_Triggers( ), theDataPackage.getTrigger( ), null, "triggers", null, 0, -1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_MajorGrid( ), this.getGrid( ), null, "majorGrid", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_MinorGrid( ), this.getGrid( ), null, "minorGrid", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_Scale( ), this.getScale( ), null, "scale", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getAxis_Origin( ), theAttributePackage.getAxisOrigin( ), null, "origin", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getAxis_PrimaryAxis( ), theXMLTypePackage.getBoolean( ), "primaryAxis", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getAxis_CategoryAxis( ), theXMLTypePackage.getBoolean( ), "categoryAxis", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getAxis_Percent( ), theXMLTypePackage.getBoolean( ), "percent", null, 1, 1, Axis.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( chartPreferencesEClass, ChartPreferences.class, "ChartPreferences", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference( getChartPreferences_Labels( ), this.getLabel( ), null, "labels", null, 1, -1, ChartPreferences.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getChartPreferences_Blocks( ), theLayoutPackage.getBlock( ), null, "blocks", null, 1, -1, ChartPreferences.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( curveFittingEClass, CurveFitting.class, "CurveFitting", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference( getCurveFitting_LineAttributes( ), theAttributePackage.getLineAttributes( ), null, "lineAttributes", null, 1, 1, CurveFitting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getCurveFitting_Label( ), this.getLabel( ), null, "label", null, 1, 1, CurveFitting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getCurveFitting_LabelAnchor( ), theAttributePackage.getAnchor( ), "labelAnchor", "North", 0, 1, CurveFitting.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEClass( dialEClass, Dial.class, "Dial", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEAttribute( getDial_StartAngle( ), theXMLTypePackage.getDouble( ), "startAngle", "0", 0, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEAttribute( getDial_StopAngle( ), theXMLTypePackage.getDouble( ), "stopAngle", "180", 0, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEAttribute( getDial_Radius( ), theXMLTypePackage.getDouble( ), "radius", null, 0, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getDial_LineAttributes( ), theAttributePackage.getLineAttributes( ), null, "lineAttributes", null, 1, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getDial_Fill( ), theAttributePackage.getFill( ), null, "fill", null, 0, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getDial_DialRegions( ), this.getDialRegion( ), null, "dialRegions", null, 0, -1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getDial_MajorGrid( ), this.getGrid( ), null, "majorGrid", null, 1, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getDial_MinorGrid( ), this.getGrid( ), null, "minorGrid", null, 1, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getDial_Scale( ), this.getScale( ), null, "scale", null, 1, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getDial_InverseScale( ), theXMLTypePackage.getBoolean( ), "inverseScale", "false", 1, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEReference( getDial_Label( ), this.getLabel( ), null, "label", null, 1, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getDial_FormatSpecifier( ), theAttributePackage.getFormatSpecifier( ), null, "formatSpecifier", null, 0, 1, Dial.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( dialRegionEClass, DialRegion.class, "DialRegion", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEAttribute( getDialRegion_InnerRadius( ), theXMLTypePackage.getDouble( ), "innerRadius", null, 0, 1, DialRegion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getDialRegion_OuterRadius( ), theXMLTypePackage.getDouble( ), "outerRadius", null, 0, 1, DialRegion.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( eStringToDataSetMapEntryEClass, Map.Entry.class, "EStringToDataSetMapEntry", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEAttribute( getEStringToDataSetMapEntry_Key( ), theXMLTypePackage.getString( ), "key", null, 1, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getEStringToDataSetMapEntry_Value( ), theDataPackage.getDataSet( ), null, "value", null, 1, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( gridEClass, Grid.class, "Grid", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference( getGrid_LineAttributes( ), theAttributePackage.getLineAttributes( ), null, "lineAttributes", null, 1, 1, Grid.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getGrid_TickStyle( ), theAttributePackage.getTickStyle( ), "tickStyle", "Left", 1, 1, Grid.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEReference( getGrid_TickAttributes( ), theAttributePackage.getLineAttributes( ), null, "tickAttributes", null, 0, 1, Grid.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getGrid_TickSize( ), theXMLTypePackage.getDouble( ), "tickSize", null, 0, 1, Grid.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getGrid_TickCount( ), theXMLTypePackage.getInt( ), "tickCount", null, 1, 1, Grid.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( labelEClass, Label.class, "Label", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference( getLabel_Caption( ), theAttributePackage.getText( ), null, "caption", null, 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getLabel_Background( ), theAttributePackage.getFill( ), null, "background", null, 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getLabel_Outline( ), theAttributePackage.getLineAttributes( ), null, "outline", null, 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getLabel_ShadowColor( ), theAttributePackage.getColorDefinition( ), null, "shadowColor", null, 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getLabel_Insets( ), theAttributePackage.getInsets( ), null, "insets", null, 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getLabel_Visible( ), theXMLTypePackage.getBoolean( ), "visible", null, 1, 1, Label.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( markerLineEClass, MarkerLine.class, "MarkerLine", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference( getMarkerLine_LineAttributes( ), theAttributePackage.getLineAttributes( ), null, "lineAttributes", null, 1, 1, MarkerLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getMarkerLine_Value( ), theDataPackage.getDataElement( ), null, "value", null, 1, 1, MarkerLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getMarkerLine_Label( ), this.getLabel( ), null, "label", null, 1, 1, MarkerLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getMarkerLine_LabelAnchor( ), theAttributePackage.getAnchor( ), "labelAnchor", "North", 1, 1, MarkerLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEReference( getMarkerLine_FormatSpecifier( ), theAttributePackage.getFormatSpecifier( ), null, "formatSpecifier", null, 0, 1, MarkerLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getMarkerLine_Triggers( ), theDataPackage.getTrigger( ), null, "triggers", null, 0, -1, MarkerLine.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( markerRangeEClass, MarkerRange.class, "MarkerRange", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference( getMarkerRange_Outline( ), theAttributePackage.getLineAttributes( ), null, "outline", null, 1, 1, MarkerRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getMarkerRange_Fill( ), theAttributePackage.getFill( ), null, "fill", null, 1, 1, MarkerRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getMarkerRange_StartValue( ), theDataPackage.getDataElement( ), null, "startValue", null, 1, 1, MarkerRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getMarkerRange_EndValue( ), theDataPackage.getDataElement( ), null, "endValue", null, 1, 1, MarkerRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getMarkerRange_Label( ), this.getLabel( ), null, "label", null, 1, 1, MarkerRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getMarkerRange_LabelAnchor( ), theAttributePackage.getAnchor( ), "labelAnchor", "North", 1, 1, MarkerRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEReference( getMarkerRange_FormatSpecifier( ), theAttributePackage.getFormatSpecifier( ), null, "formatSpecifier", null, 0, 1, MarkerRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getMarkerRange_Triggers( ), theDataPackage.getTrigger( ), null, "triggers", null, 0, -1, MarkerRange.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( needleEClass, Needle.class, "Needle", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference( getNeedle_LineAttributes( ), theAttributePackage.getLineAttributes( ), null, "lineAttributes", null, 1, 1, Needle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getNeedle_Decorator( ), theAttributePackage.getLineDecorator( ), "decorator", "Arrow", 1, 1, Needle.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEClass( scaleEClass, Scale.class, "Scale", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEReference( getScale_Min( ), theDataPackage.getDataElement( ), null, "min", null, 1, 1, Scale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getScale_Max( ), theDataPackage.getDataElement( ), null, "max", null, 1, 1, Scale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getScale_Step( ), theXMLTypePackage.getDouble( ), "step", null, 1, 1, Scale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getScale_Unit( ), theAttributePackage.getScaleUnitType( ), "unit", "Seconds", 1, 1, Scale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEAttribute( getScale_MinorGridsPerUnit( ), theXMLTypePackage.getInt( ), "minorGridsPerUnit", null, 1, 1, Scale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getScale_StepNumber( ), theXMLTypePackage.getInt( ), "stepNumber", null, 1, 1, Scale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getScale_ShowOutside( ), theXMLTypePackage.getBoolean( ), "showOutside", null, 1, 1, Scale.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEClass( seriesEClass, Series.class, "Series", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS ); //$NON-NLS-1$ initEAttribute( getSeries_Visible( ), theXMLTypePackage.getBoolean( ), "visible", "true", 0, 1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEReference( getSeries_Label( ), this.getLabel( ), null, "label", null, 1, 1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getSeries_DataDefinition( ), theDataPackage.getQuery( ), null, "dataDefinition", null, 1, -1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getSeries_SeriesIdentifier( ), theXMLTypePackage.getAnySimpleType( ), "seriesIdentifier", null, 1, 1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getSeries_DataPoint( ), theAttributePackage.getDataPoint( ), null, "dataPoint", null, 1, 1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getSeries_DataSets( ), this.getEStringToDataSetMapEntry( ), null, "dataSets", null, 1, -1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getSeries_LabelPosition( ), theAttributePackage.getPosition( ), "labelPosition", "Above", 0, 1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ //$NON-NLS-2$ initEAttribute( getSeries_Stacked( ), theXMLTypePackage.getBoolean( ), "stacked", null, 0, 1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getSeries_Triggers( ), theDataPackage.getTrigger( ), null, "triggers", null, 0, -1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEAttribute( getSeries_Translucent( ), theXMLTypePackage.getBoolean( ), "translucent", null, 1, 1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ initEReference( getSeries_CurveFitting( ), this.getCurveFitting( ), null, "curveFitting", null, 0, 1, Series.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED ); //$NON-NLS-1$ // Create resource createResource( eNS_URI ); // Create annotations // http:///org/eclipse/emf/ecore/util/ExtendedMetaData createExtendedMetaDataAnnotations( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ef47316cc8da932313b60f0c39d77f4ad11077af/ComponentPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/ComponentPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4046, 2261, 6323, 12, 262, 202, 95, 202, 202, 430, 261, 25359, 262, 1082, 202, 2463, 31, 202, 202, 291, 11459, 273, 638, 31, 202, 202, 759, 9190, 2181, 202, 202, 542, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 2261, 6323, 12, 262, 202, 95, 202, 202, 430, 261, 25359, 262, 1082, 202, 2463, 31, 202, 202, 291, 11459, 273, 638, 31, 202, 202, 759, 9190, 2181, 202, 202, 542, 4...
if ((conditional != null) && !conditional.isEmpty()) return conditional.implies(permission);
if (conditional != null) { boolean conditionalImplies = conditional.implies(permission); if (!conditional.isEmpty()) { return conditionalImplies; } }
public boolean implies(Permission permission) { if ((implied != null) && implied.implies(permission)) return true; /* If we aren't using the default permissions, then the assigned * permission are the exact permissions the bundle has. */ if (!isDefault && (assigned != null) && assigned.implies(permission)) return true; if ((conditional != null) && !conditional.isEmpty()) return conditional.implies(permission); /* If there aren't any conditional permissions that apply, we use * the default. */ return assigned.implies(permission); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/01aac89082512e7fd6ce97bdb4c9036f4da4c24f/BundleCombinedPermissions.java/buggy/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/BundleCombinedPermissions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 24168, 12, 5041, 4132, 13, 288, 202, 202, 430, 14015, 381, 3110, 480, 446, 13, 597, 23547, 18, 381, 5259, 12, 9827, 3719, 1082, 202, 2463, 638, 31, 202, 202, 20308, 971,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24168, 12, 5041, 4132, 13, 288, 202, 202, 430, 14015, 381, 3110, 480, 446, 13, 597, 23547, 18, 381, 5259, 12, 9827, 3719, 1082, 202, 2463, 638, 31, 202, 202, 20308, 971,...
} else {
} } else {
public String toString(Instances t) { int i; int cindex = t.classIndex(); StringBuffer text = new StringBuffer(); for (i=0;i<attributes.length;i++) if (i != cindex) { int l = t.attribute(i).name().length(); if (missing[i]) { text.append("? "); for (int j=0;j<(l-1);j++) text.append(" "); } else { String ss = t.attribute(i).value((int)attributes[i]); StringBuffer sb = new StringBuffer(ss); if (l < ss.length()) sb.setLength(l); else { for (int j=0;j < (l-ss.length()); j++) sb.append(" "); } text.append(sb.toString()+" "); } } return text.toString(); }
4773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4773/9e72041e2204a61830b9cccfa8173a6ed2c39eb5/DecisionTable.java/buggy/weka/classifiers/DecisionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 12, 5361, 268, 13, 565, 288, 1377, 509, 277, 31, 1377, 509, 276, 1615, 273, 268, 18, 1106, 1016, 5621, 1377, 6674, 977, 273, 394, 6674, 5621, 5411, 364, 261, 77, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1762, 12, 5361, 268, 13, 565, 288, 1377, 509, 277, 31, 1377, 509, 276, 1615, 273, 268, 18, 1106, 1016, 5621, 1377, 6674, 977, 273, 394, 6674, 5621, 5411, 364, 261, 77, 33, ...
int repeat = 1000; System.out.println("*** This is HOSECodeTest. ***"); System.out.println("Running HOSECode Generation for bremser.mol " + repeat + " times"); long startTime = System.currentTimeMillis();
public static boolean test() { MDLReader mr; ChemFile chemFile; ChemSequence chemSequence; ChemModel chemModel; SetOfMolecules setOfMolecules; Molecule molecule; int repeat = 1000; System.out.println("*** This is HOSECodeTest. ***"); System.out.println("Running HOSECode Generation for bremser.mol " + repeat + " times"); long startTime = System.currentTimeMillis(); String s = null; for (int f = 0; f < repeat; f++) { try { FileInputStream fis = new FileInputStream("Z:/develop/CompChem/compchem/test/molecules/Bremser.mol"); mr = new MDLReader(fis); chemFile = (ChemFile)mr.read((ChemObject)new ChemFile()); fis.close(); chemSequence = chemFile.getChemSequence(0); chemModel = chemSequence.getChemModel(0); setOfMolecules = chemModel.getSetOfMolecules(); molecule = setOfMolecules.getMolecule(0); HOSECodeGenerator hcg = new HOSECodeGenerator(); s = hcg.getHOSECode(molecule, molecule.getAtomAt(1), 4); } catch(Exception exc) { exc.printStackTrace(); } } long endTime = System.currentTimeMillis(); System.out.println(s); System.out.println("Time for each HOSECode calculation: " + SwissArmyKnife.getDuration((long)((endTime-startTime)/repeat))); System.out.println("*** HOSECodeTest successfully completed. ***"); return true; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/3b5db3ea1ef07876d963dc0d0aefdadbbb06eafe/HOSECodeTest.java/clean/org/openscience/cdk/test/HOSECodeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1250, 1842, 1435, 202, 95, 202, 202, 6188, 48, 2514, 9752, 31, 202, 202, 20200, 812, 19028, 812, 31, 202, 202, 20200, 4021, 19028, 4021, 31, 202, 202, 20200, 1488, 19028, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1842, 1435, 202, 95, 202, 202, 6188, 48, 2514, 9752, 31, 202, 202, 20200, 812, 19028, 812, 31, 202, 202, 20200, 4021, 19028, 4021, 31, 202, 202, 20200, 1488, 19028, ...
public TA_RetCode HT_DCPHASE( int startIdx, int endIdx, double inReal[], MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int outIdx, i; int lookbackTotal, today; double tempReal, tempReal2; double adjustedPrevPeriod, period; int trailingWMAIdx; double periodWMASum, periodWMASub, trailingWMAValue; double smoothedValue; final double a = 0.0962; final double b = 0.5769; double hilbertTempReal; int hilbertIdx; double []detrender_Odd = new double[3]; ; double []detrender_Even = new double[3]; ; double detrender; double prev_detrender_Odd ; double prev_detrender_Even ; double prev_detrender_input_Odd ; double prev_detrender_input_Even ; double []Q1_Odd = new double[3]; ; double []Q1_Even = new double[3]; ; double Q1; double prev_Q1_Odd ; double prev_Q1_Even ; double prev_Q1_input_Odd ; double prev_Q1_input_Even ; double []jI_Odd = new double[3]; ; double []jI_Even = new double[3]; ; double jI; double prev_jI_Odd ; double prev_jI_Even ; double prev_jI_input_Odd ; double prev_jI_input_Even ; double []jQ_Odd = new double[3]; ; double []jQ_Even = new double[3]; ; double jQ; double prev_jQ_Odd ; double prev_jQ_Even ; double prev_jQ_input_Odd ; double prev_jQ_input_Even ; double Q2, I2, prevQ2, prevI2, Re, Im; double I1ForOddPrev2, I1ForOddPrev3; double I1ForEvenPrev2, I1ForEvenPrev3; double rad2Deg, constDeg2RadBy360; double todayValue, smoothPeriod; int smoothPrice_Idx = 0; double []smoothPrice; int maxIdx_smoothPrice = ( 50 -1) ; int idx; int DCPeriodInt; double DCPhase, DCPeriod, imagPart, realPart; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; { smoothPrice = new double[maxIdx_smoothPrice +1]; } ; tempReal = Math.atan (1); rad2Deg = 45.0/tempReal; constDeg2RadBy360 = tempReal*8.0; lookbackTotal = 63 + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_HT_DCPHASE.ordinal()]) ; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = startIdx; trailingWMAIdx = startIdx - lookbackTotal; today = trailingWMAIdx; tempReal = inReal[today++]; periodWMASub = tempReal; periodWMASum = tempReal; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*2.0; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*3.0; trailingWMAValue = 0.0; i = 34; do { tempReal = inReal[today++]; { periodWMASub += tempReal; periodWMASub -= trailingWMAValue; periodWMASum += tempReal*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; } while( --i != 0); hilbertIdx = 0; { detrender_Odd [0] = 0.0; detrender_Odd [1] = 0.0; detrender_Odd [2] = 0.0; detrender_Even [0] = 0.0; detrender_Even [1] = 0.0; detrender_Even [2] = 0.0; detrender = 0.0; prev_detrender_Odd = 0.0; prev_detrender_Even = 0.0; prev_detrender_input_Odd = 0.0; prev_detrender_input_Even = 0.0; } ; { Q1_Odd [0] = 0.0; Q1_Odd [1] = 0.0; Q1_Odd [2] = 0.0; Q1_Even [0] = 0.0; Q1_Even [1] = 0.0; Q1_Even [2] = 0.0; Q1 = 0.0; prev_Q1_Odd = 0.0; prev_Q1_Even = 0.0; prev_Q1_input_Odd = 0.0; prev_Q1_input_Even = 0.0; } ; { jI_Odd [0] = 0.0; jI_Odd [1] = 0.0; jI_Odd [2] = 0.0; jI_Even [0] = 0.0; jI_Even [1] = 0.0; jI_Even [2] = 0.0; jI = 0.0; prev_jI_Odd = 0.0; prev_jI_Even = 0.0; prev_jI_input_Odd = 0.0; prev_jI_input_Even = 0.0; } ; { jQ_Odd [0] = 0.0; jQ_Odd [1] = 0.0; jQ_Odd [2] = 0.0; jQ_Even [0] = 0.0; jQ_Even [1] = 0.0; jQ_Even [2] = 0.0; jQ = 0.0; prev_jQ_Odd = 0.0; prev_jQ_Even = 0.0; prev_jQ_input_Odd = 0.0; prev_jQ_input_Even = 0.0; } ; period = 0.0; outIdx = 0; prevI2 = prevQ2 = 0.0; Re = Im = 0.0; I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; smoothPeriod = 0.0; for( i=0; i < 50 ; i++ ) smoothPrice[i] = 0.0; DCPhase = 0.0; while( today <= endIdx ) { adjustedPrevPeriod = (0.075*period)+0.54; todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; smoothPrice[smoothPrice_Idx] = smoothedValue; if( (today%2) == 0 ) { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Even [hilbertIdx]; detrender_Even [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Even ; prev_detrender_Even = b * prev_detrender_input_Even ; detrender += prev_detrender_Even ; prev_detrender_input_Even = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Even [hilbertIdx]; Q1_Even [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Even ; prev_Q1_Even = b * prev_Q1_input_Even ; Q1 += prev_Q1_Even ; prev_Q1_input_Even = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForEvenPrev3; jI = -jI_Even [hilbertIdx]; jI_Even [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Even ; prev_jI_Even = b * prev_jI_input_Even ; jI += prev_jI_Even ; prev_jI_input_Even = I1ForEvenPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Even [hilbertIdx]; jQ_Even [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Even ; prev_jQ_Even = b * prev_jQ_input_Even ; jQ += prev_jQ_Even ; prev_jQ_input_Even = Q1; jQ *= adjustedPrevPeriod; } ; if( ++hilbertIdx == 3 ) hilbertIdx = 0; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); I1ForOddPrev3 = I1ForOddPrev2; I1ForOddPrev2 = detrender; } else { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Odd [hilbertIdx]; detrender_Odd [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Odd ; prev_detrender_Odd = b * prev_detrender_input_Odd ; detrender += prev_detrender_Odd ; prev_detrender_input_Odd = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Odd [hilbertIdx]; Q1_Odd [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Odd ; prev_Q1_Odd = b * prev_Q1_input_Odd ; Q1 += prev_Q1_Odd ; prev_Q1_input_Odd = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForOddPrev3; jI = -jI_Odd [hilbertIdx]; jI_Odd [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Odd ; prev_jI_Odd = b * prev_jI_input_Odd ; jI += prev_jI_Odd ; prev_jI_input_Odd = I1ForOddPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Odd [hilbertIdx]; jQ_Odd [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Odd ; prev_jQ_Odd = b * prev_jQ_input_Odd ; jQ += prev_jQ_Odd ; prev_jQ_input_Odd = Q1; jQ *= adjustedPrevPeriod; } ; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); I1ForEvenPrev3 = I1ForEvenPrev2; I1ForEvenPrev2 = detrender; } Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); prevQ2 = Q2; prevI2 = I2; tempReal = period; if( (Im != 0.0) && (Re != 0.0) ) period = 360.0 / ( Math.atan (Im/Re)*rad2Deg); tempReal2 = 1.5*tempReal; if( period > tempReal2) period = tempReal2; tempReal2 = 0.67*tempReal; if( period < tempReal2 ) period = tempReal2; if( period < 6 ) period = 6; else if( period > 50 ) period = 50; period = (0.2*period) + (0.8 * tempReal); smoothPeriod = (0.33*period)+(0.67*smoothPeriod); DCPeriod = smoothPeriod+0.5; DCPeriodInt = (int)DCPeriod; realPart = 0.0; imagPart = 0.0; idx = smoothPrice_Idx; for( i=0; i < DCPeriodInt; i++ ) { tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; tempReal2 = smoothPrice[idx]; realPart += Math.sin (tempReal)*tempReal2; imagPart += Math.cos (tempReal)*tempReal2; if( idx == 0 ) idx = 50 -1; else idx--; } tempReal = Math.abs (imagPart); if( tempReal > 0.0 ) DCPhase = Math.atan (realPart/imagPart)*rad2Deg; else if( tempReal <= 0.01 ) { if( realPart < 0.0 ) DCPhase -= 90.0; else if( realPart > 0.0 ) DCPhase += 90.0; } DCPhase += 90.0; DCPhase += 360.0 / smoothPeriod; if( imagPart < 0.0 ) DCPhase += 180.0; if( DCPhase > 315.0 ) DCPhase -= 360.0; if( today >= startIdx ) { outReal[outIdx++] = DCPhase; } { smoothPrice_Idx ++; if( smoothPrice_Idx > maxIdx_smoothPrice ) smoothPrice_Idx = 0; } ; today++; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/1a230e9b7099cbd2b7e9eb1294130ca009bfedf4/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 9833, 67, 7055, 1085, 5062, 67, 40, 4258, 44, 4429, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 6955, 63, 6487, 49, 4522, 659, 24059, 4223, 16, 49, 4522, 659, 22816, 1046, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 9833, 67, 7055, 1085, 5062, 67, 40, 4258, 44, 4429, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 6955, 63, 6487, 49, 4522, 659, 24059, 4223, 16, 49, 4522, 659, 22816, 1046, ...
appendLog("SurveyTool shutting down..");
logger.warning("SurveyTool shutting down..");
public void destroy() { appendLog("SurveyTool shutting down.."); doShutdownDB(); busted("servlet destroyed"); super.destroy(); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/00d240abcff3bcd1203f620537b1c5490a94c0f1/SurveyMain.java/buggy/tools/java/org/unicode/cldr/web/SurveyMain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5546, 1435, 288, 3639, 1194, 18, 8551, 2932, 22165, 6364, 24376, 2588, 838, 8863, 3639, 741, 10961, 2290, 5621, 3639, 324, 7328, 2932, 23231, 17689, 8863, 3639, 2240, 18, 11662, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5546, 1435, 288, 3639, 1194, 18, 8551, 2932, 22165, 6364, 24376, 2588, 838, 8863, 3639, 741, 10961, 2290, 5621, 3639, 324, 7328, 2932, 23231, 17689, 8863, 3639, 2240, 18, 11662, ...
public void compileWarning(CompileEvent evt) { }
public void compileWarning(CompileEvent evt) {}
public void compileWarning(CompileEvent evt) { // TODO Auto-generated method stub }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/e2f14e838613688822f963a3c0818fe7ff186a3c/ClassLister.java/clean/bluej/src/edu/umd/cs/findbugs/bluej/test/ClassLister.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4074, 6210, 12, 9937, 1133, 6324, 13, 202, 95, 202, 202, 759, 2660, 8064, 17, 11168, 707, 7168, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4074, 6210, 12, 9937, 1133, 6324, 13, 202, 95, 202, 202, 759, 2660, 8064, 17, 11168, 707, 7168, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
infoExecutionDegreeList.add(Cloner.get(executionDegree));
infoExecutionDegreeList.add(InfoExecutionDegree.newInfoFromDomain(executionDegree));
public List run(Integer executionYearId) throws FenixServiceException { List infoExecutionDegreeList = null; try { ISuportePersistente sp = PersistenceSupportFactory.getDefaultPersistenceSupport(); IPersistentExecutionYear persistentExecutionYear = sp.getIPersistentExecutionYear(); IPersistentExecutionDegree executionDegreeDAO = sp.getIPersistentExecutionDegree(); IExecutionYear executionYear = null; if (executionYearId == null) { executionYear = persistentExecutionYear.readCurrentExecutionYear(); } else { executionYear = (IExecutionYear) persistentExecutionYear.readByOID(ExecutionYear.class, executionYearId); } List executionDegrees = executionDegreeDAO.readByExecutionYear(executionYear.getYear()); if (executionDegrees != null && executionDegrees.size() > 0) { Iterator iterator = executionDegrees.iterator(); infoExecutionDegreeList = new ArrayList(); while (iterator.hasNext()) { IExecutionDegree executionDegree = (IExecutionDegree) iterator.next(); infoExecutionDegreeList.add(Cloner.get(executionDegree)); } } } catch (ExcepcaoPersistencia ex) { throw new FenixServiceException(ex); } return infoExecutionDegreeList; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/165be01fd0a0fea300d8c501bd356966663bedeb/ReadExecutionDegreesByExecutionYearId.java/clean/src/net/sourceforge/fenixedu/applicationTier/Servico/sop/ReadExecutionDegreesByExecutionYearId.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 1086, 12, 4522, 4588, 5593, 548, 13, 1216, 478, 275, 697, 15133, 288, 3639, 987, 1123, 3210, 22885, 682, 273, 446, 31, 3639, 775, 288, 5411, 467, 3088, 499, 73, 11906, 73, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 12, 4522, 4588, 5593, 548, 13, 1216, 478, 275, 697, 15133, 288, 3639, 987, 1123, 3210, 22885, 682, 273, 446, 31, 3639, 775, 288, 5411, 467, 3088, 499, 73, 11906, 73, 16...
fValue = value;
this.value = value;
public Double(double value) { fValue = value; }
25983 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25983/3df67a1be8e33d1ba411241de9fc6873bac67590/Double.java/clean/user/super/com/google/gwt/emul/java/lang/Double.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3698, 12, 9056, 460, 13, 288, 565, 333, 18, 1132, 273, 460, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 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, 3698, 12, 9056, 460, 13, 288, 565, 333, 18, 1132, 273, 460, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
"<apply_chunks>\n" +
"<apply_chunks>\n<ConfigChunkDB>\n" +
public boolean sendChunk (ConfigChunk ch) { if (!connected) { Core.consoleErrorMessage ("Net", "XMLConfigCommunicator send command requested, but no connection."); return false; } synchronized (outstream) { try { outstream.writeBytes ("<protocol handler=\"xml_config\">\n" + "<apply_chunks>\n" + ch.xmlRep (" ") + "</apply_chunks>\n" + "</protocol>\n"); outstream.flush(); return true; } catch (IOException io) { return false; } } }
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/e04bff77d6fb097d08fc0a31cea0330ae0a75789/XMLConfigCommunicator.java/buggy/modules/jackal/editorgui/org/vrjuggler/jccl/editorgui/XMLConfigCommunicator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1366, 5579, 261, 809, 5579, 462, 13, 288, 202, 430, 16051, 8537, 13, 288, 5411, 4586, 18, 8698, 14935, 7566, 7308, 3113, 315, 4201, 809, 12136, 318, 8844, 1366, 1296, 3764, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1366, 5579, 261, 809, 5579, 462, 13, 288, 202, 430, 16051, 8537, 13, 288, 5411, 4586, 18, 8698, 14935, 7566, 7308, 3113, 315, 4201, 809, 12136, 318, 8844, 1366, 1296, 3764, 16...
System.out.println("lenVisitNum:" + node.toString(""));
public Object visitNum(Num node) throws Exception { System.out.println("lenVisitNum:" + node.toString("")); return null; }
50371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50371/4908782144e8efc06c7e665a4d41791daed5b927/LengthEstimator.java/clean/org.python.pydev/src/org/python/pydev/editor/model/LengthEstimator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3757, 2578, 12, 2578, 756, 13, 1216, 1185, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 1897, 10432, 2578, 2773, 397, 756, 18, 10492, 2932, 7923, 1769, 202, 202, 2463, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 3757, 2578, 12, 2578, 756, 13, 1216, 1185, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 1897, 10432, 2578, 2773, 397, 756, 18, 10492, 2932, 7923, 1769, 202, 202, 2463, ...
BlockCipher authKey = node.getAuthCipher();
BlockCipher authKey = opn.incomingSetupCipher; Logger.minor(this, "Decrypt key: "+HexUtil.bytesToHex(opn.incomingSetupKey));
private boolean tryProcessAuth(byte[] buf, int offset, int length, PeerNode opn, Peer peer) { BlockCipher authKey = node.getAuthCipher(); // Does the packet match IV E( H(data) data ) ? PCFBMode pcfb = new PCFBMode(authKey); int ivLength = pcfb.lengthIV(); MessageDigest md = getDigest(); int digestLength = md.getDigestLength(); if(length < digestLength + ivLength + 4) { Logger.minor(this, "Too short"); return false; } // IV at the beginning pcfb.reset(buf, offset); // Then the hash, then the data // => Data starts at ivLength + digestLength // Decrypt the hash byte[] hash = new byte[digestLength]; System.arraycopy(buf, offset+ivLength, hash, 0, digestLength); pcfb.blockDecipher(hash, 0, hash.length); int dataStart = ivLength + digestLength + offset+1; int dataLength = pcfb.decipher(buf[dataStart-1]) & 0xff; // Decrypt the data byte[] payload = new byte[dataLength]; System.arraycopy(buf, dataStart, payload, 0, dataLength); pcfb.blockDecipher(payload, 0, payload.length); md.update(payload); byte[] realHash = md.digest(); if(Arrays.equals(realHash, hash)) { // Got one processDecryptedAuth(payload, opn, peer); return true; } else { Logger.minor(this, "Incorrect hash (length="+dataLength+"): \nreal hash="+HexUtil.bytesToHex(realHash)+"\n bad hash="+HexUtil.bytesToHex(hash)); return false; } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/fca9ba5f973505f068ca3a1bb65e2b2721f1d254/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 775, 2227, 1730, 12, 7229, 8526, 1681, 16, 509, 1384, 16, 509, 769, 16, 10669, 907, 1061, 82, 16, 10669, 4261, 13, 288, 3639, 3914, 13896, 1357, 653, 273, 1061, 82, 18, 3103...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 775, 2227, 1730, 12, 7229, 8526, 1681, 16, 509, 1384, 16, 509, 769, 16, 10669, 907, 1061, 82, 16, 10669, 4261, 13, 288, 3639, 3914, 13896, 1357, 653, 273, 1061, 82, 18, 3103...
if(!((folder.getAbsolutePath().startsWith("/system/") || folder.getAbsolutePath().startsWith("/pics/system/") || folder.getAbsolutePath().startsWith("/moduledemos/")) && m_excludeSystem)) {
String export = folder.getAbsolutePath(); if( I_CmsWpConstants.C_NEW_VFS_STRUCTURE && export.startsWith("/system/bodies/") || !(m_excludeSystem && (export.startsWith("/system/") || ((! I_CmsWpConstants.C_NEW_VFS_STRUCTURE) && export.startsWith("/pics/system/")) || ((! I_CmsWpConstants.C_NEW_VFS_STRUCTURE) && export.startsWith("/moduledemos/"))) )) {
private void exportResources(String path) throws CmsException { // get all subFolders Vector subFolders = m_cms.getSubFolders(path); // get all files in folder Vector subFiles = m_cms.getFilesInFolder(path); // walk through all files and export them for(int i = 0; i < subFiles.size(); i++) { CmsResource file = (CmsResource) subFiles.elementAt(i); int state = file.getState(); long age = file.getDateLastModified(); if(m_isOnlineProject || (!m_excludeUnchanged) || state == C_STATE_NEW || state == C_STATE_CHANGED) { if((state != C_STATE_DELETED) && (!file.getName().startsWith("~")) && (age >= m_contentAge)) { exportFile(m_cms.readFile(file.getAbsolutePath())); } } // release file header memory subFiles.set(i, null); } // all files are exported, release memory subFiles = null; // walk through all subfolders and export them for(int i = 0; i < subFolders.size(); i++) { CmsResource folder = (CmsResource) subFolders.elementAt(i); if(folder.getState() != C_STATE_DELETED){ // check if this is a system-folder and if it should be included. if(!((folder.getAbsolutePath().startsWith("/system/") || folder.getAbsolutePath().startsWith("/pics/system/") || folder.getAbsolutePath().startsWith("/moduledemos/")) && m_excludeSystem)) { // export this folder if (folder.getDateLastModified() >= m_contentAge) { // only export folder data to manifest.xml if it has changed writeXmlEntrys(folder); } // export all resources in this folder exportResources(folder.getAbsolutePath()); } } // release folder memory subFolders.set(i, null); } }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/a419670d8b377e7101765eee55533c0b1d9fc51b/CmsExport.java/buggy/src/com/opencms/file/CmsExport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3359, 3805, 12, 780, 589, 13, 3639, 1216, 11228, 288, 3639, 368, 336, 777, 720, 14885, 3639, 5589, 720, 14885, 273, 312, 67, 6851, 18, 588, 1676, 14885, 12, 803, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3359, 3805, 12, 780, 589, 13, 3639, 1216, 11228, 288, 3639, 368, 336, 777, 720, 14885, 3639, 5589, 720, 14885, 273, 312, 67, 6851, 18, 588, 1676, 14885, 12, 803, 1769, 3639, ...
public RubyBoolean op_or(RubyBoolean obj) {
public RubyBoolean op_or(RubyObject obj) {
public RubyBoolean op_or(RubyBoolean obj) { if (isFalse() && obj.isFalse()) { return getRuby().getFalse(); } else { return getRuby().getTrue(); } }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/60d09f0d06e157ff7d9bb828d89273706e4e2798/RubyBoolean.java/clean/org/jruby/RubyBoolean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 1061, 67, 280, 12, 54, 10340, 921, 1081, 13, 288, 3639, 309, 261, 291, 8381, 1435, 597, 1081, 18, 291, 8381, 10756, 288, 5411, 327, 4170, 10340, 7675, 588, 8381, 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, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 1061, 67, 280, 12, 54, 10340, 921, 1081, 13, 288, 3639, 309, 261, 291, 8381, 1435, 597, 1081, 18, 291, 8381, 10756, 288, 5411, 327, 4170, 10340, 7675, 588, 8381, 5621, ...
if (result != null && replyTo != null)
if (result != null && replyToHandler != null)
public Object onCall(UMOEvent event) throws UMOException { logger.trace("MuleProxy: sync call for Mule UMO " + descriptor.getName()); UMOMessage returnMessage = null; try { if (event.getEndpoint().canReceive()) { RequestContext.setEvent(event); Object replyTo = event.getMessage().getReplyTo(); InterceptorsInvoker invoker = new InterceptorsInvoker(interceptorList, descriptor, event.getMessage()); //stats long startTime = 0; if (stat.isEnabled()) startTime = System.currentTimeMillis(); UMOMessage result = invoker.execute(); //stats if (stat.isEnabled()) stat.addExecutionTime(System.currentTimeMillis() - startTime); //returnMessage = processResponse(result, replyTo, ((AbstractConnector) event.getEndpoint().getConnector()).getReplyToHandler()); //this is the request event event = RequestContext.getEvent(); if (event.isStopFurtherProcessing()) { logger.debug("Event stop further processing has been set, no outbound routing will be performed."); } if (result != null && !event.isStopFurtherProcessing()) { Map context = RequestContext.clearProperties(); if (context != null) { result.addProperties(context); } returnMessage = descriptor.getOutboundRouter().route(result, event.getSession(), event.isSynchronous()); } else { returnMessage = result; } //process repltyTo if there is one if (result != null && replyTo != null) { String requestor = (String) result.getProperty(MuleProperties.MULE_REPLY_TO_REQUESTOR_PROPERTY); ReplyToHandler replyToHandler = ((AbstractConnector) event.getEndpoint().getConnector()).getReplyToHandler(); if (replyToHandler != null) { if ((requestor != null && !requestor.equals(descriptor.getName())) || requestor == null) { replyToHandler.processReplyTo(event, result, replyTo); } } } } else { returnMessage = event.getSession().sendEvent(event); processReplyTo(returnMessage); } //stats if (stat.isEnabled()) stat.incSentEventSync(); } catch (Exception e) { event.getSession().setValid(false); if(e instanceof UMOException) { handleException(e); } else { handleException(new MessagingException(new Message(Messages.EVENT_PROCIESSING_FAILED_FOR_X, descriptor.getName()), event.getMessage(), e)); } } finally { //Finalise the event for this component ((MuleComponent) event.getComponent()).finaliseEvent(event); } return returnMessage; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/6123f0b2728dd4e3ba7b2baa30d5bbfc256ced0b/MuleProxy.java/clean/src/java/org/mule/impl/MuleProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 603, 1477, 12, 2799, 51, 1133, 871, 13, 1216, 587, 5980, 503, 565, 288, 3639, 1194, 18, 5129, 2932, 49, 725, 3886, 30, 3792, 745, 364, 490, 725, 587, 5980, 315, 397, 4950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 603, 1477, 12, 2799, 51, 1133, 871, 13, 1216, 587, 5980, 503, 565, 288, 3639, 1194, 18, 5129, 2932, 49, 725, 3886, 30, 3792, 745, 364, 490, 725, 587, 5980, 315, 397, 4950, ...
data[length--] = null;
data[--length] = null;
public synchronized void remove(int item) { int x = Arrays.binarySearch(data, new Integer(item), comparator); if(x >= 0) { if(x < length-1) System.arraycopy(data, x+1, data, x, length-x-1); data[length--] = null; } if(length < 4*data.length && length > MIN_SIZE) { IntNumberedItem[] newData = new IntNumberedItem[Math.max(length*2, MIN_SIZE)]; System.arraycopy(data, 0, newData, 0, length); data = newData; } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/78895e84a1990fa01f0f90f2b4507b627c330f47/SortedVectorByNumber.java/buggy/src/freenet/support/SortedVectorByNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1206, 12, 474, 761, 13, 288, 202, 202, 474, 619, 273, 5647, 18, 8578, 2979, 12, 892, 16, 394, 2144, 12, 1726, 3631, 8862, 1769, 202, 202, 430, 12, 92, 1545, 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, 225, 202, 482, 3852, 918, 1206, 12, 474, 761, 13, 288, 202, 202, 474, 619, 273, 5647, 18, 8578, 2979, 12, 892, 16, 394, 2144, 12, 1726, 3631, 8862, 1769, 202, 202, 430, 12, 92, 1545, 374, ...
this.sock = new SimServerSocket (sipStack.stackInetAddress,this.port); thread = new SimThread(this);
this.sock = new SimServerSocket (sipStack.stackInetAddress,this.port); thread = new SimThread(this);
public void start() throws IOException { //ifndef SIMULATION // thread = new Thread(this); this.sock = new ServerSocket(this.port, 0, sipStack.stackInetAddress); //else /* this.sock = new SimServerSocket (sipStack.stackInetAddress,this.port); thread = new SimThread(this); //endif */ this.isRunning = true; thread.start(); }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/0cf0af6bd3a566b6ef1db8ed90955fa3fc3baccc/TCPMessageProcessor.java/clean/src/gov/nist/javax/sip/stack/TCPMessageProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 1216, 1860, 288, 202, 202, 759, 430, 82, 536, 31433, 1506, 2689, 202, 202, 759, 202, 202, 5930, 273, 394, 4884, 12, 2211, 1769, 202, 202, 2211, 18, 15031, 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, 918, 787, 1435, 1216, 1860, 288, 202, 202, 759, 430, 82, 536, 31433, 1506, 2689, 202, 202, 759, 202, 202, 5930, 273, 394, 4884, 12, 2211, 1769, 202, 202, 2211, 18, 15031, 273,...
loadCallParams(event, method.getNamespaceURI());
if (callParameters == null) { loadCallParams(event, method.getNamespaceURI()); }
private void setCallParams(Call call, UMOEvent event, QName method) throws ClassNotFoundException { if (callParameters == null) { loadCallParams(event, method.getNamespaceURI()); } SoapMethod soapMethod; soapMethod = (SoapMethod)event.getMessage().removeProperty(MuleProperties.MULE_SOAP_METHOD); if (soapMethod == null) { soapMethod = (SoapMethod)callParameters.get(method.getLocalPart()); } if (soapMethod != null) { for (Iterator iterator = soapMethod.getNamedParameters().iterator(); iterator.hasNext();) { NamedParameter parameter = (NamedParameter)iterator.next(); call.addParameter(parameter.getName(), parameter.getType(), parameter.getMode()); } if (soapMethod.getReturnType() != null) { call.setReturnType(soapMethod.getReturnType()); } else if (soapMethod.getReturnClass() != null) { call.setReturnClass(soapMethod.getReturnClass()); } call.setOperationName(soapMethod.getName()); } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/663407acbe2fb3fb6989e6779d0eece1ea34ba77/AxisMessageDispatcher.java/buggy/transports/axis/src/main/java/org/mule/providers/soap/axis/AxisMessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 444, 1477, 1370, 12, 1477, 745, 16, 587, 5980, 1133, 871, 16, 16723, 707, 13, 1216, 10403, 565, 288, 3639, 309, 261, 1991, 2402, 422, 446, 13, 3639, 288, 5411, 309, 261, 1991...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 1477, 1370, 12, 1477, 745, 16, 587, 5980, 1133, 871, 16, 16723, 707, 13, 1216, 10403, 565, 288, 3639, 309, 261, 1991, 2402, 422, 446, 13, 3639, 288, 5411, 309, 261, 1991...
s = replace(TOO_HIGH_BWLIMITDELAYTIME, "{BWLIMIT_DELAY_TIME}", Integer.toString(bwlimitDelayTime));
s = replace(TOO_HIGH_BWLIMITDELAYTIME, "\\{BWLIMIT_DELAY_TIME\\}", Integer.toString(bwlimitDelayTime));
public String getText() { String s; int disconnected = peers - conns; if(peers == 0) { if(n.isTestnetEnabled()) return NO_PEERS_TESTNET; else return NO_PEERS_DARKNET; } else if(conns == 0) { return NO_CONNS; } else if(conns == 1) { return ONE_CONN; } else if(conns == 2) { return TWO_CONNS; } else if(neverConn > MAX_NEVER_CONNECTED_PEER_ALERT_THRESHOLD) { s = replace(NEVER_CONN_TEXT, "{NEVER_CONN}", Integer.toString(neverConn)); } else if((peers - conns) > MAX_DISCONN_PEER_ALERT_THRESHOLD){ s = replace(DISCONNECTED, "{DISCONNECTED}", Integer.toString(disconnected)); } else if(conns > MAX_CONN_ALERT_THRESHOLD) { s = replace(TOO_MANY_CONNECTIONS, "{CONNS}", Integer.toString(conns)); } else if(peers > MAX_PEER_ALERT_THRESHOLD) { s = replace(TOO_MANY_PEERS, "{PEERS}", Integer.toString(peers)); } else if(n.bwlimitDelayAlertRelevant && (bwlimitDelayTime > Node.MAX_BWLIMIT_DELAY_TIME_ALERT_THRESHOLD)) { s = replace(TOO_HIGH_BWLIMITDELAYTIME, "{BWLIMIT_DELAY_TIME}", Integer.toString(bwlimitDelayTime)); // FIXME I'm not convinced about the next one! } else if(n.nodeAveragePingAlertRelevant && (nodeAveragePingTime > Node.MAX_NODE_AVERAGE_PING_TIME_ALERT_THRESHOLD)) { s = replace(TOO_HIGH_PING, "{PING_TIME}", Integer.toString(bwlimitDelayTime)); } else if(oldestNeverConnectedPeerAge > MAX_OLDEST_NEVER_CONNECTED_PEER_AGE_ALERT_THRESHOLD) { s = NEVER_CONNECTED_TWO_WEEKS; } else throw new IllegalArgumentException("Not valid"); return s; }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/28a46f35660692dcdfcd4b918eded109fffdff3e/PeerManagerUserAlert.java/buggy/src/freenet/node/useralerts/PeerManagerUserAlert.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6701, 1435, 288, 202, 202, 780, 272, 31, 202, 202, 474, 17853, 273, 10082, 300, 18976, 31, 202, 202, 430, 12, 30502, 422, 374, 13, 288, 1082, 202, 430, 12, 82, 18, 291,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6701, 1435, 288, 202, 202, 780, 272, 31, 202, 202, 474, 17853, 273, 10082, 300, 18976, 31, 202, 202, 430, 12, 30502, 422, 374, 13, 288, 1082, 202, 430, 12, 82, 18, 291,...
protected TextComponentPopup(JTextComponent textComponent, ValueModel resetUndoHistoryTrigger) {
protected TextComponentPopup(JTextComponent textComponent, CommitTrigger resetUndoHistoryTrigger) {
protected TextComponentPopup(JTextComponent textComponent, ValueModel resetUndoHistoryTrigger) { this.textComponent = textComponent; this.resetUndoHistoryTrigger = resetUndoHistoryTrigger; registerListeners(); registerAccelerators(); }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/8039d43942d8a0c1267e0808f7ec3ca8584dd607/TextComponentPopup.java/clean/src/org/springframework/richclient/text/TextComponentPopup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3867, 1841, 13770, 12, 46, 1528, 1841, 977, 1841, 16, 10269, 6518, 2715, 31224, 5623, 6518, 13, 288, 3639, 333, 18, 955, 1841, 273, 977, 1841, 31, 3639, 333, 18, 6208, 31224, 5623, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 3867, 1841, 13770, 12, 46, 1528, 1841, 977, 1841, 16, 10269, 6518, 2715, 31224, 5623, 6518, 13, 288, 3639, 333, 18, 955, 1841, 273, 977, 1841, 31, 3639, 333, 18, 6208, 31224, 5623, ...
mtx_tab[origIndex.intValue()].wx);
mtxTab[origIndex.intValue()].getWx());
private void createHmtx(FontFileReader in, HashMap glyphs) throws IOException { TTFDirTabEntry entry = (TTFDirTabEntry)dirTabs.get("hmtx"); int longHorMetricSize = glyphs.size() * 2; int leftSideBearingSize = glyphs.size() * 2; int hmtxSize = longHorMetricSize + leftSideBearingSize; if (entry != null) { pad4(); int offset = (int)entry.offset; for (Iterator e = glyphs.keySet().iterator(); e.hasNext(); ) { Integer origIndex = (Integer)e.next(); Integer subsetIndex = (Integer)glyphs.get(origIndex); writeUShort(currentPos + subsetIndex.intValue() * 4, mtx_tab[origIndex.intValue()].wx); writeUShort(currentPos + subsetIndex.intValue() * 4 + 2, mtx_tab[origIndex.intValue()].lsb); } int checksum = getCheckSum(currentPos, hmtxSize); writeULong(hmtxDirOffset, checksum); writeULong(hmtxDirOffset + 4, currentPos); writeULong(hmtxDirOffset + 8, hmtxSize); currentPos += hmtxSize; realSize += hmtxSize; } else { throw new IOException("Can't find hmtx table"); } }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/2e2226dd0dd6733fdab0c36331723114a46eddd8/TTFSubSetFile.java/clean/src/org/apache/fop/fonts/TTFSubSetFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 44, 81, 978, 12, 5711, 812, 2514, 316, 16, 18701, 4317, 23404, 13, 1216, 1860, 288, 3639, 399, 17963, 1621, 5661, 1622, 1241, 273, 261, 1470, 42, 1621, 5661, 1622, 13, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 44, 81, 978, 12, 5711, 812, 2514, 316, 16, 18701, 4317, 23404, 13, 1216, 1860, 288, 3639, 399, 17963, 1621, 5661, 1622, 1241, 273, 261, 1470, 42, 1621, 5661, 1622, 13, 1...
public SortAction(StructuredViewer viewer, String tooltipText, ViewerSorter sorter, IPropertyChangeListener listener) {
public SortAction(StructuredViewer viewer, String tooltipText, ViewerComparator sorter, IPropertyChangeListener listener) {
public SortAction(StructuredViewer viewer, String tooltipText, ViewerSorter sorter, IPropertyChangeListener listener) { super(tooltipText, IAction.AS_CHECK_BOX); setToolTipText(tooltipText); setImageDescriptor(PDEPluginImages.DESC_ALPHAB_SORT_CO_MINI); fSorted = viewer.getSorter() == null ? false : true; setChecked(fSorted); fViewer= viewer; fSorter = sorter != null ? sorter : new ViewerSorter(); if (listener != null) addListenerObject(listener); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/2c99ec563b6fa17cebdc7c80d292285e73ec04c2/SortAction.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/actions/SortAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5928, 1803, 12, 30733, 18415, 14157, 16, 514, 11915, 1528, 16, 4441, 264, 24952, 19867, 16, 467, 1396, 15744, 2991, 13, 288, 202, 202, 9565, 12, 19798, 1528, 16, 467, 1803, 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, 5928, 1803, 12, 30733, 18415, 14157, 16, 514, 11915, 1528, 16, 4441, 264, 24952, 19867, 16, 467, 1396, 15744, 2991, 13, 288, 202, 202, 9565, 12, 19798, 1528, 16, 467, 1803, 18, ...
consume();
consume(IToken.tLPAREN);
protected IASTExpression postfixExpression( IASTScope scope ) throws Backtrack { IASTExpression firstExpression = null; boolean isTemplate = false; switch (LT(1)) { case IToken.t_typename : consume(); //TODO: the rest of this break; // simple-type-specifier ( assignment-expression , .. ) case IToken.t_char : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_CHAR); break; case IToken.t_wchar_t : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_WCHART); break; case IToken.t_bool : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_BOOL); break; case IToken.t_short : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_SHORT); break; case IToken.t_int : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_INT); break; case IToken.t_long : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_LONG); break; case IToken.t_signed : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_SIGNED); break; case IToken.t_unsigned : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_UNSIGNED); break; case IToken.t_float : firstExpression = simpleTypeConstructorExpression(scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_FLOAT); break; case IToken.t_double : firstExpression = simpleTypeConstructorExpression( scope, IASTExpression.Kind.POSTFIX_SIMPLETYPE_DOUBLE); break; case IToken.t_dynamic_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_DYNAMIC_CAST); break; case IToken.t_static_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_STATIC_CAST); break; case IToken.t_reinterpret_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_REINTERPRET_CAST); break; case IToken.t_const_cast : firstExpression = specialCastExpression(scope, IASTExpression.Kind.POSTFIX_CONST_CAST); break; case IToken.t_typeid : consume(); consume(IToken.tLPAREN); boolean isTypeId = true; IASTExpression lhs = null; IASTTypeId typeId = null; try { typeId = typeId(scope, false); } catch (Backtrack b) { isTypeId = false; lhs = expression(scope); } consume(IToken.tRPAREN); try { firstExpression = astFactory.createExpression( scope, (isTypeId ? IASTExpression.Kind.POSTFIX_TYPEID_TYPEID : IASTExpression.Kind.POSTFIX_TYPEID_EXPRESSION), lhs, null, null, typeId, null, "", null); } catch (ASTSemanticException e6) { failParse(); throw backtrack; } break; default : firstExpression = primaryExpression(scope); } IASTExpression secondExpression = null; for (;;) { switch (LT(1)) { case IToken.tLBRACKET : // array access consume(); secondExpression = expression(scope); consume(IToken.tRBRACKET); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_SUBSCRIPT, firstExpression, secondExpression, null, null, null, "", null); } catch (ASTSemanticException e2) { failParse(); throw backtrack; } break; case IToken.tLPAREN : // function call consume(); secondExpression = expression(scope); consume(IToken.tRPAREN); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_FUNCTIONCALL, firstExpression, secondExpression, null, null, null, "", null); } catch (ASTSemanticException e3) { failParse(); throw backtrack; } break; case IToken.tINCR : consume(); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_INCREMENT, firstExpression, null, null, null, null, "", null); } catch (ASTSemanticException e1) { failParse(); throw backtrack; } break; case IToken.tDECR : consume(); try { firstExpression = astFactory.createExpression( scope, IASTExpression.Kind.POSTFIX_DECREMENT, firstExpression, null, null, null, null, "", null); } catch (ASTSemanticException e4) { failParse(); throw backtrack; } break; case IToken.tDOT : // member access consume(IToken.tDOT); if (LT(1) == IToken.t_template) { consume(IToken.t_template); isTemplate = true; } secondExpression = primaryExpression(scope); try { firstExpression = astFactory.createExpression( scope, (isTemplate ? IASTExpression.Kind.POSTFIX_DOT_TEMPL_IDEXPRESS : IASTExpression.Kind.POSTFIX_DOT_IDEXPRESSION), firstExpression, secondExpression, null, null, null, "", null); } catch (ASTSemanticException e5) { failParse(); throw backtrack; } break; case IToken.tARROW : // member access consume(IToken.tARROW); if (LT(1) == IToken.t_template) { consume(IToken.t_template); isTemplate = true; } secondExpression = primaryExpression(scope); try { firstExpression = astFactory.createExpression( scope, (isTemplate ? IASTExpression.Kind.POSTFIX_ARROW_TEMPL_IDEXP : IASTExpression.Kind.POSTFIX_ARROW_IDEXPRESSION), firstExpression, secondExpression, null, null, null, "", null); } catch (ASTSemanticException e) { failParse(); throw backtrack; } break; default : return firstExpression; } } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a6efadb09acaf1d383e0955c660420479a5982cc/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 9053, 2300, 18923, 2300, 12, 467, 9053, 3876, 2146, 262, 3639, 1216, 4297, 4101, 565, 288, 3639, 467, 9053, 2300, 1122, 2300, 273, 446, 31, 3639, 1250, 353, 2283, 273, 629, 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, 4750, 467, 9053, 2300, 18923, 2300, 12, 467, 9053, 3876, 2146, 262, 3639, 1216, 4297, 4101, 565, 288, 3639, 467, 9053, 2300, 1122, 2300, 273, 446, 31, 3639, 1250, 353, 2283, 273, 629, 31,...
e.printStackTrace();
LOG.warn("handler output error", e);
public void run() { LOG.info(getName() + ": starting"); SERVER.set(Server.this); while (running) { try { Call call; synchronized (callQueue) { while (running && callQueue.size()==0) { // wait for a call callQueue.wait(timeout); } if (!running) break; call = (Call)callQueue.removeFirst(); // pop the queue } synchronized (callDequeued) { // tell others we've dequeued callDequeued.notify(); } if (LOG.isDebugEnabled()) LOG.debug(getName() + ": has #" + call.id + " from " + call.connection.socket.getInetAddress().getHostAddress()); String errorClass = null; String error = null; Writable value = null; try { value = call(call.param); // make the call } catch (Throwable e) { LOG.info(getName() + " call error: " + e, e); errorClass = e.getClass().getName(); error = getStackTrace(e); } DataOutputStream out = call.connection.out; synchronized (out) { try { out.writeInt(call.id); // write call id out.writeBoolean(error!=null); // write error flag if (error == null) { value.write(out); } else { WritableUtils.writeString(out, errorClass); WritableUtils.writeString(out, error); } out.flush(); } catch (Exception e) { e.printStackTrace(); synchronized (connectionList) { if (connectionList.remove(call.connection)) numConnections--; } call.connection.close(); } } } catch (Exception e) { LOG.info(getName() + " caught: " + e, e); } } LOG.info(getName() + ": exiting"); }
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/d33e3496928d81acd8606f6bf7db29b8eff22d3a/Server.java/clean/src/java/org/apache/hadoop/ipc/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 2018, 18, 1376, 12, 17994, 1435, 397, 6398, 5023, 8863, 1377, 15061, 18, 542, 12, 2081, 18, 2211, 1769, 1377, 1323, 261, 8704, 13, 288, 3639, 775, 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, 1086, 1435, 288, 1377, 2018, 18, 1376, 12, 17994, 1435, 397, 6398, 5023, 8863, 1377, 15061, 18, 542, 12, 2081, 18, 2211, 1769, 1377, 1323, 261, 8704, 13, 288, 3639, 775, 288, ...
RuntimePortletUtil.processPortlet( renderPortletSB, ctx, req, res, renderRequest, renderResponse, rootPortletId, instanceId);
try { req.setAttribute(WebKeys.RENDER_PORTLET_RESOURCE, Boolean.TRUE); RuntimePortletUtil.processPortlet( renderPortletSB, ctx, req, res, renderRequest, renderResponse, rootPortletId, instanceId); } finally { req.removeAttribute(WebKeys.RENDER_PORTLET_RESOURCE); }
public static void doTag( String portletName, PageContext pageContext, ServletContext ctx, HttpServletRequest req, HttpServletResponse res) throws Exception { PortletRequest portletRequest = (PortletRequest)req.getAttribute(WebKeys.JAVAX_PORTLET_REQUEST); RenderRequest renderRequest = null; if ((portletRequest != null) && (portletRequest instanceof RenderRequest)) { renderRequest = (RenderRequest)portletRequest; } PortletResponse portletResponse = (PortletResponse)req.getAttribute(WebKeys.JAVAX_PORTLET_RESPONSE); RenderResponse renderResponse = null; if ((portletResponse != null) && (portletResponse instanceof RenderResponse)) { renderResponse = (RenderResponse)portletResponse; } String rootPortletId = Portlet.getRootPortletId(portletName); String instanceId = Portlet.getInstanceId(portletName); StringBuffer renderPortletSB = new StringBuffer(); RuntimePortletUtil.processPortlet( renderPortletSB, ctx, req, res, renderRequest, renderResponse, rootPortletId, instanceId); if (pageContext != null) { pageContext.getOut().print(renderPortletSB.toString()); } else { res.getOutputStream().print(renderPortletSB.toString()); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/9062831bde888aa5b72655a453c1468ddc85783f/RuntimeTag.java/buggy/util-taglib/src/com/liferay/taglib/portletext/RuntimeTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 741, 1805, 12, 1082, 202, 780, 13114, 461, 16, 3460, 1042, 21442, 16, 22717, 1103, 16, 1082, 202, 2940, 18572, 1111, 16, 12446, 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, 760, 918, 741, 1805, 12, 1082, 202, 780, 13114, 461, 16, 3460, 1042, 21442, 16, 22717, 1103, 16, 1082, 202, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 202, 15069, 1185, 288, ...
MutablePicoContainer childContainer = createMutablePicoContainer(rootElement.getAttribute(COMPONENT_ADAPTER_FACTORY),
MutablePicoContainer childContainer = createMutablePicoContainer(rootElement.getAttribute(COMPONENT_ADAPTER_FACTORY),
protected PicoContainer createContainerFromScript(PicoContainer parentContainer, Object assemblyScope) { try { // create ComponentInstanceFactory for the container componentInstanceFactory = createComponentInstanceFactory(rootElement.getAttribute(COMPONENT_INSTANCE_FACTORY)); MutablePicoContainer childContainer = createMutablePicoContainer(rootElement.getAttribute(COMPONENT_ADAPTER_FACTORY), rootElement.getAttribute(COMPONENT_MONITOR), parentContainer); populateContainer(childContainer); return childContainer; } catch (ClassNotFoundException e) { throw new NanoContainerMarkupException("Class not found:" + e.getMessage(), e); } }
9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/3e621aade496baf56dbb6c24369120d8f2497d60/XMLContainerBuilder.java/buggy/java/nanocontainer/trunk/container/src/java/org/nanocontainer/script/xml/XMLContainerBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 453, 10764, 2170, 752, 2170, 1265, 3651, 12, 52, 10764, 2170, 982, 2170, 16, 1033, 19931, 3876, 13, 288, 3639, 775, 288, 5411, 368, 752, 5435, 1442, 1733, 364, 326, 1478, 5411, 1794...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 453, 10764, 2170, 752, 2170, 1265, 3651, 12, 52, 10764, 2170, 982, 2170, 16, 1033, 19931, 3876, 13, 288, 3639, 775, 288, 5411, 368, 752, 5435, 1442, 1733, 364, 326, 1478, 5411, 1794...
mol.addBond(0, 1, 2); mol.addBond(1, 2, 1); mol.addBond(2, 3, 2); mol.addBond(3, 4, 1); mol.addBond(4, 5, 2); mol.addBond(5, 0, 1);
mol.addBond(0, 1, 2.0); mol.addBond(1, 2, 1.0); mol.addBond(2, 3, 2.0); mol.addBond(3, 4, 1.0); mol.addBond(4, 5, 2.0); mol.addBond(5, 0, 1.0);
public static Molecule makePhenylEthylBenzene() { Molecule mol = new Molecule(); mol.addAtom(new Atom("C")); // 0 mol.addAtom(new Atom("C")); // 1 mol.addAtom(new Atom("C")); // 2 mol.addAtom(new Atom("C")); // 3 mol.addAtom(new Atom("C")); // 4 mol.addAtom(new Atom("C")); // 5 mol.addAtom(new Atom("C")); // 6 mol.addAtom(new Atom("C")); // 7 mol.addAtom(new Atom("C")); // 8 mol.addAtom(new Atom("C")); // 9 mol.addAtom(new Atom("C")); // 10 mol.addAtom(new Atom("C")); // 11 mol.addAtom(new Atom("C")); // 12 mol.addBond(0, 1, 2); // 1 mol.addBond(1, 2, 1); // 2 mol.addBond(2, 3, 2); // 3 mol.addBond(3, 4, 1); // 4 mol.addBond(4, 5, 2); // 5 mol.addBond(5, 0, 1); // 6 mol.addBond(0, 6, 1); // 7 mol.addBond(6, 7, 1); // 8 mol.addBond(7, 8, 2); // 5 mol.addBond(8, 9, 1); // 6 mol.addBond(9, 10, 2); // 7 mol.addBond(10, 11, 1); // 8 mol.addBond(11, 12, 2); // 5 mol.addBond(12, 7, 1); // 5 return mol; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/da8866755e9369bf3d50a09256d25117f5e93c64/MoleculeFactory.java/buggy/src/org/openscience/cdk/templates/MoleculeFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 490, 10545, 1221, 3731, 275, 93, 80, 41, 451, 93, 80, 38, 275, 94, 4009, 1435, 202, 95, 202, 202, 29669, 12629, 273, 394, 490, 10545, 5621, 202, 202, 21260, 18, 1289, 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, 760, 490, 10545, 1221, 3731, 275, 93, 80, 41, 451, 93, 80, 38, 275, 94, 4009, 1435, 202, 95, 202, 202, 29669, 12629, 273, 394, 490, 10545, 5621, 202, 202, 21260, 18, 1289, 3...
visible = makeVisible ? Boolean.TRUE : Boolean.FALSE;
public void setVisible(boolean makeVisible) { Control ctrl = getControl(); if (ctrl != null) { if (visible != null && makeVisible == visible.booleanValue()) return; visible = makeVisible ? Boolean.TRUE : Boolean.FALSE; ctrl.setVisible(makeVisible); final Object[] listeners = propertyListeners.getListeners(); if (listeners.length > 0) { Boolean oldValue = makeVisible ? Boolean.FALSE : Boolean.TRUE; PropertyChangeEvent event = new PropertyChangeEvent(this, PROP_VISIBILITY, oldValue, visible); for (int i = 0; i < listeners.length; ++i) ((IPropertyChangeListener) listeners[i]).propertyChange(event); } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/501221f47c24afc2e4d21c39eb76f4402d6bb1d3/LayoutPart.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/LayoutPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 16697, 12, 6494, 1221, 6207, 13, 288, 202, 202, 3367, 6414, 273, 27174, 5621, 202, 202, 430, 261, 16277, 480, 446, 13, 288, 1082, 202, 430, 261, 8613, 480, 446, 597, 1221...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 16697, 12, 6494, 1221, 6207, 13, 288, 202, 202, 3367, 6414, 273, 27174, 5621, 202, 202, 430, 261, 16277, 480, 446, 13, 288, 1082, 202, 430, 261, 8613, 480, 446, 597, 1221...
throw new RuntimeException(iae);
throw new RuntimeException(iae.getMessage());
protected void setExitAction(Runnable r) { try { debuggerMethods[SET_EXIT_ACTION_METHOD].invoke (debuggerInstance, new Object[] { r }); } catch (InvocationTargetException ite) { throw new RuntimeException(ite); } catch (IllegalAccessException iae) { throw new RuntimeException(iae); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/a526efe4475c312e73c2bec1726347b9b4f2fb8a/JSVGViewerFrame.java/clean/sources/org/apache/batik/apps/svgbrowser/JSVGViewerFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 444, 6767, 1803, 12, 20013, 436, 13, 288, 5411, 775, 288, 7734, 19977, 4712, 63, 4043, 67, 28682, 67, 12249, 67, 5327, 8009, 14407, 10792, 261, 4148, 693, 1442, 16, 394, 1033, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 444, 6767, 1803, 12, 20013, 436, 13, 288, 5411, 775, 288, 7734, 19977, 4712, 63, 4043, 67, 28682, 67, 12249, 67, 5327, 8009, 14407, 10792, 261, 4148, 693, 1442, 16, 394, 1033, ...
out.output(doc, baos);
out.output(doc, baos);
public NSFileWrapper fileWrapperRepresentationOfType(String s) { System.out.println("MyDocument.fileWrapperRepresentationOfType:" + s); try { if (MACPAF.equals(s)) { XMLOutputter out = new XMLOutputter(Format.getPrettyFormat()); ByteArrayOutputStream baos = new ByteArrayOutputStream(); ByteArrayOutputStream baosGed = new ByteArrayOutputStream(); try {// out.output(// doc,// new FileWriter("/Projects/MacPAFTest/savetest.xml")); out.output(doc, baos);// XMLTest.outputWithKay(// doc,// new FileOutputStream("/Projects/MacPAFTest/savetest.ged")); XMLTest.outputWithKay(doc, baosGed); } catch (IOException e) { e.printStackTrace(); } NSFileWrapper mainFile = new NSFileWrapper(new NSDictionary()); NSFileWrapper imagesFolder = new NSFileWrapper(new NSDictionary()); imagesFolder.setPreferredFilename("multimedia"); String images1 = mainFile.addFileWrapper(imagesFolder); // NSData data = new NSAttributedString("some data goes // here").RTFFromRange(new NSRange(0, 15), new NSDictionary()); // mainFile.addRegularFileWithContents(NSPropertyListSerialization.dataFromPropertyList(individuals), // "individuals.plist"); // for (int i=0; i< 10000; i++) { // families.takeValueForKey("familyvalue"+i, ""+i); // } // notes.takeValueForKey("notevalue", "notekey"); // System.out.println("start serialize"); // String plist1 = // mainFile.addRegularFileWithContents(NSPropertyListSerialization.XMLDataFromPropertyList(families), // "families.plist"); // String plist2 = // mainFile.addRegularFileWithContents(NSPropertyListSerialization.XMLDataFromPropertyList(notes), // "notes.plist"); // System.out.println("end serialize");// String file1 =// imagesFolder.addFileWithPath(// "/Projects/MacPAFTest/macpaf-screenshot.png");// String file2 =// imagesFolder.addFileWithPath(// "/Projects/MacPAFTest/macpaf-screenshot.tiff");// String file3 =// imagesFolder.addFileWithPath(// "/Projects/MacPAFTest/macpaf-screenshot.jpg");// String file4 =// imagesFolder.addFileWithPath(// "/Projects/MacPAFTest/macpaf-screenshot.gif"); String xml1 = mainFile.addRegularFileWithContents( new NSData(baos.toByteArray()), "data.xml"); String ged1 = mainFile.addRegularFileWithContents( new NSData(baosGed.toByteArray()), DEFAULT_GEDCOM_FILENAME); System.out.println(""// "file1="// + file1// + ", file2="// + file2// + ", file3="// + file3// + ", file4="// + file4 + ", images1=" + images1 + ", xml1=" + xml1 + ", ged1=" + ged1); return mainFile; //super.fileWrapperRepresentationOfType(s); } // unknown file type System.err.println("fileWrapperRep unknown file type " + s); return null; } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); return null; } }
6190 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6190/7b30da2f47cbda6e16406770c133332adb1b4079/MyDocument.java/clean/MacPAF/src/MyDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11472, 812, 3611, 585, 3611, 13742, 18859, 12, 780, 272, 13, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 12062, 2519, 18, 768, 3611, 13742, 18859, 2773, 397, 272, 1769, 202, 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, 377, 1071, 11472, 812, 3611, 585, 3611, 13742, 18859, 12, 780, 272, 13, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 12062, 2519, 18, 768, 3611, 13742, 18859, 2773, 397, 272, 1769, 202, 202, ...
PublicationAuthor publicationAuthor = (PublicationAuthor) object;
IPublicationAuthor publicationAuthor = (IPublicationAuthor) object;
public void copyFromDomain(IPublication publication) { super.copyFromDomain(publication); if (publication != null) { if (getInfoPublicationType() == null) { setInfoPublicationType(new InfoPublicationType()); } getInfoPublicationType().setIdInternal(publication.getKeyPublicationType()); setConference(publication.getConference()); setCountry(publication.getCountry()); setCriticizedAuthor(publication.getCriticizedAuthor()); setEdition(publication.getEdition()); setEditor(publication.getEditor()); setEditorCity(publication.getEditorCity()); setFascicle(publication.getFascicle()); setFirstPage(publication.getFirstPage()); setFormat(publication.getFormat()); setIdInternal(publication.getIdInternal()); List unsortedAuthorsList = new ArrayList(publication.getPublicationAuthors()); Collections.sort(unsortedAuthorsList, new BeanComparator("order")); List authorsList = (List)CollectionUtils.collect(unsortedAuthorsList, new Transformer() { public Object transform(Object object) { PublicationAuthor publicationAuthor = (PublicationAuthor) object; return publicationAuthor.getAuthor(); }}); //tranform the authors list into an infoAuthors list Iterator it1 = authorsList.iterator(); List infoAuthorsList = new ArrayList(); while (it1.hasNext()){ IAuthor author = (IAuthor) it1.next(); InfoAuthor infoAuthor = new InfoAuthor(); infoAuthor.copyFromDomain(author); infoAuthorsList.add(infoAuthor); } setInfoPublicationAuthors(infoAuthorsList); List teachers = (List) CollectionUtils.collect(publication.getPublicationTeachers(), new Transformer() { public Object transform(Object object) { IPublicationTeacher publicationTeacher = (IPublicationTeacher) object; return publicationTeacher.getTeacher(); } }); //tranform the teachers list into an infoTeachers list Iterator it2 = teachers.iterator(); List infoTeachersList = new ArrayList(); while (it2.hasNext()){ Teacher teacher = (Teacher) it2.next(); InfoTeacher infoTeacher = new InfoTeacher(); infoTeacher.copyFromDomain(teacher); infoTeachersList.add(infoTeacher); } setInfoPublicationTeachers(infoTeachersList); //DOME this is unwell //tranform the publicationType into an infoPublicationType InfoPublicationType infoPublicationType = new InfoPublicationType(); infoPublicationType.setPublicationType(publication.getPublicationType()); setInfoPublicationType(infoPublicationType); setInstituition(publication.getInstituition()); setIsbn(publication.getIsbn()); setIssn(publication.getIssn()); setJournalName(publication.getJournalName()); setKeyPublicationType(publication.getKeyPublicationType()); setLanguage(publication.getLanguage()); setLastPage(publication.getLastPage()); setLocal(publication.getLocal()); setMonth(publication.getMonth()); setMonth_end(publication.getMonth_end()); setNumber(publication.getNumber()); setNumberPages(publication.getNumberPages()); setObservation(publication.getObservation()); setOriginalLanguage(publication.getOriginalLanguage()); setPublicationString(publication.getPublicationString()); setPublicationType(publication.getPublicationType()); setScope(publication.getScope()); setSerie(publication.getSerie()); setSubType(publication.getSubType()); setTitle(publication.getTitle()); setTranslatedAuthor(publication.getTranslatedAuthor()); setUniversity(publication.getUniversity()); setUrl(publication.getUrl()); setVolume(publication.getVolume()); setYear(String.valueOf(publication.getYear())); setYear_end(String.valueOf(publication.getYear_end())); } }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/4acc13df093f84f55de394f843b3b8a620677579/InfoPublication.java/buggy/src/net/sourceforge/fenixedu/dataTransferObject/publication/InfoPublication.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25189, 3748, 12, 2579, 447, 367, 20574, 13, 288, 7734, 2240, 18, 3530, 1265, 3748, 12, 28631, 1769, 3639, 309, 261, 28631, 480, 446, 13, 288, 540, 202, 430, 261, 588, 966, 47...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25189, 3748, 12, 2579, 447, 367, 20574, 13, 288, 7734, 2240, 18, 3530, 1265, 3748, 12, 28631, 1769, 3639, 309, 261, 28631, 480, 446, 13, 288, 540, 202, 430, 261, 588, 966, 47...
showFatalError( "Unable to configure the Maven application", e, debug );
showFatalError( "Unable to configure the Maven application", e, showErrors );
public static int main( String[] args, ClassWorld classWorld ) { // ---------------------------------------------------------------------- // Setup the command line parser // ---------------------------------------------------------------------- CLIManager cliManager = new CLIManager(); CommandLine commandLine; try { commandLine = cliManager.parse( args ); } catch ( ParseException e ) { System.err.println( "Unable to parse command line options: " + e.getMessage() ); cliManager.displayHelp(); return 1; } // TODO: maybe classworlds could handle this requirement... if ( System.getProperty( "java.class.version", "44.0" ).compareTo( "48.0" ) < 0 ) { System.err.println( "Sorry, but JDK 1.4 or above is required to execute Maven" ); System.err.println( "You appear to be using Java version: " + System.getProperty( "java.version", "<unknown>" ) ); return 1; } // ---------------------------------------------------------------------- // // 1) maven user configuration directory ( ~/.m2 ) // 2) maven home // 3) local repository // // ---------------------------------------------------------------------- // File userConfigurationDirectory = getUserConfigurationDirectory(); // Properties mavenProperties = getMavenProperties( userConfigurationDirectory ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- initializeSystemProperties( commandLine ); boolean debug = commandLine.hasOption( CLIManager.DEBUG ); // ---------------------------------------------------------------------- // Process particular command line options // ---------------------------------------------------------------------- if ( commandLine.hasOption( CLIManager.HELP ) ) { cliManager.displayHelp(); return 0; } if ( commandLine.hasOption( CLIManager.VERSION ) ) { showVersion(); return 0; } EventDispatcher eventDispatcher = new DefaultEventDispatcher(); // ---------------------------------------------------------------------- // Now that we have everything that we need we will fire up plexus and // bring the maven component to life for use. // ---------------------------------------------------------------------- ArtifactEnabledEmbedder embedder = new ArtifactEnabledEmbedder(); try { embedder.start( classWorld ); } catch ( PlexusContainerException e ) { showFatalError( "Unable to start the embedded plexus container", e, debug ); return 1; } Settings settings; try { MavenSettingsBuilder settingsBuilder = (MavenSettingsBuilder) embedder.lookup( MavenSettingsBuilder.ROLE ); settings = settingsBuilder.buildSettings(); } catch ( IOException e ) { showFatalError( "Unable to read settings.xml", e, debug ); return 1; } catch ( XmlPullParserException e ) { showFatalError( "Unable to read settings.xml", e, debug ); return 1; } catch ( ComponentLookupException e ) { showFatalError( "Unable to read settings.xml", e, debug ); return 1; } List projectFiles = null; try { projectFiles = getProjectFiles( commandLine ); } catch ( IOException e ) { showFatalError( "Error locating project files for reactor execution", e, debug ); return 1; } Maven maven = null; MavenExecutionRequest request = null; try { // logger must be created first LoggerManager manager = (LoggerManager) embedder.lookup( LoggerManager.ROLE ); if ( debug ) { manager.setThreshold( Logger.LEVEL_DEBUG ); } request = createRequest( projectFiles, embedder, commandLine, settings, eventDispatcher, manager ); maven = createMavenInstance( embedder ); } catch ( ComponentLookupException e ) { showFatalError( "Unable to configure the Maven application", e, debug ); return 1; } // TODO: this should be in default maven, and should accommodate default goals if ( request.getGoals().isEmpty() ) { System.err.println( "You must specify at least one goal. Try 'install'" ); cliManager.displayHelp(); return 1; } MavenExecutionResponse response = null; try { response = maven.execute( request ); } catch ( ReactorException e ) { showFatalError( "Error executing Maven for a project", e, debug ); return 1; } if ( response != null && response.isExecutionFailure() ) { return 1; } else { return 0; } }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/469f96a4f1aa4b5dc7ccfc0e75abdbd278902c44/MavenCli.java/clean/maven-core/src/main/java/org/apache/maven/cli/MavenCli.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 2774, 12, 514, 8526, 833, 16, 1659, 18071, 667, 18071, 262, 565, 288, 3639, 368, 8879, 13465, 3639, 368, 10939, 326, 1296, 980, 2082, 3639, 368, 8879, 13465, 3639, 8276, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 2774, 12, 514, 8526, 833, 16, 1659, 18071, 667, 18071, 262, 565, 288, 3639, 368, 8879, 13465, 3639, 368, 10939, 326, 1296, 980, 2082, 3639, 368, 8879, 13465, 3639, 8276, 1...
in.seek(500);
in.seek(200);
protected void initFile(String id) throws FormatException, IOException { close(); currentId = id; metadata = new Hashtable(); in = new RandomAccessFile(id, "r"); offsets = new Vector(); in.seek(500); // read a block of 100 characters, looking for the "BigEndian" pattern byte[] buf; boolean found = false; while (!found) { buf = new byte[100]; in.read(buf); String test = new String(buf); int ndx = test.indexOf("BigEndian"); if (ndx != -1) { found = true; String endian = test.substring(ndx + 11); if (endian.toLowerCase().endsWith("t")) littleEndian = false; else littleEndian = true; } } in.seek(500); // look for the first BinData element found = false; while (!found && in.getFilePointer() < in.length()) { buf = new byte[100]; in.read(buf); String test = new String(buf); int ndx = test.indexOf("<Bin"); if (ndx != -1) { if (ndx != test.indexOf("<Bin:External")) { found = true; offsets.add(new Integer((int) in.getFilePointer() - (100 - ndx))); } } } if (!found) { throw new FormatException("Pixel data not found"); } in.seek(0); buf = new byte[((Integer) offsets.get(0)).intValue()]; in.read(buf); String xml = new String(buf); xml += "</Pixels></Image></OME>"; // might lose some data this way ome = OMETools.createRoot(xml); int sizeX = 0; int sizeY = 0; if (ome != null) { String type = OMETools.getAttribute(ome, "Pixels", "PixelType"); if (type.endsWith("16")) bpp = 2; else if (type.endsWith("32")) bpp = 4; else if (type.equals("float")) bpp = 8; sizeX = Integer.parseInt(OMETools.getAttribute(ome, "Pixels", "SizeX")); sizeY = Integer.parseInt(OMETools.getAttribute(ome, "Pixels", "SizeY")); } else { throw new FormatException("To use this feature, please install the " + "loci.ome.xml package, available from http://www.loci.wisc.edu/ome/"); } // calculate the number of raw bytes of pixel data that we are expecting int expected = sizeX * sizeY * bpp; // find the compression type and adjust 'expected' accordingly in.seek(((Integer) offsets.get(0)).intValue()); buf = new byte[400]; in.read(buf); String data = new String(buf); int compressionStart = data.indexOf("Compression") + 13; int compressionEnd = data.indexOf("\"", compressionStart); if (compressionStart != -1 && compressionEnd != -1) { compression = data.substring(compressionStart, compressionEnd); } else compression = "none"; if (!compression.equals("none")) { expected /= 2; } int iteration = 0; while (in.getFilePointer() < in.length()) { in.skipBytes(expected); // look for next BinData element found = false; buf = new byte[100]; while (!found && in.getFilePointer() < in.length()) { in.read(buf); String test = new String(buf); int ndx = test.indexOf("<Bin"); if (ndx != -1) { found = true; offsets.add(new Integer((int) in.getFilePointer() - (100 - ndx))); } } iteration++; } numImages = offsets.size(); }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/137bd8244f4e1dceb947c73817898cd0728c5e1b/OMEXMLReader.java/clean/loci/formats/OMEXMLReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 1746, 5621, 565, 783, 548, 273, 612, 31, 565, 1982, 273, 394, 18559, 5621, 565, 316, 273, 394, 8072, 26933, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 1746, 5621, 565, 783, 548, 273, 612, 31, 565, 1982, 273, 394, 18559, 5621, 565, 316, 273, 394, 8072, 26933, ...
setupStyledElement( col, handle );
setupStyledElement( col, handle, STYLE_FLAG_PRIVATE );
public void visitColumn( ColumnHandle handle ) { // Create a Column, mostly used in Table or Grid ColumnDesign col = new ColumnDesign( ); setupStyledElement( col, handle ); //TODO we need handle the column alignment // Column Repetition col.setRepeat( handle.getRepeatCount( ) ); // Column Width DimensionType width = createDimension( handle.getWidth( ) ); col.setWidth( width ); currentElement = col; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/26e720886eb20318d2dd7875ea22a8e430dd3bf6/EngineIRVisitor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 1494, 12, 4753, 3259, 1640, 262, 202, 95, 202, 202, 759, 1788, 279, 4753, 16, 23958, 1399, 316, 3555, 578, 7145, 202, 202, 1494, 15478, 645, 273, 394, 4753, 15478, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 1494, 12, 4753, 3259, 1640, 262, 202, 95, 202, 202, 759, 1788, 279, 4753, 16, 23958, 1399, 316, 3555, 578, 7145, 202, 202, 1494, 15478, 645, 273, 394, 4753, 15478, ...
public boolean isFinal() { throw newIncompleteException("get attributes of"); }
public boolean isFinal() { throw newIncompleteException("get \"final\" attribute of"); }
public boolean isFinal() { throw newIncompleteException("get attributes of"); }
4887 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4887/aa81f88662d794497cc25109005d6dea3d561931/IncompleteClassInfo.java/clean/macker/src/net/innig/macker/structure/IncompleteClassInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 29200, 1435, 10402, 288, 604, 394, 27531, 503, 2932, 588, 1677, 434, 8863, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 29200, 1435, 10402, 288, 604, 394, 27531, 503, 2932, 588, 1677, 434, 8863, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
private void createSite(final IEditorReference ref, final IEditorPart part,
EditorSite createSite(final IEditorReference ref, final IEditorPart part,
private void createSite(final IEditorReference ref, final IEditorPart part, final EditorDescriptor desc, final IEditorInput input) throws PartInitException { EditorSite site = new EditorSite(ref, part, page, desc); if (desc != null) site.setActionBars(createEditorActionBars(desc)); else site.setActionBars(createEmptyEditorActionBars()); final String label = part.getTitle(); // debugging only try { try { UIStats.start(UIStats.INIT_PART, label); part.init(site, input); } finally { UIStats.end(UIStats.INIT_PART, part, label); } // Sanity-check the site if (part.getSite() != site || part.getEditorSite() != site) throw new PartInitException( NLS.bind(WorkbenchMessages.EditorManager_siteIncorrect, desc.getId() )); // // Sanity-check the editor input// IEditorInput actualInput = part.getEditorInput();// // if (actualInput != input)// throw new PartInitException(// NLS.bind(WorkbenchMessages.EditorManager_editorInputIncorrect, input.getName(), actualInput.getName() )); } catch (Exception e) { disposeEditorActionBars((EditorActionBars) site.getActionBars()); site.dispose(); if (e instanceof PartInitException) throw (PartInitException) e; throw new PartInitException(WorkbenchMessages.EditorManager_errorInInit, e); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/45ab2bee3420234882ba61c9b99fecd868b62e8f/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 18451, 4956, 752, 4956, 12, 6385, 467, 6946, 2404, 1278, 16, 727, 467, 6946, 1988, 1087, 16, 5411, 727, 18451, 3187, 3044, 16, 727, 467, 6946, 1210, 810, 13, 5411, 1216, 6393, 2570, 503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18451, 4956, 752, 4956, 12, 6385, 467, 6946, 2404, 1278, 16, 727, 467, 6946, 1988, 1087, 16, 5411, 727, 18451, 3187, 3044, 16, 727, 467, 6946, 1210, 810, 13, 5411, 1216, 6393, 2570, 503, ...
if(OperatingSystem.isMacOSLF() && shortcut != null)
if(OperatingSystem.hasScreenMenuBar() && shortcut != null)
public EnhancedMenuItem(String label, EditAction action) { this.action = action; this.shortcut = getShortcut(); if(OperatingSystem.isMacOSLF() && shortcut != null) { setText(label + " (" + shortcut + ")"); shortcut = null; } else setText(label); if(action != null) { setEnabled(true); addActionListener(new EditAction.Wrapper(action)); addMouseListener(new MouseHandler()); } else setEnabled(false); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/3aa2cc3a8f65ac8857f186c413b6af171c65635f/EnhancedMenuItem.java/buggy/org/gjt/sp/jedit/gui/EnhancedMenuItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1374, 17221, 12958, 12, 780, 1433, 16, 15328, 1803, 1301, 13, 202, 95, 202, 202, 2211, 18, 1128, 273, 1301, 31, 202, 202, 2211, 18, 24744, 273, 13157, 5150, 5621, 202, 202, 43...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1374, 17221, 12958, 12, 780, 1433, 16, 15328, 1803, 1301, 13, 202, 95, 202, 202, 2211, 18, 1128, 273, 1301, 31, 202, 202, 2211, 18, 24744, 273, 13157, 5150, 5621, 202, 202, 43...
try { ctx.eventProducer.produceEvent(new SimpleBlockPutEvent(chk.getClientKey())); if(!getCHKOnly) ctx.client.putCHK(chk, ctx.starterClient, ctx.cacheLocalRequests); } catch (LowLevelPutException e) { le = e;
int rnfs = 0; for(int i=0;i<=ctx.maxInsertRetries;i++) { try { ctx.eventProducer.produceEvent(new SimpleBlockPutEvent(chk.getClientKey())); if(!getCHKOnly) ctx.client.putCHK(chk, ctx.starterClient, ctx.cacheLocalRequests); break; } catch (LowLevelPutException e) { le = e; switch(le.code) { case LowLevelPutException.ROUTE_REALLY_NOT_FOUND: case LowLevelPutException.REJECTED_OVERLOAD: rnfs = 0; } if(noRetries) break; if(le.code == LowLevelPutException.ROUTE_NOT_FOUND && ctx.consecutiveRNFsCountAsSuccess > 0) { rnfs++; if(rnfs >= ctx.consecutiveRNFsCountAsSuccess) { le = null; break; } } }
private FreenetURI simplePutCHK(ClientCHKBlock chk, ClientMetadata clientMetadata, boolean getCHKOnly) throws InserterException { LowLevelPutException le = null; try { ctx.eventProducer.produceEvent(new SimpleBlockPutEvent(chk.getClientKey())); if(!getCHKOnly) ctx.client.putCHK(chk, ctx.starterClient, ctx.cacheLocalRequests); } catch (LowLevelPutException e) { le = e; } FreenetURI uri; if(clientMetadata == null || clientMetadata.isTrivial()) // Don't need a redirect for the metadata uri = chk.getClientKey().getURI(); else { // Do need a redirect for the metadata Metadata metadata = new Metadata(Metadata.SIMPLE_REDIRECT, chk.getClientKey().getURI(), clientMetadata); uri = putMetadataCHK(metadata, getCHKOnly); } if(le != null) translateException(le, uri); return uri; }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/f796d24f4aa09fbf23678d518365f0f1ee62e0ca/FileInserter.java/clean/src/freenet/client/FileInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 478, 2842, 278, 3098, 4143, 6426, 1792, 47, 12, 1227, 1792, 47, 1768, 15000, 16, 2445, 2277, 1004, 2277, 16, 1250, 336, 1792, 47, 3386, 13, 1216, 657, 550, 387, 503, 288, 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, 1152, 478, 2842, 278, 3098, 4143, 6426, 1792, 47, 12, 1227, 1792, 47, 1768, 15000, 16, 2445, 2277, 1004, 2277, 16, 1250, 336, 1792, 47, 3386, 13, 1216, 657, 550, 387, 503, 288, 202...
RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.getString("Workbench.openProject")); action.setToolTipText(IDEWorkbenchMessages.getString("Workbench.openProjectToolTip")); window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.project.openProject");
IWorkbenchAction innerAction = ActionFactory.NEW.create(window); IWorkbenchAction action = new NewWizardDropDownAction(window, innerAction); action.setId(getId());
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.getString("Workbench.openProject")); //$NON-NLS-1$ //$NON-NLS-2$ action.setToolTipText(IDEWorkbenchMessages.getString("Workbench.openProjectToolTip")); //$NON-NLS-1$ window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.project.openProject"); //$NON-NLS-1$ return action; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a28eb1ef10e772648cd789827e54d2e08b8df441/IDEActionFactory.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 1082, 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, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 1082, 2...
renWin.GetRenderer().AddActor(outlineActor);
GetRenderer().AddActor(outlineActor);
public void setImageData(vtkImageData id) { //The shared picker enables us to use 3 planes at one time //and gets the picking order right vtkCellPicker picker = new vtkCellPicker(); picker.SetTolerance(0.005); //The 3 image plane widgets are used to probe the dataset. vtkImagePlaneWidget planeWidgetX = new vtkImagePlaneWidget(); planeWidgetX.DisplayTextOn(); planeWidgetX.SetInput(id); planeWidgetX.SetInteractor(renWin.getIren()); planeWidgetX.SetPlaneOrientationToXAxes(); planeWidgetX.SetSliceIndex(32); planeWidgetX.SetPicker(picker); planeWidgetX.SetKeyPressActivationValue('x'); planeWidgetX.GetPlaneProperty().SetColor(1, 0, 0); planeWidgetX.On(); vtkImagePlaneWidget planeWidgetY = new vtkImagePlaneWidget(); planeWidgetY.DisplayTextOn(); planeWidgetY.SetInput(id); planeWidgetY.SetInteractor(renWin.getIren()); planeWidgetY.SetPlaneOrientationToYAxes(); planeWidgetY.SetSliceIndex(32); planeWidgetY.SetPicker(picker); planeWidgetY.SetKeyPressActivationValue('y'); planeWidgetY.GetPlaneProperty().SetColor(1, 1, 0); planeWidgetY.SetLookupTable(planeWidgetX.GetLookupTable()); planeWidgetY.On(); //for the z-slice, turn off texture interpolation: //interpolation is now nearest neighbour, to demonstrate //cross-hair cursor snapping to pixel centers vtkImagePlaneWidget planeWidgetZ = new vtkImagePlaneWidget(); planeWidgetZ.DisplayTextOn(); planeWidgetZ.SetInput(id); planeWidgetZ.TextureInterpolateOff(); planeWidgetZ.SetInteractor(renWin.getIren()); planeWidgetZ.SetPlaneOrientationToZAxes(); planeWidgetZ.SetSliceIndex(46); planeWidgetZ.SetPicker(picker); planeWidgetZ.SetKeyPressActivationValue('z'); planeWidgetZ.GetPlaneProperty().SetColor (0, 0, 1); planeWidgetZ.SetLookupTable(planeWidgetX.GetLookupTable()); planeWidgetZ.On(); //An outline is shown for context. vtkOutlineFilter outline = new vtkOutlineFilter(); outline.SetInput (id); vtkPolyDataMapper outlineMapper = new vtkPolyDataMapper(); outlineMapper.SetInput ( outline.GetOutput() ); vtkActor outlineActor = new vtkActor(); outlineActor.SetMapper(outlineMapper); renWin.GetRenderer().AddActor(outlineActor); //Add the outline actor to the renderer, set the background and size renWin.GetRenderer().GetCullers().RemoveAllItems(); renWin.GetRenderer().SetBackground(0.1, 0.1, 0.2); }
45477 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45477/a498c4a24d08be9a14ecb583bfc09eb98abb52e8/ImagePlaneWidget.java/clean/Wrapping/Java/ImagePlaneWidget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 18893, 751, 12, 11734, 79, 2040, 751, 612, 13, 288, 565, 368, 1986, 5116, 18141, 19808, 584, 358, 999, 890, 31634, 622, 1245, 813, 565, 368, 464, 5571, 326, 6002, 310, 1353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18893, 751, 12, 11734, 79, 2040, 751, 612, 13, 288, 565, 368, 1986, 5116, 18141, 19808, 584, 358, 999, 890, 31634, 622, 1245, 813, 565, 368, 464, 5571, 326, 6002, 310, 1353, ...
catch (StringIndexOutOfBoundsException ex)
catch (ArrayIndexOutOfBoundsException ex)
public void decodeMetacharacters() { try { decodeMetacharacters (0, this.length()); } catch (StringIndexOutOfBoundsException ex) { // Should never happen } }
1346 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1346/1f5b4bc234b50dd553323beab1cde897792d8ce7/XStringBuffer.java/buggy/src/org/clapper/util/text/XStringBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2495, 12244, 497, 297, 9202, 1435, 565, 288, 3639, 775, 3639, 288, 5411, 2495, 12244, 497, 297, 9202, 261, 20, 16, 333, 18, 2469, 10663, 3639, 289, 3639, 1044, 261, 1076, 30548...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2495, 12244, 497, 297, 9202, 1435, 565, 288, 3639, 775, 3639, 288, 5411, 2495, 12244, 497, 297, 9202, 261, 20, 16, 333, 18, 2469, 10663, 3639, 289, 3639, 1044, 261, 1076, 30548...
if (selectingView) {
if (selectedView != null) {
public void fill(Menu menu, int index) { // TODO Auto-generated method stub super.fill(menu, index); orientationItem = new MenuItem(menu, SWT.CASCADE, index++); { orientationItem.setText(WorkbenchMessages.FastViewBar_view_orientation); Menu orientationSwtMenu = new Menu(orientationItem); RadioMenu orientationMenu = new RadioMenu(orientationSwtMenu, currentOrientation); orientationMenu .addMenuItem( WorkbenchMessages.FastViewBar_horizontal, new Integer(SWT.HORIZONTAL)); orientationMenu .addMenuItem( WorkbenchMessages.FastViewBar_vertical, new Integer(SWT.VERTICAL)); orientationItem.setMenu(orientationSwtMenu); } restoreItem = new MenuItem(menu, SWT.CHECK, index++); restoreItem.setText(WorkbenchMessages.ViewPane_fastView); restoreItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { bar.restoreView(selectedView); } }); closeItem = new MenuItem(menu, SWT.NONE, index++); closeItem.setText(WorkbenchMessages.WorkbenchWindow_close); closeItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { if (selectedView != null) { WorkbenchPage page = bar.getWindow().getActiveWorkbenchPage(); if (page != null) { page.hideView(selectedView); } } } }); boolean selectingView = (selectedView != null); WorkbenchPage page = bar.getWindow().getActiveWorkbenchPage(); if (selectingView) { restoreItem.setEnabled(page!=null && page.isMoveable(selectedView)); } else { restoreItem.setEnabled(false); } restoreItem.setSelection(true); if (selectingView) { closeItem .setEnabled(page != null && page.isCloseable(selectedView)); } else { closeItem.setEnabled(false); } orientationItem.setEnabled(selectingView); if (selectingView) { // Set the new orientation, but avoid re-sending the event to our own // listener currentOrientation.set(bar.getOrientation(selectedView), orientationChangeListener); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a757d3b36b38a5a4ad0d10f0128d4188eecd198d/FastViewBarContextMenuContribution.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/FastViewBarContextMenuContribution.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3636, 12, 4599, 3824, 16, 509, 770, 13, 288, 3639, 368, 2660, 8064, 17, 11168, 707, 7168, 3639, 2240, 18, 5935, 12, 5414, 16, 770, 1769, 7734, 9820, 1180, 273, 394, 25085, 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, 918, 3636, 12, 4599, 3824, 16, 509, 770, 13, 288, 3639, 368, 2660, 8064, 17, 11168, 707, 7168, 3639, 2240, 18, 5935, 12, 5414, 16, 770, 1769, 7734, 9820, 1180, 273, 394, 25085, 12...
if ( useTabbedChat ) tabbedFrame.addTab( channel ); else SwingUtilities.invokeLater( new CreateFrameRunnable( ChatFrame.class, new String [] { channel } ) );
if ( shouldOpenWindow ) { if ( useTabbedChat ) tabbedFrame.addTab( channel ); else SwingUtilities.invokeLater( new CreateFrameRunnable( ChatFrame.class, new String [] { channel } ) ); }
public static void openInstantMessage( String channel ) { // If the window exists, don't open another one as it // just confuses the disposal issue if ( instantMessageBuffers.containsKey( channel ) ) return; try { if ( !isRunning ) return; LimitedSizeChatBuffer buffer = new LimitedSizeChatBuffer( KoLCharacter.getUsername() + ": " + channel + " - Started " + Calendar.getInstance().getTime().toString(), true, true ); instantMessageBuffers.put( channel, buffer ); if ( channel.startsWith( "/" ) ) currentlyActive.add( channel ); if ( useTabbedChat ) tabbedFrame.addTab( channel ); else SwingUtilities.invokeLater( new CreateFrameRunnable( ChatFrame.class, new String [] { channel } ) ); buffer.setActiveLogFile( getChatLogName( channel ) ); if ( highlighting && !channel.equals( "[highs]" ) ) buffer.applyHighlights(); } catch ( Exception e ) { // This should not happen. Therefore, print // a stack trace for debug purposes. printStackTrace( e ); } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/911ed726f6ce75312f8ab7bd0e47f2e813c1af17/KoLMessenger.java/clean/src/net/sourceforge/kolmafia/KoLMessenger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1696, 10675, 1079, 12, 514, 1904, 262, 202, 95, 202, 202, 759, 971, 326, 2742, 1704, 16, 2727, 1404, 1696, 4042, 1245, 487, 518, 202, 202, 759, 2537, 2195, 6117, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1696, 10675, 1079, 12, 514, 1904, 262, 202, 95, 202, 202, 759, 971, 326, 2742, 1704, 16, 2727, 1404, 1696, 4042, 1245, 487, 518, 202, 202, 759, 2537, 2195, 6117, 326...
public void set(org.quickfix.field.LegSymbol value)
public void set(quickfix.field.LegSymbol value)
public void set(org.quickfix.field.LegSymbol value) { setField(value); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusRequest.java/clean/src/java/src/quickfix/fix44/QuoteStatusRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 12, 19525, 904, 18, 1518, 18, 8329, 5335, 460, 13, 225, 288, 16331, 12, 1132, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 12, 19525, 904, 18, 1518, 18, 8329, 5335, 460, 13, 225, 288, 16331, 12, 1132, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
for (int i=0; i<3; i++) {
for (int i=0; i<3; i++) {
protected void initFile(String id) throws FormatException, IOException { if (noPOI || needLegacy) { legacy.initFile(id); return; } close(); currentId = id; metadata = new Hashtable(); pixels = new Hashtable(); names = new Hashtable(); offsets = new Hashtable(); zIndices = new Vector(); cIndices = new Vector(); tIndices = new Vector(); nImages = 0; try { ras = new RandomAccessStream(id); // Don't uncomment this block. Even though OIBReader has something // like this, it's really a bad idea here. Every ZVI file we have *will* // break if you uncomment it. // //if (ras.length() % 4096 != 0) { // ras.setExtend((4096 - (int) (ras.length() % 4096))); //} r.setVar("fis", ras); r.exec("fs = new POIFSFileSystem(fis)"); r.exec("dir = fs.getRoot()"); parseDir(0, r.getVar("dir")); zSize = zIndices.size(); tSize = tIndices.size(); nChannels *= cIndices.size(); sizeX = new int[1]; sizeY = new int[1]; sizeZ = new int[1]; sizeC = new int[1]; sizeT = new int[1]; pixelType = new int[1]; currentOrder = new String[1]; sizeX[0] = width; sizeY[0] = height; sizeZ[0] = zSize; sizeC[0] = nChannels; sizeT[0] = tSize; Object check = metadata.get("Image Channel Index"); if (check != null && !check.toString().trim().equals("")) { int[] dims = {sizeZ[0], sizeC[0], sizeT[0]}; int max = 0, min = Integer.MAX_VALUE, maxNdx = 0, minNdx = 0; String[] axes = {"Z", "C", "T"}; for (int i=0; i<dims.length; i++) { if (dims[i] > max) { max = dims[i]; maxNdx = i; } if (dims[i] < min) { min = dims[i]; minNdx = i; } } int medNdx = 0; for (int i=0; i<3; i++) { if (i != maxNdx && i != minNdx) medNdx = i; } currentOrder[0] = "XY" + axes[maxNdx] + axes[medNdx] + axes[minNdx]; if (sizeZ[0] == sizeC[0] && sizeC[0] == sizeT[0]) { currentOrder[0] = legacy.getDimensionOrder(id); } } else currentOrder[0] = (zSize > tSize) ? "XYCZT" : "XYCTZ"; } catch (Throwable t) { needLegacy = true; if (DEBUG) t.printStackTrace(); initFile(id); } try { initMetadata(); } catch (Exception e) { } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/3dfd59718bd357815b599f69b2fb792dc8c85b62/ZeissZVIReader.java/clean/loci/formats/in/ZeissZVIReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 309, 261, 2135, 2419, 45, 747, 1608, 12235, 13, 288, 1377, 8866, 18, 2738, 812, 12, 350, 1769, 1377, 327, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 309, 261, 2135, 2419, 45, 747, 1608, 12235, 13, 288, 1377, 8866, 18, 2738, 812, 12, 350, 1769, 1377, 327, ...
protected IClass getComponentType2() { throw new RuntimeException(); }
protected IClass getComponentType2() { throw new RuntimeException("SNO: Non-array type has no component type"); }
protected IClass getComponentType2() { throw new RuntimeException(); }
9453 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9453/9144825a0ce7c4e3f8cc307fff204eb4550cc555/UnitCompiler.java/buggy/janino/src/org/codehaus/janino/UnitCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 4750, 467, 797, 225, 23948, 22, 1435, 288, 604, 394, 3235, 5621, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 4750, 467, 797, 225, 23948, 22, 1435, 288, 604, 394, 3235, 5621, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...