rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if(!context.getSession().hasPermissionInCurrentConference(ConferencePermissions.WRITE_PERMISSION))
if(!context.getSession().hasPermissionInCurrentConference(ConferencePermissions.ADMIN_PERMISSION))
public void execute(Context context, String[] parameters) throws KOMException, IOException, InterruptedException { if(!context.getSession().hasPermissionInCurrentConference(ConferencePermissions.WRITE_PERMISSION)) throw new AuthorizationException(); // Get editor and execute it // UnstoredMessage msg = context.getMessageEditor().edit(context, -1); // Store text // MessageOccurrence occ = context.getSession().storeRulePosting(msg); context.getOut().println(context.getMessageFormatter().format( "write.message.saved", new Integer(occ.getLocalnum()))); }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/a6bfa954ccee4885c74da6e2ef0960494e311298/WriteRules.java/clean/kom/java/nu/rydin/kom/frontend/text/commands/WriteRules.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 1042, 819, 16, 514, 8526, 1472, 13, 202, 15069, 1475, 1872, 503, 16, 1860, 16, 7558, 225, 202, 95, 202, 202, 430, 12, 5, 2472, 18, 588, 2157, 7675, 5332, 5041...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 1042, 819, 16, 514, 8526, 1472, 13, 202, 15069, 1475, 1872, 503, 16, 1860, 16, 7558, 225, 202, 95, 202, 202, 430, 12, 5, 2472, 18, 588, 2157, 7675, 5332, 5041...
return encoding.append(contentLengthHeader.encode()).append(NEWLINE).toString();
return encoding.append(contentLengthHeader.encode()).append(NEWLINE) .toString();
protected String encodeSIPHeaders() { StringBuffer encoding = new StringBuffer(); synchronized (this.headers) { ListIterator it = this.headers.listIterator(); while (it.hasNext()) { SIPHeader siphdr = (SIPHeader) it.next(); if (!(siphdr instanceof ContentLength)) encoding.append(siphdr.encode()); } } return encoding.append(contentLengthHeader.encode()).append(NEWLINE).toString(); }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/SIPMessage.java/clean/trunk/src/gov/nist/javax/sip/message/SIPMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 2017, 17739, 3121, 1435, 225, 288, 202, 202, 780, 1892, 2688, 273, 394, 6674, 5621, 202, 202, 22043, 261, 2211, 18, 2485, 13, 288, 1082, 202, 682, 3198, 518, 273, 333, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 2017, 17739, 3121, 1435, 225, 288, 202, 202, 780, 1892, 2688, 273, 394, 6674, 5621, 202, 202, 22043, 261, 2211, 18, 2485, 13, 288, 1082, 202, 682, 3198, 518, 273, 333, 1...
public void testCodeDuplicatesWithMultExitPoints() throws Exception { doDuplicatesTest(); }
public void testCodeDuplicatesWithMultExitPoints() throws Exception { doDuplicatesTest(); }
public void testCodeDuplicatesWithMultExitPoints() throws Exception { doDuplicatesTest(); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/6646dd9633fcb68a3c300eac3681179bd2eb2d9d/ExtractMethodTest.java/buggy/refactoring/tests/com/intellij/refactoring/ExtractMethodTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1085, 23897, 1190, 5049, 6767, 5636, 1435, 1216, 1185, 288, 741, 23897, 4709, 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...
[ 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1085, 23897, 1190, 5049, 6767, 5636, 1435, 1216, 1185, 288, 741, 23897, 4709, 5621, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";");
ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";");
protected void openConnection(String host, int port, Properties info, String database, String url, Driver d) throws SQLException { // Throw an exception if the user or password properties are missing // This occasionally occurs when the client uses the properties version // of getConnection(), and is a common question on the email lists if(info.getProperty("user")==null) throw new PSQLException("postgresql.con.user"); if(info.getProperty("password")==null) throw new PSQLException("postgresql.con.pass"); this_driver = d; this_url = url; PG_DATABASE = database; PG_PASSWORD = info.getProperty("password"); PG_USER = info.getProperty("user"); PG_PORT = port; PG_HOST = host; PG_STATUS = CONNECTION_BAD; if(info.getProperty("compatible")==null) { compatible = d.getMajorVersion() + "." + d.getMinorVersion(); } else { compatible = info.getProperty("compatible"); } // Now make the initial connection try { pg_stream = new PG_Stream(host, port); } catch (ConnectException cex) { // Added by Peter Mount <peter@retep.org.uk> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed",e); } // Now we need to construct and send a startup packet try { // Ver 6.3 code pg_stream.SendInteger(4+4+SM_DATABASE+SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY,4); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MAJOR,2); pg_stream.SendInteger(PG_PROTOCOL_LATEST_MINOR,2); pg_stream.Send(database.getBytes(),SM_DATABASE); // This last send includes the unused fields pg_stream.Send(PG_USER.getBytes(),SM_USER+SM_OPTIONS+SM_UNUSED+SM_TTY); // now flush the startup packets to the backend pg_stream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new SQLException(pg_stream.ReceiveString(encoding)); case 'R': // Get the type of request areq = pg_stream.ReceiveIntegerR(4); // Get the password salt if there is one if(areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pg_stream.ReceiveChar(); rst[1] = (byte)pg_stream.ReceiveChar(); salt = new String(rst,0,2); DriverManager.println("Salt="+salt); } // now send the auth packet switch(areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: DriverManager.println("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: DriverManager.println("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_PASSWORD: DriverManager.println("postgresql: PASSWORD"); pg_stream.SendInteger(5+PG_PASSWORD.length(),4); pg_stream.Send(PG_PASSWORD.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; case AUTH_REQ_CRYPT: DriverManager.println("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt,PG_PASSWORD); pg_stream.SendInteger(5+crypted.length(),4); pg_stream.Send(crypted.getBytes()); pg_stream.SendInteger(0,1); pg_stream.flush(); break; default: throw new PSQLException("postgresql.con.auth",new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while(areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed",e); } // As of protocol version 2.0, we should now receive the cancellation key and the pid int beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'K': pid = pg_stream.ReceiveInteger(4); ckey = pg_stream.ReceiveInteger(4); break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } // Expect ReadyForQuery packet beresp = pg_stream.ReceiveChar(); switch(beresp) { case 'Z': break; case 'E': case 'N': throw new SQLException(pg_stream.ReceiveString(encoding)); default: throw new PSQLException("postgresql.con.setup"); } firstWarning = null; // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. java.sql.ResultSet resultSet = ExecSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, info.getProperty("charSet")); // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup firstWarning = null; PG_STATUS = CONNECTION_OK; }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/721d3603b02b0b9a8010214e0dc2356f60ef94ba/Connection.java/clean/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24982, 12, 780, 1479, 16, 509, 1756, 16, 6183, 1123, 16, 514, 2063, 16, 514, 880, 16, 9396, 302, 13, 1216, 6483, 565, 288, 565, 368, 3743, 392, 1520, 309, 326, 729, 578, 22...
public Templates getTemplates() { try { // Create a placeholder for the translet bytecodes byte[][] bytecodes = null; final XSLTC xsltc = getXSLTC(); // Set the translet class name if not already set String transletName = TransformerFactoryImpl._defaultTransletName; if (_systemId != null) transletName = Util.baseName(_systemId); xsltc.setClassName(transletName); Stylesheet stylesheet = null; SyntaxTreeNode root = getDocumentRoot(); // Compile the translet - this is where the work is done! if ((!errorsFound()) && (root != null)) { // Create a Stylesheet element from the root node stylesheet = makeStylesheet(root); stylesheet.setSystemId(_systemId); stylesheet.setParentStylesheet(null); setCurrentStylesheet(stylesheet); // Create AST under the Stylesheet element (parse & type-check) createAST(stylesheet); } // Generate the bytecodes and output the translet class(es) if ((!errorsFound()) && (stylesheet != null)) { stylesheet.setMultiDocument(xsltc.isMultiDocument()); stylesheet.translate(); } xsltc.printWarnings(); // Check that the transformation went well before returning if (bytecodes == null) { xsltc.printErrors(); return null; } return(new TemplatesImpl(bytecodes, transletName)); } catch (CompilerException e) { return null; } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/dd0a6ddfea825401bcffb7dd8864837a082ae550/TemplatesHandlerImpl.java/clean/src/org/apache/xalan/xsltc/trax/TemplatesHandlerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 8218, 588, 8218, 1435, 95, 202, 698, 95, 202, 759, 1684, 69, 12988, 1884, 451, 16354, 634, 1810, 1637, 14537, 1145, 202, 7229, 63, 6362, 65, 1637, 14537, 1145, 33, 2011, 31, 202, 6385, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8218, 588, 8218, 1435, 95, 202, 698, 95, 202, 759, 1684, 69, 12988, 1884, 451, 16354, 634, 1810, 1637, 14537, 1145, 202, 7229, 63, 6362, 65, 1637, 14537, 1145, 33, 2011, 31, 202, 6385, ...
try { displayValueModel.removeValueChangeListener(this); displayValueModel.setValue(newValue); } finally { displayValueModel.addValueChangeListener(this); }
displayValueModel.setValueSilently(newValue, valueModelChangeHandler);
protected void componentValueChanged(Object newValue) { if (displayValueModel != null) { try { displayValueModel.removeValueChangeListener(this); displayValueModel.setValue(newValue); } finally { displayValueModel.addValueChangeListener(this); } } }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/5ec19649d881a3bcff846f9ee381f25c8ee1943f/AbstractValueSetter.java/buggy/src/org/springframework/richclient/forms/AbstractValueSetter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1794, 620, 5033, 12, 921, 6129, 13, 288, 3639, 309, 261, 5417, 620, 1488, 480, 446, 13, 288, 5411, 775, 288, 7734, 2562, 620, 1488, 18, 4479, 620, 15744, 12, 2211, 1769, 7734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1794, 620, 5033, 12, 921, 6129, 13, 288, 3639, 309, 261, 5417, 620, 1488, 480, 446, 13, 288, 5411, 775, 288, 7734, 2562, 620, 1488, 18, 4479, 620, 15744, 12, 2211, 1769, 7734...
HTML_TEMPLATE ="Conf_admin_forum.htm" ;
HTML_TEMPLATE ="Conf_Fdmin_Forum.htm" ;
public void init(ServletConfig config) throws ServletException { super.init(config); HTML_TEMPLATE ="Conf_admin_forum.htm" ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/6934bc95fe9bb7541280495513f06cf7d0206d59/ConfAdmin.java/clean/servlets/conf/ConfAdmin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 4745, 809, 642, 13, 1216, 16517, 288, 202, 202, 9565, 18, 2738, 12, 1425, 1769, 202, 202, 4870, 67, 12205, 273, 6, 3976, 67, 3666, 67, 11725, 18, 31180, 6, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 12, 4745, 809, 642, 13, 1216, 16517, 288, 202, 202, 9565, 18, 2738, 12, 1425, 1769, 202, 202, 4870, 67, 12205, 273, 6, 3976, 67, 3666, 67, 11725, 18, 31180, 6, 27...
if (jj_scan_token(STATIC)) return true;
if (jj_scan_token(PRIVATE)) return true;
final private boolean jj_3R_328() { if (jj_scan_token(STATIC)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 1578, 28, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 20055, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 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, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 1578, 28, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 20055, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 59...
String fileName = artifact.getArtifactId() + useClassifier + "-" + artifact.getVersion() + "." + useType;
String fileName = artifact.getArtifactId() + "-" + artifact.getVersion() + useClassifier + "." + useType;
public void dotestCopyDependenciesMojoClassifierType( String testClassifier, String testType ) throws Exception { mojo.classifier = testClassifier; mojo.type = testType; // init classifier things mojo.setFactory( DependencyTestUtils.getArtifactFactory() ); mojo.setResolver( new StubArtifactResolver( stubFactory, false, false ) ); mojo.setLocal( new StubArtifactRepository( this.testDir.getAbsolutePath() ) ); mojo.execute(); Iterator iter = mojo.project.getArtifacts().iterator(); while ( iter.hasNext() ) { Artifact artifact = (Artifact) iter.next(); String useClassifier = artifact.getClassifier(); String useType = artifact.getType(); if ( StringUtils.isNotEmpty( testClassifier ) ) { useClassifier = "-" + testClassifier; // type is only used if classifier is used. if ( StringUtils.isNotEmpty( testType ) ) { useType = testType; } } String fileName = artifact.getArtifactId() + useClassifier + "-" + artifact.getVersion() + "." + useType; File file = new File( mojo.outputDirectory, fileName ); if ( !file.exists() ) { fail( "Can't find:" + file.getAbsolutePath() ); } // there should be no markers for the copy mojo assertNoMarkerFile( artifact ); } }
57869 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57869/800e4e58435bb81afa14cfd9f11ac92fb857f594/TestCopyDependenciesMojo.java/clean/src/test/java/org/apache/maven/plugin/dependency/TestCopyDependenciesMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3928, 395, 2951, 8053, 49, 10007, 13860, 559, 12, 514, 1842, 13860, 16, 514, 1842, 559, 262, 3639, 1216, 1185, 565, 288, 3639, 312, 10007, 18, 1106, 1251, 273, 1842, 13860, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3928, 395, 2951, 8053, 49, 10007, 13860, 559, 12, 514, 1842, 13860, 16, 514, 1842, 559, 262, 3639, 1216, 1185, 565, 288, 3639, 312, 10007, 18, 1106, 1251, 273, 1842, 13860, 31,...
Properties props = this.getTaskProperties(); String startTimeStr = props.getProperty("startTime"); if(startTimeStr != null) { this.startTimeDesc = startTimeStr; } String intervalStr = props.getProperty("interval"); if(intervalStr != null) { try { this.interval = Integer.parseInt(intervalStr); } catch (NumberFormatException ex) { log.warn("Invalid interval: "+intervalStr); } } String leaseTimeStr = props.getProperty("leaseTime"); if(leaseTimeStr != null) { try { this.leaseTime = Integer.parseInt(leaseTimeStr); } catch (NumberFormatException ex) { log.warn("Invalid leaseTime: "+leaseTimeStr); } }
public void init() throws RollerException { // no-op }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/faedc9c929b01e3d08cb73fb67b3ea162ddc6146/RefreshEntriesTask.java/buggy/src/org/apache/roller/planet/tasks/RefreshEntriesTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 6183, 3458, 273, 333, 18, 588, 2174, 2297, 5621, 282, 514, 8657, 1585, 273, 3458, 18, 588, 1396, 2932, 1937, 950, 8863, 309, 12, 1937, 950, 1585, 480, 446, 13, 288, 333, 18, 1937, 950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6183, 3458, 273, 333, 18, 588, 2174, 2297, 5621, 282, 514, 8657, 1585, 273, 3458, 18, 588, 1396, 2932, 1937, 950, 8863, 309, 12, 1937, 950, 1585, 480, 446, 13, 288, 333, 18, 1937, 950, ...
if (dcTypeRow==null)
if (dcTypeRow == null)
public void update() throws SQLException, AuthorizeException { // FIXME: Check authorisation DatabaseManager.update(ourContext, itemRow); // Redo bundle mappings if they've changed if (bundlesChanged) { // Remove any existing mappings DatabaseManager.updateQuery(ourContext, "delete from item2bundle where item_id=" + getID()); // Add new mappings Iterator i = bundles.iterator(); while (i.hasNext()) { Bundle b = (Bundle) i.next(); TableRow mappingRow = DatabaseManager.create(ourContext, "item2bundle"); mappingRow.setColumn("bundle_id", b.getID()); mappingRow.setColumn("item_id", getID()); DatabaseManager.update(ourContext,mappingRow); } bundlesChanged = false; } // Redo Dublin Core if it's changed if (dublinCoreChanged) { // Remove existing DC removeDCFromDatabase(); // Add in-memory DC Iterator i = dublinCore.iterator(); while (i.hasNext()) { DCValue dcv = (DCValue) i.next(); // Get the DC Type // FIXME: Maybe should use RegistryManager? String query = "select * from dctyperegistry where element " + "LIKE \"" + dcv.element + "\" AND qualifier" + (dcv.qualifier==null ? "=null" : " LIKE \"" + dcv.qualifier + "\"") + ";"; TableRow dcTypeRow = DatabaseManager.querySingle(ourContext, "dctyperegistry", query); if (dcTypeRow==null) { // Bad DC field // FIXME: An error? log.warn(LogManager.getHeader(ourContext, "bad_dc", "Bad DC field. element: \"" + (dcv.element==null ? "null" : dcv.element) + "\" qualifier: \"" + (dcv.qualifier==null ? "null" : dcv.qualifier) + "\" value: \"" + (dcv.value==null ? "null" : dcv.value) + "\"")); } else { // Write DCValue TableRow valueRow = DatabaseManager.create(ourContext, "dcvalue"); valueRow.setColumn("text_value", dcv.value); valueRow.setColumn("text_lang", dcv.language); DatabaseManager.update(ourContext, valueRow); // Write mapping TableRow mappingRow = DatabaseManager.create(ourContext, "item2dcvalue"); mappingRow.setColumn("item_id", getID()); mappingRow.setColumn("dc_value_id", valueRow.getIntColumn("dc_value_id")); mappingRow.setColumn("dc_type_id", dcTypeRow.getIntColumn("dc_type_id")); DatabaseManager.update(ourContext, mappingRow); } } dublinCoreChanged = false; } }
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/85c7430ba7691f831fafc420459d280408310eb9/Item.java/clean/dspace/src/org/dspace/content/Item.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 1435, 3639, 1216, 6483, 16, 23859, 503, 565, 288, 3639, 368, 9852, 30, 2073, 2869, 10742, 7734, 5130, 1318, 18, 2725, 12, 477, 1042, 16, 761, 1999, 1769, 7734, 368, 4621,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 1435, 3639, 1216, 6483, 16, 23859, 503, 565, 288, 3639, 368, 9852, 30, 2073, 2869, 10742, 7734, 5130, 1318, 18, 2725, 12, 477, 1042, 16, 761, 1999, 1769, 7734, 368, 4621,...
DirectoryDialog dialog = new DirectoryDialog(getShell()); dialog.setText(IDEWorkbenchMessages.ChooseWorkspaceDialog_directoryBrowserTitle); dialog.setMessage(IDEWorkbenchMessages.ChooseWorkspaceDialog_directoryBrowserMessage); dialog.setFilterPath(getInitialBrowsePath()); String dir = dialog.open(); if (dir != null) { text.setText(dir); }
launchData.toggleShowDialog();
public void widgetSelected(SelectionEvent e) { DirectoryDialog dialog = new DirectoryDialog(getShell()); dialog.setText(IDEWorkbenchMessages.ChooseWorkspaceDialog_directoryBrowserTitle); dialog.setMessage(IDEWorkbenchMessages.ChooseWorkspaceDialog_directoryBrowserMessage); dialog.setFilterPath(getInitialBrowsePath()); String dir = dialog.open(); if (dir != null) { text.setText(dir); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/55e5bc12ba418f085217b187070cd25cb5c6c51e/ChooseWorkspaceDialog.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 8930, 6353, 6176, 273, 394, 8930, 6353, 12, 588, 13220, 10663, 7734, 6176, 18, 542, 1528, 12, 10385, 2421, 22144, 5058, 18, 245...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 8930, 6353, 6176, 273, 394, 8930, 6353, 12, 588, 13220, 10663, 7734, 6176, 18, 542, 1528, 12, 10385, 2421, 22144, 5058, 18, 245...
Iterator<WorkSchedule> workSchedulesIt = getWorkSchedulesIterator();
public WorkSchedule workScheduleWithDate(YearMonthDay date) { Iterator<WorkSchedule> workSchedulesIt = getWorkSchedulesIterator(); int weekNumber = getValidIntervalWeekNumberOfDate(date); while (workSchedulesIt.hasNext()) { WorkSchedule workSchedule = workSchedulesIt.next(); if (workSchedule.isDefinedInDate(date, weekNumber)) { return workSchedule; } } return null; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/2148a82d40be3ca9c714470d990c2702c189337a/Schedule.java/buggy/src/net/sourceforge/fenixedu/domain/assiduousness/Schedule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4147, 6061, 1440, 6061, 1190, 1626, 12, 5593, 5445, 4245, 1509, 13, 288, 9079, 509, 4860, 1854, 273, 22574, 4006, 6630, 9226, 1626, 12, 712, 1769, 3639, 1323, 261, 1252, 27073, 7193, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4147, 6061, 1440, 6061, 1190, 1626, 12, 5593, 5445, 4245, 1509, 13, 288, 9079, 509, 4860, 1854, 273, 22574, 4006, 6630, 9226, 1626, 12, 712, 1769, 3639, 1323, 261, 1252, 27073, 7193, ...
else {
else if (!psm.isAction()) {
public void setRuntimeData(ChannelRuntimeData rd, String uid) throws PortalException { ChannelState channelState = (ChannelState)channelStateMap.get(uid); channelState.setRuntimeData(rd); ChannelStaticData sd = channelState.getStaticData(); ChannelData cd = channelState.getChannelData(); try { PortletContainerServices.prepare(uniqueContainerName); if (cd.isPortletWindowInitialized() && !cd.hasProcessedAction()) { PortalControlStructures pcs = channelState.getPortalControlStructures(); HttpServletRequest wrappedRequest = new ServletRequestImpl(pcs.getHttpServletRequest(), sd.getPerson(), cd.getPortletWindow().getPortletEntity().getPortletDefinition().getInitSecurityRoleRefSet()); //Set up request attributes (user info, portal session, etc...) setupRequestAttributes(wrappedRequest, uid); // Put the current runtime data and wrapped request into the portlet window PortletWindowImpl portletWindow = (PortletWindowImpl)cd.getPortletWindow(); portletWindow.setChannelRuntimeData(rd); portletWindow.setHttpServletRequest(wrappedRequest); // Get the portlet url manager which will analyze the request parameters DynamicInformationProvider dip = InformationProviderAccess.getDynamicProvider(wrappedRequest); PortletStateManager psm = ((DynamicInformationProviderImpl)dip).getPortletStateManager(portletWindow); PortletActionProvider pap = dip.getPortletActionProvider(portletWindow); //If portlet is rendering as root, change mode to maximized, otherwise minimized WindowState newWindowState = cd.getNewWindowState(); if (rd.isRenderingAsRoot()) { if (WindowState.MINIMIZED.equals(newWindowState)) { pap.changePortletWindowState(WindowState.MINIMIZED); } else { pap.changePortletWindowState(WindowState.MAXIMIZED); } } else if (newWindowState != null) { pap.changePortletWindowState(newWindowState); } else { pap.changePortletWindowState(WindowState.NORMAL); } cd.setNewWindowState(null); PortletMode newMode = cd.getNewPortletMode(); if (newMode != null) { pap.changePortletMode(newMode); } cd.setNewPortletMode(null); // Process action if this is the targeted channel and the URL is an action URL if (rd.isTargeted() && psm.isAction()) { try { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); HttpServletResponse wrappedResponse = ServletObjectAccess.getStoredServletResponse(pcs.getHttpServletResponse(), pw); wrappedRequest = new PortletParameterRequestWrapper(wrappedRequest); portletContainer.processPortletAction(portletWindow, wrappedRequest, wrappedResponse); InternalActionResponse actionResponse = (InternalActionResponse)PortletObjectAccess.getActionResponse(cd.getPortletWindow(), pcs.getHttpServletRequest(), pcs.getHttpServletResponse()); cd.setProcessedAction(true); } catch (Exception e) { throw new PortalException(e); } } } } finally { PortletContainerServices.release(); } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/c69255d356b8cbdd07f52eb21bc24f81e650345f/CPortletAdapter.java/clean/source/org/jasig/portal/channels/portlet/CPortletAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 5576, 751, 12, 2909, 5576, 751, 9437, 16, 514, 4555, 13, 1216, 25478, 503, 288, 3639, 5307, 1119, 1904, 1119, 273, 261, 2909, 1119, 13, 4327, 1119, 863, 18, 588, 12, 191...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 5576, 751, 12, 2909, 5576, 751, 9437, 16, 514, 4555, 13, 1216, 25478, 503, 288, 3639, 5307, 1119, 1904, 1119, 273, 261, 2909, 1119, 13, 4327, 1119, 863, 18, 588, 12, 191...
this.layoutMasterSet.addPageSequenceMaster(pm, this);
this.layoutMasterSet.addPageSequenceMaster(masterName, this);
public void handleAttrs(Attributes attlist) throws FOPException { super.handleAttrs(attlist); subSequenceSpecifiers = new java.util.ArrayList(); if (parent.getName().equals("fo:layout-master-set")) { this.layoutMasterSet = (LayoutMasterSet)parent; String pm = this.propertyList.get(Constants.PR_MASTER_NAME).getString(); if (pm == null) { getLogger().warn("page-sequence-master does not have " + "a master-name and so is being ignored"); } else { this.layoutMasterSet.addPageSequenceMaster(pm, this); } } else { throw new FOPException("fo:page-sequence-master must be child " + "of fo:layout-master-set, not " + parent.getName()); } }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/03da955c7247a1724dc41dff404168dc6a271603/PageSequenceMaster.java/clean/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 8262, 12, 2498, 2403, 1098, 13, 1216, 478, 3665, 503, 288, 3639, 2240, 18, 4110, 8262, 12, 4558, 1098, 1769, 3639, 720, 4021, 1990, 3383, 273, 394, 2252, 18, 1367, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 8262, 12, 2498, 2403, 1098, 13, 1216, 478, 3665, 503, 288, 3639, 2240, 18, 4110, 8262, 12, 4558, 1098, 1769, 3639, 720, 4021, 1990, 3383, 273, 394, 2252, 18, 1367, 18, ...
str = new String(seg.array,seg.offset + offset,length);
visible = true; String str = new String(seg.array,seg.offset + offset,length);
public void init(Segment seg, TabExpander expander, float x, SyntaxStyle[] styles, FontRenderContext fontRenderContext, byte defaultID) { initialized = true; style = styles[(id == Token.WHITESPACE || id == Token.TAB) ? defaultID : id]; if(length == 1 && seg.array[seg.offset + offset] == '\t') { float newX = expander.nextTabStop(x,offset + length); width = newX - x; } else { str = new String(seg.array,seg.offset + offset,length); gv = style.getFont().createGlyphVector( fontRenderContext,str); width = (float)gv.getLogicalBounds().getWidth(); positions = gv.getGlyphPositions(0,length,null); } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/f5a7dd60ee5ab9b0da4d3b82323b124c8a641562/Chunk.java/buggy/org/gjt/sp/jedit/syntax/Chunk.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 4131, 2291, 16, 9483, 12271, 264, 4542, 264, 16, 1431, 619, 16, 202, 202, 8070, 2885, 8526, 5687, 16, 10063, 3420, 1042, 3512, 3420, 1042, 16, 202, 202, 7229, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 4131, 2291, 16, 9483, 12271, 264, 4542, 264, 16, 1431, 619, 16, 202, 202, 8070, 2885, 8526, 5687, 16, 10063, 3420, 1042, 3512, 3420, 1042, 16, 202, 202, 7229, 8...
else {
else if ((is.getSystemId() != null && is.getSystemId().length() > 0) || (is.getPublicId() != null && is.getPublicId().length() > 0)) {
XMLInputSource dom2xmlInputSource (LSInput is) { // need to wrap the LSInput with an XMLInputSource XMLInputSource xis = null; // if there is a string data, use a StringReader // according to DOM, we need to treat such data as "UTF-16". if (is.getStringData () != null) { xis = new XMLInputSource (is.getPublicId (), is.getSystemId (), is.getBaseURI (), new StringReader (is.getStringData ()), "UTF-16"); } // check whether there is a Reader // according to DOM, we need to treat such reader as "UTF-16". else if (is.getCharacterStream () != null) { xis = new XMLInputSource (is.getPublicId (), is.getSystemId (), is.getBaseURI (), is.getCharacterStream (), "UTF-16"); } // check whether there is an InputStream else if (is.getByteStream () != null) { xis = new XMLInputSource (is.getPublicId (), is.getSystemId (), is.getBaseURI (), is.getByteStream (), is.getEncoding ()); } // otherwise, just use the public/system/base Ids else { xis = new XMLInputSource (is.getPublicId (), is.getSystemId (), is.getBaseURI ()); } return xis; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/3256f11ee4dfe8a7c8fe1cf0242b8db68a1300c6/DOMParserImpl.java/clean/src/org/apache/xerces/parsers/DOMParserImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3167, 1210, 1830, 4092, 22, 2902, 1210, 1830, 261, 3045, 1210, 353, 13, 288, 3639, 368, 1608, 358, 2193, 326, 29204, 1210, 598, 392, 3167, 1210, 1830, 3639, 3167, 1210, 1830, 619, 291, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3167, 1210, 1830, 4092, 22, 2902, 1210, 1830, 261, 3045, 1210, 353, 13, 288, 3639, 368, 1608, 358, 2193, 326, 29204, 1210, 598, 392, 3167, 1210, 1830, 3639, 3167, 1210, 1830, 619, 291, 27...
detectors[count++] = makeDetector((Class) i.next());
detectors[count++] = makeDetector(i.next());
private void createDetectors() { if (detectorNames == null) { // Detectors were not named explicitly on command line, // so create all of them. detectors = new Detector[factories.size()]; Iterator i = factories.iterator(); int count = 0; while (i.hasNext()) detectors[count++] = makeDetector((Class) i.next()); } else { // Detectors were named explicitly on command line. if (!omit) { // Create only named detectors. detectors = new Detector[detectorNames.size()]; Iterator i = detectorNames.iterator(); int count = 0; while (i.hasNext()) { String name = (String) i.next(); Class factory = (Class) factoriesByName.get(name); if (factory == null) throw new IllegalArgumentException("No such detector: " + name); detectors[count++] = makeDetector(factory); } } else { // Create all detectors EXCEPT named detectors. int numDetectors = factories.size() - detectorNames.size(); detectors = new Detector[numDetectors]; Iterator i = factories.iterator(); int count = 0; while (i.hasNext()) { Class factory = (Class) i.next(); String name = (String) namesByFactory.get(factory); if (!detectorNames.contains(name)) { // Add the detector. if (count == detectors.length) throw new IllegalArgumentException("bad omit list - nonexistent or duplicate detector specified?"); detectors[count++] = makeDetector(factory); } } if (count != numDetectors) throw new IllegalStateException(); } } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/94368608b455a5b815ddfbae07f49db15fe493c9/FindBugs.java/clean/findbugs/src/java/edu/umd/cs/findbugs/FindBugs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 752, 12594, 87, 1435, 288, 565, 309, 261, 8238, 1229, 1557, 422, 446, 13, 288, 202, 759, 8083, 18886, 4591, 486, 4141, 8122, 603, 1296, 980, 16, 202, 759, 1427, 752, 777, 434...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 12594, 87, 1435, 288, 565, 309, 261, 8238, 1229, 1557, 422, 446, 13, 288, 202, 759, 8083, 18886, 4591, 486, 4141, 8122, 603, 1296, 980, 16, 202, 759, 1427, 752, 777, 434...
ISelection selection = super.getSelection(); List selections = new ArrayList(1); IStructuredSelection structuredSelection = (IStructuredSelection) selection; Iterator elements = structuredSelection.iterator(); while (elements.hasNext()) { AbstractEditPart editPart = (AbstractEditPart) elements.next(); if (editPart.getModel() == null) { return StructuredSelection.EMPTY; } if (editPart.getModel() instanceof IGraphItem) { IGraphItem item = (IGraphItem) editPart.getModel(); if (!(item instanceof GraphModel)) { selections.add(item.getData()); } } }
List selections = getSelectedModelElements();
public ISelection getSelection() { ISelection selection = super.getSelection(); List selections = new ArrayList(1); IStructuredSelection structuredSelection = (IStructuredSelection) selection; Iterator elements = structuredSelection.iterator(); // Loop through all selected elements and get the user data for these while (elements.hasNext()) { AbstractEditPart editPart = (AbstractEditPart) elements.next(); if (editPart.getModel() == null) { return StructuredSelection.EMPTY; } if (editPart.getModel() instanceof IGraphItem) { IGraphItem item = (IGraphItem) editPart.getModel(); if (!(item instanceof GraphModel)) { selections.add(item.getData()); } } } // If nothing is selected just return null. what should happen on an // unselection? if ( selections.size() == 0 ) return StructuredSelection.EMPTY; return new StructuredSelection( selections ); }
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/7f2d7fd0bf214c7df05120581bef84457b3487aa/ZestSelectionManager.java/buggy/org.eclipse.zest.core/src/org/eclipse/zest/core/internal/graphviewer/ZestSelectionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 6233, 23204, 1435, 288, 202, 202, 45, 6233, 4421, 273, 2240, 18, 588, 6233, 5621, 202, 202, 682, 21738, 273, 394, 2407, 12, 21, 1769, 202, 202, 45, 30733, 6233, 19788, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 6233, 23204, 1435, 288, 202, 202, 45, 6233, 4421, 273, 2240, 18, 588, 6233, 5621, 202, 202, 682, 21738, 273, 394, 2407, 12, 21, 1769, 202, 202, 45, 30733, 6233, 19788, 62...
throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS, "Boolean" );
throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS, new Object[]{ source.toString( ), "Boolean" } );
public static Boolean toBoolean( Object source ) throws BirtException { if ( source == null ) return null; else if ( source instanceof Boolean ) { return (Boolean) source; } else if ( source instanceof Integer ) { int intValue = ( (Integer) source ).intValue( ); if ( intValue == 0 ) return new Boolean( false ); return new Boolean( true ); } else if ( source instanceof BigDecimal ) { int intValue = ( (BigDecimal) source ).intValue( ); if ( intValue == 0 ) return new Boolean( false ); return new Boolean( true ); } else if ( source instanceof Double ) { int intValue = ( (Double) source ).intValue( ); if ( intValue == 0 ) return new Boolean( false ); return new Boolean( true ); } else if ( source instanceof String ) { if ( ( (String) source ).equalsIgnoreCase( "true" ) ) return Boolean.valueOf( "true" ); else if ( ( (String) source ).equalsIgnoreCase( "false" ) ) return Boolean.valueOf( "false" ); else throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS, "Boolean" ); } else throw new BirtException( pluginId, ResourceConstants.CONVERT_FAILS, "Boolean", resourceBundle ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c6ee08813e7796d482748531aa65b4d8499deb/DataTypeUtil.java/buggy/core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 3411, 358, 5507, 12, 1033, 1084, 262, 1216, 605, 2714, 503, 202, 95, 202, 202, 430, 261, 1084, 422, 446, 262, 1082, 202, 2463, 446, 31, 202, 202, 12107, 309, 261, 1084, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3411, 358, 5507, 12, 1033, 1084, 262, 1216, 605, 2714, 503, 202, 95, 202, 202, 430, 261, 1084, 422, 446, 262, 1082, 202, 2463, 446, 31, 202, 202, 12107, 309, 261, 1084, ...
if ( dn.equals( suffix ) )
if ( dn.equals( normSuffix ) )
public void add( String updn, Name dn, Attributes entry ) throws NamingException { BigInteger id; BigInteger parentId = null; id = master.getNextId(); // // Suffix entry cannot have a parent since it is the root so it is // capped off using the zero value which no entry can have since // entry sequences start at 1. // if ( dn.equals( suffix ) ) { parentId = BigInteger.ZERO; } else { parentId = getEntryId( dn.getSuffix( 1 ).toString() ); } // don't keep going if we cannot find the parent Id if ( parentId == null ) { throw new LdapNameNotFoundException( "Id for parent '" + dn.getSuffix( 1 ).toString() + "' not found!" ); } Attribute objectClass = entry.get( "objectClass" ); if ( objectClass == null ) { String msg = "Entry " + updn + " contains no objectClass attribute: " + entry; throw new LdapSchemaViolationException( msg, ResultCodeEnum.OBJECTCLASSVIOLATION ); } // Start adding the system indices // Why bother doing a lookup if this is not an alias. if ( entry.get( "objectClass" ).contains( ALIAS_OBJECT ) ) { addAliasIndices( id, dn, ( String ) entry.get( ALIAS_ATTRIBUTE ).get() ); } ndnIdx.add( dn.toString(), id ); updnIdx.add( updn, id ); heirarchyIdx.add( parentId, id ); // Now work on the user defined indices NamingEnumeration list = entry.getIDs(); while ( list.hasMore() ) { String attribute = ( String ) list.next(); if ( hasUserIndexOn( attribute ) ) { Index idx = getUserIndex( attribute ); NamingEnumeration values = entry.get( attribute ).getAll(); while ( values.hasMore() ) { idx.add( values.next(), id ); } // Adds only those attributes that are indexed existanceIdx.add( attribute.toLowerCase(), id ); } } master.put( entry, id ); }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/82c88c96fcbb452a8f3f3fcbdb900ad9fbb896ae/JdbmDatabase.java/clean/core/src/main/java/org/apache/ldap/server/db/jdbm/JdbmDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 514, 2166, 82, 16, 1770, 8800, 16, 9055, 1241, 262, 1216, 26890, 565, 288, 3639, 10246, 612, 31, 3639, 10246, 11582, 273, 446, 31, 3639, 612, 273, 4171, 18, 588, 213...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 514, 2166, 82, 16, 1770, 8800, 16, 9055, 1241, 262, 1216, 26890, 565, 288, 3639, 10246, 612, 31, 3639, 10246, 11582, 273, 446, 31, 3639, 612, 273, 4171, 18, 588, 213...
preparedRoles = new StringBuffer("SELECT "); preparedRoles.append(roleNameCol); preparedRoles.append(" FROM "); preparedRoles.append(userRoleTable); preparedRoles.append(" WHERE "); preparedRoles.append(userNameCol); preparedRoles.append(" = ?");
StringBuffer temp = new StringBuffer("SELECT "); temp.append(roleNameCol); temp.append(" FROM "); temp.append(userRoleTable); temp.append(" WHERE "); temp.append(userNameCol); temp.append(" = ?"); preparedRoles = temp.toString();
public void start() throws LifecycleException { // Perform normal superclass initialization super.start(); // Create the roles PreparedStatement string preparedRoles = new StringBuffer("SELECT "); preparedRoles.append(roleNameCol); preparedRoles.append(" FROM "); preparedRoles.append(userRoleTable); preparedRoles.append(" WHERE "); preparedRoles.append(userNameCol); preparedRoles.append(" = ?"); // Create the credentials PreparedStatement string preparedCredentials = new StringBuffer("SELECT "); preparedCredentials.append(userCredCol); preparedCredentials.append(" FROM "); preparedCredentials.append(userTable); preparedCredentials.append(" WHERE "); preparedCredentials.append(userNameCol); preparedCredentials.append(" = ?"); }
15905 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15905/e029bbae4da36ed24c22f051493933158f19fe6d/DataSourceRealm.java/buggy/java/org/apache/catalina/realm/DataSourceRealm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 787, 1435, 1216, 14283, 503, 288, 3639, 368, 11217, 2212, 12098, 10313, 3639, 2240, 18, 1937, 5621, 3639, 368, 1788, 326, 4900, 16913, 533, 3639, 8208, 6898, 273, 394, 6674, 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, 377, 1071, 918, 787, 1435, 1216, 14283, 503, 288, 3639, 368, 11217, 2212, 12098, 10313, 3639, 2240, 18, 1937, 5621, 3639, 368, 1788, 326, 4900, 16913, 533, 3639, 8208, 6898, 273, 394, 6674, 2932...
public void createContributionItems(IMenuService menuService, List additions) {
public void createContributionItems(IMenuService menuService, List additions) {
public void createContributionItems(IMenuService menuService, List additions) { CommandContributionItem item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX20", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X20", null); additions.add(item); MenuManager submenu = new MenuManager("Menu X21", "org.eclipse.ui.tests.menus.menuX21"); item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX22", "org.eclipse.ui.tests.menus.updateWorld", null, null, "Item X22", null); submenu.add(item); item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX23", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X23", null); submenu.add(item); additions.add(submenu); item = new CommandContributionItem( "org.eclipse.ui.tests.menus.itemX24", "org.eclipse.ui.tests.menus.enabledWorld", null, null, "Item X24", null); additions.add(item); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/TestPlugin.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/TestPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 752, 442, 4027, 3126, 12, 3445, 2104, 1179, 3824, 1179, 16, 987, 26260, 13, 288, 9506, 202, 2189, 442, 4027, 1180, 761, 273, 394, 3498, 442, 4027, 1180, 12, 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, 1875, 202, 482, 918, 752, 442, 4027, 3126, 12, 3445, 2104, 1179, 3824, 1179, 16, 987, 26260, 13, 288, 9506, 202, 2189, 442, 4027, 1180, 761, 273, 394, 3498, 442, 4027, 1180, 12, 25083, 202, ...
call.getArguments().visit(this);
arguments.visit(this); cv.visitVarInsn(ASTORE, parametersItx); call.getObjectExpression().visit(this); cv.visitLdcInsn(call.getMethod()); cv.visitVarInsn(ALOAD, parametersItx); idx--; } else { call.getObjectExpression().visit(this); cv.visitLdcInsn(call.getMethod()); arguments.visit(this); }
public void visitMethodCallExpression(MethodCallExpression call) { this.leftHandExpression = false; call.getObjectExpression().visit(this); cv.visitLdcInsn(call.getMethod()); call.getArguments().visit(this); invokeMethodMethod.call(cv); cv.visitInsn(POP); }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/acdd96311f3ed570443e8ff839606b0c1bcd4666/ClassGenerator.java/buggy/src/main/org/codehaus/groovy/classgen/ClassGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 12592, 2300, 12, 12592, 2300, 745, 13, 288, 3639, 333, 18, 4482, 1144, 2300, 273, 629, 31, 3639, 745, 18, 588, 921, 2300, 7675, 11658, 12, 2211, 1769, 3639, 8951, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 12592, 2300, 12, 12592, 2300, 745, 13, 288, 3639, 333, 18, 4482, 1144, 2300, 273, 629, 31, 3639, 745, 18, 588, 921, 2300, 7675, 11658, 12, 2211, 1769, 3639, 8951, 18, 1...
Date date1 = ((LogEntry) e1).getDate(); Date date2 = ((LogEntry) e2).getDate(); if (DATE_ORDER == ASCENDING) return date1.getTime() < date2.getTime() ? DESCENDING : ASCENDING; return date1.getTime() > date2.getTime() ? DESCENDING : ASCENDING;
int result = fLogs.indexOf(e2) - fLogs.indexOf(e1); if (DATE_ORDER == DESCENDING) result *= DESCENDING; return result;
private ViewerSorter getViewerSorter(byte sortType) { if (sortType == PLUGIN) { return new ViewerSorter() { public int compare(Viewer viewer, Object e1, Object e2) { LogEntry entry1 = (LogEntry) e1; LogEntry entry2 = (LogEntry) e2; return super.compare(viewer, entry1.getPluginId(), entry2.getPluginId()) * PLUGIN_ORDER; } }; } else if (sortType == MESSAGE) { return new ViewerSorter() { public int compare(Viewer viewer, Object e1, Object e2) { LogEntry entry1 = (LogEntry) e1; LogEntry entry2 = (LogEntry) e2; return super.compare(viewer, entry1.getMessage(), entry2.getMessage()) * MESSAGE_ORDER; } }; } else { return new ViewerSorter() { public int compare(Viewer viewer, Object e1, Object e2) { Date date1 = ((LogEntry) e1).getDate(); Date date2 = ((LogEntry) e2).getDate(); if (DATE_ORDER == ASCENDING) return date1.getTime() < date2.getTime() ? DESCENDING : ASCENDING; return date1.getTime() > date2.getTime() ? DESCENDING : ASCENDING; } }; } }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/103c018946438b1145b7023f288912213adc9a2c/LogView.java/clean/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/logview/LogView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4441, 264, 24952, 8893, 264, 24952, 12, 7229, 1524, 559, 13, 288, 3639, 309, 261, 3804, 559, 422, 22704, 13, 288, 5411, 327, 394, 4441, 264, 24952, 1435, 288, 7734, 1071, 509, 3400,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4441, 264, 24952, 8893, 264, 24952, 12, 7229, 1524, 559, 13, 288, 3639, 309, 261, 3804, 559, 422, 22704, 13, 288, 5411, 327, 394, 4441, 264, 24952, 1435, 288, 7734, 1071, 509, 3400,...
if( pathSep != null ) {
if (pathSep != null) {
private void validateSetup() throws BuildException { if( path == null ) { throw new BuildException( "You must specify a path to convert" ); } if( property == null ) { throw new BuildException( "You must specify a property" ); } // Must either have a target OS or both a dirSep and pathSep if( targetOS == null && pathSep == null && dirSep == null ) { throw new BuildException( "You must specify at least one of " + "targetOS, dirSep, or pathSep" ); } // Determine the separator strings. The dirsep and pathsep attributes // override the targetOS settings. String dsep = File.separator; String psep = File.pathSeparator; if( targetOS != null ) { psep = targetWindows ? ";" : ":"; dsep = targetWindows ? "\\" : "/"; } if( pathSep != null ) { // override with pathsep= psep = pathSep; } if( dirSep != null ) { // override with dirsep= dsep = dirSep; } pathSep = psep; dirSep = dsep; }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/6154080061f869b4e425d608da3bd61fad967564/PathConvert.java/clean/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1954, 7365, 1435, 1216, 18463, 288, 3639, 309, 12, 589, 422, 446, 262, 288, 5411, 604, 394, 18463, 12, 315, 6225, 1297, 4800, 279, 589, 358, 1765, 6, 11272, 3639, 289, 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, 1954, 7365, 1435, 1216, 18463, 288, 3639, 309, 12, 589, 422, 446, 262, 288, 5411, 604, 394, 18463, 12, 315, 6225, 1297, 4800, 279, 589, 358, 1765, 6, 11272, 3639, 289, 3639, ...
list.addAll(((RubyArray) begin(next)).getList());
list.addAll(((RubyArray) eval(context, next, self)).getList());
private IRubyObject[] setupArgs(IRuby runtime, ThreadContext context, Node node) { if (node == null) { return IRubyObject.NULL_ARRAY; } if (node instanceof ArrayNode) { ISourcePosition position = context.getPosition(); ArrayList list = new ArrayList(((ArrayNode) node).size()); for (Iterator iter=((ArrayNode)node).iterator(); iter.hasNext();){ final Node next = (Node) iter.next(); if (next instanceof SplatNode) { list.addAll(((RubyArray) begin(next)).getList()); } else { list.add(begin(next)); } } context.setPosition(position); return (IRubyObject[]) list.toArray(new IRubyObject[list.size()]); } return ArgsUtil.arrayify(begin(node)); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/6e15491217631472c05c6928672f9c7064a978b3/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 8526, 3875, 2615, 12, 7937, 10340, 3099, 16, 4884, 1042, 819, 16, 2029, 756, 13, 288, 3639, 309, 261, 2159, 422, 446, 13, 288, 5411, 327, 15908, 10340, 921, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 8526, 3875, 2615, 12, 7937, 10340, 3099, 16, 4884, 1042, 819, 16, 2029, 756, 13, 288, 3639, 309, 261, 2159, 422, 446, 13, 288, 5411, 327, 15908, 10340, 921, 18, ...
name = name + input[i].getName() + "/";
name = name + input[i].getName() + "/";
public String getName() { String name = ""; for (int i = 0; i < (input.length - 1); i++) { name = name + input[i].getName() + "/"; } name = name + input[input.length - 1].getName(); return name; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/80cfecc0fb5392981e25acee0f567feb8ed55185/MultiEditorInput.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/part/MultiEditorInput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1723, 1435, 288, 202, 202, 780, 508, 273, 1408, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 261, 2630, 18, 2469, 300, 404, 1769, 277, 27245, 288, 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, 225, 202, 482, 514, 1723, 1435, 288, 202, 202, 780, 508, 273, 1408, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 261, 2630, 18, 2469, 300, 404, 1769, 277, 27245, 288, 1082, 2...
runtime.getFrameStack().push();
getRuntime().getFrameStack().push();
private IRubyObject callMethodMissing(IRubyObject receiver, String name, IRubyObject[] args) { if (name == "method_missing") { runtime.getFrameStack().push(); try { return receiver.method_missing(args); } finally { runtime.getFrameStack().pop(); } } IRubyObject[] newArgs = new IRubyObject[args.length + 1]; System.arraycopy(args, 0, newArgs, 1, args.length); newArgs[0] = RubySymbol.newSymbol(runtime, name); return receiver.callMethod("method_missing", newArgs); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyModule.java/buggy/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 745, 1305, 4841, 12, 7937, 10340, 921, 5971, 16, 514, 508, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 529, 422, 315, 2039, 67, 7337, 7923, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 745, 1305, 4841, 12, 7937, 10340, 921, 5971, 16, 514, 508, 16, 15908, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 529, 422, 315, 2039, 67, 7337, 7923, 288, ...
public final static void endCallArgs(final Ruby ruby, final Block actBlock) {
public final static void endCallArgs( final Ruby ruby, final Block actBlock) {
public final static void endCallArgs(final Ruby ruby, final Block actBlock) { if (actBlock != null) { // XXX ruby.getBlock().push(actBlock); // Refresh the next attribute. } ruby.getIterStack().pop(); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/906555370ad101fdbc9a48d880e926215e2b5949/ArgsUtil.java/clean/org/jruby/ast/util/ArgsUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 760, 918, 679, 1477, 2615, 12, 727, 19817, 22155, 16, 727, 3914, 1328, 1768, 13, 288, 3639, 309, 261, 621, 1768, 480, 446, 13, 288, 5411, 368, 11329, 5411, 22155, 18, 588, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 760, 918, 679, 1477, 2615, 12, 727, 19817, 22155, 16, 727, 3914, 1328, 1768, 13, 288, 3639, 309, 261, 621, 1768, 480, 446, 13, 288, 5411, 368, 11329, 5411, 22155, 18, 588, 17...
return ((Literal)exp).getValue();
return ((Literal)defaultExp).getValue();
public Object getValue() { switch (category) { case Category.Numeric: // exp can be a unary minus FunCall if (exp instanceof FunCall) { FunCall f = (FunCall) exp; if (f.getFunName().equals("-")) { Literal lit = (Literal)f.getArg(0); Object o = lit.getValue(); if (o instanceof Double) { return new Double(-((Double)o).doubleValue()); } else if (o instanceof Integer) { // probably impossible return new Integer(-((Integer)o).intValue()); } else if (o instanceof Integer) { // probably impossible return o; } } else { //unexpected funcall in parameter definition throw Util.newInternal("bad FunCall " + f); } } return ((Literal)exp).getValue(); case Category.String: return ((Literal)exp).getValue(); default: return (Member)exp; } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/9a688e588ec59e84012f03e73f06a05a27fccd8e/Parameter.java/buggy/src/main/mondrian/olap/Parameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 2366, 1435, 288, 3639, 1620, 261, 4743, 13, 288, 3639, 648, 9856, 18, 9902, 30, 5411, 368, 1329, 848, 506, 279, 19017, 12647, 478, 318, 1477, 5411, 309, 261, 2749, 1276, 478, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2366, 1435, 288, 3639, 1620, 261, 4743, 13, 288, 3639, 648, 9856, 18, 9902, 30, 5411, 368, 1329, 848, 506, 279, 19017, 12647, 478, 318, 1477, 5411, 309, 261, 2749, 1276, 478, ...
bindingColumn.setDataType( model.getDataType( ) );
protected static DataItemHandle performInsertParameter( ScalarParameterHandle model ) throws SemanticException { // DataItemHandle dataHandle = SessionHandleAdapter.getInstance( ) // .getReportDesignHandle( ) // .getElementFactory( ) // .newDataItem( null ); DataItemHandle dataHandle = DesignElementFactory.getInstance( ) .newDataItem( null ); ComputedColumn bindingColumn = StructureFactory.newComputedColumn( dataHandle, model.getName( ) ); bindingColumn.setDataType( model.getDataType( ) ); bindingColumn.setExpression( DEUtil.getExpression( model ) ); dataHandle.addColumnBinding( bindingColumn, false ); dataHandle.setResultSetColumn( bindingColumn.getColumnName( ) ); return dataHandle; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/1947ea5723760207f046f420b89fe09478a585dd/InsertInLayoutUtil.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dnd/InsertInLayoutUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 1910, 1180, 3259, 3073, 4600, 1662, 12, 1082, 202, 13639, 1662, 3259, 938, 262, 1216, 24747, 503, 202, 95, 202, 202, 759, 1910, 1180, 3259, 501, 3259, 273, 3877, 3259, 421...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1910, 1180, 3259, 3073, 4600, 1662, 12, 1082, 202, 13639, 1662, 3259, 938, 262, 1216, 24747, 503, 202, 95, 202, 202, 759, 1910, 1180, 3259, 501, 3259, 273, 3877, 3259, 421...
doc.insertString(0, FOO_EX_1, null); doc.insertString(FOO_EX_1.length(), " " + FOO_EX_2, null);
openDoc.insertString(0, FOO_EX_1, null); openDoc.insertString(FOO_EX_1.length(), " " + FOO_EX_2, null);
public void testIndentShrinkTabAtStart() throws BadLocationException, OperationCanceledException{ OpenDefinitionsDocument openDoc = _getOpenDoc(); Document doc = openDoc.getDocument(); doc.insertString(0, FOO_EX_1, null); doc.insertString(FOO_EX_1.length(), " " + FOO_EX_2, null); openDoc.syncCurrentLocationWithDefinitions(FOO_EX_1.length()); int loc = openDoc.getCurrentDefinitionsLocation(); openDoc.indentLinesInDefinitions(loc, loc, Indenter.OTHER, null); _assertContents(FOO_EX_1 + " " + FOO_EX_2, doc); _assertLocation(FOO_EX_1.length() + 2, openDoc); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0ad47f4e9ecbbfc43121de14376bb3d222538453/GlobalIndentTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/GlobalIndentTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 7790, 28747, 5661, 861, 1685, 1435, 1377, 1216, 6107, 2735, 503, 16, 4189, 23163, 503, 95, 565, 3502, 7130, 2519, 1696, 1759, 273, 389, 588, 3678, 1759, 5621, 565, 4319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 7790, 28747, 5661, 861, 1685, 1435, 1377, 1216, 6107, 2735, 503, 16, 4189, 23163, 503, 95, 565, 3502, 7130, 2519, 1696, 1759, 273, 389, 588, 3678, 1759, 5621, 565, 4319, ...
public TaskListView() { INSTANCE = this; }
public TaskListView() { INSTANCE = this; }
public TaskListView() { INSTANCE = this; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d4f4b7adbac6f3f4b67fbc7714a5fbeb8cd7ff7e/TaskListView.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3837, 682, 1767, 1435, 288, 1377, 202, 13341, 273, 333, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3837, 682, 1767, 1435, 288, 1377, 202, 13341, 273, 333, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
StringBuffer string = getValue();
StringBuffer string = getMutableValue();
public IRubyObject swapcase_bang() { StringBuffer string = getValue(); int length = string.length(); boolean changesMade = false; for (int i = 0; i < length; i++) { char c = string.charAt(i); if (!Character.isLetter(c)) { continue; } else if (Character.isLowerCase(c)) { changesMade = true; string.setCharAt(i, Character.toUpperCase(c)); } else { changesMade = true; string.setCharAt(i, Character.toLowerCase(c)); } } return changesMade ? this : getRuntime().getNil(); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/185c54edbc79bd7b73f1c9400146d9a0aa45b0bb/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 7720, 3593, 67, 70, 539, 1435, 288, 202, 202, 780, 1892, 533, 273, 2108, 3050, 620, 5621, 3639, 509, 769, 273, 533, 18, 2469, 5621, 202, 202, 6494, 3478, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 7720, 3593, 67, 70, 539, 1435, 288, 202, 202, 780, 1892, 533, 273, 2108, 3050, 620, 5621, 3639, 509, 769, 273, 533, 18, 2469, 5621, 202, 202, 6494, 3478, 49...
System.out.println(ColumnValues[row][0] + " row: "
System.out.println(ColumnValues[row][0] + " row: "
public void sortData(int column) { Object[][] ColumnValues = new String [mVecVec.size()][2]; int row; int col; for(row = 0 ; row < mVecVec.size() ; ++row) { ColumnValues[row][0] = (((Vector)mVecVec.elementAt(row)).elementAt(column)); ColumnValues[row][1] = new Integer(row).toString(); } System.out.println("Values before sorting"); for(row = 0; row < ColumnValues.length ; ++row) { System.out.println(ColumnValues[row][0] + " row: " + ColumnValues[row][1]); } QSort sorter = new QSort(new Comparer() { public int compare(Object a, Object b) { int returnValue; try { returnValue = (((String[])a)[0]).compareTo(((String[])b)[0]); } catch (NullPointerException e) { returnValue = 1; } return returnValue; } }); sorter.sort(ColumnValues); System.out.println("Values after sorting"); for(row = 0; row < ColumnValues.length ; ++row) { System.out.println(ColumnValues[row][0] + " row: " + ColumnValues[row][1]); } Vector SortedVector = new Vector(); for(row = 0; row < ColumnValues.length ; ++row) { Vector thisRow = new Vector(6); Integer OriginalPosition = new Integer((String)ColumnValues[row][1]); for(col = 0; col < ((Vector)mVecVec.elementAt(row)).size(); ++col) { thisRow.addElement(((Vector)mVecVec.elementAt(OriginalPosition.intValue())).elementAt(col)); } SortedVector.addElement(thisRow); } mVecVec = SortedVector; System.out.println("Hello"); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/ce31ec0ca81f17d0dd5a6c08e86c15d748a6e0e1/AddressBook.java/clean/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1524, 751, 12, 474, 1057, 13, 288, 1377, 1033, 63, 6362, 65, 4753, 1972, 273, 394, 514, 306, 81, 12991, 12991, 18, 1467, 1435, 6362, 22, 15533, 1377, 509, 1027, 31, 1377, 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, 1071, 918, 1524, 751, 12, 474, 1057, 13, 288, 1377, 1033, 63, 6362, 65, 4753, 1972, 273, 394, 514, 306, 81, 12991, 12991, 18, 1467, 1435, 6362, 22, 15533, 1377, 509, 1027, 31, 1377, 509...
&& lexemes.peek() != Lexer.CHAR_RIGHT_PARENTHESIS
&& (lexemes.peek() != Lexer.CHAR_RIGHT_PARENTHESIS || last instanceof FinalSet)
private AbstractSet processSubExpression(AbstractSet last) { AbstractSet cur; if (lexemes.isLetter() && !lexemes.isNextSpecial() && Lexer.isLetter(lexemes.lookAhead())) { cur = processSequence(last); } else { cur = processQuantifier(last); } if (!lexemes.isEmpty() // && !pattern.isQuantifier() && lexemes.peek() != Lexer.CHAR_RIGHT_PARENTHESIS && lexemes.peek() != Lexer.CHAR_VERTICAL_BAR) { AbstractSet next = processSubExpression(last); if (cur instanceof LeafQuantifierSet // TODO create personal UnifiedQuantifierSet for composite // quantifiers // to take into account Quantifier counters // //// && !(cur instanceof CompositeQuantifierSet) && !(cur instanceof GroupQuantifierSet) && !next.first(((LeafQuantifierSet) cur).getInnerSet())) { cur = new UnifiedQuantifierSet((LeafQuantifierSet) cur); } if (((char) next.getType()) == '+') { cur.setNext(((LeafQuantifierSet) next).getInnerSet()); } else { cur.setNext(next); } } else if (cur != null) { cur.setNext(last); } else { return null; } if (((char) cur.getType()) == '+') { return ((QuantifierSet) cur).getInnerSet(); } else { return cur; } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/bcf289218b31a41a6c2a42444260b8556b9f7ac7/Pattern.java/buggy/modules/regex/src/main/java/java/util/regex/Pattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4115, 694, 1207, 1676, 2300, 12, 7469, 694, 1142, 13, 288, 3639, 4115, 694, 662, 31, 3639, 309, 261, 4149, 12604, 18, 291, 13938, 1435, 597, 401, 4149, 12604, 18, 291, 2134, 12193, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4115, 694, 1207, 1676, 2300, 12, 7469, 694, 1142, 13, 288, 3639, 4115, 694, 662, 31, 3639, 309, 261, 4149, 12604, 18, 291, 13938, 1435, 597, 401, 4149, 12604, 18, 291, 2134, 12193, ...
symbolTable = table;
public UsingDeclarationSymbol( ParserSymbolTable table, List referenced, List declared ){ referencedSymbol = referenced; declaredSymbol = declared; symbolTable = table; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0f74ca46c3fce55bd2654c6d498571ede4a71262/UsingDeclarationSymbol.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/UsingDeclarationSymbol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 11637, 6094, 5335, 12, 6783, 5335, 1388, 1014, 16, 987, 8042, 16, 987, 7886, 262, 95, 202, 202, 20883, 5335, 273, 8042, 31, 202, 202, 16571, 5335, 273, 7886, 31, 3196, 202, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 11637, 6094, 5335, 12, 6783, 5335, 1388, 1014, 16, 987, 8042, 16, 987, 7886, 262, 95, 202, 202, 20883, 5335, 273, 8042, 31, 202, 202, 16571, 5335, 273, 7886, 31, 3196, 202, 71...
break _loop359;
break _loop364;
public final void definebrowsestate(AST _t) throws RecognitionException { AST definebrowsestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST def = null; AST id = null; AST fi1 = null; AST fi2 = null; AST __t340 = _t; def = _t==ASTNULL ? null :(AST)_t; match(_t,DEFINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NEW: case SHARED: { def_shared(_t); _t = _retTree; break; } case BROWSE: case PRIVATE: case PUBLIC: case PROTECTED: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRIVATE: case PUBLIC: case PROTECTED: { def_visib(_t); _t = _retTree; break; } case BROWSE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp957_AST_in = (AST)_t; match(_t,BROWSE); _t = _t.getNextSibling(); id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { push(action.defineBrowse(def, id)); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUERY: { AST __t344 = _t; AST tmp958_AST_in = (AST)_t; match(_t,QUERY); _t = _t.getFirstChild(); AST tmp959_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); _t = __t344; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case CONTEXTHELPID: case DISPLAY: case EXCLUSIVELOCK: case NOLOCK: case NOWAIT: case SHARELOCK: case TOOLTIP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { _loop346: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCLUSIVELOCK: case NOLOCK: case SHARELOCK: { lockhow(_t); _t = _retTree; break; } case NOWAIT: { AST tmp960_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } default: { break _loop346; } } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISPLAY: { AST __t348 = _t; AST tmp961_AST_in = (AST)_t; match(_t,DISPLAY); _t = _t.getFirstChild(); { _loop355: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { AST __t350 = _t; fi1 = _t==ASTNULL ? null :(AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); { boolean synPredMatched353 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==RECORD_NAME))) { AST __t353 = _t; synPredMatched353 = true; inputState.guessing++; try { { tbl(_t,CQ.INIT); _t = _retTree; } } catch (RecognitionException pe) { synPredMatched353 = false; } _t = __t353;inputState.guessing--; } if ( synPredMatched353 ) { tbl(_t,CQ.INIT); _t = _retTree; } else if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Format_phrase: { columnformat(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } } else if ((_t.getType()==SPACE)) { spacephrase(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } if ( inputState.guessing==0 ) { action.formItem(fi1); } _t = __t350; _t = _t.getNextSibling(); } else { break _loop355; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t357 = _t; AST tmp962_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop359: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop359; } } while (true); } _t = __t357; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t348; _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ENABLE: { AST __t361 = _t; AST tmp963_AST_in = (AST)_t; match(_t,ENABLE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALL: { AST __t363 = _t; AST tmp964_AST_in = (AST)_t; match(_t,ALL); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t365 = _t; AST tmp965_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop367: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop367; } } while (true); } _t = __t365; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t363; _t = _t.getNextSibling(); break; } case 3: case Form_item: { { _loop374: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { AST __t369 = _t; fi2 = _t==ASTNULL ? null :(AST)_t; match(_t,Form_item); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; if ( inputState.guessing==0 ) { action.formItem(fi2); } { _loop373: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case HELP: { AST __t371 = _t; AST tmp966_AST_in = (AST)_t; match(_t,HELP); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t371; _t = _t.getNextSibling(); break; } case VALIDATE: { AST __t372 = _t; AST tmp967_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t372; _t = _t.getNextSibling(); break; } case AUTORETURN: { AST tmp968_AST_in = (AST)_t; match(_t,AUTORETURN); _t = _t.getNextSibling(); break; } case DISABLEAUTOZAP: { AST tmp969_AST_in = (AST)_t; match(_t,DISABLEAUTOZAP); _t = _t.getNextSibling(); break; } default: { break _loop373; } } } while (true); } _t = __t369; _t = _t.getNextSibling(); } else { break _loop374; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } _t = __t361; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case CONTEXTHELPID: case TOOLTIP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } break; } case EOF: case PERIOD: case CONTEXTHELPID: case TOOLTIP: case WITH: { break; } default: { throw new NoViableAltException(_t); } } } { _loop376: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==WITH)) { display_with(_t); _t = _retTree; } else { break _loop376; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TOOLTIP: { tooltip_expr(_t); _t = _retTree; break; } case EOF: case PERIOD: case CONTEXTHELPID: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CONTEXTHELPID: { AST __t379 = _t; AST tmp970_AST_in = (AST)_t; match(_t,CONTEXTHELPID); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t379; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.addToSymbolScope(pop()); } _t = __t340; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 70, 3870, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 70, 3870, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 4426, 70, 3870, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 4426, 70, 3870, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, ...
Chat myChat = (Chat)session.getValue("theChat");
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets validate the session, e.g has the user logged in to Janus? //mste kolla s att metoden funkar i ChatBase if (super.checkSession(req,res) == false) return ; // Lets get the standard SESSION parameters and validate them //mste ox kollas s att de funkar Properties params = this.getSessionParameters(req) ; //log("params :"+params); if (super.checkParameters(req, res, params) == false) { /* String header = "ChatBoard servlet. " ; String msg = params.toString() ; ChatError err = new ChatError(req,res,header,1212) ; */ log("return i checkparameters"); return ; } // Lets get the user object //mste kolla s att metoden funkar i ChatBase imcode.server.User user = super.getUserObj(req,res) ; if(user == null) return ; if ( !isUserAuthorized( req, res, user ) ) { log("user not authorized"); return; } // Lets get serverinformation String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("userserver",host) ; String confPoolServer = Utility.getDomainPref("chat_server",host) ; // Lets get the url to the servlets directory //mste kolla s att det r till rtt server String servletHome = MetaInfo.getServletPath(req) ; servletHome += "ChatBoard"; // Lets get parameters String aMetaId = params.getProperty("META_ID") ; //log("aMetaId = "+aMetaId); // int metaId = Integer.parseInt( aMetaId ); String aChatId = params.getProperty("CHAT_ID") ;//=id strngen fr chatten ???? // log("aChatId = "+aChatId); HttpSession session = req.getSession(false) ; //ok lets get the settings //this buffer is used to store all the msgs to send to the page StringBuffer sendMsgString = new StringBuffer(""); String chatRefresh = ""; //ok let's get all the messages and add them into the buffer if (true)//(req.getParameter("ROOM_ID") != null ) { //log("nu r vi inne"); if(session == null) { log("session was null so return"); return; } //ok lets get the Chat and stuff Chat myChat = (Chat)session.getValue("theChat"); // log("myChat = "+myChat); ChatMember myMember = (ChatMember)session.getValue("theChatMember"); // log("myMember = "+myMember); ChatGroup myGrupp = (ChatGroup)session.getValue("theRoom"); // log("myGrupp = "+myGrupp); //lets get all the settings for this page Hashtable theSettings = (Hashtable) session.getValue("ChatBoardHashTable"); if (theSettings == null) { log("chatHashTable was null so return"); return; } //lets get it all out from it boolean dateOn = ((Boolean)theSettings.get("dateTimeBoolean")).booleanValue(); boolean publicMsg = ((Boolean)theSettings.get("publicMsgBoolean")).booleanValue(); boolean privateMsg = ((Boolean)theSettings.get("privateMsgBoolean")).booleanValue(); boolean autoReload = ((Boolean)theSettings.get("reloadBoolean")).booleanValue(); boolean inOut = ((Boolean)theSettings.get("inOutBoolean")).booleanValue(); int fontSize = ((Integer)theSettings.get("fontSizeInteger")).intValue(); int time = ((Integer)theSettings.get("reloadInteger")).intValue(); //log("autoReload = "+autoReload); //lets set up the autoreload or not if (autoReload) { chatRefresh = "<META HTTP-EQUIV=\"Refresh\" CONTENT=\""+time+";URL="+servletHome +"\">"; } //lets get the ignore-list //doesnt have one yet //let's get all the messages ListIterator msgIter = myMember.getMessages(); //lets fix the html-string containing all messags while(msgIter.hasNext()) { ChatMsg tempMsg = (ChatMsg) msgIter.next(); //must check if it is a public msg if (tempMsg.getMsgType() == 101) { if (privateMsg)//show private messages { if (tempMsg.getReciever() == myMember.getUserId())//ok it's to mee { sendMsgString.append("<font color=\"Green\" size=\""+ fontSize+"\">"); if (dateOn)//show dateTime { sendMsgString.append(tempMsg.getDateTime()); } sendMsgString.append(" "+tempMsg.getSenderStr()); sendMsgString.append(" "+tempMsg.getMsgTypeStr()); sendMsgString.append(" "+tempMsg.getRecieverStr()); sendMsgString.append(" "+tempMsg.getMessage() ); sendMsgString.append("<br>"); sendMsgString.append("</font>"); }else if(tempMsg.getSender()== myMember.getUserId())//it's was I who sent it { sendMsgString.append("<font color=\"Green\" size=\""+ fontSize+"\">"); if (dateOn)//show dateTime { sendMsgString.append(tempMsg.getDateTime()); } sendMsgString.append(" "+tempMsg.getSenderStr()); sendMsgString.append(" "+tempMsg.getMsgTypeStr()); sendMsgString.append(" "+tempMsg.getRecieverStr()); sendMsgString.append(" "+tempMsg.getMessage() ); sendMsgString.append("<br>"); sendMsgString.append("</font>"); } }//end privateMsg }else //it was a public message { if (tempMsg.getMsgType() == CHAT_ENTER_LEAVE_INT)//it's a enter/leave msg { if (inOut)//show enter/leave messages { sendMsgString.append("<font color=\"Black\" size=\""+ fontSize+"\">"); if (dateOn)//show dateTime { sendMsgString.append(tempMsg.getDateTime()); } sendMsgString.append(" "+tempMsg.getSenderStr()); sendMsgString.append(" "+tempMsg.getMsgTypeStr()); sendMsgString.append(" "+tempMsg.getRecieverStr()); sendMsgString.append(" "+tempMsg.getMessage() ); sendMsgString.append("<br>"); sendMsgString.append("</font>"); } }else { if (true)//(publicMsg)//show public messages { sendMsgString.append("<font color=\"Black\" size=\""+ fontSize+"\">"); if (dateOn)//show dateTime { sendMsgString.append(tempMsg.getDateTime()); } sendMsgString.append(" "+tempMsg.getSenderStr()); sendMsgString.append(" "+tempMsg.getMsgTypeStr()); sendMsgString.append(" "+tempMsg.getRecieverStr()); sendMsgString.append(" "+tempMsg.getMessage() ); sendMsgString.append("<br>"); sendMsgString.append("</font>"); } } }//end it was a public message }//end while loop }//end if (req.getParameter("ROOM_ID") != null ) //<META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.????.com"> //log("chatRefresh = "+chatRefresh); VariableManager vm = new VariableManager() ; vm.addProperty("CHAT_REFRESH", chatRefresh); vm.addProperty("CHAT_MESSAGES", sendMsgString.toString() ); this.sendHtml(req,res,vm, HTML_TEMPLATE) ; // this.showSession(req) ; log("ChatBoard doGet r frdig") ; } //*** end DoGet ***** end doGet ***** end doGet ***** end doGet ***
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/3c17a49ca3a95afede3efc18fd3261e54133d8c5/ChatBoard.java/buggy/servlets/chat/ChatBoard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 759, 511, 2413, 1954, 326, 1339, 16, 425, 18, 75, 711, 326, 729, 7545, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23611, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 759, 511, 2413, 1954, 326, 1339, 16, 425, 18, 75, 711, 326, 729, 7545, ...
Thread.sleep(5000);
Thread.sleep(1000);
protected void tearDown() throws Exception { super.tearDown(); controller1.shutdown(); controller2.shutdown(); // Give them time to shut down Thread.sleep(5000); assertFalse(controller1.isStarted()); assertFalse(controller2.isStarted()); }
51438 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51438/9fc2b4d23f5be69c49a3e37eb21988b76704d9c0/TwoControllerTestCase.java/clean/junit/de/dal33t/powerfolder/junit/TwoControllerTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 268, 2091, 4164, 1435, 1216, 1185, 288, 3639, 2240, 18, 736, 297, 4164, 5621, 3639, 2596, 21, 18, 15132, 5621, 3639, 2596, 22, 18, 15132, 5621, 3639, 368, 22374, 2182, 813, 358...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 268, 2091, 4164, 1435, 1216, 1185, 288, 3639, 2240, 18, 736, 297, 4164, 5621, 3639, 2596, 21, 18, 15132, 5621, 3639, 2596, 22, 18, 15132, 5621, 3639, 368, 22374, 2182, 813, 358...
public org.quickfix.field.UnderlyingCouponRate getUnderlyingCouponRate() throws FieldNotFound { org.quickfix.field.UnderlyingCouponRate value = new org.quickfix.field.UnderlyingCouponRate();
public quickfix.field.UnderlyingCouponRate getUnderlyingCouponRate() throws FieldNotFound { quickfix.field.UnderlyingCouponRate value = new quickfix.field.UnderlyingCouponRate();
public org.quickfix.field.UnderlyingCouponRate getUnderlyingCouponRate() throws FieldNotFound { org.quickfix.field.UnderlyingCouponRate value = new org.quickfix.field.UnderlyingCouponRate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReport.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 22744, 4727, 10833, 765, 6291, 22744, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 22744, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 22744, 4727, 10833, 765, 6291, 22744, 4727, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 22744, ...
l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8
l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8
public PrivateKey decodePrivateKey(byte[] k) { // magic if (k[0] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[0] || k[1] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[1] || k[2] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[2] || k[3] != Registry.MAGIC_RAW_RSA_PRIVATE_KEY[3]) { throw new IllegalArgumentException("magic"); } // version if (k[4] != 0x01) { throw new IllegalArgumentException("version"); } int i = 5; int l; byte[] buffer; // p l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | (k[i++] & 0xFF); buffer = new byte[l]; System.arraycopy(k, i, buffer, 0, l); i += l; BigInteger p = new BigInteger(1, buffer); // q l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | (k[i++] & 0xFF); buffer = new byte[l]; System.arraycopy(k, i, buffer, 0, l); i += l; BigInteger q = new BigInteger(1, buffer); // e l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | (k[i++] & 0xFF); buffer = new byte[l]; System.arraycopy(k, i, buffer, 0, l); i += l; BigInteger e = new BigInteger(1, buffer); // d l = k[i++] << 24 | (k[i++] & 0xFF) << 16 | (k[i++] & 0xFF) << 8 | (k[i++] & 0xFF); buffer = new byte[l]; System.arraycopy(k, i, buffer, 0, l); i += l; BigInteger d = new BigInteger(1, buffer); return new GnuRSAPrivateKey(p, q, e, d); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairRawCodec.java/buggy/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairRawCodec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 14018, 2495, 10824, 12, 7229, 8526, 417, 13, 225, 288, 565, 368, 8146, 565, 309, 261, 79, 63, 20, 65, 480, 5438, 18, 49, 22247, 67, 10821, 67, 15248, 67, 20055, 67, 3297, 63, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 14018, 2495, 10824, 12, 7229, 8526, 417, 13, 225, 288, 565, 368, 8146, 565, 309, 261, 79, 63, 20, 65, 480, 5438, 18, 49, 22247, 67, 10821, 67, 15248, 67, 20055, 67, 3297, 63, 20...
results = compare(retEnv, tempPath); assertTrue(results);
compare(retEnv, tempPath);
public void testR2GCEchoFloat() throws AxisFault { url = "http://soap.systinet.net:6060/InteropCService/"; soapAction = "http://soapinterop.org/"; util = new GroupcFloatUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "GroupcFloatRes.xml"; results = compare(retEnv, tempPath); assertTrue(results); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/WaspRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/WaspRound2InteropTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 43, 1441, 2599, 4723, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 19215, 18, 87, 1094, 23864, 18, 2758, 30, 4848, 4848, 19, 2465, 556, 39, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 43, 1441, 2599, 4723, 1435, 1216, 15509, 7083, 288, 3639, 880, 273, 315, 2505, 2207, 19215, 18, 87, 1094, 23864, 18, 2758, 30, 4848, 4848, 19, 2465, 556, 39, 11...
for (int i = 0; i < files.length; i++) {
for (int i = 0; i < files.length; i++) {
void addFiles(File dir, FileFilter filter) { if (dir == null) dir = new File(System.getProperty("user.dir")); if (!dir.isDirectory()) { showError("can't find " + dir.getPath()); } File[] files = dir.listFiles(filter); if (files.length == 0) { showWarning("no matching files found in: " + dir); } for (int i = 0; i < files.length; i++) { addFile(files[i]); } }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/a4a12342a16145ee4ac835c77827d8e16f6078cb/ConfigParser.java/buggy/util/src/org/aspectj/util/ConfigParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 527, 2697, 12, 812, 1577, 16, 1387, 1586, 1034, 13, 288, 3639, 309, 261, 1214, 422, 446, 13, 1577, 273, 394, 1387, 12, 3163, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 1769, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 527, 2697, 12, 812, 1577, 16, 1387, 1586, 1034, 13, 288, 3639, 309, 261, 1214, 422, 446, 13, 1577, 273, 394, 1387, 12, 3163, 18, 588, 1396, 2932, 1355, 18, 1214, 7923, 1769, 7734, ...
vars.addLocal(name);
vars.addLocal(name, createVariableObject(name, false));
protected void addVariables(Node tree, VariableTable vars) { // OPT: a whole pass to collect variables seems expensive. // Could special case to go into statements only. boolean inFunction = tree.getType() == TokenStream.FUNCTION; PreorderNodeIterator iterator = tree.getPreorderIterator(); ObjToIntMap fNames = null; Node node; while ((node = iterator.nextNode()) != null) { int nodeType = node.getType(); if (inFunction && nodeType == TokenStream.FUNCTION && node != tree && ((FunctionNode) node.getProp(Node.FUNCTION_PROP)).getFunctionType() == FunctionNode.FUNCTION_EXPRESSION_STATEMENT) { // In a function with both "var x" and "function x", // disregard the var statement, independent of order. String name = node.getString(); if (name == null) continue; vars.removeLocal(name); if (fNames == null) fNames = new ObjToIntMap(); fNames.put(name, 0); } if (nodeType != TokenStream.VAR) continue; for (Node cursor = node.getFirstChild(); cursor != null; cursor = cursor.getNextSibling()) { String name = cursor.getString(); if (fNames == null || !fNames.has(name)) vars.addLocal(name); } } String name = tree.getString(); if (inFunction && ((FunctionNode) tree).getFunctionType() == FunctionNode.FUNCTION_EXPRESSION && name != null && name.length() > 0 && vars.hasVariable(name)) { // A function expression needs to have its name as a variable // (if it isn't already allocated as a variable). See // ECMA Ch. 13. We add code to the beginning of the function // to initialize a local variable of the function's name // to the function value. vars.addLocal(name); Node block = tree.getLastChild(); Node setFn = new Node(TokenStream.POP, new Node(TokenStream.SETVAR, new Node(TokenStream.STRING, name), new Node(TokenStream.PRIMARY, TokenStream.THISFN))); block.addChildrenToFront(setFn); } }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/e497d2b898e781a5052344191ab878cd469f3f53/NodeTransformer.java/buggy/js/rhino/src/org/mozilla/javascript/NodeTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 6158, 12, 907, 2151, 16, 7110, 1388, 4153, 13, 288, 3639, 368, 16456, 30, 279, 7339, 1342, 358, 3274, 3152, 12001, 19326, 18, 3639, 368, 14312, 4582, 648, 358, 1960, 1368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 6158, 12, 907, 2151, 16, 7110, 1388, 4153, 13, 288, 3639, 368, 16456, 30, 279, 7339, 1342, 358, 3274, 3152, 12001, 19326, 18, 3639, 368, 14312, 4582, 648, 358, 1960, 1368,...
if (msg_listener != null) {
if(msg_listener != null) {
public void passUp(Event evt) { byte[] tmp_state = null; switch (evt.getType()) { case Event.MSG: if (msg_listener != null) { msg_listener.receive((Message) evt.getArg()); } break; case Event.GET_APPLSTATE: // reply with GET_APPLSTATE_OK if (msg_listener != null) { try { tmp_state = msg_listener.getState(); } catch (Throwable t) { log.error("failed getting state from message listener (" + msg_listener + ")", t); } } channel.returnState(tmp_state); break; case Event.GET_STATE_OK: if (msg_listener != null) { try { msg_listener.setState((byte[]) evt.getArg()); } catch (ClassCastException cast_ex) { if (log.isErrorEnabled()) { log.error("received SetStateEvent, but argument " + evt.getArg() + " is not serializable. Discarding message."); } } } break; case Event.VIEW_CHANGE: View v = (View) evt.getArg(); Vector new_mbrs = v.getMembers(); if (new_mbrs != null) { members.removeAllElements(); for (int i = 0; i < new_mbrs.size(); i++) { members.addElement(new_mbrs.elementAt(i)); } } if (membership_listener != null) { membership_listener.viewAccepted(v); } break;//// case Event.SET_LOCAL_ADDRESS:// local_addr=(Address)evt.getArg();// break; case Event.SUSPECT: if (membership_listener != null) { membership_listener.suspect((Address) evt.getArg()); } break; case Event.BLOCK: if (membership_listener != null) { membership_listener.block(); } break; } }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/595c1743692efa6e4226a77afcc832561ea81eb9/MessageDispatcher.java/clean/src/org/jgroups/blocks/MessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1342, 1211, 12, 1133, 6324, 13, 288, 5411, 1160, 8526, 1853, 67, 2019, 273, 446, 31, 5411, 1620, 261, 73, 11734, 18, 588, 559, 10756, 288, 7734, 648, 2587, 18, 11210, 30, 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, 540, 1071, 918, 1342, 1211, 12, 1133, 6324, 13, 288, 5411, 1160, 8526, 1853, 67, 2019, 273, 446, 31, 5411, 1620, 261, 73, 11734, 18, 588, 559, 10756, 288, 7734, 648, 2587, 18, 11210, 30, 107...
return get("Row", "1");
return get("Row", "Key_Dataset");
public final static String getRow() { return get("Row", "1"); }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/c7fa7421eb14a3a4336fb30f9ff370d10f6d3694/ExperimenterDefaults.java/clean/trunk/weka/gui/experiment/ExperimenterDefaults.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 760, 514, 11835, 1435, 288, 565, 327, 336, 2932, 1999, 3113, 315, 653, 67, 10656, 8863, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 760, 514, 11835, 1435, 288, 565, 327, 336, 2932, 1999, 3113, 315, 653, 67, 10656, 8863, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
public void testChangeProductionFrontier() throws Exception { ProductionFrontier usProd = m_data.getProductionFrontierList().getProductionFrontier("usProd"); ProductionFrontier canProd = m_data.getProductionFrontierList().getProductionFrontier("canProd"); PlayerID can = m_data.getPlayerList().getPlayerID("chretian"); assertEquals( can.getProductionFrontier(), canProd); Change prodChange = ChangeFactory.changeProductionFrontier(can, usProd); prodChange.perform(m_data); assertEquals( can.getProductionFrontier(), usProd); prodChange = prodChange.invert(); prodChange.perform(m_data); assertEquals( can.getProductionFrontier(), canProd); prodChange = serialize(prodChange.invert()); prodChange.perform(m_data); assertEquals( can.getProductionFrontier(), usProd); prodChange = serialize(prodChange.invert()); prodChange.perform(m_data); assertEquals( can.getProductionFrontier(), canProd); }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/6d4902f6fb4cc244abe3aaada952f389c483c4fe/ChangeTest.java/clean/triplea/src/games/strategy/engine/data/ChangeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3043, 31590, 9580, 2453, 1435, 1216, 1185, 202, 95, 202, 202, 31590, 9580, 2453, 584, 30683, 273, 312, 67, 892, 18, 588, 31590, 9580, 2453, 682, 7675, 588, 31590, 958...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3043, 31590, 9580, 2453, 1435, 1216, 1185, 202, 95, 202, 202, 31590, 9580, 2453, 584, 30683, 273, 312, 67, 892, 18, 588, 31590, 9580, 2453, 682, 7675, 588, 31590, 958...
protected void process(MailImpl mail) {
protected void process(Mail mail) {
protected void process(MailImpl mail) { while (true) { String processorName = mail.getState(); if (processorName.equals(Mail.GHOST)) { //This message should disappear return; } try { LinearProcessor processor = (LinearProcessor)processors.get(processorName); if (processor == null) { StringBuffer exceptionMessageBuffer = new StringBuffer(128) .append("Unable to find processor ") .append(processorName) .append(" requested for processing of ") .append(mail.getName()); String exceptionMessage = exceptionMessageBuffer.toString(); getLogger().debug(exceptionMessage); mail.setState(Mail.ERROR); throw new MailetException(exceptionMessage); } StringBuffer logMessageBuffer = null; if (getLogger().isDebugEnabled()) { logMessageBuffer = new StringBuffer(64) .append("Processing ") .append(mail.getName()) .append(" through ") .append(processorName); getLogger().debug(logMessageBuffer.toString()); } processor.service(mail); if (getLogger().isDebugEnabled()) { logMessageBuffer = new StringBuffer(128) .append("Processed ") .append(mail.getName()) .append(" through ") .append(processorName); getLogger().debug(logMessageBuffer.toString()); getLogger().debug("Result was " + mail.getState()); } return; } catch (Throwable e) { // This is a strange error situation that shouldn't ordinarily // happen StringBuffer exceptionBuffer = new StringBuffer(64) .append("Exception in processor <") .append(processorName) .append(">"); getLogger().error(exceptionBuffer.toString(), e); if (processorName.equals(Mail.ERROR)) { // We got an error on the error processor... // kill the message mail.setState(Mail.GHOST); mail.setErrorMessage(e.getMessage()); } else { //We got an error... send it to the requested processor if (!(e instanceof MessagingException)) { //We got an error... send it to the error processor mail.setState(Mail.ERROR); } mail.setErrorMessage(e.getMessage()); } } if (getLogger().isErrorEnabled()) { StringBuffer logMessageBuffer = new StringBuffer(128) .append("An error occurred processing ") .append(mail.getName()) .append(" through ") .append(processorName); getLogger().error(logMessageBuffer.toString()); getLogger().error("Result was " + mail.getState()); } } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/09b866e04266a775175149410e22950d30d2812d/JamesSpoolManager.java/clean/src/java/org/apache/james/transport/JamesSpoolManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1207, 12, 6759, 4791, 13, 288, 3639, 1323, 261, 3767, 13, 288, 5411, 514, 6659, 461, 273, 4791, 18, 588, 1119, 5621, 5411, 309, 261, 8700, 461, 18, 14963, 12, 6759, 18, 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, 377, 4750, 918, 1207, 12, 6759, 4791, 13, 288, 3639, 1323, 261, 3767, 13, 288, 5411, 514, 6659, 461, 273, 4791, 18, 588, 1119, 5621, 5411, 309, 261, 8700, 461, 18, 14963, 12, 6759, 18, 43, ...
public void print(IWContext iwc) throws Exception { theElements.trimToSize(); if (movers) { if (!tableAlreadyPrinted) { tableAlreadyPrinted = true; movers = false; outerTable._print(iwc); movers = false; } else { tableAlreadyPrinted = false; } } else { Text theHeader = getTextHeading(); if (theHeader != null) { theHeader.addBreak(); theHeader._print(iwc); } //if ( doPrint(iwc) ){ if (getLanguage().equals("HTML")) { if (this.keepStatus == true) { if (iwc.getParameter(getName()) != null) { setSelectedElement(iwc.getParameter(getName())); } } if (getInterfaceStyle().equals("default")) { println("<select name=\"" + getName() + "\" " + getAttributeString() + " " + multipleString + " >"); for (Enumeration e = theElements.elements(); e.hasMoreElements();) { MenuElement tempobj = (MenuElement) e.nextElement(); if (allSelected) tempobj.setSelected(true); tempobj._print(iwc); } println("</select>"); } } else if (getLanguage().equals("WML")) { if (this.keepStatus == true) { if (iwc.getParameter(getName()) != null) { setSelectedElement(iwc.getParameter(getName())); } } if (getInterfaceStyle().equals("default")) { println("<select name=\"" + getName() + "\" " + getAttributeString() + " >"); for (Enumeration e = theElements.elements(); e.hasMoreElements();) { MenuElement tempobj = (MenuElement) e.nextElement(); tempobj._print(iwc); } println("</select>"); } } //} } }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/28c8fcc21bada2ccb6df17d99a75dae320cb8831/SelectionBox.java/buggy/src/java/com/idega/presentation/ui/SelectionBox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 1188, 12, 45, 59, 1042, 22315, 71, 13, 15069, 503, 95, 202, 202, 5787, 3471, 18, 5290, 774, 1225, 5621, 202, 202, 430, 12, 81, 23042, 15329, 1082, 202, 430, 12, 5, 212...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 1188, 12, 45, 59, 1042, 22315, 71, 13, 15069, 503, 95, 202, 202, 5787, 3471, 18, 5290, 774, 1225, 5621, 202, 202, 430, 12, 81, 23042, 15329, 1082, 202, 430, 12, 5, 212...
} else { }
public boolean calculateInputs(GnuMakefileGenerator makeGen, IResource[] projResources, boolean lastChance) { // Get the inputs for this tool invocation // Note that command inputs that are also dependencies are also added to the command dependencies list /* The priorities for determining the names of the inputs of a tool are: * 1. If an option is specified, use the value of the option. * 2. If a build variable is specified, use the files that have been added to the build variable as * the output(s) of other build steps. * 3. Use the file extensions and the resources in the project */ boolean done = true; Vector myCommandInputs = new Vector(); // Inputs for the tool command line Vector myCommandDependencies = new Vector(); // Dependencies for the make rule Vector myEnumeratedInputs = new Vector(); // Complete list of individual inputs IInputType[] inTypes = tool.getInputTypes(); if (inTypes != null && inTypes.length > 0) { for (int i=0; i<inTypes.length; i++) { IInputType type = inTypes[i]; String variable = type.getBuildVariable(); boolean primaryInput = type.getPrimaryInput(); boolean useFileExts = false; IOption option = tool.getOptionBySuperClassId(type.getOptionId()); // Option? if (option != null) { try { List inputs = new ArrayList(); int optType = option.getValueType(); if (optType == IOption.STRING) { inputs.add(option.getStringValue()); } else if ( optType == IOption.STRING_LIST || optType == IOption.LIBRARIES || optType == IOption.OBJECTS) { inputs = (List)option.getValue(); } //myCommandInputs.add(inputs); if (primaryInput) { myCommandDependencies.add(0, inputs); } else { myCommandDependencies.add(inputs); } //myEnumeratedInputs.add(inputs); } catch( BuildException ex ) { } } else { // Build Variable? if (variable.length() > 0) { String cmdVariable = variable = "$(" + variable + ")"; //$NON-NLS-1$ //$NON-NLS-2$ myCommandInputs.add(cmdVariable); if (primaryInput) { myCommandDependencies.add(0, cmdVariable); } else { myCommandDependencies.add(cmdVariable); } // If there is an output variable with the same name, get // the files associated with it. List outMacroList = makeGen.getBuildVariableList(variable, true); if (outMacroList != null) { myEnumeratedInputs.addAll(outMacroList); } else { // If "last chance", then calculate using file extensions below if (lastChance) { useFileExts = true; } else { done = false; break; } } } // Use file extensions if (variable.length() == 0 || useFileExts) { if (type.getMultipleOfType()) { // Calculate myEnumeratedInputs using the file extensions and the resources in the project String[] exts = tool.getAllInputExtensions(); if (projResources != null) { for (int j=0; j<projResources.length; j++) { if (projResources[i].getType() == IResource.FILE) { String fileExt = projResources[i].getFileExtension(); for (int k=0; k<exts.length; k++) { if (fileExt.equals(exts[k])) { // TODO - is project relative correct? if (!useFileExts) { myCommandInputs.add(projResources[i].getProjectRelativePath()); if (primaryInput) { myCommandDependencies.add(0, projResources[i].getProjectRelativePath()); } else { myCommandDependencies.add(projResources[i].getProjectRelativePath()); } } myEnumeratedInputs.add(projResources[i].getProjectRelativePath()); break; } } } } } } else { // Rule will be generated by addRuleForSource } } } // Get any additional inputs specified in the manifest file or the project file IAdditionalInput[] addlInputs = type.getAdditionalInputs(); if (addlInputs != null) { for (int j=0; j<addlInputs.length; j++) { IAdditionalInput addlInput = addlInputs[j]; int kind = addlInput.getKind(); if (kind == IAdditionalInput.KIND_ADDITIONAL_INPUT || kind == IAdditionalInput.KIND_ADDITIONAL_INPUT_DEPENDENCY) { String[] paths = addlInput.getPaths(); if (paths != null) { for (int k = 0; k < paths.length; k++) { myCommandInputs.add(paths[k]); myEnumeratedInputs.add(paths[k]); } } } } } } } else { // For support of pre-CDT 3.0 integrations. if (bIsTargetTool) { // NOTE WELL: This only suuports the case of a single "target tool" // with the following characteristics: // 1. The tool consumes exactly all of the object files produced // by other tools in the build and produces a single output // 2. The target name comes from the configuration artifact name // The rule looks like: // <targ_prefix><target>.<extension>: $(OBJS) <refd_project_1 ... refd_project_n> myCommandInputs.add("$(OBJS)"); //$NON-NLS-1$ myCommandInputs.add("$(USER_OBJS)"); //$NON-NLS-1$ myCommandInputs.add("$(LIBS)"); //$NON-NLS-1$ } else { // Rule will be generated by addRuleForSource } } if (done) { commandInputs.addAll(myCommandInputs); commandDependencies.addAll(0, myCommandDependencies); enumeratedInputs.addAll(myEnumeratedInputs); inputsCalculated = true; return true; } return false; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/2496e20554ec5c0d0c44cedc5069747479b46af6/ManagedBuildGnuToolInfo.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/ManagedBuildGnuToolInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 4604, 10059, 12, 43, 13053, 6464, 768, 3908, 1221, 7642, 16, 467, 1420, 8526, 10296, 3805, 16, 1250, 1142, 782, 1359, 13, 288, 202, 202, 759, 968, 326, 4540, 364, 333, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 4604, 10059, 12, 43, 13053, 6464, 768, 3908, 1221, 7642, 16, 467, 1420, 8526, 10296, 3805, 16, 1250, 1142, 782, 1359, 13, 288, 202, 202, 759, 968, 326, 4540, 364, 333, 5...
public MomentOfInertiaDescriptor() {}
public MomentOfInertiaDescriptor() { logger = new LoggingTool(this); }
public MomentOfInertiaDescriptor() {}
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/0a7f0ac7459a9f9ba3f69e907ae5192937b6f0bd/MomentOfInertiaDescriptor.java/buggy/src/org/openscience/cdk/qsar/MomentOfInertiaDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 7970, 951, 382, 31449, 3187, 1435, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 490, 7970, 951, 382, 31449, 3187, 1435, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
case ( LineStyle.DASHED ) :
case ( LineStyle.DASHED ) :
public void drawLine( LineRenderEvent lre ) throws ChartException { // CHECK IF THE LINE ATTRIBUTES ARE CORRECTLY DEFINED final LineAttributes lia = lre.getLineAttributes( ); if ( !validateLineAttributes( lre.getSource( ), lia ) || lia.getColor( ) == null ) { return; } // DRAW THE LINE final int iOldLineStyle = _gc.getLineStyle( ); final int iOldLineWidth = _gc.getLineWidth( ); final Color cFG = (Color) _ids.getColor( lia.getColor( ) ); int iLineStyle = SWT.LINE_SOLID; switch ( lia.getStyle( ).getValue( ) ) { case ( LineStyle.DOTTED ) : iLineStyle = SWT.LINE_DOT; break; case ( LineStyle.DASH_DOTTED ) : iLineStyle = SWT.LINE_DASHDOT; break; case ( LineStyle.DASHED ) : iLineStyle = SWT.LINE_DASH; break; } _gc.setLineStyle( iLineStyle ); _gc.setLineWidth( lia.getThickness( ) ); final Location lo1 = lre.getStart( ); final Location lo2 = lre.getEnd( ); _gc.setForeground( cFG ); R31Enhance.setAlpha( _gc, lia.getColor( ) ); _gc.drawLine( (int) ( ( lo1.getX( ) + dTranslateX ) * dScale ), (int) ( ( lo1.getY( ) + dTranslateY ) * dScale ), (int) ( ( lo2.getX( ) + dTranslateX ) * dScale ), (int) ( ( lo2.getY( ) + dTranslateY ) * dScale ) ); _gc.setLineStyle( iOldLineStyle ); _gc.setLineWidth( iOldLineWidth ); cFG.dispose( ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/bd39aef05872b463576ce02ea4142048cb79a103/SwtRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 30732, 12, 5377, 3420, 1133, 328, 266, 262, 1216, 14804, 503, 202, 95, 202, 202, 759, 14565, 11083, 12786, 14340, 14043, 18744, 432, 862, 28359, 4512, 7076, 2030, 7263, 2056,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30732, 12, 5377, 3420, 1133, 328, 266, 262, 1216, 14804, 503, 202, 95, 202, 202, 759, 14565, 11083, 12786, 14340, 14043, 18744, 432, 862, 28359, 4512, 7076, 2030, 7263, 2056,...
return (ICPPASTTemplateParameter[]) ArrayUtil.removeNulls( ICPPASTTemplateParameter.class, parameters );
parameters = (ICPPASTTemplateParameter[]) ArrayUtil.removeNullsAfter( ICPPASTTemplateParameter.class, parameters, parametersPos ); return parameters;
public ICPPASTTemplateParameter[] getTemplateParameters() { if( parameters == null ) return ICPPASTTemplateParameter.EMPTY_TEMPLATEPARAMETER_ARRAY; return (ICPPASTTemplateParameter[]) ArrayUtil.removeNulls( ICPPASTTemplateParameter.class, parameters ); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8a37c61a8cf7ad9a8e5afee104a5b301a0555dbb/CPPASTTemplatedTypeTemplateParameter.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTTemplatedTypeTemplateParameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 4258, 4066, 882, 2283, 1662, 8526, 10646, 2402, 1435, 288, 3639, 309, 12, 1472, 422, 446, 262, 327, 467, 4258, 4066, 882, 2283, 1662, 18, 13625, 67, 12205, 9819, 67, 8552, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 4258, 4066, 882, 2283, 1662, 8526, 10646, 2402, 1435, 288, 3639, 309, 12, 1472, 422, 446, 262, 327, 467, 4258, 4066, 882, 2283, 1662, 18, 13625, 67, 12205, 9819, 67, 8552, 31, ...
public void putPatch(Patch bank,Patch p,int patchNum)
public void putPatch(IPatch bank,IPatch p,int patchNum)
public void putPatch(Patch bank,Patch p,int patchNum) { if (!canHoldPatch(p)) {ErrorMsg.reportError("Error", "This type of patch does not fit in to this type of bank."); return;} System.arraycopy(p.sysex,0,bank.sysex,getPatchStart(patchNum),275); calculateChecksum(bank); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/OberheimMatrixBankDriver.java/clean/JSynthLib/synthdrivers/OberheimMatrix/OberheimMatrixBankDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1378, 7332, 12, 2579, 505, 11218, 16, 2579, 505, 293, 16, 474, 4729, 2578, 13, 282, 288, 565, 309, 16051, 4169, 20586, 7332, 12, 84, 3719, 4202, 288, 668, 3332, 18, 6006, 668, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1378, 7332, 12, 2579, 505, 11218, 16, 2579, 505, 293, 16, 474, 4729, 2578, 13, 282, 288, 565, 309, 16051, 4169, 20586, 7332, 12, 84, 3719, 4202, 288, 668, 3332, 18, 6006, 668, 293...
exitFindBugs();
exitFindBugs();
private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm exitFindBugs(); }//GEN-LAST:event_exitForm
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/20d4fcba199a7f0794ac868634a88239a9a6a294/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2427, 1204, 12, 6290, 18, 2219, 88, 18, 2575, 18, 3829, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 8593, 1204, 202, 8593, 3125, 31559, 5621, 565, 289, 759, 166...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 918, 2427, 1204, 12, 6290, 18, 2219, 88, 18, 2575, 18, 3829, 1133, 6324, 13, 288, 759, 16652, 17, 15354, 30, 2575, 67, 8593, 1204, 202, 8593, 3125, 31559, 5621, 565, 289, 759, 166...
return 100;
return 90;
public int getScripCost () { return 100; }
8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/b3634e001db422e8ab005fd459d0132b64fb77a1/HalfGiddyUp.java/buggy/src/java/com/threerings/bang/game/data/card/HalfGiddyUp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11971, 21335, 8018, 1832, 565, 288, 3639, 327, 8566, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11971, 21335, 8018, 1832, 565, 288, 3639, 327, 8566, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return cloneNodeWorker(node);
ret = cloneNodeWorker( n );
public static org.dom4j.Node cloneNode(org.dom4j.Node node) { if (node instanceof org.dom4j.Element) { org.dom4j.Element originalElement = (org.dom4j.Element) node; Map namespaceContext = XMLUtils.getNamespaceContext(originalElement); org.dom4j.Element resultElement = (org.dom4j.Element) cloneNodeWorker(originalElement); for (Iterator i = namespaceContext.keySet().iterator(); i.hasNext();) { String prefix = (String) i.next(); if (resultElement.getNamespaceForPrefix(prefix) == null) resultElement.addNamespace(prefix, (String) namespaceContext.get(prefix)); } return resultElement; } else { return cloneNodeWorker(node); } }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/dbc53be54460ca819af3b55ed8f3cde7bd3f0d52/Dom4jUtils.java/buggy/src/java/org/orbeon/oxf/xml/dom4j/Dom4jUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2358, 18, 9859, 24, 78, 18, 907, 3236, 907, 12, 3341, 18, 9859, 24, 78, 18, 907, 756, 13, 288, 3639, 309, 261, 2159, 1276, 2358, 18, 9859, 24, 78, 18, 1046, 13, 288, 5411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2358, 18, 9859, 24, 78, 18, 907, 3236, 907, 12, 3341, 18, 9859, 24, 78, 18, 907, 756, 13, 288, 3639, 309, 261, 2159, 1276, 2358, 18, 9859, 24, 78, 18, 1046, 13, 288, 5411...
{ if (histogramDialog != null) histogramDialog.getManager().setInputWindowEnd(value); }
{ if (histogramDialog != null) histogramDialog.getManager().setInputWindowEnd(value); }
void setInputWindowEnd(int value) { if (histogramDialog != null) histogramDialog.getManager().setInputWindowEnd(value); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 21687, 3829, 1638, 12, 474, 460, 13, 202, 95, 202, 202, 430, 261, 22702, 6353, 480, 446, 13, 1082, 202, 22702, 6353, 18, 588, 1318, 7675, 542, 1210, 3829, 1638, 12, 1132, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 21687, 3829, 1638, 12, 474, 460, 13, 202, 95, 202, 202, 430, 261, 22702, 6353, 480, 446, 13, 1082, 202, 22702, 6353, 18, 588, 1318, 7675, 542, 1210, 3829, 1638, 12, 1132, 176...
if (request.getParameter( "geneIndex") != null ) {
if (StringUtils.hasText( request.getParameter( "geneIndex")) ) {
protected ModelAndView handle( HttpServletRequest request, HttpServletResponse response, Object command, BindException errors ) throws Exception { CompassIndexCommand indexCommand = ( CompassIndexCommand ) command; if ( !StringUtils.hasText( indexCommand.getDoIndex() ) || !indexCommand.getDoIndex().equalsIgnoreCase( "true" ) ) { return new ModelAndView( getIndexView(), getCommandName(), indexCommand ); } IndexJob index; if (request.getParameter( "geneIndex") != null ) { index = new IndexJob( request, ( CompassIndexCommand ) command, ( CompassGpsInterfaceDevice ) getWebApplicationContext().getBean( "geneCompassGps" ) ); } else { index = new IndexJob( request, ( CompassIndexCommand ) command, ( CompassGpsInterfaceDevice ) getWebApplicationContext().getBean( "expressionCompassGps" ) ); } String taskId = startJob( request, index ); return new ModelAndView( new RedirectView( "processProgress.html?taskid=" + taskId ) ); }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/b3e22b6ae86c492a30d69a11819c6049a90aa056/CustomCompassIndexController.java/buggy/gemma-web/src/main/java/ubic/gemma/web/controller/compass/CustomCompassIndexController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 3164, 1876, 1767, 1640, 12, 9984, 590, 16, 12446, 766, 16, 1033, 1296, 16, 5411, 6936, 503, 1334, 262, 1216, 1185, 288, 3639, 5427, 428, 1016, 2189, 770, 2189, 273, 261, 5427, 428, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3164, 1876, 1767, 1640, 12, 9984, 590, 16, 12446, 766, 16, 1033, 1296, 16, 5411, 6936, 503, 1334, 262, 1216, 1185, 288, 3639, 5427, 428, 1016, 2189, 770, 2189, 273, 261, 5427, 428, ...
if (type == TargetType.TYPE_COLLECTION) { return provider.getFeed(request, true); } if (type == TargetType.TYPE_ENTRY) { return provider.getEntry(request, true); } if (type == TargetType.TYPE_MEDIA) { return provider.getMedia(request, true); } if (type == TargetType.TYPE_CATEGORIES) { return provider.getCategories(request, true); }
return null; } else { return handler.process(provider, request);
protected ResponseContext process( Provider provider, RequestContext request) { String method = request.getMethod().intern(); TargetType type = request.getTarget().getType(); if (method == "GET") { if (type == TargetType.TYPE_SERVICE) { return provider.getService(request, true); } if (type == TargetType.TYPE_COLLECTION) { return provider.getFeed(request, true); } if (type == TargetType.TYPE_ENTRY) { return provider.getEntry(request, true); } if (type == TargetType.TYPE_MEDIA) { return provider.getMedia(request, true); } if (type == TargetType.TYPE_CATEGORIES) { return provider.getCategories(request, true); } } else if (method == "HEAD") { if (type == TargetType.TYPE_SERVICE) { return provider.getService(request, false); } if (type == TargetType.TYPE_COLLECTION) { return provider.getFeed(request, false); } if (type == TargetType.TYPE_ENTRY) { return provider.getEntry(request, false); } if (type == TargetType.TYPE_MEDIA) { return provider.getMedia(request, false); } if (type == TargetType.TYPE_CATEGORIES) { return provider.getCategories(request, false); } } else if (method == "POST") { if (type == TargetType.TYPE_COLLECTION) { return provider.createEntry(request); } if (type == TargetType.TYPE_ENTRY) { return provider.entryPost(request); } if (type == TargetType.TYPE_MEDIA) { return provider.mediaPost(request); } } else if (method == "PUT") { if (type == TargetType.TYPE_ENTRY) { return provider.updateEntry(request); } if (type == TargetType.TYPE_MEDIA) { return provider.updateMedia(request); } } else if (method == "DELETE") { if (type == TargetType.TYPE_ENTRY) { return provider.deleteEntry(request); } if (type == TargetType.TYPE_MEDIA) { return provider.deleteMedia(request); } } else if (method == "OPTIONS") { AbstractResponseContext rc = new EmptyResponseContext(200); rc.addHeader("Allow", combine(getAllowedMethods(type))); return rc; } return null; }
46425 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46425/14c7b025ce1392ad627181dd30b2ea5621c4eb66/DefaultRequestHandler.java/buggy/server/src/main/java/org/apache/abdera/protocol/server/servlet/DefaultRequestHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 2306, 1042, 1207, 12, 565, 7561, 2893, 16, 377, 20479, 590, 13, 288, 1377, 514, 707, 273, 590, 18, 588, 1305, 7675, 267, 798, 5621, 1377, 5916, 559, 618, 273, 590, 18, 588, 2326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2306, 1042, 1207, 12, 565, 7561, 2893, 16, 377, 20479, 590, 13, 288, 1377, 514, 707, 273, 590, 18, 588, 1305, 7675, 267, 798, 5621, 1377, 5916, 559, 618, 273, 590, 18, 588, 2326, ...
if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : getRuntime().newFixnum(getValue().charAt(idx)); } else if (args[0] instanceof RubyRegexp) {
if (args[0] instanceof RubyRegexp) {
public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : getRuntime().newFixnum(getValue().charAt(idx)); } else if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]).search(this, 0) >= 0 ? RubyRegexp.last_match(getRuntime().getCurrentContext().getBackref()) : getRuntime().getNil(); } else if (args[0] instanceof RubyString) { return getValue().indexOf(stringValue(args[0]).getValue()) != -1 ? args[0] : getRuntime().getNil(); } else if (args[0] instanceof RubyRange) { long[] begLen = ((RubyRange) args[0]).getBeginLength(getValue().length(), true, false); return begLen == null ? getRuntime().getNil() : substr((int) begLen[0], (int) begLen[1]); } int idx = (int) args[0].convertToInteger().getLongValue(); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : getRuntime().newFixnum(getValue().charAt(idx)); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 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, 225, 202, 482, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 327...
String pluginId = "org.eclipse.ui";
String pluginId = "org.eclipse.ui";
public IPluginDescriptor[] getEarlyActivatedPlugins() { IPluginRegistry registry = Platform.getPluginRegistry(); String pluginId = "org.eclipse.ui"; String extensionPoint = "startup"; IExtensionPoint point = registry.getExtensionPoint(pluginId, extensionPoint); IExtension[] extensions = point.getExtensions(); IPluginDescriptor result[] = new IPluginDescriptor[extensions.length]; for (int i = 0; i < extensions.length; i++) { result[i] = extensions[i].getDeclaringPluginDescriptor(); } return result; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/25425fe3505bc6f62e9021f3f79e33d77a752241/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3773, 3187, 8526, 4774, 20279, 28724, 9461, 1435, 288, 202, 202, 45, 3773, 4243, 4023, 273, 11810, 18, 588, 3773, 4243, 5621, 202, 202, 780, 1909, 548, 273, 315, 3341, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3773, 3187, 8526, 4774, 20279, 28724, 9461, 1435, 288, 202, 202, 45, 3773, 4243, 4023, 273, 11810, 18, 588, 3773, 4243, 5621, 202, 202, 780, 1909, 548, 273, 315, 3341, 18, ...
naker.reset(); out_of_bander.reset();
members=(Vector)view.getMembers().clone();
public void down(Event evt) { Message msg; if(Trace.debug) Trace.debug("NAKACK.down()", "queued_msgs has " + queued_msgs.size() + " messages " + "\n\nnaker:\n" + naker.dumpContents() + "\n\nout_of_bander: " + out_of_bander.dumpContents() + "\n-----------------------------\n"); switch(evt.getType()) { case Event.MSG: msg=(Message)evt.getArg(); if(msg.getDest() != null && !msg.getDest().isMulticastAddress()) break; // unicast address: not null and not mcast, pass down unchanged if(send_next_msg_out_of_band) { out_of_bander.send(msg); send_next_msg_out_of_band=false; } else if(send_next_msg_acking) { naker.setAcks(true); // require acks when sending a msg naker.send(msg); naker.setAcks(false); // don't require acks when sending a msg send_next_msg_acking=false; } else naker.send(msg); return; // don't pass down the stack, naker does this for us ! case Event.GET_MSG_DIGEST: long[] highest_seqnos=(long[])evt.getArg(); Digest digest=naker.computeMessageDigest(highest_seqnos); passUp(new Event(Event.GET_MSG_DIGEST_OK, digest)); return; case Event.GET_MSGS: List lower_seqnos=naker.getMessagesInRange((long[][])evt.getArg()); passUp(new Event(Event.GET_MSGS_OK, lower_seqnos)); return; case Event.REBROADCAST_MSGS: rebroadcastMsgs((Vector) evt.getArg()); break; case Event.TMP_VIEW: Vector mbrs=((View)evt.getArg()).getMembers(); members=mbrs != null ? (Vector)mbrs.clone(): new Vector(); break; case Event.VIEW_CHANGE: synchronized (this) { view=((View) ((View) evt.getArg()).clone()); vid=view.getVid(); members=(Vector)view.getMembers().clone(); naker.reset(); out_of_bander.reset(); is_server=true; // check vids from now on // deliver messages received previously for this view if(queued_msgs.size() > 0) deliverQueuedMessages(); } break; case Event.BECOME_SERVER: is_server=true; break; case Event.SWITCH_NAK: naker.setAcks(false); // don't require acks when sending a msg return; // don't pass down any further case Event.SWITCH_NAK_ACK: send_next_msg_acking=true; return; // don't pass down any further case Event.SWITCH_OUT_OF_BAND: send_next_msg_out_of_band=true; return; case Event.GET_MSGS_RECEIVED: // return the highest seqnos delivered (=consumed by the application) long[] h=naker.getHighestSeqnosDelivered(); passUp(new Event(Event.GET_MSGS_RECEIVED_OK, h)); break; } passDown(evt); }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/75359f4186603c5a949e15ffab51fb811f04ed8e/NAKACK.java/buggy/src/org/jgroups/protocols/NAKACK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2588, 12, 1133, 6324, 13, 288, 202, 1079, 1234, 31, 202, 430, 12, 3448, 18, 4148, 13, 202, 565, 2677, 18, 4148, 2932, 11277, 47, 3649, 18, 2378, 1435, 3113, 315, 19499, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2588, 12, 1133, 6324, 13, 288, 202, 1079, 1234, 31, 202, 430, 12, 3448, 18, 4148, 13, 202, 565, 2677, 18, 4148, 2932, 11277, 47, 3649, 18, 2378, 1435, 3113, 315, 19499, 67, ...
int out = (int) (in * ((2<<getComponentSize(i)) - 1));
int out = (int) (in * ((1<<getComponentSize(i)) - 1));
public int[] getUnnormalizedComponents(float[] normComponents, int normOffset, int[] components, int offset) { int numComponents = getNumComponents(); if (components == null) { components = new int[offset + numComponents]; } for (int i=0; i<numComponents; i++) { float in = normComponents[normOffset++]; int out = (int) (in * ((2<<getComponentSize(i)) - 1)); components[offset++] = out; } return components; }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/833a77ade06affb28e91e75005e48232abfcd6b4/ColorModel.java/clean/libjava/java/awt/image/ColorModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 8526, 10833, 17762, 7171, 12, 5659, 8526, 4651, 7171, 16, 25083, 509, 4651, 2335, 16, 25083, 509, 8526, 4085, 16, 25083, 509, 1384, 13, 225, 288, 565, 509, 818, 7171, 273, 1118...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 8526, 10833, 17762, 7171, 12, 5659, 8526, 4651, 7171, 16, 25083, 509, 4651, 2335, 16, 25083, 509, 8526, 4085, 16, 25083, 509, 1384, 13, 225, 288, 565, 509, 818, 7171, 273, 1118...
public Element getRootElement() {
public Element getRootElement() {
public Element getRootElement() { Element root = new Element(); root.m_element = m_document.getDocumentElement(); return root; }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/Document.java/clean/archive/core-platform/src/com/arsdigita/xml/Document.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3010, 7656, 1046, 1435, 288, 540, 3010, 1365, 273, 394, 3010, 5621, 3639, 1365, 18, 81, 67, 2956, 273, 312, 67, 5457, 18, 588, 2519, 1046, 5621, 3639, 327, 1365, 31, 565, 289, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3010, 7656, 1046, 1435, 288, 540, 3010, 1365, 273, 394, 3010, 5621, 3639, 1365, 18, 81, 67, 2956, 273, 312, 67, 5457, 18, 588, 2519, 1046, 5621, 3639, 327, 1365, 31, 565, 289, 2, ...
public String[] getTriggerGroupNames() throws SchedulerException;
String[] getTriggerGroupNames() throws SchedulerException;
public String[] getTriggerGroupNames() throws SchedulerException;
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/Scheduler.java/buggy/src/java/org/quartz/Scheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8526, 336, 6518, 1114, 1557, 1435, 1216, 12620, 503, 31, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8526, 336, 6518, 1114, 1557, 1435, 1216, 12620, 503, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
disk = Short.parseShort(st.nextToken(), 16);
disk = Integer.parseInt(st.nextToken(), 16); } if (st.hasMoreTokens()) { partition_no = Integer.parseInt(st.nextToken(), 16);
public String execute() throws CommandFailedException { Runtime r = Runtime.getRuntime(); String outline; BufferedReader in; String output = null; try { Process start_p; String start_cmdarray[] = new String[2]; int start_rc; start_cmdarray[0] = d.xiToolsDir + "xi_phys_probe"; start_cmdarray[1] = Integer.toString(domain_id); if (Settings.TEST) { output = reportCommand(start_cmdarray); } else { start_p = r.exec(start_cmdarray); start_rc = start_p.waitFor(); if (start_rc != 0) { throw CommandFailedException.xiCommandFailed( "Could not get extent list", start_cmdarray); } in = new BufferedReader( new InputStreamReader(start_p.getInputStream())); outline = in.readLine(); while (outline != null) { int disk = -1; long offset = -1; long size = -1; StringTokenizer st = new StringTokenizer(outline); if (st.hasMoreTokens()) { disk = Short.parseShort(st.nextToken(), 16); } if (st.hasMoreTokens()) { offset = Long.parseLong(st.nextToken(), 16); } if (st.hasMoreTokens()) { size = Long.parseLong(st.nextToken(), 16); } if (st.hasMoreTokens()) { String mode = st.nextToken(); Extent extent = new Extent(disk, offset, size); if (mode.equals("rw")) { map.put(extent, Mode.READ_WRITE); } else if (mode.equals("r")) { map.put(extent, Mode.READ_ONLY); } else { throw new CommandFailedException( "Could not parse access mode " + mode); } } outline = in.readLine(); } } } catch (CommandFailedException e) { throw e; } catch (Exception e) { throw new CommandFailedException( "Could not get extent list(" + e + ")", e); } return output; }
6086 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6086/c9e5232d3bb25a56d2243e9927a9f834c51f687a/CommandPhysicalList.java/buggy/tools/control/src/org/xenoserver/control/CommandPhysicalList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1836, 1435, 1216, 3498, 12417, 288, 3639, 2509, 436, 273, 2509, 18, 588, 5576, 5621, 3639, 514, 16363, 31, 3639, 10633, 316, 31, 3639, 514, 876, 273, 446, 31, 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, 514, 1836, 1435, 1216, 3498, 12417, 288, 3639, 2509, 436, 273, 2509, 18, 588, 5576, 5621, 3639, 514, 16363, 31, 3639, 10633, 316, 31, 3639, 514, 876, 273, 446, 31, 3639, 775, 288, ...
AST tmp2199_AST_in = (AST)_t;
AST tmp2201_AST_in = (AST)_t;
public final void systemhelpstate(AST _t) throws RecognitionException { AST systemhelpstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2320 = _t; AST tmp2183_AST_in = (AST)_t; match(_t,SYSTEMHELP); _t = _t.getFirstChild(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WINDOWNAME: { AST __t2322 = _t; AST tmp2184_AST_in = (AST)_t; match(_t,WINDOWNAME); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2322; _t = _t.getNextSibling(); break; } case ALTERNATEKEY: case COMMAND: case CONTENTS: case CONTEXT: case CONTEXTPOPUP: case FINDER: case FORCEFILE: case HELP: case HELPTOPIC: case KEY: case MULTIPLEKEY: case PARTIALKEY: case POSITION: case QUIT: case SETCONTENTS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ALTERNATEKEY: { AST __t2324 = _t; AST tmp2185_AST_in = (AST)_t; match(_t,ALTERNATEKEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2324; _t = _t.getNextSibling(); break; } case CONTEXT: { AST __t2325 = _t; AST tmp2186_AST_in = (AST)_t; match(_t,CONTEXT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2325; _t = _t.getNextSibling(); break; } case CONTENTS: { AST tmp2187_AST_in = (AST)_t; match(_t,CONTENTS); _t = _t.getNextSibling(); break; } case SETCONTENTS: { AST __t2326 = _t; AST tmp2188_AST_in = (AST)_t; match(_t,SETCONTENTS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2326; _t = _t.getNextSibling(); break; } case FINDER: { AST tmp2189_AST_in = (AST)_t; match(_t,FINDER); _t = _t.getNextSibling(); break; } case CONTEXTPOPUP: { AST __t2327 = _t; AST tmp2190_AST_in = (AST)_t; match(_t,CONTEXTPOPUP); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2327; _t = _t.getNextSibling(); break; } case HELPTOPIC: { AST __t2328 = _t; AST tmp2191_AST_in = (AST)_t; match(_t,HELPTOPIC); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2328; _t = _t.getNextSibling(); break; } case KEY: { AST __t2329 = _t; AST tmp2192_AST_in = (AST)_t; match(_t,KEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2329; _t = _t.getNextSibling(); break; } case PARTIALKEY: { AST __t2330 = _t; AST tmp2193_AST_in = (AST)_t; match(_t,PARTIALKEY); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_3.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t2330; _t = _t.getNextSibling(); break; } case MULTIPLEKEY: { AST __t2332 = _t; AST tmp2194_AST_in = (AST)_t; match(_t,MULTIPLEKEY); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2195_AST_in = (AST)_t; match(_t,TEXT); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2332; _t = _t.getNextSibling(); break; } case COMMAND: { AST __t2333 = _t; AST tmp2196_AST_in = (AST)_t; match(_t,COMMAND); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2333; _t = _t.getNextSibling(); break; } case POSITION: { AST __t2334 = _t; AST tmp2197_AST_in = (AST)_t; match(_t,POSITION); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case MAXIMIZE: { AST tmp2198_AST_in = (AST)_t; match(_t,MAXIMIZE); _t = _t.getNextSibling(); break; } case X: { AST tmp2199_AST_in = (AST)_t; match(_t,X); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2200_AST_in = (AST)_t; match(_t,Y); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2201_AST_in = (AST)_t; match(_t,WIDTH); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp2202_AST_in = (AST)_t; match(_t,HEIGHT); _t = _t.getNextSibling(); expression(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } _t = __t2334; _t = _t.getNextSibling(); break; } case FORCEFILE: { AST tmp2203_AST_in = (AST)_t; match(_t,FORCEFILE); _t = _t.getNextSibling(); break; } case HELP: { AST tmp2204_AST_in = (AST)_t; match(_t,HELP); _t = _t.getNextSibling(); break; } case QUIT: { AST tmp2205_AST_in = (AST)_t; match(_t,QUIT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2320; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2619, 5201, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2619, 5201, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2619, 5201, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2619, 5201, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 29...
Element rootElement = descriptor.getProjectData(CDESCRIPTOR_ID);
Element rootElement = descriptor.getProjectData(CDESCRIPTOR_ID);
public static void updateScannerInfo(MakeScannerInfo scannerInfo) throws CoreException { IProject project = scannerInfo.getProject(); ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project); Element rootElement = descriptor.getProjectData(CDESCRIPTOR_ID); // Clear out all current children // Note: Probably would be a better idea to merge in the data Node child = rootElement.getFirstChild(); while (child != null) { rootElement.removeChild(child); child = rootElement.getFirstChild(); } descriptor.saveProjectData(); migrateToCPathEntries(scannerInfo); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/09a4ea370cd03cca08ddfea0239bc0263a36f158/MakeScannerProvider.java/buggy/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/core/MakeScannerProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1089, 11338, 966, 12, 6464, 11338, 966, 7683, 966, 13, 1216, 30015, 288, 202, 202, 45, 4109, 1984, 273, 7683, 966, 18, 588, 4109, 5621, 202, 202, 2871, 3187, 4950, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1089, 11338, 966, 12, 6464, 11338, 966, 7683, 966, 13, 1216, 30015, 288, 202, 202, 45, 4109, 1984, 273, 7683, 966, 18, 588, 4109, 5621, 202, 202, 2871, 3187, 4950, 2...
return simple("(" + expressionOne + " " + stringComparator + " " + expressionTwo + " or (" + expressionOneNotNull + " and not " +
return simple("(" + expressionOne + " " + stringComparator + " " + expressionTwo + " or (" + expressionOneNotNull + " and not " +
public Filter compare(String expressionOne, int comparator, String expressionTwo) { String stringComparator = null; SQLUtilities util = SessionManager.getSession().getSQLUtilities(); boolean notEqualsValue = false; switch (comparator) { case EQUALS: stringComparator = "="; break; case NOT_EQUALS: stringComparator = "!="; notEqualsValue = true; break; case GREATER_THAN: stringComparator = ">"; notEqualsValue = true; break; case LESS_THAN: stringComparator = "<"; notEqualsValue = true; break; case GREATER_THAN_EQUALS: stringComparator = ">="; break; case LESS_THAN_EQUALS: stringComparator = "<="; break; case STARTS_WITH: return simple(expressionOne + " like " + expressionTwo + " || '%'"); case ENDS_WITH: return simple(expressionOne + " like '%' || " + expressionTwo); case CONTAINS: return simple(expressionOne + " like '%' || " + expressionTwo + " || '%'"); default: throw new PersistenceException("The comparator that you have " + "passed in is not value"); } String expressionOneNotNull = util.createNullString(stringComparator, expressionOne); String expressionTwoNotNull = util.createNullString(stringComparator, expressionTwo); if (notEqualsValue) { // in this case, we have to make sure that they are not equal return simple("(" + expressionOne + " " + stringComparator + " " + expressionTwo + " or (" + expressionOneNotNull + " and not " + expressionTwoNotNull + ") or (" + expressionTwoNotNull + " and not " + expressionOneNotNull + "))"); } else { return simple("(" + expressionOne + " " + stringComparator + " " + expressionTwo + " or (" + expressionOneNotNull + " and " + expressionTwoNotNull + "))"); } }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/FilterFactoryImpl.java/buggy/archive/core-platform/src/com/arsdigita/persistence/FilterFactoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4008, 3400, 12, 780, 2652, 3335, 16, 509, 8862, 16, 21821, 514, 2652, 11710, 13, 288, 3639, 514, 533, 5559, 273, 446, 31, 3639, 3063, 11864, 1709, 273, 3877, 1318, 18, 588, 2157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4008, 3400, 12, 780, 2652, 3335, 16, 509, 8862, 16, 21821, 514, 2652, 11710, 13, 288, 3639, 514, 533, 5559, 273, 446, 31, 3639, 3063, 11864, 1709, 273, 3877, 1318, 18, 588, 2157, ...
rsee.printStackTrace();
Object retrieveSTSData(String semanticTypeName, Criteria c) throws DSOutOfServiceException, DSAccessException { Object retVal; try { retVal = getDataFactory().retrieve(semanticTypeName, c); } catch (RemoteConnectionException rce) { throw new DSOutOfServiceException("Can't connect to OMEDS", rce); } catch (RemoteAuthenticationException rae) { throw new DSOutOfServiceException("Not logged in", rae); } catch (RemoteServerErrorException rsee) { rsee.printStackTrace(); throw new DSAccessException("Can't load data", rsee); } return retVal; }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/f5113c7a4ff99bcbee06e1b48554259a952e1a44/OMEDSGateway.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OMEDSGateway.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 202, 921, 4614, 882, 55, 751, 12, 780, 15178, 7947, 16, 8356, 276, 13, 202, 202, 15069, 8678, 11224, 15133, 16, 8678, 9773, 202, 95, 202, 202, 921, 12197, 31, 202, 202, 698, 288, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 202, 921, 4614, 882, 55, 751, 12, 780, 15178, 7947, 16, 8356, 276, 13, 202, 202, 15069, 8678, 11224, 15133, 16, 8678, 9773, 202, 95, 202, 202, 921, 12197, 31, 202, 202, 698, 288, 1082, ...
private void addFolderModsToList(Map fileList, Folder folder, OLEDate snapshotDate) { try { Thread.sleep(100); } catch (InterruptedException ignoredInterruptedException) {}
private void addFolderModsToList(Map fileList, Folder folder) {
private void addFolderModsToList(Map fileList, Folder folder, OLEDate snapshotDate) { try { Thread.sleep(100); } catch (InterruptedException ignoredInterruptedException) {} Item[] files = folder.getItems("File"); for (int i = 0; i < files.length; i++) { File file = (File) files[i]; addFileModsToList(fileList, file, snapshotDate); } Folder[] folders = folder.getSubFolders(); for (int i = 0; i < folders.length; i++) { addFolderModsToList(fileList, folders[i], snapshotDate); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/91ae6e7853a1a1530fdcbf3616018c9c527ef409/StarTeam.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/StarTeam.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 3899, 1739, 11634, 682, 12, 863, 18645, 16, 12623, 3009, 16, 377, 531, 900, 1626, 4439, 1626, 13, 288, 3639, 775, 288, 5411, 4884, 18, 19607, 12, 6625, 1769, 3639, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 3899, 1739, 11634, 682, 12, 863, 18645, 16, 12623, 3009, 16, 377, 531, 900, 1626, 4439, 1626, 13, 288, 3639, 775, 288, 5411, 4884, 18, 19607, 12, 6625, 1769, 3639, 289, ...
new NoViableAltException("", 48, 2, input);
new NoViableAltException("", 49, 2, input);
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 30: return s6; case EOL: case 15: return s2; case 22: case 23: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: return s3; default: NoViableAltException nvae = new NoViableAltException("", 48, 2, input); throw nvae; } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/35c3932466a0269c296ae52afa8a1f8048a309d2/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 5196, 30, 10792, 327, 272, 26, 31, 7734, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 5196, 30, 10792, 327, 272, 26, 31, 7734, 6...
endMarker.enqueue(); }
endMarker.enqueue(); }
private final void stopCleaning() { endMarker.enqueue(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/5a9c8005f25113ad29da323fa23d2603171a06fa/ImageCache.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ImageCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 727, 918, 2132, 7605, 310, 1435, 288, 5411, 679, 7078, 18, 21798, 5621, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 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, 540, 3238, 727, 918, 2132, 7605, 310, 1435, 288, 5411, 679, 7078, 18, 21798, 5621, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
DefaultLoggerImpl.instance().log(ILogger.INFORMATION, Messages.getString( "info.eclenv.creating.device", new Object[] { sName, oDeviceRenderer.getClass().getName() }, Locale.getDefault() ) );
DefaultLoggerImpl.instance().log(ILogger.INFORMATION, Messages.getString("info.eclenv.creating.device", new Object[] { sName, oDeviceRenderer.getClass().getName() }, Locale.getDefault() ));
public final IDeviceRenderer getDevice(String sName) throws PluginException { if (inEclipseEnv()) { final Object oDeviceRenderer = getPluginXmlObject("devicerenderers", "deviceRenderer", "name", "device", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ sName); if (oDeviceRenderer != null) { DefaultLoggerImpl.instance().log(ILogger.INFORMATION, Messages.getString( "info.eclenv.creating.device", //$NON-NLS-1$ new Object[] { sName, oDeviceRenderer.getClass().getName() }, Locale.getDefault() // LOCALE? ) ); // i18n_CONCATENATIONS_REMOVED return (IDeviceRenderer) oDeviceRenderer; } DefaultLoggerImpl.instance().log(ILogger.FATAL, Messages.getString( "error.eclenv.cannot.find.device", //$NON-NLS-1$ new Object[] { sName }, Locale.getDefault() // LOCALE? ) ); // i18n_CONCATENATIONS_REMOVED } else { for (int i = 0; i < saDevices.length; i++) { if (saDevices[i][0].equalsIgnoreCase(sName)) { DefaultLoggerImpl.instance().log(ILogger.INFORMATION, Messages.getString( "info.stdenv.creating.device", //$NON-NLS-1$ new Object[] { sName, saDevices[i][1] }, Locale.getDefault() // LOCALE? ) ); // i18n_CONCATENATIONS_REMOVED return (IDeviceRenderer) newInstance(saDevices[i][1]); } } DefaultLoggerImpl.instance().log(ILogger.FATAL, Messages.getString( "error.stdenv.cannot.find.device", //$NON-NLS-1$ new Object[] { sName }, Locale.getDefault() // LOCALE? ) ); // i18n_CONCATENATIONS_REMOVED //$NON-NLS-1$ } return null; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4c3f1cb28dd9925df77890697e8cb172fe5ebfe8/PluginSettings.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/util/PluginSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 467, 3654, 6747, 19512, 12, 780, 14933, 13, 1216, 6258, 503, 565, 288, 3639, 309, 261, 267, 23057, 10472, 3491, 10756, 3639, 288, 5411, 727, 1033, 320, 3654, 6747, 273, 16319, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 467, 3654, 6747, 19512, 12, 780, 14933, 13, 1216, 6258, 503, 565, 288, 3639, 309, 261, 267, 23057, 10472, 3491, 10756, 3639, 288, 5411, 727, 1033, 320, 3654, 6747, 273, 16319, ...
log.info(selectedPK + "--" + selectedPK.prototype());
public void addBackRelationship(EOEntity selectedEntity, EOEntity targetEntity, EOAttribute foreignAttribute, boolean isToMany, boolean addBack) { EORelationship relationship = new EORelationship(); String targetName = targetEntity.name().toLowerCase(); String selectedName = selectedEntity.name().toLowerCase(); EOAttribute selectedPK = (EOAttribute)targetEntity.primaryKeyAttributes().objectAtIndex(0); log.info(selectedPK + "--" + selectedPK.prototype()); if(foreignAttribute == null) { foreignAttribute = new EOAttribute(); foreignAttribute.setName(targetName+"id"); foreignAttribute.setColumnName(targetName+"id"); selectedEntity.addAttribute(foreignAttribute); foreignAttribute.setPrototype(selectedPK.prototype()); updateClassProperties(selectedEntity,foreignAttribute,false); } relationship.setName(targetName+(isToMany ? "s" : "")); selectedEntity.addRelationship(relationship); EOJoin join = new EOJoin(foreignAttribute,selectedPK); relationship.addJoin(join); relationship.setToMany(isToMany); relationship.setJoinSemantic(EORelationship.InnerJoin); }
46145 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46145/8436e47c259c446ed2e2216571be579d694791e7/EOModeler.java/clean/Experimental/DevStudio/Sources/ag/kcmedia/EOModeler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 527, 2711, 8180, 12, 41, 51, 1943, 3170, 1943, 16, 512, 51, 1943, 25426, 16, 512, 51, 1499, 5523, 1499, 16, 1250, 353, 12601, 16, 1250, 527, 2711, 13, 288, 5411, 512, 916, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 2711, 8180, 12, 41, 51, 1943, 3170, 1943, 16, 512, 51, 1943, 25426, 16, 512, 51, 1499, 5523, 1499, 16, 1250, 353, 12601, 16, 1250, 527, 2711, 13, 288, 5411, 512, 916, ...
combo.remove(index);
if (combo == null) { ccombo.remove(index); } else { combo.remove(index); }
protected void listRemove(int index) { combo.remove(index); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4edbb35e1185aacd2e793fdb55a945bd4368b4d5/ComboViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/ComboViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 666, 3288, 12, 474, 770, 13, 288, 3639, 309, 261, 25053, 422, 446, 13, 288, 276, 25053, 18, 4479, 12, 1615, 1769, 289, 469, 288, 16778, 18, 4479, 12, 1615, 1769, 289, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 666, 3288, 12, 474, 770, 13, 288, 3639, 309, 261, 25053, 422, 446, 13, 288, 276, 25053, 18, 4479, 12, 1615, 1769, 289, 469, 288, 16778, 18, 4479, 12, 1615, 1769, 289, 565, ...
public static String getAppointmentTableName(int mailboxId) { return DbMailbox.getDatabaseName(mailboxId) + ".appointment";
public static String getAppointmentTableName(int mailboxId, int groupId) { return DbMailbox.getDatabaseName(mailboxId, groupId) + ".appointment";
public static String getAppointmentTableName(int mailboxId) { return DbMailbox.getDatabaseName(mailboxId) + ".appointment"; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ddefc0e424e4cccf845f5a987c40274fece99e76/DbMailItem.java/clean/ZimbraServer/src/java/com/zimbra/cs/db/DbMailItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 336, 1294, 29815, 7147, 12, 474, 14187, 548, 13, 288, 3639, 327, 8408, 30239, 18, 588, 4254, 461, 12, 4408, 2147, 548, 13, 397, 3552, 438, 29815, 14432, 565, 289, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 336, 1294, 29815, 7147, 12, 474, 14187, 548, 13, 288, 3639, 327, 8408, 30239, 18, 588, 4254, 461, 12, 4408, 2147, 548, 13, 397, 3552, 438, 29815, 14432, 565, 289, 2, -10...
resetUIState();
if (e.getStateChange() == ItemEvent.SELECTED) { resetUIState(); }
public void itemStateChanged(ItemEvent e) { resetUIState(); }
5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/d280da7549f71951847cf08e64fcca076a23b88a/NewAlbumDialog.java/clean/gallery_remote/com/gallery/GalleryRemote/NewAlbumDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 761, 1119, 5033, 12, 1180, 1133, 425, 13, 288, 202, 202, 6208, 5370, 1119, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 761, 1119, 5033, 12, 1180, 1133, 425, 13, 288, 202, 202, 6208, 5370, 1119, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
this.border = border;
Border oldBorder = border; border = newBorder; firePropertyChange("border", oldBorder, newBorder);
public void setBorder(Border border) { this.border = border; revalidate(); repaint(); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JComponent.java/buggy/core/src/classpath/javax/javax/swing/JComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 25715, 12, 8107, 5795, 13, 202, 95, 202, 202, 2211, 18, 8815, 273, 5795, 31, 202, 202, 266, 5662, 5621, 202, 202, 14462, 1598, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 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, 25715, 12, 8107, 5795, 13, 202, 95, 202, 202, 2211, 18, 8815, 273, 5795, 31, 202, 202, 266, 5662, 5621, 202, 202, 14462, 1598, 5621, 202, 97, 2, -100, -100, -100, -100, ...
return new MemoryStore();
try { return new MemoryStore(); } catch (IOException e) { e.printStackTrace(); return null; }
public MessageStore create(SessionID sessionID) { return new MemoryStore(); }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/f68f883eca491582a1de03238b9c673e6a6f8167/MemoryStoreFactory.java/clean/src/quickfix/MemoryStoreFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2350, 2257, 752, 12, 2157, 734, 13737, 13, 288, 202, 202, 2463, 394, 9251, 2257, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 2350, 2257, 752, 12, 2157, 734, 13737, 13, 288, 202, 202, 2463, 394, 9251, 2257, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if(monitor.isCanceled())
if(monitor != null && monitor.isCanceled())
public List getAllCheckedListItems(IProgressMonitor monitor) { List result = new ArrayList(); //Iterate through the children of the root as the root is not in the store Object[] children = treeContentProvider.getChildren(root); for (int i = 0; i < children.length; ++i) { findAllSelectedListElements( children[i], whiteCheckedTreeItems.contains(children[i]), result, monitor); } if(monitor.isCanceled()) return null; else return result;}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d50a41d84de0312c4deec79fddf4891f5d6e1d78/ResourceTreeAndListGroup.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceTreeAndListGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 987, 5514, 11454, 682, 3126, 12, 45, 5491, 7187, 6438, 13, 288, 202, 682, 563, 273, 394, 2407, 5621, 202, 759, 14916, 3059, 326, 2325, 434, 326, 1365, 487, 326, 1365, 353, 486, 316, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 5514, 11454, 682, 3126, 12, 45, 5491, 7187, 6438, 13, 288, 202, 682, 563, 273, 394, 2407, 5621, 202, 759, 14916, 3059, 326, 2325, 434, 326, 1365, 487, 326, 1365, 353, 486, 316, 32...
if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); }
if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); }
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass) rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getClasses().getObjectClass(); } path = (RubyString) getInstanceVariables().get(getRuby().intern("__classpath__")); if (path == null) { if (getInstanceVariables().get(getRuby().intern("__classid__")) != null) { path = RubyString.m_newString( getRuby(), ((RubyId) getInstanceVariables().get(getRuby().intern("__classid__"))) .toName()); // todo: convert from symbol to string getInstanceVariables().put(getRuby().intern("__classpath__"), path); getInstanceVariables().remove(getRuby().intern("__classid__")); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString) tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; }
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 780, 2900, 529, 1435, 288, 202, 202, 54, 10340, 780, 589, 273, 446, 31, 202, 202, 54, 10340, 3120, 7138, 3120, 273, 333, 31, 202, 202, 17523, 261, 6731, 3120, 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, 19817, 780, 2900, 529, 1435, 288, 202, 202, 54, 10340, 780, 589, 273, 446, 31, 202, 202, 54, 10340, 3120, 7138, 3120, 273, 333, 31, 202, 202, 17523, 261, 6731, 3120, 18, 291, ...
if (base64) { byte[] encoded = Base64.encodeBase64(digest); for (int i = 0; i < encoded.length; i++) { if (encoded[i] == (byte) '/') encoded[i] = (byte) ','; } return new String(encoded); } else
if (base64) return encodeFSSafeBase64(digest); else
public static String getSHA1Digest(byte[] data, boolean base64) { try { MessageDigest md = MessageDigest.getInstance("SHA1"); byte[] digest = md.digest(data); if (base64) { byte[] encoded = Base64.encodeBase64(digest); // Replace '/' with ',' to make the digest filesystem-safe. for (int i = 0; i < encoded.length; i++) { if (encoded[i] == (byte) '/') encoded[i] = (byte) ','; } return new String(encoded); } else return new String(Hex.encodeHex(digest)); } catch (NoSuchAlgorithmException e) { // this should never happen unless the JDK is foobar // e.printStackTrace(); throw new RuntimeException(e); } }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/0077ac93d223c79589ee7c35c86a9c394d994783/ByteUtil.java/buggy/ZimbraServer/src/java/com/zimbra/cs/util/ByteUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 1322, 19191, 21, 9568, 12, 7229, 8526, 501, 16, 1250, 1026, 1105, 13, 288, 202, 565, 775, 288, 202, 3639, 22485, 3481, 273, 22485, 18, 588, 1442, 2932, 8325, 21, 886...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1322, 19191, 21, 9568, 12, 7229, 8526, 501, 16, 1250, 1026, 1105, 13, 288, 202, 565, 775, 288, 202, 3639, 22485, 3481, 273, 22485, 18, 588, 1442, 2932, 8325, 21, 886...
viewer = new ProgressViewer(root, SWT.NONE,2) {
viewer = new ProgressViewer(root, SWT.NONE,5) {
protected Control createContents(Composite root) { viewer = new ProgressViewer(root, SWT.NONE,2) { /* * * (non-Javadoc) * * @see org.eclipse.jface.viewers.TableViewer#doUpdateItem(org.eclipse.swt.widgets.Widget, * java.lang.Object, boolean) */ protected void doUpdateItem(Widget widget, Object element, boolean fullMap) { super.doUpdateItem(widget, element, fullMap); moveShell(getShell(), AssociatedWindow.ALWAYS_VISIBLE); } }; viewer.setUseHashlookup(true); viewer.setSorter(ProgressManagerUtil.getProgressViewerSorter()); Control control = viewer.getControl(); setBackground(control); FormData tableData = new FormData(); tableData.left = new FormAttachment(0); tableData.right = new FormAttachment(100); tableData.top = new FormAttachment(0); tableData.bottom = new FormAttachment(100); Point preferredSize = viewer.getSizeHints(); tableData.width = preferredSize.x; tableData.height = preferredSize.y; viewer.getControl().setLayoutData(tableData); initContentProvider(); viewer.setLabelProvider(viewerLabelProvider()); root.addListener(SWT.Traverse, new Listener() { public void handleEvent(Event event) { if (event.detail == SWT.TRAVERSE_ESCAPE) { event.doit = false; } } }); return viewer.getControl(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9485706c161241d9ad5e7bc9e438028aa63470e7/ProgressFloatingWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressFloatingWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8888, 752, 6323, 12, 9400, 1365, 13, 288, 202, 202, 25256, 273, 394, 10980, 18415, 12, 3085, 16, 348, 8588, 18, 9826, 16, 22, 13, 288, 1082, 202, 20308, 9506, 380, 380, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8888, 752, 6323, 12, 9400, 1365, 13, 288, 202, 202, 25256, 273, 394, 10980, 18415, 12, 3085, 16, 348, 8588, 18, 9826, 16, 22, 13, 288, 1082, 202, 20308, 9506, 380, 380, 261, ...
revalidate(); repaint();
public void setMaximumSize(Dimension max) { Dimension oldMaximumSize = maximumSize; maximumSize = max; firePropertyChange("maximumSize", oldMaximumSize, maximumSize); revalidate(); repaint(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JComponent.java/clean/core/src/classpath/javax/javax/swing/JComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 10851, 2422, 1225, 12, 8611, 943, 13, 202, 95, 565, 13037, 1592, 13528, 1225, 273, 4207, 1225, 31, 565, 4207, 1225, 273, 943, 31, 565, 4452, 1396, 3043, 2932, 15724, 1225, 3113...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 10851, 2422, 1225, 12, 8611, 943, 13, 202, 95, 565, 13037, 1592, 13528, 1225, 273, 4207, 1225, 31, 565, 4207, 1225, 273, 943, 31, 565, 4452, 1396, 3043, 2932, 15724, 1225, 3113...
observable.addChangeListener(changeListenerMock);
public void testAddChangeListener() { IChangeListener changeListenerMock = (IChangeListener) Mocks .createOrderedMock(IChangeListener.class); // testing that no methods on the observable are called when adding the // change listener Mocks.startChecking(changeListenerMock); observable.addChangeListener(changeListenerMock); // testing that handleChange is actually called Mocks.reset(changeListenerMock); changeListenerMock.handleChange(null); changeListenerMock.handleChange(null); Mocks.startChecking(changeListenerMock); observable.fireChange(null, null); observable.fireChange(null, null); Mocks.verify(changeListenerMock); // testing that handleChange is called just once Mocks.reset(changeListenerMock); changeListenerMock.handleChange(null); Mocks.startChecking(changeListenerMock); observable.addChangeListener(changeListenerMock); observable.fireChange(null, null); Mocks.verify(changeListenerMock); // dispose() will call another handleChange. Prevent this from causing a // test failure Mocks.reset(changeListenerMock); changeListenerMock.handleChange(null); Mocks.startChecking(changeListenerMock); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/09ae5bf38368b4a07d2daab81a60821fe03e1ff5/ObservableTest.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/ObservableTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 986, 15744, 1435, 288, 202, 202, 45, 15744, 2549, 2223, 9865, 273, 261, 45, 15744, 13, 7867, 87, 9506, 202, 18, 2640, 16756, 9865, 12, 45, 15744, 18, 1106, 1769, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 986, 15744, 1435, 288, 202, 202, 45, 15744, 2549, 2223, 9865, 273, 261, 45, 15744, 13, 7867, 87, 9506, 202, 18, 2640, 16756, 9865, 12, 45, 15744, 18, 1106, 1769, 20...
return true;
boolean hasChildren = true; if (_element instanceof EOFetchSpecification) { hasChildren = false; } return hasChildren;
public boolean hasChildren(Object _element) { return true; }
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/85e8c5c5e6069e4a772ec9eb7716a51dc31c2178/EOModelOutlineContentProvider.java/clean/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/outline/EOModelOutlineContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 27780, 12, 921, 389, 2956, 13, 288, 565, 1250, 27780, 273, 638, 31, 309, 261, 67, 2956, 1276, 6431, 1593, 8615, 13, 288, 27780, 273, 629, 31, 289, 327, 27780, 31, 225, 289, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 1250, 27780, 12, 921, 389, 2956, 13, 288, 565, 1250, 27780, 273, 638, 31, 309, 261, 67, 2956, 1276, 6431, 1593, 8615, 13, 288, 27780, 273, 629, 31, 289, 327, 27780, 31, 225, 289, ...
JNIFunctions[jniIndex][IP] = mths[i].getMostRecentlyGeneratedInstructions();
JNIFunctions[jniIndex][IP] = mths[i].getCurrentInstructions();
public static void boot() { if (initialized) return; // fill an array of JNI names setNames(); // create method ID for JNI transition stackframes //javaToCCompilerInfo = new VM_JNICompilerInfo(); //XXX now alloc method specific infos ses 073101 // fill in the TOC entries for each AIX linkage triplet for (int i=0; i<JNIFunctions.length; i++) { JNIFunctions[i] = new int[3][]; JNIFunctions[i][TOC] = VM_Statics.getSlots(); // the JTOC value: address of TOC } // fill in the IP entries for each AIX linkage triplet try { VM_Class cls = VM_Class.forName("VM_JNIFunctions"); VM_Method[] mths = cls.getDeclaredMethods(); // VM.sysWrite("VM_JNIEnvironment: scanning " + mths.length + " methods\n"); for (int i=0; i<mths.length; i++) { String methodName = mths[i].getName().toString(); int jniIndex = indexOf(methodName); if (jniIndex!=-1) { JNIFunctions[jniIndex][IP] = mths[i].getMostRecentlyGeneratedInstructions(); // VM.sysWrite(" " + methodName + "=" + VM.intAsHexString(JNIFunctions[jniIndex][IP])); } // else { // VM.sysWrite(" " + methodName + " skipped\n"); // } } VM_Address functionAddress = VM_Magic.objectAsAddress(JNIFunctions[NEWINTARRAY][IP]); // VM.sysWrite(" NewIntArray is at " + VM.intAsHexString(functionAddress) + "\n"); functionAddress = VM_Magic.objectAsAddress(JNIFunctions[NEWINTARRAY][TOC]); // VM.sysWrite(" TOC is stored at " + VM.intAsHexString(functionAddress) + "\n"); } catch (VM_ResolutionException e) { throw new InternalError("VM_JNIEnvironment fails to initialize, has the class been renamed\n"); } initialized = true; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/a889d584defb21b1d15899f7c38c039cf705e5f5/VM_JNIEnvironment.java/buggy/rvm/src/vm/arch/powerPC/jni/VM_JNIEnvironment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 4835, 1435, 288, 565, 309, 261, 13227, 13, 1377, 327, 31, 565, 368, 3636, 392, 526, 434, 804, 50, 45, 1257, 565, 444, 1557, 5621, 565, 368, 752, 707, 1599, 364, 804, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 4835, 1435, 288, 565, 309, 261, 13227, 13, 1377, 327, 31, 565, 368, 3636, 392, 526, 434, 804, 50, 45, 1257, 565, 444, 1557, 5621, 565, 368, 752, 707, 1599, 364, 804, 5...
return generateChecksums();
try { addToIncludeFileMap(file); int sizeofFileSet = filesets.size(); for (int i = 0; i < sizeofFileSet; i++) { FileSet fs = (FileSet) filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(project); String[] srcFiles = ds.getIncludedFiles(); for (int j = 0; j < srcFiles.length; j++) { File src = new File(fs.getDir(project), srcFiles[j]); addToIncludeFileMap(src); } } return generateChecksums(); } finally { fileext = savedFileExt; includeFileMap.clear(); }
private boolean validateAndExecute() throws BuildException { if (file == null && filesets.size() == 0) { throw new BuildException( "Specify at least one source - a file or a fileset."); } if (file != null && file.exists() && file.isDirectory()) { throw new BuildException( "Checksum cannot be generated for directories"); } if (property != null && fileext != null) { throw new BuildException( "Property and FileExt cannot co-exist."); } if (property != null) { if (forceOverwrite) { throw new BuildException( "ForceOverwrite cannot be used when Property is specified"); } if (file != null) { if (filesets.size() > 0) { throw new BuildException( "Multiple files cannot be used when Property is specified"); } } else { if (filesets.size() > 1) { throw new BuildException( "Multiple files cannot be used when Property is specified"); } } } if (verifyProperty != null) { isCondition = true; } if (verifyProperty != null && forceOverwrite) { throw new BuildException( "VerifyProperty and ForceOverwrite cannot co-exist."); } if (isCondition && forceOverwrite) { throw new BuildException( "ForceOverwrite cannot be used when conditions are being used."); } if (fileext == null) { fileext = "." + algorithm; } else if (fileext.trim().length() == 0) { throw new BuildException( "File extension when specified must not be an empty string"); } messageDigest = null; if (provider != null) { try { messageDigest = MessageDigest.getInstance(algorithm, provider); } catch (NoSuchAlgorithmException noalgo) { throw new BuildException(noalgo, location); } catch (NoSuchProviderException noprovider) { throw new BuildException(noprovider, location); } } else { try { messageDigest = MessageDigest.getInstance(algorithm); } catch (NoSuchAlgorithmException noalgo) { throw new BuildException(noalgo, location); } } if (messageDigest == null) { throw new BuildException("Unable to create Message Digest", location); } addToIncludeFileMap(file); int sizeofFileSet = filesets.size(); for (int i = 0; i < sizeofFileSet; i++) { FileSet fs = (FileSet) filesets.elementAt(i); DirectoryScanner ds = fs.getDirectoryScanner(project); String[] srcFiles = ds.getIncludedFiles(); for (int j = 0; j < srcFiles.length; j++) { File src = new File(fs.getDir(project), srcFiles[j]); addToIncludeFileMap(src); } } return generateChecksums(); }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/222693b10f20a17af93ca107ba09dc2a679ab5cd/Checksum.java/buggy/src/main/org/apache/tools/ant/taskdefs/Checksum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1954, 1876, 5289, 1435, 1216, 18463, 288, 3639, 309, 261, 768, 422, 446, 597, 1390, 2413, 18, 1467, 1435, 422, 374, 13, 288, 5411, 604, 394, 18463, 12, 7734, 315, 19302, 622, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 1876, 5289, 1435, 1216, 18463, 288, 3639, 309, 261, 768, 422, 446, 597, 1390, 2413, 18, 1467, 1435, 422, 374, 13, 288, 5411, 604, 394, 18463, 12, 7734, 315, 19302, 622, ...
GroupRequest _req = null;
GroupRequest _req=null;
public RspList castMessage(final Vector dests, Message msg, int mode, long timeout) { GroupRequest _req = null; Vector real_dests; Channel tmp; // we need to clone because we don't want to modify the original // (we remove ourselves if LOCAL is false, see below) ! real_dests = dests != null ? (Vector) dests.clone() : (members != null ? (Vector) members.clone() : null); // if local delivery is off, then we should not wait for the message from the local member. // therefore remove it from the membership tmp = channel; if (tmp == null) { if (adapter != null && adapter.getTransport() instanceof Channel) { tmp = (Channel) adapter.getTransport(); } } if (tmp != null && tmp.getOpt(Channel.LOCAL).equals(Boolean.FALSE)) { if (local_addr == null) { local_addr = tmp.getLocalAddress(); } if (local_addr != null && real_dests != null) { real_dests.removeElement(local_addr); } } // don't even send the message if the destination list is empty if (log.isDebugEnabled()) { log.debug("real_dests=" + real_dests); } if (real_dests == null || real_dests.size() == 0) { if (log.isDebugEnabled()) { log.debug("destination list is empty, won't send message"); } return new RspList(); // return empty response list } _req = new GroupRequest(msg, corr, real_dests, mode, timeout, 0); _req.execute(); return _req.getResults(); }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/896f3041ac6c83d0d1b4ad10041face165c97e1d/MessageDispatcher.java/buggy/src/org/jgroups/blocks/MessageDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 534, 1752, 682, 4812, 1079, 12, 6385, 5589, 1570, 87, 16, 2350, 1234, 16, 509, 1965, 16, 1525, 2021, 13, 288, 3639, 3756, 691, 389, 3658, 33, 2011, 31, 3639, 5589, 2863, 67, 10488...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 534, 1752, 682, 4812, 1079, 12, 6385, 5589, 1570, 87, 16, 2350, 1234, 16, 509, 1965, 16, 1525, 2021, 13, 288, 3639, 3756, 691, 389, 3658, 33, 2011, 31, 3639, 5589, 2863, 67, 10488...
Context cx = Context.getCurrentContext();
static SubString interpretDollar(RegExpImpl res, char[] da, int dp, int bp, int[] skip) { char[] ca; int cp; char dc; int num, tmp; /* Allow a real backslash (literal "\\") to escape "$1" etc. */ if (da[dp] != '$') throw new RuntimeException(); if (dp > bp && da[dp-1] == '\\') return null; /* Interpret all Perl match-induced dollar variables. */ dc = da[dp+1]; if (NativeRegExp.isDigit(dc)) { Context cx = Context.getCurrentContext(); if ((cx.getLanguageVersion() != Context.VERSION_DEFAULT) && (cx.getLanguageVersion() <= Context.VERSION_1_4)) { if (dc == '0') return null; /* Check for overflow to avoid gobbling arbitrary decimal digits. */ num = 0; ca = da; cp = dp; while (++cp < ca.length && NativeRegExp.isDigit(dc = ca[cp])) { tmp = 10 * num + NativeRegExp.unDigit(dc); if (tmp < num) break; num = tmp; } } else { /* ECMA 3, 1-9 or 01-99 */ num = NativeRegExp.unDigit(dc); cp = dp + 2; if ((dp + 2) < da.length) { dc = da[dp + 2]; if (NativeRegExp.isDigit(dc)) { num = 10 * num + NativeRegExp.unDigit(dc); cp++; } } if (num == 0) return null; /* $0 or $00 is not valid */ } /* Adjust num from 1 $n-origin to 0 array-index-origin. */ num--; skip[0] = cp - dp; return res.getParenSubString(num); } skip[0] = 2; switch (dc) { case '$': return dollarStr; case '&': return res.lastMatch; case '+': return res.lastParen; case '`': Context cx = Context.getCurrentContext(); if (cx.getLanguageVersion() == Context.VERSION_1_2) { /* * JS1.2 imitated the Perl4 bug where left context at each step * in an iterative use of a global regexp started from last match, * not from the start of the target string. But Perl4 does start * $` at the beginning of the target string when it is used in a * substitution, so we emulate that special case here. */ res.leftContext.index = 0; res.leftContext.length = res.lastMatch.index; } return res.leftContext; case '\'': return res.rightContext; } return null; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/4b56c8a72dc498e07512de2bf2baef37591a6928/RegExpImpl.java/buggy/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 2592, 780, 10634, 40, 25442, 12, 13673, 2828, 400, 16, 1149, 8526, 5248, 16, 509, 9986, 16, 19694, 509, 9107, 16, 509, 8526, 2488, 13, 565, 288, 3639, 1149, 8526, 3474, 31, 3639, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 2592, 780, 10634, 40, 25442, 12, 13673, 2828, 400, 16, 1149, 8526, 5248, 16, 509, 9986, 16, 19694, 509, 9107, 16, 509, 8526, 2488, 13, 565, 288, 3639, 1149, 8526, 3474, 31, 3639, 5...
public void toAdmin(org.quickfix.Message message,
public void toAdmin(quickfix.Message message,
public void toAdmin(org.quickfix.Message message, SessionID sessionID) {}
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/9f5895d2ac7b95b564f60f90590d2406c4492034/Application.java/clean/examples/executor/java/src/Application.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 358, 4446, 12, 19525, 904, 18, 1079, 883, 16, 13491, 3877, 734, 13737, 13, 2618, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 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, 358, 4446, 12, 19525, 904, 18, 1079, 883, 16, 13491, 3877, 734, 13737, 13, 2618, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
Assert.assert( bV.size() > 0 );
Assert._assert( bV.size() > 0 );
public ASN1Header(InputStream istream) throws InvalidBERException, IOException { // default BAOS size is 32 bytes, which is plenty ByteArrayOutputStream encoding = new ByteArrayOutputStream(); int inInt = istream.read(); if( inInt == -1 ) { throw new InvalidBERException("End-of-file reached while "+ "decoding ASN.1 header"); } encoding.write(inInt); byte byte1 = (byte) inInt; Tag.Class tagClass; // // Get Tag Class // tagClass = Tag.Class.fromInt( (byte1 & 0xff) >>> 6 ); // // Get form // if( (byte1 & 0x20) == 0x20 ) { form = CONSTRUCTED; } else { form = PRIMITIVE; } // // Get Tag Number // long tagNum; if( (byte1 & 0x1f) == 0x1f ) { // long form // // read all octets into a Vector of Bytes // byte next; Vector bV = new Vector(); // last byte has MSB == 0. do { inInt = istream.read(); if( inInt == -1 ) { throw new InvalidBERException("End-of-file reached while" +" decoding ASN.1 header"); } encoding.write(inInt); next = (byte) inInt; bV.addElement( new Byte(next) ); } while( (next & 0x80) == 0x80 ); Assert.assert( bV.size() > 0 ); // // Copy Vector of 7-bit bytes into array of 8-bit bytes. // byte[] bA = new byte[ ( (bV.size()*7) + 7 ) / 8 ]; int v; // vector index int a; // array index // clear the target array for( a = 0; a < bA.length; a++ ) { bA[a] = 0; } int shift = 0; // the amount the Vector is shifted from the array // copy bits from the Vector to the array, going from the // end (LSB) to the beginning (MSB). a = bA.length - 1; for( v=bV.size()-1 ; v >= 0; v--) { Assert.assert( v >= 0 ); Assert.assert( v < bV.size() ); Assert.assert( a >= 0 ); Assert.assert( a < bA.length ); // MSB is not part of the number byte b = (byte) ( ((Byte)bV.elementAt(v)).byteValue() & 0x7f ); bA[a] |= b << shift; if( shift > 1 ) { // The byte from the Vector falls across a byte boundary // in the array. We've already got the less-significant // bits, now copy the more-significant bits into // the next element of the array. Assert.assert( a > 0 ); --a; bA[a] |= b >>> (8-shift); } shift = (shift+7)%8; // update shift } // Create a new unsigned BigInteger from the byte array tagNum = (new BigInteger( 1, bA )).longValue(); } else { // short form tagNum = byte1 & 0x1f; } tag = new Tag(tagClass, tagNum); // // Get Length // inInt = istream.read(); if(inInt == -1) { throw new InvalidBERException("End-of-file reached while "+ "decoding ASN.1 header"); } encoding.write(inInt); byte lenByte = (byte) inInt; if( (lenByte & 0x80) == 0 ) { // short form contentLength = lenByte; } else { // long form if( (lenByte & 0x7f) == 0 ) { // indefinite contentLength = -1; } else { // definite byte[] lenBytes = new byte[ lenByte & 0x7f ]; ASN1Util.readFully(lenBytes, istream); encoding.write( lenBytes ); contentLength = (new BigInteger( 1, lenBytes )).longValue(); } } // save our encoding so we don't have to recompute it later cachedEncoding = encoding.toByteArray(); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/6ddc297e30f1af6609057abe4502eaa3ba3bb664/ASN1Header.java/clean/security/jss/org/mozilla/jss/asn1/ASN1Header.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18598, 21, 1864, 12, 4348, 277, 3256, 13, 3639, 1216, 1962, 6271, 503, 16, 1860, 565, 288, 3639, 368, 805, 28143, 4618, 963, 353, 3847, 1731, 16, 1492, 353, 886, 319, 93, 3639, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18598, 21, 1864, 12, 4348, 277, 3256, 13, 3639, 1216, 1962, 6271, 503, 16, 1860, 565, 288, 3639, 368, 805, 28143, 4618, 963, 353, 3847, 1731, 16, 1492, 353, 886, 319, 93, 3639, 11...
if (!wizardElement.canHandleSelection(currentSelection)) { currentSelection = convertToResources(currentSelection); if (!currentSelection.isEmpty() && !wizardElement.canHandleSelection(currentSelection)) currentSelection = new StructuredSelection(); }
currentSelection = wizardElement.adaptedSelection(currentSelection);
public IWizard getWizard() { if (wizard != null) return wizard; // we've already created it final IWorkbenchWizard[] workbenchWizard = new IWorkbenchWizard[1]; final CoreException ex[] = new CoreException[1]; // Start busy indicator. BusyIndicator.showWhile(parentWizardPage.getShell().getDisplay(), new Runnable() { public void run() { try { workbenchWizard[0] = createWizard(); // create instance of target wizard } catch (CoreException e) { ex[0] = e; } } }); if (ex[0] != null) { parentWizardPage.setErrorMessage(WorkbenchMessages.getString("WorkbenchWizard.errorMessage")); //$NON-NLS-1$ ErrorDialog.openError( parentWizardPage.getShell(), WorkbenchMessages.getString("WorkbenchWizard.errorTitle"), //$NON-NLS-1$ WorkbenchMessages.getString("WorkbenchWizard.errorMessage"), //$NON-NLS-1$ ex[0].getStatus()); return null; } IStructuredSelection currentSelection = getCurrentResourceSelection(); if (!wizardElement.canHandleSelection(currentSelection)) { currentSelection = convertToResources(currentSelection); if (!currentSelection.isEmpty() && !wizardElement.canHandleSelection(currentSelection)) currentSelection = new StructuredSelection(); } workbenchWizard[0].init(getWorkbench(),currentSelection); wizard = workbenchWizard[0]; return wizard;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/096c696cdbfc981655646bbf149e43a0176bbeb1/WorkbenchWizardNode.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchWizardNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 467, 27130, 13876, 13412, 1435, 288, 202, 430, 261, 31837, 480, 446, 13, 202, 202, 2463, 24204, 31, 25083, 202, 759, 732, 8081, 1818, 2522, 518, 202, 6385, 467, 2421, 22144, 27130, 8526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 27130, 13876, 13412, 1435, 288, 202, 430, 261, 31837, 480, 446, 13, 202, 202, 2463, 24204, 31, 25083, 202, 759, 732, 8081, 1818, 2522, 518, 202, 6385, 467, 2421, 22144, 27130, 8526, ...
new TestDescriptor(TEST5, "TEST5", 0, rule)
new TestDescriptor(TEST5, "TEST5", 0, rule), new TestDescriptor(TEST6, "interface", 0, rule)
public void testAll() { runTests(new TestDescriptor[] { new TestDescriptor(TEST1, "Happy case", 0, rule), new TestDescriptor(TEST2, "Simple failure case", 1, rule), new TestDescriptor(TEST3, "TEST3", 1, rule), new TestDescriptor(TEST4, "TEST4", 0, rule), new TestDescriptor(TEST5, "TEST5", 0, rule) }); }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/1ce6dbc6485803a4e7bdcf3eaf1b07b2c4b0a4f3/MissingSerialVersionUIDTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/javabeans/MissingSerialVersionUIDTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1595, 1435, 288, 4202, 1086, 14650, 12, 2704, 7766, 3187, 8526, 288, 9079, 394, 7766, 3187, 12, 16961, 21, 16, 315, 44, 438, 2074, 648, 3113, 374, 16, 1720, 3631, 9079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1595, 1435, 288, 4202, 1086, 14650, 12, 2704, 7766, 3187, 8526, 288, 9079, 394, 7766, 3187, 12, 16961, 21, 16, 315, 44, 438, 2074, 648, 3113, 374, 16, 1720, 3631, 9079, ...
final String message = REZ.getString( "bad-deployer-config.error" ); throw new TaskException( message, ce );
throw new TaskException( e.getMessage(), e );
private ExecutionFrame createExecutionFrame( final Project project ) throws TaskException { //Create per frame ComponentManager final DefaultComponentManager componentManager = new DefaultComponentManager( m_componentManager ); //Add in child type manager so each frame can register different //sets of tasks etc final TypeManager typeManager = m_typeManager.createChildTypeManager(); componentManager.put( TypeManager.ROLE, typeManager ); //We need to create a new deployer so that it deploys //to project specific TypeManager final DefaultDeployer deployer = new DefaultDeployer(); deployer.enableLogging( getLogger() ); try { deployer.compose( componentManager ); } catch( final ComponentException ce ) { final String message = REZ.getString( "bad-deployer-config.error" ); throw new TaskException( message, ce ); } //HACK: Didn't call initialize because Deployer contained in Embeddor // Already initialized and this would be reduendent //deployer.initialize(); componentManager.put( Deployer.ROLE, deployer ); deployTypeLib( deployer, project ); //We need to place projects and ProjectManager //in ComponentManager so as to support project-local call() componentManager.put( Workspace.ROLE, this ); componentManager.put( Project.ROLE, project ); final String[] names = project.getProjectNames(); for( int i = 0; i < names.length; i++ ) { final String name = names[ i ]; final Project other = project.getProject( name ); componentManager.put( Project.ROLE + "/" + name, other ); } // Create and configure the context final DefaultTaskContext context = new DefaultTaskContext( m_baseContext, componentManager ); context.setProperty( TaskContext.BASE_DIRECTORY, project.getBaseDirectory() ); final DefaultExecutionFrame frame = new DefaultExecutionFrame(); try { final Logger logger = new LogKitLogger( m_hierarchy.getLoggerFor( "project" + m_projectID ) ); m_projectID++; frame.enableLogging( logger ); frame.contextualize( context ); } catch( final Exception e ) { final String message = REZ.getString( "bad-frame.error" ); throw new TaskException( message, e ); } return frame; }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/bc34bb06ca8b29568e31990be726d04559ca2972/DefaultWorkspace.java/buggy/proposal/myrmidon/src/java/org/apache/myrmidon/components/workspace/DefaultWorkspace.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 8687, 3219, 752, 3210, 3219, 12, 727, 5420, 1984, 262, 3639, 1216, 3837, 503, 565, 288, 3639, 368, 1684, 1534, 2623, 5435, 1318, 3639, 727, 2989, 1841, 1318, 1794, 1318, 273, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 8687, 3219, 752, 3210, 3219, 12, 727, 5420, 1984, 262, 3639, 1216, 3837, 503, 565, 288, 3639, 368, 1684, 1534, 2623, 5435, 1318, 3639, 727, 2989, 1841, 1318, 1794, 1318, 273, 5411, ...
throw new FormatException("No files matching pattern (" + fp.getPattern() + "). " + msg);
throw new FormatException("No files matching pattern (" + fp.getPattern() + "). " + msg);
protected void initFile(String id) throws FormatException, IOException { numImages = 0; dimensions = new int[5]; validSeries = getSeries(id); // get the matching files if (patternIds) { // id is a file pattern fp = new FilePattern(id); } else { // id is a file path; find the containing pattern fp = new FilePattern(new File(id)); } String msg = " Please rename your files or disable file stitching."; if (!fp.isValid()) { throw new FormatException("Invalid " + (patternIds ? "file pattern" : "filename") + " (" + id + "): " + fp.getErrorMessage() + msg); } files = fp.getFiles(); if (files == null) { throw new FormatException("No files matching pattern (" + fp.getPattern() + "). " + msg); } imageCounts = new int[files.length]; // determine the total number of images and build a list of dimensions // for each file int[][] dims = new int[files.length][5]; for (int i=0; i<files.length; i++) { imageCounts[i] = reader.getImageCount(files[i]); numImages += imageCounts[i]; dims[i][0] = reader.getSizeX(files[i]); dims[i][1] = reader.getSizeY(files[i]); dims[i][2] = reader.getSizeZ(files[i]); dims[i][3] = reader.getSizeC(files[i]); dims[i][4] = reader.getSizeT(files[i]); } // determine how many varying dimensions there are for (int i=1; i<dims.length; i++) { varyZ = dims[i][2] != dims[i-1][2]; varyC = dims[i][3] != dims[i-1][3]; varyT = dims[i][4] != dims[i-1][4]; } // always set the width and height to the maximum values for (int i=0; i<dims.length; i++) { if (dims[i][0] > dimensions[0]) { dimensions[0] = dims[i][0]; } if (dims[i][1] > dimensions[1]) { dimensions[1] = dims[i][1]; } } if (varyZ || varyC || varyT) { int max = 0; int maxIndex = 0; for (int i=0; i<dims.length; i++) { if (dims[i][2] > max) { max = dims[i][2]; maxIndex = i; } } dimensions[2] = dims[maxIndex][2]; } else { dimensions[2] = dims[0][2]; dimensions[3] = dims[0][3]; dimensions[4] = dims[0][4]; } setDimensions(id, dims); readers = new IFormatReader[files.length]; if (multipleReaders) { readers[0] = reader; IFormatReader r = reader; while (r instanceof ReaderWrapper) r = ((ReaderWrapper) r).reader; ImageReader ir = null; if (r instanceof ImageReader) ir = (ImageReader) r; for (int i=1; i<readers.length; i++) { readers[i] = ir == null ? r : ir.getReader(files[i]); // now we know the type of reader to use, but want a separate // object for each file, so create a new one of that type try { readers[i] = (IFormatReader) readers[i].getClass().newInstance(); } catch (InstantiationException exc) { exc.printStackTrace(); } catch (IllegalAccessException exc) { exc.printStackTrace(); } } } else Arrays.fill(readers, reader); MetadataStore s = reader.getMetadataStore(id); s.setPixels(new Integer(dimensions[0]), new Integer(dimensions[1]), new Integer(dimensions[2]), new Integer(dimensions[3]), new Integer(dimensions[4]), null, null, null, null); setMetadataStore(s); }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/54b5b22797f87b1deca6743c21558a4a0e36507b/FileStitcher.java/buggy/loci/formats/FileStitcher.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, 818, 8946, 273, 374, 31, 565, 5769, 273, 394, 509, 63, 25, 15533, 565, 923, 6485, 273, 336, 6485, 12, 350,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 818, 8946, 273, 374, 31, 565, 5769, 273, 394, 509, 63, 25, 15533, 565, 923, 6485, 273, 336, 6485, 12, 350,...