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
IScannerContext context = scannerData.getContextStack().getCurrentContext(); if( context.getKind() != IScannerContext.ContextKind.INCLUSION ) return;
public void handlePreprocessorDirective(String directive, String restOfLine) { if( directive.equals("#include_next") ) //$NON-NLS-1$ { scannerData.getLogService().traceLog( "GCCScannerExtension handling #include_next directive" ); //$NON-NLS-1$ // figure out the name of the current file and its path// IScannerContext context = scannerData.getContextStack().getCurrentContext();// if( context.getKind() != IScannerContext.ContextKind.INCLUSION ) // {// //handle appropriate error// }// String fullInclusionPath = context.getFilename();// IASTInclusion inclusion = context.getExtension(); // search through include paths } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/11d74c9995400d276f191cca99d0824228ab6a7b/GCCScannerExtension.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/GCCScannerExtension.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 1386, 8700, 13307, 12, 780, 8655, 16, 514, 3127, 951, 1670, 13, 288, 202, 202, 430, 12, 8655, 18, 14963, 2932, 7, 6702, 67, 4285, 7923, 262, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 95, 1082, 202, 26842, 751, 18, 588, 1343, 1179, 7675, 5129, 1343, 12, 315, 43, 6743, 11338, 3625, 5057, 468, 6702, 67, 4285, 8655, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 759, 7837, 596, 326, 508, 434, 326, 783, 585, 471, 2097, 589, 759, 1082, 202, 45, 11338, 1042, 819, 273, 7683, 751, 18, 29120, 2624, 7675, 588, 3935, 1042, 5621, 759, 1082, 202, 430, 12, 819, 18, 588, 5677, 1435, 480, 467, 11338, 1042, 18, 1042, 5677, 18, 706, 5017, 3378, 1146, 262, 368, 1082, 202, 95, 759, 9506, 202, 759, 4110, 5505, 555, 759, 1082, 202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0, 0, 0, 0, 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, 1640, 1386, 8700, 13307, 12, 780, 8655, 16, 514, 3127, 951, 1670, 13, 288, 202, 202, 430, 12, 8655, 18, 14963, 2932, 7, 6702, 67, 4285, 7923, 262, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 95, 1082, 202, 26842, 751, 18, 588, 1343, 1179, 7675, 5129, 1343, 12, 315, 43, 6743, 11338, 3625, 5057, 468, 6702, 67, 4285, 8655, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 759, 7837, 596, 326, 508, 434, 326, 783, 585, 471, 2097, 589, 759, 1082, 202, 45, 11338, 1042, 819, 273, 7683, 751, 18, 29120, 2624, 7675, 588, 3935, 1042, 5621, 759, 1082, 202, 430, 12, 819, 18, 588, 5677, 1435, 480, 467, 11338, 2 ]
public abstract byte get ();
public ByteBuffer get (byte[] dst, int offset, int length) { if ((offset < 0) || (offset > dst.length) || (length < 0) || (length > (dst.length - offset))) throw new IndexOutOfBoundsException (); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; }
public abstract byte get ();
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/507fdaa1f8e9baea793e35976041100056376456/ByteBuffer.java/buggy/libjava/java/nio/ByteBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8770, 1160, 336, 261, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8770, 1160, 336, 261, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return "ForLoopReplaceableByForEach"; }
return "ForLoopReplaceableByForEach"; }
public String getID(){ return "ForLoopReplaceableByForEach"; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/8629082a2f885120180c8da4e7204776468af6a2/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 14744, 1435, 95, 1377, 327, 315, 31451, 5729, 429, 858, 1290, 3442, 14432, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 14744, 1435, 95, 1377, 327, 315, 31451, 5729, 429, 858, 1290, 3442, 14432, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (null); }
return (null); }
public String[] getParameterNames() { // no param names to return return (null); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/76f1c3db1c889a4fd7bd9dd2e93ee1e9a39ec301/BPolDescriptor.java/buggy/src/org/openscience/cdk/qsar/descriptors/molecular/BPolDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 5575, 1557, 1435, 288, 202, 202, 759, 1158, 579, 1257, 358, 327, 202, 202, 2463, 261, 2011, 1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 8526, 5575, 1557, 1435, 288, 202, 202, 759, 1158, 579, 1257, 358, 327, 202, 202, 2463, 261, 2011, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int queries = periodMinutes/(BUCKETS*MINUTES_PER_BUCKET) + (periodMinutes%(BUCKETS*MINUTES_PER_BUCKET)>0?1:0); int periodBuckets = periodMinutes/(MINUTES_PER_BUCKET) + (periodMinutes%(MINUTES_PER_BUCKET)>0?1:0); System.out.println("====== START ======");
int queries = periodMinutes/(BUCKETS*MINUTES_PER_BUCKET) + (periodMinutes%(BUCKETS*MINUTES_PER_BUCKET)>0?1:0); System.out.println("====== START ======");
protected JFreeChart doChart(Connection con) throws JRScriptletException, SQLException { final int seriesA = 0; // datasetA (primary, first) final int seriesB = 1; // datasetB //final int seriesC = 2; // datasetC TimeSeries datasetA = new TimeSeries(seriesATitle, Minute.class); TimeSeries datasetB = new TimeSeries(seriesBTitle, Minute.class); //TimeSeries datasetC = new TimeSeries(seriesCTitle, Minute.class); final int BUCKETS = 1440 / MINUTES_PER_BUCKET; // TRUNCATE TIME TO MINUTES, COMPUTE NUMBER OF QUERIES long startMinuteInMillis = (startDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long endMinuteInMillis = (endDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long periodMillis = endMinuteInMillis - startMinuteInMillis; int periodMinutes = (int)(periodMillis / MINUTE_INTERVAL); int queries = periodMinutes/(BUCKETS*MINUTES_PER_BUCKET) + (periodMinutes%(BUCKETS*MINUTES_PER_BUCKET)>0?1:0); int periodBuckets = periodMinutes/(MINUTES_PER_BUCKET) + (periodMinutes%(MINUTES_PER_BUCKET)>0?1:0); System.out.println("====== START ======"); System.out.println("start: " + (new Timestamp(startMinuteInMillis)).toString() ); System.out.println("end: " + (new Timestamp(endMinuteInMillis)).toString() ); System.out.println("mins: " + periodMinutes); System.out.println("days: " + queries); System.out.println("==================="); // ALLOCATE COUNTS int size; if( periodMinutes >= BUCKETS*MINUTES_PER_BUCKET ) size = BUCKETS; else size = periodMinutes/(BUCKETS*MINUTES_PER_BUCKET) + (periodMinutes%(BUCKETS*MINUTES_PER_BUCKET)>0?1:0); double countsA[] = new double[ size ]; double countsB[] = new double[ size ]; double countsC[] = new double[ size ]; // SETUP TIMESTAMPS Timestamp startTimestamp, endTimestamp; startTimestamp = new Timestamp(startMinuteInMillis); endTimestamp = new Timestamp(endMinuteInMillis); totalQueryTime = System.currentTimeMillis(); String sql; int sidx; PreparedStatement stmt; ResultSet rs; sql = "SELECT date_trunc('minute', time_stamp) as time_stamp," + " count(*)" + " FROM tr_http_evt_req where" + " time_stamp <= ? AND time_stamp >= ?" + " GROUP BY time_stamp" + " ORDER BY time_stamp"; sidx = 1; stmt = con.prepareStatement(sql); stmt.setTimestamp(sidx++, endTimestamp); stmt.setTimestamp(sidx++, startTimestamp); rs = stmt.executeQuery(); totalQueryTime = System.currentTimeMillis() - totalQueryTime; totalProcessTime = System.currentTimeMillis(); // PROCESS EACH ROW while (rs.next()) { // GET RESULTS Timestamp eventDate = rs.getTimestamp(1); long countC = rs.getLong(2); // ALLOCATE COUNT TO EACH MINUTE WE WERE ALIVE EQUALLY long eventStart = (eventDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long realStart = eventStart < startMinuteInMillis ? (long) 0 : eventStart - startMinuteInMillis; int startInterval = (int)(realStart / MINUTE_INTERVAL)/MINUTES_PER_BUCKET; // COMPUTE COUNTS IN INTERVALS countsC[startInterval%BUCKETS] += countC; } try { stmt.close(); } catch (SQLException x) { } sql = "SELECT date_trunc('minute', time_stamp) as time_stamp," + " count(*)" + " FROM tr_httpblk_evt_blk where" + " time_stamp <= ? AND time_stamp >= ?" + " GROUP BY time_stamp" + " ORDER BY time_stamp"; sidx = 1; stmt = con.prepareStatement(sql); stmt.setTimestamp(sidx++, endTimestamp); stmt.setTimestamp(sidx++, startTimestamp); rs = stmt.executeQuery(); totalQueryTime = System.currentTimeMillis() - totalQueryTime; totalProcessTime = System.currentTimeMillis(); // PROCESS EACH ROW while (rs.next()) { // GET RESULTS Timestamp eventDate = rs.getTimestamp(1); long countB = rs.getLong(2); // ALLOCATE COUNT TO EACH MINUTE WE WERE ALIVE EQUALLY long eventStart = (eventDate.getTime() / MINUTE_INTERVAL) * MINUTE_INTERVAL; long realStart = eventStart < startMinuteInMillis ? (long) 0 : eventStart - startMinuteInMillis; int startInterval = (int)(realStart / MINUTE_INTERVAL)/MINUTES_PER_BUCKET; // COMPUTE COUNTS IN INTERVALS countsB[startInterval%BUCKETS] += countB; } try { stmt.close(); } catch (SQLException x) { } for( int i=0; i<countsC.length; i++ ) countsA[i] = countsC[i] - countsB[i]; // POST PROCESS: PRODUCE UNITS OF KBytes/sec., AVERAGED PER DAY, FROM BYTES PER BUCKET double averageACount; double averageBCount; //double averageCCount; for(int i = 0; i < size; i++) { // MOVING AVERAGE averageACount = 0; averageBCount = 0; //averageCCount = 0; int newIndex = 0; int denom = 0; for(int j=0; j<MOVING_AVERAGE_MINUTES; j++){ newIndex = i-j; if( newIndex >= 0 ) denom++; else continue; averageACount += countsA[newIndex] / (double)queries; averageBCount += countsB[newIndex] / (double)queries; //averageCCount += countsC[newIndex] / (double)queries; } averageACount /= denom; averageBCount /= denom; //averageCCount /= denom; java.util.Date date = new java.util.Date(startMinuteInMillis + i * MINUTE_INTERVAL * MINUTES_PER_BUCKET ); datasetA.addOrUpdate(new Minute(date), averageACount); datasetB.addOrUpdate(new Minute(date), averageBCount); //datasetC.addOrUpdate(new Minute(date), averageCCount); } totalProcessTime = System.currentTimeMillis() - totalProcessTime; System.out.println("====== RESULTS ======"); System.out.println("TOTAL query time: " + totalQueryTime/1000 + "s" + " (" + ((float)totalQueryTime/(float)(totalQueryTime+totalProcessTime)) + ")"); System.out.println("TOTAL process time: " + totalProcessTime/1000 + "s" + " (" + ((float)totalProcessTime/(float)(totalQueryTime+totalProcessTime)) + ")"); System.out.println("====================="); TimeSeriesCollection tsc = new TimeSeriesCollection(); tsc.addSeries(datasetA); tsc.addSeries(datasetB); //tsc.addSeries(datasetC); JFreeChart jfChart = ChartFactory.createTimeSeriesChart(chartTitle, timeAxisLabel, valueAxisLabel, tsc, true, true, false); XYPlot xyPlot = (XYPlot) jfChart.getPlot(); XYItemRenderer xyIRenderer = xyPlot.getRenderer(); xyIRenderer.setSeriesStroke(seriesA, new BasicStroke(1.3f)); xyIRenderer.setSeriesPaint(seriesA, Color.green); xyIRenderer.setSeriesStroke(seriesB, new BasicStroke(1.3f)); xyIRenderer.setSeriesPaint(seriesB, Color.red); //xyIRenderer.setSeriesStroke(seriesC, new BasicStroke(1.3f)); //xyIRenderer.setSeriesPaint(seriesC, Color.blue); return jfChart; }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/ad2338c4283e959effa8ec881f68d13a60ceeb7a/SummaryGraph.java/buggy/tran/httpblocker/main/com/metavize/tran/httpblocker/reports/SummaryGraph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 9194, 7984, 741, 7984, 12, 1952, 356, 13, 1216, 27974, 3651, 1810, 503, 16, 6483, 565, 288, 3639, 727, 509, 4166, 37, 273, 374, 31, 368, 3709, 37, 261, 8258, 16, 1122, 13, 3639, 727, 509, 4166, 38, 273, 404, 31, 368, 3709, 38, 3639, 368, 6385, 509, 4166, 39, 273, 576, 31, 368, 3709, 39, 3639, 26084, 3709, 37, 273, 394, 26084, 12, 10222, 789, 1280, 16, 20734, 18, 1106, 1769, 3639, 26084, 3709, 38, 273, 394, 26084, 12, 10222, 38, 4247, 16, 20734, 18, 1106, 1769, 3639, 368, 28486, 3709, 39, 273, 394, 26084, 12, 10222, 1268, 1280, 16, 20734, 18, 1106, 1769, 202, 6385, 509, 10937, 14984, 55, 273, 5045, 7132, 342, 6989, 24080, 67, 3194, 67, 28888, 31, 3639, 368, 4235, 2124, 13000, 8721, 8493, 6989, 24080, 16, 13846, 9099, 15532, 15932, 10110, 654, 8805, 3639, 1525, 787, 18329, 16620, 273, 261, 1937, 1626, 18, 588, 950, 1435, 342, 21596, 67, 16435, 13, 380, 21596, 67, 16435, 31, 3639, 1525, 679, 18329, 16620, 273, 261, 409, 1626, 18, 588, 950, 1435, 342, 21596, 67, 16435, 13, 380, 21596, 67, 16435, 31, 3639, 1525, 3879, 4814, 273, 679, 18329, 16620, 300, 787, 18329, 16620, 31, 3639, 509, 3879, 13050, 273, 261, 474, 21433, 6908, 4814, 342, 21596, 67, 16435, 1769, 202, 474, 6218, 273, 3879, 13050, 19, 12, 28888, 55, 14, 6236, 24080, 67, 3194, 67, 28888, 13, 397, 261, 6908, 13050, 17105, 28888, 55, 14, 6236, 24080, 67, 3194, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 804, 9194, 7984, 741, 7984, 12, 1952, 356, 13, 1216, 27974, 3651, 1810, 503, 16, 6483, 565, 288, 3639, 727, 509, 4166, 37, 273, 374, 31, 368, 3709, 37, 261, 8258, 16, 1122, 13, 3639, 727, 509, 4166, 38, 273, 404, 31, 368, 3709, 38, 3639, 368, 6385, 509, 4166, 39, 273, 576, 31, 368, 3709, 39, 3639, 26084, 3709, 37, 273, 394, 26084, 12, 10222, 789, 1280, 16, 20734, 18, 1106, 1769, 3639, 26084, 3709, 38, 273, 394, 26084, 12, 10222, 38, 4247, 16, 20734, 18, 1106, 1769, 3639, 368, 28486, 3709, 39, 273, 394, 26084, 12, 10222, 1268, 1280, 16, 20734, 18, 1106, 1769, 202, 6385, 509, 10937, 14984, 55, 273, 5045, 7132, 342, 6989, 2 ]
void innerUpdate(){ Logger.minor(this, "Update() called"); synchronized(this) { if((result == null) || hasBeenBlown) { Logger.minor(this, "Returning: result="+result+", isAutoUpdateAllowed="+isAutoUpdateAllowed+", hasBeenBlown="+hasBeenBlown); return; } this.revocationDNFCounter = 0; this.finalCheck = true; } System.err.println("Searching for revocation key"); this.queueFetchRevocation(100); synchronized(this) { while(revocationDNFCounter < 3) { System.err.println("Revocation counter: "+revocationDNFCounter); if(this.hasBeenBlown) { Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); return; } try { wait(100*1000); } catch (InterruptedException e) { // Ignore } } } System.err.println("Update in progress"); Logger.normal(this, "Update in progress"); try{ ArrayBucket bucket = (ArrayBucket) result.asBucket(); byte[] data = bucket.toByteArray(); File fRunning = new File("freenet-cvs-snapshot.jar"); File fNew = new File("freenet-cvs-snapshot.jar.new"); boolean nastyRestart = false; if(File.separatorChar != '\\') { // Do nothing. } else { nastyRestart = true; Properties p = WrapperManager.getProperties(); String cp1 = p.getProperty("wrapper.java.classpath.1"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { cp1 = p.getProperty("wrapper.java.classpath.2"); if(cp1.equals("freenet-cvs-snapshot.jar")) { // Cool! } else if(cp1.equals("freenet-cvs-snapshot.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { Logger.error(this, "Cannot restart on Windows due to non-standard config file!"); System.err.println("Cannot restart on Windows due to non-standard config file!"); return; } } } fNew.delete(); FileOutputStream fos = new FileOutputStream(fNew); fos.write(data); fos.flush(); fos.close(); System.out.println("################## File written! "+cg.getURI().getSuggestedEdition()+ " " +fNew.getAbsolutePath()); if(!nastyRestart) { // Easy way. if(!fNew.renameTo(fRunning)) { fRunning.delete(); if(!fNew.renameTo(fRunning)) { System.err.println("ERROR renaming the file!"); return; } } } else { // Hard way. if(!WrapperManager.isControlledByNativeWrapper()) { Logger.error(this, "Cannot update because not running under wrapper"); System.err.println("Cannot update because not running under wrapper"); return; } try { File oldConfig = new File("wrapper.conf"); File newConfig = new File("wrapper.conf.new"); FileInputStream fis = new FileInputStream(oldConfig); BufferedInputStream bis = new BufferedInputStream(fis); InputStreamReader isr = new InputStreamReader(bis); BufferedReader br = new BufferedReader(isr); fos = new FileOutputStream(newConfig); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); String line; boolean succeeded = false; boolean stillSucceeded = false; while((line = br.readLine()) != null) { if(line.equals("wrapper.java.classpath.1="+fRunning.getName())) { bw.write("wrapper.java.classpath.1="+fNew.getName()+"\r\n"); succeeded = true; } else if(line.equals("wrapper.java.classpath.2="+fRunning.getName())) { bw.write("wrapper.java.classpath.2="+fNew.getName()+"\r\n"); succeeded = true; } else { if(line.equals("wrapper.restart.reload_configuration=TRUE")) stillSucceeded = true; bw.write(line+"\r\n"); } } bw.close(); br.close(); if(!succeeded) { System.err.println("Not able to update because of non-standard config"); Logger.error(this, "Not able to update because of non-standard config"); return; } if(!stillSucceeded) { System.err.println("Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); Logger.error(this, "Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); return; } if(!newConfig.renameTo(oldConfig)) { oldConfig.delete(); if(!newConfig.renameTo(oldConfig)) { System.err.println("Failed to rename over old config: update failed."); Logger.error(this, "Failed to rename over old config: update failed."); return; } } // New config installed. } catch (IOException e) { Logger.error(this, "Not able to update because of I/O error: "+e, e); System.err.println("Not able to update because of I/O error: "+e); } } if(node.getNodeStarter()!=null) { System.err.println("Restarting because of update"); node.getNodeStarter().restart(); } else{ System.out.println("New version has been downloaded: please restart your node!"); node.exit(); } System.err.println("WTF? Restart returned!?"); }catch(Exception e){ Logger.error(this, "Error while updating the node : "+e); System.out.println("Exception : "+e); e.printStackTrace(); } }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/0ce52e9ff1e0048c34e8d11f2ad596bc8936f6e9/NodeUpdater.java/clean/src/freenet/node/updater/NodeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 3443, 1891, 1435, 95, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 1891, 1435, 2566, 8863, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12443, 2088, 422, 446, 13, 747, 711, 25931, 38, 821, 82, 13, 288, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 315, 28365, 30, 563, 1546, 15, 2088, 15, 3113, 27079, 1891, 5042, 1546, 15, 291, 4965, 1891, 5042, 15, 3113, 711, 25931, 38, 821, 82, 1546, 15, 5332, 25931, 38, 821, 82, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 2211, 18, 9083, 4431, 8609, 4488, 2096, 273, 374, 31, 1082, 202, 2211, 18, 6385, 1564, 273, 638, 31, 202, 202, 97, 9506, 202, 3163, 18, 370, 18, 8222, 2932, 2979, 310, 364, 24158, 498, 8863, 202, 202, 2211, 18, 4000, 5005, 28691, 12, 6625, 1769, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 17523, 12, 9083, 4431, 8609, 4488, 2096, 411, 890, 13, 288, 9506, 202, 3163, 18, 370, 18, 8222, 2932, 28691, 3895, 30, 13773, 9083, 4431, 8609, 4488, 2096, 1769, 9506, 202, 430, 12, 2211, 18, 5332, 25931, 38, 821, 82, 13, 288, 6862, 202, 3328, 18, 1636, 12, 2211, 16, 315, 1986, 24158, 498, 711, 2118, 1392, 603, 326, 2483, 294, 9445, 3656, 17, 2725, 8863, 6862, 202, 2463, 31, 9506, 202, 97, 9506, 202, 698, 288, 6862, 202, 7048, 12, 6625, 14, 18088, 1769, 9506, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 6862, 202, 759, 8049, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 3443, 1891, 1435, 95, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 1891, 1435, 2566, 8863, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12443, 2088, 422, 446, 13, 747, 711, 25931, 38, 821, 82, 13, 288, 9506, 202, 3328, 18, 17364, 12, 2211, 16, 315, 28365, 30, 563, 1546, 15, 2088, 15, 3113, 27079, 1891, 5042, 1546, 15, 291, 4965, 1891, 5042, 15, 3113, 711, 25931, 38, 821, 82, 1546, 15, 5332, 25931, 38, 821, 82, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 2211, 18, 9083, 4431, 8609, 4488, 2096, 273, 374, 31, 1082, 202, 2211, 18, 6385, 1564, 273, 638, 31, 202, 202, 97, 9506, 202, 3163, 18, 2 ]
affectsVersions = new Vector(versions.subList(versions.size() / 2 -1, versions.size() - 1));
{ affectsVersions = new Vector(versions.subList(versions.size() / 2 - 1, versions.size() - 1)); }
public void testServer() { try { final String server = "http://localhost:8081/rpc/xmlrpc"; XmlRpcClient xmlrpc = new XmlRpcClient(server); // First let's be naughty and try to call a method without logging in try { xmlrpc.execute("jira1.getProjects", makeParams("foo")); fail("Should have blown up - what happened!"); } catch (Exception e) { } // Now logging in properly... String token = (String) xmlrpc.execute("jira1.login", makeParams("a", "a")); assertNotNull(token); // Now let's get some projects... Vector projects = (Vector) xmlrpc.execute("jira1.getProjects", makeParams(token)); assertNotNull(projects); System.out.println("projects:"); printVector(projects); // Now let's get some components... Vector components = (Vector) xmlrpc.execute("jira1.getComponents", makeParams(token, "DON")); assertNotNull(components); System.out.println("components:"); printVector(components); // Now let's get some components... Vector versions = (Vector) xmlrpc.execute("jira1.getVersions", makeParams(token, "DON")); assertNotNull(versions); System.out.println("versions:"); printVector(versions); // Let's check we can't get a barfed issue... try { xmlrpc.execute("jira1.getIssue", makeParams(token, "10")); fail("Should have blown up"); } catch (XmlRpcException e) { e.printStackTrace(); } // Can we add a new issue I wonder? Hashtable issue = new Hashtable(); final String summary = "remote page " + RandomGenerator.randomPassword(); issue.put("summary", summary); issue.put("project", "DON"); issue.put("type", "1"); issue.put("environment", "green"); issue.put("description", "nuffin"); issue.put("assignee", "a"); issue.put("priority", "3"); final Date now = new Date(); issue.put("updated", now); issue.put("components", components); Vector fixVersions = new Vector(versions.subList(0, versions.size() / 2)); issue.put("fixVersions", fixVersions); Vector affectsVersions = new Vector(); if (versions.size() > 0) affectsVersions = new Vector(versions.subList(versions.size() / 2 -1, versions.size() - 1)); issue.put("affectsVersions", affectsVersions); issue = (Hashtable) xmlrpc.execute("jira1.createIssue", makeParams(token, issue)); assertEquals("DON", issue.get("project")); assertEquals(summary, issue.get("summary")); assertEquals("1", issue.get("type")); assertEquals("a", issue.get("reporter")); assertEquals("nuffin", issue.get("description")); assertEquals("green", issue.get("environment")); assertEquals("a", issue.get("assignee")); assertEquals("3", issue.get("priority")); assertEquals(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.0").format(now), issue.get("updated")); assertSameVector(components, (Vector) issue.get("components")); assertSameVector(new Vector(fixVersions), (Vector)issue.get("fixVersions")); assertSameVector(new Vector(affectsVersions), (Vector)issue.get("affectsVersions")); System.out.println("added issue = " + issue); // Now we should be nice and logout... Boolean loggedOut = (Boolean) xmlrpc.execute("jira1.logout", makeParams(token)); assertTrue(loggedOut.booleanValue()); // Oops, can't logout twice! loggedOut = (Boolean) xmlrpc.execute("jira1.logout", makeParams(token)); assertFalse(loggedOut.booleanValue()); } catch (Throwable t) { t.printStackTrace(); System.exit(-1); } }
21772 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/21772/5940277e39653ad3984de7270e457d0f5f45a661/XmlRpcTestClient.java/buggy/src/test/java/com/atlassian/jira/rpc/xmlrpc/XmlRpcTestClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2081, 1435, 565, 288, 3639, 775, 3639, 288, 5411, 727, 514, 1438, 273, 315, 2505, 2207, 13014, 30, 3672, 11861, 19, 7452, 19, 2902, 7452, 14432, 5411, 5714, 11647, 1227, 31811, 273, 394, 5714, 11647, 1227, 12, 3567, 1769, 5411, 368, 5783, 2231, 1807, 506, 290, 16510, 93, 471, 775, 358, 745, 279, 707, 2887, 2907, 316, 5411, 775, 5411, 288, 7734, 31811, 18, 8837, 2932, 78, 11547, 21, 18, 588, 15298, 3113, 1221, 1370, 2932, 11351, 7923, 1769, 7734, 2321, 2932, 14309, 1240, 324, 821, 82, 731, 300, 4121, 17497, 4442, 1769, 5411, 289, 5411, 1044, 261, 503, 425, 13, 5411, 288, 5411, 289, 5411, 368, 4494, 2907, 316, 8214, 2777, 5411, 514, 1147, 273, 261, 780, 13, 31811, 18, 8837, 2932, 78, 11547, 21, 18, 5819, 3113, 1221, 1370, 2932, 69, 3113, 315, 69, 7923, 1769, 5411, 25395, 12, 2316, 1769, 5411, 368, 4494, 2231, 1807, 336, 2690, 10137, 2777, 5411, 5589, 10137, 273, 261, 5018, 13, 31811, 18, 8837, 2932, 78, 11547, 21, 18, 588, 15298, 3113, 1221, 1370, 12, 2316, 10019, 5411, 25395, 12, 13582, 1769, 5411, 2332, 18, 659, 18, 8222, 2932, 13582, 2773, 1769, 5411, 1172, 5018, 12, 13582, 1769, 5411, 368, 4494, 2231, 1807, 336, 2690, 4085, 2777, 5411, 5589, 4085, 273, 261, 5018, 13, 31811, 18, 8837, 2932, 78, 11547, 21, 18, 588, 7171, 3113, 1221, 1370, 12, 2316, 16, 315, 40, 673, 7923, 1769, 5411, 25395, 12, 8119, 1769, 5411, 2332, 18, 659, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2081, 1435, 565, 288, 3639, 775, 3639, 288, 5411, 727, 514, 1438, 273, 315, 2505, 2207, 13014, 30, 3672, 11861, 19, 7452, 19, 2902, 7452, 14432, 5411, 5714, 11647, 1227, 31811, 273, 394, 5714, 11647, 1227, 12, 3567, 1769, 5411, 368, 5783, 2231, 1807, 506, 290, 16510, 93, 471, 775, 358, 745, 279, 707, 2887, 2907, 316, 5411, 775, 5411, 288, 7734, 31811, 18, 8837, 2932, 78, 11547, 21, 18, 588, 15298, 3113, 1221, 1370, 2932, 11351, 7923, 1769, 7734, 2321, 2932, 14309, 1240, 324, 821, 82, 731, 300, 4121, 17497, 4442, 1769, 5411, 289, 5411, 1044, 261, 503, 425, 13, 5411, 288, 5411, 289, 5411, 368, 4494, 2907, 316, 8214, 2777, 5411, 514, 1147, 2 ]
PsiArrayInitializerExpression init){ final PsiExpression[] contents = init.getInitializers(); final String text = init.getText(); final int textLength = text.length(); final StringBuffer out = new StringBuffer(textLength); out.append('{'); for(int i = 0; i < contents.length; i++){ final PsiExpression arg = contents[i]; if(i != 0){ out.append(','); } final String strippedArg = removeParentheses(arg); out.append(strippedArg); } out.append('}'); return out.toString(); }
@NotNull PsiArrayInitializerExpression arrayInitializerExpression){ final PsiExpression[] contents = arrayInitializerExpression.getInitializers(); final String text = arrayInitializerExpression.getText(); final int textLength = text.length(); final StringBuffer out = new StringBuffer(textLength); out.append('{'); for(int i = 0; i < contents.length; i++){ final PsiExpression arg = contents[i]; if(i != 0){ out.append(','); } final String strippedArg = removeParentheses(arg); out.append(strippedArg); } out.append('}'); return out.toString(); }
private static String removeParensFromArrayInitializerExpression( PsiArrayInitializerExpression init){ final PsiExpression[] contents = init.getInitializers(); final String text = init.getText(); final int textLength = text.length(); final StringBuffer out = new StringBuffer(textLength); out.append('{'); for(int i = 0; i < contents.length; i++){ final PsiExpression arg = contents[i]; if(i != 0){ out.append(','); } final String strippedArg = removeParentheses(arg); out.append(strippedArg); } out.append('}'); return out.toString(); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/09c24182a351d0ba99cf3814c45f78935827d33b/ParenthesesUtils.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/psiutils/ParenthesesUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1206, 52, 21660, 16638, 14729, 2300, 12, 5411, 453, 7722, 1076, 14729, 2300, 1208, 15329, 3639, 727, 453, 7722, 2300, 8526, 2939, 273, 1208, 18, 588, 4435, 8426, 5621, 3639, 727, 514, 977, 273, 1208, 18, 588, 1528, 5621, 3639, 727, 509, 977, 1782, 273, 977, 18, 2469, 5621, 3639, 727, 6674, 596, 273, 394, 6674, 12, 955, 1782, 1769, 3639, 596, 18, 6923, 2668, 95, 8284, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 2939, 18, 2469, 31, 277, 27245, 95, 5411, 727, 453, 7722, 2300, 1501, 273, 2939, 63, 77, 15533, 5411, 309, 12, 77, 480, 374, 15329, 7734, 596, 18, 6923, 12, 2187, 8284, 5411, 289, 5411, 727, 514, 13300, 4117, 273, 1206, 17880, 281, 12, 3175, 1769, 5411, 596, 18, 6923, 12, 6406, 1845, 4117, 1769, 3639, 289, 3639, 596, 18, 6923, 2668, 1713, 1769, 3639, 327, 596, 18, 10492, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 1206, 52, 21660, 16638, 14729, 2300, 12, 5411, 453, 7722, 1076, 14729, 2300, 1208, 15329, 3639, 727, 453, 7722, 2300, 8526, 2939, 273, 1208, 18, 588, 4435, 8426, 5621, 3639, 727, 514, 977, 273, 1208, 18, 588, 1528, 5621, 3639, 727, 509, 977, 1782, 273, 977, 18, 2469, 5621, 3639, 727, 6674, 596, 273, 394, 6674, 12, 955, 1782, 1769, 3639, 596, 18, 6923, 2668, 95, 8284, 3639, 364, 12, 474, 277, 273, 374, 31, 277, 411, 2939, 18, 2469, 31, 277, 27245, 95, 5411, 727, 453, 7722, 2300, 1501, 273, 2939, 63, 77, 15533, 5411, 309, 12, 77, 480, 374, 15329, 7734, 596, 18, 6923, 12, 2187, 8284, 5411, 289, 5411, 727, 514, 13300, 2 ]
public void tearDown() throws IOException {
public void tearDown() throws Exception {
public void tearDown() throws IOException { boolean ret = FileOps.deleteDirectory(_tempDir); assertTrue("delete temp directory " + _tempDir, ret); _model.dispose(); _tempDir = null; _model = null; System.gc(); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/edb148d96e488bb5de94fe3df6063e44425ab166/DocumentCacheTest.java/buggy/drjava/src/edu/rice/cs/drjava/model/cache/DocumentCacheTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 268, 2091, 4164, 1435, 1216, 1185, 288, 565, 1250, 325, 273, 1387, 8132, 18, 3733, 2853, 24899, 5814, 1621, 1769, 565, 1815, 5510, 2932, 3733, 1906, 1867, 315, 397, 389, 5814, 1621, 16, 325, 1769, 565, 389, 2284, 18, 2251, 4150, 5621, 565, 389, 5814, 1621, 273, 446, 31, 565, 389, 2284, 273, 446, 31, 565, 2332, 18, 13241, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 268, 2091, 4164, 1435, 1216, 1185, 288, 565, 1250, 325, 273, 1387, 8132, 18, 3733, 2853, 24899, 5814, 1621, 1769, 565, 1815, 5510, 2932, 3733, 1906, 1867, 315, 397, 389, 5814, 1621, 16, 325, 1769, 565, 389, 2284, 18, 2251, 4150, 5621, 565, 389, 5814, 1621, 273, 446, 31, 565, 389, 2284, 273, 446, 31, 565, 2332, 18, 13241, 5621, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else {
} else {
protected void convert(double dvalue, String unit) { int assumed_resolution = 1; // points/pixel if (unit.equals("in")) dvalue = dvalue * 72; else if (unit.equals("cm")) dvalue = dvalue * 28.3464567; else if (unit.equals("mm")) dvalue = dvalue * 2.83464567; else if (unit.equals("pt")) dvalue = dvalue; else if (unit.equals("pc")) dvalue = dvalue * 12; /* * else if (unit.equals("em")) * dvalue = dvalue * fontsize; */ else if (unit.equals("px")) dvalue = dvalue * assumed_resolution; else { dvalue = 0; //log.error("unknown length unit '" + unit // + "'"); } setComputedValue((int)(dvalue * 1000)); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/392781f30969e4da0b510da16b96099a320089ba/FixedLength.java/clean/src/org/apache/fop/datatypes/FixedLength.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1765, 12, 9056, 302, 1132, 16, 514, 2836, 13, 288, 3639, 509, 12034, 67, 19182, 273, 404, 31, 565, 368, 3143, 19, 11743, 3639, 309, 261, 4873, 18, 14963, 2932, 267, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 380, 19387, 31, 3639, 469, 309, 261, 4873, 18, 14963, 2932, 7670, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 380, 9131, 18, 5026, 1105, 17339, 31, 3639, 469, 309, 261, 4873, 18, 14963, 2932, 7020, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 380, 576, 18, 28, 5026, 1105, 17339, 31, 3639, 469, 309, 261, 4873, 18, 14963, 2932, 337, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 31, 3639, 469, 309, 261, 4873, 18, 14963, 2932, 2436, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 380, 2593, 31, 5411, 1748, 2398, 380, 469, 309, 261, 4873, 18, 14963, 2932, 351, 6, 3719, 2398, 380, 302, 1132, 273, 302, 1132, 380, 14869, 31, 2398, 1195, 3639, 469, 309, 261, 4873, 18, 14963, 2932, 4430, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 380, 12034, 67, 19182, 31, 3639, 289, 469, 288, 5411, 302, 1132, 273, 374, 31, 5411, 368, 1330, 18, 1636, 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3639, 509, 12034, 67, 19182, 273, 404, 31, 565, 368, 3143, 19, 11743, 3639, 309, 261, 4873, 18, 14963, 2932, 267, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 380, 19387, 31, 3639, 469, 309, 261, 4873, 18, 14963, 2932, 7670, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 380, 9131, 18, 5026, 1105, 17339, 31, 3639, 469, 309, 261, 4873, 18, 14963, 2932, 7020, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 380, 576, 18, 28, 5026, 1105, 17339, 31, 3639, 469, 309, 261, 4873, 18, 14963, 2932, 337, 6, 3719, 5411, 302, 1132, 273, 302, 1132, 31, 3639, 469, 309, 261, 4873, 18, 14963, 2 ]
public JSTokenMarker createTokenMarker()
public TokenMarker createTokenMarker()
public JSTokenMarker createTokenMarker() { return new TeXTokenMarker(); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/b69ef3aa1d645f6c297aa60629214d16914c66ff/tex.java/buggy/org/gjt/sp/jedit/mode/tex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 804, 882, 969, 7078, 752, 1345, 7078, 1435, 202, 95, 202, 202, 2463, 394, 28602, 60, 1345, 7078, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 804, 882, 969, 7078, 752, 1345, 7078, 1435, 202, 95, 202, 202, 2463, 394, 28602, 60, 1345, 7078, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void handleNew() { ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog( getSection().getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider()); initializeDialogSettings(dialog); if (dialog.open() == Window.OK) { Object[] elements = dialog.getResult(); for (int i = 0; i < elements.length; i++) { IResource elem = (IResource) elements[i]; String tokenName = getRelativePathTokenName(elem); addClasspathToken(tokenName); fCurrentSelection = new StructuredSelection(tokenName); fOldSelection = null; } } }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/0ae9c97db861bd713ecd3e9d1c4c40ec2fd286e6/BuildClasspathSection.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/build/BuildClasspathSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 4110, 1908, 1435, 95, 202, 202, 1046, 2471, 6233, 6353, 12730, 33, 1082, 202, 2704, 1046, 2471, 6233, 6353, 12, 9506, 202, 588, 5285, 7675, 588, 13220, 9334, 9506, 202, 2704, 2421, 22144, 2224, 2249, 9334, 9506, 202, 2704, 2421, 22144, 1350, 2249, 10663, 25083, 202, 11160, 6353, 2628, 12, 12730, 1769, 202, 202, 430, 12, 12730, 18, 3190, 1435, 631, 3829, 18, 3141, 15329, 25083, 202, 921, 8526, 6274, 33, 12730, 18, 588, 1253, 5621, 1082, 202, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 6274, 18, 2469, 31, 77, 27245, 95, 9506, 202, 45, 1420, 10037, 28657, 45, 1420, 13, 6274, 63, 77, 15533, 9506, 202, 780, 2316, 461, 33, 588, 16519, 1345, 461, 12, 10037, 1769, 9506, 202, 1289, 17461, 1345, 12, 2316, 461, 1769, 9506, 202, 74, 3935, 6233, 33, 2704, 30733, 6233, 12, 2316, 461, 1769, 9506, 202, 74, 7617, 6233, 33, 2011, 31, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 4110, 1908, 1435, 95, 202, 202, 1046, 2471, 6233, 6353, 12730, 33, 1082, 202, 2704, 1046, 2471, 6233, 6353, 12, 9506, 202, 588, 5285, 7675, 588, 13220, 9334, 9506, 202, 2704, 2421, 22144, 2224, 2249, 9334, 9506, 202, 2704, 2421, 22144, 1350, 2249, 10663, 25083, 202, 11160, 6353, 2628, 12, 12730, 1769, 202, 202, 430, 12, 12730, 18, 3190, 1435, 631, 3829, 18, 3141, 15329, 25083, 202, 921, 8526, 6274, 33, 12730, 18, 588, 1253, 5621, 1082, 202, 1884, 12, 474, 77, 33, 20, 31, 77, 32, 6274, 18, 2469, 31, 77, 27245, 95, 9506, 202, 45, 1420, 10037, 28657, 45, 1420, 13, 6274, 63, 77, 15533, 9506, 202, 780, 2316, 461, 33, 588, 16519, 2 ]
blockLength = actionLength(blockActions);
blockLength = actionLength(blockActions, info.version, info.encoding);
private void generateForIn(ASInfo info, ArrayList actions) { int count = count(); ArrayList conditionActions = new ArrayList(); ArrayList blockActions = new ArrayList(); int conditionLength = 0; int blockLength = 0; // Push all the attributes of the specified object onto the stack addReference(actions, info, children[1].sValue); actions.add(new Action(Action.Enumerate)); // Set the enumerator variable with the current attribute addReference(blockActions, info, children[0].sValue); addLiteral(blockActions, new RegisterIndex(0)); blockActions.add(new Action(Action.SetVariable)); // Translate the body of the for..in statement if (count == 3) { children[2].discardValues(); children[2].generate(info, blockActions); } // Calculate the length of the block in bytes blockLength = actionLength(blockActions); // Translate the clause of the for..in statement conditionActions.add(new ValueAction(Action.RegisterCopy, 0)); addLiteral(conditionActions, new Null()); addAction(conditionActions, Action.Equals); conditionActions.add(new ValueAction(Action.If, blockLength+5)); // includes loop jump // Calculate the length of the condition actions in bytes conditionLength = actionLength(conditionActions); // Add the jump to the start of the condition block blockActions.add(new ValueAction(Action.Jump, -(conditionLength+blockLength+5))); blockLength += 5; // Replace any break and continue place holders with jump statements. int currentLength = conditionLength; for (int i=0; i<blockActions.size(); i++) { Action currentAction = (Action)blockActions.get(i); currentLength += currentAction.length(info.version, info.encoding); if (currentAction.type == 256) blockActions.set(i, new ValueAction(Action.Jump, blockLength-currentLength)); if (currentAction.type == 257) blockActions.set(i, new ValueAction(Action.Jump, -(conditionLength+currentLength))); } actions.addAll(conditionActions); actions.addAll(blockActions); }
55585 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55585/ae9ae7a2018e48c5102d1a72b7713b1802606fa7/ASNode.java/clean/src/com/flagstone/translate/ASNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1290, 382, 12, 3033, 966, 1123, 16, 2407, 4209, 13, 565, 288, 3639, 509, 1056, 273, 1056, 5621, 3639, 2407, 2269, 6100, 273, 394, 2407, 5621, 3639, 2407, 1203, 6100, 273, 394, 2407, 5621, 7734, 509, 2269, 1782, 273, 374, 31, 3639, 509, 25367, 273, 374, 31, 3639, 368, 8547, 777, 326, 1677, 434, 326, 1269, 733, 10170, 326, 2110, 3639, 527, 2404, 12, 4905, 16, 1123, 16, 2325, 63, 21, 8009, 87, 620, 1769, 3639, 4209, 18, 1289, 12, 2704, 4382, 12, 1803, 18, 3572, 12600, 10019, 3639, 368, 1000, 326, 24679, 2190, 598, 326, 783, 1566, 3639, 527, 2404, 12, 2629, 6100, 16, 1123, 16, 2325, 63, 20, 8009, 87, 620, 1769, 3639, 527, 6177, 12, 2629, 6100, 16, 394, 5433, 1016, 12, 20, 10019, 5375, 1203, 6100, 18, 1289, 12, 2704, 4382, 12, 1803, 18, 694, 3092, 10019, 7734, 368, 16820, 326, 1417, 434, 326, 364, 838, 267, 3021, 1171, 309, 261, 1883, 422, 890, 13, 3639, 288, 5411, 2325, 63, 22, 8009, 31992, 1972, 5621, 5411, 2325, 63, 22, 8009, 7163, 12, 1376, 16, 1203, 6100, 1769, 3639, 289, 7734, 368, 9029, 326, 769, 434, 326, 1203, 316, 1731, 7734, 25367, 273, 1301, 1782, 12, 2629, 6100, 16, 1123, 18, 1589, 16, 1123, 18, 5999, 1769, 3639, 368, 16820, 326, 6591, 434, 326, 364, 838, 267, 3021, 7734, 2269, 6100, 18, 1289, 12, 2704, 1445, 1803, 12, 1803, 18, 3996, 2951, 16, 374, 10019, 3639, 527, 6177, 12, 4175, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1290, 382, 12, 3033, 966, 1123, 16, 2407, 4209, 13, 565, 288, 3639, 509, 1056, 273, 1056, 5621, 3639, 2407, 2269, 6100, 273, 394, 2407, 5621, 3639, 2407, 1203, 6100, 273, 394, 2407, 5621, 7734, 509, 2269, 1782, 273, 374, 31, 3639, 509, 25367, 273, 374, 31, 3639, 368, 8547, 777, 326, 1677, 434, 326, 1269, 733, 10170, 326, 2110, 3639, 527, 2404, 12, 4905, 16, 1123, 16, 2325, 63, 21, 8009, 87, 620, 1769, 3639, 4209, 18, 1289, 12, 2704, 4382, 12, 1803, 18, 3572, 12600, 10019, 3639, 368, 1000, 326, 24679, 2190, 598, 326, 783, 1566, 3639, 527, 2404, 12, 2629, 6100, 16, 1123, 16, 2325, 63, 20, 8009, 87, 620, 1769, 3639, 2 ]
currentP.life = 0f; currentP.fade = 0f;
currentP.life = 0f; currentP.fade = 0f;
private void killParticle() { currentP.life = 0f; currentP.fade = 0f; currentP.color.r = 0; currentP.color.g = 0; currentP.color.b = 0; currentP.color.a = 0; currentP.size = 0; currentP.velocity.x = 1; currentP.velocity.y = 1; currentP.velocity.z = 1; }
19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/7ce418cce8b34858c0fda4cedf0156b50a08da82/ParticleController.java/clean/src/com/jme/effects/ParticleController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 8673, 1988, 3711, 1435, 288, 3639, 783, 52, 18, 10256, 73, 273, 374, 74, 31, 3639, 783, 52, 18, 507, 323, 273, 374, 74, 31, 3639, 783, 52, 18, 3266, 18, 86, 273, 374, 31, 3639, 783, 52, 18, 3266, 18, 75, 273, 374, 31, 3639, 783, 52, 18, 3266, 18, 70, 273, 374, 31, 3639, 783, 52, 18, 3266, 18, 69, 273, 374, 31, 3639, 783, 52, 18, 1467, 273, 374, 31, 3639, 783, 52, 18, 29418, 560, 18, 92, 273, 404, 31, 3639, 783, 52, 18, 29418, 560, 18, 93, 273, 404, 31, 3639, 783, 52, 18, 29418, 560, 18, 94, 273, 404, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 8673, 1988, 3711, 1435, 288, 3639, 783, 52, 18, 10256, 73, 273, 374, 74, 31, 3639, 783, 52, 18, 507, 323, 273, 374, 74, 31, 3639, 783, 52, 18, 3266, 18, 86, 273, 374, 31, 3639, 783, 52, 18, 3266, 18, 75, 273, 374, 31, 3639, 783, 52, 18, 3266, 18, 70, 273, 374, 31, 3639, 783, 52, 18, 3266, 18, 69, 273, 374, 31, 3639, 783, 52, 18, 1467, 273, 374, 31, 3639, 783, 52, 18, 29418, 560, 18, 92, 273, 404, 31, 3639, 783, 52, 18, 29418, 560, 18, 93, 273, 404, 31, 3639, 783, 52, 18, 29418, 560, 18, 94, 273, 404, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
currentPath = currentPath + '/' + node.getNodeName();
currentPath.append('/').append(node.getNodeName());
private void scanNodes(Iterator iterator, NodeImpl node, String currentPath) { if (node.getNodeType() == Node.ELEMENT_NODE) currentPath = currentPath + '/' + node.getNodeName(); reindex(node, currentPath); if (node.hasChildNodes()) { final DocumentImpl doc = (DocumentImpl) node.getOwnerDocument(); final long firstChildId = XMLUtil.getFirstChildId(doc, node.getGID()); if (firstChildId < 0) { LOG.fatal( "no child found: expected = " + node.getChildCount() + "; node = " + node.getNodeName() + "; gid = " + node.getGID()); throw new IllegalStateException("wrong node id"); } final long lastChildId = firstChildId + node.getChildCount(); long p; Value value; NodeImpl child; for (long gid = firstChildId; gid < lastChildId; gid++) { child = (NodeImpl) iterator.next(); child.setGID(gid); scanNodes(iterator, child, currentPath); } } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/59ca20fa7f3d75ce3217db0a6b9b6203354d1fa8/NativeBroker.java/clean/src/org/exist/storage/NativeBroker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4135, 3205, 12, 3198, 2775, 16, 2029, 2828, 756, 16, 514, 18027, 13, 288, 202, 202, 430, 261, 2159, 18, 588, 15101, 1435, 422, 2029, 18, 10976, 67, 8744, 13, 1082, 202, 2972, 743, 273, 18027, 397, 2023, 397, 756, 18, 588, 18948, 5621, 202, 202, 266, 1615, 12, 2159, 16, 18027, 1769, 202, 202, 430, 261, 2159, 18, 5332, 22460, 10756, 288, 1082, 202, 6385, 4319, 2828, 997, 273, 261, 2519, 2828, 13, 756, 18, 588, 5541, 2519, 5621, 1082, 202, 6385, 1525, 15070, 548, 273, 9506, 202, 4201, 1304, 18, 588, 3759, 1763, 548, 12, 2434, 16, 756, 18, 588, 28258, 10663, 1082, 202, 430, 261, 3645, 1763, 548, 411, 374, 13, 288, 9506, 202, 4842, 18, 30709, 12, 6862, 202, 6, 2135, 1151, 1392, 30, 2665, 273, 315, 25083, 202, 15, 756, 18, 588, 1763, 1380, 1435, 25083, 202, 15, 13636, 756, 273, 315, 25083, 202, 15, 756, 18, 588, 18948, 1435, 25083, 202, 15, 13636, 11399, 273, 315, 25083, 202, 15, 756, 18, 588, 28258, 10663, 9506, 202, 12849, 394, 5477, 2932, 21530, 756, 612, 8863, 1082, 202, 97, 1082, 202, 6385, 1525, 30006, 548, 273, 15070, 548, 397, 756, 18, 588, 1763, 1380, 5621, 1082, 202, 5748, 293, 31, 1082, 202, 620, 460, 31, 1082, 202, 907, 2828, 1151, 31, 1082, 202, 1884, 261, 5748, 11399, 273, 15070, 548, 31, 11399, 411, 30006, 548, 31, 11399, 27245, 288, 9506, 202, 3624, 273, 261, 907, 2828, 13, 2775, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4135, 3205, 12, 3198, 2775, 16, 2029, 2828, 756, 16, 514, 18027, 13, 288, 202, 202, 430, 261, 2159, 18, 588, 15101, 1435, 422, 2029, 18, 10976, 67, 8744, 13, 1082, 202, 2972, 743, 273, 18027, 397, 2023, 397, 756, 18, 588, 18948, 5621, 202, 202, 266, 1615, 12, 2159, 16, 18027, 1769, 202, 202, 430, 261, 2159, 18, 5332, 22460, 10756, 288, 1082, 202, 6385, 4319, 2828, 997, 273, 261, 2519, 2828, 13, 756, 18, 588, 5541, 2519, 5621, 1082, 202, 6385, 1525, 15070, 548, 273, 9506, 202, 4201, 1304, 18, 588, 3759, 1763, 548, 12, 2434, 16, 756, 18, 588, 28258, 10663, 1082, 202, 430, 261, 3645, 1763, 548, 411, 374, 13, 288, 2 ]
List recruits = game.findEligibleRecruits(legion, hex); if (recruits.size() == 0) return null; Creature recruit = (Creature)recruits.get(recruits.size() - 1); if (recruit == Creature.gorgon && recruits.contains(Creature.cyclops) && legion.numCreature(Creature.behemoth) == 0 && legion.numCreature(Creature.cyclops) == 2) { recruit = Creature.cyclops; } else if (recruit == Creature.gorgon && recruits.contains(Creature.cyclops) && legion.getHeight() == 6 && legion.numCreature(Creature.behemoth) == 0 && legion.numCreature(Creature.gargoyle) == 0) { recruit = Creature.cyclops; } else if ( recruits.contains(Creature.guardian) && recruits.contains(Creature.warlock) ) { recruit = Creature.warlock; } else if ( recruits.contains(Creature.lion) && recruits.contains(Creature.ranger) && legion.numCreature(Creature.lion) == 2 && getNumberOfWaysToTerrain(legion,hex,'D') > 0) { recruit = Creature.lion; } else if ( recruits.contains(Creature.troll) && recruits.contains(Creature.ranger) && legion.numCreature(Creature.troll) == 2 && getNumberOfWaysToTerrain(legion,hex,'S') > 0) { recruit = Creature.troll; } else if ( recruits.contains(Creature.ogre) && recruits.contains(Creature.centaur) && recruits.contains(Creature.gargoyle) && recruits.size() == 3) { if (legion.numCreature(Creature.ogre) == 2) recruit = Creature.ogre; else if (legion.numCreature(Creature.centaur) == 2) recruit = Creature.centaur; else if (legion.numCreature(Creature.gargoyle) == 1) recruit = Creature.gargoyle; else if (legion.numCreature(Creature.ogre) == 1) recruit = Creature.ogre; else if (legion.numCreature(Creature.centaur) == 1) recruit = Creature.centaur; else if (game.getCaretaker().getCount(Creature.cyclops) > 6 && legion.numCreature(Creature.gargoyle) < 2 ) recruit = Creature.gargoyle; else if (game.getCaretaker().getCount(Creature.troll) > 6 && legion.numCreature(Creature.ogre) < 2 ) recruit = Creature.ogre; else if (game.getCaretaker().getCount(Creature.lion) > 6 && legion.numCreature(Creature.centaur) < 2 ) recruit = Creature.centaur; } return recruit;
List recruits = game.findEligibleRecruits(legion, hex); if (recruits.size() == 0) return null; Creature recruit = (Creature)recruits.get(recruits.size() - 1); if (recruit == Creature.gorgon && recruits.contains(Creature.cyclops) && legion.numCreature(Creature.behemoth) == 0 && legion.numCreature(Creature.cyclops) == 2) { recruit = Creature.cyclops; } else if (recruit == Creature.gorgon && recruits.contains(Creature.cyclops) && legion.getHeight() == 6 && legion.numCreature(Creature.behemoth) == 0 && legion.numCreature(Creature.gargoyle) == 0) { recruit = Creature.cyclops; } else if ( recruits.contains(Creature.guardian) && recruits.contains(Creature.warlock) ) { recruit = Creature.warlock; } else if ( recruits.contains(Creature.lion) && recruits.contains(Creature.ranger) && legion.numCreature(Creature.lion) == 2 && getNumberOfWaysToTerrain(legion,hex,'D') > 0) { recruit = Creature.lion; } else if ( recruits.contains(Creature.troll) && recruits.contains(Creature.ranger) && legion.numCreature(Creature.troll) == 2 && getNumberOfWaysToTerrain(legion,hex,'S') > 0) { recruit = Creature.troll; } else if ( recruits.contains(Creature.ogre) && recruits.contains(Creature.centaur) && recruits.contains(Creature.gargoyle) && recruits.size() == 3) { if (legion.numCreature(Creature.ogre) == 2) recruit = Creature.ogre; else if (legion.numCreature(Creature.centaur) == 2) recruit = Creature.centaur; else if (legion.numCreature(Creature.gargoyle) == 1) recruit = Creature.gargoyle; else if (legion.numCreature(Creature.ogre) == 1) recruit = Creature.ogre; else if (legion.numCreature(Creature.centaur) == 1) recruit = Creature.centaur; else if (game.getCaretaker().getCount(Creature.cyclops) > 6 && legion.numCreature(Creature.gargoyle) < 2 ) recruit = Creature.gargoyle; else if (game.getCaretaker().getCount(Creature.troll) > 6 && legion.numCreature(Creature.ogre) < 2 ) recruit = Creature.ogre; else if (game.getCaretaker().getCount(Creature.lion) > 6 && legion.numCreature(Creature.centaur) < 2 ) recruit = Creature.centaur; } return recruit;
private static Creature chooseRecruit (Game game, Legion legion, MasterHex hex) { List recruits = game.findEligibleRecruits(legion, hex); if (recruits.size() == 0) return null; // pick the last creature in the list (which is the best/highest recruit) Creature recruit = (Creature)recruits.get(recruits.size() - 1); // take third cyclops in brush if (recruit == Creature.gorgon && recruits.contains(Creature.cyclops) && legion.numCreature(Creature.behemoth) == 0 && legion.numCreature(Creature.cyclops) == 2) { recruit = Creature.cyclops; } // take a fourth cyclops in brush // (so that we can split out a cyclops and still keep 3) else if (recruit == Creature.gorgon && recruits.contains(Creature.cyclops) && legion.getHeight() == 6 && legion.numCreature(Creature.behemoth) == 0 && legion.numCreature(Creature.gargoyle) == 0) { recruit = Creature.cyclops; } // prefer warlock over guardian (should be built in now) else if ( recruits.contains(Creature.guardian) && recruits.contains(Creature.warlock) ) { recruit = Creature.warlock; } // take a third lion/troll if we've got at least 1 way to desert/swamp // from here and we're not about to be attacked else if ( recruits.contains(Creature.lion) && recruits.contains(Creature.ranger) && legion.numCreature(Creature.lion) == 2 && getNumberOfWaysToTerrain(legion,hex,'D') > 0) { recruit = Creature.lion; } else if ( recruits.contains(Creature.troll) && recruits.contains(Creature.ranger) && legion.numCreature(Creature.troll) == 2 && getNumberOfWaysToTerrain(legion,hex,'S') > 0) { recruit = Creature.troll; } // tower creature selection: else if ( recruits.contains(Creature.ogre) && recruits.contains(Creature.centaur) && recruits.contains(Creature.gargoyle) && recruits.size() == 3) { // if we have 2 centaurs or ogres, take a third if (legion.numCreature(Creature.ogre) == 2) recruit = Creature.ogre; else if (legion.numCreature(Creature.centaur) == 2) recruit = Creature.centaur; // else if we have 1 of a tower creature, take a matching one else if (legion.numCreature(Creature.gargoyle) == 1) recruit = Creature.gargoyle; else if (legion.numCreature(Creature.ogre) == 1) recruit = Creature.ogre; else if (legion.numCreature(Creature.centaur) == 1) recruit = Creature.centaur; // else if there's cyclops left and we don't have 2 gargoyles, take a gargoyle else if (game.getCaretaker().getCount(Creature.cyclops) > 6 && legion.numCreature(Creature.gargoyle) < 2 ) recruit = Creature.gargoyle; // else if there's trolls left and we don't have 2 ogres, take an ogre else if (game.getCaretaker().getCount(Creature.troll) > 6 && legion.numCreature(Creature.ogre) < 2 ) recruit = Creature.ogre; // else if there's lions left and we don't have 2 lions, take a centaur else if (game.getCaretaker().getCount(Creature.lion) > 6 && legion.numCreature(Creature.centaur) < 2 ) recruit = Creature.centaur; // else we dont really care; take anything } return recruit; }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/db1dae80f332e8300e5d408cc3cdb3807d4ae58e/SimpleAI.java/clean/Colossus/SimpleAI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 5799, 1231, 9876, 426, 3353, 14945, 261, 12496, 7920, 16, 17167, 285, 4553, 285, 16, 13453, 7037, 3827, 13, 565, 288, 202, 682, 1950, 8653, 1282, 273, 7920, 18, 4720, 4958, 16057, 426, 3353, 89, 1282, 12, 1935, 285, 16, 3827, 1769, 202, 430, 261, 266, 3353, 89, 1282, 18, 1467, 1435, 422, 374, 13, 327, 446, 31, 202, 759, 6002, 326, 1142, 1519, 1231, 316, 326, 666, 261, 12784, 353, 326, 3796, 19, 8766, 395, 1950, 8653, 305, 13, 202, 1996, 1231, 1950, 8653, 305, 273, 261, 1996, 1231, 13, 266, 3353, 89, 1282, 18, 588, 12, 266, 3353, 89, 1282, 18, 1467, 1435, 300, 404, 1769, 225, 202, 759, 4862, 12126, 6143, 7550, 1121, 316, 5186, 1218, 225, 202, 430, 261, 266, 3353, 14945, 422, 5799, 1231, 18, 3022, 75, 265, 3196, 565, 597, 1950, 8653, 1282, 18, 12298, 12, 1996, 1231, 18, 2431, 7550, 1121, 13, 3196, 565, 597, 4553, 285, 18, 2107, 1996, 1231, 12, 1996, 1231, 18, 2196, 76, 351, 10370, 13, 422, 374, 3196, 565, 597, 4553, 285, 18, 2107, 1996, 1231, 12, 1996, 1231, 18, 2431, 7550, 1121, 13, 422, 576, 13, 202, 95, 202, 565, 1950, 8653, 305, 273, 5799, 1231, 18, 2431, 7550, 1121, 31, 202, 97, 225, 202, 759, 4862, 279, 12792, 451, 6143, 7550, 1121, 316, 5186, 1218, 225, 202, 759, 261, 2048, 716, 732, 848, 1416, 596, 279, 6143, 7550, 1121, 471, 4859, 3455, 890, 13, 202, 12107, 309, 261, 266, 3353, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 5799, 1231, 9876, 426, 3353, 14945, 261, 12496, 7920, 16, 17167, 285, 4553, 285, 16, 13453, 7037, 3827, 13, 565, 288, 202, 682, 1950, 8653, 1282, 273, 7920, 18, 4720, 4958, 16057, 426, 3353, 89, 1282, 12, 1935, 285, 16, 3827, 1769, 202, 430, 261, 266, 3353, 89, 1282, 18, 1467, 1435, 422, 374, 13, 327, 446, 31, 202, 759, 6002, 326, 1142, 1519, 1231, 316, 326, 666, 261, 12784, 353, 326, 3796, 19, 8766, 395, 1950, 8653, 305, 13, 202, 1996, 1231, 1950, 8653, 305, 273, 261, 1996, 1231, 13, 266, 3353, 89, 1282, 18, 588, 12, 266, 3353, 89, 1282, 18, 1467, 1435, 300, 404, 1769, 225, 202, 759, 4862, 12126, 6143, 7550, 1121, 2 ]
iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop);
iCodeTop = addByte(type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC, iCodeTop);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); if (num == 0.0) { iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); } else if (num == 1.0) { iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 13491, 648, 3155, 1228, 18, 7788, 294, 288, 4766, 18701, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 13, 3155, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 7925, 770, 273, 261, 4897, 13, 2295, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 21433, 1615, 18, 6620, 620, 1435, 1671, 1725, 3631, 277, 1085, 3401, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 21433, 1615, 18, 6620, 620, 1435, 473, 374, 5297, 3631, 277, 1085, 3401, 1769, 4766, 3639, 2097, 2624, 6148, 9904, 31, 10792, 309, 261, 1282, 2624, 6148, 405, 2097, 751, 18, 1282, 2747, 2624, 13, 13491, 2097, 751, 18, 1282, 2747, 2624, 273, 2097, 2624, 6148, 31, 7734, 289, 7734, 898, 31, 5411, 648, 3155, 1228, 18, 10885, 294, 7734, 277, 1085, 3401, 273, 1089, 31063, 12, 2159, 16, 277, 1085, 3401, 1769, 7734, 1323, 261, 3624, 480, 446, 13, 288, 10792, 309, 261, 3624, 18, 588, 559, 1435, 480, 3155, 1228, 18, 7788, 13, 7682, 277, 1085, 3401, 273, 2103, 45, 1085, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 1620, 261, 723, 13, 288, 13491, 648, 3155, 1228, 18, 7788, 294, 288, 4766, 18701, 277, 1085, 3401, 273, 527, 3216, 12443, 7229, 13, 3155, 1228, 18, 22693, 55, 4830, 16, 277, 1085, 3401, 1769, 10792, 2029, 2295, 273, 261, 907, 13, 756, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 7925, 770, 273, 261, 4897, 13, 2295, 18, 588, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 2 ]
setBreakpoints();
initializeBreakpoints();
protected void initialize() { initializeState(); setSourceSearchPath(); setBreakpoints(); initializeRegisters(); initializeMemoryManager(); getLaunch().addDebugTarget( this ); fireCreationEvent(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/58c356def4ff4230eb755db7e46c531e6e6b87e3/CDebugTarget.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4046, 1435, 225, 202, 95, 202, 202, 11160, 1119, 5621, 202, 202, 542, 1830, 2979, 743, 5621, 202, 202, 542, 7634, 4139, 5621, 202, 202, 11160, 10277, 5621, 202, 202, 11160, 6031, 1318, 5621, 202, 202, 588, 9569, 7675, 1289, 2829, 2326, 12, 333, 11272, 202, 202, 12179, 9906, 1133, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4046, 1435, 225, 202, 95, 202, 202, 11160, 1119, 5621, 202, 202, 542, 1830, 2979, 743, 5621, 202, 202, 542, 7634, 4139, 5621, 202, 202, 11160, 10277, 5621, 202, 202, 11160, 6031, 1318, 5621, 202, 202, 588, 9569, 7675, 1289, 2829, 2326, 12, 333, 11272, 202, 202, 12179, 9906, 1133, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
__log.debug("fillProcessInfo: No files for " + _store.getDeploymentDir() + " !!!");
__log.debug("fillProcessInfo: No files for " + pconf.getProcessId() + " !!!");
private void fillProcessInfo(TProcessInfo info, ProcessDAO proc, ProcessInfoCustomizer custom) { ProcessConf pconf = _store.getProcessConfiguration(proc.getProcessId()); info.setPid(proc.getProcessId().toString()); // TODO: ACTIVE and RETIRED should be used separately. //Active process may be retired at the same time if(!pconf.isActive()) { info.setStatus(TProcessStatus.RETIRED); } else { info.setStatus(TProcessStatus.ACTIVE); } TDefinitionInfo definfo = info.addNewDefinitionInfo(); definfo.setProcessName(proc.getType()); TDeploymentInfo depinfo = info.addNewDeploymentInfo(); depinfo.setDeployDate(toCalendar(pconf.getDeployDate())); depinfo.setDeployer(pconf.getDeployer()); if (custom.includeInstanceSummary()) { TInstanceSummary isum = info.addNewInstanceSummary(); genInstanceSummaryEntry(isum.addNewInstances(),TInstanceStatus.ACTIVE, proc); genInstanceSummaryEntry(isum.addNewInstances(),TInstanceStatus.COMPLETED, proc); genInstanceSummaryEntry(isum.addNewInstances(),TInstanceStatus.ERROR, proc); genInstanceSummaryEntry(isum.addNewInstances(),TInstanceStatus.FAILED, proc); genInstanceSummaryEntry(isum.addNewInstances(),TInstanceStatus.SUSPENDED, proc); genInstanceSummaryEntry(isum.addNewInstances(),TInstanceStatus.TERMINATED, proc); getInstanceSummaryActivityFailure(isum, proc); } TProcessInfo.Documents docinfo = info.addNewDocuments(); File files[] = pconf.getFiles(); if (files != null) genDocumentInfo(docinfo, _store.getDeploymentDir(), files, true); else if (__log.isDebugEnabled()) __log.debug("fillProcessInfo: No files for " + _store.getDeploymentDir() + " !!!"); if (custom.includeProcessProperties()) { TProcessProperties properties = info.addNewProperties(); for (Map.Entry<QName, Node> propEntry : pconf.getProperties().entrySet()) { TProcessProperties.Property tprocProp = properties.addNewProperty(); tprocProp.setName(new QName(propEntry.getKey().getNamespaceURI(), propEntry.getKey().getLocalPart())); Node propNode = tprocProp.getDomNode(); Document processInfoDoc = propNode.getOwnerDocument(); Node node2append = processInfoDoc.importNode(propEntry.getValue(), true); propNode.appendChild(node2append); } } OProcess oprocess = _engine.getOProcess(proc.getProcessId()); if (custom.includeEndpoints() && oprocess != null) { TEndpointReferences eprs = info.addNewEndpoints(); for (OPartnerLink oplink : oprocess.getAllPartnerLinks()) { if (oplink.hasPartnerRole() && oplink.initializePartnerRole) { EndpointReference pepr = _engine._activeProcesses.get(proc.getProcessId()) .getInitialPartnerRoleEPR(oplink); if (pepr!= null) { TEndpointReferences.EndpointRef epr = eprs.addNewEndpointRef(); Document eprNodeDoc = epr.getDomNode().getOwnerDocument(); epr.getDomNode().appendChild(eprNodeDoc.importNode(pepr.toXML().getDocumentElement(), true)); } } } } //TODO: add documents to the above data structure. }
45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/5f138028c4f2f9da31f4670375dc15a4f70fbe3a/ProcessAndInstanceManagementImpl.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/ProcessAndInstanceManagementImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3636, 2227, 966, 12, 56, 2227, 966, 1123, 16, 4389, 18485, 5418, 16, 4389, 966, 3802, 1824, 1679, 13, 288, 3639, 4389, 3976, 293, 3923, 273, 389, 2233, 18, 588, 2227, 1750, 12, 9381, 18, 588, 2227, 548, 10663, 3639, 1123, 18, 542, 12478, 12, 9381, 18, 588, 2227, 548, 7675, 10492, 10663, 3639, 368, 2660, 30, 21135, 471, 10366, 45, 5879, 1410, 506, 1399, 18190, 18, 3639, 368, 3896, 1207, 2026, 506, 325, 2921, 622, 326, 1967, 813, 3639, 309, 12, 5, 84, 3923, 18, 291, 3896, 10756, 288, 5411, 1123, 18, 542, 1482, 12, 56, 2227, 1482, 18, 10238, 45, 5879, 1769, 3639, 289, 469, 288, 5411, 1123, 18, 542, 1482, 12, 56, 2227, 1482, 18, 13301, 1769, 3639, 289, 3639, 399, 1852, 966, 2217, 617, 273, 1123, 18, 1289, 1908, 1852, 966, 5621, 3639, 2217, 617, 18, 542, 2227, 461, 12, 9381, 18, 588, 559, 10663, 3639, 399, 6733, 966, 5993, 1376, 273, 1123, 18, 1289, 1908, 6733, 966, 5621, 3639, 5993, 1376, 18, 542, 10015, 1626, 12, 869, 7335, 12, 84, 3923, 18, 588, 10015, 1626, 1435, 10019, 3639, 5993, 1376, 18, 542, 10015, 264, 12, 84, 3923, 18, 588, 10015, 264, 10663, 3639, 309, 261, 3662, 18, 6702, 1442, 4733, 10756, 288, 5411, 399, 1442, 4733, 353, 379, 273, 1123, 18, 1289, 1908, 1442, 4733, 5621, 5411, 3157, 1442, 4733, 1622, 12, 291, 379, 18, 1289, 1908, 5361, 9334, 56, 1442, 1482, 18, 13301, 16, 5418, 1769, 5411, 3157, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3636, 2227, 966, 12, 56, 2227, 966, 1123, 16, 4389, 18485, 5418, 16, 4389, 966, 3802, 1824, 1679, 13, 288, 3639, 4389, 3976, 293, 3923, 273, 389, 2233, 18, 588, 2227, 1750, 12, 9381, 18, 588, 2227, 548, 10663, 3639, 1123, 18, 542, 12478, 12, 9381, 18, 588, 2227, 548, 7675, 10492, 10663, 3639, 368, 2660, 30, 21135, 471, 10366, 45, 5879, 1410, 506, 1399, 18190, 18, 3639, 368, 3896, 1207, 2026, 506, 325, 2921, 622, 326, 1967, 813, 3639, 309, 12, 5, 84, 3923, 18, 291, 3896, 10756, 288, 5411, 1123, 18, 542, 1482, 12, 56, 2227, 1482, 18, 10238, 45, 5879, 1769, 3639, 289, 469, 288, 5411, 1123, 18, 542, 1482, 12, 56, 2227, 2 ]
tableBox.rightPadding = border.right + (int)margin.right();
tableBox.rightPadding = (int)border.right() + (int)margin.right();
public static Box layout(Context c, BlockBox outerBox, Content content) { boolean set_bfc = false; if (content instanceof TableContent) { // install a block formatting context for the body, // ie. if it's null. // set up the outtermost bfc if (c.getBlockFormattingContext() == null) { outerBox.setParent(c.getCtx().getRootBox()); BlockFormattingContext bfc = new BlockFormattingContext(outerBox, c); c.pushBFC(bfc); set_bfc = true; bfc.setWidth((int) c.getExtents().getWidth()); } } else { XRLog.layout(Level.WARNING, "Unsupported table type " + content.getClass().getName()); return null; } // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); //outerBox.x = c.getExtents().x; //outerBox.y = c.getExtents().y; //HACK: for now outerBox.contentWidth = c.getExtents().width; outerBox.height = c.getExtents().height; c.pushStyle(CascadedStyle.emptyCascadedStyle); outerBox.setStyle(new Style(c.getCurrentStyle(), 0, c.getCtx())); c.popStyle(); TableBox tableBox = new TableBox(); outerBox.addChild(tableBox); tableBox.element = content.getElement(); //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } else { c.pushStyle(CascadedStyle.emptyCascadedStyle); } tableBox.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth(), c.getCtx())); VerticalMarginCollapser.collapseVerticalMargins(c, tableBox, content, (float) oe.getWidth()); TableContent tableContent = (TableContent) content; if (tableContent.isTopMarginCollapsed()) { tableBox.getStyle().setMarginTopOverride(0f); } if (tableContent.isBottomMarginCollapsed()) { tableBox.getStyle().setMarginBottomOverride(0f); } tableBox.setStyle(new Style(c.getCurrentStyle(), (float) oe.getWidth(), c.getCtx())); Border border = c.getCurrentStyle().getBorderWidth(c.getCtx()); //note: percentages here refer to width of containing block RectPropertySet margin = tableBox.getStyle().getMarginWidth(); RectPropertySet padding = c.getCurrentStyle().getPaddingRect((float) oe.getWidth(), (float) oe.getWidth(), c.getCtx()); // CLEAN: cast to int int tx = (int)margin.left() + border.left + (int)padding.left(); int ty = (int)margin.top() + border.top + (int)padding.top(); tableBox.tx = tx; tableBox.ty = ty; c.translate(tx, ty); c.shrinkExtents(tx + (int)margin.right() + border.right + (int)padding.right(), ty + (int)margin.bottom() + border.bottom + (int)padding.bottom()); IdentValue borderStyle = c.getCurrentStyle().getIdent(CSSName.BORDER_COLLAPSE); int borderSpacingHorizontal = (int) c.getCurrentStyle().getFloatPropertyProportionalWidth(CSSName.FS_BORDER_SPACING_HORIZONTAL, 0, c.getCtx()); int borderSpacingVertical = (int) c.getCurrentStyle().getFloatPropertyProportionalWidth(CSSName.FS_BORDER_SPACING_VERTICAL, 0, c.getCtx()); layoutChildren(c, tableBox, content, false, borderSpacingHorizontal, borderSpacingVertical); c.unshrinkExtents(); c.translate(-tx, -ty); //OK, now we basically have the maximum cell widths, is that a smart order? //TODO: percentages? if (c.getCurrentStyle().isIdent(CSSName.WIDTH, IdentValue.AUTO)) { //we're normally fine, unless the maximum width is greater than the extents fixWidths(tableBox, borderSpacingHorizontal); } else {//if the algorithm is fixed, we need to do something else from the start int givenWidth = (int) c.getCurrentStyle().getFloatPropertyProportionalWidth(CSSName.WIDTH, c.getExtents().width, c.getCtx()); //also fine, if the total calculated is less than the extents and the width if (tableBox.contentWidth < givenWidth) { tableBox.contentWidth = givenWidth; fixWidths(tableBox, borderSpacingHorizontal); } else { c.getExtents().width = 1; c.translate(tx, ty); int[] preferredColumns = tableBox.columns; tableBox.columns = null; tableBox.removeAllChildren(); tableBox.contentWidth = 0; tableBox.height = 0; layoutChildren(c, tableBox, content, false, borderSpacingHorizontal, borderSpacingVertical); c.translate(-tx, -ty); //here the table is layed out with minimum column widths if (tableBox.contentWidth < givenWidth) { //do it right tableBox.contentWidth = givenWidth; tableBox.removeAllChildren(); fixWidths(tableBox, borderSpacingHorizontal, preferredColumns); c.translate(tx, ty); tableBox.contentWidth = 0; tableBox.height = 0; layoutChildren(c, tableBox, content, true, borderSpacingHorizontal, borderSpacingVertical); c.translate(-tx, -ty); } } } //now the width is settled, fix vertical alignment for (Iterator i = tableBox.getChildIterator(); i.hasNext();) { Object o = i.next(); if (o instanceof RowBox) { fixVerticalAlign(c, (RowBox) o); } } //TODO: margins go on the outer box tableBox.leftPadding = border.left + (int)padding.left(); // CLEAN: cast to int tableBox.leftPadding += (int)margin.left(); tableBox.rightPadding = border.right + (int)margin.right(); tableBox.rightPadding += (int)margin.right(); tableBox.height = (int)margin.top() + border.top + (int)padding.top() + tableBox.height + (int)padding.bottom() + border.bottom + (int)margin.bottom(); c.popStyle(); //restore the extents c.setExtents(oe); // remove the outtermost bfc if (set_bfc) { c.getBlockFormattingContext().doFinalAdjustments(); c.popBFC(); } outerBox.height = 0; for (Iterator i = outerBox.getChildIterator(); i.hasNext();) { Box child = (Box) i.next(); outerBox.height += child.height; outerBox.adjustWidthForChild(child.getWidth()); } tableBox.setState(Box.DONE); outerBox.propagateChildProperties(tableBox); outerBox.setState(Box.DONE); return outerBox; }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/8ea25aa585e94d56872f163ff3c60962f3a3ddce/TableBoxing.java/buggy/src/java/org/xhtmlrenderer/table/TableBoxing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 8549, 3511, 12, 1042, 276, 16, 3914, 3514, 6390, 3514, 16, 3697, 913, 13, 288, 3639, 1250, 444, 67, 70, 7142, 273, 629, 31, 3639, 309, 261, 1745, 1276, 3555, 1350, 13, 288, 5411, 368, 3799, 279, 1203, 10407, 819, 364, 326, 1417, 16, 5411, 368, 9228, 18, 309, 518, 1807, 446, 18, 5411, 368, 444, 731, 326, 596, 6408, 669, 324, 7142, 5411, 309, 261, 71, 18, 588, 1768, 23974, 1042, 1435, 422, 446, 13, 288, 7734, 6390, 3514, 18, 542, 3054, 12, 71, 18, 588, 6442, 7675, 588, 2375, 3514, 10663, 7734, 3914, 23974, 1042, 324, 7142, 273, 394, 3914, 23974, 1042, 12, 14068, 3514, 16, 276, 1769, 7734, 276, 18, 6206, 38, 4488, 12, 70, 7142, 1769, 7734, 444, 67, 70, 7142, 273, 638, 31, 7734, 324, 7142, 18, 542, 2384, 12443, 474, 13, 276, 18, 588, 2482, 4877, 7675, 588, 2384, 10663, 5411, 289, 3639, 289, 469, 288, 5411, 1139, 54, 1343, 18, 6741, 12, 2355, 18, 9511, 16, 315, 8544, 1014, 618, 315, 397, 913, 18, 588, 797, 7675, 17994, 10663, 5411, 327, 446, 31, 3639, 289, 3639, 368, 1610, 326, 24070, 3639, 13264, 320, 73, 273, 276, 18, 588, 2482, 4877, 5621, 3639, 276, 18, 542, 2482, 4877, 12, 2704, 13264, 12, 15548, 10019, 3639, 368, 14068, 3514, 18, 92, 273, 276, 18, 588, 2482, 4877, 7675, 92, 31, 3639, 368, 14068, 3514, 18, 93, 273, 276, 18, 588, 2482, 4877, 7675, 93, 31, 3639, 368, 44, 3649, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 8549, 3511, 12, 1042, 276, 16, 3914, 3514, 6390, 3514, 16, 3697, 913, 13, 288, 3639, 1250, 444, 67, 70, 7142, 273, 629, 31, 3639, 309, 261, 1745, 1276, 3555, 1350, 13, 288, 5411, 368, 3799, 279, 1203, 10407, 819, 364, 326, 1417, 16, 5411, 368, 9228, 18, 309, 518, 1807, 446, 18, 5411, 368, 444, 731, 326, 596, 6408, 669, 324, 7142, 5411, 309, 261, 71, 18, 588, 1768, 23974, 1042, 1435, 422, 446, 13, 288, 7734, 6390, 3514, 18, 542, 3054, 12, 71, 18, 588, 6442, 7675, 588, 2375, 3514, 10663, 7734, 3914, 23974, 1042, 324, 7142, 273, 394, 3914, 23974, 1042, 12, 14068, 3514, 16, 276, 1769, 7734, 276, 18, 6206, 38, 4488, 2 ]
private void setDefaultHeaders() { headers.clear(); addHeader("Accept", "text/xml,application/xml,application/xhtml+xml," + "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"); addHeader("Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7"); Locale l = Locale.getDefault(); addHeader("Accept-Language", l.getLanguage().toLowerCase() + "-" + l.getCountry().toLowerCase() + "," + l.getLanguage().toLowerCase() + ";q=0.5"); addHeader("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2"); }
private void setDefaultHeaders() { headers.clear(); addHeader("Accept", "text/xml,application/xml,application/xhtml+xml," + "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"); addHeader("Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7"); Locale l = Locale.getDefault(); addHeader("Accept-Language", l.getLanguage().toLowerCase() + "-" + l.getCountry().toLowerCase() + "," + l.getLanguage().toLowerCase() + ";q=0.5"); addHeader("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2"); }
private void setDefaultHeaders() { headers.clear(); addHeader("Accept", "text/xml,application/xml,application/xhtml+xml," + "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"); addHeader("Accept-Charset", "ISO-8859-1,utf-8;q=0.7,*;q=0.7"); Locale l = Locale.getDefault(); addHeader("Accept-Language", l.getLanguage().toLowerCase() + "-" + l.getCountry().toLowerCase() + "," + l.getLanguage().toLowerCase() + ";q=0.5"); addHeader("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2"); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/9a4b9b48d844a9fd7e8882aa552fcfb06d718660/MockHttpServletRequest.java/buggy/wicket/src/java/wicket/protocol/http/MockHttpServletRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 9277, 3121, 1435, 288, 3639, 1607, 18, 8507, 5621, 3639, 13906, 2932, 5933, 3113, 315, 955, 19, 2902, 16, 3685, 19, 2902, 16, 3685, 19, 26341, 15, 2902, 10837, 397, 18701, 315, 955, 19, 2620, 31, 85, 33, 20, 18, 29, 16, 955, 19, 7446, 31, 85, 33, 20, 18, 28, 16, 2730, 19, 6446, 16, 5549, 14, 31, 85, 33, 20, 18, 25, 8863, 3639, 13906, 2932, 5933, 17, 9652, 3113, 315, 12609, 17, 17258, 17, 21, 16, 3158, 17, 28, 31, 85, 33, 20, 18, 27, 16, 14, 31, 85, 33, 20, 18, 27, 8863, 3639, 6458, 328, 273, 6458, 18, 588, 1868, 5621, 3639, 13906, 2932, 5933, 17, 3779, 3113, 328, 18, 588, 3779, 7675, 869, 5630, 1435, 397, 7514, 397, 328, 18, 588, 8142, 7675, 869, 5630, 1435, 397, 19694, 5753, 397, 328, 18, 588, 3779, 7675, 869, 5630, 1435, 397, 13636, 85, 33, 20, 18, 25, 8863, 3639, 13906, 2932, 1299, 17, 3630, 3113, 5375, 315, 49, 11142, 10745, 19, 25, 18, 20, 261, 10399, 31, 587, 31, 8202, 20064, 1381, 18, 20, 31, 570, 17, 3378, 31, 5633, 30, 21, 18, 27, 13, 611, 31319, 19, 6976, 7132, 7301, 27, 22950, 19, 20, 18, 29, 18, 22, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 9277, 3121, 1435, 288, 3639, 1607, 18, 8507, 5621, 3639, 13906, 2932, 5933, 3113, 315, 955, 19, 2902, 16, 3685, 19, 2902, 16, 3685, 19, 26341, 15, 2902, 10837, 397, 18701, 315, 955, 19, 2620, 31, 85, 33, 20, 18, 29, 16, 955, 19, 7446, 31, 85, 33, 20, 18, 28, 16, 2730, 19, 6446, 16, 5549, 14, 31, 85, 33, 20, 18, 25, 8863, 3639, 13906, 2932, 5933, 17, 9652, 3113, 315, 12609, 17, 17258, 17, 21, 16, 3158, 17, 28, 31, 85, 33, 20, 18, 27, 16, 14, 31, 85, 33, 20, 18, 27, 8863, 3639, 6458, 328, 273, 6458, 18, 588, 1868, 5621, 3639, 13906, 2932, 5933, 17, 3779, 3113, 328, 18, 588, 2 ]
super(message);
public MalformedURLException(String message) { super(message); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/MalformedURLException.java/buggy/core/src/classpath/java/java/net/MalformedURLException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 20710, 12, 780, 883, 13, 225, 288, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 20710, 12, 780, 883, 13, 225, 288, 377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
final BigDecimal comp = (BigDecimal) ((ObjectVariableContextEntry) context).left; return comp.compareTo( context.extractor.getValue( right ) ) > 0;
final BigDecimal comp = (BigDecimal) context.extractor.getValue( right ); return comp.compareTo( ((ObjectVariableContextEntry) context).left ) > 0;
public boolean evaluateCachedLeft(final VariableContextEntry context, final Object right) { final BigDecimal comp = (BigDecimal) ((ObjectVariableContextEntry) context).left; return comp.compareTo( context.extractor.getValue( right ) ) > 0; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/0d8f348e034d124d5cbf23fa9be92822c1e67dbd/BigDecimalFactory.java/buggy/drools-core/src/main/java/org/drools/base/evaluators/BigDecimalFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 5956, 9839, 3910, 12, 6385, 7110, 1042, 1622, 819, 16, 4766, 1850, 727, 1033, 2145, 13, 288, 5411, 727, 8150, 1161, 273, 261, 29436, 13, 14015, 921, 3092, 1042, 1622, 13, 819, 2934, 4482, 31, 5411, 327, 1161, 18, 9877, 774, 12, 819, 18, 26108, 18, 24805, 12, 2145, 262, 262, 405, 374, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 5956, 9839, 3910, 12, 6385, 7110, 1042, 1622, 819, 16, 4766, 1850, 727, 1033, 2145, 13, 288, 5411, 727, 8150, 1161, 273, 261, 29436, 13, 14015, 921, 3092, 1042, 1622, 13, 819, 2934, 4482, 31, 5411, 327, 1161, 18, 9877, 774, 12, 819, 18, 26108, 18, 24805, 12, 2145, 262, 262, 405, 374, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
IAddress address = factory.createAddress( value.pointerValue() );
IAddress address = factory.createAddress( pv );
private String getPointerValueString( ICDIPointerValue value ) throws CDIException { //TODO:IPF_TODO Workaround to solve incorrect handling of structures referenced by pointers or references IAddressFactory factory = ((CDebugTarget)getDebugTarget()).getAddressFactory(); BigInteger pv = value.pointerValue(); if ( pv == null ) return ""; //$NON-NLS-1$ IAddress address = factory.createAddress( value.pointerValue() ); if ( address == null ) return ""; //$NON-NLS-1$ CVariableFormat format = getParentVariable().getFormat(); if ( CVariableFormat.NATURAL.equals( format ) || CVariableFormat.HEXADECIMAL.equals( format ) ) return address.toHexAddressString(); if ( CVariableFormat.DECIMAL.equals( format ) ) return address.toString(); return null; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f207200fa2518bac3c2bdb78b71b00f2b91858db/CValue.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1689, 2480, 620, 780, 12, 26899, 2565, 4926, 620, 460, 262, 1216, 385, 2565, 503, 288, 202, 202, 759, 6241, 30, 2579, 42, 67, 6241, 4147, 12716, 358, 12439, 11332, 5057, 434, 12597, 8042, 635, 13857, 578, 5351, 202, 202, 45, 1887, 1733, 3272, 273, 14015, 39, 2829, 2326, 13, 588, 2829, 2326, 1435, 2934, 588, 1887, 1733, 5621, 202, 202, 24198, 9770, 273, 460, 18, 10437, 620, 5621, 202, 202, 430, 261, 9770, 422, 446, 262, 1082, 202, 2463, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 45, 1887, 1758, 273, 3272, 18, 2640, 1887, 12, 460, 18, 10437, 620, 1435, 11272, 202, 202, 430, 261, 1758, 422, 446, 262, 1082, 202, 2463, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 39, 3092, 1630, 740, 273, 5089, 3092, 7675, 588, 1630, 5621, 202, 202, 430, 261, 385, 3092, 1630, 18, 25665, 27015, 18, 14963, 12, 740, 262, 747, 385, 3092, 1630, 18, 20661, 37, 23816, 18, 14963, 12, 740, 262, 262, 1082, 202, 2463, 1758, 18, 869, 7037, 1887, 780, 5621, 202, 202, 430, 261, 385, 3092, 1630, 18, 23816, 18, 14963, 12, 740, 262, 262, 1082, 202, 2463, 1758, 18, 10492, 5621, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1689, 2480, 620, 780, 12, 26899, 2565, 4926, 620, 460, 262, 1216, 385, 2565, 503, 288, 202, 202, 759, 6241, 30, 2579, 42, 67, 6241, 4147, 12716, 358, 12439, 11332, 5057, 434, 12597, 8042, 635, 13857, 578, 5351, 202, 202, 45, 1887, 1733, 3272, 273, 14015, 39, 2829, 2326, 13, 588, 2829, 2326, 1435, 2934, 588, 1887, 1733, 5621, 202, 202, 24198, 9770, 273, 460, 18, 10437, 620, 5621, 202, 202, 430, 261, 9770, 422, 446, 262, 1082, 202, 2463, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 45, 1887, 1758, 273, 3272, 18, 2640, 1887, 12, 460, 18, 10437, 620, 1435, 11272, 202, 202, 430, 261, 1758, 422, 446, 262, 1082, 2 ]
cx.interpreterSecurityDomain = null;
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, Scriptable fnOrScript, InterpreterData theData) throws JavaScriptException { int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = theData.itsVariableTable.size(); final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK, // sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = theData.itsVariableTable.getParameterCount(); if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; double lDbl; int rIntValue; double rDbl; int[] catchStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } if (maxTryDepth != 0) { // catchStack[2 * i]: catch data // catchStack[2 * i + 1]: finally data catchStack = new int[maxTryDepth * 2]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; catchStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lLongValue = stack_uint32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lLongValue >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) { val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); outArgs[i] = val; --stackTop; } lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && (iCode[pc+1] << 8) + (iCode[pc+2] & 0xFF) != -1) { // special code for better error message for call // to undefined lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; case TokenStream.LINE : case TokenStream.BREAKPOINT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == TokenStream.BREAKPOINT || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Exception ex) { final int ECMA = 0, SCRIPT = 1, OTHER = 2; int exceptionType; Object errObj; if (ex instanceof EcmaError) { errObj = ((EcmaError)ex).getErrorObject(); exceptionType = ECMA; } else if (ex instanceof RuntimeException) { errObj = ex; exceptionType = OTHER; } else { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exceptionType = SCRIPT; } if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; } if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } cx.interpreterSecurityDomain = null; boolean rethrow = true; if (tryStackTop > 0) { --tryStackTop; pc = catchStack[tryStackTop * 2]; scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; if (pc == 0) { if (exceptionType == ECMA || exceptionType == SCRIPT) { // Check for finally clause only for EcmaError and // JavaScriptException but not for arbitrary // RuntimeException pc = catchStack[tryStackTop * 2 + 1]; if (exceptionType == SCRIPT) { errObj = ex; } } } if (pc != 0) { rethrow = false; } } if (rethrow) { if (frame != null) cx.popFrame(); if (exceptionType == SCRIPT) throw (JavaScriptException)ex; else throw (RuntimeException)ex; } // We caught an exception, // prepare stack and restore this function's security domain. pcPrevBranch = pc; stackTop = 0; stack[0] = errObj; cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/f7a0fa338c9770cfddd37fbddd87bffd69e5df22/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 509, 277, 31, 3639, 1033, 8499, 31, 3639, 727, 509, 943, 2624, 273, 326, 751, 18, 1282, 2747, 2624, 31, 3639, 727, 509, 943, 5555, 273, 326, 751, 18, 1282, 3092, 1388, 18, 1467, 5621, 3639, 727, 509, 943, 1333, 1031, 273, 326, 751, 18, 1282, 2747, 1333, 1031, 31, 3639, 727, 509, 943, 7833, 6148, 273, 326, 751, 18, 1282, 2747, 7833, 6148, 31, 7734, 727, 509, 8350, 67, 2664, 4464, 273, 943, 2624, 31, 540, 727, 509, 15234, 67, 2664, 4464, 273, 8350, 67, 2664, 4464, 397, 943, 5555, 31, 540, 727, 509, 4235, 61, 67, 19444, 67, 2664, 4464, 273, 15234, 67, 2664, 4464, 397, 943, 1333, 1031, 31, 759, 2110, 63, 20, 1648, 277, 411, 8350, 67, 2664, 4464, 14542, 2110, 501, 759, 2110, 63, 7716, 67, 2664, 4464, 1648, 277, 411, 15234, 67, 2664, 4464, 14542, 3152, 759, 2110, 63, 14922, 67, 2664, 4464, 1648, 277, 411, 4235, 61, 67, 19444, 67, 2664, 4464, 14542, 1399, 364, 394, 5814, 19, 407, 278, 30752, 759, 2110, 63, 17805, 67, 19444, 67, 2664, 4464, 1648, 277, 14542, 775, 8124, 759, 1347, 374, 1648, 277, 411, 15234, 67, 2664, 4464, 471, 2110, 63, 92, 65, 422, 2383, 48, 67, 23464, 47, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 565, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 565, 22780, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 509, 277, 31, 3639, 1033, 8499, 31, 3639, 727, 509, 943, 2624, 273, 326, 751, 18, 1282, 2747, 2624, 31, 3639, 727, 509, 943, 5555, 273, 326, 751, 18, 1282, 3092, 1388, 18, 1467, 5621, 3639, 727, 509, 943, 1333, 1031, 273, 326, 751, 18, 1282, 2747, 1333, 1031, 31, 3639, 727, 509, 943, 7833, 6148, 273, 326, 751, 18, 1282, 2747, 7833, 6148, 31, 7734, 727, 509, 8350, 67, 2664, 4464, 273, 943, 2624, 31, 2 ]
final PsiElement eachMethidCall = psiReference.getElement().getParent(); final TextRange textRange = eachMethidCall.getTextRange(); highlightManager.addRangeHighlight(editor, textRange.getStartOffset(), textRange.getEndOffset(), attributes, false, highlighters);
final PsiElement eachElement = psiReference.getElement(); if (eachElement != null) { final PsiElement eachMethodCall = eachElement.getParent(); if (eachMethodCall != null) { final TextRange textRange = eachMethodCall.getTextRange(); highlightManager.addRangeHighlight(editor, textRange.getStartOffset(), textRange.getEndOffset(), attributes, false, highlighters); } }
public void navigate(boolean requestFocus) { final PsiReference firstReference = myReferences.get(0); final PsiElement callElement = firstReference.getElement().getParent(); if (callElement instanceof Navigatable && ((Navigatable)callElement).canNavigate()) { ((Navigatable)callElement).navigate(requestFocus); } else { final PsiFile psiFile = callElement.getContainingFile(); if (psiFile == null || psiFile.getVirtualFile() == null) return; FileEditorManager.getInstance(myProject).openFile(psiFile.getVirtualFile(), requestFocus); } Editor editor = getEditor(callElement); if (editor != null) { HighlightManager highlightManager = HighlightManager.getInstance(myProject); EditorColorsManager colorManager = EditorColorsManager.getInstance(); TextAttributes attributes = colorManager.getGlobalScheme().getAttributes(EditorColors.SEARCH_RESULT_ATTRIBUTES); ArrayList<RangeHighlighter> highlighters = new ArrayList<RangeHighlighter>(); for (PsiReference psiReference : myReferences) { final PsiElement eachMethidCall = psiReference.getElement().getParent(); final TextRange textRange = eachMethidCall.getTextRange(); highlightManager.addRangeHighlight(editor, textRange.getStartOffset(), textRange.getEndOffset(), attributes, false, highlighters); } } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/b9c59c44b0067cdd6b7668bb0da8c88d51fbdff9/CallHierarchyNodeDescriptor.java/buggy/source/com/intellij/ide/hierarchy/call/CallHierarchyNodeDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 28479, 12, 6494, 590, 9233, 13, 288, 565, 727, 453, 7722, 2404, 1122, 2404, 273, 3399, 8221, 18, 588, 12, 20, 1769, 565, 727, 453, 7722, 1046, 745, 1046, 273, 1122, 2404, 18, 21336, 7675, 588, 3054, 5621, 565, 309, 261, 1991, 1046, 1276, 423, 4911, 8163, 597, 14015, 50, 4911, 8163, 13, 1991, 1046, 2934, 4169, 50, 20698, 10756, 288, 1377, 14015, 50, 4911, 8163, 13, 1991, 1046, 2934, 82, 20698, 12, 2293, 9233, 1769, 565, 289, 469, 288, 1377, 727, 453, 7722, 812, 23921, 812, 273, 745, 1046, 18, 588, 24344, 812, 5621, 1377, 309, 261, 24275, 812, 422, 446, 747, 23921, 812, 18, 588, 6466, 812, 1435, 422, 446, 13, 327, 31, 1377, 1387, 6946, 1318, 18, 588, 1442, 12, 4811, 4109, 2934, 3190, 812, 12, 24275, 812, 18, 588, 6466, 812, 9334, 590, 9233, 1769, 565, 289, 565, 18451, 4858, 273, 336, 6946, 12, 1991, 1046, 1769, 565, 309, 261, 9177, 480, 446, 13, 288, 1377, 31386, 1318, 8839, 1318, 273, 31386, 1318, 18, 588, 1442, 12, 4811, 4109, 1769, 1377, 18451, 12570, 1318, 2036, 1318, 273, 18451, 12570, 1318, 18, 588, 1442, 5621, 1377, 3867, 2498, 1677, 273, 2036, 1318, 18, 588, 5160, 9321, 7675, 588, 2498, 12, 6946, 12570, 18, 17251, 67, 12289, 67, 22308, 1769, 1377, 2407, 32, 2655, 8573, 23624, 34, 3551, 80, 2031, 5432, 273, 394, 2407, 32, 2655, 8573, 23624, 34, 5621, 1377, 364, 261, 52, 7722, 2404, 23921, 2404, 294, 3399, 8221, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 28479, 12, 6494, 590, 9233, 13, 288, 565, 727, 453, 7722, 2404, 1122, 2404, 273, 3399, 8221, 18, 588, 12, 20, 1769, 565, 727, 453, 7722, 1046, 745, 1046, 273, 1122, 2404, 18, 21336, 7675, 588, 3054, 5621, 565, 309, 261, 1991, 1046, 1276, 423, 4911, 8163, 597, 14015, 50, 4911, 8163, 13, 1991, 1046, 2934, 4169, 50, 20698, 10756, 288, 1377, 14015, 50, 4911, 8163, 13, 1991, 1046, 2934, 82, 20698, 12, 2293, 9233, 1769, 565, 289, 469, 288, 1377, 727, 453, 7722, 812, 23921, 812, 273, 745, 1046, 18, 588, 24344, 812, 5621, 1377, 309, 261, 24275, 812, 422, 446, 747, 23921, 812, 18, 588, 6466, 812, 1435, 422, 446, 13, 327, 31, 1377, 2 ]
public synchronized void aboutToBeReconciled() {
public void aboutToBeReconciled() {
public synchronized void aboutToBeReconciled() { }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/af7b8d34e4a62f1a70ede4d80e07460d48d70772/OverrideIndicatorManager.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OverrideIndicatorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 2973, 15360, 426, 11504, 1411, 1435, 288, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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-100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void begin(String s1, String s2, Attributes attributes) throws Exception { attributes = processor.processAttributes(attributes, s2); // Add transformer references that will be bound to their objects // once // all configuration has bean read String transformerNames = attributes.getValue("transformer"); if (transformerNames != null) { addTransformerReference("transformer", transformerNames, digester.peek()); } transformerNames = attributes.getValue("transformers"); if (transformerNames != null) { addTransformerReference("transformer", transformerNames, digester.peek()); } transformerNames = attributes.getValue("responseTransformers"); if (transformerNames != null) { addTransformerReference("responseTransformer", transformerNames, digester.peek()); } transformerNames = attributes.getValue("responseTransformer"); if (transformerNames != null) { addTransformerReference("responseTransformer", transformerNames, digester.peek()); } transformerNames = attributes.getValue("inboundTransformer"); if (transformerNames != null) { addTransformerReference("inboundTransformer", transformerNames, digester.peek()); } transformerNames = attributes.getValue("outboundTransformer"); if (transformerNames != null) { addTransformerReference("outboundTransformer", transformerNames, digester.peek()); } transformerNames = attributes.getValue("responseTransformer"); if (transformerNames != null) { addTransformerReference("responseTransformer", transformerNames, digester.peek()); } // Special case handling of global endpoint refs on the // inboundEndpoint/ // outboundendpoint attributes of the descriptor String endpoint = attributes.getValue("inboundEndpoint"); if (endpoint != null) { Object o = PropertiesHelper.getProperty(manager.getEndpoints(), endpoint, null); if (o != null) { addEndpointReference("setInboundEndpoint", endpoint, digester.peek()); } } endpoint = attributes.getValue("outboundEndpoint"); if (endpoint != null) { Object o = PropertiesHelper.getProperty(manager.getEndpoints(), endpoint, null); if (o != null) { addEndpointReference("setOutboundEndpoint", endpoint, digester.peek()); } } super.begin(attributes); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/888f28adb5474af57b0880da48efcdd5b019dd1f/MuleXmlConfigurationBuilder.java/buggy/src/java/org/mule/config/builders/MuleXmlConfigurationBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2376, 12, 780, 272, 21, 16, 514, 272, 22, 16, 9055, 1677, 13, 1216, 1185, 565, 288, 1377, 1677, 273, 6659, 18, 2567, 2498, 12, 4350, 16, 272, 22, 1769, 1377, 368, 1436, 8360, 5351, 716, 903, 506, 2489, 358, 3675, 2184, 1377, 368, 3647, 1377, 368, 777, 1664, 711, 3931, 855, 1377, 514, 8360, 1557, 273, 1677, 18, 24805, 2932, 21523, 8863, 1377, 309, 261, 21523, 1557, 480, 446, 13, 288, 3639, 527, 8319, 2404, 2932, 21523, 3113, 8360, 1557, 16, 23821, 18, 347, 3839, 10663, 1377, 289, 1377, 8360, 1557, 273, 1677, 18, 24805, 2932, 6547, 414, 8863, 1377, 309, 261, 21523, 1557, 480, 446, 13, 288, 3639, 527, 8319, 2404, 2932, 21523, 3113, 8360, 1557, 16, 23821, 18, 347, 3839, 10663, 1377, 289, 1377, 8360, 1557, 273, 1677, 18, 24805, 2932, 2740, 4059, 414, 8863, 1377, 309, 261, 21523, 1557, 480, 446, 13, 288, 3639, 527, 8319, 2404, 2932, 2740, 8319, 3113, 8360, 1557, 16, 23821, 18, 347, 3839, 10663, 1377, 289, 1377, 8360, 1557, 273, 1677, 18, 24805, 2932, 2740, 8319, 8863, 1377, 309, 261, 21523, 1557, 480, 446, 13, 288, 3639, 527, 8319, 2404, 2932, 2740, 8319, 3113, 8360, 1557, 16, 23821, 18, 347, 3839, 10663, 1377, 289, 1377, 8360, 1557, 273, 1677, 18, 24805, 2932, 267, 3653, 8319, 8863, 1377, 309, 261, 21523, 1557, 480, 446, 13, 288, 3639, 527, 8319, 2404, 2932, 267, 3653, 8319, 3113, 8360, 1557, 16, 23821, 18, 347, 3839, 10663, 1377, 289, 1377, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2376, 12, 780, 272, 21, 16, 514, 272, 22, 16, 9055, 1677, 13, 1216, 1185, 565, 288, 1377, 1677, 273, 6659, 18, 2567, 2498, 12, 4350, 16, 272, 22, 1769, 1377, 368, 1436, 8360, 5351, 716, 903, 506, 2489, 358, 3675, 2184, 1377, 368, 3647, 1377, 368, 777, 1664, 711, 3931, 855, 1377, 514, 8360, 1557, 273, 1677, 18, 24805, 2932, 21523, 8863, 1377, 309, 261, 21523, 1557, 480, 446, 13, 288, 3639, 527, 8319, 2404, 2932, 21523, 3113, 8360, 1557, 16, 23821, 18, 347, 3839, 10663, 1377, 289, 1377, 8360, 1557, 273, 1677, 18, 24805, 2932, 6547, 414, 8863, 1377, 309, 261, 21523, 1557, 480, 446, 13, 288, 3639, 527, 8319, 2404, 2932, 21523, 3113, 2 ]
groups[index].addContent(table, font, equipment);
groups[index].addContent(table, font, stats);
private void encodeContentLine(PdfPTable table, IStatsGroup<T>[] groups, T equipment) { for (int index = 0; index < groups.length; index++) { if (index != 0) { table.addCell(createSpaceCell()); } groups[index].addContent(table, font, equipment); } }
50281 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50281/ac4dcda88f9dcb775322678a470208041b7b9f86/AbstractStatsTableEncoder.java/buggy/Character_Reporting/src/net/sf/anathema/character/reporting/sheet/util/statstable/AbstractStatsTableEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 2017, 1350, 1670, 12, 18562, 52, 1388, 1014, 16, 467, 4195, 1114, 32, 56, 34, 8526, 3252, 16, 399, 1298, 11568, 13, 288, 565, 364, 261, 474, 770, 273, 374, 31, 770, 411, 3252, 18, 2469, 31, 770, 27245, 288, 1377, 309, 261, 1615, 480, 374, 13, 288, 3639, 1014, 18, 1289, 4020, 12, 2640, 3819, 4020, 10663, 1377, 289, 1377, 3252, 63, 1615, 8009, 1289, 1350, 12, 2121, 16, 3512, 16, 3177, 1769, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 2017, 1350, 1670, 12, 18562, 52, 1388, 1014, 16, 467, 4195, 1114, 32, 56, 34, 8526, 3252, 16, 399, 1298, 11568, 13, 288, 565, 364, 261, 474, 770, 273, 374, 31, 770, 411, 3252, 18, 2469, 31, 770, 27245, 288, 1377, 309, 261, 1615, 480, 374, 13, 288, 3639, 1014, 18, 1289, 4020, 12, 2640, 3819, 4020, 10663, 1377, 289, 1377, 3252, 63, 1615, 8009, 1289, 1350, 12, 2121, 16, 3512, 16, 3177, 1769, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
commitsOnValidEdit = true;
commitsOnValidEdit = false;
public DefaultFormatter() { commitsOnValidEdit = true; overwriteMode = true; allowsInvalid = true; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/7c8615ab324165e2ba33ab3e4dcdee1f60637a25/DefaultFormatter.java/buggy/javax/swing/text/DefaultFormatter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2989, 5074, 1435, 225, 288, 565, 14335, 1398, 1556, 4666, 273, 629, 31, 565, 6156, 2309, 273, 638, 31, 565, 5360, 1941, 273, 638, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2989, 5074, 1435, 225, 288, 565, 14335, 1398, 1556, 4666, 273, 629, 31, 565, 6156, 2309, 273, 638, 31, 565, 5360, 1941, 273, 638, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertEquals("error",mv.getViewName());
assertEquals("/error",mv.getViewName());
public void testConfigure() throws Exception { GroovyClassLoader gcl = new GroovyClassLoader(); Class dc = gcl.parseClass("class Test { Long id; Long version; }"); Thread.sleep(1000); Class sc = gcl.parseClass("class TestService { boolean transactional = true;\n" + "def serviceMethod() {'hello'} }"); Thread.sleep(1000); Class c = gcl.parseClass("class TestController { def list = {} }"); GrailsApplication app = new DefaultGrailsApplication(new Class[]{dc,sc,c}, gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); ApplicationContext ctx = conf.configure(new MockServletContext()); // test class editor setup assertNotNull(ctx); assertTrue(ctx.getBean(GrailsRuntimeConfigurator.CLASS_LOADER_BEAN) instanceof GroovyClassLoader ); assertTrue(ctx.getBean(GrailsRuntimeConfigurator.CLASS_EDITOR_BEAN) instanceof ClassEditor); // test exception resolver GrailsExceptionResolver er = (GrailsExceptionResolver)ctx.getBean(GrailsRuntimeConfigurator.EXCEPTION_HANDLER_BEAN); assertNotNull(er); ModelAndView mv = er.resolveException(new MockHttpServletRequest(),new MockHttpServletResponse(),null, new Exception()); assertEquals("error",mv.getViewName()); // test multipart support assertTrue(ctx.getBean(GrailsRuntimeConfigurator.MULTIPART_RESOLVER_BEAN) instanceof CommonsMultipartResolver); // test message source MessageSource ms = (MessageSource)ctx.getBean(GrailsRuntimeConfigurator.MESSAGE_SOURCE_BEAN); assertNotNull(ms); Properties hibProps = (Properties)ctx.getBean(GrailsRuntimeConfigurator.HIBERNATE_PROPERTIES_BEAN); assertNotNull(hibProps); assertEquals("create-drop",hibProps.getProperty("hibernate.hbm2ddl.auto")); // test domain class setup correctly in the ctx GrailsDomainClass domainClass = (GrailsDomainClass)ctx.getBean("TestDomainClass"); assertNotNull(domainClass); assertEquals("Test", domainClass.getShortName()); Class persistentClass = (Class)ctx.getBean("TestPersistentClass"); assertEquals(dc,persistentClass); GrailsDomainClassValidator validator = (GrailsDomainClassValidator)ctx.getBean("TestValidator"); assertTrue(validator.supports(dc)); // test service config GroovyObject serviceInstance = (GroovyObject)ctx.getBean("TestServiceInstance"); assertEquals("hello",serviceInstance.invokeMethod("serviceMethod", null)); // test controller config HotSwappableTargetSource ts = (HotSwappableTargetSource)ctx.getBean(GrailsUrlHandlerMapping.APPLICATION_CONTEXT_TARGET_SOURCE); assertNotNull(ts.getTarget()); GrailsUrlHandlerMapping mapping = (GrailsUrlHandlerMapping)ts.getTarget(); MockHttpServletRequest request = new MockHttpServletRequest(); request.setRequestURI("/test/list"); HandlerExecutionChain h = mapping.getHandler(request); assertNotNull(h); assertNotNull(h.getHandler()); assertEquals(SimpleGrailsController.class,h.getHandler().getClass()); assertEquals(1,h.getInterceptors().length); assertEquals(OpenSessionInViewInterceptor.class, h.getInterceptors()[0].getClass()); ts = (HotSwappableTargetSource)ctx.getBean("TestControllerTargetSource"); GrailsControllerClass gcc = (GrailsControllerClass)ts.getTarget(); assertEquals(c,gcc.getClazz()); GroovyObject controller = (GroovyObject)ctx.getBean("TestController"); assertEquals(c,controller.getClass()); }
50465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50465/c615a46d3777e5690b4ecaeb8cdde2e2cdcc616f/GrailsRuntimeConfiguratorTests.java/clean/test/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfiguratorTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11207, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 314, 830, 273, 394, 20841, 7805, 5621, 202, 202, 797, 6744, 273, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 288, 3407, 612, 31, 3407, 1177, 31, 289, 8863, 202, 202, 3830, 18, 19607, 12, 18088, 1769, 202, 202, 797, 888, 273, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 1179, 288, 1250, 25078, 273, 638, 9747, 82, 6, 397, 6862, 25083, 202, 6, 536, 1156, 1305, 1435, 13666, 23711, 11, 97, 289, 8863, 202, 202, 3830, 18, 19607, 12, 18088, 1769, 202, 202, 797, 276, 273, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 2933, 288, 1652, 666, 273, 2618, 289, 8863, 9506, 202, 14571, 14573, 3208, 595, 273, 394, 2989, 14571, 14573, 3208, 12, 2704, 1659, 63, 7073, 7201, 16, 1017, 16, 71, 5779, 314, 830, 11272, 202, 202, 9865, 28278, 982, 273, 394, 7867, 28278, 5621, 202, 202, 2938, 18, 4861, 9865, 3381, 12, 14571, 14573, 3208, 18, 25039, 67, 734, 16, 595, 1769, 9506, 202, 14571, 14573, 5576, 17182, 2195, 273, 394, 10812, 14573, 5576, 17182, 12, 2910, 16, 2938, 1769, 202, 202, 28278, 1103, 273, 2195, 18, 14895, 12, 2704, 7867, 4745, 1042, 10663, 9506, 202, 759, 1842, 667, 4858, 3875, 202, 202, 11231, 5962, 12, 5900, 1769, 202, 202, 11231, 5510, 12, 5900, 18, 588, 3381, 12, 14571, 14573, 5576, 17182, 18, 5237, 67, 1502, 5483, 67, 23703, 13, 1276, 20841, 7805, 11272, 202, 202, 11231, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11207, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 314, 830, 273, 394, 20841, 7805, 5621, 202, 202, 797, 6744, 273, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 288, 3407, 612, 31, 3407, 1177, 31, 289, 8863, 202, 202, 3830, 18, 19607, 12, 18088, 1769, 202, 202, 797, 888, 273, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 1179, 288, 1250, 25078, 273, 638, 9747, 82, 6, 397, 6862, 25083, 202, 6, 536, 1156, 1305, 1435, 13666, 23711, 11, 97, 289, 8863, 202, 202, 3830, 18, 19607, 12, 18088, 1769, 202, 202, 797, 276, 273, 314, 830, 18, 2670, 797, 2932, 1106, 7766, 2933, 288, 1652, 666, 273, 2618, 289, 8863, 9506, 2 ]
ViewerAttributeBean attrBean = ( ViewerAttributeBean ) request
ViewerAttributeBean attrBean = (ViewerAttributeBean) request
private String getReportDesignName( InputOptions options ) { String reportDesignName = null; if ( options != null ) { HttpServletRequest request = ( HttpServletRequest ) options .getOption( InputOptions.OPT_REQUEST ); if ( request != null ) { ViewerAttributeBean attrBean = ( ViewerAttributeBean ) request .getAttribute( "attributeBean" ); //$NON-NLS-1$ assert attrBean != null; reportDesignName = attrBean.getReportDesignName( ); if ( reportDesignName != null ) { // if the report design name is not a valid file, then set // it to null if ( reportDesignName.endsWith( "\\" ) || reportDesignName.endsWith( "/" ) ) reportDesignName = null; } } } return reportDesignName; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1ff9aa843f70ddf72ba7891c54d9d7216c9063f5/BirtViewerReportService.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 22452, 15478, 461, 12, 2741, 1320, 702, 262, 202, 95, 202, 202, 780, 2605, 15478, 461, 273, 446, 31, 202, 202, 430, 261, 702, 480, 446, 262, 202, 202, 95, 1082, 202, 2940, 18572, 590, 273, 261, 9984, 262, 702, 6862, 202, 18, 588, 1895, 12, 2741, 1320, 18, 15620, 67, 5519, 11272, 1082, 202, 430, 261, 590, 480, 446, 262, 1082, 202, 95, 9506, 202, 18415, 1499, 3381, 1604, 3381, 273, 261, 4441, 264, 1499, 3381, 262, 590, 25083, 202, 18, 588, 1499, 12, 315, 4589, 3381, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 11231, 1604, 3381, 480, 446, 31, 9506, 202, 6006, 15478, 461, 273, 1604, 3381, 18, 588, 4820, 15478, 461, 12, 11272, 9506, 202, 430, 261, 2605, 15478, 461, 480, 446, 262, 9506, 202, 95, 6862, 202, 759, 309, 326, 2605, 8281, 508, 353, 486, 279, 923, 585, 16, 1508, 444, 6862, 202, 759, 518, 358, 446, 6862, 202, 430, 261, 2605, 15478, 461, 18, 5839, 1190, 12, 14520, 262, 6862, 1082, 202, 20081, 2605, 15478, 461, 18, 5839, 1190, 12, 4016, 262, 262, 25083, 202, 6006, 15478, 461, 273, 446, 31, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 2605, 15478, 461, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 22452, 15478, 461, 12, 2741, 1320, 702, 262, 202, 95, 202, 202, 780, 2605, 15478, 461, 273, 446, 31, 202, 202, 430, 261, 702, 480, 446, 262, 202, 202, 95, 1082, 202, 2940, 18572, 590, 273, 261, 9984, 262, 702, 6862, 202, 18, 588, 1895, 12, 2741, 1320, 18, 15620, 67, 5519, 11272, 1082, 202, 430, 261, 590, 480, 446, 262, 1082, 202, 95, 9506, 202, 18415, 1499, 3381, 1604, 3381, 273, 261, 4441, 264, 1499, 3381, 262, 590, 25083, 202, 18, 588, 1499, 12, 315, 4589, 3381, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 11231, 1604, 3381, 480, 446, 31, 9506, 202, 6006, 15478, 461, 273, 1604, 3381, 18, 588, 2 ]
modifyComponentData(cd);
return modifyComponentData(cd);
protected ComponentData getComponentData() { ComponentData cd = new GenericComponentData(); cd.setType(ComponentData.RECIPE); cd.setClassName(RECIPE_CLASS); cd.setName(getRecipeName()); cd.setOwner(null); cd.setParent(null); AgentComponent[] agents = getAgents(); for (int i = 0; i < agents.length; i++) { generateAgentComponentData(agents[i], cd, null); } // Now let all components add their data. addComponentData(cd); modifyComponentData(cd); return addComponentData(cd); }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/77b711f18019fb7c362faa14ecba0d01cbac6037/ComplexRecipeBase.java/clean/csmart/src/org/cougaar/tools/csmart/recipe/ComplexRecipeBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5435, 751, 10322, 751, 1435, 288, 565, 5435, 751, 7976, 273, 394, 7928, 1841, 751, 5621, 565, 7976, 18, 542, 559, 12, 1841, 751, 18, 862, 7266, 1423, 1769, 565, 7976, 18, 542, 3834, 12, 862, 7266, 1423, 67, 5237, 1769, 565, 7976, 18, 542, 461, 12, 588, 5650, 3151, 461, 10663, 565, 7976, 18, 542, 5541, 12, 2011, 1769, 565, 7976, 18, 542, 3054, 12, 2011, 1769, 565, 8669, 1841, 8526, 16423, 273, 336, 23400, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 16423, 18, 2469, 31, 277, 27245, 288, 1377, 2103, 3630, 1841, 751, 12, 23560, 63, 77, 6487, 7976, 16, 446, 1769, 565, 289, 565, 368, 4494, 2231, 777, 4085, 527, 3675, 501, 18, 565, 15218, 751, 12, 4315, 1769, 565, 327, 5612, 1841, 751, 12, 4315, 1769, 565, 327, 15218, 751, 12, 4315, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 5435, 751, 10322, 751, 1435, 288, 565, 5435, 751, 7976, 273, 394, 7928, 1841, 751, 5621, 565, 7976, 18, 542, 559, 12, 1841, 751, 18, 862, 7266, 1423, 1769, 565, 7976, 18, 542, 3834, 12, 862, 7266, 1423, 67, 5237, 1769, 565, 7976, 18, 542, 461, 12, 588, 5650, 3151, 461, 10663, 565, 7976, 18, 542, 5541, 12, 2011, 1769, 565, 7976, 18, 542, 3054, 12, 2011, 1769, 565, 8669, 1841, 8526, 16423, 273, 336, 23400, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 16423, 18, 2469, 31, 277, 27245, 288, 1377, 2103, 3630, 1841, 751, 12, 23560, 63, 77, 6487, 7976, 16, 446, 1769, 565, 289, 565, 368, 4494, 2231, 777, 4085, 527, 2 ]
public CalculatedStyle getStyle() { return _style;
public CascadedStyle getStyle() { return null;
public CalculatedStyle getStyle() { return _style; }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/93d814d7886e593bc9bd7f476b2a18571a009aa6/TextContent.java/buggy/src/java/org/xhtmlrenderer/layout/content/TextContent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15994, 690, 2885, 14210, 1435, 288, 3639, 327, 389, 4060, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15994, 690, 2885, 14210, 1435, 288, 3639, 327, 389, 4060, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
NativeServer.Callback callback = new NativeServer.Callback () { void body() {
WinEventQueue.Task task = new WinEventQueue.Task () { public void perform() {
public void dispose() { NativeServer.Callback callback = new NativeServer.Callback () { void body() { factory.remove(WinWindow.this); win32.DestroyWindow(hwnd); } }; factory.nativeServer.invokeAndWait(callback); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9b00f971bab2256d913aec1b141462a929f6e182/WinWindow.java/clean/modules/awt/src/main/java/windows/org/apache/harmony/awt/wtk/windows/WinWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 15825, 1435, 288, 3639, 16717, 2081, 18, 2428, 1348, 273, 394, 16717, 2081, 18, 2428, 1832, 288, 5411, 918, 1417, 1435, 288, 7734, 3272, 18, 4479, 12, 18049, 3829, 18, 2211, 1769, 7734, 5657, 1578, 18, 10740, 3829, 12, 20701, 4880, 1769, 5411, 289, 3639, 289, 31, 3639, 3272, 18, 13635, 2081, 18, 14407, 1876, 5480, 12, 3394, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 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, 15825, 1435, 288, 3639, 16717, 2081, 18, 2428, 1348, 273, 394, 16717, 2081, 18, 2428, 1832, 288, 5411, 918, 1417, 1435, 288, 7734, 3272, 18, 4479, 12, 18049, 3829, 18, 2211, 1769, 7734, 5657, 1578, 18, 10740, 3829, 12, 20701, 4880, 1769, 5411, 289, 3639, 289, 31, 3639, 3272, 18, 13635, 2081, 18, 14407, 1876, 5480, 12, 3394, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
GXLExportDialog.this.textGxlFile.setText(fd.open());
String path = fd.open(); if (path != null){ GXLExportDialog.this.textGxlFile.setText(path); }
public void handleEvent(Event event) { GXLExportDialog.this.setMessage(null, IMessageProvider.NONE);//delete old error Messages FileDialog fd = new FileDialog(GXLExportDialog.this .getShell(), SWT.SAVE); GXLExportDialog.this.textGxlFile.setText(fd.open()); GXLExportDialog.this.textGxlFile.redraw(); }
9773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9773/0f87223182c51fe887d6703c4403235c39436870/GXLExportDialog.java/buggy/kobold/src/kobold.client.plam/src/kobold/client/plam/wizard/GXLExportDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1640, 1133, 12, 1133, 871, 13, 288, 10792, 611, 23668, 6144, 6353, 18, 2211, 18, 542, 1079, 12, 2011, 16, 467, 1079, 2249, 18, 9826, 1769, 759, 3733, 1592, 555, 4838, 10792, 1387, 6353, 5194, 273, 394, 1387, 6353, 12, 43, 23668, 6144, 6353, 18, 2211, 18701, 263, 588, 13220, 9334, 348, 8588, 18, 25242, 1769, 10792, 514, 589, 273, 5194, 18, 3190, 5621, 309, 261, 803, 480, 446, 15329, 611, 23668, 6144, 6353, 18, 2211, 18, 955, 43, 18402, 812, 18, 542, 1528, 12, 803, 1769, 289, 10792, 611, 23668, 6144, 6353, 18, 2211, 18, 955, 43, 18402, 812, 18, 1118, 1899, 5621, 7734, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1640, 1133, 12, 1133, 871, 13, 288, 10792, 611, 23668, 6144, 6353, 18, 2211, 18, 542, 1079, 12, 2011, 16, 467, 1079, 2249, 18, 9826, 1769, 759, 3733, 1592, 555, 4838, 10792, 1387, 6353, 5194, 273, 394, 1387, 6353, 12, 43, 23668, 6144, 6353, 18, 2211, 18701, 263, 588, 13220, 9334, 348, 8588, 18, 25242, 1769, 10792, 514, 589, 273, 5194, 18, 3190, 5621, 309, 261, 803, 480, 446, 15329, 611, 23668, 6144, 6353, 18, 2211, 18, 955, 43, 18402, 812, 18, 542, 1528, 12, 803, 1769, 289, 10792, 611, 23668, 6144, 6353, 18, 2211, 18, 955, 43, 18402, 812, 18, 1118, 1899, 5621, 7734, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void testSingleLineHashComment_CarriageReturn() throws Exception { newLexer( "# I like cheese\rcheese" );
public void testSingleLineHashComment_CarriageReturn() throws Exception { newLexer("# I like cheese\rcheese");
public void testSingleLineHashComment_CarriageReturn() throws Exception { newLexer( "# I like cheese\rcheese" ); assertNextToken( Token.IDENTIFIER, "cheese" ); assertEnd(); }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/3d37acd34fcf44c4a51bd104ef70043af62c7d99/LexerTest.java/clean/src/test/org/codehaus/groovy/syntax/lexer/LexerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5281, 1670, 2310, 4469, 67, 16321, 27935, 990, 1435, 3639, 1216, 1185, 565, 288, 3639, 394, 13356, 12, 6619, 467, 3007, 19315, 3392, 64, 86, 18706, 3392, 6, 11272, 3639, 1815, 9399, 12, 3155, 18, 16606, 16, 7682, 315, 18706, 3392, 6, 11272, 3639, 1815, 1638, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5281, 1670, 2310, 4469, 67, 16321, 27935, 990, 1435, 3639, 1216, 1185, 565, 288, 3639, 394, 13356, 12, 6619, 467, 3007, 19315, 3392, 64, 86, 18706, 3392, 6, 11272, 3639, 1815, 9399, 12, 3155, 18, 16606, 16, 7682, 315, 18706, 3392, 6, 11272, 3639, 1815, 1638, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (oldMap.get(ruby) != null) { throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap");
if (oldMap.get(ruby) == null) { oldMap.put(ruby, new RubyStack());
public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) != null) { throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- oldMap.put(ruby, ruby.getInterpreter().getDynamicVars()); ruby.getInterpreter().setDynamicVars(null); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/76d3fd1bbcdbd38082a9b8c19c593b06ed915280/RubyVarmap.java/buggy/org/jruby/interpreter/RubyVarmap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1817, 12, 54, 10340, 22155, 13, 288, 3639, 368, 670, 3649, 965, 15, 3639, 309, 261, 1673, 863, 18, 588, 12, 27768, 13, 480, 446, 13, 288, 5411, 604, 394, 3235, 2932, 46, 54, 10340, 300, 10937, 43, 30, 12324, 7530, 364, 1592, 863, 316, 19817, 1537, 1458, 8863, 3639, 289, 3639, 368, 670, 3649, 9948, 7734, 1592, 863, 18, 458, 12, 27768, 16, 22155, 18, 588, 30010, 7675, 588, 9791, 5555, 10663, 3639, 22155, 18, 588, 30010, 7675, 542, 9791, 5555, 12, 2011, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 965, 15, 3639, 309, 261, 1673, 863, 18, 588, 12, 27768, 13, 480, 446, 13, 288, 5411, 604, 394, 3235, 2932, 46, 54, 10340, 300, 10937, 43, 30, 12324, 7530, 364, 1592, 863, 316, 19817, 1537, 1458, 8863, 3639, 289, 3639, 368, 670, 3649, 9948, 7734, 1592, 863, 18, 458, 12, 27768, 16, 22155, 18, 588, 30010, 7675, 588, 9791, 5555, 10663, 3639, 22155, 18, 588, 30010, 7675, 542, 9791, 5555, 12, 2011, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
dispatchEvent(AWTEvent event)
public final void dispatchEvent(AWTEvent event)
dispatchEvent(AWTEvent event){ // See comment in Component.dispatchEvent(). dispatchEventImpl(event);}
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e864c0d89c996e0999ad08d1701193723aaab52a/MenuComponent.java/buggy/core/src/classpath/java/java/awt/MenuComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15678, 12, 37, 8588, 1133, 871, 15329, 225, 368, 2164, 2879, 316, 5435, 18, 10739, 1133, 7675, 225, 15678, 2828, 12, 2575, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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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, 15678, 12, 37, 8588, 1133, 871, 15329, 225, 368, 2164, 2879, 316, 5435, 18, 10739, 1133, 7675, 225, 15678, 2828, 12, 2575, 1769, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
verifyTranslation("\\477", "\\477",false);
verifyTranslation("\\0477", "\\477",false);
public void testThreeDigitOctal() { verifyTranslation("\\0177", "\\177",false); verifyTranslation("\\0277", "\\277",false); verifyTranslation("\\0377", "\\377",false); verifyTranslation("\\477", "\\477",false); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4d62d6f77d06ba34dda2ae56b8598e93f8ae39ad/TestRegexpTranslator.java/buggy/test/org/jruby/TestRegexpTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 28019, 10907, 19320, 287, 1435, 288, 202, 202, 8705, 6717, 2932, 1695, 1611, 4700, 3113, 225, 202, 6, 1695, 29882, 3113, 5743, 1769, 202, 202, 8705, 6717, 2932, 1695, 3103, 4700, 3113, 225, 202, 6, 1695, 22, 4700, 3113, 5743, 1769, 202, 202, 8705, 6717, 2932, 1695, 4630, 4700, 3113, 225, 202, 6, 1695, 23, 4700, 3113, 5743, 1769, 202, 202, 8705, 6717, 2932, 1695, 24, 4700, 3113, 3196, 202, 6, 1695, 24, 4700, 3113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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 28019, 10907, 19320, 287, 1435, 288, 202, 202, 8705, 6717, 2932, 1695, 1611, 4700, 3113, 225, 202, 6, 1695, 29882, 3113, 5743, 1769, 202, 202, 8705, 6717, 2932, 1695, 3103, 4700, 3113, 225, 202, 6, 1695, 22, 4700, 3113, 5743, 1769, 202, 202, 8705, 6717, 2932, 1695, 4630, 4700, 3113, 225, 202, 6, 1695, 23, 4700, 3113, 5743, 1769, 202, 202, 8705, 6717, 2932, 1695, 24, 4700, 3113, 3196, 202, 6, 1695, 24, 4700, 3113, 5743, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void setBugReport(BugzillaReport bugReport) {
public void setBugReport(RepositoryReport bugReport) {
public void setBugReport(BugzillaReport bugReport) { this.bugReport = bugReport; // TODO: remove? if (bugReport != null) { setDescription(HtmlStreamTokenizer.unescape(AbstractRepositoryTask .getTaskIdAsInt(getHandleIdentifier()) + ": " + bugReport.getSummary())); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/301e7fdca7d49939faf98d0931834c70f7220b4f/BugzillaTask.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15268, 637, 4820, 12, 19865, 15990, 4820, 7934, 4820, 13, 288, 202, 202, 2211, 18, 925, 4820, 273, 7934, 4820, 31, 9506, 202, 759, 2660, 30, 1206, 35, 202, 202, 430, 261, 925, 4820, 480, 446, 13, 288, 1082, 202, 542, 3291, 12, 4353, 1228, 10524, 18, 318, 6939, 12, 7469, 3305, 2174, 6862, 202, 18, 588, 30182, 31720, 12, 588, 3259, 3004, 10756, 6862, 202, 15, 6398, 315, 397, 7934, 4820, 18, 588, 4733, 1435, 10019, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15268, 637, 4820, 12, 19865, 15990, 4820, 7934, 4820, 13, 288, 202, 202, 2211, 18, 925, 4820, 273, 7934, 4820, 31, 9506, 202, 759, 2660, 30, 1206, 35, 202, 202, 430, 261, 925, 4820, 480, 446, 13, 288, 1082, 202, 542, 3291, 12, 4353, 1228, 10524, 18, 318, 6939, 12, 7469, 3305, 2174, 6862, 202, 18, 588, 30182, 31720, 12, 588, 3259, 3004, 10756, 6862, 202, 15, 6398, 315, 397, 7934, 4820, 18, 588, 4733, 1435, 10019, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
assertTrue("No mapping",virtualUserTable.getMappings(user, domain).isEmpty());
assertNull("No mapping",virtualUserTable.getMappings(user, domain));
public void testStoreAndRetrieveWildCardAddressMapping() throws ErrorMappingException { String user = "test"; String user2 = "test2"; String domain = "localhost"; String address = "test@localhost2"; String address2 = "test@james"; try { assertTrue("No mapping",virtualUserTable.getMappings(user, domain).isEmpty()); assertTrue("Added virtual mapping", virtualUserTable.addAddressMapping(null, domain, address)); assertTrue("Added virtual mapping", virtualUserTable.addAddressMapping(user, domain, address2)); assertTrue("One mappings",virtualUserTable.getMappings(user, domain).size() == 1); assertTrue("One mappings",virtualUserTable.getMappings(user2, domain).size() == 1); assertTrue("remove virtual mapping", virtualUserTable.removeAddressMapping(user, domain, address2)); assertTrue("remove virtual mapping", virtualUserTable.removeAddressMapping(null, domain, address)); assertTrue("No mapping",virtualUserTable.getMappings(user, domain).isEmpty()); assertTrue("No mapping",virtualUserTable.getMappings(user2, domain).isEmpty()); } catch (InvalidMappingException e) { fail("Storing failed"); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/af32c50764e320bb254ec0e0566a4b49a7680669/JDBCVirtualUserTableTest.java/clean/src/test/org/apache/james/vut/JDBCVirtualUserTableTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2257, 1876, 5767, 59, 545, 6415, 1887, 3233, 1435, 1216, 1068, 3233, 503, 288, 7734, 514, 729, 273, 315, 3813, 14432, 3639, 514, 729, 22, 273, 315, 3813, 22, 14432, 3639, 514, 2461, 273, 315, 13014, 14432, 3639, 514, 1758, 273, 315, 3813, 36, 13014, 22, 14432, 3639, 514, 1758, 22, 273, 315, 3813, 36, 78, 753, 14432, 4202, 775, 288, 11794, 1815, 2041, 2932, 2279, 2874, 3113, 12384, 1299, 1388, 18, 588, 7742, 12, 1355, 16, 2461, 10019, 10792, 1815, 5510, 2932, 8602, 5024, 2874, 3113, 5024, 1299, 1388, 18, 1289, 1887, 3233, 12, 2011, 16, 2461, 16, 1758, 10019, 5411, 1815, 5510, 2932, 8602, 5024, 2874, 3113, 5024, 1299, 1388, 18, 1289, 1887, 3233, 12, 1355, 16, 2461, 16, 1758, 22, 10019, 8227, 1815, 5510, 2932, 3335, 7990, 3113, 12384, 1299, 1388, 18, 588, 7742, 12, 1355, 16, 2461, 2934, 1467, 1435, 422, 404, 1769, 5411, 1815, 5510, 2932, 3335, 7990, 3113, 12384, 1299, 1388, 18, 588, 7742, 12, 1355, 22, 16, 2461, 2934, 1467, 1435, 422, 404, 1769, 15604, 1815, 5510, 2932, 4479, 5024, 2874, 3113, 5024, 1299, 1388, 18, 4479, 1887, 3233, 12, 1355, 16, 2461, 16, 1758, 22, 10019, 5411, 1815, 5510, 2932, 4479, 5024, 2874, 3113, 5024, 1299, 1388, 18, 4479, 1887, 3233, 12, 2011, 16, 2461, 16, 1758, 10019, 5411, 1815, 2041, 2932, 2279, 2874, 3113, 12384, 1299, 1388, 18, 588, 7742, 12, 1355, 16, 2461, 10019, 5411, 1815, 5510, 2932, 2279, 2874, 3113, 12384, 1299, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2257, 1876, 5767, 59, 545, 6415, 1887, 3233, 1435, 1216, 1068, 3233, 503, 288, 7734, 514, 729, 273, 315, 3813, 14432, 3639, 514, 729, 22, 273, 315, 3813, 22, 14432, 3639, 514, 2461, 273, 315, 13014, 14432, 3639, 514, 1758, 273, 315, 3813, 36, 13014, 22, 14432, 3639, 514, 1758, 22, 273, 315, 3813, 36, 78, 753, 14432, 4202, 775, 288, 11794, 1815, 2041, 2932, 2279, 2874, 3113, 12384, 1299, 1388, 18, 588, 7742, 12, 1355, 16, 2461, 10019, 10792, 1815, 5510, 2932, 8602, 5024, 2874, 3113, 5024, 1299, 1388, 18, 1289, 1887, 3233, 12, 2011, 16, 2461, 16, 1758, 10019, 5411, 1815, 5510, 2932, 8602, 5024, 2874, 3113, 5024, 1299, 1388, 18, 1289, 1887, 2 ]
if( scope == null ) scope = new CPPFunctionScope( this ); return scope;
return ((ICPPASTFunctionDeclarator)declarator).getFunctionScope();
public IScope getScope() { if( scope == null ) scope = new CPPFunctionScope( this ); return scope; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ae97aa9b2a6894455ca3f50f82ba5e94c54bbe4d/CPPASTFunctionDefinition.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPASTFunctionDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 3876, 19203, 1435, 288, 202, 202, 430, 12, 2146, 422, 446, 262, 1082, 202, 4887, 273, 394, 5181, 52, 2083, 3876, 12, 333, 11272, 202, 202, 2463, 2146, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return J2EEUIPlugin.getDefault().getImage("jar_obj");
return J2EEUIPlugin.getDefault().getImage("jar_obj"); if (element instanceof IProject) return null;
public Image getImage(Object element) { if(element instanceof J2EEJavaClassProviderHelper) return ((J2EEJavaClassProviderHelper) element).getImage(); if (element instanceof File) return J2EEUIPlugin.getDefault().getImage("jar_obj"); if (delegateLabelProvider != null) return delegateLabelProvider.getImage(element); return null; }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/910c365230a3fbdb494419053545c15fa2de7a95/J2EELabelProvider.java/buggy/plugins/org.eclipse.jst.j2ee.navigator.ui/j2ee-navigator/org/eclipse/jst/j2ee/navigator/internal/J2EELabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 10567, 12, 921, 930, 13, 288, 202, 202, 430, 12, 2956, 1276, 804, 22, 9383, 5852, 797, 2249, 2276, 13, 1082, 202, 2463, 14015, 46, 22, 9383, 5852, 797, 2249, 2276, 13, 930, 2934, 588, 2040, 5621, 202, 202, 430, 261, 2956, 1276, 1387, 13, 1082, 202, 2463, 804, 22, 9383, 5370, 3773, 18, 588, 1868, 7675, 588, 2040, 2932, 11930, 67, 2603, 8863, 309, 261, 2956, 1276, 467, 4109, 13, 327, 446, 31, 3196, 202, 430, 261, 22216, 2224, 2249, 480, 446, 13, 1082, 202, 2463, 7152, 2224, 2249, 18, 588, 2040, 12, 2956, 1769, 202, 202, 2463, 446, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3421, 10567, 12, 921, 930, 13, 288, 202, 202, 430, 12, 2956, 1276, 804, 22, 9383, 5852, 797, 2249, 2276, 13, 1082, 202, 2463, 14015, 46, 22, 9383, 5852, 797, 2249, 2276, 13, 930, 2934, 588, 2040, 5621, 202, 202, 430, 261, 2956, 1276, 1387, 13, 1082, 202, 2463, 804, 22, 9383, 5370, 3773, 18, 588, 1868, 7675, 588, 2040, 2932, 11930, 67, 2603, 8863, 309, 261, 2956, 1276, 467, 4109, 13, 327, 446, 31, 3196, 202, 430, 261, 22216, 2224, 2249, 480, 446, 13, 1082, 202, 2463, 7152, 2224, 2249, 18, 588, 2040, 12, 2956, 1769, 202, 202, 2463, 446, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ point3D.z = z; }
{ point3D.z = z; }
public void setZ3D(double z) { point3D.z = z; }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/238421526bbe8e07c01acc0025a5e163882c01bf/Atom.java/buggy/org/openscience/cdk/Atom.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 62, 23, 40, 12, 9056, 998, 13, 202, 95, 202, 202, 1153, 23, 40, 18, 94, 273, 998, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return new Color(Display.getCurrent(), Math.max(0, backgroundColor.getRed()-30), Math.max(0, backgroundColor.getGreen()-30), 200);
return TaskListImages.ARCHIVE_BACKGROUND;
public Color getBackground(Object element) { try { // XXX refactored highlighters if (element instanceof ITask) { // ITask task = (ITask)element; // Highlighter highlighter = MylarUiPlugin.getDefault().getHighlighterForTaskId("" + task.getHandle()); // if (highlighter != null) return highlighter.getHighlightColor(); // } // else if (element instanceof BugzillaHit) { // BugzillaHit hit = (BugzillaHit)element; // BugzillaTask task = hit.getAssociatedTask(); // if(task != null){ // Highlighter highlighter = MylarUiPlugin.getDefault().getHighlighterForTaskId("" + task.getHandle()); // if (highlighter != null) return highlighter.getHighlightColor(); // } } else if (element instanceof ICategory) { ICategory category = (ICategory)element; if (category.isArchive()) { return new Color(Display.getCurrent(), Math.max(0, backgroundColor.getRed()-30), Math.max(0, backgroundColor.getGreen()-30), 200); } else { return backgroundColor; } } else if (element instanceof IQuery) { return backgroundColor; } } catch (Exception e) { MylarPlugin.log("Could not get background color", this); } return null; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/996f7f1d9522c7d0c895526fb242615432ae78c0/TaskListLabelProvider.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/views/TaskListLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5563, 336, 8199, 12, 921, 930, 13, 288, 377, 202, 698, 288, 377, 202, 759, 11329, 283, 3493, 7653, 3551, 80, 2031, 5432, 9506, 225, 309, 261, 2956, 1276, 467, 2174, 13, 288, 202, 759, 1082, 1377, 467, 2174, 1562, 273, 261, 1285, 835, 13, 2956, 31, 202, 759, 1082, 1377, 15207, 23624, 3551, 23624, 273, 8005, 7901, 13943, 3773, 18, 588, 1868, 7675, 588, 8573, 23624, 1290, 30182, 2932, 6, 397, 1562, 18, 588, 3259, 10663, 202, 759, 1082, 1377, 309, 261, 8766, 23624, 480, 446, 13, 327, 3551, 23624, 18, 588, 16205, 2957, 5621, 202, 759, 1082, 225, 289, 225, 202, 759, 1082, 225, 469, 309, 261, 2956, 1276, 16907, 15990, 13616, 13, 288, 202, 759, 9506, 225, 16907, 15990, 13616, 6800, 273, 261, 19865, 15990, 13616, 13, 2956, 31, 202, 759, 9506, 225, 16907, 15990, 2174, 1562, 273, 6800, 18, 588, 19233, 2174, 5621, 202, 759, 9506, 225, 309, 12, 4146, 480, 446, 15329, 202, 759, 1082, 1850, 15207, 23624, 3551, 23624, 273, 8005, 7901, 13943, 3773, 18, 588, 1868, 7675, 588, 8573, 23624, 1290, 30182, 2932, 6, 397, 1562, 18, 588, 3259, 10663, 202, 759, 1082, 1850, 309, 261, 8766, 23624, 480, 446, 13, 327, 3551, 23624, 18, 588, 16205, 2957, 5621, 202, 759, 9506, 225, 289, 9506, 225, 289, 469, 309, 261, 2956, 1276, 467, 4457, 13, 288, 6862, 225, 467, 4457, 3150, 273, 261, 2871, 1881, 13, 2956, 31, 6862, 225, 309, 261, 4743, 18, 291, 7465, 10756, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5563, 336, 8199, 12, 921, 930, 13, 288, 377, 202, 698, 288, 377, 202, 759, 11329, 283, 3493, 7653, 3551, 80, 2031, 5432, 9506, 225, 309, 261, 2956, 1276, 467, 2174, 13, 288, 202, 759, 1082, 1377, 467, 2174, 1562, 273, 261, 1285, 835, 13, 2956, 31, 202, 759, 1082, 1377, 15207, 23624, 3551, 23624, 273, 8005, 7901, 13943, 3773, 18, 588, 1868, 7675, 588, 8573, 23624, 1290, 30182, 2932, 6, 397, 1562, 18, 588, 3259, 10663, 202, 759, 1082, 1377, 309, 261, 8766, 23624, 480, 446, 13, 327, 3551, 23624, 18, 588, 16205, 2957, 5621, 202, 759, 1082, 225, 289, 225, 202, 759, 1082, 225, 469, 309, 261, 2956, 1276, 16907, 15990, 13616, 13, 288, 202, 2 ]
public static long min(long a, long b, long c) { if (b < a) { a = b;
public static long min(long[] array) { if (array == null) { throw new NullArgumentException("Array"); } else if (array.length == 0) { throw new IllegalArgumentException("Array cannot be empty.");
public static long min(long a, long b, long c) { if (b < a) { a = b; } if (c < a) { a = c; } return a; }
4554 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4554/55be165435e580d169f6b4e9bc54f3da9cfc4f64/NumberUtils.java/buggy/src/java/org/apache/commons/lang/math/NumberUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1525, 1131, 12, 5748, 279, 16, 1525, 324, 16, 1525, 276, 13, 288, 3639, 309, 261, 70, 411, 279, 13, 288, 5411, 279, 273, 324, 31, 3639, 289, 3639, 309, 261, 71, 411, 279, 13, 288, 5411, 279, 273, 276, 31, 3639, 289, 3639, 327, 279, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1525, 1131, 12, 5748, 279, 16, 1525, 324, 16, 1525, 276, 13, 288, 3639, 309, 261, 70, 411, 279, 13, 288, 5411, 279, 273, 324, 31, 3639, 289, 3639, 309, 261, 71, 411, 279, 13, 288, 5411, 279, 273, 276, 31, 3639, 289, 3639, 327, 279, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String identifier = HTMLDecoder.decode(request.getParam("identifier"));
String identifier = request.getParam("identifier");
public void handlePost(URI uri, Bucket data, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { HTTPRequest request = new HTTPRequest(uri, data, ctx); try { if ((data.size() > 1024 * 1024) && (request.getPartAsString("insert", 128).length() == 0)) { this.writeReply(ctx, 400, "text/plain", "Too big", "Data exceeds 1MB limit"); return; } String pass = request.getParam("formPassword"); if (pass.length() == 0) { pass = request.getPartAsString("formPassword", 128); } if ((pass.length() == 0) || !pass.equals(node.formPassword)) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/queue/"); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } if(request.isParameterSet("remove_request") && (request.getParam("remove_request").length() > 0)) { String identifier = HTMLDecoder.decode(request.getParam("identifier")); Logger.minor(this, "Removing "+identifier); try { fcp.removeGlobalRequest(identifier); } catch (MessageInvalidException e) { this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove "+HTMLEncoder.encode(identifier)+" : "+HTMLEncoder.encode(e.getMessage())); } writePermanentRedirect(ctx, "Done", "/queue/"); return; }else if(request.isParameterSet("remove_AllRequests") && (request.getParam("remove_AllRequests").length() > 0)) { ClientRequest[] reqs = fcp.getGlobalRequests(); Logger.minor(this, "Request count: "+reqs.length); for(int i=0; i<reqs.length ; i++){ String identifier = HTMLDecoder.decode(reqs[i].getIdentifier()); Logger.minor(this, "Removing "+identifier); try { fcp.removeGlobalRequest(identifier); } catch (MessageInvalidException e) { this.sendErrorPage(ctx, 200, "Failed to remove request", "Failed to remove "+HTMLEncoder.encode(identifier)+" : "+HTMLEncoder.encode(e.getMessage())); } } writePermanentRedirect(ctx, "Done", "/queue/"); return; }else if(request.isParameterSet("download")) { // Queue a download if(!request.isParameterSet("key")) { writeError("No key specified to download", "You did not specify a key to download.", ctx); return; } String expectedMIMEType = null; if(request.isParameterSet("type")) { expectedMIMEType = request.getParam("type"); } FreenetURI fetchURI; try { fetchURI = new FreenetURI(HTMLDecoder.decode(request.getParam("key"))); } catch (MalformedURLException e) { writeError("Invalid URI to download", "The URI is invalid and can not be downloaded.", ctx); return; } String persistence = request.getParam("persistence"); String returnType = request.getParam("return-type"); fcp.makePersistentGlobalRequest(fetchURI, expectedMIMEType, persistence, returnType); writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.isParameterSet("change_priority")) { String identifier = HTMLDecoder.decode(request.getParam("identifier")); short newPriority = Short.parseShort(request.getParam("priority")); ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.getIdentifier().equals(identifier)) { clientRequest.setPriorityClass(newPriority); } } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.getPartAsString("insert", 128).length() > 0) { FreenetURI insertURI; String keyType = request.getPartAsString("keytype", 3); if ("chk".equals(keyType)) { insertURI = new FreenetURI("CHK@"); } else if ("ksk".equals(keyType)) { try { insertURI = new FreenetURI(HTMLDecoder.decode(request.getPartAsString("key", 128))); } catch (MalformedURLException mue1) { writeError("Invalid URI to insert", "You did not specify a valid URI to insert the file to.", ctx); return; } } else { writeError("Invalid URI to insert", "You fooled around with the POST request. Shame on you.", ctx); return; } HTTPRequest.File file = request.getUploadedFile("filename"); if (file.getFilename().trim().length() == 0) { writeError("No file selected", "You did not select a file to upload.", ctx); return; } boolean dontCompress = request.getPartAsString("dontCompress", 128).length() > 0; String identifier = file.getFilename() + "-fred-" + System.currentTimeMillis(); /* copy bucket data */ Bucket copiedBucket = node.persistentEncryptedTempBucketFactory.makeBucket(file.getData().size()); BucketTools.copy(file.getData(), copiedBucket); try { ClientPut clientPut = new ClientPut(fcp.getGlobalClient(), insertURI, identifier, Integer.MAX_VALUE, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, ClientRequest.PERSIST_FOREVER, null, false, dontCompress, -1, ClientPutMessage.UPLOAD_FROM_DIRECT, new File(file.getFilename()), file.getContentType(), copiedBucket, null); clientPut.start(); fcp.forceStorePersistentRequests(); } catch (IdentifierCollisionException e) { e.printStackTrace(); } writePermanentRedirect(ctx, "Done", "/queue/"); return; } else if (request.isParameterSet("insert-local")) { String filename = request.getParam("filename"); try { filename = new String(filename.getBytes("ISO-8859-1"), "UTF-8"); } catch (Throwable t) { } File file = new File(filename); String identifier = file.getName() + "-fred-" + System.currentTimeMillis(); String contentType = DefaultMIMETypes.guessMIMEType(filename); try { ClientPut clientPut = new ClientPut(fcp.getGlobalClient(), new FreenetURI("CHK@"), identifier, Integer.MAX_VALUE, RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS, ClientRequest.PERSIST_FOREVER, null, false, false, -1, ClientPutMessage.UPLOAD_FROM_DISK, file, contentType, new FileBucket(file, true, false, false, false), null); clientPut.start(); fcp.forceStorePersistentRequests(); } catch (IdentifierCollisionException e) { e.printStackTrace(); } writePermanentRedirect(ctx, "Done", "/queue/"); return; } } finally { request.freeParts(); } this.handleGet(uri, ctx); }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/144c6fa8b4af3023cb6f0c50203b29af750a73e7/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 23891, 590, 273, 394, 25238, 12, 1650, 16, 501, 16, 1103, 1769, 202, 202, 698, 288, 1082, 202, 430, 14015, 892, 18, 1467, 1435, 405, 6250, 380, 6250, 13, 597, 261, 2293, 18, 588, 1988, 8092, 2932, 6387, 3113, 8038, 2934, 2469, 1435, 422, 374, 3719, 288, 9506, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 7409, 16, 315, 955, 19, 7446, 3113, 315, 10703, 5446, 3113, 315, 751, 14399, 404, 7969, 1800, 8863, 9506, 202, 2463, 31, 1082, 202, 97, 9506, 202, 780, 1342, 273, 590, 18, 588, 786, 2932, 687, 3913, 8863, 1082, 202, 430, 261, 5466, 18, 2469, 1435, 422, 374, 13, 288, 9506, 202, 5466, 273, 590, 18, 588, 1988, 8092, 2932, 687, 3913, 3113, 8038, 1769, 1082, 202, 97, 1082, 202, 430, 14015, 5466, 18, 2469, 1435, 422, 374, 13, 747, 401, 5466, 18, 14963, 12, 2159, 18, 687, 3913, 3719, 288, 9506, 202, 5002, 620, 1388, 1607, 273, 394, 5991, 620, 1388, 5621, 9506, 202, 2485, 18, 458, 2932, 2735, 3113, 2206, 4000, 4898, 1769, 9506, 202, 5900, 18, 4661, 7817, 3121, 12, 23, 3103, 16, 315, 2043, 3113, 1607, 16, 446, 16, 374, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 430, 12, 2293, 18, 291, 1662, 694, 2932, 4479, 67, 2293, 7923, 597, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 3349, 12, 3098, 2003, 16, 7408, 501, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 23891, 590, 273, 394, 25238, 12, 1650, 16, 501, 16, 1103, 1769, 202, 202, 698, 288, 1082, 202, 430, 14015, 892, 18, 1467, 1435, 405, 6250, 380, 6250, 13, 597, 261, 2293, 18, 588, 1988, 8092, 2932, 6387, 3113, 8038, 2934, 2469, 1435, 422, 374, 3719, 288, 9506, 202, 2211, 18, 2626, 7817, 12, 5900, 16, 7409, 16, 315, 955, 19, 7446, 3113, 315, 10703, 5446, 3113, 315, 751, 14399, 404, 7969, 1800, 8863, 9506, 202, 2463, 31, 1082, 202, 97, 9506, 202, 780, 1342, 2 ]
public CEnumeratorProblem( int id, char[] arg ) { super( id, arg );
public CEnumeratorProblem( IASTNode node, int id, char[] arg ) { super( node, id, arg );
public CEnumeratorProblem( int id, char[] arg ) { super( id, arg ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/f25c314c0a69d3f0c40e3d587196c6e81e8718ff/CEnumerator.java/clean/core/org.ecl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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 385, 3572, 7385, 13719, 12, 509, 612, 16, 1149, 8526, 1501, 262, 288, 5411, 2240, 12, 612, 16, 1501, 11272, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (isType(DOT, node) || isType(OPTIONAL_ARG, node)) {
boolean safe = isType(OPTIONAL_ARG, node); if (isType(DOT, node) || safe) {
protected Expression methodCallExpression(AST methodCallNode) { AST node = methodCallNode.getFirstChild(); if (isType(METHOD_CALL, node)) { // sometimes method calls get wrapped in method calls for some wierd reason return methodCallExpression(node); } Expression objectExpression = VariableExpression.THIS_EXPRESSION; AST elist = null; if (isType(DOT, node) || isType(OPTIONAL_ARG, node)) { AST objectNode = node.getFirstChild(); elist = node.getNextSibling(); objectExpression = expression(objectNode); node = objectNode.getNextSibling(); } String name = null; if (isType(LITERAL_super, node)) { name = "super"; if (objectExpression == VariableExpression.THIS_EXPRESSION) { objectExpression = VariableExpression.SUPER_EXPRESSION; } } else if (isType(LITERAL_new, node)) { // TODO for some reason the parser wraps this in a method call if // there is an appended closure return constructorCallExpression(node); } else if (isPrimitiveTypeLiteral(node)) { throw new ASTRuntimeException(node, "Primitive type literal: " + node.getText() + " cannot be used as a method name; maybe you need to use a double || with a closure expression? {|int x| ..} rather than {int x|...}"); } else { name = identifier(node); } if (elist == null) { elist = node.getNextSibling(); } Expression arguments = arguments(elist); MethodCallExpression expression = new MethodCallExpression(objectExpression, name, arguments); boolean implicitThis = (objectExpression == VariableExpression.THIS_EXPRESSION); implicitThis = implicitThis || (objectExpression == VariableExpression.SUPER_EXPRESSION); expression.setImplicitThis(implicitThis); configureAST(expression, methodCallNode); return expression; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/a3553feaabb48eef0afd61214626bfecd241e4a2/AntlrParserPlugin.java/buggy/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 5371, 707, 31895, 12, 9053, 707, 1477, 907, 13, 288, 3639, 9183, 756, 273, 707, 1477, 907, 18, 588, 3759, 1763, 5621, 3639, 309, 261, 291, 559, 12, 5327, 67, 13730, 16, 756, 3719, 288, 5411, 368, 16594, 707, 4097, 336, 5805, 316, 707, 4097, 364, 2690, 341, 2453, 72, 3971, 5411, 327, 707, 31895, 12, 2159, 1769, 3639, 289, 3639, 5371, 733, 2300, 273, 7110, 2300, 18, 2455, 5127, 67, 19111, 31, 3639, 9183, 415, 376, 273, 446, 31, 3639, 1250, 4183, 273, 20805, 12, 14165, 67, 10973, 16, 756, 1769, 309, 261, 291, 559, 12, 17591, 16, 756, 13, 747, 4183, 13, 288, 5411, 9183, 733, 907, 273, 756, 18, 588, 3759, 1763, 5621, 5411, 415, 376, 273, 756, 18, 588, 2134, 10291, 5621, 5411, 733, 2300, 273, 2652, 12, 1612, 907, 1769, 5411, 756, 273, 733, 907, 18, 588, 2134, 10291, 5621, 3639, 289, 3639, 514, 508, 273, 446, 31, 3639, 309, 261, 291, 559, 12, 23225, 67, 9565, 16, 756, 3719, 288, 5411, 508, 273, 315, 9565, 14432, 5411, 309, 261, 1612, 2300, 422, 7110, 2300, 18, 2455, 5127, 67, 19111, 13, 288, 7734, 733, 2300, 273, 7110, 2300, 18, 13272, 654, 67, 19111, 31, 5411, 289, 3639, 289, 3639, 469, 309, 261, 291, 559, 12, 23225, 67, 2704, 16, 756, 3719, 288, 5411, 368, 2660, 364, 2690, 3971, 326, 2082, 9059, 333, 316, 279, 707, 745, 309, 5411, 368, 1915, 353, 392, 12317, 7213, 5411, 327, 3885, 31895, 12, 2159, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 5371, 707, 31895, 12, 9053, 707, 1477, 907, 13, 288, 3639, 9183, 756, 273, 707, 1477, 907, 18, 588, 3759, 1763, 5621, 3639, 309, 261, 291, 559, 12, 5327, 67, 13730, 16, 756, 3719, 288, 5411, 368, 16594, 707, 4097, 336, 5805, 316, 707, 4097, 364, 2690, 341, 2453, 72, 3971, 5411, 327, 707, 31895, 12, 2159, 1769, 3639, 289, 3639, 5371, 733, 2300, 273, 7110, 2300, 18, 2455, 5127, 67, 19111, 31, 3639, 9183, 415, 376, 273, 446, 31, 3639, 1250, 4183, 273, 20805, 12, 14165, 67, 10973, 16, 756, 1769, 309, 261, 291, 559, 12, 17591, 16, 756, 13, 747, 4183, 13, 288, 5411, 9183, 733, 907, 273, 756, 18, 588, 3759, 1763, 5621, 5411, 2 ]
int childCount = treeNode.getParent().getChildCount(); for (int i = 0; i < childCount; i++) { DefaultMutableTreeNode tNode = (DefaultMutableTreeNode) treeNode.getParent().getChildAt(i); PathElement e = (PathElement) tNode.getUserObject(); if (e != null && !e.isPseudoPathElement()) { counter++;
if (treeNode.getParent() != null) { int childCount = treeNode.getParent().getChildCount(); for (int i = 0; i < childCount; i++) { DefaultMutableTreeNode tNode = (DefaultMutableTreeNode) treeNode.getParent().getChildAt(i); PathElement e = (PathElement) tNode.getUserObject(); if (e != null && !e.isPseudoPathElement()) { counter++; }
private int countLoops() { DefaultMutableTreeNode treeNode = stack.getLastLeaf(); int counter = 0; int childCount = treeNode.getParent().getChildCount(); for (int i = 0; i < childCount; i++) { DefaultMutableTreeNode tNode = (DefaultMutableTreeNode) treeNode.getParent().getChildAt(i); PathElement e = (PathElement) tNode.getUserObject(); if (e != null && !e.isPseudoPathElement()) { counter++; } } return counter; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/110797a22ece175cb4f9b3857b3208aac4281fcd/DAAPathFinder.java/buggy/pmd/src/net/sourceforge/pmd/dfa/pathfinder/DAAPathFinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1056, 31409, 1435, 288, 3639, 2989, 19536, 12513, 29733, 273, 2110, 18, 588, 3024, 9858, 5621, 3639, 509, 3895, 273, 374, 31, 3639, 509, 31492, 273, 29733, 18, 588, 3054, 7675, 588, 1763, 1380, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 31492, 31, 277, 27245, 288, 5411, 2989, 19536, 12513, 268, 907, 273, 261, 1868, 19536, 12513, 13, 29733, 18, 588, 3054, 7675, 588, 1763, 861, 12, 77, 1769, 5411, 2666, 1046, 425, 273, 261, 743, 1046, 13, 268, 907, 18, 588, 1299, 921, 5621, 5411, 309, 261, 73, 480, 446, 597, 401, 73, 18, 291, 26716, 743, 1046, 10756, 288, 7734, 3895, 9904, 31, 5411, 289, 3639, 289, 3639, 327, 3895, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 326, 981, 30, 377, 3238, 509, 1056, 31409, 1435, 288, 3639, 2989, 19536, 12513, 29733, 273, 2110, 18, 588, 3024, 9858, 5621, 3639, 509, 3895, 273, 374, 31, 3639, 509, 31492, 273, 29733, 18, 588, 3054, 7675, 588, 1763, 1380, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 31492, 31, 277, 27245, 288, 5411, 2989, 19536, 12513, 268, 907, 273, 261, 1868, 19536, 12513, 13, 29733, 18, 588, 3054, 7675, 588, 1763, 861, 12, 77, 1769, 5411, 2666, 1046, 425, 273, 261, 743, 1046, 13, 268, 907, 18, 588, 1299, 921, 5621, 5411, 309, 261, 73, 480, 446, 597, 401, 73, 18, 291, 26716, 743, 1046, 10756, 288, 7734, 3895, 9904, 31, 5411, 289, 3639, 289, 3639, 327, 3895, 2 ]
DataType assocType = p.getType(); if( associatedObject == null || !assocType.equals(associatedObject .getObjectType()) ) { String msg = "Making association for:" + dataInner.getObjectType().getName(); if( null == associatedObject ) { msg += " Is not already associated with any object."; } else { msg += " Is not associated with: " + associatedObject.getObjectType().getName(); msg += " The association type is: " + assocType.getName(); } s_log.info(msg); makeAssociation(p, dataInner); } } };
DataType assocType = p.getType(); if( associatedObject == null || !assocType.equals(associatedObject .getObjectType()) ) { String msg = "Making association for:" + dataInner.getObjectType().getName(); if( null == associatedObject ) { msg += " Is not already associated with any object."; } else { msg += " Is not associated with: " + associatedObject.getObjectType().getName(); msg += " The association type is: " + assocType.getName(); } s_log.info(msg); makeAssociation(p, dataInner); } } };
private void makeAssociations(DataObject data, final DataObject associatedObject) throws Exception { PropertyManipulator.AssociationManipulator manip = new PropertyManipulator.AssociationManipulator() { public void manipulate(Property p, DataObject dataInner) throws Exception { DataType assocType = p.getType(); if( associatedObject == null || !assocType.equals(associatedObject .getObjectType()) ) { String msg = "Making association for:" + dataInner.getObjectType().getName(); if( null == associatedObject ) { msg += " Is not already associated with any object."; } else { msg += " Is not associated with: " + associatedObject.getObjectType().getName(); msg += " The association type is: " + assocType.getName(); } s_log.info(msg); makeAssociation(p, dataInner); } } }; PropertyManipulator.manipulateProperties(data, manip); }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/ObjectTypeValidator.java/buggy/archive/core-platform/test/src/com/arsdigita/persistence/ObjectTypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 15143, 12, 21881, 501, 16, 4766, 282, 727, 18914, 3627, 921, 13, 540, 1216, 1185, 288, 3639, 4276, 27587, 18, 7174, 27587, 13441, 273, 2398, 394, 4276, 27587, 18, 7174, 27587, 1435, 288, 10792, 1071, 918, 28286, 12, 1396, 293, 16, 18914, 501, 2857, 13, 7682, 1216, 1185, 288, 13491, 14828, 7191, 559, 273, 293, 18, 588, 559, 5621, 13491, 309, 12, 3627, 921, 422, 446, 11794, 747, 401, 14578, 559, 18, 14963, 12, 28441, 921, 4766, 1171, 263, 588, 17610, 10756, 262, 288, 18701, 514, 1234, 273, 315, 49, 6159, 6384, 364, 2773, 397, 4766, 501, 2857, 18, 588, 17610, 7675, 17994, 5621, 18701, 309, 12, 446, 422, 3627, 921, 262, 288, 27573, 1234, 1011, 315, 2585, 486, 1818, 3627, 598, 1281, 733, 1199, 31, 18701, 289, 469, 288, 27573, 1234, 1011, 315, 2585, 486, 3627, 598, 30, 315, 19694, 397, 3627, 921, 18, 588, 17610, 7675, 17994, 5621, 4766, 1234, 1011, 315, 1021, 6384, 618, 353, 30, 315, 397, 7191, 559, 18, 17994, 5621, 18701, 289, 18701, 272, 67, 1330, 18, 1376, 12, 3576, 1769, 18701, 1221, 7174, 12, 84, 16, 501, 2857, 1769, 18701, 289, 18701, 289, 5397, 289, 31, 3639, 4276, 27587, 18, 4728, 625, 6243, 2297, 12, 892, 16, 13441, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 15143, 12, 21881, 501, 16, 4766, 282, 727, 18914, 3627, 921, 13, 540, 1216, 1185, 288, 3639, 4276, 27587, 18, 7174, 27587, 13441, 273, 2398, 394, 4276, 27587, 18, 7174, 27587, 1435, 288, 10792, 1071, 918, 28286, 12, 1396, 293, 16, 18914, 501, 2857, 13, 7682, 1216, 1185, 288, 13491, 14828, 7191, 559, 273, 293, 18, 588, 559, 5621, 13491, 309, 12, 3627, 921, 422, 446, 11794, 747, 401, 14578, 559, 18, 14963, 12, 28441, 921, 4766, 1171, 263, 588, 17610, 10756, 262, 288, 18701, 514, 1234, 273, 315, 49, 6159, 6384, 364, 2773, 397, 4766, 501, 2857, 18, 588, 17610, 7675, 17994, 5621, 18701, 309, 12, 446, 422, 3627, 921, 262, 288, 27573, 1234, 2 ]
getViewFactory().releaseView(ref.getId());
getViewFactory().releaseView(ref);
public boolean hideView(IViewReference ref) { // If the view is locked just return. ViewPane pane = getPane(ref); // Remove the view from the current presentation. if (isFastView(ref)) { fastViews.remove(ref); if(pane != null) pane.setFast(false); //force an update of the toolbar if (activeFastView == ref) setActiveFastView(null); if(pane != null) pane.getControl().setEnabled(true); } else { presentation.removePart(pane); } // Dispose view if ref count == 0. getViewFactory().releaseView(ref.getId()); return true;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4c54f4e9d7f7736ec1933d53df8e30ab176cd2b2/Perspective.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Perspective.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 6853, 1767, 12, 45, 1767, 2404, 1278, 13, 288, 202, 759, 971, 326, 1476, 353, 8586, 2537, 327, 18, 202, 1767, 8485, 13618, 273, 1689, 8806, 12, 1734, 1769, 202, 202, 759, 3581, 326, 1476, 628, 326, 783, 22525, 18, 202, 430, 261, 291, 12305, 1767, 12, 1734, 3719, 288, 202, 202, 8076, 9959, 18, 4479, 12, 1734, 1769, 202, 202, 430, 12, 29009, 480, 446, 13, 1082, 202, 29009, 18, 542, 12305, 12, 5743, 1769, 202, 202, 759, 5734, 392, 1089, 434, 326, 12748, 202, 202, 430, 261, 3535, 12305, 1767, 422, 1278, 13, 1082, 202, 542, 3896, 12305, 1767, 12, 2011, 1769, 202, 202, 430, 12, 29009, 480, 446, 13, 1082, 202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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 6853, 1767, 12, 45, 1767, 2404, 1278, 13, 288, 202, 759, 971, 326, 1476, 353, 8586, 2537, 327, 18, 202, 1767, 8485, 13618, 273, 1689, 8806, 12, 1734, 1769, 202, 202, 759, 3581, 326, 1476, 628, 326, 783, 22525, 18, 202, 430, 261, 291, 12305, 1767, 12, 1734, 3719, 288, 202, 202, 8076, 9959, 18, 4479, 12, 1734, 1769, 202, 202, 430, 12, 29009, 480, 446, 13, 1082, 202, 29009, 18, 542, 12305, 12, 5743, 1769, 202, 202, 759, 5734, 392, 1089, 434, 326, 12748, 202, 202, 430, 261, 3535, 12305, 1767, 422, 1278, 13, 1082, 202, 542, 3896, 12305, 1767, 12, 2011, 1769, 202, 202, 430, 12, 29009, 480, 446, 13, 1082, 202, 29009, 18, 588, 2 ]
Crystal crystal = new Crystal();
Crystal crystal = builder.newCrystal();
public void testSetZ_int() { Crystal crystal = new Crystal(); int z = 2; crystal.setZ(z); assertEquals(z, crystal.getZ()); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/d21f277c120791acd10319bbfe4f2deaa0db1306/CrystalTest.java/buggy/src/org/openscience/cdk/test/CrystalTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 694, 62, 67, 474, 1435, 288, 3639, 14998, 31365, 4422, 31365, 273, 2089, 18, 2704, 12893, 31365, 5621, 3639, 509, 998, 273, 576, 31, 3639, 4422, 31365, 18, 542, 62, 12, 94, 1769, 3639, 1815, 8867, 12, 94, 16, 4422, 31365, 18, 588, 62, 10663, 565, 289, 2, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 694, 62, 67, 474, 1435, 288, 3639, 14998, 31365, 4422, 31365, 273, 2089, 18, 2704, 12893, 31365, 5621, 3639, 509, 998, 273, 576, 31, 3639, 4422, 31365, 18, 542, 62, 12, 94, 1769, 3639, 1815, 8867, 12, 94, 16, 4422, 31365, 18, 588, 62, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
treeEvent.setOldValue(vFile.getName()); treeEvent.setNewValue(newName); myManager.beforePropertyChange(treeEvent);
treeEvent.setOldValue(event.getOldValue()); treeEvent.setNewValue(event.getNewValue()); myManager.propertyChanged(treeEvent);
public void run() { PsiTreeChangeEventImpl treeEvent = new PsiTreeChangeEventImpl(myManager); treeEvent.setParent(parentDir); if (VirtualFile.PROP_NAME.equals(propertyName)) { final String newName = (String)event.getNewValue(); if (vFile.isDirectory()) { PsiDirectory psiDir = findDirectory(vFile); if (psiDir != null) { if (!myFileTypeManager.isFileIgnored(newName)) { treeEvent.setChild(psiDir); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_DIRECTORY_NAME); treeEvent.setOldValue(vFile.getName()); treeEvent.setNewValue(newName); myManager.beforePropertyChange(treeEvent); } else { treeEvent.setChild(psiDir); myManager.beforeChildRemoval(treeEvent); } } else { if (!isExcludeRoot(vFile) && !myFileTypeManager.isFileIgnored(newName)) { myManager.beforeChildAddition(treeEvent); } } } else { PsiFile psiFile = findFile(vFile); PsiFile psiFile1 = createPsiFile(vFile, newName); if (psiFile != null) { if (psiFile1 == null) { treeEvent.setChild(psiFile); myManager.beforeChildRemoval(treeEvent); } else if (!psiFile1.getClass().equals(psiFile.getClass())) { treeEvent.setOldChild(psiFile); myManager.beforeChildReplacement(treeEvent); } else { treeEvent.setChild(psiFile); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_FILE_NAME); treeEvent.setOldValue(vFile.getName()); treeEvent.setNewValue(newName); myManager.beforePropertyChange(treeEvent); } } else { if (psiFile1 != null) { myManager.beforeChildAddition(treeEvent); } } } } else if (VirtualFile.PROP_WRITABLE.equals(propertyName)) { PsiFile psiFile = myVFileToPsiFileMap.get(vFile); if (psiFile == null) return; treeEvent.setElement(psiFile); treeEvent.setPropertyName(PsiTreeChangeEvent.PROP_WRITABLE); treeEvent.setOldValue(event.getOldValue()); treeEvent.setNewValue(event.getNewValue()); myManager.beforePropertyChange(treeEvent); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/d88b0d6e4538f617f5b687d2c93ed46f9f15ff35/FileManagerImpl.java/buggy/source/com/intellij/psi/impl/file/impl/FileManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 453, 7722, 2471, 20930, 2828, 2151, 1133, 273, 394, 453, 7722, 2471, 20930, 2828, 12, 4811, 1318, 1769, 5411, 2151, 1133, 18, 542, 3054, 12, 2938, 1621, 1769, 5411, 309, 261, 6466, 812, 18, 15811, 67, 1985, 18, 14963, 12, 4468, 461, 3719, 288, 2868, 727, 514, 13253, 273, 261, 780, 13, 2575, 18, 588, 1908, 620, 5621, 2868, 309, 261, 90, 812, 18, 291, 2853, 10756, 288, 7734, 453, 7722, 2853, 23921, 1621, 273, 1104, 2853, 12, 90, 812, 1769, 7734, 309, 261, 24275, 1621, 480, 446, 13, 288, 5375, 309, 16051, 4811, 28941, 1318, 18, 291, 812, 15596, 12, 2704, 461, 3719, 288, 10792, 2151, 1133, 18, 542, 1763, 12, 24275, 1621, 1769, 10792, 2151, 1133, 18, 542, 13073, 12, 52, 7722, 2471, 20930, 18, 15811, 67, 17229, 67, 1985, 1769, 10792, 2151, 1133, 18, 542, 7617, 620, 12, 90, 812, 18, 17994, 10663, 10792, 2151, 1133, 18, 542, 1908, 620, 12, 2704, 461, 1769, 10792, 3399, 1318, 18, 5771, 1396, 3043, 12, 3413, 1133, 1769, 5375, 289, 5375, 469, 288, 10792, 2151, 1133, 18, 542, 1763, 12, 24275, 1621, 1769, 10792, 3399, 1318, 18, 5771, 1763, 24543, 12, 3413, 1133, 1769, 5375, 289, 7734, 289, 7734, 469, 288, 5375, 309, 16051, 291, 12689, 2375, 12, 90, 812, 13, 597, 401, 4811, 28941, 1318, 18, 291, 812, 15596, 12, 2704, 461, 3719, 288, 10792, 3399, 1318, 18, 5771, 1763, 30296, 12, 3413, 1133, 1769, 5375, 289, 7734, 289, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 918, 1086, 1435, 288, 5411, 453, 7722, 2471, 20930, 2828, 2151, 1133, 273, 394, 453, 7722, 2471, 20930, 2828, 12, 4811, 1318, 1769, 5411, 2151, 1133, 18, 542, 3054, 12, 2938, 1621, 1769, 5411, 309, 261, 6466, 812, 18, 15811, 67, 1985, 18, 14963, 12, 4468, 461, 3719, 288, 2868, 727, 514, 13253, 273, 261, 780, 13, 2575, 18, 588, 1908, 620, 5621, 2868, 309, 261, 90, 812, 18, 291, 2853, 10756, 288, 7734, 453, 7722, 2853, 23921, 1621, 273, 1104, 2853, 12, 90, 812, 1769, 7734, 309, 261, 24275, 1621, 480, 446, 13, 288, 5375, 309, 16051, 4811, 28941, 1318, 18, 291, 812, 15596, 12, 2704, 461, 3719, 288, 10792, 2151, 1133, 18, 542, 1763, 12, 2 ]
void addScriptRuntimeInvoke(String methodName, String parameterSignature, String resultSignature)
addScriptRuntimeInvoke(String methodName, String parameterSignature, String resultSignature)
void addScriptRuntimeInvoke(String methodName, String parameterSignature, String resultSignature) { classFile.add(ByteCode.INVOKESTATIC, "org/mozilla/javascript/ScriptRuntime", methodName, parameterSignature, resultSignature); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/e741d0cb339d08bcfa9cb588bcb30951ac0436be/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 527, 3651, 5576, 10969, 12, 780, 4918, 16, 514, 1569, 5374, 16, 514, 563, 5374, 13, 565, 288, 3639, 29728, 18, 1289, 12, 3216, 1085, 18, 706, 17691, 11027, 11781, 16, 13491, 315, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 5576, 3113, 13491, 4918, 16, 13491, 1569, 5374, 16, 13491, 563, 5374, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 527, 3651, 5576, 10969, 12, 780, 4918, 16, 514, 1569, 5374, 16, 514, 563, 5374, 13, 565, 288, 3639, 29728, 18, 1289, 12, 3216, 1085, 18, 706, 17691, 11027, 11781, 16, 13491, 315, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 5576, 3113, 13491, 4918, 16, 13491, 1569, 5374, 16, 13491, 563, 5374, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (args.size() == 1)
int size = args.size(); if (size > 0)
public Object call(Context context, List args) throws FunctionCallException { if (args.size() == 1) { return evaluate( args.get(0), context.getNavigator() ); } throw new FunctionCallException( "upper-case() requires one argument." ); }
47110 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47110/b577e65ba7d2808e590c8549b52f3bcf4d1db55c/UpperFunction.java/buggy/jaxen/src/java/main/org/jaxen/function/ext/UpperFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 819, 16, 15604, 987, 833, 13, 1216, 4284, 29182, 565, 288, 3639, 509, 963, 273, 833, 18, 1467, 5621, 309, 261, 1467, 405, 374, 13, 3639, 288, 5411, 327, 5956, 12, 833, 18, 588, 12, 20, 3631, 11794, 819, 18, 588, 22817, 1435, 11272, 3639, 289, 3639, 604, 394, 4284, 29182, 12, 315, 5797, 17, 3593, 1435, 4991, 1245, 1237, 1199, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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273, 833, 18, 1467, 5621, 309, 261, 1467, 405, 374, 13, 3639, 288, 5411, 327, 5956, 12, 833, 18, 588, 12, 20, 3631, 11794, 819, 18, 588, 22817, 1435, 11272, 3639, 289, 3639, 604, 394, 4284, 29182, 12, 315, 5797, 17, 3593, 1435, 4991, 1245, 1237, 1199, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( hasItem( BORIS ) && !hasItem( BOWL ) && !hasItem( HOSE_BOWL ) )
else if ( !hasItem( BOWL ) && !hasItem( HOSE_BOWL ) )
private static List retrieveScubaGear( boolean isCheckOnly ) { List requirements = new ArrayList(); KoLRequest request = null; // The three hero keys are needed to get the SCUBA gear if ( isCheckOnly && !hasItem( SCUBA ) ) { if ( !hasItem( BORIS ) && !hasItem( BOWL ) && !hasItem( HOSE_BOWL ) ) requirements.add( BORIS ); if ( !hasItem( JARLSBERG ) && !hasItem( TANK ) && !hasItem( HOSE_TANK ) ) requirements.add( JARLSBERG ); if ( !hasItem( SNEAKY_PETE ) && !hasItem( HOSE ) && !hasItem( HOSE_TANK ) && !hasItem( HOSE_BOWL ) ) requirements.add( SNEAKY_PETE ); return requirements; } // Next, handle the three hero keys, which involve // answering the riddles with the forms of fish. if ( !hasItem( BORIS ) && !hasItem( BOWL ) && !hasItem( HOSE_BOWL ) ) requirements.add( BORIS ); if ( hasItem( BORIS ) && !hasItem( BOWL ) && !hasItem( HOSE_BOWL ) ) { AdventureDatabase.retrieveItem( BORIS ); DEFAULT_SHELL.updateDisplay( "Inserting Boris's key..." ); request = new KoLRequest( client, "lair2.php" ); request.addFormField( "preaction", "key" ); request.addFormField( "whichkey", String.valueOf( BORIS.getItemID() ) ); request.run(); if ( request.responseText.indexOf( "prepreaction" ) != -1 ) { request = new KoLRequest( client, "lair2.php" ); request.addFormField( "prepreaction", "sorcriddle1" ); request.addFormField( "answer", "fish" ); request.run(); } } if ( !hasItem( JARLSBERG ) && !hasItem( TANK ) && !hasItem( HOSE_TANK ) ) requirements.add( JARLSBERG ); if ( hasItem( JARLSBERG ) && !hasItem( TANK ) && !hasItem( HOSE_TANK ) ) { AdventureDatabase.retrieveItem( JARLSBERG ); DEFAULT_SHELL.updateDisplay( "Inserting Jarlsberg's key..." ); request = new KoLRequest( client, "lair2.php" ); request.addFormField( "preaction", "key" ); request.addFormField( "whichkey", String.valueOf( JARLSBERG.getItemID() ) ); request.run(); if ( request.responseText.indexOf( "prepreaction" ) != -1 ) { request = new KoLRequest( client, "lair2.php" ); request.addFormField( "prepreaction", "sorcriddle2" ); request.addFormField( "answer", "phish" ); request.run(); } } if ( !hasItem( SNEAKY_PETE ) && !hasItem( HOSE ) && !hasItem( HOSE_TANK ) && !hasItem( HOSE_BOWL ) ) requirements.add( SNEAKY_PETE ); if ( hasItem( SNEAKY_PETE ) && !hasItem( HOSE ) && !hasItem( HOSE_TANK ) && !hasItem( HOSE_BOWL ) ) { AdventureDatabase.retrieveItem( SNEAKY_PETE ); DEFAULT_SHELL.updateDisplay( "Inserting Sneaky Pete's key..." ); request = new KoLRequest( client, "lair2.php" ); request.addFormField( "preaction", "key" ); request.addFormField( "whichkey", String.valueOf( SNEAKY_PETE.getItemID() ) ); request.run(); if ( request.responseText.indexOf( "prepreaction" ) != -1 ) { request = new KoLRequest( client, "lair2.php" ); request.addFormField( "prepreaction", "sorcriddle3" ); request.addFormField( "answer", "fsh" ); request.run(); } } // Equip the SCUBA gear. Attempting to retrieve it // will automatically create it. if ( hasItem( SCUBA ) ) { AdventureDatabase.retrieveItem( SCUBA ); DEFAULT_SHELL.executeLine( "equip acc1 makeshift SCUBA gear" ); DEFAULT_SHELL.updateDisplay( "Pressing switch beyond odor..." ); (new KoLRequest( client, "lair2.php?action=odor" )).run(); } return requirements; }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/5b913a9130ba180c288c73bc2b8149ba3d5dd1ae/SorceressLair.java/clean/src/net/sourceforge/kolmafia/SorceressLair.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 987, 4614, 1541, 373, 27196, 2091, 12, 1250, 353, 1564, 3386, 262, 202, 95, 202, 202, 682, 8433, 273, 394, 2407, 5621, 202, 202, 47, 83, 48, 691, 590, 273, 446, 31, 202, 202, 759, 1021, 8925, 366, 2439, 1311, 854, 3577, 358, 336, 326, 8795, 3457, 37, 30142, 202, 202, 430, 261, 353, 1564, 3386, 597, 401, 5332, 1180, 12, 8795, 3457, 37, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 401, 5332, 1180, 12, 605, 916, 5127, 262, 597, 401, 5332, 1180, 12, 605, 7306, 48, 262, 597, 401, 5332, 1180, 12, 11705, 1090, 67, 5315, 59, 48, 262, 262, 9506, 202, 16175, 18, 1289, 12, 605, 916, 5127, 11272, 1082, 202, 430, 261, 401, 5332, 1180, 12, 24728, 3045, 6271, 43, 262, 597, 401, 5332, 1180, 12, 399, 20201, 262, 597, 401, 5332, 1180, 12, 11705, 1090, 67, 56, 20201, 262, 262, 9506, 202, 16175, 18, 1289, 12, 24728, 3045, 6271, 43, 11272, 1082, 202, 430, 261, 401, 5332, 1180, 12, 348, 5407, 14607, 61, 67, 1423, 1448, 262, 597, 401, 5332, 1180, 12, 11705, 1090, 262, 597, 401, 5332, 1180, 12, 11705, 1090, 67, 56, 20201, 262, 597, 401, 5332, 1180, 12, 11705, 1090, 67, 5315, 59, 48, 262, 262, 9506, 202, 16175, 18, 1289, 12, 348, 5407, 14607, 61, 67, 1423, 1448, 11272, 1082, 202, 2463, 8433, 31, 202, 202, 97, 202, 202, 759, 4804, 16, 1640, 326, 8925, 366, 2439, 1311, 16, 1492, 2198, 5390, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 987, 4614, 1541, 373, 27196, 2091, 12, 1250, 353, 1564, 3386, 262, 202, 95, 202, 202, 682, 8433, 273, 394, 2407, 5621, 202, 202, 47, 83, 48, 691, 590, 273, 446, 31, 202, 202, 759, 1021, 8925, 366, 2439, 1311, 854, 3577, 358, 336, 326, 8795, 3457, 37, 30142, 202, 202, 430, 261, 353, 1564, 3386, 597, 401, 5332, 1180, 12, 8795, 3457, 37, 262, 262, 202, 202, 95, 1082, 202, 430, 261, 401, 5332, 1180, 12, 605, 916, 5127, 262, 597, 401, 5332, 1180, 12, 605, 7306, 48, 262, 597, 401, 5332, 1180, 12, 11705, 1090, 67, 5315, 59, 48, 262, 262, 9506, 202, 16175, 18, 1289, 12, 605, 916, 5127, 11272, 1082, 202, 2 ]
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException { fileScanner.setProject(AntTagLibrary.getProject(context)); fileScanner.clear(); // run the body first to configure the task via nested invokeBody(output); // output the fileScanner if ( var == null ) { throw new MissingAttributeException( "var" ); } context.setVariable( var, fileScanner ); }
51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/cbaa8d2430c2bf467e589a423fee7c83e3f0eb2f/FileScannerTag.java/buggy/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/FileScannerTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 1805, 12, 4201, 1447, 876, 13, 1216, 10230, 1499, 503, 16, 804, 292, 715, 1805, 503, 288, 3639, 585, 11338, 18, 542, 4109, 12, 14925, 1805, 9313, 18, 588, 4109, 12, 2472, 10019, 7734, 585, 11338, 18, 8507, 5621, 7734, 368, 1086, 326, 1417, 1122, 358, 5068, 326, 1562, 3970, 4764, 3639, 4356, 2250, 12, 2844, 1769, 3639, 368, 876, 326, 585, 11338, 3639, 309, 261, 569, 422, 446, 262, 288, 5411, 604, 394, 10230, 1499, 503, 12, 315, 1401, 6, 11272, 3639, 289, 3639, 819, 18, 542, 3092, 12, 569, 16, 585, 11338, 11272, 10792, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 4201, 1447, 876, 13, 1216, 10230, 1499, 503, 16, 804, 292, 715, 1805, 503, 288, 3639, 585, 11338, 18, 542, 4109, 12, 14925, 1805, 9313, 18, 588, 4109, 12, 2472, 10019, 7734, 585, 11338, 18, 8507, 5621, 7734, 368, 1086, 326, 1417, 1122, 358, 5068, 326, 1562, 3970, 4764, 3639, 4356, 2250, 12, 2844, 1769, 3639, 368, 876, 326, 585, 11338, 3639, 309, 261, 569, 422, 446, 262, 288, 5411, 604, 394, 10230, 1499, 503, 12, 315, 1401, 6, 11272, 3639, 289, 3639, 819, 18, 542, 3092, 12, 569, 16, 585, 11338, 11272, 10792, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ( Server.this.game.isEntityStranded(entity) ) return true; return false; }
if ( entity instanceof Protomech && ownerId == entity.getOwnerId() ) return true; return false; }
public boolean accept( Entity entity ) { if ( Server.this.game.isEntityStranded(entity) ) return true; return false; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/52c779ffe23af42971d05064665a3849637de859/Server.java/clean/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 1250, 2791, 12, 3887, 1522, 262, 288, 13491, 309, 261, 3224, 18, 2211, 18, 13957, 18, 291, 1943, 1585, 5860, 12, 1096, 13, 262, 18701, 327, 638, 31, 13491, 327, 629, 31, 10792, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5397, 1071, 1250, 2791, 12, 3887, 1522, 262, 288, 13491, 309, 261, 3224, 18, 2211, 18, 13957, 18, 291, 1943, 1585, 5860, 12, 1096, 13, 262, 18701, 327, 638, 31, 13491, 327, 629, 31, 10792, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ("xml".equals(prefix) && "base".equals(localName)) { Verifier.checkXMLBaseValue(value); } else { Verifier.checkCharacterData(value); }
Verifier.checkCharacterData(value);
public final void setValue(String value) { // Need to check values of xml:base if ("xml".equals(prefix) && "base".equals(localName)) { Verifier.checkXMLBaseValue(value); } else { Verifier.checkCharacterData(value); } checkValue(value); this.value = value; }
626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/268cf7cfca537de2718a37f56bcc4c27e9dc3fe8/Attribute.java/clean/src/nu/xom/Attribute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 5524, 12, 780, 460, 13, 288, 3639, 368, 12324, 358, 866, 924, 434, 2025, 30, 1969, 3639, 309, 7566, 2902, 9654, 14963, 12, 3239, 13, 597, 315, 1969, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 6160, 1251, 18, 1893, 4201, 2171, 620, 12, 1132, 1769, 3639, 289, 3639, 469, 288, 5411, 6160, 1251, 18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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 5524, 12, 780, 460, 13, 288, 3639, 368, 12324, 358, 866, 924, 434, 2025, 30, 1969, 3639, 309, 7566, 2902, 9654, 14963, 12, 3239, 13, 597, 315, 1969, 9654, 14963, 12, 3729, 461, 3719, 288, 5411, 6160, 1251, 18, 1893, 4201, 2171, 620, 12, 1132, 1769, 3639, 289, 3639, 469, 288, 5411, 6160, 1251, 18, 1893, 7069, 751, 12, 1132, 1769, 6647, 289, 3639, 866, 620, 12, 1132, 1769, 3639, 333, 18, 1132, 273, 460, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String testSQL = "select COUNTRY, AMOUNT from " + getTestTableName( ); ((OdaDataSetDesign)this.dataSet).setQueryText( testSQL );
public void test_FilteWithTopN() throws Exception { // Test a SQL with duplicate column name (quite common with join data sets) String testSQL = "select COUNTRY, AMOUNT from " + getTestTableName( ); //$NON-NLS-1$ ((OdaDataSetDesign)this.dataSet).setQueryText( testSQL ); ScriptExpression[] expressions = new ScriptExpression[2]; expressions[0] = new ScriptExpression( "row.COUNTRY" ); //$NON-NLS-1$ expressions[1] = new ScriptExpression( "row.AMOUNT" ); //$NON-NLS-1$ FilterDefinition filterDef = new FilterDefinition ( new ConditionalExpression("row.AMOUNT",IConditionalExpression.OP_TOP_N,"1") ); //$NON-NLS-1$//$NON-NLS-2$ // define a query design QueryDefinition queryDefn = newReportQuery( ); queryDefn.addFilter( filterDef ); queryDefn.addResultSetExpression( "COL_COUNTRY", expressions[0] ); //$NON-NLS-1$ queryDefn.addResultSetExpression( "COL_AMOUNT", expressions[1] ); //$NON-NLS-1$ IPreparedQuery preparedQuery = dataEngine.prepare( queryDefn ); IQueryResults queryResults = preparedQuery.execute( null ); IResultIterator resultIt = queryResults.getResultIterator( ); outputQueryResult( resultIt, new String[]{ "COL_COUNTRY", "COL_AMOUNT"} ); //$NON-NLS-1$//$NON-NLS-2$ checkOutputFile( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/2c03416f0b08218d6747decd1b71f0a988bf85b8/MultiPass_FilterTest.java/clean/testsuites/org.eclipse.birt.tests.data/src/org/eclipse/birt/tests/data/engine/api/MultiPass_FilterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 25579, 736, 1190, 3401, 50, 1435, 1216, 1185, 202, 95, 202, 202, 759, 7766, 279, 3063, 598, 6751, 1057, 508, 261, 372, 1137, 2975, 598, 1233, 501, 1678, 13, 202, 202, 780, 1842, 3997, 273, 225, 315, 4025, 12666, 9590, 16, 432, 5980, 5321, 628, 315, 397, 29384, 7147, 12, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 12443, 51, 2414, 13676, 15478, 13, 2211, 18, 892, 694, 2934, 542, 1138, 1528, 12, 1842, 3997, 11272, 9506, 202, 3651, 2300, 8526, 8041, 273, 394, 7739, 2300, 63, 22, 15533, 202, 202, 21480, 63, 20, 65, 273, 394, 7739, 2300, 12, 315, 492, 18, 7240, 9590, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 21480, 63, 21, 65, 273, 394, 7739, 2300, 12, 315, 492, 18, 2192, 51, 5321, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 1586, 1852, 1034, 3262, 273, 394, 4008, 1852, 261, 9506, 202, 2704, 22466, 2300, 2932, 492, 18, 2192, 51, 5321, 3113, 45, 14132, 2300, 18, 3665, 67, 10462, 67, 50, 10837, 21, 7923, 11272, 225, 4329, 3993, 17, 5106, 17, 21, 8, 759, 8, 3993, 17, 5106, 17, 22, 8, 9506, 202, 759, 4426, 279, 843, 8281, 25083, 202, 1138, 1852, 843, 3262, 82, 273, 394, 4820, 1138, 12, 11272, 25083, 202, 2271, 3262, 82, 18, 1289, 1586, 12, 1034, 3262, 11272, 9506, 202, 2271, 3262, 82, 18, 1289, 13198, 2300, 12, 315, 4935, 67, 7240, 9590, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 25579, 736, 1190, 3401, 50, 1435, 1216, 1185, 202, 95, 202, 202, 759, 7766, 279, 3063, 598, 6751, 1057, 508, 261, 372, 1137, 2975, 598, 1233, 501, 1678, 13, 202, 202, 780, 1842, 3997, 273, 225, 315, 4025, 12666, 9590, 16, 432, 5980, 5321, 628, 315, 397, 29384, 7147, 12, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 12443, 51, 2414, 13676, 15478, 13, 2211, 18, 892, 694, 2934, 542, 1138, 1528, 12, 1842, 3997, 11272, 9506, 202, 3651, 2300, 8526, 8041, 273, 394, 7739, 2300, 63, 22, 15533, 202, 202, 21480, 63, 20, 65, 273, 394, 7739, 2300, 12, 315, 492, 18, 7240, 9590, 6, 11272, 4329, 3993, 17, 5106, 2 ]
File file = FileTool.getFileInPlugin(BugzillaTestPlugin.getDefault(), new Path( "testdata/pages/test-products-220.html")); Reader in = new FileReader(file); List<String> productList = new ArrayList<String>(); productList = new ProductParser(in).getProducts(repository);
repository = new TaskRepository(BugzillaPlugin.REPOSITORY_KIND, new URL( IBugzillaConstants.TEST_BUGZILLA_220_URL), IBugzillaConstants.BugzillaServerVersion.SERVER_220 .toString());
public void test220Products() throws LoginException, IOException, ParseException { BugzillaPlugin.getDefault().getPluginPreferences().setValue(IBugzillaConstants.SERVER_VERSION, IBugzillaConstants.SERVER_220); File file = FileTool.getFileInPlugin(BugzillaTestPlugin.getDefault(), new Path( "testdata/pages/test-products-220.html")); Reader in = new FileReader(file); List<String> productList = new ArrayList<String>(); productList = new ProductParser(in).getProducts(repository); Iterator<String> itr = productList.iterator(); assertTrue(itr.hasNext()); assertEquals("AJDT", "AJDT", itr.next()); assertEquals("ALF", "ALF", itr.next()); assertEquals("AspectJ", "AspectJ", itr.next()); assertEquals("BIRT", "BIRT", itr.next()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7d9feec80faa8d9c009cc029313ad568c48cf50f/BugzillaProductParserTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaProductParserTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 27246, 13344, 1435, 1216, 11744, 503, 16, 1860, 16, 10616, 288, 202, 202, 19865, 15990, 3773, 18, 588, 1868, 7675, 588, 3773, 12377, 7675, 542, 620, 12, 13450, 637, 15990, 2918, 18, 4370, 67, 5757, 16, 9506, 202, 13450, 637, 15990, 2918, 18, 4370, 67, 27246, 1769, 202, 202, 812, 585, 273, 1387, 6364, 18, 29925, 382, 3773, 12, 19865, 15990, 4709, 3773, 18, 588, 1868, 9334, 394, 2666, 12, 9506, 202, 6, 3813, 892, 19, 7267, 19, 3813, 17, 18736, 17, 27246, 18, 2620, 7923, 1769, 202, 202, 2514, 316, 273, 394, 23010, 12, 768, 1769, 202, 202, 682, 32, 780, 34, 3017, 682, 273, 394, 2407, 32, 780, 34, 5621, 202, 202, 5896, 682, 273, 394, 8094, 2678, 12, 267, 2934, 588, 13344, 12, 9071, 1769, 202, 202, 3198, 32, 780, 34, 11176, 273, 3017, 682, 18, 9838, 5621, 202, 202, 11231, 5510, 12, 305, 86, 18, 5332, 2134, 10663, 202, 202, 11231, 8867, 2932, 37, 46, 9081, 3113, 315, 37, 46, 9081, 3113, 11176, 18, 4285, 10663, 202, 202, 11231, 8867, 2932, 21497, 3113, 315, 21497, 3113, 11176, 18, 4285, 10663, 202, 202, 11231, 8867, 2932, 17468, 46, 3113, 315, 17468, 46, 3113, 11176, 18, 4285, 10663, 202, 202, 11231, 8867, 2932,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 7675, 542, 620, 12, 13450, 637, 15990, 2918, 18, 4370, 67, 5757, 16, 9506, 202, 13450, 637, 15990, 2918, 18, 4370, 67, 27246, 1769, 202, 202, 812, 585, 273, 1387, 6364, 18, 29925, 382, 3773, 12, 19865, 15990, 4709, 3773, 18, 588, 1868, 9334, 394, 2666, 12, 9506, 202, 6, 3813, 892, 19, 7267, 19, 3813, 17, 18736, 17, 27246, 18, 2620, 7923, 1769, 202, 202, 2514, 316, 273, 394, 23010, 12, 768, 1769, 202, 202, 682, 32, 780, 34, 3017, 682, 273, 394, 2407, 32, 780, 34, 5621, 202, 202, 2 ]
cmbUnit.select(0);
if (grouping.getGroupType() != null && grouping.getGroupType().equals("Date/Time") && grouping.getGroupingUnit() != null) { cmbUnit.setText(grouping.getGroupingUnit()); } else { cmbUnit.select(0); }
private void populateLists() { // Populate grouping type combo cmbType.add("Text"); cmbType.add("Number"); cmbType.add("Date/Time"); cmbType.select(0); // Populate grouping unit combo (applicable only if type is Date/Time cmbUnit.add("Seconds"); cmbUnit.add("Minutes"); cmbUnit.add("Hours"); cmbUnit.add("Days"); cmbUnit.add("Weeks"); cmbUnit.add("Months"); cmbUnit.add("Quarters"); cmbUnit.add("Years"); cmbUnit.select(0); // Populate grouping aggregate expression combo cmbAggregate.add("Sum"); cmbAggregate.add("Average"); cmbAggregate.select(0); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/258bad0d502f0759055374875005f9978172c4d7/SeriesGroupingComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/SeriesGroupingComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6490, 7432, 1435, 565, 288, 3639, 368, 22254, 12116, 618, 16778, 3639, 276, 1627, 559, 18, 1289, 2932, 1528, 8863, 3639, 276, 1627, 559, 18, 1289, 2932, 1854, 8863, 3639, 276, 1627, 559, 18, 1289, 2932, 1626, 19, 950, 8863, 3639, 276, 1627, 559, 18, 4025, 12, 20, 1769, 3639, 368, 22254, 12116, 2836, 16778, 261, 438, 10120, 1338, 309, 618, 353, 2167, 19, 950, 3639, 276, 1627, 2802, 18, 1289, 2932, 6762, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 13050, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 14910, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 9384, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 6630, 87, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 19749, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 928, 297, 5432, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 21945, 8863, 3639, 309, 261, 25592, 18, 588, 1114, 559, 1435, 480, 446, 597, 12116, 18, 588, 1114, 559, 7675, 14963, 2932, 1626, 19, 950, 7923, 597, 12116, 18, 588, 21014, 2802, 1435, 480, 446, 13, 288, 276, 1627, 2802, 18, 542, 1528, 12, 25592, 18, 588, 21014, 2802, 10663, 289, 469, 288, 276, 1627, 2802, 18, 4025, 12, 20, 1769, 289, 3639, 368, 22254, 12116, 7047, 2652, 16778, 3639, 276, 1627, 11490, 18, 1289, 2932, 3495, 8863, 3639, 276, 1627, 11490, 18, 1289, 2932, 17115, 8863, 3639, 276, 1627, 11490, 18, 4025, 12, 20, 1769, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 6490, 7432, 1435, 565, 288, 3639, 368, 22254, 12116, 618, 16778, 3639, 276, 1627, 559, 18, 1289, 2932, 1528, 8863, 3639, 276, 1627, 559, 18, 1289, 2932, 1854, 8863, 3639, 276, 1627, 559, 18, 1289, 2932, 1626, 19, 950, 8863, 3639, 276, 1627, 559, 18, 4025, 12, 20, 1769, 3639, 368, 22254, 12116, 2836, 16778, 261, 438, 10120, 1338, 309, 618, 353, 2167, 19, 950, 3639, 276, 1627, 2802, 18, 1289, 2932, 6762, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 13050, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 14910, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 9384, 8863, 3639, 276, 1627, 2802, 18, 1289, 2932, 6630, 87, 8863, 3639, 276, 1627, 2802, 18, 2 ]
StringBuffer command = new StringBuffer ();
public void testPragmaParseGood () { StringBuffer command = new StringBuffer (); String file[] = new String[3]; file[0] = "-d"; file[1] = ((String)System.getProperty ("testdir")).concat ("/src/generated"); file[2] = ((String)System.getProperty ("testdir")).concat ("/idl/Pragma.idl"); assertTrue ("Compiled Pragma.idl", org.jacorb.idl.parser.compile (file)); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/17877dae7ff4a48b31b7dabb549f3c58c5e17a42/PragmaTest.java/clean/test/regression/src/org/jacorb/test/idl/PragmaTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 2050, 9454, 3201, 18195, 1832, 282, 288, 6647, 514, 585, 8526, 273, 394, 514, 63, 23, 15533, 1377, 585, 63, 20, 65, 273, 3701, 72, 14432, 1377, 585, 63, 21, 65, 273, 14015, 780, 13, 3163, 18, 588, 1396, 7566, 3813, 1214, 7923, 2934, 16426, 7566, 19, 4816, 19, 11168, 8863, 1377, 585, 63, 22, 65, 273, 14015, 780, 13, 3163, 18, 588, 1396, 7566, 3813, 1214, 7923, 2934, 16426, 7566, 19, 350, 80, 19, 2050, 9454, 18, 350, 80, 8863, 1377, 1815, 5510, 7566, 20733, 2301, 9454, 18, 350, 80, 3113, 2358, 18, 31390, 16640, 18, 350, 80, 18, 4288, 18, 11100, 261, 768, 10019, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 2050, 9454, 3201, 18195, 1832, 282, 288, 6647, 514, 585, 8526, 273, 394, 514, 63, 23, 15533, 1377, 585, 63, 20, 65, 273, 3701, 72, 14432, 1377, 585, 63, 21, 65, 273, 14015, 780, 13, 3163, 18, 588, 1396, 7566, 3813, 1214, 7923, 2934, 16426, 7566, 19, 4816, 19, 11168, 8863, 1377, 585, 63, 22, 65, 273, 14015, 780, 13, 3163, 18, 588, 1396, 7566, 3813, 1214, 7923, 2934, 16426, 7566, 19, 350, 80, 19, 2050, 9454, 18, 350, 80, 8863, 1377, 1815, 5510, 7566, 20733, 2301, 9454, 18, 350, 80, 3113, 2358, 18, 31390, 16640, 18, 350, 80, 18, 4288, 18, 11100, 261, 768, 10019, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100 ]
return MailArchiveService.channelReference(siteId, SiteService.MAIN_CONTAINER);
return m.channelReference(siteId, SiteService.MAIN_CONTAINER);
protected String mailArchiveChannelReference(String siteId) { MailArchiveService m = (MailArchiveService) (org.sakaiproject.mailarchive.cover.MailArchiveService) ComponentManager.get("org.sakaiproject.mailarchive.cover.MailArchiveService"); if (m != null) { return MailArchiveService.channelReference(siteId, SiteService.MAIN_CONTAINER); } else { return ""; } }
52180 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52180/65b6e58f54ec2f4e00d7362f6e977ae7606a439b/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 4791, 7465, 2909, 2404, 12, 780, 17749, 13, 202, 95, 202, 202, 6759, 7465, 1179, 312, 273, 261, 6759, 7465, 1179, 13, 261, 3341, 18, 87, 581, 69, 625, 28290, 18, 4408, 10686, 18, 3165, 18, 6759, 7465, 1179, 13, 5435, 1318, 18, 588, 2932, 3341, 18, 87, 581, 69, 625, 28290, 18, 4408, 10686, 18, 3165, 18, 6759, 7465, 1179, 8863, 9506, 202, 430, 261, 81, 480, 446, 13, 202, 202, 95, 1082, 202, 2463, 11542, 7465, 1179, 18, 4327, 2404, 12, 4256, 548, 16, 9063, 1179, 18, 19803, 67, 21395, 1769, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 2463, 1408, 31, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 4791, 7465, 2909, 2404, 12, 780, 17749, 13, 202, 95, 202, 202, 6759, 7465, 1179, 312, 273, 261, 6759, 7465, 1179, 13, 261, 3341, 18, 87, 581, 69, 625, 28290, 18, 4408, 10686, 18, 3165, 18, 6759, 7465, 1179, 13, 5435, 1318, 18, 588, 2932, 3341, 18, 87, 581, 69, 625, 28290, 18, 4408, 10686, 18, 3165, 18, 6759, 7465, 1179, 8863, 9506, 202, 430, 261, 81, 480, 446, 13, 202, 202, 95, 1082, 202, 2463, 11542, 7465, 1179, 18, 4327, 2404, 12, 4256, 548, 16, 9063, 1179, 18, 19803, 67, 21395, 1769, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 2463, 1408, 31, 202, 202, 97, 202, 97, 2, -100, -100, -100 ]
public static IOption setOption(IConfiguration config, ITool tool, IOption option, String[] value) {
public static IOption setOption(IConfiguration config, IHoldsOptions holder, IOption option, boolean value) {
public static IOption setOption(IConfiguration config, ITool tool, IOption option, String[] value) { IOption retOpt; try { retOpt = config.setOption(tool, option, value); notifyListeners(config, option); } catch (BuildException e) { return null; } return retOpt; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0119b876950a205bdddabaad5e05a45b2a4dc387/ManagedBuildManager.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1665, 375, 14211, 12, 45, 1750, 642, 16, 467, 6364, 5226, 16, 1665, 375, 1456, 16, 514, 8526, 460, 13, 288, 202, 202, 45, 1895, 325, 6179, 31, 202, 202, 698, 288, 1082, 202, 1349, 6179, 273, 642, 18, 542, 1895,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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 1665, 375, 14211, 12, 45, 1750, 642, 16, 467, 6364, 5226, 16, 1665, 375, 1456, 16, 514, 8526, 460, 13, 288, 202, 202, 45, 1895, 325, 6179, 31, 202, 202, 698, 288, 1082, 202, 1349, 6179, 273, 642, 18, 542, 1895, 12, 6738, 16, 1456, 16, 460, 1769, 1082, 202, 12336, 5583, 12, 1425, 16, 1456, 1769, 25083, 202, 97, 1044, 261, 3116, 503, 425, 13, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 202, 2463, 325, 6179, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ Composite container = new Composite( parent, SWT.NONE ); GridLayout gridLayout = new GridLayout( ); gridLayout.marginWidth = 20; gridLayout.marginTop = 15; container.setLayout( gridLayout );
{ Composite container = new Composite( parent, SWT.NONE ); GridLayout gridLayout = new GridLayout( ); gridLayout.marginWidth = 20; gridLayout.marginTop = 15; container.setLayout( gridLayout );
protected Control createCustomArea( Composite parent ) { Composite container = new Composite( parent, SWT.NONE ); GridLayout gridLayout = new GridLayout( ); gridLayout.marginWidth = 20; gridLayout.marginTop = 15; container.setLayout( gridLayout ); Button chkbox = new Button( container, SWT.CHECK ); chkbox.setText( REMEMBER_DECISION ); chkbox.addSelectionListener( new SelectionListener( ) { public void widgetSelected( SelectionEvent e ) { saveDecision = !saveDecision; } public void widgetDefaultSelected( SelectionEvent e ) { saveDecision = false; } } ); return super.createCustomArea( parent ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c7ff27323be7f22a6b56c5b5d61ff17ed3e4f30a/ExportToLibraryAction.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/ExportToLibraryAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9944, 202, 1117, 8888, 752, 3802, 5484, 12, 14728, 982, 262, 25083, 202, 95, 6862, 1082, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 6862, 6862, 202, 55, 8588, 18, 9826, 11272, 6862, 1082, 202, 6313, 3744, 3068, 3744, 273, 394, 7145, 3744, 12, 11272, 6862, 1082, 202, 5222, 3744, 18, 10107, 2384, 273, 4200, 31, 6862, 1082, 202, 5222, 3744, 18, 10107, 3401, 273, 4711, 31, 6862, 1082, 202, 3782, 18, 542, 3744, 12, 3068, 3744, 11272, 6862, 1082, 202, 3616, 15000, 2147, 273, 394, 12569, 12, 1478, 16, 348, 8588, 18, 10687, 11272, 6862, 1082, 202, 27038, 2147, 18, 542, 1528, 12, 2438, 19630, 67, 1639, 26913, 11272, 6862, 1082, 202, 27038, 2147, 18, 1289, 6233, 2223, 12, 394, 12977, 2223, 12, 262, 288, 6862, 9506, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 6862, 9506, 202, 95, 6862, 6862, 202, 5688, 15861, 273, 401, 5688, 15861, 31, 6862, 9506, 202, 97, 6862, 9506, 202, 482, 918, 3604, 1868, 7416, 12, 6862, 25083, 202, 6233, 1133, 425, 262, 6862, 9506, 202, 95, 6862, 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 981, 30, 9944, 202, 1117, 8888, 752, 3802, 5484, 12, 14728, 982, 262, 25083, 202, 95, 6862, 1082, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 6862, 6862, 202, 55, 8588, 18, 9826, 11272, 6862, 1082, 202, 6313, 3744, 3068, 3744, 273, 394, 7145, 3744, 12, 11272, 6862, 1082, 202, 5222, 3744, 18, 10107, 2384, 273, 4200, 31, 6862, 1082, 202, 5222, 3744, 18, 10107, 3401, 273, 4711, 31, 6862, 1082, 202, 3782, 18, 542, 3744, 12, 3068, 3744, 11272, 6862, 1082, 202, 3616, 15000, 2147, 273, 394, 12569, 12, 1478, 16, 348, 8588, 18, 10687, 11272, 6862, 1082, 202, 27038, 2147, 18, 542, 1528, 12, 2438, 19630, 67, 1639, 26913, 11272, 6862, 1082, 202, 27038, 2147, 18, 1289, 6233, 2 ]
switch (venteEnCours.isSuperviseur(sender) ? 1 : 0) { case 0: if (venteEnCours.getMode() == Mode.Automatique) { if (Serveur.usermanager.isModo(sender)) { venteEnCours.setSuperviseur(sender); Serveur.broadcaster.superviseur(sender); venteEnCours.setMode(Mode.Manuel);
if (venteEnCours != null) { switch (venteEnCours.isSuperviseur(sender) ? 1 : 0) { case 0: if (venteEnCours.getMode() == Mode.Automatique) { if (Serveur.usermanager.isModo(sender)) { venteEnCours.setSuperviseur(sender); Serveur.broadcaster.superviseur(sender); venteEnCours.setMode(Mode.Manuel); } } else { break;
void envoyerCoupdeMASSE(String sender) { VenteServeur venteEnCours = Serveur.ventemanager.getVenteEnCours(); switch (venteEnCours.isSuperviseur(sender) ? 1 : 0) { case 0: if (venteEnCours.getMode() == Mode.Automatique) { if (Serveur.usermanager.isModo(sender)) { // promotion du modérateur en superviseur venteEnCours.setSuperviseur(sender); Serveur.broadcaster.superviseur(sender); venteEnCours.setMode(Mode.Manuel); // continue avec le cas où sender == superviseur } } else { // mode Manuel => un superviseur existe déjà => rien break; // (sort du switch) } case 1: // sender est un superviseur ou null (mode automatique) // NB: les questions de superviseur/enchérisseur devraient avoir // été gérées par encherir(prix, user). switch (this.marteau) { // nombre de coups de marteau case 0 : this.marteau = 1; Serveur.broadcaster.evenement(Evenement.CoupDeMassePAF1); break; case 1 : this.marteau = 2; Serveur.broadcaster.evenement(Evenement.CoupDeMassePAF2); break; case 2 : this.marteau = 0; Serveur.broadcaster.evenement(Evenement.Adjuge); venteEnCours.sellObject(dernier_encherisseur, prix_courant); this.dernier_encherisseur = null; // actualiser vue client //Serveur.broadcaster.detailsVente(venteEnCours, venteEnCours.getObjets()); if (venteEnCours.getOIds().size() == 0) { // c'est le dernier objet qu'on a adjugé Serveur.broadcaster.notification(Notification.FinVente); Serveur.ventemanager.terminateVenteEnCours(); VenteServeur nv = Serveur.ventemanager.getStarting(); if (nv != null) { Serveur.broadcaster.detailsVente(nv, nv.getObjets()); } } break; default : Logger.log("Serveur", 1, LogType.WRN, "wtf?? On est pas près de la finir cette vente!! marteau == " + marteau); } default: break; } }
57791 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57791/3b596954eedb27b51d3644961c0aa3ebf587ab81/Serveur.java/buggy/src/serveur/trollhammer/Serveur.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1550, 13372, 264, 4249, 416, 323, 49, 3033, 1090, 12, 780, 5793, 13, 288, 202, 202, 58, 319, 73, 14350, 295, 331, 319, 73, 664, 39, 4390, 273, 11115, 295, 18, 616, 351, 1063, 18, 588, 58, 319, 73, 664, 39, 4390, 5621, 9506, 202, 9610, 261, 616, 73, 664, 39, 4390, 18, 291, 8051, 90, 784, 295, 12, 15330, 13, 692, 404, 294, 374, 13, 288, 1082, 202, 3593, 374, 30, 9506, 202, 430, 261, 616, 73, 664, 39, 4390, 18, 588, 2309, 1435, 422, 8126, 18, 22932, 270, 2161, 13, 288, 6862, 202, 430, 261, 14350, 295, 18, 407, 1035, 1063, 18, 291, 1739, 83, 12, 15330, 3719, 288, 25083, 202, 759, 23024, 9978, 681, 132, 107, 5141, 295, 570, 2240, 90, 784, 295, 25083, 202, 616, 73, 664, 39, 4390, 18, 542, 8051, 90, 784, 295, 12, 15330, 1769, 25083, 202, 14350, 295, 18, 15521, 23748, 18, 9565, 90, 784, 295, 12, 15330, 1769, 25083, 202, 616, 73, 664, 39, 4390, 18, 542, 2309, 12, 2309, 18, 5669, 20317, 1769, 25083, 202, 759, 1324, 279, 8799, 884, 8697, 320, 132, 122, 5793, 422, 2240, 90, 784, 295, 6862, 202, 97, 9506, 202, 97, 469, 288, 6862, 202, 759, 1965, 8660, 20317, 516, 640, 2240, 90, 784, 295, 1005, 73, 302, 132, 107, 78, 132, 259, 516, 12347, 275, 6862, 202, 8820, 31, 368, 261, 3804, 9978, 1620, 13, 9506, 202, 97, 1082, 202, 3593, 404, 30, 9506, 202, 759, 5793, 4387, 640, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1550, 13372, 264, 4249, 416, 323, 49, 3033, 1090, 12, 780, 5793, 13, 288, 202, 202, 58, 319, 73, 14350, 295, 331, 319, 73, 664, 39, 4390, 273, 11115, 295, 18, 616, 351, 1063, 18, 588, 58, 319, 73, 664, 39, 4390, 5621, 9506, 202, 9610, 261, 616, 73, 664, 39, 4390, 18, 291, 8051, 90, 784, 295, 12, 15330, 13, 692, 404, 294, 374, 13, 288, 1082, 202, 3593, 374, 30, 9506, 202, 430, 261, 616, 73, 664, 39, 4390, 18, 588, 2309, 1435, 422, 8126, 18, 22932, 270, 2161, 13, 288, 6862, 202, 430, 261, 14350, 295, 18, 407, 1035, 1063, 18, 291, 1739, 83, 12, 15330, 3719, 288, 25083, 202, 759, 23024, 9978, 681, 2 ]
ThreadContextMigratorUtil.performMigrationToThread(Constants.THREAD_CONTEXT_MIGRATOR_LIST_ID, axisMsgCtx);
try { ThreadContextMigratorUtil.performMigrationToThread(Constants.THREAD_CONTEXT_MIGRATOR_LIST_ID, axisMsgCtx); } catch (Throwable t) { System.out.println("JAX-WS AxisCallback caught throwable from ThreadContextMigratorUtil " + t); System.out.println("...caused by " + t.getCause()); t.printStackTrace(); }
public void onComplete(AsyncResult result) { org.apache.axis2.context.MessageContext axisMsgCtx = result.getResponseMessageContext(); responseMsgCtx = new MessageContext(axisMsgCtx); try { //REVIEW: Are we on the final thread of execution here or does this get handed off to the executor? ThreadContextMigratorUtil.performMigrationToThread(Constants.THREAD_CONTEXT_MIGRATOR_LIST_ID, axisMsgCtx); OMElement responseEnv = result.getResponseEnvelope(); MessageFactory mf = (MessageFactory) FactoryRegistry.getFactory(MessageFactory.class); Message msg = mf.createFrom(responseEnv); responseMsgCtx.setMessage(msg); } catch (Exception e) { e.printStackTrace(); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/69db0075a1dc438bdc2be25437082ae71c748ee7/AxisCallback.java/buggy/modules/jaxws/src/org/apache/axis2/jaxws/AxisCallback.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25050, 12, 2771, 1253, 563, 13, 288, 3639, 2358, 18, 19211, 18, 4890, 22, 18, 2472, 18, 1079, 1042, 2654, 3332, 6442, 273, 2398, 563, 18, 588, 1064, 1079, 1042, 5621, 3639, 766, 3332, 6442, 273, 394, 2350, 1042, 12, 4890, 3332, 6442, 1769, 7734, 775, 288, 5411, 368, 862, 12145, 30, 12520, 732, 603, 326, 727, 2650, 434, 4588, 2674, 578, 1552, 333, 336, 27309, 3397, 358, 326, 6601, 35, 2398, 775, 288, 4884, 1042, 25483, 639, 1304, 18, 16092, 10224, 774, 3830, 12, 2918, 18, 21730, 67, 13181, 67, 49, 3047, 54, 3575, 67, 7085, 67, 734, 16, 2654, 3332, 6442, 1769, 289, 1044, 261, 15155, 268, 13, 288, 225, 2332, 18, 659, 18, 8222, 2932, 17368, 17, 2651, 15509, 2428, 13537, 10132, 628, 4884, 1042, 25483, 639, 1304, 315, 397, 268, 1769, 2332, 18, 659, 18, 8222, 2932, 2777, 5353, 3668, 635, 315, 397, 268, 18, 588, 10683, 10663, 268, 18, 1188, 6332, 5621, 289, 8227, 531, 12310, 766, 3491, 273, 563, 18, 588, 1064, 10862, 5621, 13491, 2350, 1733, 14749, 273, 261, 1079, 1733, 13, 7822, 4243, 18, 588, 1733, 12, 1079, 1733, 18, 1106, 1769, 5411, 2350, 1234, 273, 14749, 18, 2640, 1265, 12, 2740, 3491, 1769, 13491, 766, 3332, 6442, 18, 542, 1079, 12, 3576, 1769, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 425, 18,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 12, 4890, 3332, 6442, 1769, 7734, 775, 288, 5411, 368, 862, 12145, 30, 12520, 732, 603, 326, 727, 2650, 434, 4588, 2674, 578, 1552, 333, 336, 27309, 3397, 358, 326, 6601, 35, 2398, 775, 288, 4884, 1042, 25483, 639, 1304, 18, 16092, 10224, 774, 3830, 12, 2918, 18, 21730, 67, 13181, 67, 49, 3047, 54, 3575, 67, 7085, 67, 734, 16, 2654, 3332, 6442, 1769, 289, 1044, 261, 15155, 268, 13, 288, 225, 2332, 18, 659, 18, 2 ]
if (getRuntime().getLoadService().autoload(name) != null) {
if (getRuntime().getLoadService().autoload(p.getName() + "::" + name) != null) {
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name); if (constant == null) { if (getRuntime().getLoadService().autoload(name) != null) { continue; } } if (constant != null) { if (exclude && p == objectClass && this != objectClass) { getRuntime().getWarnings().warn("toplevel constant " + name + " referenced by " + getName() + "::" + name); } return constant; } p = p.getSuperClass(); } if (!exclude && !retryForModule && getClass().equals(RubyModule.class)) { retryForModule = true; p = getRuntime().getObject(); continue retry; } break; } return callMethod(getRuntime().getCurrentContext(), "const_missing", RubySymbol.newSymbol(getRuntime(), name)); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/3cd87a03d9ff599871bd14f49c218d1045bca20b/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 24337, 2857, 12, 780, 508, 16, 1250, 4433, 13, 288, 3639, 15908, 10340, 921, 23992, 273, 18814, 7675, 588, 921, 5621, 3639, 1250, 3300, 1290, 3120, 273, 629, 31, 3639, 19817, 3120, 293, 273, 333, 31, 3639, 3300, 30, 1323, 261, 3767, 13, 288, 5411, 1323, 261, 84, 480, 446, 13, 288, 7734, 15908, 10340, 921, 5381, 273, 293, 18, 588, 6902, 861, 12, 529, 1769, 7734, 309, 261, 14384, 422, 446, 13, 288, 10792, 309, 261, 588, 5576, 7675, 588, 2563, 1179, 7675, 19832, 12, 84, 18, 17994, 1435, 397, 31120, 397, 508, 13, 480, 446, 13, 288, 13491, 1324, 31, 10792, 289, 7734, 289, 7734, 309, 261, 14384, 480, 446, 13, 288, 10792, 309, 261, 10157, 597, 293, 422, 23992, 597, 333, 480, 23992, 13, 288, 13491, 18814, 7675, 588, 4312, 7675, 8935, 2932, 3669, 2815, 5381, 315, 397, 508, 397, 27573, 315, 8042, 635, 315, 397, 1723, 1435, 397, 31120, 397, 508, 1769, 10792, 289, 10792, 327, 5381, 31, 7734, 289, 7734, 293, 273, 293, 18, 588, 8051, 797, 5621, 5411, 289, 5411, 309, 16051, 10157, 597, 401, 9620, 1290, 3120, 597, 2900, 7675, 14963, 12, 54, 10340, 3120, 18, 1106, 3719, 288, 7734, 3300, 1290, 3120, 273, 638, 31, 7734, 293, 273, 18814, 7675, 588, 921, 5621, 7734, 1324, 3300, 31, 5411, 289, 5411, 898, 31, 3639, 289, 3639, 327, 745, 1305, 12, 588, 5576, 7675, 588, 3935, 1042, 9334, 315, 10248, 67, 7337, 3113, 19817, 5335, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 24337, 2857, 12, 780, 508, 16, 1250, 4433, 13, 288, 3639, 15908, 10340, 921, 23992, 273, 18814, 7675, 588, 921, 5621, 3639, 1250, 3300, 1290, 3120, 273, 629, 31, 3639, 19817, 3120, 293, 273, 333, 31, 3639, 3300, 30, 1323, 261, 3767, 13, 288, 5411, 1323, 261, 84, 480, 446, 13, 288, 7734, 15908, 10340, 921, 5381, 273, 293, 18, 588, 6902, 861, 12, 529, 1769, 7734, 309, 261, 14384, 422, 446, 13, 288, 10792, 309, 261, 588, 5576, 7675, 588, 2563, 1179, 7675, 19832, 12, 84, 18, 17994, 1435, 397, 31120, 397, 508, 13, 480, 446, 13, 288, 13491, 1324, 31, 10792, 289, 7734, 289, 7734, 309, 261, 14384, 480, 446, 13, 288, 2 ]
synchronized(lock) { return (buf.toString()); }
return buffer.toString();
public String toString() { synchronized(lock) { return (buf.toString()); } }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/af503bb72418d994f4439910bc3989d556fcdbd5/StringWriter.java/buggy/libraries/javalib/java/io/StringWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 225, 288, 565, 3852, 12, 739, 13, 288, 1377, 327, 261, 4385, 18, 10492, 10663, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void readChoices (XMLElement element, ArrayList result)
private void readChoices(XMLElement element, ArrayList result)
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/buggy/src/lib/com/izforge/izpack/installer/CompileWorker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 855, 17442, 12, 15223, 930, 16, 2407, 563, 13, 225, 288, 565, 5589, 7246, 273, 930, 18, 588, 4212, 7604, 7566, 11569, 8863, 565, 309, 261, 11937, 422, 446, 13, 1377, 327, 31, 565, 563, 18, 8507, 261, 1769, 3639, 4498, 6023, 67, 305, 273, 7246, 18, 9838, 5621, 565, 1323, 261, 11569, 67, 305, 18, 5332, 2134, 1832, 13, 565, 288, 1377, 1139, 11155, 6023, 273, 261, 15223, 13, 11569, 67, 305, 18, 4285, 5621, 1377, 514, 460, 273, 6023, 18, 588, 1499, 7566, 1132, 8863, 1377, 309, 261, 1132, 480, 446, 13, 1377, 288, 3639, 987, 1140, 11967, 273, 31799, 5806, 18, 588, 15112, 682, 12, 11569, 1769, 2868, 309, 261, 15112, 5806, 18, 476, 6869, 3935, 3163, 12, 538, 11967, 3719, 3639, 288, 1850, 563, 18, 1289, 261, 2211, 18, 6904, 18, 1717, 17207, 261, 1132, 16, 315, 7446, 7923, 1769, 3639, 289, 1377, 289, 1850, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 7246, 18, 9838, 5621, 565, 1323, 261, 11569, 67, 305, 18, 5332, 2134, 1832, 13, 565, 288, 1377, 1139, 11155, 6023, 273, 261, 15223, 13, 11569, 67, 305, 18, 4285, 5621, 1377, 514, 460, 273, 6023, 18, 588, 1499, 7566, 1132, 8863, 1377, 309, 261, 1132, 480, 446, 13, 1377, 288, 3639, 987, 1140, 11967, 273, 31799, 5806, 18, 588, 15112, 682, 12, 11569, 1769, 2868, 309, 261, 15112, 5806, 18, 2 ]
Document doc = LDMLUtilities.parse(sourceDir + locale + ".xml", false);
Document doc; if (options[FULLY_RESOLVED].doesOccur) { doc = LDMLUtilities.getFullyResolvedLDML(sourceDir, locale, false, false, false); } else { doc = LDMLUtilities.parse(sourceDir + locale + ".xml", false); }
void getInfo(String locale) { //System.out.println(locale); locales.add(new ULocale(locale)); // Document doc = LDMLUtilities.getFullyResolvedLDML(sourceDir, locale, false, false, false); Document doc = LDMLUtilities.parse(sourceDir + locale + ".xml", false); Node node = LDMLUtilities.getNode(doc, "//ldml/characters/exemplarCharacters"); if (node == null) return; if (isDraft(node)) System.out.println("Skipping draft: " + locale + ", " + getXPath(node)); String exemplars = LDMLUtilities.getNodeValue(node); UnicodeSet exemplarSet = new UnicodeSet(exemplars); UnicodeSet fixed = (UnicodeSet) uniqueExemplars.get(exemplarSet); if (fixed == null) { uniqueExemplars.put(exemplarSet, exemplarSet); fixed = exemplarSet; } ulocale_exemplars.put(new ULocale(locale), fixed); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/95c8013cdcdaa2b58a6af17d3f7b4ebfd9af6525/GenerateCldrTests.java/clean/icu4j/src/com/ibm/icu/dev/tool/cldr/GenerateCldrTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 918, 17142, 12, 780, 2573, 13, 288, 5411, 368, 3163, 18, 659, 18, 8222, 12, 6339, 1769, 1171, 6922, 18, 1289, 12, 2704, 29145, 12, 6339, 10019, 5411, 368, 4319, 997, 273, 28083, 1495, 11864, 18, 588, 16999, 12793, 12069, 1495, 12, 3168, 1621, 16, 2573, 16, 629, 16, 629, 16, 629, 1769, 6647, 4319, 997, 31, 309, 261, 2116, 63, 18111, 61, 67, 17978, 12135, 8009, 20657, 12397, 13, 288, 997, 273, 28083, 1495, 11864, 18, 588, 16999, 12793, 12069, 1495, 12, 3168, 1621, 16, 2573, 16, 629, 16, 629, 16, 629, 1769, 289, 469, 288, 997, 273, 28083, 1495, 11864, 18, 2670, 12, 3168, 1621, 397, 2573, 397, 3552, 2902, 3113, 629, 1769, 289, 5411, 2029, 756, 273, 28083, 1495, 11864, 18, 588, 907, 12, 2434, 16, 16177, 1236, 781, 19, 20558, 19, 338, 351, 412, 297, 11600, 8863, 5411, 309, 261, 2159, 422, 446, 13, 327, 31, 5411, 309, 261, 291, 12714, 12, 2159, 3719, 2332, 18, 659, 18, 8222, 2932, 16877, 12246, 30, 315, 397, 2573, 397, 3104, 315, 397, 6538, 743, 12, 2159, 10019, 540, 202, 780, 431, 351, 412, 5913, 273, 28083, 1495, 11864, 18, 588, 907, 620, 12, 2159, 1769, 5411, 9633, 694, 431, 351, 412, 297, 694, 273, 394, 9633, 694, 12, 338, 351, 412, 5913, 1769, 5411, 9633, 694, 5499, 273, 261, 16532, 694, 13, 3089, 424, 351, 412, 5913, 18, 588, 12, 338, 351, 412, 297, 694, 1769, 5411, 309, 261, 12429, 422, 446, 13, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 918, 17142, 12, 780, 2573, 13, 288, 5411, 368, 3163, 18, 659, 18, 8222, 12, 6339, 1769, 1171, 6922, 18, 1289, 12, 2704, 29145, 12, 6339, 10019, 5411, 368, 4319, 997, 273, 28083, 1495, 11864, 18, 588, 16999, 12793, 12069, 1495, 12, 3168, 1621, 16, 2573, 16, 629, 16, 629, 16, 629, 1769, 6647, 4319, 997, 31, 309, 261, 2116, 63, 18111, 61, 67, 17978, 12135, 8009, 20657, 12397, 13, 288, 997, 273, 28083, 1495, 11864, 18, 588, 16999, 12793, 12069, 1495, 12, 3168, 1621, 16, 2573, 16, 629, 16, 629, 16, 629, 1769, 289, 469, 288, 997, 273, 28083, 1495, 11864, 18, 2670, 12, 3168, 1621, 397, 2573, 397, 3552, 2902, 3113, 629, 1769, 289, 5411, 2029, 2 ]
profile.deleteQuery(mqf.getSelectedQueries()[i]);
if ("history".equals(type)) { profile.deleteHistory(mqf.getSelectedQueries()[i]); } else { profile.deleteQuery(mqf.getSelectedQueries()[i]); }
public ActionForward delete(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); Profile profile = (Profile) session.getAttribute(Constants.PROFILE); ModifyQueryForm mqf = (ModifyQueryForm) form; for (int i = 0; i < mqf.getSelectedQueries().length; i++) { profile.deleteQuery(mqf.getSelectedQueries()[i]); } return mapping.findForward("history"); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/06360980f313afe3fcabb7fb1b1e90b8be1584ab/ModifyQueryAction.java/buggy/intermine/web/main/src/org/intermine/web/history/ModifyQueryAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1430, 12, 1803, 3233, 2874, 16, 27573, 4382, 1204, 646, 16, 27573, 9984, 590, 16, 27573, 12446, 766, 13, 3639, 1216, 1185, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 11357, 3042, 273, 261, 4029, 13, 1339, 18, 588, 1499, 12, 2918, 18, 22462, 1769, 3639, 9518, 1138, 1204, 18327, 74, 273, 261, 11047, 1138, 1204, 13, 646, 31, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 18327, 74, 18, 588, 7416, 9592, 7675, 2469, 31, 277, 27245, 288, 5411, 309, 7566, 8189, 9654, 14963, 12, 723, 3719, 288, 3042, 18, 3733, 5623, 12, 11636, 74, 18, 588, 7416, 9592, 1435, 63, 77, 19226, 289, 469, 288, 3042, 18, 3733, 1138, 12, 11636, 74, 18, 588, 7416, 9592, 1435, 63, 77, 19226, 289, 3639, 289, 3639, 327, 2874, 18, 4720, 8514, 2932, 8189, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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766, 13, 3639, 1216, 1185, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 11357, 3042, 273, 261, 4029, 13, 1339, 18, 588, 1499, 12, 2918, 18, 22462, 1769, 3639, 9518, 1138, 1204, 18327, 74, 273, 261, 11047, 1138, 1204, 13, 646, 31, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 18327, 74, 18, 588, 7416, 9592, 7675, 2469, 31, 277, 27245, 288, 5411, 309, 7566, 8189, 9654, 14963, 12, 723, 3719, 288, 3042, 18, 3733, 5623, 12, 11636, 74, 18, 588, 7416, 9592, 1435, 63, 77, 19226, 289, 469, 288, 3042, 18, 3733, 2 ]
return new RubyFixnum(getRuby(), pos);
return RubyFixnum.newFixnum(getRuby(), pos);
public RubyInteger tell() { return new RubyFixnum(getRuby(), pos); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyDir.java/clean/org/jruby/RubyDir.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 9276, 1435, 288, 3639, 327, 19817, 8585, 2107, 18, 2704, 8585, 2107, 12, 588, 54, 10340, 9334, 949, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 4522, 9276, 1435, 288, 3639, 327, 19817, 8585, 2107, 18, 2704, 8585, 2107, 12, 588, 54, 10340, 9334, 949, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
UserPropertyDefn p = (UserPropertyDefn) properties.get( i );
UserPropertyDefn p = ( UserPropertyDefn ) properties.get( i );
public void visitScalarParameter( ScalarParameterHandle handle ) { assert ( handle.getName( ) != null ); // Create Parameter ScalarParameterDefn scalarParameter = new ScalarParameterDefn( ); scalarParameter.setHandle( handle ); scalarParameter.setParameterType( IParameterDefnBase.SCALAR_PARAMETER ); scalarParameter.setName( handle.getName( ) ); // set custom properties List properties = handle.getUserProperties( ); for ( int i = 0; i < properties.size( ); i++ ) { UserPropertyDefn p = (UserPropertyDefn) properties.get( i ); scalarParameter.addUserProperty( p.getName( ), handle .getProperty( p.getName( ) ) ); } String align = handle.getAlignment( ); if ( DesignChoiceConstants.SCALAR_PARAM_ALIGN_CENTER.equals( align ) ) scalarParameter.setAlignment( IScalarParameterDefn.CENTER ); else if ( DesignChoiceConstants.SCALAR_PARAM_ALIGN_LEFT.equals( align ) ) scalarParameter.setAlignment( IScalarParameterDefn.LEFT ); else if ( DesignChoiceConstants.SCALAR_PARAM_ALIGN_RIGHT.equals( align ) ) scalarParameter.setAlignment( IScalarParameterDefn.RIGHT ); else scalarParameter.setAlignment( IScalarParameterDefn.AUTO ); scalarParameter.setAllowBlank( handle.allowBlank( ) ); scalarParameter.setAllowNull( handle.allowNull( ) ); String controlType = handle.getControlType( ); if ( DesignChoiceConstants.PARAM_CONTROL_CHECK_BOX.equals( controlType ) ) scalarParameter.setControlType( IScalarParameterDefn.CHECK_BOX ); else if ( DesignChoiceConstants.PARAM_CONTROL_LIST_BOX .equals( controlType ) ) scalarParameter.setControlType( IScalarParameterDefn.LIST_BOX ); else if ( DesignChoiceConstants.PARAM_CONTROL_RADIO_BUTTON .equals( controlType ) ) scalarParameter.setControlType( IScalarParameterDefn.RADIO_BUTTON ); else scalarParameter.setControlType( IScalarParameterDefn.TEXT_BOX ); scalarParameter.setDefaultValueExpr( handle.getDefaultValue( ) ); scalarParameter.setDisplayName( handle.getDisplayName( ) ); scalarParameter.setDisplayNameKey( handle.getDisplayNameKey( ) ); scalarParameter.setFormat( handle.getFormat( ) ); scalarParameter.setHelpText( handle.getHelpText( ) ); scalarParameter.setHelpTextKey( handle.getHelpTextKey( ) ); scalarParameter.setIsHidden( handle.isHidden( ) ); scalarParameter.setName( handle.getName( ) ); String valueType = handle.getDataType( ); if ( DesignChoiceConstants.PARAM_TYPE_BOOLEAN.equals( valueType ) ) scalarParameter.setDataType( IScalarParameterDefn.TYPE_BOOLEAN ); else if ( DesignChoiceConstants.PARAM_TYPE_DATETIME.equals( valueType ) ) scalarParameter.setDataType( IScalarParameterDefn.TYPE_DATE_TIME ); else if ( DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals( valueType ) ) scalarParameter.setDataType( IScalarParameterDefn.TYPE_DECIMAL ); else if ( DesignChoiceConstants.PARAM_TYPE_FLOAT.equals( valueType ) ) scalarParameter.setDataType( IScalarParameterDefn.TYPE_FLOAT ); else if ( DesignChoiceConstants.PARAM_TYPE_STRING.equals( valueType ) ) scalarParameter.setDataType( IScalarParameterDefn.TYPE_STRING ); else scalarParameter.setDataType( IScalarParameterDefn.TYPE_ANY ); ArrayList values = new ArrayList( ); Iterator selectionIter = handle.choiceIterator( ); while ( selectionIter.hasNext( ) ) { SelectionChoiceHandle selection = (SelectionChoiceHandle) selectionIter .next( ); ParameterSelectionChoice selectionChoice = new ParameterSelectionChoice( this.handle ); selectionChoice.setLabel( selection.getLabelKey( ), selection .getLabel( ) ); selectionChoice.setValue( selection.getValue( ), scalarParameter .getDataType( ) ); values.add( selectionChoice ); } scalarParameter.setSelectionList( values ); scalarParameter.setAllowNewValues( !handle.isMustMatch( ) ); scalarParameter.setFixedOrder( handle.isFixedOrder( ) ); if ( scalarParameter.getSelectionList( ) != null && scalarParameter.getSelectionList( ).size( ) > 0 ) scalarParameter .setSelectionListType( IScalarParameterDefn.SELECTION_LIST_STATIC ); else scalarParameter .setSelectionListType( IScalarParameterDefn.SELECTION_LIST_NONE ); scalarParameter.setValueConcealed( handle.isConcealValue( ) ); currentElement = scalarParameter; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/f00a46b07796c055e2a16e0f1243a9ebd4826670/EngineIRVisitor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 13639, 1662, 12, 15791, 1662, 3259, 1640, 262, 202, 95, 202, 202, 11231, 261, 1640, 18, 17994, 12, 262, 480, 446, 11272, 202, 202, 759, 1788, 5498, 202, 202, 13639, 1662, 3262, 82, 4981, 1662, 273, 394, 15791, 1662, 3262, 82, 12, 11272, 202, 202, 8748, 1662, 18, 542, 3259, 12, 1640, 11272, 202, 202, 8748, 1662, 18, 542, 28460, 12, 467, 1662, 3262, 82, 2171, 18, 2312, 1013, 985, 67, 9819, 11272, 202, 202, 8748, 1662, 18, 542, 461, 12, 1640, 18, 17994, 12, 262, 11272, 202, 202, 759, 444, 1679, 1790, 202, 202, 682, 1790, 273, 1640, 18, 588, 1299, 2297, 12, 11272, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1790, 18, 1467, 12, 11272, 277, 9904, 262, 202, 202, 95, 1082, 202, 1299, 1396, 3262, 82, 293, 273, 261, 1299, 1396, 3262, 82, 13, 1790, 18, 588, 12, 277, 11272, 1082, 202, 8748, 1662, 18, 1289, 1299, 1396, 12, 293, 18, 17994, 12, 262, 16, 1640, 6862, 202, 18, 588, 1396, 12, 293, 18, 17994, 12, 262, 262, 11272, 202, 202, 97, 202, 202, 780, 5689, 273, 1640, 18, 588, 11535, 12, 11272, 202, 202, 430, 261, 29703, 10538, 2918, 18, 2312, 1013, 985, 67, 8388, 67, 26439, 67, 19835, 18, 14963, 12, 5689, 262, 262, 1082, 202, 8748, 1662, 18, 542, 11535, 12, 4437, 3473, 1662, 3262, 82, 18, 19835, 11272, 202, 202, 12107, 309, 261, 29703, 10538, 2918, 18, 2312, 1013, 985, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 13639, 1662, 12, 15791, 1662, 3259, 1640, 262, 202, 95, 202, 202, 11231, 261, 1640, 18, 17994, 12, 262, 480, 446, 11272, 202, 202, 759, 1788, 5498, 202, 202, 13639, 1662, 3262, 82, 4981, 1662, 273, 394, 15791, 1662, 3262, 82, 12, 11272, 202, 202, 8748, 1662, 18, 542, 3259, 12, 1640, 11272, 202, 202, 8748, 1662, 18, 542, 28460, 12, 467, 1662, 3262, 82, 2171, 18, 2312, 1013, 985, 67, 9819, 11272, 202, 202, 8748, 1662, 18, 542, 461, 12, 1640, 18, 17994, 12, 262, 11272, 202, 202, 759, 444, 1679, 1790, 202, 202, 682, 1790, 273, 1640, 18, 588, 1299, 2297, 12, 11272, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 2 ]
AbstractVector v = checkVector(first); int start = Fixnum.getValue(second); int end = third != NIL ? Fixnum.getValue(third) : v.length(); if (start > end) { StringBuffer sb = new StringBuffer("start ("); sb.append(start); sb.append(") is greater than end ("); sb.append(end); sb.append(')'); signal(new TypeError(sb.toString())); } return v.subseq(start, end);
return new JavaObject(new Random());
public LispObject execute(LispObject first, LispObject second, LispObject third) throws ConditionThrowable { AbstractVector v = checkVector(first); int start = Fixnum.getValue(second); int end = third != NIL ? Fixnum.getValue(third) : v.length(); if (start > end) { StringBuffer sb = new StringBuffer("start ("); sb.append(start); sb.append(") is greater than end ("); sb.append(end); sb.append(')'); signal(new TypeError(sb.toString())); } return v.subseq(start, end); }
8279 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8279/1c5458ff27fae2a1bd243562beff3741c5d8ddeb/Primitives.java/clean/j/src/org/armedbear/lisp/Primitives.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 511, 23831, 921, 1836, 12, 48, 23831, 921, 1122, 16, 511, 23831, 921, 2205, 16, 21394, 511, 23831, 921, 12126, 13, 5411, 1216, 7949, 15155, 3639, 288, 5411, 4115, 5018, 331, 273, 866, 5018, 12, 3645, 1769, 5411, 509, 787, 273, 12139, 2107, 18, 24805, 12, 8538, 1769, 5411, 509, 679, 273, 12126, 480, 423, 2627, 692, 12139, 2107, 18, 24805, 12, 451, 6909, 13, 294, 331, 18, 2469, 5621, 5411, 309, 261, 1937, 405, 679, 13, 288, 7734, 6674, 2393, 273, 394, 6674, 2932, 1937, 7566, 1769, 7734, 2393, 18, 6923, 12, 1937, 1769, 7734, 2393, 18, 6923, 2932, 13, 353, 6802, 2353, 679, 7566, 1769, 7734, 2393, 18, 6923, 12, 409, 1769, 7734, 2393, 18, 6923, 2668, 2506, 1769, 7734, 4277, 12, 2704, 3580, 12, 18366, 18, 10492, 1435, 10019, 5411, 289, 5411, 327, 331, 18, 1717, 5436, 12, 1937, 16, 679, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 511, 23831, 921, 1836, 12, 48, 23831, 921, 1122, 16, 511, 23831, 921, 2205, 16, 21394, 511, 23831, 921, 12126, 13, 5411, 1216, 7949, 15155, 3639, 288, 5411, 4115, 5018, 331, 273, 866, 5018, 12, 3645, 1769, 5411, 509, 787, 273, 12139, 2107, 18, 24805, 12, 8538, 1769, 5411, 509, 679, 273, 12126, 480, 423, 2627, 692, 12139, 2107, 18, 24805, 12, 451, 6909, 13, 294, 331, 18, 2469, 5621, 5411, 309, 261, 1937, 405, 679, 13, 288, 7734, 6674, 2393, 273, 394, 6674, 2932, 1937, 7566, 1769, 7734, 2393, 18, 6923, 12, 1937, 1769, 7734, 2393, 18, 6923, 2932, 13, 353, 6802, 2353, 679, 7566, 1769, 7734, 2393, 18, 6923, 12, 409, 1769, 7734, 2393, 18, 2 ]
phaseReport.append( " Skids into " + target.getShortName() + " in hex " + nextPos.getBoardNum() + "... " ); ToHitData toHit = new ToHitData();
ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); ToHitData toHit = caa.toHit(game, true);
private void processMovement(Entity entity, MovePath md) { // check for fleeing if (md.contains(MovePath.STEP_FLEE)) { // Unit has fled the battlefield. phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " flees the battlefield.\n"); // Is the unit carrying passengers? final Vector passengers = entity.getLoadedUnits(); if ( !passengers.isEmpty() ) { final Enumeration iter = passengers.elements(); while ( iter.hasMoreElements() ) { final Entity passenger = (Entity) iter.nextElement(); // Unit has fled the battlefield. phaseReport.append( " It carries " ) .append( passenger.getDisplayName() ) .append( " with it.\n" ); game.removeEntity( passenger.getId(), Entity.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(passenger.getId(), Entity.REMOVE_IN_RETREAT) ); } } // Handle any picked up MechWarriors Enumeration iter = entity.getPickedUpMechWarriors().elements(); while (iter.hasMoreElements() ) { Integer mechWarriorId = (Integer)iter.nextElement(); Entity mw = game.getEntity(mechWarriorId.intValue()); // Is the MechWarrior an enemy? int condition = Entity.REMOVE_IN_RETREAT; String leavingText = "carries "; if (mw.isCaptured()) { condition = Entity.REMOVE_CAPTURED; leavingText = "takes "; } game.removeEntity( mw.getId(), condition ); send( createRemoveEntityPacket(mw.getId(), condition) ); phaseReport.append( " It " ) .append( leavingText ) .append( mw.getDisplayName() ) .append( " with it.\n" ); } // Is the unit being swarmed? final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); // Has the swarmer taken a turn? if ( !swarmer.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(swarmer); send(createTurnVectorPacket()); } // End swarmer-still-to-move // Unit has fled the battlefield. swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); phaseReport.append( " It takes " ) .append( swarmer.getDisplayName() ) .append( " with it.\n" ); game.removeEntity( swarmerId, Entity.REMOVE_CAPTURED ); send( createRemoveEntityPacket(swarmerId, Entity.REMOVE_CAPTURED) ); } game.removeEntity( entity.getId(), Entity.REMOVE_IN_RETREAT ); send( createRemoveEntityPacket(entity.getId(), Entity.REMOVE_IN_RETREAT) ); return; } if (md.contains(MovePath.STEP_EJECT)) { phaseReport.append("\n" ); if (entity instanceof Mech) { phaseReport.append( entity.getDisplayName()).append( " ejects.\n"); } else if (entity instanceof Tank) { phaseReport.append( entity.getDisplayName()).append( " is abandoned by its crew.\n"); } phaseReport.append(ejectEntity(entity, false)); return; } // okay, proceed with movement calculations Coords lastPos = entity.getPosition(); Coords curPos = entity.getPosition(); int curFacing = entity.getFacing(); int distance = 0; int mpUsed = 0; int moveType = Entity.MOVE_NONE; int overallMoveType = Entity.MOVE_NONE; // if the entity already used some MPs, // it previously tried to get up and fell, // and then got another turn. set moveType // and overallMoveType accordingly if (entity.mpUsed > 0) { moveType = Entity.MOVE_WALK; overallMoveType = Entity.MOVE_WALK; if (entity.mpUsed > entity.getWalkMP()) { moveType = Entity.MOVE_RUN; overallMoveType = Entity.MOVE_RUN; } } boolean firstStep; boolean wasProne; boolean fellDuringMovement; int prevFacing = curFacing; Hex prevHex = null; final boolean isInfantry = (entity instanceof Infantry); AttackAction charge = null; PilotingRollData rollTarget; // Compile the move md.compile(game, entity); if (md.contains(MovePath.STEP_CLEAR_MINEFIELD)) { ClearMinefieldAction cma = new ClearMinefieldAction(entity.getId()); entity.setClearingMinefield(true); game.addAction(cma); } // check for MASC failure if (entity instanceof Mech) { if (((Mech)entity).checkForMASCFailure(phaseReport,md)) { // no movement after that md.clear(); } } overallMoveType = md.getLastStepMovementType(); // iterate through steps firstStep = true; fellDuringMovement = false; /* Bug 754610: Revert fix for bug 702735. */ MoveStep prevStep = null; Vector movePath = new Vector(); for (final Enumeration i = md.getSteps(); i.hasMoreElements();) { final MoveStep step = (MoveStep)i.nextElement(); wasProne = entity.isProne(); boolean isPavementStep = step.isPavementStep(); // stop for illegal movement if (step.getMovementType() == Entity.MOVE_ILLEGAL) { break; } // check piloting skill for getting up rollTarget = entity.checkGetUp(step); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { entity.heatBuildup += 1; entity.setProne(false); wasProne = false; game.resetPSRs(entity); doSkillCheckInPlace(entity, rollTarget); } // did the entity just fall? if (!wasProne && entity.isProne()) { moveType = step.getMovementType(); curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } if (step.getType() == MovePath.STEP_UNJAM_RAC) { entity.setUnjammingRAC(true); game.addAction(new UnjamAction(entity.getId())); break; } // set most step parameters moveType = step.getMovementType(); distance = step.getDistance(); mpUsed = step.getMpUsed(); // check for charge if (step.getType() == MovePath.STEP_CHARGE) { if (entity.canCharge()) { checkExtremeGravityMovement(entity, step, curPos); Targetable target = step.getTarget( game ); ChargeAttackAction caa = new ChargeAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(caa); game.addCharge(caa); charge = caa; } else { sendServerChat("Illegal charge!! I don't think "+entity.getDisplayName() +" should be allowed to charge,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; }; break; } // check for dfa if (step.getType() == MovePath.STEP_DFA) { if (entity.canDFA()) { checkExtremeGravityMovement(entity, step, curPos); Targetable target = step.getTarget( game ); DfaAttackAction daa = new DfaAttackAction(entity.getId(), target.getTargetType(), target.getTargetId(), target.getPosition()); entity.setDisplacementAttack(daa); game.addCharge(daa); charge = daa; } else { sendServerChat("Illegal DFA!! I don't think "+entity.getDisplayName() +" should be allowed to DFA,"+ " but the client of "+entity.getOwner().getName()+" disagrees."); sendServerChat("Please make sure "+entity.getOwner().getName()+" is running MegaMek "+MegaMek.VERSION+ ", or if that is already the case, submit a bug report at http://megamek.sf.net/"); return; }; break; } // set last step parameters curPos = step.getPosition(); curFacing = step.getFacing(); final Hex curHex = game.board.getHex(curPos); // Check for skid. rollTarget = entity.checkSkid(moveType, prevHex, overallMoveType, prevStep, prevFacing, curFacing, lastPos, curPos, isInfantry, distance); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { // Have an entity-meaningful PSR message. boolean psrPassed = true; if ( entity instanceof Mech ) { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, true ); } else { psrPassed = doSkillCheckWhileMoving( entity, lastPos, lastPos, rollTarget, false ); } // Does the entity skid? if ( !psrPassed ){ curPos = lastPos; Coords nextPos = curPos; Hex nextHex = null; int skidDistance = 0; Enumeration targets = null; Entity target = null; int curElevation; int nextElevation; // All charge damage is based upon // the pre-skid move distance. entity.delta_distance = distance-1; // Attacks against a skidding target have additional +2. moveType = Entity.MOVE_SKID; // What is the first hex in the skid? nextPos = curPos.translated( prevFacing ); nextHex = game.board.getHex( nextPos ); // Move the entity a number hexes from curPos in the // prevFacing direction equal to half the distance moved // this turn (rounded up), unless something intervenes. for ( skidDistance = 0; skidDistance < (int) Math.ceil(entity.delta_distance / 2.0); skidDistance++ ) { // Is the next hex off the board? if ( !game.board.contains(nextPos) ) { // Can the entity skid off the map? if ( game.getOptions().booleanOption("push_off_board") ) { // Yup. One dead entity. game.removeEntity(entity.getId(), Entity.REMOVE_PUSHED); send(createRemoveEntityPacket(entity.getId(), Entity.REMOVE_PUSHED)); phaseReport.append("*** " ) .append( entity.getDisplayName() ) .append( " has skidded off the field. ***\n"); // TODO: remove passengers and swarmers. // The entity's movement is completed. return; } else { // Nope. Update the report. phaseReport.append( " Can't skid off the field.\n" ); } // Stay in the current hex and stop skidding. break; } // Can the skiding entity enter the next hex from this? // N.B. can skid along roads. if ( ( entity.isHexProhibited(curHex) || entity.isHexProhibited(nextHex) ) && !Compute.canMoveOnPavement(game, curPos, nextPos) ) { // Update report. phaseReport.append( " Can't skid into hex " ) .append( nextPos.getBoardNum() ) .append( ".\n" ); // N.B. the BMRr pg. 22 says that the unit // "crashes" into the terrain but it doesn't // mention any damage. // Stay in the current hex and stop skidding. break; } // Hovercraft can "skid" over water. // TODO: allow entities to occupy different levels of // buildings. curElevation = curHex.floor(); nextElevation = nextHex.floor(); if ( entity instanceof Tank && entity.getMovementType() == Entity.MovementType.HOVER ) { Terrain land = curHex. getTerrain(Terrain.WATER); if ( land != null ) { curElevation += land.getLevel(); } land = nextHex.getTerrain(Terrain.WATER); if ( land != null ) { nextElevation += land.getLevel(); } } // BMRr pg. 22 - Can't skid uphill, // but can skid downhill. if ( curElevation < nextElevation ) { phaseReport.append ( " Can not skid uphill into hex " + nextPos.getBoardNum() ).append( ".\n" ); // Stay in the current hex and stop skidding. break; } // Have skidding units suffer falls. else if ( curElevation > nextElevation + 1 ) { doEntityFallsInto( entity, curPos, nextPos, entity.getBasePilotingRoll() ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); // Stay in the current hex and stop skidding. break; } // Get any building in the hex. Building bldg = game.board.getBuildingAt(nextPos); boolean bldgSuffered = false; // Does the next hex contain an entities? // ASSUMPTION: hurt EVERYONE in the hex. // TODO: allow entities to occupy different levels of // buildings, and only skid into a single level. boolean stopTheSkid = false; targets = game.getEntities( nextPos ); while ( targets.hasMoreElements() ) { target = (Entity) targets.nextElement(); // TODO : allow ready targets to move out of way // Mechs and vehicles get charged. if ( !(target instanceof Infantry) ) { // Update report. phaseReport.append( " Skids into " + target.getShortName() + " in hex " + nextPos.getBoardNum() + "... " ); // Resolve a charge against the target. // ASSUMPTION: buildings block damage for // *EACH* entity charged. ToHitData toHit = new ToHitData(); // Calculate hit location. if ( entity instanceof Tank && entity.getMovementType() == Entity.MovementType.HOVER && 0 < nextHex.levelOf(Terrain.WATER) ) { if ( 2 <= nextHex.levelOf(Terrain.WATER) || target.isProne() ) { // Hovercraft can't hit the Mek. continue; } else { toHit.setHitTable(ToHitData.HIT_PUNCH); } } else if ( entity.getHeight() < target.getHeight() ) { toHit.setHitTable(ToHitData.HIT_KICK); } else { toHit.setHitTable(ToHitData.HIT_NORMAL); } // Resolve the hit. toHit.setSideTable (Compute.targetSideTable(entity, target)); resolveChargeDamage (entity, target, toHit, prevFacing); bldgSuffered = true; // The skid ends here if the target lives. if ( !target.isDoomed() && !target.isDestroyed() && !game.isOutOfGame(target) ) { stopTheSkid = true; } // if we don't do this here, // we can have a mech without a leg // standing on the field and moving // as if it still had his leg after // getting skid-charged. resolvePilotingRolls(target); target.applyDamage(); } // Resolve "move-through" damage on infantry. // Infantry inside of a building don't get a // move-through, but suffer "bleed through" // from the building. else if ( bldg != null ) { // Update report. phaseReport.append( " Skids through " + target.getShortName() + " in hex " + nextPos.getBoardNum() + "... " ); // Infantry don't have different // tables for punches and kicks HitData hit = target.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(entity, target) ); // Damage equals tonnage, divided by 5. // ASSUMPTION: damage is applied in one hit. phaseReport.append( damageEntity(target, hit, (int)Math.round(entity.getWeight()/5)) ); phaseReport.append( "\n" ); } // End handle-infantry // Has the target been destroyed? if ( target.isDoomed() ) { // Has the target taken a turn? if ( !target.isDone() ) { // Dead entities don't take turns. game.removeTurnFor(target); send(createTurnVectorPacket()); } // End target-still-to-move // Clean out the entity. target.setDestroyed(true); game.moveToGraveyard(target.getId()); send(createRemoveEntityPacket(target.getId())); } // Update the target's position, // unless it is off the game map. if ( !game.isOutOfGame(target) ) { entityUpdate( target.getId() ); } } // Check the next entity in the hex. // Handle the building in the hex. // TODO : BMRr pg. 22, only count buildings that are // higher than our starting terrain height. // TODO: allow units to skid on top of buildings. if ( bldg != null ) { // Report that the entity has entered the bldg. phaseReport.append( " Skids into " ) .append( bldg.getName() ) .append( " in hex " ) .append( nextPos.getBoardNum() ) .append( ".\n" ); // If the building hasn't already suffered // damage, then apply charge damage to the // building and displace the entity inside. // ASSUMPTION: you don't charge the building // if Tanks or Mechs were charged. int chargeDamage = ChargeAttackAction.getDamageFor ( entity ); if ( !bldgSuffered ) { phaseReport.append( " " ) .append( damageBuilding( bldg, chargeDamage ) ); // Apply damage to the attacker. int toAttacker = ChargeAttackAction.getDamageTakenBy ( entity, bldg ); HitData hit = entity.rollHitLocation( ToHitData.HIT_NORMAL, Compute.targetSideTable(curPos, nextPos, entity.getFacing(), false) ); phaseReport.append( this.damageEntity( entity, hit, toAttacker ) ) .append( "\n" ); entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; } // End buildings-suffer-too // Any infantry in the building take damage // equal to the building being charged. // ASSUMPTION: infantry take no damage from the // building absorbing damage from // Tanks and Mechs being charged. damageInfantryIn( bldg, chargeDamage ); // If a building still stands, then end the skid, // and add it to the list of affected buildings. if ( bldg.getCurrentCF() > 0 ) { stopTheSkid = true; this.addAffectedBldg( bldg, false ); } } // End handle-building. // Do we stay in the current hex and stop skidding? if ( stopTheSkid ) { break; } // Update the position and keep skidding. entity.setPosition( nextPos ); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); curPos = nextPos; phaseReport.append( " Skids into hex " ).append( curPos.getBoardNum() ).append( ".\n" ); // Get the next hex in the skid? nextPos = nextPos.translated( prevFacing ); nextHex = game.board.getHex( nextPos ); } // Handle the next skid hex. // If the skidding entity violates stacking, // displace targets until it doesn't. curPos = entity.getPosition(); target = Compute.stackingViolation (game, entity.getId(), curPos); while (target != null) { nextPos = Compute.getValidDisplacement (game, target.getId(), target.getPosition(), prevFacing); // ASSUMPTION // There should always be *somewhere* that // the target can go... last skid hex if // nothing else is available. if ( null == nextPos ) { // But I don't trust the assumption fully. // Report the error and try to continue. System.err.println( "The skid of " + entity.getShortName() + " should displace " + target.getShortName() + " in hex " + curPos.getBoardNum() + " but there is nowhere to go." ); break; } phaseReport.append( " " ); // indent displacement doEntityDisplacement(target, curPos, nextPos, null); doEntityDisplacementMinefieldCheck(entity, curPos, nextPos); target = Compute.stackingViolation( game, entity.getId(), curPos ); } // Mechs suffer damage for every hex skidded. if ( entity instanceof Mech ) { // Calculate one half falling damage times skid length. int damage = skidDistance * (int) Math.ceil(Math.round(entity.getWeight() / 10.0) / 2.0); // report skid damage phaseReport.append(" " ).append( entity.getDisplayName() ).append( " suffers " ).append( damage ).append( " damage from the skid."); // standard damage loop // All skid damage is to the front. while (damage > 0) { int cluster = Math.min(5, damage); HitData hit = entity.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT); phaseReport.append(damageEntity(entity, hit, cluster)); damage -= cluster; } phaseReport.append( "\n" ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // Let the player know the ordeal is over. phaseReport.append( " Skid ends.\n" ); // set entity parameters curFacing = entity.getFacing(); curPos = entity.getPosition(); entity.setSecondaryFacing( curFacing ); // skid consumes all movement if (md.hasActiveMASC()) { mpUsed = entity.getRunMP(); } else { mpUsed = entity.getRunMPwithoutMASC(); } entity.moved = moveType; fellDuringMovement = true; distance = entity.delta_distance; break; } // End failed-skid-psr } // End need-skid-psr // check if we've moved into rubble rollTarget = entity.checkRubbleMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); } // check if we've moved into a swamp rollTarget = entity.checkSwampMove(step, curHex, lastPos, curPos); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { if (!doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, false)){ entity.setStuck(true); phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " gets stuck in the swamp.\n"); break; } } // check to see if we are a mech and we've moved OUT of fire if (entity instanceof Mech) { if ( !lastPos.equals(curPos) && game.board.getHex(lastPos).contains(Terrain.FIRE) && ( step.getMovementType() != Entity.MOVE_JUMP // Bug #828741 -- jumping bypasses fire, but not on the first step // getMpUsed -- total MP used to this step // getMp -- MP used in this step // the difference will always be 0 on the "first step" of a jump, // and >0 on a step in the midst of a jump || ( 0 == step.getMpUsed() - step.getMp() ) ) ) { entity.heatBuildup+=2; phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " passes through a fire. It will generate 2 more heat this round.\n"); } } // check to see if we are not a mech and we've moved INTO fire if (!(entity instanceof Mech)) { if ( game.board.getHex(curPos).contains(Terrain.FIRE) && !lastPos.equals(curPos) && step.getMovementType() != Entity.MOVE_JUMP ) { doFlamingDeath(entity); } } // check for extreme gravity movement if (!i.hasMoreElements() && !firstStep) { checkExtremeGravityMovement(entity, step, curPos); } // check for minefields. if ((!lastPos.equals(curPos) && (step.getMovementType() != Entity.MOVE_JUMP)) || ((overallMoveType == Entity.MOVE_JUMP) && (!i.hasMoreElements()))) { checkVibrabombs(entity, curPos, false, lastPos, curPos); if (game.containsMinefield(curPos)) { Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); switch (mf.getType()) { case (Minefield.TYPE_CONVENTIONAL) : case (Minefield.TYPE_THUNDER) : case (Minefield.TYPE_THUNDER_INFERNO) : case (Minefield.TYPE_COMMAND_DETONATED) : if ((step.getMovementType() != Entity.MOVE_JUMP) || (!i.hasMoreElements())) enterMinefield(entity, mf, curPos, curPos, true); break; case (Minefield.TYPE_THUNDER_ACTIVE) : if ((step.getMovementType() != Entity.MOVE_JUMP) || (!i.hasMoreElements())) enterMinefield(entity, mf, curPos, curPos, true); else enterMinefield(entity, mf, curPos, curPos, true, 2); break; } } } } // infantry discovers minefields if they end their move // in a minefield. if (!lastPos.equals(curPos) && !i.hasMoreElements() && isInfantry) { if (game.containsMinefield(curPos)) { Player owner = entity.getOwner(); Enumeration minefields = game.getMinefields(curPos).elements(); while (minefields.hasMoreElements()) { Minefield mf = (Minefield) minefields.nextElement(); if (!owner.containsMinefield(mf)) { phaseReport.append(entity.getShortName() + " discovers a minefield.\n"); revealMinefield(owner, mf); } } } } // check if we've moved into water rollTarget = entity.checkWaterMove(step, curHex, lastPos, curPos, isPavementStep); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckWhileMoving(entity, lastPos, curPos, rollTarget, true); if (curHex.levelOf(Terrain.WATER) > 1) { // Any swarming infantry will be destroyed. drownSwarmer(entity, curPos); } // check for inferno wash-off checkForWashedInfernos(entity, curPos); } // In water, may or may not be a new hex, neccessary to // check during movement, for breach damage, and always // set dry if appropriate //TODO: possibly make the locations local and set later doSetLocationsExposure(entity, curHex, isPavementStep, step.getMovementType() == Entity.MOVE_JUMP); // Handle loading units. if ( step.getType() == MovePath.STEP_LOAD ) { // Find the unit being loaded. Entity loaded = null; Enumeration entities = game.getEntities( curPos ); while ( entities.hasMoreElements() ) { // Is the other unit friendly and not the current entity? loaded = (Entity)entities.nextElement(); if ( entity.getOwner() == loaded.getOwner() && !entity.equals(loaded) ) { // The moving unit should be able to load the other // unit and the other should be able to have a turn. if ( !entity.canLoad(loaded) || !loaded.isSelectableThisTurn() ) { // Something is fishy in Denmark. System.err.println( entity.getShortName() + " can not load " + loaded.getShortName() ); loaded = null; } else { // Have the deployed unit load the indicated unit. this.loadUnit( entity, loaded ); // Stop looking. break; } } else { // Nope. Discard it. loaded = null; } } // Handle the next entity in this hex. // We were supposed to find someone to load. if ( loaded == null ) { System.err.println( "Could not find unit for " + entity.getShortName() + " to load in " + curPos ); } } // End STEP_LOAD // Handle unloading units. if ( step.getType() == MovePath.STEP_UNLOAD ) { Targetable unloaded = step.getTarget( game ); if ( !this.unloadUnit( entity, unloaded, curPos, curFacing ) ) { System.err.println( "Error! Server was told to unload " + unloaded.getDisplayName() + " from " + entity.getDisplayName() + " into " + curPos.getBoardNum() ); } } // Handle non-infantry moving into a building. if (entity.checkMovementInBuilding(lastPos, curPos, step, curHex, prevHex)) { // Get the building being exited. // TODO: allow units to climb on top of buildings. Building bldgExited = game.board.getBuildingAt( lastPos ); // Get the building being entered. // TODO: allow units to climb on top of buildings. Building bldgEntered = game.board.getBuildingAt( curPos ); // If we're not leaving a building, just handle the "entered". boolean collapsed = false; if ( bldgExited == null ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we're moving withing the same building, just handle // the "within". else if ( bldgExited.equals( bldgEntered ) ) { collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "moving in" ); this.addAffectedBldg( bldgEntered, collapsed ); } // If we have different buildings, roll for each. else if ( bldgExited != null && bldgEntered != null ) { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); collapsed = passBuildingWall( entity, bldgEntered, lastPos, curPos, distance, "entering" ); this.addAffectedBldg( bldgEntered, collapsed ); } // Otherwise, just handle the "exited". else { collapsed = passBuildingWall( entity, bldgExited, lastPos, curPos, distance, "exiting" ); this.addAffectedBldg( bldgExited, collapsed ); } // Clean up the entity if it has been destroyed. if ( entity.isDoomed() ) { entity.setDestroyed(true); game.moveToGraveyard(entity.getId()); send(createRemoveEntityPacket(entity.getId())); // The entity's movement is completed. return; } // TODO: what if a building collapses into rubble? } // did the entity just fall? if (!wasProne && entity.isProne()) { curFacing = entity.getFacing(); curPos = entity.getPosition(); mpUsed = step.getMpUsed(); fellDuringMovement = true; break; } // dropping prone intentionally? if (step.getType() == MovePath.STEP_GO_PRONE) { mpUsed = step.getMpUsed(); rollTarget = entity.checkDislodgeSwarmers(); if (rollTarget.getValue() == TargetRoll.CHECK_FALSE) { // Not being swarmed entity.setProne(true); // check to see if we washed off infernos checkForWashedInfernos(entity, curPos); break; } else { // Being swarmed entity.setPosition(curPos); if (doDislodgeSwarmerSkillCheck(entity, rollTarget, curPos)) { // Entity falls curFacing = entity.getFacing(); curPos = entity.getPosition(); fellDuringMovement = true; break; } } } movePath.addElement(new Integer(curPos.hashCode() ^ (curFacing << 16))); // update lastPos, prevStep, prevFacing & prevHex lastPos = new Coords(curPos); prevStep = step; /* Bug 754610: Revert fix for bug 702735. if (prevHex != null && !curHex.equals(prevHex)) { */ if (!curHex.equals(prevHex)) { prevFacing = curFacing; } prevHex = curHex; firstStep = false; } // set entity parameters entity.setPosition(curPos); entity.setFacing(curFacing); entity.setSecondaryFacing(curFacing); entity.delta_distance = distance; entity.moved = moveType; entity.mpUsed = mpUsed; // if we ran with destroyed hip or gyro, we need a psr rollTarget = entity.checkRunningWithDamage(overallMoveType); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // but the danger isn't over yet! landing from a jump can be risky! if (overallMoveType == Entity.MOVE_JUMP && !entity.isMakingDfa()) { // check for damaged criticals rollTarget = entity.checkLandingWithDamage(); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } // jumped into water? int waterLevel = game.board.getHex(curPos).levelOf(Terrain.WATER); rollTarget = entity.checkWaterMove(waterLevel); if (rollTarget.getValue() != TargetRoll.CHECK_FALSE) { doSkillCheckInPlace(entity, rollTarget); } if (waterLevel > 1) { // Any swarming infantry will be destroyed. drownSwarmer(entity, curPos); } // jumped into swamp? maybe stuck! if (game.board.getHex(curPos).contains(Terrain.SWAMP)) { if (entity instanceof Mech) { entity.setStuck(true); phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " jumps into the swamp and gets stuck.\n"); } else if (entity instanceof Infantry) { PilotingRollData roll = entity.getBasePilotingRoll(); roll.addModifier(5, "infantry jumping into swamp"); if (!doSkillCheckWhileMoving(entity, curPos, curPos, roll, false)) { entity.setStuck(true); phaseReport.append("\n" ).append( entity.getDisplayName() ).append( " gets stuck in the swamp.\n"); } } } // If the entity is being swarmed, jumping may dislodge the fleas. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); final PilotingRollData roll = entity.getBasePilotingRoll(); // Add a +4 modifier. roll.addModifier( 4, "dislodge swarming infantry" ); // If the swarmer has Assault claws, give a 1 modifier. // We can stop looking when we find our first match. for ( Enumeration iter = swarmer.getMisc(); iter.hasMoreElements(); ) { Mounted mount = (Mounted) iter.nextElement(); EquipmentType equip = mount.getType(); if ( BattleArmor.ASSAULT_CLAW.equals (equip.getInternalName()) ) { roll.addModifier( 1, "swarmer has assault claws" ); break; } } // okay, print the info phaseReport.append("\n") .append( entity.getDisplayName() ) .append( " tries to dislodge swarming infantry.\n" ); // roll final int diceRoll = Compute.d6(2); phaseReport.append("Needs " ).append( roll.getValueAsString() ).append( " [" ).append( roll.getDesc() ).append( "]" ).append( ", rolls " ).append( diceRoll ).append( " : "); if (diceRoll < roll.getValue()) { phaseReport.append("fails.\n"); } else { phaseReport.append("succeeds.\n"); entity.setSwarmAttackerId( Entity.NONE ); swarmer.setSwarmTargetId( Entity.NONE ); // Did the infantry fall into water? final Hex curHex = game.board.getHex(curPos); if ( curHex.levelOf(Terrain.WATER) > 0 ) { // Swarming infantry die. swarmer.setPosition( curPos ); phaseReport.append(" ") .append(swarmer.getDisplayName()) .append(" is dislodged and drowns!") .append(destroyEntity(swarmer, "a watery grave", false)); } else { // Swarming infantry take an 11 point hit. // ASSUMPTION : damage should not be doubled. phaseReport.append(" ") .append(swarmer.getDisplayName()) .append(" is dislodged and suffers 11 damage.") .append( damageEntity(swarmer, swarmer.rollHitLocation(ToHitData.HIT_NORMAL, ToHitData.SIDE_FRONT), 11) ) .append( "\n" ); swarmer.setPosition( curPos ); } entityUpdate( swarmerId ); } // End successful-PSR } // End try-to-dislodge-swarmers // one more check for inferno wash-off checkForWashedInfernos(entity, curPos); } // End entity-is-jumping // update entity's locations' exposure doSetLocationsExposure(entity, game.board.getHex(curPos), game.board.getHex(curPos).surface() <= entity.getElevation(), false); // should we give another turn to the entity to keep moving? if (fellDuringMovement && entity.mpUsed < entity.getRunMP() && entity.isSelectableThisTurn() && !entity.isDoomed()) { entity.applyDamage(); entity.setDone(false); GameTurn newTurn = new GameTurn.SpecificEntityTurn(entity.getOwner().getId(), entity.getId()); game.insertNextTurn(newTurn); // brief everybody on the turn update send(createTurnVectorPacket()); // let everyone know about what just happened roundReport.append(phaseReport.toString()); game.resetPhaseReport(); phaseReport = game.getPhaseReport(); //HACK send(createReportPacket()); } else { entity.setDone(true); } // If the entity is being swarmed, update the attacker's position. final int swarmerId = entity.getSwarmAttackerId(); if ( Entity.NONE != swarmerId ) { final Entity swarmer = game.getEntity( swarmerId ); swarmer.setPosition( curPos ); // If the hex is on fire, and the swarming infantry is // *not* Battle Armor, it drops off. if ( !(swarmer instanceof BattleArmor) && game.board.getHex(curPos).contains(Terrain.FIRE) ) { swarmer.setSwarmTargetId( Entity.NONE ); entity.setSwarmAttackerId( Entity.NONE ); phaseReport.append( "\n " ) .append( swarmer.getShortName() ) .append( " can't stand the fire's heat and drops off.\n" ); } entityUpdate( swarmerId ); } // Update the entitiy's position, // unless it is off the game map. if (!game.isOutOfGame(entity)) { if (entity.isDoomed()) { send(createRemoveEntityPacket(entity.getId(), entity.getRemovalCondition())); } else { entityUpdate( entity.getId(), movePath ); }; }; // if using double blind, update the player on new units he might see if (doBlind()) { send(entity.getOwner().getId(), createFilteredEntitiesPacket(entity.getOwner())); } // if we generated a charge attack, report it now if (charge != null) { send(createAttackPacket(charge, true)); } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/69fbf06cf38cbe699bd6216d02bdd377dde1809d/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 49, 26140, 12, 1943, 1522, 16, 9933, 743, 3481, 13, 288, 3639, 368, 866, 364, 284, 11182, 310, 3639, 309, 261, 1264, 18, 12298, 12, 7607, 743, 18, 26951, 67, 42, 900, 41, 3719, 288, 5411, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 5411, 6855, 4820, 18, 6923, 31458, 82, 6, 262, 18, 6923, 12, 1522, 18, 588, 20524, 1435, 5411, 262, 18, 6923, 12, 315, 284, 298, 281, 326, 324, 4558, 298, 1518, 8403, 82, 8863, 5411, 368, 2585, 326, 2836, 9331, 310, 1342, 275, 6215, 35, 5411, 727, 5589, 1342, 275, 6215, 273, 1522, 18, 588, 8835, 7537, 5621, 5411, 309, 261, 401, 5466, 275, 6215, 18, 291, 1921, 1435, 262, 288, 7734, 727, 13864, 1400, 273, 1342, 275, 6215, 18, 6274, 5621, 7734, 1323, 261, 1400, 18, 5332, 7417, 3471, 1435, 262, 288, 10792, 727, 3887, 1342, 14348, 273, 261, 1943, 13, 1400, 18, 4285, 1046, 5621, 10792, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 10792, 6855, 4820, 18, 6923, 12, 315, 282, 2597, 5926, 566, 281, 315, 262, 13491, 263, 6923, 12, 1342, 14348, 18, 588, 20524, 1435, 262, 13491, 263, 6923, 12, 315, 598, 518, 8403, 82, 6, 11272, 10792, 7920, 18, 4479, 1943, 12, 1342, 14348, 18, 26321, 9334, 4766, 4202, 3887, 18, 22122, 67, 706, 67, 10238, 862, 789, 11272, 10792, 1366, 12, 752, 3288, 1943, 6667, 12, 5466, 14348, 18, 26321, 9334, 4766, 10402, 3887, 18, 22122, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 49, 26140, 12, 1943, 1522, 16, 9933, 743, 3481, 13, 288, 3639, 368, 866, 364, 284, 11182, 310, 3639, 309, 261, 1264, 18, 12298, 12, 7607, 743, 18, 26951, 67, 42, 900, 41, 3719, 288, 5411, 368, 8380, 711, 284, 1259, 326, 324, 4558, 298, 1518, 18, 5411, 6855, 4820, 18, 6923, 31458, 82, 6, 262, 18, 6923, 12, 1522, 18, 588, 20524, 1435, 5411, 262, 18, 6923, 12, 315, 284, 298, 281, 326, 324, 4558, 298, 1518, 8403, 82, 8863, 5411, 368, 2585, 326, 2836, 9331, 310, 1342, 275, 6215, 35, 5411, 727, 5589, 1342, 275, 6215, 273, 1522, 18, 588, 8835, 7537, 5621, 5411, 309, 261, 401, 5466, 275, 6215, 18, 291, 1921, 2 ]
public ParseException(String message) { super(message); }
public ParseException() { super(); }
public ParseException(String message) { super(message); }
54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/4aaf60d8fa76687c3492c508dd98678fbbd3d935/ParseException.java/clean/jmock/examples/calculator/src/org/jmock/examples/calculator/ParseException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10616, 12, 780, 883, 13, 288, 3639, 2240, 12, 2150, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10616, 12, 780, 883, 13, 288, 3639, 2240, 12, 2150, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
scY.computeTicks( ids,
int tickCount = scY.computeTicks( ids,
private final double adjustVerticalDueToHorizontal( double dBlockY, double dBlockHeight, AllAxes aax ) throws ChartException, IllegalArgumentException { final OneAxis axPH = aax.areAxesSwapped( ) ? aax.getPrimaryOrthogonal( ) : aax.getPrimaryBase( ); final OneAxis axPV = aax.areAxesSwapped( ) ? aax.getPrimaryBase( ) : aax.getPrimaryOrthogonal( ); final AutoScale scX = axPH.getScale( ); final AutoScale scY = axPV.getScale( ); final int iXLabelLocation = axPH.getLabelPosition( ); final int iYLabelLocation = axPV.getLabelPosition( ); final int iXTitleLocation = axPH.getTitlePosition( ); final Label laXAxisTitle = axPH.getTitle( ); final Label laYAxisLabels = axPV.getLabel( ); final int iXTickStyle = axPH.getCombinedTickStyle( ); final IntersectionValue iv = axPH.getIntersectionValue( ); // COMPUTE THE THICKNESS OF THE AXIS INCLUDING AXIS LABEL BOUNDS AND // AXIS-PLOT SPACING double dXAxisLabelsThickness = scX.computeAxisLabelThickness( ids, axPH.getLabel( ), HORIZONTAL ); double dXAxisTitleThickness = 0; if ( laXAxisTitle.isVisible( ) ) { final String sPreviousValue = laXAxisTitle.getCaption( ).getValue( ); laXAxisTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); // EXTERNALIZE try { dXAxisTitleThickness = computeBox( ids, iXTitleLocation, laXAxisTitle, 0, 0 ).getHeight( ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, uiex ); } finally { laXAxisTitle.getCaption( ).setValue( sPreviousValue ); // RESTORE } } double dY = getLocation( scY, iv ), dY1 = dY, dY2 = dY; // X-AXIS BAND // VERTICAL // CO-ORDINATES final boolean bTicksAbove = ( iXTickStyle & TICK_ABOVE ) == TICK_ABOVE; // 'boolean' // FOR // CONVENIENCE // & // READABILITY final boolean bTicksBelow = ( iXTickStyle & TICK_BELOW ) == TICK_BELOW; // 'boolean' // FOR // CONVENIENCE // & // READABILITY final double dAppliedXAxisPlotSpacing = ( iv.iType == IntersectionValue.MAX || iv.iType == IntersectionValue.MIN ) ? dXAxisPlotSpacing : 0; // COMPUTE VALUES FOR y1, y, y2 // y = VERTICAL LOCATION OF X-AXIS ALONG PLOT // y1 = UPPER EDGE OF X-AXIS (DUE TO AXIS LABELS, TICKS, SPACING) // y2 = LOWER EDGE OF X-AXIS (DUE TO AXIS LABELS, TICKS, SPACING) if ( iv.iType == IntersectionValue.MAX ) { // NOTE: ENSURE CODE SYMMETRY WITH 'InsersectionValue.MIN' dY -= dAppliedXAxisPlotSpacing; dY1 = dY; dY2 = dY; if ( bTicksAbove ) { dY1 -= TICK_SIZE; } if ( iXLabelLocation == ABOVE ) { dY1 -= dXAxisLabelsThickness; dY2 += Math.max( bTicksBelow ? TICK_SIZE : 0, dAppliedXAxisPlotSpacing ); } else if ( iXLabelLocation == BELOW ) { dY2 += Math.max( ( bTicksBelow ? TICK_SIZE : 0 ) + dXAxisLabelsThickness, dAppliedXAxisPlotSpacing ); } if ( iXTitleLocation == ABOVE ) { dY1 -= dXAxisTitleThickness; } else if ( iXTitleLocation == BELOW ) { dY2 += dXAxisTitleThickness; } // ENSURE THAT WE DON'T GO ABOVE THE UPPER PLOT BLOCK EDGE if ( dY1 < dBlockY ) { final double dDelta = ( dBlockY - dY1 ); dY1 = dBlockY; dY += dDelta; dY2 += dDelta; } double dDeltaY1 = dY - dY1; double dDeltaY2 = dY2 - dY; // COMPUTE THE X-AXIS BAND THICKNESS AND ADJUST Y2 FOR LABELS BELOW dXAxisLabelsThickness = 0; // REUSE VARIABLE if ( iXLabelLocation == ABOVE ) { // X-AXIS BAND IS (y1 -> y2) dXAxisLabelsThickness = dY2 - dY1; } else if ( iXLabelLocation == BELOW ) { // X-AXIS BAND IS (y1 -> (y+AxisPlotSpacing)) dY2 = ( dY + dAppliedXAxisPlotSpacing ); dXAxisLabelsThickness = dY2 - dY1; } // CHECK IF X-AXIS THICKNESS REQUIRES A PLOT HEIGHT RESIZE AT THE // UPPER END if ( dXAxisLabelsThickness > scY.getEndShift( ) ) { // REDUCE scY's ENDPOINT TO FIT THE X-AXIS AT THE TOP scY.setEndPoints( scY.getStart( ) + scY.getStartShift( ), scY.getEnd( ) - scY.getEndShift( ) ); double dStart = scY.getStart( ), dEnd = dY2 - scY.getEndShift( ); scY.resetShifts( ); // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS LABELS // IF OVERLAPS OCCUR scY.setEndPoints( dStart, dEnd ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { final Object[] oaMinMax = scY.getMinMax( ); while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { scY.zoomOut( ); scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); } } } dY -= insCA.getTop( ); dY1 = dY - dDeltaY1; dY2 = dY + dDeltaY2; axPH.setTitleCoordinate( ( iXTitleLocation == ABOVE ) ? dY1 - 1 : dY2 + 1 - dXAxisTitleThickness ); } else if ( iv.iType == IntersectionValue.MIN ) { // NOTE: ENSURE CODE SYMMETRY WITH 'InsersectionValue.MAX' dY += dAppliedXAxisPlotSpacing; dY1 = dY; dY2 = dY; if ( bTicksBelow ) { dY2 += TICK_SIZE; } if ( iXLabelLocation == ABOVE ) { dY1 -= Math.max( ( bTicksAbove ? TICK_SIZE : 0 ) + dXAxisLabelsThickness, dAppliedXAxisPlotSpacing ); } else if ( iXLabelLocation == BELOW ) { dY2 += dXAxisLabelsThickness; dY1 -= Math.max( bTicksAbove ? TICK_SIZE : 0, dAppliedXAxisPlotSpacing ); } if ( iXTitleLocation == ABOVE ) { dY1 -= dXAxisTitleThickness; } else if ( iXTitleLocation == BELOW ) { dY2 += dXAxisTitleThickness; } // ENSURE THAT WE DON'T GO BELOW THE LOWER PLOT BLOCK EDGE if ( dY2 > dBlockY + dBlockHeight ) { final double dDelta = ( dY2 - ( dBlockY + dBlockHeight ) ); dY2 = dBlockY + dBlockHeight; dY -= dDelta; dY1 -= dDelta; } double dDeltaY1 = dY - dY1; double dDeltaY2 = dY2 - dY; // COMPUTE THE X-AXIS BAND THICKNESS AND ADJUST Y2 FOR LABELS BELOW dXAxisLabelsThickness = 0; // REUSE VARIABLE if ( iXLabelLocation == ABOVE ) { // X-AXIS BAND IS ((y+AxisPlotSpacing) -> y2) dY1 = ( dY - dAppliedXAxisPlotSpacing ); dXAxisLabelsThickness = dY2 - dY1; } else if ( iXLabelLocation == BELOW ) { // X-AXIS BAND IS (y1 -> y2) dXAxisLabelsThickness = dY2 - dY1; } // CHECK IF X-AXIS THICKNESS REQUIRES A PLOT HEIGHT RESIZE AT THE // LOWER END if ( dXAxisLabelsThickness > scY.getStartShift( ) ) { // REDUCE scY's STARTPOINT TO FIT THE X-AXIS AT THE TOP scY.setEndPoints( scY.getStart( ) + scY.getStartShift( ), scY.getEnd( ) - scY.getEndShift( ) ); // RESTORE double dStart = dY1 + scY.getStartShift( ), dEnd = scY.getEnd( ); scY.resetShifts( ); // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS LABELS // IF OVERLAPS OCCUR scY.setEndPoints( dStart, dEnd ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { final Object[] oaMinMax = scY.getMinMax( ); while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { scY.zoomOut( ); scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); } } } // MOVE THE BAND DOWNWARDS BY INSETS.BOTTOM dY += insCA.getBottom( ); dY1 = dY - dDeltaY1; dY2 = dY + dDeltaY2; // SET THE AXIS TITLE's BOX TOP CO-ORDINATE axPH.setTitleCoordinate( ( iXTitleLocation == ABOVE ) ? dY1 - 1 : dY2 + 1 - dXAxisTitleThickness ); } else { double dDeltaY1 = 0, dDeltaY2 = 0; if ( iXLabelLocation == ABOVE ) { dY1 -= ( bTicksAbove ? TICK_SIZE : 0 ) + dXAxisLabelsThickness; dY2 += ( bTicksBelow ? TICK_SIZE : 0 ); if ( iXTitleLocation == ABOVE ) { dY1 -= dXAxisTitleThickness; } else if ( iXTitleLocation == BELOW ) { dY2 += dXAxisTitleThickness; } dDeltaY1 = dY - dY1; dDeltaY2 = dY2 - dY; // CHECK IF UPPER EDGE OF X-AXIS BAND GOES ABOVE PLOT UPPER EDGE if ( dY1 < dBlockY ) { final Object[] oaMinMax = scY.getMinMax( ); boolean bForceBreak = false; // A LOOP THAT ITERATIVELY ATTEMPTS TO ADJUST THE TOP EDGE // OF THE X-AXIS LABELS WITH THE TOP EDGE OF THE PLOT AND/OR // ENSURE THAT THE END POINT OF THE Y-AXIS SCALE IS SUITABLY // POSITIONED do { // CANCEL OUT THE END LABEL SHIFT COMPUTATIONS FROM THE // Y-AXIS scY.setEndPoints( scY.getStart( ) + scY.getStartShift( ), scY.getEnd( ) - scY.getEndShift( ) ); // RESTORE scY.resetShifts( ); // APPLY THE AXIS REDUCTION FORMULA W.R.T. Y-AXIS // ENDPOINT double[] da = scY.getEndPoints( ); double dT_RI = dBlockY - dY1; // THRESHOLD - // REQUESTEDINTERSECTION double dAMin_AMax = da[0] - da[1]; double dAMin_RI = da[0] - dY; double dStart = da[0]; double dEnd = ( dT_RI / dAMin_RI ) * dAMin_AMax + da[1]; if ( dEnd < dBlockY ) { dEnd = dBlockY; bForceBreak = true; // ADJUST THE TOP EDGE OF THE // Y-AXIS SCALE TO THE TOP EDGE // OF THE PLOT BLOCK } // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR scY.setEndPoints( dStart, dEnd ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { scY.zoomOut( ); scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); } } dY = getLocation( scY, iv ); dY1 = dY - dDeltaY1; // RE-CALCULATE X-AXIS BAND // UPPER // EDGE dY2 = dY + dDeltaY2; // REDUNDANT: RE-CALCULATE // X-AXIS // BAND LOWER EDGE } while ( Math.abs( dY1 - dBlockY ) > 1 && !bForceBreak ); } } else if ( iXLabelLocation == BELOW ) { dY1 -= ( bTicksAbove ? TICK_SIZE : 0 ); dY2 += ( bTicksBelow ? TICK_SIZE : 0 ) + dXAxisLabelsThickness; if ( iXTitleLocation == ABOVE ) { dY1 -= dXAxisTitleThickness; } else if ( iXTitleLocation == BELOW ) { dY2 += dXAxisTitleThickness; } dDeltaY1 = dY - dY1; dDeltaY2 = dY2 - dY; // CHECK IF LOWER EDGE OF X-AXIS BAND GOES BELOW PLOT LOWER EDGE if ( dY2 > dBlockY + dBlockHeight ) { final Object[] oaMinMax = scY.getMinMax( ); boolean bForceBreak = false; // A LOOP THAT ITERATIVELY ATTEMPTS TO ADJUST THE TOP EDGE // OF THE X-AXIS LABELS WITH THE TOP EDGE OF THE PLOT AND/OR // ENSURE THAT THE END POINT OF THE Y-AXIS SCALE IS SUITABLY // POSITIONED do { // CANCEL OUT THE END LABEL SHIFT COMPUTATIONS FROM THE // Y-AXIS scY.setEndPoints( scY.getStart( ) + scY.getStartShift( ), scY.getEnd( ) - scY.getEndShift( ) ); // RESTORE scY.resetShifts( ); // APPLY THE AXIS REDUCTION FORMULA W.R.T. Y-AXIS // ENDPOINT double[] da = scY.getEndPoints( ); double dX2_X1 = dY2 - ( dBlockY + dBlockHeight ); // THRESHOLD // - // REQUESTEDINTERSECTION double dAMin_AMax = da[0] - da[1]; double dX2_AMax = dY - da[1]; double dStart = da[0] - ( dX2_X1 / dX2_AMax ) * dAMin_AMax; double dEnd = da[1]; if ( dStart > dBlockY + dBlockHeight ) { dStart = dBlockY + dBlockHeight; bForceBreak = true; // ADJUST THE TOP EDGE OF THE // Y-AXIS SCALE TO THE TOP EDGE // OF THE PLOT BLOCK } // LOOP THAT AUTO-RESIZES Y-AXIS AND RE-COMPUTES Y-AXIS // LABELS IF OVERLAPS OCCUR scY.setEndPoints( dStart, dEnd ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); if ( !scY.isStepFixed( ) ) { while ( !scY.checkFit( ids, laYAxisLabels, iYLabelLocation ) ) { scY.zoomOut( ); scY.updateAxisMinMax( oaMinMax[0], oaMinMax[1] ); scY.computeTicks( ids, laYAxisLabels, iYLabelLocation, VERTICAL, dStart, dEnd, true, aax ); } } dY = getLocation( scY, iv ); dY2 = dY + dDeltaY2; // RE-CALCULATE X-AXIS BAND // LOWER // EDGE dY1 = dY - dDeltaY1; // RE-CALCULATE X-AXIS BAND // LOWER // EDGE } while ( Math.abs( dY2 - ( dBlockY + dBlockHeight ) ) > 1 && !bForceBreak ); } } axPH.setTitleCoordinate( ( iXTitleLocation == ABOVE ) ? dY1 - 1 : dY2 + 1 - dXAxisTitleThickness ); } return dY; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b73466ca03eaebb828003ae9a0f931431d353aa9/PlotWith2DAxes.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith2DAxes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 1645, 5765, 15704, 30023, 774, 14457, 12, 1645, 302, 1768, 61, 16, 1082, 202, 9056, 302, 1768, 2686, 16, 4826, 26494, 279, 651, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 6385, 6942, 6558, 1740, 8939, 273, 279, 651, 18, 834, 26494, 12521, 1845, 12, 262, 692, 279, 651, 18, 588, 6793, 1162, 451, 28396, 12, 262, 9506, 202, 30, 279, 651, 18, 588, 6793, 2171, 12, 11272, 202, 202, 6385, 6942, 6558, 1740, 30201, 273, 279, 651, 18, 834, 26494, 12521, 1845, 12, 262, 692, 279, 651, 18, 588, 6793, 2171, 12, 262, 9506, 202, 30, 279, 651, 18, 588, 6793, 1162, 451, 28396, 12, 11272, 202, 202, 6385, 8064, 5587, 888, 60, 273, 1740, 8939, 18, 588, 5587, 12, 11272, 202, 202, 6385, 8064, 5587, 888, 61, 273, 1740, 30201, 18, 588, 5587, 12, 11272, 202, 202, 6385, 509, 277, 60, 2224, 2735, 273, 1740, 8939, 18, 588, 2224, 2555, 12, 11272, 202, 202, 6385, 509, 277, 61, 2224, 2735, 273, 1740, 30201, 18, 588, 2224, 2555, 12, 11272, 202, 202, 6385, 509, 277, 3983, 1280, 2735, 273, 1740, 8939, 18, 588, 4247, 2555, 12, 11272, 202, 202, 6385, 5287, 7125, 60, 6558, 4247, 273, 1740, 8939, 18, 588, 4247, 12, 11272, 202, 202, 6385, 5287, 7125, 61, 6558, 5888, 273, 1740, 30201, 18, 588, 2224, 12, 11272, 202, 202, 6385, 509, 277, 3983, 1200, 2885, 273, 1740, 8939, 18, 588, 27994, 6264, 2885, 12, 11272, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 1645, 5765, 15704, 30023, 774, 14457, 12, 1645, 302, 1768, 61, 16, 1082, 202, 9056, 302, 1768, 2686, 16, 4826, 26494, 279, 651, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 6385, 6942, 6558, 1740, 8939, 273, 279, 651, 18, 834, 26494, 12521, 1845, 12, 262, 692, 279, 651, 18, 588, 6793, 1162, 451, 28396, 12, 262, 9506, 202, 30, 279, 651, 18, 588, 6793, 2171, 12, 11272, 202, 202, 6385, 6942, 6558, 1740, 30201, 273, 279, 651, 18, 834, 26494, 12521, 1845, 12, 262, 692, 279, 651, 18, 588, 6793, 2171, 12, 262, 9506, 202, 30, 279, 651, 18, 588, 6793, 1162, 451, 28396, 12, 11272, 202, 202, 6385, 8064, 2 ]
Object arg1 = ((QuoteExp) args[1]).getValue(); if (arg1 instanceof Type) { args[0].compile(comp, 0); ((Type) arg1).emitIsInstance(code); } else throw new Error ("2nd arg is not a Type");
args[0].compile(comp, 0); type.emitIsInstance(code);
public void compile (ApplyExp exp, Compilation comp, int flags) { Expression[] args = exp.getArgs(); CodeAttr code = comp.getCode(); if (args[1] instanceof QuoteExp) { Object arg1 = ((QuoteExp) args[1]).getValue(); if (arg1 instanceof Type) { args[0].compile(comp, 0); ((Type) arg1).emitIsInstance(code); } else throw new Error ("2nd arg is not a Type"); } else { if (typeType == null) { typeType = new ClassType("gnu.bytecode.Type"); instanceMethod = typeType.addMethod("isInstance", Compilation.apply1args, Scheme.booleanType, gnu.bytecode.Access.PUBLIC); } args[0].compile(comp, 0); args[1].compile(comp, 0, typeType); } if ((flags & Expression.IGNORED) != 0) code.emitPop(1); else Scheme.booleanType.emitCoerceToObject(code); }
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/2cc6d8e686b7ccd8e4fa328cefd9424cb455c08f/instance.java/clean/kawa/standard/instance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 4074, 261, 7001, 2966, 1329, 16, 22416, 1161, 16, 509, 2943, 13, 225, 288, 565, 5371, 8526, 833, 273, 1329, 18, 588, 2615, 5621, 565, 3356, 3843, 981, 273, 1161, 18, 588, 1085, 5621, 565, 309, 261, 1968, 63, 21, 65, 1276, 21695, 2966, 13, 1377, 288, 202, 921, 1501, 21, 273, 14015, 10257, 2966, 13, 833, 63, 21, 65, 2934, 24805, 5621, 202, 430, 261, 3175, 21, 1276, 1412, 13, 202, 225, 288, 202, 565, 833, 63, 20, 8009, 11100, 12, 2919, 16, 374, 1769, 202, 565, 14015, 559, 13, 1501, 21, 2934, 18356, 2520, 1442, 12, 710, 1769, 202, 225, 289, 202, 12107, 202, 225, 604, 394, 1068, 7566, 22, 4880, 1501, 353, 486, 279, 1412, 8863, 1377, 289, 565, 469, 1377, 288, 202, 430, 261, 723, 559, 422, 446, 13, 202, 225, 288, 202, 565, 618, 559, 273, 394, 1659, 559, 2932, 1600, 89, 18, 1637, 16651, 18, 559, 8863, 202, 565, 791, 1305, 273, 618, 559, 18, 1289, 1305, 2932, 291, 1442, 3113, 25083, 202, 19184, 18, 9010, 21, 1968, 16, 25083, 202, 9321, 18, 6494, 559, 16, 25083, 202, 1600, 89, 18, 1637, 16651, 18, 1862, 18, 14939, 1769, 202, 225, 289, 202, 1968, 63, 20, 8009, 11100, 12, 2919, 16, 374, 1769, 202, 1968, 63, 21, 8009, 11100, 12, 2919, 16, 374, 16, 618, 559, 1769, 1377, 289, 565, 309, 14015, 7133, 473, 5371, 18, 3047, 3417, 5879, 13, 480, 374, 13, 1377, 981, 18, 18356, 7049, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4074, 261, 7001, 2966, 1329, 16, 22416, 1161, 16, 509, 2943, 13, 225, 288, 565, 5371, 8526, 833, 273, 1329, 18, 588, 2615, 5621, 565, 3356, 3843, 981, 273, 1161, 18, 588, 1085, 5621, 565, 309, 261, 1968, 63, 21, 65, 1276, 21695, 2966, 13, 1377, 288, 202, 921, 1501, 21, 273, 14015, 10257, 2966, 13, 833, 63, 21, 65, 2934, 24805, 5621, 202, 430, 261, 3175, 21, 1276, 1412, 13, 202, 225, 288, 202, 565, 833, 63, 20, 8009, 11100, 12, 2919, 16, 374, 1769, 202, 565, 14015, 559, 13, 1501, 21, 2934, 18356, 2520, 1442, 12, 710, 1769, 202, 225, 289, 202, 12107, 202, 225, 604, 394, 1068, 7566, 22, 4880, 1501, 353, 486, 2 ]
public JPanel() { this(new FlowLayout(), true);
public JPanel(final LayoutManager layout, final boolean isDoubleBuffered) { setDoubleBuffered(isDoubleBuffered); setLayout(layout); LookAndFeel.installProperty(this, "opaque", Boolean.TRUE); updateUI();
public JPanel() { this(new FlowLayout(), true); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/9bad25bc3f8f9cc701dfb9555df351ae7577a2d8/JPanel.java/buggy/modules/swing/src/main/java/common/javax/swing/JPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24048, 1435, 288, 3639, 333, 12, 2704, 9473, 3744, 9334, 638, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 24048, 1435, 288, 3639, 333, 12, 2704, 9473, 3744, 9334, 638, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
TransformationUtil.hasSuperClass(classMetaData, "org.codehaus.aspectwerkz.aspect.Aspect")) {
TransformationUtil.implementsInterface(classMetaData, TransformationUtil.CROSS_CUTTING_CLASS)) {
private boolean classFilter( final CtClass ctClass, final ClassMetaData classMetaData, final SystemDefinition definition) { if (ctClass.isInterface() || TransformationUtil.hasSuperClass(classMetaData, "org.codehaus.aspectwerkz.aspect.Aspect")) { return true; } String className = ctClass.getName(); if (definition.inExcludePackage(className)) { return true; } if (definition.inIncludePackage(className) && definition.hasIntroductions(classMetaData)) { return false; } return true; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/b0ba357221e2d5844ffd056e799f790f3583a84b/AddInterfaceTransformer.java/clean/aspectwerkz2/src/main/org/codehaus/aspectwerkz/transform/AddInterfaceTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 667, 1586, 12, 5411, 727, 30714, 797, 5691, 797, 16, 5411, 727, 1659, 6998, 667, 6998, 16, 5411, 727, 2332, 1852, 2379, 13, 288, 3639, 309, 261, 299, 797, 18, 291, 1358, 1435, 747, 5411, 21274, 1304, 18, 17061, 1358, 12, 1106, 6998, 16, 21274, 1304, 18, 39, 1457, 1260, 67, 16001, 12239, 67, 5237, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 514, 2658, 273, 5691, 797, 18, 17994, 5621, 3639, 309, 261, 6907, 18, 267, 12689, 2261, 12, 12434, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 261, 6907, 18, 267, 8752, 2261, 12, 12434, 13, 597, 2379, 18, 5332, 1702, 303, 2544, 349, 87, 12, 1106, 6998, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 327, 638, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 667, 1586, 12, 5411, 727, 30714, 797, 5691, 797, 16, 5411, 727, 1659, 6998, 667, 6998, 16, 5411, 727, 2332, 1852, 2379, 13, 288, 3639, 309, 261, 299, 797, 18, 291, 1358, 1435, 747, 5411, 21274, 1304, 18, 17061, 1358, 12, 1106, 6998, 16, 21274, 1304, 18, 39, 1457, 1260, 67, 16001, 12239, 67, 5237, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 514, 2658, 273, 5691, 797, 18, 17994, 5621, 3639, 309, 261, 6907, 18, 267, 12689, 2261, 12, 12434, 3719, 288, 5411, 327, 638, 31, 3639, 289, 3639, 309, 261, 6907, 18, 267, 8752, 2261, 12, 12434, 13, 597, 2379, 18, 5332, 1702, 303, 2544, 349, 87, 12, 1106, 6998, 3719, 288, 5411, 2 ]
(Integer)((Vector)tableMod.getRow(ligneActive)).get(13)).setVisible(true);
(Integer)((Vector)tableMod.getRow(ligneActive)).get(14)).setVisible(true);
public void actionPerformed(ActionEvent e) { Object source = e.getSource(); // On revient la fentre de login if(source==this.deconnexion){ dispose(); Fenetre_login login=new Fenetre_login(); login.setVisible(true); } // Afficher les incidents else if(source==this.incident){ dispose(); new ConsulterIncident(this.utilisateur).setVisible(true); } else{ int ligneActive = table.getSelectedRow(); // Cration d'un nouveau chargement pour la destination selectionne if(ligneActive==-1) new FenetreWarning(""); else{ // cration d'un chargement if(source==this.creerChargement){ dispose(); try{ new CreerChargement(this.utilisateur, this.selectionnee.getDestination(), new AccesBDDCamion().rechercher((Integer)((Vector)tableMod.getRow(ligneActive)).get(0)), (Integer)((Vector)tableMod.getRow(ligneActive)).get(13)).setVisible(true); } catch(SQLException SQLE){ } } // Modification d'un ancien chargement else if(source==this.gererChargement) { dispose(); new ModifierChargement( this.utilisateur, (Integer)((Vector)tableMod.getRow(ligneActive)).get(10), this.selectionnee.getDestination().getId(), this.selectionnee.getVolume()).setVisible(true); } // Cration du plan de chargement else if(source==this.genererPlan){ dispose(); new PlanChargement(this.utilisateur,(Integer)((Vector)tableMod.getRow(ligneActive)).get(10)).setVisible(true); } // Imprimer une tiquette else if(source==this.imprimerEtiquette) JOptionPane.showMessageDialog(this,"L'impression a t lance","Message de confirmation",JOptionPane.YES_NO_CANCEL_OPTION); // Valider le chargement else if(source==this.validerCharg){ // Mise jour dans la BDD Integer idChargement=(Integer)((Vector)this.tableMod.getRow(ligneActive)).get(10); try{ AccesBDDChargement bddChargement=new AccesBDDChargement(); bddChargement.valider( bddChargement.rechercher(idChargement), (Integer)((Vector)this.tableMod.getRow(ligneActive)).get(13)); } catch(SQLException SQLE){ } // Mise jour du tableau this.tableMod.setValueAt(new Integer(0), ligneActive,10); this.tableMod.setValueAt(idChargement, ligneActive,11); this.tableMod.setValueAt("Valid", ligneActive,12); this.table.updateUI(); // Mise jour des boutons this.gererChargement.setEnabled(false); this.validerCharg.setEnabled(false); this.imprimerEtiquette.setEnabled(true); this.cloturerPrep.setEnabled(true); } // Cloturer la prparation else if(source==this.cloturerPrep) dispose(); } } }
56849 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56849/9db4fe62bf8816bbf21b2a5b2978ac68399a03b9/FenetrePrincipale.java/clean/trunk/ihm/preparation/FenetrePrincipale.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 921, 1084, 273, 425, 18, 588, 1830, 5621, 9506, 202, 759, 2755, 283, 522, 319, 225, 7125, 284, 319, 266, 443, 3925, 202, 202, 430, 12, 3168, 631, 2211, 18, 323, 4646, 23627, 15329, 1082, 202, 2251, 4150, 5621, 1082, 202, 42, 31034, 266, 67, 5819, 3925, 33, 2704, 478, 31034, 266, 67, 5819, 5621, 1082, 202, 5819, 18, 542, 6207, 12, 3767, 1769, 202, 202, 97, 202, 202, 759, 23906, 1354, 264, 18022, 7290, 350, 4877, 202, 202, 12107, 309, 12, 3168, 631, 2211, 18, 9523, 6392, 15329, 1082, 202, 2251, 4150, 5621, 1082, 202, 2704, 26337, 387, 14559, 6392, 12, 2211, 18, 1367, 24954, 2934, 542, 6207, 12, 3767, 1769, 202, 202, 97, 202, 202, 12107, 95, 1082, 202, 474, 328, 724, 73, 3896, 273, 1014, 18, 588, 7416, 1999, 5621, 1082, 202, 759, 385, 7034, 302, 11, 318, 1158, 89, 537, 8377, 1149, 75, 820, 24601, 7125, 2929, 4421, 4644, 1082, 202, 430, 12, 80, 724, 73, 3896, 631, 17, 21, 13, 9506, 202, 2704, 478, 31034, 266, 6210, 2932, 8863, 1082, 202, 12107, 95, 9506, 202, 759, 4422, 367, 302, 11, 318, 1149, 75, 820, 9506, 202, 430, 12, 3168, 631, 2211, 18, 1793, 264, 2156, 75, 820, 15329, 6862, 202, 2251, 4150, 5621, 6862, 202, 698, 95, 25083, 202, 2704, 5799, 264, 2156, 75, 820, 12, 2211, 18, 1367, 24954, 16, 20982, 202, 2211, 18, 10705, 82, 1340, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 921, 1084, 273, 425, 18, 588, 1830, 5621, 9506, 202, 759, 2755, 283, 522, 319, 225, 7125, 284, 319, 266, 443, 3925, 202, 202, 430, 12, 3168, 631, 2211, 18, 323, 4646, 23627, 15329, 1082, 202, 2251, 4150, 5621, 1082, 202, 42, 31034, 266, 67, 5819, 3925, 33, 2704, 478, 31034, 266, 67, 5819, 5621, 1082, 202, 5819, 18, 542, 6207, 12, 3767, 1769, 202, 202, 97, 202, 202, 759, 23906, 1354, 264, 18022, 7290, 350, 4877, 202, 202, 12107, 309, 12, 3168, 631, 2211, 18, 9523, 6392, 15329, 1082, 202, 2251, 4150, 5621, 1082, 202, 2704, 26337, 387, 14559, 6392, 12, 2211, 18, 1367, 24954, 2 ]
JViewport v = (JViewport)c; Component view = v.getView();
JViewport port = (JViewport)c; Component view = port.getView();
public void paint(Graphics g, JComponent c) { JViewport v = (JViewport)c; Component view = v.getView(); if (view == null) return; Point pos = v.getViewPosition(); Rectangle viewBounds = view.getBounds(); Rectangle portBounds = v.getBounds(); if (viewBounds.width == 0 || viewBounds.height == 0 || portBounds.width == 0 || portBounds.height == 0) return; if (backingStoreImage == null || backingStoreWidth != viewBounds.width || backingStoreHeight != viewBounds.height) { backingStoreImage = v.createImage(viewBounds.width, viewBounds.height); backingStoreWidth = viewBounds.width; backingStoreHeight = viewBounds.height; } Graphics g2 = backingStoreImage.getGraphics(); if (c.getBackground() != null) { // fill the backing store background java.awt.Color save = g2.getColor(); g2.setColor(c.getBackground()); g2.fillRect (0, 0, backingStoreWidth, backingStoreHeight); g2.setColor(save); // fill the viewport background save = g.getColor(); g.setColor(c.getBackground()); g.fillRect (0, 0, portBounds.width, portBounds.height); g.setColor(save); } else { // clear the backing store background g2.clearRect(0, 0, backingStoreWidth, backingStoreHeight); // clear the viewport background g.clearRect(0, 0, portBounds.width, portBounds.height); } g2.setClip(g.getClipBounds()); g2.translate(-pos.x, -pos.y); try { view.paint(g2); } finally { g2.translate(pos.x, pos.y); } g2 = null; g.drawImage(backingStoreImage, 0, 0, (ImageObserver)null); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b55284b1c42a24d7d97bd4f801888b3dbb3e71f8/BasicViewportUI.java/buggy/libraries/javalib/javax/swing/plaf/basic/BasicViewportUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12574, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 1850, 804, 22743, 331, 273, 261, 46, 22743, 13, 71, 31, 565, 5435, 1476, 273, 331, 18, 588, 1767, 5621, 565, 309, 261, 1945, 422, 446, 13, 1377, 327, 31, 565, 4686, 949, 273, 331, 18, 588, 1767, 2555, 5621, 565, 13264, 1476, 5694, 273, 1476, 18, 588, 5694, 5621, 565, 13264, 1756, 5694, 273, 331, 18, 588, 5694, 5621, 565, 309, 261, 1945, 5694, 18, 2819, 422, 374, 540, 747, 1476, 5694, 18, 4210, 422, 374, 3639, 747, 1756, 5694, 18, 2819, 422, 374, 3639, 747, 1756, 5694, 18, 4210, 422, 374, 13, 1377, 327, 31, 565, 309, 261, 823, 310, 2257, 2040, 422, 446, 540, 747, 15394, 2257, 2384, 480, 1476, 5694, 18, 2819, 3639, 747, 15394, 2257, 2686, 480, 1476, 5694, 18, 4210, 13, 1377, 288, 3639, 15394, 2257, 2040, 273, 331, 18, 2640, 2040, 12, 1945, 5694, 18, 2819, 16, 1476, 5694, 18, 4210, 1769, 3639, 15394, 2257, 2384, 273, 1476, 5694, 18, 2819, 31, 3639, 15394, 2257, 2686, 273, 1476, 5694, 18, 4210, 31, 1377, 289, 565, 16830, 314, 22, 273, 15394, 2257, 2040, 18, 588, 17558, 5621, 565, 309, 261, 71, 18, 588, 8199, 1435, 480, 446, 13, 1377, 288, 3639, 368, 3636, 326, 15394, 1707, 5412, 3639, 2252, 18, 2219, 88, 18, 2957, 1923, 273, 314, 22, 18, 588, 2957, 5621, 3639, 314, 22, 18, 542, 2957, 12, 71, 18, 588, 8199, 10663, 3639, 314, 22, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12574, 12, 17558, 314, 16, 29058, 276, 13, 225, 288, 1850, 804, 22743, 331, 273, 261, 46, 22743, 13, 71, 31, 565, 5435, 1476, 273, 331, 18, 588, 1767, 5621, 565, 309, 261, 1945, 422, 446, 13, 1377, 327, 31, 565, 4686, 949, 273, 331, 18, 588, 1767, 2555, 5621, 565, 13264, 1476, 5694, 273, 1476, 18, 588, 5694, 5621, 565, 13264, 1756, 5694, 273, 331, 18, 588, 5694, 5621, 565, 309, 261, 1945, 5694, 18, 2819, 422, 374, 540, 747, 1476, 5694, 18, 4210, 422, 374, 3639, 747, 1756, 5694, 18, 2819, 422, 374, 3639, 747, 1756, 5694, 18, 4210, 422, 374, 13, 1377, 327, 31, 565, 309, 261, 823, 310, 2257, 2040, 422, 446, 2 ]
TypeInfo info = (TypeInfo) typeInfoMap.get(name); while (info != null) { if (info.name().equals(name) && info.pointerDepth() == i) { return info;
TypeInfo info = closestTypeInfo(name, i + type.pointerDepth()); if (info != null) { if (DEBUG_TYPE_INFO) { System.err.println(" info.name=" + info.name() + ", name=" + name + ", info.pointerDepth=" + info.pointerDepth() + ", type.pointerDepth=" + type.pointerDepth());
public TypeInfo typeInfo(Type type, TypeDictionary typedefDictionary) { // Because typedefs of pointer types can show up at any point, // walk the pointer chain looking for a typedef name that is in // the TypeInfo map. int pointerDepth = type.pointerDepth(); for (int i = 0; i <= pointerDepth; i++) { String name = type.getName(); if (name != null) { TypeInfo info = (TypeInfo) typeInfoMap.get(name); while (info != null) { if (info.name().equals(name) && info.pointerDepth() == i) { return info; } info = info.next(); } } if (type.isCompound()) { // Try struct name as well name = type.asCompound().getStructName(); if (name != null) { TypeInfo info = (TypeInfo) typeInfoMap.get(name); while (info != null) { if (info.name().equals(name) && info.pointerDepth() == i) { return info; } info = info.next(); } } } // Try all typedef names that map to this type Set entrySet = typedefDictionary.entrySet(); for (Iterator iter = entrySet.iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); // "eq" equality is OK to use here since all types have been canonicalized if (entry.getValue() == type) { name = (String) entry.getKey(); TypeInfo info = (TypeInfo) typeInfoMap.get(name); while (info != null) { if (info.name().equals(name) && info.pointerDepth() == i) { return info; } info = info.next(); } } } if (type.isPointer()) { type = type.asPointer().getTargetType(); } } return null; }
48318 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48318/1754f08ec0fb62ecd23f1ec3ec7c94da9a44de7a/JavaConfiguration.java/clean/src/java/com/sun/gluegen/JavaConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1412, 966, 23112, 12, 559, 618, 16, 1412, 10905, 618, 536, 10905, 13, 288, 565, 368, 15191, 618, 12537, 434, 4407, 1953, 848, 2405, 731, 622, 1281, 1634, 16, 565, 368, 5442, 326, 4407, 2687, 7849, 364, 279, 618, 536, 508, 716, 353, 316, 565, 368, 326, 1412, 966, 852, 18, 565, 509, 4407, 6148, 273, 618, 18, 10437, 6148, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 1648, 4407, 6148, 31, 277, 27245, 288, 1377, 514, 508, 273, 618, 18, 17994, 5621, 1377, 309, 261, 529, 480, 446, 13, 288, 3639, 1412, 966, 1123, 273, 261, 17305, 13, 23112, 863, 18, 588, 12, 529, 1769, 3639, 1323, 261, 1376, 480, 446, 13, 288, 1850, 309, 261, 1376, 18, 529, 7675, 14963, 12, 529, 13, 597, 1123, 18, 10437, 6148, 1435, 422, 277, 13, 288, 5411, 327, 1123, 31, 1850, 289, 1850, 1123, 273, 1123, 18, 4285, 5621, 3639, 289, 1377, 289, 1377, 309, 261, 723, 18, 291, 16835, 10756, 288, 3639, 368, 6161, 1958, 508, 487, 5492, 3639, 508, 273, 618, 18, 345, 16835, 7675, 588, 3823, 461, 5621, 3639, 309, 261, 529, 480, 446, 13, 288, 1850, 1412, 966, 1123, 273, 261, 17305, 13, 23112, 863, 18, 588, 12, 529, 1769, 1850, 1323, 261, 1376, 480, 446, 13, 288, 5411, 309, 261, 1376, 18, 529, 7675, 14963, 12, 529, 13, 597, 1123, 18, 10437, 6148, 1435, 422, 277, 13, 288, 2868, 327, 1123, 31, 5411, 289, 5411, 1123, 273, 1123, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1412, 966, 23112, 12, 559, 618, 16, 1412, 10905, 618, 536, 10905, 13, 288, 565, 368, 15191, 618, 12537, 434, 4407, 1953, 848, 2405, 731, 622, 1281, 1634, 16, 565, 368, 5442, 326, 4407, 2687, 7849, 364, 279, 618, 536, 508, 716, 353, 316, 565, 368, 326, 1412, 966, 852, 18, 565, 509, 4407, 6148, 273, 618, 18, 10437, 6148, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 1648, 4407, 6148, 31, 277, 27245, 288, 1377, 514, 508, 273, 618, 18, 17994, 5621, 1377, 309, 261, 529, 480, 446, 13, 288, 3639, 1412, 966, 1123, 273, 261, 17305, 13, 23112, 863, 18, 588, 12, 529, 1769, 3639, 1323, 261, 1376, 480, 446, 13, 288, 1850, 2 ]
public String[][] getColumns() { return (this.columns);
public static String[][] getColumns() { return (s_columns);
public String[][] getColumns() { return (this.columns); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/21dc99512d304cb7fc40b6c694a58a3685cf18d1/AssetModel.java/buggy/opennms-webapp/src/main/java/org/opennms/web/asset/AssetModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 63, 6362, 65, 14226, 1435, 288, 3639, 327, 261, 2211, 18, 5112, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 63, 6362, 65, 14226, 1435, 288, 3639, 327, 261, 2211, 18, 5112, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public final Symbol overridingSymbol(Type sub) { return overridingSymbol(sub, false);
public final Symbol overridingSymbol(Type sub, boolean exact) { Type.Relation relation = exact ? Type.Relation.SameType : Type.Relation.SubType; return sub.lookup(this, sub, relation);
public final Symbol overridingSymbol(Type sub) { return overridingSymbol(sub, false); }
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/233229a0f801998b4aab15f81fed417d86f8ad6e/Symbol.java/clean/sources/scalac/symtab/Symbol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 8565, 19488, 5335, 12, 559, 720, 13, 288, 3639, 327, 19488, 5335, 12, 1717, 16, 629, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 8565, 19488, 5335, 12, 559, 720, 13, 288, 3639, 327, 19488, 5335, 12, 1717, 16, 629, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (shell == null) shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
public void run() { if (shell == null) shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); IWorkingSetManager manager = PlatformUI.getWorkbench().getWorkingSetManager(); IWorkingSetSelectionDialog dialog = manager.createWorkingSetSelectionDialog(shell, false); IWorkingSet workingSet = actionGroup.getWorkingSet(); if (workingSet != null) dialog.setSelection(new IWorkingSet[]{workingSet}); if (dialog.open() == Window.OK) { IWorkingSet[] result = dialog.getSelection(); if (result != null && result.length > 0) { actionGroup.setWorkingSet(result[0]); manager.addRecentWorkingSet(result[0]); } else { actionGroup.setWorkingSet(null); } } else actionGroup.setWorkingSet(workingSet); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/69d100501f5f83d8001e47b45bbe885b63200c0d/SelectWorkingSetAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/actions/SelectWorkingSetAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 430, 261, 10304, 422, 446, 13, 1082, 202, 10304, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 5621, 202, 202, 45, 14836, 694, 1318, 3301, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 14836, 694, 1318, 5621, 202, 202, 45, 14836, 694, 6233, 6353, 6176, 273, 3301, 18, 2640, 14836, 694, 6233, 6353, 12, 10304, 16, 629, 1769, 202, 202, 45, 14836, 694, 5960, 694, 273, 1301, 1114, 18, 588, 14836, 694, 5621, 9506, 202, 430, 261, 20478, 694, 480, 446, 13, 1082, 202, 12730, 18, 542, 6233, 12, 2704, 467, 14836, 694, 63, 7073, 20478, 694, 22938, 202, 202, 430, 261, 12730, 18, 3190, 1435, 422, 6076, 18, 3141, 13, 288, 1082, 202, 45, 14836, 694, 8526, 563, 273, 6176, 18, 588, 6233, 5621, 1082, 202, 430, 261, 2088, 480, 446, 597, 563, 18, 2469, 405, 374, 13, 288, 9506, 202, 1128, 1114, 18, 542, 14836, 694, 12, 2088, 63, 20, 19226, 9506, 202, 4181, 18, 1289, 17076, 14836, 694, 12, 2088, 63, 20, 19226, 1082, 202, 97, 1082, 202, 12107, 288, 9506, 202, 1128, 1114, 18, 542, 14836, 694, 12, 2011, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 12107, 1082, 202, 1128, 1114, 18, 542, 14836, 694, 12, 20478, 694, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 430, 261, 10304, 422, 446, 13, 1082, 202, 10304, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 5621, 202, 202, 45, 14836, 694, 1318, 3301, 273, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 14836, 694, 1318, 5621, 202, 202, 45, 14836, 694, 6233, 6353, 6176, 273, 3301, 18, 2640, 14836, 694, 6233, 6353, 12, 10304, 16, 629, 1769, 202, 202, 45, 14836, 694, 5960, 694, 273, 1301, 1114, 18, 588, 14836, 694, 5621, 9506, 202, 430, 261, 20478, 694, 480, 446, 13, 1082, 202, 12730, 18, 542, 6233, 12, 2704, 467, 14836, 694, 63, 7073, 20478, 694, 22938, 202, 202, 430, 2 ]
index = indexFromString(s); if (index != NO_INDEX)
long indexTest = indexFromString(s); if (indexTest >= 0) { index = (int)indexTest;
public static Object setElem(Object obj, Object id, Object value, Scriptable scope) { int index; String s; if (id instanceof Number) { double d = ((Number) id).doubleValue(); index = (int) d; s = ((double) index) == d ? null : toString(id); } else { s = toString(id); index = indexFromString(s); if (index != NO_INDEX) s = null; else if (s.length() == 1 && s.charAt(0) == NO_INDEX_CHAR) { // disambiguate return value: was actually a number s = null; } } Scriptable start = obj instanceof Scriptable ? (Scriptable) obj : toObject(scope, obj); Scriptable m = start; if (s != null) { if (s.equals("__proto__")) return setProto(obj, value, scope); if (s.equals("__parent__")) return setParent(obj, value, scope); do { if (m.has(s, start)) { m.put(s, start, value); return value; } m = m.getPrototype(); } while (m != null); start.put(s, start, value); return value; } do { if (m.has(index, start)) { m.put(index, start, value); return value; } m = m.getPrototype(); } while (m != null); start.put(index, start, value); return value; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/5e0b2ebaed49fc9dc92fb0127fd9256424173c6e/ScriptRuntime.java/buggy/js/rhino/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 444, 7498, 12, 921, 1081, 16, 1033, 612, 16, 1033, 460, 16, 4766, 22780, 2146, 13, 565, 288, 3639, 509, 770, 31, 3639, 514, 272, 31, 3639, 309, 261, 350, 1276, 3588, 13, 288, 5411, 1645, 302, 273, 14015, 1854, 13, 612, 2934, 9056, 620, 5621, 5411, 770, 273, 261, 474, 13, 302, 31, 5411, 272, 273, 14015, 9056, 13, 770, 13, 422, 302, 692, 446, 294, 1762, 12, 350, 1769, 3639, 289, 469, 288, 5411, 272, 273, 1762, 12, 350, 1769, 5411, 770, 273, 770, 9193, 12, 87, 1769, 5411, 309, 261, 1615, 480, 3741, 67, 9199, 13, 7734, 272, 273, 446, 31, 5411, 469, 309, 261, 87, 18, 2469, 1435, 422, 404, 597, 272, 18, 3001, 861, 12, 20, 13, 422, 3741, 67, 9199, 67, 7305, 13, 288, 7734, 368, 1015, 26011, 340, 327, 460, 30, 1703, 6013, 279, 1300, 7734, 272, 273, 446, 31, 5411, 289, 3639, 289, 3639, 22780, 787, 273, 1081, 1276, 22780, 5397, 692, 261, 3651, 429, 13, 1081, 5397, 294, 24216, 12, 4887, 16, 1081, 1769, 3639, 22780, 312, 273, 787, 31, 3639, 309, 261, 87, 480, 446, 13, 288, 5411, 309, 261, 87, 18, 14963, 2932, 972, 9393, 14437, 3719, 7734, 327, 444, 6262, 12, 2603, 16, 460, 16, 2146, 1769, 5411, 309, 261, 87, 18, 14963, 2932, 972, 2938, 14437, 3719, 7734, 327, 12548, 12, 2603, 16, 460, 16, 2146, 1769, 5411, 741, 288, 7734, 309, 261, 81, 18, 5332, 12, 87, 16, 787, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 444, 7498, 12, 921, 1081, 16, 1033, 612, 16, 1033, 460, 16, 4766, 22780, 2146, 13, 565, 288, 3639, 509, 770, 31, 3639, 514, 272, 31, 3639, 309, 261, 350, 1276, 3588, 13, 288, 5411, 1645, 302, 273, 14015, 1854, 13, 612, 2934, 9056, 620, 5621, 5411, 770, 273, 261, 474, 13, 302, 31, 5411, 272, 273, 14015, 9056, 13, 770, 13, 422, 302, 692, 446, 294, 1762, 12, 350, 1769, 3639, 289, 469, 288, 5411, 272, 273, 1762, 12, 350, 1769, 5411, 770, 273, 770, 9193, 12, 87, 1769, 5411, 309, 261, 1615, 480, 3741, 67, 9199, 13, 7734, 272, 273, 446, 31, 5411, 469, 309, 261, 87, 18, 2469, 1435, 422, 404, 597, 2 ]
public IntBuffer asIntBuffer ()
public IntBuffer asIntBuffer()
public IntBuffer asIntBuffer () { return new IntViewBufferImpl (this, remaining() >> 2); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/MappedByteBufferImpl.java/clean/core/src/classpath/java/java/nio/MappedByteBufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3094, 1892, 487, 1702, 1892, 1435, 225, 288, 565, 327, 394, 3094, 1767, 1892, 2828, 261, 2211, 16, 4463, 1435, 1671, 576, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,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30, 282, 1071, 3094, 1892, 487, 1702, 1892, 1435, 225, 288, 565, 327, 394, 3094, 1767, 1892, 2828, 261, 2211, 16, 4463, 1435, 1671, 576, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (fmt.equals("real")) pixelType[0] = FormatReader.UINT16;
if (fmt.equals("real")) pixelType[0] = FormatReader.FLOAT;
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); String icsId = id, idsId = id; int dot = id.lastIndexOf("."); String ext = dot < 0 ? "" : id.substring(dot + 1).toLowerCase(); if(ext.equals("ics")) { // convert C to D regardless of case char[] c = idsId.toCharArray(); c[c.length - 2]++; idsId = new String(c); } else if(ext.equals("ids")) { // convert D to C regardless of case char[] c = icsId.toCharArray(); c[c.length - 2]--; /*id = */icsId = new String(c); } if (icsId == null) throw new FormatException("No ICS file found."); File icsFile = new File(getMappedId(icsId)); if (!icsFile.exists()) throw new FormatException("ICS file not found."); // check if we have a v2 ICS file RandomAccessFile f = new RandomAccessFile(getMappedId(icsId), "r"); byte[] b = new byte[17]; f.read(b); f.close(); if (new String(b).trim().equals("ics_version\t2.0")) { idsIn = new RandomAccessStream(getMappedId(icsId)); versionTwo = true; } else { if (idsId == null) throw new FormatException("No IDS file found."); File idsFile = new File(getMappedId(idsId)); if (!idsFile.exists()) throw new FormatException("IDS file not found."); currentIdsId = idsId; idsIn = new RandomAccessStream(getMappedId(idsId)); } currentIcsId = icsId; icsIn = icsFile; BufferedReader reader = new BufferedReader(new FileReader(icsIn)); String line = reader.readLine(); line = reader.readLine(); StringTokenizer t; String token; while (line != null && !line.trim().equals("end")) { t = new StringTokenizer(line); while(t.hasMoreTokens()) { token = t.nextToken(); if (!token.equals("layout") && !token.equals("representation") && !token.equals("parameter") && !token.equals("history") && !token.equals("sensor")) { if (t.countTokens() < 3) { try { metadata.put(token, t.nextToken()); } catch (NoSuchElementException e) { } } else { String meta = t.nextToken(); while (t.hasMoreTokens()) { meta = meta + " " + t.nextToken(); } metadata.put(token, meta); } } } line = reader.readLine(); } String images = (String) metadata.get("sizes"); String ord = (String) metadata.get("order"); ord = ord.trim(); // bpp, width, height, z, channels StringTokenizer t1 = new StringTokenizer(images); StringTokenizer t2 = new StringTokenizer(ord); for(int i=0; i<dimensions.length; i++) { dimensions[i] = 1; } rgb = ord.indexOf("ch") >= 0 && ord.indexOf("ch") < ord.indexOf("x"); String imageToken; String orderToken; while (t1.hasMoreTokens() && t2.hasMoreTokens()) { imageToken = t1.nextToken().trim(); orderToken = t2.nextToken().trim(); if (orderToken.equals("bits")) { dimensions[0] = Integer.parseInt(imageToken); } else if(orderToken.equals("x")) { dimensions[1] = Integer.parseInt(imageToken); } else if(orderToken.equals("y")) { dimensions[2] = Integer.parseInt(imageToken); } else if(orderToken.equals("z")) { dimensions[3] = Integer.parseInt(imageToken); } else if(orderToken.equals("ch")) { dimensions[4] = Integer.parseInt(imageToken); } else { dimensions[5] = Integer.parseInt(imageToken); } } int width = dimensions[1]; int height = dimensions[2]; numImages = dimensions[3] * dimensions[4] * dimensions[5]; String endian = (String) metadata.get("byte_order"); littleEndian = true; if (endian != null) { StringTokenizer endianness = new StringTokenizer(endian); int firstByte = 0; int lastByte = 0; for(int i=0; i<endianness.countTokens(); i++) { if (i == 0) firstByte = Integer.parseInt(endianness.nextToken()); else lastByte = Integer.parseInt(endianness.nextToken()); } if (lastByte < firstByte) littleEndian = false; } String test = (String) metadata.get("compression"); boolean gzip = (test == null) ? false : test.equals("gzip"); if (versionTwo) { String s = idsIn.readLine(); while(!s.trim().equals("end")) s = idsIn.readLine(); } data = new byte[(int) (idsIn.length() - idsIn.getFilePointer())]; // extra check is because some of our datasets are labeled as 'gzip', and // have a valid GZIP header, but are actually uncompressed if (gzip && ((data.length / (numImages) < (width * height * dimensions[0]/8)))) { idsIn.read(data); byte[] buf = new byte[8192]; ByteVector v = new ByteVector(); try { GZIPInputStream decompressor = new GZIPInputStream(new ByteArrayInputStream(data)); int r = decompressor.read(buf, 0, buf.length); while (r > 0) { v.add(buf, 0, r); r = decompressor.read(buf, 0, buf.length); } data = v.toByteArray(); } catch (Exception dfe) { dfe.printStackTrace(); throw new FormatException("Error uncompressing gzip'ed data."); } } else idsIn.readFully(data); // Populate metadata store // The metadata store we're working with. MetadataStore store = getMetadataStore(id); store.setImage((String) metadata.get("filename"), null, null, null); // populate Pixels element String o = (String) metadata.get("order"); o = o.trim(); o = o.substring(o.indexOf("x")).trim(); char[] tempOrder = new char[(o.length() / 2) + 1]; int pt = 0; for (int i=0; i<o.length(); i+=2) { tempOrder[pt] = o.charAt(i); pt++; } o = new String(tempOrder).toUpperCase().trim(); if (o.indexOf("Z") == -1) o = o + "Z"; if (o.indexOf("T") == -1) o = o + "T"; if (o.indexOf("C") == -1) o = o + "C"; int bitsPerPixel = Integer.parseInt((String) metadata.get("significant_bits")); String fmt = (String) metadata.get("format"); String sign = (String) metadata.get("sign"); if (fmt.equals("real")) pixelType[0] = FormatReader.UINT16; else if (fmt.equals("integer")) { while (bitsPerPixel % 8 != 0) bitsPerPixel++; if (bitsPerPixel == 24 || bitsPerPixel == 48) bitsPerPixel /= 3; switch (bitsPerPixel) { case 8: pixelType[0] = FormatReader.UINT8; break; case 16: pixelType[0] = FormatReader.UINT16; break; case 32: pixelType[0] = FormatReader.UINT32; break; } } else { throw new RuntimeException("Unknown pixel format: " + format); } order = o; sizeX[0] = dimensions[1]; sizeY[0] = dimensions[2]; sizeZ[0] = dimensions[3]; sizeC[0] = dimensions[4]; sizeT[0] = dimensions[5]; currentOrder[0] = order.trim(); store.setPixels( new Integer(dimensions[1]), // SizeX new Integer(dimensions[2]), // SizeY new Integer(dimensions[3]), // SizeZ new Integer(dimensions[4]), // SizeC new Integer(dimensions[5]), // SizeT new Integer(pixelType[0]), // PixelType new Boolean(!littleEndian), // BigEndian ord, // DimensionOrder null); // Use index 0 }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/60468423aa07e5346071fe038c1324472c41e09e/ICSReader.java/buggy/loci/formats/in/ICSReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 514, 277, 2143, 548, 273, 612, 16, 3258, 548, 273, 612, 31, 565, 509, 3928, 273, 612, 18, 2722, 31985, 2932, 1199, 1769, 565, 514, 1110, 273, 3928, 411, 374, 692, 1408, 294, 612, 18, 28023, 12, 9811, 397, 404, 2934, 869, 5630, 5621, 565, 309, 12, 408, 18, 14963, 2932, 2102, 6, 3719, 288, 1377, 368, 1765, 385, 358, 463, 15255, 434, 648, 1377, 1149, 8526, 276, 273, 3258, 548, 18, 869, 15936, 5621, 1377, 276, 63, 71, 18, 2469, 300, 576, 3737, 15, 31, 1377, 3258, 548, 273, 394, 514, 12, 71, 1769, 565, 289, 565, 469, 309, 12, 408, 18, 14963, 2932, 2232, 6, 3719, 288, 1377, 368, 1765, 463, 358, 385, 15255, 434, 648, 1377, 1149, 8526, 276, 273, 277, 2143, 548, 18, 869, 15936, 5621, 1377, 276, 63, 71, 18, 2469, 300, 576, 65, 413, 31, 1377, 1748, 350, 273, 1195, 2102, 548, 273, 394, 514, 12, 71, 1769, 565, 289, 565, 309, 261, 2102, 548, 422, 446, 13, 604, 394, 4077, 503, 2932, 2279, 467, 4596, 585, 1392, 1199, 1769, 565, 1387, 277, 2143, 812, 273, 394, 1387, 12, 588, 12868, 548, 12, 2102, 548, 10019, 565, 309, 16051, 2102, 812, 18, 1808, 10756, 604, 394, 4077, 503, 2932, 28919, 585, 486, 1392, 1199, 1769, 565, 368, 866, 309, 732, 1240, 279, 331, 22, 467, 4596, 585, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 514, 277, 2143, 548, 273, 612, 16, 3258, 548, 273, 612, 31, 565, 509, 3928, 273, 612, 18, 2722, 31985, 2932, 1199, 1769, 565, 514, 1110, 273, 3928, 411, 374, 692, 1408, 294, 612, 18, 28023, 12, 9811, 397, 404, 2934, 869, 5630, 5621, 565, 309, 12, 408, 18, 14963, 2932, 2102, 6, 3719, 288, 1377, 368, 1765, 385, 358, 463, 15255, 434, 648, 1377, 1149, 8526, 276, 273, 3258, 548, 18, 869, 15936, 5621, 1377, 276, 63, 71, 18, 2469, 300, 576, 3737, 15, 31, 1377, 3258, 548, 273, 394, 514, 12, 71, 1769, 2 ]
resourceModel.put("label", formComponent.getLocalizer().getString(formComponent.getId(), formComponent.getParent(), formComponent.getId()));
resourceModel.put("label", formComponent.getLocalizer().getString( formComponent.getId(), formComponent.getParent(), formComponent.getId()));
protected Map messageModel(final FormComponent formComponent) { final Map resourceModel = new HashMap(4); resourceModel.put("input", formComponent.getInput()); resourceModel.put("name", formComponent.getId()); Object label = null; if (formComponent.getLabel() != null) { label = formComponent.getLabel().getObject(formComponent); } if (label != null) { resourceModel.put("label", label); } else { // apply default value (component id) if key/value can not be found resourceModel.put("label", formComponent.getLocalizer().getString(formComponent.getId(), formComponent.getParent(), formComponent.getId())); } return resourceModel; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/a4f0e3aba91d609ddd5e53c6e51f1ebed01c23bb/AbstractValidator.java/clean/wicket/src/java/wicket/markup/html/form/validation/AbstractValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1635, 883, 1488, 12, 6385, 2748, 1841, 646, 1841, 13, 202, 95, 202, 202, 6385, 1635, 1058, 1488, 273, 394, 4317, 12, 24, 1769, 202, 202, 3146, 1488, 18, 458, 2932, 2630, 3113, 646, 1841, 18, 588, 1210, 10663, 202, 202, 3146, 1488, 18, 458, 2932, 529, 3113, 646, 1841, 18, 26321, 10663, 202, 202, 921, 1433, 273, 446, 31, 202, 202, 430, 261, 687, 1841, 18, 588, 2224, 1435, 480, 446, 13, 202, 202, 95, 1082, 202, 1925, 273, 646, 1841, 18, 588, 2224, 7675, 588, 921, 12, 687, 1841, 1769, 202, 202, 97, 202, 202, 430, 261, 1925, 480, 446, 13, 202, 202, 95, 1082, 202, 3146, 1488, 18, 458, 2932, 1925, 3113, 1433, 1769, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 759, 2230, 805, 460, 261, 4652, 612, 13, 309, 498, 19, 1132, 848, 486, 506, 1392, 1082, 202, 3146, 1488, 18, 458, 2932, 1925, 3113, 646, 1841, 18, 588, 2042, 1824, 7675, 588, 780, 12, 687, 1841, 18, 26321, 9334, 4405, 202, 687, 1841, 18, 588, 3054, 9334, 646, 1841, 18, 26321, 1435, 10019, 202, 202, 97, 202, 202, 2463, 1058, 1488, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1635, 883, 1488, 12, 6385, 2748, 1841, 646, 1841, 13, 202, 95, 202, 202, 6385, 1635, 1058, 1488, 273, 394, 4317, 12, 24, 1769, 202, 202, 3146, 1488, 18, 458, 2932, 2630, 3113, 646, 1841, 18, 588, 1210, 10663, 202, 202, 3146, 1488, 18, 458, 2932, 529, 3113, 646, 1841, 18, 26321, 10663, 202, 202, 921, 1433, 273, 446, 31, 202, 202, 430, 261, 687, 1841, 18, 588, 2224, 1435, 480, 446, 13, 202, 202, 95, 1082, 202, 1925, 273, 646, 1841, 18, 588, 2224, 7675, 588, 921, 12, 687, 1841, 1769, 202, 202, 97, 202, 202, 430, 261, 1925, 480, 446, 13, 202, 202, 95, 1082, 202, 3146, 1488, 18, 458, 2932, 1925, 3113, 1433, 2 ]
} else if (myChild2.getElementType() == ElementType.SEMICOLON) {
} else if (myChild2.getElementType() == ElementType.SEMICOLON) {
public void visitMethod(PsiMethod method) { if (myChild1.getElementType() == JavaDocElementType.DOC_COMMENT) { myResult = Formatter.getInstance().createSpaceProperty(0, 0, 1, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_DECLARATIONS); return; } if (myRole2 == ChildRole.PARAMETER_LIST) { createSpaceInCode(mySettings.SPACE_BEFORE_METHOD_PARENTHESES); } else if (myRole1 == ChildRole.PARAMETER_LIST && myRole2 == ChildRole.THROWS_LIST) { createSpaceInCode(true); } else if (myRole2 == ChildRole.METHOD_BODY) { myResult = getSpaceBeforeLBrace(mySettings.SPACE_BEFORE_METHOD_LBRACE, mySettings.METHOD_BRACE_STYLE, new TextRange(myParent.getTextRange().getStartOffset(), myChild2.getTextRange().getStartOffset()), mySettings.KEEP_SIMPLE_METHODS_IN_ONE_LINE); } else if (myRole1 == ChildRole.MODIFIER_LIST) { processModifierList(); } else if (ElementType.COMMENT_BIT_SET.isInSet(myChild1.getElementType()) && (myRole2 == ChildRole.MODIFIER_LIST || myRole2 == ChildRole.TYPE_REFERENCE)) { myResult = Formatter.getInstance().createSpaceProperty(0, 0, 1, mySettings.KEEP_LINE_BREAKS, 0); } else if (myRole2 == ChildRole.DEFAULT_KEYWORD) { createSpaceInCode(true); } else if (myRole2 == ChildRole.ANNOTATION_DEFAULT_VALUE) { createSpaceInCode(true); } else if (myChild2.getElementType() == ElementType.SEMICOLON) { createSpaceInCode(false); } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/1533398430214d8ae562ff3d8dcc5898351f8c45/JavaSpacePropertyProcessor.java/clean/source/com/intellij/psi/formatter/java/JavaSpacePropertyProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 25138, 12, 52, 7722, 1305, 707, 13, 288, 565, 309, 261, 4811, 1763, 21, 18, 588, 17481, 1435, 422, 5110, 1759, 17481, 18, 19693, 67, 12200, 13, 288, 1377, 3399, 1253, 273, 14924, 18, 588, 1442, 7675, 2640, 3819, 1396, 12, 20, 16, 374, 16, 404, 16, 3399, 2628, 18, 6859, 10541, 67, 5997, 67, 27960, 55, 16, 3399, 2628, 18, 6859, 10541, 67, 38, 24307, 67, 5997, 55, 67, 706, 67, 23956, 985, 15297, 1769, 1377, 327, 31, 565, 289, 3639, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 9819, 67, 7085, 13, 288, 1377, 752, 3819, 382, 1085, 12, 4811, 2628, 18, 6616, 67, 19152, 67, 5327, 67, 14943, 3900, 1090, 55, 1769, 565, 289, 565, 469, 309, 261, 4811, 2996, 21, 422, 7451, 2996, 18, 9819, 67, 7085, 597, 3399, 2996, 22, 422, 7451, 2996, 18, 2455, 28402, 67, 7085, 13, 288, 1377, 752, 3819, 382, 1085, 12, 3767, 1769, 565, 289, 469, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 5327, 67, 16691, 13, 288, 1377, 3399, 1253, 273, 1322, 909, 4649, 12995, 9963, 12, 4811, 2628, 18, 6616, 67, 19152, 67, 5327, 67, 12995, 9254, 16, 3399, 2628, 18, 5327, 67, 26980, 67, 15066, 16, 394, 3867, 2655, 12, 4811, 3054, 18, 588, 1528, 2655, 7675, 588, 1685, 2335, 9334, 28524, 4766, 12900, 3399, 1763, 22, 18, 588, 1528, 2655, 7675, 588, 1685, 2335, 1435, 3631, 4766, 1377, 3399, 2628, 18, 6859, 10541, 67, 31669, 900, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 25138, 12, 52, 7722, 1305, 707, 13, 288, 565, 309, 261, 4811, 1763, 21, 18, 588, 17481, 1435, 422, 5110, 1759, 17481, 18, 19693, 67, 12200, 13, 288, 1377, 3399, 1253, 273, 14924, 18, 588, 1442, 7675, 2640, 3819, 1396, 12, 20, 16, 374, 16, 404, 16, 3399, 2628, 18, 6859, 10541, 67, 5997, 67, 27960, 55, 16, 3399, 2628, 18, 6859, 10541, 67, 38, 24307, 67, 5997, 55, 67, 706, 67, 23956, 985, 15297, 1769, 1377, 327, 31, 565, 289, 3639, 309, 261, 4811, 2996, 22, 422, 7451, 2996, 18, 9819, 67, 7085, 13, 288, 1377, 752, 3819, 382, 1085, 12, 4811, 2628, 18, 6616, 67, 19152, 67, 5327, 67, 14943, 3900, 1090, 55, 1769, 2 ]
TermEnum te = ir.terms(new Term("body", "pi*"));
String prefix = "pi"; TermEnum te = ir.terms(new Term("body", prefix + "*"));
public void testPhrasePrefix() throws IOException { RAMDirectory indexStore = new RAMDirectory(); IndexWriter writer = new IndexWriter(indexStore, new SimpleAnalyzer(), true); Document doc1 = new Document(); Document doc2 = new Document(); Document doc3 = new Document(); Document doc4 = new Document(); doc1.add(Field.Text("body", "blueberry pie")); doc2.add(Field.Text("body", "blueberry pizza")); doc3.add(Field.Text("body", "blueberry chewing gum")); doc4.add(Field.Text("body", "picadelly circus")); writer.addDocument(doc1); writer.addDocument(doc2); writer.addDocument(doc3); writer.addDocument(doc4); writer.optimize(); writer.close(); IndexSearcher searcher = new IndexSearcher(indexStore); PhrasePrefixQuery query1 = new PhrasePrefixQuery(); PhrasePrefixQuery query2 = new PhrasePrefixQuery(); query1.add(new Term("body", "blueberry")); query2.add(new Term("body", "strawberry")); LinkedList termsWithPrefix = new LinkedList(); IndexReader ir = IndexReader.open(indexStore); // this TermEnum gives "picadelly", "pie" and "pizza". TermEnum te = ir.terms(new Term("body", "pi*")); do { termsWithPrefix.add(te.term()); } while (te.next()); query1.add((Term[])termsWithPrefix.toArray(new Term[0])); query2.add((Term[])termsWithPrefix.toArray(new Term[0])); Hits result; result = searcher.search(query1); assertEquals(2, result.length()); result = searcher.search(query2); assertEquals(0, result.length()); }
50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/f980ec23e51c6dc3cd2188990fb04a335c5f6ca6/TestPhrasePrefixQuery.java/clean/src/test/org/apache/lucene/search/TestPhrasePrefixQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 12812, 2244, 1435, 3639, 1216, 1860, 565, 288, 3639, 30327, 2853, 770, 2257, 273, 394, 30327, 2853, 5621, 3639, 3340, 2289, 2633, 273, 394, 3340, 2289, 12, 1615, 2257, 16, 394, 4477, 12803, 9334, 638, 1769, 3639, 4319, 997, 21, 273, 394, 4319, 5621, 3639, 4319, 997, 22, 273, 394, 4319, 5621, 3639, 4319, 997, 23, 273, 394, 4319, 5621, 202, 2519, 997, 24, 273, 394, 4319, 5621, 202, 2434, 21, 18, 1289, 12, 974, 18, 1528, 2932, 3432, 3113, 315, 14081, 70, 21938, 293, 1385, 7923, 1769, 3639, 997, 22, 18, 1289, 12, 974, 18, 1528, 2932, 3432, 3113, 315, 14081, 70, 21938, 293, 452, 11939, 7923, 1769, 3639, 997, 23, 18, 1289, 12, 974, 18, 1528, 2932, 3432, 3113, 315, 14081, 70, 21938, 462, 359, 310, 314, 379, 7923, 1769, 3639, 997, 24, 18, 1289, 12, 974, 18, 1528, 2932, 3432, 3113, 315, 20003, 361, 292, 715, 18956, 407, 7923, 1769, 3639, 2633, 18, 1289, 2519, 12, 2434, 21, 1769, 3639, 2633, 18, 1289, 2519, 12, 2434, 22, 1769, 3639, 2633, 18, 1289, 2519, 12, 2434, 23, 1769, 3639, 2633, 18, 1289, 2519, 12, 2434, 24, 1769, 202, 6299, 18, 29155, 5621, 202, 6299, 18, 4412, 5621, 202, 1016, 2979, 264, 27349, 273, 394, 3340, 2979, 264, 12, 1615, 2257, 1769, 202, 12812, 2244, 1138, 843, 21, 273, 394, 4360, 5648, 2244, 1138, 5621, 202, 12812, 2244, 1138, 843, 22, 273, 394, 4360, 5648, 2244, 1138, 5621, 202, 2271, 21, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 12812, 2244, 1435, 3639, 1216, 1860, 565, 288, 3639, 30327, 2853, 770, 2257, 273, 394, 30327, 2853, 5621, 3639, 3340, 2289, 2633, 273, 394, 3340, 2289, 12, 1615, 2257, 16, 394, 4477, 12803, 9334, 638, 1769, 3639, 4319, 997, 21, 273, 394, 4319, 5621, 3639, 4319, 997, 22, 273, 394, 4319, 5621, 3639, 4319, 997, 23, 273, 394, 4319, 5621, 202, 2519, 997, 24, 273, 394, 4319, 5621, 202, 2434, 21, 18, 1289, 12, 974, 18, 1528, 2932, 3432, 3113, 315, 14081, 70, 21938, 293, 1385, 7923, 1769, 3639, 997, 22, 18, 1289, 12, 974, 18, 1528, 2932, 3432, 3113, 315, 14081, 70, 21938, 293, 452, 11939, 7923, 1769, 3639, 997, 23, 18, 1289, 12, 2 ]
output = output.replaceAll("\r",""); output = output.replaceAll("\n","");
output = StringUtils.replace(output,"\r",""); output = StringUtils.replace(output,"\n","");
private void formatAndTest(String compare, String output) { //fix for introduced carriage return / line feeds output = output.replaceAll("\r",""); output = output.replaceAll("\n",""); output = output.trim(); assertEquals(compare, output); }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/d35243d93417203419685737c1434918c5e62bae/TestBaseTag.java/buggy/src/test/org/apache/struts/taglib/html/TestBaseTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 740, 1876, 4709, 12, 780, 3400, 16, 514, 876, 13, 288, 202, 202, 759, 904, 364, 26339, 5926, 27935, 327, 342, 980, 27684, 202, 202, 2844, 273, 876, 18, 2079, 1595, 31458, 86, 3113, 3660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0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 740, 1876, 4709, 12, 780, 3400, 16, 514, 876, 13, 288, 202, 202, 759, 904, 364, 26339, 5926, 27935, 327, 342, 980, 27684, 202, 202, 2844, 273, 876, 18, 2079, 1595, 31458, 86, 3113, 3660, 1769, 202, 202, 2844, 273, 876, 18, 2079, 1595, 31458, 82, 3113, 3660, 1769, 202, 202, 2844, 273, 876, 18, 5290, 5621, 202, 565, 1815, 8867, 12, 9877, 16, 876, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (g > fixedArraySizeSq) { gIndex = fastGradientArraySize;
if (g >= fixedArraySizeSq) { pixels[indexer] = gradientOverflow;
private void fixedPointSimplestCaseNonCyclicFillRaster(int pixels[], int off, int adjust, int x, int y, int w, int h) { float iSq; // Square distance index final float indexFactor = fastGradientArraySize / radius; //constant part of X and Y coordinates for the entire raster final float constX = (a00*x) + (a01*y) + constA; final float constY = (a10*x) + (a11*y) + constB; final float deltaX = indexFactor * a00; //incremental change in dX final float deltaY = indexFactor * a10; //incremental change in dY float dX, dY; //the current distance from center final int fixedArraySizeSq= (fastGradientArraySize * fastGradientArraySize); float g, gDelta, gDeltaDelta, temp; //gradient square value int gIndex; // integer number used to index gradient array int iSqInt; // Square distance index int end, j; //indexing variables int indexer = off;//used to index pixels array // For every point in the raster, calculate the color at that point for(j = 0; j < h; j++){ //for every row //x and y (in user space) of the first pixel of this row dX = indexFactor * ((a01*j) + constX); dY = indexFactor * ((a11*j) + constY); // these values below here allow for an incremental calculation // of dX^2 + dY^2 temp = ((deltaX * deltaX) + (deltaY * deltaY)); //initialize to be equal to distance squared g = (((dY * dY) + (dX * dX)) ); gDelta = (((((deltaY * dY) + (deltaX * dX))* 2) + temp)); gDeltaDelta = ((temp * 2)); //for every column (inner loop begins here) for (end = indexer+w; indexer < end; indexer++) { //determine the distance to the center //since this is a non cyclic fill raster, crop at "1" and 0 if (g > fixedArraySizeSq) { gIndex = fastGradientArraySize; } // This should not happen as gIndex is a square // quantity. Code commented out on purpose // else if (g < 0) { // gIndex = 0; // } else { iSq = (g * invSqStepFloat); iSqInt = (int)iSq; //chop off fractional part iSq -= iSqInt; gIndex = (int)((iSq * sqrtLutFixed[iSqInt + 1]) + ((1-iSq) * sqrtLutFixed[iSqInt])); } pixels[indexer] = gradient[gIndex]; //incremental calculation g += gDelta; gDelta += gDeltaDelta; } indexer += adjust; } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/f24af1260d28d0053482e9ff3626d711ca0bf58a/RadialGradientPaintContext.java/buggy/sources/org/apache/batik/ext/awt/RadialGradientPaintContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5499, 2148, 24490, 395, 2449, 3989, 17992, 18964, 8026, 18637, 12, 474, 8948, 63, 6487, 4766, 18701, 509, 3397, 16, 4766, 21821, 509, 5765, 16, 4766, 18701, 509, 619, 16, 509, 677, 16, 4766, 18701, 509, 341, 16, 509, 366, 13, 288, 3639, 1431, 277, 19643, 31, 225, 368, 22029, 3888, 770, 3639, 727, 1431, 770, 6837, 273, 4797, 15651, 1076, 1225, 342, 5725, 31, 4202, 202, 3639, 368, 14384, 1087, 434, 1139, 471, 1624, 5513, 364, 326, 7278, 12553, 3639, 727, 1431, 1866, 60, 273, 261, 69, 713, 14, 92, 13, 397, 261, 69, 1611, 14, 93, 13, 397, 1866, 37, 31, 3639, 727, 1431, 1866, 61, 273, 261, 69, 2163, 14, 92, 13, 397, 261, 69, 2499, 14, 93, 13, 397, 1866, 38, 31, 3639, 727, 1431, 31329, 273, 770, 6837, 380, 279, 713, 31, 368, 15016, 287, 2549, 316, 302, 60, 3639, 727, 1431, 29697, 273, 770, 6837, 380, 279, 2163, 31, 368, 15016, 287, 2549, 316, 302, 61, 3639, 1431, 302, 60, 16, 302, 61, 31, 368, 5787, 783, 3888, 628, 4617, 3639, 727, 509, 5499, 1076, 1225, 19643, 33, 5411, 261, 8076, 15651, 1076, 1225, 380, 4797, 15651, 1076, 1225, 1769, 3639, 1431, 314, 16, 314, 9242, 16, 314, 9242, 9242, 16, 1906, 31, 368, 20219, 8576, 460, 3639, 509, 314, 1016, 31, 368, 3571, 1300, 1399, 358, 770, 10292, 526, 3639, 509, 277, 19643, 1702, 31, 368, 22029, 3888, 770, 3639, 1082, 565, 202, 3639, 509, 679, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5499, 2148, 24490, 395, 2449, 3989, 17992, 18964, 8026, 18637, 12, 474, 8948, 63, 6487, 4766, 18701, 509, 3397, 16, 4766, 21821, 509, 5765, 16, 4766, 18701, 509, 619, 16, 509, 677, 16, 4766, 18701, 509, 341, 16, 509, 366, 13, 288, 3639, 1431, 277, 19643, 31, 225, 368, 22029, 3888, 770, 3639, 727, 1431, 770, 6837, 273, 4797, 15651, 1076, 1225, 342, 5725, 31, 4202, 202, 3639, 368, 14384, 1087, 434, 1139, 471, 1624, 5513, 364, 326, 7278, 12553, 3639, 727, 1431, 1866, 60, 273, 261, 69, 713, 14, 92, 13, 397, 261, 69, 1611, 14, 93, 13, 397, 1866, 37, 31, 3639, 727, 1431, 1866, 61, 273, 261, 69, 2163, 14, 92, 13, 397, 2 ]
_t = __t175;
_t = __t179;
public final void expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST expr_AST_in = (AST)_t; AST varName = null; AST letVarName = null; Expression step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMMA: { AST __t161 = _t; AST tmp3_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; SequenceConstructor sc = new SequenceConstructor(context); sc.addExpression(left); sc.addExpression(right); path.add(sc); _t = __t161; _t = _t.getNextSibling(); break; } case LITERAL_return: { AST __t162 = _t; AST tmp4_AST_in = (AST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(context); PathExpr whereExpr= null; { int _cnt172=0; _loop172: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t164 = _t; AST tmp5_AST_in = (AST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt167=0; _loop167: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t166 = _t; varName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(context); expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t166; _t = _t.getNextSibling(); } else { if ( _cnt167>=1 ) { break _loop167; } else {throw new NoViableAltException(_t);} } _cnt167++; } while (true); } _t = __t164; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t168 = _t; AST tmp6_AST_in = (AST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt171=0; _loop171: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t170 = _t; letVarName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(context); expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t170; _t = _t.getNextSibling(); } else { if ( _cnt171>=1 ) { break _loop171; } else {throw new NoViableAltException(_t);} } _cnt171++; } while (true); } _t = __t168; _t = _t.getNextSibling(); break; } default: { if ( _cnt172>=1 ) { break _loop172; } else {throw new NoViableAltException(_t);} } } _cnt172++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { AST tmp7_AST_in = (AST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(context); expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case COMMA: case LITERAL_return: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 76: case 77: case LITERAL_parent: case LITERAL_ancestor: case 80: case 81: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { break; } default: { throw new NoViableAltException(_t); } } } expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(context); else expr= new LetExpr(context); expr.setVariable(clause.varName); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } action= expr; } path.add(action); _t = __t162; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t174 = _t; AST tmp8_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t174; _t = _t.getNextSibling(); OpOr or= new OpOr(context); or.add(left); or.add(right); path.addPath(or); break; } case LITERAL_and: { AST __t175 = _t; AST tmp9_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t175; _t = _t.getNextSibling(); OpAnd and= new OpAnd(context); and.add(left); and.add(right); path.addPath(and); break; } case PARENTHESIZED: { AST __t176 = _t; AST tmp10_AST_in = (AST)_t; match(_t,PARENTHESIZED); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(context); path.addPath(expr); expr(_t,expr); _t = _retTree; _t = __t176; _t = _t.getNextSibling(); break; } case UNION: { AST __t177 = _t; AST tmp11_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t177; _t = _t.getNextSibling(); Union union= new Union(context, left, right); path.addPath(union); break; } case ABSOLUTE_SLASH: { AST __t178 = _t; AST tmp12_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case COMMA: case LITERAL_return: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 76: case 77: case LITERAL_parent: case LITERAL_ancestor: case 80: case 81: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t178; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t180 = _t; AST tmp13_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 76: case 77: case LITERAL_parent: case LITERAL_ancestor: case 80: case 81: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t180; _t = _t.getNextSibling(); break; } case LITERAL_to: { AST __t182 = _t; AST tmp14_AST_in = (AST)_t; match(_t,LITERAL_to); _t = _t.getFirstChild(); PathExpr start = new PathExpr(context); PathExpr end = new PathExpr(context); List args = new ArrayList(2); args.add(start); args.add(end); expr(_t,start); _t = _retTree; expr(_t,end); _t = _retTree; RangeExpression range = new RangeExpression(context); range.setArguments(args); path.addPath(range); _t = __t182; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 76: case 77: case LITERAL_parent: case LITERAL_ancestor: case 80: case 81: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } case ELEMENT: case TEXT: case XML_COMMENT: case XML_PI: case LCURLY: { step=constructor(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/542794bb5fd4ba67897c2c2677f4f663483ba69d/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 3065, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 13722, 273, 446, 31, 202, 202, 9053, 2231, 18129, 273, 446, 31, 202, 202, 2300, 2235, 33, 446, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 17373, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 31899, 273, 389, 88, 31, 1082, 202, 9053, 1853, 23, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 4208, 5535, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 6862, 6862, 202, 743, 4742, 2002, 33, 394, 2666, 4742, 12, 2472, 1769, 25083, 202, 743, 4742, 2145, 33, 394, 2666, 4742, 12, 2472, 1769, 6862, 9506, 202, 8638, 24899, 88, 16, 4482, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 8638, 24899, 88, 16, 4083, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 6862, 6862, 202, 4021, 6293, 888, 273, 394, 8370, 6293, 12, 2472, 1769, 25083, 202, 1017, 18, 1289, 2300, 12, 4482, 1769, 25083, 202, 1017, 18, 1289, 2300, 12, 4083, 1769, 25083, 202, 803, 18, 1289, 12, 1017, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 3065, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 13722, 273, 446, 31, 202, 202, 9053, 2231, 18129, 273, 446, 31, 202, 202, 2300, 2235, 33, 446, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 17373, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 31899, 273, 389, 88, 31, 1082, 202, 9053, 1853, 23, 67, 9053, 2 ]
log("DEPRECATED - The earfile attribute is deprecated. Use file attribute instead."); setFile(earFile);
log("DEPRECATED - The earfile attribute is deprecated. Use destfile attribute instead."); setDestFile(earFile);
public void setEarfile(File earFile) { log("DEPRECATED - The earfile attribute is deprecated. Use file attribute instead."); setFile(earFile); }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/491695a12f167c2ed9bbfbcfd7903b7bbc9cf162/Ear.java/clean/src/main/org/apache/tools/ant/taskdefs/Ear.java
[ 1, 8585, 326, 22398, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 444, 41, 297, 768, 12, 812, 6897, 812, 13, 288, 3639, 613, 2932, 17575, 300, 1021, 6897, 768, 1566, 353, 6849, 18, 2672, 585, 1566, 3560, 1199, 1769, 3639, 19658, 12, 2091, 812, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]