rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
nf, ts, tb, ar, tc, p) : new MethodInstanceOfChecking(nf, ts, tb, ar, tc, p); | tb, ar, tc, p) : new MethodInstanceOfChecking(tb, ar, tc, p); | public Expr ascribe(Expr e, Type toType) throws SemanticException { Type fromType = e.type(); Expr ret_notype = e; if (this.castCheckClassNotLoaded) { ((Type) ts.systemResolver().find("x10.lang.RuntimeCastChecker")).toClass(); castCheckClassNotLoaded = false; } if (toType == null) { return e; } Position p = e.position(); if ((e instanceof Cast) || (e instanceof Instanceof)) { TypeBuilder tb = new TypeBuilder(job, ts, nf); AmbiguityRemover ar = new AmbiguityRemover(job, ts, nf); TypeChecker tc = new TypeChecker(job, ts, nf); ar = (AmbiguityRemover) ar.context(context()); tc = (TypeChecker) tc.context(context()); X10CastInfo cast = (X10CastInfo) ret_notype; // First some checks related to nullable, // that may avoid to perform a runtime check if (cast.isToTypeNullable()) { // Check expression like litteral null to nullable type if (e instanceof Instanceof) { if (cast.expr().type().isNull()) { // null instanceof nullable<T> || T is always false return (Expr) nf.BooleanLit(p,false).visit(tc); } } if (e instanceof Cast) { // obviously it is cast if (cast.expr().type().isNull()) { // target type is nullable hence cast is always valid, we rewrite the node return (Expr) nf.NullLit(p).visit(tc); } } } if (cast.isDepTypeCheckingNeeded()) { // dynamic cast is needed which means toType may have constraint // we must check at runtime // may be replaced by some pattern MethodChecking mc = (e instanceof Cast) ? new MethodCastChecking( nf, ts, tb, ar, tc, p) : new MethodInstanceOfChecking(nf, ts, tb, ar, tc, p); return mc.getRuntimeCheckingExpr(ret_notype); } else { if (cast.notNullRequired() && (e instanceof Cast)) { // Here type cast is T <-- nullable<T> // Hence we don't want the regulat java cast (T) NullType) works. MethodChecking mc = new MethodCastChecking(nf, ts, tb, ar, tc, p); return mc.getNonNullableCheckingExpr(ret_notype); } } } return e; } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/4ecbbe169dfdbc58a1c8da74af34626f185f8cb1/X10Caster.java/buggy/x10.compiler/src/polyglot/ext/x10/visit/X10Caster.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8074,
6972,
1902,
12,
4742,
425,
16,
1412,
28234,
13,
1216,
24747,
503,
288,
202,
202,
559,
628,
559,
273,
425,
18,
723,
5621,
202,
202,
4742,
325,
67,
902,
388,
273,
425,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8074,
6972,
1902,
12,
4742,
425,
16,
1412,
28234,
13,
1216,
24747,
503,
288,
202,
202,
559,
628,
559,
273,
425,
18,
723,
5621,
202,
202,
4742,
325,
67,
902,
388,
273,
425,
3... |
"125:9: Definition of 'equals()' without corresponding defnition of 'hashCode()'.", "162:13: Definition of 'equals()' without corresponding defnition of 'hashCode()'.", | "126:9: Definition of 'equals()' without corresponding defnition of 'hashCode()'.", "163:13: Definition of 'equals()' without corresponding defnition of 'hashCode()'.", | public void testIt() throws Exception { final CheckConfiguration checkConfig = new CheckConfiguration(); checkConfig.setClassname(EqualsHashCodeCheck.class.getName()); final Checker c = createChecker(checkConfig); final String fname = getPath("InputSemantic.java"); final String[] expected = { "125:9: Definition of 'equals()' without corresponding defnition of 'hashCode()'.", "162:13: Definition of 'equals()' without corresponding defnition of 'hashCode()'.", }; verify(c, fname, expected); } | 31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/c2b22a74a2e85bbb2cfd4e0e2379bb062cb58dd1/EqualsHashCodeCheckTest.java/clean/src/tests/com/puppycrawl/tools/checkstyle/EqualsHashCodeCheckTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
7193,
1435,
1216,
1185,
565,
288,
3639,
727,
2073,
1750,
866,
809,
273,
394,
2073,
1750,
5621,
3639,
866,
809,
18,
542,
20531,
12,
8867,
21952,
1564,
18,
1106,
18,
17994,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7193,
1435,
1216,
1185,
565,
288,
3639,
727,
2073,
1750,
866,
809,
273,
394,
2073,
1750,
5621,
3639,
866,
809,
18,
542,
20531,
12,
8867,
21952,
1564,
18,
1106,
18,
17994,... |
return service.sqlQuery( "SELECT code FROM classification", new String[0] ); | return database.sqlQuery( "SELECT code FROM classification", new String[0] ); | private String[] getAllKeywords() { return service.sqlQuery( "SELECT code FROM classification", new String[0] ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/db5610ad5156af24cbe4ef33bd3966d7eb2a7c1b/DocumentMapper.java/buggy/server/src/imcode/server/document/DocumentMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
8526,
5514,
14149,
1435,
288,
3639,
327,
2063,
18,
4669,
1138,
12,
315,
4803,
981,
4571,
13804,
3113,
394,
514,
63,
20,
65,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
8526,
5514,
14149,
1435,
288,
3639,
327,
2063,
18,
4669,
1138,
12,
315,
4803,
981,
4571,
13804,
3113,
394,
514,
63,
20,
65,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
... |
return new MyDemo().setFormat(df); } | return new MyDemo().setFormat(df); } | public SimpleDemo getDemo() { return new MyDemo().setFormat(df); } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/5f498162d259bda29596000157c48b05c3fae30e/CheckNumbers.java/clean/tools/java/org/unicode/cldr/test/CheckNumbers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4477,
27126,
2343,
351,
83,
1435,
288,
1082,
202,
2463,
394,
8005,
27126,
7675,
542,
1630,
12,
2180,
1769,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4477,
27126,
2343,
351,
83,
1435,
288,
1082,
202,
2463,
394,
8005,
27126,
7675,
542,
1630,
12,
2180,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if (tabLevel > 0) --tabLevel; | if (_tabLevel > 0) { --_tabLevel; } | public void unindent() { if (tabLevel > 0) --tabLevel; } //-- decreaseIndent | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/JSourceWriter.java/clean/castor/trunk/src/main/java/org/exolab/javasource/JSourceWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
9355,
1435,
288,
3639,
309,
261,
67,
7032,
2355,
405,
374,
13,
288,
1493,
67,
7032,
2355,
31,
289,
565,
289,
368,
413,
20467,
7790,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
640,
9355,
1435,
288,
3639,
309,
261,
67,
7032,
2355,
405,
374,
13,
288,
1493,
67,
7032,
2355,
31,
289,
565,
289,
368,
413,
20467,
7790,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
sql = sql + " LIKE \"" + qualifier + "\";"; | sql = sql + " LIKE '" + qualifier + "';"; | public static DCType findByElement(Context context, String element, String qualifier) throws SQLException { String sql = "SELECT * FROM dctyperegistry WHERE element LIKE \"" + element + "\" AND qualifier"; if (qualifier==null) { sql = sql + "=null;"; } else { sql = sql + " LIKE \"" + qualifier + "\";"; } TableRowIterator tri = DatabaseManager.query(context, "dctyperegistry", sql); // Return the first matching element (if two match there's a problem, // but not one dealt with here) if (tri.hasNext()) { return new DCType(context, tri.next()); } else { // No match means there's no corresponding element return null; } } | 49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/cce44b43d94dd70675266da89dbc37a0419208f7/DCType.java/buggy/dspace/src/org/dspace/administer/DCType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
21533,
559,
6224,
1046,
12,
1042,
819,
16,
514,
930,
16,
3639,
514,
12327,
13,
3639,
1216,
6483,
565,
288,
3639,
514,
1847,
273,
315,
4803,
380,
4571,
18253,
8300,
1332,
2128,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21533,
559,
6224,
1046,
12,
1042,
819,
16,
514,
930,
16,
3639,
514,
12327,
13,
3639,
1216,
6483,
565,
288,
3639,
514,
1847,
273,
315,
4803,
380,
4571,
18253,
8300,
1332,
2128,
... |
PreparedStatement delete_biosequence = conn.prepareStatement("delete from biosequence where bioentry_id = ?"); delete_biosequence.setInt(1, bioentry_id); delete_biosequence.executeUpdate(); delete_biosequence.close(); | PreparedStatement delete_entry = conn.prepareStatement("delete from bioentry where bioentry_id = ?"); delete_entry.setInt(1, bioentry_id); delete_entry.executeUpdate(); delete_entry.close(); } rs.close(); get_sequence.close(); | private void _removeSequence(String id) throws BioException, ChangeVetoException { Sequence seq = (Sequence) sequencesByName.get(id); if (seq != null) { seq = null; // Don't want to be holding the reference ourselves! try { Thread.sleep(100L); System.gc(); } catch (Exception ex) { ex.printStackTrace(); } seq = (Sequence) sequencesByName.get(id); if (seq != null) { throw new BioException("There are still references to sequence with ID " + id + " from this database."); } } Connection conn = null; try { conn = dataSource.getConnection(); conn.setAutoCommit(false); PreparedStatement get_sequence = conn.prepareStatement("select bioentry.bioentry_id " + "from bioentry " + "where bioentry.accession = ?" ); get_sequence.setString(1, id); ResultSet rs = get_sequence.executeQuery(); boolean exists; if ((exists = rs.next())) { int bioentry_id = rs.getInt(1); PreparedStatement delete_reference = conn.prepareStatement("delete from bioentry_reference where bioentry_id = ?"); delete_reference.setInt(1, bioentry_id); delete_reference.executeUpdate(); delete_reference.close(); boolean commentSupported = getDBHelper().containsTable(dataSource, "comment"); String commentTableName = getCommentTableName(); if (commentTableName != null) { PreparedStatement delete_comment = conn.prepareStatement("delete from " + commentTableName + " where bioentry_id = ?"); delete_comment.setInt(1, bioentry_id); delete_comment.executeUpdate(); delete_comment.close(); } PreparedStatement delete_qv = conn.prepareStatement("delete from bioentry_qualifier_value where bioentry_id = ?"); delete_qv.setInt(1, bioentry_id); delete_qv.executeUpdate(); delete_qv.close(); DBHelper.DeleteStyle dstyle = getDBHelper().getDeleteStyle(); ArrayList generic_ids = null; // default delete style will cache seqfeature_id's that need to be deleted PreparedStatement delete_locs; if (dstyle == DBHelper.DELETE_MYSQL4) { delete_locs = conn.prepareStatement("delete from location" + " using location, seqfeature" + " where location.seqfeature_id = seqfeature.seqfeature_id and" + " seqfeature.bioentry_id = ?"); delete_locs.setInt(1, bioentry_id); delete_locs.executeUpdate(); delete_locs.close(); } else if (dstyle == DBHelper.DELETE_POSTGRESQL) { delete_locs = conn.prepareStatement("delete from location" + " where location.seqfeature_id = seqfeature.seqfeature_id and" + " seqfeature.bioentry_id = ?"); delete_locs.setInt(1, bioentry_id); delete_locs.executeUpdate(); delete_locs.close(); } else { delete_locs = conn.prepareStatement("delete from location where seqfeature_id = ?"); PreparedStatement get_seqfeats = conn.prepareStatement("select seqfeature_id" + " from seqfeature" + " where bioentry_id = ?" ); get_seqfeats.setInt(1, bioentry_id); ResultSet sfids = get_seqfeats.executeQuery(); generic_ids = new ArrayList(); while (sfids.next()) { int sfid = sfids.getInt(1); generic_ids.add(new Integer(sfid)); delete_locs.setInt(1, sfid); delete_locs.executeUpdate(); } sfids.close(); get_seqfeats.close(); } delete_locs.close(); PreparedStatement delete_fqv; if (dstyle == DBHelper.DELETE_MYSQL4) { delete_fqv = conn.prepareStatement("delete from seqfeature_qualifier_value" + " using seqfeature_qualifier_value, seqfeature" + " where seqfeature_qualifier_value.seqfeature_id = seqfeature.seqfeature_id" + " and seqfeature.bioentry_id = ?"); delete_fqv.setInt(1, bioentry_id); delete_fqv.executeUpdate(); } else if (dstyle == DBHelper.DELETE_POSTGRESQL) { delete_fqv = conn.prepareStatement("delete from seqfeature_qualifier_value" + " where seqfeature_qualifier_value.seqfeature_id = seqfeature.seqfeature_id" + " and seqfeature.bioentry_id = ?"); delete_fqv.setInt(1, bioentry_id); delete_fqv.executeUpdate(); } else { delete_fqv = conn.prepareStatement("delete from seqfeature_qualifier_value" + " where seqfeature_qualifier_value.seqfeature_id = ?"); for (int i = 0; i < generic_ids.size(); i++) { int sfid = ((Integer) generic_ids.get(i)).intValue(); delete_fqv.setInt(1, sfid); delete_fqv.executeUpdate(); } } delete_fqv.close(); PreparedStatement delete_rel; if (dstyle == DBHelper.DELETE_MYSQL4) { delete_rel = conn.prepareStatement("delete from seqfeature_relationship" + " using seqfeature_relationship, seqfeature" + " where object_seqfeature_id = seqfeature.seqfeature_id" + " and seqfeature.bioentry_id = ?"); delete_rel.setInt(1, bioentry_id); delete_rel.executeUpdate(); } else if (dstyle == DBHelper.DELETE_POSTGRESQL) { delete_rel = conn.prepareStatement("delete from seqfeature_relationship" + " where object_seqfeature_id = seqfeature.seqfeature_id" + " and seqfeature.bioentry_id = ?"); delete_rel.setInt(1, bioentry_id); delete_rel.executeUpdate(); } else { delete_rel = conn.prepareStatement("delete from seqfeature_relationship" + " where object_seqfeature_id = ?"); for (int i = 0; i < generic_ids.size(); i++) { int sfid = ((Integer) generic_ids.get(i)).intValue(); delete_rel.setInt(1, sfid); delete_rel.executeUpdate(); } } delete_rel.close(); PreparedStatement delete_features = conn.prepareStatement("delete from seqfeature " + " where bioentry_id = ?"); delete_features.setInt(1, bioentry_id); delete_features.executeUpdate(); delete_features.close(); PreparedStatement delete_biosequence = conn.prepareStatement("delete from biosequence where bioentry_id = ?"); delete_biosequence.setInt(1, bioentry_id); delete_biosequence.executeUpdate(); delete_biosequence.close(); PreparedStatement delete_entry = conn.prepareStatement("delete from bioentry where bioentry_id = ?"); delete_entry.setInt(1, bioentry_id); delete_entry.executeUpdate(); delete_entry.close(); } rs.close(); get_sequence.close(); conn.commit(); conn.close(); if (!exists) { throw new IllegalIDException("Sequence " + id + " didn't exist"); } } catch (SQLException ex) { boolean rolledback = false; if (conn != null) { try { conn.rollback(); rolledback = true; } catch (SQLException ex2) {} } throw new BioException("Error removing from BioSQL tables" + (rolledback ? " (rolled back successfully)" : ""), ex); } } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/8a46d5de3fe9090d980d1d2a6af0d1a91dc8dba3/BioSQLSequenceDB.java/clean/src/org/biojava/bio/seq/db/biosql/BioSQLSequenceDB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
389,
4479,
4021,
12,
780,
612,
13,
3639,
1216,
21209,
503,
16,
7576,
58,
11453,
503,
565,
288,
202,
4021,
3833,
273,
261,
4021,
13,
8463,
5911,
18,
588,
12,
350,
1769,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
389,
4479,
4021,
12,
780,
612,
13,
3639,
1216,
21209,
503,
16,
7576,
58,
11453,
503,
565,
288,
202,
4021,
3833,
273,
261,
4021,
13,
8463,
5911,
18,
588,
12,
350,
1769,
202,
... |
tableColumnCommand.setText(Util.translateString(RESOURCE_BUNDLE, "tableColumnCommand")); | tableColumnCommand .setText(UNSORTED_COLUMN_NAMES[VIEW_COMMAND_COLUMN_INDEX]); | private final Composite createViewTab(final TabFolder parent) { GridData gridData = null; // Create the composite for the tab. final Composite composite = new Composite(parent, SWT.NONE); composite.setLayoutData(new GridData(GridData.FILL_BOTH)); composite.setLayout(new GridLayout()); // Place a table inside the tab. tableKeyBindings = new Table(composite, SWT.BORDER | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL); tableKeyBindings.setHeaderVisible(true); gridData = new GridData(GridData.FILL_BOTH); gridData.widthHint = 800; gridData.heightHint = 400; tableKeyBindings.setLayoutData(gridData); final TableColumn tableColumnCategory = new TableColumn( tableKeyBindings, SWT.NONE, VIEW_CATEGORY_COLUMN_INDEX); tableColumnCategory.setText(Util.translateString(RESOURCE_BUNDLE, "tableColumnCategory")); //$NON-NLS-1$ tableColumnCategory .addSelectionListener(new SortOrderSelectionListener( SORT_COLUMN_CATEGORY)); final TableColumn tableColumnCommand = new TableColumn( tableKeyBindings, SWT.NONE, VIEW_COMMAND_COLUMN_INDEX); tableColumnCommand.setText(Util.translateString(RESOURCE_BUNDLE, "tableColumnCommand")); //$NON-NLS-1$ tableColumnCommand.addSelectionListener(new SortOrderSelectionListener( SORT_COLUMN_COMMAND)); final TableColumn tableColumnKeySequence = new TableColumn( tableKeyBindings, SWT.NONE, VIEW_KEY_SEQUENCE_COLUMN_INDEX); tableColumnKeySequence.setText(Util.translateString(RESOURCE_BUNDLE, "tableColumnKeySequence")); //$NON-NLS-1$ tableColumnKeySequence .addSelectionListener(new SortOrderSelectionListener( SORT_COLUMN_KEY_SEQUENCE)); final TableColumn tableColumnContext = new TableColumn( tableKeyBindings, SWT.NONE, VIEW_CONTEXT_COLUMN_INDEX); tableColumnContext.setText(Util.translateString(RESOURCE_BUNDLE, "tableColumnContext")); //$NON-NLS-1$ tableColumnContext.addSelectionListener(new SortOrderSelectionListener( SORT_COLUMN_CONTEXT)); // A button for exporting the contents to a file. final Button button = new Button(composite, SWT.PUSH); gridData = new GridData(); gridData.horizontalAlignment = GridData.END; gridData.heightHint = convertVerticalDLUsToPixels(IDialogConstants.BUTTON_HEIGHT); final int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH); gridData.widthHint = Math.max(widthHint, button.computeSize( SWT.DEFAULT, SWT.DEFAULT, true).x) + 5; button.setLayoutData(gridData); button.setText(Util.translateString(RESOURCE_BUNDLE, "buttonExport")); //$NON-NLS-1$ button.addSelectionListener(new SelectionListener() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent) */ public final void widgetDefaultSelected(final SelectionEvent event) { selectedButtonExport(); } /* * (non-Javadoc) * * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent) */ public void widgetSelected(SelectionEvent e) { widgetDefaultSelected(e); } }); return composite; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/4a62e78681d79a080be40988ef978dc8e4dfc875/KeysPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/KeysPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
14728,
15193,
5661,
12,
6385,
9483,
3899,
982,
13,
288,
3639,
7145,
751,
3068,
751,
273,
446,
31,
3639,
368,
1788,
326,
9635,
364,
326,
3246,
18,
3639,
727,
14728,
9635,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
14728,
15193,
5661,
12,
6385,
9483,
3899,
982,
13,
288,
3639,
7145,
751,
3068,
751,
273,
446,
31,
3639,
368,
1788,
326,
9635,
364,
326,
3246,
18,
3639,
727,
14728,
9635,
273,
... |
if(progress >= 100) | if(this.progress >= 100) | public boolean isFinished() { if(progress >= 100) return true; return false; } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/FCPClientGet.java/clean/src/thaw/fcp/FCPClientGet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
10577,
1435,
288,
202,
202,
430,
12,
8298,
1545,
2130,
13,
1082,
202,
2463,
638,
31,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
353,
10577,
1435,
288,
202,
202,
430,
12,
8298,
1545,
2130,
13,
1082,
202,
2463,
638,
31,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ICompilationUnit unit= fCompilationUnit; | ICompilationUnit unit= getCompilationUnit(); | private CompilationUnitCompletion guessVariableNames() { ICompilationUnit unit= fCompilationUnit; int start= getStart(); if (unit == null) return null; try { CompilationUnitCompletion collector= new CompilationUnitCompletion(unit); unit.codeComplete(start, collector); return collector; } catch (JavaModelException e) { JavaPlugin.log(e); openErrorDialog(null, e); return null; } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/019e4fcbc8f50045c8c15cb6b79f13954ba26d46/JavaContext.java/clean/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
22416,
2802,
11238,
7274,
3092,
1557,
1435,
288,
202,
202,
45,
19184,
2802,
2836,
33,
284,
19184,
2802,
31,
202,
202,
474,
787,
33,
8635,
5621,
9506,
202,
430,
261,
4873,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
22416,
2802,
11238,
7274,
3092,
1557,
1435,
288,
202,
202,
45,
19184,
2802,
2836,
33,
284,
19184,
2802,
31,
202,
202,
474,
787,
33,
8635,
5621,
9506,
202,
430,
261,
4873,
422,
... |
try { _debugger.scrollToSource(getSelectedStackItem()); } catch (DebugException de) { _frame._showDebugError(de); } | _scrollToSourceIfBreakpoint(); | public void actionPerformed(ActionEvent e) { try { _debugger.scrollToSource(getSelectedStackItem()); } catch (DebugException de) { _frame._showDebugError(de); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/6222fd84e3aa6c7b8b3da9d73ccf7a9a3370487b/DebugPanel.java/clean/drjava/src/edu/rice/cs/drjava/ui/DebugPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
775,
288,
1850,
389,
4148,
693,
18,
12033,
774,
1830,
12,
588,
7416,
2624,
1180,
10663,
3639,
289,
3639,
1044,
261,
2829,
503,
443,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4202,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
775,
288,
1850,
389,
4148,
693,
18,
12033,
774,
1830,
12,
588,
7416,
2624,
1180,
10663,
3639,
289,
3639,
1044,
261,
2829,
503,
443,
... |
iconic.setShortBoolean(field_5_options, isiconic); | field_5_options = iconic.setShortBoolean(field_5_options, isiconic); | public void setIconic(boolean isiconic) { iconic.setShortBoolean(field_5_options, isiconic); } | 509 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/509/449540d6cef3b20a2687fe7373bdb1fe31c6cf58/WindowOneRecord.java/buggy/src/java/org/apache/poi/hssf/record/WindowOneRecord.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
21481,
335,
12,
6494,
353,
3950,
335,
13,
565,
288,
3639,
652,
67,
25,
67,
2116,
273,
4126,
335,
18,
542,
4897,
5507,
12,
1518,
67,
25,
67,
2116,
16,
353,
3950,
335,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21481,
335,
12,
6494,
353,
3950,
335,
13,
565,
288,
3639,
652,
67,
25,
67,
2116,
273,
4126,
335,
18,
542,
4897,
5507,
12,
1518,
67,
25,
67,
2116,
16,
353,
3950,
335,
1769,
... |
OldLogFile olf = new OldLogFile(currentFilename, startTime, lastTime, length); | OldLogFile olf = new OldLogFile(currentFilename, lastTime, thisTime, length); | public void run() { File currentFilename = null; Object o = null; long thisTime = System.currentTimeMillis(); long lastTime = thisTime; long startTime = -1; long nextHour = -1; GregorianCalendar gc = null; String filename = null; if (baseFilename != null) { latestFilename = new File(baseFilename+"-latest.log"); previousFilename = new File(baseFilename+"-previous.log"); findOldLogFiles(); gc = new GregorianCalendar(); switch (INTERVAL) { case Calendar.YEAR : gc.set(Calendar.MONTH, 0); case Calendar.MONTH : gc.set(Calendar.DAY_OF_MONTH, 0); case Calendar.WEEK_OF_YEAR : if (INTERVAL == Calendar.WEEK_OF_YEAR) gc.set(Calendar.DAY_OF_WEEK, 0); case Calendar.DAY_OF_MONTH : gc.set(Calendar.HOUR, 0); case Calendar.HOUR : gc.set(Calendar.MINUTE, 0); case Calendar.MINUTE : gc.set(Calendar.SECOND, 0); gc.set(Calendar.MILLISECOND, 0); } if(INTERVAL_MULTIPLIER > 1) { int x = gc.get(INTERVAL); gc.set(INTERVAL, (x / INTERVAL_MULTIPLIER) * INTERVAL_MULTIPLIER); } filename = getHourLogName(gc, true); currentFilename = new File(filename); logStream = openNewLogFile(currentFilename, true); if(latestFilename != null) { altLogStream = openNewLogFile(latestFilename, false); } System.err.println("Created log files"); startTime = gc.getTimeInMillis(); gc.add(INTERVAL, INTERVAL_MULTIPLIER); nextHour = gc.getTimeInMillis(); } while (true) { try { thisTime = System.currentTimeMillis(); if (baseFilename != null) { if (thisTime > nextHour) { // Switch logs try { logStream.flush(); if(altLogStream != null) altLogStream.flush(); } catch (IOException e) { System.err.println( "Flushing on change caught " + e); } String oldFilename = filename; long length = currentFilename.length(); OldLogFile olf = new OldLogFile(currentFilename, startTime, lastTime, length); lastTime = thisTime; synchronized(logFiles) { logFiles.addLast(olf); } oldLogFilesDiskSpaceUsage += length; trimOldLogFiles(); try { logStream.close(); } catch (IOException e) { System.err.println( "Closing on change caught " + e); } // Rotate primary log stream filename = getHourLogName(gc, true); currentFilename = new File(filename); logStream = openNewLogFile(new File(filename), true); if(latestFilename != null) { try { altLogStream.close(); } catch (IOException e) { System.err.println( "Closing alt on change caught " + e); } if(previousFilename != null) { previousFilename.delete(); latestFilename.renameTo(previousFilename); latestFilename.delete(); } else { latestFilename.delete(); } altLogStream = openNewLogFile(latestFilename, false); } System.err.println("Rotated log files: "+filename); //System.err.println("Almost rotated"); gc.add(INTERVAL, INTERVAL_MULTIPLIER); nextHour = gc.getTimeInMillis(); //System.err.println("Rotated"); } } if(list.size() == 0) { myWrite(logStream, null); if(altLogStream != null) myWrite(altLogStream, null); } synchronized (list) { while (list.size() == 0) { if (closed) { return; } try { list.wait(500); } catch (InterruptedException e) { // Ignored. } } o = list.removeFirst(); listBytes -= (((byte[]) o).length + 16); } myWrite(logStream, ((byte[]) o)); if(altLogStream != null) myWrite(altLogStream, (byte[]) o); } catch (OutOfMemoryError e) { // FIXME //freenet.node.Main.dumpInterestingObjects(); } catch (Throwable t) { System.err.println("FileLoggerHook log writer caught " + t); t.printStackTrace(System.err); } } } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/471e8a67c4fbabf6d0b7e2eca8906ca553f5dc52/FileLoggerHook.java/clean/src/freenet/support/FileLoggerHook.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
202,
812,
783,
5359,
273,
446,
31,
1082,
202,
921,
320,
273,
446,
31,
1082,
202,
5748,
333,
950,
273,
2332,
18,
2972,
28512,
5621,
1082,
202,
5748... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1086,
1435,
288,
1082,
202,
812,
783,
5359,
273,
446,
31,
1082,
202,
921,
320,
273,
446,
31,
1082,
202,
5748,
333,
950,
273,
2332,
18,
2972,
28512,
5621,
1082,
202,
5748... |
sym2label.put(sym, l); | sym2label.put(sym, new LabelDescr(l, params)); | private Item gen0(Tree tree, MSILType toType) { Symbol sym = tree.hasSymbol() ? tree.symbol() : null; Item item = null; switch (tree) { case Empty: return items.VoidItem(); case Block(Tree[] stats, Tree value): boolean tmpLastExpr = lastExpr; lastExpr = false; for (int i = 0; i < stats.length; i++) { drop(gen(stats[i], MSILType.VOID)); } lastExpr = tmpLastExpr; return gen(value, toType); case ValDef(_, Name name, Tree tpe, Tree rhs): LocalBuilder local = code.DeclareLocal(tc.getType(sym)); //local.SetLocalSymInfo(name.toString()); local.SetLocalSymInfo(tree.symbol().name.toString()); locals.put(sym, local); if (rhs == Tree.Empty) return items.VoidItem(); MSILType type = msilType(tpe.type); genLoad(rhs, type); return check(store(items.LocalItem(local))); case Ident(_): if (sym.isModule()) { FieldInfo field = tc.getModuleField(sym); // force the loading of the module item = coerce(load(items.StaticItem(field)), toType); } else { MSILType type = msilType(sym.info()); Integer slot = (Integer) params.get(sym); if (slot != null) { item = items.ArgItem(type, slot.intValue()); } else { LocalBuilder local = (LocalBuilder) locals.get(sym); if (local != null) item = items.LocalItem(local); else { assert sym.isStatic() : Debug.show(sym); //global.fail("Ident = " + Debug.show(sym)); FieldInfo field = tc.getField(sym); assert field != null : Debug.show(sym); if (field.IsLiteral()) { assert field.FieldType.IsEnum() && field.getValue() != null : field.toString(); return coerce(mkLiteral(msilType(field.FieldType), field.getValue()), toType); } return coerce(items.StaticItem(field), toType); } } } return coerce(item, toType); case Select(Tree qualifier, _): if (sym.isModule()) { assert !sym.isJava() : "Cannot treat Java class '" + Debug.show(sym) + "' as value."; //System.out.println("gen2.Select: object " + Debug.show(qualifier) // + " . " + Debug.show(sym)); return coerce(load(items.StaticItem(tc.getModuleField(sym))), toType); } assert !sym.isStatic() :Debug.show(sym); item = items.SelectItem(genLoad(qualifier, msilType(qualifier)), tc.getField(sym)); return coerce(item, toType); case Apply(Tree fun, Tree[] args): Item i = check(genApply(fun, args, msilType(tree.type)));// System.out.println("gen.Apply: " + Debug.show(fun.symbol()) + " toType = " + toType +// "; tree.type = " + msilType(tree.type) + "; result = " + i); return coerce(i, toType); case Assign(Tree lhs, Tree rhs): boolean tmpLastExpr = lastExpr; lastExpr = false; MSILType type = msilType(lhs.type); Item var = gen(lhs, type); genLoad(rhs, type); lastExpr = tmpLastExpr; return check(store(var)); case New(Tree init): switch (init) { case Apply(Tree fun, Tree[] args): ConstructorInfo ctor = (ConstructorInfo) tc.getMethod(fun.symbol()); loadArgs(args, ctor.GetParameters()); code.Emit(OpCodes.Newobj, ctor); return coerce(items.StackItem(msilType(ctor.DeclaringType)), toType); default: throw Debug.abort("Incorrect tree", init); } case This(_): //return items.SelfItem(tc.getType(currentClass)); return coerce(items.SelfItem(tc.getType(sym)), toType); case Super(_, _):// Item retItem = items.SelfItem(tc.getType(currentClass));// return retItem; return coerce(items.SelfItem(tc.getType(sym)), toType); case Literal(AConstant value): if (toType == MSILType.VOID) return items.VoidItem(); return coerce(items.LiteralItem(value), toType); case Return(Tree expr): //System.out.println(Debug.show(expr) + "; toType = " + toType); genLoad(expr, msilType(expr)); //code.Emit(OpCodes.Ret); code.Emit(OpCodes.Br, methodEnd); return items.VoidItem(); case If(Tree cond, Tree thenp, Tree elsep): item = genIf(cond, thenp, elsep, toType); return check(item); case LabelDef(_, _ /*Ident[] params*/, Tree rhs): Label l = code.DefineLabel(); code.MarkLabel(l); sym2label.put(sym, l); return gen(rhs, toType); case Switch(Tree test, int[] tags, Tree[] bodies, Tree otherwise): LocalBuilder testLoc = code.DeclareLocal(tc.INT); Item loc = items.LocalItem(testLoc); boolean tmpLastExpr = lastExpr; lastExpr = false; genLoad(test, MSILType.I4); store(loc); lastExpr = tmpLastExpr; Label exit = code.DefineLabel(); Label nextCase = code.DefineLabel(); assert tags.length == bodies.length; for (int i = 0; i < tags.length; i++) { load(loc); loadI4(tags[i]); code.Emit(OpCodes.Bne_Un, nextCase); genLoad(bodies[i], toType);// if (lastExpr)// code.Emit(OpCodes.Ret);// else if (willReturn) code.Emit(OpCodes.Br, exit); code.MarkLabel(nextCase); nextCase = code.DefineLabel(); } Item i = genLoad(otherwise, toType); code.MarkLabel(exit); return i; default: throw Debug.abort("Dunno what to do", tree); } } //gen() | 10130 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10130/000493ef6025c2778ec96975d8bf7d58a3f853f3/GenMSIL.java/buggy/sources/scalac/backend/msil/GenMSIL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4342,
3157,
20,
12,
2471,
2151,
16,
490,
2320,
48,
559,
28234,
13,
288,
202,
5335,
5382,
273,
2151,
18,
5332,
5335,
1435,
692,
2151,
18,
7175,
1435,
294,
446,
31,
202,
1180,
761,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4342,
3157,
20,
12,
2471,
2151,
16,
490,
2320,
48,
559,
28234,
13,
288,
202,
5335,
5382,
273,
2151,
18,
5332,
5335,
1435,
692,
2151,
18,
7175,
1435,
294,
446,
31,
202,
1180,
761,
... |
aboutInfo.getFeatureId())) return true; | aboutInfo.getFeatureId())) { return true; } | public boolean equals(Object o) { if ((o != null) && (o instanceof WelcomeEditorInput)) { if (((WelcomeEditorInput) o).aboutInfo.getFeatureId().equals( aboutInfo.getFeatureId())) return true; } return false; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/WelcomeEditorInput.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/WelcomeEditorInput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
320,
13,
288,
3639,
309,
14015,
83,
480,
446,
13,
597,
261,
83,
1276,
678,
16312,
6946,
1210,
3719,
288,
5411,
309,
261,
12443,
59,
16312,
6946,
1210,
13,
320... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1606,
12,
921,
320,
13,
288,
3639,
309,
14015,
83,
480,
446,
13,
597,
261,
83,
1276,
678,
16312,
6946,
1210,
3719,
288,
5411,
309,
261,
12443,
59,
16312,
6946,
1210,
13,
320... |
m_afterGroupsMap= new HashMap<String, ITestNGMethod>(); for(ITestNGMethod m : m_allMethods) { String[] groups= m.getGroups(); for(String g : groups) { m_afterGroupsMap.put(g, m); } } | m_afterGroupsMap= initializeAfterGroupsMap(); | public synchronized boolean isLastMethodForGroup(String group, ITestNGMethod method) { // If we have more invocation to do, this is not the last one yet int invocationCount= method.getCurrentInvocationCount(); if(invocationCount < (method.getInvocationCount() * method.getParameterInvocationCount())) { return false; } // Lazy initialization since we might never be called if(m_afterGroupsMap == null) { m_afterGroupsMap= new HashMap<String, ITestNGMethod>(); for(ITestNGMethod m : m_allMethods) { String[] groups= m.getGroups(); for(String g : groups) { m_afterGroupsMap.put(g, m); } } } // Note: == is not good enough here as we may work with ITestNGMethod clones return m_afterGroupsMap.isEmpty() ? false : m_afterGroupsMap.get(group).equals(method); } | 46166 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46166/4a9f5e1bbd5511495182bbd21cb62ce6eb71985d/ConfigurationGroupMethods.java/buggy/src/main/org/testng/internal/ConfigurationGroupMethods.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1250,
23075,
1305,
1290,
1114,
12,
780,
1041,
16,
467,
4709,
4960,
1305,
707,
13,
288,
565,
368,
971,
732,
1240,
1898,
9495,
358,
741,
16,
333,
353,
486,
326,
1142,
1245,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1250,
23075,
1305,
1290,
1114,
12,
780,
1041,
16,
467,
4709,
4960,
1305,
707,
13,
288,
565,
368,
971,
732,
1240,
1898,
9495,
358,
741,
16,
333,
353,
486,
326,
1142,
1245,
46... |
old = opt.getMarkCol(); | old = opt.getColorValueForKey("MARK_COLOR", Color.YELLOW); | public AppOptions run() { Container content; JPanel genOpts, buttons, colours, options; content = getContentPane(); content.setLayout(new BorderLayout()); askSave = new JCheckBox(java.util.ResourceBundle.getBundle("global").getString("askSave")); askSave.setToolTipText(java.util.ResourceBundle.getBundle("global").getString("askSaveTT")); askSave.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { opt.setAskSave(askSave.isSelected()); } }); // Panel erzeugen, Border hinzufgen, allgemeine Optionen genOpts = new JPanel(); genOpts.setBorder(new TitledBorder(java.util.ResourceBundle.getBundle("global").getString("common"))); genOpts.setLayout(new GridLayout(1,1)); genOpts.add(askSave); // Panel fr die Farboptionen colours = new JPanel(); colours.setBorder(new TitledBorder(java.util.ResourceBundle.getBundle("global").getString("colors"))); colours.setLayout(new GridLayout(5,2)); JButton lineCol, backCol, charCol, markCol, transCol; lineCol = new JButton(java.util.ResourceBundle.getBundle("global").getString("lineColor")); lineCol.setToolTipText(java.util.ResourceBundle.getBundle("global").getString("lineColorTT")); currLineCol = new JPanel(); currLineCol.setBackground(opt.getLineCol()); backCol = new JButton(java.util.ResourceBundle.getBundle("global").getString("bg")); backCol.setToolTipText(java.util.ResourceBundle.getBundle("global").getString("bgTT")); currBackCol = new JPanel(); charCol = new JButton(java.util.ResourceBundle.getBundle("global").getString("transChars")); charCol.setToolTipText(java.util.ResourceBundle.getBundle("global").getString("transCharsTT")); currCharCol = new JPanel(); markCol = new JButton(java.util.ResourceBundle.getBundle("global").getString("markedState")); markCol.setToolTipText(java.util.ResourceBundle.getBundle("global").getString("markedStateTT")); currMarkCol = new JPanel(); transCol = new JButton(java.util.ResourceBundle.getBundle("global").getString("specMark")); transCol.setToolTipText(java.util.ResourceBundle.getBundle("global").getString("specMarkTT")); currTransCol = new JPanel(); colours.add(lineCol); colours.add(currLineCol); colours.add(backCol); colours.add(currBackCol); colours.add(charCol); colours.add(currCharCol); colours.add(markCol); colours.add(currMarkCol); colours.add(transCol); colours.add(currTransCol); lineCol.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Color c, old; old = opt.getLineCol(); c = getColor(old); if (c!=null) { opt.setLineCol(c); update(); } } }); charCol.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Color c, old; old = opt.getCharCol(); c = getColor(old); if (c!=null) { opt.setCharCol(c); update(); } } }); markCol.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Color c, old; old = opt.getMarkCol(); c = getColor(old); if (c!=null) { opt.setMarkCol(c); update(); } } }); transCol.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Color c, old; old = opt.getTransCol(); c = getColor(old); if (c!=null) { opt.setTransCol(c); update(); } } }); backCol.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { Color c, old; old = opt.getBackCol(); c = getColor(old); if (c!=null) { opt.setBackCol(c); update(); } } }); // ok und cancel butten buttons = new JPanel(); buttons.setLayout(new GridLayout(1,3)); JButton okButton, defaultButton, cancelButton; // Optionen anzeigen update(); okButton = new JButton(java.util.ResourceBundle.getBundle("global").getString("OK")); defaultButton = new JButton(java.util.ResourceBundle.getBundle("global").getString("default")); cancelButton = new JButton(java.util.ResourceBundle.getBundle("global").getString("cancel")); defaultButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { opt.setDefault(); update(); } }); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { opt.setOptionsFrom(old_opt); dispose(); } }); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { dispose(); } }); buttons.add(okButton); buttons.add(defaultButton); buttons.add(cancelButton); options = new JPanel(); options.setLayout(new GridLayout(2,1)); options.add(genOpts); options.add(colours); content.add(options, BorderLayout.CENTER); content.add(buttons, BorderLayout.SOUTH); setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); pack(); setLocation(70,70); setVisible(true); return opt; } | 11750 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11750/e52bc9bb7a81f5b8a747c29cc00e1456e4c54c6e/OptionDlg.java/buggy/src/gui/dialogs/OptionDlg.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4677,
1320,
1086,
1435,
288,
3639,
4039,
913,
31,
3639,
24048,
3157,
5476,
16,
9502,
16,
645,
4390,
16,
702,
31,
7734,
913,
273,
5154,
8485,
5621,
7734,
913,
18,
542,
3744,
12,
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,
1071,
4677,
1320,
1086,
1435,
288,
3639,
4039,
913,
31,
3639,
24048,
3157,
5476,
16,
9502,
16,
645,
4390,
16,
702,
31,
7734,
913,
273,
5154,
8485,
5621,
7734,
913,
18,
542,
3744,
12,
27... |
catch (Exception e) { | catch (Throwable e) { | public void test() throws Throwable { selenium.setContext("Test Visiblity", "info"); /* Test Visiblity */ // open|./tests/html/test_visibility.html| selenium.open("./tests/html/test_visibility.html"); boolean sawThrow4 = false; try { // originally verifyVisible|visibleParagraph| selenium.assertVisible("visibleParagraph"); } catch (Exception e) { sawThrow4 = true; } verifyFalse(sawThrow4); boolean sawThrow5 = false; try { // originally verifyNotVisible|hiddenParagraph| selenium.assertNotVisible("hiddenParagraph"); } catch (Exception e) { sawThrow5 = true; } verifyFalse(sawThrow5); boolean sawThrow6 = false; try { // originally verifyNotVisible|suppressedParagraph| selenium.assertNotVisible("suppressedParagraph"); } catch (Exception e) { sawThrow6 = true; } verifyFalse(sawThrow6); boolean sawThrow7 = false; try { // originally verifyNotVisible|classSuppressedParagraph| selenium.assertNotVisible("classSuppressedParagraph"); } catch (Exception e) { sawThrow7 = true; } verifyFalse(sawThrow7); boolean sawThrow8 = false; try { // originally verifyNotVisible|jsClassSuppressedParagraph| selenium.assertNotVisible("jsClassSuppressedParagraph"); } catch (Exception e) { sawThrow8 = true; } verifyFalse(sawThrow8); boolean sawThrow9 = false; try { // originally verifyNotVisible|hiddenSubElement| selenium.assertNotVisible("hiddenSubElement"); } catch (Exception e) { sawThrow9 = true; } verifyFalse(sawThrow9); boolean sawThrow10 = false; try { // originally verifyVisible|visibleSubElement| selenium.assertVisible("visibleSubElement"); } catch (Exception e) { sawThrow10 = true; } verifyFalse(sawThrow10); boolean sawThrow11 = false; try { // originally verifyNotVisible|suppressedSubElement| selenium.assertNotVisible("suppressedSubElement"); } catch (Exception e) { sawThrow11 = true; } verifyFalse(sawThrow11); boolean sawThrow12 = false; try { // originally verifyNotVisible|jsHiddenParagraph| selenium.assertNotVisible("jsHiddenParagraph"); } catch (Exception e) { sawThrow12 = true; } verifyFalse(sawThrow12); boolean sawThrow13 = false; try { // originally verifyNotVisible|nonExistantElement| selenium.assertNotVisible("nonExistantElement"); } catch (Exception e) { sawThrow13 = true; } verifyFalse(sawThrow13); checkForVerificationErrors(); } | 50930 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50930/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestVisibility.java/buggy/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestVisibility.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
8077,
495,
80,
560,
3113,
315,
1376,
8863,
225,
1748,
7766,
8077,
495,
80,
560,
4202,
1195,
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,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
8077,
495,
80,
560,
3113,
315,
1376,
8863,
225,
1748,
7766,
8077,
495,
80,
560,
4202,
1195,
1082,... |
return groups.get(new Integer(field)) != null; } | return groups.containsKey(new Integer(field)); } | private boolean isGroupField(int field) { return groups.get(new Integer(field)) != null; } | 52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/e9fcfc3f00e226dd4afab95dedec942fad2fd51b/FieldMap.java/buggy/src/quickfix/FieldMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
353,
1114,
974,
12,
474,
652,
13,
288,
202,
202,
2463,
3252,
18,
588,
12,
2704,
2144,
12,
1518,
3719,
480,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
353,
1114,
974,
12,
474,
652,
13,
288,
202,
202,
2463,
3252,
18,
588,
12,
2704,
2144,
12,
1518,
3719,
480,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Log.warn("Ignoring call to sendError(" + sc + ", " + msg + ")"); | log.warn("Ignoring call to sendError(" + sc + ", " + msg + ")"); | public void sendError(int sc, String msg) throws IOException { Log.warn("Ignoring call to sendError(" + sc + ", " + msg + ")"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } | 45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/3278903455cc8ccea02b35ddb45d6f6200368bb7/SwallowingHttpServletResponse.java/buggy/java/uk/ltd/getahead/dwr/util/SwallowingHttpServletResponse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
17538,
12,
474,
888,
16,
514,
1234,
13,
1216,
1860,
565,
288,
3639,
613,
18,
8935,
2932,
21702,
745,
358,
17538,
2932,
397,
888,
397,
3104,
315,
397,
1234,
397,
7310,
1769,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
17538,
12,
474,
888,
16,
514,
1234,
13,
1216,
1860,
565,
288,
3639,
613,
18,
8935,
2932,
21702,
745,
358,
17538,
2932,
397,
888,
397,
3104,
315,
397,
1234,
397,
7310,
1769,
4... |
log.error(e); | System.err.println(e); | public void sendLoop() throws Exception { Thread task = new Thread(new Runnable() { public void run() { while (! closed) { try { synchronized (Coordinator.this) { channel.send(null, null, new Integer(++cnt)); log.error("send cnt=" + cnt); } Thread.sleep(1000); } catch (ChannelNotConnectedException not) { break; } catch (ChannelClosedException closed) { break; } catch (Exception e) { log.error(e); continue; } } } }); task.start(); } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/13de68466e3cf7fde6ee0bde0cee09a33e837e89/STATE_TRANSFER_Test.java/buggy/tests/junit/org/jgroups/protocols/STATE_TRANSFER_Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1366,
6452,
1435,
1216,
1185,
288,
540,
4884,
1562,
273,
394,
4884,
12,
2704,
10254,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
9079,
1323,
16051,
4375,
13,
288,
5375,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1366,
6452,
1435,
1216,
1185,
288,
540,
4884,
1562,
273,
394,
4884,
12,
2704,
10254,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
9079,
1323,
16051,
4375,
13,
288,
5375,
775,
... |
if (jj_scan_token(QUOTE)) return true; | if (jj_scan_token(SOARCMD)) return true; | final private boolean jj_3_3() { if (jj_scan_token(QUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/febc6aa07cc9db7fe8accccebc781a6bba1e9a18/SoarParser.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/parser/SoarParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
23,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3584,
985,
19473,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
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,
727,
3238,
1250,
10684,
67,
23,
67,
23,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3584,
985,
19473,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
5... |
}); addAnnotation(getChart_SeriesHints(), source, new String[] { "kind", "element", "name", "SeriesHints" | protected void createExtendedMetaDataAnnotations() { String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; addAnnotation(chartEClass, source, new String[] { "name", "Chart", "kind", "elementOnly" }); addAnnotation(getChart_Version(), source, new String[] { "kind", "element", "name", "Version" }); addAnnotation(getChart_Type(), source, new String[] { "kind", "element", "name", "Type" }); addAnnotation(getChart_SubType(), source, new String[] { "kind", "element", "name", "SubType" }); addAnnotation(getChart_Description(), source, new String[] { "kind", "element", "name", "Description" }); addAnnotation(getChart_Block(), source, new String[] { "kind", "element", "name", "Block" }); addAnnotation(getChart_Dimension(), source, new String[] { "kind", "element", "name", "Dimension" }); addAnnotation(getChart_Script(), source, new String[] { "kind", "element", "name", "Script" }); addAnnotation(getChart_Units(), source, new String[] { "kind", "element", "name", "Units" }); addAnnotation(getChart_SeriesThickness(), source, new String[] { "kind", "element", "name", "SeriesThickness" }); addAnnotation(getChart_SeriesHints(), source, new String[] { "kind", "element", "name", "SeriesHints" }); addAnnotation(getChart_GridColumnCount(), source, new String[] { "kind", "element", "name", "GridColumnCount" }); addAnnotation(getChart_ExtendedProperties(), source, new String[] { "kind", "element", "name", "ExtendedProperties" }); addAnnotation(getChart_SampleData(), source, new String[] { "kind", "element", "name", "SampleData" }); addAnnotation(chartWithAxesEClass, source, new String[] { "name", "ChartWithAxes", "kind", "elementOnly" }); addAnnotation(getChartWithAxes_Axes(), source, new String[] { "kind", "element", "name", "Axes" }); addAnnotation(getChartWithAxes_WallFill(), source, new String[] { "kind", "element", "name", "WallFill" }); addAnnotation(getChartWithAxes_FloorFill(), source, new String[] { "kind", "element", "name", "FloorFill" }); addAnnotation(getChartWithAxes_Orientation(), source, new String[] { "kind", "element", "name", "Orientation" }); addAnnotation(getChartWithAxes_UnitSpacing(), source, new String[] { "kind", "element", "name", "UnitSpacing" }); addAnnotation(chartWithoutAxesEClass, source, new String[] { "name", "ChartWithoutAxes", "kind", "elementOnly" }); addAnnotation(getChartWithoutAxes_SeriesDefinitions(), source, new String[] { "kind", "element", "name", "SeriesDefinitions" }); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/869b9dc91ef4dd13d07f589c6394484a744642f0/ModelPackageImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ModelPackageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
752,
11456,
6998,
5655,
1435,
565,
288,
3639,
514,
1084,
273,
315,
2505,
2207,
19,
3341,
19,
20416,
19,
351,
74,
19,
557,
479,
19,
1367,
19,
11456,
6998,
14432,
3639,
24145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
11456,
6998,
5655,
1435,
565,
288,
3639,
514,
1084,
273,
315,
2505,
2207,
19,
3341,
19,
20416,
19,
351,
74,
19,
557,
479,
19,
1367,
19,
11456,
6998,
14432,
3639,
24145,
... | |
long before = _context.clock().now(); _message = GarlicMessageBuilder.buildMessage(_context, _config, _wrappedKey, _wrappedTags); long after = _context.clock().now(); | long before = getContext().clock().now(); _message = GarlicMessageBuilder.buildMessage(getContext(), _config, _wrappedKey, _wrappedTags); long after = getContext().clock().now(); | public void runJob() { long before = _context.clock().now(); _message = GarlicMessageBuilder.buildMessage(_context, _config, _wrappedKey, _wrappedTags); long after = _context.clock().now(); if ( (after - before) > 1000) { _log.warn("Building the garlic took too long [" + (after-before)+" ms]", getAddedBy()); } else { _log.debug("Building the garlic was fast! " + (after - before) + " ms"); } _context.jobQueue().addJob(new SendJob()); } | 3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/e737e5c9507ed0d463dc9e45a8f63657f466b177/SendGarlicJob.java/clean/router/java/src/net/i2p/router/message/SendGarlicJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
1525,
1865,
273,
389,
2472,
18,
18517,
7675,
3338,
5621,
3639,
389,
2150,
273,
611,
13007,
335,
1079,
1263,
18,
3510,
1079,
24899,
2472,
16,
389,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
2278,
1435,
288,
3639,
1525,
1865,
273,
389,
2472,
18,
18517,
7675,
3338,
5621,
3639,
389,
2150,
273,
611,
13007,
335,
1079,
1263,
18,
3510,
1079,
24899,
2472,
16,
389,
1... |
Object[] args = { ((NativeFunction) funObj).names[0] }; String msg = Context.getMessage("msg.incompat.call", args); | String name = ((NativeFunction) funObj).names[0]; String msg = Context.getMessage1("msg.incompat.call", name); | private static NativeDate checkInstance(Scriptable obj, Function funObj) { if (obj == null || !(obj instanceof NativeDate)) { Context cx = Context.getCurrentContext(); Object[] args = { ((NativeFunction) funObj).names[0] }; String msg = Context.getMessage("msg.incompat.call", args); throw NativeGlobal.constructError(cx, "TypeError", msg, funObj); } return (NativeDate) obj; } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/e737c6d867e82d4ba7fd00e7e388c9c8da824ff0/NativeDate.java/clean/js/rhino/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
16717,
1626,
866,
1442,
12,
3651,
429,
1081,
16,
4766,
5411,
4284,
9831,
2675,
13,
288,
3639,
309,
261,
2603,
422,
446,
747,
401,
12,
2603,
1276,
16717,
1626,
3719,
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,
3238,
760,
16717,
1626,
866,
1442,
12,
3651,
429,
1081,
16,
4766,
5411,
4284,
9831,
2675,
13,
288,
3639,
309,
261,
2603,
422,
446,
747,
401,
12,
2603,
1276,
16717,
1626,
3719,
288,
5411,
... |
{ | { if (value == INDIRECT_FLUIDS) return base.setWithSave(newValue); | public synchronized Object setWithSave (Object newValue) { Object old; if (base != null) { old = base; base = null; } else { old = value; } value = newValue; return old; } | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/1c4f77e28a3b3448ff20af27a8ba2f4d7d346b51/SharedLocation.java/buggy/gnu/mapping/SharedLocation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1033,
444,
1190,
4755,
261,
921,
6129,
13,
225,
288,
309,
261,
1132,
422,
2120,
17541,
67,
19054,
3060,
55,
13,
327,
1026,
18,
542,
1190,
4755,
12,
2704,
620,
1769,
565,
103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
1033,
444,
1190,
4755,
261,
921,
6129,
13,
225,
288,
309,
261,
1132,
422,
2120,
17541,
67,
19054,
3060,
55,
13,
327,
1026,
18,
542,
1190,
4755,
12,
2704,
620,
1769,
565,
103... |
public void init(ServletConfig config, AxisConfiguration axisConf) throws ServletException { | public void init(ServletConfig config, AxisConfiguration axisConf) throws ServletException { | public void init(ServletConfig config, AxisConfiguration axisConf) throws ServletException { _axisConfig = axisConf; _appRoot = new File(config.getServletContext().getRealPath("/WEB-INF")); TempFileManager.setWorkingDirectory(_appRoot); __log.debug("Loading properties"); String confDir = System.getProperty("org.apache.ode.configDir"); if (confDir == null) _odeConfig = new ODEConfigProperties(new File(_appRoot, "conf")); else _odeConfig = new ODEConfigProperties(new File(confDir)); _odeConfig.load(); String wdir = _odeConfig.getWorkingDir(); if (wdir == null) _workRoot = _appRoot; else _workRoot = new File(wdir.trim()); __log.debug("Initializing transaction manager"); initTxMgr(); __log.debug("Creating data source."); initDataSource(); __log.debug("Starting Hibernate."); initHibernate(); __log.debug("Hibernate started."); __log.debug("Initializing BPEL process store."); initProcessStore(); __log.debug("Initializing BPEL server."); initBpelServer(); try { _server.start(); } catch (Exception ex) { String errmsg = __msgs.msgOdeBpelServerStartFailure(); __log.error(errmsg,ex); throw new ServletException(errmsg, ex); } __log.debug("Initializing JCA adapter."); initConnector(); File deploymentDir = new File(_workRoot, "processes"); _poller = new DeploymentPoller(deploymentDir, this); new ManagementService().enableService(_axisConfig, _server, _appRoot.getAbsolutePath()); new DeploymentWebService().enableService(_axisConfig, _server, _store, _poller, _appRoot.getAbsolutePath(), _workRoot.getAbsolutePath()); _poller.start(); __log.info(__msgs.msgPollingStarted(deploymentDir.getAbsolutePath())); __log.info(__msgs.msgOdeStarted()); } | 45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/7512124f757dc01ef69acfd5242181679ec0293d/ODEServer.java/buggy/axis2/src/main/java/org/apache/ode/axis2/ODEServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
12,
4745,
809,
642,
16,
15509,
1750,
2654,
3976,
13,
1216,
16517,
288,
3639,
389,
4890,
809,
273,
2654,
3976,
31,
3639,
389,
2910,
2375,
273,
394,
1387,
12,
1425,
18,
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,
1071,
918,
1208,
12,
4745,
809,
642,
16,
15509,
1750,
2654,
3976,
13,
1216,
16517,
288,
3639,
389,
4890,
809,
273,
2654,
3976,
31,
3639,
389,
2910,
2375,
273,
394,
1387,
12,
1425,
18,
5... |
unlock(ses); | if (ses != null) { unlock(ses); } | public String intercept(ActionInvocation invocation) throws Exception { String result = null; Map ses = ActionContext.getContext().getSession(); before(invocation); try { result = invocation.invoke(); after(invocation, result); } finally { unlock(ses); } return result; } | 15560 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15560/2b0e76f7f0c1e8bcf5a9aeb985b8389430677934/ScopeInterceptor.java/clean/src/java/com/opensymphony/webwork/interceptor/ScopeInterceptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
10883,
12,
1803,
9267,
9495,
13,
1216,
1185,
288,
3639,
514,
563,
273,
446,
31,
3639,
1635,
24138,
273,
4382,
1042,
18,
29120,
7675,
588,
2157,
5621,
3639,
1865,
12,
5768,
4431... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10883,
12,
1803,
9267,
9495,
13,
1216,
1185,
288,
3639,
514,
563,
273,
446,
31,
3639,
1635,
24138,
273,
4382,
1042,
18,
29120,
7675,
588,
2157,
5621,
3639,
1865,
12,
5768,
4431... |
return new RubyBignum(runtime, value.xor(bigIntValue(other))); | return new RubyBignum(getRuntime(), value.xor(bigIntValue(other))); | public RubyInteger op_xor(RubyNumeric other) { return new RubyBignum(runtime, value.xor(bigIntValue(other))); } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
1061,
67,
31346,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
327,
394,
19817,
38,
724,
379,
12,
588,
5576,
9334,
460,
18,
31346,
12,
14002,
1702,
620,
12,
3011,
3719,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
4522,
1061,
67,
31346,
12,
54,
10340,
9902,
1308,
13,
288,
3639,
327,
394,
19817,
38,
724,
379,
12,
588,
5576,
9334,
460,
18,
31346,
12,
14002,
1702,
620,
12,
3011,
3719,
1... |
Object selectedObject = ((IStructuredSelection)getViewer().getSelection()).getFirstElement(); if(selectedObject instanceof ITaskListElement){ updateActionEnablement(rename, (ITaskListElement)selectedObject); | Object selectedObject = ((IStructuredSelection) getViewer().getSelection()).getFirstElement(); if (selectedObject instanceof ITaskListElement) { updateActionEnablement(rename, (ITaskListElement) selectedObject); | public void createPartControl(Composite parent) { tree = new FilteredTree(parent, SWT.VERTICAL | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION | SWT.HIDE_SELECTION, new TaskListPatternFilter());// addToolTipHandler(); // ((Text)tree.getFilterControl()).setText(FILTER_LABEL); getViewer().getTree().setHeaderVisible(true); getViewer().getTree().setLinesVisible(true); getViewer().setColumnProperties(columnNames); getViewer().setUseHashlookup(true); columns = new TreeColumn[columnNames.length]; for (int i = 0; i < columnNames.length; i++) { columns[i] = new TreeColumn(getViewer().getTree(), 0); // SWT.LEFT columns[i].setText(columnNames[i]); columns[i].setWidth(columnWidths[i]); final int index = i; columns[i].addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { sortIndex = index; getViewer().setSorter(new TaskListTableSorter(columnNames[sortIndex])); } }); columns[i].addControlListener(new ControlListener () { public void controlResized(ControlEvent e) { for (int j = 0; j < columnWidths.length; j++) { if (columns[j].equals(e.getSource())) { columnWidths[j] = columns[j].getWidth(); } } } public void controlMoved(ControlEvent e) { // don't care if the control is moved } }); } CellEditor[] editors = new CellEditor[columnNames.length]; TextCellEditor textEditor = new TextCellEditor(getViewer().getTree()); ((Text) textEditor.getControl()).setOrientation(SWT.LEFT_TO_RIGHT); editors[0] = new CheckboxCellEditor(); editors[1] = textEditor; editors[2] = new ComboBoxCellEditor(getViewer().getTree(), PRIORITY_LEVELS, SWT.READ_ONLY); editors[3] = textEditor; getViewer().setCellEditors(editors); getViewer().setCellModifier(new TaskListCellModifier()); getViewer().setSorter(new TaskListTableSorter(columnNames[sortIndex])); drillDownAdapter = new DrillDownAdapter(getViewer()); getViewer().setContentProvider(new TaskListContentProvider(this)); TaskListLabelProvider labelProvider = new TaskListLabelProvider(); labelProvider.setBackgroundColor(parent.getBackground()); getViewer().setLabelProvider(labelProvider); getViewer().setInput(getViewSite()); getViewer().getTree().addKeyListener(new KeyListener(){ public void keyPressed(KeyEvent e) { if (e.keyCode == SWT.F2 && e.stateMask == 0){ if(rename.isEnabled()){ rename.run(); } } else if (e.keyCode == 'c' && e.stateMask == SWT.MOD1) { copyDescriptionAction.run(); } else if (e.keyCode == SWT.DEL) { deleteAction.run(); } else if (e.keyCode == SWT.INSERT) { createTaskAction.run(); } } public void keyReleased(KeyEvent e) {} }); // HACK to support right click anywhere to select an item getViewer().getTree().addMouseListener(new MouseListener(){ public void mouseDoubleClick(MouseEvent e) {} public void mouseDown(MouseEvent e) { Tree t = getViewer().getTree(); TreeItem item = t.getItem(new Point(e.x, e.y)); if(e.button == 3 && item != null){ getViewer().setSelection(new StructuredSelection(item.getData())); } else if(item == null){ getViewer().setSelection(new StructuredSelection()); } } public void mouseUp(MouseEvent e) {} }); getViewer().addSelectionChangedListener(new ISelectionChangedListener(){ public void selectionChanged(SelectionChangedEvent event) { Object selectedObject = ((IStructuredSelection)getViewer().getSelection()).getFirstElement(); if(selectedObject instanceof ITaskListElement){ updateActionEnablement(rename, (ITaskListElement)selectedObject); } } }); makeActions(); hookContextMenu(); hookOpenAction(); contributeToActionBars(); ToolTipHandler toolTipHandler = new ToolTipHandler(getViewer().getControl().getShell()); toolTipHandler.activateHoverHelp(getViewer().getControl()); initDragAndDrop(parent); expandToActiveTasks(); restoreState(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/d1509cef0732a1841f8062e4058ceb7dced6436a/TaskListView.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
1988,
3367,
12,
9400,
982,
13,
288,
377,
202,
3413,
273,
394,
4008,
329,
2471,
12,
2938,
16,
348,
8588,
18,
21654,
10109,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
1988,
3367,
12,
9400,
982,
13,
288,
377,
202,
3413,
273,
394,
4008,
329,
2471,
12,
2938,
16,
348,
8588,
18,
21654,
10109,
571,
348,
8588,
18,
44,
67,
2312,
14555,
571,
... |
if ( vTaskIDs.size( ) == 0 ) { return null; } | public IWizardContext open( String[] sTasks, String topTaskId, IWizardContext initialContext ) { // Update initial context context = initialContext; // Initialize UI elelents GridLayout glShell = new GridLayout( ); glShell.marginHeight = 0; glShell.marginWidth = 0; glShell.verticalSpacing = 0; display = Display.getDefault( ); if ( PlatformUI.isWorkbenchRunning( ) ) { shell = new Shell( PlatformUI.getWorkbench( ) .getDisplay( ) .getActiveShell( ), SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL ); } else { shell = new Shell( display, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.APPLICATION_MODAL ); } // Set shell properties shell.setLayout( glShell ); shell.setSize( iWizardWidth, iWizardHeight ); shell.setText( wizardTitle ); if ( wizardImage != null ) { shell.setImage( wizardImage ); } shell.addControlListener( this ); // Initialize and layout UI components of the framework tasklist = new TaskList( shell, SWT.NONE, this ); Label lblSeparator = new Label( shell, SWT.SEPARATOR | SWT.HORIZONTAL ); lblSeparator.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); placeComponents( ); lblSeparator = new Label( shell, SWT.SEPARATOR | SWT.HORIZONTAL ); lblSeparator.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); Composite cmpButton = new Composite( shell, SWT.NONE ); { cmpButton.setLayout( new GridLayout( ) ); GridData gd = new GridData( ); gd.horizontalAlignment = SWT.END; cmpButton.setLayoutData( gd ); } buttonpanel = new ButtonPanel( cmpButton, SWT.NONE, this ); // Add tasks String[] allTasks = TasksManager.instance( ) .getTasksForWizard( sWizardID ); // ADD DEFAULT TASKS AS DEFINED BY EXTENSIONS for ( int i = 0; i < allTasks.length; i++ ) { addTask( allTasks[i] ); } // ADD TASKS SPECIFIED DURING INVOCATION if ( sTasks != null && sTasks.length > 0 ) { for ( int i = 0; i < sTasks.length; i++ ) { if ( !vTaskIDs.contains( sTasks[i] ) ) { addTask( sTasks[i] ); } } } // Check task existence if ( vTaskIDs.size( ) == 0 ) { return null; } // Open the specified task if ( topTaskId == null ) { sCurrentActiveTask = vTaskIDs.get( 0 ).toString( ); if ( vTaskIDs.size( ) > 1 ) { buttonpanel.setButtonEnabled( ButtonPanel.NEXT, true ); } } else { assert vTaskIDs.contains( topTaskId ); sCurrentActiveTask = topTaskId; int taskIndex = vTaskIDs.indexOf( topTaskId ); if ( taskIndex > 0 ) { buttonpanel.setButtonEnabled( ButtonPanel.BACK, true ); } if ( taskIndex < vTaskIDs.size( ) - 1 ) { buttonpanel.setButtonEnabled( ButtonPanel.NEXT, true ); } } getCurrentTask( ).setContext( initialContext ); switchTo( sCurrentActiveTask ); shell.setLocation( ( display.getClientArea( ).width / 2 - ( shell.getSize( ).x / 2 ) ), ( display.getClientArea( ).height / 2 ) - ( shell.getSize( ).y / 2 ) ); shell.addDisposeListener( this ); shell.open( ); while ( !shell.isDisposed( ) ) { if ( !display.readAndDispatch( ) ) { display.sleep( ); } } if ( !bWasCancelled ) { return this.context; } return null; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/df749af233ec4b7ab4ff5a2378a06e2616f2033a/WizardBase.java/buggy/core/org.eclipse.birt.core.ui/src/org/eclipse/birt/core/ui/frameworks/taskwizard/WizardBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
27130,
1042,
1696,
12,
514,
8526,
272,
6685,
16,
514,
1760,
30182,
16,
1082,
202,
45,
27130,
1042,
2172,
1042,
262,
202,
95,
202,
202,
759,
2315,
2172,
819,
202,
202,
247... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27130,
1042,
1696,
12,
514,
8526,
272,
6685,
16,
514,
1760,
30182,
16,
1082,
202,
45,
27130,
1042,
2172,
1042,
262,
202,
95,
202,
202,
759,
2315,
2172,
819,
202,
202,
247... | |
GridData gd = new GridData( ); gd.widthHint = 200; cmbTypes.setLayoutData( gd ); cmbTypes.addSelectionListener( this ); | btnTitleVisible.setText( Messages.getString( "ChartSheetImpl.Label.Visible" ) ); btnTitleVisible.setSelection( getChart( ).getTitle( ).isVisible( ) ); btnTitleVisible.addSelectionListener( this ); btnTitleVisible.setSelection( getAxisForProcessing( ).getTitle( ) .isVisible( ) ); | public void createControl( Composite parent ) { cmpContent = new Composite( parent, SWT.NONE ); { GridLayout glContent = new GridLayout( 2, false ); cmpContent.setLayout( glContent ); GridData gd = new GridData( GridData.FILL_BOTH ); cmpContent.setLayoutData( gd ); } Composite cmpBasic = new Composite( cmpContent, SWT.NONE ); { cmpBasic.setLayout( new GridLayout( 3, false ) ); cmpBasic.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); } new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "AxisYSheetImpl.Label.Title" ) ); //$NON-NLS-1$ List keys = null; IUIServiceProvider serviceprovider = getContext( ).getUIServiceProvider( ); if ( serviceprovider != null ) { keys = serviceprovider.getRegisteredKeys( ); } txtTitle = new ExternalizedTextEditorComposite( cmpBasic, SWT.BORDER | SWT.SINGLE, -1, -1, keys, serviceprovider, getAxisForProcessing( ).getTitle( ).getCaption( ).getValue( ) ); { GridData gd = new GridData( ); gd.widthHint = 250; gd.horizontalSpan = 2; txtTitle.setLayoutData( gd ); txtTitle.addListener( this ); } Label lblType = new Label( cmpBasic, SWT.NONE ); lblType.setText( Messages.getString( "OrthogonalAxisDataSheetImpl.Lbl.Type" ) ); //$NON-NLS-1$ cmbTypes = new Combo( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY ); { GridData gd = new GridData( ); gd.widthHint = 200; cmbTypes.setLayoutData( gd ); cmbTypes.addSelectionListener( this ); } btnFormatSpecifier = new Button( cmpBasic, SWT.PUSH ); { GridData gdBTNFormatSpecifier = new GridData( ); gdBTNFormatSpecifier.widthHint = 20; gdBTNFormatSpecifier.horizontalIndent = -3; btnFormatSpecifier.setLayoutData( gdBTNFormatSpecifier ); btnFormatSpecifier.setImage( UIHelper.getImage( "icons/obj16/formatbuilder.gif" ) ); //$NON-NLS-1$ btnFormatSpecifier.setToolTipText( Messages.getString( "Shared.Tooltip.FormatSpecifier" ) ); //$NON-NLS-1$ btnFormatSpecifier.addSelectionListener( this ); btnFormatSpecifier.getImage( ) .setBackground( btnFormatSpecifier.getBackground( ) ); } // Origin is not supported in 3D if ( getChart( ).getDimension( ).getValue( ) != ChartDimension.THREE_DIMENSIONAL ) { Label lblOrigin = new Label( cmpBasic, SWT.NONE ); lblOrigin.setText( Messages.getString( "OrthogonalAxisDataSheetImpl.Lbl.Origin" ) ); //$NON-NLS-1$ cmbOrigin = new Combo( cmpBasic, SWT.DROP_DOWN | SWT.READ_ONLY ); { GridData gd = new GridData( ); gd.widthHint = 200; gd.horizontalSpan = 2; cmbOrigin.setLayoutData( gd ); cmbOrigin.addSelectionListener( this ); } boolean bValueOrigin = false; if ( getAxisForProcessing( ).getOrigin( ) != null ) { if ( getAxisForProcessing( ).getOrigin( ) .getType( ) .equals( IntersectionType.VALUE_LITERAL ) ) { bValueOrigin = true; } } lblValue = new Label( cmpBasic, SWT.NONE ); { lblValue.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.Value" ) ); //$NON-NLS-1$ lblValue.setEnabled( bValueOrigin ); } txtValue = new TextEditorComposite( cmpBasic, SWT.BORDER | SWT.SINGLE ); { GridData gd = new GridData( ); gd.widthHint = 225; gd.horizontalSpan = 2; txtValue.setLayoutData( gd ); txtValue.addListener( this ); txtValue.setEnabled( bValueOrigin ); } } new Label( cmpBasic, SWT.NONE ).setText( Messages.getString( "AxisYSheetImpl.Label.Labels" ) ); //$NON-NLS-1$ btnVisible = new Button( cmpBasic, SWT.CHECK ); { btnVisible.setText( Messages.getString( "AxisYSheetImpl.Label.Visible" ) ); //$NON-NLS-1$ GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 2; btnVisible.setLayoutData( gd ); btnVisible.addSelectionListener( this ); btnVisible.setSelection( getAxisForProcessing( ).getLabel( ) .isVisible( ) ); } createButtonGroup( cmpContent ); populateLists( ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/a8cbb3bd39fd0de535656d42c24e44059a9ca11b/AbstractAxisSubtask.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/axis/AbstractAxisSubtask.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
14728,
982,
262,
202,
95,
202,
202,
9625,
1350,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
6313,
3744,
5118,
1350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
14728,
982,
262,
202,
95,
202,
202,
9625,
1350,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
95,
1082,
202,
6313,
3744,
5118,
1350,
... |
udpService.send(pr,toQuery.getAddress(),toQuery.getPort()); | try { udpService.send(pr,toQuery.getAddress(), toQuery.getPort()); } catch(IOException ioe) { ErrorService.error(ioe, "ip/port: " + toQuery.getAddress() + ":" + toQuery.getPort()); } | private void queryLoop() { UDPService udpService = UDPService.instance(); while (_shouldRun) { try { waitForQueries(); GUESSEndpoint toQuery = getUnicastHost(); // no query key to use in my query! if (!_queryKeys.containsKey(toQuery)) { // send a QueryKey Request PingRequest pr = new PingRequest(); udpService.send(pr,toQuery.getAddress(),toQuery.getPort()); if(RECORD_STATS) SentMessageStatHandler.UDP_PING_REQUESTS.addMessage(pr); // DO NOT RE-ADD ENDPOINT - we'll do that if we get a // QueryKey Reply!! continue; // try another up above.... } QueryKey queryKey = ((QueryKeyBundle) _queryKeys.get(toQuery))._queryKey; purgeGuidsInternal(); // in case any were added while asleep boolean currentHostUsed = false; synchronized (_queries) { Iterator iter = _queries.values().iterator(); while (iter.hasNext()) { QueryBundle currQB = (QueryBundle)iter.next(); if ((currQB._numResults > QueryBundle.MAX_RESULTS) || (currQB._hostsQueried.size() > QueryBundle.MAX_QUERIES) ) // query is now stale.... _qGuidsToRemove.add(new GUID(currQB._qr.getGUID())); else if (currQB._hostsQueried.contains(toQuery)) ; // don't send another.... else { InetAddress ip = toQuery.getAddress(); QueryRequest qrToSend = QueryRequest.createQueryKeyQuery(currQB._qr, queryKey); udpService.send(qrToSend, ip, toQuery.getPort()); currentHostUsed = true; if(RECORD_STATS) SentMessageStatHandler.UDP_QUERY_REQUESTS. addMessage(qrToSend); currQB._hostsQueried.add(toQuery); } } } // add the current host back to the list if it was not used for // any query if(!currentHostUsed) { addUnicastEndpoint(toQuery); } // purge stale queries, hold lock so you don't miss any... synchronized (_qGuidsToRemove) { purgeGuidsInternal(); _qGuidsToRemove.clear(); } Thread.sleep(ITERATION_TIME); } catch (InterruptedException ignored) {} } } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/81de2144e372569eb7b3cc1e42071aaf5f04a23d/QueryUnicaster.java/clean/components/gnutella-core/src/main/java/com/limegroup/gnutella/QueryUnicaster.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
843,
6452,
1435,
288,
3639,
16230,
1179,
16673,
1179,
273,
16230,
1179,
18,
1336,
5621,
3639,
1323,
261,
67,
13139,
1997,
13,
288,
5411,
775,
288,
7734,
10712,
9592,
5621,
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,
3238,
918,
843,
6452,
1435,
288,
3639,
16230,
1179,
16673,
1179,
273,
16230,
1179,
18,
1336,
5621,
3639,
1323,
261,
67,
13139,
1997,
13,
288,
5411,
775,
288,
7734,
10712,
9592,
5621,
7734,
... |
output.setEntries( store.getAllEntries(false) ); | output.setEntries( store.getEntries(false) ); | public void execute(Map arguments, Registry registry, Output output) throws Exception { EntryStore store = (EntryStore) registry.getPlugin("store"); output.setEntries( store.getAllEntries(false) ); } | 13116 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13116/f990026a37a43a99615d3425761f66b16aa52cd9/ListAllCommand.java/buggy/trunk/src/org/roosster/commands/ListAllCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
863,
1775,
16,
5438,
4023,
16,
3633,
876,
13,
1171,
1216,
1185,
565,
288,
3639,
3841,
2257,
1707,
273,
261,
1622,
2257,
13,
4023,
18,
588,
3773,
2932,
2233,
8863,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
863,
1775,
16,
5438,
4023,
16,
3633,
876,
13,
1171,
1216,
1185,
565,
288,
3639,
3841,
2257,
1707,
273,
261,
1622,
2257,
13,
4023,
18,
588,
3773,
2932,
2233,
8863,
3... |
public void curve(float x1, float y1, | public void curve(float x1, float y1, | public void curve(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) { beginShape(LINE_STRIP); //curveVertex(x1, y1); curveVertex(x1, y1); curveVertex(x2, y2); curveVertex(x3, y3); curveVertex(x4, y4); //curveVertex(x4, y4); endShape(); } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/d877999f6e97d3c619ae60b800d586ac00acf618/PGraphics.java/clean/core/PGraphics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8882,
12,
5659,
619,
21,
16,
1431,
677,
21,
16,
5397,
1431,
619,
22,
16,
1431,
677,
22,
16,
10792,
1431,
619,
23,
16,
1431,
677,
23,
16,
10792,
1431,
619,
24,
16,
1431,
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,
282,
1071,
918,
8882,
12,
5659,
619,
21,
16,
1431,
677,
21,
16,
5397,
1431,
619,
22,
16,
1431,
677,
22,
16,
10792,
1431,
619,
23,
16,
1431,
677,
23,
16,
10792,
1431,
619,
24,
16,
1431,
6... |
return getProduct().startsWith("Informix"); } | return getProduct().startsWith("Informix"); } | public boolean isInformix() { return getProduct().startsWith("Informix"); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/SqlQuery.java/buggy/src/main/mondrian/rolap/sql/SqlQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
8048,
687,
697,
1435,
288,
202,
202,
2463,
15880,
7675,
17514,
1190,
2932,
25541,
697,
8863,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
8048,
687,
697,
1435,
288,
202,
202,
2463,
15880,
7675,
17514,
1190,
2932,
25541,
697,
8863,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (syncChildren() == false ) { | if (syncChildren()) { | private void writeObject(ObjectOutputStream out) throws IOException { // synchronize chilren if (syncChildren() == false ) { synchronizeChildren(); } // write object out.defaultWriteObject(); } // writeObject(ObjectOutputStream) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/6f1fe44987d563d73d6d6ea1aab56d75554d7e96/ChildAndParentNode.java/clean/src/org/apache/xerces/dom/ChildAndParentNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
16306,
12,
921,
4632,
596,
13,
1216,
1860,
288,
3639,
368,
16978,
462,
330,
1187,
3639,
309,
261,
8389,
4212,
10756,
288,
5411,
16978,
4212,
5621,
3639,
289,
3639,
368,
1045,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
16306,
12,
921,
4632,
596,
13,
1216,
1860,
288,
3639,
368,
16978,
462,
330,
1187,
3639,
309,
261,
8389,
4212,
10756,
288,
5411,
16978,
4212,
5621,
3639,
289,
3639,
368,
1045,
7... |
addPage(1, myEntityEditor, getEditorInput()); setPageText(1, Messages.getString("EOModelEditor.noEntitySelected")); | addPage(EOModelEditor.EOENTITY_PAGE, myEntityEditor, getEditorInput()); setPageText(EOModelEditor.EOENTITY_PAGE, Messages.getString("EOModelEditor.noEntitySelected")); | protected void createPages() { try { myEntitiesTableEditor = new EOEntitiesTableEditor(); addPage(0, myEntitiesTableEditor, getEditorInput()); setPageText(0, Messages.getString("EOModelEditor.entitiesTab")); //$NON-NLS-1$ myEntityEditor = new EOEntityEditor(); addPage(1, myEntityEditor, getEditorInput()); setPageText(1, Messages.getString("EOModelEditor.noEntitySelected")); //$NON-NLS-1$ EOModelSelectionChangedListener modelSelectionChangedListener = new EOModelSelectionChangedListener(); myEntitiesTableEditor.addSelectionChangedListener(modelSelectionChangedListener); myEntitiesTableEditor.setModel(myModel); EOEntitySelectionChangedListener entitySelectionChangedListener = new EOEntitySelectionChangedListener(); myEntityEditor.addSelectionChangedListener(entitySelectionChangedListener); if (myOpeningEntity != null) { setSelectedEntity(myOpeningEntity); setActivePage(1); } } catch (PartInitException e) { ErrorDialog.openError(getSite().getShell(), "Error creating editor.", null, e.getStatus()); } } | 50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/d928b49aa0253c6ecb4869ae5c835c8362ad2cc8/EOModelEditor.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/editors/EOModelEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
752,
5716,
1435,
288,
565,
775,
288,
1377,
3399,
8108,
1388,
6946,
273,
394,
512,
51,
8108,
1388,
6946,
5621,
1377,
527,
1964,
12,
20,
16,
3399,
8108,
1388,
6946,
16,
336,
69... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
5716,
1435,
288,
565,
775,
288,
1377,
3399,
8108,
1388,
6946,
273,
394,
512,
51,
8108,
1388,
6946,
5621,
1377,
527,
1964,
12,
20,
16,
3399,
8108,
1388,
6946,
16,
336,
69... |
return defaultValue; | return null; | public static Integer getInteger(String string, Integer defaultValue) { if (string == null || string.length() == 0) return defaultValue; String prop = System.getProperty(string); if (prop == null) return defaultValue; try { return decode(prop); } catch (NumberFormatException ex) { return defaultValue; } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/05d418921ff60e1f4923fdfa958156a76ce9c068/Integer.java/buggy/modules/luni/src/main/java/java/lang/Integer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
2144,
19921,
12,
780,
533,
16,
2144,
4593,
13,
288,
202,
202,
430,
261,
1080,
422,
446,
747,
533,
18,
2469,
1435,
422,
374,
13,
1082,
202,
2463,
4593,
31,
202,
202,
780... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2144,
19921,
12,
780,
533,
16,
2144,
4593,
13,
288,
202,
202,
430,
261,
1080,
422,
446,
747,
533,
18,
2469,
1435,
422,
374,
13,
1082,
202,
2463,
4593,
31,
202,
202,
780... |
public void add(BooleanClause clause) { if (clauses.size() >= maxClauseCount) throw new TooManyClauses(); clauses.addElement(clause); | public void add(Query query, boolean required, boolean prohibited) { add(new BooleanClause(query, required, prohibited)); | public void add(BooleanClause clause) { if (clauses.size() >= maxClauseCount) throw new TooManyClauses(); clauses.addElement(clause); } | 50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/217ac20c305d19a03ae239583b288daa7b369b29/BooleanQuery.java/buggy/src/java/org/apache/lucene/search/BooleanQuery.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
12,
5507,
7044,
6591,
13,
288,
565,
309,
261,
830,
9608,
18,
1467,
1435,
1545,
943,
7044,
1380,
13,
1377,
604,
394,
15869,
5594,
22434,
5621,
565,
14093,
18,
1289,
1046,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
12,
5507,
7044,
6591,
13,
288,
565,
309,
261,
830,
9608,
18,
1467,
1435,
1545,
943,
7044,
1380,
13,
1377,
604,
394,
15869,
5594,
22434,
5621,
565,
14093,
18,
1289,
1046,
... |
public boolean eIsSet( EStructuralFeature eFeature ) | public boolean eIsSet( int featureID ) | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case DataPackage.SERIES_GROUPING__ENABLED : return isSetEnabled( ); case DataPackage.SERIES_GROUPING__GROUPING_UNIT : return isSetGroupingUnit( ); case DataPackage.SERIES_GROUPING__GROUPING_ORIGIN : return groupingOrigin != null; case DataPackage.SERIES_GROUPING__GROUPING_INTERVAL : return isSetGroupingInterval( ); case DataPackage.SERIES_GROUPING__GROUP_TYPE : return isSetGroupType( ); case DataPackage.SERIES_GROUPING__AGGREGATE_EXPRESSION : return AGGREGATE_EXPRESSION_EDEFAULT == null ? aggregateExpression != null : !AGGREGATE_EXPRESSION_EDEFAULT.equals( aggregateExpression ); } return eDynamicIsSet( eFeature ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/SeriesGroupingImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/SeriesGroupingImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1910,
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,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1910,
22... |
private CurrentJvmHandler(){ } | private CurrentJvmHandler() { } | private CurrentJvmHandler(){ } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/c171c3550f70b496c1228bbed45f5f8feea45a9c/DeploymentHandler.java/buggy/src/org/objectweb/proactive/core/descriptor/xml/DeploymentHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
6562,
6071,
1503,
1435,
95,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1152,
6562,
6071,
1503,
1435,
95,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
String sortKey = (String)valueForBinding("sortKey"); if(sortKey != null) { _sections = (NSMutableArray)_sections.valueForKeyPath(sortKey); } | } String sortKey = (String)valueForBinding("sortKey"); if(sortKey != null) { _sections = (NSMutableArray)_sections.valueForKeyPath(sortKey); | public NSArray sections() { if (_sections==null) { _sections= new NSMutableArray(); NSArray list=(NSArray)valueForBinding("list"); if (list!=null) { for (Enumeration e=list.objectEnumerator(); e.hasMoreElements();) { Object item=e.nextElement(); if(log.isDebugEnabled()) log.debug("item = "+item); setValueForBinding(item,"item"); // Sections have to be copiable objects -- no EOs!! Object section=valueForBinding("sectionForItem"); if(log.isDebugEnabled()) log.debug("section = "+section); if (section==null) section=NULL; Object sectionKey=copiableKeyForSection(section); if(log.isDebugEnabled()) log.debug("copiableKeyForSection = "+sectionKey); NSMutableArray itemsForSection=null; if (_sections.containsObject(section)) itemsForSection=(NSMutableArray)_itemsPerSection.objectForKey(sectionKey); else { _sections.addObject(section); itemsForSection=new NSMutableArray(); _itemsPerSection.setObjectForKey(itemsForSection,sectionKey); } itemsForSection.addObject(item); } String sortKey = (String)valueForBinding("sortKey"); //the key act on the array, so it must be in the form "@sortAsc.someKey" if(sortKey != null) { _sections = (NSMutableArray)_sections.valueForKeyPath(sortKey); } } } return _sections; } | 46145 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46145/e489aa1db4e87de7bb1dac65a3fc669e5dd6716e/ERXGroupingRepetition.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXGroupingRepetition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11472,
1076,
7178,
1435,
288,
3639,
309,
261,
67,
11657,
631,
2011,
13,
288,
5411,
389,
11657,
33,
394,
423,
7303,
3050,
1076,
5621,
5411,
11472,
1076,
666,
28657,
3156,
1076,
13,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11472,
1076,
7178,
1435,
288,
3639,
309,
261,
67,
11657,
631,
2011,
13,
288,
5411,
389,
11657,
33,
394,
423,
7303,
3050,
1076,
5621,
5411,
11472,
1076,
666,
28657,
3156,
1076,
13,
1... |
DataSessionContext context = new DataSessionContext( DataSessionContext.MODE_DIRECT_PRESENTATION, dataSet.getModuleHandle( ), null ); | DataSessionContext context = new DataSessionContext( DataSessionContext.MODE_DIRECT_PRESENTATION, dataSet .getModuleHandle( ), null ); | public void clearCache( DataSetHandle dataSet ) throws BirtException { DataSessionContext context = new DataSessionContext( DataSessionContext.MODE_DIRECT_PRESENTATION, dataSet.getModuleHandle( ), null ); DataRequestSession requestSession = DataRequestSession.newSession( context ); IModelAdapter modelAdaptor = requestSession.getModelAdaptor( ); DataSourceHandle dataSource = dataSet.getDataSource( ); IBaseDataSourceDesign sourceDesign = modelAdaptor.adaptDataSource( dataSource ); IBaseDataSetDesign dataSetDesign = modelAdaptor.adaptDataSet( dataSet ); requestSession.clearCache( sourceDesign, dataSetDesign ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4ea91dbf969b6a2c94d239aeb7a50028eecd14bb/ReportEngineService.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/ReportEngineService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19346,
12,
14065,
3259,
14837,
262,
1216,
605,
2714,
503,
202,
95,
202,
202,
751,
2157,
1042,
819,
273,
394,
1910,
2157,
1042,
12,
1910,
2157,
1042,
18,
7038,
67,
17541,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19346,
12,
14065,
3259,
14837,
262,
1216,
605,
2714,
503,
202,
95,
202,
202,
751,
2157,
1042,
819,
273,
394,
1910,
2157,
1042,
12,
1910,
2157,
1042,
18,
7038,
67,
17541,
... |
public XPathContext(Object owner) | public XPathContext() | public XPathContext(Object owner) { m_owner = owner; try { m_ownerGetErrorListener = m_owner.getClass().getMethod("getErrorListener", new Class[] {}); } catch (NoSuchMethodException nsme) {} m_prefixResolvers[m_prefixResolversTop++] = null; m_currentNodes[m_currentNodesFirstFree++] = DTM.NULL; m_currentNodes[m_currentExpressionNodesFirstFree++] = DTM.NULL; m_saxLocations[m_saxLocationsTop++] = null; } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/4b68e624cd64a4991ef368332aab9c90b97bb508/XPathContext.java/buggy/src/org/apache/xpath/XPathContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10172,
1042,
1435,
225,
288,
565,
312,
67,
8443,
273,
3410,
31,
565,
775,
288,
1377,
312,
67,
8443,
967,
668,
2223,
273,
312,
67,
8443,
18,
588,
797,
7675,
588,
1305,
2932,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
10172,
1042,
1435,
225,
288,
565,
312,
67,
8443,
273,
3410,
31,
565,
775,
288,
1377,
312,
67,
8443,
967,
668,
2223,
273,
312,
67,
8443,
18,
588,
797,
7675,
588,
1305,
2932,
588,
... |
myExpectation.setExpected(100.0); | myExpectation.setExpected(100.0); | public void testDoubleFail() { myExpectation.setExpected(100.0); boolean testPasses = false; try { myExpectation.setActual(150.0); } catch (AssertionFailedError ex) { testPasses = true; } assertTrue("Should fail fast on double", testPasses); } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/ExpectationValueTest.java/buggy/jmock/core/src/test/jmock/expectation/ExpectationValueTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
5265,
3754,
1435,
288,
202,
202,
4811,
11988,
367,
18,
542,
6861,
12,
6625,
18,
20,
1769,
202,
202,
6494,
1842,
6433,
281,
273,
629,
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,
225,
202,
482,
918,
1842,
5265,
3754,
1435,
288,
202,
202,
4811,
11988,
367,
18,
542,
6861,
12,
6625,
18,
20,
1769,
202,
202,
6494,
1842,
6433,
281,
273,
629,
31,
202,
202,
698,
288,
1082,
... |
tuple[9] = "10".getBytes(); | tuple[9] = "10".getBytes(); } | public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, 32); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/numeric.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8); tuple[8] = Integer.toString((attypmod - VARHDRSZ) & 0xffff).getBytes(); } else tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/521017c5d090f18278b0fa9e8b949f7e57e6e050/DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
... |
public void outAValueValOrSid(AValueValOrSid node) { //currEntryInfo.append(node.getStringLiteral().getText().replaceAll("\\s+", " ")); String fieldValue = node.getStringLiteral().getText().replaceAll("\\s+", " "); String[] fieldValues = new String[0]; currEntryInfo.append(fieldValue); // TODO testing new nodes if ("author".equals(currField) || "editor".equals(currField)) { currEntry.author = fieldValue; } else if ("journal".equals(currField)) { currEntry.journal = fieldValue; } else if ("year".equals(currField)) { currEntry.year = fieldValue; } // add the entry to the index// BibStringTriMap<ReferenceEntry> index = sortIndex.get(currField);// if (index != null) {// if (currField.equals("author") || currField.equals("editor")) {// fieldValues = fieldValue.split(" and ");// } else {// fieldValues = new String[1];// fieldValues[0] = fieldValue;// }// for (String fV : fieldValues) {// fV = fV.trim();// try {// index.put(fV, currEntry);// } catch (NonUniqueException e) {// warnings.add(new ParseErrorMessage(currEntry.startLine,// node.getStringLiteral().getPos(),0,// "BibTex field " + currField + " with value " + fV + " is not unique",// IMarker.SEVERITY_WARNING));// } // }// } // Test for empty fields if (fieldValue.equalsIgnoreCase("")) { warnings.add(new ParseErrorMessage(node.getStringLiteral().getLine(), node.getStringLiteral().getPos(),0, currField + " is empty in " + currEntry.key, IMarker.SEVERITY_WARNING)); } } | 9028 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9028/9ba080b0c901d335db2cb543a5bc7d76ff474439/EntryRetriever.java/buggy/source/net/sourceforge/texlipse/bibparser/EntryRetriever.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
596,
37,
620,
3053,
1162,
11067,
12,
37,
620,
3053,
1162,
11067,
756,
13,
288,
3639,
368,
17016,
1622,
966,
18,
6923,
12,
2159,
18,
588,
28565,
7675,
588,
1528,
7675,
2079,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
596,
37,
620,
3053,
1162,
11067,
12,
37,
620,
3053,
1162,
11067,
756,
13,
288,
3639,
368,
17016,
1622,
966,
18,
6923,
12,
2159,
18,
588,
28565,
7675,
588,
1528,
7675,
2079,
1... | ||
push(this.name); | push(generatedClassName); | private void generateMain(Context cx) { startNewMethod("main", "([Ljava/lang/String;)V", 1, true, true); push(this.name); // load the name of this class classFile.add(ByteCode.INVOKESTATIC, "java/lang/Class", "forName", "(Ljava/lang/String;)", "Ljava/lang/Class;"); addByteCode(ByteCode.ALOAD_0); // load 'args' addScriptRuntimeInvoke("main", "(Ljava/lang/Class;[Ljava/lang/String;)", "V"); addByteCode(ByteCode.RETURN); finishMethod(cx, null); } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/9d6bb8957ead2c95a3562b84a47b63afc8cfc761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
6376,
12,
1042,
9494,
13,
288,
3639,
787,
1908,
1305,
2932,
5254,
3113,
315,
3816,
21159,
19,
4936,
19,
780,
30943,
58,
3113,
404,
16,
638,
16,
638,
1769,
3639,
1817,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
6376,
12,
1042,
9494,
13,
288,
3639,
787,
1908,
1305,
2932,
5254,
3113,
315,
3816,
21159,
19,
4936,
19,
780,
30943,
58,
3113,
404,
16,
638,
16,
638,
1769,
3639,
1817,
1... |
emitBLRL (); | emitBCTRL (); | void emitCall (int spSaveAreaOffset) { emitST(SP, spSaveAreaOffset, FP); // save SP emitBLRL (); emitL (SP, spSaveAreaOffset, FP); // restore SP } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/1ddb8201a1da4799eb25b7fdece3519b94cf9112/VM_Assembler.java/buggy/rvm/src/vm/arch/powerPC/compilers/baseline/VM_Assembler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3626,
1477,
261,
474,
1694,
4755,
5484,
2335,
13,
288,
565,
3626,
882,
12,
3118,
16,
1694,
4755,
5484,
2335,
16,
28740,
1769,
368,
1923,
11405,
565,
3626,
38,
23876,
48,
225,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
918,
3626,
1477,
261,
474,
1694,
4755,
5484,
2335,
13,
288,
565,
3626,
882,
12,
3118,
16,
1694,
4755,
5484,
2335,
16,
28740,
1769,
368,
1923,
11405,
565,
3626,
38,
23876,
48,
225,
261,
... |
Class.forName("javax.servlet.jsp.tagext.IterationTag"); | Class.forName("javax.servlet.jsp.tagext.IterationTag"); | public PropertyDescriptor[] getPropertyDescriptors() { List proplist = new ArrayList(); try { proplist.add(new PropertyDescriptor("cellpadding", TableTag.class, null, "setCellpadding")); proplist.add(new PropertyDescriptor("cellspacing", TableTag.class, null, "setCellspacing")); proplist.add(new PropertyDescriptor("class", TableTag.class, null, "setClass")); proplist.add(new PropertyDescriptor("decorator", TableTag.class, null, "setDecorator")); proplist.add(new PropertyDescriptor("defaultorder", TableTag.class, null, "setDefaultorder")); proplist.add(new PropertyDescriptor("defaultsort", TableTag.class, null, "setDefaultsort")); proplist.add(new PropertyDescriptor("export", TableTag.class, null, "setExport")); proplist.add(new PropertyDescriptor("frame", TableTag.class, null, "setFrame")); proplist.add(new PropertyDescriptor("length", TableTag.class, null, "setLength")); proplist.add(new PropertyDescriptor("offset", TableTag.class, null, "setOffset")); proplist.add(new PropertyDescriptor("pagesize", TableTag.class, null, "setPagesize")); proplist.add(new PropertyDescriptor("requestURI", TableTag.class, null, "setRequestURI")); proplist.add(new PropertyDescriptor("rules", TableTag.class, null, "setRules")); proplist.add(new PropertyDescriptor("sort", TableTag.class, null, "setSort")); proplist.add(new PropertyDescriptor("style", TableTag.class, null, "setStyle")); proplist.add(new PropertyDescriptor("summary", TableTag.class, null, "setSummary")); // can't be evaluated proplist.add(new PropertyDescriptor("id", TableTag.class, null, "setId")); // deprecated attributes proplist.add(new PropertyDescriptor("list", TableTag.class, null, "setList")); proplist.add(new PropertyDescriptor("property", TableTag.class, null, "setProperty")); proplist.add(new PropertyDescriptor("scope", TableTag.class, null, "setScope")); proplist.add(new PropertyDescriptor("width", TableTag.class, null, "setWidth")); proplist.add(new PropertyDescriptor("styleClass", TableTag.class, null, "setClass")); proplist.add(new PropertyDescriptor("border", TableTag.class, null, "setBorder")); proplist.add(new PropertyDescriptor("align", TableTag.class, null, "setAlign")); proplist.add(new PropertyDescriptor("background", TableTag.class, null, "setBackground")); proplist.add(new PropertyDescriptor("bgcolor", TableTag.class, null, "setBgcolor")); proplist.add(new PropertyDescriptor("height", TableTag.class, null, "setHeight")); proplist.add(new PropertyDescriptor("hspace", TableTag.class, null, "setHspace")); proplist.add(new PropertyDescriptor("vspace", TableTag.class, null, "setVspace")); try { Class.forName("javax.servlet.jsp.tagext.IterationTag"); // jsp >= 1.2 proplist.add(new PropertyDescriptor("name", TableTag.class, null, "setName")); } catch (Throwable e) { // jsp 1.1, can't use a setter with an Object parameter proplist.add(new PropertyDescriptor("name", TableTag.class, null, "setNameString")); } } catch (IntrospectionException ex) { // ignore, this should never happen } PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()]; return ((PropertyDescriptor[]) proplist.toArray(result)); } | 7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/101977ad06aad488b3652f70bcee7359487e87db/TableTagBeanInfo.java/buggy/displaytag/src/main/java/org/displaytag/tags/TableTagBeanInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
987,
450,
17842,
273,
394,
2407,
5621,
3639,
775,
3639,
288,
5411,
450,
17842,
18,
1289,
12,
2704,
26761,
2932,
3855,
9598,
3113,
3555,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
987,
450,
17842,
273,
394,
2407,
5621,
3639,
775,
3639,
288,
5411,
450,
17842,
18,
1289,
12,
2704,
26761,
2932,
3855,
9598,
3113,
3555,... |
if (m_isCompacted_ || !UCharacter.isLegal(ch)) { | if (m_isCompacted_ || ch > UCharacter.MAX_VALUE || ch < UCharacter.MIN_VALUE) { | public boolean isInZeroBlock(int ch) { // valid, uncompacted trie and valid c? if (m_isCompacted_ || !UCharacter.isLegal(ch)) { return true; } return m_index_[ch >> SHIFT_] == 0; } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/43e19956a5701929d149e369b89373b7ebc8c7b6/TrieBuilder.java/buggy/icu4j/src/com/ibm/icu/impl/TrieBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
8048,
7170,
1768,
12,
474,
462,
13,
377,
288,
3639,
368,
923,
16,
12704,
84,
25487,
19080,
471,
923,
276,
35,
3639,
309,
261,
81,
67,
291,
16863,
329,
67,
747,
462,
405,
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,
1071,
1250,
8048,
7170,
1768,
12,
474,
462,
13,
377,
288,
3639,
368,
923,
16,
12704,
84,
25487,
19080,
471,
923,
276,
35,
3639,
309,
261,
81,
67,
291,
16863,
329,
67,
747,
462,
405,
5... |
if ((active1 & 0x100000000L) != 0L) return jjStopAtPos(1, 96); | if ((active1 & 0x80000000L) != 0L) return jjStopAtPos(1, 95); | private final int jjMoveStringLiteralDfa1_0(long active0, long active1){ try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(0, active0, active1); return 1; } switch(curChar) { case 38: if ((active1 & 0x100000000L) != 0L) return jjStopAtPos(1, 96); break; case 42: if ((active0 & 0x100L) != 0L) return jjStartNfaWithStates_0(1, 8, 54); break; case 43: if ((active1 & 0x200000000L) != 0L) return jjStopAtPos(1, 97); break; case 45: if ((active1 & 0x400000000L) != 0L) return jjStopAtPos(1, 98); break; case 60: if ((active1 & 0x80000000000L) != 0L) { jjmatchedKind = 107; jjmatchedPos = 1; } return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x40000000000000L); case 61: if ((active1 & 0x8000000L) != 0L) return jjStopAtPos(1, 91); else if ((active1 & 0x10000000L) != 0L) return jjStopAtPos(1, 92); else if ((active1 & 0x20000000L) != 0L) return jjStopAtPos(1, 93); else if ((active1 & 0x40000000L) != 0L) return jjStopAtPos(1, 94); else if ((active1 & 0x400000000000L) != 0L) return jjStopAtPos(1, 110); else if ((active1 & 0x800000000000L) != 0L) return jjStopAtPos(1, 111); else if ((active1 & 0x1000000000000L) != 0L) return jjStopAtPos(1, 112); else if ((active1 & 0x2000000000000L) != 0L) return jjStopAtPos(1, 113); else if ((active1 & 0x4000000000000L) != 0L) return jjStopAtPos(1, 114); else if ((active1 & 0x8000000000000L) != 0L) return jjStopAtPos(1, 115); else if ((active1 & 0x10000000000000L) != 0L) return jjStopAtPos(1, 116); else if ((active1 & 0x20000000000000L) != 0L) return jjStopAtPos(1, 117); break; case 62: if ((active1 & 0x100000000000L) != 0L) { jjmatchedKind = 108; jjmatchedPos = 1; } return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x180200000000000L); case 91: return jjMoveStringLiteralDfa2_0(active0, 0L, active1, 0x400000000000000L); case 97: return jjMoveStringLiteralDfa2_0(active0, 0x90008030000L, active1, 0L); case 98: return jjMoveStringLiteralDfa2_0(active0, 0x1000L, active1, 0L); case 101: return jjMoveStringLiteralDfa2_0(active0, 0x820000400000L, active1, 0L); case 102: if ((active0 & 0x200000000L) != 0L) return jjStartNfaWithStates_0(1, 33, 28); break; case 104: return jjMoveStringLiteralDfa2_0(active0, 0x20e1000000040000L, active1, 0L); case 105: return jjMoveStringLiteralDfa2_0(active0, 0x30000000L, active1, 0L); case 108: return jjMoveStringLiteralDfa2_0(active0, 0x42080000L, active1, 0L); case 109: return jjMoveStringLiteralDfa2_0(active0, 0xc00000000L, active1, 0L); case 110: return jjMoveStringLiteralDfa2_0(active0, 0x7000000000L, active1, 0L); case 111: if ((active0 & 0x800000L) != 0L) { jjmatchedKind = 23; jjmatchedPos = 1; } return jjMoveStringLiteralDfa2_0(active0, 0x1800008181302000L, active1, 0L); case 114: return jjMoveStringLiteralDfa2_0(active0, 0x700300000004000L, active1, 0L); case 115: return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000000L, active1, 0L); case 116: return jjMoveStringLiteralDfa2_0(active0, 0x4002000000000000L, active1, 0L); case 117: return jjMoveStringLiteralDfa2_0(active0, 0x4440000000000L, active1, 0L); case 119: return jjMoveStringLiteralDfa2_0(active0, 0x8000000000000L, active1, 0L); case 120: return jjMoveStringLiteralDfa2_0(active0, 0x4000000L, active1, 0L); case 121: return jjMoveStringLiteralDfa2_0(active0, 0x10000000008000L, active1, 0L); case 124: if ((active1 & 0x80000000L) != 0L) return jjStopAtPos(1, 95); break; default : break; } return jjStartNfa_0(0, active0, active1);} | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParserTokenManager.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
5748,
2695,
20,
16,
1525,
2695,
21,
15329,
282,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
21,
67,
20,
12,
5748,
2695,
20,
16,
1525,
2695,
21,
15329,
282,
775,
288,
662,
2156,
273,
810,
67,
3256,
18,
896,
2156,
5621,
289,
282,
1044,
1... |
RubyArray args = (RubyArray)runtime.getGlobalVariables().get("$*"); | RubyArray args = (RubyArray)getRuntime().getGlobalVariables().get("$*"); | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVariables().get("$*"); if (args.getLength() == 0) { if (currentFile == null) { currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); ((RubyString) runtime.getGlobalVariables().get("$FILENAME")).setValue("-"); currentLineNumber = 0; return true; } return false; } String filename = ((RubyString) args.shift()).getValue(); ((RubyString) runtime.getGlobalVariables().get("$FILENAME")).setValue(filename); if (filename.equals("-")) { currentFile = (RubyIO) runtime.getGlobalVariables().get("$stdin"); } else { currentFile = new RubyFile(runtime, filename); } return true; } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
588,
5576,
7675,
588,
5160,
6158,
7675,
588,
2932,
8,
7388,
1769,
3639,
309,
261,
1968,
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,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
588,
5576,
7675,
588,
5160,
6158,
7675,
588,
2932,
8,
7388,
1769,
3639,
309,
261,
1968,
18,
... |
if(!memberName.equals(member.getShortName())) { | if (!memberName.equals(member.getShortName())) { index++; while(index < members.size()) { member = members.get(index); if (memberName.equals(member.getShortName())) { throw new IndexAdjustmentException(index); } else { index++; } } | private Member getMember(String memberType, int index, List<Member> members, String memberName, SourcePosition position) { Member member = null; try { member = members.get(index); if(!memberName.equals(member.getShortName())) { throw new Exception(); } } catch (Exception e) { String message = "parser can't find " + memberType + " " + memberName; for (RubyParser.WarningListener listener : problemListeners) { listener.error(position, message); } throw new SyntaxException(position, message); } return member; } | 13291 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13291/615094576784f8eacf0891411a5b25d98778892b/RubyNodeVisitor.java/buggy/src/org/jedit/ruby/parser/RubyNodeVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
8596,
18925,
12,
780,
3140,
559,
16,
509,
770,
16,
987,
32,
4419,
34,
4833,
16,
514,
3140,
461,
16,
4998,
2555,
1754,
13,
288,
3639,
8596,
3140,
273,
446,
31,
3639,
775,
288,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
8596,
18925,
12,
780,
3140,
559,
16,
509,
770,
16,
987,
32,
4419,
34,
4833,
16,
514,
3140,
461,
16,
4998,
2555,
1754,
13,
288,
3639,
8596,
3140,
273,
446,
31,
3639,
775,
288,
54... |
if (tds.getTdsVer() == Tds.TDS70) { | if (tds.getServerType() == Tds.SQLSERVER && tds.getDatabaseMajorVersion() >= 8) { | private void internalGetGeneratedKeys(Tds tds, boolean result, boolean alreadySubmitted) throws SQLException { this.lastGeneratedKey = null; if ((this.returnKeys || this.statementReturnsKeys) && !result && (tds.moreResults() == alreadySubmitted)) { // // Routine only used by Statement // int saveCount = this.updateCount; // Original value will be reset to -1 by getMoreResults() try { SQLWarningChain tmpWarnings = new SQLWarningChain(); if (!alreadySubmitted) { // SCOPE_IDENTITY() is prefered as it avoids problems with // counts returned from triggers. // @@IDENTITY is required for SQL 6.5/Sybase in all cases. // String sql; if (tds.getTdsVer() == Tds.TDS70) { sql = "SELECT SCOPE_IDENTITY() AS ID"; } else { sql = "SELECT @@IDENTITY AS ID"; } tds.executeQuery(sql, this, tmpWarnings, timeout); } if (getMoreResults(tds, tmpWarnings, false)) { // Construct a special result set. this.lastGeneratedKey = new GenKeyResultSet(this, this.results); this.results.close(); this.results = null; } else { throw new SQLException( "Expected generated keys ResultSet."); } } catch (SQLException ex) { throw ex; } catch (Exception ex) { throw new SQLException(ex.getMessage()); } finally { this.results = null; // Tidy up. this.updateCount = saveCount; // Restore original count. } } } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/9db5c1e6691a6fe3d8b463f25975f411ab0e317c/TdsStatement.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/TdsStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2713,
967,
7823,
2396,
12,
56,
2377,
268,
2377,
16,
4766,
1850,
1250,
563,
16,
4766,
1850,
1250,
1818,
28882,
13,
5411,
1216,
6483,
288,
3639,
333,
18,
2722,
7823,
653,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2713,
967,
7823,
2396,
12,
56,
2377,
268,
2377,
16,
4766,
1850,
1250,
563,
16,
4766,
1850,
1250,
1818,
28882,
13,
5411,
1216,
6483,
288,
3639,
333,
18,
2722,
7823,
653,
273,
... |
public DataSource createDataSource(Account account, DataSource.Type dsType, String dsName, Map<String, Object> dataSourceAttrs) throws ServiceException { removeAttrIgnoreCase("objectclass", dataSourceAttrs); LdapEntry ldapEntry = (LdapEntry) (account instanceof LdapEntry ? account : getAccountById(account.getId())); if (ldapEntry == null) throw AccountServiceException.NO_SUCH_ACCOUNT(account.getName()); List<DataSource> existing = getAllDataSources(account); if (existing.size() >= account.getLongAttr(A_zimbraDataSourceMaxNumEntries, 20)) throw AccountServiceException.TOO_MANY_DATA_SOURCES(); dataSourceAttrs.put(A_zimbraDataSourceName, dsName); // must be the same HashMap attrManagerContext = new HashMap(); AttributeManager.getInstance().preModify(dataSourceAttrs, null, attrManagerContext, true, true); DirContext ctxt = null; try { ctxt = LdapUtil.getDirContext(true); String dn = getDataSourceDn(ldapEntry, dsName); Attributes attrs = new BasicAttributes(true); LdapUtil.mapToAttrs(dataSourceAttrs, attrs); Attribute oc = LdapUtil.addAttr(attrs, A_objectClass, "zimbraDataSource"); oc.add(LdapDataSource.getObjectClass(dsType)); String dsId = LdapUtil.generateUUID(); attrs.put(A_zimbraDataSourceId, dsId); createSubcontext(ctxt, dn, attrs, "createDataSource"); DataSource ds = getDataSourceById(ldapEntry, dsId, ctxt); AttributeManager.getInstance().postModify(dataSourceAttrs, ds, attrManagerContext, true); return ds; } catch (NameAlreadyBoundException nabe) { throw AccountServiceException.DATA_SOURCE_EXISTS(dsName); } finally { LdapUtil.closeContext(ctxt); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/008d9cd3b043bc1416a3ab732d66a770c2647d4d/LdapProvisioning.java/buggy/ZimbraServer/src/java/com/zimbra/cs/account/ldap/LdapProvisioning.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
8597,
2640,
8597,
12,
3032,
4631,
16,
8597,
18,
11985,
87,
559,
16,
780,
2377,
461,
16,
863,
32,
780,
16,
921,
34,
892,
1830,
8262,
13,
15069,
15133,
95,
4479,
3843,
5556,
2932,
1612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8597,
2640,
8597,
12,
3032,
4631,
16,
8597,
18,
11985,
87,
559,
16,
780,
2377,
461,
16,
863,
32,
780,
16,
921,
34,
892,
1830,
8262,
13,
15069,
15133,
95,
4479,
3843,
5556,
2932,
1612,
... | ||
return props; | public static Properties getProperties(IStorage storage) { if (storage == null) return null; Properties props= new Properties(); InputStream is= null; ITextFileBufferManager manager= FileBuffers.getTextFileBufferManager(); try { if (manager != null) { ITextFileBuffer buffer= manager.getTextFileBuffer(storage.getFullPath()); if (buffer != null) { IDocument document= buffer.getDocument(); is= new ByteArrayInputStream(document.get().getBytes()); } } // Fallback: read from storage if (is == null) is= storage.getContents(); props.load(is); } catch (IOException e) { // sorry no properties return null; } catch (CoreException e) { // sorry no properties return null; } finally { if (is != null) try { is.close(); } catch (IOException e) { // return properties anyway but log JavaPlugin.log(e); } } return props; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/6b407ecb3f5501d41501bc0e566e7421ab502dd5/NLSHintHelper.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/nls/NLSHintHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
6183,
9392,
12,
45,
3245,
2502,
13,
288,
202,
202,
430,
261,
5697,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
2297,
3458,
33,
394,
6183,
5621,
202,
202,
4348,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6183,
9392,
12,
45,
3245,
2502,
13,
288,
202,
202,
430,
261,
5697,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
2297,
3458,
33,
394,
6183,
5621,
202,
202,
4348,
35... | |
return null; | return true; | public SignIn(final PageParameters parameters) { add(new SignInPanel("signInPanel") { public String signIn(final String username, final String password) { // Sign the user in final User user = Authenticator.forSession( getSession()).authenticate(username, password); // If the user was signed in if (user != null) { return null; } else { // Form method that will notify feedback panel return getLocalizer().getString("couldNotAuthenticate", this); } } }); } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/5d456e3ce5f001d235f7a2392bec446d5a546a4f/SignIn.java/buggy/wicket-examples/src/java/wicket/examples/library/SignIn.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4383,
382,
12,
6385,
3460,
2402,
1472,
13,
565,
288,
3639,
527,
12,
2704,
4383,
382,
5537,
2932,
2977,
382,
5537,
7923,
3639,
288,
5411,
1071,
514,
1573,
382,
12,
6385,
514,
2718,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4383,
382,
12,
6385,
3460,
2402,
1472,
13,
565,
288,
3639,
527,
12,
2704,
4383,
382,
5537,
2932,
2977,
382,
5537,
7923,
3639,
288,
5411,
1071,
514,
1573,
382,
12,
6385,
514,
2718,
... |
QName serviceName = jbiMex.getEndpoint().getServiceName(); _ode.getTransactionManager().begin(); boolean success = false; MyRoleMessageExchange odeMex = null; try { if (__log.isDebugEnabled()) { __log.debug("invokeOde() JBI exchangeId=" + jbiMex.getExchangeId() + " endpoint=" + _endpoint + " operation=" + jbiMex.getOperation() ); } odeMex = _ode._server.getEngine().createMessageExchange( jbiMex.getExchangeId(), _endpoint.serviceName, jbiMex.getOperation().getLocalPart()); if (odeMex.getOperation() != null) { javax.wsdl.Message msgdef = odeMex.getOperation().getInput().getMessage(); Message odeRequest = odeMex.createMessage(odeMex.getOperation().getInput().getMessage().getQName()); Mapper mapper = _ode.findMapper(request,odeMex.getOperation()); if (mapper == null) { String errmsg = "Could not find a mapper for request message for JBI MEX " + jbiMex.getExchangeId() + "; ODE MEX " + odeMex.getMessageExchangeId() + " is failed. "; __log.error(errmsg); throw new MessageTranslationException(errmsg); } odeMex.setProperty(Mapper.class.getName(), mapper.getClass().getName()); mapper.toODE(odeRequest, request, msgdef); odeMex.invoke(odeRequest); if (odeMex.getStatus() != Status.ASYNC) { __log.debug("ODE MEX " + odeMex + " completed SYNCHRONOUSLY."); onResponse(odeMex); _jbiMexTracker.consume(jbiMex.getExchangeId()); } else { __log.debug("ODE MEX " + odeMex + " completed ASYNCHRONOUSLY."); } } else { __log.error("ODE MEX " +odeMex + " was unroutable."); jbiMex.setError(new IllegalArgumentException("Unroutable invocation.")); } success = true; if (odeMex.getMessageExchangePattern() != MessageExchangePattern.REQUEST_RESPONSE) _jbiMexTracker.consume(jbiMex.getExchangeId()); } finally { if (success) { __log.debug("Commiting ODE MEX " + odeMex ); _ode.getTransactionManager().commit(); } else { __log.debug("Rolling back ODE MEX " + odeMex ); _jbiMexTracker.consume(jbiMex.getExchangeId()); _ode.getTransactionManager().rollback(); } } } | private void invokeOde(javax.jbi.messaging.MessageExchange jbiMex, NormalizedMessage request) throws Exception { // If this has already been tracked, we will not invoke! if (_jbiMexTracker.track(jbiMex)) { __log.debug("Skipping JBI MEX " + jbiMex.getExchangeId() + ", already received!"); return; } QName serviceName = jbiMex.getEndpoint().getServiceName(); _ode.getTransactionManager().begin(); boolean success = false; MyRoleMessageExchange odeMex = null; try { if (__log.isDebugEnabled()) { __log.debug("invokeOde() JBI exchangeId=" + jbiMex.getExchangeId() + " endpoint=" + _endpoint + " operation=" + jbiMex.getOperation() ); } odeMex = _ode._server.getEngine().createMessageExchange( jbiMex.getExchangeId(), _endpoint.serviceName, jbiMex.getOperation().getLocalPart()); if (odeMex.getOperation() != null) { javax.wsdl.Message msgdef = odeMex.getOperation().getInput().getMessage(); Message odeRequest = odeMex.createMessage(odeMex.getOperation().getInput().getMessage().getQName()); Mapper mapper = _ode.findMapper(request,odeMex.getOperation()); if (mapper == null) { String errmsg = "Could not find a mapper for request message for JBI MEX " + jbiMex.getExchangeId() + "; ODE MEX " + odeMex.getMessageExchangeId() + " is failed. "; __log.error(errmsg); throw new MessageTranslationException(errmsg); } odeMex.setProperty(Mapper.class.getName(), mapper.getClass().getName()); mapper.toODE(odeRequest, request, msgdef); odeMex.invoke(odeRequest); // Handle the response if it is immediately available. if (odeMex.getStatus() != Status.ASYNC) { __log.debug("ODE MEX " + odeMex + " completed SYNCHRONOUSLY."); onResponse(odeMex); _jbiMexTracker.consume(jbiMex.getExchangeId()); } else { __log.debug("ODE MEX " + odeMex + " completed ASYNCHRONOUSLY."); } } else { __log.error("ODE MEX " +odeMex + " was unroutable."); jbiMex.setError(new IllegalArgumentException("Unroutable invocation.")); } success = true; // For one-way invocation we do not need to maintain the association if (odeMex.getMessageExchangePattern() != MessageExchangePattern.REQUEST_RESPONSE) _jbiMexTracker.consume(jbiMex.getExchangeId()); } finally { if (success) { __log.debug("Commiting ODE MEX " + odeMex ); _ode.getTransactionManager().commit(); } else { __log.debug("Rolling back ODE MEX " + odeMex ); _jbiMexTracker.consume(jbiMex.getExchangeId()); _ode.getTransactionManager().rollback(); } } } | 45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/9d1ac9610571feb2851be8b3dee84f1a5a76c7b8/OdeService.java/clean/jbi/src/main/java/org/apache/ode/jbi/OdeService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
4356,
51,
323,
12,
28384,
18,
10649,
77,
18,
23208,
18,
1079,
11688,
525,
13266,
49,
338,
16,
4202,
8769,
1235,
1079,
590,
13,
1216,
1185,
288,
565,
368,
971,
333,
711,
1818,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4356,
51,
323,
12,
28384,
18,
10649,
77,
18,
23208,
18,
1079,
11688,
525,
13266,
49,
338,
16,
4202,
8769,
1235,
1079,
590,
13,
1216,
1185,
288,
565,
368,
971,
333,
711,
1818,... | |
} | } | public void setBlocked(IStatus reason) { JobInfo info = getJobInfo(job); info.setBlockedStatus(null); refreshJobInfo(info); if (listener != null) { listener.setBlocked(reason); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0e7fbc26f7d1b7769a0721c71fd17572c8432fd5/ProgressManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
5411,
3956,
966,
1123,
273,
13024,
966,
12,
4688,
1769,
5411,
1123,
18,
542,
23722,
1482,
12,
2011,
1769,
5411,
4460,
2278,
966,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
444,
23722,
12,
45,
1482,
3971,
13,
288,
5411,
3956,
966,
1123,
273,
13024,
966,
12,
4688,
1769,
5411,
1123,
18,
542,
23722,
1482,
12,
2011,
1769,
5411,
4460,
2278,
966,
12,
... |
if(!aliasMap.isEmpty()){ | if (!aliasMap.isEmpty()) { | public Collection getUsersTopGroupNodesByViewAndOwnerPermissions(User user, IWUserContext iwuc)throws RemoteException{ Collection topNodes = new ArrayList(); //check for the super user case first boolean isSuperUser = iwuc.isSuperAdmin(); if( (isSuperUser && user==null) || (isSuperUser && iwuc.getCurrentUser().equals(user)) ){ try { topNodes = this.getIWApplicationContext().getDomain().getTopLevelGroupsUnderDomain(); } catch (Exception e1) { topNodes = new Vector(); e1.printStackTrace(); } } if( user != null ){ topNodes = (Collection)iwuc.getSessionAttribute(SESSION_KEY_TOP_NODES+user.getPrimaryKey().toString()); if(topNodes != null && !topNodes.isEmpty()){ return topNodes; } topNodes = getStoredTopNodeGroups(user); if(topNodes != null && !topNodes.isEmpty()){ iwuc.setSessionAttribute(SESSION_KEY_TOP_NODES+user.getPrimaryKey().toString(),topNodes); return topNodes; }else{ log("[UserBusinessBean]: getUsersTopGroupNodesByViewAndOwnerPermissions(...) begins"); Timer totalTime = new Timer(); totalTime.start(); try { GroupBusiness groupBiz = getGroupBusiness(); if (groupBiz.userGroupTreeImageProcedureTopNodeSearch()){ log("[UserBusinessBean]: using stored procedure topnode search"); Timer time = new Timer(); time.start(); Collection directlyRelatedParents = getGroupBusiness().getParentGroups(user); Iterator iterating = directlyRelatedParents.iterator(); List additionalGroups = new ArrayList(); while (iterating.hasNext()) { Group parent = (Group) iterating.next(); if(parent!=null && parent.getPermissionControllingGroupID()>0){ additionalGroups.add(parent.getPermissionControllingGroup()); } } directlyRelatedParents.addAll(additionalGroups); Collection allPermissions = new ArrayList(); //get all view permissions for direct parent and put in a list Collection viewPermissions = AccessControl.getAllGroupViewPermissions(directlyRelatedParents); allPermissions.addAll(viewPermissions); Collection ownedPermissions = AccessControl.getAllGroupOwnerPermissionsByGroup( user ); allPermissions.addAll(ownedPermissions); time.stop(); log("[UserBusinessBean]: fetching complete " + time.getTimeString()); time.start(); try { topNodes = searchForTopNodes(allPermissions,null,user);// topNodes = searchForTopNodes(viewPermissions,searchForTopNodes(ownedPermissions,null)); for (Iterator iter = topNodes.iterator(); iter.hasNext();) { Group gr = (Group) iter.next(); if(gr.isAlias() && topNodes.contains(gr.getAlias())){ iter.remove(); } } time.stop(); log("[UserBusinessBean]: searchForTopNodesFromTheTop complete " + time.getTimeString()); } catch (RemoteException e1) { throw new EJBException(e1); } catch (FinderException e1) { throw new EJBException(e1); } } else { log("[UserBusinessBean]: not using stored procedure topnode search"); Timer time = new Timer(); time.start(); Map parents = new HashMap(); Map groupMap = new HashMap();//we need it to be synchronized so we can remove items while in a iterator Map aliasMap = new HashMap(); IDOUtil idoUtil = IDOUtil.getInstance(); GroupHome grHome = getGroupHome(); Collection directlyRelatedParents = getGroupBusiness().getParentGroups(user); Iterator iterating = directlyRelatedParents.iterator(); List additionalGroups = new ArrayList(); while (iterating.hasNext()) { Group parent = (Group) iterating.next(); if(parent!=null && parent.getPermissionControllingGroupID()>0){ additionalGroups.add(parent.getPermissionControllingGroup()); } } directlyRelatedParents.addAll(additionalGroups); Collection allViewAndOwnerPermissionGroupPKs = new ArrayList(); //get all view permissions for direct parent and put in a list Collection viewPermissions = AccessControl.getAllGroupViewPermissions(directlyRelatedParents); addGroupPKsToCollectionFromICPermissionCollection(viewPermissions,allViewAndOwnerPermissionGroupPKs); Collection ownedPermissions = AccessControl.getAllGroupOwnerPermissionsByGroup( user ); //allViewAndOwnerPermissions.removeAll(ownedPermissions);//no double entries thank you addGroupPKsToCollectionFromICPermissionCollection(ownedPermissions,allViewAndOwnerPermissionGroupPKs); Collection allViewAndOwnerPermissionGroups = new ArrayList(); try { allViewAndOwnerPermissionGroups = grHome.findByPrimaryKeyCollection(allViewAndOwnerPermissionGroupPKs); } catch (FinderException e) { log("UserBusiness: In getUsersTopGroupNodesByViewAndOwnerPermissions. groups not found"); e.printStackTrace(); } time.stop(); log("[UserBusinessBean]: getting permission groups complete " + time.getTimeString()); time.start(); //searchForTopNodesFromTop=3000; //some suitable value if(allViewAndOwnerPermissionGroups.size() > this.searchForTopNodesFromTop){ log("[UserBusinessBean]: using search from the top"); try { topNodes = searchForTopNodesFromTheTop(allViewAndOwnerPermissionGroups); for (Iterator iter = topNodes.iterator(); iter.hasNext();) { Group gr = (Group) iter.next(); if(gr.isAlias() && topNodes.contains(gr.getAlias())){ iter.remove(); } } time.stop(); log("[UserBusinessBean]: searchForTopNodesFromTheTop complete " + time.getTimeString()); time.start(); } catch (IDORelationshipException e1) { throw new EJBException(e1); } catch (RemoteException e1) { throw new EJBException(e1); } catch (FinderException e1) { throw new EJBException(e1); } } else { log("[UserBusinessBean]: using old topnode search"); //get all (recursively) parents for permission Iterator permissions = allViewAndOwnerPermissionGroups.iterator(); Map cachedParents = new HashMap(); Map cachedGroups = new HashMap(); while (permissions.hasNext()) { Group group = (Group) permissions.next(); Integer primaryKey = (Integer)group.getPrimaryKey(); if( !groupMap.containsKey(primaryKey) ){ Group permissionGroup = group; if( !cachedGroups.containsKey(primaryKey.toString()) ) { cachedGroups.put(primaryKey.toString(),permissionGroup); } Collection recParents = groupBiz.getParentGroupsRecursive(permissionGroup, cachedParents, cachedGroups); Map parentMap = idoUtil.convertIDOEntityCollectionToMapOfPrimaryKeysAndEntityValues(recParents); parents.put(primaryKey,parentMap); groupMap.put(primaryKey,permissionGroup); //if it's an alias we don't need the original group and make a list of those groups to filter out later if(permissionGroup.isAlias()){ Integer originalGroupID = new Integer(permissionGroup.getAliasID()); aliasMap.put(originalGroupID,primaryKey); } } } time.stop(); log("[UserBusinessBean]: getting all parents (recursively) complete " + time.getTimeString()); time.start(); //Filter out the real top nodes! Map skipThese = new HashMap(); Set keys = parents.keySet(); Iterator iter = keys.iterator(); while (iter.hasNext()) { Integer thePermissionGroupsId = (Integer) iter.next(); Iterator iter2 = parents.keySet().iterator(); while (iter2.hasNext()) { Integer groupToCompareTo = (Integer) iter2.next(); //If this group was already checked or is the same as the comparing group, continue (skip this one) if( thePermissionGroupsId.equals(groupToCompareTo) || skipThese.containsKey(thePermissionGroupsId)){ continue;//dont check for self } //Get the parents to see if thePermissionGroupsId is in it. ergo it is a parent of the comparing group and therefor a higher node Map theParents = (Map) (parents.get(groupToCompareTo)); //or the permissiongroup has a shortcut if(theParents!=null && theParents.containsKey(thePermissionGroupsId)){ //it's a parent of the comparing group so we don't have to check the comparing group again skipThese.put(groupToCompareTo,null);//for the check skip check groupMap.remove(groupToCompareTo);//the groups that will be left are the top nodes }//remove if this group is a child group of myGroup }//inner while ends }//outer while ends time.stop(); log("[UserBusinessBean]: filter out the real topnodes complete " + time.getTimeString()); time.start(); //Now we have to check if the remaining top nodes have a shortcut //that is not a top node and if so we need to remove that node //unless there is only one node left or if the alias and the real group are both top nodes if(groupMap!=null && !groupMap.isEmpty()){ List aliasGroupType = new ArrayList(); aliasGroupType.add("alias"); if(!aliasMap.isEmpty()){ Iterator keyIter = groupMap.keySet().iterator(); while (keyIter.hasNext()) { Integer topNodeId = (Integer) keyIter.next(); Integer aliasGroupsId = (Integer)aliasMap.get(topNodeId); if(aliasGroupsId!=null){ if(!groupMap.containsKey(aliasGroupsId)){//only remove if they are not both top nodes// groupMap.remove(topNodeId); System.err.println("Here is the code that once returned concurrentException"); } } } } time.stop(); log("[UserBusinessBean]: some alias complete " + time.getTimeString()); time.start(); //check the children recursively List groupsToRemove = new ArrayList(); Iterator keyIter = groupMap.keySet().iterator(); while (keyIter.hasNext()) { Integer topNodeId = (Integer) keyIter.next(); if(skipThese.containsKey(topNodeId)){ continue;//it's going to be removed later } else{ try { //also we need to check the children of the current top nodes recursively for aliases :s Collection aliasesRecursive = getGroupBusiness().getChildGroupsRecursiveResultFiltered(getGroupBusiness().getGroupByGroupID(topNodeId.intValue()),aliasGroupType,true); if( aliasesRecursive!=null && !aliasesRecursive.isEmpty()){ Iterator aliasIter = aliasesRecursive.iterator(); while (aliasIter.hasNext()) { Group alias = (Group) aliasIter.next(); Integer aliasGroupsId = new Integer(alias.getAliasID()); if(groupMap.containsKey(aliasGroupsId)){//only remove if they are not both top nodes groupsToRemove.add(aliasGroupsId); skipThese.put(aliasGroupsId,null); } } } } catch (FinderException e1) { e1.printStackTrace(); } } } time.stop(); log("[UserBusinessBean]: check children (recursively) complete " + time.getTimeString()); time.start(); //remove the top nodes that have aliases under another top node, or itself to avoid crashing the server in an endless loop? Iterator removeIter = groupsToRemove.iterator(); while (removeIter.hasNext()) { groupMap.remove(removeIter.next()); } time.stop(); log("[UserBusinessBean]: remove the aliases undr another top node complete " + time.getTimeString()); } //finally done! the remaining nodes are the top nodes topNodes = groupMap.values(); } } } catch (EJBException e) { e.printStackTrace(); } totalTime.stop(); log("[UserBusinessBean]: topnode....(...) ends "+ totalTime.getTimeString()); } iwuc.setSessionAttribute(SESSION_KEY_TOP_NODES+user.getPrimaryKey().toString(),topNodes); storeUserTopGroupNodes(user,topNodes,null); } return topNodes; } | 52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/21dcc2ab672cd5cc52a7f8a072e86fed3aa20ecc/UserBusinessBean.java/buggy/src/java/com/idega/user/business/UserBusinessBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
27564,
3401,
1114,
3205,
858,
1767,
1876,
5541,
6521,
12,
1299,
729,
16,
467,
59,
1299,
1042,
25522,
5286,
13,
15069,
18361,
95,
9506,
202,
2532,
1760,
3205,
273,
394,
240... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2200,
27564,
3401,
1114,
3205,
858,
1767,
1876,
5541,
6521,
12,
1299,
729,
16,
467,
59,
1299,
1042,
25522,
5286,
13,
15069,
18361,
95,
9506,
202,
2532,
1760,
3205,
273,
394,
240... |
try { node.removeMixin(mixinName); fail("Node.removeMixin(String mixinName) must throw a " + "LockException if the node is locked."); } catch (LockException e) { | try { node.removeMixin(mixinName); fail("Node.removeMixin(String mixinName) must throw a " + "LockException if the node is locked."); } catch (LockException e) { } node2.unlock(); } finally { session2.logout(); | public void testLocked() throws ConstraintViolationException, NotExecutableException, RepositoryException { Session session = testRootNode.getSession(); if (session.getRepository().getDescriptor(Repository.OPTION_LOCKING_SUPPORTED) == null) { throw new NotExecutableException("Locking is not supported."); } // create a node that is lockable Node node = testRootNode.addNode(nodeName1, testNodeType); // or try to make it lockable if it is not if (!node.isNodeType(mixLockable)) { if (node.canAddMixin(mixLockable)) { node.addMixin(mixLockable); } else { throw new NotExecutableException("Node " + nodeName1 + " is not lockable and does not " + "allow to add mix:lockable"); } } testRootNode.save(); String mixinName = NodeMixinUtil.getAddableMixinName(session, node); if (mixinName == null) { throw new NotExecutableException("No testable mixin node type found"); } node.addMixin(mixinName); testRootNode.save(); // remove first slash of path to get rel path to root String pathRelToRoot = node.getPath().substring(1); // access node through another session to lock it Session session2 = helper.getSuperuserSession(); Node node2 = session2.getRootNode().getNode(pathRelToRoot); node2.lock(true, true); try { node.removeMixin(mixinName); fail("Node.removeMixin(String mixinName) must throw a " + "LockException if the node is locked."); } catch (LockException e) { // success } // unlock to remove node at tearDown() node2.unlock(); session2.logout(); } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/a70220ce21821950174edcf6b4370f7215d33b9f/NodeRemoveMixinTest.java/clean/src/test/org/apache/jackrabbit/test/api/NodeRemoveMixinTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
8966,
1435,
5411,
1216,
10770,
27052,
16,
2288,
17709,
503,
16,
13367,
288,
3639,
3877,
1339,
273,
1842,
29658,
18,
588,
2157,
5621,
3639,
309,
261,
3184,
18,
588,
3305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8966,
1435,
5411,
1216,
10770,
27052,
16,
2288,
17709,
503,
16,
13367,
288,
3639,
3877,
1339,
273,
1842,
29658,
18,
588,
2157,
5621,
3639,
309,
261,
3184,
18,
588,
3305,
... |
else if ( sSubType.equalsIgnoreCase( "Percent Stacked" ) ) | else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) | public Chart getModel( String sSubType, Orientation orientation, String sDimension, Chart currentChart ) { ChartWithAxes newChart = null; if ( currentChart != null ) { newChart = (ChartWithAxes) getConvertedChart( currentChart, sSubType, orientation, sDimension ); if ( newChart != null ) { return newChart; } } newChart = ChartWithAxesImpl.create( ); newChart.setType( TYPE_LITERAL ); newChart.setSubType( sSubType ); newChart.setOrientation( orientation ); newChart.setDimension( getDimensionFor( sDimension ) ); newChart.setUnits( "Points" ); //$NON-NLS-1$ ( (Axis) newChart.getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setCategoryAxis( true ); SeriesDefinition sdX = SeriesDefinitionImpl.create( ); Series categorySeries = SeriesImpl.create( ); sdX.getSeries( ).add( categorySeries ); sdX.getSeriesPalette( ).update( 0 ); ( (Axis) newChart.getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( sdX ); newChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); //$NON-NLS-1$ if ( sSubType.equalsIgnoreCase( "Stacked" ) ) //$NON-NLS-1$ { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = LineSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (LineSeries) valueSeries ).getMarker( ).setVisible( true ); ( (LineSeries) valueSeries ).setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( "Percent Stacked" ) ) //$NON-NLS-1$ { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setPercent( true ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = LineSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (LineSeries) valueSeries ).getMarker( ).setVisible( true ); ( (LineSeries) valueSeries ).setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( "Overlay" ) ) //$NON-NLS-1$ { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = LineSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (LineSeries) valueSeries ).getMarker( ).setVisible( true ); ( (LineSeries) valueSeries ).setStacked( false ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } if ( sDimension.equals( THREE_DIMENSION_TYPE ) ) { newChart.setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); newChart.setUnitSpacing( 50 ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ).clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); newChart.getPrimaryOrthogonalAxis( newChart.getPrimaryBaseAxes( )[0] ) .getTitle( ) .getCaption( ) .getFont( ) .setRotation( 0 ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); } addSampleData( newChart ); return newChart; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ae5c99c975d28a2277f3b75baa2207ddf1c0d0ae/LineChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14804,
7454,
12,
514,
272,
30511,
16,
531,
12556,
9820,
16,
1082,
202,
780,
272,
8611,
16,
14804,
783,
7984,
262,
202,
95,
202,
202,
7984,
1190,
26494,
394,
7984,
273,
446,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14804,
7454,
12,
514,
272,
30511,
16,
531,
12556,
9820,
16,
1082,
202,
780,
272,
8611,
16,
14804,
783,
7984,
262,
202,
95,
202,
202,
7984,
1190,
26494,
394,
7984,
273,
446,
31... |
throw new ArgumentError(recv.getRuntime(), args.length, 1); | throw recv.getRuntime().newArgumentError(args.length, 1); | public static IRubyObject mkdir(IRubyObject recv, IRubyObject[] args) { if (args.length < 1) { throw new ArgumentError(recv.getRuntime(), args.length, 1); } if (args.length > 2) { throw new ArgumentError(recv.getRuntime(), args.length, 2); } args[0].checkSafeString(); String path = args[0].toString(); File newDir = new File(path); if (newDir.exists()) { throw new IOError(recv.getRuntime(), path + " already exists"); } return newDir.mkdir() ? RubyFixnum.zero(recv.getRuntime()) : RubyFixnum.one(recv.getRuntime()); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyDir.java/buggy/src/org/jruby/RubyDir.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
6535,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
604,
10665,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
6535,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
5411,
604,
10665,
18,
588,
... |
throw new XMLSchemaException("rcase-NSSubset.3",null); | throw new XMLSchemaException("rcase-NSSubset.3", new Object[]{dWildcard.getProcessContentsAsString(), bWildcard.getProcessContentsAsString()}); | private static void checkNSSubset(XSWildcardDecl dWildcard, int min1, int max1, XSWildcardDecl bWildcard, int min2, int max2) throws XMLSchemaException { // check Occurrence ranges if (!checkOccurrenceRange(min1,max1,min2,max2)) { throw new XMLSchemaException("rcase-NSSubset.2",null); } // check wildcard subset if (!dWildcard.isSubsetOf(bWildcard)) { throw new XMLSchemaException("rcase-NSSubset.1",null); } if (dWildcard.weakerProcessContents(bWildcard)) { throw new XMLSchemaException("rcase-NSSubset.3",null); } } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/b8632d1162b8572ec5348c474617947ba89f7bff/XSConstraints.java/clean/src/org/apache/xerces/impl/xs/XSConstraints.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
866,
50,
1260,
373,
542,
12,
60,
55,
12121,
3456,
302,
12121,
16,
509,
1131,
21,
16,
509,
943,
21,
16,
4766,
1377,
1139,
55,
12121,
3456,
324,
12121,
16,
509,
1131,
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,
3238,
760,
918,
866,
50,
1260,
373,
542,
12,
60,
55,
12121,
3456,
302,
12121,
16,
509,
1131,
21,
16,
509,
943,
21,
16,
4766,
1377,
1139,
55,
12121,
3456,
324,
12121,
16,
509,
1131,
22... |
throw new InternalError(x.getMessage()); | throw new InternalError(x.getMessage()); | final void setBooleanField(Object obj, boolean val) { try { field.setBoolean(obj, val); } catch(IllegalAccessException x) { throw new InternalError(x.getMessage()); } } | 25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/126d7770c7bb5b9c74598afb0864a336d457fd92/ObjectStreamField.java/buggy/libjava/java/io/ObjectStreamField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
444,
5507,
974,
12,
921,
1081,
16,
1250,
1244,
13,
225,
288,
1377,
775,
1377,
288,
202,
225,
652,
18,
542,
5507,
12,
2603,
16,
1244,
1769,
1377,
289,
1377,
1044,
12,
12195,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
444,
5507,
974,
12,
921,
1081,
16,
1250,
1244,
13,
225,
288,
1377,
775,
1377,
288,
202,
225,
652,
18,
542,
5507,
12,
2603,
16,
1244,
1769,
1377,
289,
1377,
1044,
12,
12195,
... |
menuService.removeContributions(menuContributions); | private final void clearMenus() { menuService.removeContributions(menuContributions); menuContributions.clear(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/03ee7aea52f9313e17fd8a8e337e50b05c319ba4/LegacyActionPersistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/LegacyActionPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
2424,
29755,
1435,
288,
202,
202,
5414,
1179,
18,
4479,
442,
15326,
12,
5414,
442,
15326,
1769,
202,
202,
5414,
442,
15326,
18,
8507,
5621,
202,
97,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
2424,
29755,
1435,
288,
202,
202,
5414,
1179,
18,
4479,
442,
15326,
12,
5414,
442,
15326,
1769,
202,
202,
5414,
442,
15326,
18,
8507,
5621,
202,
97,
2,
-100,
-100,
... | |
TableTag.class, null, "setStyle")); | TableTag.class, null, "setStyle")); | public PropertyDescriptor[] getPropertyDescriptors() { List proplist = new ArrayList(); try { proplist.add(new PropertyDescriptor("cellpadding", //$NON-NLS-1$ TableTag.class, null, "setCellpadding")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("cellspacing", //$NON-NLS-1$ TableTag.class, null, "setCellspacing")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("class", //$NON-NLS-1$ TableTag.class, null, "setClass")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("decorator", //$NON-NLS-1$ TableTag.class, null, "setDecorator")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("defaultorder", //$NON-NLS-1$ TableTag.class, null, "setDefaultorder")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("defaultsort", //$NON-NLS-1$ TableTag.class, null, "setDefaultsort")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("export", //$NON-NLS-1$ TableTag.class, null, "setExport")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("frame", //$NON-NLS-1$ TableTag.class, null, "setFrame")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("length", //$NON-NLS-1$ TableTag.class, null, "setLength")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("offset", //$NON-NLS-1$ TableTag.class, null, "setOffset")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("pagesize", //$NON-NLS-1$ TableTag.class, null, "setPagesize")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("partialList", //$NON-NLS-1$ TableTag.class, null, "setPartialList")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("requestURI", //$NON-NLS-1$ TableTag.class, null, "setRequestURI")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("requestURIcontext", //$NON-NLS-1$ TableTag.class, null, "setRequestURIcontext")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("rules", //$NON-NLS-1$ TableTag.class, null, "setRules")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("sort", //$NON-NLS-1$ TableTag.class, null, "setSort")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("style", //$NON-NLS-1$ TableTag.class, null, "setStyle")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("summary", //$NON-NLS-1$ TableTag.class, null, "setSummary")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("excludedParams", //$NON-NLS-1$ TableTag.class, null, "setExcludedParams")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("id", //$NON-NLS-1$ TableTag.class, null, "setUid")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("uid", //$NON-NLS-1$ TableTag.class, null, "setUid")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("htmlId", //$NON-NLS-1$ TableTag.class, null, "setHtmlId")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("varTotals", //$NON-NLS-1$ TableTag.class, null, "setVarTotals")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("width", //$NON-NLS-1$ TableTag.class, null, "setWidth")); //$NON-NLS-1$ // deprecated attributes proplist.add(new PropertyDescriptor("list", //$NON-NLS-1$ TableTag.class, null, "setList")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("property", //$NON-NLS-1$ TableTag.class, null, "setProperty")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("scope", //$NON-NLS-1$ TableTag.class, null, "setScope")); //$NON-NLS-1$ // make ATG Dynamo happy: proplist.add(new PropertyDescriptor("className", //$NON-NLS-1$ TableTag.class, null, "setClass")); //$NON-NLS-1$ try { Class.forName("javax.servlet.jsp.tagext.IterationTag"); //$NON-NLS-1$ // jsp >= 1.2 proplist.add(new PropertyDescriptor("name", //$NON-NLS-1$ TableTag.class, null, "setName")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("size", //$NON-NLS-1$ TableTag.class, null, "setSize")); //$NON-NLS-1$ } catch (ClassNotFoundException e) { // jsp 1.1, can't use a setter with an Object parameter proplist.add(new PropertyDescriptor("name", //$NON-NLS-1$ TableTag.class, null, "setNameString")); //$NON-NLS-1$ proplist.add(new PropertyDescriptor("size", //$NON-NLS-1$ TableTag.class, null, "setSizeObjectName")); //$NON-NLS-1$ } } catch (IntrospectionException ex) { throw new RuntimeException("You got an introspection exception - maybe defining a property that is not" + " defined in the TableTag?: " + ex.getMessage(), ex); } PropertyDescriptor[] result = new PropertyDescriptor[proplist.size()]; return ((PropertyDescriptor[]) proplist.toArray(result)); } | 10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/a68c17afdfb7cb08fd50d001fb8260e045a3c5cd/TableTagBeanInfo.java/clean/displaytag/src/main/java/org/displaytag/tags/TableTagBeanInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
987,
450,
17842,
273,
394,
2407,
5621,
3639,
775,
3639,
288,
5411,
450,
17842,
18,
1289,
12,
2704,
26761,
2932,
3855,
9598,
3113,
4329,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26761,
8526,
3911,
12705,
1435,
565,
288,
3639,
987,
450,
17842,
273,
394,
2407,
5621,
3639,
775,
3639,
288,
5411,
450,
17842,
18,
1289,
12,
2704,
26761,
2932,
3855,
9598,
3113,
4329,... |
buffer.append(arguments.get(IProblem.A_PREPROC_CONDITION)); | arg = (String) arguments.get(IProblem.A_PREPROC_CONDITION); | public String createMessage(int id, Map arguments, int lineNumber, char[] fileName) { StringBuffer buffer = new StringBuffer(); buffer.append(PROBLEM); buffer.append(errorMessages.get(new Integer(id))); switch (id) { case IProblem.PREPROCESSOR_POUND_ERROR : buffer.append(arguments.get(IProblem.A_PREPROC_POUND_ERROR)); break; case IProblem.PREPROCESSOR_INCLUSION_NOT_FOUND : buffer.append(arguments.get(IProblem.A_PREPROC_INCLUDE_FILENAME)); break; case IProblem.PREPROCESSOR_DEFINITION_NOT_FOUND : buffer.append(arguments.get(IProblem.A_PREPROC_MACRO_NAME)); break; case IProblem.PREPROCESSOR_UNBALANCE_CONDITION : buffer.append(arguments.get(IProblem.A_PREPROC_CONDITIONAL_MISMATCH)); break; case IProblem.PREPROCESSOR_INVALID_MACRO_DEFN : buffer.append(arguments.get(IProblem.A_PREPROC_MACRO_NAME)); break; case IProblem.PREPROCESSOR_INVALID_DIRECTIVE : buffer.append(arguments.get(IProblem.A_PREPROC_UNKNOWN_DIRECTIVE)); break; case IProblem.PREPROCESSOR_INVALID_MACRO_REDEFN : buffer.append(arguments.get(IProblem.A_PREPROC_MACRO_NAME)); break; case IProblem.PREPROCESSOR_CONDITIONAL_EVAL_ERROR : buffer.append(arguments.get(IProblem.A_PREPROC_CONDITION)); break; case IProblem.PREPROCESSOR_MACRO_USAGE_ERROR : buffer.append(arguments.get(IProblem.A_PREPROC_MACRO_NAME)); break; case IProblem.PREPROCESSOR_MACRO_PASTING_ERROR : buffer.append(arguments.get(IProblem.A_PREPROC_MACRO_NAME)); break; case IProblem.PREPROCESSOR_CIRCULAR_INCLUSION : buffer.append(arguments.get(IProblem.A_PREPROC_INCLUDE_FILENAME)); break; case IProblem.SCANNER_BAD_CHARACTER : buffer.append( arguments.get(IProblem.A_SCANNER_BADCHAR)); break; case IProblem.SCANNER_UNBOUNDED_STRING : case IProblem.SCANNER_INVALID_ESCAPECHAR : case IProblem.SCANNER_BAD_FLOATING_POINT : case IProblem.SCANNER_BAD_HEX_FORMAT : case IProblem.SCANNER_UNEXPECTED_EOF : break; default : return null; } buffer.append( IN_FILE ); buffer.append(fileName); buffer.append( ON_LINE ); buffer.append(lineNumber); return buffer.toString(); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/71de5821df404e1b0f440c5ac586d3c3934a187b/ScannerProblemFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/ScannerProblemFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
23836,
12,
474,
612,
16,
1635,
1775,
16,
509,
13629,
16,
1149,
8526,
3968,
13,
202,
95,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
12,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
23836,
12,
474,
612,
16,
1635,
1775,
16,
509,
13629,
16,
1149,
8526,
3968,
13,
202,
95,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
12,
3... |
String filePart = toEPR.getAddress(); String[] values = Utils.parseRequestURLForServiceAndOperation( filePart); if (values[0] != null) { serviceName = new QName(values[0]); AxisConfiguration registry = messageContext.getSystemContext().getAxisConfiguration(); return registry.getService(serviceName.getLocalPart()); | String filePart = toEPR.getAddress(); String[] values = Utils.parseRequestURLForServiceAndOperation( filePart); if (values[0] != null) { serviceName = new QName(values[0]); AxisConfiguration registry = messageContext.getSystemContext().getAxisConfiguration(); return registry.getService(serviceName.getLocalPart()); | public ServiceDescription findService(MessageContext messageContext) throws AxisFault { EndpointReference toEPR = messageContext.getTo(); ServiceDescription service = null; QName serviceName = new QName(toEPR.getAddress()); String filePart = toEPR.getAddress(); String[] values = Utils.parseRequestURLForServiceAndOperation( filePart); if (values[0] != null) { serviceName = new QName(values[0]); AxisConfiguration registry = messageContext.getSystemContext().getAxisConfiguration(); return registry.getService(serviceName.getLocalPart()); } return service; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/e00b017080037b2d0c82d998b8d3862245536271/AddressingBasedDispatcher.java/clean/modules/core/src/org/apache/axis2/engine/AddressingBasedDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1956,
3291,
1104,
1179,
12,
1079,
1042,
883,
1042,
13,
1216,
15509,
7083,
288,
3639,
6961,
2404,
358,
41,
8025,
273,
883,
1042,
18,
588,
774,
5621,
3639,
1956,
3291,
1156,
273,
446,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1956,
3291,
1104,
1179,
12,
1079,
1042,
883,
1042,
13,
1216,
15509,
7083,
288,
3639,
6961,
2404,
358,
41,
8025,
273,
883,
1042,
18,
588,
774,
5621,
3639,
1956,
3291,
1156,
273,
446,... |
if(qAtom.matches(g2.getAtomAt(0))) return true; else return false; | return qAtom.matches(g2.getAtomAt(0)); | public static boolean isIsomorph(IAtomContainer g1, IAtomContainer g2) throws CDKException{ if (g2.getAtomCount() != g1.getAtomCount()) return false; // check single atom case if (g2.getAtomCount() == 1) { IAtom atom = g1.getAtomAt(0); IAtom atom2 = g2.getAtomAt(0); if (atom instanceof IQueryAtom) { IQueryAtom qAtom = (IQueryAtom)atom; if(qAtom.matches(g2.getAtomAt(0))) return true; else return false; } else if (atom2 instanceof IQueryAtom) { IQueryAtom qAtom = (IQueryAtom)atom2; if(qAtom.matches(g1.getAtomAt(0))) return true; else return false; } else { String atomSymbol = atom.getSymbol(); if(g1.getAtomAt(0).getSymbol().equals(atomSymbol)) return true; else return false; } } return (getIsomorphMap(g1, g2) != null); } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/56c201de67d3ab0b41150bdf3c9bae4980107820/UniversalIsomorphismTester.java/clean/src/org/openscience/cdk/isomorphism/UniversalIsomorphismTester.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1250,
353,
2520,
362,
7657,
12,
45,
3641,
2170,
314,
21,
16,
13922,
314,
22,
13,
225,
1216,
24570,
95,
202,
225,
309,
261,
75,
22,
18,
588,
3641,
1380,
1435,
480,
314,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
353,
2520,
362,
7657,
12,
45,
3641,
2170,
314,
21,
16,
13922,
314,
22,
13,
225,
1216,
24570,
95,
202,
225,
309,
261,
75,
22,
18,
588,
3641,
1380,
1435,
480,
314,
21,
... |
pushConsumer_ = StructuredProxyPushConsumerHelper.narrow(supplierAdmin.obtain_notification_push_consumer(ClientType.STRUCTURED_EVENT,_proxyIdHolder)); | pushConsumer_ = StructuredProxyPushConsumerHelper.narrow(supplierAdmin .obtain_notification_push_consumer(ClientType.STRUCTURED_EVENT, _proxyIdHolder)); | public void connect(EventChannel channel, boolean useOrSemantic) throws AdminLimitExceeded, AlreadyConnected, AdminNotFound { Assert.assertNotNull(channel); StructuredPushSupplierPOATie senderTie = new StructuredPushSupplierPOATie(this); StructuredPushSupplier sender = senderTie._this(testCase_.getORB()); SupplierAdmin supplierAdmin = channel.default_supplier_admin(); Assert.assertNotNull(supplierAdmin); Assert.assertEquals(supplierAdmin, channel.get_supplieradmin(supplierAdmin.MyID())); IntHolder _proxyIdHolder = new IntHolder(); pushConsumer_ = StructuredProxyPushConsumerHelper.narrow(supplierAdmin.obtain_notification_push_consumer(ClientType.STRUCTURED_EVENT,_proxyIdHolder)); Assert.assertEquals(pushConsumer_.MyType(), ProxyType.PUSH_STRUCTURED); pushConsumer_.connect_structured_push_supplier(sender); connected_ = true; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b2aa91a672be3f8bd14c3402b93d9a1d919f304c/StructuredPushSender.java/buggy/test/regression/src/org/jacorb/test/notification/StructuredPushSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3077,
12,
1133,
2909,
1904,
16,
13491,
1250,
999,
1162,
13185,
9941,
13,
3639,
1216,
7807,
3039,
10069,
16,
9079,
17009,
8932,
16,
9079,
7807,
2768,
288,
3639,
5452,
18,
11231,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3077,
12,
1133,
2909,
1904,
16,
13491,
1250,
999,
1162,
13185,
9941,
13,
3639,
1216,
7807,
3039,
10069,
16,
9079,
17009,
8932,
16,
9079,
7807,
2768,
288,
3639,
5452,
18,
11231,
... |
try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } | if ((string = EvalHelper.evalString("ondblclick", getOndblclickExpr(), this, pageContext)) != null) setOndblclick(string); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIdName((String) evalAttr("idName", getIdNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } } | 2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/022bd23c954cf673e53731849d562b3c295473f1/ELRadioTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELRadioTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
... |
protected boolean isLatinChar(char c) { Character.UnicodeBlock block = Character.UnicodeBlock.of(c); if (block == Character.UnicodeBlock.BASIC_LATIN || block == Character.UnicodeBlock.LATIN_1_SUPPLEMENT || block == Character.UnicodeBlock.LATIN_EXTENDED_ADDITIONAL || block == Character.UnicodeBlock.LATIN_EXTENDED_A || block == Character.UnicodeBlock.LATIN_EXTENDED_B) { return true; } else { return false; } } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/792794ccd7fe962007f2619e9327e785b859ecfe/GlyphLayout.java/clean/sources/org/apache/batik/gvt/text/GlyphLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
353,
6607,
267,
2156,
12,
3001,
276,
13,
288,
3639,
6577,
18,
16532,
1768,
1203,
273,
6577,
18,
16532,
1768,
18,
792,
12,
71,
1769,
7734,
309,
261,
2629,
422,
6577,
18,
1653... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
353,
6607,
267,
2156,
12,
3001,
276,
13,
288,
3639,
6577,
18,
16532,
1768,
1203,
273,
6577,
18,
16532,
1768,
18,
792,
12,
71,
1769,
7734,
309,
261,
2629,
422,
6577,
18,
1653... | ||
public MICommand(String oper, String[] param) { | public MICommand(String oper) { | public MICommand(String oper, String[] param) { this.operation = oper; this.parameters = param; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/9b08976a71f22f4a0b30d74daf72892799002c1b/MICommand.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/command/MICommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
20806,
2189,
12,
780,
2255,
16,
514,
8526,
579,
13,
288,
202,
202,
2211,
18,
7624,
273,
2255,
31,
202,
202,
2211,
18,
3977,
273,
579,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
20806,
2189,
12,
780,
2255,
16,
514,
8526,
579,
13,
288,
202,
202,
2211,
18,
7624,
273,
2255,
31,
202,
202,
2211,
18,
3977,
273,
579,
31,
202,
97,
2,
-100,
-100,
-100,
-100,... |
return true; | private boolean createExistingProject(final ProjectRecord record) { String projectName = record.getProjectName(); final IWorkspace workspace = ResourcesPlugin.getWorkspace(); final IProject project = workspace.getRoot().getProject(projectName); if (record.description == null) { record.description = workspace.newProjectDescription(projectName); IPath locationPath = new Path(record.projectFile.getAbsolutePath()); // If it is under the root use the default location if (Platform.getLocation().isPrefixOf(locationPath)) record.description.setLocation(null); else record.description.setLocation(locationPath); } else record.description.setName(projectName); // create the new project operation WorkspaceModifyOperation op = new WorkspaceModifyOperation() { protected void execute(IProgressMonitor monitor) throws CoreException { monitor.beginTask("", 2000); //$NON-NLS-1$ project.create(record.description, new SubProgressMonitor( monitor, 1000)); if (monitor.isCanceled()) throw new OperationCanceledException(); project.open(IResource.BACKGROUND_REFRESH, new SubProgressMonitor(monitor, 1000)); } }; // run the new project creation operation try { getContainer().run(true, true, op); } catch (InterruptedException e) { return false; } catch (InvocationTargetException e) { // ie.- one of the steps resulted in a core exception Throwable t = e.getTargetException(); if (t instanceof CoreException) { if (((CoreException) t).getStatus().getCode() == IResourceStatus.CASE_VARIANT_EXISTS) { MessageDialog.openError(getShell(), "", //$NON-NLS-1$ "" //$NON-NLS-1$ ); } else { ErrorDialog.openError(getShell(), "", //$NON-NLS-1$ null, ((CoreException) t).getStatus()); } } return false; } return true; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c5b53db04b762448fd28aa367df5e50427bbd70d/WizardProjectsImportPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
752,
9895,
4109,
12,
6385,
5420,
2115,
1409,
13,
288,
202,
202,
780,
17234,
273,
1409,
18,
588,
4109,
461,
5621,
202,
202,
6385,
467,
8241,
6003,
273,
8128,
3773,
18,
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,
1152,
1250,
752,
9895,
4109,
12,
6385,
5420,
2115,
1409,
13,
288,
202,
202,
780,
17234,
273,
1409,
18,
588,
4109,
461,
5621,
202,
202,
6385,
467,
8241,
6003,
273,
8128,
3773,
18,
5... | |
if (contentType.equals("elemOnly")) return elemOnly; else if (contentType.equals("textOnly")) return textOnly; else if (contentType.equals("mixed")) return mixed; else if (contentType.equals("empty")) return empty; else if (contentType.equals("any")) return any; | if (contentType.equals(names[ELEMENT_ONLY])) return elemOnly; else if (contentType.equals(names[TEXT_ONLY])) return textOnly; else if (contentType.equals(names[MIXED])) return mixed; else if (contentType.equals(names[EMPTY])) return empty; else if (contentType.equals(names[ANY])) return any; | public static ContentType valueOf(String contentType) throws IllegalArgumentException { if (contentType.equals("elemOnly")) return elemOnly; else if (contentType.equals("textOnly")) return textOnly; else if (contentType.equals("mixed")) return mixed; else if (contentType.equals("empty")) return empty; else if (contentType.equals("any")) return any; else { String err = contentType; err += " is not a valid ContentType"; throw new IllegalArgumentException(err); } } //-- valueOf | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/ff1a52c96715e96dfcc67fbb50bc177b22f64cb3/ContentType.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/xml/schema/ContentType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
11691,
4323,
12,
780,
5064,
13,
540,
1216,
2754,
377,
288,
3639,
309,
261,
22194,
18,
14963,
2932,
10037,
3386,
6,
3719,
327,
3659,
3386,
31,
3639,
469,
309,
261,
22194,
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,
760,
11691,
4323,
12,
780,
5064,
13,
540,
1216,
2754,
377,
288,
3639,
309,
261,
22194,
18,
14963,
2932,
10037,
3386,
6,
3719,
327,
3659,
3386,
31,
3639,
469,
309,
261,
22194,
18,
... |
log.error("\nLink <local host> <local port> <remote host> <remote port>\n"); | System.err.println("\nLink <local host> <local port> <remote host> <remote port>\n"); | public static void main(String[] args) { String local, remote; int local_port, remote_port; if(args.length != 4) { log.error("\nLink <local host> <local port> <remote host> <remote port>\n"); return; } local=args[0]; remote=args[2]; local_port=Integer.parseInt(args[1]); remote_port=Integer.parseInt(args[3]); Link l=new Link(local, local_port, remote, remote_port, new MyReceiver()); try { l.start(); System.out.println(l); BufferedReader in= new BufferedReader(new InputStreamReader(System.in)); while(true) { System.out.print("> "); System.out.flush(); String line=in.readLine(); l.send(line.getBytes()); } } catch(Exception e) { log.error(e); } } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/5ad015d9a78e1da3350d9b398b46b2f5d4508564/Link.java/clean/src/org/jgroups/blocks/Link.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
780,
282,
1191,
16,
2632,
31,
202,
474,
1377,
1191,
67,
655,
16,
2632,
67,
655,
31,
202,
430,
12,
1968,
18,
2469,
480,
1059,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
202,
780,
282,
1191,
16,
2632,
31,
202,
474,
1377,
1191,
67,
655,
16,
2632,
67,
655,
31,
202,
430,
12,
1968,
18,
2469,
480,
1059,
... |
PluginAction proxy = (PluginAction) getAction(); if (proxy != null) { if (proxy.getDelegate() instanceof IActionDelegate2) { ((IActionDelegate2) proxy.getDelegate()).dispose(); } | PluginAction pluginAction = (PluginAction) getAction(); if (pluginAction != null) { pluginAction.disposeDelegate(); | public void dispose() { PluginAction proxy = (PluginAction) getAction(); if (proxy != null) { if (proxy.getDelegate() instanceof IActionDelegate2) { ((IActionDelegate2) proxy.getDelegate()).dispose(); } } PlatformUI.getWorkbench().getActivitySupport().getActivityManager() .removeActivityManagerListener(this); disposeIdentifier(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/f7f7b60d48a71e9564e65b8f312a11a6a6dc8fcf/PluginActionContributionItem.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PluginActionContributionItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
288,
3639,
6258,
1803,
2889,
273,
261,
3773,
1803,
13,
12473,
5621,
3639,
309,
261,
5656,
480,
446,
13,
288,
5411,
309,
261,
5656,
18,
588,
9586,
1435,
1276,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15825,
1435,
288,
3639,
6258,
1803,
2889,
273,
261,
3773,
1803,
13,
12473,
5621,
3639,
309,
261,
5656,
480,
446,
13,
288,
5411,
309,
261,
5656,
18,
588,
9586,
1435,
1276,
467,
... |
Message msg = (Message) child; boolean recalcSubject = false; try { getSenderList(); SenderList.ListEntry oldFirst = mSenderList.getEarliest(); int firstId = oldFirst != null ? oldFirst.messageId : -1; if (oldFirst == null) ZimbraLog.mailbox.info("empty conversation sender list before remove: " + mId); mSenderList.remove(msg); SenderList.ListEntry newFirst = mSenderList.getEarliest(); recalcSubject = newFirst == null || firstId != newFirst.messageId; if (newFirst == null) ZimbraLog.mailbox.info("empty conversation sender list after remove: " + mId); } catch (SenderList.RefreshException e) { getSenderList(true); try { mSenderList.remove(msg); } catch (Exception e2) {} recalcSubject = true; } mData.size--; if (recalcSubject) { try { SenderList.ListEntry first = mSenderList.getEarliest(); if (first != null) recalculateSubject(mMailbox.getMessageById(first.messageId)); else ZimbraLog.mailbox.info("empty conversation sender list at subject recalc: " + mId); } catch (MailServiceException.NoSuchItemException nsie) { recalcSubject = false; ZimbraLog.mailbox.warn("can't fetch message " + mSenderList.getEarliest().messageId + " to calculate conv subject"); } } if (recalcSubject) saveData(null); else saveMetadata(); | List<Message> msgs = getMessages(SORT_ID_ASCENDING); msgs.remove(child); recalculateMetadata(msgs, true); | void removeChild(MailItem child) throws ServiceException { super.removeChild(child); // remove the last message and the conversation goes away if (getMessageCount() == 0) { delete(); return; } // update inherited tags, if applicable if (mInheritedTagSet != null && (child.mData.tags != 0 || child.mData.flags != 0)) { int oldFlags = mData.flags; long oldTags = mData.tags; if (child.mData.tags != 0) mInheritedTagSet.updateTags(child.mData.tags, false); if (child.mData.flags != 0) mInheritedTagSet.updateFlags(child.mData.flags, false); if (mData.flags != oldFlags) markItemModified(Change.MODIFIED_FLAGS); if (mData.tags != oldTags) markItemModified(Change.MODIFIED_TAGS); } markItemModified(Change.MODIFIED_SIZE | Change.MODIFIED_SENDERS); Message msg = (Message) child; boolean recalcSubject = false; try { getSenderList(); // find the id of the old "first message" in the conversation SenderList.ListEntry oldFirst = mSenderList.getEarliest(); int firstId = oldFirst != null ? oldFirst.messageId : -1; if (oldFirst == null) ZimbraLog.mailbox.info("empty conversation sender list before remove: " + mId); // remove the message from the cached sender list mSenderList.remove(msg); // and determine if the "first message" in the conversation has changed SenderList.ListEntry newFirst = mSenderList.getEarliest(); recalcSubject = newFirst == null || firstId != newFirst.messageId; if (newFirst == null) ZimbraLog.mailbox.info("empty conversation sender list after remove: " + mId); } catch (SenderList.RefreshException e) { // get a no-gaps version of the SenderList, so there's no chance that the remove can throw an exception getSenderList(true); try { mSenderList.remove(msg); } catch (Exception e2) {} recalcSubject = true; } // need to postpone this until *after* any sender list recalculation, as that can reset the conversation size mData.size--; if (recalcSubject) { try { SenderList.ListEntry first = mSenderList.getEarliest(); if (first != null) recalculateSubject(mMailbox.getMessageById(first.messageId)); else ZimbraLog.mailbox.info("empty conversation sender list at subject recalc: " + mId); } catch (MailServiceException.NoSuchItemException nsie) { recalcSubject = false; ZimbraLog.mailbox.warn("can't fetch message " + mSenderList.getEarliest().messageId + " to calculate conv subject"); } } if (recalcSubject) saveData(null); else saveMetadata(); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/596ce0d7c062c13b7655937418ccce2b30b42165/Conversation.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/Conversation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
14213,
12,
6759,
1180,
1151,
13,
1216,
16489,
288,
3639,
2240,
18,
4479,
1763,
12,
3624,
1769,
3639,
368,
1206,
326,
1142,
883,
471,
326,
10039,
13998,
10804,
3639,
309,
261,
24906,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14213,
12,
6759,
1180,
1151,
13,
1216,
16489,
288,
3639,
2240,
18,
4479,
1763,
12,
3624,
1769,
3639,
368,
1206,
326,
1142,
883,
471,
326,
10039,
13998,
10804,
3639,
309,
261,
24906,
... |
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); | public quickfix.field.EncodedText getEncodedText() throws FieldNotFound { quickfix.field.EncodedText value = new quickfix.field.EncodedText(); | public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/ListStatus.java/clean/src/java/src/quickfix/fix43/ListStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
28799,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
460,
273,
394,
2358,
18,
19525,
904,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
28799,
1528,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
460,
273,
394,
2358,
18,
19525,
904,... |
public static Object get(final Object obj) { return getDefaults().get(obj); | public static Object get(final Object obj, final Locale locale) { return getDefaults().get(obj, locale); | public static Object get(final Object obj) { return getDefaults().get(obj); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9bad25bc3f8f9cc701dfb9555df351ae7577a2d8/UIManager.java/buggy/modules/swing/src/main/java/common/javax/swing/UIManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
336,
12,
6385,
1033,
1081,
13,
288,
3639,
327,
4829,
87,
7675,
588,
12,
2603,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
336,
12,
6385,
1033,
1081,
13,
288,
3639,
327,
4829,
87,
7675,
588,
12,
2603,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Driver driver = (Driver) driverComboBox.getSelectedItem(); Patch p = new Patch(patchSysex, driver); | IPatchDriver driver = (IPatchDriver) driverComboBox.getSelectedItem(); IPatch p = driver.createPatch(patchSysex); | protected void pasteIntoSelectedFrame() {// ErrorMsg.reportStatus("SysexGetDialog->pasteIntoSelectedFrame: " + sysexSize); if (sysexSize < 20) return; byte[] patchSysex = new byte[sysexSize]; ListIterator it = queue.listIterator(); for (int size, i = 0; it.hasNext(); i += size) { SysexMessage msg = (SysexMessage) it.next(); size = msg.getLength(); byte[] d = msg.getMessage(); System.arraycopy(d, 0, patchSysex, i, size); } // create Patch Driver driver = (Driver) driverComboBox.getSelectedItem(); Patch p = new Patch(patchSysex, driver); // if Conveter for the patch exist, convert the patch. IPatch[] patarray = (IPatch[])p.dissect(); for (int k = 0; k < patarray.length; k++) { IPatch pk = patarray[k]; StringBuffer patchString = pk.getPatchHeader(); // Maybe you don't get the expected patch! // Check all devices/drivers again! if (!(pk.getDriver().supportsPatch(patchString,pk))) { testforDriver: { for (int i = 0; i < PatchEdit.appConfig.deviceCount(); i++) { // first check the requested device. // then starting index '1'. (index 0 is 'generic driver') Device device = (i == 0) ? pk.getDevice() : AppConfig.getDevice(i); for (int j=0;j<device.driverCount();j++) { Driver d = device.getDriver(j); if (!(d instanceof Converter) && d.supportsPatch(patchString, pk)) { // driver found driver = d; pk.setDriver(driver); driver.trimSysex(pk); JOptionPane.showMessageDialog (null, "You requested a "+driver.toString()+" patch!"+ "\nBut you got a "+pk.getDriver().toString()+" patch.", "Warning", JOptionPane.WARNING_MESSAGE); break testforDriver; } } // end of driver (j) loop } // end of device (i) loop // driver not found pk.setDriver(null); //reset pk.setComment("Probably a " + LookupManufacturer.get(pk.getByteArray()[1], pk.getByteArray()[2], pk.getByteArray()[3]) + " Patch, Size: " + pk.getByteArray().length); JOptionPane.showMessageDialog (null, "You requested a "+driver.toString()+" patch!"+ "\nBut you got a not supported patch!\n"+pk.getComment(), "Warning", JOptionPane.WARNING_MESSAGE); } // testforDriver } // !(pk.getDriver().supportsPatch(patchString,pk)) // paste the patch. try { ((PatchBasket) JSLDesktop.getSelectedFrame()).pastePatch(pk); } catch (Exception ex) { JOptionPane.showMessageDialog (null, "Library to Receive into must be the focused Window.", "Error", JOptionPane.ERROR_MESSAGE); } } // end of k loop } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/af6640fd9aa925c4d7044770be761a3432d7c66e/SysexGetDialog.java/clean/JSynthLib/core/SysexGetDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
19401,
5952,
7416,
3219,
1435,
288,
759,
377,
1068,
3332,
18,
6006,
1482,
2932,
10876,
20909,
967,
6353,
2122,
29795,
5952,
7416,
3219,
30,
315,
397,
1393,
20909,
1225,
1769,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19401,
5952,
7416,
3219,
1435,
288,
759,
377,
1068,
3332,
18,
6006,
1482,
2932,
10876,
20909,
967,
6353,
2122,
29795,
5952,
7416,
3219,
30,
315,
397,
1393,
20909,
1225,
1769,
565... |
getSingletonClass().includeModule(module); } | getSingletonClass().includeModule(module); } | public void extendObject(RubyModule module) { getSingletonClass().includeModule(module); } | 47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2133,
921,
12,
54,
10340,
3120,
1605,
13,
288,
202,
202,
588,
19571,
797,
7675,
6702,
3120,
12,
2978,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2133,
921,
12,
54,
10340,
3120,
1605,
13,
288,
202,
202,
588,
19571,
797,
7675,
6702,
3120,
12,
2978,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return JobConf.getLocalFile(mapTaskId, "part-"+partition+".out"); | return this.jobConf.getLocalFile(mapTaskId, "part-"+partition+".out"); | public static File getOutputFile(String mapTaskId, int partition) throws IOException { return JobConf.getLocalFile(mapTaskId, "part-"+partition+".out"); } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/MapOutputFile.java/buggy/src/java/org/apache/nutch/mapred/MapOutputFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1387,
11062,
812,
12,
780,
852,
30182,
16,
509,
3590,
13,
565,
1216,
1860,
288,
565,
327,
333,
18,
4688,
3976,
18,
588,
2042,
812,
12,
1458,
30182,
16,
315,
2680,
10951,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
760,
1387,
11062,
812,
12,
780,
852,
30182,
16,
509,
3590,
13,
565,
1216,
1860,
288,
565,
327,
333,
18,
4688,
3976,
18,
588,
2042,
812,
12,
1458,
30182,
16,
315,
2680,
10951,
15,
... |
public void mMISC() throws RecognitionException { int MISC_StartIndex = input.index(); try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 48) ) { return ; } // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' | '>>=' ) int alt1=38; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=24; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=34; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '-': alt1=27; break; case '=': alt1=32; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '+': alt1=26; break; case '=': alt1=30; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=23; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case '=': switch ( input.LA(2) ) { case '+': alt1=31; break; case '-': alt1=33; break; case '=': alt1=29; break; case '/': alt1=37; break; case '*': alt1=35; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} break; case '(': alt1=19; break; case ')': alt1=20; break; case '\'': alt1=21; break; case '\\': alt1=22; break; case '<': alt1=25; break; case '>': int LA1_24 = input.LA(2); if ( LA1_24=='>' ) { int LA1_45 = input.LA(3); if ( LA1_45=='=' ) { alt1=38; } else if ( LA1_45=='>' ) { alt1=28; } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1011:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' | \'>>=\' );", 1, 45, input); throw nvae; } } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1011:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' | \'>>=\' );", 1, 24, input); throw nvae; } break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1011:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' | \'>>=\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:17: '!' { match('!'); if (failed) return ; } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:23: '@' { match('@'); if (failed) return ; } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:29: '$' { match('$'); if (failed) return ; } break; case 4 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:35: '%' { match('%'); if (failed) return ; } break; case 5 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:41: '^' { match('^'); if (failed) return ; } break; case 6 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:47: '&' { match('&'); if (failed) return ; } break; case 7 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:53: '*' { match('*'); if (failed) return ; } break; case 8 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:59: '_' { match('_'); if (failed) return ; } break; case 9 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:65: '-' { match('-'); if (failed) return ; } break; case 10 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1012:71: '+' { match('+'); if (failed) return ; } break; case 11 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:19: '|' { match('|'); if (failed) return ; } break; case 12 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:25: ',' { match(','); if (failed) return ; } break; case 13 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:31: '{' { match('{'); if (failed) return ; } break; case 14 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:37: '}' { match('}'); if (failed) return ; } break; case 15 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:43: '[' { match('['); if (failed) return ; } break; case 16 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:49: ']' { match(']'); if (failed) return ; } break; case 17 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:55: '=' { match('='); if (failed) return ; } break; case 18 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:61: '/' { match('/'); if (failed) return ; } break; case 19 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:67: '(' { match('('); if (failed) return ; } break; case 20 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:73: ')' { match(')'); if (failed) return ; } break; case 21 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:79: '\'' { match('\''); if (failed) return ; } break; case 22 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1013:86: '\\' { match('\\'); if (failed) return ; } break; case 23 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:19: '||' { match("||"); if (failed) return ; } break; case 24 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:26: '&&' { match("&&"); if (failed) return ; } break; case 25 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:33: '<<<' { match("<<<"); if (failed) return ; } break; case 26 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:41: '++' { match("++"); if (failed) return ; } break; case 27 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:48: '--' { match("--"); if (failed) return ; } break; case 28 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:55: '>>>' { match(">>>"); if (failed) return ; } break; case 29 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:63: '==' { match("=="); if (failed) return ; } break; case 30 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:70: '+=' { match("+="); if (failed) return ; } break; case 31 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:77: '=+' { match("=+"); if (failed) return ; } break; case 32 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:84: '-=' { match("-="); if (failed) return ; } break; case 33 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:91: '=-' { match("=-"); if (failed) return ; } break; case 34 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:97: '*=' { match("*="); if (failed) return ; } break; case 35 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1014:104: '=*' { match("=*"); if (failed) return ; } break; case 36 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1015:19: '/=' { match("/="); if (failed) return ; } break; case 37 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1015:26: '=/' { match("=/"); if (failed) return ; } break; case 38 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1015:33: '>>=' { match(">>="); if (failed) return ; } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 48, MISC_StartIndex); } } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/cb210a30853642e270a3bba6ce570409f6046852/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
7492,
2312,
1435,
1216,
9539,
288,
3639,
509,
20806,
2312,
67,
16792,
273,
810,
18,
1615,
5621,
3639,
775,
288,
5411,
509,
618,
273,
20806,
2312,
31,
5411,
509,
787,
273,
... | ||
assertEquals("orange-"+oldCount, fruit0.getName()); | assertEquals("orange-" + oldCount, fruit0.getName()); | public void testWithSubst() throws Exception { List<FruitShell> fsList = doFirstPart("fruitWithSubst.xml"); assertNotNull(fsList); assertEquals(1, fsList.size()); FruitShell fs0 = fsList.get(0); assertNotNull(fs0); assertEquals("fs0", fs0.getName()); int oldCount = FruitFactory.count; Fruit fruit0 = fs0.fruitFactory.buildFruit(); assertTrue(fruit0 instanceof WeightytFruit); assertEquals("orange-"+oldCount, fruit0.getName()); assertEquals(1.2, ((WeightytFruit) fruit0).getWeight()); } | 52049 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52049/b17afdd922fb715ce4d262907d6b474541e9bd32/FruitConfigurationTest.java/clean/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
1190,
1676,
334,
1435,
1216,
1185,
288,
565,
987,
32,
7167,
14945,
13220,
34,
2662,
682,
273,
741,
3759,
1988,
2932,
4840,
14945,
1190,
1676,
334,
18,
2902,
8863,
565,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1190,
1676,
334,
1435,
1216,
1185,
288,
565,
987,
32,
7167,
14945,
13220,
34,
2662,
682,
273,
741,
3759,
1988,
2932,
4840,
14945,
1190,
1676,
334,
18,
2902,
8863,
565,
25... |
java.util.List neighbours = ac.getConnectedAtomsList(atom); int acounter = 0; for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (neighbour.getSymbol().equals("F") || neighbour.getSymbol().equals("I") || neighbour.getSymbol().equals("Cl") || neighbour.getSymbol().equals("Br")) { acounter += 1; } } return acounter; } | java.util.List neighbours = ac.getConnectedAtomsList(atom); int acounter = 0; for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (neighbour.getSymbol().equals("F") || neighbour.getSymbol().equals("I") || neighbour.getSymbol().equals("Cl") || neighbour.getSymbol().equals("Br")) { acounter += 1; } } return acounter; } | private int getHalogenCount(IAtomContainer ac, org.openscience.cdk.interfaces.IAtom atom) { java.util.List neighbours = ac.getConnectedAtomsList(atom); int acounter = 0; for (int i = 0; i < neighbours.size(); i++) { IAtom neighbour = (IAtom)neighbours.get(i); if (neighbour.getSymbol().equals("F") || neighbour.getSymbol().equals("I") || neighbour.getSymbol().equals("Cl") || neighbour.getSymbol().equals("Br")) { acounter += 1; } } return acounter; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/76f1c3db1c889a4fd7bd9dd2e93ee1e9a39ec301/XLogPDescriptor.java/clean/src/org/openscience/cdk/qsar/descriptors/molecular/XLogPDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
7628,
6238,
275,
1380,
12,
45,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
3641,
3179,
13,
288,
202,
202,
6290,
18,
1367,
18,
682... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
7628,
6238,
275,
1380,
12,
45,
3641,
2170,
1721,
16,
2358,
18,
20346,
71,
6254,
18,
71,
2883,
18,
15898,
18,
45,
3641,
3179,
13,
288,
202,
202,
6290,
18,
1367,
18,
682... |
source.append((char)ts.LC); source.append((char)ts.EOL); | sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); | private Object statementHelper(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case TokenStream.IF: { skipsemi = true; source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { source.append((char)ts.RC); source.append((char)ts.ELSE); source.append((char)ts.LC); source.append((char)ts.EOL); ifFalse = statement(ts, source); } source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case TokenStream.SWITCH: { skipsemi = true; source.append((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); source.append((char)ts.LP); nf.addChildToBack(pn, expr(ts, source, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); source.append((char)ts.LC); source.append((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case TokenStream.CASE: source.append((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, source, false)); source.append((char)ts.COLON); source.append((char)ts.EOL); break; case TokenStream.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); source.append((char)ts.DEFAULT); source.append((char)ts.COLON); source.append((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts, source)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } source.append((char)ts.RC); source.append((char)ts.EOL); break; } case TokenStream.WHILE: { skipsemi = true; source.append((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case TokenStream.DO: { source.append((char)ts.DO); source.append((char)ts.LC); source.append((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts, source); source.append((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); source.append((char)ts.WHILE); Object cond = condition(ts, source); pn = nf.createDoWhile(body, cond, lineno); break; } case TokenStream.FOR: { skipsemi = true; source.append((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); source.append((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, source, true); } else { init = expr(ts, source, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); source.append((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, source, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, source, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, source, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case TokenStream.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; source.append((char)ts.TRY); source.append((char)ts.LC); source.append((char)ts.EOL); tryblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } source.append((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); source.append((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); source.addString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { source.append((char)ts.IF); catchCond = expr(ts, source, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); source.append((char)ts.LC); source.append((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts, source), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); source.append((char)ts.RC); source.append((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { source.append((char)ts.FINALLY); source.append((char)ts.LC); source.append((char)ts.EOL); finallyblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case TokenStream.THROW: { int lineno = ts.getLineno(); source.append((char)ts.THROW); pn = nf.createThrow(expr(ts, source, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case TokenStream.BREAK: { int lineno = ts.getLineno(); source.append((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case TokenStream.CONTINUE: { int lineno = ts.getLineno(); source.append((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case TokenStream.WITH: { skipsemi = true; source.append((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); source.append((char)ts.LP); Object obj = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case TokenStream.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case TokenStream.RETURN: { Object retExpr = null; int lineno = 0; source.append((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case TokenStream.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case TokenStream.ERROR: // Fall thru, to have a node for error recovery to work on case TokenStream.EOL: case TokenStream.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, source, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. source.append((char)ts.COLON); source.append((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(pn); pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { source.append((char)ts.SEMI); source.append((char)ts.EOL); } return pn; } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/92ccdd736e7a1516e4fb6d1eaf915e7021c8dc95/Parser.java/buggy/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3021,
2276,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3021,
2276,
12,
1345,
1228,
3742,
16,
4998,
1084,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
1033,
11059,
273,
446,
31,
3639,
368,
971,
2488,
307,
9197,
422,
638,
... |
if (mod.isLeaf(curr)) | if (isLeaf) | int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = tree.getVisibleRect(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; boolean isRootVisible = tree.isRootVisible(); if (mod.isLeaf(curr)) { paintNode(g, indentation + 4, descent, tree, curr, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintNode(g, indentation + 4, descent, tree, curr, false); descent += getRowHeight(); y0 += halfHeight; } int max = 0; if (!mod.isLeaf(curr)) max = mod.getChildCount(curr); if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) { for (int i = 0; i < max; i++) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if ((!isRootVisible && !curr.equals(mod.getRoot())) || isRootVisible) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; paintHorizontalLine(g, (JComponent) tree, heightOfLine, indentation + halfWidth, indentation + rightChildIndent); } descent = paintRecursive(g, indent, descent, i, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (tree.isExpanded(new TreePath(getPathToRoot(curr, 0)))) if (y0 != heightOfLine && !mod.isLeaf(curr) && mod.getChildCount(curr) > 0) { g.setColor(getHashColor()); paintVerticalLine(g, (JComponent) tree, indentation + halfWidth, y0, heightOfLine); } return descent; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9ec43c5570a0f69e3d8c8b733283719f52a770/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
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,
282,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
509,
1151,
1854,
16,
5397,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
225,
288,
... |
rlog.log(RMILog.VERBOSE, "ois = " + ois); | rlog.log(RMILog.VERBOSE, Messages.getString("rmi.log.55", ois)); | public static void main(String args[]) { rlog.log(RMILog.VERBOSE, "ActivationGroupImpl.main: "); if (System.getSecurityManager() == null) { System.setSecurityManager(new RMISecurityManager()); } try { rlog.log(RMILog.VERBOSE, "System.in.available = " + System.in.available()); RMIObjectInputStream ois = new RMIObjectInputStream( new BufferedInputStream(System.in)); rlog.log(RMILog.VERBOSE, "ois = " + ois); ActivationGroupID agid = (ActivationGroupID) ois.readObject(); rlog.log(RMILog.VERBOSE, "agid = " + agid); ActivationGroupDesc agdesc = (ActivationGroupDesc) ois.readObject(); rlog.log(RMILog.VERBOSE, "agdesc = " + agdesc); long incarnation = ois.readLong(); rlog.log(RMILog.VERBOSE, "incarnation=" + incarnation); ActivationGroup.createGroup(agid, agdesc, incarnation); } catch (Throwable t) { rlog.log(RMILog.VERBOSE, ": " + "Exception: " + t); t.printStackTrace(); } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/b348e06c6dac9b88f66841b025d00af43b5afac0/ActivationGroupImpl.java/buggy/modules/rmi/src/main/java/org/apache/harmony/rmi/activation/ActivationGroupImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
436,
1330,
18,
1330,
12,
54,
7492,
1343,
18,
21900,
16,
315,
14857,
1114,
2828,
18,
5254,
30,
315,
1769,
3639,
309,
261,
3163,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
833,
63,
5717,
288,
3639,
436,
1330,
18,
1330,
12,
54,
7492,
1343,
18,
21900,
16,
315,
14857,
1114,
2828,
18,
5254,
30,
315,
1769,
3639,
309,
261,
3163,
... |
if (isReserved(t)) { return (String) reservedTypes.get(t); } else { return t; } } | if (isReserved(t)) { return (String) reservedTypes.get(t); } else { return t; } } | public String getType(String t) { if (isReserved(t)) { return (String) reservedTypes.get(t); } else { return t; } } | 3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/8a7f5eefd6d08ce575d82dee6d963fc83f20a5c0/TypeConverter.java/clean/apigen/src/apigen/gen/TypeConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
3130,
12,
780,
268,
13,
288,
202,
202,
430,
261,
291,
10435,
12,
88,
3719,
288,
1082,
202,
2463,
261,
780,
13,
8735,
2016,
18,
588,
12,
88,
1769,
202,
202,
97,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
3130,
12,
780,
268,
13,
288,
202,
202,
430,
261,
291,
10435,
12,
88,
3719,
288,
1082,
202,
2463,
261,
780,
13,
8735,
2016,
18,
588,
12,
88,
1769,
202,
202,
97,
202,
2... |
void finished(JobInfo info); | void finished(JobTreeElement jte); | void finished(JobInfo info); | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/f52d6b94fa30f7dd2c2921a0ba5441c40e4c4f88/FinishedJobs.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/FinishedJobs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
6708,
12,
2278,
966,
1123,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
6708,
12,
2278,
966,
1123,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
registeredFilters.addAll(readExtension(tracker, extensions[i])); | IExtension extension = extensions[i]; processExtension(tracker, extension); | private MarkerSupportRegistry() { IExtensionTracker tracker = PlatformUI.getWorkbench() .getExtensionTracker(); IExtensionPoint point = Platform.getExtensionRegistry() .getExtensionPoint(IDEWorkbenchPlugin.IDE_WORKBENCH, MARKER_SUPPORT); if(point == null) return; IExtension[] extensions = point.getExtensions(); // initial population for (int i = 0; i < extensions.length; i++) { registeredFilters.addAll(readExtension(tracker, extensions[i])); } tracker.registerHandler(this, ExtensionTracker .createExtensionPointFilter(point)); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/627ec473d09ff552a82d62e1c32b07d9c8b6a356/MarkerSupportRegistry.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSupportRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14742,
6289,
4243,
1435,
288,
202,
202,
45,
3625,
8135,
9745,
273,
11810,
5370,
18,
588,
2421,
22144,
1435,
9506,
202,
18,
588,
3625,
8135,
5621,
202,
202,
45,
3625,
2148,
1634... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14742,
6289,
4243,
1435,
288,
202,
202,
45,
3625,
8135,
9745,
273,
11810,
5370,
18,
588,
2421,
22144,
1435,
9506,
202,
18,
588,
3625,
8135,
5621,
202,
202,
45,
3625,
2148,
1634... |
return null; | return nativeResponse; | public Object getNativeResponse() { return null; } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/a06d48b62f091dd04d2ced16f141a9c7e4533f7b/XFormsModelSubmission.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
25945,
1064,
1435,
288,
3639,
327,
6448,
1064,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
25945,
1064,
1435,
288,
3639,
327,
6448,
1064,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
public TreeParent findParentOfNode(IASTNode node) { if (node == null || node.getParent() == null) return null; Iterator itr = children.iterator(); while (itr.hasNext()) { Object o = itr.next(); if (o != null && o instanceof TreeParent) { if ( ((TreeParent)o).getNode() == node.getParent() ) { return (TreeParent)o; } else if ( ((TreeParent)o).hasChildren() ){ TreeParent tree = findParentOfNode( ((TreeParent)o).getChildren(), node ); | private TreeParent findParentOfNode(TreeObject[] trees, IASTNode node) { for (int i=0; i<trees.length; i++) { if (trees[i] != null && trees[i] instanceof TreeParent) { if ( ((TreeParent)trees[i]).getNode() == node.getParent() ) { return (TreeParent)trees[i]; } else if ( ((TreeParent)trees[i]).hasChildren() ){ TreeParent tree = findParentOfNode( ((TreeParent)trees[i]).getChildren(), node ); | public TreeParent findParentOfNode(IASTNode node) { if (node == null || node.getParent() == null) return null; Iterator itr = children.iterator(); while (itr.hasNext()) { Object o = itr.next(); if (o != null && o instanceof TreeParent) { if ( ((TreeParent)o).getNode() == node.getParent() ) { return (TreeParent)o; } else if ( ((TreeParent)o).hasChildren() ){ TreeParent tree = findParentOfNode( ((TreeParent)o).getChildren(), node ); if (tree != null) return tree; } } } return null; // nothing found } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c2d34df02ef660ad025d69d5f8105e295e9509cf/TreeParent.java/buggy/core/org.eclipse.cdt.ui.tests/src/org/eclipse/cdt/ui/tests/DOMAST/TreeParent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
3054,
1104,
3054,
951,
907,
12,
45,
9053,
907,
756,
13,
288,
202,
202,
430,
261,
2159,
422,
446,
747,
756,
18,
588,
3054,
1435,
422,
446,
13,
327,
446,
31,
9506,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4902,
3054,
1104,
3054,
951,
907,
12,
45,
9053,
907,
756,
13,
288,
202,
202,
430,
261,
2159,
422,
446,
747,
756,
18,
588,
3054,
1435,
422,
446,
13,
327,
446,
31,
9506,
202,
... |
Relative.untranslateRelative(c); | Relative.untranslateRelative(c, false); | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds); bounds.x = 0; bounds.y = 0; bounds.height = 0; //dummy style to make sure that text nodes don't get extra padding and such //doesn't work here because blocks may be inside inlines, losing inline styling: //c.pushStyle(CascadedStyle.emptyCascadedStyle); int blockLineHeight = FontUtil.lineHeight(c); LineMetrics blockLineMetrics = c.getTextRenderer().getLineMetrics(c.getGraphics(), c.getCurrentFont(), "thequickbrownfoxjumpedoverthelazydogTHEQUICKBROWNFOXJUMPEDOVERTHELAZYDOG"); // prepare remaining width and first linebox int remaining_width = bounds.width; LineBox curr_line = newLine(box, bounds, null, blockLineMetrics); LinkedList pushedOnFirstLine = null; // account for text-indent CalculatedStyle parentStyle = c.getCurrentStyle(); float indent = parentStyle.getFloatPropertyProportionalWidth(CSSName.TEXT_INDENT, remaining_width, c.getCtx()); remaining_width = remaining_width - (int) indent; curr_line.x = curr_line.x + (int) indent; // more setup LineBox prev_line = new LineBox(); prev_line.setParent(box); prev_line.y = bounds.y; prev_line.height = 0; InlineBox prev_inline = null; InlineBox prev_align_inline = null; // adjust the first line for float tabs // skip adjusting for tabs if this box is cleared if (!box.clear_left && !box.clear_right) { remaining_width = FloatUtil.adjustForTab(c, prev_line, remaining_width); } CalculatedStyle currentStyle = parentStyle; boolean isFirstLetter = true; LinkedList pendingPushStyles = null; int pendingLeftPadding = 0; int pendingRightPadding = 0; // loop until no more nodes while (contentList.size() > 0 && !c.shouldStop()) { Object o = contentList.get(0); contentList.remove(0); if (o instanceof FirstLineStyle) {//can actually only be the first object in list box.firstLineStyle = ((FirstLineStyle) o).getStyle(); c.addFirstLineStyle(box.firstLineStyle); continue; } if (o instanceof FirstLetterStyle) {//can actually only be the first or second object in list box.firstLetterStyle = ((FirstLetterStyle) o).getStyle(); continue; } if (o instanceof StylePush) { CascadedStyle cascaded; StylePush sp = (StylePush) o; if (sp.getElement() == null) { //anonymous inline box cascaded = CascadedStyle.emptyCascadedStyle; } else if (sp.getPseudoElement() != null) { cascaded = c.getCss().getPseudoElementStyle(sp.getElement(), sp.getPseudoElement()); } else { cascaded = c.getCss().getCascadedStyle(sp.getElement(), false);//already restyled by ContentUtil } //first push first-line styles if (c.hasFirstLineStyles()) { if (pushedOnFirstLine == null) { pushedOnFirstLine = new LinkedList(); for (Iterator i = c.getFirstLineStyles().iterator(); i.hasNext();) { c.pushStyle((CascadedStyle) i.next()); } } pushedOnFirstLine.addLast(cascaded); } c.pushStyle(cascaded); if (pendingPushStyles == null) { pendingPushStyles = new LinkedList(); } pendingPushStyles.addLast((StylePush) o); Relative.translateRelative(c); CalculatedStyle style = c.getCurrentStyle(); int parent_width = bounds.width; Border border = style.getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block Border margin = style.getMarginWidth(parent_width, parent_width, c.getCtx()); Border padding = style.getPaddingWidth(parent_width, parent_width, c.getCtx()); pendingLeftPadding += margin.left + border.left + padding.left; pendingRightPadding += padding.right + border.right + margin.right; continue; } if (o instanceof StylePop) { if (pendingPushStyles != null && pendingPushStyles.size() != 0) { pendingPushStyles.removeLast();//was a redundant one } else { if (prev_inline == null) { prev_inline = new InlineTextBox();//hope it is decently initialised as empty ((InlineTextBox) prev_inline).setMasterText(""); ((InlineTextBox) prev_inline).start_index = 0; ((InlineTextBox) prev_inline).end_index = 0; curr_line.addChild(prev_inline); } int parent_width = bounds.width; CalculatedStyle style = c.getCurrentStyle(); Border border = style.getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block Border margin = style.getMarginWidth(parent_width, parent_width, c.getCtx()); Border padding = style.getPaddingWidth(parent_width, parent_width, c.getCtx()); int rp = padding.right + border.right + margin.right; //CHECK: not sure this is where the padding really goes, always prev_inline.rightPadding += rp; pendingRightPadding -= rp; remaining_width -= rp; prev_inline.popstyles++; } if (c.hasFirstLineStyles()) { pushedOnFirstLine.removeLast(); } Relative.untranslateRelative(c); c.popStyle(); continue; } Content currentContent = (Content) o; if (currentContent.getStyle() != null) { //first push first-line styles if (c.hasFirstLineStyles()) { if (pushedOnFirstLine == null) { pushedOnFirstLine = new LinkedList(); for (Iterator i = c.getFirstLineStyles().iterator(); i.hasNext();) { c.pushStyle((CascadedStyle) i.next()); } } pushedOnFirstLine.addLast(currentContent.getStyle()); } c.pushStyle(currentContent.getStyle()); } // loop until no more text in this node InlineBox new_inline = null; int start = 0; InlineBlockBox pendingBlockBox = null; do { new_inline = null; if (currentContent instanceof AbsolutelyPositionedContent) { // Uu.p("this might be a problem, but it could just be an absolute block"); // result = new BoxLayout().layout(c,content); Box absolute = Absolute.generateAbsoluteBox(c, currentContent); curr_line.addChild(absolute); break; } // debugging check if (bounds.width < 0) { Uu.p("bounds width = " + bounds.width); Uu.dump_stack(); System.exit(-1); } // the crash warning code if (bounds.width < 1) { Uu.p("warning. width < 1 " + bounds.width); } currentStyle = c.getCurrentStyle(); // look at current inline // break off the longest section that will fit int fit = pendingRightPadding;//Note: this is not necessarily entirely correct if (start == 0) fit += pendingLeftPadding; new_inline = calculateInline(c, currentContent, remaining_width - fit, bounds.width, prev_align_inline, isFirstLetter, box.firstLetterStyle, curr_line, start, pendingBlockBox); pendingBlockBox = null; // if this inline needs to be on a new line if (prev_align_inline != null && new_inline.break_before) { // Uu.p("break before"); remaining_width = bounds.width; saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, box, false, blockLineHeight, pushedOnFirstLine); bounds.height += curr_line.height; prev_line = curr_line; curr_line = newLine(box, bounds, prev_line, blockLineMetrics); // skip adjusting for tabs if this box is cleared if (!box.clear_left && !box.clear_right) { remaining_width = FloatUtil.adjustForTab(c, curr_line, remaining_width); } //have to discard it and recalculate, particularly if this was the first line prev_align_inline.break_after = true; if (new_inline instanceof InlineBlockBox) pendingBlockBox = (InlineBlockBox) new_inline; new_inline = null; continue; } // save the new inline to the list // Uu.p("adding inline child: " + new_inline); //the inline might be set to size 0,0 after this, if it is first whitespace on line. // Cannot discard because it may contain style-pushes curr_line.addInlineChild(c, new_inline); // Uu.p("current line = " + curr_line); if (new_inline instanceof InlineTextBox) { start = ((InlineTextBox) new_inline).end_index; } isFirstLetter = false; new_inline.pushstyles = pendingPushStyles; pendingPushStyles = null; new_inline.leftPadding += pendingLeftPadding; pendingLeftPadding = 0; // calc new height of the line // don't count floats and absolutes if (!new_inline.floated && !new_inline.absolute) { adjustLineHeight(c, curr_line, new_inline); } if (!(currentContent instanceof FloatedBlockContent)) { // calc new width of the line curr_line.contentWidth += new_inline.getWidth(); } // reduce the available width remaining_width = remaining_width - new_inline.getWidth(); // if the last inline was at the end of a line, then go to next line if (new_inline.break_after) { // Uu.p("break after"); // then remaining_width = max_width remaining_width = bounds.width; // save the line saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, box, false, blockLineHeight, pushedOnFirstLine); // increase bounds height to account for the new line bounds.height += curr_line.height; prev_line = curr_line; curr_line = newLine(box, bounds, prev_line, blockLineMetrics); if (!box.clear_left && !box.clear_right) { remaining_width = FloatUtil.adjustForTab(c, curr_line, remaining_width); } } // set the inline to use for left alignment if (!isOutsideFlow(currentContent)) { prev_align_inline = new_inline; } prev_inline = new_inline; } while (new_inline == null || !new_inline.isEndOfParentContent()); if (currentContent.getStyle() != null) { c.popStyle(); if (c.hasFirstLineStyles()) { pushedOnFirstLine.removeLast(); } } } // save the final line saveLine(curr_line, currentStyle, prev_line, bounds.width, bounds.x, c, box, true, blockLineHeight, pushedOnFirstLine); bounds.height += curr_line.height; if (!c.shrinkWrap()) box.contentWidth = bounds.width; box.height = bounds.height; //box.x = 0; //box.y = 0; // Uu.p("- InlineLayout.layoutContent(): " + box); //pop the dummy style, but no, see above //c.popStyle(); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/01fe5f6295fdbc46194c11fca8c5668798faefcb/InlineBoxing.java/buggy/src/java/org/xhtmlrenderer/layout/InlineBoxing.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3511,
1350,
12,
1042,
276,
16,
8549,
3919,
16,
987,
913,
682,
13,
288,
3639,
368,
26715,
732,
1410,
3712,
506,
4832,
5943,
716,
13955,
358,
279,
1203,
17,
2815,
930,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3511,
1350,
12,
1042,
276,
16,
8549,
3919,
16,
987,
913,
682,
13,
288,
3639,
368,
26715,
732,
1410,
3712,
506,
4832,
5943,
716,
13955,
358,
279,
1203,
17,
2815,
930,
363... |
hash = 17 * hash + constructor.getParameterTypes()[i].getName().hashCode(); | hash = (17 * hash) + constructor.getParameterTypes()[i].getName().hashCode(); | public static int calculateHash(final CtConstructor constructor) { int hash = constructor.getName().hashCode(); try { for (int i = 0; i < constructor.getParameterTypes().length; i++) { hash = 17 * hash + constructor.getParameterTypes()[i].getName().hashCode(); } } catch (NotFoundException e) { throw new WrappedRuntimeException(e); } return hash; } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/0a8272f211b368352d468b943f2359cb79d9aaa1/JavassistConstructorInfo.java/clean/aspectwerkz3/src/main/org/codehaus/aspectwerkz/reflect/impl/javassist/JavassistConstructorInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
4604,
2310,
12,
6385,
30714,
6293,
3885,
13,
288,
3639,
509,
1651,
273,
3885,
18,
17994,
7675,
2816,
1085,
5621,
3639,
775,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
4604,
2310,
12,
6385,
30714,
6293,
3885,
13,
288,
3639,
509,
1651,
273,
3885,
18,
17994,
7675,
2816,
1085,
5621,
3639,
775,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
... |
today++; tempReal = inHigh[today]; diffP = tempReal - prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow - tempReal; prevLow = tempReal; if ((diffM > 0) && (diffP < diffM)) { | today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { | public TA_RetCode MINUS_DI(int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int today, lookbackTotal, outIdx; double prevHigh, prevLow, prevClose; double prevMinusDM, prevTR; double tempReal, tempReal2, diffP, diffM; int i; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 14; else if (((int) optInTimePeriod < 1) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; if (optInTimePeriod > 1) lookbackTotal = optInTimePeriod + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_MINUS_DI .ordinal()]); else lookbackTotal = 1; if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } outIdx = 0; if (optInTimePeriod <= 1) { outBegIdx.value = startIdx; today = startIdx - 1; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; while (today < endIdx) { today++; tempReal = inHigh[today]; diffP = tempReal - prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow - tempReal; prevLow = tempReal; if ((diffM > 0) && (diffP < diffM)) { { tempReal = prevHigh - prevLow; tempReal2 = Math.abs(prevHigh - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; tempReal2 = Math.abs(prevLow - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; } ; if ((((-0.00000001) < tempReal) && (tempReal < 0.00000001))) outReal[outIdx++] = (double) 0.0; else outReal[outIdx++] = diffM / tempReal; } else outReal[outIdx++] = (double) 0.0; prevClose = inClose[today]; } outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; } outBegIdx.value = today = startIdx; prevMinusDM = 0.0; prevTR = 0.0; today = startIdx - lookbackTotal; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; i = optInTimePeriod - 1; while (i-- > 0) { today++; tempReal = inHigh[today]; diffP = tempReal - prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow - tempReal; prevLow = tempReal; if ((diffM > 0) && (diffP < diffM)) { prevMinusDM += diffM; } { tempReal = prevHigh - prevLow; tempReal2 = Math.abs(prevHigh - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; tempReal2 = Math.abs(prevLow - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; } ; prevTR += tempReal; prevClose = inClose[today]; } i = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_MINUS_DI.ordinal()]) + 1; while (i-- != 0) { today++; tempReal = inHigh[today]; diffP = tempReal - prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow - tempReal; prevLow = tempReal; if ((diffM > 0) && (diffP < diffM)) { prevMinusDM = prevMinusDM - (prevMinusDM / optInTimePeriod) + diffM; } else { prevMinusDM = prevMinusDM - (prevMinusDM / optInTimePeriod); } { tempReal = prevHigh - prevLow; tempReal2 = Math.abs(prevHigh - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; tempReal2 = Math.abs(prevLow - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR / optInTimePeriod) + tempReal; prevClose = inClose[today]; } if (!(((-0.00000001) < prevTR) && (prevTR < 0.00000001))) outReal[0] = (100.0 * (prevMinusDM / prevTR)); else outReal[0] = 0.0; outIdx = 1; while (today < endIdx) { today++; tempReal = inHigh[today]; diffP = tempReal - prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow - tempReal; prevLow = tempReal; if ((diffM > 0) && (diffP < diffM)) { prevMinusDM = prevMinusDM - (prevMinusDM / optInTimePeriod) + diffM; } else { prevMinusDM = prevMinusDM - (prevMinusDM / optInTimePeriod); } { tempReal = prevHigh - prevLow; tempReal2 = Math.abs(prevHigh - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; tempReal2 = Math.abs(prevLow - prevClose); if (tempReal2 > tempReal) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR / optInTimePeriod) + tempReal; prevClose = inClose[today]; if (!(((-0.00000001) < prevTR) && (prevTR < 0.00000001))) outReal[outIdx++] = (100.0 * (prevMinusDM / prevTR)); else outReal[outIdx++] = 0.0; } outNbElement.value = outIdx; return TA_RetCode.TA_SUCCESS; } | 51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/cf65b93eedaca922be2993fe424b023f73c7562d/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
399,
37,
67,
7055,
1085,
6989,
3378,
67,
2565,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
399,
37,
67,
7055,
1085,
6989,
3378,
67,
2565,
12,
474,
27108,
16,
509,
679,
4223,
16,
1645,
316,
8573,
63,
6487,
1082,
202,
9056,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.