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
picture = ImageUtils.resize(picture.getPath(), d, useLossyCrop?cropTo:null);
picture = ImageUtils.resize(picture.getPath(), new Dimension(i, i), useLossyCrop?cropTo:null);
public File getUploadSource() { boolean useLossyCrop = false; File picture = getSource(); Album album = getParentAlbum(); // crop if (cropTo != null) { try { picture = ImageUtils.losslessCrop(picture.getPath(), cropTo); } catch (UnsupportedOperationException e) { Log.log(Log.LEVEL_ERROR, MODULE, "Couldn't use ImageUtils to losslessly crop the image, will try lossy"); Log.logException(Log.LEVEL_ERROR, MODULE, e); useLossyCrop = true; } } // resize if (album.getResize()) { Dimension d = album.getResizeDimension(); if (d == null || d.equals(new Dimension(0, 0))) { d = null; int l = album.getServerAutoResize(); if (l != 0) { d = new Dimension(l, l); } else { // server can't tell us how to resize, try default d = GalleryRemote._().properties.getDimensionProperty(RESIZE_TO_DEFAULT); if (d.equals(new Dimension(0, 0))) { d = null; } } } if (d != null || useLossyCrop) { try { picture = ImageUtils.resize(picture.getPath(), d, useLossyCrop?cropTo:null); } catch (UnsupportedOperationException e) { Log.log(Log.LEVEL_ERROR, MODULE, "Couldn't use ImageUtils to resize the image, it will be uploaded at the original size"); Log.logException(Log.LEVEL_ERROR, MODULE, e); } } } else if (useLossyCrop) { picture = ImageUtils.resize(picture.getPath(), null, useLossyCrop?cropTo:null); } // rotate if (angle != 0 || flipped) { try { picture = ImageUtils.rotate(picture.getPath(), angle, flipped, true); } catch (UnsupportedOperationException e) { Log.log(Log.LEVEL_ERROR, MODULE, "Couldn't use jpegtran to resize the image, it will be uploaded unrotated"); Log.logException(Log.LEVEL_ERROR, MODULE, e); } } return picture; }
5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/8693749ef266312f12ec8150a87446e302732ad0/Picture.java/buggy/gallery_remote/com/gallery/GalleryRemote/model/Picture.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1387, 29894, 1830, 1435, 288, 202, 202, 6494, 999, 20527, 93, 19729, 273, 629, 31, 202, 202, 812, 15406, 273, 7889, 5621, 202, 202, 30330, 14844, 273, 5089, 30330, 5621, 202, 202, 759, 7987, 202, 202, 430, 261, 13758, 774, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 21126, 273, 3421, 1989, 18, 7873, 2656, 19729, 12, 21126, 18, 588, 743, 9334, 7987, 774, 1769, 1082, 202, 97, 1044, 261, 8544, 10602, 425, 13, 288, 9506, 202, 1343, 18, 1330, 12, 1343, 18, 10398, 67, 3589, 16, 14057, 16, 315, 16342, 1404, 999, 3421, 1989, 358, 8324, 2656, 715, 7987, 326, 1316, 16, 903, 775, 8324, 93, 8863, 9506, 202, 1343, 18, 1330, 503, 12, 1343, 18, 10398, 67, 3589, 16, 14057, 16, 425, 1769, 9506, 202, 1202, 20527, 93, 19729, 273, 638, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 7041, 202, 202, 430, 261, 25090, 18, 588, 12182, 10756, 288, 1082, 202, 8611, 302, 273, 14844, 18, 588, 12182, 8611, 5621, 1082, 202, 430, 261, 72, 422, 446, 747, 302, 18, 14963, 12, 2704, 13037, 12, 20, 16, 374, 20349, 288, 9506, 202, 72, 273, 446, 31, 9506, 202, 474, 328, 273, 14844, 18, 588, 2081, 4965, 12182, 5621, 9506, 202, 430, 261, 80, 480, 374, 13, 288, 6862, 202, 72, 273, 394, 13037, 12, 80, 16, 328, 1769, 9506, 202, 97, 469, 288, 6862, 202, 759, 1438, 848, 1404, 9276, 584, 3661, 358, 7041, 16, 775, 805, 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, 1387, 29894, 1830, 1435, 288, 202, 202, 6494, 999, 20527, 93, 19729, 273, 629, 31, 202, 202, 812, 15406, 273, 7889, 5621, 202, 202, 30330, 14844, 273, 5089, 30330, 5621, 202, 202, 759, 7987, 202, 202, 430, 261, 13758, 774, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 21126, 273, 3421, 1989, 18, 7873, 2656, 19729, 12, 21126, 18, 588, 743, 9334, 7987, 774, 1769, 1082, 202, 97, 1044, 261, 8544, 10602, 425, 13, 288, 9506, 202, 1343, 18, 1330, 12, 1343, 18, 10398, 67, 3589, 16, 14057, 16, 315, 16342, 1404, 999, 3421, 1989, 358, 8324, 2656, 715, 7987, 326, 1316, 16, 903, 775, 8324, 93, 8863, 9506, 202, 1343, 18, 1330, 503, 2 ]
return new Integer (600);
return new Integer(600);
public Integer getDefaultMaxWindowSize () { final Integer super_max_window_size = super.getDefaultMaxWindowSize (); if (super_max_window_size != null) { // the superclass version of getDefaultMaxWindowSize () returns non-null // iff the user has set the max window size in the options file return super_max_window_size; } return new Integer (600); }
10874 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10874/e92f6382c8508ba25450826346a167188b4c3331/Codon12CorrelationAlgorithm.java/clean/uk/ac/sanger/artemis/plot/Codon12CorrelationAlgorithm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2144, 4829, 2747, 3829, 1225, 1832, 288, 565, 727, 2144, 2240, 67, 1896, 67, 5668, 67, 1467, 273, 2240, 18, 588, 1868, 2747, 3829, 1225, 261, 1769, 565, 309, 261, 9565, 67, 1896, 67, 5668, 67, 1467, 480, 446, 13, 288, 1377, 368, 326, 12098, 1177, 434, 4829, 2747, 3829, 1225, 1832, 1135, 1661, 17, 2011, 1377, 368, 21437, 326, 729, 711, 444, 326, 943, 2742, 963, 316, 326, 702, 585, 1377, 327, 2240, 67, 1896, 67, 5668, 67, 1467, 31, 565, 289, 565, 327, 394, 2144, 12, 28133, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2144, 4829, 2747, 3829, 1225, 1832, 288, 565, 727, 2144, 2240, 67, 1896, 67, 5668, 67, 1467, 273, 2240, 18, 588, 1868, 2747, 3829, 1225, 261, 1769, 565, 309, 261, 9565, 67, 1896, 67, 5668, 67, 1467, 480, 446, 13, 288, 1377, 368, 326, 12098, 1177, 434, 4829, 2747, 3829, 1225, 1832, 1135, 1661, 17, 2011, 1377, 368, 21437, 326, 729, 711, 444, 326, 943, 2742, 963, 316, 326, 702, 585, 1377, 327, 2240, 67, 1896, 67, 5668, 67, 1467, 31, 565, 289, 565, 327, 394, 2144, 12, 28133, 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 ]
protected void _handleVMDeathEvent(VMDeathEvent e) throws DebugException { _cleanUp(e); }
private void _handleVMDeathEvent(VMDeathEvent e) throws DebugException { _cleanUp(e); }
protected void _handleVMDeathEvent(VMDeathEvent e) throws DebugException { _cleanUp(e); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/fa54651cc7ac0d03884ebcafd7e8520df74651a1/EventHandlerThread.java/clean/drjava/src/edu/rice/cs/drjava/model/debug/EventHandlerThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 389, 4110, 7397, 758, 421, 1133, 12, 7397, 758, 421, 1133, 425, 13, 1216, 4015, 503, 288, 565, 389, 6200, 1211, 12, 73, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 389, 4110, 7397, 758, 421, 1133, 12, 7397, 758, 421, 1133, 425, 13, 1216, 4015, 503, 288, 565, 389, 6200, 1211, 12, 73, 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 ]
public MColoredJTable() { super(); setRowHeight(25); setShowHorizontalLines(false); setShowVerticalLines(false); setIntercellSpacing(new Dimension(1,1)); setOpaque(true); setBackground(TABLE_BACKGROUND_COLOR); this.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); this.getTableHeader().setReorderingAllowed(false); ((JLabel)this.getTableHeader().getDefaultRenderer()).setPreferredSize(new Dimension(0,34)); JLabel headerRendererJLabel = (JLabel) this.getTableHeader().getDefaultRenderer(); headerRendererJLabel.setHorizontalAlignment( SwingConstants.CENTER ); tableCellEditor = new MColoredTableCellEditor(this); tableCellRenderer = new MColoredTableCellRenderer(); }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/c30e22d496086e7c9532574ffe318a705b48f5f5/MColoredJTable.java/clean/gui/main/com/metavize/gui/widgets/coloredTable/MColoredJTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 49, 914, 7653, 46, 1388, 1435, 95, 9565, 5621, 542, 1999, 2686, 12, 2947, 1769, 542, 5706, 14457, 5763, 12, 5743, 1769, 542, 5706, 15704, 5763, 12, 5743, 1769, 542, 2465, 3855, 18006, 12, 2704, 8611, 12, 21, 16, 21, 10019, 542, 3817, 14886, 12, 3767, 1769, 542, 8199, 12, 7775, 67, 8720, 20166, 67, 10989, 1769, 2211, 18, 542, 6233, 2309, 12, 682, 6233, 1488, 18, 20184, 67, 16435, 67, 1090, 15445, 1769, 2211, 18, 588, 1388, 1864, 7675, 542, 426, 22598, 5042, 12, 5743, 1769, 12443, 46, 2224, 13, 2211, 18, 588, 1388, 1864, 7675, 588, 1868, 6747, 1435, 2934, 542, 16028, 1225, 12, 2704, 8611, 12, 20, 16, 5026, 10019, 46, 2224, 3374, 6747, 46, 2224, 28657, 46, 2224, 13, 2211, 18, 588, 1388, 1864, 7675, 588, 1868, 6747, 5621, 3374, 6747, 46, 2224, 18, 542, 14457, 11535, 12, 6050, 310, 2918, 18, 19835, 1769, 2121, 4020, 6946, 33, 2704, 49, 914, 7653, 1388, 4020, 6946, 12, 2211, 1769, 2121, 4020, 6747, 33, 2704, 49, 914, 7653, 1388, 4020, 6747, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 49, 914, 7653, 46, 1388, 1435, 95, 9565, 5621, 542, 1999, 2686, 12, 2947, 1769, 542, 5706, 14457, 5763, 12, 5743, 1769, 542, 5706, 15704, 5763, 12, 5743, 1769, 542, 2465, 3855, 18006, 12, 2704, 8611, 12, 21, 16, 21, 10019, 542, 3817, 14886, 12, 3767, 1769, 542, 8199, 12, 7775, 67, 8720, 20166, 67, 10989, 1769, 2211, 18, 542, 6233, 2309, 12, 682, 6233, 1488, 18, 20184, 67, 16435, 67, 1090, 15445, 1769, 2211, 18, 588, 1388, 1864, 7675, 542, 426, 22598, 5042, 12, 5743, 1769, 12443, 46, 2224, 13, 2211, 18, 588, 1388, 1864, 7675, 588, 1868, 6747, 1435, 2934, 542, 16028, 1225, 12, 2704, 8611, 12, 20, 16, 5026, 10019, 46, 2224, 3374, 6747, 46, 2 ]
QuickFix.EMPTY_ARRAY;
QuickFix.EMPTY_ARRAY;
public boolean visit(final IComponent component) { // Reset previous error (if any) component.putClientProperty(CLIENT_PROP_BINDING_ERROR, null); final String binding = component.getBinding(); if(binding == null){ return true; } // a. Check that field exists and field is not static if(psiClass != null){ final PsiField[] fields = psiClass.getFields(); PsiField field = null; for(int i = fields.length - 1; i >=0 ; i--){ if(binding.equals(fields[i].getName())){ field = fields[i]; break; } } if(field == null){ final QuickFix[] fixes = editor != null ? new QuickFix[]{ new CreateFieldFix(editor, psiClass, component.getComponentClassName(), binding)} : QuickFix.EMPTY_ARRAY; component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Field \"" + binding + "\" does not exist in class \"" + classToBind +"\"", fixes ) ); return true; } else if(field.hasModifierProperty(PsiModifier.STATIC)){ component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Cannot bind to static field \"" + binding + "\"", QuickFix.EMPTY_ARRAY ) ); return true; } // Check that field has correct fieldType try { final PsiType componentType; final String className = component.getComponentClassName().replace('$', '.'); // workaround for PSI if(className2Type.containsKey(className)){ componentType = className2Type.get(className); } else{ componentType = PsiManager.getInstance(module.getProject()).getElementFactory().createTypeFromText( className, null ); } final PsiType fieldType = field.getType(); if(fieldType != null && componentType != null && !fieldType.isAssignableFrom(componentType)){ final QuickFix[] fixes = editor != null ? new QuickFix[]{ new ChangeFieldTypeFix(editor, field, componentType) } : QuickFix.EMPTY_ARRAY; component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Incompatible types. Found \"" + fieldType.getPresentableText() + "\", required \"" + className + "\"", fixes ) ); } } catch (IncorrectOperationException e) { } } // b. Check that binding is unique if(usedBindings.contains(binding)){ // TODO[vova] implement component.putClientProperty( CLIENT_PROP_BINDING_ERROR, new ErrorInfo( "Binding to field \"" + binding + "\" already exists", QuickFix.EMPTY_ARRAY ) ); return true; } usedBindings.add(binding); return true; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/0e4fdd14fe5c24bd0f4fbd7bf26055176c7b70c7/ErrorAnalyzer.java/buggy/source/com/intellij/uiDesigner/ErrorAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 3757, 12, 6385, 467, 1841, 1794, 13, 288, 1850, 368, 7151, 2416, 555, 261, 430, 1281, 13, 1850, 1794, 18, 458, 1227, 1396, 12, 11935, 67, 15811, 67, 2739, 67, 3589, 16, 446, 1769, 1850, 727, 514, 5085, 273, 1794, 18, 588, 5250, 5621, 1850, 309, 12, 7374, 422, 446, 15329, 5411, 327, 638, 31, 1850, 289, 1850, 368, 279, 18, 2073, 716, 652, 1704, 471, 652, 353, 486, 760, 1850, 309, 12, 24275, 797, 480, 446, 15329, 5411, 727, 453, 7722, 974, 8526, 1466, 273, 23921, 797, 18, 588, 2314, 5621, 5411, 453, 7722, 974, 652, 273, 446, 31, 5411, 364, 12, 474, 277, 273, 1466, 18, 2469, 300, 404, 31, 277, 1545, 20, 274, 277, 413, 15329, 2868, 309, 12, 7374, 18, 14963, 12, 2821, 63, 77, 8009, 17994, 1435, 3719, 95, 7734, 652, 273, 1466, 63, 77, 15533, 7734, 898, 31, 2868, 289, 5411, 289, 5411, 309, 12, 1518, 422, 446, 15329, 2868, 727, 19884, 8585, 8526, 24436, 273, 4858, 480, 446, 692, 394, 19884, 8585, 63, 7073, 7734, 394, 1788, 974, 8585, 12, 9177, 16, 23921, 797, 16, 1794, 18, 588, 1841, 3834, 9334, 5085, 16869, 294, 7734, 19884, 8585, 18, 13625, 67, 8552, 31, 2868, 1794, 18, 458, 1227, 1396, 12, 9079, 16395, 67, 15811, 67, 2739, 67, 3589, 16, 9079, 394, 1068, 966, 12, 1171, 315, 974, 11843, 397, 5085, 397, 7023, 1552, 486, 1005, 316, 667, 11843, 397, 667, 774, 3357, 397, 6, 2412, 3113, 1171, 24436, 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, 1071, 1250, 3757, 12, 6385, 467, 1841, 1794, 13, 288, 1850, 368, 7151, 2416, 555, 261, 430, 1281, 13, 1850, 1794, 18, 458, 1227, 1396, 12, 11935, 67, 15811, 67, 2739, 67, 3589, 16, 446, 1769, 1850, 727, 514, 5085, 273, 1794, 18, 588, 5250, 5621, 1850, 309, 12, 7374, 422, 446, 15329, 5411, 327, 638, 31, 1850, 289, 1850, 368, 279, 18, 2073, 716, 652, 1704, 471, 652, 353, 486, 760, 1850, 309, 12, 24275, 797, 480, 446, 15329, 5411, 727, 453, 7722, 974, 8526, 1466, 273, 23921, 797, 18, 588, 2314, 5621, 5411, 453, 7722, 974, 652, 273, 446, 31, 5411, 364, 12, 474, 277, 273, 1466, 18, 2469, 300, 404, 31, 277, 1545, 20, 274, 2 ]
Boolean premier = (Boolean) fieldValues.get(_premierLeagueFieldName);
public boolean store(IWContext iwc) { System.out.println("Entering store"); Group group; try { group = (Group) (((GroupHome) com.idega.data.IDOLookup.getHome(Group.class)).findByPrimaryKey(new Integer(getGroupId()))); // get corressponding service bean ClubInformationPluginBusiness ageGenderPluginBusiness = getClubInformationPluginBusiness(iwc); String number = (String) fieldValues.get(_numberFieldName); String ssn = (String) fieldValues.get(_ssnFieldName); String abrv = (String) fieldValues.get(_abrvFieldName); String shortName = (String) fieldValues.get(_shortNameFieldName); String name = (String) fieldValues.get(_nameFieldName); String founded = (String) fieldValues.get(_foundedFieldName); String type = (String) fieldValues.get(_typeFieldName); Boolean memberUMFI = (Boolean) fieldValues.get(_memberUMFIFieldName); String make = (String) fieldValues.get(_makeFieldName); String connection = (String) fieldValues.get(_connectionToSpecialFieldName);// String regional = (String) fieldValues.get(_regionalUnionFieldName); String status = (String) fieldValues.get(_statusFieldName); Boolean premier = (Boolean) fieldValues.get(_premierLeagueFieldName); Boolean inOperation = (Boolean) fieldValues.get(_inOperationFieldName); Boolean usingSystem = (Boolean) fieldValues.get(_usingMemberSystemFieldName); group.setMetaData("CLUBINFO_NUMBER", number); group.setMetaData("CLUBINFO_SSN", ssn); group.setMetaData("CLUBINFO_ABRV", abrv); group.setMetaData("CLUBINFO_SHORT", shortName); group.setMetaData("CLUBINFO_NAME", name); group.setMetaData("CLUBINFO_FOUNDED", founded); group.setMetaData("CLUBINFO_TYPE", type); if (memberUMFI != null) group.setMetaData("CLUBINFO_MEMBER", memberUMFI.toString()); group.setMetaData("CLUBINFO_MAKE", make); if (make.equals("2")) group.setMetaData("CLUBINFO_CONN", connection); else group.setMetaData("CLUBINFO_CONN", "");// group.setMetaData("CLUBINFO_REGIONAL", regional); group.setMetaData("CLUBINFO_STATUS", status); if (premier != null) group.setMetaData("CLUBINFO_PREMIER", premier.toString()); else group.setMetaData("CLUBINFO_PREMIER", Boolean.FALSE.toString()); if (inOperation != null) group.setMetaData("CLUBINFO_OPERATION", inOperation.toString()); else group.setMetaData("CLUBINFO_OPERATION", Boolean.FALSE.toString()); if (usingSystem != null) group.setMetaData("CLUBINFO_SYSTEM", usingSystem.toString()); else group.setMetaData("CLUBINFO_SYSTEM", Boolean.FALSE.toString()); group.store(); } catch (RemoteException e) { e.printStackTrace(System.err); return false; } catch (FinderException e) { e.printStackTrace(System.err); return false; } return true; }
57353 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57353/79ace8631f006fec0056356ea8f90156b58d7285/ClubInformationTab.java/clean/src/java/is/idega/idegaweb/member/presentation/ClubInformationTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1707, 12, 45, 59, 1042, 25522, 71, 13, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 10237, 310, 1707, 8863, 202, 202, 1114, 1041, 31, 202, 202, 698, 288, 1082, 202, 1655, 273, 261, 1114, 13, 261, 12443, 1114, 8684, 13, 532, 18, 831, 15833, 18, 892, 18, 734, 1741, 4909, 18, 588, 8684, 12, 1114, 18, 1106, 13, 2934, 4720, 858, 11575, 12, 2704, 2144, 12, 588, 8722, 1435, 3719, 1769, 1082, 202, 759, 336, 1858, 663, 3111, 310, 1156, 3931, 1082, 202, 2009, 373, 5369, 3773, 13423, 9388, 43, 2345, 3773, 13423, 273, 13674, 373, 5369, 3773, 13423, 12, 22315, 71, 1769, 1082, 202, 780, 1300, 273, 261, 780, 13, 24976, 18, 588, 24899, 2696, 7287, 1769, 1082, 202, 780, 5202, 82, 273, 261, 780, 13, 24976, 18, 588, 24899, 1049, 82, 7287, 1769, 1082, 202, 780, 1223, 4962, 273, 261, 780, 13, 24976, 18, 588, 24899, 378, 4962, 7287, 1769, 1082, 202, 780, 19276, 273, 261, 780, 13, 24976, 18, 588, 24899, 6620, 461, 7287, 1769, 1082, 202, 780, 508, 273, 261, 780, 13, 24976, 18, 588, 24899, 529, 7287, 1769, 1082, 202, 780, 284, 12002, 273, 261, 780, 13, 24976, 18, 588, 24899, 74, 12002, 7287, 1769, 1082, 202, 780, 618, 273, 261, 780, 13, 24976, 18, 588, 24899, 723, 7287, 1769, 1082, 202, 5507, 3140, 2799, 1653, 273, 261, 5507, 13, 24976, 18, 588, 24899, 5990, 2799, 1653, 7287, 1769, 1082, 202, 780, 1221, 273, 261, 780, 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, 1250, 1707, 12, 45, 59, 1042, 25522, 71, 13, 288, 202, 202, 3163, 18, 659, 18, 8222, 2932, 10237, 310, 1707, 8863, 202, 202, 1114, 1041, 31, 202, 202, 698, 288, 1082, 202, 1655, 273, 261, 1114, 13, 261, 12443, 1114, 8684, 13, 532, 18, 831, 15833, 18, 892, 18, 734, 1741, 4909, 18, 588, 8684, 12, 1114, 18, 1106, 13, 2934, 4720, 858, 11575, 12, 2704, 2144, 12, 588, 8722, 1435, 3719, 1769, 1082, 202, 759, 336, 1858, 663, 3111, 310, 1156, 3931, 1082, 202, 2009, 373, 5369, 3773, 13423, 9388, 43, 2345, 3773, 13423, 273, 13674, 373, 5369, 3773, 13423, 12, 22315, 71, 1769, 1082, 202, 780, 1300, 273, 261, 780, 13, 24976, 18, 2 ]
astExpression = expression(scope, CompletionKind.SINGLE_NAME_REFERENCE, Key.EXPRESSION); setCompletionValues(scope,CompletionKind.NO_SUCH_KIND,Key.EMPTY);
astExpression = expression(scope, CompletionKind.SINGLE_NAME_REFERENCE, KeywordSetKey.EXPRESSION); setCompletionValues(scope,CompletionKind.NO_SUCH_KIND,KeywordSetKey.EMPTY);
protected void optionalCPPInitializer(Declarator d, boolean constructInitializers) throws EndOfFileException, BacktrackException { // handle initializer final IASTScope scope = d.getDeclarationWrapper().getScope(); setCompletionValues(scope,CompletionKind.NO_SUCH_KIND,Key.EMPTY); if (LT(1) == IToken.tASSIGN) { consume(IToken.tASSIGN); setCompletionValues(scope,CompletionKind.SINGLE_NAME_REFERENCE,Key.EMPTY); throwAwayMarksForInitializerClause(d); IASTInitializerClause clause = initializerClause(scope,constructInitializers); d.setInitializerClause(clause); setCompletionValues(scope,CompletionKind.NO_SUCH_KIND,Key.EMPTY); } else if (LT(1) == IToken.tLPAREN ) { // initializer in constructor consume(IToken.tLPAREN); // EAT IT! setCompletionValues(scope,CompletionKind.SINGLE_NAME_REFERENCE,Key.EMPTY); IASTExpression astExpression = null; astExpression = expression(scope, CompletionKind.SINGLE_NAME_REFERENCE, Key.EXPRESSION); setCompletionValues(scope,CompletionKind.NO_SUCH_KIND,Key.EMPTY); consume(IToken.tRPAREN); d.setConstructorExpression(astExpression); } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/fb57293d470c0087b6edd9673084d38ceb95e5c2/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3129, 4258, 52, 14729, 12, 31419, 302, 16, 1250, 4872, 4435, 8426, 13, 3639, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 565, 288, 3639, 368, 1640, 12562, 3639, 727, 467, 9053, 3876, 2146, 273, 302, 18, 588, 6094, 3611, 7675, 588, 3876, 5621, 3639, 444, 11238, 1972, 12, 4887, 16, 11238, 5677, 18, 3417, 67, 19958, 67, 47, 2356, 16, 653, 18, 13625, 1769, 202, 202, 430, 261, 12050, 12, 21, 13, 422, 467, 1345, 18, 88, 23289, 13, 3639, 288, 5411, 7865, 12, 1285, 969, 18, 88, 23289, 1769, 5411, 444, 11238, 1972, 12, 4887, 16, 11238, 5677, 18, 20184, 67, 1985, 67, 14617, 16, 653, 18, 13625, 1769, 5411, 604, 37, 1888, 20981, 1290, 14729, 7044, 12, 72, 1769, 5411, 467, 9053, 14729, 7044, 6591, 273, 12562, 7044, 12, 4887, 16, 10062, 4435, 8426, 1769, 1082, 202, 72, 18, 542, 14729, 7044, 12, 18128, 1769, 1082, 202, 542, 11238, 1972, 12, 4887, 16, 11238, 5677, 18, 3417, 67, 19958, 67, 47, 2356, 16, 653, 18, 13625, 1769, 3639, 289, 3639, 469, 309, 261, 12050, 12, 21, 13, 422, 467, 1345, 18, 88, 48, 15111, 262, 3639, 288, 5411, 368, 12562, 316, 3885, 5411, 7865, 12, 1285, 969, 18, 88, 48, 15111, 1769, 368, 512, 789, 24142, 5, 5411, 444, 11238, 1972, 12, 4887, 16, 11238, 5677, 18, 20184, 67, 1985, 67, 14617, 16, 653, 18, 13625, 1769, 5411, 467, 9053, 2300, 3364, 2300, 273, 446, 31, 5411, 3364, 2300, 273, 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, 918, 3129, 4258, 52, 14729, 12, 31419, 302, 16, 1250, 4872, 4435, 8426, 13, 3639, 1216, 4403, 951, 812, 503, 16, 4297, 4101, 503, 565, 288, 3639, 368, 1640, 12562, 3639, 727, 467, 9053, 3876, 2146, 273, 302, 18, 588, 6094, 3611, 7675, 588, 3876, 5621, 3639, 444, 11238, 1972, 12, 4887, 16, 11238, 5677, 18, 3417, 67, 19958, 67, 47, 2356, 16, 653, 18, 13625, 1769, 202, 202, 430, 261, 12050, 12, 21, 13, 422, 467, 1345, 18, 88, 23289, 13, 3639, 288, 5411, 7865, 12, 1285, 969, 18, 88, 23289, 1769, 5411, 444, 11238, 1972, 12, 4887, 16, 11238, 5677, 18, 20184, 67, 1985, 67, 14617, 16, 653, 18, 13625, 1769, 5411, 604, 37, 1888, 2 ]
public XmlNodeHelper(String filename, int s) { this.filename = filename; this.end = ""+s; }
public XmlNodeHelper(String handle){ int first = handle.indexOf(";"); if(first == -1){ filename = handle; end = ""; } else{ filename = handle.substring(0, first); end = handle.substring(first + 1); } }
public XmlNodeHelper(String filename, int s) { this.filename = filename; this.end = ""+s; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b15993fd237b55c38857e7deb414ed83933f847d/XmlNodeHelper.java/buggy/org.eclipse.mylyn.resources.ui/src/org/eclipse/mylyn/xml/XmlNodeHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 225, 1071, 5714, 907, 2276, 12, 780, 1544, 16, 509, 272, 13, 288, 202, 1377, 333, 18, 3459, 273, 1544, 31, 202, 1377, 333, 18, 409, 273, 1408, 15, 87, 31, 202, 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, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 225, 1071, 5714, 907, 2276, 12, 780, 1544, 16, 509, 272, 13, 288, 202, 1377, 333, 18, 3459, 273, 1544, 31, 202, 1377, 333, 18, 409, 273, 1408, 15, 87, 31, 202, 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 ]
if ( linethrough != null && !"none".equalsIgnoreCase( linethrough ) )
if ( linethrough != null && !"none".equalsIgnoreCase( linethrough ) )
private static void buildTextDecoration( StringBuffer content, String linethrough, String underline, String overline ) { int flag = 0; if ( linethrough != null && !"none".equalsIgnoreCase( linethrough ) ) { flag = 1; // linethrough } if ( underline != null && !"none".equalsIgnoreCase( underline ) ) { flag |= 2; // underline } if ( overline != null && !"none".equalsIgnoreCase( overline ) ) { flag |= 4; // overline } if ( flag > 0 ) { content.append( " text-decoration:" ); //$NON-NLS-1$ if ( ( flag & 1 ) > 0 ) // linethrough { addPropValue( content, linethrough ); } if ( ( flag & 2 ) > 0 ) // underline { addPropValue( content, underline ); } if ( ( flag & 4 ) > 0 ) //overline { addPropValue( content, overline ); } content.append( ';' ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/457851dcc056d96f2ec05106ceba68d3c8f9162c/AttributeBuilder.java/buggy/engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/AttributeBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1361, 1528, 7859, 367, 12, 6674, 913, 16, 1082, 202, 780, 4739, 546, 2642, 16, 514, 25985, 16, 514, 1879, 1369, 262, 202, 95, 202, 202, 474, 2982, 273, 374, 31, 202, 202, 430, 261, 4739, 546, 2642, 480, 446, 597, 29054, 6102, 9654, 14963, 5556, 12, 4739, 546, 2642, 262, 262, 202, 202, 95, 1082, 202, 6420, 273, 404, 31, 368, 4739, 546, 2642, 202, 202, 97, 202, 202, 430, 261, 25985, 480, 446, 597, 29054, 6102, 9654, 14963, 5556, 12, 25985, 262, 262, 202, 202, 95, 1082, 202, 6420, 5626, 576, 31, 368, 25985, 202, 202, 97, 202, 202, 430, 261, 1879, 1369, 480, 446, 597, 29054, 6102, 9654, 14963, 5556, 12, 1879, 1369, 262, 262, 202, 202, 95, 1082, 202, 6420, 5626, 1059, 31, 368, 1879, 1369, 202, 202, 97, 202, 202, 430, 261, 2982, 405, 374, 262, 202, 202, 95, 1082, 202, 1745, 18, 6923, 12, 315, 977, 17, 11880, 367, 2773, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 430, 261, 261, 2982, 473, 404, 262, 405, 374, 262, 368, 4739, 546, 2642, 1082, 202, 95, 9506, 202, 1289, 4658, 620, 12, 913, 16, 4739, 546, 2642, 11272, 1082, 202, 97, 1082, 202, 430, 261, 261, 2982, 473, 576, 262, 405, 374, 262, 368, 25985, 1082, 202, 95, 9506, 202, 1289, 4658, 620, 12, 913, 16, 25985, 11272, 1082, 202, 97, 1082, 202, 430, 261, 261, 2982, 473, 1059, 262, 405, 374, 262, 368, 1643, 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, 918, 1361, 1528, 7859, 367, 12, 6674, 913, 16, 1082, 202, 780, 4739, 546, 2642, 16, 514, 25985, 16, 514, 1879, 1369, 262, 202, 95, 202, 202, 474, 2982, 273, 374, 31, 202, 202, 430, 261, 4739, 546, 2642, 480, 446, 597, 29054, 6102, 9654, 14963, 5556, 12, 4739, 546, 2642, 262, 262, 202, 202, 95, 1082, 202, 6420, 273, 404, 31, 368, 4739, 546, 2642, 202, 202, 97, 202, 202, 430, 261, 25985, 480, 446, 597, 29054, 6102, 9654, 14963, 5556, 12, 25985, 262, 262, 202, 202, 95, 1082, 202, 6420, 5626, 576, 31, 368, 25985, 202, 202, 97, 202, 202, 430, 261, 1879, 1369, 480, 446, 597, 29054, 6102, 9654, 14963, 5556, 12, 2 ]
final String summaryIDString = request.getParameterMap().containsKey("summaryID") ? request .getParameter("summaryID") : (String) request.getAttribute("summaryID");
final String summaryIDString = request.getParameterMap().containsKey("summaryID") ? request.getParameter("summaryID") : (String) request.getAttribute("summaryID");
private Summary getSummaryFromParameter(final HttpServletRequest request) { final String summaryIDString = request.getParameterMap().containsKey("summaryID") ? request .getParameter("summaryID") : (String) request.getAttribute("summaryID"); final Integer summaryID = summaryIDString != null ? Integer.valueOf(summaryIDString) : null; return rootDomainObject.readSummaryByOID(summaryID); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/19ec54ba6bd1de999d340e461248a575baad78d5/SummariesManagementDA.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/SummariesManagementDA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 17967, 1322, 27804, 1265, 1662, 12, 6385, 9984, 590, 13, 288, 202, 6385, 514, 4916, 734, 780, 273, 590, 18, 588, 1662, 863, 7675, 12298, 653, 2932, 7687, 734, 7923, 692, 590, 202, 202, 18, 588, 1662, 2932, 7687, 734, 7923, 294, 261, 780, 13, 590, 18, 588, 1499, 2932, 7687, 734, 8863, 202, 6385, 2144, 4916, 734, 273, 4916, 734, 780, 480, 446, 692, 2144, 18, 1132, 951, 12, 7687, 734, 780, 13, 294, 446, 31, 202, 2463, 1365, 3748, 921, 18, 896, 4733, 858, 12945, 12, 7687, 734, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 17967, 1322, 27804, 1265, 1662, 12, 6385, 9984, 590, 13, 288, 202, 6385, 514, 4916, 734, 780, 273, 590, 18, 588, 1662, 863, 7675, 12298, 653, 2932, 7687, 734, 7923, 692, 590, 202, 202, 18, 588, 1662, 2932, 7687, 734, 7923, 294, 261, 780, 13, 590, 18, 588, 1499, 2932, 7687, 734, 8863, 202, 6385, 2144, 4916, 734, 273, 4916, 734, 780, 480, 446, 692, 2144, 18, 1132, 951, 12, 7687, 734, 780, 13, 294, 446, 31, 202, 2463, 1365, 3748, 921, 18, 896, 4733, 858, 12945, 12, 7687, 734, 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 ]
if (metadata.containsAttribute("name")) { m_name = metadata.getAttribute("name"); } else { m_name = metadata.getAttribute("className"); }
m_className = metadata.getAttribute("className");
public void configure(ComponentManager cm, Element metadata) { if (metadata.containsAttribute("architecture")) { String isArchitectureEnabled = (metadata.getAttribute("architecture")).toLowerCase(); if (isArchitectureEnabled.equals("true")) { cm.register(this); } } if (metadata.containsAttribute("name")) { m_name = metadata.getAttribute("name"); } else { m_name = metadata.getAttribute("className"); } m_manager = cm; }
45948 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45948/ade5d36d9bda6dfac49dec23cf83e543691726ab/ArchitectureHandler.java/clean/ipojo/src/main/java/org/apache/felix/ipojo/handlers/architecture/ArchitectureHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5068, 12, 1841, 1318, 5003, 16, 3010, 1982, 13, 288, 202, 202, 430, 261, 4165, 18, 12298, 1499, 2932, 991, 18123, 6, 3719, 288, 1082, 202, 780, 353, 12269, 18123, 1526, 273, 261, 4165, 18, 588, 1499, 2932, 991, 18123, 7923, 2934, 869, 5630, 5621, 1082, 202, 430, 261, 291, 12269, 18123, 1526, 18, 14963, 2932, 3767, 6, 3719, 288, 5003, 18, 4861, 12, 2211, 1769, 289, 202, 202, 97, 202, 202, 430, 261, 4165, 18, 12298, 1499, 2932, 529, 6, 3719, 288, 312, 67, 529, 273, 1982, 18, 588, 1499, 2932, 529, 8863, 289, 202, 202, 12107, 288, 312, 67, 529, 273, 1982, 18, 588, 1499, 2932, 12434, 8863, 289, 202, 202, 81, 67, 4181, 273, 5003, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 5068, 12, 1841, 1318, 5003, 16, 3010, 1982, 13, 288, 202, 202, 430, 261, 4165, 18, 12298, 1499, 2932, 991, 18123, 6, 3719, 288, 1082, 202, 780, 353, 12269, 18123, 1526, 273, 261, 4165, 18, 588, 1499, 2932, 991, 18123, 7923, 2934, 869, 5630, 5621, 1082, 202, 430, 261, 291, 12269, 18123, 1526, 18, 14963, 2932, 3767, 6, 3719, 288, 5003, 18, 4861, 12, 2211, 1769, 289, 202, 202, 97, 202, 202, 430, 261, 4165, 18, 12298, 1499, 2932, 529, 6, 3719, 288, 312, 67, 529, 273, 1982, 18, 588, 1499, 2932, 529, 8863, 289, 202, 202, 12107, 288, 312, 67, 529, 273, 1982, 18, 588, 1499, 2932, 12434, 8863, 289, 202, 202, 81, 67, 2 ]
return InspectionGadgetsBundle.message("unnecessary.boxing.remove.quickfix"); }
return InspectionGadgetsBundle.message( "unnecessary.boxing.remove.quickfix"); }
public String getName() { return InspectionGadgetsBundle.message("unnecessary.boxing.remove.quickfix"); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/7df6da3657defe930b6e39c6e6c9749162c397e2/UnnecessaryBoxingInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/UnnecessaryBoxingInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1723, 1435, 288, 1377, 327, 22085, 7017, 43, 361, 14665, 3405, 18, 2150, 2932, 318, 82, 4128, 18, 2147, 310, 18, 4479, 18, 19525, 904, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1723, 1435, 288, 1377, 327, 22085, 7017, 43, 361, 14665, 3405, 18, 2150, 2932, 318, 82, 4128, 18, 2147, 310, 18, 4479, 18, 19525, 904, 8863, 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 ]
public void addSymbols(ILanguage language, IASTTranslationUnit ast) throws CoreException { final PDOMLinkage linkage = pdom.getLinkage(language); if (linkage == null) return; // Add in the includes IASTPreprocessorIncludeStatement[] includes = ast.getIncludeDirectives(); for (int i = 0; i < includes.length; ++i) { IASTPreprocessorIncludeStatement include = includes[i]; IASTFileLocation sourceLoc = include.getFileLocation(); String sourcePath = sourceLoc != null ? sourceLoc.getFileName() : ast.getFilePath(); // command-line includes PDOMFile sourceFile = pdom.addFile(sourcePath); String destPath = include.getPath(); PDOMFile destFile = pdom.addFile(destPath); sourceFile.addIncludeTo(destFile); } // Add in the macros IASTPreprocessorMacroDefinition[] macros = ast.getMacroDefinitions(); for (int i = 0; i < macros.length; ++i) { IASTPreprocessorMacroDefinition macro = macros[i]; IASTFileLocation sourceLoc = macro.getFileLocation(); if (sourceLoc == null) continue; // skip built-ins and command line macros PDOMFile sourceFile = pdom.getFile(sourceLoc.getFileName()); if (sourceFile != null) // not sure why this would be null sourceFile.addMacro(macro); } // Add in the names ast.accept(new ASTVisitor() { { shouldVisitNames = true; shouldVisitDeclarations = true; } public int visit(IASTName name) { try { IASTFileLocation fileloc = name.getFileLocation(); if (fileloc != null) { PDOMFile file = pdom.addFile(fileloc.getFileName()); linkage.addName(name, file); } return PROCESS_CONTINUE; } catch (Throwable e) { CCorePlugin.log(e); return ++errorCount > MAX_ERRORS ? PROCESS_ABORT : PROCESS_CONTINUE; } }; });; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/f5a4ba1d7638b16bde80c2f1086c78aa03af1f90/PDOMFullIndexerJob.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/full/PDOMFullIndexerJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 14821, 12, 2627, 1701, 2653, 16, 467, 9053, 6717, 2802, 3364, 13, 1216, 30015, 288, 202, 202, 6385, 5739, 1495, 754, 410, 1692, 410, 273, 4863, 362, 18, 588, 2098, 410, 12, 4923, 1769, 202, 202, 430, 261, 1232, 410, 422, 446, 13, 1082, 202, 2463, 31, 9506, 202, 759, 1436, 316, 326, 6104, 202, 202, 45, 9053, 1386, 8700, 8752, 3406, 8526, 6104, 273, 3364, 18, 588, 8752, 25343, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 6104, 18, 2469, 31, 965, 77, 13, 288, 1082, 202, 45, 9053, 1386, 8700, 8752, 3406, 2341, 273, 6104, 63, 77, 15533, 25083, 202, 45, 9053, 812, 2735, 1084, 1333, 273, 2341, 18, 29925, 2735, 5621, 1082, 202, 780, 17744, 9506, 202, 33, 1084, 1333, 480, 446, 9506, 202, 35, 1084, 1333, 18, 588, 4771, 1435, 9506, 202, 30, 3364, 18, 588, 5598, 5621, 368, 1296, 17, 1369, 6104, 6862, 1082, 202, 52, 8168, 812, 16338, 273, 4863, 362, 18, 1289, 812, 12, 3168, 743, 1769, 1082, 202, 780, 22459, 273, 2341, 18, 588, 743, 5621, 1082, 202, 52, 8168, 812, 25471, 273, 4863, 362, 18, 1289, 812, 12, 10488, 743, 1769, 1082, 202, 3168, 812, 18, 1289, 8752, 774, 12, 10488, 812, 1769, 202, 202, 97, 1082, 202, 759, 1436, 316, 326, 24302, 202, 202, 45, 9053, 1386, 8700, 17392, 1852, 8526, 24302, 273, 3364, 18, 588, 17392, 7130, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 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, 527, 14821, 12, 2627, 1701, 2653, 16, 467, 9053, 6717, 2802, 3364, 13, 1216, 30015, 288, 202, 202, 6385, 5739, 1495, 754, 410, 1692, 410, 273, 4863, 362, 18, 588, 2098, 410, 12, 4923, 1769, 202, 202, 430, 261, 1232, 410, 422, 446, 13, 1082, 202, 2463, 31, 9506, 202, 759, 1436, 316, 326, 6104, 202, 202, 45, 9053, 1386, 8700, 8752, 3406, 8526, 6104, 273, 3364, 18, 588, 8752, 25343, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 6104, 18, 2469, 31, 965, 77, 13, 288, 1082, 202, 45, 9053, 1386, 8700, 8752, 3406, 2341, 273, 6104, 63, 77, 15533, 25083, 202, 45, 9053, 812, 2735, 1084, 1333, 273, 2341, 2 ]
_t = __t549;
_t = __t553;
public final void color_expr(AST _t) throws RecognitionException { AST color_expr_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BGCOLOR: { AST __t546 = _t; AST tmp2023_AST_in = (AST)_t; match(_t,BGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t546; _t = _t.getNextSibling(); break; } case DCOLOR: { AST __t547 = _t; AST tmp2024_AST_in = (AST)_t; match(_t,DCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t547; _t = _t.getNextSibling(); break; } case FGCOLOR: { AST __t548 = _t; AST tmp2025_AST_in = (AST)_t; match(_t,FGCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t548; _t = _t.getNextSibling(); break; } case PFCOLOR: { AST __t549 = _t; AST tmp2026_AST_in = (AST)_t; match(_t,PFCOLOR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t549; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2036, 67, 8638, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2036, 67, 8638, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 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, 30609, 10989, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 6564, 26, 273, 389, 88, 31, 1082, 202, 9053, 1853, 18212, 23, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 30098, 10989, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 8692, 24899, 88, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 67, 88, 273, 1001, 88, 6564, 26, 31, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 463, 10989, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 6564, 27, 273, 389, 88, 31, 1082, 202, 9053, 1853, 18212, 24, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 40, 10989, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 8692, 24899, 88, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 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, 727, 918, 2036, 67, 8638, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2036, 67, 8638, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 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, 30609, 10989, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 6564, 26, 273, 389, 88, 31, 1082, 202, 9053, 1853, 18212, 23, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 30098, 10989, 1769, 1082, 202, 67, 88, 2 ]
JFieldDeclaration.EMPTY(), JMethodDeclaration.EMPTY());
JFieldDeclaration.EMPTY(), JMethodDeclaration.EMPTY());
private SIROperator newSIROP(JClassDeclaration clazz) { String TYPE = clazz.getSourceClass().getSuperClass().getIdent(); if (TYPE.equals("Pipeline") || TYPE.equals("StreamIt")) { SIRPipeline current = new SIRPipeline((SIRContainer)parentStream, clazz.getIdent(), JFieldDeclaration.EMPTY(), JMethodDeclaration.EMPTY()); parentStream = current; return current; } if (TYPE.equals("Structure")) { SIRStructure current = new SIRStructure(); current.setIdent(clazz.getIdent()); current.setFields(JFieldDeclaration.EMPTY()); parentStream = current; return current; } if (TYPE.equals("Filter")) { SIRFilter current = new SIRFilter(); current.setParent((SIRContainer)parentStream); current.setFields(JFieldDeclaration.EMPTY()); current.setMethods(JMethodDeclaration.EMPTY()); current.setIdent(clazz.getIdent()); current.setInputType(CStdType.Void); current.setOutputType(CStdType.Void); parentStream = current; return current; } if (TYPE.equals("FeedbackLoop")) { SIRFeedbackLoop current = new SIRFeedbackLoop(); current.setParent((SIRContainer)parentStream); current.setFields(JFieldDeclaration.EMPTY()); current.setMethods(JMethodDeclaration.EMPTY()); current.setIdent(clazz.getIdent()); parentStream = current; return current; } if (TYPE.equals("SplitJoin")) { SIRSplitJoin current = new SIRSplitJoin((SIRContainer)parentStream, clazz.getIdent(), JFieldDeclaration.EMPTY(), JMethodDeclaration.EMPTY()); parentStream = current; return current; } at.dms.util.Utils.fail(printLine(clazz) + "You are creating an unsupported streaMIT Operator: " + TYPE + "."); return null; }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/976ad941cda9329533e559a57d46959f944b0737/Kopi2SIR.java/buggy/streams/src/at/dms/kjc/Kopi2SIR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5705, 1457, 457, 639, 394, 2320, 12578, 12, 46, 797, 6094, 4003, 13, 225, 288, 202, 780, 3463, 273, 4003, 18, 588, 1830, 797, 7675, 588, 8051, 797, 7675, 588, 6106, 5621, 377, 202, 430, 261, 2399, 18, 14963, 2932, 8798, 7923, 747, 3463, 18, 14963, 2932, 1228, 7193, 6, 3719, 288, 202, 565, 5705, 54, 8798, 783, 273, 394, 5705, 54, 8798, 12443, 2320, 54, 2170, 13, 2938, 1228, 16, 15106, 225, 4003, 18, 588, 6106, 9334, 6862, 282, 804, 974, 6094, 18, 13625, 9334, 6862, 282, 804, 1305, 6094, 18, 13625, 10663, 202, 565, 982, 1228, 273, 783, 31, 202, 565, 327, 783, 31, 202, 97, 3639, 309, 261, 2399, 18, 14963, 2932, 6999, 6, 3719, 288, 5411, 5705, 54, 6999, 783, 273, 394, 5705, 54, 6999, 5621, 5411, 783, 18, 542, 6106, 12, 830, 3638, 18, 588, 6106, 10663, 5411, 783, 18, 542, 2314, 12, 46, 974, 6094, 18, 13625, 10663, 5411, 982, 1228, 273, 783, 31, 5411, 327, 783, 31, 3639, 289, 202, 430, 261, 2399, 18, 14963, 2932, 1586, 6, 3719, 288, 202, 565, 5705, 54, 1586, 783, 273, 394, 5705, 54, 1586, 5621, 202, 565, 783, 18, 542, 3054, 12443, 2320, 54, 2170, 13, 2938, 1228, 1769, 202, 565, 783, 18, 542, 2314, 12, 46, 974, 6094, 18, 13625, 10663, 202, 565, 783, 18, 542, 4712, 12, 46, 1305, 6094, 18, 13625, 10663, 202, 565, 783, 18, 542, 6106, 12, 830, 3638, 18, 588, 6106, 10663, 202, 565, 783, 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, 5705, 1457, 457, 639, 394, 2320, 12578, 12, 46, 797, 6094, 4003, 13, 225, 288, 202, 780, 3463, 273, 4003, 18, 588, 1830, 797, 7675, 588, 8051, 797, 7675, 588, 6106, 5621, 377, 202, 430, 261, 2399, 18, 14963, 2932, 8798, 7923, 747, 3463, 18, 14963, 2932, 1228, 7193, 6, 3719, 288, 202, 565, 5705, 54, 8798, 783, 273, 394, 5705, 54, 8798, 12443, 2320, 54, 2170, 13, 2938, 1228, 16, 15106, 225, 4003, 18, 588, 6106, 9334, 6862, 282, 804, 974, 6094, 18, 13625, 9334, 6862, 282, 804, 1305, 6094, 18, 13625, 10663, 202, 565, 982, 1228, 273, 783, 31, 202, 565, 327, 783, 31, 202, 97, 3639, 309, 261, 2399, 18, 14963, 2932, 6999, 6, 2 ]
return (int)( m_nextRun - otherInfo.m_nextRun );
int diff = (int)( m_nextRun - otherInfo.m_nextRun ); if (diff == 0) { if (this == other) { return 0; } else { return System.identityHashCode(this) - System.identityHashCode(other); } } return diff;
public int compareTo( final Object other ) { final ExecutionInfo otherInfo = (ExecutionInfo)other; return (int)( m_nextRun - otherInfo.m_nextRun ); }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/f0f74af4d50bbf3663fb4c99ebd3f794a844926b/DefaultRunnableManager.java/buggy/src/java/org/apache/cocoon/components/thread/DefaultRunnableManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 9292, 12, 727, 1033, 1308, 262, 3639, 288, 5411, 727, 8687, 966, 1308, 966, 273, 261, 3210, 966, 13, 3011, 31, 6647, 509, 3122, 273, 261, 474, 21433, 312, 67, 4285, 1997, 300, 1308, 966, 18, 81, 67, 4285, 1997, 11272, 309, 261, 5413, 422, 374, 13, 288, 309, 261, 2211, 422, 1308, 13, 288, 225, 327, 374, 31, 289, 469, 288, 225, 327, 2332, 18, 10781, 21952, 12, 2211, 13, 300, 2332, 18, 10781, 21952, 12, 3011, 1769, 289, 289, 327, 3122, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 9292, 12, 727, 1033, 1308, 262, 3639, 288, 5411, 727, 8687, 966, 1308, 966, 273, 261, 3210, 966, 13, 3011, 31, 6647, 509, 3122, 273, 261, 474, 21433, 312, 67, 4285, 1997, 300, 1308, 966, 18, 81, 67, 4285, 1997, 11272, 309, 261, 5413, 422, 374, 13, 288, 309, 261, 2211, 422, 1308, 13, 288, 225, 327, 374, 31, 289, 469, 288, 225, 327, 2332, 18, 10781, 21952, 12, 2211, 13, 300, 2332, 18, 10781, 21952, 12, 3011, 1769, 289, 289, 327, 3122, 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 ]
debug="exec";
private synchronized boolean addValues(Row row) { if (first) { // Determine the indexes of the fields used! determineUsedFields(row); debug="first row"; //$NON-NLS-1$ data.cx = Context.enter(); data.scope = data.cx.initStandardObjects(null); first = false; Scriptable jsvalue = Context.toObject(this, data.scope); data.scope.put("_step_", data.scope, jsvalue); //$NON-NLS-1$ Scriptable jsvars = Context.toObject(KettleVariables.getInstance(), data.scope); data.scope.put("KETTLE_VARS", data.scope, jsvars); //$NON-NLS-1$ //StringReader in = new StringReader(info.script); try { debug="compile reader"; //$NON-NLS-1$ data.script=data.cx.compileString(meta.getScript(), "script", 1, null); //$NON-NLS-1$ // script=cx.compileReader(scope, in, "script", 1, null); } catch(Exception e) { logError(Messages.getString("ScriptValues.Log.CouldNotCompileJavascript")+e.toString()); //$NON-NLS-1$ setErrors(1); stopAll(); return false; } } Scriptable jsrow = Context.toObject(row, data.scope); data.scope.put("row", data.scope, jsrow); //$NON-NLS-1$ for (int i=0;i<data.fields_used.length;i++) { Value val = row.getValue(data.fields_used[i]); Scriptable jsarg = Context.toObject(val, data.scope); data.scope.put(val.getName(), data.scope, jsarg); } try { debug="exec"; //$NON-NLS-1$ //result = cx.evaluateString(scope, info.script, "<cmd>", 1, null); data.script.exec(data.cx, data.scope); //Object id[] = scope.getIds(); StringBuffer message = new StringBuffer(); for (int i=0;i<meta.getName().length;i++) { Value res = new Value(); if (meta.getValue(data.scope, i, res, message)) { logError(message.toString()); setErrors(1); stopAll(); return false; } row.addValue(res); // This means the row in rowset gets an extra field! } } catch(JavaScriptException jse) { logError(Messages.getString("ScriptValues.Log.JavascriptError")+jse.toString()); //$NON-NLS-1$ logError(Messages.getString("ScriptValues.Log.ErrorStackTrace")+Const.CR+Const.getStackTracker(jse)); //$NON-NLS-1$ setErrors(1); stopAll(); return false; } catch(Exception e) { logError(Messages.getString("ScriptValues.Log.JavascriptError")+e.toString()); //$NON-NLS-1$ logError(Messages.getString("ScriptValues.Log.ErrorStackTrace")+Const.CR+Const.getStackTracker(e)); //$NON-NLS-1$ setErrors(1); stopAll(); return false; } return true; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/3f39d037ba2ddf06fc422d6ae1f3add16df6eae5/ScriptValues.java/clean/src/be/ibridge/kettle/trans/step/scriptvalues/ScriptValues.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 1250, 527, 1972, 12, 1999, 1027, 13, 202, 95, 202, 202, 430, 261, 3645, 13, 202, 202, 95, 1082, 202, 759, 10229, 326, 5596, 434, 326, 1466, 1399, 5, 1082, 202, 24661, 6668, 2314, 12, 492, 1769, 25083, 202, 4148, 1546, 3645, 1027, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 892, 18, 71, 92, 273, 1772, 18, 2328, 5621, 1082, 202, 892, 18, 4887, 273, 501, 18, 71, 92, 18, 2738, 8336, 4710, 12, 2011, 1769, 25083, 202, 3645, 273, 629, 31, 1082, 202, 3651, 429, 3828, 1132, 273, 1772, 18, 869, 921, 12, 2211, 16, 501, 18, 4887, 1769, 1082, 202, 892, 18, 4887, 18, 458, 2932, 67, 4119, 67, 3113, 501, 18, 4887, 16, 3828, 1132, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 22780, 3828, 4699, 273, 1772, 18, 869, 921, 12, 47, 278, 5929, 6158, 18, 588, 1442, 9334, 501, 18, 4887, 1769, 5411, 501, 18, 4887, 18, 458, 2932, 6859, 1470, 900, 67, 26088, 3113, 501, 18, 4887, 16, 3828, 4699, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 759, 780, 2514, 316, 273, 394, 26227, 12, 1376, 18, 4263, 1769, 25083, 202, 698, 1082, 202, 95, 9506, 202, 4148, 1546, 11100, 2949, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 892, 18, 4263, 33, 892, 18, 71, 92, 18, 11100, 780, 12, 3901, 18, 588, 3651, 9334, 315, 4263, 3113, 404, 16, 446, 1769, 4329, 3993, 17, 5106, 17, 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, 3852, 1250, 527, 1972, 12, 1999, 1027, 13, 202, 95, 202, 202, 430, 261, 3645, 13, 202, 202, 95, 1082, 202, 759, 10229, 326, 5596, 434, 326, 1466, 1399, 5, 1082, 202, 24661, 6668, 2314, 12, 492, 1769, 25083, 202, 4148, 1546, 3645, 1027, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 892, 18, 71, 92, 273, 1772, 18, 2328, 5621, 1082, 202, 892, 18, 4887, 273, 501, 18, 71, 92, 18, 2738, 8336, 4710, 12, 2011, 1769, 25083, 202, 3645, 273, 629, 31, 1082, 202, 3651, 429, 3828, 1132, 273, 1772, 18, 869, 921, 12, 2211, 16, 501, 18, 4887, 1769, 1082, 202, 892, 18, 4887, 18, 458, 2932, 67, 4119, 67, 3113, 2 ]
public synchronized void setIconImage(Image icon) { this.icon = icon; if (peer != null) ((FramePeer) peer).setIconImage(icon); }
setIconImage(Image icon) { this.icon = icon; if (peer != null) ((FramePeer) peer).setIconImage(icon); }
public synchronized void setIconImage(Image icon) { this.icon = icon; if (peer != null) ((FramePeer) peer).setIconImage(icon); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/2703ae3b51c371a2a79d28271cd57b4046c647d0/Frame.java/buggy/core/src/classpath/java/java/awt/Frame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 21481, 2040, 12, 2040, 4126, 13, 288, 202, 202, 2211, 18, 3950, 273, 4126, 31, 202, 202, 430, 261, 12210, 480, 446, 13, 9506, 14015, 3219, 6813, 13, 4261, 2934, 542, 5554, 2040, 12, 3950, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3852, 918, 21481, 2040, 12, 2040, 4126, 13, 288, 202, 202, 2211, 18, 3950, 273, 4126, 31, 202, 202, 430, 261, 12210, 480, 446, 13, 9506, 14015, 3219, 6813, 13, 4261, 2934, 542, 5554, 2040, 12, 3950, 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 ]
match(input,BOOL,FOLLOW_BOOL_in_auto_focus1071); following.push(FOLLOW_opt_eol_in_auto_focus1073);
match(input,BOOL,FOLLOW_BOOL_in_auto_focus1075); following.push(FOLLOW_opt_eol_in_auto_focus1077);
public AttributeDescr auto_focus() throws RecognitionException { AttributeDescr d; Token loc=null; Token t=null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:487:17: ( (loc= 'auto-focus' opt_eol ( ';' )? opt_eol ) | (loc= 'auto-focus' t= BOOL opt_eol ( ';' )? opt_eol ) ) int alt36=2; int LA36_0 = input.LA(1); if ( LA36_0==35 ) { int LA36_1 = input.LA(2); if ( LA36_1==BOOL ) { alt36=2; } else if ( LA36_1==EOL||LA36_1==15||LA36_1==22||LA36_1==27||LA36_1==29||LA36_1==31||(LA36_1>=33 && LA36_1<=38) ) { alt36=1; } else { NoViableAltException nvae = new NoViableAltException("482:1: auto_focus returns [AttributeDescr d] : ( (loc= \'auto-focus\' opt_eol ( \';\' )? opt_eol ) | (loc= \'auto-focus\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 36, 1, input); throw nvae; } } else { NoViableAltException nvae = new NoViableAltException("482:1: auto_focus returns [AttributeDescr d] : ( (loc= \'auto-focus\' opt_eol ( \';\' )? opt_eol ) | (loc= \'auto-focus\' t= BOOL opt_eol ( \';\' )? opt_eol ) );", 36, 0, input); throw nvae; } switch (alt36) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:487:17: (loc= 'auto-focus' opt_eol ( ';' )? opt_eol ) { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:487:17: (loc= 'auto-focus' opt_eol ( ';' )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:488:25: loc= 'auto-focus' opt_eol ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,35,FOLLOW_35_in_auto_focus1035); following.push(FOLLOW_opt_eol_in_auto_focus1037); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:488:50: ( ';' )? int alt34=2; int LA34_0 = input.LA(1); if ( LA34_0==15 ) { alt34=1; } else if ( LA34_0==EOL||LA34_0==22||LA34_0==27||LA34_0==29||LA34_0==31||(LA34_0>=33 && LA34_0<=38) ) { alt34=2; } else { NoViableAltException nvae = new NoViableAltException("488:50: ( \';\' )?", 34, 0, input); throw nvae; } switch (alt34) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:488:50: ';' { match(input,15,FOLLOW_15_in_auto_focus1039); } break; } following.push(FOLLOW_opt_eol_in_auto_focus1042); opt_eol(); following.pop(); d = new AttributeDescr( "auto-focus", "true" ); d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:495:17: (loc= 'auto-focus' t= BOOL opt_eol ( ';' )? opt_eol ) { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:495:17: (loc= 'auto-focus' t= BOOL opt_eol ( ';' )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:496:25: loc= 'auto-focus' t= BOOL opt_eol ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,35,FOLLOW_35_in_auto_focus1067); t=(Token)input.LT(1); match(input,BOOL,FOLLOW_BOOL_in_auto_focus1071); following.push(FOLLOW_opt_eol_in_auto_focus1073); opt_eol(); following.pop(); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:496:57: ( ';' )? int alt35=2; int LA35_0 = input.LA(1); if ( LA35_0==15 ) { alt35=1; } else if ( LA35_0==EOL||LA35_0==22||LA35_0==27||LA35_0==29||LA35_0==31||(LA35_0>=33 && LA35_0<=38) ) { alt35=2; } else { NoViableAltException nvae = new NoViableAltException("496:57: ( \';\' )?", 35, 0, input); throw nvae; } switch (alt35) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:496:57: ';' { match(input,15,FOLLOW_15_in_auto_focus1075); } break; } following.push(FOLLOW_opt_eol_in_auto_focus1078); opt_eol(); following.pop(); d = new AttributeDescr( "auto-focus", t.getText() ); d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/e3fb9256ae6e5fcb8c78a2c3dbd47f678d9b1287/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 3656, 67, 13923, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 268, 33, 2011, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 8875, 27, 30, 4033, 30, 261, 261, 1829, 33, 296, 6079, 17, 13923, 11, 2153, 67, 30951, 261, 7554, 7851, 2153, 67, 30951, 262, 571, 261, 1829, 33, 296, 6079, 17, 13923, 11, 268, 33, 9784, 1741, 2153, 67, 30951, 261, 7554, 7851, 2153, 67, 30951, 262, 262, 5411, 509, 3770, 5718, 33, 22, 31, 5411, 509, 2928, 5718, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 5411, 309, 261, 2928, 5718, 67, 20, 631, 4763, 262, 288, 7734, 509, 2928, 5718, 67, 21, 273, 810, 18, 2534, 12, 22, 1769, 7734, 309, 261, 2928, 5718, 67, 21, 631, 19040, 262, 288, 10792, 3770, 5718, 33, 22, 31, 7734, 289, 7734, 469, 309, 261, 2928, 5718, 67, 21, 631, 5842, 20081, 2534, 5718, 67, 21, 631, 3600, 20081, 2534, 5718, 67, 21, 631, 3787, 20081, 2534, 5718, 67, 21, 631, 5324, 20081, 2534, 5718, 67, 21, 631, 5540, 20081, 2534, 5718, 67, 21, 631, 6938, 20081, 12, 2534, 5718, 67, 21, 34, 33, 3707, 597, 2928, 5718, 67, 21, 32, 33, 7414, 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, 3601, 16198, 3656, 67, 13923, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 268, 33, 2011, 31, 1171, 202, 202, 72, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 8875, 27, 30, 4033, 30, 261, 261, 1829, 33, 296, 6079, 17, 13923, 11, 2153, 67, 30951, 261, 7554, 7851, 2153, 67, 30951, 262, 571, 261, 1829, 33, 296, 6079, 17, 13923, 11, 268, 33, 9784, 1741, 2153, 67, 30951, 261, 7554, 7851, 2153, 67, 2 ]
public DateTimeValue(String dateTime) throws XPathException { Perl5Util util = new Perl5Util(); if (!util.match(regex, dateTime)) throw new XPathException( "Type error: string " + dateTime + " cannot be cast into an xs:dateTime"); String part = util.group(1); int era = 1; if (part != null && part.equals("-")) era = -1; part = util.group(2); int year = Integer.parseInt(part) * era; part = util.group(3); int month = Integer.parseInt(part); part = util.group(4); int day = Integer.parseInt(part); part = util.group(5); int hour = Integer.parseInt(part); part = util.group(6); int minutes = Integer.parseInt(part); part = util.group(7); int seconds = Integer.parseInt(part); part = util.group(9); int millis = 0; if (part != null) { if (part.length() < 3) part += "00"; if (part.length() > 3) part = part.substring(0, 3); millis = Integer.parseInt(part); } part = util.group(10); if (part != null && part.length() > 0 && (!part.equals("Z"))) { if (!util.match(tzre, part)) throw new XPathException("Type error: error in timezone: " + part); explicitTimeZone = true; part = util.group(2); tzOffset = Integer.parseInt(part) * 60; part = util.group(3); if (part != null) { int tzminute = Integer.parseInt(part); tzOffset += tzminute; } part = util.group(1); if (part.equals("-")) tzOffset *= -1; } SimpleTimeZone zone = new SimpleTimeZone(tzOffset * 60000, "LLL"); if(explicitTimeZone) calendar = new GregorianCalendar(zone); else { calendar = new GregorianCalendar(); tzOffset = (calendar.get(Calendar.ZONE_OFFSET) + calendar.get(Calendar.DST_OFFSET)) / 60000; } calendar.setLenient(false); calendar.set(year, month - 1, day, hour, minutes, seconds); calendar.set(Calendar.MILLISECOND, millis); if(explicitTimeZone) calendar.set(Calendar.ZONE_OFFSET, tzOffset * 60000); try { date = calendar.getTime(); } catch (Exception e) { throw new XPathException( "Type error: string " + dateTime + " cannot be cast into an xs:dateTime"); }
public DateTimeValue() { calendar = new GregorianCalendar(); tzOffset = (calendar.get(Calendar.ZONE_OFFSET) + calendar.get(Calendar.DST_OFFSET)) / 60000; date = calendar.getTime();
public DateTimeValue(String dateTime) throws XPathException { Perl5Util util = new Perl5Util(); if (!util.match(regex, dateTime)) throw new XPathException( "Type error: string " + dateTime + " cannot be cast into an xs:dateTime"); String part = util.group(1); int era = 1; if (part != null && part.equals("-")) era = -1; part = util.group(2); int year = Integer.parseInt(part) * era; part = util.group(3); int month = Integer.parseInt(part); part = util.group(4); int day = Integer.parseInt(part); part = util.group(5); int hour = Integer.parseInt(part); part = util.group(6); int minutes = Integer.parseInt(part); part = util.group(7); int seconds = Integer.parseInt(part); part = util.group(9); int millis = 0; if (part != null) { if (part.length() < 3) part += "00"; if (part.length() > 3) part = part.substring(0, 3); millis = Integer.parseInt(part); } part = util.group(10); if (part != null && part.length() > 0 && (!part.equals("Z"))) { if (!util.match(tzre, part)) throw new XPathException("Type error: error in timezone: " + part); explicitTimeZone = true; part = util.group(2); tzOffset = Integer.parseInt(part) * 60; part = util.group(3); if (part != null) { int tzminute = Integer.parseInt(part); tzOffset += tzminute; } part = util.group(1); if (part.equals("-")) tzOffset *= -1; } SimpleTimeZone zone = new SimpleTimeZone(tzOffset * 60000, "LLL"); if(explicitTimeZone) calendar = new GregorianCalendar(zone); else { calendar = new GregorianCalendar(); tzOffset = (calendar.get(Calendar.ZONE_OFFSET) + calendar.get(Calendar.DST_OFFSET)) / 60000; } calendar.setLenient(false); calendar.set(year, month - 1, day, hour, minutes, seconds); calendar.set(Calendar.MILLISECOND, millis); if(explicitTimeZone) calendar.set(Calendar.ZONE_OFFSET, tzOffset * 60000); try { date = calendar.getTime(); } catch (Exception e) { throw new XPathException( "Type error: string " + dateTime + " cannot be cast into an xs:dateTime"); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/0d02dbc1d0f616dab3f8e359783b411587927ee5/DateTimeValue.java/buggy/src/org/exist/xpath/value/DateTimeValue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3716, 620, 12, 780, 9296, 13, 1216, 10172, 503, 288, 202, 202, 2173, 80, 25, 1304, 1709, 273, 394, 5722, 80, 25, 1304, 5621, 202, 202, 430, 16051, 1367, 18, 1916, 12, 7584, 16, 9296, 3719, 1082, 202, 12849, 394, 10172, 503, 12, 9506, 202, 6, 559, 555, 30, 533, 315, 397, 9296, 397, 315, 2780, 506, 4812, 1368, 392, 9280, 30, 712, 950, 8863, 202, 202, 780, 1087, 273, 1709, 18, 1655, 12, 21, 1769, 202, 202, 474, 25120, 273, 404, 31, 202, 202, 430, 261, 2680, 480, 446, 597, 1087, 18, 14963, 2932, 10951, 3719, 1082, 202, 6070, 273, 300, 21, 31, 202, 202, 2680, 273, 1709, 18, 1655, 12, 22, 1769, 202, 202, 474, 3286, 273, 2144, 18, 2670, 1702, 12, 2680, 13, 380, 25120, 31, 202, 202, 2680, 273, 1709, 18, 1655, 12, 23, 1769, 202, 202, 474, 3138, 273, 2144, 18, 2670, 1702, 12, 2680, 1769, 202, 202, 2680, 273, 1709, 18, 1655, 12, 24, 1769, 202, 202, 474, 2548, 273, 2144, 18, 2670, 1702, 12, 2680, 1769, 202, 202, 2680, 273, 1709, 18, 1655, 12, 25, 1769, 202, 202, 474, 6126, 273, 2144, 18, 2670, 1702, 12, 2680, 1769, 202, 202, 2680, 273, 1709, 18, 1655, 12, 26, 1769, 202, 202, 474, 6824, 273, 2144, 18, 2670, 1702, 12, 2680, 1769, 202, 202, 2680, 273, 1709, 18, 1655, 12, 27, 1769, 202, 202, 474, 3974, 273, 2144, 18, 2670, 1702, 12, 2680, 1769, 202, 202, 2680, 273, 1709, 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, 3716, 620, 12, 780, 9296, 13, 1216, 10172, 503, 288, 202, 202, 2173, 80, 25, 1304, 1709, 273, 394, 5722, 80, 25, 1304, 5621, 202, 202, 430, 16051, 1367, 18, 1916, 12, 7584, 16, 9296, 3719, 1082, 202, 12849, 394, 10172, 503, 12, 9506, 202, 6, 559, 555, 30, 533, 315, 397, 9296, 397, 315, 2780, 506, 4812, 1368, 392, 9280, 30, 712, 950, 8863, 202, 202, 780, 1087, 273, 1709, 18, 1655, 12, 21, 1769, 202, 202, 474, 25120, 273, 404, 31, 202, 202, 430, 261, 2680, 480, 446, 597, 1087, 18, 14963, 2932, 10951, 3719, 1082, 202, 6070, 273, 300, 21, 31, 202, 202, 2680, 273, 1709, 18, 1655, 12, 22, 1769, 202, 202, 2 ]
_loop1793:
_loop1794:
public final void putcursorstate(AST _t) throws RecognitionException { AST putcursorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1788 = _t; AST tmp1136_AST_in = (AST)_t; match(_t,PUT); _t = _t.getFirstChild(); AST tmp1137_AST_in = (AST)_t; match(_t,CURSOR); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OFF: { AST tmp1138_AST_in = (AST)_t; match(_t,OFF); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COLUMN: case ROW: { { _loop1793: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ROW: { AST __t1791 = _t; AST tmp1139_AST_in = (AST)_t; match(_t,ROW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1791; _t = _t.getNextSibling(); break; } case COLUMN: { AST __t1792 = _t; AST tmp1140_AST_in = (AST)_t; match(_t,COLUMN); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1792; _t = _t.getNextSibling(); break; } default: { break _loop1793; } } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t1788; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1378, 9216, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1378, 9216, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 4033, 5482, 273, 389, 88, 31, 202, 202, 9053, 1853, 2499, 5718, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 4762, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 2499, 6418, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 7509, 55, 916, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 95, 202, 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, 17511, 30, 202, 202, 95, 1082, 202, 9053, 1853, 2499, 7414, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 8797, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 6431, 30, 202, 202, 3593, 10950, 21054, 30, 202, 202, 3593, 13473, 30, 202, 202, 3593, 29589, 30, 202, 202, 95, 1082, 202, 95, 1082, 202, 67, 6498, 4033, 11180, 30, 1082, 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, 482, 727, 918, 1378, 9216, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1378, 9216, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 4033, 5482, 273, 389, 88, 31, 202, 202, 9053, 1853, 2499, 5718, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 4762, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 2499, 6418, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 7509, 55, 916, 1769, 202, 2 ]
public void createVM(UniversalProcess remoteProcess) throws java.rmi.RemoteException,java.io.IOException;
public void createVM(UniversalProcess remoteProcess) throws java.rmi.RemoteException, java.io.IOException;
public void createVM(UniversalProcess remoteProcess) throws java.rmi.RemoteException,java.io.IOException;
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/c171c3550f70b496c1228bbed45f5f8feea45a9c/RemoteProActiveRuntime.java/buggy/src/org/objectweb/proactive/core/runtime/rmi/RemoteProActiveRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 752, 7397, 12, 984, 14651, 2227, 2632, 2227, 13, 1216, 2252, 18, 8864, 77, 18, 5169, 503, 16, 6290, 18, 1594, 18, 14106, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 752, 7397, 12, 984, 14651, 2227, 2632, 2227, 13, 1216, 2252, 18, 8864, 77, 18, 5169, 503, 16, 6290, 18, 1594, 18, 14106, 31, 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 ]
TypePackageImpl theTypePackage = (TypePackageImpl) (EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE .getEPackage(TypePackage.eNS_URI) : TypePackageImpl.eINSTANCE); ComponentPackageImpl theComponentPackage = (ComponentPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(ComponentPackage.eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(ComponentPackage.eNS_URI) : ComponentPackageImpl.eINSTANCE);
public static LayoutPackage init() { if (isInited) return (LayoutPackage) EPackage.Registry.INSTANCE.getEPackage(LayoutPackage.eNS_URI); // Obtain or create and register package LayoutPackageImpl theLayoutPackage = (LayoutPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof LayoutPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(eNS_URI) : new LayoutPackageImpl()); isInited = true; // Initialize simple dependencies XMLTypePackageImpl.init(); // Obtain or create and register interdependencies ModelPackageImpl theModelPackage = (ModelPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(ModelPackage.eNS_URI) instanceof ModelPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(ModelPackage.eNS_URI) : ModelPackageImpl.eINSTANCE); TypePackageImpl theTypePackage = (TypePackageImpl) (EPackage.Registry.INSTANCE.getEPackage(TypePackage.eNS_URI) instanceof TypePackageImpl ? EPackage.Registry.INSTANCE .getEPackage(TypePackage.eNS_URI) : TypePackageImpl.eINSTANCE); ComponentPackageImpl theComponentPackage = (ComponentPackageImpl) (EPackage.Registry.INSTANCE .getEPackage(ComponentPackage.eNS_URI) instanceof ComponentPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(ComponentPackage.eNS_URI) : ComponentPackageImpl.eINSTANCE); AttributePackageImpl theAttributePackage = (AttributePackageImpl) (EPackage.Registry.INSTANCE .getEPackage(AttributePackage.eNS_URI) instanceof AttributePackageImpl ? EPackage.Registry.INSTANCE .getEPackage(AttributePackage.eNS_URI) : AttributePackageImpl.eINSTANCE); DataPackageImpl theDataPackage = (DataPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI) instanceof DataPackageImpl ? EPackage.Registry.INSTANCE .getEPackage(DataPackage.eNS_URI) : DataPackageImpl.eINSTANCE); // Create package meta-data objects theLayoutPackage.createPackageContents(); theModelPackage.createPackageContents(); theTypePackage.createPackageContents(); theComponentPackage.createPackageContents(); theAttributePackage.createPackageContents(); theDataPackage.createPackageContents(); // Initialize created meta-data theLayoutPackage.initializePackageContents(); theModelPackage.initializePackageContents(); theTypePackage.initializePackageContents(); theComponentPackage.initializePackageContents(); theAttributePackage.initializePackageContents(); theDataPackage.initializePackageContents(); // Mark meta-data to indicate it can't be changed theLayoutPackage.freeze(); return theLayoutPackage; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/869b9dc91ef4dd13d07f589c6394484a744642f0/LayoutPackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LayoutPackageImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 9995, 2261, 1208, 1435, 565, 288, 3639, 309, 261, 291, 2570, 329, 13, 5411, 327, 261, 3744, 2261, 13, 10682, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 3744, 2261, 18, 73, 3156, 67, 3098, 1769, 3639, 368, 24850, 578, 752, 471, 1744, 2181, 3639, 9995, 2261, 2828, 326, 3744, 2261, 273, 261, 3744, 2261, 2828, 13, 261, 41, 2261, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 73, 3156, 67, 3098, 13, 1276, 9995, 2261, 2828, 692, 10682, 18, 4243, 18, 13341, 5411, 263, 588, 41, 2261, 12, 73, 3156, 67, 3098, 13, 5411, 294, 394, 9995, 2261, 2828, 10663, 3639, 353, 2570, 329, 273, 638, 31, 3639, 368, 9190, 4143, 5030, 3639, 3167, 559, 2261, 2828, 18, 2738, 5621, 3639, 368, 24850, 578, 752, 471, 1744, 1554, 11037, 3639, 3164, 2261, 2828, 326, 1488, 2261, 273, 261, 1488, 2261, 2828, 13, 261, 41, 2261, 18, 4243, 18, 13341, 5411, 263, 588, 41, 2261, 12, 1488, 2261, 18, 73, 3156, 67, 3098, 13, 1276, 3164, 2261, 2828, 692, 10682, 18, 4243, 18, 13341, 5411, 263, 588, 41, 2261, 12, 1488, 2261, 18, 73, 3156, 67, 3098, 13, 294, 3164, 2261, 2828, 18, 73, 13341, 1769, 3639, 1412, 2261, 2828, 326, 559, 2261, 273, 261, 559, 2261, 2828, 13, 261, 41, 2261, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 559, 2261, 18, 73, 3156, 67, 3098, 13, 1276, 1412, 2261, 2828, 692, 10682, 18, 4243, 18, 13341, 5411, 263, 588, 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, 9995, 2261, 1208, 1435, 565, 288, 3639, 309, 261, 291, 2570, 329, 13, 5411, 327, 261, 3744, 2261, 13, 10682, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 3744, 2261, 18, 73, 3156, 67, 3098, 1769, 3639, 368, 24850, 578, 752, 471, 1744, 2181, 3639, 9995, 2261, 2828, 326, 3744, 2261, 273, 261, 3744, 2261, 2828, 13, 261, 41, 2261, 18, 4243, 18, 13341, 18, 588, 41, 2261, 12, 73, 3156, 67, 3098, 13, 1276, 9995, 2261, 2828, 692, 10682, 18, 4243, 18, 13341, 5411, 263, 588, 41, 2261, 12, 73, 3156, 67, 3098, 13, 5411, 294, 394, 9995, 2261, 2828, 10663, 3639, 353, 2570, 329, 273, 638, 31, 3639, 368, 9190, 4143, 5030, 3639, 2 ]
if(toSend != null)
if(toSend != null) {
private void finish() { Message toSend = null; synchronized(this) { // REDFLAG do not use synch(this) for any other purpose! if(!canCommit) return; if(!prb.allReceived()) return; try { CHKBlock block = new CHKBlock(prb.getBlock(), headers, key); node.store(block); } catch (CHKVerifyException e) { Logger.error(this, "Verify failed in InsertHandler: "+e+" - headers: "+HexUtil.bytesToHex(headers), e); toSend = DMT.createFNPDataInsertRejected(uid, DMT.DATA_INSERT_REJECTED_VERIFY_FAILED); } } if(toSend != null) source.sendAsync(toSend); }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/27f407d086a1dbf43da0232680fb0f61503732d4/InsertHandler.java/clean/src/freenet/node/InsertHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4076, 1435, 288, 3639, 2350, 358, 3826, 273, 446, 31, 3639, 3852, 12, 2211, 13, 288, 368, 14411, 9651, 741, 486, 999, 272, 2515, 12, 2211, 13, 364, 1281, 1308, 13115, 5, 5411, 309, 12, 5, 4169, 5580, 13, 327, 31, 5411, 309, 12, 5, 683, 70, 18, 454, 8872, 10756, 327, 31, 5411, 775, 288, 7734, 6469, 47, 1768, 1203, 273, 394, 6469, 47, 1768, 12, 683, 70, 18, 588, 1768, 9334, 1607, 16, 498, 1769, 7734, 756, 18, 2233, 12, 2629, 1769, 5411, 289, 1044, 261, 1792, 47, 8097, 503, 425, 13, 288, 7734, 4242, 18, 1636, 12, 2211, 16, 315, 8097, 2535, 316, 8040, 1503, 30, 13773, 73, 9078, 300, 1607, 30, 13773, 7037, 1304, 18, 3890, 774, 7037, 12, 2485, 3631, 425, 1769, 7734, 358, 3826, 273, 463, 6152, 18, 2640, 19793, 52, 751, 4600, 19902, 12, 1911, 16, 463, 6152, 18, 4883, 67, 11356, 67, 862, 5304, 2056, 67, 23756, 67, 11965, 1769, 5411, 289, 3639, 289, 3639, 309, 12, 869, 3826, 480, 446, 13, 288, 5411, 1084, 18, 4661, 2771, 12, 869, 3826, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4076, 1435, 288, 3639, 2350, 358, 3826, 273, 446, 31, 3639, 3852, 12, 2211, 13, 288, 368, 14411, 9651, 741, 486, 999, 272, 2515, 12, 2211, 13, 364, 1281, 1308, 13115, 5, 5411, 309, 12, 5, 4169, 5580, 13, 327, 31, 5411, 309, 12, 5, 683, 70, 18, 454, 8872, 10756, 327, 31, 5411, 775, 288, 7734, 6469, 47, 1768, 1203, 273, 394, 6469, 47, 1768, 12, 683, 70, 18, 588, 1768, 9334, 1607, 16, 498, 1769, 7734, 756, 18, 2233, 12, 2629, 1769, 5411, 289, 1044, 261, 1792, 47, 8097, 503, 425, 13, 288, 7734, 4242, 18, 1636, 12, 2211, 16, 315, 8097, 2535, 316, 8040, 1503, 30, 13773, 73, 9078, 300, 1607, 30, 13773, 2 ]
if ((!this.hasRealFeat(anAbility) && !this.hasFeatAutomatic(featKey)))
if ((!this.hasRealFeat(anAbility) && !this .hasFeatAutomatic(featKey)))
public void setRace(final Race aRace) { final Race oldRace = getRace(); final boolean raceIsNull = (oldRace == null); // needed because race is set to null later final boolean firstLevel = getTotalClassLevels()==1; // remove current race attributes if (!raceIsNull) { oldRace.getSpellSupport().clearCharacterSpells(); if (PlayerCharacterUtilities.canReassignRacialFeats()) { final StringTokenizer aTok = new StringTokenizer(oldRace.getFeatList(this), Constants.PIPE); while (aTok.hasMoreTokens()) { final String aString = aTok.nextToken(); if (aString.endsWith(")") && (Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString) == null)) { final String featKey = aString.substring(0, aString.indexOf('(') - 1); final Ability anAbility = Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, featKey); if (anAbility != null) { AbilityUtilities.modFeat(this, null, aString, true, false);// setFeats(feats - anAbility.getCost(this)); adjustFeats(-anAbility.getCost(this)); } } else { final Ability anAbility = Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString); if (anAbility != null) { final String featKey = anAbility.getKeyName(); if ((hasRealFeat(anAbility) || hasFeatAutomatic(featKey))) { AbilityUtilities.modFeat(this, null, aString, true, false);// setFeats(feats - anAbility.getCost(this)); adjustFeats(-anAbility.getCost(this)); } } else { ShowMessageDelegate.showMessageDialog("Removing unknown feat: " + aString, Constants.s_APPNAME, MessageType.INFORMATION); } } } } languages.removeAll(oldRace.getSafeListFor(ListKey.AUTO_LANGUAGES)); cachedWeaponProfs = null; if (stringChar.hasCharacteristic(StringKey.RACIAL_FAVORED_CLASS)) { favoredClasses.remove(stringChar.getCharacteristic(StringKey.RACIAL_FAVORED_CLASS)); } removeNaturalWeapons(race); for (String s : race.templatesAdded()) { removeTemplate(getTemplateKeyed(s)); } if ((race.getMonsterClass(this) != null) && (race.getMonsterClassLevels(this) != 0)) { final PCClass mclass = Globals.getClassKeyed(race.getMonsterClass(this)); if (mclass != null) { incrementClassLevel(race.getMonsterClassLevels(this) * -1, mclass, true); } } } // add new race attributes race = null; if (aRace != null) { race = (Race) aRace.clone(); } if (race != null) { race.activateBonuses(this); if (!isImporting()) { Globals.getBioSet().randomize("AGE.HT.WT", this); } // Get existing classes final List<PCClass> existingClasses = new ArrayList<PCClass>(classList); classList.clear(); // // Remove all saved monster level information // for (int i = getLevelInfoSize() - 1; i >= 0; --i) { final String classKeyName = getLevelInfoClassKeyName(i); final PCClass aClass = Globals.getClassKeyed(classKeyName); if ((aClass == null) || aClass.isMonster()) { removeLevelInfo(i); } } final List<PCLevelInfo> existingLevelInfo = new ArrayList<PCLevelInfo>(pcLevelInfo); pcLevelInfo.clear(); // Make sure monster classes are added first if (!isImporting() && (race.getMonsterClass(this) != null) && (race.getMonsterClassLevels(this) != 0)) { final PCClass mclass = Globals.getClassKeyed(race.getMonsterClass(this)); if (mclass != null) { incrementClassLevel(race.getMonsterClassLevels(this), mclass, true); } } pcLevelInfo.addAll(existingLevelInfo); // // If user has chosen a class before choosing a race, // we need to tweak the number of skill points and feats // if (!isImporting() && existingClasses.size()!=0) { int totalLevels = this.getTotalLevels();// final Integer zero = Integer.valueOf(0); for ( PCClass pcClass : existingClasses ) { // // Don't add monster classes back in. This will possibly mess up feats earned by level // ?Possibly convert to mclass if not null? // if (!pcClass.isMonster()) { classList.add(pcClass); final int cLevels = pcClass.getLevel(); //aClass.setLevel(0); pcClass.setSkillPool(0); int cMod = 0; for (int j = 0; j < cLevels; ++j) { cMod += pcClass.recalcSkillPointMod(this, ++totalLevels); } pcClass.setSkillPool(cMod); } } } addNaturalWeapons(race.getNaturalWeapons()); if (PlayerCharacterUtilities.canReassignRacialFeats()) { final StringTokenizer aTok = new StringTokenizer(getRace().getFeatList(this), Constants.PIPE); while (aTok.hasMoreTokens()) { final String aString = aTok.nextToken(); if (aString.endsWith(")") && (Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString) == null)) { // we want the first instance of it, in case of Weapon Focus(Longbow (Composite)) final String featKey = aString.substring(0, aString.indexOf('(') - 1); final Ability anAbility = Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, featKey); if (anAbility != null) {// setFeats(feats + anAbility.getCost(this)); adjustFeats(anAbility.getCost(this)); AbilityUtilities.modFeat(this, null, aString, true, true); } } else { final Ability anAbility = Globals.getAbilityKeyed(Constants.FEAT_CATEGORY, aString); if (anAbility != null) { final String featKey = anAbility.getKeyName(); if ((!this.hasRealFeat(anAbility) && !this.hasFeatAutomatic(featKey))) {// setFeats(feats + anAbility.getCost(this)); adjustFeats(anAbility.getCost(this)); //modFeat(featName, true, featName.endsWith("Proficiency")); AbilityUtilities.modFeat(this, null, aString, true, true); } } else { ShowMessageDelegate.showMessageDialog("Adding unknown feat: " + aString, Constants.s_APPNAME, MessageType.INFORMATION); } } } } getAutoLanguages(); getRacialFavoredClasses(); race.getTemplates(isImporting(), this); // gets and adds templates race.chooseLanguageAutos(isImporting(), this); }// TODO - Change this back// setAggregateAbilitiesStable(null, false); setAggregateFeatsStable(false); setAutomaticFeatsStable(false); setVirtualFeatsStable(false); if (!isImporting()) { getSpellList(); race.globalChecks(this); adjustMoveRates(); calcActiveBonuses(); } setDirty(true); }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 54, 623, 12, 6385, 534, 623, 279, 54, 623, 13, 202, 95, 202, 202, 6385, 534, 623, 1592, 54, 623, 273, 4170, 623, 5621, 202, 202, 6385, 1250, 17996, 2520, 2041, 273, 261, 1673, 54, 623, 422, 446, 1769, 368, 3577, 2724, 17996, 353, 444, 358, 446, 5137, 202, 202, 6385, 1250, 1122, 2355, 273, 12831, 797, 12240, 1435, 631, 21, 31, 202, 202, 759, 1206, 783, 17996, 1677, 202, 202, 430, 16051, 9963, 2520, 2041, 13, 202, 202, 95, 1082, 202, 1673, 54, 623, 18, 588, 3389, 1165, 6289, 7675, 8507, 7069, 3389, 1165, 87, 5621, 1082, 202, 430, 261, 12148, 7069, 11864, 18, 4169, 426, 6145, 54, 1077, 649, 2954, 2323, 10756, 1082, 202, 95, 9506, 202, 6385, 16370, 279, 20477, 273, 394, 16370, 12, 1673, 54, 623, 18, 588, 11667, 682, 12, 2211, 3631, 5245, 18, 27602, 1769, 9506, 202, 17523, 261, 69, 20477, 18, 5332, 7417, 5157, 10756, 9506, 202, 95, 6862, 202, 6385, 514, 279, 780, 273, 279, 20477, 18, 4285, 1345, 5621, 6862, 202, 430, 261, 69, 780, 18, 5839, 1190, 2932, 2225, 13, 597, 261, 19834, 18, 588, 5895, 1889, 653, 329, 12, 2918, 18, 8090, 789, 67, 24847, 16, 279, 780, 13, 422, 446, 3719, 6862, 202, 95, 25083, 202, 6385, 514, 11002, 653, 273, 279, 780, 18, 28023, 12, 20, 16, 279, 780, 18, 31806, 2668, 2668, 13, 300, 404, 1769, 25083, 202, 6385, 9771, 1889, 392, 5895, 1889, 273, 18901, 1031, 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, 444, 54, 623, 12, 6385, 534, 623, 279, 54, 623, 13, 202, 95, 202, 202, 6385, 534, 623, 1592, 54, 623, 273, 4170, 623, 5621, 202, 202, 6385, 1250, 17996, 2520, 2041, 273, 261, 1673, 54, 623, 422, 446, 1769, 368, 3577, 2724, 17996, 353, 444, 358, 446, 5137, 202, 202, 6385, 1250, 1122, 2355, 273, 12831, 797, 12240, 1435, 631, 21, 31, 202, 202, 759, 1206, 783, 17996, 1677, 202, 202, 430, 16051, 9963, 2520, 2041, 13, 202, 202, 95, 1082, 202, 1673, 54, 623, 18, 588, 3389, 1165, 6289, 7675, 8507, 7069, 3389, 1165, 87, 5621, 1082, 202, 430, 261, 12148, 7069, 11864, 18, 4169, 426, 6145, 54, 1077, 649, 2954, 2323, 10756, 2 ]
java.lang.String n = get_child_name(p1); java.lang.String r = get_remaining_name(p1);
java.lang.Object n = get_child_name(p1); java.lang.Object r = get_remaining_name(p1);
static java.lang.Object get_item_element(java.lang.Object p0, java.lang.Object p1) { java.lang.Object e = null; Item i = (Item) p0; if (i != null) { LogHandler.log(LogHandler.INFO_LOG_LEVEL, "Get item element: " + p1); java.lang.String n = get_child_name(p1); java.lang.String r = get_remaining_name(p1); if (r != null) { // The given item is the parent of another parent. Item child = MapHandler.get_map_element(i.items, n); // Continue to process along the hierarchical name. e = ItemHandler.get_item_element(child, r); } else { // The given item is the parent of the child. e = MapHandler.get_map_element(i.items, n); } } else { LogHandler.log(LogHandler.ERROR_LOG_LEVEL, "Could not get item element. The item is null."); } return e; }
11597 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11597/5ddea7774ad8a189897de55191b0677da7618a39/ItemHandler.java/clean/trunk/src/cyboi/cyboi/ItemHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 2252, 18, 4936, 18, 921, 336, 67, 1726, 67, 2956, 12, 6290, 18, 4936, 18, 921, 293, 20, 16, 2252, 18, 4936, 18, 921, 293, 21, 13, 288, 3639, 2252, 18, 4936, 18, 921, 425, 273, 446, 31, 3639, 4342, 277, 273, 261, 1180, 13, 293, 20, 31, 3639, 309, 261, 77, 480, 446, 13, 288, 7734, 1827, 1503, 18, 1330, 12, 1343, 1503, 18, 5923, 67, 4842, 67, 10398, 16, 315, 967, 761, 930, 30, 315, 397, 293, 21, 1769, 5411, 2252, 18, 4936, 18, 780, 290, 273, 336, 67, 3624, 67, 529, 12, 84, 21, 1769, 5411, 2252, 18, 4936, 18, 780, 436, 273, 336, 67, 17956, 67, 529, 12, 84, 21, 1769, 13491, 309, 261, 86, 480, 446, 13, 288, 27573, 368, 1021, 864, 761, 353, 326, 982, 434, 4042, 982, 18, 7734, 4342, 1151, 273, 1635, 1503, 18, 588, 67, 1458, 67, 2956, 12, 77, 18, 3319, 16, 290, 1769, 27573, 368, 16773, 358, 1207, 7563, 326, 26633, 508, 18, 7734, 425, 273, 4342, 1503, 18, 588, 67, 1726, 67, 2956, 12, 3624, 16, 436, 1769, 18701, 289, 469, 288, 10792, 368, 1021, 864, 761, 353, 326, 982, 434, 326, 1151, 18, 7734, 425, 273, 1635, 1503, 18, 588, 67, 1458, 67, 2956, 12, 77, 18, 3319, 16, 290, 1769, 5411, 289, 3639, 289, 469, 288, 5411, 1827, 1503, 18, 1330, 12, 1343, 1503, 18, 3589, 67, 4842, 67, 10398, 16, 315, 4445, 486, 336, 761, 930, 18, 1021, 761, 353, 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, 760, 2252, 18, 4936, 18, 921, 336, 67, 1726, 67, 2956, 12, 6290, 18, 4936, 18, 921, 293, 20, 16, 2252, 18, 4936, 18, 921, 293, 21, 13, 288, 3639, 2252, 18, 4936, 18, 921, 425, 273, 446, 31, 3639, 4342, 277, 273, 261, 1180, 13, 293, 20, 31, 3639, 309, 261, 77, 480, 446, 13, 288, 7734, 1827, 1503, 18, 1330, 12, 1343, 1503, 18, 5923, 67, 4842, 67, 10398, 16, 315, 967, 761, 930, 30, 315, 397, 293, 21, 1769, 5411, 2252, 18, 4936, 18, 780, 290, 273, 336, 67, 3624, 67, 529, 12, 84, 21, 1769, 5411, 2252, 18, 4936, 18, 780, 436, 273, 336, 67, 17956, 67, 529, 12, 84, 21, 1769, 13491, 309, 2 ]
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec params = (RSAKeyGenParameterSpec) attributes.get(RSA_PARAMETERS); // find out the modulus length if (params != null) { L = params.getKeysize(); e = params.getPublicExponent(); } else { Integer l = (Integer) attributes.get(MODULUS_LENGTH); L = (l == null ? DEFAULT_MODULUS_LENGTH : l.intValue()); } if (L < 1024) { throw new IllegalArgumentException(MODULUS_LENGTH); } // what is the preferred encoding format Integer formatID = (Integer) attributes.get(PREFERRED_ENCODING_FORMAT); preferredFormat = formatID == null ? DEFAULT_ENCODING_FORMAT : formatID.intValue(); log.exiting(this.getClass().getName(), "setup"); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGenerator.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 8401, 12, 863, 4350, 15329, 1330, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 6, 8401, 3113, 4350, 1769, 759, 72, 543, 73, 21516, 69, 12834, 8529, 16, 280, 13139, 1814, 1202, 477, 995, 35, 86, 4880, 28657, 12834, 8529, 13, 4350, 18, 588, 12, 6537, 67, 3932, 67, 54, 28159, 5407, 1260, 1769, 759, 834, 91, 1332, 837, 2759, 792, 15248, 2010, 280, 91, 4607, 454, 1202, 477, 995, 35, 15248, 653, 7642, 1662, 1990, 2010, 28657, 15248, 653, 7642, 1662, 1990, 13, 4350, 18, 588, 12, 15248, 67, 20103, 1769, 759, 4720, 659, 451, 351, 369, 17284, 2469, 430, 12, 2010, 5, 33, 2011, 15329, 48, 33, 2010, 18, 588, 653, 1467, 5621, 73, 33, 2010, 18, 588, 4782, 17972, 5621, 97, 12107, 95, 4522, 80, 28657, 4522, 13, 4350, 18, 588, 12, 6720, 1506, 3378, 67, 7096, 1769, 48, 28657, 80, 631, 2011, 35, 5280, 67, 6720, 1506, 3378, 67, 7096, 30, 80, 18, 474, 620, 10663, 97, 430, 12, 48, 32, 2163, 3247, 15329, 12849, 2704, 31237, 12, 6720, 1506, 3378, 67, 7096, 1769, 97, 759, 23770, 376, 580, 23616, 5999, 2139, 4522, 2139, 734, 28657, 4522, 13, 4350, 18, 588, 12, 3670, 17356, 67, 14672, 67, 7254, 1769, 23616, 1630, 33, 2139, 734, 631, 2011, 35, 5280, 67, 14672, 67, 7254, 30, 2139, 734, 18, 474, 620, 5621, 1330, 18, 8593, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 6, 8401, 8863, 97, 2, 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, 1, 1, 1, 1, 1, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 8401, 12, 863, 4350, 15329, 1330, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 6, 8401, 3113, 4350, 1769, 759, 72, 543, 73, 21516, 69, 12834, 8529, 16, 280, 13139, 1814, 1202, 477, 995, 35, 86, 4880, 28657, 12834, 8529, 13, 4350, 18, 588, 12, 6537, 67, 3932, 67, 54, 28159, 5407, 1260, 1769, 759, 834, 91, 1332, 837, 2759, 792, 15248, 2010, 280, 91, 4607, 454, 1202, 477, 995, 35, 15248, 653, 7642, 1662, 1990, 2010, 28657, 15248, 653, 7642, 1662, 1990, 13, 4350, 18, 588, 12, 15248, 67, 20103, 1769, 759, 4720, 659, 451, 351, 369, 17284, 2469, 430, 12, 2010, 5, 33, 2011, 15329, 48, 33, 2010, 18, 588, 653, 1467, 2 ]
AbstractUIPlugin plugin = (AbstractUIPlugin) Platform .getPlugin(IDEWorkbenchPlugin.IDE_WORKBENCH);
AbstractUIPlugin plugin = IDEWorkbenchPlugin.getDefault();
private static void readFilters() { definedFilters = new ArrayList(); defaultFilters = new ArrayList(); AbstractUIPlugin plugin = (AbstractUIPlugin) Platform .getPlugin(IDEWorkbenchPlugin.IDE_WORKBENCH); if (plugin != null) { IExtensionPoint extension = plugin.getDescriptor() .getExtensionPoint(ResourcePatternFilter.FILTERS_TAG); if (extension != null) { IExtension[] extensions = extension.getExtensions(); for (int i = 0; i < extensions.length; i++) { IConfigurationElement[] configElements = extensions[i] .getConfigurationElements(); for (int j = 0; j < configElements.length; j++) { String pattern = configElements[j] .getAttribute("pattern");//$NON-NLS-1$ if (pattern != null) definedFilters.add(pattern); String selected = configElements[j] .getAttribute("selected");//$NON-NLS-1$ if (selected != null && selected.equalsIgnoreCase("true"))//$NON-NLS-1$ defaultFilters.add(pattern); } } } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b44617ebe568f7f4382cb371e3d1a291dd46bd17/FiltersContentProvider.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/FiltersContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 855, 5422, 1435, 288, 3639, 2553, 5422, 273, 394, 2407, 5621, 3639, 805, 5422, 273, 394, 2407, 5621, 3639, 4115, 5370, 3773, 1909, 273, 261, 7469, 5370, 3773, 13, 11810, 7734, 263, 588, 3773, 12, 10385, 2421, 22144, 3773, 18, 10385, 67, 10566, 38, 1157, 1792, 1769, 3639, 309, 261, 4094, 480, 446, 13, 288, 5411, 467, 3625, 2148, 2710, 273, 1909, 18, 588, 3187, 1435, 10792, 263, 588, 3625, 2148, 12, 1420, 3234, 1586, 18, 11126, 55, 67, 7927, 1769, 5411, 309, 261, 6447, 480, 446, 13, 288, 7734, 467, 3625, 8526, 4418, 273, 2710, 18, 588, 7513, 5621, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4418, 18, 2469, 31, 277, 27245, 288, 10792, 467, 1750, 1046, 8526, 642, 3471, 273, 4418, 63, 77, 65, 18701, 263, 588, 1750, 3471, 5621, 10792, 364, 261, 474, 525, 273, 374, 31, 525, 411, 642, 3471, 18, 2469, 31, 525, 27245, 288, 13491, 514, 1936, 273, 642, 3471, 63, 78, 65, 27573, 263, 588, 1499, 2932, 4951, 8863, 759, 8, 3993, 17, 5106, 17, 21, 8, 13491, 309, 261, 4951, 480, 446, 13, 18701, 2553, 5422, 18, 1289, 12, 4951, 1769, 13491, 514, 3170, 273, 642, 3471, 63, 78, 65, 27573, 263, 588, 1499, 2932, 8109, 8863, 759, 8, 3993, 17, 5106, 17, 21, 8, 13491, 309, 261, 8109, 480, 446, 27573, 597, 3170, 18, 14963, 5556, 2932, 3767, 6, 3719, 759, 8, 3993, 17, 5106, 17, 21, 8, 18701, 805, 5422, 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, 918, 855, 5422, 1435, 288, 3639, 2553, 5422, 273, 394, 2407, 5621, 3639, 805, 5422, 273, 394, 2407, 5621, 3639, 4115, 5370, 3773, 1909, 273, 261, 7469, 5370, 3773, 13, 11810, 7734, 263, 588, 3773, 12, 10385, 2421, 22144, 3773, 18, 10385, 67, 10566, 38, 1157, 1792, 1769, 3639, 309, 261, 4094, 480, 446, 13, 288, 5411, 467, 3625, 2148, 2710, 273, 1909, 18, 588, 3187, 1435, 10792, 263, 588, 3625, 2148, 12, 1420, 3234, 1586, 18, 11126, 55, 67, 7927, 1769, 5411, 309, 261, 6447, 480, 446, 13, 288, 7734, 467, 3625, 8526, 4418, 273, 2710, 18, 588, 7513, 5621, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4418, 18, 2469, 31, 277, 2 ]
LayoutManager curLM ;
LayoutManager curLM; int ipd = context.getRefIPD();
public BreakPoss getNextBreakPoss(LayoutContext context) { LayoutManager curLM ; // currently active LM MinOptMax stackSize = new MinOptMax(); // if starting add space before stackSize.add(layoutProps.spaceBefore.space); BreakPoss lastPos = null; while ((curLM = getChildLM()) != null) { // Make break positions and return blocks! // Set up a LayoutContext int ipd = context.getRefIPD(); BreakPoss bp; LayoutContext childLC = new LayoutContext(0); // if line layout manager then set stack limit to ipd // line LM actually generates a LineArea which is a block if (curLM.generatesInlineAreas()) { // set stackLimit for lines childLC.setStackLimit(new MinOptMax(ipd/* - m_iIndents - m_iTextIndent*/)); childLC.setRefIPD(ipd); } else { childLC.setStackLimit( MinOptMax.subtract(context.getStackLimit(), stackSize)); childLC.setRefIPD(ipd); } while (!curLM.isFinished()) { if ((bp = curLM.getNextBreakPoss(childLC)) != null) { stackSize.add(bp.getStackingSize()); if (stackSize.opt > context.getStackLimit().max) { // reset to last break if (lastPos != null) { reset(lastPos.getPosition()); } else { curLM.resetPosition(null); } break; } lastPos = bp; childBreaks.add(bp); if (curLM.generatesInlineAreas()) { // Reset stackLimit for non-first lines childLC.setStackLimit(new MinOptMax(ipd/* - m_iIndents*/)); } else { childLC.setStackLimit( MinOptMax.subtract( context.getStackLimit(), stackSize)); } } } if(getChildLM() == null) { stackSize.add(layoutProps.spaceAfter.space); } BreakPoss breakPoss = new BreakPoss( new LeafPosition(this, childBreaks.size() - 1)); breakPoss.setStackingSize(stackSize); return breakPoss; } setFinished(true); return null; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/a62f977d812bb273863a574255920ca141eec969/BlockLayoutManager.java/buggy/src/org/apache/fop/layoutmgr/BlockLayoutManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17030, 1616, 87, 6927, 7634, 1616, 87, 12, 3744, 1042, 819, 13, 288, 3639, 9995, 1318, 662, 17063, 31, 225, 509, 2359, 72, 273, 819, 18, 588, 1957, 2579, 40, 5621, 368, 4551, 2695, 511, 49, 3639, 5444, 6179, 2747, 2110, 1225, 273, 394, 5444, 6179, 2747, 5621, 3639, 368, 309, 5023, 527, 3476, 1865, 3639, 2110, 1225, 18, 1289, 12, 6741, 5047, 18, 2981, 4649, 18, 2981, 1769, 3639, 17030, 1616, 87, 1142, 1616, 273, 446, 31, 3639, 1323, 14015, 1397, 17063, 273, 8154, 17063, 10756, 480, 446, 13, 288, 5411, 368, 4344, 898, 6865, 471, 327, 4398, 5, 5411, 368, 1000, 731, 279, 9995, 1042, 5411, 509, 2359, 72, 273, 819, 18, 588, 1957, 2579, 40, 5621, 5411, 17030, 1616, 87, 9107, 31, 5411, 9995, 1042, 1151, 13394, 273, 394, 9995, 1042, 12, 20, 1769, 5411, 368, 309, 980, 3511, 3301, 1508, 444, 2110, 1800, 358, 2359, 72, 5411, 368, 980, 511, 49, 6013, 6026, 279, 5377, 5484, 1492, 353, 279, 1203, 5411, 309, 261, 1397, 17063, 18, 3441, 815, 10870, 28377, 10756, 288, 7734, 368, 444, 2110, 3039, 364, 2362, 7734, 1151, 13394, 18, 542, 2624, 3039, 12, 2704, 5444, 6179, 2747, 12, 625, 72, 20308, 300, 312, 67, 77, 3866, 4877, 300, 312, 67, 77, 1528, 7790, 5549, 10019, 7734, 1151, 13394, 18, 542, 1957, 2579, 40, 12, 625, 72, 1769, 5411, 289, 469, 288, 7734, 1151, 13394, 18, 542, 2624, 3039, 12, 5375, 5444, 6179, 2747, 18, 1717, 1575, 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, 377, 1071, 17030, 1616, 87, 6927, 7634, 1616, 87, 12, 3744, 1042, 819, 13, 288, 3639, 9995, 1318, 662, 17063, 31, 225, 509, 2359, 72, 273, 819, 18, 588, 1957, 2579, 40, 5621, 368, 4551, 2695, 511, 49, 3639, 5444, 6179, 2747, 2110, 1225, 273, 394, 5444, 6179, 2747, 5621, 3639, 368, 309, 5023, 527, 3476, 1865, 3639, 2110, 1225, 18, 1289, 12, 6741, 5047, 18, 2981, 4649, 18, 2981, 1769, 3639, 17030, 1616, 87, 1142, 1616, 273, 446, 31, 3639, 1323, 14015, 1397, 17063, 273, 8154, 17063, 10756, 480, 446, 13, 288, 5411, 368, 4344, 898, 6865, 471, 327, 4398, 5, 5411, 368, 1000, 731, 279, 9995, 1042, 5411, 509, 2359, 72, 273, 819, 18, 588, 1957, 2579, 2 ]
public TurnVectors determineTeamOrder(IGame game) {
public TurnVectors determineTeamOrder(IGame game) {
public TurnVectors determineTeamOrder(IGame game) { return TurnOrdered.generateTurnOrder( players , game); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/f4a72f650dc986645cb9c7ceba68b40c099515a5/Team.java/clean/megamek/src/megamek/common/Team.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22425, 21680, 4199, 8689, 2448, 12, 3047, 339, 7920, 13, 565, 288, 3639, 327, 22425, 16756, 18, 7163, 15858, 2448, 12, 18115, 269, 7920, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22425, 21680, 4199, 8689, 2448, 12, 3047, 339, 7920, 13, 565, 288, 3639, 327, 22425, 16756, 18, 7163, 15858, 2448, 12, 18115, 269, 7920, 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 ]
if( ts.typeName().indexOf( '.' ) < 0 ) { myUnion.imports.put( ts.typeName(), "" ); myUnion.imports.put( ts.typeName() + "Helper", "" ); }
myUnion.addImportedName( ts.typeName() );
public void parse() { for( Enumeration e = v.elements(); e.hasMoreElements();) ((IdlSymbol)e.nextElement()).parse(); ts.parse(); if( ts.typeName().indexOf( '.' ) < 0 ) { myUnion.imports.put( ts.typeName(), "" ); myUnion.imports.put( ts.typeName() + "Helper", "" ); } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/f6544f886bd0de358ae223da073c9ddd5590f718/SwitchBody.java/clean/src/org/jacorb/idl/SwitchBody.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 1435, 1875, 377, 288, 202, 1884, 12, 13864, 425, 273, 331, 18, 6274, 5621, 425, 18, 5332, 7417, 3471, 5621, 13, 202, 565, 14015, 548, 80, 5335, 13, 73, 18, 4285, 1046, 1435, 2934, 2670, 5621, 202, 3428, 18, 2670, 5621, 3639, 309, 12, 3742, 18, 723, 461, 7675, 31806, 12, 2611, 262, 411, 374, 262, 3639, 288, 5411, 3399, 14325, 18, 21350, 18, 458, 12, 3742, 18, 723, 461, 9334, 1408, 11272, 5411, 3399, 14325, 18, 21350, 18, 458, 12, 3742, 18, 723, 461, 1435, 397, 315, 2276, 3113, 1408, 11272, 3639, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1109, 1435, 1875, 377, 288, 202, 1884, 12, 13864, 425, 273, 331, 18, 6274, 5621, 425, 18, 5332, 7417, 3471, 5621, 13, 202, 565, 14015, 548, 80, 5335, 13, 73, 18, 4285, 1046, 1435, 2934, 2670, 5621, 202, 3428, 18, 2670, 5621, 3639, 309, 12, 3742, 18, 723, 461, 7675, 31806, 12, 2611, 262, 411, 374, 262, 3639, 288, 5411, 3399, 14325, 18, 21350, 18, 458, 12, 3742, 18, 723, 461, 9334, 1408, 11272, 5411, 3399, 14325, 18, 21350, 18, 458, 12, 3742, 18, 723, 461, 1435, 397, 315, 2276, 3113, 1408, 11272, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
mod.revision = version;
ClearCaseModification.ModifiedFile modfile = mod.createModifiedFile(fileName, folderName);
private ClearCaseModification parseEntry(String line) { LOG.debug("parsing entry: " + line); String[] tokens = tokeniseEntry(line); if (tokens == null) { return null; } String username = tokens[0].trim(); String timeStamp = tokens[1].trim(); String elementName = tokens[2].trim(); String version = tokens[3].trim(); String operationType = tokens[4].trim(); String labelList = tokens[5].substring(1).trim(); Vector labels = extractLabelsList(labelList); String attributeList = tokens[6].substring(1).trim(); Hashtable attributes = extractAttributesMap(attributeList); String comment = tokens[7].trim(); // A branch event shouldn't trigger a build if (operationType.equals("mkbranch")) { return null; } ClearCaseModification mod = new ClearCaseModification(); mod.userName = username; int sep = elementName.lastIndexOf(File.separator); if (sep > -1) { mod.folderName = elementName.substring(0, sep); mod.fileName = elementName.substring(sep + 1); } else { mod.folderName = ""; mod.fileName = elementName; } mod.revision = version; try { mod.modifiedTime = OUT_DATE_FORMAT.parse(timeStamp); } catch (ParseException e) { mod.modifiedTime = null; } mod.type = operationType; mod.labels = labels; mod.attributes = attributes; mod.comment = comment; if (property != null) { properties.put(property, "true"); } // TODO: check if operation type is a delete return mod; }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/0b0ffff0e707cb59916a9d7dac2454f2c0303172/ClearCase.java/clean/main/src/net/sourceforge/cruisecontrol/sourcecontrols/ClearCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 10121, 2449, 13467, 1109, 1622, 12, 780, 980, 13, 288, 3639, 2018, 18, 4148, 2932, 24979, 1241, 30, 315, 397, 980, 1769, 3639, 514, 8526, 2430, 273, 1147, 784, 1622, 12, 1369, 1769, 3639, 309, 261, 7860, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 514, 2718, 273, 2430, 63, 20, 8009, 5290, 5621, 3639, 514, 18198, 273, 2430, 63, 21, 8009, 5290, 5621, 3639, 514, 14453, 273, 2430, 63, 22, 8009, 5290, 5621, 3639, 514, 1177, 273, 2430, 63, 23, 8009, 5290, 5621, 3639, 514, 15754, 273, 2430, 63, 24, 8009, 5290, 5621, 3639, 514, 1433, 682, 273, 2430, 63, 25, 8009, 28023, 12, 21, 2934, 5290, 5621, 3639, 5589, 3249, 273, 2608, 5888, 682, 12, 1925, 682, 1769, 3639, 514, 1566, 682, 273, 2430, 63, 26, 8009, 28023, 12, 21, 2934, 5290, 5621, 3639, 18559, 1677, 273, 2608, 2498, 863, 12, 4589, 682, 1769, 3639, 514, 2879, 273, 2430, 63, 27, 8009, 5290, 5621, 3639, 368, 432, 3803, 871, 12044, 1404, 3080, 279, 1361, 3639, 309, 261, 7624, 559, 18, 14963, 2932, 24816, 7500, 6, 3719, 288, 5411, 327, 446, 31, 3639, 289, 3639, 10121, 2449, 13467, 681, 273, 394, 10121, 2449, 13467, 5621, 3639, 681, 18, 1355, 461, 273, 2718, 31, 3639, 509, 5478, 273, 14453, 18, 2722, 31985, 12, 812, 18, 11287, 1769, 3639, 309, 261, 10814, 405, 300, 21, 13, 288, 5411, 681, 18, 5609, 461, 273, 14453, 18, 28023, 12, 20, 16, 5478, 1769, 5411, 681, 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, 10121, 2449, 13467, 1109, 1622, 12, 780, 980, 13, 288, 3639, 2018, 18, 4148, 2932, 24979, 1241, 30, 315, 397, 980, 1769, 3639, 514, 8526, 2430, 273, 1147, 784, 1622, 12, 1369, 1769, 3639, 309, 261, 7860, 422, 446, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 514, 2718, 273, 2430, 63, 20, 8009, 5290, 5621, 3639, 514, 18198, 273, 2430, 63, 21, 8009, 5290, 5621, 3639, 514, 14453, 273, 2430, 63, 22, 8009, 5290, 5621, 3639, 514, 1177, 273, 2430, 63, 23, 8009, 5290, 5621, 3639, 514, 15754, 273, 2430, 63, 24, 8009, 5290, 5621, 3639, 514, 1433, 682, 273, 2430, 63, 25, 8009, 28023, 12, 21, 2934, 5290, 5621, 3639, 5589, 3249, 273, 2608, 2 ]
class ConnectorCreationTool extends org.eclipse.gmf.runtime.diagram.ui.tools.ConnectorCreationTool {
class ConnectorCreationTool extends org.eclipse.gmf.runtime.diagram.ui.tools.ConnectionCreationTool {
public ConnectionEditPart createConnectorUsingTool( final IGraphicalEditPart sourceEditPart, final IGraphicalEditPart targetEditPart, IElementType elementType) { class ConnectorCreationTool extends org.eclipse.gmf.runtime.diagram.ui.tools.ConnectorCreationTool { public ConnectorCreationTool(IElementType theElementType) { super(theElementType); } /** Make public. */ public Request createTargetRequest() { return super.createTargetRequest(); } protected PreferencesHint getPreferencesHint() { return PreferencesHint.USE_DEFAULTS; } } ConnectorCreationTool tool = new ConnectorCreationTool(elementType); CreateConnectionRequest request = (CreateConnectionRequest) tool.createTargetRequest(); request.setTargetEditPart(sourceEditPart); request.setType(RequestConstants.REQ_CONNECTION_START); sourceEditPart.getCommand(request); request.setSourceEditPart(sourceEditPart); request.setTargetEditPart(targetEditPart); request.setType(RequestConstants.REQ_CONNECTION_END); Command cmd = targetEditPart.getCommand(request); getCommandStack().execute(cmd); Object newView = ((IAdaptable) request.getNewObject()).getAdapter(View.class); assertNotNull(newView); ConnectionEditPart newConnector = (ConnectionEditPart) getDiagramEditPart() .getViewer().getEditPartRegistry().get(newView); assertNotNull(newConnector); return newConnector; }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/LogicViewRefactorTests.java/clean/org.eclipse.gmf.runtime/tests/org.eclipse.gmf.tests.runtime.diagram.ui/src/org/eclipse/gmf/tests/runtime/diagram/ui/logic/LogicViewRefactorTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 4050, 4666, 1988, 752, 7487, 7736, 6364, 12, 9506, 202, 6385, 467, 4137, 1706, 4666, 1988, 1084, 4666, 1988, 16, 9506, 202, 6385, 467, 4137, 1706, 4666, 1988, 1018, 4666, 1988, 16, 4697, 202, 45, 17481, 21427, 13, 288, 1082, 202, 1106, 15779, 9906, 6364, 202, 13020, 202, 3341, 18, 20416, 18, 75, 16126, 18, 9448, 18, 12264, 1940, 18, 4881, 18, 6642, 18, 7487, 9906, 6364, 288, 9506, 202, 482, 15779, 9906, 6364, 12, 45, 17481, 326, 17481, 13, 288, 6862, 202, 9565, 12, 5787, 17481, 1769, 9506, 202, 97, 9506, 202, 26873, 4344, 1071, 18, 1195, 9506, 202, 482, 1567, 752, 2326, 691, 1435, 288, 6862, 202, 2463, 2240, 18, 2640, 2326, 691, 5621, 9506, 202, 97, 6862, 9506, 202, 1117, 28310, 7002, 336, 12377, 7002, 1435, 288, 6862, 202, 2463, 28310, 7002, 18, 8001, 67, 5280, 55, 31, 9506, 202, 97, 1082, 202, 97, 1082, 202, 7487, 9906, 6364, 5226, 273, 394, 15779, 9906, 6364, 12, 2956, 559, 1769, 1082, 202, 1684, 1952, 691, 590, 273, 261, 1684, 1952, 691, 13, 5226, 18, 2640, 2326, 691, 5621, 1082, 202, 2293, 18, 542, 2326, 4666, 1988, 12, 3168, 4666, 1988, 1769, 1082, 202, 2293, 18, 542, 559, 12, 691, 2918, 18, 20373, 67, 15461, 67, 7570, 1769, 1082, 202, 3168, 4666, 1988, 18, 588, 2189, 12, 2293, 1769, 1082, 202, 2293, 18, 542, 1830, 4666, 1988, 12, 3168, 4666, 1988, 1769, 1082, 202, 2293, 18, 542, 2326, 4666, 1988, 12, 3299, 4666, 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, 3196, 202, 482, 4050, 4666, 1988, 752, 7487, 7736, 6364, 12, 9506, 202, 6385, 467, 4137, 1706, 4666, 1988, 1084, 4666, 1988, 16, 9506, 202, 6385, 467, 4137, 1706, 4666, 1988, 1018, 4666, 1988, 16, 4697, 202, 45, 17481, 21427, 13, 288, 1082, 202, 1106, 15779, 9906, 6364, 202, 13020, 202, 3341, 18, 20416, 18, 75, 16126, 18, 9448, 18, 12264, 1940, 18, 4881, 18, 6642, 18, 7487, 9906, 6364, 288, 9506, 202, 482, 15779, 9906, 6364, 12, 45, 17481, 326, 17481, 13, 288, 6862, 202, 9565, 12, 5787, 17481, 1769, 9506, 202, 97, 9506, 202, 26873, 4344, 1071, 18, 1195, 9506, 202, 482, 1567, 752, 2326, 691, 1435, 288, 6862, 202, 2463, 2240, 18, 2640, 2326, 691, 5621, 2 ]
int bytes = 0; int len = dst.remaining ();
int offset = 0; int len = dst.remaining();
public int read (ByteBuffer dst) throws IOException { byte[] data; int bytes = 0; int len = dst.remaining (); if (!dst.hasArray ()) { data = new byte [len]; dst.get (data, 0, len); } else { data = dst.array (); } return socket.getInputStream().read (data, 0, len); }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/7113237bf329e1245f096787093aed051ea2dd23/SocketChannelImpl.java/buggy/libjava/gnu/java/nio/SocketChannelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 855, 261, 12242, 3046, 13, 1216, 1860, 225, 288, 565, 1160, 8526, 501, 31, 565, 509, 1731, 273, 374, 31, 565, 509, 562, 273, 3046, 18, 17956, 261, 1769, 202, 565, 309, 16051, 11057, 18, 5332, 1076, 1832, 13, 1377, 288, 3639, 501, 273, 394, 1160, 306, 1897, 15533, 3639, 3046, 18, 588, 261, 892, 16, 374, 16, 562, 1769, 1377, 289, 565, 469, 1377, 288, 3639, 501, 273, 3046, 18, 1126, 261, 1769, 1377, 289, 3639, 327, 2987, 18, 588, 4348, 7675, 896, 261, 892, 16, 374, 16, 562, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 855, 261, 12242, 3046, 13, 1216, 1860, 225, 288, 565, 1160, 8526, 501, 31, 565, 509, 1731, 273, 374, 31, 565, 509, 562, 273, 3046, 18, 17956, 261, 1769, 202, 565, 309, 16051, 11057, 18, 5332, 1076, 1832, 13, 1377, 288, 3639, 501, 273, 394, 1160, 306, 1897, 15533, 3639, 3046, 18, 588, 261, 892, 16, 374, 16, 562, 1769, 1377, 289, 565, 469, 1377, 288, 3639, 501, 273, 3046, 18, 1126, 261, 1769, 1377, 289, 3639, 327, 2987, 18, 588, 4348, 7675, 896, 261, 892, 16, 374, 16, 562, 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 ]
IRubyObject oldSelf = null; EvaluationState state = null;
public IRubyObject evalWithBinding(IRubyObject src, IRubyObject scope, String file) { // both of these are ensured by the (very few) callers assert !scope.isNil(); assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); IRubyObject oldSelf = null; EvaluationState state = null; IRubyObject result = getRuntime().getNil(); IRubyObject newSelf = null; if (!(scope instanceof RubyBinding)) { if (scope instanceof RubyProc) { scope = ((RubyProc) scope).binding(); } else { // bomb out, it's not a binding or a proc throw getRuntime().newTypeError("wrong argument type " + scope.getMetaClass() + " (expected Proc/Binding)"); } } try { // Binding provided for scope, use it threadContext.preEvalWithBinding((RubyBinding)scope); newSelf = threadContext.getFrameSelf(); state = threadContext.getFrameEvalState(); oldSelf = state.getSelf(); state.setSelf(newSelf); result = state.begin(getRuntime().parse(src.toString(), file)); } finally { // return the eval state to its original self state.setSelf(oldSelf); threadContext.postBoundEvalOrYield(); // restore position threadContext.setPosition(savedPosition); } return result; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/6e15491217631472c05c6928672f9c7064a978b3/RubyObject.java/buggy/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 5302, 1190, 5250, 12, 7937, 10340, 921, 1705, 16, 15908, 10340, 921, 2146, 16, 514, 585, 13, 288, 3639, 368, 3937, 434, 4259, 854, 3387, 72, 635, 326, 261, 3242, 11315, 13, 19932, 3639, 1815, 401, 4887, 18, 291, 12616, 5621, 3639, 1815, 585, 480, 446, 31, 7734, 4884, 1042, 2650, 1042, 273, 18814, 7675, 588, 3935, 1042, 5621, 7734, 467, 1830, 2555, 5198, 2555, 273, 2650, 1042, 18, 588, 2555, 5621, 3639, 15908, 10340, 921, 1592, 10084, 273, 446, 31, 3639, 17340, 1119, 919, 273, 446, 31, 3639, 15908, 10340, 921, 563, 273, 18814, 7675, 588, 12616, 5621, 7734, 15908, 10340, 921, 394, 10084, 273, 446, 31, 3639, 309, 16051, 12, 4887, 1276, 19817, 5250, 3719, 288, 5411, 309, 261, 4887, 1276, 19817, 15417, 13, 288, 7734, 2146, 273, 14015, 54, 10340, 15417, 13, 2146, 2934, 7374, 5621, 5411, 289, 469, 288, 7734, 368, 324, 16659, 596, 16, 518, 1807, 486, 279, 5085, 578, 279, 5418, 7734, 604, 18814, 7675, 2704, 19030, 2932, 21530, 1237, 618, 315, 397, 2146, 18, 588, 2781, 797, 1435, 397, 315, 261, 3825, 18470, 19, 5250, 2225, 1769, 5411, 289, 3639, 289, 7734, 775, 288, 5411, 368, 15689, 2112, 364, 2146, 16, 999, 518, 5411, 2650, 1042, 18, 1484, 13904, 1190, 5250, 12443, 54, 10340, 5250, 13, 4887, 1769, 13491, 394, 10084, 273, 2650, 1042, 18, 588, 3219, 10084, 5621, 5411, 919, 273, 2650, 1042, 18, 588, 3219, 13904, 1119, 5621, 5411, 1592, 10084, 273, 919, 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, 15908, 10340, 921, 5302, 1190, 5250, 12, 7937, 10340, 921, 1705, 16, 15908, 10340, 921, 2146, 16, 514, 585, 13, 288, 3639, 368, 3937, 434, 4259, 854, 3387, 72, 635, 326, 261, 3242, 11315, 13, 19932, 3639, 1815, 401, 4887, 18, 291, 12616, 5621, 3639, 1815, 585, 480, 446, 31, 7734, 4884, 1042, 2650, 1042, 273, 18814, 7675, 588, 3935, 1042, 5621, 7734, 467, 1830, 2555, 5198, 2555, 273, 2650, 1042, 18, 588, 2555, 5621, 3639, 15908, 10340, 921, 1592, 10084, 273, 446, 31, 3639, 17340, 1119, 919, 273, 446, 31, 3639, 15908, 10340, 921, 563, 273, 18814, 7675, 588, 12616, 5621, 7734, 15908, 10340, 921, 394, 10084, 273, 446, 31, 3639, 309, 16051, 12, 4887, 1276, 2 ]
if(cpuUsage > targetCPUUsage) currentValue *= mul; else if(cpuUsage < targetCPUUsage) currentValue /= mul;
if(cpuUsage > targetCPUUsage) { if(currentValue < max) currentValue *= mul; } else if(cpuUsage < targetCPUUsage) { if(currentValue > min) currentValue /= mul; } if(currentValue < min) currentValue = min; if(currentValue > max) currentValue = max;
public void run() { while(true) { long now = System.currentTimeMillis(); try { Thread.sleep(1000); } catch (InterruptedException e) { } int cpuUsage = m.getCPUUsage(); long endSleepTime = System.currentTimeMillis(); double mul = 1.05; mul = Math.pow(mul, ((double)(endSleepTime-now))/1000); if(cpuUsage == -1) { Logger.error(this, "Cannot auto-adjust based on CPU usage"); return; } synchronized(this) { if(cpuUsage > targetCPUUsage) currentValue *= mul; // 5% slower per second else if(cpuUsage < targetCPUUsage) currentValue /= mul; // 5% faster per second } Logger.minor(this, "CPU usage: "+cpuUsage+" target "+targetCPUUsage+" current value: "+currentValue); } }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/424c1dfb69925b8e1077acfa1bfdcfa56b49d436/CPUAdjustingSwapRequestInterval.java/buggy/src/freenet/node/CPUAdjustingSwapRequestInterval.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1323, 12, 3767, 13, 288, 5411, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 5411, 775, 288, 7734, 4884, 18, 19607, 12, 18088, 1769, 5411, 289, 1044, 261, 24485, 503, 425, 13, 288, 5411, 289, 5411, 509, 8326, 5357, 273, 312, 18, 588, 15222, 5357, 5621, 5411, 1525, 679, 20768, 950, 273, 2332, 18, 2972, 28512, 5621, 5411, 1645, 14064, 273, 404, 18, 6260, 31, 5411, 14064, 273, 2361, 18, 23509, 12, 16411, 16, 14015, 9056, 21433, 409, 20768, 950, 17, 3338, 3719, 19, 18088, 1769, 5411, 309, 12, 11447, 5357, 422, 300, 21, 13, 288, 7734, 4242, 18, 1636, 12, 2211, 16, 315, 4515, 3656, 17, 13362, 2511, 603, 12154, 4084, 8863, 7734, 327, 31, 5411, 289, 5411, 3852, 12, 2211, 13, 288, 7734, 309, 12, 11447, 5357, 405, 1018, 15222, 5357, 13, 10792, 14794, 6413, 14064, 31, 368, 1381, 9, 27926, 1534, 2205, 7734, 469, 309, 12, 11447, 5357, 411, 1018, 15222, 5357, 13, 10792, 14794, 9531, 14064, 31, 368, 1381, 9, 12063, 1534, 2205, 5411, 289, 5411, 4242, 18, 17364, 12, 2211, 16, 315, 15222, 4084, 30, 13773, 11447, 5357, 9078, 1018, 13773, 3299, 15222, 5357, 9078, 783, 460, 30, 13773, 2972, 620, 1769, 3639, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1323, 12, 3767, 13, 288, 5411, 1525, 2037, 273, 2332, 18, 2972, 28512, 5621, 5411, 775, 288, 7734, 4884, 18, 19607, 12, 18088, 1769, 5411, 289, 1044, 261, 24485, 503, 425, 13, 288, 5411, 289, 5411, 509, 8326, 5357, 273, 312, 18, 588, 15222, 5357, 5621, 5411, 1525, 679, 20768, 950, 273, 2332, 18, 2972, 28512, 5621, 5411, 1645, 14064, 273, 404, 18, 6260, 31, 5411, 14064, 273, 2361, 18, 23509, 12, 16411, 16, 14015, 9056, 21433, 409, 20768, 950, 17, 3338, 3719, 19, 18088, 1769, 5411, 309, 12, 11447, 5357, 422, 300, 21, 13, 288, 7734, 4242, 18, 1636, 12, 2211, 16, 315, 4515, 3656, 17, 13362, 2511, 603, 12154, 4084, 2 ]
if (defaultEncodingButton != null) updateEncodingState(true); }
if (defaultEncodingButton != null) updateEncodingState(true); }
protected void performDefaults() { //Nothing to update if we never made the box if (this.editableBox != null) this.editableBox.setSelection(false); //Nothing to update if we never made the box if (this.derivedBox != null) this.derivedBox.setSelection(false); if (defaultEncodingButton != null) updateEncodingState(true); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8153b6982200744c6558b44ef21acece72d0fe50/ResourceInfoPage.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3073, 7019, 1435, 288, 3639, 368, 23814, 358, 1089, 309, 732, 5903, 7165, 326, 3919, 3639, 309, 261, 2211, 18, 19653, 3514, 480, 446, 13, 5411, 333, 18, 19653, 3514, 18, 542, 6233, 12, 5743, 1769, 3639, 368, 23814, 358, 1089, 309, 732, 5903, 7165, 326, 3919, 3639, 309, 261, 2211, 18, 765, 2950, 3514, 480, 446, 13, 5411, 333, 18, 765, 2950, 3514, 18, 542, 6233, 12, 5743, 1769, 3639, 309, 261, 1886, 4705, 3616, 480, 446, 13, 5411, 1089, 4705, 1119, 12, 3767, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3073, 7019, 1435, 288, 3639, 368, 23814, 358, 1089, 309, 732, 5903, 7165, 326, 3919, 3639, 309, 261, 2211, 18, 19653, 3514, 480, 446, 13, 5411, 333, 18, 19653, 3514, 18, 542, 6233, 12, 5743, 1769, 3639, 368, 23814, 358, 1089, 309, 732, 5903, 7165, 326, 3919, 3639, 309, 261, 2211, 18, 765, 2950, 3514, 480, 446, 13, 5411, 333, 18, 765, 2950, 3514, 18, 542, 6233, 12, 5743, 1769, 3639, 309, 261, 1886, 4705, 3616, 480, 446, 13, 5411, 1089, 4705, 1119, 12, 3767, 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 ]
public static char[] toCharArray(char[] signature) throws IllegalArgumentException { int sigLength = signature.length; if (sigLength == 0 || signature[0] == C_PARAM_START || signature[0] == C_GENERIC_START) { return toCharArray(signature, CharOperation.NO_CHAR, null, true, true);
public static char[] toCharArray(char[] methodSignature, char[] methodName, char[][] parameterNames, boolean fullyQualifyTypeNames, boolean includeReturnType) { int firstParen = CharOperation.indexOf(C_PARAM_START, methodSignature); if (firstParen == -1) { throw new IllegalArgumentException(); } StringBuffer buffer = new StringBuffer(methodSignature.length + 10); if (includeReturnType) { char[] rts = getReturnType(methodSignature); appendTypeSignature(rts, 0 , fullyQualifyTypeNames, buffer); buffer.append(' '); } if (methodName != null) { buffer.append(methodName); } buffer.append('('); char[][] pts = getParameterTypes(methodSignature); for (int i = 0; i < pts.length; i++) { appendTypeSignature(pts[i], 0 , fullyQualifyTypeNames, buffer); if (parameterNames != null) { buffer.append(' '); buffer.append(parameterNames[i]);
public static char[] toCharArray(char[] signature) throws IllegalArgumentException { int sigLength = signature.length; if (sigLength == 0 || signature[0] == C_PARAM_START || signature[0] == C_GENERIC_START) { return toCharArray(signature, CharOperation.NO_CHAR, null, true, true); } StringBuffer buffer = new StringBuffer(signature.length + 10); appendTypeSignature(signature, 0, true, buffer); char[] result = new char[buffer.length()]; buffer.getChars(0, buffer.length(), result, 0); return result;}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/10eb4fe1c3f61da399332d4475de97a7108327b6/Signature.java/buggy/org.eclipse.jdt.core/model/org/eclipse/jdt/core/Signature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 1149, 8526, 17832, 12, 3001, 8526, 3372, 13, 1216, 2754, 288, 202, 202, 474, 3553, 1782, 273, 3372, 18, 2469, 31, 202, 202, 430, 261, 7340, 1782, 422, 374, 747, 3372, 63, 20, 65, 422, 385, 67, 8388, 67, 7570, 747, 3372, 63, 20, 65, 422, 385, 67, 13990, 2871, 67, 7570, 13, 288, 1082, 202, 2463, 17832, 12, 8195, 16, 3703, 2988, 18, 3417, 67, 7305, 16, 446, 16, 638, 16, 638, 1769, 202, 202, 97, 9506, 202, 780, 1892, 1613, 273, 394, 6674, 12, 8195, 18, 2469, 397, 1728, 1769, 202, 202, 6923, 559, 5374, 12, 8195, 16, 374, 16, 638, 16, 1613, 1769, 202, 202, 3001, 8526, 563, 273, 394, 1149, 63, 4106, 18, 2469, 1435, 15533, 202, 202, 4106, 18, 588, 7803, 12, 20, 16, 1613, 18, 2469, 9334, 563, 16, 374, 1769, 202, 202, 2463, 563, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 760, 1149, 8526, 17832, 12, 3001, 8526, 3372, 13, 1216, 2754, 288, 202, 202, 474, 3553, 1782, 273, 3372, 18, 2469, 31, 202, 202, 430, 261, 7340, 1782, 422, 374, 747, 3372, 63, 20, 65, 422, 385, 67, 8388, 67, 7570, 747, 3372, 63, 20, 65, 422, 385, 67, 13990, 2871, 67, 7570, 13, 288, 1082, 202, 2463, 17832, 12, 8195, 16, 3703, 2988, 18, 3417, 67, 7305, 16, 446, 16, 638, 16, 638, 1769, 202, 202, 97, 9506, 202, 780, 1892, 1613, 273, 394, 6674, 12, 8195, 18, 2469, 397, 1728, 1769, 202, 202, 6923, 559, 5374, 12, 8195, 16, 374, 16, 638, 16, 1613, 1769, 202, 202, 3001, 8526, 563, 273, 394, 1149, 63, 4106, 18, 2 ]
int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop);
int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFNE, 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(TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); int index = fn.getExistingIntProp(Node.FUNCTION_PROP); iCodeTop = addByte(index >> 8, iCodeTop); iCodeTop = addByte(index & 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(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(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(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. */ ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(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(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(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 : { int label = node.getIntProp(Node.LABEL_PROP, -1); if (label == -1) { label = acquireLabel(); node.putIntProp(Node.LABEL_PROP, label); } 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(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(SOURCEFILE_ICODE, 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(TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addShort(nameIndex, 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 = addShort(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte(TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte(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(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); // Bug 115717 is due to adding a GOSUB here before // we insert an ENDTRY. I'm not sure of the best way // to fix this; perhaps we need to maintain a stack // of pending trys and have some knowledge of how // many trys we need to close when we perform a // GOTO or GOSUB. iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(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(TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(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(type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte(TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addByte(TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte(TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte(TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte(TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte(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(TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(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(type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(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(TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte(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(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC, iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte(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(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); else iCodeTop = addByte(type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC, iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte(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(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(TokenStream.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(TokenStream.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(SHORTNUMBER_ICODE, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(INTNUMBER_ICODE, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(TokenStream.NUMBER, iCodeTop); iCodeTop = addDouble(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(type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte(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(TokenStream.TRY, iCodeTop); iCodeTop = addShort(0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; addLabelFixup(theLabel, iCodeTop); } iCodeTop = addShort(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(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(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); int finallyLabel = finallyTarget.getExistingIntProp(Node.LABEL_PROP); iCodeTop = addGoto(finallyLabel, TokenStream.GOSUB, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(RETURN_UNDEF_ICODE, iCodeTop); } 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(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(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(TokenStream.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte(node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte(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 = regexp.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(TokenStream.OBJECT, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/b41bc47f816e88fc74cb209f1323974fbed7be07/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, 5411, 648, 3155, 1228, 18, 7788, 294, 288, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1345, 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, 509, 770, 273, 2295, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1615, 1671, 1725, 16, 277, 1085, 3401, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1615, 473, 374, 5297, 16, 277, 1085, 3401, 1769, 10792, 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, 13491, 277, 1085, 3401, 273, 2103, 45, 1085, 12, 3624, 16, 277, 1085, 3401, 1769, 10792, 1151, 273, 1151, 18, 588, 2134, 10291, 5621, 7734, 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, 5411, 648, 3155, 1228, 18, 7788, 294, 288, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1345, 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, 509, 770, 273, 2295, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 10792, 277, 1085, 3401, 273, 527, 3216, 12, 1615, 1671, 2 ]
log.info("Checked out: " + coe.identity + " " + coe.time);
log.info("Checked out: " + coe.getIdentity() + " " + coe.getTime());
public static void main(String[] args) { if (args.length != 1) { log.info("Usage: java RCML rcmlDirectory datafilename rootDirectory"); return; } try { RCML rcml = new RCML(args[0], args[1], args[2]); rcml.checkOutIn(RCML.co, "michi", new Date().getTime()); new DOMWriter(new PrintWriter(System.out)).print(rcml.document); CheckOutEntry coe = rcml.getLatestCheckOutEntry(); log.info("\n"); if (coe == null) { log.info("Not checked out"); } else { log.info("Checked out: " + coe.identity + " " + coe.time); } } catch (Exception e) { log.error(e); } }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/bb61264b8d436c24652dcb684e634248dcce0756/RCML.java/buggy/src/java/org/apache/lenya/cms/rc/RCML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 480, 404, 13, 288, 5411, 613, 18, 1376, 2932, 5357, 30, 2252, 24206, 1495, 4519, 781, 2853, 501, 3459, 1365, 2853, 8863, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 24206, 1495, 4519, 781, 273, 394, 24206, 1495, 12, 1968, 63, 20, 6487, 833, 63, 21, 6487, 833, 63, 22, 19226, 5411, 4519, 781, 18, 1893, 1182, 382, 12, 11529, 1495, 18, 2894, 16, 315, 81, 1354, 77, 3113, 394, 2167, 7675, 588, 950, 10663, 5411, 394, 4703, 2289, 12, 2704, 14071, 12, 3163, 18, 659, 13, 2934, 1188, 12, 1310, 781, 18, 5457, 1769, 5411, 2073, 1182, 1622, 6256, 273, 4519, 781, 18, 588, 18650, 1564, 1182, 1622, 5621, 5411, 613, 18, 1376, 31458, 82, 8863, 5411, 309, 261, 8075, 422, 446, 13, 288, 7734, 613, 18, 1376, 2932, 1248, 5950, 596, 8863, 5411, 289, 469, 288, 7734, 613, 18, 1376, 2932, 11454, 596, 30, 315, 397, 6256, 18, 588, 4334, 1435, 397, 315, 315, 397, 6256, 18, 588, 950, 10663, 5411, 289, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 613, 18, 1636, 12, 73, 1769, 3639, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 480, 404, 13, 288, 5411, 613, 18, 1376, 2932, 5357, 30, 2252, 24206, 1495, 4519, 781, 2853, 501, 3459, 1365, 2853, 8863, 5411, 327, 31, 3639, 289, 3639, 775, 288, 5411, 24206, 1495, 4519, 781, 273, 394, 24206, 1495, 12, 1968, 63, 20, 6487, 833, 63, 21, 6487, 833, 63, 22, 19226, 5411, 4519, 781, 18, 1893, 1182, 382, 12, 11529, 1495, 18, 2894, 16, 315, 81, 1354, 77, 3113, 394, 2167, 7675, 588, 950, 10663, 5411, 394, 4703, 2289, 12, 2704, 14071, 12, 3163, 18, 659, 13, 2934, 1188, 12, 1310, 781, 18, 5457, 1769, 5411, 2073, 1182, 1622, 6256, 273, 2 ]
display.post(event);
display.post(event);
protected void postKeyDown(int keyCode) { Event event = new Event(); event.type = SWT.KeyDown; event.keyCode = keyCode; display.post(event); }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/ac1388a8f65e23bdbc1519cfd83a011f14e51f91/VisualTestCase.java/clean/org.eclipse.ajdt.ui.tests/src/org/eclipse/ajdt/ui/tests/visual/VisualTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1603, 653, 4164, 12, 474, 16369, 13, 288, 202, 202, 1133, 871, 273, 394, 2587, 5621, 202, 202, 2575, 18, 723, 273, 348, 8588, 18, 653, 4164, 31, 202, 202, 2575, 18, 856, 1085, 273, 16369, 31, 202, 202, 5417, 18, 2767, 12, 2575, 1769, 202, 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, 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, 225, 202, 1117, 918, 1603, 653, 4164, 12, 474, 16369, 13, 288, 202, 202, 1133, 871, 273, 394, 2587, 5621, 202, 202, 2575, 18, 723, 273, 348, 8588, 18, 653, 4164, 31, 202, 202, 2575, 18, 856, 1085, 273, 16369, 31, 202, 202, 5417, 18, 2767, 12, 2575, 1769, 202, 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 ]
String symbol = ((Node)item).getAttributes().getNamedItem("symbol").getTextContent();
String symbol = ((Node)item).getAttributes().getNamedItem("symbol").getNodeValue();
private CurrencyConverter() { File file = new File(Platform.getLocation().toFile(), "currencies.xml"); //$NON-NLS-1$ if (file.exists() == true) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(file); Node firstNode = document.getFirstChild(); NodeList childNodes = firstNode.getChildNodes(); for (int i = 0; i < childNodes.getLength(); i++) { Node item = childNodes.item(i); String nodeName = item.getNodeName(); Node valueNode = item.getFirstChild(); if (valueNode != null) { if (nodeName.equalsIgnoreCase("currency")) //$NON-NLS-1$ currencies.add(valueNode.getNodeValue()); else if (nodeName.equalsIgnoreCase("conversion")) //$NON-NLS-1$ { String symbol = ((Node)item).getAttributes().getNamedItem("symbol").getTextContent(); Double value = new Double(Double.parseDouble(valueNode.getNodeValue())); map.put(symbol, value); } } } } catch (Exception e) { CorePlugin.logException(e); } } }
12330 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12330/066c2de8005bef90157e4e049e8e64c345b3dc18/CurrencyConverter.java/clean/net.sourceforge.eclipsetrader.core/src/net/sourceforge/eclipsetrader/core/CurrencyConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 13078, 5072, 1435, 565, 288, 3639, 1387, 585, 273, 394, 1387, 12, 8201, 18, 588, 2735, 7675, 869, 812, 9334, 315, 1397, 14695, 18, 2902, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 309, 261, 768, 18, 1808, 1435, 422, 638, 13, 3639, 288, 5411, 775, 5411, 288, 7734, 30236, 3272, 273, 30236, 18, 2704, 1442, 5621, 7734, 4319, 1263, 2089, 273, 3272, 18, 2704, 2519, 1263, 5621, 7734, 4319, 1668, 273, 2089, 18, 2670, 12, 768, 1769, 7734, 2029, 1122, 907, 273, 1668, 18, 588, 3759, 1763, 5621, 7734, 16781, 10582, 273, 1122, 907, 18, 588, 22460, 5621, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 10582, 18, 588, 1782, 5621, 277, 27245, 7734, 288, 10792, 2029, 761, 273, 10582, 18, 1726, 12, 77, 1769, 10792, 514, 7553, 273, 761, 18, 588, 18948, 5621, 10792, 2029, 460, 907, 273, 761, 18, 588, 3759, 1763, 5621, 10792, 309, 261, 1132, 907, 480, 446, 13, 10792, 288, 13491, 309, 261, 2159, 461, 18, 14963, 5556, 2932, 7095, 6, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 18701, 19239, 18, 1289, 12, 1132, 907, 18, 588, 907, 620, 10663, 13491, 469, 309, 261, 2159, 461, 18, 14963, 5556, 2932, 20990, 6, 3719, 4329, 3993, 17, 5106, 17, 21, 8, 13491, 288, 18701, 514, 3273, 273, 14015, 907, 13, 1726, 2934, 588, 2498, 7675, 588, 7604, 1180, 2932, 7175, 20387, 588, 907, 620, 5621, 18701, 3698, 460, 273, 394, 3698, 12, 5265, 18, 2670, 5265, 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, 13078, 5072, 1435, 565, 288, 3639, 1387, 585, 273, 394, 1387, 12, 8201, 18, 588, 2735, 7675, 869, 812, 9334, 315, 1397, 14695, 18, 2902, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 309, 261, 768, 18, 1808, 1435, 422, 638, 13, 3639, 288, 5411, 775, 5411, 288, 7734, 30236, 3272, 273, 30236, 18, 2704, 1442, 5621, 7734, 4319, 1263, 2089, 273, 3272, 18, 2704, 2519, 1263, 5621, 7734, 4319, 1668, 273, 2089, 18, 2670, 12, 768, 1769, 7734, 2029, 1122, 907, 273, 1668, 18, 588, 3759, 1763, 5621, 7734, 16781, 10582, 273, 1122, 907, 18, 588, 22460, 5621, 7734, 364, 261, 474, 277, 273, 374, 31, 277, 411, 10582, 18, 588, 1782, 5621, 277, 27245, 2 ]
System.out.println ("Send query" + query);
System.out.println ("Send query");
public Vector queryLDAP (String aServerName, int aPort, String aSearchString) { Vector retVecVec = new Vector(); //return vector of vectors.// try { //open a connection to the LDAP serverSystem.out.println ("Opening server " + aServerName); ICardSource Four11AddressBook = new LDAP_Server (aServerName); //create the query ITerm query = new TermEqual (new AC_Attribute ("sn", aSearchString)); String[] attributes = {"sn", "cn", "o", "mail", "city"}; //query the LDAP server.System.out.println ("Send query" + query); ICardSet cardSet = Four11AddressBook.getCardSet (query, attributes); //Sort the list. String[] sortOrder = {"sn", "cn"}; cardSet.sort (sortOrder); //hack. I've put the for loop in a try block to catch the exception //thrown when cardEnum.hasMoreElements() incorrectly returns true. try { //enumerate thru the cards. for (Enumeration cardEnum = cardSet.getEnumeration(); cardEnum.hasMoreElements(); ) {System.out.println ("got card"); ICard card = (ICard) cardEnum.nextElement(); //get the addres card IAttributeSet attrSet = card.getAttributeSet (); //get the attributes for this card Vector thisRow = new Vector(6); //create a simple vector to hold the attributes values for this card. String commonName = ""; String organization = ""; String mail = ""; String phone = ""; String city = ""; String nickName = ""; // enumerate thru the card attributes. for (Enumeration attEnum = attrSet.getEnumeration(); attEnum.hasMoreElements(); ) { IAttribute attr = (IAttribute) attEnum.nextElement(); String attrName = attr.getName(); if (attrName.equals ("cn")) { commonName = attr.getValue(); } else if (attrName.equals ("o")) { organization = attr.getValue(); } else if (attrName.equals ("mail")) { mail = attr.getValue(); } else if (attrName.equals ("sn")) { phone = attr.getValue(); } else if (attrName.equals ("city")) { city = attr.getValue(); } } //create this row for the table. thisRow.addElement (commonName); thisRow.addElement (mail); thisRow.addElement (organization); thisRow.addElement (phone); thisRow.addElement (city); thisRow.addElement (nickName); //add this row to the table retVecVec.addElement (thisRow); } } catch (Exception e) { }// }// catch( LDAPException e ) {// System.out.println( "Error: " + e.toString() );// }System.out.println ("Done."); return retVecVec; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/bc05a619d353c84c954f415aec254150f0fa257c/AddressBook.java/clean/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5589, 843, 15496, 261, 780, 279, 28434, 16, 509, 279, 2617, 16, 514, 279, 2979, 780, 13, 288, 3639, 5589, 325, 12991, 12991, 273, 394, 5589, 5621, 282, 368, 2463, 3806, 434, 10046, 18, 759, 2868, 775, 288, 5411, 368, 3190, 279, 1459, 358, 326, 11916, 1438, 3163, 18, 659, 18, 8222, 7566, 21378, 1438, 315, 397, 279, 28434, 1769, 5411, 467, 6415, 1830, 478, 477, 2499, 31374, 273, 394, 11916, 67, 2081, 261, 69, 28434, 1769, 202, 5411, 368, 2640, 326, 843, 5411, 467, 4065, 843, 273, 394, 6820, 5812, 261, 2704, 12048, 67, 1499, 7566, 8134, 3113, 279, 2979, 780, 10019, 5411, 514, 8526, 1677, 273, 12528, 8134, 3113, 315, 10305, 3113, 315, 83, 3113, 315, 4408, 3113, 315, 14240, 6, 20451, 5411, 368, 2271, 326, 11916, 1438, 18, 3163, 18, 659, 18, 8222, 7566, 3826, 843, 8863, 5411, 467, 6415, 694, 5270, 694, 273, 478, 477, 2499, 31374, 18, 588, 6415, 694, 261, 2271, 16, 1677, 1769, 5411, 368, 4416, 326, 666, 18, 5411, 514, 8526, 19050, 273, 12528, 8134, 3113, 315, 10305, 6, 20451, 5411, 5270, 694, 18, 3804, 261, 3804, 2448, 1769, 5411, 368, 76, 484, 18, 467, 8081, 1378, 326, 364, 2798, 316, 279, 775, 1203, 358, 1044, 326, 1520, 5411, 368, 12849, 82, 1347, 5270, 3572, 18, 5332, 7417, 3471, 1435, 25621, 1135, 638, 18, 5411, 775, 288, 7734, 368, 7924, 12600, 286, 8653, 326, 18122, 18, 7734, 364, 261, 21847, 5270, 3572, 273, 5270, 694, 18, 588, 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, 5589, 843, 15496, 261, 780, 279, 28434, 16, 509, 279, 2617, 16, 514, 279, 2979, 780, 13, 288, 3639, 5589, 325, 12991, 12991, 273, 394, 5589, 5621, 282, 368, 2463, 3806, 434, 10046, 18, 759, 2868, 775, 288, 5411, 368, 3190, 279, 1459, 358, 326, 11916, 1438, 3163, 18, 659, 18, 8222, 7566, 21378, 1438, 315, 397, 279, 28434, 1769, 5411, 467, 6415, 1830, 478, 477, 2499, 31374, 273, 394, 11916, 67, 2081, 261, 69, 28434, 1769, 202, 5411, 368, 2640, 326, 843, 5411, 467, 4065, 843, 273, 394, 6820, 5812, 261, 2704, 12048, 67, 1499, 7566, 8134, 3113, 279, 2979, 780, 10019, 5411, 514, 8526, 1677, 273, 12528, 8134, 3113, 315, 10305, 3113, 315, 83, 3113, 2 ]
Component[] children = AWTUtilities.getVisibleChildren(parent);
List children = AWTUtilities.getVisibleChildren(parent);
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); Insets insets = parent.getInsets(); int x = 0; int y = 0; Component[] children = AWTUtilities.getVisibleChildren(parent); if (isHorizontalIn(parent)) { x = insets.left + insets.right; // sum up preferred widths of components, find maximum of preferred // heights for (int index = 0; index < children.length; index++) { Component comp = children[index]; Dimension sz = comp.getPreferredSize(); x += sz.width; y = Math.max(y, sz.height); } y += insets.bottom + insets.top; } else { y = insets.top + insets.bottom; // sum up preferred heights of components, find maximum of // preferred widths for (int index = 0; index < children.length; index++) { Component comp = children[index]; Dimension sz = comp.getPreferredSize(); y += sz.height; x = Math.max(x, sz.width); } x += insets.left + insets.right; } return new Dimension(x, y); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BoxLayout.java/clean/core/src/classpath/javax/javax/swing/BoxLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 9119, 3744, 1225, 12, 2170, 982, 13, 225, 288, 565, 309, 261, 2938, 480, 1478, 13, 1377, 604, 394, 432, 8588, 668, 2932, 5387, 982, 8863, 3639, 22300, 23576, 273, 982, 18, 588, 382, 4424, 5621, 565, 509, 619, 273, 374, 31, 565, 509, 677, 273, 374, 31, 565, 987, 2325, 273, 432, 8588, 11864, 18, 588, 6207, 4212, 12, 2938, 1769, 565, 309, 261, 291, 14457, 382, 12, 2938, 3719, 1377, 288, 7734, 619, 273, 23576, 18, 4482, 397, 23576, 18, 4083, 31, 3639, 368, 2142, 731, 9119, 15801, 434, 4085, 16, 1104, 4207, 434, 9119, 3639, 368, 24779, 3639, 364, 261, 474, 770, 273, 374, 31, 770, 411, 2325, 18, 2469, 31, 770, 27245, 1850, 288, 5411, 5435, 1161, 273, 2325, 63, 1615, 15533, 5411, 13037, 11262, 273, 1161, 18, 588, 16028, 1225, 5621, 5411, 619, 1011, 11262, 18, 2819, 31, 5411, 677, 273, 2361, 18, 1896, 12, 93, 16, 11262, 18, 4210, 1769, 1850, 289, 3639, 677, 1011, 23576, 18, 9176, 397, 23576, 18, 3669, 31, 1377, 289, 377, 469, 4202, 288, 7734, 677, 273, 23576, 18, 3669, 397, 23576, 18, 9176, 31, 3639, 368, 2142, 731, 9119, 24779, 434, 4085, 16, 1104, 4207, 434, 3639, 368, 225, 9119, 15801, 3639, 364, 261, 474, 770, 273, 374, 31, 770, 411, 2325, 18, 2469, 31, 770, 27245, 1850, 288, 5411, 5435, 1161, 273, 2325, 63, 1615, 15533, 5411, 13037, 11262, 273, 1161, 18, 588, 16028, 1225, 5621, 5411, 677, 1011, 11262, 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, 13037, 9119, 3744, 1225, 12, 2170, 982, 13, 225, 288, 565, 309, 261, 2938, 480, 1478, 13, 1377, 604, 394, 432, 8588, 668, 2932, 5387, 982, 8863, 3639, 22300, 23576, 273, 982, 18, 588, 382, 4424, 5621, 565, 509, 619, 273, 374, 31, 565, 509, 677, 273, 374, 31, 565, 987, 2325, 273, 432, 8588, 11864, 18, 588, 6207, 4212, 12, 2938, 1769, 565, 309, 261, 291, 14457, 382, 12, 2938, 3719, 1377, 288, 7734, 619, 273, 23576, 18, 4482, 397, 23576, 18, 4083, 31, 3639, 368, 2142, 731, 9119, 15801, 434, 4085, 16, 1104, 4207, 434, 9119, 3639, 368, 24779, 3639, 364, 261, 474, 770, 273, 374, 31, 770, 411, 2325, 18, 2469, 31, 770, 27245, 2 ]
List packages = projectRec.getChildrenAsList(); removals.addAll(packages); for (int k=0; k<packages.size(); k++) { PackageRecord packageRec = (PackageRecord) packages.get(k); removals.addAll(packageRec.getChildrenAsList()); } return new ArrayList[] {additions, removals, changes};
List packages = projectRec.getChildrenAsList(); removals.addAll(packages); for (int k = 0; k < packages.size(); k++) { PackageRecord packageRec = (PackageRecord) packages.get(k); removals.addAll(packageRec.getChildrenAsList()); } return new ArrayList[] { additions, removals, changes };
protected ArrayList[] updateFiles(IProject project, ArrayList changedFiles) { ArrayList additions = new ArrayList(); ArrayList removals = new ArrayList(); ArrayList changes = new ArrayList(); // we search for the ProjectRecord to the Project // if it doesn't exist, we return nothing ProjectRecord projectRec = (ProjectRecord) root.findResource(project); if (projectRec == null) return new ArrayList[] {additions, removals, changes}; // if the project is deleted or closed if (!project.exists() || !project.isOpen()) { List packages = projectRec.getChildrenAsList(); // ... we add all Packages to the removals // so they are not shown anymore removals.addAll(packages); for (int k=0; k<packages.size(); k++) { PackageRecord packageRec = (PackageRecord) packages.get(k); removals.addAll(packageRec.getChildrenAsList()); } return new ArrayList[] {additions, removals, changes}; } // we got through all files IResource resource = null; for (int i=0; i<changedFiles.size(); i++) { resource = (IResource) changedFiles.get(i); // ... and first check, if the project is the right one if (!project.equals(resource.getProject())) continue; // ... if so, we search for the corresponding Record to a File AbstractPMDRecord rec = projectRec.findResource(resource); FileRecord fileRec = null; if ((rec!= null) && (rec.getResourceType() == IResource.FILE)) fileRec = (FileRecord) rec; // ... if we couldn't find one, we add it if (fileRec == null) { fileRec = (FileRecord) projectRec.addResource(resource); if (fileRec.hasMarkers()) additions.add(fileRec); continue; } // if there is a FileRecord, but no File anymore, we delete it if (!fileRec.getResource().exists()) { projectRec.removeResource(fileRec.getResource()); removals.add(fileRec); continue; } if (fileRec.hasMarkers()) { // if there are still Markers, it is a change changes.add(fileRec); } else { // ... if not, it can be removed from the View removals.add(fileRec); AbstractPMDRecord packageRec = fileRec.getParent(); if (!packageRec.hasMarkers()) { removals.add(packageRec); } } } return new ArrayList[] {additions, removals, changes}; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/a71f46c4f6b1195d02582581aa74424aff607ebb/ViolationOverviewContentProvider.java/clean/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/views/ViolationOverviewContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2407, 8526, 1089, 2697, 12, 45, 4109, 1984, 16, 2407, 3550, 2697, 13, 288, 377, 202, 19558, 26260, 273, 394, 2407, 5621, 377, 202, 19558, 2797, 1031, 273, 394, 2407, 5621, 377, 202, 19558, 3478, 273, 394, 2407, 5621, 377, 202, 377, 202, 759, 732, 1623, 364, 326, 5420, 2115, 358, 326, 5420, 377, 202, 759, 309, 518, 3302, 1404, 1005, 16, 732, 327, 5083, 377, 202, 4109, 2115, 1984, 5650, 273, 261, 4109, 2115, 13, 1365, 18, 4720, 1420, 12, 4406, 1769, 377, 202, 430, 261, 4406, 5650, 422, 446, 13, 377, 202, 202, 2463, 394, 2407, 8526, 288, 1289, 5029, 16, 2797, 1031, 16, 3478, 20451, 377, 202, 377, 202, 759, 309, 326, 1984, 353, 4282, 578, 4375, 3639, 309, 16051, 4406, 18, 1808, 1435, 747, 401, 4406, 18, 291, 3678, 10756, 288, 540, 202, 682, 5907, 273, 1984, 5650, 18, 588, 4212, 1463, 682, 5621, 540, 202, 759, 1372, 732, 527, 777, 7930, 1023, 358, 326, 2797, 1031, 540, 202, 759, 1427, 2898, 854, 486, 12188, 16828, 540, 202, 2764, 1527, 1031, 18, 1289, 1595, 12, 10308, 1769, 540, 202, 1884, 261, 474, 417, 33, 20, 31, 417, 32, 10308, 18, 1467, 5621, 417, 27245, 288, 540, 202, 202, 2261, 2115, 2181, 5650, 273, 261, 2261, 2115, 13, 5907, 18, 588, 12, 79, 1769, 540, 202, 202, 2764, 1527, 1031, 18, 1289, 1595, 12, 5610, 5650, 18, 588, 4212, 1463, 682, 10663, 540, 202, 97, 540, 202, 2463, 394, 2407, 8526, 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, 1117, 2407, 8526, 1089, 2697, 12, 45, 4109, 1984, 16, 2407, 3550, 2697, 13, 288, 377, 202, 19558, 26260, 273, 394, 2407, 5621, 377, 202, 19558, 2797, 1031, 273, 394, 2407, 5621, 377, 202, 19558, 3478, 273, 394, 2407, 5621, 377, 202, 377, 202, 759, 732, 1623, 364, 326, 5420, 2115, 358, 326, 5420, 377, 202, 759, 309, 518, 3302, 1404, 1005, 16, 732, 327, 5083, 377, 202, 4109, 2115, 1984, 5650, 273, 261, 4109, 2115, 13, 1365, 18, 4720, 1420, 12, 4406, 1769, 377, 202, 430, 261, 4406, 5650, 422, 446, 13, 377, 202, 202, 2463, 394, 2407, 8526, 288, 1289, 5029, 16, 2797, 1031, 16, 3478, 20451, 377, 202, 377, 202, 759, 309, 326, 1984, 2 ]
return getRubyClass().newMethod( this, symbol.toId(), getRuby().getClasses().getMethodClass()); }
return getRubyClass().newMethod( this, symbol.toId(), getRuby().getClasses().getMethodClass()); }
public RubyObject m_method(RubyObject symbol) { return getRubyClass().newMethod( this, symbol.toId(), getRuby().getClasses().getMethodClass()); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 921, 312, 67, 2039, 12, 54, 10340, 921, 3273, 13, 288, 202, 202, 2463, 4170, 10340, 797, 7675, 2704, 1305, 12, 1082, 202, 2211, 16, 1082, 202, 7175, 18, 869, 548, 9334, 1082, 202, 588, 54, 10340, 7675, 588, 4818, 7675, 588, 1305, 797, 10663, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 19817, 921, 312, 67, 2039, 12, 54, 10340, 921, 3273, 13, 288, 202, 202, 2463, 4170, 10340, 797, 7675, 2704, 1305, 12, 1082, 202, 2211, 16, 1082, 202, 7175, 18, 869, 548, 9334, 1082, 202, 588, 54, 10340, 7675, 588, 4818, 7675, 588, 1305, 797, 10663, 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 ]
public boolean setSoTimeout(MessageAddress addr, int timeout);
boolean setSoTimeout(MessageAddress addr, int timeout);
public boolean setSoTimeout(MessageAddress addr, int timeout);
7172 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7172/5cb50537f9302c32d22994b6d3c47b00ec173410/RMISocketControlService.java/buggy/mtsstd/src/org/cougaar/mts/std/RMISocketControlService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 444, 10225, 2694, 12, 1079, 1887, 3091, 16, 509, 2021, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 444, 10225, 2694, 12, 1079, 1887, 3091, 16, 509, 2021, 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 ]
Float f = (Float) obj;
float f = ((Float) obj).value;
public boolean equals (Object obj) { if (!(obj instanceof Float)) return false; Float f = (Float) obj; return floatToIntBits (value) == floatToIntBits (f.floatValue ()); }
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/9e55cc17c514e90df7d264f9fe0dd7b35dec9b46/Float.java/clean/libjava/java/lang/Float.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1606, 261, 921, 1081, 13, 225, 288, 565, 309, 16051, 12, 2603, 1276, 5450, 3719, 1377, 327, 629, 31, 565, 1431, 284, 273, 14015, 4723, 13, 1081, 2934, 1132, 31, 565, 327, 1431, 17864, 6495, 261, 1132, 13, 422, 1431, 17864, 6495, 261, 74, 18, 5659, 620, 1832, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1606, 261, 921, 1081, 13, 225, 288, 565, 309, 16051, 12, 2603, 1276, 5450, 3719, 1377, 327, 629, 31, 565, 1431, 284, 273, 14015, 4723, 13, 1081, 2934, 1132, 31, 565, 327, 1431, 17864, 6495, 261, 1132, 13, 422, 1431, 17864, 6495, 261, 74, 18, 5659, 620, 1832, 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 ]
User user = externalizedImcmsAndUserMapper.getUser( LOGIN_NAME_HASBRA );
UserDomainObject user = externalizedImcmsAndUserMapper.getUser( LOGIN_NAME_HASBRA );
public void testMergedRolesFromImcmsAndExternal() { mockImcmsService.addExpectedSQLProcedureCall( SPROC_GETUSERBYLOGIN, SQL_RESULT_HASBRA ); mockImcmsService.addExpectedSQLProcedureCall( SPROC_GETUSERBYLOGIN, SQL_RESULT_HASBRA ); mockImcmsService.addExpectedSQLProcedureCall( SPROC_GETUSERBYLOGIN, SQL_RESULT_HASBRA ); mockImcmsService.addExpectedSQLProcedureCall( SPROC_ROLEFINDNAME, new String[]{"2"} ); mockImcmsService.addExpectedSQLProcedureCall( SPROC_ROLEFINDNAME, new String[]{"-1"} ); mockImcmsService.addExpectedSQLProcedureCall( SPROC_ROLEFINDNAME, new String[]{"-1"} ); mockImcmsService.addExpectedSQLProcedureCall( SPROC_GETUSERROLES, new String[]{Role.USERS} ); mockImcmsService.addExpectedSQLProcedureCall( SPROC_GETUSERROLES, new String[]{Role.USERS} ); User user = externalizedImcmsAndUserMapper.getUser( LOGIN_NAME_HASBRA ); String[] userRoles = externalizedImcmsAndUserMapper.getRoleNames( user ); assertTrue( Arrays.asList( userRoles ).contains( Role.USERS ) ); assertTrue( Arrays.asList( userRoles ).contains( LdapUserAndRoleMapper.DEFAULT_LDAP_ROLE ) ); assertTrue( Arrays.asList( userRoles ).contains( "Crisp" ) ); assertFalse( Arrays.asList( userRoles ).contains( null ) ); mockImcmsService.verify(); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/aac0c3f1fbded79e44eeb9b126b31959f0f22c1d/TestExternalizedImcmsAuthenticatorAndUserMapper.java/clean/server/src/imcode/server/user/TestExternalizedImcmsAuthenticatorAndUserMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 19043, 6898, 1265, 1170, 6851, 1876, 6841, 1435, 288, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 3264, 4714, 6486, 19022, 16, 3063, 67, 12289, 67, 27765, 38, 2849, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 3264, 4714, 6486, 19022, 16, 3063, 67, 12289, 67, 27765, 38, 2849, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 3264, 4714, 6486, 19022, 16, 3063, 67, 12289, 67, 27765, 38, 2849, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 16256, 42, 2356, 1985, 16, 394, 514, 63, 7073, 6, 22, 6, 97, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 16256, 42, 2356, 1985, 16, 394, 514, 63, 7073, 6, 17, 21, 6, 97, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 16256, 42, 2356, 1985, 16, 394, 514, 63, 7073, 6, 17, 21, 6, 97, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 3264, 4714, 30797, 16, 394, 514, 63, 7073, 2996, 18, 30846, 97, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 3264, 4714, 30797, 16, 394, 514, 63, 7073, 2996, 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, 565, 1071, 918, 1842, 19043, 6898, 1265, 1170, 6851, 1876, 6841, 1435, 288, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 3264, 4714, 6486, 19022, 16, 3063, 67, 12289, 67, 27765, 38, 2849, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 3264, 4714, 6486, 19022, 16, 3063, 67, 12289, 67, 27765, 38, 2849, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 3264, 4714, 6486, 19022, 16, 3063, 67, 12289, 67, 27765, 38, 2849, 11272, 1377, 5416, 1170, 6851, 1179, 18, 1289, 6861, 3997, 17213, 1477, 12, 348, 3373, 39, 67, 16256, 42, 2356, 2 ]
public Iterator<IMapEntry> iterator() {
public Iterator iterator() {
public Iterator<IMapEntry> iterator() { return new Iter(array);}
46364 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46364/3e18fcb60b00f869f74b112af5b5d90b9a9edba0/PersistentHashtableMap.java/buggy/src/org/clojure/runtime/PersistentHashtableMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 4498, 2775, 1435, 288, 565, 327, 394, 3016, 12, 1126, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4498, 2775, 1435, 288, 565, 327, 394, 3016, 12, 1126, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (byte)CHARSET[getRandomInt()];
return (byte)(Math.random() * 255);
public static byte getRandomByte() { return (byte)CHARSET[getRandomInt()]; }
51804 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51804/3f2f2ffe3d67f170c6dd8d310230eb8b806bc217/AbstractMailFactory.java/buggy/src/main/java/org/apache/james/postage/mail/AbstractMailFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1160, 20581, 3216, 1435, 288, 3639, 327, 261, 7229, 21433, 10477, 18, 9188, 1435, 380, 4561, 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, 760, 1160, 20581, 3216, 1435, 288, 3639, 327, 261, 7229, 21433, 10477, 18, 9188, 1435, 380, 4561, 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 ]
match(input,21,FOLLOW_21_in_paren_chunk2015); following.push(FOLLOW_paren_chunk_in_paren_chunk2019);
match(input,21,FOLLOW_21_in_paren_chunk2065); following.push(FOLLOW_paren_chunk_in_paren_chunk2069);
public String paren_chunk() throws RecognitionException { String text; Token any=null; String c = null; text = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:582:17: ( ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:582:17: ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:582:17: ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* loop52: do { int alt52=3; switch ( input.LA(1) ) { case EOL: alt52=3; break; case 23: alt52=3; break; case 21: alt52=1; break; case ID: case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 15: case 16: case 17: case 18: case 19: case 20: case 22: case 24: case 25: case 26: case 27: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: alt52=2; break; } switch (alt52) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:583:25: '(' c= paren_chunk ')' { match(input,21,FOLLOW_21_in_paren_chunk2015); following.push(FOLLOW_paren_chunk_in_paren_chunk2019); c=paren_chunk(); following.pop(); match(input,23,FOLLOW_23_in_paren_chunk2021); //System.err.println( "chunk [" + c + "]" ); if ( c == null ) { c = ""; } if ( text == null ) { text = "( " + c + " )"; } else { text = text + " ( " + c + " )"; } } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:595:19: any= . { any=(Token)input.LT(1); matchAny(input); //System.err.println( "any [" + any.getText() + "]" ); if ( text == null ) { text = any.getText(); } else { text = text + " " + any.getText(); } } break; default : break loop52; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 22146, 67, 6551, 1435, 1216, 9539, 288, 6647, 514, 977, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 276, 273, 446, 31, 1171, 202, 202, 955, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 8204, 22, 30, 4033, 30, 261, 261, 702, 288, 11556, 24009, 33, 5743, 31, 289, 294, 7321, 276, 33, 22146, 67, 6551, 5777, 571, 1281, 33, 263, 8618, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 8204, 22, 30, 4033, 30, 261, 702, 288, 11556, 24009, 33, 5743, 31, 289, 294, 7321, 276, 33, 22146, 67, 6551, 5777, 571, 1281, 33, 263, 8618, 5411, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 8204, 22, 30, 4033, 30, 261, 702, 288, 11556, 24009, 33, 5743, 31, 289, 294, 7321, 276, 33, 22146, 67, 6551, 5777, 571, 1281, 33, 263, 8618, 5411, 2798, 9401, 30, 5411, 741, 288, 7734, 509, 3770, 9401, 33, 23, 31, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 19995, 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, 514, 22146, 67, 6551, 1435, 1216, 9539, 288, 6647, 514, 977, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 276, 273, 446, 31, 1171, 202, 202, 955, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 8204, 22, 30, 4033, 30, 261, 261, 702, 288, 11556, 24009, 33, 5743, 31, 289, 294, 7321, 276, 33, 22146, 67, 6551, 5777, 571, 1281, 33, 263, 8618, 262, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 2 ]
if ( fDuration == null ) { fDuration = new int[2][TOTAL_SIZE]; }
int[][] fDuration = new int[2][TOTAL_SIZE];
protected short compareDates(int[] date1, int[] date2, boolean strict) { //REVISIT: this is unoptimazed vs of comparing 2 durations // Algorithm is described in 3.2.6.2 W3C Schema Datatype specs // //add constA to both durations short resultA, resultB= INDETERMINATE; //try and see if the objects are equal resultA = compareOrder (date1, date2); if ( resultA == 0 ) { return 0; } if ( fDuration == null ) { fDuration = new int[2][TOTAL_SIZE]; } //long comparison algorithm is required int[] tempA = addDuration (date1, 0, fDuration[0]); int[] tempB = addDuration (date2, 0, fDuration[1]); resultA = compareOrder(tempA, tempB); if ( resultA == INDETERMINATE ) { return INDETERMINATE; } tempA = addDuration(date1, 1, fDuration[0]); tempB = addDuration(date2, 1, fDuration[1]); resultB = compareOrder(tempA, tempB); resultA = compareResults(resultA, resultB, strict); if (resultA == INDETERMINATE) { return INDETERMINATE; } tempA = addDuration(date1, 2, fDuration[0]); tempB = addDuration(date2, 2, fDuration[1]); resultB = compareOrder(tempA, tempB); resultA = compareResults(resultA, resultB, strict); if (resultA == INDETERMINATE) { return INDETERMINATE; } tempA = addDuration(date1, 3, fDuration[0]); tempB = addDuration(date2, 3, fDuration[1]); resultB = compareOrder(tempA, tempB); resultA = compareResults(resultA, resultB, strict); return resultA; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/7e478c6e89050435fb7ad89d9f1c09ead4703d2b/DurationDV.java/buggy/src/org/apache/xerces/impl/dv/xs/DurationDV.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 225, 3025, 3400, 15578, 12, 474, 8526, 1509, 21, 16, 509, 8526, 1509, 22, 16, 1250, 5490, 13, 288, 3639, 368, 862, 26780, 1285, 30, 333, 353, 640, 16689, 1561, 329, 6195, 434, 17553, 576, 23920, 3639, 368, 540, 15067, 353, 11893, 316, 890, 18, 22, 18, 26, 18, 22, 678, 23, 39, 4611, 21168, 10607, 3639, 368, 3639, 368, 1289, 1866, 37, 358, 3937, 23920, 3639, 3025, 563, 37, 16, 563, 38, 33, 2120, 40, 1584, 654, 6236, 1777, 31, 3639, 368, 698, 471, 2621, 309, 326, 2184, 854, 3959, 3639, 563, 37, 273, 3400, 2448, 261, 712, 21, 16, 1509, 22, 1769, 3639, 309, 261, 563, 37, 422, 374, 262, 288, 5411, 327, 374, 31, 3639, 289, 3639, 309, 261, 284, 5326, 422, 446, 262, 288, 5411, 284, 5326, 273, 394, 509, 63, 22, 6362, 28624, 67, 4574, 15533, 3639, 289, 3639, 368, 5748, 5826, 4886, 353, 1931, 3639, 509, 8526, 1906, 37, 273, 527, 5326, 261, 712, 21, 16, 374, 16, 284, 5326, 63, 20, 19226, 3639, 509, 8526, 1906, 38, 273, 527, 5326, 261, 712, 22, 16, 374, 16, 284, 5326, 63, 21, 19226, 3639, 563, 37, 273, 225, 3400, 2448, 12, 5814, 37, 16, 1906, 38, 1769, 3639, 309, 261, 563, 37, 422, 2120, 40, 1584, 654, 6236, 1777, 262, 288, 5411, 327, 2120, 40, 1584, 654, 6236, 1777, 31, 3639, 289, 3639, 1906, 37, 273, 527, 5326, 12, 712, 21, 16, 404, 16, 284, 5326, 63, 20, 19226, 3639, 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, 225, 3025, 3400, 15578, 12, 474, 8526, 1509, 21, 16, 509, 8526, 1509, 22, 16, 1250, 5490, 13, 288, 3639, 368, 862, 26780, 1285, 30, 333, 353, 640, 16689, 1561, 329, 6195, 434, 17553, 576, 23920, 3639, 368, 540, 15067, 353, 11893, 316, 890, 18, 22, 18, 26, 18, 22, 678, 23, 39, 4611, 21168, 10607, 3639, 368, 3639, 368, 1289, 1866, 37, 358, 3937, 23920, 3639, 3025, 563, 37, 16, 563, 38, 33, 2120, 40, 1584, 654, 6236, 1777, 31, 3639, 368, 698, 471, 2621, 309, 326, 2184, 854, 3959, 3639, 563, 37, 273, 3400, 2448, 261, 712, 21, 16, 1509, 22, 1769, 3639, 309, 261, 563, 37, 422, 374, 262, 288, 5411, 327, 374, 31, 2 ]
DatabaseManager.update(ourContext,mappingRow);
DatabaseManager.update(ourContext, mappingRow);
public void update() throws SQLException, AuthorizeException { // FIXME: Check authorisation DatabaseManager.update(ourContext, itemRow); // Redo bundle mappings if they've changed if (bundlesChanged) { // Remove any existing mappings DatabaseManager.updateQuery(ourContext, "delete from item2bundle where item_id=" + getID()); // Add new mappings Iterator i = bundles.iterator(); while (i.hasNext()) { Bundle b = (Bundle) i.next(); TableRow mappingRow = DatabaseManager.create(ourContext, "item2bundle"); mappingRow.setColumn("bundle_id", b.getID()); mappingRow.setColumn("item_id", getID()); DatabaseManager.update(ourContext,mappingRow); } bundlesChanged = false; } // Redo Dublin Core if it's changed if (dublinCoreChanged) { // Remove existing DC removeDCFromDatabase(); // Add in-memory DC Iterator i = dublinCore.iterator(); while (i.hasNext()) { DCValue dcv = (DCValue) i.next(); // Get the DC Type // FIXME: Maybe should use RegistryManager? String query = "select * from dctyperegistry where element " + "LIKE \"" + dcv.element + "\" AND qualifier" + (dcv.qualifier==null ? "=null" : " LIKE \"" + dcv.qualifier + "\"") + ";"; TableRow dcTypeRow = DatabaseManager.querySingle(ourContext, "dctyperegistry", query); if (dcTypeRow==null) { // Bad DC field // FIXME: An error? log.warn(LogManager.getHeader(ourContext, "bad_dc", "Bad DC field. element: \"" + (dcv.element==null ? "null" : dcv.element) + "\" qualifier: \"" + (dcv.qualifier==null ? "null" : dcv.qualifier) + "\" value: \"" + (dcv.value==null ? "null" : dcv.value) + "\"")); } else { // Write DCValue TableRow valueRow = DatabaseManager.create(ourContext, "dcvalue"); valueRow.setColumn("text_value", dcv.value); valueRow.setColumn("text_lang", dcv.language); DatabaseManager.update(ourContext, valueRow); // Write mapping TableRow mappingRow = DatabaseManager.create(ourContext, "item2dcvalue"); mappingRow.setColumn("item_id", getID()); mappingRow.setColumn("dc_value_id", valueRow.getIntColumn("dc_value_id")); mappingRow.setColumn("dc_type_id", dcTypeRow.getIntColumn("dc_type_id")); DatabaseManager.update(ourContext, mappingRow); } } dublinCoreChanged = false; } }
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/85c7430ba7691f831fafc420459d280408310eb9/Item.java/clean/dspace/src/org/dspace/content/Item.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 1435, 3639, 1216, 6483, 16, 23859, 503, 565, 288, 3639, 368, 9852, 30, 2073, 2869, 10742, 7734, 5130, 1318, 18, 2725, 12, 477, 1042, 16, 761, 1999, 1769, 7734, 368, 4621, 83, 3440, 7990, 309, 2898, 8081, 3550, 3639, 309, 261, 22773, 5033, 13, 3639, 288, 5411, 368, 3581, 1281, 2062, 7990, 5411, 5130, 1318, 18, 2725, 1138, 12, 477, 1042, 16, 7734, 315, 3733, 628, 761, 22, 9991, 1625, 761, 67, 350, 1546, 397, 14744, 10663, 5411, 368, 1436, 394, 7990, 5411, 4498, 277, 273, 11408, 18, 9838, 5621, 5411, 1323, 261, 77, 18, 5332, 2134, 10756, 5411, 288, 7734, 8539, 324, 273, 261, 3405, 13, 277, 18, 4285, 5621, 7734, 3555, 1999, 2874, 1999, 273, 5130, 1318, 18, 2640, 12, 477, 1042, 16, 10792, 315, 1726, 22, 9991, 8863, 7734, 2874, 1999, 18, 542, 1494, 2932, 9991, 67, 350, 3113, 324, 18, 588, 734, 10663, 7734, 2874, 1999, 18, 542, 1494, 2932, 1726, 67, 350, 3113, 14744, 10663, 7734, 5130, 1318, 18, 2725, 12, 477, 1042, 16, 2874, 1999, 1769, 5411, 289, 5411, 11408, 5033, 273, 629, 31, 3639, 289, 3639, 368, 4621, 83, 31760, 4586, 309, 518, 1807, 3550, 3639, 309, 261, 72, 29056, 4670, 5033, 13, 3639, 288, 5411, 368, 3581, 2062, 21533, 5411, 1206, 5528, 1265, 4254, 5621, 5411, 368, 1436, 316, 17, 7858, 21533, 5411, 4498, 277, 273, 302, 29056, 4670, 18, 9838, 5621, 13491, 1323, 261, 77, 18, 5332, 2134, 10756, 5411, 288, 7734, 21533, 620, 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, 1089, 1435, 3639, 1216, 6483, 16, 23859, 503, 565, 288, 3639, 368, 9852, 30, 2073, 2869, 10742, 7734, 5130, 1318, 18, 2725, 12, 477, 1042, 16, 761, 1999, 1769, 7734, 368, 4621, 83, 3440, 7990, 309, 2898, 8081, 3550, 3639, 309, 261, 22773, 5033, 13, 3639, 288, 5411, 368, 3581, 1281, 2062, 7990, 5411, 5130, 1318, 18, 2725, 1138, 12, 477, 1042, 16, 7734, 315, 3733, 628, 761, 22, 9991, 1625, 761, 67, 350, 1546, 397, 14744, 10663, 5411, 368, 1436, 394, 7990, 5411, 4498, 277, 273, 11408, 18, 9838, 5621, 5411, 1323, 261, 77, 18, 5332, 2134, 10756, 5411, 288, 7734, 8539, 324, 273, 261, 3405, 13, 277, 18, 4285, 5621, 7734, 3555, 1999, 2874, 2 ]
tracker.addImage((Image) hexToBaseImageCache.get(hex), 1);
tracker.addImage((Image)hex.getBase(), 1);
public void trackHexImages(IHex hex, MediaTracker tracker) { // add base tracker.addImage((Image) hexToBaseImageCache.get(hex), 1); // add superImgs List superImgs = (List) hexToSupersImageCache.get(hex); if (superImgs != null) { for (Iterator i = superImgs.iterator(); i.hasNext();) { tracker.addImage((Image)i.next(), 1); } } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/0650797894fb1b6aecc7f68fd426e9d281fdc37a/HexTileset.java/buggy/megamek/src/megamek/client/ui/AWT/HexTileset.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3298, 7037, 8946, 12, 45, 7037, 3827, 16, 6128, 8135, 9745, 13, 288, 3639, 368, 527, 1026, 3639, 9745, 18, 1289, 2040, 12443, 2040, 13, 7118, 18, 588, 2171, 9334, 404, 1769, 7734, 368, 527, 2240, 1170, 564, 3639, 987, 2240, 1170, 564, 273, 261, 682, 13, 3827, 774, 3088, 414, 2040, 1649, 18, 588, 12, 7118, 1769, 3639, 309, 261, 9565, 1170, 564, 480, 446, 13, 288, 5411, 364, 261, 3198, 277, 273, 2240, 1170, 564, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 9745, 18, 1289, 2040, 12443, 2040, 13, 77, 18, 4285, 9334, 404, 1769, 5411, 289, 3639, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3298, 7037, 8946, 12, 45, 7037, 3827, 16, 6128, 8135, 9745, 13, 288, 3639, 368, 527, 1026, 3639, 9745, 18, 1289, 2040, 12443, 2040, 13, 7118, 18, 588, 2171, 9334, 404, 1769, 7734, 368, 527, 2240, 1170, 564, 3639, 987, 2240, 1170, 564, 273, 261, 682, 13, 3827, 774, 3088, 414, 2040, 1649, 18, 588, 12, 7118, 1769, 3639, 309, 261, 9565, 1170, 564, 480, 446, 13, 288, 5411, 364, 261, 3198, 277, 273, 2240, 1170, 564, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 9745, 18, 1289, 2040, 12443, 2040, 13, 77, 18, 4285, 9334, 404, 1769, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
listeners.add(listener);
commandManagerListeners.add(listener);
public final void addCommandManagerListener( final ICommandManagerListener listener) { if (listener == null) { throw new NullPointerException(); } if (listeners == null) { listeners = new HashSet(); } listeners.add(listener); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0d3064963fd6af5dcfcaa70a6bf5b440e4842474/CommandManager.java/buggy/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/CommandManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 20008, 1318, 2223, 12, 1082, 202, 6385, 467, 2189, 1318, 2223, 2991, 13, 288, 202, 202, 430, 261, 12757, 422, 446, 13, 288, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 97, 202, 202, 430, 261, 16072, 422, 446, 13, 288, 1082, 202, 16072, 273, 394, 6847, 5621, 202, 202, 97, 202, 202, 16072, 18, 1289, 12, 12757, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 918, 20008, 1318, 2223, 12, 1082, 202, 6385, 467, 2189, 1318, 2223, 2991, 13, 288, 202, 202, 430, 261, 12757, 422, 446, 13, 288, 1082, 202, 12849, 394, 10108, 5621, 202, 202, 97, 202, 202, 430, 261, 16072, 422, 446, 13, 288, 1082, 202, 16072, 273, 394, 6847, 5621, 202, 202, 97, 202, 202, 16072, 18, 1289, 12, 12757, 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 ]
Collection getGroupsAllowRemoveEvent();
Collection getGroupsAllowRemoveEvent( boolean own );
Collection getGroupsAllowRemoveEvent();
52989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52989/b369d70ad6f5f44f23b9590766f7b24a07f67cfa/Calendar.java/buggy/calendar-api/api/src/java/org/sakaiproject/calendar/api/Calendar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 2532, 22708, 7009, 3288, 1133, 5621, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2532, 22708, 7009, 3288, 1133, 5621, 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 ]
f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { PlotterAWT.this.f.setVisible(false); PlotterAWT.this.f.dispose(); System.exit(0); } });
f.addWindowListener(new WindowCloser(f, true));
PlotterAWT() { super(); f = new Frame("Plotter"); p = new PCanvas(MAXX, MAXY); f.add(p); f.pack(); f.setVisible(true); f.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { // If we do setVisible and dispose, then the Close completes PlotterAWT.this.f.setVisible(false); PlotterAWT.this.f.dispose(); System.exit(0); } }); g = p.getOsGraphics(); }
9469 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9469/b9ab85ef66a46cff57fc8390b8628db0041fd796/PlotterAWT.java/buggy/src/main/java/plotter/PlotterAWT.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 11532, 387, 37, 8588, 1435, 288, 202, 202, 9565, 5621, 202, 202, 74, 273, 394, 8058, 2932, 11532, 387, 8863, 202, 202, 84, 273, 394, 453, 12971, 12, 6694, 60, 16, 4552, 61, 1769, 202, 202, 74, 18, 1289, 12, 84, 1769, 202, 202, 74, 18, 2920, 5621, 202, 202, 74, 18, 542, 6207, 12, 3767, 1769, 3639, 284, 18, 1289, 3829, 2223, 12, 2704, 6076, 4216, 1435, 288, 1082, 202, 482, 918, 2742, 15745, 12, 3829, 1133, 425, 13, 288, 9506, 202, 759, 971, 732, 741, 16697, 471, 15825, 16, 1508, 326, 3527, 7218, 9506, 202, 11532, 387, 37, 8588, 18, 2211, 18, 74, 18, 542, 6207, 12, 5743, 1769, 9506, 202, 11532, 387, 37, 8588, 18, 2211, 18, 74, 18, 2251, 4150, 5621, 9506, 202, 3163, 18, 8593, 12, 20, 1769, 1082, 202, 97, 202, 202, 22938, 202, 202, 75, 273, 293, 18, 588, 15112, 17558, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 11532, 387, 37, 8588, 1435, 288, 202, 202, 9565, 5621, 202, 202, 74, 273, 394, 8058, 2932, 11532, 387, 8863, 202, 202, 84, 273, 394, 453, 12971, 12, 6694, 60, 16, 4552, 61, 1769, 202, 202, 74, 18, 1289, 12, 84, 1769, 202, 202, 74, 18, 2920, 5621, 202, 202, 74, 18, 542, 6207, 12, 3767, 1769, 3639, 284, 18, 1289, 3829, 2223, 12, 2704, 6076, 4216, 1435, 288, 1082, 202, 482, 918, 2742, 15745, 12, 3829, 1133, 425, 13, 288, 9506, 202, 759, 971, 732, 741, 16697, 471, 15825, 16, 1508, 326, 3527, 7218, 9506, 202, 11532, 387, 37, 8588, 18, 2211, 18, 74, 18, 542, 6207, 12, 5743, 1769, 9506, 202, 11532, 387, 37, 8588, 2 ]
SVGOMDocument d = (SVGOMDocument) doc; if (d.isSVG12()) { scriptingEnvironment = new SVG12ScriptingEnvironment(ctx); ctx.xblManager = new DefaultXBLManager(d, ctx); d.setXBLManager(ctx.xblManager); } else { scriptingEnvironment = new ScriptingEnvironment(ctx);
initializeScriptingEnvironment(bridgeContext); BridgeContext[] children = ctx.getChildContexts(); for (int i = 0; i < children.length; i++) { BridgeContext resCtx = children[i]; resCtx.setUpdateManager(this); initializeScriptingEnvironment(resCtx);
public UpdateManager(BridgeContext ctx, GraphicsNode gn, Document doc) { bridgeContext = ctx; bridgeContext.setUpdateManager(this); document = doc; updateRunnableQueue = RunnableQueue.createRunnableQueue(); runHandler = createRunHandler(); updateRunnableQueue.setRunHandler(runHandler); graphicsNode = gn; SVGOMDocument d = (SVGOMDocument) doc; if (d.isSVG12()) { scriptingEnvironment = new SVG12ScriptingEnvironment(ctx); ctx.xblManager = new DefaultXBLManager(d, ctx); d.setXBLManager(ctx.xblManager); } else { scriptingEnvironment = new ScriptingEnvironment(ctx); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/df08ddfef2e80a817b5218fda2a2475dcb8c3bd9/UpdateManager.java/clean/sources/org/apache/batik/bridge/UpdateManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2315, 1318, 12, 13691, 1042, 1103, 16, 7682, 16830, 907, 22908, 16, 7682, 4319, 997, 13, 288, 3639, 10105, 1042, 273, 1103, 31, 3639, 10105, 1042, 18, 542, 1891, 1318, 12, 2211, 1769, 3639, 1668, 273, 997, 31, 3639, 1089, 20013, 3183, 273, 10254, 3183, 18, 2640, 20013, 3183, 5621, 3639, 1086, 1503, 273, 752, 1997, 1503, 5621, 3639, 1089, 20013, 3183, 18, 542, 1997, 1503, 12, 2681, 1503, 1769, 3639, 17313, 907, 273, 22908, 31, 3639, 11281, 1872, 2519, 302, 273, 261, 26531, 1872, 2519, 13, 997, 31, 3639, 309, 261, 72, 18, 291, 26531, 2138, 10756, 288, 5411, 2728, 310, 5494, 273, 394, 11281, 2138, 3651, 310, 5494, 12, 5900, 1769, 5411, 1103, 18, 92, 3083, 1318, 273, 394, 2989, 60, 14618, 1318, 12, 72, 16, 1103, 1769, 5411, 302, 18, 542, 60, 14618, 1318, 12, 5900, 18, 92, 3083, 1318, 1769, 3639, 289, 469, 288, 5411, 2728, 310, 5494, 273, 394, 7739, 310, 5494, 12, 5900, 1769, 3639, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2315, 1318, 12, 13691, 1042, 1103, 16, 7682, 16830, 907, 22908, 16, 7682, 4319, 997, 13, 288, 3639, 10105, 1042, 273, 1103, 31, 3639, 10105, 1042, 18, 542, 1891, 1318, 12, 2211, 1769, 3639, 1668, 273, 997, 31, 3639, 1089, 20013, 3183, 273, 10254, 3183, 18, 2640, 20013, 3183, 5621, 3639, 1086, 1503, 273, 752, 1997, 1503, 5621, 3639, 1089, 20013, 3183, 18, 542, 1997, 1503, 12, 2681, 1503, 1769, 3639, 17313, 907, 273, 22908, 31, 3639, 11281, 1872, 2519, 302, 273, 261, 26531, 1872, 2519, 13, 997, 31, 3639, 309, 261, 72, 18, 291, 26531, 2138, 10756, 288, 5411, 2728, 310, 5494, 273, 394, 11281, 2138, 3651, 310, 5494, 12, 5900, 1769, 5411, 1103, 18, 92, 2 ]
public static String createSchemaSQLForEntitiesInModelWithNameAndOptions(NSArray entities, String modelName, NSDictionary optionsCreate) { //get the JDBCAdaptor EODatabaseContext dc = EOUtilities.databaseContextForModelNamed(ERXEC.newEditingContext(), modelName); EOAdaptorContext ac = dc.adaptorContext(); //ak: stupid trick to get around having to link to JDBCAdaptor EOSynchronizationFactory sf = (EOSynchronizationFactory) NSKeyValueCodingAdditions.Utility.valueForKeyPath(ac, "adaptor.plugIn.createSynchronizationFactory"); EOModel m = modelGroup(null).modelNamed(modelName); Enumeration e = m.entities().objectEnumerator(); entities = entities == null ? new NSMutableArray() : entities; if (entities == null) { NSMutableArray ar = new NSMutableArray(); while (e.hasMoreElements()) { EOEntity currentEntity = (EOEntity) e.nextElement(); if (!(currentEntity.name().startsWith("EO") && currentEntity.name().endsWith("Prototypes"))) { //we do not want to add EOXXXPrototypes entities ar.addObject(currentEntity); } } entities = ar; } return sf.schemaCreationScriptForEntities(entities, optionsCreate); }
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/32f7feaa4620d4b1e339504ebd5dc05049e5533c/ERXEOAccessUtilities.java/clean/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXEOAccessUtilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 752, 3078, 3997, 1290, 8108, 382, 1488, 17557, 1876, 1320, 12, 3156, 1076, 5140, 16, 514, 12052, 16, 423, 9903, 3192, 702, 1684, 13, 288, 3639, 368, 588, 326, 16364, 29888, 3639, 512, 1212, 2451, 1042, 6744, 273, 512, 51, 11864, 18, 6231, 1042, 1290, 1488, 7604, 12, 654, 60, 7228, 18, 2704, 28029, 1042, 9334, 12052, 1769, 3639, 512, 51, 29888, 1042, 1721, 273, 6744, 18, 19195, 280, 1042, 5621, 3639, 368, 581, 30, 384, 416, 350, 28837, 358, 336, 6740, 7999, 358, 1692, 358, 16364, 29888, 3639, 512, 4618, 2600, 1588, 1733, 9033, 273, 261, 41, 4618, 2600, 1588, 1733, 13, 11472, 13841, 30315, 986, 5029, 18, 6497, 18, 1132, 19759, 743, 12, 1077, 16, 7734, 315, 19195, 280, 18, 22045, 382, 18, 2640, 30196, 1733, 8863, 3639, 512, 51, 1488, 312, 273, 938, 1114, 12, 2011, 2934, 2284, 7604, 12, 2284, 461, 1769, 3639, 13864, 425, 273, 312, 18, 9996, 7675, 1612, 3572, 7385, 5621, 3639, 5140, 273, 5140, 422, 446, 692, 394, 423, 7303, 3050, 1076, 1435, 294, 5140, 31, 3639, 309, 261, 9996, 422, 446, 13, 288, 5411, 423, 7303, 3050, 1076, 419, 273, 394, 423, 7303, 3050, 1076, 5621, 5411, 1323, 261, 73, 18, 5332, 7417, 3471, 10756, 288, 7734, 512, 51, 1943, 783, 1943, 273, 261, 41, 51, 1943, 13, 425, 18, 4285, 1046, 5621, 7734, 309, 16051, 12, 2972, 1943, 18, 529, 7675, 17514, 1190, 2932, 41, 51, 7923, 597, 783, 1943, 18, 529, 7675, 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, 514, 752, 3078, 3997, 1290, 8108, 382, 1488, 17557, 1876, 1320, 12, 3156, 1076, 5140, 16, 514, 12052, 16, 423, 9903, 3192, 702, 1684, 13, 288, 3639, 368, 588, 326, 16364, 29888, 3639, 512, 1212, 2451, 1042, 6744, 273, 512, 51, 11864, 18, 6231, 1042, 1290, 1488, 7604, 12, 654, 60, 7228, 18, 2704, 28029, 1042, 9334, 12052, 1769, 3639, 512, 51, 29888, 1042, 1721, 273, 6744, 18, 19195, 280, 1042, 5621, 3639, 368, 581, 30, 384, 416, 350, 28837, 358, 336, 6740, 7999, 358, 1692, 358, 16364, 29888, 3639, 512, 4618, 2600, 1588, 1733, 9033, 273, 261, 41, 4618, 2600, 1588, 1733, 13, 11472, 13841, 30315, 986, 5029, 18, 6497, 18, 1132, 19759, 743, 12, 2 ]
q = q + " READ COMMITTED";
sb.append(" READ COMMITTED");
protected String getIsolationLevelSQL() throws SQLException { //7.1 and higher servers have a default specified so //no additional SQL is required to set the isolation level if (haveMinimumServerVersion("7.1")) { return ""; } String q = "SET TRANSACTION ISOLATION LEVEL"; switch(isolationLevel) { case java.sql.Connection.TRANSACTION_READ_COMMITTED: q = q + " READ COMMITTED"; break; case java.sql.Connection.TRANSACTION_SERIALIZABLE: q = q + " SERIALIZABLE"; break; default: throw new PSQLException("postgresql.con.isolevel",new Integer(isolationLevel)); } return q; }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/7066253ab5268467e01049a6a8a735bebf74f989/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 14279, 12255, 2355, 3997, 1435, 1216, 6483, 288, 202, 759, 27, 18, 21, 471, 10478, 7084, 1240, 279, 805, 1269, 1427, 225, 202, 759, 2135, 3312, 3063, 353, 1931, 358, 444, 326, 25155, 1801, 202, 430, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 21, 6, 3719, 288, 1850, 327, 1408, 31, 3639, 289, 202, 780, 1043, 273, 315, 4043, 24896, 4437, 1741, 2689, 15080, 14432, 202, 9610, 12, 291, 12255, 2355, 13, 288, 202, 565, 648, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 6949, 67, 18658, 6404, 30, 202, 202, 18366, 18, 6923, 2932, 10746, 5423, 6068, 6404, 8863, 7734, 898, 31, 202, 565, 648, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 2123, 15154, 2782, 30, 202, 202, 85, 273, 1043, 397, 315, 7758, 15154, 2782, 14432, 7734, 898, 31, 202, 565, 805, 30, 202, 202, 12849, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 291, 790, 941, 3113, 2704, 2144, 12, 291, 12255, 2355, 10019, 202, 97, 3639, 327, 1043, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 14279, 12255, 2355, 3997, 1435, 1216, 6483, 288, 202, 759, 27, 18, 21, 471, 10478, 7084, 1240, 279, 805, 1269, 1427, 225, 202, 759, 2135, 3312, 3063, 353, 1931, 358, 444, 326, 25155, 1801, 202, 430, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 21, 6, 3719, 288, 1850, 327, 1408, 31, 3639, 289, 202, 780, 1043, 273, 315, 4043, 24896, 4437, 1741, 2689, 15080, 14432, 202, 9610, 12, 291, 12255, 2355, 13, 288, 202, 565, 648, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 6949, 67, 18658, 6404, 30, 202, 202, 18366, 18, 6923, 2932, 10746, 5423, 6068, 6404, 8863, 7734, 898, 31, 202, 565, 648, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 2123, 2 ]
throw new IllegalArgumentException("name must not be empty");
throw new IllegalArgumentException(Messages.getString("security.29"));
private final void checkName(String name) { if (name == null) { throw new NullPointerException("name must not be null"); } if (name.length() == 0) { throw new IllegalArgumentException("name must not be empty"); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c7fdc88348ff6da63262b6309c2810876f42c6d8/BasicPermission.java/buggy/modules/security/src/main/java/common/java/security/BasicPermission.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 727, 918, 866, 461, 12, 780, 508, 13, 288, 3639, 309, 261, 529, 422, 446, 13, 288, 5411, 604, 394, 10108, 2932, 529, 1297, 486, 506, 446, 8863, 3639, 289, 3639, 309, 261, 529, 18, 2469, 1435, 422, 374, 13, 288, 5411, 604, 394, 2754, 12, 5058, 18, 588, 780, 2932, 7462, 18, 5540, 7923, 1769, 3639, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 727, 918, 866, 461, 12, 780, 508, 13, 288, 3639, 309, 261, 529, 422, 446, 13, 288, 5411, 604, 394, 10108, 2932, 529, 1297, 486, 506, 446, 8863, 3639, 289, 3639, 309, 261, 529, 18, 2469, 1435, 422, 374, 13, 288, 5411, 604, 394, 2754, 12, 5058, 18, 588, 780, 2932, 7462, 18, 5540, 7923, 1769, 3639, 289, 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 ]
throw new SQLException("fetch problem: " + ge.toString());
throw new FBSQLException(ge);
public boolean next() throws SQLException { isBeforeFirst = false; isFirst = false; isLast = false; isAfterLast = false; if (log!=null) log.debug("FBResultSet next - FBStatementFetcher"); if (isEmpty) return false; else if (nextRow == null || (fbStatement.maxRows!=0 && rowNum==fbStatement.maxRows)){ isAfterLast = true; rowNum=0; return false; } else { try { row = nextRow; nextRow = c.fetch(stmt); rowNum++; copyToSQLVAR(row); if(rowNum==1) isFirst=true; if((nextRow==null) || (fbStatement.maxRows!=0 && rowNum==fbStatement.maxRows)) isLast = true; return true; } catch (GDSException ge) { throw new SQLException("fetch problem: " + ge.toString()); } } }
6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/cbd33d38133736f298fd2f9828bd7d8160c904e3/FBResultSet.java/clean/src/main/org/firebirdsql/jdbc/FBResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1024, 1435, 1216, 6483, 288, 5411, 353, 4649, 3759, 273, 629, 31, 5411, 17447, 273, 629, 31, 5411, 23075, 273, 629, 31, 5411, 353, 4436, 3024, 273, 629, 31, 18701, 309, 261, 1330, 5, 33, 2011, 13, 613, 18, 4148, 2932, 22201, 13198, 1024, 300, 478, 38, 3406, 16855, 8863, 27573, 309, 261, 291, 1921, 13, 7734, 327, 629, 31, 5411, 469, 309, 261, 4285, 1999, 422, 446, 747, 261, 19192, 3406, 18, 1896, 4300, 5, 33, 20, 597, 1027, 2578, 631, 19192, 3406, 18, 1896, 4300, 3719, 95, 7734, 353, 4436, 3024, 273, 638, 31, 7734, 1027, 2578, 33, 20, 31, 7734, 327, 629, 31, 5411, 289, 5411, 469, 288, 7734, 775, 288, 10792, 1027, 273, 1024, 1999, 31, 10792, 1024, 1999, 273, 276, 18, 5754, 12, 10589, 1769, 10792, 1027, 2578, 9904, 31, 10792, 29817, 3997, 7716, 12, 492, 1769, 4766, 3639, 309, 12, 492, 2578, 631, 21, 13, 13491, 17447, 33, 3767, 31, 4766, 3639, 309, 12443, 4285, 1999, 631, 2011, 13, 747, 261, 19192, 3406, 18, 1896, 4300, 5, 33, 20, 597, 1027, 2578, 631, 19192, 3406, 18, 1896, 4300, 3719, 13491, 23075, 273, 638, 31, 4766, 5411, 327, 638, 31, 7734, 289, 7734, 1044, 261, 43, 3948, 503, 8244, 13, 288, 10792, 604, 394, 478, 38, 23116, 12, 908, 1769, 7734, 289, 5411, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1250, 1024, 1435, 1216, 6483, 288, 5411, 353, 4649, 3759, 273, 629, 31, 5411, 17447, 273, 629, 31, 5411, 23075, 273, 629, 31, 5411, 353, 4436, 3024, 273, 629, 31, 18701, 309, 261, 1330, 5, 33, 2011, 13, 613, 18, 4148, 2932, 22201, 13198, 1024, 300, 478, 38, 3406, 16855, 8863, 27573, 309, 261, 291, 1921, 13, 7734, 327, 629, 31, 5411, 469, 309, 261, 4285, 1999, 422, 446, 747, 261, 19192, 3406, 18, 1896, 4300, 5, 33, 20, 597, 1027, 2578, 631, 19192, 3406, 18, 1896, 4300, 3719, 95, 7734, 353, 4436, 3024, 273, 638, 31, 7734, 1027, 2578, 33, 20, 31, 7734, 327, 629, 31, 5411, 289, 5411, 469, 288, 7734, 775, 288, 10792, 1027, 2 ]
if (hashCode != 0) return hashCode; else return handler.hashCode(this); }
if (hashCode != 0) return hashCode; else return handler.hashCode(this); }
public int hashCode() { if (hashCode != 0) return hashCode; // Use cached value if available. else return handler.hashCode(this); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e204bcd94e42168df8116332c5e2f0db99bd1c55/URL.java/clean/core/src/classpath/java/java/net/URL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 13374, 1435, 288, 202, 202, 430, 261, 2816, 1085, 480, 374, 13, 1082, 202, 2463, 13374, 31, 368, 2672, 3472, 460, 309, 2319, 18, 202, 202, 12107, 1082, 202, 2463, 1838, 18, 2816, 1085, 12, 2211, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 13374, 1435, 288, 202, 202, 430, 261, 2816, 1085, 480, 374, 13, 1082, 202, 2463, 13374, 31, 368, 2672, 3472, 460, 309, 2319, 18, 202, 202, 12107, 1082, 202, 2463, 1838, 18, 2816, 1085, 12, 2211, 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 ]
jar_url = getJarFileURL();
public Connection (URL url) throws MalformedURLException, IOException { super (url); jar_url = getJarFileURL(); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/859fd0abd83b477722f9cdfc9cc7bac3708b55ac/Connection.java/buggy/gnu/java/net/protocol/jar/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4050, 261, 1785, 880, 13, 1216, 20710, 16, 1860, 225, 288, 565, 2240, 261, 718, 1769, 377, 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 ]
[ 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4050, 261, 1785, 880, 13, 1216, 20710, 16, 1860, 225, 288, 565, 2240, 261, 718, 1769, 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 ]
editor.applyTextDelta(item.getPath(), checksum);
editor.applyTextDelta(path, checksum);
public void sendTextDeltas(ISVNEditor editor) throws SVNException { for (Iterator paths = myModifiedFiles.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); SVNCommitItem item = (SVNCommitItem) myModifiedFiles.get(path); SVNEvent event = SVNEventFactory.createCommitEvent(myWCAccess.getAnchor().getRoot(), item.getFile(), SVNEventAction.COMMIT_DELTA_SENT, SVNNodeKind.FILE, null); myWCAccess.svnEvent(event, ISVNEventListener.UNKNOWN); SVNDirectory dir = myWCAccess.getDirectory(PathUtil.removeTail(item.getPath())); String name = PathUtil.tail(item.getPath()); SVNEntry entry = dir.getEntries().getEntry(name, false); File tmpFile = dir.getBaseFile(name, true); myTmpFiles.add(tmpFile); SVNTranslator.translate(dir, name, name, SVNFileUtil.getBasePath(tmpFile), false, false); String checksum = null; String newChecksum = SVNFileUtil.computeChecksum(tmpFile); if (!item.isAdded()) { checksum = SVNFileUtil.computeChecksum(dir.getBaseFile(name, false)); String realChecksum = entry.getChecksum(); if (realChecksum == null || !realChecksum.equals(checksum)) { SVNErrorManager.error("svn: Checksum mismatch for '" + dir.getFile(name, false) + "'; expected '" + realChecksum + "', actual: '" + checksum + "'"); } } editor.applyTextDelta(item.getPath(), checksum); boolean binary = dir.getProperties(name, false).getPropertyValue(SVNProperty.MIME_TYPE) != null || dir.getBaseProperties(name, false).getPropertyValue(SVNProperty.MIME_TYPE) != null; ISVNDeltaGenerator generator; if (item.isAdded() || binary) { generator = new SVNAllDeltaGenerator(); } else { generator = new SVNSequenceDeltaGenerator(); } SVNRAFileData base = new SVNRAFileData(dir.getBaseFile(name, false), true); SVNRAFileData work = new SVNRAFileData(tmpFile, true); try { generator.generateDiffWindow(item.getPath(), editor, work, base); } finally { try { base.close(); } catch (IOException e) { // } try { work.close(); } catch (IOException e) { // } } editor.closeFile(item.getPath(), newChecksum); } }
2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/8652477522afd3e177164facaa325d054978f0e3/SVNCommitter.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNCommitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 1528, 2837, 9158, 12, 5127, 58, 50, 6946, 4858, 13, 1216, 29537, 50, 503, 288, 3639, 364, 261, 3198, 2953, 273, 3399, 4575, 2697, 18, 856, 694, 7675, 9838, 5621, 2953, 18, 5332, 2134, 5621, 13, 288, 5411, 514, 589, 273, 261, 780, 13, 2953, 18, 4285, 5621, 5411, 29537, 50, 5580, 1180, 761, 273, 261, 23927, 50, 5580, 1180, 13, 3399, 4575, 2697, 18, 588, 12, 803, 1769, 5411, 29537, 50, 1133, 871, 273, 29537, 50, 1133, 1733, 18, 2640, 5580, 1133, 12, 4811, 59, 39, 1862, 18, 588, 11605, 7675, 588, 2375, 9334, 761, 18, 29925, 9334, 7734, 29537, 50, 1133, 1803, 18, 18658, 67, 24733, 9833, 67, 17418, 16, 29537, 50, 907, 5677, 18, 3776, 16, 446, 1769, 5411, 3399, 59, 39, 1862, 18, 31505, 1133, 12, 2575, 16, 4437, 58, 50, 7375, 18, 14737, 1769, 5411, 29537, 50, 2853, 1577, 273, 3399, 59, 39, 1862, 18, 588, 2853, 12, 743, 1304, 18, 4479, 12363, 12, 1726, 18, 588, 743, 1435, 10019, 5411, 514, 508, 273, 2666, 1304, 18, 13101, 12, 1726, 18, 588, 743, 10663, 5411, 29537, 50, 1622, 1241, 273, 1577, 18, 588, 5400, 7675, 588, 1622, 12, 529, 16, 629, 1769, 5411, 1387, 18504, 273, 1577, 18, 588, 2171, 812, 12, 529, 16, 638, 1769, 5411, 3399, 9161, 2697, 18, 1289, 12, 5645, 812, 1769, 5411, 29537, 50, 12233, 18, 13929, 12, 1214, 16, 508, 16, 508, 16, 29537, 50, 812, 1304, 18, 588, 15912, 12, 5645, 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, 1366, 1528, 2837, 9158, 12, 5127, 58, 50, 6946, 4858, 13, 1216, 29537, 50, 503, 288, 3639, 364, 261, 3198, 2953, 273, 3399, 4575, 2697, 18, 856, 694, 7675, 9838, 5621, 2953, 18, 5332, 2134, 5621, 13, 288, 5411, 514, 589, 273, 261, 780, 13, 2953, 18, 4285, 5621, 5411, 29537, 50, 5580, 1180, 761, 273, 261, 23927, 50, 5580, 1180, 13, 3399, 4575, 2697, 18, 588, 12, 803, 1769, 5411, 29537, 50, 1133, 871, 273, 29537, 50, 1133, 1733, 18, 2640, 5580, 1133, 12, 4811, 59, 39, 1862, 18, 588, 11605, 7675, 588, 2375, 9334, 761, 18, 29925, 9334, 7734, 29537, 50, 1133, 1803, 18, 18658, 67, 24733, 9833, 67, 17418, 16, 29537, 50, 907, 2 ]
assertEquals("\\{Escaped", result);
assertEquals("{Escaped", result);
public void test1Param() { String result; Integer i3 = new Integer(3); result = MessageFormatter.format("Value is {}.", i3); assertEquals("Value is 3.", result); result = MessageFormatter.format("Value is {", i3); assertEquals("Value is {", result); result = MessageFormatter.format("Value is {}.", null); assertEquals("Value is null.", result); result = MessageFormatter.format("{} is larger than 2.", i3); assertEquals("3 is larger than 2.", result); result = MessageFormatter.format("No subst", i3); assertEquals("No subst", result); result = MessageFormatter.format("Incorrect {subst", i3); assertEquals("Incorrect {subst", result); result = MessageFormatter.format("Escaped \\{} subst", i3); assertEquals("Escaped \\{} subst", result); result = MessageFormatter.format("\\{Escaped", i3); assertEquals("\\{Escaped", result); result = MessageFormatter.format("\\{}Escaped", i3); assertEquals("\\{}Escaped", result); }
46216 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46216/c434d01b9a02807fbdb76fccc498078b8942c75e/MessageFormatterTest.java/clean/tests/src/java/org/slf4j/impl/MessageFormatterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 21, 786, 1435, 288, 565, 514, 563, 31, 565, 2144, 277, 23, 273, 394, 2144, 12, 23, 1769, 3639, 563, 273, 2350, 5074, 18, 2139, 2932, 620, 353, 20178, 16, 277, 23, 1769, 565, 1815, 8867, 2932, 620, 353, 890, 1199, 16, 563, 1769, 565, 563, 273, 2350, 5074, 18, 2139, 2932, 620, 353, 288, 3113, 277, 23, 1769, 565, 1815, 8867, 2932, 620, 353, 288, 3113, 563, 1769, 3639, 563, 273, 2350, 5074, 18, 2139, 2932, 620, 353, 20178, 16, 446, 1769, 565, 1815, 8867, 2932, 620, 353, 446, 1199, 16, 563, 1769, 565, 563, 273, 2350, 5074, 18, 2139, 2932, 2916, 353, 10974, 2353, 576, 1199, 16, 277, 23, 1769, 565, 1815, 8867, 2932, 23, 353, 10974, 2353, 576, 1199, 16, 563, 1769, 565, 563, 273, 2350, 5074, 18, 2139, 2932, 2279, 27750, 3113, 277, 23, 1769, 565, 1815, 8867, 2932, 2279, 27750, 3113, 563, 1769, 3639, 563, 273, 2350, 5074, 18, 2139, 2932, 16268, 288, 1717, 334, 3113, 277, 23, 1769, 565, 1815, 8867, 2932, 16268, 288, 1717, 334, 3113, 563, 1769, 3639, 563, 273, 2350, 5074, 18, 2139, 2932, 17208, 1736, 2916, 27750, 3113, 277, 23, 1769, 565, 1815, 8867, 2932, 17208, 1736, 2916, 27750, 3113, 563, 1769, 565, 563, 273, 2350, 5074, 18, 2139, 2932, 1695, 95, 17208, 3113, 277, 23, 1769, 565, 1815, 8867, 2932, 95, 17208, 3113, 563, 1769, 565, 563, 273, 2350, 5074, 18, 2139, 2932, 1695, 2916, 17208, 3113, 277, 23, 1769, 565, 1815, 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, 1842, 21, 786, 1435, 288, 565, 514, 563, 31, 565, 2144, 277, 23, 273, 394, 2144, 12, 23, 1769, 3639, 563, 273, 2350, 5074, 18, 2139, 2932, 620, 353, 20178, 16, 277, 23, 1769, 565, 1815, 8867, 2932, 620, 353, 890, 1199, 16, 563, 1769, 565, 563, 273, 2350, 5074, 18, 2139, 2932, 620, 353, 288, 3113, 277, 23, 1769, 565, 1815, 8867, 2932, 620, 353, 288, 3113, 563, 1769, 3639, 563, 273, 2350, 5074, 18, 2139, 2932, 620, 353, 20178, 16, 446, 1769, 565, 1815, 8867, 2932, 620, 353, 446, 1199, 16, 563, 1769, 565, 563, 273, 2350, 5074, 18, 2139, 2932, 2916, 353, 10974, 2353, 576, 1199, 16, 277, 23, 1769, 565, 1815, 8867, 2 ]
private ValidationError errMsg(final ValidationError validationError) { Assert.isTrue(partialValidationErrorObservable.getRealm().equals(validationErrorObservable.getRealm()));
private IStatus errMsg(final IStatus validationStatus) { Assert.isTrue(partialValidationErrorObservable.getRealm().equals( validationErrorObservable.getRealm()));
private ValidationError errMsg(final ValidationError validationError) { Assert.isTrue(partialValidationErrorObservable.getRealm().equals(validationErrorObservable.getRealm())); partialValidationErrorObservable.getRealm().exec(new Runnable() { public void run() { partialValidationErrorObservable.setValue(null); validationErrorObservable.setValue(validationError); } }); return validationError; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/646de6c1228ca0820a97e225df84d75e3993e272/ValueBinding.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/internal/databinding/ValueBinding.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 13167, 12412, 12, 6385, 13167, 3379, 668, 13, 288, 202, 202, 8213, 18, 291, 5510, 12, 11601, 12101, 15279, 18, 588, 22545, 7675, 14963, 12, 8685, 668, 15279, 18, 588, 22545, 1435, 10019, 202, 202, 11601, 12101, 15279, 18, 588, 22545, 7675, 4177, 12, 2704, 10254, 1435, 288, 1082, 202, 482, 918, 1086, 1435, 288, 9506, 202, 11601, 12101, 15279, 18, 542, 620, 12, 2011, 1769, 9506, 202, 8685, 668, 15279, 18, 542, 620, 12, 8685, 668, 1769, 1082, 202, 97, 202, 202, 22938, 202, 202, 2463, 3379, 668, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 13167, 12412, 12, 6385, 13167, 3379, 668, 13, 288, 202, 202, 8213, 18, 291, 5510, 12, 11601, 12101, 15279, 18, 588, 22545, 7675, 14963, 12, 8685, 668, 15279, 18, 588, 22545, 1435, 10019, 202, 202, 11601, 12101, 15279, 18, 588, 22545, 7675, 4177, 12, 2704, 10254, 1435, 288, 1082, 202, 482, 918, 1086, 1435, 288, 9506, 202, 11601, 12101, 15279, 18, 542, 620, 12, 2011, 1769, 9506, 202, 8685, 668, 15279, 18, 542, 620, 12, 8685, 668, 1769, 1082, 202, 97, 202, 202, 22938, 202, 202, 2463, 3379, 668, 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 ]
if(!StringUtils.isEmpty(pathInfo)) { path = StringUtils.split(pathInfo, '/');
if(pathInfo != null) { if(pathInfo.startsWith("/")) pathInfo = pathInfo.substring(1); int slash = pathInfo.indexOf("/"); if(slash > -1) { handle = pathInfo.substring(0,slash); pathInfo = pathInfo.substring(slash+1); } if(pathInfo.indexOf("/") > -1) { response.sendError(HttpServletResponse.SC_BAD_REQUEST, "Malformed URL: unncessary slash."); return; } if(pathInfo.length() > 0) prefix = pathInfo;
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int limit = MAX_LENGTH; try { limit = Integer.parseInt(request.getParameter("limit")); } catch (Throwable ignored) {} String pathInfo = request.getPathInfo(); String[] path = new String[0]; if(!StringUtils.isEmpty(pathInfo)) { path = StringUtils.split(pathInfo, '/'); } Roller roller = RollerFactory.getRoller(); try { response.setContentType("text/html; charset=utf-8"); WeblogManager wmgr = roller.getWeblogManager(); WebsiteData website = null; String startsWith = null; // website handle is always the first path segment, // only throw an exception when not found if we have a tag prefix if(path.length > 0) { try { UserManager umgr = RollerFactory.getRoller().getUserManager(); website = umgr.getWebsiteByHandle(path[0], Boolean.TRUE); if (website == null && path.length > 1) throw new RollerException(); } catch (RollerException ex) { response.sendError(HttpServletResponse.SC_NOT_FOUND, "Weblog handle not found."); return; } } if(path.length == 2) { startsWith = path[1].trim(); } else if(path.length == 1 && website == null) { startsWith = path[0].trim(); } List tags = wmgr.getTags(website, null, startsWith, limit); response.getWriter().println("{"); response.getWriter().print(" prefix : \""); response.getWriter().print(startsWith == null ? "" : startsWith); response.getWriter().println("\","); response.getWriter().print(" weblog : \""); response.getWriter().print(website != null ? website.getHandle() : ""); response.getWriter().println("\","); response.getWriter().println(" tagcounts : ["); for(Iterator it = tags.iterator(); it.hasNext();) { TagStat stat = (TagStat) it.next(); response.getWriter().print(" { tag : \""); response.getWriter().print(stat.getName()); response.getWriter().print("\", "); response.getWriter().print("count : "); response.getWriter().print(stat.getCount()); response.getWriter().print(" }"); if(it.hasNext()) response.getWriter().println(", "); } response.getWriter().println("\n ]\n}"); response.flushBuffer(); } catch (RollerException e) { throw new ServletException(e.getMessage()); } }
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/14b28b1942e203ec021b2c6bbb2490d2dec41ca7/TagStatsServlet.java/clean/src/org/apache/roller/webservices/json/TagStatsServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 5411, 1216, 16517, 16, 1860, 288, 10792, 509, 1800, 273, 4552, 67, 7096, 31, 9079, 775, 288, 2398, 1800, 273, 2144, 18, 2670, 1702, 12, 2293, 18, 588, 1662, 2932, 3595, 7923, 1769, 3639, 289, 1044, 261, 15155, 5455, 13, 2618, 7734, 514, 17058, 273, 590, 18, 588, 743, 966, 5621, 3639, 514, 8526, 589, 273, 394, 514, 63, 20, 15533, 7734, 309, 12, 5, 780, 1989, 18, 291, 1921, 12, 803, 966, 3719, 288, 5411, 589, 273, 5778, 18, 4939, 12, 803, 966, 16, 2023, 1769, 3639, 289, 4766, 7734, 11714, 749, 10643, 749, 273, 11714, 749, 1733, 18, 588, 4984, 749, 5621, 3639, 775, 288, 5411, 766, 18, 542, 8046, 2932, 955, 19, 2620, 31, 4856, 33, 3158, 17, 28, 8863, 13491, 2999, 1330, 1318, 341, 13552, 273, 10643, 749, 18, 588, 4079, 1330, 1318, 5621, 5411, 1660, 12343, 751, 12504, 273, 446, 31, 5411, 514, 4969, 273, 446, 31, 4766, 565, 368, 12504, 1640, 353, 3712, 326, 1122, 589, 3267, 16, 5411, 368, 1338, 604, 392, 1520, 1347, 486, 1392, 309, 732, 1240, 279, 1047, 1633, 2398, 309, 12, 803, 18, 2469, 405, 374, 13, 288, 7734, 775, 288, 10792, 2177, 1318, 9570, 3197, 273, 11714, 749, 1733, 18, 588, 4984, 749, 7675, 588, 1299, 1318, 5621, 10792, 12504, 273, 9570, 3197, 18, 588, 19186, 858, 3259, 12, 803, 63, 20, 6487, 3411, 18, 18724, 1769, 10792, 309, 261, 21868, 422, 446, 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, 23611, 12, 2940, 18572, 590, 16, 12446, 766, 13, 5411, 1216, 16517, 16, 1860, 288, 10792, 509, 1800, 273, 4552, 67, 7096, 31, 9079, 775, 288, 2398, 1800, 273, 2144, 18, 2670, 1702, 12, 2293, 18, 588, 1662, 2932, 3595, 7923, 1769, 3639, 289, 1044, 261, 15155, 5455, 13, 2618, 7734, 514, 17058, 273, 590, 18, 588, 743, 966, 5621, 3639, 514, 8526, 589, 273, 394, 514, 63, 20, 15533, 7734, 309, 12, 5, 780, 1989, 18, 291, 1921, 12, 803, 966, 3719, 288, 5411, 589, 273, 5778, 18, 4939, 12, 803, 966, 16, 2023, 1769, 3639, 289, 4766, 7734, 11714, 749, 10643, 749, 273, 11714, 749, 1733, 18, 588, 4984, 749, 5621, 3639, 775, 288, 2 ]
byte[] message = new byte[in.available()]; in.read(message);
public void finalizeSendWithToAddress(MessageContext msgContext, Writer writer) throws AxisFault { try { TransportOutDescription transportOut = msgContext.getTransportOut(); user = Utils.getParameterValue(transportOut.getParameter(MailConstants.SMTP_USER)); host = Utils.getParameterValue(transportOut.getParameter(MailConstants.SMTP_HOST)); password = Utils.getParameterValue(transportOut.getParameter(MailConstants.SMTP_PASSWORD)); smtpPort = Utils.getParameterValue(transportOut.getParameter(MailConstants.SMTP_PORT)); if (user != null && host != null && password != null && smtpPort != null) { EMailSender sender = new EMailSender(user, host, smtpPort, password); //TODO this is just a temporary hack, fix this to use input streams byte[] message = new byte[in.available()]; in.read(message); String eprAddress = msgContext.getTo().getAddress(); int index = eprAddress.indexOf('/'); String subject = ""; String email = null; if(index > 0){ subject = eprAddress.substring(index+1); email = eprAddress.substring(0,index); } System.out.println(subject); System.out.println(email); sender.send(subject, email, new String(message)); } else { throw new AxisFault( "user, port, host or password not set, " + " [user null = " + (user == null) + ", password null= " + (password == null) + ", host null " + (host == null) + ",port null " + (smtpPort == null)); } } catch (IOException e) { throw new AxisFault(e); } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/f02723be8e8fd8b61634eb80f2f92f5cca4373a8/MailTransportSender.java/buggy/modules/core/src/org/apache/axis/transport/mail/MailTransportSender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12409, 3826, 1190, 774, 1887, 12, 1079, 1042, 1234, 1042, 16, 5497, 2633, 13, 3639, 1216, 15509, 7083, 288, 5411, 775, 288, 7734, 9514, 1182, 3291, 4736, 1182, 273, 1234, 1042, 18, 588, 6568, 1182, 5621, 7734, 729, 273, 6091, 18, 588, 29655, 12, 13049, 1182, 18, 588, 1662, 12, 6759, 2918, 18, 55, 14636, 67, 4714, 10019, 7734, 1479, 273, 6091, 18, 588, 29655, 12, 13049, 1182, 18, 588, 1662, 12, 6759, 2918, 18, 55, 14636, 67, 8908, 10019, 7734, 2201, 273, 10792, 6091, 18, 588, 29655, 12, 13049, 1182, 18, 588, 1662, 12, 6759, 2918, 18, 55, 14636, 67, 13784, 10019, 7734, 17660, 2617, 273, 6091, 18, 588, 29655, 12, 13049, 1182, 18, 588, 1662, 12, 6759, 2918, 18, 55, 14636, 67, 6354, 10019, 7734, 309, 261, 1355, 480, 446, 597, 1479, 480, 446, 597, 2201, 480, 446, 597, 17660, 2617, 480, 446, 13, 288, 10792, 512, 6759, 12021, 5793, 273, 394, 512, 6759, 12021, 12, 1355, 16, 1479, 16, 17660, 2617, 16, 2201, 1769, 10792, 368, 6241, 333, 353, 2537, 279, 6269, 11769, 16, 2917, 333, 358, 999, 810, 8205, 4766, 13491, 1160, 8526, 883, 273, 394, 1160, 63, 267, 18, 5699, 1435, 15533, 10792, 316, 18, 896, 12, 2150, 1769, 4766, 565, 514, 425, 683, 1887, 273, 1234, 1042, 18, 588, 774, 7675, 588, 1887, 5621, 10792, 509, 770, 273, 425, 683, 1887, 18, 31806, 2668, 2473, 1769, 10792, 514, 3221, 273, 1408, 31, 10792, 514, 2699, 273, 446, 31, 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, 12409, 3826, 1190, 774, 1887, 12, 1079, 1042, 1234, 1042, 16, 5497, 2633, 13, 3639, 1216, 15509, 7083, 288, 5411, 775, 288, 7734, 9514, 1182, 3291, 4736, 1182, 273, 1234, 1042, 18, 588, 6568, 1182, 5621, 7734, 729, 273, 6091, 18, 588, 29655, 12, 13049, 1182, 18, 588, 1662, 12, 6759, 2918, 18, 55, 14636, 67, 4714, 10019, 7734, 1479, 273, 6091, 18, 588, 29655, 12, 13049, 1182, 18, 588, 1662, 12, 6759, 2918, 18, 55, 14636, 67, 8908, 10019, 7734, 2201, 273, 10792, 6091, 18, 588, 29655, 12, 13049, 1182, 18, 588, 1662, 12, 6759, 2918, 18, 55, 14636, 67, 13784, 10019, 7734, 17660, 2617, 273, 6091, 18, 588, 29655, 12, 13049, 1182, 18, 588, 2 ]
gen.addMethodGen(mg);
gen.addMethodGen(mg,getSignature().getSourceLocation());
private void addFieldSetter( LazyClassGen gen, ResolvedMember field, ResolvedMember accessMethod) { LazyMethodGen mg = makeMethodGen(gen, accessMethod); InstructionList il = new InstructionList(); InstructionFactory fact = gen.getFactory(); Type fieldType = BcelWorld.makeBcelType(field.getType()); if (field.isStatic()) { il.append(InstructionFactory.createLoad(fieldType, 0)); il.append(fact.createFieldAccess( gen.getClassName(), field.getName(), fieldType, Constants.PUTSTATIC)); } else { il.append(InstructionConstants.ALOAD_0); il.append(InstructionFactory.createLoad(fieldType, 1)); il.append(fact.createFieldAccess( gen.getClassName(), field.getName(), fieldType, Constants.PUTFIELD)); } il.append(InstructionFactory.createReturn(Type.VOID)); mg.getBody().insert(il); gen.addMethodGen(mg); }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/40de354443cd1d88cf533d10f77608d1b0cbfecf/BcelTypeMunger.java/clean/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 11742, 8465, 12, 202, 202, 14443, 797, 7642, 3157, 16, 202, 202, 12793, 4419, 652, 16, 202, 202, 12793, 4419, 2006, 1305, 13, 202, 95, 202, 202, 14443, 1305, 7642, 11174, 273, 1221, 1305, 7642, 12, 4507, 16, 2006, 1305, 1769, 202, 202, 11983, 682, 14254, 273, 394, 24605, 682, 5621, 202, 202, 11983, 1733, 5410, 273, 3157, 18, 588, 1733, 5621, 202, 202, 559, 9596, 273, 605, 2183, 18071, 18, 6540, 38, 2183, 559, 12, 1518, 18, 588, 559, 10663, 9506, 202, 430, 261, 1518, 18, 291, 5788, 10756, 288, 1082, 202, 330, 18, 6923, 12, 11983, 1733, 18, 2640, 2563, 12, 1518, 559, 16, 374, 10019, 1082, 202, 330, 18, 6923, 12, 3493, 18, 2640, 974, 1862, 12, 9506, 202, 4507, 18, 588, 3834, 9334, 4697, 202, 1518, 18, 17994, 9334, 9506, 202, 1518, 559, 16, 5245, 18, 4762, 22741, 10019, 202, 202, 97, 469, 288, 1082, 202, 330, 18, 6923, 12, 11983, 2918, 18, 1013, 51, 1880, 67, 20, 1769, 1082, 202, 330, 18, 6923, 12, 11983, 1733, 18, 2640, 2563, 12, 1518, 559, 16, 404, 10019, 1082, 202, 330, 18, 6923, 12, 3493, 18, 2640, 974, 1862, 12, 9506, 202, 4507, 18, 588, 3834, 9334, 4697, 202, 1518, 18, 17994, 9334, 9506, 202, 1518, 559, 16, 5245, 18, 4762, 6776, 10019, 202, 202, 97, 202, 202, 330, 18, 6923, 12, 11983, 1733, 18, 2640, 990, 12, 559, 18, 58, 12945, 10019, 202, 202, 81, 75, 18, 588, 2250, 7675, 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, 11742, 8465, 12, 202, 202, 14443, 797, 7642, 3157, 16, 202, 202, 12793, 4419, 652, 16, 202, 202, 12793, 4419, 2006, 1305, 13, 202, 95, 202, 202, 14443, 1305, 7642, 11174, 273, 1221, 1305, 7642, 12, 4507, 16, 2006, 1305, 1769, 202, 202, 11983, 682, 14254, 273, 394, 24605, 682, 5621, 202, 202, 11983, 1733, 5410, 273, 3157, 18, 588, 1733, 5621, 202, 202, 559, 9596, 273, 605, 2183, 18071, 18, 6540, 38, 2183, 559, 12, 1518, 18, 588, 559, 10663, 9506, 202, 430, 261, 1518, 18, 291, 5788, 10756, 288, 1082, 202, 330, 18, 6923, 12, 11983, 1733, 18, 2640, 2563, 12, 1518, 559, 16, 374, 10019, 1082, 202, 330, 18, 6923, 12, 3493, 2 ]
Method[] all = FunctionObject.getMethodList(getClass()); getter = FunctionObject.findMethods(all, "getProperty")[0]; setter = FunctionObject.findMethods(all, "setProperty")[0];
Method[] methods = FunctionObject.getMethodList(getClass()); getter = FunctionObject.findSingleMethod(methods, "getProperty"); setter = FunctionObject.findSingleMethod(methods, "setProperty");
public LazilyLoadedCtor(ScriptableObject scope, String ctorName, String className, boolean sealed) { this.className = className; this.ctorName = ctorName; this.sealed = sealed; if (getter == null) { Method[] all = FunctionObject.getMethodList(getClass()); getter = FunctionObject.findMethods(all, "getProperty")[0]; setter = FunctionObject.findMethods(all, "setProperty")[0]; } try { scope.defineProperty(ctorName, this, getter, setter, ScriptableObject.DONTENUM); } catch (PropertyException e) { throw WrappedException.wrapException(e); } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/d8fc5c127a0f95540affd7bed7956a8113c768f6/LazilyLoadedCtor.java/buggy/js/rhino/src/org/mozilla/javascript/LazilyLoadedCtor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 511, 20811, 8835, 27425, 12, 3651, 429, 921, 2146, 16, 5397, 514, 15120, 461, 16, 514, 2658, 16, 1250, 695, 18931, 13, 565, 288, 3639, 333, 18, 12434, 273, 2658, 31, 3639, 333, 18, 30206, 461, 273, 15120, 461, 31, 3639, 333, 18, 307, 18931, 273, 695, 18931, 31, 3639, 309, 261, 11990, 422, 446, 13, 288, 5411, 2985, 8526, 777, 273, 4284, 921, 18, 588, 1305, 682, 12, 588, 797, 10663, 5411, 7060, 273, 4284, 921, 18, 4720, 4712, 12, 454, 16, 315, 588, 1396, 7923, 63, 20, 15533, 5411, 7794, 273, 4284, 921, 18, 4720, 4712, 12, 454, 16, 315, 542, 1396, 7923, 63, 20, 15533, 3639, 289, 3639, 775, 288, 5411, 2146, 18, 11255, 1396, 12, 30206, 461, 16, 333, 16, 7060, 16, 7794, 16, 4766, 22780, 921, 18, 40, 10079, 16509, 1769, 3639, 289, 3639, 1044, 261, 1396, 503, 425, 13, 288, 5411, 604, 24506, 503, 18, 4113, 503, 12, 73, 1769, 3639, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 511, 20811, 8835, 27425, 12, 3651, 429, 921, 2146, 16, 5397, 514, 15120, 461, 16, 514, 2658, 16, 1250, 695, 18931, 13, 565, 288, 3639, 333, 18, 12434, 273, 2658, 31, 3639, 333, 18, 30206, 461, 273, 15120, 461, 31, 3639, 333, 18, 307, 18931, 273, 695, 18931, 31, 3639, 309, 261, 11990, 422, 446, 13, 288, 5411, 2985, 8526, 777, 273, 4284, 921, 18, 588, 1305, 682, 12, 588, 797, 10663, 5411, 7060, 273, 4284, 921, 18, 4720, 4712, 12, 454, 16, 315, 588, 1396, 7923, 63, 20, 15533, 5411, 7794, 273, 4284, 921, 18, 4720, 4712, 12, 454, 16, 315, 542, 1396, 7923, 63, 20, 15533, 3639, 289, 3639, 775, 288, 5411, 2146, 18, 11255, 2 ]
Boolean isMasterPageContent = ( Boolean ) renderOptions
Boolean isMasterPageContent = (Boolean) renderOptions
public ByteArrayOutputStream getPage( String docName, String pageID, InputOptions renderOptions, List activeIds ) throws ReportServiceException { IReportDocument doc = ReportEngineService.getInstance( ) .openReportDocument( docName ); HttpServletRequest request = ( HttpServletRequest ) renderOptions .getOption( InputOptions.OPT_REQUEST ); Locale locale = ( Locale ) renderOptions .getOption( InputOptions.OPT_LOCALE ); Boolean isMasterPageContent = ( Boolean ) renderOptions .getOption( InputOptions.OPT_IS_MASTER_PAGE_CONTENT ); Boolean svgFlag = ( Boolean ) renderOptions .getOption( InputOptions.OPT_IS_MASTER_PAGE_CONTENT ); Long pageNum = Long.valueOf( pageID ); try { return ReportEngineService.getInstance( ).renderReport( request, doc, pageNum.longValue( ), isMasterPageContent.booleanValue( ), svgFlag.booleanValue( ), activeIds, locale ); } catch ( RemoteException e ) { throw new ReportServiceException( e.getLocalizedMessage( ) ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4f2d0a24ff9ec8881defea107bb54374df18cb9c/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, 482, 11559, 8957, 12, 514, 997, 461, 16, 514, 1363, 734, 16, 1082, 202, 1210, 1320, 1743, 1320, 16, 987, 2695, 2673, 262, 1082, 202, 15069, 8706, 15133, 202, 95, 202, 202, 45, 4820, 2519, 997, 273, 8706, 4410, 1179, 18, 588, 1442, 12, 262, 9506, 202, 18, 3190, 4820, 2519, 12, 997, 461, 11272, 202, 202, 2940, 18572, 590, 273, 261, 9984, 262, 1743, 1320, 9506, 202, 18, 588, 1895, 12, 2741, 1320, 18, 15620, 67, 5519, 11272, 202, 202, 3916, 2573, 273, 261, 6458, 262, 1743, 1320, 9506, 202, 18, 588, 1895, 12, 2741, 1320, 18, 15620, 67, 25368, 11272, 202, 202, 5507, 353, 7786, 1964, 1350, 273, 261, 3411, 262, 1743, 1320, 9506, 202, 18, 588, 1895, 12, 2741, 1320, 18, 15620, 67, 5127, 67, 28045, 67, 11219, 67, 9689, 11272, 202, 202, 5507, 9804, 4678, 273, 261, 3411, 262, 1743, 1320, 9506, 202, 18, 588, 1895, 12, 2741, 1320, 18, 15620, 67, 5127, 67, 28045, 67, 11219, 67, 9689, 11272, 202, 202, 3708, 13883, 273, 3407, 18, 1132, 951, 12, 1363, 734, 11272, 202, 202, 698, 202, 202, 95, 1082, 202, 2463, 8706, 4410, 1179, 18, 588, 1442, 12, 262, 18, 5902, 4820, 12, 590, 16, 6862, 202, 2434, 16, 13883, 18, 5748, 620, 12, 262, 16, 6862, 202, 291, 7786, 1964, 1350, 18, 6494, 620, 12, 262, 16, 6862, 202, 11451, 4678, 18, 6494, 620, 12, 262, 16, 2695, 2673, 16, 2573, 11272, 202, 202, 97, 202, 202, 14683, 261, 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, 11559, 8957, 12, 514, 997, 461, 16, 514, 1363, 734, 16, 1082, 202, 1210, 1320, 1743, 1320, 16, 987, 2695, 2673, 262, 1082, 202, 15069, 8706, 15133, 202, 95, 202, 202, 45, 4820, 2519, 997, 273, 8706, 4410, 1179, 18, 588, 1442, 12, 262, 9506, 202, 18, 3190, 4820, 2519, 12, 997, 461, 11272, 202, 202, 2940, 18572, 590, 273, 261, 9984, 262, 1743, 1320, 9506, 202, 18, 588, 1895, 12, 2741, 1320, 18, 15620, 67, 5519, 11272, 202, 202, 3916, 2573, 273, 261, 6458, 262, 1743, 1320, 9506, 202, 18, 588, 1895, 12, 2741, 1320, 18, 15620, 67, 25368, 11272, 202, 202, 5507, 353, 7786, 1964, 1350, 273, 261, 3411, 262, 1743, 1320, 9506, 202, 2 ]
String path = ResourceUtil.getResourcePath(THtmlGrid.class.getName(), "js");
final String path = ResourceUtil.getResourcePath(THtmlGrid.class .getName(), "js");
protected void encodeHtmlGridPrepare(final FacesContext context, final THtmlGrid htmlGrid) throws IOException { String path = ResourceUtil.getResourcePath(THtmlGrid.class.getName(), "js"); VirtualResource.addJSResource(context, path); }
48238 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48238/ebbe380ea554dad4adc50edd9086ba2e606990c5/THtmlGridRenderer.java/clean/teeda/teeda-extension/src/main/java/org/seasar/teeda/extension/render/html/THtmlGridRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 2017, 4353, 6313, 7543, 12, 6385, 20306, 819, 16, 5411, 727, 399, 4353, 6313, 1729, 6313, 13, 1216, 1860, 288, 3639, 514, 589, 273, 2591, 1304, 18, 588, 29906, 12, 2455, 1419, 6313, 18, 1106, 18, 17994, 9334, 7734, 315, 2924, 8863, 3639, 7269, 1420, 18, 1289, 6479, 1420, 12, 2472, 16, 589, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 4750, 918, 2017, 4353, 6313, 7543, 12, 6385, 20306, 819, 16, 5411, 727, 399, 4353, 6313, 1729, 6313, 13, 1216, 1860, 288, 3639, 514, 589, 273, 2591, 1304, 18, 588, 29906, 12, 2455, 1419, 6313, 18, 1106, 18, 17994, 9334, 7734, 315, 2924, 8863, 3639, 7269, 1420, 18, 1289, 6479, 1420, 12, 2472, 16, 589, 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 ]
i = mimeType.indexOf("html");
int i = mimeType.indexOf("html");
public ClientImpl(HttpServletRequest req) { // get the user-agent string containg client browser information userAgent = req.getHeader("user-agent"); //System.err.println("User-agent: " + userAgent); // parse it! // below are Mac OS X // Netscape 6.2: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:0.9.4.1) Gecko/20020315 Netscape6/6.2.2 // Netscape 7.0: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 // IE 5.2: Mozilla/4.0 (compatible; MSIE 5.22; Mac_PowerPC) // Mozilla 1.0: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20020826 // Opera 6.0b2: Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC) Opera 6.0 [en] int i = userAgent.indexOf(" "); //System.err.println("mozilla version: " + mozillaVersion); int j = userAgent.lastIndexOf(")"); String browserInfo = "Unknown browser"; if (j >= 0) { browserInfo = userAgent.substring(j + 1).trim(); } //System.err.println("browser info: " + browserInfo); mimeType = req.getHeader("accept"); //System.err.println("MIME types: " + mimeTypes); // Netscape 6.2: text/xml, application/xml, application/xhtml+xml, text/html;q=0.9, image/png, image/jpeg, image/gif;q=0.2, text/plain;q=0.8, text/css, */*;q=0.1 // IE 5.2: */* // Mozilla 1.0: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1 // Opera 6.0b2: text/html, image/png, image/jpeg, image/gif, image/x-xbitmap, */* // get manufacturer if (browserInfo.startsWith("Opera")) { manufacturer = MANUFACTURER_NAMES[0]; } else if (browserInfo.startsWith("Gecko")) { i = browserInfo.indexOf(" "); if (i > 0) { if (browserInfo.substring(i).trim().startsWith("Netscape")) { manufacturer = MANUFACTURER_NAMES[1]; } else { manufacturer = MANUFACTURER_NAMES[2]; } } else { manufacturer = MANUFACTURER_NAMES[2]; } } else { manufacturer = MANUFACTURER_NAMES[3]; } i = mimeType.indexOf("html"); if (i < 0) { // IE 5.2 on Mac OS X if (mimeType.equals("*/*")) { mimeType = MIME_TYPES[0]; markupName = MARKUP_TYPES[0]; } } else { mimeType = MIME_TYPES[0]; markupName = MARKUP_TYPES[0]; } // make up version for now version = "1.0"; // make up model for now model = "gridsphere model"; //logRequest(req); }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/2191467407af6a4013bc5a3a317876f087587aed/ClientImpl.java/buggy/src/org/gridlab/gridsphere/portlet/impl/ClientImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 2828, 12, 2940, 18572, 1111, 13, 288, 3639, 368, 336, 326, 729, 17, 5629, 533, 466, 69, 310, 1004, 4748, 1779, 3639, 7574, 273, 1111, 18, 588, 1864, 2932, 1355, 17, 5629, 8863, 3639, 368, 3163, 18, 370, 18, 8222, 2932, 1299, 17, 5629, 30, 315, 397, 7574, 1769, 3639, 368, 1109, 518, 5, 3639, 368, 5712, 854, 13217, 5932, 1139, 3639, 368, 8503, 12476, 1666, 18, 22, 30, 19058, 10745, 19, 25, 18, 20, 261, 9990, 474, 17636, 31, 587, 31, 453, 3513, 13217, 5932, 1139, 31, 570, 17, 3378, 31, 5633, 30, 20, 18, 29, 18, 24, 18, 21, 13, 611, 31319, 19, 6976, 3462, 23, 3600, 8503, 12476, 26, 19, 26, 18, 22, 18, 22, 3639, 368, 8503, 12476, 2371, 18, 20, 30, 19058, 10745, 19, 25, 18, 20, 261, 9990, 474, 17636, 31, 587, 31, 453, 3513, 13217, 5932, 1139, 31, 570, 17, 3378, 31, 5633, 30, 21, 18, 20, 18, 21, 13, 611, 31319, 19, 6976, 26825, 4366, 8503, 12476, 19, 27, 18, 20, 3639, 368, 10897, 1381, 18, 22, 30, 4202, 19058, 10745, 19, 24, 18, 20, 261, 10943, 31, 490, 2320, 41, 1381, 18, 3787, 31, 13217, 67, 13788, 3513, 13, 3639, 368, 19058, 10745, 404, 18, 20, 30, 225, 19058, 10745, 19, 25, 18, 20, 261, 9990, 474, 17636, 31, 587, 31, 453, 3513, 13217, 5932, 1139, 31, 570, 17, 3378, 31, 5633, 30, 21, 18, 20, 18, 21, 13, 611, 31319, 19, 6976, 26825, 5558, 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, 2445, 2828, 12, 2940, 18572, 1111, 13, 288, 3639, 368, 336, 326, 729, 17, 5629, 533, 466, 69, 310, 1004, 4748, 1779, 3639, 7574, 273, 1111, 18, 588, 1864, 2932, 1355, 17, 5629, 8863, 3639, 368, 3163, 18, 370, 18, 8222, 2932, 1299, 17, 5629, 30, 315, 397, 7574, 1769, 3639, 368, 1109, 518, 5, 3639, 368, 5712, 854, 13217, 5932, 1139, 3639, 368, 8503, 12476, 1666, 18, 22, 30, 19058, 10745, 19, 25, 18, 20, 261, 9990, 474, 17636, 31, 587, 31, 453, 3513, 13217, 5932, 1139, 31, 570, 17, 3378, 31, 5633, 30, 20, 18, 29, 18, 24, 18, 21, 13, 611, 31319, 19, 6976, 3462, 23, 3600, 8503, 12476, 26, 19, 26, 18, 22, 2 ]
{
{
private int getDaysInMonth(int month, int year) { if (month == Calendar.FEBRUARY) { if ((year & 3) != 0) return 28; // Assume default Gregorian cutover, // all years prior to this must be Julian if (year < 1582) return 29; // Gregorian rules return ((year % 100) != 0 || (year % 400) == 0) ? 29 : 28; } else return monthArr[month]; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/f784d265492edba99cb694640b1ce8ae81542706/SimpleTimeZone.java/buggy/java/util/SimpleTimeZone.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 509, 2343, 8271, 382, 5445, 12, 474, 3138, 16, 509, 3286, 13, 225, 288, 565, 309, 261, 7496, 422, 5542, 18, 8090, 7192, 57, 6043, 13, 1377, 288, 202, 430, 14015, 6874, 473, 890, 13, 480, 374, 13, 202, 225, 327, 9131, 31, 202, 759, 15983, 805, 21913, 6391, 1643, 16, 225, 202, 759, 777, 11387, 6432, 358, 333, 1297, 506, 30294, 202, 430, 261, 6874, 411, 4711, 11149, 13, 202, 225, 327, 12899, 31, 202, 759, 21913, 2931, 225, 202, 2463, 14015, 6874, 738, 2130, 13, 480, 374, 747, 261, 6874, 738, 7409, 13, 422, 374, 13, 692, 12899, 294, 9131, 31, 1377, 289, 565, 469, 1377, 327, 3138, 5715, 63, 7496, 15533, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 509, 2343, 8271, 382, 5445, 12, 474, 3138, 16, 509, 3286, 13, 225, 288, 565, 309, 261, 7496, 422, 5542, 18, 8090, 7192, 57, 6043, 13, 1377, 288, 202, 430, 14015, 6874, 473, 890, 13, 480, 374, 13, 202, 225, 327, 9131, 31, 202, 759, 15983, 805, 21913, 6391, 1643, 16, 225, 202, 759, 777, 11387, 6432, 358, 333, 1297, 506, 30294, 202, 430, 261, 6874, 411, 4711, 11149, 13, 202, 225, 327, 12899, 31, 202, 759, 21913, 2931, 225, 202, 2463, 14015, 6874, 738, 2130, 13, 480, 374, 747, 261, 6874, 738, 7409, 13, 422, 374, 13, 692, 12899, 294, 9131, 31, 1377, 289, 565, 469, 1377, 327, 3138, 5715, 63, 7496, 15533, 225, 289, 2, -100 ]
public org.quickfix.field.NoInstrAttrib getNoInstrAttrib() throws FieldNotFound { org.quickfix.field.NoInstrAttrib value = new org.quickfix.field.NoInstrAttrib();
public quickfix.field.NoInstrAttrib getNoInstrAttrib() throws FieldNotFound { quickfix.field.NoInstrAttrib value = new quickfix.field.NoInstrAttrib();
public org.quickfix.field.NoInstrAttrib getNoInstrAttrib() throws FieldNotFound { org.quickfix.field.NoInstrAttrib value = new org.quickfix.field.NoInstrAttrib(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinitionRequest.java/clean/src/java/src/quickfix/fix44/SecurityDefinitionRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 382, 701, 12399, 336, 2279, 382, 701, 12399, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 382, 701, 12399, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 382, 701, 12399, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 382, 701, 12399, 336, 2279, 382, 701, 12399, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 382, 701, 12399, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 382, 701, 12399, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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 ]
System.out.println(key + ":" + value);
public void loadJar(File bundleJarFile, JarFile jarFile, String jarPath) { JarEntry bundleConfigFile = jarFile.getJarEntry("properties/bundle.pxml"); //JarEntry facesConfigFile = jarFile.getJarEntry("META-INF/faces-config.xml"); JarModule module = (JarModule)jarFile; if (bundleConfigFile != null) { if (log.isDebugEnabled()) { log.debug("bundle.pxml found in jar " + jarPath); } // InputStream stream = jarFile.getInputStream(configFile); // String systemId = "jar:" + tmp.toURL() + "!/" + // configFile.getName(); // if (log.isInfoEnabled()) log.info("Reading config " + systemId); // _dispenser.feed(_unmarshaller.getFacesConfig(stream, systemId)); // loadBundle(tmp,jarFile); // InputStream stream = jarFile.getInputStream(configFile); // String systemId = "jar:" + tmp.toURL() + "!/" + // configFile.getName(); // if (log.isInfoEnabled()) log.info("Reading config " + systemId); // _dispenser.feed(_unmarshaller.getFacesConfig(stream, systemId)); String bundleIdentifier = null; String version = null; String implementationVendor = null; // IWBundle bundle = new DefaultIWBundle(stream,jarPath,systemId); // System.out.println("Found idegaweb bundle in jar: "+jarPath+" and // systemId: "+systemId); try { Manifest mf = jarFile.getManifest(); Attributes attributes = mf.getMainAttributes(); Set keySet = attributes.keySet(); // Map entries = mf.getEntries(); // Set keySet = entries.keySet(); for (Iterator iter = keySet.iterator(); iter.hasNext();) { Object key = iter.next(); Object value = attributes.get(key); String sKey = key.toString(); String sValue = value.toString(); // String key = (String) iter.next(); // String value = (String) attributes.get(key); if (sKey.equals("Extension-Name")) { bundleIdentifier = sValue; } else if (sKey.equals("Implementation-Version")) { version = sValue; } else if (sKey.equals("Implementation-Vendor")) { implementationVendor = sValue; } System.out.println(key + ":" + value); } // bundleIdentifier = (String) entries.get("Extension-Name"); // version = (String) entries.get("Implementation-Version"); // implementationVendor = (String) // entries.get("Implementation-Vendor"); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } System.out.println("Found idegaweb bundle in jar: " + bundleJarFile); if (bundleIdentifier != null) { boolean alreadyLoaded = this.iwma.isBundleLoaded(bundleIdentifier); if(!alreadyLoaded){ IWBundle bundle = new JarLoadedIWBundle(module,this.iwma); if (version != null) { // bundle.setVersion(version); } if (implementationVendor != null) { // bundle.setImplementationVendor(implementatioVendor); } iwma.loadBundle(bundle); } } } }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/7ee3a1b0d740dd154a275c20142a517a8a7999c8/IWBundleLoader.java/buggy/src/java/com/idega/idegaweb/IWBundleLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 10813, 12, 812, 3440, 10813, 812, 16, 15644, 812, 22588, 16, 514, 7334, 743, 13, 288, 202, 202, 10813, 1622, 3440, 13705, 273, 22588, 18, 588, 10813, 1622, 2932, 4738, 19, 9991, 18, 84, 2902, 8863, 202, 202, 759, 10813, 1622, 11058, 13705, 273, 22588, 18, 588, 10813, 1622, 2932, 19294, 17, 19212, 19, 4601, 17, 1425, 18, 2902, 8863, 202, 202, 10813, 3120, 1605, 273, 261, 10813, 3120, 13, 11930, 812, 31, 202, 202, 430, 261, 9991, 13705, 480, 446, 13, 288, 1082, 202, 430, 261, 1330, 18, 291, 2829, 1526, 10756, 288, 9506, 202, 1330, 18, 4148, 2932, 9991, 18, 84, 2902, 1392, 316, 7334, 315, 397, 7334, 743, 1769, 1082, 202, 97, 1082, 202, 759, 5037, 1407, 273, 22588, 18, 588, 4348, 12, 1425, 812, 1769, 1082, 202, 759, 514, 30083, 273, 315, 11930, 2773, 397, 1853, 18, 869, 1785, 1435, 397, 17528, 4898, 397, 1082, 202, 759, 12247, 18, 17994, 5621, 1082, 202, 759, 309, 261, 1330, 18, 291, 966, 1526, 10756, 613, 18, 1376, 2932, 15714, 642, 315, 397, 30083, 1769, 1082, 202, 759, 389, 2251, 1907, 550, 18, 7848, 24899, 318, 27296, 18, 588, 17268, 809, 12, 3256, 16, 30083, 10019, 1082, 202, 759, 1262, 3405, 12, 5645, 16, 11930, 812, 1769, 1082, 202, 759, 5037, 1407, 273, 22588, 18, 588, 4348, 12, 1425, 812, 1769, 1082, 202, 759, 514, 30083, 273, 315, 11930, 2773, 397, 1853, 18, 869, 1785, 1435, 397, 17528, 4898, 397, 1082, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 10813, 12, 812, 3440, 10813, 812, 16, 15644, 812, 22588, 16, 514, 7334, 743, 13, 288, 202, 202, 10813, 1622, 3440, 13705, 273, 22588, 18, 588, 10813, 1622, 2932, 4738, 19, 9991, 18, 84, 2902, 8863, 202, 202, 759, 10813, 1622, 11058, 13705, 273, 22588, 18, 588, 10813, 1622, 2932, 19294, 17, 19212, 19, 4601, 17, 1425, 18, 2902, 8863, 202, 202, 10813, 3120, 1605, 273, 261, 10813, 3120, 13, 11930, 812, 31, 202, 202, 430, 261, 9991, 13705, 480, 446, 13, 288, 1082, 202, 430, 261, 1330, 18, 291, 2829, 1526, 10756, 288, 9506, 202, 1330, 18, 4148, 2932, 9991, 18, 84, 2902, 1392, 316, 7334, 315, 397, 7334, 743, 1769, 1082, 202, 2 ]
protected String format(LocoNetMessage l) { boolean showStatus = false; /* show track status in this message? */ int minutes; // temporary time values int hours; switch (l.getOpCode()) { /*************************** * ; 2 Byte MESSAGE OPCODES * * ; FORMAT = <OPC>,<CKSUM> * * ; * ***************************/ /************************************************* * OPC_BUSY 0x81 ;MASTER busy code, NUL * *************************************************/ case LnConstants.OPC_GPBUSY: /* page 8 of Loconet PE */ return "Master is busy\n"; /**************************************************** * OPC_GPOFF 0x82 ;GLOBAL power OFF request * ****************************************************/ case LnConstants.OPC_GPOFF: /* page 8 of Loconet PE */ return "Global Power OFF\n"; /*************************************************** * OPC_GPON 0x83 ;GLOBAL power ON request * ***************************************************/ case LnConstants.OPC_GPON: /* page 8 of Loconet PE */ return "Global Power ON\n"; /********************************************************************** * OPC_IDLE 0x85 ;FORCE IDLE state, Broadcast emergency STOP * **********************************************************************/ case LnConstants.OPC_IDLE: /* page 8 of Loconet PE */ return "Force Idle, Emergency STOP\n"; /***************************************** * ; 4 byte MESSAGE OPCODES * * ; FORMAT = <OPC>,<ARG1>,<ARG2>,<CKSUM> * * : * * CODES 0xA8 to 0xAF have responses * * CODES 0xB8 to 0xBF have responses * *****************************************/ /*************************************************************************** * OPC_LOCO_ADR 0xBF ; REQ loco ADR * * ; Follow on message: <E7>SLOT READ * * ; <0xBF>,<0>,<ADR>,<CHK> REQ loco ADR * * ; DATA return <E7>, is SLOT#, DATA that ADR was * * : found in. * * ; IF ADR not found, MASTER puts ADR in FREE slot * * ; and sends DATA/STATUS return <E7>...... * * ; IF no FREE slot, Fail LACK,0 is returned * * ; [<B4>,<3F>,<0>,<CHK>] * ***************************************************************************/ case LnConstants.OPC_LOCO_ADR: { /* page 8 of Loconet PE */ int adrHi = l.getElement(1); // Hi address listed as zero above int adrLo = l.getElement(2); // ADR above, the low part return "Request slot information for loco address " +convertToMixed(adrLo, adrHi)+"\n"; } /***************************************************************************** * OPC_SW_ACK 0xBD ; REQ SWITCH WITH acknowledge function (not DT200) * * ; Follow on message: LACK * * ; <0xBD>,<SW1>,<SW2>,<CHK> REQ SWITCH function * * ; <SW1> =<0,A6,A5,A4- A3,A2,A1,A0> * * ; 7 ls adr bits. * * ; A1,A0 select 1 of 4 input pairs * * ; in a DS54 * * ; <SW2> =<0,0,DIR,ON- A10,A9,A8,A7> * * ; Control bits and 4 MS adr bits. * * ; DIR=1 for Closed/GREEN * * ; =0 for Thrown/RED * * ; ON=1 for Output ON * * ; =0 FOR output OFF * * ; response is: * * ; <0xB4><3D><00> if DCS100 FIFO is full, rejected. * * ; <0xB4><3D><7F> if DCS100 accepted * *****************************************************************************/ case LnConstants.OPC_SW_ACK: { /* page 8 of Loconet PE */ int sw1 = l.getElement(1); int sw2 = l.getElement(2); return "Request switch "+ String.valueOf(SENSOR_ADR(sw1, sw2))+ ((sw2 & LnConstants.OPC_SW_ACK_CLOSED)!=0 ? " Closed/Green" : " Thrown/Red")+ ((sw2 & LnConstants.OPC_SW_ACK_OUTPUT)!=0 ? " (Output On)" : " (Output Off)")+ " with Acknowledge\n"; } /************************************************************************* * OPC_SW_STATE 0xBC ; REQ state of SWITCH * * ; Follow on message: LACK * * ; <0xBC>,<SW1>,<SW2>,<CHK> REQ state of SWITCH * *************************************************************************/ case LnConstants.OPC_SW_STATE: { /* page 8 of Loconet PE */ int sw1 = l.getElement(1); int sw2 = l.getElement(2); return "Request state of switch "+ String.valueOf(SENSOR_ADR(sw1, sw2))+"\n"; } /************************************************************************************ * OPC_RQ_SL_DATA 0xBB ; Request SLOT DATA/status block * * ; Follow on message: <E7>SLOT READ * * ; <0xBB>,<SLOT>,<0>,<CHK> Request SLOT DATA/status block. * ************************************************************************************/ case LnConstants.OPC_RQ_SL_DATA: { /* page 8 of Loconet PE */ int slot = l.getElement(1); return "Request data/status for slot "+slot+"\n"; } /******************************************************************************* * OPC_MOVE_SLOTS 0xBA ; MOVE slot SRC to DEST * * ; Follow on message: <E7>SLOT READ * * ; <0xBA>,<SRC>,<DEST>,<CHK> Move SRC to DEST if * * ; SRC or LACK etc is NOT IN_USE, clr SRC * * ; SPECIAL CASES: * * ; If SRC=0 ( DISPATCH GET) , DEST=dont care, * * ; Return SLOT READ DATA of DISPATCH Slot * * ; IF SRC=DEST (NULL move) then SRC=DEST is set to * * ; IN_USE , if legal move. * * ; If DEST=0, is DISPATCH Put, mark SLOT as DISPATCH * * ; RETURN slot status <0xE7> of DESTINATION slot * * ; DEST if move legal * * ; RETURN Fail LACK code if illegal move * * ; <B4>,<3A>,<0>,<chk>, illegal to move to/from * * ; slots 120/127 * *******************************************************************************/ case LnConstants.OPC_MOVE_SLOTS: { /* page 8 of Loconet PE */ int src = l.getElement(1); int dest = l.getElement(2); /* check special cases */ if (src == 0) { /* DISPATCH GET */ return "Get most recently dispatched slot\n"; } else if (src == dest) { /* IN USE */ return "Set status of slot "+src+" to IN_USE\n"; } else if (dest == 0) { /* DISPATCH PUT */ return "Mark slot "+dest+" as DISPATCHED\n"; } else { /* general move */ return "Move data in slot "+src+" to slot "+dest+"\n"; } } /******************************************************************************** * OPC_LINK_SLOTS 0xB9 ; LINK slot ARG1 to slot ARG2 * * ; Follow on message: <E7>SLOT READ * * ; <0xB9>,<SL1>,<SL2>,<CHK> SLAVE slot SL1 to slot SL2 * * ; Master LINKER sets the SL_CONUP/DN flags * * ; appropriately. Reply is return of SLOT Status * * ; <0xE7>. Inspect to see result of Link, invalid * * ; Link will return Long Ack Fail <B4>,<39>,<0>,<CHK> * ********************************************************************************/ case LnConstants.OPC_LINK_SLOTS: { /* page 9 of Loconet PE */ int src = l.getElement(1); int dest = l.getElement(2); return "Consist loco in slot "+src+" to loco in slot "+dest+"\n"; } /******************************************************************************************* * OPC_UNLINK_SLOTS 0xB8 ;UNLINK slot ARG1 from slot ARG2 * * ; Follow on message: <E7>SLOT READ * * ; <0xB8>,<SL1>,<SL2>,<CHK> UNLINK slot SL1 from SL2 * * ; UNLINKER executes unlink STRATEGY and returns new SLOT# * * ; DATA/STATUS of unlinked LOCO . Inspect data to evaluate UNLINK * *******************************************************************************************/ case LnConstants.OPC_UNLINK_SLOTS: { /* page 9 of Loconet PE */ int src = l.getElement(1); int dest = l.getElement(2); return "Remove loco in slot "+src+" from consist with loco in slot "+dest+"\n"; } /************************************************************************************* * OPC_CONSIST_FUNC 0xB6 ; SET FUNC bits in a CONSIST uplink element * * ; <0xB6>,<SLOT>,<DIRF>,<CHK> UP consist FUNC bits * * ; NOTE this SLOT adr is considered in UPLINKED slot space. * *************************************************************************************/ case LnConstants.OPC_CONSIST_FUNC: { /* page 9 of Loconet PE */ int slot = l.getElement(1); int dirf = l.getElement(2); return "Set consist in slot "+slot +" direction to "+((dirf & LnConstants.DIRF_DIR)!=0 ? "REV" : "FWD") +"F0="+((dirf & LnConstants.DIRF_F0)!=0 ? "On, " : "Off,") +"F1="+((dirf & LnConstants.DIRF_F1)!=0 ? "On, " : "Off,") +"F2="+((dirf & LnConstants.DIRF_F2)!=0 ? "On, " : "Off,") +"F3="+((dirf & LnConstants.DIRF_F3)!=0 ? "On, " : "Off,") +"F4="+((dirf & LnConstants.DIRF_F4)!=0 ? "On" : "Off")+"\n"; } /******************************************************************** * OPC_SLOT_STAT1 0xB5 ; WRITE slot stat1 * * ; <0xB5>,<SLOT>,<STAT1>,<CHK> WRITE stat1 * ********************************************************************/ case LnConstants.OPC_SLOT_STAT1: { /* page 9 of Loconet PE */ int slot = l.getElement(1); int stat = l.getElement(2); return "Write slot "+slot +" with status value "+stat +" (0x"+Integer.toHexString(stat) +") - Loco is "+LnConstants.CONSIST_STAT(stat)+", "+LnConstants.LOCO_STAT(stat) +"\n\tand operating in "+LnConstants.DEC_MODE(stat) +" speed step mode\n"; } /******************************************************************************* * OPC_LONG_ACK 0xB4 ; Long acknowledge * * ; <0xB4>,<LOPC>,<ACK1>,<CHK> Long acknowledge * * ; <LOPC> is COPY of OPCODE responding to (msb=0). * * ; LOPC=0 (unused OPC) is also VALID fail code * * ; <ACK1> is appropriate response code for the OPCode * *******************************************************************************/ case LnConstants.OPC_LONG_ACK: /* page 9 of Loconet PE */ int opcode = l.getElement(1); int ack1 = l.getElement(2); switch (opcode | 0x80) { case (LnConstants.OPC_LOCO_ADR): /* response for OPC_LOCO_ADR */ return "LONG_ACK: No free slot\n"; case (LnConstants.OPC_LINK_SLOTS): /* response for OPC_LINK_SLOTS */ return "LONG_ACK: Invalid consist\n"; case (LnConstants.OPC_SW_ACK): /* response for OPC_SW_ACK */ if (ack1 == 0) { return "LONG_ACK: The DCS-100 FIFO is full, the switch command was rejected\n"; } else if (ack1 == 0x7f) { return "LONG_ACK: The DCS-100 accepted the switch command\n"; } else { forceHex = true; return "LONG_ACK: Unknown response to 'Request Switch with ACK' command, 0x"+Integer.toHexString(ack1)+"\n"; } case (LnConstants.OPC_SW_REQ): /* response for OPC_SW_REQ */ return "LONG_ACK: Switch request Failed!\n"; case (LnConstants.OPC_WR_SL_DATA): if (ack1 == 0) { return "LONG_ACK: The Slot Write command was rejected\n"; } else if (ack1 == 0x01) { return "LONG_ACK: The Slot Write command was accepted\n"; } else if (ack1 == 0x40) { return "LONG_ACK: The Slot Write command was accepted blind (no response will be sent)\n"; } else if (ack1 == 0x7f) { return "LONG_ACK: Function not implemented, no reply will follow\n"; } else { forceHex = true; return "LONG_ACK: Unknown response to Write Slot Data message 0x"+Integer.toHexString(ack1)+"\n"; } case (LnConstants.OPC_SW_STATE): return "LONG_ACK: Response to switch state message 0x"+Integer.toHexString(ack1)+"\n"; case (LnConstants.OPC_MOVE_SLOTS): if (ack1 == 0) { return "LONG_ACK: The Move Slots command was rejected\n"; } else if (ack1 == 0x7f) { return "LONG_ACK: The Move Slots command was accepted\n"; } else { forceHex = true; return "LONG_ACK: unknown reponse to Move Slots message 0x"+Integer.toHexString(ack1)+"\n"; } case LnConstants.OPC_IMM_PACKET: /* special response to OPC_IMM_PACKET */ if (ack1 == 0) { return "LONG_ACK: the Send IMM Packet command was rejected, the buffer is full/busy\n"; } else if (ack1 == 0x7f) { return "LONG_ACK: the Send IMM Packet command was accepted\n"; } else { forceHex = true; return "Unknown reponse to Send IMM Packet message 0x"+Integer.toHexString(ack1)+"\n"; } case LnConstants.OPC_IMM_PACKET_2: /* special response to OPC_IMM_PACKET */ return "LONG_ACK: the Lim Master responded to the Send IMM Packet command with "+ack1+" (0x"+Integer.toHexString(ack1)+")\n"; default: // forceHex = TRUE; return "LONG_ACK: Response "+ack1+" (0x"+Integer.toHexString(ack1) +") to opcode 0x"+Integer.toHexString(opcode)+" not available in plain english\n"; } /******************************************************************************************** * OPC_INPUT_REP 0xB2 ; General SENSOR Input codes * * ; <0xB2>, <IN1>, <IN2>, <CHK> * * ; <IN1> =<0,A6,A5,A4- A3,A2,A1,A0>, * * ; 7 ls adr bits. * * ; A1,A0 select 1 of 4 inputs pairs in a DS54. * * ; <IN2> =<0,X,I,L- A10,A9,A8,A7>, * * ; Report/status bits and 4 MS adr bits. * * ; "I"=0 for DS54 "aux" inputs * * ; =1 for "switch" inputs mapped to 4K SENSOR space. * * ; * * ; (This is effectively a least significant adr bit when * * ; using DS54 input configuration) * * ; * * ; "L"=0 for input SENSOR now 0V (LO), * * ; =1 for Input sensor >=+6V (HI) * * ; "X"=1, control bit, * * ; =0 is RESERVED for future! * ********************************************************************************************/ case LnConstants.OPC_INPUT_REP: /* page 9 of Loconet PE */ int in1 = l.getElement(1); int in2 = l.getElement(2); String bdl = " (BDL16 "+in1/8+" "; if ( ((in1/2) & 3) == 0 ) bdl = bdl+"A"; else if ( ((in1/2) & 3) == 1 ) bdl = bdl+"B"; else if ( ((in1/2) & 3) == 2 ) bdl = bdl+"C"; else bdl = bdl+"D"; if ( ((in1 & 1) !=0) && ((in2 & LnConstants.OPC_INPUT_REP_SW)!=0) ) bdl=bdl+"4)"; else if ( ((in1 & 1) !=0) && ((in2 & LnConstants.OPC_INPUT_REP_SW)==0) ) bdl=bdl+"3)"; else if ( ((in1 & 1) ==0) && ((in2 & LnConstants.OPC_INPUT_REP_SW)!=0) ) bdl=bdl+"2)"; else bdl=bdl+"1)"; String ds = " (DS54 "+(SENSOR_ADR(in1,in2)/4)+" ch"+((SENSOR_ADR(in1, in2)&3)+1) +((in2 & LnConstants.OPC_INPUT_REP_SW)!=0 ? " Sw input)" : " Aux input)"); return "General sensor input report: contact "+ (SENSOR_ADR(in1, in2)*2+((in2 & LnConstants.OPC_INPUT_REP_SW)!=0?1:0)) +ds+ bdl+ " is "+ ((in2 & LnConstants.OPC_INPUT_REP_HI)!=0 ? "Hi" : "Lo")+" "+ ((in2 & LnConstants.OPC_INPUT_REP_CB)==0 ? "\n\t(Unexpected 0 value of reserved control bit)" : "")+ "\n"; /*************************************************************************************** * OPC_SW_REP 0xB1 ; Turnout SENSOR state REPORT * * ; <0xB1>,<SN1>,<SN2>,<CHK> SENSOR state REPORT * * ; <SN1> =<0,A6,A5,A4- A3,A2,A1,A0>, * * ; 7 ls adr bits. * * ; A1,A0 select 1 of 4 input pairs in a DS54 * * ; <SN2> =<0,1,I,L- A10,A9,A8,A7> * * ; Report/status bits and 4 MS adr bits. * * ; this <B1> opcode encodes input levels * * ; for turnout feedback * * ; "I" =0 for "aux" inputs (normally not feedback), * * ; =1 for "switch" input used for * * ; turnout feedback for DS54 * * ; ouput/turnout # encoded by A0-A10 * * ; "L" =0 for this input 0V (LO), * * ; =1 this input > +6V (HI) * * ; * * ; alternately; * * ; * * ; <SN2> =<0,0,C,T- A10,A9,A8,A7> * * ; Report/status bits and 4 MS adr bits. * * ; this <B1> opcode encodes current OUTPUT levels * * ; "C" =0 if "Closed" ouput line is OFF, * * ; =1 "closed" output line is ON * * ; (sink current) * * ; "T" =0 if "Thrown" output line is OFF, * * ; =1 "thrown" output line is ON * * ; (sink I) * ***************************************************************************************/ case LnConstants.OPC_SW_REP: /* page 9 of Loconet PE */ int sn1 = l.getElement(1); int sn2 = l.getElement(2); if ((sn2 & LnConstants.OPC_SW_REP_INPUTS)!=0) { return "Turnout sensor input state for address "+ SENSOR_ADR(sn1, sn2)+ ":\n\t"+ ((sn2 & LnConstants.OPC_SW_REP_SW) !=0 ? "Switch" : "Aux input")+ " is "+ (((sn2 & LnConstants.OPC_SW_REP_HI)!=0) ? "Hi" : "Lo")+"\n"; } else { // OPC_SW_REP_INPUTS is 0 return "Turnout sensor output state for address "+ SENSOR_ADR(sn1, sn2)+ ":\n\tClosed output is "+ ((sn2 & LnConstants.OPC_SW_REP_CLOSED)!=0 ? "ON (sink)" : "OFF (open)")+ ", Thrown output is "+ ((sn2 & LnConstants.OPC_SW_REP_THROWN)!=0 ? "ON (sink)" : "OFF (open)")+"\n"; } /******************************************************************************************* * OPC_SW_REQ 0xB0 ; REQ SWITCH function * * ; <0xB0>,<SW1>,<SW2>,<CHK> REQ SWITCH function * * ; <SW1> =<0,A6,A5,A4- A3,A2,A1,A0>, * * ; 7 ls adr bits. * * ; A1,A0 select 1 of 4 input pairs in a DS54 * * ; <SW2> =<0,0,DIR,ON- A10,A9,A8,A7> * * ; Control bits and 4 MS adr bits. * * ; DIR =1 for Closed,/GREEN, * * ; =0 for Thrown/RED * * ; ON =1 for Output ON, * * ; =0 FOR output OFF * * ; * * ; Note-Immediate response of <0xB4><30><00> if command failed, * * ; otherwise no response "A" CLASS codes * * ; * * ; Special form: broadcast (PE page 12) * * ; * * ; * * ; Special form: LocoNet interrogate (PE page 13) * * ; * * ; * * ; * * ; * * ; * * ; * * ; * * ; * *******************************************************************************************/ case LnConstants.OPC_SW_REQ: /* page 9 of Loconet PE */ int sw1 = l.getElement(1); int sw2 = l.getElement(2); String retVal; // check for special forms first if ( ((sw2 & 0xCF) == 0x0F) && ((sw1 & 0xFC) == 0x78) ) { // broadcast address LPU V1.0 page 12 retVal = "Request Switch to broadcast address with bits "+ "a="+ ((sw2&0x20)>>5)+((sw2 & LnConstants.OPC_SW_REQ_DIR)!=0 ? " (Closed)" : " (Thrown)")+ " c="+ ((sw1 & 0x02)>>1) + " b="+ ((sw1 & 0x01)) + "\n\tOutput "+ ((sw2 & LnConstants.OPC_SW_REQ_OUT)!=0 ? "On" : "Off")+"\n"; } else if ( ((sw2 & 0xCF) == 0x07) && ((sw1 & 0xFC) == 0x78) ) { // broadcast address LPU V1.0 page 13 retVal = "Request switch command is Interrogate LocoNet with bits "+ "a="+ ((sw2 & 0x20)>>5) + " c="+ ((sw1&0x02)>>1) + " b="+ ((sw1&0x01)) + "\n\tOutput "+ ((sw2 & LnConstants.OPC_SW_REQ_OUT)!=0 ? "On" : "Off")+"\n"+ ( ( (sw2&0x10) == 0 ) ? "" : "\tNote 0x10 bit in sw2 is unexpectedly 0\n"); } else { // normal command retVal = "Requesting Switch at "+ SENSOR_ADR(sw1, sw2)+ " to "+ ((sw2 & LnConstants.OPC_SW_REQ_DIR)!=0 ? "Closed" : "Thrown")+ " (output "+ ((sw2 & LnConstants.OPC_SW_REQ_OUT)!=0 ? "On" : "Off")+")\n"; } return retVal; /**************************************************** * OPC_LOCO_SND 0xA2 ;SET SLOT sound functions * ****************************************************/ case LnConstants.OPC_LOCO_SND: { /* page 10 of Loconet PE */ int slot = l.getElement(1); int snd = l.getElement(2); return "Set loco in slot " +slot +" Sound1/F5=" +((snd & LnConstants.SND_F5) != 0 ? "On" : "Off") +", Sound2/F6=" +((snd & LnConstants.SND_F6) != 0 ? "On" : "Off") +", Sound3/F7=" +((snd & LnConstants.SND_F7) != 0 ? "On" : "Off") +", Sound4/F8=" +((snd & LnConstants.SND_F8) != 0 ? "On" : "Off") +"\n"; } /**************************************************** * OPC_LOCO_DIRF 0xA1 ;SET SLOT dir, F0-4 state * ****************************************************/ case LnConstants.OPC_LOCO_DIRF: /* page 10 of Loconet PE */ { int slot = l.getElement(1); int dirf = l.getElement(2); return "Set loco in slot " +slot +" direction to " +((dirf & LnConstants.DIRF_DIR) != 0 ? "REV" : "FWD") +", F0=" +((dirf & LnConstants.DIRF_F0) != 0 ? "On, " : "Off,") +" F1=" +((dirf & LnConstants.DIRF_F1) != 0 ? "On, " : "Off,") +" F2=" +((dirf & LnConstants.DIRF_F2) != 0 ? "On, " : "Off,") +" F3=" +((dirf & LnConstants.DIRF_F3) != 0 ? "On, " : "Off,") +" F4=" +((dirf & LnConstants.DIRF_F4) != 0 ? "On" : "Off") +"\n"; } /*********************************************************************** * OPC_LOCO_SPD 0xA0 ;SET SLOT speed e.g. <0xA0><SLOT#><SPD><CHK> * ***********************************************************************/ case LnConstants.OPC_LOCO_SPD: { /* page 10 of Loconet PE */ int slot = l.getElement(1); int spd = l.getElement(2); if (spd == LnConstants.OPC_LOCO_SPD_ESTOP) { /* emergency stop */ return "Set speed of loco in slot "+slot+" to EMERGENCY STOP!\n"; } else { return "Set speed of loco in slot "+slot+" to "+spd+"\n"; } } /******************************************************* * ; 6 byte MESSAGE OPCODES * * ; FORMAT = <OPC>,<ARG1>,<ARG2>,<ARG3>,<ARG4>,<CKSUM> * * : * * CODES 0xC8 to 0xCF have responses * * CODES 0xD8 to 0xDF have responses * ********************************************************/ /************************************************************************ * OPC_MULTI_SENSE 0xD0 messages about power management * * and transponding * * * * If byte 1 high nibble is 0x20 or 0x00 this is a transponding message * *************************************************************************/ case LnConstants.OPC_MULTI_SENSE: { // definition courtesy Al Silverstein int type = l.getElement(1)&LnConstants.OPC_MULTI_SENSE_MSG; forceHex = true; String m; String zone; if ((l.getElement(2)&0x0F) == 0x00) zone = "A"; else if ((l.getElement(2)&0x0F) == 0x02) zone = "B"; else if ((l.getElement(2)&0x0F) == 0x04) zone = "C"; else if ((l.getElement(2)&0x0F) == 0x06) zone = "D"; else zone="<unknown "+(l.getElement(2)&0x0F)+">"; switch (type) { case LnConstants.OPC_MULTI_SENSE_POWER: return "OPC_MULTI_SENSE power message PM4 " +l.getElement(2)+" "; case LnConstants.OPC_MULTI_SENSE_PRESENT: // from transponding app note m = "OPC_MULTI_SENSE transponder present zone " +zone+" decoder address "; if (l.getElement(3)==0x7D) m+=l.getElement(4)+" (short) "; else m+=l.getElement(3)*128+l.getElement(4)+" (long) "; return m; case LnConstants.OPC_MULTI_SENSE_ABSENT: m = "OPC_MULTI_SENSE transponder absent zone " +zone+" decoder address "; if (l.getElement(3)==0x7D) m+=l.getElement(4)+" (short) "; else m+=l.getElement(3)*128+l.getElement(4)+" (long) "; return m; default: return "OPC_MULTI_SENSE unknown format "; } } /******************************************************************** * ; VARIABLE Byte MESSAGE OPCODES * * ; FORMAT = <OPC>,<COUNT>,<ARG2>,<ARG3>,...,<ARG(COUNT-3)>,<CKSUM> * ********************************************************************/ /********************************************************************************************** * OPC_WR_SL_DATA 0xEF ; WRITE SLOT DATA, 10 bytes * * ; Follow on message: LACK * * ; <0xEF>,<0E>,<SLOT#>,<STAT>,<ADR>,<SPD>,<DIRF>, * * ; <TRK>,<SS2>,<ADR2>,<SND>,<ID1>,<ID2>,<CHK> * * ; SLOT DATA WRITE, 10 bytes data /14 byte MSG * *********************************************************************************************** * OPC_SL_RD_DATA 0xE7 ; SLOT DATA return, 10 bytes * * ; <0xE7>,<0E>,<SLOT#>,<STAT>,<ADR>,<SPD>,<DIRF>, * * ; <TRK>,<SS2>,<ADR2>,<SND>,<ID1>,<ID2>,<CHK> * * ; SLOT DATA READ, 10 bytes data /14 byte MSG * * ; * * ; NOTE; If STAT2.2=0 EX1/EX2 encodes an ID#, * * ; [if STAT2.2=1 the STAT.3=0 means EX1/EX2 * * ; are ALIAS] * * ; * * ; ID1/ID2 are two 7 bit values encoding a 14 bit * * ; unique DEVICE usage ID. * * ; * * ; 00/00 - means NO ID being used * * ; * * ; 01/00 - ID shows PC usage. * * ; to Lo nibble is TYP PC# * * ; 7F/01 (PC can use hi values) * * ; * * ; 00/02 -SYSTEM reserved * * ; to * * ; 7F/03 * * ; * * ; 00/04 -NORMAL throttle RANGE * * ; to * * ; 7F/7E * *********************************************************************************************** * Notes: * * The SLOT DATA bytes are, in order of TRANSMISSION for <E7> READ or <EF> WRITE. * * NOTE SLOT 0 <E7> read will return MASTER config information bytes. * * * * 0) SLOT NUMBER: * * * * ; 0-7FH, 0 is special SLOT, * * ; 070H-07FH DIGITRAX reserved: * * * * 1) SLOT STATUS1: * * * * D7-SL_SPURGE ; 1=SLOT purge en, * * ; ALSO adrSEL (INTERNAL use only) (not seen on NET!) * * * * D6-SL_CONUP ; CONDN/CONUP: bit encoding-Control double linked Consist List * * ; 11=LOGICAL MID CONSIST , Linked up AND down * * ; 10=LOGICAL CONSIST TOP, Only linked downwards * * ; 01=LOGICAL CONSIST SUB-MEMBER, Only linked upwards * * ; 00=FREE locomotive, no CONSIST indirection/linking * * ; ALLOWS "CONSISTS of CONSISTS". Uplinked means that * * ; Slot SPD number is now SLOT adr of SPD/DIR and STATUS * * ; of consist. i.e. is ;an Indirect pointer. This Slot * * ; has same BUSY/ACTIVE bits as TOP of Consist. TOP is * * ; loco with SPD/DIR for whole consist. (top of list). * * ; BUSY/ACTIVE: bit encoding for SLOT activity * * * * D5-SL_BUSY ; 11=IN_USE loco adr in SLOT -REFRESHED * * * * D4-SL_ACTIVE ; 10=IDLE loco adr in SLOT -NOT refreshed * * ; 01=COMMON loco adr IN SLOT -refreshed * * ; 00=FREE SLOT, no valid DATA -not refreshed * * * * D3-SL_CONDN ; shows other SLOT Consist linked INTO this slot, see SL_CONUP * * * * D2-SL_SPDEX ; 3 BITS for Decoder TYPE encoding for this SLOT * * * * D1-SL_SPD14 ; 011=send 128 speed mode packets * * * * D0-SL_SPD28 ; 010=14 step MODE * * ; 001=28 step. Generate Trinary packets for this * * ; Mobile ADR * * ; 000=28 step. 3 BYTE PKT regular mode * * ; 111=128 Step decoder, Allow Advanced DCC consisting * * ; 100=28 Step decoder ,Allow Advanced DCC consisting * * * * 2) SLOT LOCO ADR: * * * * LOCO adr Low 7 bits (byte sent as ARG2 in ADR req opcode <0xBF>) * * * * 3) SLOT SPEED: * * 0x00=SPEED 0 ,STOP inertially * * 0x01=SPEED 0 EMERGENCY stop * * 0x02->0x7F increasing SPEED,0x7F=MAX speed * * (byte also sent as ARG2 in SPD opcode <0xA0> ) * * * * 4) SLOT DIRF byte: (byte also sent as ARG2 in DIRF opcode <0xA1>) * * * * D7-0 ; always 0 * * D6-SL_XCNT ; reserved , set 0 * * D5-SL_DIR ; 1=loco direction FORWARD * * D4-SL_F0 ; 1=Directional lighting ON * * D3-SL_F4 ; 1=F4 ON * * D2-SL_F3 ; 1=F3 ON * * D1-SL_F2 ; 1=F2 ON * * D0-SL_F1 ; 1=F1 ON * * * * * * * * * * 5) TRK byte: (GLOBAL system /track status) * * * * D7-D4 Reserved * * D3 GTRK_PROG_BUSY 1=Programming TRACK in this Master is BUSY. * * D2 GTRK_MLOK1 1=This Master IMPLEMENTS LocoNet 1.1 capability, * * 0=Master is DT200 * * D1 GTRK_IDLE 0=TRACK is PAUSED, B'cast EMERG STOP. * * D0 GTRK_POWER 1=DCC packets are ON in MASTER, Global POWER up * * * * 6) SLOT STATUS: * * * * D3 1=expansion IN ID1/2, 0=ENCODED alias * * D2 1=Expansion ID1/2 is NOT ID usage * * D0 1=this slot has SUPPRESSED ADV consist-7) * * * * 7) SLOT LOCO ADR HIGH: * * * * Locomotive address high 7 bits. If this is 0 then Low address is normal 7 bit NMRA SHORT * * address. If this is not zero then the most significant 6 bits of this address are used in * * the first LONG address byte ( matching CV17). The second DCC LONG address byte matches CV18 * * and includes the Adr Low 7 bit value with the LS bit of ADR high in the MS postion of this * * track adr byte. * * * * Note a DT200 MASTER will always interpret this as 0. * * * * 8) SLOT SOUND: * * * * Slot sound/ Accesory Function mode II packets. F5-F8 * * (byte also sent as ARG2 in SND opcode) * * * * D7-D4 reserved * * D3-SL_SND4/F8 * * D2-SL_SND3/F7 * * D1-SL_SND2/F6 * * D0-SL_SND1/F5 1= SLOT Sound 1 function 1active (accessory 2) * * * * 9) EXPANSION RESERVED ID1: * * * * 7 bit ls ID code written by THROTTLE/PC when STAT2.4=1 * * * * 10) EXPANSION RESERVED ID2: * * * * 7 bit ms ID code written by THROTTLE/PC when STAT2.4=1 * **********************************************************************************************/ case LnConstants.OPC_WR_SL_DATA: /* page 10 of Loconet PE */ case LnConstants.OPC_SL_RD_DATA: /* page 10 of Loconet PE */ { String mode; String locoAdrStr; String mixedAdrStr; String logString; // rwSlotData = (rwSlotDataMsg *) msgBuf; int command = l.getElement(0); int mesg_size = l.getElement(1); // ummmmm, size of the message in bytes? int slot = l.getElement(2); // slot number for this request int stat = l.getElement(3); // slot status int adr = l.getElement(4); // loco address int spd = l.getElement(5); // command speed int dirf = l.getElement(6); // direction and F0-F4 bits int trk = l.getElement(7); // track status int ss2 = l.getElement(8); // slot status 2 (tells how to use ID1/ID2 & ADV Consist) int adr2 = l.getElement(9); // loco address high int snd = l.getElement(10); // Sound 1-4 / F5-F8 int id1 = l.getElement(11); // ls 7 bits of ID code int id2 = l.getElement(12); // ms 7 bits of ID code /* build loco address string */ mixedAdrStr = convertToMixed(adr, adr2); /* figure out the alias condition, and create the loco address string */ if (adr2 == 0x7f) { if ((ss2 & LnConstants.STAT2_ALIAS_MASK) == LnConstants.STAT2_ID_IS_ALIAS) { /* this is an aliased address and we have the alias*/ locoAdrStr = "" +LOCO_ADR(id2, id1) +" (Alias for loco " +mixedAdrStr +")"; } else { /* this is an aliased address and we don't have the alias */ locoAdrStr = mixedAdrStr +" (via Alias)"; } } else { /* regular 4 digit address, 128 to 9983 */ locoAdrStr = mixedAdrStr; } /* * These share a common data format with the only * difference being whether we are reading or writing * the slot data. */ if (command == LnConstants.OPC_WR_SL_DATA) { mode = "Write"; } else { mode = "Read"; } if (slot == LnConstants.FC_SLOT) { /********************************************************************************************** * FAST Clock: * * =========== * * The system FAST clock and parameters are implemented in Slot#123 <7B>. * * * * Use <EF> to write new clock information, Slot read of 0x7B,<BB><7B>.., will return current * * System clock information, and other throttles will update to this SYNC. Note that all * * attached display devices keep a current clock calculation based on this SYNC read value, * * i.e. devices MUST not continuously poll the clock SLOT to generate time, but use this * * merely to restore SYNC and follow current RATE etc. This clock slot is typically "pinged" * * or read SYNC'd every 70 to 100 seconds , by a single user, so all attached devices can * * synchronise any phase drifts. Upon seeing a SYNC read, all devices should reset their local * * sub-minute phase counter and invalidate the SYNC update ping generator. * * * * Clock Slot Format: * * * * <0xEF>,<0E>,<7B>,<CLK_RATE>,<FRAC_MINSL>,<FRAC_MINSH>,<256-MINS_60>, * * <TRK><256-HRS_24>,<DAYS>,<CLK_CNTRL>,<ID1>,<1D2>,<CHK> * * * * <CLK_RATE> 0=Freeze clock, * * 1=normal 1:1 rate, * * 10=10:1 etc, max VALUE is 7F/128 to 1 * * <FRAC_MINSL> FRAC mins hi/lo are a sub-minute counter , depending * * on the CLOCK generator * * <FRAC_MINSH> Not for ext. usage. This counter is reset when valid * * <E6><7B> SYNC msg seen * * <256-MINS_60> This is FAST clock MINUTES subtracted from 256. Modulo 0-59 * * <256-HRS_24> This is FAST clock HOURS subtracted from 256. Modulo 0-23 * * <DAYS> number of 24 Hr clock rolls, positive count * * <CLK_CNTRL> Clock Control Byte * * D6- 1=This is valid Clock information, * * 0=ignore this <E6><7B>, SYNC reply * * <ID1>,<1D2> This is device ID last setting the clock. * * <00><00> shows no set has happened * * <7F><7x> are reserved for PC access * **********************************************************************************************/ /* make message easier to deal with internally */ // fastClock = (fastClockMsg *)msgBuf; int clk_rate = l.getElement(3); // 0 = Freeze clock, 1 = normal, 10 = 10:1 etc. Max is 0x7f int frac_minsl = l.getElement(4); // fractional minutes. not for external use. int frac_minsh = l.getElement(5); int mins_60 = l.getElement(6); // 256 - minutes int track_stat = l.getElement(7); // track status int hours_24 = l.getElement(8); // 256 - hours int days = l.getElement(9); // clock rollovers int clk_cntrl = l.getElement(10); // bit 6 = 1; data is valid clock info // " " 0; ignore this reply // id1/id2 is device id of last device to set the clock // " " = zero shows not set has happened /* recover hours and minutes values */ minutes = ((256 - mins_60) & 0x7f) % 60; hours = ((256 - hours_24)& 0x7f) % 24; hours = (24 - hours) % 24; minutes = (60 - minutes) % 60; /* check track status value and display */ if ((trackStatus != track_stat) || showTrackStatus) { trackStatus = track_stat; showStatus = true; } if (showStatus) { logString = mode +" Fast Clock: (Data is " +((clk_cntrl & 0x20) != 0 ? "Valid" : "Invalid - ignore") +")\n\t" +(clk_rate != 0 ? "Running" : "Frozen") +", rate is "+clk_rate +":1. Day "+days+", "+hours+":"+minutes +". Last set by ID 0x"+Integer.toHexString(id2)+Integer.toHexString(id1) +"\n\tMaster controller " +((track_stat & LnConstants.GTRK_MLOK1)!=0 ? "implements LocoNet 1.1" : "is a DT-200") +",\n\tTrack Status is " +((track_stat & LnConstants.GTRK_IDLE)!=0 ? "On" : "Off") +",\n\tProgramming Track is " +((track_stat & LnConstants.GTRK_PROG_BUSY)!=0 ? "Busy" : "Available") +"\n"; } else { logString = mode +" Fast Clock: (Data is " +((clk_cntrl & 0x20) != 0 ? "Valid" : "Invalid - ignore") +")\n\t" +(clk_rate != 0 ? "Frozen" : "Running") +", rate is "+clk_rate +":1. Day "+days+", "+hours+":"+minutes +". Last set by ID 0x"+Integer.toHexString(id2)+Integer.toHexString(id1)+"\n"; } // end fast clock block } else if (slot == LnConstants.PRG_SLOT) { /********************************************************************************************** * Programmer track: * * ================= * * The programmer track is accessed as Special slot #124 ( $7C, 0x7C). It is a full * * asynchronous shared system resource. * * * * To start Programmer task, write to slot 124. There will be an immediate LACK acknowledge * * that indicates what programming will be allowed. If a valid programming task is started, * * then at the final (asynchronous) programming completion, a Slot read <E7> from slot 124 * * will be sent. This is the final task status reply. * * * * Programmer Task Start: * * ---------------------- * * <0xEF>,<0E>,<7C>,<PCMD>,<0>,<HOPSA>,<LOPSA>,<TRK>;<CVH>,<CVL>, * * <DATA7>,<0>,<0>,<CHK> * * * * This OPC leads to immediate LACK codes: * * <B4>,<7F>,<7F>,<chk> Function NOT implemented, no reply. * * <B4>,<7F>,<0>,<chk> Programmer BUSY , task aborted, no reply. * * <B4>,<7F>,<1>,<chk> Task accepted , <E7> reply at completion. * * <B4>,<7F>,<0x40>,<chk> Task accepted blind NO <E7> reply at completion. * * * * Note that the <7F> code will occur in Operations Mode Read requests if the System is not * * configured for and has no Advanced Acknowlegement detection installed.. Operations Mode * * requests can be made and executed whilst a current Service Mode programming task is keeping * * the Programming track BUSY. If a Programming request is rejected, delay and resend the * * complete request later. Some readback operations can keep the Programming track busy for up * * to a minute. Multiple devices, throttles/PC's etc, can share and sequentially use the * * Programming track as long as they correctly interpret the response messages. Any Slot RD * * from the master will also contain the Programmer Busy status in bit 3 of the <TRK> byte. * * * * A <PCMD> value of <00> will abort current SERVICE mode programming task and will echo with * * an <E6> RD the command string that was aborted. * * * * <PCMD> Programmer Command: * * -------------------------- * * Defined as * * D7 -0 * * D6 -Write/Read 1= Write, * * 0=Read * * D5 -Byte Mode 1= Byte operation, * * 0=Bit operation (if possible) * * D4 -TY1 Programming Type select bit * * D3 -TY0 Prog type select bit * * D2 -Ops Mode 1=Ops Mode on Mainlines, * * 0=Service Mode on Programming Track * * D1 -0 reserved * * D0 -0-reserved * * * * Type codes: * * ----------- * * Byte Mode Ops Mode TY1 TY0 Meaning * * 1 0 0 0 Paged mode byte Read/Write on Service Track * * 1 0 0 0 Paged mode byte Read/Write on Service Track * * 1 0 0 1 Direct mode byteRead/Write on Service Track * * 0 0 0 1 Direct mode bit Read/Write on Service Track * * x 0 1 0 Physical Register byte Read/Write on Service Track * * x 0 1 1 Service Track- reserved function * * 1 1 0 0 Ops mode Byte program, no feedback * * 1 1 0 1 Ops mode Byte program, feedback * * 0 1 0 0 Ops mode Bit program, no feedback * * 0 1 0 1 Ops mode Bit program, feedback * * * * <HOPSA>Operations Mode Programming * * 7 High address bits of Loco to program, 0 if Service Mode * * <LOPSA>Operations Mode Programming * * 7 Low address bits of Loco to program, 0 if Service Mode * * <TRK> Normal Global Track status for this Master, * * Bit 3 also is 1 WHEN Service Mode track is BUSY * * <CVH> High 3 BITS of CV#, and ms bit of DATA.7 * * <0,0,CV9,CV8 - 0,0, D7,CV7> * * <CVL> Low 7 bits of 10 bit CV address. * * <0,CV6,CV5,CV4-CV3,CV2,CV1,CV0> * * <DATA7>Low 7 BITS OF data to WR or RD COMPARE * * <0,D6,D5,D4 - D3,D2,D1,D0> * * ms bit is at CVH bit 1 position. * * * * Programmer Task Final Reply: * * ---------------------------- * * (if saw LACK <B4>,<7F>,<1>,<chk> code reply at task start) * * * * <0xE7>,<0E>,<7C>,<PCMD>,<PSTAT>,<HOPSA>,<LOPSA>,<TRK>;<CVH>,<CVL>, * * <DATA7>,<0>,<0>,<CHK> * * * * <PSTAT> Programmer Status error flags. Reply codes resulting from * * completed task in PCMD * * D7-D4 -reserved * * D3 -1= User Aborted this command * * D2 -1= Failed to detect READ Compare acknowledge response * * from decoder * * D1 -1= No Write acknowledge response from decoder * * D0 -1= Service Mode programming track empty- No decoder detected * * * * This <E7> response is issued whenever a Programming task is completed. It echos most of the * * request information and returns the PSTAT status code to indicate how the task completed. * * If a READ was requested <DATA7> and <CVH> contain the returned data, if the PSTAT indicates * * a successful readback (typically =0). Note that if a Paged Read fails to detect a * * successful Page write acknowledge when first setting the Page register, the read will be * * aborted, showing no Write acknowledge flag D1=1. * **********************************************************************************************/ String operation; String progMode; int cvData; boolean opsMode = false; int cvNumber; // progTask = (progTaskMsg *) msgBuf; // slot - slot number for this request - slot 124 is programmer int pcmd = l.getElement(3); // programmer command int pstat = l.getElement(4); // programmer status error flags in reply message int hopsa = l.getElement(5); // Ops mode - 7 high address bits of loco to program int lopsa = l.getElement(6); // Ops mode - 7 low address bits of loco to program /* trk - track status. Note: bit 3 shows if prog track is busy */ int cvh = l.getElement(8); // hi 3 bits of CV# and msb of data7 int cvl = l.getElement(9); // lo 7 bits of CV# int data7 = l.getElement(10); // 7 bits of data to program, msb is in cvh above cvData = (((cvh & LnConstants.CVH_D7) << 6) | (data7 & 0x7f)); // was PROG_DATA cvNumber = (((((cvh & LnConstants.CVH_CV8_CV9) >> 3) | (cvh & LnConstants.CVH_CV7)) * 128) + (cvl & 0x7f))+1; // was PROG_CV_NUM(progTask) /* generate loco address, mixed mode or true 4 digit */ mixedAdrStr = convertToMixed(lopsa, hopsa); /* determine programming mode for printing */ if ((pcmd & LnConstants.PCMD_MODE_MASK) == LnConstants.PAGED_ON_SRVC_TRK) { progMode = "Byte in Paged Mode on Service Track"; } else if ((pcmd & LnConstants.PCMD_MODE_MASK) == LnConstants.DIR_BYTE_ON_SRVC_TRK) { progMode = "Byte in Direct Mode on Service Track"; } else if ((pcmd & LnConstants.PCMD_MODE_MASK) == LnConstants.DIR_BIT_ON_SRVC_TRK) { progMode = "Bits in Direct Mode on Service Track"; } else if (((pcmd & ~LnConstants.PCMD_BYTE_MODE) & LnConstants.PCMD_MODE_MASK) == LnConstants.REG_BYTE_RW_ON_SRVC_TRK) { progMode = "Byte in Physical Register R/W Mode on Service Track"; } else if ((pcmd & LnConstants.PCMD_MODE_MASK) == LnConstants.OPS_BYTE_NO_FEEDBACK) { progMode = "Byte in OP's Mode (NO feedback)"; opsMode = true; } else if ((pcmd & LnConstants.PCMD_MODE_MASK) == LnConstants.OPS_BYTE_FEEDBACK) { progMode = "Byte in OP's Mode"; opsMode = true; } else if ((pcmd & LnConstants.PCMD_MODE_MASK) == LnConstants.OPS_BIT_NO_FEEDBACK) { progMode = "Bits in OP's Mode (NO feedback)"; opsMode = true; } else if ((pcmd & LnConstants.PCMD_MODE_MASK) == LnConstants.OPS_BIT_FEEDBACK) { progMode = "Bits in OP's Mode"; opsMode = true; } else if (((pcmd & ~LnConstants.PCMD_BYTE_MODE) & LnConstants.PCMD_MODE_MASK) == LnConstants.SRVC_TRK_RESERVED) { progMode = "SERVICE TRACK RESERVED MODE DETECTED!"; } else { progMode = "Unknown mode "+pcmd+" (0x"+Integer.toHexString(pcmd)+")"; forceHex = true; } /* are we sending or receiving? */ if ((pcmd & LnConstants.PCMD_RW) != 0) { /* sending a command */ operation = "Programming Track: Write"; /* printout based on whether we're doing Ops mode or not */ if (opsMode) { logString = mode+" " +operation+" " +progMode+"\n" +"\tSetting CV"+cvNumber +" of Loco "+mixedAdrStr+" to "+cvData +" (0x"+Integer.toHexString(cvData)+")\n"; } else { logString = mode+" " +operation+" " +progMode+"\n" +"\tSetting CV"+cvNumber +" to "+cvData +" (0x"+Integer.toHexString(cvData)+")\n"; } } else { /* receiving a reply */ operation = "Programming Track: Read"; /* printout based on whether we're doing Ops mode or not */ if (opsMode) { logString = mode+" " +operation+" " +progMode+"\n" +"\tSetting CV"+cvNumber +" of Loco "+mixedAdrStr+" to "+cvData +" (0x"+Integer.toHexString(cvData)+")\n"; } else { logString = mode+" " +operation+" " +progMode+"\n" +"\tSetting CV"+cvNumber +" to "+cvData +" (0x"+Integer.toHexString(cvData)+")\n"; } /* if we're reading the slot back, check the status */ /* this is supposed to be the Programming task final reply */ /* and will have the resulting status byte */ if (command == LnConstants.OPC_SL_RD_DATA) { if (pstat != 0) { if ((pstat & LnConstants.PSTAT_USER_ABORTED) != 0) { logString += "\tStatus = Failed, User Aborted\n"; } if ((pstat & LnConstants.PSTAT_READ_FAIL) != 0) { logString += "\tStatus = Failed, Read Compare Acknowledge not detected\n"; } if ((pstat & LnConstants.PSTAT_WRITE_FAIL) != 0 ) { logString += "\tStatus = Failed, No Write Acknowledge from decoder\n"; } if ((pstat & LnConstants.PSTAT_NO_DECODER) != 0 ) { logString += "\tStatus = Failed, Service Mode programming track empty\n"; } if ((pstat & 0xF0) != 0) { logString += "Warning: reserved bit set. Message may be invalid. PSTAT = 0x" +Integer.toHexString(pstat); } } else { logString += "\tStatus = Success\n"; } } } // end programming track block } else { /************************************************** * normal slot read/write message - see info above * **************************************************/ if ((trackStatus != trk) || showTrackStatus) { trackStatus = trk; showStatus = true; } if (showStatus) { logString = mode +" slot "+slot +":\n\tLoco "+locoAdrStr +" is "+LnConstants.CONSIST_STAT(stat) +", "+LnConstants.LOCO_STAT(stat) +", operating in "+LnConstants.DEC_MODE(stat)+" SS mode, and is going " +((dirf & LnConstants.DIRF_DIR)!=0 ? "in Reverse" : "Foward") +" at speed "+spd+",\n" +"\tF0="+((dirf & LnConstants.DIRF_F0) != 0 ? "On, " : "Off,") +" F1="+((dirf & LnConstants.DIRF_F1) != 0 ? "On, " : "Off,") +" F2="+((dirf & LnConstants.DIRF_F2) != 0 ? "On, " : "Off,") +" F3="+((dirf & LnConstants.DIRF_F3) != 0 ? "On, " : "Off,") +" F4="+((dirf & LnConstants.DIRF_F4) != 0 ? "On, " : "Off,") +" Sound1/F5="+((snd & LnConstants.SND_F5) != 0 ? "On, " : "Off,") +" Sound2/F6="+((snd & LnConstants.SND_F6) != 0 ? "On, " : "Off,") +" Sound3/F7="+((snd & LnConstants.SND_F7) != 0 ? "On, " : "Off,") +" Sound4/F8="+((snd & LnConstants.SND_F8) != 0 ? "On" : "Off") +"\n\tMaster controller "+((trk & LnConstants.GTRK_MLOK1) !=0 ? "implements LocoNet 1.1" : "is a DT-200") +",\n\tTrack Status is "+((trk & LnConstants.GTRK_IDLE) != 0 ? "On" : "Off") +",\n\tProgramming Track is "+((trk & LnConstants.GTRK_PROG_BUSY) != 0 ? "Busy" : "Available") +"\n\tSS2=0x"+Integer.toHexString(ss2) +", ID =0x"+Integer.toHexString(id2)+Integer.toHexString(id1)+"\n"; } else { logString = mode +" slot "+slot +":\n\tLoco "+locoAdrStr +" is "+LnConstants.CONSIST_STAT(stat) +", "+LnConstants.LOCO_STAT(stat) +", operating in "+LnConstants.DEC_MODE(stat)+" SS mode, and is going " +((dirf & LnConstants.DIRF_DIR)!=0 ? "in Reverse" : "Foward") +" at speed "+spd+",\n" +"\tF0="+((dirf & LnConstants.DIRF_F0) != 0 ? "On, " : "Off,") +" F1="+((dirf & LnConstants.DIRF_F1) != 0 ? "On, " : "Off,") +" F2="+((dirf & LnConstants.DIRF_F2) != 0 ? "On, " : "Off,") +" F3="+((dirf & LnConstants.DIRF_F3) != 0 ? "On, " : "Off,") +" F4="+((dirf & LnConstants.DIRF_F4) != 0 ? "On, " : "Off,") +" Sound1/F5="+((snd & LnConstants.SND_F5) != 0 ? "On, " : "Off,") +" Sound2/F6="+((snd & LnConstants.SND_F6) != 0 ? "On, " : "Off,") +" Sound3/F7="+((snd & LnConstants.SND_F7) != 0 ? "On, " : "Off,") +" Sound4/F8="+((snd & LnConstants.SND_F8) != 0 ? "On" : "Off") +"\n\tSS2=0x"+Integer.toHexString(ss2) +", ID =0x"+Integer.toHexString(id2)+Integer.toHexString(id1)+"\n"; } // end normal slot read/write case } // end of OPC_WR_SL_DATA, OPC_SL_RD_DATA case return logString; } /*********************************************************************************** * OPC_PEER_XFER 0xE5 ; move 8 bytes PEER to PEER, SRC->DST * * ; Message has response * * ; <0xE5>,<10>,<SRC>,<DSTL><DSTH>,<PXCT1>,<D1>, * * ; <D2>,<D3>,<D4>,<PXCT2>,<D5>,<D6>,<D7>, * * ; <D8>,<CHK> * * ; SRC/DST are 7 bit args. DSTL/H=0 is BROADCAST msg * * ; SRC=0 is MASTER * * ; SRC=0x70-0x7E are reserved * * ; SRC=7F is THROTTLE msg xfer, * * ; <DSTL><DSTH> encode ID#, * * ; <0><0> is THROT B'CAST * * ; <PXCT1>=<0,XC2,XC1,XC0 - D4.7,D3.7,D2.7,D1.7> * * ; XC0-XC2=ADR type CODE-0=7 bit Peer TO Peer adrs * * ; 1=<D1>is SRC HI,<D2>is DST HI * * ; <PXCT2>=<0,XC5,XC4,XC3 - D8.7,D7.7,D6.7,D5.7> * * ; XC3-XC5=data type CODE- 0=ANSI TEXT string, * * ; balance RESERVED * ***********************************************************************************/ case LnConstants.OPC_PEER_XFER: /* page 10 of Loconet PE */ int src = l.getElement(2); // source of transfer int dst_l = l.getElement(3); // ls 7 bits of destination int dst_h = l.getElement(4); // ms 7 bits of destination int pxct1 = l.getElement(5); int pxct2 = l.getElement(10); int d[] = l.getPeerXfrData(); return "Peer to Peer transfer: SRC=0x"+Integer.toHexString(src) +", DSTL=0x"+Integer.toHexString(dst_l) +", DSTH=0x"+Integer.toHexString(dst_h) +", PXCT1=0x"+Integer.toHexString(pxct1) +", PXCT2=0x"+Integer.toHexString(pxct2)+"\n" +"\tD1=0x"+Integer.toHexString(d[0]) +", D2=0x"+Integer.toHexString(d[1]) +", D3=0x"+Integer.toHexString(d[2]) +", D4=0x"+Integer.toHexString(d[3]) +", D5=0x"+Integer.toHexString(d[4]) +", D6=0x"+Integer.toHexString(d[5]) +", D7=0x"+Integer.toHexString(d[6]) +", D8=0x"+Integer.toHexString(d[7]) +"\n"; /*********************************************************************************** * 0xE4 ; * * ; * * ; <0xE4>,<0x09>,... * ***********************************************************************************/ case 0XE4: if (l.getElement(1)!=0x09) { forceHex = true; return "Unrecognized command varient\n"; } // OK, format int element = l.getElement(2)*128+l.getElement(3); int stat = l.getElement(5); String status; if ( (stat&0x10) !=0 ) if ( (stat&0x20) !=0 ) status = " AX, XA reserved; "; else status = " AX reserved; "; else if ( (stat&0x20) !=0 ) status = " XA reserved; "; else status = " no reservation; "; if ( (stat&0x01) !=0 ) status+="Turnout normal; "; else status+="Turnout reversed; "; if ( (stat&0x04) !=0 ) status+="Occupied"; else status+="Not occupied"; return "SE"+element+" reports AX:"+l.getElement(6)*4 +" XA:"+l.getElement(7)*4 +status+"\n"; /************************************************************************** * OPC_IMM_PACKET 0xED ;SEND n-byte packet immediate LACK * * ; Follow on message: LACK * * ; <0xED>,<0B>,<7F>,<REPS>,<DHI>,<IM1>,<IM2>, * * ; <IM3>,<IM4>,<IM5>,<CHK> * * ; <DHI>=<0,0,1,IM5.7-IM4.7,IM3.7,IM2.7,IM1.7> * * ; <REPS> D4,5,6=#IM bytes, * * ; D3=0(reserved); * * ; D2,1,0=repeat CNT * * ; IF Not limited MASTER then * * ; LACK=<B4>,<7D>,<7F>,<chk> if CMD ok * * ; IF limited MASTER then Lim Masters respond * * ; with <B4>,<7E>,<lim adr>,<chk> * * ; IF internal buffer BUSY/full respond * * ; with <B4>,<7D>,<0>,<chk> * * ; (NOT IMPLEMENTED IN DT200) * **************************************************************************/ case LnConstants.OPC_IMM_PACKET: /* page 11 of Loconet PE */ //sendPkt = (sendPktMsg *) msgBuf; int val7f = l.getElement(3); /* fixed value of 0x7f */ int reps = l.getElement(4); /* repeat count */ int dhi = l.getElement(5); /* high bits of data bytes */ int im1 = l.getElement(6); int im2 = l.getElement(7); int im3 = l.getElement(8); int im4 = l.getElement(9); int im5 = l.getElement(10); /* see if it really is a 'Send Packet' as defined in Loconet PE */ if (val7f == 0x7f) { /* it is */ return "Send packet immediate: "+((reps & 0x70) >> 4) +" bytes, repeat count "+(reps & 0x07) +", DHI=0x"+Integer.toHexString(dhi) +",\n\tIM1=0x"+Integer.toHexString(im1) +", IM2=0x"+Integer.toHexString(im2) +", IM3=0x"+Integer.toHexString(im3) +", IM4=0x"+Integer.toHexString(im4) +", IM5=0x"+Integer.toHexString(im5) +"\n"; } else { /* Hmmmm... */ forceHex = true; return "Weird Send Packet Immediate, 3rd byte id 0x"+Integer.toHexString(val7f) +" not 0x7f\n"; } default: forceHex = true; return "Command is not defined in Loconet Personal Use Edition 1.0\n"; } // end switch over opcode type - default handles unrecognized cases, so can't reach here } // end of format() member function
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/a6f5baeab4d6c54e6d56b3f1867a376e2177a64f/Llnmon.java/clean/jmri/jmrix/loconet/locomon/Llnmon.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 740, 12, 1333, 83, 7308, 1079, 328, 13, 288, 7734, 1250, 2405, 1482, 273, 629, 31, 282, 1748, 2405, 3298, 1267, 316, 333, 883, 35, 1195, 540, 202, 474, 6824, 31, 225, 368, 6269, 813, 924, 202, 474, 7507, 31, 13491, 1620, 261, 80, 18, 588, 3817, 1085, 10756, 288, 5411, 342, 19482, 14465, 2398, 380, 274, 576, 3506, 9841, 531, 3513, 2712, 55, 380, 2398, 380, 274, 10449, 273, 411, 51, 3513, 20401, 32, 3507, 14020, 34, 380, 2398, 380, 274, 13491, 380, 2398, 380, 19482, 636, 19, 13491, 342, 5021, 2751, 14, 2398, 380, 531, 3513, 67, 3000, 7474, 540, 374, 92, 11861, 282, 274, 28045, 21697, 981, 16, 423, 1506, 380, 2398, 20210, 2751, 19, 3639, 648, 511, 82, 2918, 18, 51, 3513, 67, 9681, 3000, 7474, 30, 7734, 1748, 1363, 1725, 434, 2851, 265, 278, 16628, 1195, 5411, 327, 315, 7786, 353, 21697, 64, 82, 14432, 13491, 342, 5021, 2751, 1007, 2398, 380, 531, 3513, 67, 43, 2419, 2246, 3639, 374, 92, 11149, 282, 274, 20402, 7212, 17511, 590, 380, 2398, 20210, 2751, 636, 5549, 3639, 648, 511, 82, 2918, 18, 51, 3513, 67, 43, 2419, 2246, 30, 1171, 1748, 1363, 1725, 434, 2851, 265, 278, 16628, 1195, 5411, 327, 315, 5160, 23783, 17511, 64, 82, 14432, 13491, 342, 5021, 2751, 14465, 2398, 380, 531, 3513, 67, 9681, 673, 540, 374, 92, 10261, 282, 274, 20402, 7212, 6229, 590, 380, 2398, 20210, 2751, 636, 19, 3639, 648, 511, 82, 2918, 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, 514, 740, 12, 1333, 83, 7308, 1079, 328, 13, 288, 7734, 1250, 2405, 1482, 273, 629, 31, 282, 1748, 2405, 3298, 1267, 316, 333, 883, 35, 1195, 540, 202, 474, 6824, 31, 225, 368, 6269, 813, 924, 202, 474, 7507, 31, 13491, 1620, 261, 80, 18, 588, 3817, 1085, 10756, 288, 5411, 342, 19482, 14465, 2398, 380, 274, 576, 3506, 9841, 531, 3513, 2712, 55, 380, 2398, 380, 274, 10449, 273, 411, 51, 3513, 20401, 32, 3507, 14020, 34, 380, 2398, 380, 274, 13491, 380, 2398, 380, 19482, 636, 19, 13491, 342, 5021, 2751, 14, 2398, 380, 531, 3513, 67, 3000, 7474, 540, 374, 92, 11861, 282, 274, 28045, 21697, 981, 16, 423, 1506, 380, 2398, 20210, 2 ]
return (EnumSyntax[]) enumValueTable.clone();
return enumValueTable.clone();
protected EnumSyntax[] getEnumValueTable() { return (EnumSyntax[]) enumValueTable.clone(); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/76d66c542831682bab339f2d172bb8e87585eec7/JobSheets.java/buggy/modules/print/src/main/java/common/javax/print/attribute/standard/JobSheets.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 6057, 8070, 8526, 26813, 620, 1388, 1435, 288, 3639, 327, 2792, 620, 1388, 18, 14056, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 6057, 8070, 8526, 26813, 620, 1388, 1435, 288, 3639, 327, 2792, 620, 1388, 18, 14056, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
new Label( pagebreakGroup, SWT.NONE ).setText( "After:" );
new Label( pagebreakGroup, SWT.NONE ).setText( Messages.getString("GroupDialog.PageBreakAfter") );
private void createGroupArea( Composite parent ) { Composite composite = new Composite( parent, SWT.NONE ); GridData layoutData = new GridData( GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING ); layoutData.verticalSpan = 2; composite.setLayoutData( layoutData ); composite.setLayout( new GridLayout( ) ); Group includeGroup = new Group( composite, SWT.NONE ); includeGroup.setText( GROUP_DLG_HEADER_FOOTER_LABEL ); includeGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); includeGroup.setLayout( new FillLayout( SWT.VERTICAL ) ); Composite includeGroupComposite = new Composite( includeGroup, SWT.NONE ); includeGroupComposite.setLayout( new GridLayout( ) ); includeHeader = new Button( includeGroupComposite, SWT.CHECK ); includeHeader.setText( GROUP_DLG_INCLUDE_HEADER_LABEL ); includeFooter = new Button( includeGroupComposite, SWT.CHECK ); includeFooter.setText( GROUP_DLG_INCLUDE_FOOTER_LABEL ); if ( inputGroup instanceof ListGroupHandle ) { includeGroup.setEnabled( false ); includeHeader.setEnabled( false ); includeFooter.setEnabled( false ); } Group sortingGroup = new Group( composite, SWT.NONE ); sortingGroup.setText( SORT_GROUP_TITLE ); sortingGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); sortingGroup.setLayout( new FillLayout( SWT.VERTICAL ) ); Composite sortingGroupComposite = new Composite( sortingGroup, SWT.NONE ); sortingGroupComposite.setLayout( new GridLayout( ) ); ascending = new Button( sortingGroupComposite, SWT.RADIO ); ascending.setText( sortByAscending.getDisplayName( ) ); descending = new Button( sortingGroupComposite, SWT.RADIO ); descending.setText( sortByDescending.getDisplayName( ) ); Group pagebreakGroup = new Group( composite, SWT.NONE ); // TODO i18n pagebreakGroup.setText( "Page break" ); pagebreakGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); GridLayout layout = new GridLayout( ); layout.numColumns = 2; pagebreakGroup.setLayout( layout ); // TODO i18n new Label( pagebreakGroup, SWT.NONE ).setText( "Before:" ); pagebreakBeforeCombo = new Combo( pagebreakGroup, SWT.NONE ); for ( int i = 0; i < pagebreakBeforeChoicesAll.length; i++ ) { pagebreakBeforeCombo.add( pagebreakBeforeChoicesAll[i].getDisplayName( ) ); } pagebreakBeforeCombo.setData( pagebreakBeforeChoicesAll ); new Label( pagebreakGroup, SWT.NONE ).setText( "After:" ); pagebreakAfterCombo = new Combo( pagebreakGroup, SWT.NONE ); for ( int i = 0; i < pagebreakAfterChoicesAll.length; i++ ) { pagebreakAfterCombo.add( pagebreakAfterChoicesAll[i].getDisplayName( ) ); } pagebreakAfterCombo.setData( pagebreakAfterChoicesAll ); repeatHeaderButton = new Button( pagebreakGroup, SWT.CHECK ); repeatHeaderButton.setText( "Repeat Header" ); GridData data = new GridData( ); data.horizontalSpan = 2; repeatHeaderButton.setLayoutData( data ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4560dd93349dc4bf0c0dcf026b72806a26247e3c/GroupDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/GroupDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1114, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9635, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 751, 3511, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 9506, 202, 96, 7145, 751, 18, 21654, 10109, 67, 26439, 67, 16061, 15870, 11272, 202, 202, 6741, 751, 18, 17824, 6952, 273, 576, 31, 202, 202, 27676, 18, 542, 3744, 751, 12, 3511, 751, 11272, 202, 202, 27676, 18, 542, 3744, 12, 394, 7145, 3744, 12, 262, 11272, 202, 202, 1114, 2341, 1114, 273, 394, 3756, 12, 9635, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6702, 1114, 18, 542, 1528, 12, 13839, 67, 8914, 43, 67, 7557, 67, 3313, 1974, 654, 67, 13545, 11272, 202, 202, 6702, 1114, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 6702, 1114, 18, 542, 3744, 12, 394, 14192, 3744, 12, 348, 8588, 18, 21654, 10109, 262, 11272, 202, 202, 9400, 2341, 1114, 9400, 273, 394, 14728, 12, 2341, 1114, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6702, 1114, 9400, 18, 542, 3744, 12, 394, 7145, 3744, 12, 262, 11272, 202, 202, 6702, 1864, 273, 394, 12569, 12, 2341, 1114, 9400, 16, 348, 8588, 18, 10687, 11272, 202, 202, 6702, 1864, 18, 542, 1528, 12, 13839, 67, 8914, 43, 67, 26003, 67, 7557, 67, 13545, 11272, 202, 202, 6702, 13787, 273, 394, 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, 752, 1114, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9635, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 751, 3511, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 9506, 202, 96, 7145, 751, 18, 21654, 10109, 67, 26439, 67, 16061, 15870, 11272, 202, 202, 6741, 751, 18, 17824, 6952, 273, 576, 31, 202, 202, 27676, 18, 542, 3744, 751, 12, 3511, 751, 11272, 202, 202, 27676, 18, 542, 3744, 12, 394, 7145, 3744, 12, 262, 11272, 202, 202, 1114, 2341, 1114, 273, 394, 3756, 12, 9635, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6702, 1114, 18, 542, 1528, 12, 13839, 2 ]
super(previous);
super();
public SymbolTable (Environment previous) { super(previous); }
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/d4bd32ac1682e3799b6144168ecd15868479c399/SymbolTable.java/buggy/gnu/commonlisp/lang/SymbolTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8565, 1388, 261, 5494, 2416, 13, 225, 288, 565, 2240, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 8565, 1388, 261, 5494, 2416, 13, 225, 288, 565, 2240, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 validate() throws BuildException { if (destdir == null) { throw new BuildException("Need to specify the 'destdir' attribute"); } if (!destdir.exists() || !destdir.isDirectory()) { if (!destdir.mkdirs()) { throw new BuildException("Could not create the specified destdir"); } } }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibReport.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 5662, 1435, 15069, 3116, 503, 95, 202, 202, 430, 12, 10488, 1214, 631, 2011, 15329, 1082, 202, 12849, 2704, 3116, 503, 2932, 14112, 14627, 705, 1164, 5787, 14271, 395, 1214, 11, 4589, 8863, 202, 202, 97, 202, 202, 430, 12, 5, 10488, 1214, 18, 1808, 1435, 20081, 5, 10488, 1214, 18, 291, 2853, 10756, 95, 1082, 202, 430, 12, 5, 10488, 1214, 18, 24816, 8291, 10756, 95, 9506, 202, 12849, 2704, 3116, 503, 2932, 4445, 902, 27350, 546, 281, 705, 939, 10488, 1214, 8863, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5662, 1435, 15069, 3116, 503, 95, 202, 202, 430, 12, 10488, 1214, 631, 2011, 15329, 1082, 202, 12849, 2704, 3116, 503, 2932, 14112, 14627, 705, 1164, 5787, 14271, 395, 1214, 11, 4589, 8863, 202, 202, 97, 202, 202, 430, 12, 5, 10488, 1214, 18, 1808, 1435, 20081, 5, 10488, 1214, 18, 291, 2853, 10756, 95, 1082, 202, 430, 12, 5, 10488, 1214, 18, 24816, 8291, 10756, 95, 9506, 202, 12849, 2704, 3116, 503, 2932, 4445, 902, 27350, 546, 281, 705, 939, 10488, 1214, 8863, 1082, 202, 97, 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 ]
inlineStyle.setCssText( style );
if ( style != null && style.length( ) != 0 ) { inlineStyle = new StyleDeclaration( ); inlineStyle.setCssText( style ); }
protected void readField( int version, int filedId, ObjectInputStream in ) throws IOException, ClassNotFoundException { switch ( filedId ) { case FIELD_NAME : name = in.readUTF( ); break; case FIELD_X : String value = in.readUTF( ); x = new DimensionType( value ); break; case FIELD_Y : value = in.readUTF( ); y = new DimensionType( value ); break; case FIELD_WIDTH : value = in.readUTF( ); width = new DimensionType( value ); break; case FIELD_HEIGHT : value = in.readUTF( ); height = new DimensionType( value ); break; case FIELD_HYPERLINK : hyperlink = new ActionContent( ); hyperlink.readContent( in ); break; case FIELD_BOOKMARK : bookmark = in.readUTF( ); break; case FIELD_HELPTEXT : helpText = in.readUTF( ); break; case FIELD_INLINESTYLE : inlineStyle = new StyleDeclaration( ); String style = in.readUTF( ); inlineStyle.setCssText( style ); break; case FIELD_INSTANCE_ID : value = in.readUTF( ); instanceId = InstanceID.parse( value ); break; case FIELD_TOC : toc = in.readUTF( ); break; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b2ce75cb6df7dc1d4e556a65b03ea787395251cf/AbstractContent.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/AbstractContent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 855, 974, 12, 509, 1177, 16, 509, 585, 72, 548, 16, 22726, 316, 262, 1082, 202, 15069, 1860, 16, 10403, 202, 95, 202, 202, 9610, 261, 585, 72, 548, 262, 202, 202, 95, 1082, 202, 3593, 9921, 67, 1985, 294, 9506, 202, 529, 273, 316, 18, 896, 5159, 12, 11272, 9506, 202, 8820, 31, 1082, 202, 3593, 9921, 67, 60, 294, 9506, 202, 780, 460, 273, 316, 18, 896, 5159, 12, 11272, 9506, 202, 92, 273, 394, 13037, 559, 12, 460, 11272, 9506, 202, 8820, 31, 1082, 202, 3593, 9921, 67, 61, 294, 9506, 202, 1132, 273, 316, 18, 896, 5159, 12, 11272, 9506, 202, 93, 273, 394, 13037, 559, 12, 460, 11272, 9506, 202, 8820, 31, 1082, 202, 3593, 9921, 67, 10023, 294, 9506, 202, 1132, 273, 316, 18, 896, 5159, 12, 11272, 9506, 202, 2819, 273, 394, 13037, 559, 12, 460, 11272, 9506, 202, 8820, 31, 1082, 202, 3593, 9921, 67, 14595, 294, 9506, 202, 1132, 273, 316, 18, 896, 5159, 12, 11272, 9506, 202, 4210, 273, 394, 13037, 559, 12, 460, 11272, 9506, 202, 8820, 31, 1082, 202, 3593, 9921, 67, 44, 61, 3194, 10554, 294, 9506, 202, 17203, 1232, 273, 394, 4382, 1350, 12, 11272, 9506, 202, 17203, 1232, 18, 896, 1350, 12, 316, 11272, 9506, 202, 8820, 31, 1082, 202, 3593, 9921, 67, 28163, 12693, 294, 9506, 202, 3618, 3355, 273, 316, 18, 896, 5159, 12, 11272, 9506, 202, 8820, 31, 1082, 202, 3593, 9921, 67, 27396, 5151, 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, 1117, 918, 855, 974, 12, 509, 1177, 16, 509, 585, 72, 548, 16, 22726, 316, 262, 1082, 202, 15069, 1860, 16, 10403, 202, 95, 202, 202, 9610, 261, 585, 72, 548, 262, 202, 202, 95, 1082, 202, 3593, 9921, 67, 1985, 294, 9506, 202, 529, 273, 316, 18, 896, 5159, 12, 11272, 9506, 202, 8820, 31, 1082, 202, 3593, 9921, 67, 60, 294, 9506, 202, 780, 460, 273, 316, 18, 896, 5159, 12, 11272, 9506, 202, 92, 273, 394, 13037, 559, 12, 460, 11272, 9506, 202, 8820, 31, 1082, 202, 3593, 9921, 67, 61, 294, 9506, 202, 1132, 273, 316, 18, 896, 5159, 12, 11272, 9506, 202, 93, 273, 394, 13037, 559, 12, 460, 11272, 9506, 202, 2 ]
temp = File.createTempFile("TaxonDNA_test_", ".tmp");
temp = File.createTempFile("SpeciesIdentifier_test_", ".tmp");
public File tempfile() { File temp; try { temp = File.createTempFile("TaxonDNA_test_", ".tmp"); } catch(IOException e) { return null; } temp.deleteOnExit(); return temp; }
47892 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47892/a6d88e4158cc8d126a8bf3a2e75fa0be96c5e16b/Tester.java/clean/TaxonDNA/Redacted/Tester.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1387, 13275, 1435, 288, 202, 202, 812, 1906, 31, 202, 202, 698, 288, 1082, 202, 5814, 273, 1387, 18, 2640, 20181, 2932, 7731, 265, 8609, 37, 67, 3813, 67, 3113, 3552, 5645, 8863, 202, 202, 97, 1044, 12, 14106, 425, 13, 288, 1082, 202, 2463, 446, 31, 1082, 202, 97, 202, 202, 5814, 18, 3733, 1398, 6767, 5621, 202, 202, 2463, 1906, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1387, 13275, 1435, 288, 202, 202, 812, 1906, 31, 202, 202, 698, 288, 1082, 202, 5814, 273, 1387, 18, 2640, 20181, 2932, 7731, 265, 8609, 37, 67, 3813, 67, 3113, 3552, 5645, 8863, 202, 202, 97, 1044, 12, 14106, 425, 13, 288, 1082, 202, 2463, 446, 31, 1082, 202, 97, 202, 202, 5814, 18, 3733, 1398, 6767, 5621, 202, 202, 2463, 1906, 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 ]
if(possibleAssignment == null){ return null; }
public static PsiField getFieldOfSetter(PsiMethod method) { final PsiParameterList parameterList = method.getParameterList(); final PsiParameter[] parameters = parameterList.getParameters(); if (parameters.length != 1){ return null; } @NonNls final String name = method.getName(); if (name == null || !name.startsWith("set")) { return null; } if(method.hasModifierProperty(PsiModifier.SYNCHRONIZED)){ return null; } final PsiCodeBlock body = method.getBody(); if(body == null){ return null; } final PsiStatement[] statements = body.getStatements(); if(statements.length != 1){ return null; } final PsiStatement statement = statements[0]; if(!(statement instanceof PsiExpressionStatement)){ return null; } final PsiExpressionStatement possibleAssignmentStatement = (PsiExpressionStatement) statement; final PsiExpression possibleAssignment = possibleAssignmentStatement.getExpression(); if(possibleAssignment == null){ return null; } if(!(possibleAssignment instanceof PsiAssignmentExpression)){ return null; } final PsiAssignmentExpression assignment = (PsiAssignmentExpression) possibleAssignment; final PsiJavaToken sign = assignment.getOperationSign(); if(!JavaTokenType.EQ.equals(sign.getTokenType())){ return null; } final PsiExpression lhs = assignment.getLExpression(); if(!(lhs instanceof PsiReferenceExpression)){ return null; } final PsiReferenceExpression reference = (PsiReferenceExpression) lhs; final PsiExpression qualifier = reference.getQualifierExpression(); if(qualifier != null && !(qualifier instanceof PsiThisExpression) && !(qualifier instanceof PsiSuperExpression)){ return null; } final PsiElement referent = reference.resolve(); if(referent == null){ return null; } if(!(referent instanceof PsiField)){ return null; } final PsiField field = (PsiField) referent; final PsiClass fieldContainingClass = field.getContainingClass(); final PsiClass methodContainingClass = method.getContainingClass(); if(!InheritanceUtil.isInheritorOrSelf(methodContainingClass, fieldContainingClass, true)){ return null; } final PsiExpression rhs = assignment.getRExpression(); if(!(rhs instanceof PsiReferenceExpression)){ return null; } final PsiReferenceExpression rReference = (PsiReferenceExpression) rhs; final PsiExpression rQualifier = rReference.getQualifierExpression(); if(rQualifier != null){ return null; } final PsiElement rReferent = rReference.resolve(); if(rReferent == null){ return null; } if(!(rReferent instanceof PsiParameter)){ return null; } final PsiType fieldType = field.getType(); final PsiType parameterType = ((PsiVariable) rReferent).getType(); if(fieldType == null || parameterType == null){ return null; } if (fieldType.equalsToText(parameterType.getCanonicalText())) { return field; } else { return null; } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/e9c925dd88f5fd502839e3e9b91653e39ca4bfce/MethodUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/MethodUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 453, 7722, 974, 5031, 951, 8465, 12, 52, 7722, 1305, 707, 13, 288, 3639, 727, 453, 7722, 1662, 682, 1569, 682, 273, 707, 18, 588, 1662, 682, 5621, 3639, 727, 453, 7722, 1662, 8526, 1472, 273, 1569, 682, 18, 588, 2402, 5621, 3639, 309, 261, 3977, 18, 2469, 480, 404, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 632, 3989, 50, 3251, 727, 514, 508, 273, 707, 18, 17994, 5621, 3639, 309, 261, 529, 422, 446, 747, 401, 529, 18, 17514, 1190, 2932, 542, 6, 3719, 288, 5411, 327, 446, 31, 3639, 289, 3639, 309, 12, 2039, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 7474, 50, 1792, 19359, 24131, 3719, 95, 5411, 327, 446, 31, 3639, 289, 3639, 727, 453, 7722, 1085, 1768, 1417, 273, 707, 18, 588, 2250, 5621, 3639, 309, 12, 3432, 422, 446, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 727, 453, 7722, 3406, 8526, 6317, 273, 1417, 18, 588, 14663, 5621, 3639, 309, 12, 18393, 18, 2469, 480, 404, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 727, 453, 7722, 3406, 3021, 273, 6317, 63, 20, 15533, 3639, 309, 12, 5, 12, 11516, 1276, 453, 7722, 2300, 3406, 3719, 95, 5411, 327, 446, 31, 3639, 289, 3639, 727, 453, 7722, 2300, 3406, 3323, 7729, 3406, 273, 7734, 261, 52, 7722, 2300, 3406, 13, 3021, 31, 3639, 727, 453, 7722, 2300, 3323, 7729, 273, 7734, 3323, 7729, 3406, 18, 588, 2300, 5621, 3639, 309, 12, 12708, 7729, 422, 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, 453, 7722, 974, 5031, 951, 8465, 12, 52, 7722, 1305, 707, 13, 288, 3639, 727, 453, 7722, 1662, 682, 1569, 682, 273, 707, 18, 588, 1662, 682, 5621, 3639, 727, 453, 7722, 1662, 8526, 1472, 273, 1569, 682, 18, 588, 2402, 5621, 3639, 309, 261, 3977, 18, 2469, 480, 404, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 632, 3989, 50, 3251, 727, 514, 508, 273, 707, 18, 17994, 5621, 3639, 309, 261, 529, 422, 446, 747, 401, 529, 18, 17514, 1190, 2932, 542, 6, 3719, 288, 5411, 327, 446, 31, 3639, 289, 3639, 309, 12, 2039, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 7474, 50, 1792, 19359, 24131, 3719, 95, 5411, 327, 446, 2 ]
row.setColumn(pk, nid); ids.put(table, new Integer(nid));
int new_id = current_id + 1; row.setColumn(pk, new_id); ids.put(table, new Integer(new_id));
private static synchronized void assignId (TableRow row) throws SQLException { String table = canonicalize(row.getTable()); String pk = getPrimaryKeyColumn(table); Integer id = (Integer) ids.get(table); int nid = id == null ? -1 : id.intValue() + 1; if (id == null) { String sql = MessageFormat.format ("select max({0}) from {1}", new Object[] { pk, table} ); Statement statement = null; try { statement = getConnection().createStatement(); ResultSet results = statement.executeQuery(sql); nid = results.next() ? results.getInt(1) : -1; } finally { if (statement != null) { try { statement.close(); } catch (SQLException sqle) {} } } } row.setColumn(pk, nid); ids.put(table, new Integer(nid)); }
47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/8ad4f8baede5734384d93c5100f244eea9de5a13/DatabaseManager.java/clean/dspace/src/org/dspace/storage/rdbms/DatabaseManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 3852, 918, 2683, 548, 261, 30650, 1027, 13, 3639, 1216, 6483, 565, 288, 3639, 514, 1014, 273, 25839, 12, 492, 18, 588, 1388, 10663, 3639, 514, 2365, 273, 15371, 1494, 12, 2121, 1769, 3639, 2144, 612, 273, 261, 4522, 13, 3258, 18, 588, 12, 2121, 1769, 3639, 509, 19416, 273, 612, 422, 446, 692, 300, 21, 294, 612, 18, 474, 620, 1435, 397, 404, 31, 3639, 309, 261, 350, 422, 446, 13, 3639, 288, 5411, 514, 1847, 273, 17377, 18, 2139, 7734, 7566, 4025, 943, 12590, 20, 6792, 628, 288, 21, 1532, 16, 1171, 394, 1033, 8526, 288, 2365, 16, 1014, 97, 11272, 5411, 8056, 3021, 273, 446, 31, 5411, 775, 5411, 288, 7734, 3021, 273, 6742, 7675, 2640, 3406, 5621, 7734, 10842, 1686, 273, 3021, 18, 8837, 1138, 12, 4669, 1769, 7734, 19416, 273, 1686, 18, 4285, 1435, 692, 1686, 18, 588, 1702, 12, 21, 13, 294, 300, 21, 31, 5411, 289, 5411, 3095, 5411, 288, 7734, 309, 261, 11516, 480, 446, 13, 7734, 288, 10792, 775, 10792, 288, 13491, 3021, 18, 4412, 5621, 10792, 289, 10792, 1044, 261, 23116, 4744, 298, 13, 2618, 7734, 289, 5411, 289, 3639, 289, 3639, 1027, 18, 542, 1494, 12, 5465, 16, 19416, 1769, 3639, 3258, 18, 458, 12, 2121, 16, 394, 2144, 12, 31030, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 3852, 918, 2683, 548, 261, 30650, 1027, 13, 3639, 1216, 6483, 565, 288, 3639, 514, 1014, 273, 25839, 12, 492, 18, 588, 1388, 10663, 3639, 514, 2365, 273, 15371, 1494, 12, 2121, 1769, 3639, 2144, 612, 273, 261, 4522, 13, 3258, 18, 588, 12, 2121, 1769, 3639, 509, 19416, 273, 612, 422, 446, 692, 300, 21, 294, 612, 18, 474, 620, 1435, 397, 404, 31, 3639, 309, 261, 350, 422, 446, 13, 3639, 288, 5411, 514, 1847, 273, 17377, 18, 2139, 7734, 7566, 4025, 943, 12590, 20, 6792, 628, 288, 21, 1532, 16, 1171, 394, 1033, 8526, 288, 2365, 16, 1014, 97, 11272, 5411, 8056, 3021, 273, 446, 31, 5411, 775, 5411, 288, 7734, 3021, 273, 2 ]
return oid;
return VM_Magic.objectAsAddress(object).add(OBJECT_OID_OFFSET).loadWord();
public static Word getOID() { if (VM.VerifyAssertions) VM._assert(VM.CompileForGCTracing); if (VM.CompileForGCTracing) return oid; else return Word.zero(); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/VM_MiscHeader.java/clean/rvm/src/vm/objectModel/VM_MiscHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 9926, 336, 12945, 1435, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 7397, 18, 9937, 1290, 43, 1268, 354, 2822, 1769, 565, 309, 261, 7397, 18, 9937, 1290, 43, 1268, 354, 2822, 13, 1377, 327, 8251, 67, 19289, 18, 1612, 1463, 1887, 12, 1612, 2934, 1289, 12, 9422, 67, 12945, 67, 11271, 2934, 945, 3944, 5621, 565, 469, 1377, 327, 9926, 18, 7124, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 9926, 336, 12945, 1435, 288, 565, 309, 261, 7397, 18, 8097, 8213, 1115, 13, 8251, 6315, 11231, 12, 7397, 18, 9937, 1290, 43, 1268, 354, 2822, 1769, 565, 309, 261, 7397, 18, 9937, 1290, 43, 1268, 354, 2822, 13, 1377, 327, 8251, 67, 19289, 18, 1612, 1463, 1887, 12, 1612, 2934, 1289, 12, 9422, 67, 12945, 67, 11271, 2934, 945, 3944, 5621, 565, 469, 1377, 327, 9926, 18, 7124, 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 ]
public static int set_str (int dest[], byte[] str, int str_len, int base) { int size = 0; if ((base & (base - 1)) == 0) { // The base is a power of 2. Read the input string from // least to most significant character/digit. */ int next_bitpos = 0; int bits_per_indigit = 0; for (int i = base; (i >>= 1) != 0; ) bits_per_indigit++; int res_digit = 0; for (int i = str_len; --i >= 0; ) { int inp_digit = str[i]; res_digit |= inp_digit << next_bitpos; next_bitpos += bits_per_indigit; if (next_bitpos >= 32) { dest[size++] = res_digit; next_bitpos -= 32; res_digit = inp_digit >> (bits_per_indigit - next_bitpos); } } if (res_digit != 0) dest[size++] = res_digit; } else { // General case. The base is not a power of 2. int indigits_per_limb = MPN.chars_per_word (base); int str_pos = 0; while (str_pos < str_len) { int chunk = str_len - str_pos; if (chunk > indigits_per_limb) chunk = indigits_per_limb; int res_digit = str[str_pos++]; int big_base = base; while (--chunk > 0) { res_digit = res_digit * base + str[str_pos++]; big_base *= base; } int cy_limb; if (size == 0) cy_limb = res_digit; else { cy_limb = MPN.mul_1 (dest, dest, size, big_base); cy_limb += MPN.add_1 (dest, dest, size, res_digit); } if (cy_limb != 0) dest[size++] = cy_limb; } } return size; }
37648 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37648/0e8c55573e9a00cd8a2690b47ba6e6acf771fcd8/MPN.java/buggy/gnu/math/MPN.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 444, 67, 701, 261, 474, 1570, 63, 6487, 1160, 8526, 609, 16, 509, 609, 67, 1897, 16, 509, 1026, 13, 225, 288, 565, 509, 963, 273, 374, 31, 565, 309, 14015, 1969, 473, 261, 1969, 300, 404, 3719, 422, 374, 13, 1377, 288, 202, 759, 1021, 1026, 353, 279, 7212, 434, 576, 18, 225, 2720, 326, 810, 533, 628, 202, 759, 4520, 358, 4486, 14177, 3351, 19, 11052, 18, 225, 1195, 225, 202, 474, 1024, 67, 3682, 917, 273, 374, 31, 202, 474, 4125, 67, 457, 67, 728, 360, 305, 273, 374, 31, 202, 1884, 261, 474, 277, 273, 1026, 31, 261, 77, 23359, 404, 13, 480, 374, 31, 262, 4125, 67, 457, 67, 728, 360, 305, 9904, 31, 202, 474, 400, 67, 11052, 273, 374, 31, 225, 202, 1884, 261, 474, 277, 273, 609, 67, 1897, 31, 225, 1493, 77, 1545, 374, 31, 262, 202, 225, 288, 202, 565, 509, 12789, 67, 11052, 273, 609, 63, 77, 15533, 202, 565, 400, 67, 11052, 5626, 12789, 67, 11052, 2296, 1024, 67, 3682, 917, 31, 202, 565, 1024, 67, 3682, 917, 1011, 4125, 67, 457, 67, 728, 360, 305, 31, 202, 565, 309, 261, 4285, 67, 3682, 917, 1545, 3847, 13, 202, 1377, 288, 202, 202, 10488, 63, 1467, 9904, 65, 273, 400, 67, 11052, 31, 202, 202, 4285, 67, 3682, 917, 3947, 3847, 31, 202, 202, 455, 67, 11052, 273, 12789, 67, 11052, 1671, 261, 6789, 67, 457, 67, 728, 360, 305, 300, 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, 760, 509, 444, 67, 701, 261, 474, 1570, 63, 6487, 1160, 8526, 609, 16, 509, 609, 67, 1897, 16, 509, 1026, 13, 225, 288, 565, 509, 963, 273, 374, 31, 565, 309, 14015, 1969, 473, 261, 1969, 300, 404, 3719, 422, 374, 13, 1377, 288, 202, 759, 1021, 1026, 353, 279, 7212, 434, 576, 18, 225, 2720, 326, 810, 533, 628, 202, 759, 4520, 358, 4486, 14177, 3351, 19, 11052, 18, 225, 1195, 225, 202, 474, 1024, 67, 3682, 917, 273, 374, 31, 202, 474, 4125, 67, 457, 67, 728, 360, 305, 273, 374, 31, 202, 1884, 261, 474, 277, 273, 1026, 31, 261, 77, 23359, 404, 13, 480, 374, 31, 262, 4125, 67, 457, 67, 728, 2 ]
store.setValue(IWorkbenchPreferenceConstants.RUN_IN_BACKGROUND,
PrefUtil.getAPIPreferenceStore().setValue(IWorkbenchPreferenceConstants.RUN_IN_BACKGROUND,
public boolean performOk() { IPreferenceStore store = getPreferenceStore(); // store the keep cycle part dialogs sticky preference store.setValue(IPreferenceConstants.STICKY_CYCLE, stickyCycleButton .getSelection()); store.setValue(IPreferenceConstants.OPEN_ON_SINGLE_CLICK, openOnSingleClick); store.setValue(IPreferenceConstants.SELECT_ON_HOVER, selectOnHover); store.setValue(IPreferenceConstants.OPEN_AFTER_DELAY, openAfterDelay); store.setValue(IWorkbenchPreferenceConstants.RUN_IN_BACKGROUND, showUserDialogButton.getSelection()); int singleClickMethod = openOnSingleClick ? OpenStrategy.SINGLE_CLICK : OpenStrategy.DOUBLE_CLICK; if (openOnSingleClick) { if (selectOnHover) { singleClickMethod |= OpenStrategy.SELECT_ON_HOVER; } if (openAfterDelay) { singleClickMethod |= OpenStrategy.ARROW_KEYS_OPEN; } } OpenStrategy.setOpenMethod(singleClickMethod); WorkbenchPlugin.getDefault().savePluginPreferences(); return true; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/825f4226f6e277d2e1a49f89386297d2c350f916/WorkbenchPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 3073, 8809, 1435, 288, 3639, 467, 9624, 2257, 1707, 273, 336, 9624, 2257, 5621, 3639, 368, 1707, 326, 3455, 8589, 1087, 7609, 14072, 21750, 11555, 3639, 1707, 18, 542, 620, 12, 45, 9624, 2918, 18, 882, 16656, 61, 67, 16068, 23181, 16, 21750, 13279, 3616, 7734, 263, 588, 6233, 10663, 3639, 1707, 18, 542, 620, 12, 45, 9624, 2918, 18, 11437, 67, 673, 67, 20184, 67, 7697, 3507, 16, 7734, 1696, 1398, 5281, 6563, 1769, 3639, 1707, 18, 542, 620, 12, 45, 9624, 2918, 18, 4803, 67, 673, 67, 7995, 2204, 16, 2027, 1398, 21184, 1769, 3639, 1707, 18, 542, 620, 12, 45, 9624, 2918, 18, 11437, 67, 18249, 67, 26101, 16, 1696, 4436, 6763, 1769, 3639, 28184, 1304, 18, 588, 2557, 9624, 2257, 7675, 542, 620, 12, 45, 2421, 22144, 9624, 2918, 18, 15238, 67, 706, 67, 8720, 20166, 16, 7734, 2405, 1299, 6353, 3616, 18, 588, 6233, 10663, 3639, 509, 2202, 6563, 1305, 273, 1696, 1398, 5281, 6563, 692, 3502, 4525, 18, 20184, 67, 7697, 3507, 7734, 294, 3502, 4525, 18, 17088, 67, 7697, 3507, 31, 3639, 309, 261, 3190, 1398, 5281, 6563, 13, 288, 5411, 309, 261, 4025, 1398, 21184, 13, 288, 7734, 2202, 6563, 1305, 5626, 3502, 4525, 18, 4803, 67, 673, 67, 7995, 2204, 31, 5411, 289, 5411, 309, 261, 3190, 4436, 6763, 13, 288, 7734, 2202, 6563, 1305, 5626, 3502, 4525, 18, 985, 11226, 67, 16333, 67, 11437, 31, 5411, 289, 3639, 289, 3639, 3502, 4525, 18, 542, 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, 1250, 3073, 8809, 1435, 288, 3639, 467, 9624, 2257, 1707, 273, 336, 9624, 2257, 5621, 3639, 368, 1707, 326, 3455, 8589, 1087, 7609, 14072, 21750, 11555, 3639, 1707, 18, 542, 620, 12, 45, 9624, 2918, 18, 882, 16656, 61, 67, 16068, 23181, 16, 21750, 13279, 3616, 7734, 263, 588, 6233, 10663, 3639, 1707, 18, 542, 620, 12, 45, 9624, 2918, 18, 11437, 67, 673, 67, 20184, 67, 7697, 3507, 16, 7734, 1696, 1398, 5281, 6563, 1769, 3639, 1707, 18, 542, 620, 12, 45, 9624, 2918, 18, 4803, 67, 673, 67, 7995, 2204, 16, 2027, 1398, 21184, 1769, 3639, 1707, 18, 542, 620, 12, 45, 9624, 2918, 18, 11437, 67, 18249, 67, 26101, 16, 1696, 4436, 6763, 1769, 2 ]
return (((b0-'0') * 100) + ((b1-'0') * 10) + (b2-'0'));
return (((b0-(byte)'0') * 100) + ((b1-(byte)'0') * 10) + (b2-(byte)'0'));
protected synchronized int readResponse(ByteBuf into_buf) throws IOException{ ByteBuf b = (into_buf != null ? into_buf : new ByteBuf()); readLine(b); if (b.length() < 4) throw new NNTPException("improper NNTP response: \"" + b + "\""); byte b0 = b.byteAt(0); byte b1 = b.byteAt(1); byte b2 = b.byteAt(2); if (b0 != '1' && b0 != '2' && b0 != '3') throw new NNTPException("NNTP error: \"" + b + "\""); return (((b0-'0') * 100) + ((b1-'0') * 10) + (b2-'0')); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/de607c82e274a450526cd77de822002985cd7767/NNTPConnection.java/clean/grendel/storage/NNTPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 3852, 509, 26694, 12, 3216, 5503, 1368, 67, 4385, 13, 1216, 1860, 95, 565, 17120, 324, 273, 261, 18591, 67, 4385, 480, 446, 692, 1368, 67, 4385, 294, 394, 17120, 10663, 565, 12273, 12, 70, 1769, 565, 309, 261, 70, 18, 2469, 1435, 411, 1059, 13, 1377, 604, 394, 423, 1784, 52, 503, 2932, 381, 22754, 423, 1784, 52, 766, 30, 11843, 397, 324, 397, 11143, 1769, 565, 1160, 324, 20, 273, 324, 18, 7229, 861, 12, 20, 1769, 565, 1160, 324, 21, 273, 324, 18, 7229, 861, 12, 21, 1769, 565, 1160, 324, 22, 273, 324, 18, 7229, 861, 12, 22, 1769, 565, 309, 261, 70, 20, 480, 296, 21, 11, 597, 324, 20, 480, 296, 22, 11, 597, 324, 20, 480, 296, 23, 6134, 1377, 604, 394, 423, 1784, 52, 503, 2932, 50, 1784, 52, 555, 30, 11843, 397, 324, 397, 11143, 1769, 565, 327, 261, 12443, 70, 20, 17, 12, 7229, 2506, 20, 6134, 380, 2130, 13, 397, 14015, 70, 21, 17, 12, 7229, 2506, 20, 6134, 380, 1728, 13, 397, 261, 70, 22, 17, 12, 7229, 2506, 20, 6134, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 3852, 509, 26694, 12, 3216, 5503, 1368, 67, 4385, 13, 1216, 1860, 95, 565, 17120, 324, 273, 261, 18591, 67, 4385, 480, 446, 692, 1368, 67, 4385, 294, 394, 17120, 10663, 565, 12273, 12, 70, 1769, 565, 309, 261, 70, 18, 2469, 1435, 411, 1059, 13, 1377, 604, 394, 423, 1784, 52, 503, 2932, 381, 22754, 423, 1784, 52, 766, 30, 11843, 397, 324, 397, 11143, 1769, 565, 1160, 324, 20, 273, 324, 18, 7229, 861, 12, 20, 1769, 565, 1160, 324, 21, 273, 324, 18, 7229, 861, 12, 21, 1769, 565, 1160, 324, 22, 273, 324, 18, 7229, 861, 12, 22, 1769, 565, 309, 261, 70, 20, 480, 296, 21, 11, 597, 324, 20, 480, 296, 2 ]
getLocalVariableName(1)
getLocalVariableName(pc, 1)
public void _fload_1(int pc) { dumpPcNumber(pc); buffer.append(Util.bind("classformat.load", //$NON-NLS-1$ new String[] { OpcodeStringValues.BYTECODE_NAMES[IOpcodeMnemonics.FLOAD_1], getLocalVariableName(1) } )); writeNewLine(); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/ad8944ba8706757e37dc2af79b4fac14d5ba14dd/DefaultBytecodeVisitor.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/util/DefaultBytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 389, 74, 945, 67, 21, 12, 474, 6125, 13, 288, 202, 202, 8481, 28136, 1854, 12, 2436, 1769, 202, 202, 4106, 18, 6923, 12, 1304, 18, 4376, 2932, 1106, 2139, 18, 945, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2704, 514, 8526, 288, 9506, 202, 22808, 780, 1972, 18, 15377, 5572, 67, 16257, 63, 45, 22808, 29668, 4758, 2102, 18, 42, 7783, 67, 21, 6487, 9506, 202, 588, 2042, 21519, 12, 21, 13, 1082, 202, 97, 202, 202, 10019, 202, 202, 2626, 31453, 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, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 389, 74, 945, 67, 21, 12, 474, 6125, 13, 288, 202, 202, 8481, 28136, 1854, 12, 2436, 1769, 202, 202, 4106, 18, 6923, 12, 1304, 18, 4376, 2932, 1106, 2139, 18, 945, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2704, 514, 8526, 288, 9506, 202, 22808, 780, 1972, 18, 15377, 5572, 67, 16257, 63, 45, 22808, 29668, 4758, 2102, 18, 42, 7783, 67, 21, 6487, 9506, 202, 588, 2042, 21519, 12, 21, 13, 1082, 202, 97, 202, 202, 10019, 202, 202, 2626, 31453, 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 ]
super.deliverMessage(message, dest);
MessageAttributes result = super.deliverMessage(message, dest);
public void deliverMessage(AttributedMessage message, MessageAddress dest) throws MisdeliveredMessageException { super.deliverMessage(message, dest); notifyWatchersOfReceive(message); }
7172 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7172/a69092873a55ad4e861c10bd9aae550734a1c839/WatcherAspect.java/buggy/mtsstd/src/org/cougaar/mts/std/WatcherAspect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 11795, 1079, 12, 861, 11050, 1079, 883, 16, 4405, 282, 2350, 1887, 1570, 13, 3196, 565, 1216, 16584, 26672, 329, 31270, 202, 95, 202, 565, 2240, 18, 26672, 1079, 12, 2150, 16, 1570, 1769, 202, 565, 5066, 5234, 414, 951, 11323, 12, 2150, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11795, 1079, 12, 861, 11050, 1079, 883, 16, 4405, 282, 2350, 1887, 1570, 13, 3196, 565, 1216, 16584, 26672, 329, 31270, 202, 95, 202, 565, 2240, 18, 26672, 1079, 12, 2150, 16, 1570, 1769, 202, 565, 5066, 5234, 414, 951, 11323, 12, 2150, 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 ]
if(running.length == 0)
if(running.length == 0) { insertedAllFiles = true;
public void start() throws InserterException { Logger.minor(this, "Starting "+this); PutHandler[] running; synchronized(this) { running = (PutHandler[]) runningPutHandlers.toArray(new PutHandler[runningPutHandlers.size()]); } try { for(int i=0;i<running.length;i++) { running[i].start(); } Logger.minor(this, "Started "+running.length+" PutHandler's for "+this); if(running.length == 0) gotAllMetadata(); } catch (InserterException e) { cancelAndFinish(); throw e; } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/8bfd7bca2d15da1292dcb051b79b91d752e9bc16/SimpleManifestPutter.java/buggy/src/freenet/client/async/SimpleManifestPutter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 11715, 13773, 2211, 1769, 202, 202, 6426, 1503, 8526, 3549, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 8704, 273, 261, 6426, 1503, 63, 5717, 3549, 6426, 6919, 18, 31447, 12, 2704, 4399, 1503, 63, 8704, 6426, 6919, 18, 1467, 1435, 19226, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 8704, 18, 2469, 31, 77, 27245, 288, 9506, 202, 8704, 63, 77, 8009, 1937, 5621, 1082, 202, 97, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 9217, 13773, 8704, 18, 2469, 9078, 4399, 1503, 1807, 364, 13773, 2211, 1769, 1082, 202, 430, 12, 8704, 18, 2469, 422, 374, 13, 9506, 202, 13212, 1595, 2277, 5621, 202, 202, 97, 1044, 261, 382, 550, 387, 503, 425, 13, 288, 1082, 202, 10996, 1876, 11641, 5621, 1082, 202, 12849, 425, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 11715, 13773, 2211, 1769, 202, 202, 6426, 1503, 8526, 3549, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 8704, 273, 261, 6426, 1503, 63, 5717, 3549, 6426, 6919, 18, 31447, 12, 2704, 4399, 1503, 63, 8704, 6426, 6919, 18, 1467, 1435, 19226, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 8704, 18, 2469, 31, 77, 27245, 288, 9506, 202, 8704, 63, 77, 8009, 1937, 5621, 1082, 202, 97, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 9217, 13773, 8704, 18, 2469, 9078, 4399, 1503, 1807, 2 ]
IProject[] projects = WorkbenchUtilitiesPlugin.getWorkspace().getRoot().getProjects(); String fileName = this .getCorrespondingCompilationUnit() .getCorrespondingResource() .getName(); fileName = fileName.substring(0, fileName.length() - IWOLipsModel.EXT_JAVA.length() - 1 ); String[] extensions = new String[] { WOLipsModel.EOENTITY_PLIST_EXTENSION }; plists = WorkbenchUtilitiesPlugin .findResourcesInResourcesByNameAndExtensions( projects, fileName, extensions);
IProject[] projects = WorkbenchUtilitiesPlugin.getWorkspace() .getRoot().getProjects(); String fileName = this.getCorrespondingCompilationUnit() .getCorrespondingResource().getName(); fileName = fileName.substring(0, fileName.length() - IWOLipsModel.EXT_JAVA.length() - 1); String[] extensions = new String[] { WOLipsModel.EOENTITY_PLIST_EXTENSION }; plists = WorkbenchUtilitiesPlugin .findResourcesInResourcesByNameAndExtensions(projects, fileName, extensions);
public final List getRelatedResources() { List list = new ArrayList(); List plists = new ArrayList(); if (this.getCorrespondingCompilationUnit() != null) { try { IProject[] projects = WorkbenchUtilitiesPlugin.getWorkspace().getRoot().getProjects(); String fileName = this .getCorrespondingCompilationUnit() .getCorrespondingResource() .getName(); fileName = fileName.substring(0, fileName.length() - IWOLipsModel.EXT_JAVA.length() - 1 ); String[] extensions = new String[] { WOLipsModel.EOENTITY_PLIST_EXTENSION }; plists = WorkbenchUtilitiesPlugin .findResourcesInResourcesByNameAndExtensions( projects, fileName, extensions); // assuming that the superclasses start with _ if (fileName.startsWith("_")) { plists.addAll( WorkbenchUtilitiesPlugin .findResourcesInResourcesByNameAndExtensions( projects, fileName.substring(1), extensions) ); } for(int i = 0; i < plists.size(); i++) { IResource resource = (IResource)plists.get(i); if(resource != null) { IContainer parent = resource.getParent(); if(parent != null && parent.getName().endsWith(WOLipsModel.EOMODEL_EXTENSION)) { list.add(parent); } } } //try also for files starting with _ if(fileName.startsWith("_")) { fileName = fileName.substring(1, fileName.length() - 1 ); plists = WorkbenchUtilitiesPlugin .findResourcesInResourcesByNameAndExtensions( projects, fileName, extensions); for(int i = 0; i < plists.size(); i++) { IResource resource = (IResource)plists.get(i); if(resource != null) { IContainer parent = resource.getParent(); if(parent != null && parent.getName().endsWith(WOLipsModel.EOMODEL_EXTENSION)) { list.add(parent); } } } } } catch (Exception e) { DataSetsPlugin.getDefault().getPluginLogger().log(e); } } return list; }
47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/be8c7a778b9f5951f6f1d47801f9b941b9af1d4e/EOEntityJava.java/buggy/wolips/plugins/org.objectstyle.wolips.datasets/java/org/objectstyle/wolips/datasets/resources/EOEntityJava.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 987, 21531, 3805, 1435, 288, 202, 202, 682, 666, 273, 394, 2407, 5621, 202, 202, 682, 886, 1486, 273, 394, 2407, 5621, 202, 202, 430, 261, 2211, 18, 588, 6217, 17863, 310, 19184, 2802, 1435, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 45, 4109, 8526, 10137, 273, 6862, 202, 2421, 22144, 11864, 3773, 18, 588, 8241, 7675, 588, 2375, 7675, 588, 15298, 5621, 9506, 202, 780, 3968, 273, 6862, 202, 2211, 6862, 202, 18, 588, 6217, 17863, 310, 19184, 2802, 1435, 6862, 202, 18, 588, 6217, 17863, 310, 1420, 1435, 6862, 202, 18, 17994, 5621, 9506, 202, 17812, 273, 3968, 18, 28023, 12, 20, 16, 9944, 202, 17812, 18, 2469, 1435, 300, 467, 59, 1741, 7146, 1488, 18, 4142, 67, 27264, 18, 2469, 1435, 300, 404, 11272, 9506, 202, 780, 8526, 4418, 273, 6862, 202, 2704, 514, 8526, 288, 25083, 202, 59, 1741, 7146, 1488, 18, 41, 51, 11101, 67, 52, 7085, 67, 12796, 289, 31, 9506, 202, 412, 1486, 273, 6862, 202, 2421, 22144, 11864, 3773, 6862, 202, 18, 4720, 3805, 382, 3805, 5911, 1876, 7513, 12, 6862, 1082, 202, 13582, 16, 6862, 1082, 202, 17812, 16, 6862, 1082, 202, 9489, 1769, 9506, 202, 759, 15144, 716, 326, 2240, 4701, 787, 598, 389, 7734, 309, 261, 17812, 18, 17514, 1190, 2932, 9548, 3719, 288, 9506, 202, 412, 1486, 18, 1289, 1595, 12, 6862, 565, 4147, 22144, 11864, 3773, 6862, 565, 263, 4720, 3805, 382, 3805, 5911, 1876, 7513, 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, 225, 202, 482, 727, 987, 21531, 3805, 1435, 288, 202, 202, 682, 666, 273, 394, 2407, 5621, 202, 202, 682, 886, 1486, 273, 394, 2407, 5621, 202, 202, 430, 261, 2211, 18, 588, 6217, 17863, 310, 19184, 2802, 1435, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 45, 4109, 8526, 10137, 273, 6862, 202, 2421, 22144, 11864, 3773, 18, 588, 8241, 7675, 588, 2375, 7675, 588, 15298, 5621, 9506, 202, 780, 3968, 273, 6862, 202, 2211, 6862, 202, 18, 588, 6217, 17863, 310, 19184, 2802, 1435, 6862, 202, 18, 588, 6217, 17863, 310, 1420, 1435, 6862, 202, 18, 17994, 5621, 9506, 202, 17812, 273, 3968, 18, 28023, 12, 20, 16, 9944, 202, 17812, 18, 2469, 1435, 300, 2 ]
push(num.doubleValue());
push(num); } else if (itsConstantListSize >= 2000) { pushAsWrapperObject(num);
private void visitLiteral(Node node) { if (node.getType() == TokenStream.STRING) { // just load the string constant push(node.getString()); } else { Number num = node.getNumber(); if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { push(num.doubleValue()); } else { /* * Generate code to create the new numeric constant * * new java/lang/<WrapperType> * dup * push <number> * invokestatic java/lang/<WrapperType>/<init>(D)V */ String wrapperType = ""; String signature = ""; boolean isInteger = false; if (num instanceof Float) num = new Double(num.floatValue()); // OPT: cache getClass() and compare == Type.class if (num instanceof Integer) { wrapperType = "Integer"; signature = "I"; isInteger = true; /* } else if (num instanceof Float) { wrapperType = "Float"; signature = "F"; */ } else if (num instanceof Double) { wrapperType = "Double"; signature = "D"; } else if (num instanceof Byte) { wrapperType = "Byte"; signature = "B"; isInteger = true; } else if (num instanceof Short) { wrapperType = "Short"; signature = "S"; isInteger = true; } else { throw Context.reportRuntimeError( "NumberNode contains unsupported Number type: " + num.getClass().getName()); } /* There appears to be a limit in the JVM on either the number of static fields in a class or the size of the class initializer. Either way, we can't have any more than 2000 statically init'd constants. */ if (itsConstantList.itsTop >= 2000) { addByteCode(ByteCode.NEW, "java/lang/" + wrapperType); addByteCode(ByteCode.DUP); if (isInteger) push(num.longValue()); else push(num.doubleValue()); addSpecialInvoke("java/lang/" + wrapperType, "<init>", "(" + signature + ")", "V"); } else { classFile.add(ByteCode.GETSTATIC, classFile.fullyQualifiedForm(this.name), "jsK_" + itsConstantList.addConstant(wrapperType, signature, num, isInteger), "Ljava/lang/" + wrapperType + ";"); } } } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8bb4a031bf2458fe168832974b20133e459d2b98/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 6177, 12, 907, 756, 13, 288, 3639, 309, 261, 2159, 18, 588, 559, 1435, 422, 3155, 1228, 18, 5804, 13, 288, 5411, 368, 2537, 1262, 326, 533, 5381, 5411, 1817, 12, 2159, 18, 588, 780, 10663, 3639, 289, 469, 288, 5411, 3588, 818, 273, 756, 18, 588, 1854, 5621, 5411, 309, 261, 2159, 18, 588, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 300, 21, 13, 480, 300, 21, 13, 288, 7734, 1817, 12, 2107, 1769, 289, 469, 309, 261, 1282, 6902, 682, 1225, 1545, 16291, 13, 288, 377, 1817, 1463, 3611, 921, 12, 2107, 1769, 5411, 289, 5411, 469, 288, 10792, 1748, 5397, 380, 6654, 981, 358, 752, 326, 394, 6389, 5381, 5397, 380, 5397, 380, 394, 2252, 19, 4936, 28177, 3611, 559, 34, 5397, 380, 9417, 5397, 380, 1817, 411, 2696, 34, 5397, 380, 5770, 395, 2126, 2252, 19, 4936, 28177, 3611, 559, 16893, 32, 2738, 34, 12, 40, 13, 58, 5397, 1195, 7734, 514, 4053, 559, 273, 1408, 31, 7734, 514, 3372, 273, 1408, 31, 7734, 1250, 353, 4522, 273, 629, 31, 7734, 309, 261, 2107, 1276, 5450, 13, 5375, 818, 273, 394, 3698, 12, 2107, 18, 5659, 620, 10663, 7734, 368, 16456, 30, 1247, 2900, 1435, 471, 3400, 422, 1412, 18, 1106, 7734, 309, 261, 2107, 1276, 2144, 13, 288, 10792, 4053, 559, 273, 315, 4522, 14432, 10792, 3372, 273, 315, 45, 14432, 10792, 353, 4522, 273, 638, 31, 10792, 1748, 10792, 289, 469, 309, 261, 2107, 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, 3757, 6177, 12, 907, 756, 13, 288, 3639, 309, 261, 2159, 18, 588, 559, 1435, 422, 3155, 1228, 18, 5804, 13, 288, 5411, 368, 2537, 1262, 326, 533, 5381, 5411, 1817, 12, 2159, 18, 588, 780, 10663, 3639, 289, 469, 288, 5411, 3588, 818, 273, 756, 18, 588, 1854, 5621, 5411, 309, 261, 2159, 18, 588, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 300, 21, 13, 480, 300, 21, 13, 288, 7734, 1817, 12, 2107, 1769, 289, 469, 309, 261, 1282, 6902, 682, 1225, 1545, 16291, 13, 288, 377, 1817, 1463, 3611, 921, 12, 2107, 1769, 5411, 289, 5411, 469, 288, 10792, 1748, 5397, 380, 6654, 981, 358, 752, 326, 394, 6389, 5381, 2 ]
rcpts = message.getRecipients(Message.RecipientType.TO); if (rcpts != null) {
addresses = message.getHeader(RFC2822Headers.TO); if (addresses != null) {
public void service(Mail mail) throws MessagingException { MimeMessage message = mail.getMessage(); //Create the reply message MimeMessage reply = new MimeMessage(Session.getDefaultInstance(System.getProperties(), null)); //Create the list of recipients in the Address[] format InternetAddress[] rcptAddr = new InternetAddress[1]; rcptAddr[0] = getMailetContext().getPostmaster().toInternetAddress(); reply.setRecipients(Message.RecipientType.TO, rcptAddr); //Set the sender... reply.setFrom(notifier.toInternetAddress()); //Create the message StringWriter sout = new StringWriter(); PrintWriter out = new PrintWriter(sout, true); // First add the "local" notice // (either from conf or generic error message) out.println(noticeText); // And then the message from other mailets if (mail.getErrorMessage() != null) { out.println(); out.println("Error message below:"); out.println(mail.getErrorMessage()); } out.println(); out.println("Message details:"); if (message.getSubject() != null) { out.println(" Subject: " + message.getSubject()); } if (message.getSentDate() != null) { out.println(" Sent date: " + message.getSentDate()); } out.println(" MAIL FROM: " + mail.getSender()); Iterator rcptTo = mail.getRecipients().iterator(); out.println(" RCPT TO: " + rcptTo.next()); while (rcptTo.hasNext()) { out.println(" " + rcptTo.next()); } Address[] rcpts = message.getFrom(); if (rcpts != null) { out.print(" From: "); for (int i = 0; i < rcpts.length; i++) { out.print(rcpts[i] + " "); } out.println(); } rcpts = message.getRecipients(Message.RecipientType.TO); if (rcpts != null) { out.print(" To: "); for (int i = 0; i < rcpts.length; i++) { out.print(rcpts[i] + " "); } out.println(); } rcpts = message.getRecipients(Message.RecipientType.CC); if (rcpts != null) { out.print(" CC: "); for (int i = 0; i < rcpts.length; i++) { out.print(rcpts[i] + " "); } out.println(); } out.println(" Size (in bytes): " + message.getSize()); if (message.getLineCount() >= 0) { out.println(" Number of lines: " + message.getLineCount()); } try { //Create the message body MimeMultipart multipart = new MimeMultipart(); //Add message as the first mime body part MimeBodyPart part = new MimeBodyPart(); part.setContent(sout.toString(), "text/plain"); part.setHeader(RFC2822Headers.CONTENT_TYPE, "text/plain"); multipart.addBodyPart(part); //Add the original message as the second mime body part part = new MimeBodyPart(); part.setContent(message.getContent(), message.getContentType()); part.setHeader(RFC2822Headers.CONTENT_TYPE, message.getContentType()); multipart.addBodyPart(part); //if set, attach the full stack trace if (attachStackTrace && mail.getErrorMessage() != null) { part = new MimeBodyPart(); part.setContent(mail.getErrorMessage(), "text/plain"); part.setHeader(RFC2822Headers.CONTENT_TYPE, "text/plain"); multipart.addBodyPart(part); } reply.setContent(multipart); reply.setHeader(RFC2822Headers.CONTENT_TYPE, multipart.getContentType()); } catch (IOException ioe) { throw new MailetException("Unable to create multipart body"); } //Create the list of recipients in our MailAddress format Set recipients = new HashSet(); recipients.add(getMailetContext().getPostmaster()); //Set additional headers if (reply.getHeader(RFC2822Headers.DATE)==null){ reply.setHeader(RFC2822Headers.DATE, rfc822DateFormat.format(new Date())); } String subject = message.getSubject(); if (subject == null) { subject = ""; } if (subject.indexOf("Re:") == 0){ reply.setSubject(subject); } else { reply.setSubject("Re:" + subject); } reply.setHeader(RFC2822Headers.IN_REPLY_TO, message.getMessageID()); //Send it off... getMailetContext().sendMail(notifier, recipients, reply); }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/0b0a9ac63ab1085db5202283e36525545fad9652/NotifyPostmaster.java/buggy/src/java/org/apache/james/transport/mailets/NotifyPostmaster.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1156, 12, 6759, 4791, 13, 1216, 23794, 503, 288, 3639, 22059, 1079, 883, 273, 4791, 18, 24906, 5621, 3639, 368, 1684, 326, 4332, 883, 3639, 22059, 1079, 4332, 273, 394, 22059, 1079, 12, 2157, 18, 588, 1868, 1442, 12, 3163, 18, 588, 2297, 9334, 446, 10019, 3639, 368, 1684, 326, 666, 434, 12045, 316, 326, 5267, 8526, 740, 3639, 21352, 1887, 8526, 4519, 337, 3178, 273, 394, 21352, 1887, 63, 21, 15533, 3639, 4519, 337, 3178, 63, 20, 65, 273, 31991, 278, 1042, 7675, 588, 3349, 7525, 7675, 869, 26562, 1887, 5621, 3639, 4332, 18, 542, 22740, 12, 1079, 18, 18241, 559, 18, 4296, 16, 4519, 337, 3178, 1769, 3639, 368, 694, 326, 5793, 2777, 3639, 4332, 18, 542, 1265, 12, 902, 1251, 18, 869, 26562, 1887, 10663, 3639, 368, 1684, 326, 883, 3639, 17436, 272, 659, 273, 394, 17436, 5621, 3639, 14071, 596, 273, 394, 14071, 12, 87, 659, 16, 638, 1769, 3639, 368, 5783, 527, 326, 315, 3729, 6, 11690, 3639, 368, 261, 73, 2927, 628, 2195, 578, 5210, 555, 883, 13, 3639, 596, 18, 8222, 12, 20392, 1528, 1769, 3639, 368, 7835, 1508, 326, 883, 628, 1308, 4791, 2413, 3639, 309, 261, 4408, 18, 588, 14935, 1435, 480, 446, 13, 288, 5411, 596, 18, 8222, 5621, 5411, 596, 18, 8222, 2932, 668, 883, 5712, 2773, 1769, 5411, 596, 18, 8222, 12, 4408, 18, 588, 14935, 10663, 3639, 289, 3639, 596, 18, 8222, 5621, 3639, 596, 18, 8222, 2932, 1079, 3189, 2773, 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, 1156, 12, 6759, 4791, 13, 1216, 23794, 503, 288, 3639, 22059, 1079, 883, 273, 4791, 18, 24906, 5621, 3639, 368, 1684, 326, 4332, 883, 3639, 22059, 1079, 4332, 273, 394, 22059, 1079, 12, 2157, 18, 588, 1868, 1442, 12, 3163, 18, 588, 2297, 9334, 446, 10019, 3639, 368, 1684, 326, 666, 434, 12045, 316, 326, 5267, 8526, 740, 3639, 21352, 1887, 8526, 4519, 337, 3178, 273, 394, 21352, 1887, 63, 21, 15533, 3639, 4519, 337, 3178, 63, 20, 65, 273, 31991, 278, 1042, 7675, 588, 3349, 7525, 7675, 869, 26562, 1887, 5621, 3639, 4332, 18, 542, 22740, 12, 1079, 18, 18241, 559, 18, 4296, 16, 4519, 337, 3178, 1769, 3639, 368, 694, 326, 5793, 2777, 3639, 2 ]
Enumeration ce = connections.elements();
boolean hasWriterError = false;
public void send(String message) { Enumeration ce = connections.elements(); for (Enumeration e = writers.elements(); e.hasMoreElements();) { Socket sock = (Socket) ce.nextElement(); PrintWriter writer = (PrintWriter) e.nextElement(); writer.print(message); if (writer.checkError()) { // The client has closed the connection, remove it from our list: connections.remove(sock); writers.remove(writer); } } }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/2d8725d96d5db4341a8a6531ec551df1e3718e9d/TelnetAppender.java/buggy/src/java/org/apache/log4j/net/TelnetAppender.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 12, 780, 883, 13, 288, 1377, 1250, 711, 2289, 668, 273, 629, 31, 377, 364, 261, 21847, 425, 273, 18656, 18, 6274, 5621, 425, 18, 5332, 7417, 3471, 5621, 13, 288, 3639, 8758, 7313, 273, 261, 4534, 13, 5898, 18, 4285, 1046, 5621, 3639, 14071, 2633, 273, 261, 5108, 2289, 13, 425, 18, 4285, 1046, 5621, 3639, 2633, 18, 1188, 12, 2150, 1769, 3639, 309, 261, 6299, 18, 1893, 668, 10756, 288, 1850, 368, 1021, 1004, 711, 4375, 326, 1459, 16, 1206, 518, 628, 3134, 666, 30, 1850, 5921, 18, 4479, 12, 15031, 1769, 1850, 18656, 18, 4479, 12, 6299, 1769, 3639, 289, 1377, 289, 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, 1071, 918, 1366, 12, 780, 883, 13, 288, 1377, 1250, 711, 2289, 668, 273, 629, 31, 377, 364, 261, 21847, 425, 273, 18656, 18, 6274, 5621, 425, 18, 5332, 7417, 3471, 5621, 13, 288, 3639, 8758, 7313, 273, 261, 4534, 13, 5898, 18, 4285, 1046, 5621, 3639, 14071, 2633, 273, 261, 5108, 2289, 13, 425, 18, 4285, 1046, 5621, 3639, 2633, 18, 1188, 12, 2150, 1769, 3639, 309, 261, 6299, 18, 1893, 668, 10756, 288, 1850, 368, 1021, 1004, 711, 4375, 326, 1459, 16, 1206, 518, 628, 3134, 666, 30, 1850, 5921, 18, 4479, 12, 15031, 1769, 1850, 18656, 18, 4479, 12, 6299, 1769, 3639, 289, 1377, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100 ]
AST tmp858_AST_in = (AST)_t;
AST tmp857_AST_in = (AST)_t;
public final void constructorstate(AST _t) throws RecognitionException { AST constructorstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST c = null; AST __t284 = _t; c = _t==ASTNULL ? null :(AST)_t; match(_t,CONSTRUCTOR); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.scopeAdd(c); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PUBLIC: { AST tmp854_AST_in = (AST)_t; match(_t,PUBLIC); _t = _t.getNextSibling(); break; } case PROTECTED: { AST tmp855_AST_in = (AST)_t; match(_t,PROTECTED); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } AST tmp856_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); function_params(_t); _t = _retTree; block_colon(_t); _t = _retTree; code_block(_t); _t = _retTree; AST __t286 = _t; AST tmp857_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CONSTRUCTOR: { AST tmp858_AST_in = (AST)_t; match(_t,CONSTRUCTOR); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t286; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.scopeClose(c); } _t = __t284; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3885, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3885, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 276, 273, 446, 31, 9506, 202, 9053, 1001, 88, 22, 5193, 273, 389, 88, 31, 202, 202, 71, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 26935, 916, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 430, 261, 810, 1119, 18, 20885, 310, 631, 20, 262, 288, 1082, 202, 1128, 18, 4887, 986, 12, 71, 1769, 202, 202, 97, 202, 202, 95, 202, 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, 17187, 30, 202, 202, 95, 1082, 202, 9053, 1853, 28, 6564, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 14939, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 4629, 26729, 30, 202, 202, 95, 1082, 202, 9053, 1853, 28, 2539, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 3373, 26729, 1769, 1082, 202, 67, 88, 273, 389, 88, 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, 727, 918, 3885, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 3885, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 276, 273, 446, 31, 9506, 202, 9053, 1001, 88, 22, 5193, 273, 389, 88, 31, 202, 202, 71, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 26935, 916, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 430, 261, 810, 1119, 18, 20885, 310, 631, 20, 262, 288, 1082, 202, 1128, 18, 4887, 986, 12, 71, 2 ]
m_log = factory.getInstance(getClass());
log = factory.getInstance(getClass());
public void setLogFactory(LogFactory factory) { m_log = factory.getInstance(getClass()); }
48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/Ssl.java/clean/src/java/org/apache/ftpserver/ssl/Ssl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 1343, 1733, 12, 1343, 1733, 3272, 13, 288, 3639, 613, 273, 3272, 18, 588, 1442, 12, 588, 797, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 1343, 1733, 12, 1343, 1733, 3272, 13, 288, 3639, 613, 273, 3272, 18, 588, 1442, 12, 588, 797, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]