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
Logger.minor(this, "Written: "+key+" -> "+b);
private void createAndOverwrite(int recnum, Key key, byte[] data) throws IOException { DataBlock b = new DataBlock(recnum, key, System.currentTimeMillis()); _index.seek(recnum * DataBlock.SIZE_ON_DISK); key.write(_index); getKeyMap().put(key, b); Logger.minor(this, "Written: "+key+" -> "+b); _index.writeLong(b.getLastAccessTime()); getAccessTimeList().addLast(b); getBlockStore().seek(recnum * blockSize); getBlockStore().write(data); getRecordNumberList().add(recnum, b); }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/468622124d6c873f5829a9d551c994b13f38cb37/DataStore.java/clean/src/freenet/store/DataStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 30545, 20832, 12, 474, 1950, 2107, 16, 1929, 498, 16, 1160, 8526, 501, 13, 1216, 1860, 288, 202, 202, 751, 1768, 324, 273, 394, 1910, 1768, 12, 3927, 2107, 16, 498, 16, 2332, 18, 2972, 28512, 10663, 202, 202, 67, 1615, 18, 16508, 12, 3927, 2107, 380, 1910, 1768, 18, 4574, 67, 673, 67, 2565, 11129, 1769, 202, 202, 856, 18, 2626, 24899, 1615, 1769, 202, 202, 588, 653, 863, 7675, 458, 12, 856, 16, 324, 1769, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 12643, 30, 13773, 856, 9078, 317, 13773, 70, 1769, 202, 202, 67, 1615, 18, 2626, 3708, 12, 70, 18, 588, 3024, 1862, 950, 10663, 202, 202, 588, 1862, 950, 682, 7675, 1289, 3024, 12, 70, 1769, 202, 202, 588, 1768, 2257, 7675, 16508, 12, 3927, 2107, 380, 13766, 1769, 202, 202, 588, 1768, 2257, 7675, 2626, 12, 892, 1769, 202, 202, 588, 2115, 1854, 682, 7675, 1289, 12, 3927, 2107, 16, 324, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 30545, 20832, 12, 474, 1950, 2107, 16, 1929, 498, 16, 1160, 8526, 501, 13, 1216, 1860, 288, 202, 202, 751, 1768, 324, 273, 394, 1910, 1768, 12, 3927, 2107, 16, 498, 16, 2332, 18, 2972, 28512, 10663, 202, 202, 67, 1615, 18, 16508, 12, 3927, 2107, 380, 1910, 1768, 18, 4574, 67, 673, 67, 2565, 11129, 1769, 202, 202, 856, 18, 2626, 24899, 1615, 1769, 202, 202, 588, 653, 863, 7675, 458, 12, 856, 16, 324, 1769, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 12643, 30, 13773, 856, 9078, 317, 13773, 70, 1769, 202, 202, 67, 1615, 18, 2626, 3708, 12, 70, 18, 588, 3024, 1862, 950, 10663, 202, 202, 588, 1862, 950, 2 ]
MIShowEndian endian = new MIShowEndian();
MIGDBShowEndian endian = factory.createMIGDBShowEndian();
public boolean isLittleEndian() throws CDIException { if (fEndian == null) { CommandFactory factory = miSession.getCommandFactory(); MIShowEndian endian = new MIShowEndian(); try { miSession.postCommand(endian); MIShowEndianInfo info = endian.getMIShowEndianInfo(); if (info == null) { throw new CDIException(CdiResources.getString("cdi.model.Target.Target_not_responding")); //$NON-NLS-1$ } fEndian = info.isLittleEndian() ? "le" : "be"; //$NON-NLS-1$ //$NON-NLS-2$ } catch (MIException e) { throw new MI2CDIException(e); } } return fEndian.equals("le"); //$NON-NLS-1$ }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/3c46b1d4bcea378a484b3eb891a58c4fc9ba09cb/Target.java/clean/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Target.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 28601, 10609, 1435, 1216, 385, 2565, 503, 288, 202, 202, 430, 261, 74, 7583, 422, 446, 13, 288, 1082, 202, 2189, 1733, 3272, 273, 12837, 2157, 18, 588, 2189, 1733, 5621, 1082, 202, 7492, 5706, 7583, 14759, 273, 394, 20806, 5706, 7583, 5621, 1082, 202, 698, 288, 9506, 202, 9197, 2157, 18, 2767, 2189, 12, 22910, 1769, 9506, 202, 7492, 5706, 7583, 966, 1123, 273, 14759, 18, 588, 7492, 5706, 7583, 966, 5621, 9506, 202, 430, 261, 1376, 422, 446, 13, 288, 6862, 202, 12849, 394, 385, 2565, 503, 12, 39, 3211, 3805, 18, 588, 780, 2932, 71, 3211, 18, 2284, 18, 2326, 18, 2326, 67, 902, 67, 17863, 310, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 97, 9506, 202, 74, 7583, 273, 1123, 18, 291, 48, 10609, 1435, 692, 315, 298, 6, 294, 315, 2196, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 1082, 202, 97, 1044, 261, 7492, 503, 425, 13, 288, 9506, 202, 12849, 394, 20806, 22, 39, 2565, 503, 12, 73, 1769, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 284, 7583, 18, 14963, 2932, 298, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 28601, 10609, 1435, 1216, 385, 2565, 503, 288, 202, 202, 430, 261, 74, 7583, 422, 446, 13, 288, 1082, 202, 2189, 1733, 3272, 273, 12837, 2157, 18, 588, 2189, 1733, 5621, 1082, 202, 7492, 5706, 7583, 14759, 273, 394, 20806, 5706, 7583, 5621, 1082, 202, 698, 288, 9506, 202, 9197, 2157, 18, 2767, 2189, 12, 22910, 1769, 9506, 202, 7492, 5706, 7583, 966, 1123, 273, 14759, 18, 588, 7492, 5706, 7583, 966, 5621, 9506, 202, 430, 261, 1376, 422, 446, 13, 288, 6862, 202, 12849, 394, 385, 2565, 503, 12, 39, 3211, 3805, 18, 588, 780, 2932, 71, 3211, 18, 2284, 18, 2326, 18, 2326, 67, 902, 67, 17863, 310, 7923, 1769, 4329, 3993, 17, 2 ]
if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": Send outbound client message - sending off leaseSet lookup job");
public void runJob() { if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": Send outbound client message job beginning"); buildClove(); if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": Clove built"); long timeoutMs = _overallExpiration - getContext().clock().now(); if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": preparing to search for the leaseSet"); Hash key = _to.calculateHash(); SendJob success = new SendJob(getContext()); LookupLeaseSetFailedJob failed = new LookupLeaseSetFailedJob(getContext()); if (_log.shouldLog(Log.DEBUG)) _log.debug(getJobId() + ": Send outbound client message - sending off leaseSet lookup job"); LeaseSet ls = getContext().netDb().lookupLeaseSetLocally(key); if (ls != null) { getContext().statManager().addRateData("client.leaseSetFoundLocally", 1, 0); _leaseSetLookupBegin = -1; success.runJob(); } else { _leaseSetLookupBegin = getContext().clock().now(); getContext().netDb().lookupLeaseSet(key, success, failed, timeoutMs); } }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/d74aa6e53db101dcab9bf76b9279dc44df63637d/OutboundClientMessageOneShotJob.java/clean/router/java/src/net/i2p/router/message/OutboundClientMessageOneShotJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 2278, 1435, 288, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 5411, 389, 1330, 18, 4148, 12, 588, 23378, 1435, 397, 6398, 2479, 11663, 1004, 883, 1719, 8435, 8863, 3639, 1361, 4082, 537, 5621, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 5411, 389, 1330, 18, 4148, 12, 588, 23378, 1435, 397, 6398, 22442, 537, 6650, 8863, 3639, 1525, 2021, 6947, 273, 389, 27145, 12028, 300, 6474, 7675, 18517, 7675, 3338, 5621, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 5411, 389, 1330, 18, 4148, 12, 588, 23378, 1435, 397, 6398, 675, 12583, 358, 1623, 364, 326, 11863, 694, 8863, 3639, 2474, 498, 273, 389, 869, 18, 11162, 2310, 5621, 3639, 2479, 2278, 2216, 273, 394, 2479, 2278, 12, 29120, 10663, 3639, 8834, 17746, 694, 2925, 2278, 2535, 273, 394, 8834, 17746, 694, 2925, 2278, 12, 29120, 10663, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 5411, 389, 1330, 18, 4148, 12, 588, 23378, 1435, 397, 6398, 2479, 11663, 1004, 883, 300, 5431, 3397, 11863, 694, 3689, 1719, 8863, 3639, 23175, 694, 7180, 273, 6474, 7675, 2758, 4331, 7675, 8664, 17746, 694, 1333, 1230, 12, 856, 1769, 3639, 309, 261, 3251, 480, 446, 13, 288, 5411, 6474, 7675, 5642, 1318, 7675, 1289, 4727, 751, 2932, 2625, 18, 2508, 694, 2043, 1333, 1230, 3113, 404, 16, 374, 1769, 5411, 389, 2508, 694, 6609, 8149, 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, 1086, 2278, 1435, 288, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 5411, 389, 1330, 18, 4148, 12, 588, 23378, 1435, 397, 6398, 2479, 11663, 1004, 883, 1719, 8435, 8863, 3639, 1361, 4082, 537, 5621, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 5411, 389, 1330, 18, 4148, 12, 588, 23378, 1435, 397, 6398, 22442, 537, 6650, 8863, 3639, 1525, 2021, 6947, 273, 389, 27145, 12028, 300, 6474, 7675, 18517, 7675, 3338, 5621, 3639, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 5411, 389, 1330, 18, 4148, 12, 588, 23378, 1435, 397, 6398, 675, 12583, 358, 1623, 364, 326, 11863, 694, 8863, 2 ]
if(end_index < start_index) {
if (end_index < start_index) {
public String getSubstring() { // new code for whitepsace handling if(master != null) { if(start_index == -1 || end_index == -1) { return master; } if(end_index < start_index) { u.p("warning: end is less than start: " + end_index + " < " + start_index); u.p("master = " + master); return master; } return master.substring(start_index, end_index); } if(text == null) return ""; String txt = text.substring( start_index, end_index ); return txt; }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/e65470765b9501b251ba6faf1734b383bb9b1578/InlineBox.java/buggy/src/java/org/xhtmlrenderer/render/InlineBox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 7040, 1080, 1435, 288, 3639, 368, 394, 981, 364, 600, 305, 13058, 623, 5057, 3639, 309, 12, 7525, 480, 446, 13, 288, 5411, 309, 12, 1937, 67, 1615, 422, 300, 21, 747, 679, 67, 1615, 422, 300, 21, 13, 288, 7734, 327, 4171, 31, 5411, 289, 5411, 309, 261, 409, 67, 1615, 411, 787, 67, 1615, 13, 288, 7734, 582, 18, 84, 2932, 8551, 30, 679, 353, 5242, 2353, 787, 30, 315, 397, 679, 67, 1615, 397, 315, 411, 315, 397, 787, 67, 1615, 1769, 7734, 582, 18, 84, 2932, 7525, 273, 315, 397, 4171, 1769, 7734, 327, 4171, 31, 5411, 289, 5411, 327, 4171, 18, 28023, 12, 1937, 67, 1615, 16, 679, 67, 1615, 1769, 3639, 289, 7734, 309, 12, 955, 422, 446, 13, 327, 1408, 31, 3639, 514, 6463, 273, 977, 18, 28023, 12, 787, 67, 1615, 16, 679, 67, 1615, 11272, 3639, 327, 6463, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 7040, 1080, 1435, 288, 3639, 368, 394, 981, 364, 600, 305, 13058, 623, 5057, 3639, 309, 12, 7525, 480, 446, 13, 288, 5411, 309, 12, 1937, 67, 1615, 422, 300, 21, 747, 679, 67, 1615, 422, 300, 21, 13, 288, 7734, 327, 4171, 31, 5411, 289, 5411, 309, 261, 409, 67, 1615, 411, 787, 67, 1615, 13, 288, 7734, 582, 18, 84, 2932, 8551, 30, 679, 353, 5242, 2353, 787, 30, 315, 397, 679, 67, 1615, 397, 315, 411, 315, 397, 787, 67, 1615, 1769, 7734, 582, 18, 84, 2932, 7525, 273, 315, 397, 4171, 1769, 7734, 327, 4171, 31, 5411, 289, 5411, 327, 4171, 18, 28023, 12, 1937, 67, 1615, 16, 679, 67, 1615, 1769, 2 ]
private void addProposalsFromTemplateEngine(ITextViewer viewer, TemplateEngine[] fTemplateEngine, List completions){ for (int i = 0; i < fTemplateEngine.length; i++) { if (fTemplateEngine[i] == null) { continue; }
private void addProposalsFromTemplateEngine(ITextViewer viewer, TemplateEngine fTemplateEngine, List completions){ if (fTemplateEngine != null) {
private void addProposalsFromTemplateEngine(ITextViewer viewer, TemplateEngine[] fTemplateEngine, List completions){ for (int i = 0; i < fTemplateEngine.length; i++) { if (fTemplateEngine[i] == null) { continue; } try { fTemplateEngine[i].reset(); fTemplateEngine[i].complete(viewer, fCurrentOffset, null); } catch (Exception x) { CUIPlugin.getDefault().log(x); } completions.addAll(fTemplateEngine[i].getResults()); } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3c9660722e94023d2d75aec85e55cbb5ff731977/CCompletionProcessor.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CCompletionProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 626, 22536, 1265, 2283, 4410, 12, 1285, 408, 18415, 14157, 16, 5035, 4410, 8526, 284, 2283, 4410, 16, 987, 23738, 15329, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 284, 2283, 4410, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 74, 2283, 4410, 63, 77, 65, 422, 446, 13, 288, 9506, 202, 17143, 31, 1082, 202, 97, 1082, 202, 698, 288, 9506, 202, 74, 2283, 4410, 63, 77, 8009, 6208, 5621, 9506, 202, 74, 2283, 4410, 63, 77, 8009, 6226, 12, 25256, 16, 284, 3935, 2335, 16, 446, 1769, 1082, 202, 97, 1044, 261, 503, 619, 13, 288, 9506, 202, 39, 5370, 3773, 18, 588, 1868, 7675, 1330, 12, 92, 1769, 1082, 202, 97, 9506, 5411, 23738, 18, 1289, 1595, 12, 74, 2283, 4410, 63, 77, 8009, 588, 3447, 10663, 202, 202, 97, 6862, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 626, 22536, 1265, 2283, 4410, 12, 1285, 408, 18415, 14157, 16, 5035, 4410, 8526, 284, 2283, 4410, 16, 987, 23738, 15329, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 284, 2283, 4410, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 74, 2283, 4410, 63, 77, 65, 422, 446, 13, 288, 9506, 202, 17143, 31, 1082, 202, 97, 1082, 202, 698, 288, 9506, 202, 74, 2283, 4410, 63, 77, 8009, 6208, 5621, 9506, 202, 74, 2283, 4410, 63, 77, 8009, 6226, 12, 25256, 16, 284, 3935, 2335, 16, 446, 1769, 1082, 202, 97, 1044, 261, 503, 619, 13, 288, 9506, 202, 39, 5370, 3773, 18, 588, 1868, 7675, 1330, 12, 2 ]
PrivilegedAccessor.invokeMethod( (ManagedDownloader)md,"informMesh",new Object[]{rfd,new Boolean(true)}, new Class[]{RemoteFileDesc.class,boolean.class});
md.informMesh(rfd,true);
public void testFirewalledLocs() throws Exception { LOG.info("testing firewalled locations"); PrivilegedAccessor.setValue(RouterService.getAcceptor(), "_acceptedIncoming",new Boolean(true)); assertTrue(RouterService.acceptedIncomingConnection()); //first make sure we are sharing an incomplete file URN partialURN = URN.createSHA1Urn("urn:sha1:PLSTHIPQGSSZTS5FJUPAKUZWUGYQYPFE"); AlternateLocationCollection col = AlternateLocationCollection.create(partialURN); IncompleteFileDescStub partialDesc = new IncompleteFileDescStub("incomplete",partialURN,3); partialDesc.setAlternateLocationCollection(col); Map urnMap = new HashMap(); urnMap.put(partialURN,partialDesc); List descList = new LinkedList();descList.add(partialDesc); File f = new File("incomplete"); Map fileMap = new HashMap();fileMap.put(f,partialDesc); FileManagerStub newFMStub = new FileManagerStub(urnMap,descList); newFMStub.setFiles(fileMap); PrivilegedAccessor.setValue(RouterService.class,"fileManager",newFMStub); // then create an rfd from a firewalled host RemoteFileDesc rfd = newPushRFD("incomplete","urn:sha1:PLSTHIPQGSSZTS5FJUPAKUZWUGYQYPFE",GUID.makeGuid()); //test that currently we have no altlocs for the incomplete file FileDesc test = RouterService.getFileManager().getFileDescForUrn(partialURN); assertEquals(0,test.getAlternateLocationCollection().getAltLocsSize()); //add one fake downloader to the downloader list Endpoint e = new Endpoint("1.2.3.5",12345); RemoteFileDesc other = new RemoteFileDesc(newRFD("incomplete"),e); AltlocDownloaderStub fakeDownloader = new AltlocDownloaderStub(other); TestManagedDownloader md = new TestManagedDownloader(new RemoteFileDesc[]{rfd}); AltLocWorkerStub worker = new AltLocWorkerStub(md,rfd,fakeDownloader); List l = new LinkedList();l.add(worker); md.initialize(manager,newFMStub,callback); md.setDloaders(l); md.setSHA1(partialURN); md.setFM(newFMStub); md.setIncompleteFile(f); //and see if it behaves correctly PrivilegedAccessor.invokeMethod( (ManagedDownloader)md,"informMesh",new Object[]{rfd,new Boolean(true)}, new Class[]{RemoteFileDesc.class,boolean.class}); //make sure the downloader did not get notified assertFalse(fakeDownloader._addedFailed); assertFalse(fakeDownloader._addedSuccessfull); //the altloc should have been added to the file descriptor test = RouterService.getFileManager().getFileDescForUrn(partialURN); assertEquals(1,test.getAlternateLocationCollection().getAltLocsSize()); //now repeat the test, pretending the uploader wants push altlocs fakeDownloader.setWantsFalts(true); //and see if it behaves correctly PrivilegedAccessor.invokeMethod( (ManagedDownloader)md,"informMesh",new Object[]{rfd,new Boolean(true)}, new Class[]{RemoteFileDesc.class,boolean.class}); //make sure the downloader did get notified assertFalse(fakeDownloader._addedFailed); assertTrue(fakeDownloader._addedSuccessfull); //make sure the file was added to the file descriptor test = RouterService.getFileManager().getFileDescForUrn(partialURN); assertEquals(1,test.getAlternateLocationCollection().getAltLocsSize()); //rince and repeat, saying this was a bad altloc. //it should be sent to the other downloaders. fakeDownloader._addedSuccessfull=false; PrivilegedAccessor.invokeMethod( (ManagedDownloader)md,"informMesh",new Object[]{rfd,new Boolean(false)}, new Class[]{RemoteFileDesc.class,boolean.class}); //make sure the downloader did get notified assertTrue(fakeDownloader._addedFailed); assertFalse(fakeDownloader._addedSuccessfull); //make sure the altloc is demoted now test = RouterService.getFileManager().getFileDescForUrn(partialURN); AlternateLocationCollection col2 = test.getAlternateLocationCollection(); assertEquals(0,col2.getAltLocsSize()); PrivilegedAccessor.setValue(RouterService.getAcceptor(), "_acceptedIncoming",new Boolean(false)); assertFalse(RouterService.acceptedIncomingConnection()); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/8511878ed668f7fd2cc2d389fa9fe9053644f493/ManagedDownloaderTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/downloader/ManagedDownloaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 9723, 91, 4502, 1333, 87, 1435, 1216, 1185, 288, 377, 202, 4842, 18, 1376, 2932, 3813, 310, 4452, 91, 4502, 7838, 8863, 3639, 17747, 8235, 18, 542, 620, 12, 8259, 1179, 18, 588, 5933, 280, 9334, 7734, 4192, 23847, 20370, 3113, 2704, 3411, 12, 3767, 10019, 3639, 1815, 5510, 12, 8259, 1179, 18, 23847, 20370, 1952, 10663, 2398, 202, 759, 3645, 1221, 3071, 732, 854, 21001, 392, 14715, 585, 377, 202, 377, 202, 8521, 4702, 8521, 273, 1377, 202, 202, 8521, 18, 2640, 8325, 21, 57, 27639, 2932, 321, 30, 7819, 21, 30, 6253, 882, 44, 2579, 53, 43, 1260, 62, 8047, 25, 42, 46, 3079, 14607, 57, 62, 59, 57, 20564, 53, 61, 52, 8090, 8863, 377, 202, 377, 202, 25265, 2735, 2532, 1875, 202, 1293, 273, 21498, 340, 2735, 2532, 18, 2640, 12, 11601, 8521, 1769, 377, 202, 377, 202, 27531, 812, 4217, 11974, 4702, 4217, 273, 1377, 202, 202, 2704, 657, 6226, 812, 4217, 11974, 2932, 17624, 3113, 11601, 8521, 16, 23, 1769, 377, 202, 377, 202, 11601, 4217, 18, 542, 25265, 2735, 2532, 12, 1293, 1769, 377, 202, 377, 202, 863, 18412, 863, 273, 394, 4317, 5621, 18412, 863, 18, 458, 12, 11601, 8521, 16, 11601, 4217, 1769, 377, 202, 682, 3044, 682, 273, 394, 10688, 5621, 5569, 682, 18, 1289, 12, 11601, 4217, 1769, 377, 202, 812, 284, 273, 394, 1387, 2932, 17624, 8863, 377, 202, 863, 585, 863, 273, 394, 4317, 5621, 768, 863, 18, 458, 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, 918, 1842, 9723, 91, 4502, 1333, 87, 1435, 1216, 1185, 288, 377, 202, 4842, 18, 1376, 2932, 3813, 310, 4452, 91, 4502, 7838, 8863, 3639, 17747, 8235, 18, 542, 620, 12, 8259, 1179, 18, 588, 5933, 280, 9334, 7734, 4192, 23847, 20370, 3113, 2704, 3411, 12, 3767, 10019, 3639, 1815, 5510, 12, 8259, 1179, 18, 23847, 20370, 1952, 10663, 2398, 202, 759, 3645, 1221, 3071, 732, 854, 21001, 392, 14715, 585, 377, 202, 377, 202, 8521, 4702, 8521, 273, 1377, 202, 202, 8521, 18, 2640, 8325, 21, 57, 27639, 2932, 321, 30, 7819, 21, 30, 6253, 882, 44, 2579, 53, 43, 1260, 62, 8047, 25, 42, 46, 3079, 14607, 57, 62, 59, 57, 20564, 53, 61, 52, 2 ]
Assert.assert(-1 != nativeRDFNode);
Assert.assert_it(-1 != nativeRDFNode);
public boolean hasMoreElements(){ Assert.assert(-1 != nativeRDFNode); return nativeHasMoreElements(nativeWebShell, nativeRDFNode);}
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/0e30fa38c30ae26743aee09175fac1e8146c075a/RDFEnumeration.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/wrapper_native/RDFEnumeration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 16073, 1435, 95, 565, 5452, 18, 11231, 67, 305, 19236, 21, 480, 6448, 30137, 907, 1769, 565, 327, 6448, 5582, 7417, 3471, 12, 13635, 4079, 13220, 16, 6448, 30137, 907, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1250, 16073, 1435, 95, 565, 5452, 18, 11231, 67, 305, 19236, 21, 480, 6448, 30137, 907, 1769, 565, 327, 6448, 5582, 7417, 3471, 12, 13635, 4079, 13220, 16, 6448, 30137, 907, 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 ]
_t = __t713;
_t = __t717;
public final void createautomationobjectstate(AST _t) throws RecognitionException { AST createautomationobjectstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t711 = _t; AST tmp424_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); AST tmp425_AST_in = (AST)_t; match(_t,QSTRING); _t = _t.getNextSibling(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CONNECT: { AST __t713 = _t; AST tmp426_AST_in = (AST)_t; match(_t,CONNECT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST __t715 = _t; AST tmp427_AST_in = (AST)_t; match(_t,TO); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t715; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t713; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp428_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t711; _t = _t.getNextSibling(); _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, 752, 5854, 11978, 1612, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 5854, 11978, 1612, 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, 27, 2499, 273, 389, 88, 31, 202, 202, 9053, 1853, 24, 3247, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 24, 2947, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 53, 5804, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 1518, 24899, 88, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 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, 21593, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 27, 3437, 273, 389, 88, 31, 1082, 202, 9053, 1853, 24, 5558, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 11032, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 95, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 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, 752, 5854, 11978, 1612, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 5854, 11978, 1612, 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, 27, 2499, 273, 389, 88, 31, 202, 202, 9053, 1853, 24, 3247, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 24, 2947, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 53, 2 ]
final PlayerCharacter nPC = (PlayerCharacter) p.next(); if (aF.getFileName().equals(nPC.getFileName())) { currentPC = getPc(); Globals.setCurrentPC(nPC); valString = nPC.getVariableValue(restString, "").toString(); Globals.setCurrentPC(currentPC); }
currentPC = getPc(); Globals.setCurrentPC(pc); valString = pc.getVariableValue(restString, "").toString(); Globals.setCurrentPC(currentPC);
protected String getInternalVariable(final Spell aSpell, String valString, final String src) { if (!Globals.checkRule(RuleConstants.SYS_LDPACSK)) { // Need to make sure the MXDXEN value // is 1000 to ensure no Dex penalty // to AC for load > LIGHT if (valString.equals(getPc().getStatList().getPenaltyVar("DEX"))) { valString = "1000"; } } if ("SCORE".equals(valString) && src.startsWith("STAT:")) { valString = String.valueOf(getPc().getStatList().getTotalStatFor(src.substring(5))); } else if ("SPELLBASESTATSCORE".equals(valString)) { final PCClass aClass = getPc().getClassKeyed(src.substring(6)); if (aClass != null) { valString = aClass.getSpellBaseStat() + "SCORE"; if ("SPELLSCORE".equals(valString)) { valString = "10"; } } else { valString = "0"; } } else if ("SPELLBASESTAT".equals(valString)) { final PCClass aClass = getPc().getClassKeyed(src.substring(6)); if (aClass != null) { valString = aClass.getSpellBaseStat(); if ("SPELL".equals(valString)) { valString = "0"; } } else { valString = "0"; } } else if ("BASESPELLSTAT".equals(valString)) { PCClass aClass = null; // if there's no class, then assume a basespellstat modifier of 0 if (src.length() < 7) { valString = "0"; } else { // src should be CLASS. something aClass = getPc().getClassKeyed(src.substring(6)); } if (aClass != null) { valString = String.valueOf(getPc().getBaseSpellStatBonus(aClass)); } } else if ("SPELLLEVEL".equals(valString)) { valString = String.valueOf(getPc().getSpellLevelTemp()); } else if ((valString.length() > 0) && (SettingsHandler.getGame().getStatFromAbbrev(valString) > -1)) { // TODO: JSC -- more testing! // Big Changes here! final int iX = SettingsHandler.getGame().getStatFromAbbrev(valString); final int statNum = getPc().getStatList().getTotalStatFor(valString); final int statMod = getPc().getStatList().getModForNumber(statNum, iX); valString = Integer.toString(statMod); //valString = Integer.toString(statList.getStatModFor(valString)); } else if ((valString.length() == 8) && (SettingsHandler.getGame().getStatFromAbbrev(valString.substring(0, 3)) > -1) && valString.endsWith(".BASE")) { valString = Integer.toString(getPc().getStatList().getBaseStatFor(valString.substring(0, 3))); } else if ((valString.length() >= 8) && valString.substring(3).startsWith("SCORE")) { if (valString.endsWith(".BASE")) { valString = Integer.toString(getPc().getStatList().getBaseStatFor(valString.substring(0, 3))); } else { valString = Integer.toString(getPc().getStatList().getTotalStatFor(valString.substring(0, 3))); } } else if ("CASTERLEVEL".equals(valString) && src.startsWith("RACE:")) { final int iLev = getPc().getTotalCasterLevelWithSpellBonus(aSpell, Constants.s_NONE, "RACE." + src.substring(5), 0); if (iLev > 0) { valString = Integer.toString(iLev); } // If no CASTERLEVEL has been defined for this race then don't substitute // so it will be apparent on the output sheet that it needs to be defined.. } else if ("CASTERLEVEL.TOTAL".equals(valString) || ("CASTERLEVEL".equals(valString) && !src.startsWith("CLASS:"))) { int iLev = 0; for (Iterator e = getPc().getClassList().iterator(); e.hasNext();) { final PCClass aClass = (PCClass) e.next(); if (aClass.getSpellType() != Constants.s_NONE) { final String classKey = aClass.getKeyName(); String spellType = Constants.s_NONE; final int pcBonusLevel = (int) getPc().getTotalBonusTo("PCLEVEL", classKey); if ((aClass != null) && (aClass.getSpellType() != Constants.s_NONE)) { spellType = aClass.getSpellType(); } if (CoreUtility.doublesEqual(getPc().getTotalBonusTo("CASTERLEVEL", classKey), 0.0)) { final int iClass = Integer.parseInt(getPc().getClassLevelString(classKey, false)); iLev += getPc().getTotalCasterLevelWithSpellBonus(aSpell, spellType, classKey, iClass + pcBonusLevel); } else { iLev += getPc().getTotalCasterLevelWithSpellBonus(aSpell, spellType, classKey, pcBonusLevel); } } } valString = Integer.toString(iLev); } else if ("CASTERLEVEL".equals(valString) && src.startsWith("CLASS:")) { String classKey = src.substring(6); // check if this is a domain spell final CharacterDomain aCD = getPc().getCharacterDomainForDomain(classKey); if (aCD != null) //yup, it's a domain alright { classKey = aCD.getObjectName(); //returns Domain source (e.g, "Cleric") } final PCClass spClass = Globals.getClassKeyed(classKey); String spellType = Constants.s_NONE; if ((spClass != null) && (spClass.getSpellType() != Constants.s_NONE)) { spellType = spClass.getSpellType(); } final int pcBonusLevel = (int) getPc().getTotalBonusTo("PCLEVEL", classKey); int iLev = (int) getPc().getTotalBonusTo("CASTERLEVEL", classKey); if (iLev == 0) { // If no CASTERLEVEL has been // defined for this class then // use total class level instead iLev = Integer.parseInt(getPc().getClassLevelString(classKey, false)); iLev = getPc().getTotalCasterLevelWithSpellBonus(aSpell, spellType, classKey, iLev + pcBonusLevel); } else { iLev = getPc().getTotalCasterLevelWithSpellBonus(aSpell, spellType, classKey, pcBonusLevel); } valString = Integer.toString(iLev); } else if ("CASTERLEVEL".equals(valString)) { Logging.debugPrint("src for CASTERLEVEL: " + src); } else if ("CL".equals(valString) && src.startsWith("CLASS:")) { valString = getPc().getClassLevelString(src.substring(6), false); } else if (valString.startsWith("CL=") || valString.startsWith("CL.")) { valString = getPc().getClassLevelString(valString.substring(3), false); } else if ((valString.startsWith("CL;BEFORELEVEL=") || valString.startsWith("CL;BEFORELEVEL.")) && src.startsWith("CLASS:")) { valString = getPc().getClassLevelString(src.substring(6) + valString.substring(2), false); } else if ("BL".equals(valString) && src.startsWith("CLASS:")) { valString = Integer.toString((int) getPc().getTotalBonusTo("PCLEVEL", src.substring(6))); } else if (valString.startsWith("BL=") || valString.startsWith("BL.")) { valString = Integer.toString((int) getPc().getTotalBonusTo("PCLEVEL", valString.substring(3))); } else if ("BAB".equals(valString)) { valString = Integer.toString(getPc().baseAttackBonus()); } else if (valString.startsWith("CLASSLEVEL=") || valString.startsWith("CLASSLEVEL.")) { valString = getPc().getClassLevelString(valString.substring(11), true); } else if (valString.startsWith("CLASS=") || valString.startsWith("CLASS.")) { PCClass aClass = null; if (valString.length() > 6) { aClass = getPc().getClassKeyed(valString.substring(6)); } else { Logging.errorPrint("Error! Cannot determine CLASS!"); } if (aClass != null) { valString = "1"; } else { valString = "0"; } } else if (valString.startsWith("SKILLRANK=") || valString.startsWith("SKILLRANK.")) { final Skill aSkill = getPc().getSkillKeyed(valString.substring(10).replace('{', '(').replace('}', ')')); if (aSkill != null) { valString = aSkill.getRank().toString(); } else { valString = "0"; } } else if (valString.startsWith("SKILLTOTAL=") || valString.startsWith("SKILLTOTAL.")) { final Skill aSkill = getPc().getSkillKeyed(valString.substring(11).replace('{', '(').replace('}', ')')); if (aSkill != null) { valString = Integer.toString(aSkill.getTotalRank(getPc()).intValue() + aSkill.modifier(getPc()).intValue()); } else { valString = "0"; } } else if ("TL".equals(valString)) { valString = Integer.toString(getPc().getTotalLevels()); } else if ("HD".equals(valString)) { // check companionModList? valString = Integer.toString(getPc().totalHitDice()); } else if ("PROFACCHECK".equals(valString) && src.startsWith("EQ:")) { final Equipment eq = EquipmentList.getEquipmentNamed(src.substring(3)); if ((eq != null) && !getPc().isProficientWith(eq)) { valString = Integer.toString(eq.acCheck(getPc()).intValue()); } else { valString = "0"; } } else if ("ACCHECK".equals(valString) || "ACHECK".equals(valString)) { int maxCheck = 0; for (Iterator e = getPc().getEquipmentOfType("Armor", 1).iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); maxCheck += eq.acCheck(getPc()).intValue(); } for (Iterator e = getPc().getEquipmentOfType("Shield", 1).iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); maxCheck += eq.acCheck(getPc()).intValue(); } valString = Integer.toString(maxCheck); } else if ("ARMORACCHECK".equals(valString) || "ARMORACHECK".equals(valString)) { int maxCheck = 0; for (Iterator e = getPc().getEquipmentOfType("Armor", 1).iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); maxCheck += eq.acCheck(getPc()).intValue(); } valString = Integer.toString(maxCheck); } else if ("SHIELDACCHECK".equals(valString) || "SHIELDACHECK".equals(valString)) { int maxCheck = 0; for (Iterator e = getPc().getEquipmentOfType("Shield", 1).iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); maxCheck += eq.acCheck(getPc()).intValue(); } valString = Integer.toString(maxCheck); } else if ("SIZE".equals(valString)) { valString = String.valueOf(getPc().sizeInt()); } else if ("SIZEMOD".equals(valString)) { valString = String.valueOf((int) getPc().getSizeAdjustmentBonusTo("COMBAT", "AC")); } else if ("RACESIZE".equals(valString)) { valString = String.valueOf(Globals.sizeInt(getPc().getRace().getSize())); } else if ("ENCUMBERANCE".equals(valString)) { final int loadScore = getVariableValue(null, "LOADSCORE", "", getPc().getSpellLevelTemp()).intValue(); valString = String.valueOf(Globals.loadTypeForLoadScore( loadScore, getPc().totalWeight(), getPc())); } else if ("MOVEBASE".equals(valString)) { valString = getPc().getRace().getMovement().getDoubleMovement().toString(); } else if (valString.startsWith("MOVE[")) { final String moveString = valString.substring(5, valString.lastIndexOf("]")); valString = String.valueOf(getPc().movementOfType(moveString)); } else if ("COUNT[ATTACKS]".equals(valString)) { valString = Integer.toString(getPc().getNumAttacks()); } else if ("COUNT[CHECKS]".equals(valString)) { valString = String.valueOf(SettingsHandler.getGame().getUnmodifiableCheckList().size()); } else if ("COUNT[FOLLOWERS]".equals(valString)) { valString = Integer.toString(getPc().getFollowerList().size()); } else if ("COUNT[STATS]".equals(valString)) { valString = Integer.toString(SettingsHandler.getGame().s_ATTRIBLONG.length); } else if ("COUNT[SKILLS]".equals(valString)) { // We use the list in output order to ensure the size // does not include hidden skills final ArrayList skillList = getPc().getSkillListInOutputOrder(); skillList.trimToSize(); valString = Integer.toString(skillList.size()); } else if (valString.startsWith("COUNT[SKILLTYPE=") || valString.startsWith("COUNT[SKILLTYPE.")) { if (valString.endsWith("]")) { final ArrayList skillList = getPc().getSkillListInOutputOrder((ArrayList) getPc().getAllSkillList(true).clone()); int typeCount = 0; valString = valString.substring(16); valString = valString.substring(0, valString.length() - 1); for (Iterator ee = skillList.iterator(); ee.hasNext();) { final Skill aSkill = (Skill) ee.next(); if (aSkill.isType(valString)) { ++typeCount; } } valString = Integer.toString(typeCount); } } else if ("COUNT[FEATS.ALL]".equals(valString)) { valString = Integer.toString(getPc().getNumberOfRealFeats()); } else if ("COUNT[FEATS.HIDDEN]".equals(valString)) { valString = Integer.toString(countVisibleFeats(getPc().getRealFeatsIterator(), false, true)); } else if ("COUNT[FEATS]".equals(valString) || "COUNT[FEATS.VISIBLE]".equals(valString)) { valString = Integer.toString(countVisibleFeats(getPc().getRealFeatsIterator(), true, false)); } else if ("COUNT[VFEATS.ALL]".equals(valString)) { valString = Integer.toString(getPc().getVirtualFeatList().size()); } else if ("COUNT[VFEATS.HIDDEN]".equals(valString)) { valString = Integer.toString(countVisibleFeats(getPc().getVirtualFeatListIterator(), false, true)); } else if ("COUNT[VFEATS]".equals(valString) || "COUNT[VFEATS.VISIBLE]".equals(valString)) { valString = Integer.toString(countVisibleFeats(getPc().getVirtualFeatListIterator(), true, false)); } else if ("COUNT[FEATSAUTO.ALL]".equals(valString)) { valString = Integer.toString(getPc().featAutoList().size()); } else if ("COUNT[FEATSAUTO]".equals(valString) || "COUNT[FEATSAUTO.VISIBLE]".equals(valString)) { valString = Integer.toString(countVisibleFeats(getPc().featAutoListIterator(), true, false)); } else if ("COUNT[FEATSAUTO.HIDDEN]".equals(valString)) { valString = Integer.toString(countVisibleFeats(getPc().featAutoListIterator(), false, true)); } else if ("COUNT[FEATSALL]".equals(valString) || "COUNT[FEATSALL.VISIBLE]".equals(valString)) { valString = Integer.toString(getPc().aggregateVisibleFeatList().size()); } else if ("COUNT[FEATSALL.ALL]".equals(valString)) { valString = Integer.toString(getPc().aggregateFeatList().size()); } else if ("COUNT[FEATSALL.HIDDEN]".equals(valString)) { valString = Integer.toString(countVisibleFeats(getPc().aggregateFeatListIterator(), false, true)); } else if ((valString.startsWith("COUNT[FEATTYPE=") || valString.startsWith("COUNT[FEATTYPE.")) && valString.endsWith(".ALL]")) { final List featTypes = CoreUtility.split(valString.substring(15, valString.length() - 5), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().aggregateFeatList(), featTypes, true, true)); } else if ((valString.startsWith("COUNT[FEATTYPE=") || valString.startsWith("COUNT[FEATTYPE.")) && valString.endsWith(".HIDDEN]")) { final List featTypes = CoreUtility.split(valString.substring(15, valString.length() - 8), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().aggregateFeatList(), featTypes, false, true)); } else if ((valString.startsWith("COUNT[FEATTYPE=") || valString.startsWith("COUNT[FEATTYPE.")) && valString.endsWith(".VISIBLE]")) { final List featTypes = CoreUtility.split(valString.substring(15, valString.length() - 9), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().aggregateFeatList(), featTypes, true, false)); } else if ((valString.startsWith("COUNT[FEATTYPE=") || valString.startsWith("COUNT[FEATTYPE.")) && valString.endsWith("]")) { final List featTypes = CoreUtility.split(valString.substring(15, valString.length() - 1), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().aggregateFeatList(), featTypes, true, false)); } // else if ((valString.startsWith("COUNT[VFEATTYPE=") || valString.startsWith("COUNT[VFEATTYPE.")) && valString.endsWith(".ALL]")) { final List featTypes = CoreUtility.split(valString.substring(16, valString.length() - 5), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().getVirtualFeatList(), featTypes, true, true)); } else if ((valString.startsWith("COUNT[VFEATTYPE=") || valString.startsWith("COUNT[VFEATTYPE.")) && valString.endsWith(".HIDDEN]")) { final List featTypes = CoreUtility.split(valString.substring(16, valString.length() - 8), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().getVirtualFeatList(), featTypes, false, true)); } else if ((valString.startsWith("COUNT[VFEATTYPE=") || valString.startsWith("COUNT[VFEATTYPE.")) && valString.endsWith(".VISIBLE]")) { final List featTypes = CoreUtility.split(valString.substring(16, valString.length() - 9), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().getVirtualFeatList(), featTypes, true, false)); } else if ((valString.startsWith("COUNT[VFEATTYPE=") || valString.startsWith("COUNT[VFEATTYPE.")) && valString.endsWith("]")) { final List featTypes = CoreUtility.split(valString.substring(16, valString.length() - 1), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().getVirtualFeatList(), featTypes, true, false)); } // else if ((valString.startsWith("COUNT[FEATAUTOTYPE=") || valString.startsWith("COUNT[FEATAUTOTYPE.")) && valString.endsWith(".ALL]")) { final List featTypes = CoreUtility.split(valString.substring(19, valString.length() - 5), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().featAutoList(), featTypes, true, true)); } else if ((valString.startsWith("COUNT[FEATAUTOTYPE=") || valString.startsWith("COUNT[FEATAUTOTYPE.")) && valString.endsWith(".HIDDEN]")) { final List featTypes = CoreUtility.split(valString.substring(19, valString.length() - 8), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().featAutoList(), featTypes, false, true)); } else if ((valString.startsWith("COUNT[FEATAUTOTYPE=") || valString.startsWith("COUNT[FEATAUTOTYPE.")) && valString.endsWith(".VISIBLE]")) { final List featTypes = CoreUtility.split(valString.substring(19, valString.length() - 9), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().featAutoList(), featTypes, true, false)); } else if ((valString.startsWith("COUNT[FEATAUTOTYPE=") || valString.startsWith("COUNT[FEATAUTOTYPE.")) && valString.endsWith("]")) { final List featTypes = CoreUtility.split(valString.substring(19, valString.length() - 1), '.'); valString = Integer.toString(countVisibleFeatTypes(getPc().featAutoList(), featTypes, true, false)); } // else if ((valString.startsWith("COUNT[FEATNAME=") || valString.startsWith("COUNT[FEATNAME.")) && valString.endsWith(".ALL]")) { final String featKey = valString.substring(15, valString.length() - 5); valString = Integer.toString(countVisibleFeatsOfKey(getPc().aggregateFeatList(), featKey, true, true)); } else if ((valString.startsWith("COUNT[FEATNAME=") || valString.startsWith("COUNT[FEATNAME.")) && valString.endsWith(".HIDDEN]")) { final String featKey = valString.substring(15, valString.length() - 8); valString = Integer.toString(countVisibleFeatsOfKey(getPc().aggregateFeatList(), featKey, false, true)); } else if ((valString.startsWith("COUNT[FEATNAME=") || valString.startsWith("COUNT[FEATNAME.")) && valString.endsWith(".VISIBLE]")) { final String featKey = valString.substring(15, valString.length() - 9); valString = Integer.toString(countVisibleFeatsOfKey(getPc().aggregateFeatList(), featKey, true, false)); } else if ((valString.startsWith("COUNT[FEATNAME=") || valString.startsWith("COUNT[FEATNAME.")) && valString.endsWith("]")) { final String featKey = valString.substring(15, valString.length() - 1); valString = Integer.toString(countVisibleFeatsOfKey(getPc().aggregateFeatList(), featKey, true, false)); } else if (valString.startsWith("COUNT[SPELLSKNOWN") && valString.endsWith("]")) { int spellCount = 0; if (SettingsHandler.getPrintSpellsWithPC()) { spellCount = getPc().countSpellListBook(valString); } valString = Integer.toString(spellCount); } else if (valString.startsWith("COUNT[SPELLSINBOOK") && valString.endsWith("]")) { valString = valString.substring(18); valString = valString.substring(0, valString.length() - 1); int sbookCount = 0; if (SettingsHandler.getPrintSpellsWithPC()) { sbookCount = getPc().countSpellsInBook(valString); } valString = Integer.toString(sbookCount); } else if (valString.startsWith("COUNT[SPELLSLEVELSINBOOK") && valString.endsWith("]")) { valString = valString.substring(24); valString = valString.substring(0, valString.length() - 1); final int sbookCount = getPc().countSpellLevelsInBook(valString); valString = Integer.toString(sbookCount); } else if (valString.startsWith("COUNT[SPELLTIMES") && valString.endsWith("]")) { valString = valString.substring(6); valString = valString.substring(0, valString.length() - 1); valString = String.valueOf(getPc().countSpellTimes(valString)); } else if (valString.startsWith("COUNT[SPELLBOOKS") && valString.endsWith("]")) { valString = Integer.toString(getPc().getSpellBooks().size()); } else if ("COUNT[SPELLCLASSES]".equals(valString)) { valString = String.valueOf(getPc().getSpellClassCount()); } else if ("COUNT[SPELLRACE]".equals(valString)) { final PObject aSpellRace = getPc().getSpellClassAtIndex(0); valString = (aSpellRace instanceof Race) ? "1" : "0"; } else if ("COUNT[TEMPBONUSNAMES]".equals(valString)) { valString = String.valueOf(getPc().getNamedTempBonusList().size()); } else if ("COUNT[CLASSES]".equals(valString)) { getPc().getClassList().trimToSize(); int iCount = getPc().getClassList().size(); if (SettingsHandler.hideMonsterClasses()) { for (Iterator ee = getPc().getClassList().iterator(); ee.hasNext();) { final PCClass aClass = (PCClass) ee.next(); if (aClass.isMonster()) { --iCount; } } } valString = Integer.toString(iCount); } else if ("COUNT[DOMAINS]".equals(valString)) { valString = Integer.toString(getPc().getCharacterDomainList().size()); } else if (valString.startsWith("COUNT[EQUIPMENT") && valString.endsWith("]")) { int merge = Constants.MERGE_ALL; // check to see how we are merging if (valString.indexOf("MERGENONE") > 0) { merge = Constants.MERGE_NONE; } else if (valString.indexOf("MERGELOC") > 0) { merge = Constants.MERGE_LOCATION; } ArrayList aList = new ArrayList(); if (!getPc().getEquipmentListInOutputOrder(merge).isEmpty()) { for (Iterator e = getPc().getEquipmentListInOutputOrder(merge).iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); aList.add(eq); } } if ("COUNT[EQUIPMENT]".equals(valString)) { valString = Integer.toString(aList.size()); } else { final StringTokenizer bTok = new StringTokenizer(valString.substring(16, valString.length() - 1), "."); while (bTok.hasMoreTokens()) //should be ok, assumes last two fields are # and a Param { final String bString = bTok.nextToken(); if ("NOT".equalsIgnoreCase(bString)) { aList = new ArrayList(EquipmentUtilities.removeEqType(aList, bTok.nextToken())); } else if ("ADD".equalsIgnoreCase(bString)) { aList = new ArrayList(getPc().addEqType(aList, bTok.nextToken())); } else if ("IS".equalsIgnoreCase(bString)) { aList = new ArrayList(EquipmentUtilities.removeNotEqType(aList, bTok.nextToken())); } } valString = Integer.toString(aList.size()); } aList.clear(); } else if (valString.startsWith("COUNT[EQTYPE.") && valString.endsWith("]")) { int merge = Constants.MERGE_ALL; List aList = new ArrayList(); final StringTokenizer bTok = new StringTokenizer(valString.substring(13, valString.length() - 1), "."); String aType = bTok.nextToken(); // check to see how we are merging equipment if ("MERGENONE".equals(aType)) { merge = Constants.MERGE_NONE; aType = bTok.nextToken(); } else if ("MERGELOC".equals(aType)) { merge = Constants.MERGE_LOCATION; aType = bTok.nextToken(); } if ("CONTAINER".equals(aType)) { aList.clear(); if (!getPc().getEquipmentListInOutputOrder(merge).isEmpty()) { for (Iterator e = getPc().getEquipmentListInOutputOrder(merge).iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); if (eq.acceptsChildren()) { aList.add(eq); } } } } else { if ("WEAPON".equalsIgnoreCase(aType)) { aList = getPc().getExpandedWeapons(merge); } else if ("ACITEM".equalsIgnoreCase(aType)) { // special check for ACITEM // which is realy anything // with AC in the bonus section, // but is not type SHIELD or ARMOR if (!getPc().getEquipmentListInOutputOrder(merge).isEmpty()) { for (Iterator e = getPc().getEquipmentListInOutputOrder(merge).iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); if (eq.getBonusListString("AC") && !eq.isArmor() && !eq.isShield()) { aList.add(eq); } } } } else { aList = getPc().getEquipmentOfTypeInOutputOrder(aType, 3, merge); } } while (bTok.hasMoreTokens()) { final String bString = bTok.nextToken(); if ("NOT".equalsIgnoreCase(bString)) { aList = new ArrayList(EquipmentUtilities.removeEqType(aList, bTok.nextToken())); } else if ("ADD".equalsIgnoreCase(bString)) { aList = new ArrayList(getPc().addEqType(aList, bTok.nextToken())); } else if ("IS".equalsIgnoreCase(bString)) { aList = new ArrayList(EquipmentUtilities.removeNotEqType(aList, bTok.nextToken())); } else if ("EQUIPPED".equalsIgnoreCase(bString) || "NOTEQUIPPED".equalsIgnoreCase(bString)) { final boolean eFlag = "EQUIPPED".equalsIgnoreCase(bString); for (int ix = aList.size() - 1; ix >= 0; --ix) { final Equipment anEquip = (Equipment) aList.get(ix); if (anEquip.isEquipped() != eFlag) { aList.remove(anEquip); } } } } valString = Integer.toString(aList.size()); aList.clear(); } else if ("COUNT[CONTAINERS]".equals(valString)) { final int merge = Constants.MERGE_ALL; final ArrayList aList = new ArrayList(); if (!getPc().getEquipmentListInOutputOrder(merge).isEmpty()) { aList.clear(); for (Iterator e = getPc().getEquipmentListInOutputOrder(merge).iterator(); e.hasNext();) { final Equipment eq = (Equipment) e.next(); if (eq.acceptsChildren()) { aList.add(eq); } } } valString = Integer.toString(aList.size()); aList.clear(); } else if ("COUNT[SA]".equals(valString)) { valString = String.valueOf(getPc().getSpecialAbilityTimesList().size()); } else if ("COUNT[TEMPLATES]".equals(valString)) { getPc().getTemplateList().trimToSize(); valString = String.valueOf(getPc().getTemplateList().size()); } else if ("COUNT[RACESUBTYPES]".equals(valString)) { valString = Integer.toString(getPc().getRacialSubTypes().size()); } else if ("COUNT[VISIBLETEMPLATES]".equals(valString)) { int count = 0; int visibility; for (Iterator it = getPc().getTemplateList().iterator(); it.hasNext();) { visibility = ((PCTemplate) it.next()).isVisible(); if ((visibility == PCTemplate.VISIBILITY_DEFAULT) || (visibility == PCTemplate.VISIBILITY_OUTPUT_ONLY)) { ++count; } } valString = Integer.toString(count); } else if ("COUNT[LANGUAGES]".equals(valString)) { valString = Integer.toString(getPc().getLanguagesList().size()); } else if ("COUNT[MOVE]".equals(valString)) { valString = Integer.toString(getPc().getNumberOfMovements()); } else if ("COUNT[NOTES]".equals(valString)) { valString = Integer.toString(getPc().getNotesList().size()); } else if ("COUNT[VISION]".equals(valString)) { valString = Integer.toString(getPc().getVisiontypeList().size()); } else if (valString.startsWith("COUNT[FOLLOWERTYPE.") && valString.endsWith("]")) { if (valString.indexOf(".") == valString.lastIndexOf(".")) { // This covers COUNT[FOLLOWERTYPE.Animal Companions] syntax int countFollower = 0; String bString = valString.substring(19); bString = bString.substring(0, bString.length() - 1); for (Iterator iter = getPc().getFollowerList().iterator(); iter.hasNext();) { final Follower aFollower = (Follower) iter.next(); if (aFollower.getType().equalsIgnoreCase(bString)) { ++countFollower; } } valString = String.valueOf(countFollower); } else { // This will do COUNT[FOLLOWERTYPE.Animal Companions.0.xxx], // returning the same as COUNT[xxx] if applied to the right follower final List followers = getPc().getFollowerList(); if (!followers.isEmpty()) { StringTokenizer aTok = new StringTokenizer(valString, "[]"); aTok.nextToken(); // Remove the COUNT final String aString = aTok.nextToken(); aTok = new StringTokenizer(aString, "."); aTok.nextToken(); // FOLLOWERTYPE final String typeString = aTok.nextToken(); String restString = ""; int followerIndex = -1; if (aTok.hasMoreTokens()) { restString = aTok.nextToken(); // When removing old token syntax, remove the catch code followerIndex = Integer.parseInt(restString); restString = ""; while (aTok.hasMoreTokens()) { restString = restString + "." + aTok.nextToken(); } if (restString.indexOf(".") == 0) { restString = restString.substring(1); } } restString = "COUNT[" + restString + "]"; final ArrayList aList = new ArrayList(); for (int x = followers.size() - 1; x >= 0; --x) { final Follower fol = (Follower) followers.get(x); if (fol.getType().equalsIgnoreCase(typeString)) { aList.add(fol); } } if (followerIndex < aList.size()) { if (aList.get(followerIndex) instanceof Follower) { final Follower aF = (Follower) aList.get(followerIndex); PlayerCharacter currentPC; for (Iterator p = Globals.getPCList().iterator(); p.hasNext();) { final PlayerCharacter nPC = (PlayerCharacter) p.next(); if (aF.getFileName().equals(nPC.getFileName())) { currentPC = getPc(); Globals.setCurrentPC(nPC); valString = nPC.getVariableValue(restString, "").toString(); Globals.setCurrentPC(currentPC); } } } } } } } else if (valString.startsWith("EQTYPE")) { //valString = ExportHandler.returnReplacedTokenEq(this, valString); final EqTypeToken token = new EqTypeToken(); valString = token.getToken(valString, getPc(), null); } else if (valString.startsWith("VARDEFINED:")) { if (getPc().hasVariable(valString.substring(11).trim())) { valString = "1"; } else { valString = "0"; } } else if (valString.startsWith("HASFEAT:")) { valString = valString.substring(8).trim(); if (getPc().hasRealFeatNamed(valString)) { valString = "1"; } else { valString = "0"; } } else if (valString.startsWith("HASDEITY:")) { valString = valString.substring(9).trim(); if (getPc().hasDeity(valString)) { valString = "1"; } else { valString = "0"; } } else if (valString.startsWith("MODEQUIP")) { valString = String.valueOf(getPc().modToFromEquipment(valString.substring(8))); } else if (valString.startsWith("WEIGHT.")) { valString = valString.substring(7); if ("CARRIED".equals(valString)) { // all carried equipment valString = getPc().totalWeight().toString(); } else if ("EQUIPPED".equals(valString)) { // TODO: not carried, equipped! // all equipped valString = getPc().totalWeight().toString(); } else if ("PC".equals(valString)) { // Characters weight valString = String.valueOf(getPc().getWeight()); } else if ("TOTAL".equals(valString)) { // total weight of PC and all // carried equipment final Float aTotal = new Float(getPc().totalWeight().floatValue() + new Float(getPc().getWeight()).floatValue()); valString = aTotal.toString(); } } else if (valString.startsWith("PC.SIZE")) { int modSize = 0; if (src.startsWith("EQ:")) { final Equipment eq = getPc().getEquipmentNamed(src.substring(3)); if (eq != null) { modSize = (int) getPc().getTotalBonusTo("WEAPONPROF=" + eq.profKey(getPc()), "PCSIZE"); List aList = eq.typeList(); Iterator itera = aList.iterator(); // loops for each equipment type while (itera.hasNext()) { // get the type bonus (ex TYPE.MARTIAL) String type = (String)itera.next(); int tempModSize = (int) getPc().getTotalBonusTo("WEAPONPROF=TYPE." + type, "PCSIZE"); // get the highest bonus if (modSize < tempModSize) { modSize = tempModSize; } } } } if (valString.equals("PC.SIZE")) { valString = getPc().getSize(); } else if (valString.substring(8).equals("INT")) { valString = String.valueOf(getPc().sizeInt() + modSize); } } else if (valString.startsWith("PC.HEIGHT")) { valString = Integer.toString(getPc().getHeight()); } else if (valString.startsWith("PC.WEIGHT")) { valString = Integer.toString(getPc().getWeight()); } else { valString = null; } return valString; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/746f9fbe7d3bb98c609b2f38fbc5ffad4e685726/VariableProcessorPC.java/clean/code/src/java/pcgen/core/VariableProcessorPC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 16918, 3092, 12, 6385, 5878, 1165, 279, 3389, 1165, 16, 514, 1244, 780, 16, 727, 514, 1705, 13, 202, 95, 202, 202, 430, 16051, 19834, 18, 1893, 2175, 12, 2175, 2918, 18, 30664, 67, 48, 8640, 2226, 11129, 3719, 202, 202, 95, 1082, 202, 759, 12324, 358, 1221, 3071, 326, 490, 22953, 60, 1157, 460, 1082, 202, 759, 353, 4336, 358, 3387, 1158, 463, 338, 23862, 1082, 202, 759, 358, 12048, 364, 1262, 405, 511, 7700, 1082, 202, 430, 261, 1125, 780, 18, 14963, 12, 588, 28136, 7675, 588, 5000, 682, 7675, 588, 24251, 15006, 1537, 2932, 6832, 6, 20349, 1082, 202, 95, 9506, 202, 1125, 780, 273, 315, 18088, 14432, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 7566, 28520, 9654, 14963, 12, 1125, 780, 13, 597, 1705, 18, 17514, 1190, 2932, 28549, 2773, 3719, 202, 202, 95, 1082, 202, 1125, 780, 273, 514, 18, 1132, 951, 12, 588, 28136, 7675, 588, 5000, 682, 7675, 588, 5269, 5000, 1290, 12, 4816, 18, 28023, 12, 25, 3719, 1769, 202, 202, 97, 202, 202, 12107, 309, 7566, 23810, 4503, 8369, 28549, 28520, 9654, 14963, 12, 1125, 780, 3719, 202, 202, 95, 1082, 202, 6385, 26300, 797, 20148, 273, 1689, 71, 7675, 588, 797, 653, 329, 12, 4816, 18, 28023, 12, 26, 10019, 1082, 202, 430, 261, 69, 797, 480, 446, 13, 1082, 202, 95, 9506, 202, 1125, 780, 273, 20148, 18, 588, 3389, 1165, 2171, 5000, 1435, 397, 315, 28520, 14432, 9506, 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, 1117, 514, 16918, 3092, 12, 6385, 5878, 1165, 279, 3389, 1165, 16, 514, 1244, 780, 16, 727, 514, 1705, 13, 202, 95, 202, 202, 430, 16051, 19834, 18, 1893, 2175, 12, 2175, 2918, 18, 30664, 67, 48, 8640, 2226, 11129, 3719, 202, 202, 95, 1082, 202, 759, 12324, 358, 1221, 3071, 326, 490, 22953, 60, 1157, 460, 1082, 202, 759, 353, 4336, 358, 3387, 1158, 463, 338, 23862, 1082, 202, 759, 358, 12048, 364, 1262, 405, 511, 7700, 1082, 202, 430, 261, 1125, 780, 18, 14963, 12, 588, 28136, 7675, 588, 5000, 682, 7675, 588, 24251, 15006, 1537, 2932, 6832, 6, 20349, 1082, 202, 95, 9506, 202, 1125, 780, 273, 315, 18088, 14432, 1082, 202, 97, 202, 2 ]
if(t2.type != ATESyntaxLexer.TOKEN_CHAR || !t2.getAttribute().equals("9")) continue; if(t3.type != ATESyntaxLexer.TOKEN_CHAR || !t3.getAttribute().equals("9"))
if(t2.type != ATESyntaxLexer.TOKEN_ID || !t2.getAttribute().equals("HIDDEN"))
public void findTokensToIgnore() { List rules = getRules(); if(rules == null || rules.isEmpty()) return; ATESyntaxLexer lexer = new ATESyntaxLexer(); for (Iterator ruleIter = rules.iterator(); ruleIter.hasNext();) { GrammarSyntaxRule rule = (GrammarSyntaxRule) ruleIter.next(); List blocks = rule.getBlocks(); if(blocks == null || blocks.isEmpty()) continue; rule.ignored = false; for (Iterator blockIter = blocks.iterator(); blockIter.hasNext();) { ATEToken block = (ATEToken) blockIter.next(); lexer.tokenize(block.getAttribute()); List tokens = lexer.getTokens(); for(int t=0; t<tokens.size(); t++) { ATEToken token = (ATEToken)tokens.get(t); if(token.type == ATESyntaxLexer.TOKEN_ID && token.getAttribute().equals("channel") && t+3 < tokens.size()) { ATEToken t1 = (ATEToken)tokens.get(t+1); ATEToken t2 = (ATEToken)tokens.get(t+2); ATEToken t3 = (ATEToken)tokens.get(t+3); if(t1.type != ATESyntaxLexer.TOKEN_CHAR || !t1.getAttribute().equals("=")) continue; if(t2.type != ATESyntaxLexer.TOKEN_CHAR || !t2.getAttribute().equals("9")) continue; if(t3.type != ATESyntaxLexer.TOKEN_CHAR || !t3.getAttribute().equals("9")) continue; rule.ignored = true; break; } } } } rulesTree.repaint(); }
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/599a1b2f72808f59258d3e27b22050d45b687df8/EditorRules.java/buggy/src/org/antlr/works/editor/EditorRules.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1104, 5157, 774, 3777, 1435, 288, 3639, 987, 2931, 273, 27357, 5621, 3639, 309, 12, 7482, 422, 446, 747, 2931, 18, 291, 1921, 10756, 5411, 327, 31, 3639, 432, 7296, 5392, 13356, 8512, 273, 394, 432, 7296, 5392, 13356, 5621, 3639, 364, 261, 3198, 1720, 2360, 273, 2931, 18, 9838, 5621, 1720, 2360, 18, 5332, 2134, 5621, 13, 288, 5411, 27809, 8070, 2175, 1720, 273, 261, 18576, 8070, 2175, 13, 1720, 2360, 18, 4285, 5621, 5411, 987, 4398, 273, 1720, 18, 588, 6450, 5621, 5411, 309, 12, 7996, 422, 446, 747, 4398, 18, 291, 1921, 10756, 7734, 1324, 31, 5411, 1720, 18, 24055, 273, 629, 31, 5411, 364, 261, 3198, 1203, 2360, 273, 4398, 18, 9838, 5621, 1203, 2360, 18, 5332, 2134, 5621, 13, 288, 7734, 432, 1448, 1345, 1203, 273, 261, 1777, 1345, 13, 1203, 2360, 18, 4285, 5621, 7734, 8512, 18, 2316, 554, 12, 2629, 18, 588, 1499, 10663, 7734, 987, 2430, 273, 8512, 18, 588, 5157, 5621, 7734, 364, 12, 474, 268, 33, 20, 31, 268, 32, 7860, 18, 1467, 5621, 268, 27245, 288, 10792, 432, 1448, 1345, 1147, 273, 261, 1777, 1345, 13, 7860, 18, 588, 12, 88, 1769, 10792, 309, 12, 2316, 18, 723, 422, 432, 7296, 5392, 13356, 18, 8412, 67, 734, 597, 1147, 18, 588, 1499, 7675, 14963, 2932, 4327, 7923, 597, 268, 15, 23, 411, 2430, 18, 1467, 10756, 288, 13491, 432, 1448, 1345, 268, 21, 273, 261, 1777, 1345, 13, 7860, 18, 588, 12, 88, 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, 1104, 5157, 774, 3777, 1435, 288, 3639, 987, 2931, 273, 27357, 5621, 3639, 309, 12, 7482, 422, 446, 747, 2931, 18, 291, 1921, 10756, 5411, 327, 31, 3639, 432, 7296, 5392, 13356, 8512, 273, 394, 432, 7296, 5392, 13356, 5621, 3639, 364, 261, 3198, 1720, 2360, 273, 2931, 18, 9838, 5621, 1720, 2360, 18, 5332, 2134, 5621, 13, 288, 5411, 27809, 8070, 2175, 1720, 273, 261, 18576, 8070, 2175, 13, 1720, 2360, 18, 4285, 5621, 5411, 987, 4398, 273, 1720, 18, 588, 6450, 5621, 5411, 309, 12, 7996, 422, 446, 747, 4398, 18, 291, 1921, 10756, 7734, 1324, 31, 5411, 1720, 18, 24055, 273, 629, 31, 5411, 364, 261, 3198, 1203, 2360, 273, 4398, 18, 9838, 2 ]
int index=size;
private DatatypeValidator traverseSimpleTypeDecl(Element simpleTypeDecl, Object[] attrValues, XSDocumentInfo schemaDoc, SchemaGrammar grammar, boolean isGlobal) { String nameProperty = (String)attrValues[XSAttributeChecker.ATTIDX_NAME]; String qualifiedName = nameProperty; Hashtable fFacetData = null; //--------------------------------------------------- // set qualified name //--------------------------------------------------- if (nameProperty == null) { // anonymous simpleType qualifiedName = schemaDoc.fTargetNamespace == null? ",#s#"+(fSimpleTypeAnonCount++): schemaDoc.fTargetNamespace+",#S#"+(fSimpleTypeAnonCount++); //REVISIT: // add to symbol table? } else { qualifiedName = schemaDoc.fTargetNamespace == null? ","+nameProperty: schemaDoc.fTargetNamespace+","+nameProperty; //REVISIT: // add to symbol table? } //---------------------------------------------------------- // REVISIT! // update _final_ registry //---------------------------------------------------------- XInt finalAttr = (XInt)attrValues[XSAttributeChecker.ATTIDX_FINAL]; int finalProperty = finalAttr == null ? schemaDoc.fFinalDefault : finalAttr.intValue(); //---------------------------------------------------------------------- //annotation?,(list|restriction|union) //---------------------------------------------------------------------- Element content = DOMUtil.getFirstChildElement(simpleTypeDecl); if (content != null) { // traverse annotation if any if (DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(content, attrValues, false, schemaDoc); content = DOMUtil.getNextSiblingElement(content); } } if (content == null) { reportSchemaError("dt-simpleType", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, nameProperty, "(annotation?, (restriction | list | union))"}); return null; } // General Attribute Checking Object[] contentAttrs = fAttrChecker.checkAttributes(content, false, schemaDoc); // REVISIT: when to return the array fAttrChecker.returnAttrArray(contentAttrs, schemaDoc); //---------------------------------------------------------------------- //use content.getLocalName for the cases there "xsd:" is a prefix, ei. "xsd:list" //---------------------------------------------------------------------- String varietyProperty = DOMUtil.getLocalName(content); //content.getLocalName(); QName baseTypeName = null; Vector memberTypes = null; Vector dTValidators = null; int size = 0; boolean list = false; boolean union = false; boolean restriction = false; int numOfTypes = 0; //list/restriction = 1, union = "+" if (varietyProperty.equals(SchemaSymbols.ELT_LIST)) { //traverse List baseTypeName = (QName)contentAttrs[XSAttributeChecker.ATTIDX_ITEMTYPE]; list = true; if (fListName.length() != 0) { // parent is <list> datatype reportCosListOfAtomic(nameProperty); return null; } else { fListName = qualifiedName; } } else if (varietyProperty.equals(SchemaSymbols.ELT_RESTRICTION)) { //traverse Restriction baseTypeName = (QName)contentAttrs[XSAttributeChecker.ATTIDX_BASE]; //content.getAttribute( SchemaSymbols.ATT_BASE ); restriction= true; } else if (varietyProperty.equals(SchemaSymbols.ELT_UNION)) { //traverse union union = true; memberTypes = (Vector)contentAttrs[XSAttributeChecker.ATTIDX_MEMBERTYPES]; //content.getAttribute( SchemaSymbols.ATT_MEMBERTYPES); if (memberTypes != null) { size = memberTypes.size(); } else { size = 1; //at least one must be seen as <simpleType> decl } dTValidators = new Vector (size, 2); } else { Object[] args = { varietyProperty}; reportSchemaError("dt-unsupported-derivation", args); } if (DOMUtil.getNextSiblingElement(content) != null) { reportSchemaError("dt-simpleType", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, nameProperty, "(annotation?, (restriction | list | union))"}); } DatatypeValidator baseValidator = null; if (baseTypeName == null && memberTypes == null) { //--------------------------- //must 'see' <simpleType> //--------------------------- //content = {annotation?,simpleType?...} content = DOMUtil.getFirstChildElement(content); //check content (annotation?, ...) if (content != null) { // traverse annotation if any if (DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(content, attrValues, false, schemaDoc); content = DOMUtil.getNextSiblingElement(content); } } if (content == null) { reportSchemaError("dt-simpleType", new Object[]{SchemaSymbols.ELT_SIMPLETYPE, nameProperty, "(annotation?, (restriction | list | union))"}); return null; } if (DOMUtil.getLocalName(content).equals( SchemaSymbols.ELT_SIMPLETYPE )) { baseValidator = traverseLocal(content, schemaDoc, grammar); if (baseValidator != null && union) { dTValidators.addElement((DatatypeValidator)baseValidator); } if (baseValidator == null) { Object[] args = {content.getAttribute( SchemaSymbols.ATT_BASE )}; reportSchemaError("dt-unknown-basetype", args); return (DatatypeValidator)SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_STRING); } } else { Object[] args = { simpleTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )}; reportSchemaError("dt-simpleType",new Object[]{SchemaSymbols.ELT_SIMPLETYPE, nameProperty, "(annotation?, (restriction | list | union))"}); return (DatatypeValidator)SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_STRING); } } //end - must see simpleType? else { //----------------------------- //base was provided - get proper validator. //----------------------------- numOfTypes = 1; if (union) { numOfTypes= size; } //-------------------------------------------------------------------- // this loop is also where we need to find out whether the type being used as // a base (or itemType or whatever) allows such things. //-------------------------------------------------------------------- int baseRefContext = (restriction? SchemaSymbols.RESTRICTION:0); baseRefContext = baseRefContext | (union? SchemaSymbols.UNION:0); baseRefContext = baseRefContext | (list ? SchemaSymbols.LIST:0); for (int i=0; i<numOfTypes; i++) { //find all validators if (union) { baseTypeName = (QName)memberTypes.elementAt(i); } baseValidator = findDTValidator ( simpleTypeDecl, baseTypeName, baseRefContext, schemaDoc); if (baseValidator == null) { Object[] args = { content.getAttribute( SchemaSymbols.ATT_BASE ), nameProperty}; reportSchemaError("dt-unknown-basetype", args); baseValidator = (DatatypeValidator)SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_STRING); } // ------------------------------ // (variety is list)cos-list-of-atomic // ------------------------------ if (fListName.length() != 0) { if (baseValidator instanceof ListDatatypeValidator) { reportCosListOfAtomic(nameProperty); return null; } //----------------------------------------------------- // if baseValidator is of type (union) need to look // at Union validators to make sure that List is not one of them //----------------------------------------------------- if (isListDatatype(baseValidator)) { reportCosListOfAtomic(nameProperty); return null; } } if (union) { dTValidators.addElement((DatatypeValidator)baseValidator); //add validator to structure } } } //end - base is available // ------------------------------------------ // move to next child // <base==empty)->[simpleType]->[facets] OR // <base!=empty)->[facets] // ------------------------------------------ if (baseTypeName == null) { content = DOMUtil.getNextSiblingElement( content ); } else { content = DOMUtil.getFirstChildElement(content); if (content != null) { // traverse annotation if any if (DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(content, attrValues, false, schemaDoc); content = DOMUtil.getNextSiblingElement(content); } } } // ------------------------------------------ //get more types for union if any // ------------------------------------------ if (union) { int index=size; if (memberTypes != null) { if (content != null) { // traverse annotation if any if (DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(content, attrValues, false, schemaDoc); content = DOMUtil.getNextSiblingElement(content); } } if (content !=null) { if (DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_ANNOTATION)) { Object[] args = {nameProperty}; reportSchemaError("dt-union-memberType", args); } } } while (content!=null) { baseValidator = traverseLocal(content, schemaDoc, grammar); if (baseValidator != null) { if (fListName.length() != 0 && baseValidator instanceof ListDatatypeValidator) { reportCosListOfAtomic(nameProperty); return null; } dTValidators.addElement((DatatypeValidator)baseValidator); } if (baseValidator == null) { Object[] args = { content.getAttribute( SchemaSymbols.ATT_BASE ), nameProperty}; reportSchemaError("dt-unknown-basetype", args); baseValidator = (DatatypeValidator)SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_STRING); } content = DOMUtil.getNextSiblingElement( content ); } } // end - traverse Union if (fListName.length() != 0) { // reset fListName, meaning that we are done with // traversing <list> and its itemType resolves to atomic value if (fListName.equals(qualifiedName)) { fListName = SchemaSymbols.EMPTY_STRING; } } if (restriction && content != null) { fFacetInfo fi = traverseFacets(content, contentAttrs,nameProperty, baseValidator, schemaDoc, grammar); content = fi.nodeAfterFacets; if (content != null) { content = null; reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_RESTRICTION, "(annotation?, (simpleType?, (minExclusive | minInclusive | maxExclusive | maxInclusive | totalDigits | fractionDigits | length | minLength | maxLength | enumeration | whiteSpace | pattern)*))"}); } fFacetData = fi.facetdata; } else if (list && content!=null) { // report error - must not have any children! if (baseTypeName !=null) { // traverse annotation if any if (DOMUtil.getLocalName(content).equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(content, attrValues, false, schemaDoc); content = DOMUtil.getNextSiblingElement(content); } if (content !=null) { Object[] args = {nameProperty}; reportSchemaError("dt-list-itemType", args); } } else { reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_LIST, "(annotation?, (simpleType?))"}); } } else if (union && content!=null) { //report error - must not have any children! reportSchemaError("s4s-elt-must-match", new Object[]{SchemaSymbols.ELT_UNION, "(annotation?, (simpleType?))"}); } // REVISIT: constructors in the datatypes rely on the fact that facets hashtable is not null. // (see inheriting base type facets). if (fFacetData== null) { fFacetData = new Hashtable(); } DatatypeValidator newDV = null; if (list) { newDV = new ListDatatypeValidator(baseValidator, fFacetData, true, fErrorReporter); } else if (restriction) { fValidationState.setNamespaceSupport(schemaDoc.fNamespaceSupport); // REVISIT: after using the new simpleType interfaces, should be: //stype = dvFactory.create(...); //stype.applyFacets(..., fValidationState); newDV = createRestrictedValidator(baseValidator, fFacetData, fErrorReporter); } else { //union newDV = new UnionDatatypeValidator(dTValidators, fErrorReporter); } // don't add global components without name to the grammar if (nameProperty == null && isGlobal) { return null; } if (newDV != null && isGlobal) { newDV.setFinalSet(finalProperty); ((AbstractDatatypeValidator)newDV).fLocalName = nameProperty; grammar.addGlobalTypeDecl(newDV); } return newDV; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/5b0cf65d1d2e090172d69189c96c522d6a30ac2c/XSDSimpleTypeTraverser.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDSimpleTypeTraverser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 21168, 5126, 10080, 5784, 559, 3456, 12, 1046, 4143, 559, 3456, 16, 1033, 8526, 1604, 1972, 16, 4766, 5397, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 5397, 4611, 18576, 6473, 16, 1250, 353, 5160, 13, 288, 3639, 514, 508, 1396, 225, 273, 261, 780, 13, 1747, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 1985, 15533, 3639, 514, 24133, 273, 508, 1396, 31, 3639, 18559, 284, 11137, 751, 273, 446, 31, 3639, 368, 9634, 6062, 3639, 368, 444, 9348, 508, 3639, 368, 9634, 6062, 3639, 309, 261, 529, 1396, 422, 446, 13, 288, 368, 13236, 4143, 559, 5411, 24133, 273, 1963, 1759, 18, 74, 2326, 3402, 422, 446, 35, 7734, 3104, 7, 87, 17133, 15, 12, 74, 5784, 559, 979, 265, 1380, 9904, 4672, 7734, 1963, 1759, 18, 74, 2326, 3402, 15, 3113, 7, 55, 17133, 15, 12, 74, 5784, 559, 979, 265, 1380, 9904, 1769, 5411, 368, 862, 26780, 1285, 30, 5411, 368, 527, 358, 3273, 1014, 35, 3639, 289, 3639, 469, 288, 5411, 24133, 273, 1963, 1759, 18, 74, 2326, 3402, 422, 446, 35, 7734, 5753, 15, 529, 1396, 30, 7734, 1963, 1759, 18, 74, 2326, 3402, 15, 15937, 15, 529, 1396, 31, 5411, 368, 862, 26780, 1285, 30, 5411, 368, 527, 358, 3273, 1014, 35, 3639, 289, 3639, 368, 9634, 15392, 3639, 368, 2438, 26780, 1285, 5, 3639, 368, 1089, 389, 6385, 67, 4023, 3639, 368, 9634, 15392, 3639, 1139, 1702, 727, 3843, 273, 261, 60, 1702, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 21168, 5126, 10080, 5784, 559, 3456, 12, 1046, 4143, 559, 3456, 16, 1033, 8526, 1604, 1972, 16, 4766, 5397, 1139, 55, 2519, 966, 1963, 1759, 16, 4766, 5397, 4611, 18576, 6473, 16, 1250, 353, 5160, 13, 288, 3639, 514, 508, 1396, 225, 273, 261, 780, 13, 1747, 1972, 63, 60, 55, 1499, 8847, 18, 789, 56, 25647, 67, 1985, 15533, 3639, 514, 24133, 273, 508, 1396, 31, 3639, 18559, 284, 11137, 751, 273, 446, 31, 3639, 368, 9634, 6062, 3639, 368, 444, 9348, 508, 3639, 368, 9634, 6062, 3639, 309, 261, 529, 1396, 422, 446, 13, 288, 368, 13236, 4143, 559, 5411, 24133, 273, 1963, 1759, 18, 74, 2326, 3402, 422, 446, 35, 7734, 3104, 7, 87, 2 ]
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection bug. if (e.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHANGED_PROPERTY)) { if (filechooser.getSelectedFile() == null) setFileName(null); else setFileName(filechooser.getSelectedFile().toString()); int index = -1; File file = filechooser.getSelectedFile(); for (index = 0; index < model.getSize(); index++) if (((File) model.getElementAt(index)).equals(file)) break; if (index == -1) return; filelist.setSelectedIndex(index); filelist.ensureIndexIsVisible(index); filelist.revalidate(); filelist.repaint(); } else if (e.getPropertyName().equals(JFileChooser.DIRECTORY_CHANGED_PROPERTY)) { //boxEntries(); filelist.clearSelection(); filelist.revalidate(); filelist.repaint(); setDirectorySelected(false); setDirectory(filechooser.getCurrentDirectory()); } else if (e.getPropertyName().equals(JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY) || e.getPropertyName().equals(JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) filterEntries(); else if (e.getPropertyName().equals(JFileChooser.DIALOG_TYPE_CHANGED_PROPERTY) || e.getPropertyName().equals(JFileChooser.DIALOG_TITLE_CHANGED_PROPERTY)) { Window owner = SwingUtilities.windowForComponent(filechooser); if (owner instanceof JDialog) ((JDialog) owner).setTitle(getDialogTitle(filechooser)); accept.setText(getApproveButtonText(filechooser)); accept.setToolTipText(getApproveButtonToolTipText(filechooser)); accept.setMnemonic(getApproveButtonMnemonic(filechooser)); } else if (e.getPropertyName().equals(JFileChooser.APPROVE_BUTTON_TEXT_CHANGED_PROPERTY)) accept.setText(getApproveButtonText(filechooser)); else if (e.getPropertyName().equals(JFileChooser.APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY)) accept.setToolTipText(getApproveButtonToolTipText(filechooser)); else if (e.getPropertyName().equals(JFileChooser.APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY)) accept.setMnemonic(getApproveButtonMnemonic(filechooser)); else if (e.getPropertyName().equals(JFileChooser.CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY)) { if (filechooser.getControlButtonsAreShown()) { GridBagConstraints c = new GridBagConstraints(); c.gridy = 1; bottomPanel.add(filters, c); c.fill = GridBagConstraints.BOTH; c.gridy = 2; c.anchor = GridBagConstraints.EAST; bottomPanel.add(closePanel, c); bottomPanel.revalidate(); bottomPanel.repaint(); bottomPanel.doLayout(); } else bottomPanel.remove(closePanel); } else if (e.getPropertyName().equals(JFileChooser.ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY)) { if (filechooser.isAcceptAllFileFilterUsed()) filechooser.addChoosableFileFilter(getAcceptAllFileFilter(filechooser)); else filechooser.removeChoosableFileFilter(getAcceptAllFileFilter(filechooser)); } else if (e.getPropertyName().equals(JFileChooser.ACCESSORY_CHANGED_PROPERTY)) { JComponent old = (JComponent) e.getOldValue(); if (old != null) getAccessoryPanel().remove(old); JComponent newval = (JComponent) e.getNewValue(); if (newval != null) getAccessoryPanel().add(newval); } if (e.getPropertyName().equals(JFileChooser.DIRECTORY_CHANGED_PROPERTY) || e.getPropertyName().equals(JFileChooser.FILE_FILTER_CHANGED_PROPERTY) || e.getPropertyName().equals(JFileChooser.FILE_HIDING_CHANGED_PROPERTY)) rescanCurrentDirectory(filechooser); filechooser.revalidate(); filechooser.repaint(); } }; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/72aac9545cb7d649a067594d257258700eb2edf9/BasicFileChooserUI.java/clean/javax/swing/plaf/basic/BasicFileChooserUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1396, 15744, 2640, 1396, 15744, 12, 46, 812, 17324, 7142, 15329, 2463, 2704, 1396, 15744, 1435, 95, 202, 482, 6459, 4468, 3043, 12, 1396, 20930, 73, 13, 202, 95, 202, 759, 25810, 30, 8438, 2354, 292, 794, 20241, 265, 46, 682, 7027, 6089, 292, 794, 925, 18, 202, 430, 12, 73, 18, 588, 13073, 7675, 14963, 12, 46, 812, 17324, 18, 4803, 2056, 67, 3776, 67, 24435, 67, 9900, 3719, 202, 95, 202, 430, 12, 768, 2599, 13164, 18, 588, 7416, 812, 1435, 631, 2011, 13, 202, 202, 542, 4771, 12, 2011, 1769, 202, 12107, 202, 202, 542, 4771, 12, 768, 2599, 13164, 18, 588, 7416, 812, 7675, 10492, 10663, 202, 474, 1615, 29711, 21, 31, 202, 812, 768, 33, 768, 2599, 13164, 18, 588, 7416, 812, 5621, 202, 1884, 12, 1615, 33, 20, 31, 1615, 32, 2284, 18, 588, 1225, 5621, 1615, 27245, 202, 202, 430, 12443, 12, 812, 13, 2284, 18, 21336, 861, 12, 1615, 13, 2934, 14963, 12, 768, 3719, 202, 202, 8820, 31, 202, 430, 12, 1615, 631, 17, 21, 13, 202, 202, 2463, 31, 202, 7540, 5449, 18, 542, 7416, 1016, 12, 1615, 1769, 202, 7540, 5449, 18, 15735, 1016, 2520, 6207, 12, 1615, 1769, 202, 7540, 5449, 18, 266, 5662, 5621, 202, 7540, 5449, 18, 14462, 1598, 5621, 202, 97, 202, 12107, 430, 12, 73, 18, 588, 13073, 7675, 14963, 12, 46, 812, 17324, 18, 17229, 67, 24435, 67, 9900, 3719, 202, 95, 202, 759, 2147, 5400, 5621, 202, 7540, 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, 1071, 1396, 15744, 2640, 1396, 15744, 12, 46, 812, 17324, 7142, 15329, 2463, 2704, 1396, 15744, 1435, 95, 202, 482, 6459, 4468, 3043, 12, 1396, 20930, 73, 13, 202, 95, 202, 759, 25810, 30, 8438, 2354, 292, 794, 20241, 265, 46, 682, 7027, 6089, 292, 794, 925, 18, 202, 430, 12, 73, 18, 588, 13073, 7675, 14963, 12, 46, 812, 17324, 18, 4803, 2056, 67, 3776, 67, 24435, 67, 9900, 3719, 202, 95, 202, 430, 12, 768, 2599, 13164, 18, 588, 7416, 812, 1435, 631, 2011, 13, 202, 202, 542, 4771, 12, 2011, 1769, 202, 12107, 202, 202, 542, 4771, 12, 768, 2599, 13164, 18, 588, 7416, 812, 7675, 10492, 10663, 202, 474, 1615, 29711, 21, 31, 202, 812, 2 ]
List args = new ArrayList(); File javac = findJavaTool(javacPath == null ? DEFAULT_COMPILER : javacPath); assert (javac.exists()) : "compiler not found " + javac; args.add(javac.getAbsolutePath()); if (outdir == null) { outdir = new File("."); } else { args.add("-d"); args.add(quoteAndEscapeFilename(outdir.getAbsolutePath())); } if (cp == null) { cp = systemClasspath(); } if (cp.length > 0) { StringBuffer classPath = new StringBuffer(); classPath.append(outdir.getAbsolutePath()); for (int i = 0; i < cp.length; i++) { classPath.append(File.pathSeparator); classPath.append(cp[i].getAbsolutePath()); } args.add("-classpath"); args.add(quoteAndEscapeFilename(classPath.toString())); } args.add("-source"); args.add("1.4"); args.add(debug ? "-g" : "-g:none"); if (verbose) args.add("-verbose"); addAllJavaFiles(srcFiles, args); File clFile = null; try { clFile = File.createTempFile("javac", ""); FileWriter fw = new FileWriter(clFile); Iterator i = args.iterator(); for (i.next(); i.hasNext();) { String arg = (String)i.next(); fw.write(arg); fw.write('\n'); } fw.close(); List newargs = new ArrayList(); newargs.add(args.get(0)); if (memStart != null && memStart.length() != 0) newargs.add("-J-Xms" + memStart); if (memMax != null && memMax.length() != 0) newargs.add("-J-Xmx" + memMax); newargs.add("@" + clFile.getAbsolutePath()); args = newargs; } catch (Exception e) { System.err.println("Could not create command-line file for javac"); } try { String[] strArgs = (String[]) args.toArray(new String[args.size()]); if (verbose) { System.out.print("compile command:"); for (int i = 0; i < strArgs.length; i++) System.out.print(" " + strArgs[i]); System.out.println(); } final Process proc = Runtime.getRuntime().exec(strArgs); StringBuffer errorBuffer = new StringBuffer(); StringBuffer outputBuffer = new StringBuffer(); ThreadedReader out = new ThreadedReader(proc.getInputStream(), outputBuffer); ThreadedReader err = new ThreadedReader(proc.getErrorStream(), errorBuffer); proc.waitFor(); if (verbose || proc.exitValue() != 0) { if (outputBuffer.length() > 0) { System.out.println(outputBuffer.toString()); System.out.flush(); } if (errorBuffer.length() > 0) { System.err.println(errorBuffer.toString()); System.err.flush(); } if (proc.exitValue() != 0) return false; } } catch (Throwable e) { System.err.println(e.toString()); System.err.println(e.getCause()); e.printStackTrace(System.err); return false; } if (clFile != null) clFile.delete(); return true;
return externalCompile(srcFiles, outdir, cp, debug, DEFAULT_COMPILER, DEFAULT_MEM_START, DEFAULT_MEM_MAX, false, false);
static public boolean externalCompile(List srcFiles, File outdir, File[] cp, boolean debug, String javacPath, String memStart, String memMax, boolean quiet, boolean verbose) { List args = new ArrayList(); File javac = findJavaTool(javacPath == null ? DEFAULT_COMPILER : javacPath); assert (javac.exists()) : "compiler not found " + javac; args.add(javac.getAbsolutePath()); if (outdir == null) { outdir = new File("."); } else { args.add("-d"); args.add(quoteAndEscapeFilename(outdir.getAbsolutePath())); } if (cp == null) { cp = systemClasspath(); } if (cp.length > 0) { StringBuffer classPath = new StringBuffer(); // Add the output directory to the classpath. We do this so that // javac will be able to find classes that were compiled // previously but are not in the list of sources this time. classPath.append(outdir.getAbsolutePath()); // Add everything on our classpath. for (int i = 0; i < cp.length; i++) { classPath.append(File.pathSeparator); classPath.append(cp[i].getAbsolutePath()); } args.add("-classpath"); // bizarre. javac expects backslash escaping if we quote the classpath args.add(quoteAndEscapeFilename(classPath.toString())); } args.add("-source"); args.add("1.4"); args.add(debug ? "-g" : "-g:none"); if (verbose) args.add("-verbose"); addAllJavaFiles(srcFiles, args); File clFile = null; try { clFile = File.createTempFile("javac", ""); FileWriter fw = new FileWriter(clFile); Iterator i = args.iterator(); for (i.next(); i.hasNext();) { String arg = (String)i.next(); fw.write(arg); fw.write('\n'); } fw.close(); List newargs = new ArrayList(); newargs.add(args.get(0)); if (memStart != null && memStart.length() != 0) newargs.add("-J-Xms" + memStart); if (memMax != null && memMax.length() != 0) newargs.add("-J-Xmx" + memMax); newargs.add("@" + clFile.getAbsolutePath()); args = newargs; } catch (Exception e) { System.err.println("Could not create command-line file for javac"); } try { String[] strArgs = (String[]) args.toArray(new String[args.size()]); if (verbose) { System.out.print("compile command:"); for (int i = 0; i < strArgs.length; i++) System.out.print(" " + strArgs[i]); System.out.println(); } final Process proc = Runtime.getRuntime().exec(strArgs); StringBuffer errorBuffer = new StringBuffer(); StringBuffer outputBuffer = new StringBuffer(); ThreadedReader out = new ThreadedReader(proc.getInputStream(), outputBuffer); ThreadedReader err = new ThreadedReader(proc.getErrorStream(), errorBuffer); proc.waitFor(); if (verbose || proc.exitValue() != 0) { if (outputBuffer.length() > 0) { System.out.println(outputBuffer.toString()); System.out.flush(); } if (errorBuffer.length() > 0) { System.err.println(errorBuffer.toString()); System.err.flush(); } if (proc.exitValue() != 0) return false; } } catch (Throwable e) { System.err.println(e.toString()); System.err.println(e.getCause()); e.printStackTrace(System.err); return false; } if (clFile != null) clFile.delete(); return true; }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/3b16aebcb4b454a88e7c4771bd6844278eafcb3a/CodeGenUtil.java/buggy/v1/src/xmlcomp/org/apache/xmlbeans/impl/tool/CodeGenUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 1250, 3903, 9937, 12, 682, 1705, 2697, 16, 1387, 15398, 16, 1387, 8526, 3283, 16, 1250, 1198, 16, 514, 5152, 1077, 743, 16, 514, 1663, 1685, 16, 514, 1663, 2747, 16, 225, 1250, 10902, 16, 1250, 3988, 13, 565, 288, 3639, 987, 833, 273, 394, 2407, 5621, 3639, 1387, 5152, 1077, 273, 1104, 5852, 6364, 12, 19207, 1077, 743, 422, 446, 692, 3331, 67, 31075, 14668, 294, 5152, 1077, 743, 1769, 3639, 1815, 261, 19207, 1077, 18, 1808, 10756, 294, 315, 9576, 486, 1392, 315, 397, 5152, 1077, 31, 3639, 833, 18, 1289, 12, 19207, 1077, 18, 588, 10368, 743, 10663, 3639, 309, 261, 659, 1214, 422, 446, 13, 3639, 288, 5411, 15398, 273, 394, 1387, 2932, 1199, 1769, 3639, 289, 3639, 469, 3639, 288, 5411, 833, 18, 1289, 2932, 17, 72, 8863, 5411, 833, 18, 1289, 12, 6889, 1876, 8448, 5359, 12, 659, 1214, 18, 588, 10368, 743, 1435, 10019, 3639, 289, 3639, 309, 261, 4057, 422, 446, 13, 3639, 288, 5411, 3283, 273, 2619, 17461, 5621, 3639, 289, 3639, 309, 261, 4057, 18, 2469, 405, 374, 13, 3639, 288, 5411, 6674, 22503, 273, 394, 6674, 5621, 5411, 368, 1436, 326, 876, 1867, 358, 326, 10006, 18, 225, 1660, 741, 333, 1427, 716, 5411, 368, 5152, 1077, 903, 506, 7752, 358, 1104, 3318, 716, 4591, 7743, 5411, 368, 7243, 1496, 854, 486, 316, 326, 666, 434, 5550, 333, 813, 18, 5411, 22503, 18, 6923, 12, 659, 1214, 18, 588, 10368, 743, 10663, 5411, 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, 1071, 1250, 3903, 9937, 12, 682, 1705, 2697, 16, 1387, 15398, 16, 1387, 8526, 3283, 16, 1250, 1198, 16, 514, 5152, 1077, 743, 16, 514, 1663, 1685, 16, 514, 1663, 2747, 16, 225, 1250, 10902, 16, 1250, 3988, 13, 565, 288, 3639, 987, 833, 273, 394, 2407, 5621, 3639, 1387, 5152, 1077, 273, 1104, 5852, 6364, 12, 19207, 1077, 743, 422, 446, 692, 3331, 67, 31075, 14668, 294, 5152, 1077, 743, 1769, 3639, 1815, 261, 19207, 1077, 18, 1808, 10756, 294, 315, 9576, 486, 1392, 315, 397, 5152, 1077, 31, 3639, 833, 18, 1289, 12, 19207, 1077, 18, 588, 10368, 743, 10663, 3639, 309, 261, 659, 1214, 422, 446, 13, 3639, 288, 5411, 15398, 273, 394, 1387, 2 ]
else continue;
public void paint(Graphics g) { g.setColor(Color.white); g.fillRect(0,0,getWidth()-1,COMPONENT_HEIGHT - 1); g.setColor(Color.black); g.drawRect(0,0,getWidth()-1,COMPONENT_HEIGHT - 1); if(ratio < 1 && ratio != 0) { int [] loadColor = new int[getWidth()]; int [] cacheColor = new int[getWidth()]; for(int i = 0;i < loadColor.length;i++) { loadColor[i] = -1; cacheColor[i] = -1; } //find how many entries of the cache are handled per pixel of indicator int perPixel; double integers = 2; double dPerPixel = ratio * integers; if(DEBUG) System.out.println("Ratio: " + ratio); while(dPerPixel < 1) { integers++; dPerPixel = ratio * integers; } Double temp = new Double(integers); perPixel = temp.intValue(); if(DEBUG) System.out.println("PerPixel: " + perPixel); int colorAmount = 255 / perPixel; if(DEBUG) System.out.println("ColorAmount: " + colorAmount); for(int i = 0;i<loadList.length;i++) { int index = translate(loadList[i]); if (loadColor[index] == -1) loadColor[index] = 0; loadColor[index] = loadColor[index] + colorAmount; if (loadColor[index] > 255) { if(DEBUG) System.out.println("RED: " + loadColor[index]); loadColor[index] = 255; } } for(int i = 0;i<cache.length;i++) { int index = translate(cache[i]); if (cacheColor[index] == -1) cacheColor[index] = 0; cacheColor[index] = cacheColor[index] + colorAmount; if (cacheColor[index] > 255) { if(DEBUG) System.out.println("BLUE: " + cacheColor[index]); cacheColor[index] = 255; } } for(int i = 0;i < getWidth();i++) { if(loadColor[i] != -1 || cacheColor[i] != -1) { if(loadColor[i] == -1) loadColor[i] = 0; if(cacheColor[i] == -1) cacheColor[i] = 0; g.setColor(new Color(loadColor[i],0,cacheColor[i])); g.drawLine(i,1,i,COMPONENT_HEIGHT - 2); } else continue; } } else if (ratio >= 1) { int prevLoad = -1; int startLoad = -1; g.setColor(Color.red); for(int i = 0;i<loadList.length;i++) { int toLoad = loadList[i]; if(startLoad == -1) { startLoad = toLoad; prevLoad = toLoad; } else if(toLoad == prevLoad + 1 && startLoad != -1 && i != loadList.length - 1) { prevLoad = toLoad; } else { prevLoad = prevLoad + 1; int x = translate(startLoad); int wid = translate(prevLoad) - x; g.fillRect(x,1,wid,COMPONENT_HEIGHT - 2); startLoad = -1; } } prevLoad = -1; startLoad = -1; g.setColor(Color.blue); for(int i = 0;i<cache.length;i++) { int toLoad = cache[i]; if(startLoad == -1) { startLoad = toLoad; prevLoad = toLoad; } else if(toLoad == prevLoad + 1 && startLoad != -1 && i != cache.length - 1) { prevLoad = toLoad; } else { prevLoad = prevLoad + 1; int x = translate(startLoad); int wid = translate(prevLoad) - x; g.fillRect(x,1,wid,COMPONENT_HEIGHT - 2); startLoad = -1; } } } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/8f654f9f57542e0e2cc2c972e3a7655cbe00339a/CacheIndicator.java/clean/loci/plugins/browser/CacheIndicator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 12574, 12, 17558, 314, 13, 288, 565, 314, 18, 542, 2957, 12, 2957, 18, 14739, 1769, 565, 314, 18, 5935, 6120, 12, 20, 16, 20, 16, 588, 2384, 1435, 17, 21, 16, 22922, 67, 14595, 300, 404, 1769, 565, 314, 18, 542, 2957, 12, 2957, 18, 11223, 1769, 565, 314, 18, 9446, 6120, 12, 20, 16, 20, 16, 588, 2384, 1435, 17, 21, 16, 22922, 67, 14595, 300, 404, 1769, 565, 309, 12, 9847, 411, 404, 597, 7169, 480, 374, 13, 288, 1377, 509, 5378, 1262, 2957, 273, 394, 509, 63, 588, 2384, 1435, 15533, 1377, 509, 5378, 1247, 2957, 273, 394, 509, 63, 588, 2384, 1435, 15533, 5411, 364, 12, 474, 277, 273, 374, 31, 77, 411, 1262, 2957, 18, 2469, 31, 77, 27245, 288, 3639, 1262, 2957, 63, 77, 65, 273, 300, 21, 31, 3639, 1247, 2957, 63, 77, 65, 273, 300, 21, 31, 1377, 289, 5411, 368, 4720, 3661, 4906, 3222, 434, 326, 1247, 854, 7681, 1534, 4957, 434, 10664, 1377, 509, 1534, 9037, 31, 1377, 1645, 12321, 273, 576, 31, 1377, 1645, 302, 2173, 9037, 273, 7169, 380, 12321, 31, 2868, 309, 12, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 8541, 30, 315, 397, 7169, 1769, 1377, 1323, 12, 72, 2173, 9037, 411, 404, 13, 288, 3639, 12321, 9904, 31, 3639, 302, 2173, 9037, 273, 7169, 380, 12321, 31, 1377, 289, 5411, 3698, 1906, 273, 394, 3698, 12, 14970, 414, 1769, 1377, 1534, 9037, 273, 1906, 18, 474, 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, 282, 1071, 918, 12574, 12, 17558, 314, 13, 288, 565, 314, 18, 542, 2957, 12, 2957, 18, 14739, 1769, 565, 314, 18, 5935, 6120, 12, 20, 16, 20, 16, 588, 2384, 1435, 17, 21, 16, 22922, 67, 14595, 300, 404, 1769, 565, 314, 18, 542, 2957, 12, 2957, 18, 11223, 1769, 565, 314, 18, 9446, 6120, 12, 20, 16, 20, 16, 588, 2384, 1435, 17, 21, 16, 22922, 67, 14595, 300, 404, 1769, 565, 309, 12, 9847, 411, 404, 597, 7169, 480, 374, 13, 288, 1377, 509, 5378, 1262, 2957, 273, 394, 509, 63, 588, 2384, 1435, 15533, 1377, 509, 5378, 1247, 2957, 273, 394, 509, 63, 588, 2384, 1435, 15533, 5411, 364, 12, 474, 277, 273, 374, 31, 2 ]
TOCTreeNode detailNode2 = detail2.getNode( );
public void testHiddenFormat4( ) { tocTree = new TOCTree( ); builder = new TOCBuilder( tocTree ); TOCEntry rootEntry = builder.getTOCEntry( ); TOCEntry reportHeader = startEntry( rootEntry, "report-header" ); closeEntry( reportHeader ); TOCEntry group = startGroupEntry( rootEntry ); // open group TOCEntry detail1 = startEntry( group, "detail1", "html" ); // open // detail closeEntry( detail1 ); // close detail TOCEntry detail2 = startEntry( group, "detail2" ); // open detai2 closeEntry( detail2 ); // close detai2 closeGroupEntry( group ); TOCTreeNode detailNode1 = detail1.getNode( ); TOCTreeNode detailNode2 = detail2.getNode( ); assertEquals( "html", detailNode1.getHiddenFormats( ) ); assertTrue( detailNode1.isHidden( "html" ) ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/2fb2d1f0c772873d250e1d25d021730e300b5489/TOCBuilderTest.java/clean/engine/org.eclipse.birt.report.engine.tests/test/org/eclipse/birt/report/engine/toc/TOCBuilderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9345, 1630, 24, 12, 262, 202, 95, 202, 202, 1391, 2471, 273, 394, 8493, 1268, 992, 12, 11272, 202, 202, 9574, 273, 394, 8493, 39, 1263, 12, 17919, 2471, 11272, 202, 202, 4296, 39, 1622, 1365, 1622, 273, 2089, 18, 588, 4296, 39, 1622, 12, 11272, 202, 202, 4296, 39, 1622, 2605, 1864, 273, 787, 1622, 12, 1365, 1622, 16, 315, 6006, 17, 3374, 6, 11272, 202, 202, 4412, 1622, 12, 2605, 1864, 11272, 202, 202, 4296, 39, 1622, 1041, 273, 787, 1114, 1622, 12, 1365, 1622, 11272, 368, 1696, 1041, 202, 202, 4296, 39, 1622, 7664, 21, 273, 787, 1622, 12, 1041, 16, 315, 8992, 21, 3113, 315, 2620, 6, 11272, 368, 1696, 202, 202, 759, 7664, 202, 202, 4412, 1622, 12, 7664, 21, 11272, 368, 1746, 7664, 202, 202, 4296, 39, 1622, 7664, 22, 273, 787, 1622, 12, 1041, 16, 315, 8992, 22, 6, 11272, 368, 1696, 302, 1066, 77, 22, 202, 202, 4412, 1622, 12, 7664, 22, 11272, 368, 1746, 302, 1066, 77, 22, 202, 202, 4412, 1114, 1622, 12, 1041, 11272, 202, 202, 4296, 1268, 992, 907, 7664, 907, 21, 273, 7664, 21, 18, 588, 907, 12, 11272, 202, 202, 4296, 1268, 992, 907, 7664, 907, 22, 273, 7664, 22, 18, 588, 907, 12, 11272, 202, 202, 11231, 8867, 12, 315, 2620, 3113, 7664, 907, 21, 18, 588, 9345, 8976, 12, 262, 11272, 202, 202, 11231, 5510, 12, 7664, 907, 21, 18, 291, 9345, 12, 315, 2620, 6, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 9345, 1630, 24, 12, 262, 202, 95, 202, 202, 1391, 2471, 273, 394, 8493, 1268, 992, 12, 11272, 202, 202, 9574, 273, 394, 8493, 39, 1263, 12, 17919, 2471, 11272, 202, 202, 4296, 39, 1622, 1365, 1622, 273, 2089, 18, 588, 4296, 39, 1622, 12, 11272, 202, 202, 4296, 39, 1622, 2605, 1864, 273, 787, 1622, 12, 1365, 1622, 16, 315, 6006, 17, 3374, 6, 11272, 202, 202, 4412, 1622, 12, 2605, 1864, 11272, 202, 202, 4296, 39, 1622, 1041, 273, 787, 1114, 1622, 12, 1365, 1622, 11272, 368, 1696, 1041, 202, 202, 4296, 39, 1622, 7664, 21, 273, 787, 1622, 12, 1041, 16, 315, 8992, 21, 3113, 315, 2620, 6, 11272, 368, 1696, 2 ]
buf.insert(where, str);
int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((gapEnd - gapStart) < strLen) shiftEnd(strLen + DEFAULT_BUFSIZE); if (where != gapStart) shiftGap(where); System.arraycopy(str.toCharArray(), 0, buffer, gapStart, strLen); gapStart += strLen;
public UndoableEdit insertString(int where, String str) throws BadLocationException { buf.insert(where, str); return null; }
1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/66e2f6e7d39d0673c04409215da42eef752afe5f/GapContent.java/buggy/libjava/javax/swing/text/GapContent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1351, 2896, 429, 4666, 2243, 780, 12, 474, 1625, 16, 514, 609, 13, 565, 1216, 6107, 2735, 503, 225, 288, 377, 509, 769, 273, 769, 5621, 509, 609, 2891, 273, 609, 18, 2469, 5621, 225, 309, 261, 6051, 1545, 769, 13, 604, 394, 6107, 2735, 503, 2932, 5787, 1625, 1237, 2780, 506, 6802, 6, 397, 315, 2353, 326, 913, 769, 3113, 1625, 1769, 282, 309, 14015, 14048, 1638, 300, 9300, 1685, 13, 411, 609, 2891, 13, 225, 4654, 1638, 12, 701, 2891, 397, 3331, 67, 3000, 42, 4574, 1769, 282, 309, 261, 6051, 480, 9300, 1685, 13, 4654, 14001, 12, 6051, 1769, 565, 2332, 18, 1126, 3530, 12, 701, 18, 869, 15936, 9334, 374, 16, 1613, 16, 9300, 1685, 16, 609, 2891, 1769, 9300, 1685, 1011, 609, 2891, 31, 565, 327, 446, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1351, 2896, 429, 4666, 2243, 780, 12, 474, 1625, 16, 514, 609, 13, 565, 1216, 6107, 2735, 503, 225, 288, 377, 509, 769, 273, 769, 5621, 509, 609, 2891, 273, 609, 18, 2469, 5621, 225, 309, 261, 6051, 1545, 769, 13, 604, 394, 6107, 2735, 503, 2932, 5787, 1625, 1237, 2780, 506, 6802, 6, 397, 315, 2353, 326, 913, 769, 3113, 1625, 1769, 282, 309, 14015, 14048, 1638, 300, 9300, 1685, 13, 411, 609, 2891, 13, 225, 4654, 1638, 12, 701, 2891, 397, 3331, 67, 3000, 42, 4574, 1769, 282, 309, 261, 6051, 480, 9300, 1685, 13, 4654, 14001, 12, 6051, 1769, 565, 2332, 18, 1126, 3530, 12, 701, 18, 869, 15936, 9334, 374, 16, 1613, 16, 2 ]
allWhitespace = false;
public static List stripInlineContent(Context c, List inlineContent) { List stripped = new LinkedList(); List pendingStylePushes = new LinkedList(); boolean collapse = false; boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { Object o = i.next(); if (o instanceof StylePush) { pendingStylePushes.add(o); c.pushStyle(((StylePush) o).getStyle()); continue; } if (o instanceof TextContent) { TextContent tc = (TextContent) o; CalculatedStyle style = c.getCurrentStyle(); boolean collapseNext = stripWhitespace(style, collapse, tc); if (!tc.isRemovableWhitespace()) { allWhitespace = false; } stripped.addAll(pendingStylePushes); pendingStylePushes.clear(); stripped.add(tc); collapse = collapseNext; continue; } if (o instanceof StylePop) { c.popStyle(); if (pendingStylePushes.size() != 0) { //redundant style-change pendingStylePushes.remove(pendingStylePushes.size() - 1); } else { stripped.add(o); } continue; } //Here we have some other object, just add it with preceding styles allWhitespace = false; stripped.addAll(pendingStylePushes); pendingStylePushes.clear(); stripped.add(o); collapse = false;//no collapsing of the next one } //there may be relevant StylePushes pending, e.g. if this is content of AnonymousBlock stripped.addAll(pendingStylePushes); // Uu.p("final stripped = " + stripped); // Uu.p("all whitespace = " + allWhitespace); if (allWhitespace) { stripWhitespaceContent(stripped); } return stripped; }
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/3f42b421383cc638581563923e0f4301d1a776e8/WhitespaceStripper.java/clean/src/java/org/xhtmlrenderer/layout/inline/WhitespaceStripper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 987, 2569, 10870, 1350, 12, 1042, 276, 16, 987, 6370, 1350, 13, 288, 3639, 987, 13300, 273, 394, 10688, 5621, 3639, 987, 4634, 2885, 7621, 281, 273, 394, 10688, 5621, 3639, 1250, 13627, 273, 629, 31, 3639, 1250, 777, 9431, 273, 638, 31, 3639, 364, 261, 3198, 277, 273, 6370, 1350, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 5411, 1033, 320, 273, 277, 18, 4285, 5621, 5411, 309, 261, 83, 1276, 9767, 7621, 13, 288, 7734, 4634, 2885, 7621, 281, 18, 1289, 12, 83, 1769, 7734, 276, 18, 6206, 2885, 12443, 12, 2885, 7621, 13, 320, 2934, 588, 2885, 10663, 7734, 1324, 31, 5411, 289, 5411, 309, 261, 83, 1276, 3867, 1350, 13, 288, 7734, 3867, 1350, 1715, 273, 261, 1528, 1350, 13, 320, 31, 7734, 15994, 690, 2885, 2154, 273, 276, 18, 588, 3935, 2885, 5621, 7734, 1250, 13627, 2134, 273, 2569, 9431, 12, 4060, 16, 13627, 16, 1715, 1769, 7734, 309, 16051, 5111, 18, 291, 4579, 429, 9431, 10756, 288, 4766, 565, 289, 7734, 13300, 18, 1289, 1595, 12, 9561, 2885, 7621, 281, 1769, 7734, 4634, 2885, 7621, 281, 18, 8507, 5621, 7734, 13300, 18, 1289, 12, 5111, 1769, 7734, 13627, 273, 13627, 2134, 31, 7734, 1324, 31, 5411, 289, 5411, 309, 261, 83, 1276, 9767, 7049, 13, 288, 7734, 276, 18, 5120, 2885, 5621, 7734, 309, 261, 9561, 2885, 7621, 281, 18, 1467, 1435, 480, 374, 13, 288, 10792, 368, 1118, 15362, 2154, 17, 3427, 10792, 4634, 2885, 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, 987, 2569, 10870, 1350, 12, 1042, 276, 16, 987, 6370, 1350, 13, 288, 3639, 987, 13300, 273, 394, 10688, 5621, 3639, 987, 4634, 2885, 7621, 281, 273, 394, 10688, 5621, 3639, 1250, 13627, 273, 629, 31, 3639, 1250, 777, 9431, 273, 638, 31, 3639, 364, 261, 3198, 277, 273, 6370, 1350, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 5411, 1033, 320, 273, 277, 18, 4285, 5621, 5411, 309, 261, 83, 1276, 9767, 7621, 13, 288, 7734, 4634, 2885, 7621, 281, 18, 1289, 12, 83, 1769, 7734, 276, 18, 6206, 2885, 12443, 12, 2885, 7621, 13, 320, 2934, 588, 2885, 10663, 7734, 1324, 31, 5411, 289, 5411, 309, 261, 83, 1276, 3867, 1350, 13, 2 ]
IViewDescriptor desc = viewReg.find(id); if (desc == null) throw new PartInitException(WorkbenchMessages.format("ViewFactory.couldNotCreate", new Object[] { id })); IViewReference ref = (IViewReference) counter.get(desc); if (ref == null) { ref = new ViewReference(id); counter.put(desc, ref); } else { counter.addRef(desc); } return ref;
return createView(id, null);
public IViewReference createView(final String id) throws PartInitException { IViewDescriptor desc = viewReg.find(id); if (desc == null) throw new PartInitException(WorkbenchMessages.format("ViewFactory.couldNotCreate", new Object[] { id })); //$NON-NLS-1$ IViewReference ref = (IViewReference) counter.get(desc); if (ref == null) { ref = new ViewReference(id); counter.put(desc, ref); } else { counter.addRef(desc); } return ref; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4c54f4e9d7f7736ec1933d53df8e30ab176cd2b2/ViewFactory.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1767, 2404, 15193, 12, 6385, 514, 612, 13, 1216, 6393, 2570, 503, 288, 202, 202, 45, 1767, 3187, 3044, 273, 1476, 1617, 18, 4720, 12, 350, 1769, 202, 202, 430, 261, 5569, 422, 446, 13, 1082, 202, 12849, 394, 6393, 2570, 503, 12, 2421, 22144, 5058, 18, 2139, 2932, 1767, 1733, 18, 15195, 1248, 1684, 3113, 394, 1033, 8526, 288, 612, 289, 10019, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 45, 1767, 2404, 1278, 273, 261, 45, 1767, 2404, 13, 3895, 18, 588, 12, 5569, 1769, 202, 202, 430, 261, 1734, 422, 446, 13, 288, 1082, 202, 1734, 273, 394, 4441, 2404, 12, 350, 1769, 1082, 202, 7476, 18, 458, 12, 5569, 16, 1278, 1769, 202, 202, 97, 469, 288, 1082, 202, 7476, 18, 1289, 1957, 12, 5569, 1769, 202, 202, 97, 202, 202, 2463, 1278, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 467, 1767, 2404, 15193, 12, 6385, 514, 612, 13, 1216, 6393, 2570, 503, 288, 202, 202, 45, 1767, 3187, 3044, 273, 1476, 1617, 18, 4720, 12, 350, 1769, 202, 202, 430, 261, 5569, 422, 446, 13, 1082, 202, 12849, 394, 6393, 2570, 503, 12, 2421, 22144, 5058, 18, 2139, 2932, 1767, 1733, 18, 15195, 1248, 1684, 3113, 394, 1033, 8526, 288, 612, 289, 10019, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 45, 1767, 2404, 1278, 273, 261, 45, 1767, 2404, 13, 3895, 18, 588, 12, 5569, 1769, 202, 202, 430, 261, 1734, 422, 446, 13, 288, 1082, 202, 1734, 273, 394, 4441, 2404, 12, 350, 1769, 1082, 202, 7476, 18, 458, 12, 5569, 16, 2 ]
log.info("------- Initialization Complete -----------");
log.info("------- Initialization Complete -----------");
public void run() throws Exception { Log log = LogFactory.getLog(RemoteServerExample.class); // First we must get a reference to a scheduler SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sched = sf.getScheduler(); log.info("------- Initialization Complete -----------"); log.info("------- (Not Scheduling any Jobs - relying on a remote client to schedule jobs --"); log.info("------- Starting Scheduler ----------------"); // start the schedule sched.start(); log.info("------- Started Scheduler -----------------"); log.info("------- Waiting ten minutes... ------------"); // wait five minutes to give our jobs a chance to run try { Thread.sleep(600L * 1000L); } catch (Exception e) { } // shut down the scheduler log.info("------- Shutting Down ---------------------"); sched.shutdown(true); log.info("------- Shutdown Complete -----------------"); SchedulerMetaData metaData = sched.getMetaData(); log.info("Executed " + metaData.numJobsExecuted() + " jobs."); }
55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/51ce7552fa3eb48cf96a05bff5bca6616477f94b/RemoteServerExample.java/clean/examples/src/java/org/quartz/examples/example12/RemoteServerExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 1216, 1185, 288, 202, 202, 1343, 613, 273, 1827, 1733, 18, 588, 1343, 12, 5169, 2081, 10908, 18, 1106, 1769, 202, 202, 759, 5783, 732, 1297, 336, 279, 2114, 358, 279, 8129, 202, 202, 11870, 1733, 9033, 273, 394, 6276, 11870, 1733, 5621, 202, 202, 11870, 23964, 273, 9033, 18, 588, 11870, 5621, 202, 202, 1330, 18, 1376, 2932, 17082, 26586, 14575, 300, 15392, 8863, 202, 202, 1330, 18, 1376, 2932, 17082, 261, 1248, 348, 13252, 1281, 26909, 300, 283, 6291, 603, 279, 2632, 1004, 358, 4788, 6550, 1493, 8863, 202, 202, 1330, 18, 1376, 2932, 17082, 24591, 12620, 300, 18753, 8863, 202, 202, 759, 787, 326, 4788, 202, 202, 87, 2049, 18, 1937, 5621, 202, 202, 1330, 18, 1376, 2932, 17082, 29386, 12620, 12146, 8863, 202, 202, 1330, 18, 1376, 2932, 17082, 23333, 19572, 6824, 2777, 300, 13849, 8863, 202, 202, 759, 2529, 23714, 6824, 358, 8492, 3134, 6550, 279, 17920, 358, 1086, 202, 202, 698, 288, 1082, 202, 3830, 18, 19607, 12, 28133, 48, 380, 4336, 48, 1769, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 202, 202, 97, 202, 202, 759, 9171, 2588, 326, 8129, 202, 202, 1330, 18, 1376, 2932, 17082, 2638, 25387, 10077, 12146, 553, 8863, 202, 202, 87, 2049, 18, 15132, 12, 3767, 1769, 202, 202, 1330, 18, 1376, 2932, 17082, 17640, 14575, 12146, 8863, 202, 202, 11870, 6998, 11651, 273, 23964, 18, 588, 6998, 5621, 202, 202, 1330, 18, 1376, 2932, 23839, 315, 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, 1086, 1435, 1216, 1185, 288, 202, 202, 1343, 613, 273, 1827, 1733, 18, 588, 1343, 12, 5169, 2081, 10908, 18, 1106, 1769, 202, 202, 759, 5783, 732, 1297, 336, 279, 2114, 358, 279, 8129, 202, 202, 11870, 1733, 9033, 273, 394, 6276, 11870, 1733, 5621, 202, 202, 11870, 23964, 273, 9033, 18, 588, 11870, 5621, 202, 202, 1330, 18, 1376, 2932, 17082, 26586, 14575, 300, 15392, 8863, 202, 202, 1330, 18, 1376, 2932, 17082, 261, 1248, 348, 13252, 1281, 26909, 300, 283, 6291, 603, 279, 2632, 1004, 358, 4788, 6550, 1493, 8863, 202, 202, 1330, 18, 1376, 2932, 17082, 24591, 12620, 300, 18753, 8863, 202, 202, 759, 787, 326, 4788, 202, 202, 87, 2049, 18, 2 ]
ib_generateColumnWidths = true;
for (int li_index = 0; li_index < ii_origColumnWidths.length; li_index++) { ii_origColumnWidths[li_index] = MAXCOMPONENTWIDTH; ib_isMaxWidths[li_index ] = true; }
public EasyLayout(int[] ai_origColumnWidths, int[] ai_origRowHeights, int[] ai_columns, int[] ai_rows, int ai_hGap, int ai_vGap) { int li_count = 0; ii_hGap = ai_hGap; ii_vGap = ai_vGap; for (int li_index = 0; li_index < ai_columns.length; li_index++) { li_count += ai_columns[li_index]; } if (li_count != 100) { throw new IllegalArgumentException("Sum of column percentagehas to be 100"); } li_count = 0; for (int li_index = 0; li_index < ai_rows.length; li_index++) { li_count += ai_rows[li_index]; } if (li_count != 100) { throw new IllegalArgumentException("Sum of row percentage has to be 100"); } ii_rows = ai_rows; ii_columns = ai_columns; if (ai_origColumnWidths != null) { ii_origColumnWidths = ai_origColumnWidths; ib_generateColumnWidths = false; } else { ii_origColumnWidths = new int[ai_columns.length]; ib_generateColumnWidths = true; } if (ai_origRowHeights != null) { ii_origRowHeights = ai_origRowHeights; ib_generateRowHeights = false; } else { ii_origRowHeights = new int[ai_rows.length]; ib_generateRowHeights = true; } ii_origXPositions = new int[ai_columns.length]; ii_origYPositions = new int[ai_rows.length]; }
5964 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5964/59874e633c05dce9958535c0d9da7316237c2d46/EasyLayout.java/buggy/swingsrc/com/sohlman/easylayout/EasyLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 29442, 3744, 12, 474, 8526, 14679, 67, 4949, 1494, 22407, 16, 509, 8526, 14679, 67, 4949, 1999, 2686, 87, 16, 509, 8526, 14679, 67, 5112, 16, 509, 8526, 14679, 67, 3870, 16, 509, 14679, 67, 76, 14001, 16, 509, 14679, 67, 90, 14001, 13, 202, 95, 202, 202, 474, 4501, 67, 1883, 273, 374, 31, 202, 202, 2835, 67, 76, 14001, 273, 14679, 67, 76, 14001, 31, 202, 202, 2835, 67, 90, 14001, 273, 14679, 67, 90, 14001, 31, 202, 202, 1884, 261, 474, 4501, 67, 1615, 273, 374, 31, 4501, 67, 1615, 411, 14679, 67, 5112, 18, 2469, 31, 4501, 67, 1615, 27245, 202, 202, 95, 1082, 202, 549, 67, 1883, 1011, 14679, 67, 5112, 63, 549, 67, 1615, 15533, 202, 202, 97, 202, 202, 430, 261, 549, 67, 1883, 480, 2130, 13, 202, 202, 95, 1082, 202, 12849, 394, 2754, 2932, 3495, 434, 1057, 11622, 5332, 358, 506, 2130, 8863, 202, 202, 97, 202, 202, 549, 67, 1883, 273, 374, 31, 202, 202, 1884, 261, 474, 4501, 67, 1615, 273, 374, 31, 4501, 67, 1615, 411, 14679, 67, 3870, 18, 2469, 31, 4501, 67, 1615, 27245, 202, 202, 95, 1082, 202, 549, 67, 1883, 1011, 14679, 67, 3870, 63, 549, 67, 1615, 15533, 202, 202, 97, 202, 202, 430, 261, 549, 67, 1883, 480, 2130, 13, 202, 202, 95, 1082, 202, 12849, 394, 2754, 2932, 3495, 434, 1027, 11622, 711, 358, 506, 2130, 8863, 202, 202, 97, 202, 202, 2835, 67, 3870, 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, 29442, 3744, 12, 474, 8526, 14679, 67, 4949, 1494, 22407, 16, 509, 8526, 14679, 67, 4949, 1999, 2686, 87, 16, 509, 8526, 14679, 67, 5112, 16, 509, 8526, 14679, 67, 3870, 16, 509, 14679, 67, 76, 14001, 16, 509, 14679, 67, 90, 14001, 13, 202, 95, 202, 202, 474, 4501, 67, 1883, 273, 374, 31, 202, 202, 2835, 67, 76, 14001, 273, 14679, 67, 76, 14001, 31, 202, 202, 2835, 67, 90, 14001, 273, 14679, 67, 90, 14001, 31, 202, 202, 1884, 261, 474, 4501, 67, 1615, 273, 374, 31, 4501, 67, 1615, 411, 14679, 67, 5112, 18, 2469, 31, 4501, 67, 1615, 27245, 202, 202, 95, 1082, 202, 549, 67, 1883, 1011, 14679, 67, 5112, 2 ]
response.setContentType("text/" + getMarkupType());
final MarkupStream markupStream = findMarkupStream(); if (markupStream != null) { if (markupStream.getXmlDeclaration() != null) { response.setContentType("text/" + getMarkupType() + "; charset=" + markupStream.getEncoding()); response.write(markupStream.getXmlDeclaration()); } } else { response.setContentType("text/" + getMarkupType()); }
protected void configureResponse() { // Get response final Response response = getResponse(); // Set content type based on markup type for page response.setContentType("text/" + getMarkupType()); // Set response locale from session locale response.setLocale(getSession().getLocale()); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/c631facac0f597d0e3dec9fd28d5e81ac8331f16/Page.java/buggy/wicket/src/java/wicket/Page.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5068, 1064, 1435, 202, 95, 202, 202, 759, 968, 766, 202, 202, 6385, 2306, 766, 273, 6476, 5621, 202, 202, 759, 1000, 913, 618, 2511, 603, 9813, 618, 364, 1363, 202, 202, 2740, 18, 542, 8046, 2932, 955, 4898, 397, 23232, 416, 559, 10663, 202, 202, 759, 1000, 766, 2573, 628, 1339, 2573, 202, 202, 2740, 18, 542, 3916, 12, 588, 2157, 7675, 588, 3916, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 5068, 1064, 1435, 202, 95, 202, 202, 759, 968, 766, 202, 202, 6385, 2306, 766, 273, 6476, 5621, 202, 202, 759, 1000, 913, 618, 2511, 603, 9813, 618, 364, 1363, 202, 202, 2740, 18, 542, 8046, 2932, 955, 4898, 397, 23232, 416, 559, 10663, 202, 202, 759, 1000, 766, 2573, 628, 1339, 2573, 202, 202, 2740, 18, 542, 3916, 12, 588, 2157, 7675, 588, 3916, 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 ]
public void testCreateChromosomeLocation() throws Exception { Chromosome chr = getChromosome(); int chrId = chr.getId().intValue(); BioEntity parent = (BioEntity) DynamicUtil.createObject(Collections.singleton(BioEntity.class)); int parentId = 101; parent.setId(new Integer(parentId)); BioEntity child = (BioEntity) DynamicUtil.createObject(Collections.singleton(BioEntity.class)); int childId = 102; child.setId(new Integer(childId)); // ------------------> parent // | | // ----------> child CalculateLocations cl = new CalculateLocations(osw); CalculateLocations.SimpleLoc parentOnChr = cl.new SimpleLoc(chrId, parentId, 101, 400, 1); CalculateLocations.SimpleLoc childOnParent = cl.new SimpleLoc(parentId, childId, 151, 250, 1); Location res = cl.createChromosomeLocation(parentOnChr, childOnParent, chr, child); Location exp1 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); exp1.setStart(new Integer(251)); exp1.setEnd(new Integer(350)); exp1.setStartIsPartial(Boolean.FALSE); exp1.setEndIsPartial(Boolean.FALSE); exp1.setStrand(new Integer(1)); exp1.setObject(chr); exp1.setSubject(child); assertEquals(toItem(exp1), toItem(res)); // <------------------ parent // | | // ----------> child cl = new CalculateLocations(osw); parentOnChr = cl.new SimpleLoc(chrId, parentId, 101, 400, -1); childOnParent = cl.new SimpleLoc(parentId, childId, 151, 250, 1); res = cl.createChromosomeLocation(parentOnChr, childOnParent, chr, child); Location exp2 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); exp2.setStart(new Integer(151)); exp2.setEnd(new Integer(250)); exp2.setStartIsPartial(Boolean.FALSE); exp2.setEndIsPartial(Boolean.FALSE); exp2.setStrand(new Integer(1)); exp2.setObject(chr); exp2.setSubject(child); assertEquals(toItem(exp2), toItem(res)); // ------------------> parent // | | // <---------- child cl = new CalculateLocations(osw); parentOnChr = cl.new SimpleLoc(chrId, parentId, 101, 400, 1); childOnParent = cl.new SimpleLoc(parentId, childId, 151, 250, -1); res = cl.createChromosomeLocation(parentOnChr, childOnParent, chr, child); Location exp3 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); exp3.setStart(new Integer(251)); exp3.setEnd(new Integer(350)); exp3.setStartIsPartial(Boolean.FALSE); exp3.setEndIsPartial(Boolean.FALSE); exp3.setStrand(new Integer(-1)); exp3.setObject(chr); exp3.setSubject(child); assertEquals(toItem(exp3), toItem(res)); // <----------------- parent // | | // <---------- child cl = new CalculateLocations(osw); parentOnChr = cl.new SimpleLoc(chrId, parentId, 101, 400, -1); childOnParent = cl.new SimpleLoc(parentId, childId, 151, 250, -1); res = cl.createChromosomeLocation(parentOnChr, childOnParent, chr, child); Location exp4 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); exp4.setStart(new Integer(151)); exp4.setEnd(new Integer(250)); exp4.setStartIsPartial(Boolean.FALSE); exp4.setEndIsPartial(Boolean.FALSE); exp4.setStrand(new Integer(-1)); exp4.setObject(chr); exp4.setSubject(child); assertEquals(toItem(exp4), toItem(res)); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/fe86d6e97ce647c8d58ad11b09a19ce7267f93e3/CalculateLocationsTest.java/buggy/flymine/model/genomic/src/test/org/flymine/postprocess/CalculateLocationsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 30761, 16958, 2735, 1435, 1216, 1185, 288, 3639, 1680, 520, 16958, 4513, 273, 336, 30761, 16958, 5621, 3639, 509, 4513, 548, 273, 4513, 18, 26321, 7675, 474, 620, 5621, 3639, 21209, 1943, 982, 273, 261, 38, 1594, 1943, 13, 12208, 1304, 18, 2640, 921, 12, 15150, 18, 24487, 12, 38, 1594, 1943, 18, 1106, 10019, 3639, 509, 11582, 273, 13822, 31, 3639, 982, 18, 542, 548, 12, 2704, 2144, 12, 2938, 548, 10019, 3639, 21209, 1943, 1151, 273, 261, 38, 1594, 1943, 13, 12208, 1304, 18, 2640, 921, 12, 15150, 18, 24487, 12, 38, 1594, 1943, 18, 1106, 10019, 3639, 509, 1151, 548, 273, 21822, 31, 3639, 1151, 18, 542, 548, 12, 2704, 2144, 12, 3624, 548, 10019, 3639, 368, 225, 12146, 2122, 282, 982, 3639, 368, 1377, 571, 3639, 571, 3639, 368, 1377, 300, 788, 2122, 4202, 1151, 3639, 9029, 10985, 927, 273, 394, 9029, 10985, 12, 538, 91, 1769, 3639, 9029, 10985, 18, 5784, 1333, 982, 1398, 782, 86, 273, 927, 18, 2704, 4477, 1333, 12, 15182, 548, 16, 11582, 16, 13822, 16, 7409, 16, 404, 1769, 3639, 9029, 10985, 18, 5784, 1333, 1151, 1398, 3054, 273, 927, 18, 2704, 4477, 1333, 12, 2938, 548, 16, 1151, 548, 16, 4711, 21, 16, 16927, 16, 404, 1769, 3639, 7050, 400, 273, 927, 18, 2640, 30761, 16958, 2735, 12, 2938, 1398, 782, 86, 16, 1151, 1398, 3054, 16, 4513, 16, 1151, 1769, 3639, 7050, 1329, 21, 273, 261, 2735, 13, 12208, 1304, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1684, 30761, 16958, 2735, 1435, 1216, 1185, 288, 3639, 1680, 520, 16958, 4513, 273, 336, 30761, 16958, 5621, 3639, 509, 4513, 548, 273, 4513, 18, 26321, 7675, 474, 620, 5621, 3639, 21209, 1943, 982, 273, 261, 38, 1594, 1943, 13, 12208, 1304, 18, 2640, 921, 12, 15150, 18, 24487, 12, 38, 1594, 1943, 18, 1106, 10019, 3639, 509, 11582, 273, 13822, 31, 3639, 982, 18, 542, 548, 12, 2704, 2144, 12, 2938, 548, 10019, 3639, 21209, 1943, 1151, 273, 261, 38, 1594, 1943, 13, 12208, 1304, 18, 2640, 921, 12, 15150, 18, 24487, 12, 38, 1594, 1943, 18, 1106, 10019, 3639, 509, 1151, 548, 273, 21822, 31, 3639, 1151, 18, 542, 548, 12, 2704, 2144, 2 ]
fileElement.setAttribute("key", uris[i].toString(false));
fileElement.setAttribute("key", uris[i].toString());
private synchronized void produceIndex() throws IOException { File outputFile; StreamResult resultStream; if (urisByWord.isEmpty() || urisWithWords.isEmpty()) { Logger.normal(this, "No URIs with words -> no index generation"); return; } outputFile = new File(indexFilename); if(outputFile.exists() && !outputFile.canWrite()) { Logger.error(this, "Spider: Unable to write '" + indexFilename +"'. Check permissions."); return; } resultStream = new StreamResult(outputFile); /* Initialize xml builder */ Document xmlDoc = null; DocumentBuilderFactory xmlFactory = null; DocumentBuilder xmlBuilder = null; DOMImplementation impl = null; Element rootElement = null; xmlFactory = DocumentBuilderFactory.newInstance(); try { xmlBuilder = xmlFactory.newDocumentBuilder(); } catch(javax.xml.parsers.ParserConfigurationException e) { /* Will (should ?) never happen */ Logger.error(this, "Spider: Error while initializing XML generator: "+e.toString()); return; } impl = xmlBuilder.getDOMImplementation(); /* Starting to generate index */ xmlDoc = impl.createDocument(null, "index", null); rootElement = xmlDoc.getDocumentElement(); /* Adding header to the index */ Element headerElement = xmlDoc.createElement("header"); /* -> title */ Element subHeaderElement = xmlDoc.createElement("title"); Text subHeaderText = xmlDoc.createTextNode(indexTitle); subHeaderElement.appendChild(subHeaderText); headerElement.appendChild(subHeaderElement); /* -> owner */ subHeaderElement = xmlDoc.createElement("owner"); subHeaderText = xmlDoc.createTextNode(indexOwner); subHeaderElement.appendChild(subHeaderText); headerElement.appendChild(subHeaderElement); /* -> owner email */ if(indexOwnerEmail != null) { subHeaderElement = xmlDoc.createElement("email"); subHeaderText = xmlDoc.createTextNode(indexOwnerEmail); subHeaderElement.appendChild(subHeaderText); headerElement.appendChild(subHeaderElement); } String[] words = (String[]) urisByWord.keySet().toArray(new String[urisByWord.size()]); Arrays.sort(words); FreenetURI[] uris = (FreenetURI[]) urisWithWords.toArray(new FreenetURI[urisWithWords.size()]); HashMap urisToNumbers = new HashMap(); /* Adding freesite list to the index */ Element filesElement = xmlDoc.createElement("files"); /* filesElement != fileElement */ for (int i = 0; i < uris.length; i++) { urisToNumbers.put(uris[i], new Integer(i)); Element fileElement = xmlDoc.createElement("file"); fileElement.setAttribute("id", Integer.toString(i)); fileElement.setAttribute("key", uris[i].toString(false)); Long size = (Long)sizeOfURIs.get(uris[i].toString(false)); if(size == null) { Logger.error(this, "Spider: size is missing"); } else { fileElement.setAttribute("size", size.toString()); } fileElement.setAttribute("mime", ((String)mimeOfURIs.get(uris[i].toString(false)))); Element titleElement = xmlDoc.createElement("option"); titleElement.setAttribute("name", "title"); titleElement.setAttribute("value", (String)titlesOfURIs.get(uris[i].toString(false))); fileElement.appendChild(titleElement); filesElement.appendChild(fileElement); } /* Adding word index */ Element keywordsElement = xmlDoc.createElement("keywords"); /* Word by word */ for (int i = 0; i < words.length; i++) { Element wordElement = xmlDoc.createElement("word"); wordElement.setAttribute("v", words[i]); FreenetURI[] urisForWord = (FreenetURI[]) urisByWord.get(words[i]); /* URI by URI */ for (int j = 0; j < urisForWord.length; j++) { FreenetURI uri = urisForWord[j]; Integer x = (Integer) urisToNumbers.get(uri); if (x == null) { Logger.error(this, "Eh?"); continue; } Element uriElement = xmlDoc.createElement("file"); uriElement.setAttribute("id", x.toString()); /* Position by position */ HashMap positionsForGivenWord = (HashMap)positionsByWordByURI.get(uri.toString(false)); Integer[] positions = (Integer[])positionsForGivenWord.get(words[i]); StringBuffer positionList = new StringBuffer(); for(int k=0; k < positions.length ; k++) { if(k!=0) positionList.append(','); positionList.append(positions[k].toString()); } uriElement.appendChild(xmlDoc.createTextNode(positionList.toString())); wordElement.appendChild(uriElement); } keywordsElement.appendChild(wordElement); } rootElement.appendChild(headerElement); rootElement.appendChild(filesElement); rootElement.appendChild(keywordsElement); /* Serialization */ DOMSource domSource = new DOMSource(xmlDoc); TransformerFactory transformFactory = TransformerFactory.newInstance(); Transformer serializer; try { serializer = transformFactory.newTransformer(); } catch(javax.xml.transform.TransformerConfigurationException e) { Logger.error(this, "Spider: Error while serializing XML (transformFactory.newTransformer()): "+e.toString()); return; } serializer.setOutputProperty(OutputKeys.ENCODING, "UTF-8"); serializer.setOutputProperty(OutputKeys.INDENT,"yes"); /* final step */ try { serializer.transform(domSource, resultStream); } catch(javax.xml.transform.TransformerException e) { Logger.error(this, "Spider: Error while serializing XML (transform()): "+e.toString()); return; } if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "Spider: indexes regenerated."); }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/1c876261ab73159d57a26624667ec7bf7acd15b8/NinjaSpider.java/clean/src/freenet/clients/http/NinjaSpider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3852, 918, 11402, 1016, 1435, 1216, 1860, 288, 202, 202, 812, 15047, 31, 202, 202, 1228, 1253, 563, 1228, 31, 202, 202, 430, 261, 23510, 858, 3944, 18, 291, 1921, 1435, 747, 21476, 1190, 7363, 18, 291, 1921, 10756, 288, 1082, 202, 3328, 18, 6130, 12, 2211, 16, 315, 2279, 24565, 598, 4511, 317, 1158, 770, 9377, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 2844, 812, 273, 394, 1387, 12, 1615, 5359, 1769, 202, 202, 430, 12, 2844, 812, 18, 1808, 1435, 1082, 282, 597, 401, 2844, 812, 18, 4169, 3067, 10756, 288, 1082, 202, 3328, 18, 1636, 12, 2211, 16, 315, 3389, 3585, 30, 18640, 358, 1045, 2119, 397, 770, 5359, 397, 5187, 18, 2073, 4371, 1199, 1769, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2088, 1228, 273, 394, 3961, 1253, 12, 2844, 812, 1769, 202, 202, 20308, 9190, 2025, 2089, 1195, 202, 202, 2519, 2025, 1759, 273, 446, 31, 202, 202, 2519, 20692, 2025, 1733, 273, 446, 31, 202, 202, 2519, 1263, 2025, 1263, 273, 446, 31, 202, 202, 8168, 13621, 9380, 273, 446, 31, 202, 202, 1046, 27575, 273, 446, 31, 202, 202, 2902, 1733, 273, 30236, 18, 2704, 1442, 5621, 202, 202, 698, 288, 1082, 202, 2902, 1263, 273, 2025, 1733, 18, 2704, 2519, 1263, 5621, 202, 202, 97, 1044, 12, 28384, 18, 2902, 18, 11104, 18, 2678, 10737, 425, 13, 288, 1082, 202, 20308, 9980, 261, 13139, 692, 13, 5903, 5865, 1195, 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, 1152, 3852, 918, 11402, 1016, 1435, 1216, 1860, 288, 202, 202, 812, 15047, 31, 202, 202, 1228, 1253, 563, 1228, 31, 202, 202, 430, 261, 23510, 858, 3944, 18, 291, 1921, 1435, 747, 21476, 1190, 7363, 18, 291, 1921, 10756, 288, 1082, 202, 3328, 18, 6130, 12, 2211, 16, 315, 2279, 24565, 598, 4511, 317, 1158, 770, 9377, 8863, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 2844, 812, 273, 394, 1387, 12, 1615, 5359, 1769, 202, 202, 430, 12, 2844, 812, 18, 1808, 1435, 1082, 282, 597, 401, 2844, 812, 18, 4169, 3067, 10756, 288, 1082, 202, 3328, 18, 1636, 12, 2211, 16, 315, 3389, 3585, 30, 18640, 358, 1045, 2119, 397, 770, 5359, 397, 2 ]
if (url != null) {
if (url != null)
public InputStream getResourceAsStream(String path) { try { URL url = httpContext.getResource(path); if (url != null) { return url.openStream(); } else { return null; } } catch (IOException ex) { return null; } }
13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/ccd988bbab917bffab77a86ac4e5ca05689b23e5/ServletContextImpl.java/buggy/bundles/org.eclipse.equinox.http/src/org/eclipse/equinox/http/servlet/ServletContextImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5037, 20216, 12, 780, 589, 13, 288, 202, 202, 698, 288, 1082, 202, 1785, 880, 273, 1062, 1042, 18, 588, 1420, 12, 803, 1769, 1082, 202, 430, 261, 718, 480, 446, 13, 288, 9506, 202, 2463, 880, 18, 3190, 1228, 5621, 1082, 202, 97, 469, 288, 9506, 202, 2463, 446, 31, 1082, 202, 97, 202, 202, 97, 1044, 261, 14106, 431, 13, 288, 1082, 202, 2463, 446, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5037, 20216, 12, 780, 589, 13, 288, 202, 202, 698, 288, 1082, 202, 1785, 880, 273, 1062, 1042, 18, 588, 1420, 12, 803, 1769, 1082, 202, 430, 261, 718, 480, 446, 13, 288, 9506, 202, 2463, 880, 18, 3190, 1228, 5621, 1082, 202, 97, 469, 288, 9506, 202, 2463, 446, 31, 1082, 202, 97, 202, 202, 97, 1044, 261, 14106, 431, 13, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index,
bc2ir.appendInstruction(Binary.create(INT_SHL, offsetI, index,
static boolean generateMagic(OPT_BC2IR bc2ir, OPT_GenerationContext gc, VM_MethodReference meth) throws OPT_MagicNotImplementedException { if (gc.method.hasNoInlinePragma()) gc.allocFrame = true; // HACK: Don't schedule any bbs containing unsafe magics. // TODO: move this to individual magics that are unsafe. // -- igor 08/13/1999 bc2ir.markBBUnsafeForScheduling(); VM_Atom methodName = meth.getName(); boolean address = (meth.getType() == VM_TypeReference.Address); // Address magic VM_TypeReference[] types = meth.getParameterTypes(); VM_TypeReference returnType = meth.getReturnType(); if (address && isLoad(methodName)) { // LOAD OPT_Operand offset = (types.length == 0) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); OPT_RegisterOperand result = gc.temps.makeTemp(returnType); bc2ir.appendInstruction(Load.create(getOperator(returnType, LOAD_OP), result, base, offset, null)); bc2ir.push(result.copyD2U(), returnType); } else if (address && isPrepare(methodName)) { // PREPARE OPT_Operand offset = (types.length == 0) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); OPT_RegisterOperand result = gc.temps.makeTemp(returnType); bc2ir.appendInstruction( Prepare.create(getOperator(returnType, PREPARE_OP), result, base, offset, null)); bc2ir.push(result.copyD2U(), returnType); } else if (address && methodName == VM_MagicNames.attempt) { // ATTEMPT VM_TypeReference attemptType = types[0]; OPT_Operand offset = (types.length == 2) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand newVal = bc2ir.pop(); OPT_Operand oldVal = bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction( Attempt.create(getOperator(attemptType, ATTEMPT_OP), test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U(), returnType); } else if (address && methodName == VM_MagicNames.store) { // STORE VM_TypeReference storeType = types[0]; OPT_Operand offset = (types.length == 1) ? new OPT_IntConstantOperand(0) : bc2ir.pop(); OPT_Operand val = bc2ir.pop(); OPT_Operand base = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(getOperator(storeType, STORE_OP), val, base, offset, null)); } else if (methodName == VM_MagicNames.getProcessorRegister) { OPT_RegisterOperand rop = gc.temps.makePROp(); bc2ir.markGuardlessNonNull(rop); bc2ir.push(rop); } else if (methodName == VM_MagicNames.setProcessorRegister) { OPT_Operand val = bc2ir.popRef(); if (val instanceof OPT_RegisterOperand) { bc2ir.appendInstruction(Move.create(REF_MOVE, gc.temps.makePROp(), val)); } else { String msg = " Unexpected operand VM_Magic.setProcessorRegister"; throw OPT_MagicNotImplementedException.UNEXPECTED(msg); } } else if (methodName == VM_MagicNames.addressArrayCreate) { OPT_Instruction s = bc2ir.generateAnewarray(meth.getType().getArrayElementType()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayLength) { OPT_Operand op1 = bc2ir.pop(); bc2ir.clearCurrentGuard(); if (bc2ir.do_NullCheck(op1)) return true; OPT_RegisterOperand t = gc.temps.makeTempInt(); OPT_Instruction s = GuardedUnary.create(ARRAYLENGTH, t, op1, bc2ir.getCurrentGuard()); bc2ir.push(t.copyD2U()); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.addressArrayGet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); OPT_RegisterOperand result; if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { result = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, result, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { result = gc.temps.makeTemp(VM_TypeReference.Int); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Load.create(INT_LOAD, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { result = gc.temps.makeTemp(elementType); bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); bc2ir.appendInstruction(Load.create(REF_LOAD, result, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } bc2ir.push(result.copyD2U()); } else if (methodName == VM_MagicNames.addressArraySet) { VM_TypeReference elementType = meth.getType().getArrayElementType(); OPT_Operand val = bc2ir.pop(); OPT_Operand index = bc2ir.popInt(); OPT_Operand ref = bc2ir.popRef(); OPT_RegisterOperand offset = gc.temps.makeTempInt(); if (meth.getType().isCodeArrayType()) { if (VM.BuildForIA32) { bc2ir.appendInstruction(Store.create(BYTE_STORE, val, ref, index, new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } else if (VM.BuildForPowerPC) { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_INT))); bc2ir.appendInstruction(Store.create(INT_STORE, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else { bc2ir.appendInstruction(Binary.create(INT_SHL, offset, index, new OPT_IntConstantOperand(LOG_BYTES_IN_ADDRESS))); bc2ir.appendInstruction(Store.create(REF_STORE, val, ref, offset.copy(), new OPT_LocationOperand(elementType), new OPT_TrueGuardOperand())); } } else if (methodName == VM_MagicNames.getIntAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setIntAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(INT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getWordAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setWordAtOffset) { OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getLongAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempLong(); bc2ir.appendInstruction(Load.create(LONG_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setLongAtOffset) { OPT_Operand val = bc2ir.popLong(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(LONG_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getDoubleAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Load.create(DOUBLE_LOAD, val, object, offset, null)); bc2ir.pushDual(val.copyD2U()); } else if (methodName == VM_MagicNames.setDoubleAtOffset) { OPT_Operand val = bc2ir.popDouble(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(DOUBLE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getObjectAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getObjectArrayAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Load.create(REF_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setObjectAtOffset) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 4) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(REF_STORE, val, object, offset, loc)); } else if (methodName == VM_MagicNames.getByteAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Byte); bc2ir.appendInstruction(Load.create(BYTE_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setByteAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(BYTE_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getCharAtOffset) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Char); bc2ir.appendInstruction(Load.create(USHORT_LOAD, val, object, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setCharAtOffset) { OPT_Operand val = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand object = bc2ir.popRef(); bc2ir.appendInstruction(Store.create(SHORT_STORE, val, object, offset, null)); } else if (methodName == VM_MagicNames.getMemoryInt) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Load.create(INT_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryWord) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.getMemoryAddress) { OPT_Operand memAddr = bc2ir.popAddress(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Load.create(REF_LOAD, val, memAddr, new OPT_IntConstantOperand(0), null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.setMemoryInt) { OPT_Operand val = bc2ir.popInt(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(INT_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryWord) { OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), null)); } else if (methodName == VM_MagicNames.setMemoryAddress) { OPT_LocationOperand loc = null; if (meth.getParameterTypes().length == 3) { loc = mapToMetadata(bc2ir.popInt()); } OPT_Operand val = bc2ir.popRef(); OPT_Operand memAddr = bc2ir.popAddress(); bc2ir.appendInstruction(Store.create(REF_STORE, val, memAddr, new OPT_IntConstantOperand(0), loc)); } else if (meth.getType() == VM_TypeReference.SysCall) { // All methods of VM_SysCall have the following signature: // callNAME(Address code, <var args to pass via native calling convention>) VM_TypeReference[] args = meth.getParameterTypes(); int numArgs = args.length; VM_Field ip = VM_Entrypoints.getSysCallField(meth.getName().toString()); OPT_MethodOperand mo = OPT_MethodOperand.STATIC(ip); OPT_Instruction call = Call.create(SYSCALL, null, null, mo, null, args.length); for (int i = args.length-1; i >= 0; i--) { Call.setParam(call, i, bc2ir.pop(args[i])); } if (!returnType.isVoidType()) { OPT_RegisterOperand op0 = gc.temps.makeTemp(returnType); Call.setResult(call, op0); bc2ir.push(op0.copyD2U(), returnType); } bc2ir.appendInstruction(call); } else if (methodName == VM_MagicNames.threadAsCollectorThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_CollectorThread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsProcessor) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Processor); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsAddress) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObject) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsObjectArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsType) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.VM_Type); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsThread) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Thread;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsRegisters) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.findOrCreate(VM_BootstrapClassLoader.getBootstrapClassLoader(), VM_Atom.findOrCreateAsciiAtom("Lcom/ibm/JikesRVM/VM_Registers;"))); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsByteArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ByteArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsShortArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.ShortArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.objectAsIntArray) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popRef())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.addressAsStack) { OPT_RegisterOperand reg = gc.temps.makeTemp(VM_TypeReference.IntArray); bc2ir.appendInstruction(Move.create(REF_MOVE, reg, bc2ir.popAddress())); bc2ir.push(reg.copyD2U()); } else if (methodName == VM_MagicNames.floatAsIntBits) { OPT_Operand val = bc2ir.popFloat(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(Unary.create(FLOAT_AS_INT_BITS, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.intBitsAsFloat) { OPT_Operand val = bc2ir.popInt(); OPT_RegisterOperand op0 = gc.temps.makeTempFloat(); bc2ir.appendInstruction(Unary.create(INT_BITS_AS_FLOAT, op0, val)); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.doubleAsLongBits) { OPT_Operand val = bc2ir.popDouble(); OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Unary.create(DOUBLE_AS_LONG_BITS, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.longBitsAsDouble) { OPT_Operand val = bc2ir.popLong(); OPT_RegisterOperand op0 = gc.temps.makeTempDouble(); bc2ir.appendInstruction(Unary.create(LONG_BITS_AS_DOUBLE, op0, val)); bc2ir.pushDual(op0.copyD2U()); } else if (methodName == VM_MagicNames.getObjectType) { OPT_Operand val = bc2ir.popRef(); OPT_Operand guard = bc2ir.getGuard(val); if (guard == null) { // it's magic, so assume that it's OK.... guard = new OPT_TrueGuardOperand(); } OPT_RegisterOperand tibPtr = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); bc2ir.appendInstruction(GuardedUnary.create(GET_OBJ_TIB, tibPtr, val, guard)); OPT_RegisterOperand op0; VM_TypeReference argType = val.getType(); if (argType.isArrayType()) { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Array); } else { if (argType == VM_TypeReference.JavaLangObject || argType == VM_TypeReference.JavaLangCloneable || argType == VM_TypeReference.JavaIoSerializable) { // could be an array or a class, so make op0 be a VM_Type op0 = gc.temps.makeTemp(VM_TypeReference.VM_Type); } else { op0 = gc.temps.makeTemp(VM_TypeReference.VM_Class); } } bc2ir.markGuardlessNonNull(op0); bc2ir.appendInstruction(Unary.create(GET_TYPE_FROM_TIB, op0, tibPtr.copyD2U())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.getArrayLength) { OPT_Operand val = bc2ir.popRef(); OPT_RegisterOperand op0 = gc.temps.makeTempInt(); bc2ir.appendInstruction(GuardedUnary.create(ARRAYLENGTH, op0, val, new OPT_TrueGuardOperand())); bc2ir.push(op0.copyD2U()); } else if (methodName == VM_MagicNames.invokeClassInitializer) { OPT_Instruction s = Call.create0(CALL, null, bc2ir.popRef(), null); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.invokeMain) { OPT_Operand code = bc2ir.popRef(); OPT_Operand args = bc2ir.popRef(); bc2ir.appendInstruction(Call.create1(CALL, null, code, null, args)); } else if ((methodName == VM_MagicNames.invokeMethodReturningObject) || (methodName == VM_MagicNames.invokeMethodReturningVoid) || (methodName == VM_MagicNames.invokeMethodReturningLong) || (methodName == VM_MagicNames.invokeMethodReturningDouble) || (methodName == VM_MagicNames.invokeMethodReturningFloat) || (methodName == VM_MagicNames.invokeMethodReturningInt)) { OPT_Operand spills = bc2ir.popRef(); OPT_Operand fprs = bc2ir.popRef(); OPT_Operand gprs = bc2ir.popRef(); OPT_Operand code = bc2ir.popRef(); OPT_RegisterOperand res = null; if (methodName == VM_MagicNames.invokeMethodReturningObject) { res = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.push(res.copyD2U()); } else if (methodName == VM_MagicNames.invokeMethodReturningLong) { res = gc.temps.makeTemp(VM_TypeReference.Long); bc2ir.push(res.copyD2U(), VM_TypeReference.Long); } else if (methodName == VM_MagicNames.invokeMethodReturningDouble) { res = gc.temps.makeTempDouble(); bc2ir.push(res.copyD2U(), VM_TypeReference.Double); } else if (methodName == VM_MagicNames.invokeMethodReturningFloat) { res = gc.temps.makeTempFloat(); bc2ir.push(res.copyD2U(), VM_TypeReference.Float); } else if (methodName == VM_MagicNames.invokeMethodReturningInt) { res = gc.temps.makeTempInt(); bc2ir.push(res.copyD2U()); } VM_Field target = VM_Entrypoints.reflectiveMethodInvokerInstructionsField; OPT_MethodOperand met = OPT_MethodOperand.STATIC(target); OPT_Instruction s = Call.create4(CALL, res, new OPT_IntConstantOperand(target.getOffset()), met, code, gprs, fprs, spills); bc2ir.appendInstruction(s); } else if (methodName == VM_MagicNames.saveThreadState) { OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.saveThreadStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1)); } else if (methodName == VM_MagicNames.threadSwitch) { OPT_Operand p2 = bc2ir.popRef(); OPT_Operand p1 = bc2ir.popRef(); VM_Field target = VM_Entrypoints.threadSwitchInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create2(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, p1, p2)); } else if (methodName == VM_MagicNames.restoreHardwareExceptionState) { VM_Field target = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField; OPT_MethodOperand mo = OPT_MethodOperand.STATIC(target); bc2ir.appendInstruction(Call.create1(CALL, null, new OPT_IntConstantOperand(target.getOffset()), mo, bc2ir.popRef())); } else if (methodName == VM_MagicNames.prepareInt) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTempInt(); bc2ir.appendInstruction(Prepare.create(PREPARE_INT, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareObject) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.JavaLangObject); bc2ir.appendInstruction(Prepare.create(PREPARE_ADDR, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareAddress) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Address); bc2ir.appendInstruction(Prepare.create(PREPARE_ADDR, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.prepareWord) { OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand val = gc.temps.makeTemp(VM_TypeReference.Word); bc2ir.appendInstruction(Prepare.create(PREPARE_ADDR, val, base, offset, null)); bc2ir.push(val.copyD2U()); } else if (methodName == VM_MagicNames.attemptInt) { OPT_Operand newVal = bc2ir.popInt(); OPT_Operand oldVal = bc2ir.popInt(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_INT, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptObject) { OPT_Operand newVal = bc2ir.popRef(); OPT_Operand oldVal = bc2ir.popRef(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptAddress) { OPT_Operand newVal = bc2ir.popAddress(); OPT_Operand oldVal = bc2ir.popAddress(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (methodName == VM_MagicNames.attemptWord) { OPT_Operand newVal = bc2ir.pop(); OPT_Operand oldVal = bc2ir.pop(); OPT_Operand offset = bc2ir.popInt(); OPT_Operand base = bc2ir.popRef(); OPT_RegisterOperand test = gc.temps.makeTempInt(); bc2ir.appendInstruction(Attempt.create(ATTEMPT_ADDR, test, base, offset, oldVal, newVal, null)); bc2ir.push(test.copyD2U()); } else if (generatePolymorphicMagic(bc2ir, gc, meth, methodName)) { return true; } else if (methodName == VM_MagicNames.getTimeBase) { OPT_RegisterOperand op0 = gc.temps.makeTempLong(); bc2ir.appendInstruction(Nullary.create(GET_TIME_BASE, op0)); bc2ir.pushDual(op0.copyD2U()); } else { // Wasn't machine-independent, so try the machine-dependent magics next. return OPT_GenerateMachineSpecificMagic.generateMagic(bc2ir, gc, meth); } return true; } // generateMagic
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/OPT_GenerateMagic.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_GenerateMagic.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1250, 2103, 19289, 12, 15620, 67, 16283, 22, 7937, 6533, 22, 481, 16, 27573, 16456, 67, 13842, 1042, 8859, 16, 27573, 8251, 67, 1305, 2404, 7917, 13, 1216, 16456, 67, 19289, 1248, 8644, 503, 288, 565, 309, 261, 13241, 18, 2039, 18, 5332, 2279, 10870, 2050, 9454, 10756, 8859, 18, 9853, 3219, 273, 638, 31, 3639, 368, 670, 3649, 30, 7615, 1404, 4788, 1281, 324, 2038, 4191, 7127, 4447, 2102, 18, 565, 368, 2660, 30, 3635, 333, 358, 7327, 4447, 2102, 716, 854, 7127, 18, 565, 368, 1493, 277, 3022, 16314, 19, 3437, 19, 21, 11984, 565, 6533, 22, 481, 18, 3355, 9676, 23912, 1290, 25401, 5621, 565, 8251, 67, 3641, 4918, 273, 7917, 18, 17994, 5621, 565, 1250, 1758, 273, 261, 27305, 18, 588, 559, 1435, 422, 8251, 67, 7534, 18, 1887, 1769, 565, 368, 5267, 8146, 565, 8251, 67, 7534, 8526, 1953, 273, 7917, 18, 588, 1662, 2016, 5621, 565, 8251, 67, 7534, 9424, 273, 7917, 18, 588, 9102, 5621, 377, 309, 261, 2867, 597, 353, 2563, 12, 2039, 461, 3719, 288, 1377, 368, 24089, 1377, 16456, 67, 10265, 1384, 273, 261, 2352, 18, 2469, 422, 374, 13, 3639, 692, 394, 16456, 67, 1702, 6902, 10265, 12, 20, 13, 3639, 294, 6533, 22, 481, 18, 5120, 5621, 1377, 16456, 67, 10265, 1026, 273, 6533, 22, 481, 18, 5120, 1887, 5621, 1377, 16456, 67, 3996, 10265, 563, 273, 8859, 18, 874, 1121, 18, 6540, 7185, 12, 2463, 559, 1769, 1377, 6533, 22, 481, 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, 760, 1250, 2103, 19289, 12, 15620, 67, 16283, 22, 7937, 6533, 22, 481, 16, 27573, 16456, 67, 13842, 1042, 8859, 16, 27573, 8251, 67, 1305, 2404, 7917, 13, 1216, 16456, 67, 19289, 1248, 8644, 503, 288, 565, 309, 261, 13241, 18, 2039, 18, 5332, 2279, 10870, 2050, 9454, 10756, 8859, 18, 9853, 3219, 273, 638, 31, 3639, 368, 670, 3649, 30, 7615, 1404, 4788, 1281, 324, 2038, 4191, 7127, 4447, 2102, 18, 565, 368, 2660, 30, 3635, 333, 358, 7327, 4447, 2102, 716, 854, 7127, 18, 565, 368, 1493, 277, 3022, 16314, 19, 3437, 19, 21, 11984, 565, 6533, 22, 481, 18, 3355, 9676, 23912, 1290, 25401, 5621, 565, 8251, 67, 3641, 4918, 273, 7917, 18, 17994, 5621, 2 ]
public abstract List getDataSourceList(String nodeId, String intf, boolean includeNodeQueries);
public List getDataSourceList(int nodeId) { return getDataSourceList(String.valueOf(nodeId)); }
public abstract List getDataSourceList(String nodeId, String intf, boolean includeNodeQueries);
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/4dfa1b0a6361605a11fa0a1aff4926bbee3e6246/GraphModelAbstract.java/buggy/src/web/src/org/opennms/web/graph/GraphModelAbstract.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 987, 29130, 682, 12, 780, 11507, 16, 514, 17262, 16, 25083, 282, 1250, 2341, 907, 9592, 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 ]
[ 1, 1, 1, 1, 1, 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, 1071, 8770, 987, 29130, 682, 12, 780, 11507, 16, 514, 17262, 16, 25083, 282, 1250, 2341, 907, 9592, 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 ]
toolBarManager.dispose();
if (toolBarManager instanceof IToolBarManager2) ((IToolBarManager2) toolBarManager).dispose(); else if (toolBarManager instanceof ToolBarManager) ((ToolBarManager) toolBarManager).dispose();
public boolean close() { if (operationInProgress) return false; if (super.close()) { if (menuBarManager != null) { menuBarManager.dispose(); menuBarManager = null; } if (toolBarManager != null) { toolBarManager.dispose(); toolBarManager = null; } if (statusLineManager != null) { statusLineManager.dispose(); statusLineManager = null; } if (coolBarManager != null) { coolBarManager.dispose(); coolBarManager = null; } return true; } return false; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4ab9153c33294fedde181b0a3efe60786aac7bd9/ApplicationWindow.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/window/ApplicationWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1746, 1435, 288, 3639, 309, 261, 7624, 13434, 13, 5411, 327, 629, 31, 3639, 309, 261, 9565, 18, 4412, 10756, 288, 5411, 309, 261, 5414, 5190, 1318, 480, 446, 13, 288, 7734, 3824, 5190, 1318, 18, 2251, 4150, 5621, 7734, 3824, 5190, 1318, 273, 446, 31, 5411, 289, 5411, 309, 261, 6738, 5190, 1318, 480, 446, 13, 288, 7734, 309, 261, 6738, 5190, 1318, 1276, 467, 6364, 5190, 1318, 22, 13, 14015, 45, 6364, 5190, 1318, 22, 13, 5226, 5190, 1318, 2934, 2251, 4150, 5621, 469, 309, 261, 6738, 5190, 1318, 1276, 13288, 5190, 1318, 13, 14015, 6364, 5190, 1318, 13, 5226, 5190, 1318, 2934, 2251, 4150, 5621, 7734, 5226, 5190, 1318, 273, 446, 31, 5411, 289, 5411, 309, 261, 2327, 1670, 1318, 480, 446, 13, 288, 7734, 1267, 1670, 1318, 18, 2251, 4150, 5621, 7734, 1267, 1670, 1318, 273, 446, 31, 5411, 289, 5411, 309, 261, 71, 1371, 5190, 1318, 480, 446, 13, 288, 7734, 27367, 5190, 1318, 18, 2251, 4150, 5621, 7734, 27367, 5190, 1318, 273, 446, 31, 5411, 289, 5411, 327, 638, 31, 3639, 289, 3639, 327, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1746, 1435, 288, 3639, 309, 261, 7624, 13434, 13, 5411, 327, 629, 31, 3639, 309, 261, 9565, 18, 4412, 10756, 288, 5411, 309, 261, 5414, 5190, 1318, 480, 446, 13, 288, 7734, 3824, 5190, 1318, 18, 2251, 4150, 5621, 7734, 3824, 5190, 1318, 273, 446, 31, 5411, 289, 5411, 309, 261, 6738, 5190, 1318, 480, 446, 13, 288, 7734, 309, 261, 6738, 5190, 1318, 1276, 467, 6364, 5190, 1318, 22, 13, 14015, 45, 6364, 5190, 1318, 22, 13, 5226, 5190, 1318, 2934, 2251, 4150, 5621, 469, 309, 261, 6738, 5190, 1318, 1276, 13288, 5190, 1318, 13, 14015, 6364, 5190, 1318, 13, 5226, 5190, 1318, 2934, 2251, 4150, 5621, 7734, 5226, 5190, 1318, 273, 446, 31, 5411, 2 ]
public boolean equals(Object object) { if (!(object instanceof Person)) { return false; } Person rhs = (Person) object; return new EqualsBuilder().append(this.firstName, rhs.firstName) .append(this.personId, rhs.personId) .append(this.lastName, rhs.lastName) .isEquals();
public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Person)) return false; final Person person = (Person) o; if (firstName != null ? !firstName.equals(person.firstName) : person.firstName != null) return false; if (lastName != null ? !lastName.equals(person.lastName) : person.lastName != null) return false; return true;
public boolean equals(Object object) { if (!(object instanceof Person)) { return false; } Person rhs = (Person) object; return new EqualsBuilder().append(this.firstName, rhs.firstName) .append(this.personId, rhs.personId) .append(this.lastName, rhs.lastName) .isEquals(); }
3521 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3521/21d2edf8be04a31a5a4dbeb14c2c4e1a9999bb72/Person.java/buggy/extras/tapestry/extras/appgen/test/dao/org/appfuse/model/Person.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 733, 13, 288, 3639, 309, 16051, 12, 1612, 1276, 11573, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 11573, 7711, 273, 261, 8346, 13, 733, 31, 3639, 327, 394, 19344, 1263, 7675, 6923, 12, 2211, 18, 3645, 461, 16, 7711, 18, 3645, 461, 13, 7734, 263, 6923, 12, 2211, 18, 12479, 548, 16, 7711, 18, 12479, 548, 13, 7734, 263, 6923, 12, 2211, 18, 2722, 461, 16, 7711, 18, 2722, 461, 13, 7734, 263, 291, 8867, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 12, 921, 733, 13, 288, 3639, 309, 16051, 12, 1612, 1276, 11573, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 11573, 7711, 273, 261, 8346, 13, 733, 31, 3639, 327, 394, 19344, 1263, 7675, 6923, 12, 2211, 18, 3645, 461, 16, 7711, 18, 3645, 461, 13, 7734, 263, 6923, 12, 2211, 18, 12479, 548, 16, 7711, 18, 12479, 548, 13, 7734, 263, 6923, 12, 2211, 18, 2722, 461, 16, 7711, 18, 2722, 461, 13, 7734, 263, 291, 8867, 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 ]
private void resetDrag() { anchorPosition.x = -1;
private void resetDrag(boolean clearRubberband) { if (clearRubberband) { clearRubberBandSelection(); }
private void resetDrag() { // getPaintSurface().clearRubberbandSelection(); anchorPosition.x = -1; dragInProgress = false; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/055cdadfc48a294fa16ea68d9f7366f79782db28/BoxView.java/clean/examples/org.eclipse.ui.examples.undo/Eclipse UI Examples Undo/org/eclipse/ui/examples/undo/views/BoxView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2715, 11728, 1435, 288, 202, 202, 759, 1689, 1598, 11508, 7675, 8507, 54, 373, 744, 12752, 6233, 5621, 202, 202, 16215, 2555, 18, 92, 273, 300, 21, 31, 202, 202, 15997, 13434, 273, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2715, 11728, 1435, 288, 202, 202, 759, 1689, 1598, 11508, 7675, 8507, 54, 373, 744, 12752, 6233, 5621, 202, 202, 16215, 2555, 18, 92, 273, 300, 21, 31, 202, 202, 15997, 13434, 273, 629, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Set getRemaining() {
public Set<E> getRemaining() {
public Set getRemaining() { return m_entries; }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/a6c25c62674ccadf9b95d643aa23df645b6f6775/JdbcSet.java/clean/opennms-util/src/main/java/org/opennms/core/utils/JdbcSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 32, 41, 34, 336, 11429, 1435, 288, 3639, 327, 312, 67, 8219, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 32, 41, 34, 336, 11429, 1435, 288, 3639, 327, 312, 67, 8219, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { } }); filterComboViewer.setLabelProvider(new LabelProvider(){ public String getText(Object inputElement) { DbType dbType = (DbType)inputElement; return dbType.getName(); } }); filterComboViewer.setInput(dbTypeList);
public void inputChanged( Viewer viewer, Object oldInput, Object newInput ) { } } ); filterComboViewer.setLabelProvider( new LabelProvider( ) { public String getText( Object inputElement ) { DbType dbType = (DbType) inputElement; return dbType.getName( ); } } ); filterComboViewer.setInput( dbTypeList );
private void setFilterComboContents(ComboViewer filterComboViewer) { if( filterComboViewer == null ) { return; } ArrayList dbTypeList = new ArrayList(); DbType tableType = new DbType(DbType.TABLE_TYPE, JdbcPlugin.getResourceString("tablepage.text.tabletype")); DbType viewType = new DbType(DbType.VIEW_TYPE, JdbcPlugin.getResourceString("tablepage.text.viewtype")); DbType allType = new DbType(DbType.ALL_TYPE, JdbcPlugin.getResourceString("tablepage.text.All")); DbType procedureType = new DbType(DbType.PROCEDURE_TYPE,JdbcPlugin.getResourceString("tablepage.text.procedure")); // Populate the Types of Data bases objects which can be retrieved dbTypeList.add( allType ); dbTypeList.add( tableType ); dbTypeList.add( viewType ); if ( metaDataProvider.isProcedureSupported( ) ) dbTypeList.add( procedureType ); filterComboViewer.setContentProvider(new IStructuredContentProvider(){ public Object[] getElements(Object inputElement) { if(inputElement != null) { return ((ArrayList)inputElement).toArray(); } return new DbType[]{}; } public void dispose() { // TODO Auto-generated method stub } public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { // TODO Auto-generated method stub } }); filterComboViewer.setLabelProvider(new LabelProvider(){ public String getText(Object inputElement) { DbType dbType = (DbType)inputElement; return dbType.getName(); } }); filterComboViewer.setInput(dbTypeList); // Set the Default selection to the First Item , which is "All" filterComboViewer.getCombo().select(0); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8887f296b0d9adc032ae9020f3349938893f43a3/SQLDataSetEditorPage.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 22855, 16156, 6323, 12, 16156, 18415, 1034, 16156, 18415, 13, 202, 95, 202, 202, 430, 12, 1034, 16156, 18415, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 19558, 29771, 682, 273, 394, 2407, 5621, 9506, 202, 4331, 559, 1014, 559, 225, 273, 394, 8408, 559, 12, 4331, 559, 18, 7775, 67, 2399, 16, 24209, 3773, 18, 588, 1420, 780, 2932, 2121, 2433, 18, 955, 18, 7032, 1810, 388, 7923, 1769, 202, 202, 4331, 559, 1476, 559, 273, 394, 8408, 559, 12, 4331, 559, 18, 12145, 67, 2399, 16, 24209, 3773, 18, 588, 1420, 780, 2932, 2121, 2433, 18, 955, 18, 1945, 723, 7923, 1769, 202, 202, 4331, 559, 777, 559, 273, 394, 8408, 559, 12, 4331, 559, 18, 4685, 67, 2399, 16, 24209, 3773, 18, 588, 1420, 780, 2932, 2121, 2433, 18, 955, 18, 1595, 7923, 1769, 202, 202, 4331, 559, 12131, 559, 273, 394, 8408, 559, 12, 4331, 559, 18, 3373, 23552, 4830, 67, 2399, 16, 25316, 3773, 18, 588, 1420, 780, 2932, 2121, 2433, 18, 955, 18, 685, 8153, 7923, 1769, 202, 202, 759, 22254, 326, 7658, 434, 1910, 8337, 2184, 1492, 848, 506, 10295, 202, 202, 1966, 559, 682, 18, 1289, 12, 777, 559, 11272, 202, 202, 1966, 559, 682, 18, 1289, 12, 1014, 559, 11272, 202, 202, 1966, 559, 682, 18, 1289, 12, 1476, 559, 11272, 202, 202, 430, 261, 11651, 2249, 18, 291, 17213, 7223, 12, 262, 262, 1082, 202, 1966, 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, 22855, 16156, 6323, 12, 16156, 18415, 1034, 16156, 18415, 13, 202, 95, 202, 202, 430, 12, 1034, 16156, 18415, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 19558, 29771, 682, 273, 394, 2407, 5621, 9506, 202, 4331, 559, 1014, 559, 225, 273, 394, 8408, 559, 12, 4331, 559, 18, 7775, 67, 2399, 16, 24209, 3773, 18, 588, 1420, 780, 2932, 2121, 2433, 18, 955, 18, 7032, 1810, 388, 7923, 1769, 202, 202, 4331, 559, 1476, 559, 273, 394, 8408, 559, 12, 4331, 559, 18, 12145, 67, 2399, 16, 24209, 3773, 18, 588, 1420, 780, 2932, 2121, 2433, 18, 955, 18, 1945, 723, 7923, 1769, 202, 202, 4331, 559, 2 ]
if (o == null) { throw Context.reportRuntimeError1( "msg.nonjava.method", functionName); }
public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { // Find a method that matches the types given. if (methods.length == 0) { throw new RuntimeException("No methods defined for call"); } int index = findFunction(methods, args); if (index < 0) { Class c = methods[0].method().getDeclaringClass(); String sig = c.getName() + '.' + functionName + '(' + scriptSignature(args) + ')'; throw Context.reportRuntimeError1("msg.java.no_such_method", sig); } MemberBox meth = methods[index]; Class[] argTypes = meth.argTypes; // First, we marshall the args. Object[] origArgs = args; for (int i = 0; i < args.length; i++) { Object arg = args[i]; Object coerced = NativeJavaObject.coerceType(argTypes[i], arg, true); if (coerced != arg) { if (origArgs == args) { args = (Object[])args.clone(); } args[i] = coerced; } } Object javaObject; if (meth.isStatic()) { javaObject = null; // don't need an object } else { Scriptable o = thisObj; while (!(o instanceof Wrapper)) { o = o.getPrototype(); if (o == null) { throw Context.reportRuntimeError1( "msg.nonjava.method", functionName); } } javaObject = ((Wrapper) o).unwrap(); } if (debug) { printDebug("Calling ", meth, args); } Object retval; try { retval = meth.invoke(javaObject, args); } catch (IllegalAccessException accessEx) { throw Context.reportRuntimeError( "While attempting to call \"" + meth.getName() + "\" in class \"" + meth.getDeclaringClass().getName() + "\" receieved " + accessEx.toString()); } catch (Exception ex) { throw ScriptRuntime.throwAsUncheckedException(ex); } Class staticType = meth.method().getReturnType(); if (debug) { Class actualType = (retval == null) ? null : retval.getClass(); System.err.println(" ----- Returned " + retval + " actual = " + actualType + " expect = " + staticType); } Object wrapped = cx.getWrapFactory().wrap(cx, scope, retval, staticType); if (debug) { Class actualType = (wrapped == null) ? null : wrapped.getClass(); System.err.println(" ----- Wrapped as " + wrapped + " class = " + actualType); } if (wrapped == Undefined.instance) return wrapped; if (wrapped == null && staticType == Void.TYPE) return Undefined.instance; return wrapped; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/a692d990fca03ffb695aa54333e0b0ad442a6fc0/NativeJavaMethod.java/clean/js/rhino/src/org/mozilla/javascript/NativeJavaMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 368, 4163, 279, 707, 716, 1885, 326, 1953, 864, 18, 3639, 309, 261, 5163, 18, 2469, 422, 374, 13, 288, 5411, 604, 394, 3235, 2932, 2279, 2590, 2553, 364, 745, 8863, 3639, 289, 3639, 509, 770, 273, 1104, 2083, 12, 5163, 16, 833, 1769, 3639, 309, 261, 1615, 411, 374, 13, 288, 5411, 1659, 276, 273, 2590, 63, 20, 8009, 2039, 7675, 588, 3456, 14682, 5621, 5411, 514, 3553, 273, 276, 18, 17994, 1435, 397, 2611, 397, 14117, 397, 7321, 397, 7682, 2728, 5374, 12, 1968, 13, 397, 5777, 31, 5411, 604, 1772, 18, 6006, 5576, 668, 21, 2932, 3576, 18, 6290, 18, 2135, 67, 87, 2648, 67, 2039, 3113, 3553, 1769, 3639, 289, 3639, 8596, 3514, 7917, 273, 2590, 63, 1615, 15533, 3639, 1659, 8526, 30973, 273, 7917, 18, 3175, 2016, 31, 3639, 368, 5783, 16, 732, 1833, 326, 833, 18, 3639, 1033, 8526, 1647, 2615, 273, 833, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 1033, 1501, 273, 833, 63, 77, 15533, 5411, 1033, 12270, 72, 273, 16717, 5852, 921, 18, 2894, 2765, 559, 12, 3175, 2016, 63, 77, 6487, 1501, 16, 4766, 7682, 638, 1769, 5411, 309, 261, 2894, 2765, 72, 480, 1501, 13, 288, 7734, 309, 261, 4949, 2615, 422, 833, 13, 288, 10792, 833, 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, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 368, 4163, 279, 707, 716, 1885, 326, 1953, 864, 18, 3639, 309, 261, 5163, 18, 2469, 422, 374, 13, 288, 5411, 604, 394, 3235, 2932, 2279, 2590, 2553, 364, 745, 8863, 3639, 289, 3639, 509, 770, 273, 1104, 2083, 12, 5163, 16, 833, 1769, 3639, 309, 261, 1615, 411, 374, 13, 288, 5411, 1659, 276, 273, 2590, 63, 20, 8009, 2039, 7675, 588, 3456, 14682, 5621, 5411, 514, 3553, 273, 276, 18, 17994, 1435, 397, 2611, 397, 14117, 397, 7321, 397, 7682, 2728, 5374, 12, 1968, 13, 397, 5777, 31, 5411, 604, 1772, 2 ]
public void setPlatformOptions(NewBugModel newBugModel) {
public void setPlatformOptions(NewBugzillaReport newBugModel) {
public void setPlatformOptions(NewBugModel newBugModel) { try { // A Map from Java's OS and Platform to Buzilla's Map<String, String> java2buzillaOSMap = new HashMap<String, String>(); Map<String, String> java2buzillaPlatformMap = new HashMap<String, String>(); java2buzillaPlatformMap.put("x86", "PC"); java2buzillaPlatformMap.put("x86_64", "PC"); java2buzillaPlatformMap.put("ia64", "PC"); java2buzillaPlatformMap.put("ia64_32", "PC"); java2buzillaPlatformMap.put("sparc", "Sun"); java2buzillaPlatformMap.put("ppc", "Power"); java2buzillaOSMap.put("aix", "AIX"); java2buzillaOSMap.put("hpux", "HP-UX"); java2buzillaOSMap.put("linux", "Linux"); java2buzillaOSMap.put("macosx", "MacOS X"); java2buzillaOSMap.put("qnx", "QNX-Photon"); java2buzillaOSMap.put("solaris", "Solaris"); java2buzillaOSMap.put("win32", "Windows All"); // Get OS Lookup Map // Check that the result is in Values, if it is not, set it to other Attribute opSysAttribute = newBugModel.getAttribute(BugReportElement.OP_SYS.toString()); Attribute platformAttribute = newBugModel.getAttribute(BugReportElement.REP_PLATFORM.toString()); String OS = Platform.getOS(); String platform = Platform.getOSArch(); String bugzillaOS = null; // Bugzilla String for OS String bugzillaPlatform = null; // Bugzilla String for Platform if (java2buzillaOSMap != null && java2buzillaOSMap.containsKey(OS) && opSysAttribute != null && opSysAttribute.getOptionValues() != null) { bugzillaOS = java2buzillaOSMap.get(OS); if (opSysAttribute != null && !opSysAttribute.getOptionValues().values().contains(bugzillaOS)) { // If the OS we found is not in the list of available // options, set bugzillaOS // to null, and just use "other" bugzillaOS = null; } } else { // If we have a strangeOS, then just set buzillaOS to null, and // use "other" bugzillaOS = null; } if (platform != null && java2buzillaPlatformMap.containsKey(platform)) { bugzillaPlatform = java2buzillaPlatformMap.get(platform); if (platformAttribute != null && !platformAttribute.getOptionValues().values().contains(bugzillaPlatform)) { // If the platform we found is not int the list of available // optinos, set the // Bugzilla Platform to null, and juse use "other" bugzillaPlatform = null; } } else { // If we have a strange platform, then just set bugzillaPatforrm // to null, and use "other" bugzillaPlatform = null; } // Set the OS and the Platform in the model if (bugzillaOS != null && opSysAttribute != null) opSysAttribute.setValue(bugzillaOS); if (bugzillaPlatform != null && platformAttribute != null) platformAttribute.setValue(bugzillaPlatform); } catch (Exception e) { MylarStatusHandler.fail(e, "could not set platform options", false); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/2e0d85c21fe52d1b2e012b87f56bf0d88ade7911/AbstractBugzillaWizardPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/AbstractBugzillaWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 8201, 1320, 12, 1908, 19865, 1488, 394, 19865, 1488, 13, 288, 202, 202, 698, 288, 1082, 202, 759, 432, 1635, 628, 5110, 1807, 5932, 471, 11810, 358, 605, 89, 15990, 1807, 1082, 202, 863, 32, 780, 16, 514, 34, 2252, 22, 70, 89, 15990, 4618, 863, 273, 394, 4317, 32, 780, 16, 514, 34, 5621, 1082, 202, 863, 32, 780, 16, 514, 34, 2252, 22, 70, 89, 15990, 8201, 863, 273, 394, 4317, 32, 780, 16, 514, 34, 5621, 1082, 202, 6290, 22, 70, 89, 15990, 8201, 863, 18, 458, 2932, 92, 5292, 3113, 315, 3513, 8863, 1082, 202, 6290, 22, 70, 89, 15990, 8201, 863, 18, 458, 2932, 92, 5292, 67, 1105, 3113, 315, 3513, 8863, 1082, 202, 6290, 22, 70, 89, 15990, 8201, 863, 18, 458, 2932, 1155, 1105, 3113, 315, 3513, 8863, 1082, 202, 6290, 22, 70, 89, 15990, 8201, 863, 18, 458, 2932, 1155, 1105, 67, 1578, 3113, 315, 3513, 8863, 1082, 202, 6290, 22, 70, 89, 15990, 8201, 863, 18, 458, 2932, 87, 1065, 71, 3113, 315, 29636, 8863, 1082, 202, 6290, 22, 70, 89, 15990, 8201, 863, 18, 458, 2932, 84, 2436, 3113, 315, 13788, 8863, 1082, 202, 6290, 22, 70, 89, 15990, 4618, 863, 18, 458, 2932, 69, 697, 3113, 315, 37, 12507, 8863, 1082, 202, 6290, 22, 70, 89, 15990, 4618, 863, 18, 458, 2932, 15373, 2616, 3113, 315, 2500, 17, 57, 60, 8863, 1082, 202, 6290, 22, 70, 89, 15990, 4618, 863, 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, 8201, 1320, 12, 1908, 19865, 1488, 394, 19865, 1488, 13, 288, 202, 202, 698, 288, 1082, 202, 759, 432, 1635, 628, 5110, 1807, 5932, 471, 11810, 358, 605, 89, 15990, 1807, 1082, 202, 863, 32, 780, 16, 514, 34, 2252, 22, 70, 89, 15990, 4618, 863, 273, 394, 4317, 32, 780, 16, 514, 34, 5621, 1082, 202, 863, 32, 780, 16, 514, 34, 2252, 22, 70, 89, 15990, 8201, 863, 273, 394, 4317, 32, 780, 16, 514, 34, 5621, 1082, 202, 6290, 22, 70, 89, 15990, 8201, 863, 18, 458, 2932, 92, 5292, 3113, 315, 3513, 8863, 1082, 202, 6290, 22, 70, 89, 15990, 8201, 863, 18, 458, 2932, 92, 5292, 67, 1105, 3113, 2 ]
|| (switchDock && dock == PositionConstants.WEST)) cursor = DragCursors.getCursor(DragCursors.RIGHT); else cursor = DragCursors.getCursor(DragCursors.LEFT);
|| (switchDock && dock == PositionConstants.WEST)) { if (DRAG_RIGHT == null) { ImageDescriptor src = ImageDescriptor.createFromFile( Internal.class, "icons/right_source.bmp"); ImageDescriptor mask = ImageDescriptor.createFromFile( Internal.class, "icons/right_mask.bmp"); DRAG_RIGHT = new Cursor(null, src.getImageData(), mask.getImageData(), 16, 16); } cursor = DRAG_RIGHT; } else { if (DRAG_LEFT == null) { ImageDescriptor src = ImageDescriptor.createFromFile( Internal.class, "icons/left_source.bmp"); ImageDescriptor mask = ImageDescriptor.createFromFile( Internal.class, "icons/left_mask.bmp"); DRAG_LEFT = new Cursor(null, src.getImageData(), mask.getImageData(), 16, 16); } cursor = DRAG_LEFT; }
public void run() { Control ctrl = Display.getCurrent().getCursorControl(); Point pt = new Point(evt.x, evt.y); switchDock = isDescendantOf(graphicalControl, ctrl) && ((dock == PositionConstants.WEST && pt.x > threshold - 10) || (dock == PositionConstants.EAST && pt.x < threshold + 10)); boolean invalid = false; if (!switchDock) invalid = !isDescendantOf(FlyoutPaletteComposite.this, ctrl); if (switchDock) { if (dock == PositionConstants.WEST) { threshold = Math.max(threshold, pt.x); threshold = Math.min(threshold, switchThreshold); } else { threshold = Math.min(threshold, pt.x); threshold = Math.max(threshold, switchThreshold); } } Rectangle placeHolder = origBounds; if (switchDock) { if (dock == PositionConstants.EAST) placeHolder = new Rectangle(0, 0, origBounds.width, origBounds.height); else placeHolder = new Rectangle(flyout.getBounds().width - origBounds.width, 0, origBounds.width, origBounds.height); Point converted = flyout.toDisplay( placeHolder.x, placeHolder.y); placeHolder.x = converted.x; placeHolder.y = converted.y; } // update the cursor Cursor cursor; if (invalid) cursor = DragCursors.getCursor(DragCursors.INVALID); else if ((!switchDock && dock == PositionConstants.EAST) || (switchDock && dock == PositionConstants.WEST)) cursor = DragCursors.getCursor(DragCursors.RIGHT); else cursor = DragCursors.getCursor(DragCursors.LEFT); tracker.setCursor(cursor); // update the rectangle only if it has changed if (!tracker.getRectangles()[0].equals(placeHolder)) tracker.setRectangles(new Rectangle[] {placeHolder}); }
11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/46e6ada03be6f287afbfde79e25bc9d9f3fd9c6d/FlyoutPaletteComposite.java/buggy/org.eclipse.gef/src/org/eclipse/gef/ui/palette/FlyoutPaletteComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 1086, 1435, 288, 25083, 202, 3367, 6414, 273, 9311, 18, 588, 3935, 7675, 588, 6688, 3367, 5621, 25083, 202, 2148, 5818, 273, 394, 4686, 12, 73, 11734, 18, 92, 16, 6324, 18, 93, 1769, 25083, 202, 9610, 40, 975, 273, 353, 29014, 951, 12, 4660, 1706, 3367, 16, 6414, 13, 20982, 202, 10, 10, 14015, 72, 975, 422, 11010, 2918, 18, 31285, 597, 5818, 18, 92, 405, 5573, 300, 1728, 13, 6862, 9506, 202, 20081, 261, 72, 975, 422, 11010, 2918, 18, 41, 9053, 597, 5818, 18, 92, 411, 5573, 397, 1728, 10019, 25083, 202, 6494, 2057, 273, 629, 31, 25083, 202, 430, 16051, 9610, 40, 975, 13, 6862, 1082, 202, 5387, 273, 401, 291, 29014, 951, 12, 42, 715, 659, 25863, 9400, 18, 2211, 16, 6414, 1769, 25083, 202, 430, 261, 9610, 40, 975, 13, 288, 6862, 1082, 202, 430, 261, 72, 975, 422, 11010, 2918, 18, 31285, 13, 288, 6862, 9506, 202, 8699, 273, 2361, 18, 1896, 12, 8699, 16, 5818, 18, 92, 1769, 6862, 9506, 202, 8699, 273, 2361, 18, 1154, 12, 8699, 16, 1620, 7614, 1769, 6862, 1082, 202, 97, 469, 288, 6862, 9506, 202, 8699, 273, 2361, 18, 1154, 12, 8699, 16, 5818, 18, 92, 1769, 6862, 9506, 202, 8699, 273, 2361, 18, 1896, 12, 8699, 16, 1620, 7614, 1769, 6862, 1082, 202, 97, 25083, 202, 97, 25083, 202, 19463, 3166, 6064, 273, 1647, 5694, 31, 25083, 202, 430, 261, 9610, 40, 975, 13, 288, 6862, 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, 4405, 202, 482, 918, 1086, 1435, 288, 25083, 202, 3367, 6414, 273, 9311, 18, 588, 3935, 7675, 588, 6688, 3367, 5621, 25083, 202, 2148, 5818, 273, 394, 4686, 12, 73, 11734, 18, 92, 16, 6324, 18, 93, 1769, 25083, 202, 9610, 40, 975, 273, 353, 29014, 951, 12, 4660, 1706, 3367, 16, 6414, 13, 20982, 202, 10, 10, 14015, 72, 975, 422, 11010, 2918, 18, 31285, 597, 5818, 18, 92, 405, 5573, 300, 1728, 13, 6862, 9506, 202, 20081, 261, 72, 975, 422, 11010, 2918, 18, 41, 9053, 597, 5818, 18, 92, 411, 5573, 397, 1728, 10019, 25083, 202, 6494, 2057, 273, 629, 31, 25083, 202, 430, 16051, 9610, 40, 975, 13, 6862, 1082, 202, 5387, 273, 401, 291, 2 ]
public void endEntity (String name) throws SAXException
public void endEntity(String name) throws SAXException
public void endEntity (String name) throws SAXException { synchronized (getSynchObject()) { m_sourceTreeHandler.endEntity(name); } notifyWaiters(); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/0e2298c0c460e281c6e54e92ac95421ec5eca2e4/SourceTreeHandler.java/buggy/src/org/apache/xalan/stree/SourceTreeHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 679, 1943, 261, 780, 508, 13, 565, 1216, 14366, 225, 288, 565, 3852, 261, 588, 55, 2515, 921, 10756, 565, 288, 1377, 312, 67, 3168, 2471, 1503, 18, 409, 1943, 12, 529, 1769, 565, 289, 565, 5066, 5480, 414, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 679, 1943, 261, 780, 508, 13, 565, 1216, 14366, 225, 288, 565, 3852, 261, 588, 55, 2515, 921, 10756, 565, 288, 1377, 312, 67, 3168, 2471, 1503, 18, 409, 1943, 12, 529, 1769, 565, 289, 565, 5066, 5480, 414, 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 ]
for (int i = 0; i < num; i+=(int)(num/numThreads)) {
for (int i = 0; i < numMol; i+=(int)(numMol/numThreads)) {
public void run() { int j = 0; interfThread t[] = new interfThread[numThreads+1]; for (int i = 0; i < num; i+=(int)(num/numThreads)) { t[j] = new interfThread(en, first+i, ((i+numThreads)<num)? (first+i+numThreads):(first+num), 0); t[j++].start(); } for (int i = 0; i < j; i++) { try { t[i].join(); } catch (java.lang.InterruptedException e) { System.err.print("InterruptedException in interfOuterSplit\n"); } } }
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/5f9901d307cd9fbf78210e0cbb4de7735c4d53f1/water.groups.par.java/clean/Water/Water_RTJ/groups/water.groups.par.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 225, 509, 525, 273, 374, 31, 202, 225, 1554, 74, 3830, 268, 8526, 273, 394, 1554, 74, 3830, 63, 2107, 13233, 15, 21, 15533, 202, 225, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 31, 277, 15, 28657, 474, 21433, 2107, 19, 2107, 13233, 3719, 288, 202, 565, 268, 63, 78, 65, 273, 394, 1554, 74, 3830, 12, 275, 16, 1122, 15, 77, 16, 6862, 565, 14015, 77, 15, 2107, 13233, 13, 32, 2107, 9945, 6862, 565, 261, 3645, 15, 77, 15, 2107, 13233, 4672, 12, 3645, 15, 2107, 3631, 6862, 565, 374, 1769, 202, 565, 268, 63, 78, 9904, 8009, 1937, 5621, 202, 225, 289, 202, 225, 364, 261, 474, 277, 273, 374, 31, 277, 411, 525, 31, 277, 27245, 288, 202, 565, 775, 288, 202, 1377, 268, 63, 77, 8009, 5701, 5621, 202, 565, 289, 1044, 261, 6290, 18, 4936, 18, 24485, 503, 425, 13, 288, 202, 1377, 2332, 18, 370, 18, 1188, 2932, 24485, 503, 316, 1554, 74, 15040, 5521, 64, 82, 8863, 202, 565, 289, 202, 225, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 225, 509, 525, 273, 374, 31, 202, 225, 1554, 74, 3830, 268, 8526, 273, 394, 1554, 74, 3830, 63, 2107, 13233, 15, 21, 15533, 202, 225, 364, 261, 474, 277, 273, 374, 31, 277, 411, 818, 31, 277, 15, 28657, 474, 21433, 2107, 19, 2107, 13233, 3719, 288, 202, 565, 268, 63, 78, 65, 273, 394, 1554, 74, 3830, 12, 275, 16, 1122, 15, 77, 16, 6862, 565, 14015, 77, 15, 2107, 13233, 13, 32, 2107, 9945, 6862, 565, 261, 3645, 15, 77, 15, 2107, 13233, 4672, 12, 3645, 15, 2107, 3631, 6862, 565, 374, 1769, 202, 565, 268, 63, 78, 9904, 8009, 1937, 5621, 202, 225, 289, 202, 225, 364, 2 ]
border.paintBorder(c, g, borderRect.x, borderRect.y, borderRect.width, borderRect.height);
b.paintBorder(c, g, borderRect.x, borderRect.y, borderRect.width, borderRect.height);
private void paintBorderWithTitle(Component c, Graphics g, int x, int y, int width, int height, Rectangle borderRect, Point textLoc, FontMetrics fm) { int fontDescent = fm.getDescent(); int fontAscent = fm.getAscent(); int titleWidth = fm.stringWidth(getTitle()); if (border != null) { // Paint border in segments, when the title is painted above the // border. if (((titlePosition == TOP || titlePosition == DEFAULT_POSITION) && (borderRect.y > textLoc.y - fontAscent)) || (titlePosition == BOTTOM && borderRect.y + borderRect.height < textLoc.y + fontDescent)) { Rectangle clip = new Rectangle(); Rectangle saved = g.getClipBounds(); // Paint border left from the text. clip.setBounds(saved); SwingUtilities.computeIntersection(x, y, textLoc.x - x - 1, height, clip); if (! clip.isEmpty()) { g.setClip(clip); border.paintBorder(c, g, borderRect.x, borderRect.y, borderRect.width, borderRect.height); } // Paint border right from the text. clip.setBounds(saved); SwingUtilities.computeIntersection(textLoc.x + titleWidth + 1, y, x + width - (textLoc.x + titleWidth +1), height, clip); if (! clip.isEmpty()) { g.setClip(clip); border.paintBorder(c, g, borderRect.x, borderRect.y, borderRect.width, borderRect.height); } if (titlePosition == TOP || titlePosition == DEFAULT_POSITION) { // Paint border below the text. clip.setBounds(saved); SwingUtilities.computeIntersection(textLoc.x - 1, textLoc.y + fontDescent, titleWidth + 2, y + height - textLoc.y - fontDescent, clip); if (! clip.isEmpty()) { g.setClip(clip); border.paintBorder(c, g, borderRect.x, borderRect.y, borderRect.width, borderRect.height); } } else { // Paint border above the text. clip.setBounds(saved); SwingUtilities.computeIntersection(textLoc.x - 1, y, titleWidth + 2, textLoc.y - fontDescent -y, clip); if (! clip.isEmpty()) { g.setClip(clip); border.paintBorder(c, g, borderRect.x, borderRect.y, borderRect.width, borderRect.height); } } g.setClip(saved); } else { border.paintBorder(c, g, borderRect.x, borderRect.y, borderRect.width, borderRect.height); } } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/f50a8cdcc05a92b96d752ff3f1411ac7a7bae37d/TitledBorder.java/clean/javax/swing/border/TitledBorder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 12574, 8107, 1190, 4247, 12, 1841, 276, 16, 16830, 314, 16, 509, 619, 16, 509, 677, 16, 4766, 565, 509, 1835, 16, 509, 2072, 16, 4766, 565, 13264, 5795, 6120, 16, 4686, 977, 1333, 16, 4766, 565, 10063, 5653, 10940, 13, 225, 288, 565, 509, 3512, 4217, 319, 273, 10940, 18, 588, 4217, 319, 5621, 565, 509, 3512, 13665, 319, 273, 10940, 18, 588, 13665, 319, 5621, 565, 509, 2077, 2384, 273, 10940, 18, 1080, 2384, 12, 588, 4247, 10663, 565, 309, 261, 8815, 480, 446, 13, 202, 1377, 288, 202, 3639, 368, 30001, 5795, 316, 5155, 16, 1347, 326, 2077, 353, 12574, 329, 5721, 326, 202, 3639, 368, 5795, 18, 202, 3639, 309, 261, 12443, 2649, 2555, 422, 18680, 747, 2077, 2555, 422, 3331, 67, 15258, 13, 202, 2398, 597, 261, 8815, 6120, 18, 93, 405, 977, 1333, 18, 93, 300, 3512, 13665, 319, 3719, 202, 5411, 747, 261, 2649, 2555, 422, 30666, 202, 7734, 597, 5795, 6120, 18, 93, 397, 5795, 6120, 18, 4210, 411, 977, 1333, 18, 93, 397, 3512, 4217, 319, 3719, 202, 1850, 288, 202, 5411, 13264, 6807, 273, 394, 13264, 5621, 202, 5411, 13264, 5198, 273, 314, 18, 588, 15339, 5694, 5621, 202, 5411, 368, 30001, 5795, 2002, 628, 326, 977, 18, 202, 5411, 6807, 18, 542, 5694, 12, 14077, 1769, 202, 5411, 26145, 11864, 18, 9200, 23634, 12, 92, 16, 677, 16, 977, 1333, 18, 92, 300, 619, 300, 404, 16, 202, 4766, 9079, 2072, 16, 6807, 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, 3238, 918, 12574, 8107, 1190, 4247, 12, 1841, 276, 16, 16830, 314, 16, 509, 619, 16, 509, 677, 16, 4766, 565, 509, 1835, 16, 509, 2072, 16, 4766, 565, 13264, 5795, 6120, 16, 4686, 977, 1333, 16, 4766, 565, 10063, 5653, 10940, 13, 225, 288, 565, 509, 3512, 4217, 319, 273, 10940, 18, 588, 4217, 319, 5621, 565, 509, 3512, 13665, 319, 273, 10940, 18, 588, 13665, 319, 5621, 565, 509, 2077, 2384, 273, 10940, 18, 1080, 2384, 12, 588, 4247, 10663, 565, 309, 261, 8815, 480, 446, 13, 202, 1377, 288, 202, 3639, 368, 30001, 5795, 316, 5155, 16, 1347, 326, 2077, 353, 12574, 329, 5721, 326, 202, 3639, 368, 5795, 18, 202, 3639, 309, 261, 12443, 2 ]
table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0));
table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0));
public void createRepositorySchema(IProgressMonitor monitor, boolean upgrade) throws KettleDatabaseException { Row table; String sql; String tablename; String indexname; String keyfield[]; String user[], pass[], code[], desc[], prof[]; int KEY = 9; // integer, no need for bigint! log.logBasic(toString(), "Starting to create or modify the repository tables..."); if (monitor!=null) monitor.beginTask((upgrade?"Upgrading ":"Creating")+" the Kettle repository...", 31); setAutoCommit(true); ////////////////////////////////////////////////////////////////////////////////// // R_DATABASE_TYPE // // Create table... // boolean ok_database_type = true; table = new Row(); tablename = "R_DATABASE_TYPE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DATABASE_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DATABASE_TYPE", false); if (sql != null && sql.length() > 0) { try { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created/altered table " + tablename); } catch (KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to create or modify table " + tablename, dbe); } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_database_type) { // // Populate... // code = DatabaseMeta.getDBTypeDescList(); desc = DatabaseMeta.getDBTypeDescLongList(); database.prepareInsert(table, tablename); for (int i = 1; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_DATABASE_TYPE FROM " + tablename + " WHERE CODE = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextDatabaseTypeID(); table = new Row(); table.addValue(new Value("ID_DATABASE_TYPE", nextid)); table.addValue(new Value("CODE", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch (KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DATABASE_CONTYPE // // Create table... // boolean ok_database_contype = true; table = new Row(); tablename = "R_DATABASE_CONTYPE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DATABASE_CONTYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DATABASE_CONTYPE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_database_contype) { // // Populate with data... // code = DatabaseMeta.access_type_desc; desc = DatabaseMeta.db_access_desc_long; database.prepareInsert(table, tablename); for (int i = 0; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_DATABASE_CONTYPE FROM " + tablename + " WHERE CODE = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextDatabaseConnectionTypeID(); table = new Row(); table.addValue(new Value("ID_DATABASE_CONTYPE", nextid)); table.addValue(new Value("CODE", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_NOTE // // Create table... table = new Row(); tablename = "R_NOTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_NOTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("GUI_LOCATION_X", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_Y", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_WIDTH", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_HEIGHT", Value.VALUE_TYPE_INTEGER, 6, 0)); sql = database.getDDL(tablename, table, null, false, "ID_NOTE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DATABASE // // Create table... table = new Row(); tablename = "R_DATABASE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DATABASE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_DATABASE_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE_CONTYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("HOST_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DATABASE_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("PORT", Value.VALUE_TYPE_INTEGER, 7, 0)); table.addValue(new Value("USERNAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("PASSWORD", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("SERVERNAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DATA_TBS", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("INDEX_TBS", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DATABASE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DATABASE_ATTRIBUTE // // Create table... table = new Row(); tablename = "R_DATABASE_ATTRIBUTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DATABASE_ATTRIBUTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DATABASE_ATTRIBUTE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_AK"; keyfield = new String[] { "ID_DIRECTORY_PARENT", "DIRECTORY_NAME" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DIRECTORY // // Create table... table = new Row(); tablename = "R_DIRECTORY"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DIRECTORY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DIRECTORY_PARENT", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("DIRECTORY_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DIRECTORY", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_AK"; keyfield = new String[] { "ID_DIRECTORY_PARENT", "DIRECTORY_NAME" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_TRANSFORMATION // // Create table... table = new Row(); tablename = "R_TRANSFORMATION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DIRECTORY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_STEP_READ", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_WRITE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_INPUT", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_OUTPUT", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_UPDATE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE_LOG", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME_LOG", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("USE_BATCHID", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("USE_LOGFIELD", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("ID_DATABASE_MAXDATE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME_MAXDATE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("FIELD_NAME_MAXDATE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("OFFSET_MAXDATE", Value.VALUE_TYPE_NUMBER, 12, 2)); table.addValue(new Value("DIFF_MAXDATE", Value.VALUE_TYPE_NUMBER, 12, 2)); table.addValue(new Value("MODIFIED_USER", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("MODIFIED_DATE", Value.VALUE_TYPE_DATE, 20, 0)); table.addValue(new Value("SIZE_ROWSET", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, "ID_TRANSFORMATION", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } // In case of an update, the added column R_TRANSFORMATION.ID_DIRECTORY == NULL!!! database.execStatement("UPDATE " + tablename + " SET ID_DIRECTORY=0 WHERE ID_DIRECTORY IS NULL"); if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_TRANS_ATTRIBUTE // // Create table... table = new Row(); tablename = "R_TRANS_ATTRIBUTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANS_ATTRIBUTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NR", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("VALUE_NUM", Value.VALUE_TYPE_NUMBER, 13, 2)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_TRANS_ATTRIBUTE", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_TRANS_ATTRIBUTE_LOOKUP"; keyfield = new String[] { "ID_TRANSFORMATION", "CODE", "NR" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_DEPENDENCY // // Create table... table = new Row(); tablename = "R_DEPENDENCY"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_DEPENDENCY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("FIELD_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_DEPENDENCY", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); // // R_TRANS_HOP // // Create table... table = new Row(); tablename = "R_TRANS_HOP"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANS_HOP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_FROM", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP_TO", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ENABLED", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_TRANS_HOP", false); if (sql != null && sql.length() > 0) { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); /////////////////////////////////////////////////////////////////////////////// // R_TRANS_STEP_CONDITION // table = new Row(); tablename = "R_TRANS_STEP_CONDITION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_CONDITION", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exists: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); /////////////////////////////////////////////////////////////////////////////// // R_CONDITION // table = new Row(); tablename = "R_CONDITION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_CONDITION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_CONDITION_PARENT", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NEGATED", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("OPERATOR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("LEFT_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("CONDITION_FUNCTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("RIGHT_NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_VALUE_RIGHT", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_CONDITION", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); /////////////////////////////////////////////////////////////////////////////// // R_VALUE // tablename = "R_VALUE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_VALUE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("VALUE_TYPE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("IS_NULL", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_VALUE", false); if (sql != null && sql.length() > 0) // Doesn't exists: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_STEP_TYPE // // Create table... boolean ok_step_type = true; table = new Row(); tablename = "R_STEP_TYPE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_STEP_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("HELPTEXT", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_STEP_TYPE", false); if (sql != null && sql.length() > 0) // Doesn't exists: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_step_type) { updateStepTypes(); log.logDetailed(toString(), "Populated table " + tablename); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_STEP // // Create table table = new Row(); tablename = "R_STEP"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_STEP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_STEP_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("DISTRIBUTE", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("COPIES", Value.VALUE_TYPE_INTEGER, 3, 0)); table.addValue(new Value("GUI_LOCATION_X", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_Y", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_DRAW", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_STEP", false); if (sql != null && sql.length() > 0) // Doesn't exists: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_STEP_ATTRIBUTE // // Create table... tablename = "R_STEP_ATTRIBUTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_STEP_ATTRIBUTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NR", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("VALUE_NUM", Value.VALUE_TYPE_NUMBER, 13, 2)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_STEP_ATTRIBUTE", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_LOOKUP"; keyfield = new String[] { "ID_STEP", "CODE", "NR" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_STEP_DATABASE // // Keeps the links between transformation steps and databases. // That way investigating dependencies becomes easier to program. // // Create table... tablename = "R_STEP_DATABASE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_STEP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DATABASE", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_LU1"; keyfield = new String[] { "ID_TRANSFORMATION" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, false, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } try { indexname = "IDX_" + tablename.substring(2) + "_LU2"; keyfield = new String[] { "ID_DATABASE" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, false, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_TRANS_NOTE // // Create table... table = new Row(); tablename = "R_TRANS_NOTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_TRANSFORMATION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_NOTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_LOGLEVEL // // Create table... boolean ok_loglevel = true; tablename = "R_LOGLEVEL"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_LOGLEVEL", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_LOGLEVEL", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_loglevel) { // // Populate with data... // code = LogWriter.logLevelDescription; desc = LogWriter.log_level_desc_long; database.prepareInsert(table, tablename); for (int i = 1; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_LOGLEVEL FROM " + tablename + " WHERE CODE = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextLoglevelID(); table = new Row(); table.addValue(new Value("ID_LOGLEVEL", nextid)); table.addValue(new Value("CODE", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_LOG // // Create table... table = new Row(); tablename = "R_LOG"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_LOG", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_LOGLEVEL", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("LOGTYPE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("FILENAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("FILEEXTENTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ADD_DATE", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("ADD_TIME", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("ID_DATABASE_LOG", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME_LOG", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_LOG", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOB // // Create table... table = new Row(); tablename = "R_JOB"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_DIRECTORY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ID_DATABASE_LOG", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("TABLE_NAME_LOG", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("MODIFIED_USER", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("MODIFIED_DATE", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOB", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOBENTRY_TYPE // // Create table... boolean ok_jobentry_type = true; table = new Row(); tablename = "R_JOBENTRY_TYPE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOBENTRY_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOBENTRY_TYPE", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_jobentry_type) { // // Populate with data... // updateJobEntryTypes(); log.logDetailed(toString(), "Populated table " + tablename); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOBENTRY // // Create table... table = new Row(); tablename = "R_JOBENTRY"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOBENTRY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOBENTRY", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOBENTRY_COPY // // Create table... table = new Row(); tablename = "R_JOBENTRY_COPY"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOBENTRY_COPY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY_TYPE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NR", Value.VALUE_TYPE_INTEGER, 4, 0)); table.addValue(new Value("GUI_LOCATION_X", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_LOCATION_Y", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("GUI_DRAW", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("PARALLEL", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOBENTRY_COPY", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOBENTRY_ATTRIBUTE // // Create table... table = new Row(); tablename = "R_JOBENTRY_ATTRIBUTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOBENTRY_ATTRIBUTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NR", Value.VALUE_TYPE_INTEGER, 6, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("VALUE_NUM", Value.VALUE_TYPE_NUMBER, 13, 2)); table.addValue(new Value("VALUE_STR", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOBENTRY_ATTRIBUTE", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_LOOKUP"; keyfield = new String[] { "ID_JOBENTRY_ATTRIBUTE", "CODE", "NR" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOB_HOP // // Create table... table = new Row(); tablename = "R_JOB_HOP"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOB_HOP", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY_COPY_FROM", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_JOBENTRY_COPY_TO", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ENABLED", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("EVALUATION", Value.VALUE_TYPE_BOOLEAN, 1, 0)); table.addValue(new Value("UNCONDITIONAL", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_JOB_HOP", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_JOB_NOTE // // Create table... table = new Row(); tablename = "R_JOB_NOTE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_JOB", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_NOTE", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (monitor!=null) monitor.worked(1); /////////////////////////////////////////////////////////////////////////////////// // // User tables... // /////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////// // // R_PROFILE // // Create table... Map profiles = new Hashtable(); boolean ok_profile = true; tablename = "R_PROFILE"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table = new Row(); table.addValue(new Value("ID_PROFILE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_PROFILE", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_profile) { // // Populate with data... // code = new String[] { "Administrator", "User", "Read-only" }; desc = new String[] { "Administrator profile, manage users", "Normal user, all tools", "Read-only users" }; database.prepareInsert(table, tablename); for (int i = 0; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_PROFILE FROM " + tablename + " WHERE NAME = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextProfileID(); table = new Row(); table.addValue(new Value("ID_PROFILE", nextid)); table.addValue(new Value("NAME", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); log.logDetailed(toString(), "Inserted new row into table "+tablename+" : "+table); profiles.put(code[i], new Long(nextid)); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_USER // // Create table... Map users = new Hashtable(); boolean ok_user = true; table = new Row(); tablename = "R_USER"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_USER", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_PROFILE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("LOGIN", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("PASSWORD", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("NAME", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); table.addValue(new Value("ENABLED", Value.VALUE_TYPE_BOOLEAN, 1, 0)); sql = database.getDDL(tablename, table, null, false, "ID_USER", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_user) { // // Populate with data... // user = new String[] { "admin", "guest" }; pass = new String[] { "admin", "guest" }; code = new String[] { "Administrator", "Guest account" }; desc = new String[] { "User manager", "Read-only guest account" }; prof = new String[] { "Administrator", "Read-only" }; database.prepareInsert(table, tablename); for (int i = 0; i < user.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_USER FROM " + tablename + " WHERE LOGIN = '" + user[i] + "'"); if (lookup == null) { long nextid = getNextUserID(); String password = Encr.encryptPassword(pass[i]); Long profileID = (Long)profiles.get( prof[i] ); long id_profile = -1L; if (profileID!=null) id_profile = profileID.longValue(); table = new Row(); table.addValue(new Value("ID_USER", nextid)); table.addValue(new Value("ID_PROFILE", id_profile)); table.addValue(new Value("LOGIN", user[i])); table.addValue(new Value("PASSWORD", password)); table.addValue(new Value("NAME", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); table.addValue(new Value("ENABLED", true)); database.setValuesInsert(table); database.insertRow(); users.put(user[i], new Long(nextid)); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_PERMISSION // // Create table... Map permissions = new Hashtable(); boolean ok_permission = true; table = new Row(); tablename = "R_PERMISSION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_PERMISSION", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("CODE", Value.VALUE_TYPE_STRING, REP_STRING_CODE_LENGTH, 0)); table.addValue(new Value("DESCRIPTION", Value.VALUE_TYPE_STRING, REP_STRING_LENGTH, 0)); sql = database.getDDL(tablename, table, null, false, "ID_PERMISSION", false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_permission) { // // Populate with data... // code = PermissionMeta.permission_type_desc; desc = PermissionMeta.permissionTypeLongDesc; database.prepareInsert(table, tablename); for (int i = 1; i < code.length; i++) { Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_PERMISSION FROM " + tablename + " WHERE CODE = '" + code[i] + "'"); if (lookup == null) { long nextid = getNextPermissionID(); table = new Row(); table.addValue(new Value("ID_PERMISSION", nextid)); table.addValue(new Value("CODE", code[i])); table.addValue(new Value("DESCRIPTION", desc[i])); database.setValuesInsert(table); database.insertRow(); log.logDetailed(toString(), "Inserted new row into table "+tablename+" : "+table); permissions.put(code[i], new Long(nextid)); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); ////////////////////////////////////////////////////////////////////////////////// // // R_PROFILE_PERMISSION // // Create table... boolean ok_profile_permission = true; table = new Row(); tablename = "R_PROFILE_PERMISSION"; if (monitor!=null) monitor.subTask("Checking table "+tablename); table.addValue(new Value("ID_PROFILE", Value.VALUE_TYPE_INTEGER, KEY, 0)); table.addValue(new Value("ID_PERMISSION", Value.VALUE_TYPE_INTEGER, KEY, 0)); sql = database.getDDL(tablename, table, null, false, null, false); if (sql != null && sql.length() > 0) // Doesn't exist: create the table... { log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created or altered table " + tablename); try { indexname = "IDX_" + tablename.substring(2) + "_PK"; keyfield = new String[] { "ID_PROFILE", "ID_PERMISSION" }; if (!database.checkIndexExists(tablename, keyfield)) { sql = database.getCreateIndexStatement(tablename, indexname, keyfield, false, true, false, false); log.logDetailed(toString(), "executing SQL statements: "+Const.CR+sql); database.execStatements(sql); log.logDetailed(toString(), "Created lookup index " + indexname + " on " + tablename); } } catch(KettleDatabaseException kdbe) { // Ignore this one: index is not properly detected, it already exists... } } else { log.logDetailed(toString(), "Table " + tablename + " is OK."); } if (ok_profile_permission) { database.prepareInsert(table, tablename); // Administrator default: Long profileID = (Long)profiles.get( "Administrator"); long id_profile = -1L; if (profileID!=null) id_profile = profileID.longValue(); log.logDetailed(toString(), "Administrator profile id = "+id_profile); String perms[] = new String[] { PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_ADMIN], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_TRANSFORMATION], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_JOB], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_SCHEMA] }; for (int i=0;i < perms.length ; i++) { Long permissionID = (Long) permissions.get(perms[i]); long id_permission = -1L; if (permissionID!=null) id_permission = permissionID.longValue(); log.logDetailed(toString(), "Permission id for '"+perms[i]+"' = "+id_permission); Row lookup = null; if (upgrade) { String lookupSQL = "SELECT ID_PROFILE FROM " + tablename + " WHERE ID_PROFILE=" + id_profile + " AND ID_PERMISSION=" + id_permission; log.logDetailed(toString(), "Executing SQL: "+lookupSQL); lookup = database.getOneRow(lookupSQL); } if (lookup == null) // if the combination is not yet there, insert... { String insertSQL="INSERT INTO "+tablename+"(ID_PROFILE, ID_PERMISSION) VALUES("+id_profile+","+id_permission+")"; database.execStatement(insertSQL); log.logDetailed(toString(), "insertSQL = ["+insertSQL+"]"); } else { log.logDetailed(toString(), "Found id_profile="+id_profile+", id_permission="+id_permission); } } // User profile profileID = (Long)profiles.get( "User" ); id_profile = -1L; if (profileID!=null) id_profile = profileID.longValue(); log.logDetailed(toString(), "User profile id = "+id_profile); perms = new String[] { PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_TRANSFORMATION], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_JOB], PermissionMeta.permission_type_desc[PermissionMeta.TYPE_PERMISSION_SCHEMA] }; for (int i = 0; i < perms.length; i++) { Long permissionID = (Long) permissions.get(perms[i]); long id_permission = -1L; if (permissionID!=null) id_permission = permissionID.longValue(); Row lookup = null; if (upgrade) lookup = database.getOneRow("SELECT ID_PROFILE FROM " + tablename + " WHERE ID_PROFILE=" + id_profile + " AND ID_PERMISSION=" + id_permission); if (lookup == null) // if the combination is not yet there, insert... { table = new Row(); table.addValue(new Value("ID_PROFILE", id_profile)); table.addValue(new Value("ID_PERMISSION", id_permission)); database.setValuesInsert(table); database.insertRow(); } } try { database.closeInsert(); log.logDetailed(toString(), "Populated table " + tablename); } catch(KettleDatabaseException dbe) { throw new KettleDatabaseException("Unable to close insert after populating table " + tablename, dbe); } } if (monitor!=null) monitor.worked(1); if (monitor!=null) monitor.done(); log.logBasic(toString(), (upgrade?"Upgraded":"Created")+ " "+repositoryTableNames.length+" repository tables."); }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/0415ef10e1a156b9e8d491a3c6739c4c22d1f882/Repository.java/clean/src/be/ibridge/kettle/repository/Repository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3305, 3078, 12, 45, 5491, 7187, 6438, 16, 1250, 8400, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 1999, 1014, 31, 202, 202, 780, 1847, 31, 202, 202, 780, 19096, 31, 202, 202, 780, 770, 529, 31, 202, 202, 780, 498, 1518, 8526, 31, 202, 202, 780, 729, 63, 6487, 1342, 63, 6487, 981, 63, 6487, 3044, 63, 6487, 9214, 8526, 31, 202, 202, 474, 5311, 273, 2468, 31, 368, 3571, 16, 1158, 1608, 364, 5446, 474, 5, 202, 202, 1330, 18, 1330, 8252, 12, 10492, 9334, 315, 11715, 358, 752, 578, 5612, 326, 3352, 4606, 7070, 1769, 202, 202, 430, 261, 10259, 5, 33, 2011, 13, 6438, 18, 10086, 2174, 12443, 15097, 7225, 1211, 15210, 6153, 11092, 7923, 9078, 326, 1475, 278, 5929, 3352, 7070, 16, 8231, 1769, 7734, 21780, 5580, 12, 3767, 1769, 9506, 202, 14300, 3517, 759, 202, 202, 759, 534, 67, 22366, 67, 2399, 202, 202, 759, 202, 202, 759, 1788, 1014, 2777, 202, 202, 759, 202, 202, 6494, 1529, 67, 6231, 67, 723, 273, 638, 31, 202, 202, 2121, 273, 394, 6556, 5621, 202, 202, 7032, 14724, 273, 315, 54, 67, 22366, 67, 2399, 14432, 202, 202, 430, 261, 10259, 5, 33, 2011, 13, 6438, 18, 1717, 2174, 2932, 14294, 1014, 13773, 7032, 14724, 1769, 202, 202, 2121, 18, 1289, 620, 12, 2704, 1445, 2932, 734, 67, 22366, 67, 2399, 3113, 1445, 18, 4051, 67, 2399, 67, 14217, 16, 5311, 16, 374, 10019, 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, 918, 752, 3305, 3078, 12, 45, 5491, 7187, 6438, 16, 1250, 8400, 13, 1216, 1475, 278, 5929, 4254, 503, 202, 95, 202, 202, 1999, 1014, 31, 202, 202, 780, 1847, 31, 202, 202, 780, 19096, 31, 202, 202, 780, 770, 529, 31, 202, 202, 780, 498, 1518, 8526, 31, 202, 202, 780, 729, 63, 6487, 1342, 63, 6487, 981, 63, 6487, 3044, 63, 6487, 9214, 8526, 31, 202, 202, 474, 5311, 273, 2468, 31, 368, 3571, 16, 1158, 1608, 364, 5446, 474, 5, 202, 202, 1330, 18, 1330, 8252, 12, 10492, 9334, 315, 11715, 358, 752, 578, 5612, 326, 3352, 4606, 7070, 1769, 202, 202, 430, 261, 10259, 5, 33, 2011, 13, 6438, 18, 10086, 2174, 2 ]
if ( mouseButton == MouseEvent.BUTTON1 ) {
maybeShowPopup(e); if ( oldFeatureView != null ){ oldFeatureView.setSelected(false); }
public void mouseReleased(MouseEvent e) { //System.out.println("mouse Released" + e.getX()+" " + e.getY() + " button " + e.getButton()); moved = false; int mouseButton = e.getButton(); if ( mouseButton == MouseEvent.BUTTON1 ) { //FeatureView fv = parent.getParentFeatureView(e) ; FeatureView fv = selectedFeatureView; if ( fv != null ){ fv.setSelected(false); selectedFeatureView = null; //Component c = e.getComponent(); parent.repaint(); if (! isDragging) { return; } // System.out.println("isdragging: " + isDragging); isDragging = false; testMoveFV(e,fv); maybeShowPopup(e); } else { System.err.println("no parent found!"); } } else { // open a popupMenu... //System.out.println("button 3 pressed"); maybeShowPopup(e); } }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/2b252498a4b72e45ada0744de4431ff86c8878b0/LabelPanelListener.java/buggy/src/org/biojava/spice/Panel/seqfeat/LabelPanelListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 7644, 26363, 12, 9186, 1133, 425, 13, 288, 3639, 368, 3163, 18, 659, 18, 8222, 2932, 11697, 10819, 72, 6, 397, 425, 18, 588, 60, 1435, 9078, 315, 397, 425, 18, 588, 61, 1435, 397, 315, 3568, 315, 397, 425, 18, 588, 3616, 10663, 3639, 10456, 273, 629, 31, 3639, 509, 7644, 3616, 273, 425, 18, 588, 3616, 5621, 3639, 6944, 5706, 13770, 12, 73, 1769, 309, 261, 1592, 4595, 1767, 480, 446, 262, 95, 1592, 4595, 1767, 18, 542, 7416, 12, 5743, 1769, 289, 2398, 368, 4595, 1767, 10097, 273, 982, 18, 588, 3054, 4595, 1767, 12, 73, 13, 274, 5411, 7881, 1767, 10097, 273, 3170, 4595, 1767, 31, 5411, 309, 261, 10097, 480, 446, 262, 95, 7734, 10097, 18, 542, 7416, 12, 5743, 1769, 7734, 3170, 4595, 1767, 273, 446, 31, 7734, 368, 1841, 276, 273, 425, 18, 588, 1841, 5621, 7734, 982, 18, 14462, 1598, 5621, 7734, 309, 16051, 353, 11728, 1998, 13, 288, 10792, 327, 31, 7734, 289, 4766, 368, 202, 3163, 18, 659, 18, 8222, 2932, 291, 15997, 1998, 30, 315, 397, 353, 11728, 1998, 1769, 7734, 353, 11728, 1998, 273, 629, 31, 7734, 1842, 7607, 28324, 12, 73, 16, 17679, 1769, 27573, 6944, 5706, 13770, 12, 73, 1769, 18701, 289, 469, 288, 7734, 2332, 18, 370, 18, 8222, 2932, 2135, 982, 1392, 4442, 1769, 5411, 289, 10792, 289, 469, 225, 288, 5411, 368, 1696, 279, 10431, 4599, 2777, 5411, 368, 3163, 18, 659, 18, 8222, 2932, 5391, 890, 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, 7644, 26363, 12, 9186, 1133, 425, 13, 288, 3639, 368, 3163, 18, 659, 18, 8222, 2932, 11697, 10819, 72, 6, 397, 425, 18, 588, 60, 1435, 9078, 315, 397, 425, 18, 588, 61, 1435, 397, 315, 3568, 315, 397, 425, 18, 588, 3616, 10663, 3639, 10456, 273, 629, 31, 3639, 509, 7644, 3616, 273, 425, 18, 588, 3616, 5621, 3639, 6944, 5706, 13770, 12, 73, 1769, 309, 261, 1592, 4595, 1767, 480, 446, 262, 95, 1592, 4595, 1767, 18, 542, 7416, 12, 5743, 1769, 289, 2398, 368, 4595, 1767, 10097, 273, 982, 18, 588, 3054, 4595, 1767, 12, 73, 13, 274, 5411, 7881, 1767, 10097, 273, 3170, 4595, 1767, 31, 5411, 309, 261, 10097, 480, 446, 2 ]
String tmpToken = token;
private void initMetadata(String xml) { Vector elements = new Vector(); // first parse each element in the XML string while (xml.length() > 2) { String el = xml.substring(1, xml.indexOf(">")); xml = xml.substring(xml.indexOf(">") + 1); elements.add(el); } // the first element contains version information String token = (String) elements.get(0); String key = token.substring(0, token.indexOf("\"")); String value = token.substring(token.indexOf("\"") + 1, token.length()-1); metadata.put(key, value); int ndx = 1; int imageCounter = -2; int dimCounter = 0; int lutCounter = 0; while (ndx < elements.size()) { token = (String) elements.get(ndx); // only try to parse the element if we know it // contains a key/value pair if (token.indexOf("=") != -1) { while (token.length() > 2) { if (key.equals("Element Name")) { imageCounter++; dimCounter = 0; lutCounter = 0; } key = token.substring(0, token.indexOf("\"") - 1); value = token.substring(token.indexOf("\"") + 1, token.indexOf("\"", token.indexOf("\"") + 1)); key = key.trim(); value = value.trim(); if (key.equals("NumberOfElements")) { dims[imageCounter][dimCounter] = Integer.parseInt(value); dimCounter++; if (dimCounter == 6) dimCounter = 0; } if (key.equals("Resolution")) { int val = Integer.parseInt(value); if ((val % 8) != 0) val += (8 - (val % 8)); dims[imageCounter][5] = val; } if (key.equals("LUTName")) lutCounter++; if (lutCounter == 3) { dims[imageCounter][4] = lutCounter; lutCounter = 0; } token = token.substring(token.indexOf("\"", token.indexOf("\"") + 1) + 1); metadata.put(key + " (image " + imageCounter + ")", value); } } ndx++; } int originalNumImages = numImages; for (int i=1; i<=originalNumImages; i++) { if (dims[i-1][2] == 0) dims[i-1][2] = 1; if (dims[i-1][3] == 0) dims[i-1][3] = 1; numImages += ((dims[i-1][2]*dims[i-1][3]) - 1); } // initialize OME-XML if (ome != null) { String type = "int8"; switch (dims[dims.length - 1][5]) { case 12: type = "int16"; break; case 16: type = "int16"; break; case 32: type = "float"; break; } int z = 0; int t = 0; for (int i=0; i<dims.length; i++) { z += (dims[i][2] == 1) ? 0 : dims[i][2]; t += (dims[i][3] == 1) ? 0 : dims[i][3]; } if (t == 0) t++; if (z == 0) z++; while ((z*t) < numImages) { z++; } OMETools.setPixels(ome, new Integer(dims[dims.length - 1][0]), // SizeX new Integer(dims[dims.length - 1][1]), // SizeY new Integer(z), // SizeZ new Integer(1), // SizeC new Integer(t), // SizeT type, // PixelType new Boolean(!littleEndian), // BigEndian "XYZTC"); // DimensionOrder } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/91859a26506b8a1d312b398da2c3ecd94e02fa60/LIFReader.java/clean/loci/formats/LIFReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 514, 1853, 1345, 273, 1147, 31, 3238, 918, 1208, 2277, 12, 780, 2025, 13, 288, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 5589, 2186, 273, 394, 5589, 5621, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 368, 1122, 1109, 1517, 930, 316, 326, 3167, 533, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 1323, 261, 2902, 18, 2469, 1435, 405, 576, 13, 288, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 514, 415, 273, 2025, 18, 28023, 12, 21, 16, 2025, 18, 31806, 2932, 2984, 10019, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 2025, 273, 2025, 18, 28023, 12, 2902, 18, 31806, 2932, 2984, 13, 397, 404, 1769, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 2186, 18, 1289, 12, 292, 1769, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 289, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 368, 326, 1122, 930, 1914, 1177, 1779, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 514, 1147, 273, 261, 780, 13, 2186, 18, 588, 12, 20, 1769, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 514, 498, 273, 1147, 18, 28023, 12, 20, 16, 1147, 18, 31806, 2932, 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, 514, 1853, 1345, 273, 1147, 31, 3238, 918, 1208, 2277, 12, 780, 2025, 13, 288, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 5589, 2186, 273, 394, 5589, 5621, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 368, 1122, 1109, 1517, 930, 316, 326, 3167, 533, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 1323, 261, 2902, 18, 2469, 1435, 405, 576, 13, 288, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 1147, 31, 514, 415, 273, 2025, 18, 28023, 12, 21, 16, 2025, 18, 31806, 2932, 2984, 10019, 780, 1853, 1345, 273, 1147, 31, 514, 1853, 1345, 273, 2 ]
public Row(boolean growing) { this.grows = growing; if (growing) { size = 100; }
public Row(int size) { largerThanChildren = false; this.size = size; grows = false;
public Row(boolean growing) { this.grows = growing; if (growing) { size = 100; } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5abf6fabfddc9bb4eb33acac1f3b4c05f76ac7b1/Row.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/Row.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6556, 12, 6494, 13334, 310, 13, 288, 3639, 333, 18, 75, 3870, 273, 13334, 310, 31, 3639, 309, 261, 75, 492, 310, 13, 288, 5411, 963, 273, 2130, 31, 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, 0, 0, 0, 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, 377, 1071, 6556, 12, 6494, 13334, 310, 13, 288, 3639, 333, 18, 75, 3870, 273, 13334, 310, 31, 3639, 309, 261, 75, 492, 310, 13, 288, 5411, 963, 273, 2130, 31, 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, -100, -100, -100, -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 lookbehind = (String) m_ops.m_tokenQueue[m_queueMark - (n - 1)];
String lookbehind = (String) m_ops.m_tokenQueue.elementAt(m_queueMark - (n - 1));
private final boolean lookbehindHasToken(int n) { boolean hasToken; if ((m_queueMark - n) > 0) { String lookbehind = (String) m_ops.m_tokenQueue[m_queueMark - (n - 1)]; char c0 = (lookbehind == null) ? '|' : lookbehind.charAt(0); hasToken = (c0 == '|') ? false : true; } else { hasToken = false; } return hasToken; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/f136f83081069756bcd71950054569f3ad4d2ce5/XPathParser.java/clean/src/org/apache/xpath/compiler/XPathParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 1250, 2324, 2196, 31748, 5582, 1345, 12, 474, 290, 13, 225, 288, 565, 1250, 711, 1345, 31, 565, 309, 14015, 81, 67, 4000, 3882, 300, 290, 13, 405, 374, 13, 565, 288, 1377, 514, 2324, 2196, 31748, 273, 261, 780, 13, 312, 67, 4473, 18, 81, 67, 2316, 3183, 18, 2956, 861, 12, 81, 67, 4000, 3882, 300, 261, 82, 300, 404, 10019, 1377, 1149, 276, 20, 273, 261, 7330, 2196, 31748, 422, 446, 13, 692, 8030, 294, 2324, 2196, 31748, 18, 3001, 861, 12, 20, 1769, 1377, 711, 1345, 273, 261, 71, 20, 422, 6699, 6134, 692, 629, 294, 638, 31, 565, 289, 565, 469, 565, 288, 1377, 711, 1345, 273, 629, 31, 565, 289, 565, 327, 711, 1345, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 1250, 2324, 2196, 31748, 5582, 1345, 12, 474, 290, 13, 225, 288, 565, 1250, 711, 1345, 31, 565, 309, 14015, 81, 67, 4000, 3882, 300, 290, 13, 405, 374, 13, 565, 288, 1377, 514, 2324, 2196, 31748, 273, 261, 780, 13, 312, 67, 4473, 18, 81, 67, 2316, 3183, 18, 2956, 861, 12, 81, 67, 4000, 3882, 300, 261, 82, 300, 404, 10019, 1377, 1149, 276, 20, 273, 261, 7330, 2196, 31748, 422, 446, 13, 692, 8030, 294, 2324, 2196, 31748, 18, 3001, 861, 12, 20, 1769, 1377, 711, 1345, 273, 261, 71, 20, 422, 6699, 6134, 692, 629, 294, 638, 31, 565, 289, 565, 469, 565, 288, 1377, 711, 1345, 273, 629, 31, 565, 289, 2 ]
if (t1 instanceof JL5ArrayType && ((JL5ArrayType)t1).isVariable()){ return true; } else {
if (l2.size() <= i) return false; Type t2 = (Type)l2.get(i); if (!ts.isImplicitCastValid(t2, t1)){
public boolean callValidImpl(List argTypes){ if (this.isGeneric()){ try { List inferredTypes = ((JL5TypeSystem)typeSystem()).inferTypesFromArgs(typeVariables(), formalTypes(), argTypes, new ArrayList()); return genericCallValidImpl(argTypes, inferredTypes); } catch(SemanticException e){ return false; } } List l1 = this.formalTypes(); List l2 = argTypes; for (int i = 0; i < l1.size(); i++){ Type t1 = (Type)l1.get(i); if (l2.size() > i){ Type t2 = (Type)l2.get(i); if (t1 instanceof JL5ArrayType && ((JL5ArrayType)t1).isVariable()){ if (ts.isImplicitCastValid(t2, t1)){ return true; } for (int j = i; j < l2.size(); j++){ Type tv = (Type)l2.get(j); if (!ts.isImplicitCastValid(tv, ((ArrayType)t1).base())){ return false; } } } else { if (!ts.isImplicitCastValid(t2, t1)) { return false; } } } else { if (t1 instanceof JL5ArrayType && ((JL5ArrayType)t1).isVariable()){ return true; } else { return false; } } } return true; }
2692 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2692/9e840b41d72194b5f99e7fee04a89031a9b155de/JL5MethodInstance_c.java/buggy/src/polyglot/ext/jl5/types/JL5MethodInstance_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 745, 1556, 2828, 12, 682, 30973, 15329, 3639, 309, 261, 2211, 18, 291, 7014, 10756, 95, 5411, 775, 288, 7734, 987, 13662, 2016, 273, 14015, 46, 48, 25, 559, 3163, 13, 723, 3163, 1435, 2934, 25889, 2016, 1265, 2615, 12, 723, 6158, 9334, 25739, 2016, 9334, 30973, 16, 394, 2407, 10663, 7734, 327, 5210, 1477, 1556, 2828, 12, 3175, 2016, 16, 13662, 2016, 1769, 5411, 289, 5411, 1044, 12, 13185, 9941, 503, 425, 15329, 7734, 327, 629, 31, 5411, 289, 3639, 289, 3639, 987, 328, 21, 273, 333, 18, 687, 287, 2016, 5621, 3639, 987, 328, 22, 273, 30973, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 328, 21, 18, 1467, 5621, 277, 27245, 95, 5411, 1412, 268, 21, 273, 261, 559, 13, 80, 21, 18, 588, 12, 77, 1769, 5411, 309, 261, 80, 22, 18, 1467, 1435, 405, 277, 15329, 7734, 1412, 268, 22, 273, 261, 559, 13, 80, 22, 18, 588, 12, 77, 1769, 21821, 309, 261, 88, 21, 1276, 804, 48, 25, 27182, 597, 14015, 46, 48, 25, 27182, 13, 88, 21, 2934, 291, 3092, 10756, 95, 10792, 309, 261, 3428, 18, 291, 15787, 9735, 1556, 12, 88, 22, 16, 268, 21, 3719, 95, 13491, 327, 638, 31, 10792, 289, 10792, 364, 261, 474, 525, 273, 277, 31, 525, 411, 328, 22, 18, 1467, 5621, 525, 27245, 95, 13491, 1412, 13521, 273, 261, 559, 13, 80, 22, 18, 588, 12, 78, 1769, 13491, 309, 16051, 3428, 18, 291, 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, 745, 1556, 2828, 12, 682, 30973, 15329, 3639, 309, 261, 2211, 18, 291, 7014, 10756, 95, 5411, 775, 288, 7734, 987, 13662, 2016, 273, 14015, 46, 48, 25, 559, 3163, 13, 723, 3163, 1435, 2934, 25889, 2016, 1265, 2615, 12, 723, 6158, 9334, 25739, 2016, 9334, 30973, 16, 394, 2407, 10663, 7734, 327, 5210, 1477, 1556, 2828, 12, 3175, 2016, 16, 13662, 2016, 1769, 5411, 289, 5411, 1044, 12, 13185, 9941, 503, 425, 15329, 7734, 327, 629, 31, 5411, 289, 3639, 289, 3639, 987, 328, 21, 273, 333, 18, 687, 287, 2016, 5621, 3639, 987, 328, 22, 273, 30973, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 328, 21, 18, 1467, 5621, 277, 2 ]
logger.log( Level.FINE, "start get table data" ); rs = openResultSet( table ); logger.log( Level.FINE, "end get table data" ); boolean isRowAvailable = false; if ( rs != null )
accessColumns( tableEmitter, table ); accessHeader( ); tableEmitter.startBody( ); setUpDropProperties( table ); if ( isRowAvailable ) { context.execute( table.getOnRow( ) ); this.accessGroup( 0 ); } accessSummary( ); tableEmitter.endBody( ); tableEmitter.end( ); context.execute( table.getOnFinish( ) ); } catch ( Throwable t )
public void execute( ReportItemDesign item, IReportEmitter emitter ) { super.execute( item, emitter ); ITableEmitter tableEmitter = emitter.getTableEmitter( ); if ( tableEmitter == null ) { return; } this.emitter = emitter; table = (TableItemDesign) item; logger.log( Level.FINE,"start table item" ); //$NON-NLS-1$ //execute the on start script context.execute( table.getOnStart( ) ); TableContent tableObj = (TableContent)ContentFactory.createTableContent( table, context.getContentObject( ) ); context.pushContentObject( tableObj ); tableObj.setCaption( getLocalizedString( table.getCaptionKey( ), table .getCaption( ) ) ); setStyles( tableObj, item ); setVisibility( item, tableObj ); String bookmarkStr = evalBookmark( item ); if ( bookmarkStr != null ) tableObj.setBookmarkValue( bookmarkStr ); logger.log( Level.FINE, "start get table data" ); //$NON-NLS-1$ rs = openResultSet( table ); logger.log( Level.FINE, "end get table data" ); //$NON-NLS-1$ boolean isRowAvailable = false; if ( rs != null ) { isRowAvailable = rs.next( ); } tableEmitter.start( tableObj ); accessColumns( tableEmitter, table ); //access table header accessHeader( ); //data driving report tableEmitter.startBody( ); setUpDropProperties( table ); if ( isRowAvailable ) { context.execute( table.getOnRow( ) ); this.accessGroup( 0 ); } //access table footer accessSummary( ); tableEmitter.endBody( ); tableEmitter.end( ); closeResultSet( rs ); logger.log( Level.FINE, "end table item" ); //$NON-NLS-1$ //execute the on finish script context.execute( table.getOnFinish( ) ); context.popContentObject( ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/46b3013f64d73accec44cdf5a1a0af7dcd5513b7/TableItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TableItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 4820, 13476, 11520, 262, 202, 95, 202, 202, 9565, 18, 8837, 12, 761, 16, 11520, 11272, 202, 202, 1285, 429, 13476, 1014, 13476, 273, 11520, 18, 588, 1388, 13476, 12, 11272, 202, 202, 430, 261, 1014, 13476, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2211, 18, 27529, 273, 11520, 31, 202, 202, 2121, 273, 261, 1388, 1180, 15478, 13, 761, 31, 202, 202, 4901, 18, 1330, 12, 4557, 18, 42, 3740, 10837, 1937, 1014, 761, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 8837, 326, 603, 787, 2728, 202, 202, 2472, 18, 8837, 12, 1014, 18, 588, 1398, 1685, 12, 262, 11272, 202, 202, 1388, 1350, 1014, 2675, 273, 261, 1388, 1350, 13, 1350, 1733, 18, 2640, 1388, 1350, 12, 1014, 16, 819, 18, 588, 1350, 921, 12, 262, 11272, 202, 202, 2472, 18, 6206, 1350, 921, 12, 1014, 2675, 11272, 9506, 202, 2121, 2675, 18, 542, 21158, 12, 14262, 780, 12, 1014, 18, 588, 21158, 653, 12, 262, 16, 1014, 9506, 202, 18, 588, 21158, 12, 262, 262, 11272, 202, 202, 542, 9725, 12, 1014, 2675, 16, 761, 11272, 202, 202, 542, 10135, 12, 761, 16, 1014, 2675, 11272, 202, 202, 780, 13696, 1585, 273, 5302, 22966, 12, 761, 11272, 202, 202, 430, 261, 13696, 1585, 480, 446, 262, 1082, 202, 2121, 2675, 18, 542, 22966, 620, 12, 13696, 1585, 11272, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 4820, 13476, 11520, 262, 202, 95, 202, 202, 9565, 18, 8837, 12, 761, 16, 11520, 11272, 202, 202, 1285, 429, 13476, 1014, 13476, 273, 11520, 18, 588, 1388, 13476, 12, 11272, 202, 202, 430, 261, 1014, 13476, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2211, 18, 27529, 273, 11520, 31, 202, 202, 2121, 273, 261, 1388, 1180, 15478, 13, 761, 31, 202, 202, 4901, 18, 1330, 12, 4557, 18, 42, 3740, 10837, 1937, 1014, 761, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 8837, 326, 603, 787, 2728, 202, 202, 2472, 18, 8837, 12, 1014, 2 ]
result.setFolder(wiki.attributeValue(MailService.A_FOLDER)); result.setRev(wiki.attributeValue(MailService.A_VERSION)); result.setLastModifiedDate(wiki.attributeValue(MailService.A_DATE)); result.setLastEditor(wiki.attributeValue(MailService.A_LAST_EDITED_BY)); result.setRestUrl(wiki.attributeValue(MailService.A_REST_URL));
protected LmcWiki parseWiki(Element wiki) throws ServiceException { LmcWiki result = new LmcWiki(); result.setID(wiki.attributeValue(MailService.A_ID)); result.setWikiWord(wiki.attributeValue(MailService.A_NAME)); result.setFolder(wiki.attributeValue(MailService.A_FOLDER)); result.setRev(wiki.attributeValue(MailService.A_VERSION)); result.setLastModifiedDate(wiki.attributeValue(MailService.A_DATE)); result.setLastEditor(wiki.attributeValue(MailService.A_LAST_EDITED_BY)); result.setRestUrl(wiki.attributeValue(MailService.A_REST_URL)); try { Element c = DomUtil.get(wiki, MailService.A_BODY); result.setContents(c.getText()); } catch (Exception e) {} return result; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/1a6d91495afcdb20d15bcb4ef0e5a4ad003854f4/LmcSoapRequest.java/buggy/ZimbraServer/src/java/com/zimbra/cs/client/soap/LmcSoapRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 511, 13952, 25438, 1109, 25438, 12, 1046, 9050, 13, 202, 202, 15069, 16489, 202, 95, 202, 202, 48, 13952, 25438, 563, 273, 394, 511, 13952, 25438, 5621, 202, 202, 2088, 18, 542, 734, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 734, 10019, 202, 202, 2088, 18, 542, 25438, 3944, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 1985, 10019, 202, 202, 2088, 18, 542, 3899, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 17357, 10019, 202, 202, 2088, 18, 542, 10070, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 5757, 10019, 202, 202, 2088, 18, 542, 14747, 1626, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 4594, 10019, 202, 202, 2088, 18, 542, 3024, 6946, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 14378, 67, 10776, 2056, 67, 6486, 10019, 202, 202, 2088, 18, 542, 5188, 1489, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 12030, 67, 1785, 10019, 9506, 202, 698, 288, 1082, 202, 1046, 276, 273, 12965, 1304, 18, 588, 12, 13044, 16, 11542, 1179, 18, 37, 67, 16691, 1769, 1082, 202, 2088, 18, 542, 6323, 12, 71, 18, 588, 1528, 10663, 202, 202, 97, 1044, 261, 503, 425, 13, 2618, 9506, 202, 2463, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 511, 13952, 25438, 1109, 25438, 12, 1046, 9050, 13, 202, 202, 15069, 16489, 202, 95, 202, 202, 48, 13952, 25438, 563, 273, 394, 511, 13952, 25438, 5621, 202, 202, 2088, 18, 542, 734, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 734, 10019, 202, 202, 2088, 18, 542, 25438, 3944, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 1985, 10019, 202, 202, 2088, 18, 542, 3899, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 17357, 10019, 202, 202, 2088, 18, 542, 10070, 12, 13044, 18, 4589, 620, 12, 6759, 1179, 18, 37, 67, 5757, 10019, 202, 202, 2088, 18, 542, 14747, 1626, 12, 13044, 18, 4589, 620, 2 ]
if(curPop > bestPopularity) {
if(curPop >= bestPopularity) { secondBestPopularity = bestPopularity;
Peer[] detectPrimaryIPAddress() { Vector addresses = new Vector(); if(overrideIPAddress != null) { // If the IP is overridden, the override has to be the first element. addresses.add(new Peer(overrideIPAddress, portNumber)); } InetAddress[] detectedAddrs = ipDetector.getAddress(); if(detectedAddrs != null) { for(int i=0;i<detectedAddrs.length;i++) { Peer p = new Peer(detectedAddrs[i], portNumber); if(!addresses.contains(p)) addresses.add(p); } } if((pluginDetectedIPs != null) && (pluginDetectedIPs.length > 0)) { for(int i=0;i<pluginDetectedIPs.length;i++) { InetAddress addr = pluginDetectedIPs[i].publicAddress; if(addr == null) continue; Peer a = new Peer(new FreenetInetAddress(addr), portNumber); if(!addresses.contains(a)) addresses.add(a); } } if((detectedAddrs == null) && (oldIPAddress != null) && !oldIPAddress.equals(overrideIPAddress)) addresses.add(new Peer(oldIPAddress, portNumber)); // Try to pick it up from our connections if(peers != null) { PeerNode[] peerList = peers.connectedPeers; HashMap countsByPeer = new HashMap(); // FIXME use a standard mutable int object, we have one somewhere for(int i=0;i<peerList.length;i++) { Peer p = peerList[i].getRemoteDetectedPeer(); if((p == null) || p.isNull()) continue; // DNSRequester doesn't deal with our own node InetAddress ip = p.getAddress(true); if(!IPUtil.checkAddress(ip)) continue; if(countsByPeer.containsKey(ip)) { Integer count = (Integer) countsByPeer.get(p); Integer newCount = new Integer(count.intValue()+1); countsByPeer.put(p, newCount); } else { countsByPeer.put(p, new Integer(1)); } } if(countsByPeer.size() == 1) { Iterator it = countsByPeer.keySet().iterator(); Peer p = (Peer) (it.next()); if(!addresses.contains(p)) addresses.add(p); } else if(countsByPeer.size() > 1) { Iterator it = countsByPeer.keySet().iterator(); // Take two most popular addresses. Peer best = null; Peer secondBest = null; int bestPopularity = 0; int secondBestPopularity = 0; while(it.hasNext()) { Peer cur = (Peer) (it.next()); int curPop = ((Integer) (countsByPeer.get(cur))).intValue(); if(curPop > bestPopularity) { bestPopularity = curPop; secondBest = best; best = cur; secondBestPopularity = bestPopularity; } } if(best != null) { if((bestPopularity > 2) || (detectedAddrs == null)) { if(!addresses.contains(best)) addresses.add(best); if((secondBest != null) && (secondBestPopularity > 2)) { if(!addresses.contains(secondBest)) addresses.add(secondBest); } } } } } if (addresses.isEmpty()) { this.alerts.register(primaryIPUndetectedAlert); } else { this.alerts.unregister(primaryIPUndetectedAlert); } lastIPAddress = (Peer[]) addresses.toArray(new Peer[addresses.size()]); return lastIPAddress; }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/70c8c802d0f80be37669510e15559106bb0959cd/Node.java/buggy/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6813, 8526, 5966, 6793, 22507, 1435, 288, 202, 202, 5018, 6138, 273, 394, 5589, 5621, 202, 202, 430, 12, 10601, 22507, 480, 446, 13, 288, 1082, 202, 759, 971, 326, 2971, 353, 11000, 16, 326, 3849, 711, 358, 506, 326, 1122, 930, 18, 1082, 202, 13277, 18, 1289, 12, 2704, 10669, 12, 10601, 22507, 16, 1756, 1854, 10019, 202, 202, 97, 202, 565, 202, 382, 278, 1887, 8526, 8316, 13811, 273, 2359, 12594, 18, 588, 1887, 5621, 202, 565, 202, 430, 12, 8238, 828, 13811, 480, 446, 13, 288, 202, 565, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 8238, 828, 13811, 18, 2469, 31, 77, 27245, 288, 202, 565, 1082, 202, 6813, 293, 273, 394, 10669, 12, 8238, 828, 13811, 63, 77, 6487, 1756, 1854, 1769, 202, 565, 1082, 202, 430, 12, 5, 13277, 18, 12298, 12, 84, 3719, 6138, 18, 1289, 12, 84, 1769, 202, 565, 202, 202, 97, 202, 565, 202, 97, 202, 565, 202, 430, 12443, 4094, 22614, 18246, 480, 446, 13, 597, 261, 4094, 22614, 18246, 18, 2469, 405, 374, 3719, 288, 202, 565, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 4094, 22614, 18246, 18, 2469, 31, 77, 27245, 288, 202, 565, 1082, 202, 382, 278, 1887, 3091, 273, 1909, 22614, 18246, 63, 77, 8009, 482, 1887, 31, 202, 565, 1082, 202, 430, 12, 4793, 422, 446, 13, 1324, 31, 202, 565, 1082, 202, 6813, 279, 273, 394, 10669, 12, 2704, 478, 2842, 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, 6813, 8526, 5966, 6793, 22507, 1435, 288, 202, 202, 5018, 6138, 273, 394, 5589, 5621, 202, 202, 430, 12, 10601, 22507, 480, 446, 13, 288, 1082, 202, 759, 971, 326, 2971, 353, 11000, 16, 326, 3849, 711, 358, 506, 326, 1122, 930, 18, 1082, 202, 13277, 18, 1289, 12, 2704, 10669, 12, 10601, 22507, 16, 1756, 1854, 10019, 202, 202, 97, 202, 565, 202, 382, 278, 1887, 8526, 8316, 13811, 273, 2359, 12594, 18, 588, 1887, 5621, 202, 565, 202, 430, 12, 8238, 828, 13811, 480, 446, 13, 288, 202, 565, 202, 202, 1884, 12, 474, 277, 33, 20, 31, 77, 32, 8238, 828, 13811, 18, 2469, 31, 77, 27245, 288, 202, 565, 1082, 202, 6813, 293, 2 ]
ComponentContext compContext = (ComponentContext)pageContext.getAttribute( ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE);
ComponentContext compContext = (ComponentContext)pageContext.getAttribute( ComponentConstants.COMPONENT_CONTEXT, PageContext.REQUEST_SCOPE);
public int doStartTag() throws JspException { // retrieve component context ComponentContext compContext = (ComponentContext)pageContext.getAttribute( ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE); if( compContext == null ) throw new JspException ( "Error - tag importAttribute : no tiles context found." ); // set scope scope = TagUtils.getScope( scopeName, PageContext.PAGE_SCOPE ); // push attribute in requested context. if( name != null ) { Object value = compContext.getAttribute(name); // Check if value exist and if we must send a runtime exception if( value == null ) if(!isErrorIgnored) throw new JspException ( "Error - tag importAttribute : property '"+ name + "' not found in context. Check tag syntax" ); else return SKIP_BODY; pageContext.setAttribute(name, value, scope); } else { // set all attributes Iterator names = compContext.getAttributeNames(); while(names.hasNext()) { String name = (String)names.next(); pageContext.setAttribute(name, compContext.getAttribute(name), scope); } // end loop } // end if // Continue processing this page return SKIP_BODY; }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/47d6a46e6d111889ef2d835364243494e9b4ea0a/ImportAttributeTag.java/clean/src/share/org/apache/struts/taglib/tiles/ImportAttributeTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 741, 30512, 1435, 1216, 27485, 565, 288, 1377, 368, 4614, 1794, 819, 565, 5435, 1042, 1161, 1042, 273, 261, 1841, 1042, 13, 2433, 1042, 18, 588, 1499, 12, 5435, 2918, 18, 22922, 67, 13181, 16, 3460, 1042, 18, 5519, 67, 19444, 1769, 565, 309, 12, 1161, 1042, 422, 446, 262, 3639, 604, 394, 27485, 261, 315, 668, 300, 1047, 1930, 1499, 294, 1158, 12568, 819, 1392, 1199, 11272, 1377, 368, 444, 2146, 565, 2146, 273, 4034, 1989, 18, 588, 3876, 12, 2146, 461, 16, 3460, 1042, 18, 11219, 67, 19444, 11272, 1377, 368, 1817, 1566, 316, 3764, 819, 18, 565, 309, 12, 508, 480, 446, 262, 1377, 288, 1377, 1033, 460, 273, 1161, 1042, 18, 588, 1499, 12, 529, 1769, 3639, 368, 2073, 309, 460, 1005, 471, 309, 732, 1297, 1366, 279, 3099, 1520, 1377, 309, 12, 460, 422, 446, 262, 3639, 309, 12, 5, 291, 668, 15596, 13, 1850, 604, 394, 27485, 261, 315, 668, 300, 1047, 1930, 1499, 294, 1272, 2119, 15, 508, 397, 2491, 486, 1392, 316, 819, 18, 2073, 1047, 6279, 6, 11272, 540, 469, 1850, 327, 18420, 67, 16691, 31, 1377, 21442, 18, 542, 1499, 12, 529, 16, 460, 16, 2146, 1769, 1377, 289, 377, 469, 1377, 288, 368, 444, 777, 1677, 1377, 4498, 1257, 273, 1161, 1042, 18, 588, 26080, 5621, 1377, 1323, 12, 1973, 18, 5332, 2134, 10756, 3639, 288, 3639, 514, 508, 273, 261, 780, 13, 1973, 18, 4285, 5621, 3639, 21442, 18, 542, 1499, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 741, 30512, 1435, 1216, 27485, 565, 288, 1377, 368, 4614, 1794, 819, 565, 5435, 1042, 1161, 1042, 273, 261, 1841, 1042, 13, 2433, 1042, 18, 588, 1499, 12, 5435, 2918, 18, 22922, 67, 13181, 16, 3460, 1042, 18, 5519, 67, 19444, 1769, 565, 309, 12, 1161, 1042, 422, 446, 262, 3639, 604, 394, 27485, 261, 315, 668, 300, 1047, 1930, 1499, 294, 1158, 12568, 819, 1392, 1199, 11272, 1377, 368, 444, 2146, 565, 2146, 273, 4034, 1989, 18, 588, 3876, 12, 2146, 461, 16, 3460, 1042, 18, 11219, 67, 19444, 11272, 1377, 368, 1817, 1566, 316, 3764, 819, 18, 565, 309, 12, 508, 480, 446, 262, 1377, 288, 1377, 1033, 460, 273, 1161, 1042, 18, 588, 2 ]
il.append(methodGen.loadHandler()); il.append(DUP); _name.translate(classGen, methodGen);
if (!_isLiteral) { LocalVariableGen nameValue = methodGen.addLocalVariable2("nameValue", Util.getJCRefType(STRING_SIG), il.getEnd()); _name.translate(classGen, methodGen); il.append(new ASTORE(nameValue.getIndex())); il.append(new ALOAD(nameValue.getIndex())); final int check = cpg.addMethodref(BASIS_LIBRARY_CLASS, "checkAttribQName", "(" +STRING_SIG +")V"); il.append(new INVOKESTATIC(check)); il.append(methodGen.loadHandler()); il.append(DUP); il.append(new ALOAD(nameValue.getIndex())); } else { il.append(methodGen.loadHandler()); il.append(DUP); _name.translate(classGen, methodGen); }
public void translate(ClassGenerator classGen, MethodGenerator methodGen) { final ConstantPoolGen cpg = classGen.getConstantPool(); final InstructionList il = methodGen.getInstructionList(); if (_ignore) return; _ignore = true; // Compile code that emits any needed namespace declaration if (_namespace != null) { // public void attribute(final String name, final String value) il.append(methodGen.loadHandler()); il.append(new PUSH(cpg,_prefix)); _namespace.translate(classGen,methodGen); il.append(methodGen.namespace()); } // Save the current handler base on the stack il.append(methodGen.loadHandler()); il.append(DUP); // first arg to "attributes" call // Push attribute name _name.translate(classGen, methodGen);// 2nd arg // Push attribute value - shortcut for literal strings if ((elementCount() == 1) && (elementAt(0) instanceof Text)) { il.append(new PUSH(cpg, ((Text)elementAt(0)).getText())); } else { il.append(classGen.loadTranslet()); il.append(new GETFIELD(cpg.addFieldref(TRANSLET_CLASS, "stringValueHandler", STRING_VALUE_HANDLER_SIG))); il.append(DUP); il.append(methodGen.storeHandler()); // translate contents with substituted handler translateContents(classGen, methodGen); // get String out of the handler il.append(new INVOKEVIRTUAL(cpg.addMethodref(STRING_VALUE_HANDLER, "getValue", "()" + STRING_SIG))); } SyntaxTreeNode parent = getParent(); if (parent instanceof LiteralElement && ((LiteralElement)parent).allAttributesUnique()) { int flags = 0; ElemDesc elemDesc = ((LiteralElement)parent).getElemDesc(); // Set the HTML flags if (elemDesc != null && _name instanceof SimpleAttributeValue) { String attrName = ((SimpleAttributeValue)_name).toString(); if (elemDesc.isAttrFlagSet(attrName, ElemDesc.ATTREMPTY)) { flags = flags | SerializationHandler.HTML_ATTREMPTY; } else if (elemDesc.isAttrFlagSet(attrName, ElemDesc.ATTRURL)) { flags = flags | SerializationHandler.HTML_ATTRURL; } } il.append(new PUSH(cpg, flags)); il.append(methodGen.uniqueAttribute()); } else { // call "attribute" il.append(methodGen.attribute()); } // Restore old handler base from stack il.append(methodGen.storeHandler()); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/ba3c7fe147768ffde65d6c67a48e52a5aa448561/XslAttribute.java/clean/src/org/apache/xalan/xsltc/compiler/XslAttribute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4204, 12, 797, 3908, 667, 7642, 16, 2985, 3908, 707, 7642, 13, 288, 202, 6385, 10551, 2864, 7642, 3283, 75, 273, 667, 7642, 18, 588, 6902, 2864, 5621, 202, 6385, 24605, 682, 14254, 273, 707, 7642, 18, 588, 11983, 682, 5621, 202, 430, 261, 67, 6185, 13, 327, 31, 202, 67, 6185, 273, 638, 31, 202, 759, 16143, 981, 716, 24169, 1281, 3577, 1981, 8266, 202, 430, 261, 67, 4937, 480, 446, 13, 288, 202, 565, 368, 1071, 918, 1566, 12, 6385, 514, 508, 16, 727, 514, 460, 13, 202, 565, 14254, 18, 6923, 12, 2039, 7642, 18, 945, 1503, 10663, 202, 565, 14254, 18, 6923, 12, 2704, 28591, 12, 4057, 75, 16, 67, 3239, 10019, 202, 565, 389, 4937, 18, 13929, 12, 1106, 7642, 16, 2039, 7642, 1769, 202, 565, 14254, 18, 6923, 12, 2039, 7642, 18, 4937, 10663, 202, 97, 202, 759, 7074, 326, 783, 1838, 1026, 603, 326, 2110, 202, 330, 18, 6923, 12, 2039, 7642, 18, 945, 1503, 10663, 202, 330, 18, 6923, 12, 30387, 1769, 202, 202, 759, 1122, 1501, 358, 315, 4350, 6, 745, 202, 202, 759, 8547, 1566, 508, 202, 67, 529, 18, 13929, 12, 1106, 7642, 16, 707, 7642, 1769, 759, 576, 4880, 1501, 202, 759, 8547, 1566, 460, 300, 10995, 364, 7158, 2064, 202, 430, 14015, 2956, 1380, 1435, 422, 404, 13, 597, 261, 2956, 861, 12, 20, 13, 1276, 3867, 3719, 288, 202, 565, 14254, 18, 6923, 12, 2704, 28591, 12, 4057, 75, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4204, 12, 797, 3908, 667, 7642, 16, 2985, 3908, 707, 7642, 13, 288, 202, 6385, 10551, 2864, 7642, 3283, 75, 273, 667, 7642, 18, 588, 6902, 2864, 5621, 202, 6385, 24605, 682, 14254, 273, 707, 7642, 18, 588, 11983, 682, 5621, 202, 430, 261, 67, 6185, 13, 327, 31, 202, 67, 6185, 273, 638, 31, 202, 759, 16143, 981, 716, 24169, 1281, 3577, 1981, 8266, 202, 430, 261, 67, 4937, 480, 446, 13, 288, 202, 565, 368, 1071, 918, 1566, 12, 6385, 514, 508, 16, 727, 514, 460, 13, 202, 565, 14254, 18, 6923, 12, 2039, 7642, 18, 945, 1503, 10663, 202, 565, 14254, 18, 6923, 12, 2704, 28591, 12, 4057, 75, 16, 67, 3239, 10019, 2 ]
List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter )
List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter )
private ArtifactResolutionResult collect( Set artifacts, ArtifactRepository localRepository, List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter ) throws TransitiveArtifactResolutionException { ArtifactResolutionResult result = new ArtifactResolutionResult(); Map resolvedArtifacts = new HashMap(); List queue = new LinkedList(); queue.add( artifacts ); while ( !queue.isEmpty() ) { Set currentArtifacts = (Set) queue.remove( 0 ); for ( Iterator i = currentArtifacts.iterator(); i.hasNext(); ) { Artifact newArtifact = (Artifact) i.next(); String id = newArtifact.getConflictId(); if ( resolvedArtifacts.containsKey( id ) ) { Artifact knownArtifact = (Artifact) resolvedArtifacts.get( id ); String newVersion = newArtifact.getVersion(); String knownVersion = knownArtifact.getVersion(); if ( !newVersion.equals( knownVersion ) ) { addConflict( result, knownArtifact, newArtifact ); } } else { // ---------------------------------------------------------------------- // It's the first time we have encountered this artifact // ---------------------------------------------------------------------- if ( filter != null && !filter.include( newArtifact ) ) { continue; } resolvedArtifacts.put( id, newArtifact ); Set referencedDependencies = null; try { referencedDependencies = source.retrieve( newArtifact, localRepository, remoteRepositories ); } catch ( ArtifactMetadataRetrievalException e ) { throw new TransitiveArtifactResolutionException( "Error retrieving metadata [" + newArtifact + "] : ", e ); } // the pom for given dependency exisit we will add it to the // queue queue.add( referencedDependencies ); } } } // ---------------------------------------------------------------------- // the dependencies list is keyed by groupId+artifactId+type // so it must be 'rekeyed' to the complete id: // groupId+artifactId+type+version // ---------------------------------------------------------------------- Map artifactResult = result.getArtifacts(); for ( Iterator it = resolvedArtifacts.values().iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); try { setLocalRepositoryPath( artifact, localRepository ); } catch ( ArtifactHandlerNotFoundException e ) { throw new TransitiveArtifactResolutionException( "Error collecting artifact: ", e ); } artifactResult.put( artifact.getId(), artifact ); } return result; }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/2628261b753a53f56863a5c0150994135148bbbe/DefaultArtifactResolver.java/clean/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 14022, 11098, 1253, 3274, 12, 1000, 16259, 16, 14022, 3305, 1191, 3305, 16, 3639, 987, 2632, 18429, 16, 14022, 2277, 1830, 1084, 16, 14022, 1586, 1034, 262, 3639, 1216, 2604, 3720, 7581, 11098, 503, 565, 288, 3639, 14022, 11098, 1253, 563, 273, 394, 14022, 11098, 1253, 5621, 3639, 1635, 4640, 16981, 273, 394, 4317, 5621, 3639, 987, 2389, 273, 394, 10688, 5621, 3639, 2389, 18, 1289, 12, 16259, 11272, 3639, 1323, 261, 401, 4000, 18, 291, 1921, 1435, 262, 3639, 288, 5411, 1000, 783, 16981, 273, 261, 694, 13, 2389, 18, 4479, 12, 374, 11272, 5411, 364, 261, 4498, 277, 273, 783, 16981, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 5411, 288, 7734, 14022, 394, 7581, 273, 261, 7581, 13, 277, 18, 4285, 5621, 7734, 514, 612, 273, 394, 7581, 18, 588, 10732, 548, 5621, 7734, 309, 261, 4640, 16981, 18, 12298, 653, 12, 612, 262, 262, 7734, 288, 10792, 14022, 4846, 7581, 273, 261, 7581, 13, 4640, 16981, 18, 588, 12, 612, 11272, 10792, 514, 28906, 273, 394, 7581, 18, 588, 1444, 5621, 10792, 514, 4846, 1444, 273, 4846, 7581, 18, 588, 1444, 5621, 10792, 309, 261, 401, 2704, 1444, 18, 14963, 12, 4846, 1444, 262, 262, 10792, 288, 13491, 527, 10732, 12, 563, 16, 4846, 7581, 16, 394, 7581, 11272, 10792, 289, 7734, 289, 7734, 469, 7734, 288, 10792, 368, 8879, 13465, 10792, 368, 2597, 1807, 326, 1122, 813, 732, 1240, 9919, 333, 6462, 10792, 368, 8879, 13465, 10792, 309, 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, 377, 3238, 14022, 11098, 1253, 3274, 12, 1000, 16259, 16, 14022, 3305, 1191, 3305, 16, 3639, 987, 2632, 18429, 16, 14022, 2277, 1830, 1084, 16, 14022, 1586, 1034, 262, 3639, 1216, 2604, 3720, 7581, 11098, 503, 565, 288, 3639, 14022, 11098, 1253, 563, 273, 394, 14022, 11098, 1253, 5621, 3639, 1635, 4640, 16981, 273, 394, 4317, 5621, 3639, 987, 2389, 273, 394, 10688, 5621, 3639, 2389, 18, 1289, 12, 16259, 11272, 3639, 1323, 261, 401, 4000, 18, 291, 1921, 1435, 262, 3639, 288, 5411, 1000, 783, 16981, 273, 261, 694, 13, 2389, 18, 4479, 12, 374, 11272, 5411, 364, 261, 4498, 277, 273, 783, 16981, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 5411, 288, 7734, 14022, 394, 2 ]
IMylarContextNode node = context.parseEvent(mockSelection());
IMylarElement node = context.parseEvent(mockSelection());
public void testSelections() { IMylarContextNode missing = context.get("0"); assertNull(missing); IMylarContextNode node = context.parseEvent(mockSelection()); assertTrue(node.getDegreeOfInterest().isInteresting()); context.parseEvent(mockSelection()); assertTrue(node.getDegreeOfInterest().isInteresting()); context.parseEvent(mockSelection()); float doi = node.getDegreeOfInterest().getEncodedValue(); assertEquals(3.0f -(2*scaling.getDecay().getValue()), doi); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f5bfb4859762da1543c326b182b2de34d0d94c08/ContextTest.java/buggy/org.eclipse.mylyn.context.tests/src/org/eclipse/mylyn/core/tests/ContextTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29913, 1435, 288, 3639, 6246, 93, 7901, 1042, 907, 3315, 273, 819, 18, 588, 2932, 20, 8863, 3639, 1815, 2041, 12, 7337, 1769, 7734, 6246, 93, 7901, 1046, 756, 273, 819, 18, 2670, 1133, 12, 22851, 6233, 10663, 3639, 1815, 5510, 12, 2159, 18, 588, 22885, 951, 29281, 7675, 291, 2465, 10100, 10663, 3639, 819, 18, 2670, 1133, 12, 22851, 6233, 10663, 3639, 1815, 5510, 12, 2159, 18, 588, 22885, 951, 29281, 7675, 291, 2465, 10100, 10663, 540, 819, 18, 2670, 1133, 12, 22851, 6233, 10663, 7734, 1431, 25183, 273, 756, 18, 588, 22885, 951, 29281, 7675, 588, 10397, 620, 5621, 3639, 1815, 8867, 12, 23, 18, 20, 74, 300, 12, 22, 14, 24576, 18, 588, 1799, 528, 7675, 24805, 1435, 3631, 25183, 1769, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 29913, 1435, 288, 3639, 6246, 93, 7901, 1042, 907, 3315, 273, 819, 18, 588, 2932, 20, 8863, 3639, 1815, 2041, 12, 7337, 1769, 7734, 6246, 93, 7901, 1046, 756, 273, 819, 18, 2670, 1133, 12, 22851, 6233, 10663, 3639, 1815, 5510, 12, 2159, 18, 588, 22885, 951, 29281, 7675, 291, 2465, 10100, 10663, 3639, 819, 18, 2670, 1133, 12, 22851, 6233, 10663, 3639, 1815, 5510, 12, 2159, 18, 588, 22885, 951, 29281, 7675, 291, 2465, 10100, 10663, 540, 819, 18, 2670, 1133, 12, 22851, 6233, 10663, 7734, 1431, 25183, 273, 756, 18, 588, 22885, 951, 29281, 7675, 588, 10397, 620, 5621, 3639, 1815, 8867, 12, 23, 18, 20, 74, 300, 12, 22, 14, 24576, 18, 2 ]
cd.setDecoration(dec);
cd.setImage(dec.getImage()); cd.setDescriptionText(dec.getDescription());
void showRequiredFieldDecoration(SmartField smartField, boolean show) { FieldDecoration dec = getRequiredFieldDecoration(); ControlDecoration cd = (ControlDecoration) smartField.decImpl; if (show) { cd.setDecoration(dec); cd.setShowOnlyOnFocus(false); cd.show(); } else { cd.hide(); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5d978daa84859bbf3a8e2e3902ccfdb899d1248e/ControlDecorationTestDialog.java/clean/examples/org.eclipse.ui.examples.fieldassist/Eclipse UI Examples Field Assist/org/eclipse/ui/examples/fieldassist/ControlDecorationTestDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2405, 3705, 974, 7859, 367, 12, 23824, 974, 13706, 974, 16, 1250, 2405, 13, 288, 202, 202, 974, 7859, 367, 2109, 273, 19881, 974, 7859, 367, 5621, 202, 202, 3367, 7859, 367, 7976, 273, 261, 3367, 7859, 367, 13, 13706, 974, 18, 4924, 2828, 31, 202, 202, 430, 261, 4500, 13, 288, 1082, 202, 4315, 18, 542, 7859, 367, 12, 4924, 1769, 1082, 202, 4315, 18, 542, 5706, 3386, 1398, 9233, 12, 5743, 1769, 1082, 202, 4315, 18, 4500, 5621, 202, 202, 97, 469, 288, 1082, 202, 4315, 18, 11248, 5621, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2405, 3705, 974, 7859, 367, 12, 23824, 974, 13706, 974, 16, 1250, 2405, 13, 288, 202, 202, 974, 7859, 367, 2109, 273, 19881, 974, 7859, 367, 5621, 202, 202, 3367, 7859, 367, 7976, 273, 261, 3367, 7859, 367, 13, 13706, 974, 18, 4924, 2828, 31, 202, 202, 430, 261, 4500, 13, 288, 1082, 202, 4315, 18, 542, 7859, 367, 12, 4924, 1769, 1082, 202, 4315, 18, 542, 5706, 3386, 1398, 9233, 12, 5743, 1769, 1082, 202, 4315, 18, 4500, 5621, 202, 202, 97, 469, 288, 1082, 202, 4315, 18, 11248, 5621, 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 ]
if (member.isNil()) { throw new RubyBugException("uninitialized struct"); }
Asserts.assertTrue(!member.isNil(), "uninitialized struct");
public IRubyObject set(IRubyObject value) { String name = runtime.getCurrentFrame().getLastFunc(); if (name.endsWith("=")) { name = name.substring(0, name.length() - 1); } RubyArray member = (RubyArray) getInstanceVariable(classOf(), "__member__"); if (member.isNil()) { throw new RubyBugException("uninitialized struct"); } modify(); for (int i = 0; i < member.getLength(); i++) { if (member.entry(i).toId().equals(name)) { return values[i] = value; } } throw new NameError(runtime, name + " is not struct member"); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyStruct.java/clean/org/jruby/RubyStruct.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 444, 12, 7937, 10340, 921, 460, 13, 288, 3639, 514, 508, 273, 3099, 18, 588, 3935, 3219, 7675, 588, 3024, 2622, 5621, 3639, 309, 261, 529, 18, 5839, 1190, 2932, 1546, 3719, 288, 5411, 508, 273, 508, 18, 28023, 12, 20, 16, 508, 18, 2469, 1435, 300, 404, 1769, 3639, 289, 3639, 19817, 1076, 3140, 273, 261, 54, 10340, 1076, 13, 3694, 3092, 12, 1106, 951, 9334, 10425, 5990, 972, 8863, 3639, 309, 261, 5990, 18, 291, 12616, 10756, 288, 5411, 604, 394, 19817, 19865, 503, 2932, 318, 13227, 1958, 8863, 3639, 289, 3639, 5612, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3140, 18, 588, 1782, 5621, 277, 27245, 288, 5411, 309, 261, 5990, 18, 4099, 12, 77, 2934, 869, 548, 7675, 14963, 12, 529, 3719, 288, 7734, 327, 924, 63, 77, 65, 273, 460, 31, 5411, 289, 3639, 289, 3639, 604, 394, 25473, 12, 9448, 16, 508, 397, 315, 353, 486, 1958, 3140, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 444, 12, 7937, 10340, 921, 460, 13, 288, 3639, 514, 508, 273, 3099, 18, 588, 3935, 3219, 7675, 588, 3024, 2622, 5621, 3639, 309, 261, 529, 18, 5839, 1190, 2932, 1546, 3719, 288, 5411, 508, 273, 508, 18, 28023, 12, 20, 16, 508, 18, 2469, 1435, 300, 404, 1769, 3639, 289, 3639, 19817, 1076, 3140, 273, 261, 54, 10340, 1076, 13, 3694, 3092, 12, 1106, 951, 9334, 10425, 5990, 972, 8863, 3639, 309, 261, 5990, 18, 291, 12616, 10756, 288, 5411, 604, 394, 19817, 19865, 503, 2932, 318, 13227, 1958, 8863, 3639, 289, 3639, 5612, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3140, 18, 588, 1782, 5621, 277, 27245, 288, 2 ]
case 190: break;
case 192: break; case 111: { eofclose = true; } case 193: break;
public Symbol next_token() throws java.io.IOException { int yyFlexInput; int yyFlexAction; int [] yyFlexTransL = YY_TRANS; int [] yyFlexRowMapL = YY_ROWMAP; int [] yyFlexAttrL = YY_ATTRIBUTE; int yyFlexPushbackPos_l = yyFlexPushbackPos = -1; boolean yy_was_pushback; while (true) { // cached fields: int yyFlexCurrentPosL; int yyFlexMarkedPosL = yyFlexMarkedPos; int yyFlexEndReadL = yyFlexEndRead; char [] yyFlexBufferL = yyFlexBuffer; char [] yyCMapL = YY_CMAP; boolean yyFlexR = false; for (yyFlexCurrentPosL = yyFlexStartRead; yyFlexCurrentPosL < yyFlexMarkedPosL; yyFlexCurrentPosL++) { switch (yyFlexBufferL[yyFlexCurrentPosL]) { case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyline++; yycolumn = 0; yyFlexR = false; break; case '\r': yyline++; yycolumn = 0; yyFlexR = true; break; case '\n': if (yyFlexR) yyFlexR = false; else { yyline++; yycolumn = 0; } break; default: yyFlexR = false; yycolumn++; } } if (yyFlexR) { // peek one character ahead if it is \n (if we have counted one line too much) boolean yyFlexPeek; if (yyFlexMarkedPosL < yyFlexEndReadL) yyFlexPeek = yyFlexBufferL[yyFlexMarkedPosL] == '\n'; else if (yyFlexAtEOF) yyFlexPeek = false; else { boolean eof = yyFlexRefill(); yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; if (eof) yyFlexPeek = false; else yyFlexPeek = yyFlexBufferL[yyFlexMarkedPosL] == '\n'; } if (yyFlexPeek) yyline--; } if (yyFlexMarkedPosL > yyFlexStartRead) { switch (yyFlexBufferL[yyFlexMarkedPosL-1]) { case '\n': case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyFlexAtBOL = true; break; case '\r': if (yyFlexMarkedPosL < yyFlexEndReadL) yyFlexAtBOL = yyFlexBufferL[yyFlexMarkedPosL] != '\n'; else if (yyFlexAtEOF) yyFlexAtBOL = false; else { boolean eof = yyFlexRefill(); yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; if (eof) yyFlexAtBOL = false; else yyFlexAtBOL = yyFlexBufferL[yyFlexMarkedPosL] != '\n'; } break; default: yyFlexAtBOL = false; } } yyFlexAction = -1; yyFlexCurrentPosL = yyFlexCurrentPos = yyFlexStartRead = yyFlexMarkedPosL; if (yyFlexAtBOL) yyFlexState = YY_LEXSTATE[yyFlexLexicalState+1]; else yyFlexState = YY_LEXSTATE[yyFlexLexicalState]; yy_was_pushback = false; yy_forAction: { while (true) { if (yyFlexCurrentPosL < yyFlexEndReadL) yyFlexInput = yyFlexBufferL[yyFlexCurrentPosL++]; else if (yyFlexAtEOF) { yyFlexInput = YYEOF; break yy_forAction; } else { // store back cached positions yyFlexCurrentPos = yyFlexCurrentPosL; yyFlexMarkedPos = yyFlexMarkedPosL; yyFlexPushbackPos = yyFlexPushbackPos_l; boolean eof = yyFlexRefill(); // get translated positions and possibly new buffer yyFlexCurrentPosL = yyFlexCurrentPos; yyFlexMarkedPosL = yyFlexMarkedPos; yyFlexBufferL = yyFlexBuffer; yyFlexEndReadL = yyFlexEndRead; yyFlexPushbackPos_l = yyFlexPushbackPos; if (eof) { yyFlexInput = YYEOF; break yy_forAction; } else { yyFlexInput = yyFlexBufferL[yyFlexCurrentPosL++]; } } int yyFlexNext = yyFlexTransL[ yyFlexRowMapL[yyFlexState] + yyCMapL[yyFlexInput] ]; if (yyFlexNext == -1) break yy_forAction; yyFlexState = yyFlexNext; int yyFlexAttributes = yyFlexAttrL[yyFlexState]; if ( (yyFlexAttributes & 2) == 2 ) yyFlexPushbackPos_l = yyFlexCurrentPosL; if ( (yyFlexAttributes & 1) == 1 ) { yy_was_pushback = (yyFlexAttributes & 4) == 4; yyFlexAction = yyFlexState; yyFlexMarkedPosL = yyFlexCurrentPosL; if ( (yyFlexAttributes & 8) == 8 ) break yy_forAction; } } } // store back cached position yyFlexMarkedPos = yyFlexMarkedPosL; if (yy_was_pushback) yyFlexMarkedPos = yyFlexPushbackPos_l; switch (yyFlexAction < 0 ? yyFlexAction : YY_ACTION[yyFlexAction]) { case 85: { return symbol(FULL); } case 141: break; case 92: { debugOption = true; } case 142: break; case 57: { return symbol(CHAR,new Character('\t')); } case 143: break; case 107: { throw new ScannerException(file,ErrorMessages.NO_BUFFER_SIZE, yyline); } case 144: break; case 91: { isYYEOF = true; } case 145: break; case 54: { return symbol(CHAR, new Character(yytext().charAt(1))); } case 146: break; case 11: { yybegin(REGEXP); } case 147: break; case 112: { isAbstract = true; } case 148: break; case 101: { initCode = conc(initCode,string); yybegin(MACROS); } case 149: break; case 45: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_NL, yyline, yycolumn); } case 150: break; case 12: { return symbol_countUpdate(RBRACE, null); } case 151: break; case 74: { return symbol(REPEAT, new Integer(yytext().substring(1).trim())); } case 152: break; case 55: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8))); } case 153: break; case 97: { columnCount = true; } case 154: break; case 122: { return symbol(LETTERCLASS); } case 155: break; case 15: { if (macroDefinition) { yybegin(MACROS); } return symbol(REGEXPEND); } case 156: break; case 77: { inclusive_states = true; yybegin(STATELIST); } case 157: break; case 56: { return symbol(CHAR,new Character('\n')); } case 158: break; case 81: { return symbol(MACROUSE, yytext().substring(1,yytext().length()-1)); } case 159: break; case 25: { return symbol(OPENBRACKET); } case 160: break; case 123: { throw new ScannerException(file,ErrorMessages.QUIL_INITTHROW, yyline); } case 161: break; case 126: { visibility = "private"; Skeleton.makePrivate(); } case 162: break; case 49: { commentbalance++; } case 163: break; case 9: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 164: break; case 68: { string.append('\n'); } case 165: break; case 33: { balance++; actionText.append('{'); } case 166: break; case 48: { if (commentbalance > 0) commentbalance--; else yybegin(nextState); } case 167: break; case 67: { string.append('\"'); } case 168: break; case 95: { tokenType = yytext().substring(6).trim(); } case 169: break; case 79: { return symbol_countUpdate(MACROUSE, makeMacroIdent()); } case 170: break; case 14: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 171: break; case 32: { if (balance > 0) { balance--; actionText.append('}'); } else { yybegin(REGEXPSTART); Action a = new Action(actionText.toString(), action_line); actions.addElement(a); return symbol(ACTION, a); } } case 172: break; case 108: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol_countUpdate(EOFRULE, null); } case 173: break; case 120: { isExtending = yytext().substring(9).trim(); } case 174: break; case 113: { cupSymbol = yytext().substring(8).trim(); if (cupCompatible) Out.warning(ErrorMessages.CUPSYM_AFTER_CUP, yyline); } case 175: break; case 63: { yybegin(REPEATEXP); return symbol(REPEAT, new Integer(yytext().trim().substring(1).trim())); } case 176: break; case 88: { packed = true; useRowMap = true; } case 177: break; case 27: { return symbol(PLUS); } case 178: break; case 99: { isPublic = true; } case 179: break; case 70: { string.append('\r'); } case 180: break; case 76: { inclusive_states = false; yybegin(STATELIST); } case 181: break; case 3: { userCode.append(yytext()); } case 182: break; case 19: { lookAheadUsed = true; return symbol(LOOKAHEAD); } case 183: break; case 110: { lexThrow = concExc(lexThrow,yytext().substring(8).trim()); } case 184: break; case 26: { return symbol(CLOSEBRACKET); } case 185: break; case 80: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 186: break; case 37: { throw new ScannerException(file,ErrorMessages.UNTERMINATED_STR, yyline, yycolumn); } case 187: break; case 111: { eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 188: break; case 69: { string.append('\t'); } case 189: break; case 23: { return symbol(BANG); } case 190: break; case 17: { yybegin(CHARCLASS); return symbol(OPENCLASS); } case 191: break; case 114: { cupDebug = true; } case 192: break; case 87: { charCount = true; } case 193: break; case 58: { return symbol(CHAR,new Character('\r')); } case 194: break; case 66: { string.append( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8)); } case 195: break; case 134: { scanErrorException = yytext().substring(11).trim(); } case 196: break; case 60: { return symbol(CHAR,new Character('\b')); } case 197: break; case 35: { yybegin(REGEXP); return symbol(MORETHAN); } case 198: break; case 132: { isImplementing = concExc(isImplementing, yytext().substring(12).trim()); } case 199: break; case 78: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 200: break; case 90: { isFinal = true; } case 201: break; case 137: { return symbol(UPPERCLASS); } case 202: break; case 46: { yybegin(REGEXP); return symbol(RBRACE); } case 203: break; case 51: { Out.warning(ErrorMessages.NOT_AT_BOL, yyline); yypushback(1); } case 204: break; case 28: { return symbol(QUESTION); } case 205: break; case 36: { string.append(yytext()); } case 206: break; case 135: { initThrow = concExc(initThrow,string); yybegin(MACROS); } case 207: break; case 140: { return symbol(JLETTERDIGITCLASS); } case 208: break; case 53: { nextState = REGEXPSTART; yybegin(COMMENT); } case 209: break; case 130: { eofThrow = concExc(eofThrow,string); yybegin(MACROS); } case 210: break; case 61: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(REGEXPEND); } case 211: break; case 138: { return symbol(LOWERCLASS); } case 212: break; case 38: { yybegin(nextState); return symbol(STRING, string.toString()); } case 213: break; case 82: { classCode = conc(classCode,string); yybegin(MACROS); } case 214: break; case 8: { return symbol(IDENT, yytext()); } case 215: break; case 43: { return symbol(HAT); } case 216: break; case 29: { lookAheadUsed = true; return symbol(DOLLAR); } case 217: break; case 124: { eofThrow = concExc(eofThrow,yytext().substring(10).trim()); } case 218: break; case 5: { states.insert(yytext(),inclusive_states); } case 219: break; case 84: { cupCompatible = true; isImplementing = concExc(isImplementing, "java_cup.runtime.Scanner"); if (functionName == null) functionName = "next_token"; if (tokenType == null) tokenType = "java_cup.runtime.Symbol"; if (eofVal == null) eofVal = "return new java_cup.runtime.Symbol("+cupSymbol+".EOF);"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 220: break; case 127: { standalone = true; isInteger = true; } case 221: break; case 4: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_CHAR, yyline, yycolumn); } case 222: break; case 47: { t.start(); yybegin(MACROS); macroDefinition = true; return symbol(USERCODE,userCode); } case 223: break; case 59: { return symbol(CHAR,new Character('\f')); } case 224: break; case 94: { eofCode = conc(eofCode,string); yybegin(MACROS); } case 225: break; case 65: { string.append(yytext().charAt(1)); } case 226: break; case 115: { caseless = true; } case 227: break; case 39: { throw new ScannerException(file,ErrorMessages.EOL_IN_CHARCLASS,yyline,yycolumn); } case 228: break; case 117: { return symbol(DIGITCLASS); } case 229: break; case 64: { if (macroDefinition) { yybegin(EATWSPNL); return symbol(BAR); } else { yybegin(REGEXPSTART); return symbol(NOACTION); } } case 230: break; case 30: { bolUsed = true; return symbol(HAT); } case 231: break; case 105: { throw new ScannerException(file,ErrorMessages.QUIL_CUPSYM, yyline); } case 232: break; case 102: { isIntWrap = true; } case 233: break; case 41: { if (balance > 0) balance--; else yybegin(REGEXP); return symbol(CLOSECLASS); } case 234: break; case 116: { bufferSize = Integer.parseInt(yytext().substring(8).trim()); } case 235: break; case 31: { actionText.append(yytext()); } case 236: break; case 86: { lineCount = true; } case 237: break; case 128: { throw new ScannerException(file,ErrorMessages.QUIL_SCANERROR, yyline); } case 238: break; case 104: { throw new ScannerException(file,ErrorMessages.QUIL_THROW, yyline); } case 239: break; case 83: { isInteger = true; } case 240: break; case 129: { return symbol(JLETTERCLASS); } case 241: break; case 98: { isInteger = true; if (eofVal == null) eofVal = "return 0;"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 242: break; case 18: { return symbol(STAR); } case 243: break; case 121: { throw new ScannerException(file,ErrorMessages.QUIL_EOFTHROW, yyline); } case 244: break; case 44: { return symbol(DASH); } case 245: break; case 106: { className = yytext().substring(7).trim(); } case 246: break; case 62: { nextState = REGEXP; yybegin(COMMENT); } case 247: break; case 136: { lexThrow = concExc(lexThrow,yytext().substring(12).trim()); } case 248: break; case 22: { return symbol(BAR); } case 249: break; case 125: { functionName = yytext().substring(10).trim(); } case 250: break; case 13: { yybegin(STATES); return symbol_countUpdate(LESSTHAN, null); } case 251: break; case 119: { eofVal = string.toString(); yybegin(MACROS); } case 252: break; case 73: { yypushback(1); yycolumn--; return symbol(CHAR, new Character(yytext().charAt(0))); } case 253: break; case 24: { return symbol(TILDE); } case 254: break; case 139: { lexThrow = concExc(lexThrow,string); yybegin(MACROS); } case 255: break; case 103: { notUnix = true; } case 256: break; case 89: { packed = false; useRowMap = true; } case 257: break; case 20: { string.setLength(0); nextState = REGEXP; yybegin(STRING_CONTENT); } case 258: break; case 2: { /* ignore */ } case 259: break; case 93: { return symbol(UNICODE); } case 260: break; case 16: { return symbol(POINT); } case 261: break; case 72: { string.append('\b'); } case 262: break; case 21: { yybegin(REGEXPSTART); return symbol(LBRACE); } case 263: break; case 131: { initThrow = concExc(initThrow,yytext().substring(11).trim()); } case 264: break; case 96: { packed = false; useRowMap = false; } case 265: break; case 7: { yybegin(MACROS); } case 266: break; case 75: { string.setLength(0); yybegin(COPY); } case 267: break; case 42: { string.setLength(0); nextState = CHARCLASS; yybegin(STRING_CONTENT); } case 268: break; case 118: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(EOFRULE); } case 269: break; case 52: { macroDefinition = false; yybegin(REGEXPSTART); return symbol(DELIMITER); } case 270: break; case 50: { nextState = MACROS; yybegin(COMMENT); } case 271: break; case 10: { yybegin(REGEXP); return symbol(EQUALS); } case 272: break; case 34: { return symbol(COMMA); } case 273: break; case 1: { return symbol(EOF); } case 274: break; case 100: { throw new ScannerException(file,ErrorMessages.EOF_WO_ACTION); } case 275: break; case 71: { string.append('\f'); } case 276: break; case 40: { balance++; return symbol(OPENCLASS); } case 277: break; case 133: { throw new ScannerException(file,ErrorMessages.QUIL_YYLEXTHROW, yyline); } case 278: break; case 109: { File f = new File(yytext().substring(9).trim()); if ( !f.canRead() ) throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); // check for cycle if (files.search(f) > 0) throw new ScannerException(file,ErrorMessages.FILE_CYCLE, yyline); try { yypushStream( new FileReader(f) ); files.push(file); file = f; Out.println("Including \""+file+"\""); } catch (FileNotFoundException e) { throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); } } case 279: break; case 6: { } case 280: break; default: if (yyFlexInput == YYEOF && yyFlexStartRead == yyFlexCurrentPos) { yyFlexAtEOF = true; yyFlexDoEOF(); switch (yyFlexLexicalState) { case STRING_CONTENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_STRING); } case 745: break; case MACROS: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 746: break; case STATELIST: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 747: break; case CHARCLASS: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 748: break; case JAVA_CODE: { throw new ScannerException(file,ErrorMessages.EOF_IN_ACTION, action_line-1); } case 749: break; case REPEATEXP: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 750: break; case COMMENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_COMMENT); } case 751: break; case STATES: { throw new ScannerException(file,ErrorMessages.EOF_IN_STATES); } case 752: break; case COPY: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 753: break; default: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else return symbol(EOF); } } } else { yyFlexScanError(YY_NO_MATCH); } } } }
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/9b61944465740d14ca2a4b7d70253b3cd65d7570/LexScan.java/clean/jflex/src/JFlex/LexScan.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8565, 1024, 67, 2316, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 9016, 19667, 1210, 31, 565, 509, 9016, 19667, 1803, 31, 565, 509, 5378, 9016, 19667, 1429, 48, 273, 1624, 61, 67, 16596, 31, 565, 509, 5378, 9016, 19667, 1999, 863, 48, 273, 1624, 61, 67, 11226, 8352, 31, 565, 509, 5378, 9016, 19667, 3843, 48, 273, 1624, 61, 67, 11616, 31, 565, 509, 9016, 19667, 7621, 823, 1616, 67, 80, 273, 9016, 19667, 7621, 823, 1616, 273, 300, 21, 31, 565, 1250, 9016, 67, 17416, 67, 6206, 823, 31, 565, 1323, 261, 3767, 13, 288, 1377, 368, 3472, 1466, 30, 1377, 509, 9016, 19667, 3935, 1616, 48, 31, 1377, 509, 9016, 19667, 21486, 1616, 48, 273, 9016, 19667, 21486, 1616, 31, 1377, 509, 9016, 19667, 1638, 1994, 48, 273, 9016, 19667, 1638, 1994, 31, 1377, 1149, 5378, 9016, 19667, 1892, 48, 273, 9016, 19667, 1892, 31, 1377, 1149, 5378, 9016, 39, 863, 48, 273, 1624, 61, 67, 39, 8352, 31, 1377, 1250, 9016, 19667, 54, 273, 629, 31, 1377, 364, 261, 6795, 19667, 3935, 1616, 48, 273, 9016, 19667, 1685, 1994, 31, 9016, 19667, 3935, 1616, 48, 411, 9016, 19667, 21486, 1616, 48, 31, 4766, 11794, 9016, 19667, 3935, 1616, 48, 27245, 288, 3639, 1620, 261, 6795, 19667, 1892, 48, 63, 6795, 19667, 3935, 1616, 48, 5717, 288, 3639, 648, 2337, 89, 3784, 38, 4278, 3639, 648, 2337, 89, 3784, 39, 4278, 3639, 648, 2337, 89, 713, 7140, 4278, 3639, 648, 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, 8565, 1024, 67, 2316, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 9016, 19667, 1210, 31, 565, 509, 9016, 19667, 1803, 31, 565, 509, 5378, 9016, 19667, 1429, 48, 273, 1624, 61, 67, 16596, 31, 565, 509, 5378, 9016, 19667, 1999, 863, 48, 273, 1624, 61, 67, 11226, 8352, 31, 565, 509, 5378, 9016, 19667, 3843, 48, 273, 1624, 61, 67, 11616, 31, 565, 509, 9016, 19667, 7621, 823, 1616, 67, 80, 273, 9016, 19667, 7621, 823, 1616, 273, 300, 21, 31, 565, 1250, 9016, 67, 17416, 67, 6206, 823, 31, 565, 1323, 261, 3767, 13, 288, 1377, 368, 3472, 1466, 30, 1377, 509, 9016, 19667, 3935, 1616, 48, 31, 1377, 509, 9016, 19667, 21486, 2 ]
public org.quickfix.field.DlvyInstType getDlvyInstType() throws FieldNotFound { org.quickfix.field.DlvyInstType value = new org.quickfix.field.DlvyInstType();
public quickfix.field.DlvyInstType getDlvyInstType() throws FieldNotFound { quickfix.field.DlvyInstType value = new quickfix.field.DlvyInstType();
public org.quickfix.field.DlvyInstType getDlvyInstType() throws FieldNotFound { org.quickfix.field.DlvyInstType value = new org.quickfix.field.DlvyInstType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Confirmation.java/buggy/src/java/src/quickfix/fix44/Confirmation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 40, 3070, 93, 10773, 559, 2343, 3070, 93, 10773, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 40, 3070, 93, 10773, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 40, 3070, 93, 10773, 559, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 40, 3070, 93, 10773, 559, 2343, 3070, 93, 10773, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 40, 3070, 93, 10773, 559, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 40, 3070, 93, 10773, 559, 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 ]
return hit.getServer() + ": Bug#: " + hit.getId() + ": " + hit.getDescription();
return hit.getRepository() + ": Bug#: " + hit.getId() + ": " + hit.getDescription();
public String getName(Object object) { if (object instanceof BugzillaOutlineNode) { BugzillaOutlineNode b = (BugzillaOutlineNode) object; return BugzillaTools.getName(b); } else if (object instanceof BugzillaReportNode) { BugzillaSearchHit hit = ((BugzillaReportNode) object).getHit(); return hit.getServer() + ": Bug#: " + hit.getId() + ": " + hit.getDescription(); } return ""; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/a40d59c8c922e2f9f545b74611db4be500580bb0/BugzillaStructureBridge.java/clean/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/BugzillaStructureBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1723, 12, 921, 733, 13, 288, 202, 202, 430, 261, 1612, 1276, 16907, 15990, 21805, 907, 13, 288, 1082, 202, 19865, 15990, 21805, 907, 324, 273, 261, 19865, 15990, 21805, 907, 13, 733, 31, 1082, 202, 2463, 16907, 15990, 10348, 18, 17994, 12, 70, 1769, 202, 202, 97, 469, 309, 261, 1612, 1276, 16907, 15990, 4820, 907, 13, 288, 1082, 202, 19865, 15990, 2979, 13616, 6800, 273, 14015, 19865, 15990, 4820, 907, 13, 733, 2934, 588, 13616, 5621, 1082, 202, 2463, 6800, 18, 588, 2081, 1435, 397, 6398, 16907, 7, 30, 315, 397, 6800, 18, 26321, 1435, 397, 6398, 315, 397, 6800, 18, 588, 3291, 5621, 202, 202, 97, 202, 202, 2463, 1408, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1723, 12, 921, 733, 13, 288, 202, 202, 430, 261, 1612, 1276, 16907, 15990, 21805, 907, 13, 288, 1082, 202, 19865, 15990, 21805, 907, 324, 273, 261, 19865, 15990, 21805, 907, 13, 733, 31, 1082, 202, 2463, 16907, 15990, 10348, 18, 17994, 12, 70, 1769, 202, 202, 97, 469, 309, 261, 1612, 1276, 16907, 15990, 4820, 907, 13, 288, 1082, 202, 19865, 15990, 2979, 13616, 6800, 273, 14015, 19865, 15990, 4820, 907, 13, 733, 2934, 588, 13616, 5621, 1082, 202, 2463, 6800, 18, 588, 2081, 1435, 397, 6398, 16907, 7, 30, 315, 397, 6800, 18, 26321, 1435, 397, 6398, 315, 397, 6800, 18, 588, 3291, 5621, 202, 202, 97, 202, 202, 2463, 1408, 31, 202, 2 ]
public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token op=null; Token bvc=null; String lc = null; String rvc = null; PatternDescr d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:486:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:486:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? opt_eol { following.push(FOLLOW_opt_eol_in_constraint1558); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:487:17: (fb= ID opt_eol ':' opt_eol )? int alt48=2; alt48 = dfa48.predict(input); switch (alt48) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:487:19: fb= ID opt_eol ':' opt_eol { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1566); following.push(FOLLOW_opt_eol_in_constraint1568); opt_eol(); following.pop(); match(input,30,FOLLOW_30_in_constraint1570); following.push(FOLLOW_opt_eol_in_constraint1572); opt_eol(); following.pop(); } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1582); if ( fb != null ) { //System.err.println( "fb: " + fb.getText() ); //System.err.println( " f: " + f.getText() ); d = new FieldBindingDescr( f.getText(), fb.getText() ); //System.err.println( "fbd: " + d ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } following.push(FOLLOW_opt_eol_in_constraint1592); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:500:33: (op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )? int alt50=2; int LA50_0 = input.LA(1); if ( (LA50_0>=40 && LA50_0<=47) ) { alt50=1; } else if ( LA50_0==EOL||(LA50_0>=22 && LA50_0<=23) ) { alt50=2; } else { NoViableAltException nvae = new NoViableAltException("500:33: (op= (\'==\'|\'>\'|\'>=\'|\'<\'|\'<=\'|\'!=\'|\'contains\'|\'matches\') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) )?", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:500:41: op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) { op=(Token)input.LT(1); if ( (input.LA(1)>=40 && input.LA(1)<=47) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint1600); throw mse; } following.push(FOLLOW_opt_eol_in_constraint1672); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:510:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint ) int alt49=4; switch ( input.LA(1) ) { case ID: int LA49_1 = input.LA(2); if ( LA49_1==48 ) { alt49=2; } else if ( LA49_1==EOL||(LA49_1>=22 && LA49_1<=23) ) { alt49=1; } else { NoViableAltException nvae = new NoViableAltException("510:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 49, 1, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: alt49=3; break; case 21: alt49=4; break; default: NoViableAltException nvae = new NoViableAltException("510:41: (bvc= ID | lc= enum_constraint | lc= literal_constraint | rvc= retval_constraint )", 49, 0, input); throw nvae; } switch (alt49) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:510:49: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1690); d = new BoundVariableDescr( f.getText(), op.getText(), bvc.getText() ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 2 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:517:49: lc= enum_constraint { following.push(FOLLOW_enum_constraint_in_constraint1715); lc=enum_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc, true ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 3 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:524:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint1747); lc=literal_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 4 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:530:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint1767); rvc=retval_constraint(); following.pop(); d = new ReturnValueDescr( f.getText(), op.getText(), rvc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; } } break; } following.push(FOLLOW_opt_eol_in_constraint1800); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
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, 918, 4954, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 12754, 33, 2011, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 31, 3639, 514, 9109, 273, 446, 31, 3639, 514, 436, 4227, 273, 446, 31, 1171, 202, 202, 3234, 16198, 302, 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, 24, 5292, 30, 4033, 30, 261, 2153, 67, 30951, 261, 19192, 33, 1599, 2153, 67, 30951, 3921, 2153, 67, 30951, 7851, 284, 33, 1599, 2153, 67, 30951, 261, 556, 33, 7707, 18920, 16637, 1870, 16637, 34, 2218, 16637, 32, 11, 16637, 32, 2218, 16637, 5, 2218, 16637, 12298, 11, 16637, 8436, 6134, 2153, 67, 30951, 261, 70, 4227, 33, 1599, 571, 9109, 33, 2792, 67, 13364, 571, 9109, 33, 7158, 67, 13364, 571, 436, 4227, 33, 5221, 67, 13364, 262, 7851, 2153, 67, 30951, 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, 24, 5292, 30, 4033, 30, 2153, 67, 30951, 261, 19192, 33, 1599, 2153, 67, 30951, 3921, 2153, 67, 30951, 7851, 284, 33, 1599, 2153, 67, 30951, 261, 556, 33, 7707, 18920, 16637, 1870, 16637, 34, 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, 4954, 12, 682, 6237, 13, 1216, 9539, 288, 6647, 3155, 12754, 33, 2011, 31, 3639, 3155, 284, 33, 2011, 31, 3639, 3155, 1061, 33, 2011, 31, 3639, 3155, 324, 4227, 33, 2011, 31, 3639, 514, 9109, 273, 446, 31, 3639, 514, 436, 4227, 273, 446, 31, 1171, 202, 202, 3234, 16198, 302, 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, 24, 5292, 30, 4033, 30, 261, 2153, 67, 30951, 261, 19192, 33, 1599, 2153, 67, 30951, 3921, 2153, 67, 30951, 7851, 284, 33, 1599, 2 ]
return new IntItem(Kind.REGISTER, reg, 0, 0); }
return new IntItem(Kind.REGISTER, reg, 0, 0); }
static IntItem createReg(Register reg) { return new IntItem(Kind.REGISTER, reg, 0, 0); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/55b12818040bb69b51502c4cd0f42118d2046977/IntItem.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/IntItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 3094, 1180, 752, 1617, 12, 3996, 960, 13, 288, 3639, 327, 394, 3094, 1180, 12, 5677, 18, 27511, 16, 960, 16, 374, 16, 374, 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, 760, 3094, 1180, 752, 1617, 12, 3996, 960, 13, 288, 3639, 327, 394, 3094, 1180, 12, 5677, 18, 27511, 16, 960, 16, 374, 16, 374, 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 ]
public PartSashContainer(String id) {
public PartSashContainer(String id,final WorkbenchPage page) {
public PartSashContainer(String id) { super(id); resizeListener = new ControlAdapter() { public void controlResized(ControlEvent e) { resizeSashes(parent.getClientArea()); } };}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/149f8c383010f7bf11f451d758b371d301008311/PartSashContainer.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartSashContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6393, 55, 961, 2170, 12, 780, 612, 13, 288, 202, 9565, 12, 350, 1769, 202, 15169, 2223, 273, 394, 8888, 4216, 1435, 288, 202, 202, 482, 918, 3325, 607, 1235, 12, 3367, 1133, 425, 13, 288, 1082, 202, 15169, 55, 7690, 12, 2938, 18, 588, 1227, 5484, 10663, 202, 202, 97, 202, 20451, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6393, 55, 961, 2170, 12, 780, 612, 13, 288, 202, 9565, 12, 350, 1769, 202, 15169, 2223, 273, 394, 8888, 4216, 1435, 288, 202, 202, 482, 918, 3325, 607, 1235, 12, 3367, 1133, 425, 13, 288, 1082, 202, 15169, 55, 7690, 12, 2938, 18, 588, 1227, 5484, 10663, 202, 202, 97, 202, 20451, 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 ]
}
protected void handleMouseEvent(MouseEvent ev) { Component comp = awtComponent.getComponentAt(ev.getPoint()); if(comp == null) comp = awtComponent; if (comp != null) { ComponentPeer peer = comp.getPeer(); if (awtComponent != comp && !comp.isLightweight() && peer instanceof SwingComponentPeer) { ev.translatePoint(comp.getX(), comp.getY()); ev.setSource(comp); ((SwingComponentPeer) peer).handleMouseEvent(ev); } } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b2a81be29c1d1dc9cadff27003717d18f8262c70/SwingContainerPeer.java/buggy/core/src/classpath/gnu/gnu/java/awt/peer/swing/SwingContainerPeer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1640, 9186, 1133, 12, 9186, 1133, 2113, 13, 225, 288, 565, 5435, 1161, 273, 8237, 1841, 18, 588, 1841, 861, 12, 14965, 18, 588, 2148, 10663, 565, 309, 12, 2919, 422, 446, 13, 1377, 1161, 273, 8237, 1841, 31, 565, 309, 261, 2919, 480, 446, 13, 1377, 288, 565, 5435, 6813, 4261, 273, 1161, 18, 588, 6813, 5621, 565, 309, 261, 2219, 88, 1841, 480, 1161, 597, 401, 2919, 18, 291, 12128, 4865, 1435, 597, 4261, 1276, 26145, 1841, 6813, 13, 1377, 288, 3639, 2113, 18, 13929, 2148, 12, 2919, 18, 588, 60, 9334, 1161, 18, 588, 61, 10663, 3639, 2113, 18, 542, 1830, 12, 2919, 1769, 3639, 14015, 6050, 310, 1841, 6813, 13, 4261, 2934, 4110, 9186, 1133, 12, 14965, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1640, 9186, 1133, 12, 9186, 1133, 2113, 13, 225, 288, 565, 5435, 1161, 273, 8237, 1841, 18, 588, 1841, 861, 12, 14965, 18, 588, 2148, 10663, 565, 309, 12, 2919, 422, 446, 13, 1377, 1161, 273, 8237, 1841, 31, 565, 309, 261, 2919, 480, 446, 13, 1377, 288, 565, 5435, 6813, 4261, 273, 1161, 18, 588, 6813, 5621, 565, 309, 261, 2219, 88, 1841, 480, 1161, 597, 401, 2919, 18, 291, 12128, 4865, 1435, 597, 4261, 1276, 26145, 1841, 6813, 13, 1377, 288, 3639, 2113, 18, 13929, 2148, 12, 2919, 18, 588, 60, 9334, 1161, 18, 588, 61, 10663, 3639, 2113, 18, 542, 1830, 12, 2919, 1769, 3639, 14015, 6050, 310, 1841, 6813, 13, 4261, 2934, 2 ]
return retval.toString(); }
} return retval.toString(); }
protected static final String addEscapes(String str) { StringBuffer retval = new StringBuffer(); char ch; for (int i = 0; i < str.length(); i++) { switch (str.charAt(i)) { case 0: continue; case '\b': retval.append("\\b"); continue; case '\t': retval.append("\\t"); continue; case '\n': retval.append("\\n"); continue; case '\f': retval.append("\\f"); continue; case '\r': retval.append("\\r"); continue; case '\"': retval.append("\\\""); continue; case '\'': retval.append("\\\'"); continue; case '\\': retval.append("\\\\"); continue; default: if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { String s = "0000" + Integer.toString(ch, 16); retval.append("\\u" + s.substring(s.length() - 4, s.length())); } else { retval.append(ch); } continue; } } return retval.toString(); }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/TokenMgrError.java/clean/pmd/src/net/sourceforge/pmd/ast/TokenMgrError.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 727, 514, 527, 30092, 12, 780, 609, 13, 288, 3639, 6674, 5221, 273, 394, 6674, 5621, 3639, 1149, 462, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 609, 18, 2469, 5621, 277, 27245, 288, 5411, 1620, 261, 701, 18, 3001, 861, 12, 77, 3719, 288, 7734, 648, 374, 30, 10792, 1324, 31, 7734, 648, 2337, 70, 4278, 10792, 5221, 18, 6923, 2932, 1695, 70, 8863, 10792, 1324, 31, 7734, 648, 2337, 88, 4278, 10792, 5221, 18, 6923, 2932, 1695, 88, 8863, 10792, 1324, 31, 7734, 648, 2337, 82, 4278, 10792, 5221, 18, 6923, 2932, 1695, 82, 8863, 10792, 1324, 31, 7734, 648, 2337, 74, 4278, 10792, 5221, 18, 6923, 2932, 1695, 74, 8863, 10792, 1324, 31, 7734, 648, 2337, 86, 4278, 10792, 5221, 18, 6923, 2932, 1695, 86, 8863, 10792, 1324, 31, 7734, 648, 2337, 6, 4278, 10792, 5221, 18, 6923, 2932, 1695, 8530, 1769, 10792, 1324, 31, 7734, 648, 14118, 4278, 10792, 5221, 18, 6923, 2932, 1695, 3730, 8863, 10792, 1324, 31, 7734, 648, 3718, 4278, 10792, 5221, 18, 6923, 2932, 13011, 8863, 10792, 1324, 31, 7734, 805, 30, 10792, 309, 14015, 343, 273, 609, 18, 3001, 861, 12, 77, 3719, 411, 374, 92, 3462, 747, 462, 405, 374, 92, 27, 73, 13, 288, 13491, 514, 272, 273, 315, 2787, 6, 397, 2144, 18, 10492, 12, 343, 16, 2872, 1769, 13491, 5221, 18, 6923, 2932, 1695, 89, 6, 397, 272, 18, 28023, 12, 87, 18, 2469, 1435, 300, 1059, 16, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 760, 727, 514, 527, 30092, 12, 780, 609, 13, 288, 3639, 6674, 5221, 273, 394, 6674, 5621, 3639, 1149, 462, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 609, 18, 2469, 5621, 277, 27245, 288, 5411, 1620, 261, 701, 18, 3001, 861, 12, 77, 3719, 288, 7734, 648, 374, 30, 10792, 1324, 31, 7734, 648, 2337, 70, 4278, 10792, 5221, 18, 6923, 2932, 1695, 70, 8863, 10792, 1324, 31, 7734, 648, 2337, 88, 4278, 10792, 5221, 18, 6923, 2932, 1695, 88, 8863, 10792, 1324, 31, 7734, 648, 2337, 82, 4278, 10792, 5221, 18, 6923, 2932, 1695, 82, 8863, 10792, 1324, 31, 7734, 648, 2337, 74, 4278, 10792, 5221, 18, 6923, 2932, 1695, 74, 8863, 2 ]
if (n.nextSibling != null) next = n.nextSibling; else if (n.parent != null && n.parent.isComplete()) { next = n.parent;
if (nextSibling != null) next = nextSibling; else if (parent != null && parent.isComplete()) { next = parent;
private void updateNextNode() { if (next instanceof OMElement && !visited) { OMElement e = (OMElement) next; if (e.getFirstChild() != null) next = e.getFirstChild(); else if (e.isComplete()) backtracked = true; else next = null; } else { //todo this is unsuitable OMNodeImpl n = (OMNodeImpl) next; if (n.nextSibling != null) next = n.nextSibling; else if (n.parent != null && n.parent.isComplete()) { next = n.parent; backtracked = true; } else next = null; } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/9bb706b28efdbf366ee24616890f4088ae51b043/OMNavigator.java/buggy/dev/scratch/prototype2/src/java/org/apache/axis/impl/llom/OMNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 2134, 907, 1435, 288, 3639, 309, 261, 4285, 1276, 531, 12310, 597, 401, 30129, 13, 288, 5411, 531, 12310, 425, 273, 261, 51, 12310, 13, 1024, 31, 5411, 309, 261, 73, 18, 588, 3759, 1763, 1435, 480, 446, 13, 7734, 1024, 273, 425, 18, 588, 3759, 1763, 5621, 5411, 469, 309, 261, 73, 18, 291, 6322, 10756, 7734, 1473, 31420, 273, 638, 31, 5411, 469, 7734, 1024, 273, 446, 31, 3639, 289, 469, 288, 5411, 368, 9012, 333, 353, 16804, 89, 9085, 5411, 28839, 907, 2828, 290, 273, 261, 1872, 907, 2828, 13, 1024, 31, 5411, 309, 261, 82, 18, 4285, 10291, 480, 446, 13, 7734, 1024, 273, 290, 18, 4285, 10291, 31, 5411, 469, 309, 261, 82, 18, 2938, 480, 446, 597, 290, 18, 2938, 18, 291, 6322, 10756, 288, 7734, 1024, 273, 290, 18, 2938, 31, 7734, 1473, 31420, 273, 638, 31, 5411, 289, 469, 7734, 1024, 273, 446, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 2134, 907, 1435, 288, 3639, 309, 261, 4285, 1276, 531, 12310, 597, 401, 30129, 13, 288, 5411, 531, 12310, 425, 273, 261, 51, 12310, 13, 1024, 31, 5411, 309, 261, 73, 18, 588, 3759, 1763, 1435, 480, 446, 13, 7734, 1024, 273, 425, 18, 588, 3759, 1763, 5621, 5411, 469, 309, 261, 73, 18, 291, 6322, 10756, 7734, 1473, 31420, 273, 638, 31, 5411, 469, 7734, 1024, 273, 446, 31, 3639, 289, 469, 288, 5411, 368, 9012, 333, 353, 16804, 89, 9085, 5411, 28839, 907, 2828, 290, 273, 261, 1872, 907, 2828, 13, 1024, 31, 5411, 309, 261, 82, 18, 4285, 10291, 480, 446, 13, 7734, 1024, 273, 290, 18, 4285, 10291, 31, 5411, 469, 2 ]
} catch(Exception io_e) {}
} catch(Exception io_e) { System.err.println ("Exception in writeResponse: "+io_e); }
void writeResponse (HttpServletResponse res, ResponseTrans trans, Cookie[] cookies, String protocol) { for (int i = 0; i < trans.countCookies(); i++) try { Cookie c = new Cookie(trans.getKeyAt(i), trans.getValueAt(i)); c.setPath ("/"); if (cookieDomain != null) c.setDomain (cookieDomain); int expires = trans.getDaysAt(i); if (expires > 0) c.setMaxAge(expires * 60*60*24); // Cookie time to live, days -> seconds res.addCookie(c); } catch (Exception ign) {} if (trans.getRedirect () != null) { try { res.sendRedirect(trans.getRedirect ()); } catch(Exception io_e) {} } else { if (!trans.cache || ! caching) { // Disable caching of response. if (protocol == null || !protocol.endsWith ("1.1")) res.setHeader ("Pragma", "no-cache"); // for HTTP 1.0 else res.setHeader ("Cache-Control", "no-cache"); // for HTTP 1.1 } if ( trans.realm!=null ) res.setHeader( "WWW-Authenticate", "Basic realm=\"" + trans.realm + "\"" ); if (trans.status > 0) res.setStatus (trans.status); // if we don't know which charset to use for parsing HTTP params, // take the one from the response. This usually works because // browsers send parrameters in the same encoding as the page // containing the form has. Problem is we can do this only per servlet, // not per session or even per page, which would produce too much overhead if (defaultEncoding == null) defaultEncoding = trans.charset; res.setContentLength (trans.getContentLength ()); res.setContentType (trans.getContentType ()); try { OutputStream out = res.getOutputStream (); out.write (trans.getContent ()); out.close (); } catch(Exception io_e) {} } }
3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/c900b694820a4dfb769a406d62d837a551d5d220/AbstractServletClient.java/clean/src/helma/servlet/AbstractServletClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1045, 1064, 261, 2940, 29910, 400, 16, 2306, 1429, 906, 16, 10201, 8526, 7237, 16, 514, 1771, 13, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 906, 18, 1883, 16089, 5621, 277, 27245, 775, 288, 202, 565, 10201, 276, 273, 394, 10201, 12, 2338, 18, 588, 653, 861, 12, 77, 3631, 906, 18, 24805, 861, 12, 77, 10019, 202, 565, 276, 18, 542, 743, 7566, 4898, 1769, 202, 565, 309, 261, 8417, 3748, 480, 446, 13, 202, 3639, 276, 18, 542, 3748, 261, 8417, 3748, 1769, 202, 565, 509, 7368, 273, 906, 18, 588, 9384, 861, 12, 77, 1769, 202, 565, 309, 261, 12431, 405, 374, 13, 202, 3639, 276, 18, 542, 2747, 9692, 12, 12431, 380, 4752, 14, 4848, 14, 3247, 1769, 282, 368, 10201, 813, 358, 8429, 16, 4681, 317, 3974, 202, 565, 400, 18, 1289, 6151, 12, 71, 1769, 202, 97, 1044, 261, 503, 9750, 13, 2618, 202, 430, 261, 2338, 18, 588, 5961, 1832, 480, 446, 13, 288, 202, 565, 775, 288, 202, 3639, 400, 18, 4661, 5961, 12, 2338, 18, 588, 5961, 1832, 1769, 202, 565, 289, 1044, 12, 503, 2527, 67, 73, 13, 2618, 202, 97, 469, 288, 202, 565, 309, 16051, 2338, 18, 2493, 747, 401, 11393, 13, 288, 202, 3639, 368, 10639, 11393, 434, 766, 18, 202, 3639, 309, 261, 8373, 422, 446, 747, 401, 8373, 18, 5839, 1190, 7566, 21, 18, 21, 6, 3719, 202, 5411, 400, 18, 542, 1864, 7566, 2050, 9454, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1045, 1064, 261, 2940, 29910, 400, 16, 2306, 1429, 906, 16, 10201, 8526, 7237, 16, 514, 1771, 13, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 906, 18, 1883, 16089, 5621, 277, 27245, 775, 288, 202, 565, 10201, 276, 273, 394, 10201, 12, 2338, 18, 588, 653, 861, 12, 77, 3631, 906, 18, 24805, 861, 12, 77, 10019, 202, 565, 276, 18, 542, 743, 7566, 4898, 1769, 202, 565, 309, 261, 8417, 3748, 480, 446, 13, 202, 3639, 276, 18, 542, 3748, 261, 8417, 3748, 1769, 202, 565, 509, 7368, 273, 906, 18, 588, 9384, 861, 12, 77, 1769, 202, 565, 309, 261, 12431, 405, 374, 13, 202, 3639, 276, 18, 542, 2747, 9692, 2 ]
buffer.append("=[;");
buffer.append("=[");
public static void addListInit(OutboundVariable ov, List ovs) { String varname = ov.getAssignCode(); StringBuffer buffer = new StringBuffer(); String init = getInitCodes(ovs); if (init.length() == 0) { // Declare ourselves so recurrsion works buffer.append("var "); //$NON-NLS-1$ buffer.append(varname); buffer.append("=[;"); //$NON-NLS-1$ // Declare the non-recursive parts to the list boolean first = true; for (int i = 0; i < ovs.size(); i++) { OutboundVariable nested = (OutboundVariable) ovs.get(i); if (!first) { buffer.append(','); } if (nested.getAssignCode() == varname) { // We'll fill it in later buffer.append("null"); //$NON-NLS-1$ } else { ovs.set(i, null); buffer.append(nested.getAssignCode()); } first = false; } buffer.append("];"); //$NON-NLS-1$ } else { // Declare ourselves so recurrsion works buffer.append("var "); //$NON-NLS-1$ buffer.append(varname); buffer.append("=[];"); //$NON-NLS-1$ // First we output all the init code buffer.append(init); // Declare the non-recursive parts to the list buffer.append(varname); buffer.append('='); buffer.append(varname); buffer.append(".concat(["); //$NON-NLS-1$ boolean first = true; for (int i = 0; i < ovs.size(); i++) { OutboundVariable nested = (OutboundVariable) ovs.get(i); if (!first) { buffer.append(','); } if (nested.getAssignCode() == varname) { // We'll fill it in later buffer.append("null"); //$NON-NLS-1$ } else { ovs.set(i, null); buffer.append(nested.getAssignCode()); } first = false; } buffer.append("]);"); //$NON-NLS-1$ } // And now the recursive parts for (int i = 0; i < ovs.size(); i++) { OutboundVariable nested = (OutboundVariable) ovs.get(i); if (nested != null) { buffer.append(varname); buffer.append('['); buffer.append(i); buffer.append("]="); //$NON-NLS-1$ buffer.append(nested.getAssignCode()); buffer.append(';'); } } buffer.append("\r\n"); //$NON-NLS-1$ ov.setInitCode(buffer.toString()); }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/96a8b0cae6afc3b49496fbcce7297f550146f5fb/ConverterUtil.java/clean/java/uk/ltd/getahead/dwr/convert/ConverterUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 527, 682, 2570, 12, 17873, 3092, 23094, 16, 987, 27006, 13, 565, 288, 3639, 514, 15434, 273, 23094, 18, 588, 4910, 1085, 5621, 3639, 6674, 1613, 273, 394, 6674, 5621, 3639, 514, 1208, 273, 26458, 6295, 12, 1527, 87, 1769, 3639, 309, 261, 2738, 18, 2469, 1435, 422, 374, 13, 3639, 288, 5411, 368, 16110, 834, 19801, 1427, 8112, 5453, 285, 6330, 5411, 1613, 18, 6923, 2932, 1401, 315, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 1613, 18, 6923, 12, 1401, 529, 1769, 5411, 1613, 18, 6923, 2932, 22850, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 368, 16110, 834, 326, 1661, 17, 10543, 2140, 358, 326, 666, 5411, 1250, 1122, 273, 638, 31, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 27006, 18, 1467, 5621, 277, 27245, 5411, 288, 7734, 2976, 3653, 3092, 4764, 273, 261, 17873, 3092, 13, 27006, 18, 588, 12, 77, 1769, 7734, 309, 16051, 3645, 13, 7734, 288, 10792, 1613, 18, 6923, 12, 2187, 8284, 7734, 289, 7734, 309, 261, 12985, 18, 588, 4910, 1085, 1435, 422, 15434, 13, 7734, 288, 10792, 368, 1660, 5614, 3636, 518, 316, 5137, 10792, 1613, 18, 6923, 2932, 2011, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 7734, 289, 7734, 469, 7734, 288, 10792, 27006, 18, 542, 12, 77, 16, 446, 1769, 10792, 1613, 18, 6923, 12, 12985, 18, 588, 4910, 1085, 10663, 7734, 289, 7734, 1122, 273, 629, 31, 5411, 289, 5411, 1613, 18, 6923, 2932, 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, 918, 527, 682, 2570, 12, 17873, 3092, 23094, 16, 987, 27006, 13, 565, 288, 3639, 514, 15434, 273, 23094, 18, 588, 4910, 1085, 5621, 3639, 6674, 1613, 273, 394, 6674, 5621, 3639, 514, 1208, 273, 26458, 6295, 12, 1527, 87, 1769, 3639, 309, 261, 2738, 18, 2469, 1435, 422, 374, 13, 3639, 288, 5411, 368, 16110, 834, 19801, 1427, 8112, 5453, 285, 6330, 5411, 1613, 18, 6923, 2932, 1401, 315, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 1613, 18, 6923, 12, 1401, 529, 1769, 5411, 1613, 18, 6923, 2932, 22850, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 368, 16110, 834, 326, 1661, 17, 10543, 2140, 358, 326, 666, 5411, 1250, 1122, 273, 2 ]
return super.execMethod(methodId, f, cx, scope, thisObj, args);
return super.execMethod(f, cx, scope, thisObj, args);
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { double x; switch (methodId) { case Id_toSource: return "Math"; case Id_abs: x = ScriptRuntime.toNumber(args, 0); // abs(-0.0) should be 0.0, but -0.0 < 0.0 == false x = (x == 0.0) ? 0.0 : (x < 0.0) ? -x : x; break; case Id_acos: case Id_asin: x = ScriptRuntime.toNumber(args, 0); if (x == x && -1.0 <= x && x <= 1.0) { x = (methodId == Id_acos) ? Math.acos(x) : Math.asin(x); } else { x = Double.NaN; } break; case Id_atan: x = ScriptRuntime.toNumber(args, 0); x = Math.atan(x); break; case Id_atan2: x = ScriptRuntime.toNumber(args, 0); x = Math.atan2(x, ScriptRuntime.toNumber(args, 1)); break; case Id_ceil: x = ScriptRuntime.toNumber(args, 0); x = Math.ceil(x); break; case Id_cos: x = ScriptRuntime.toNumber(args, 0); x = (x == Double.POSITIVE_INFINITY || x == Double.NEGATIVE_INFINITY) ? Double.NaN : Math.cos(x); break; case Id_exp: x = ScriptRuntime.toNumber(args, 0); x = (x == Double.POSITIVE_INFINITY) ? x : (x == Double.NEGATIVE_INFINITY) ? 0.0 : Math.exp(x); break; case Id_floor: x = ScriptRuntime.toNumber(args, 0); x = Math.floor(x); break; case Id_log: x = ScriptRuntime.toNumber(args, 0); // Java's log(<0) = -Infinity; we need NaN x = (x < 0) ? Double.NaN : Math.log(x); break; case Id_max: case Id_min: x = (methodId == Id_max) ? Double.NEGATIVE_INFINITY : Double.POSITIVE_INFINITY; for (int i = 0; i != args.length; ++i) { double d = ScriptRuntime.toNumber(args[i]); if (d != d) { x = d; // NaN break; } if (methodId == Id_max) { // if (x < d) x = d; does not work due to -0.0 >= +0.0 x = Math.max(x, d); } else { x = Math.min(x, d); } } break; case Id_pow: x = ScriptRuntime.toNumber(args, 0); x = js_pow(x, ScriptRuntime.toNumber(args, 1)); break; case Id_random: x = Math.random(); break; case Id_round: x = ScriptRuntime.toNumber(args, 0); if (x == x && x != Double.POSITIVE_INFINITY && x != Double.NEGATIVE_INFINITY) { // Round only finite x long l = Math.round(x); if (l != 0) { x = (double)l; } else { // We must propagate the sign of d into the result if (x < 0.0) { x = ScriptRuntime.negativeZero; } else if (x != 0.0) { x = 0.0; } } } break; case Id_sin: x = ScriptRuntime.toNumber(args, 0); x = (x == Double.POSITIVE_INFINITY || x == Double.NEGATIVE_INFINITY) ? Double.NaN : Math.sin(x); break; case Id_sqrt: x = ScriptRuntime.toNumber(args, 0); x = Math.sqrt(x); break; case Id_tan: x = ScriptRuntime.toNumber(args, 0); x = Math.tan(x); break; default: return super.execMethod(methodId, f, cx, scope, thisObj, args); } return wrap_double(x); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeMath.java/buggy/js/rhino/src/org/mozilla/javascript/NativeMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1645, 619, 31, 3639, 1620, 261, 2039, 548, 13, 288, 5411, 648, 3124, 67, 869, 1830, 30, 7734, 327, 315, 10477, 14432, 5411, 648, 3124, 67, 5113, 30, 7734, 619, 273, 7739, 5576, 18, 869, 1854, 12, 1968, 16, 374, 1769, 7734, 368, 2417, 19236, 20, 18, 20, 13, 1410, 506, 374, 18, 20, 16, 1496, 300, 20, 18, 20, 411, 374, 18, 20, 422, 629, 7734, 619, 273, 261, 92, 422, 374, 18, 20, 13, 692, 374, 18, 20, 294, 261, 92, 411, 374, 18, 20, 13, 692, 300, 92, 294, 619, 31, 7734, 898, 31, 5411, 648, 3124, 67, 1077, 538, 30, 5411, 648, 3124, 67, 345, 267, 30, 7734, 619, 273, 7739, 5576, 18, 869, 1854, 12, 1968, 16, 374, 1769, 7734, 309, 261, 92, 422, 619, 597, 300, 21, 18, 20, 1648, 619, 597, 619, 1648, 404, 18, 20, 13, 288, 10792, 619, 273, 261, 2039, 548, 422, 3124, 67, 1077, 538, 13, 692, 2361, 18, 1077, 538, 12, 92, 13, 294, 2361, 18, 345, 267, 12, 92, 1769, 7734, 289, 469, 288, 10792, 619, 273, 3698, 18, 21172, 31, 7734, 289, 7734, 898, 31, 5411, 648, 3124, 67, 270, 304, 30, 7734, 619, 273, 7739, 5576, 18, 869, 1854, 12, 1968, 16, 374, 1769, 7734, 619, 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, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1645, 619, 31, 3639, 1620, 261, 2039, 548, 13, 288, 5411, 648, 3124, 67, 869, 1830, 30, 7734, 327, 315, 10477, 14432, 5411, 648, 3124, 67, 5113, 30, 7734, 619, 273, 7739, 5576, 18, 869, 1854, 12, 1968, 16, 374, 1769, 7734, 368, 2417, 19236, 20, 18, 20, 13, 1410, 506, 374, 18, 20, 16, 1496, 300, 20, 18, 20, 411, 374, 18, 20, 422, 629, 7734, 619, 273, 261, 92, 422, 374, 18, 20, 13, 692, 374, 18, 20, 294, 261, 92, 2 ]
passDown(evt); break;
} passDown(evt); break;
public void down(Event evt) { Message msg; long time_to_wait, start_time; switch(evt.getType()) { case Event.FIND_INITIAL_MBRS: // sent by GMS layer, pass up a GET_MBRS_OK event initial_members.removeAllElements(); msg=new Message(null, null, null); msg.putHeader(getName(), new PingHeader(PingHeader.GET_MBRS_REQ, null)); synchronized(members) { for(Iterator it=initial_hosts.iterator(); it.hasNext();) { Address addr=(Address)it.next(); if(members.contains(addr)) { ; // continue; // changed as suggested by Mark Kopec } msg.setDest(addr); if(log.isTraceEnabled()) log.trace("[FIND_INITIAL_MBRS] sending PING request to " + msg.getDest()); passDown(new Event(Event.MSG, msg.copy())); } } // 2. Wait 'timeout' ms or until 'num_initial_members' have been retrieved synchronized(initial_members) { start_time=System.currentTimeMillis(); time_to_wait=timeout; while(initial_members.size() < num_initial_members && time_to_wait > 0) { try { initial_members.wait(time_to_wait); } catch(Exception e) { } time_to_wait-=System.currentTimeMillis() - start_time; } } if(log.isTraceEnabled()) log.trace("[FIND_INITIAL_MBRS] initial members are " + initial_members); // 3. Send response passUp(new Event(Event.FIND_INITIAL_MBRS_OK, initial_members)); break; case Event.TMP_VIEW: case Event.VIEW_CHANGE: Vector tmp; if((tmp=((View)evt.getArg()).getMembers()) != null) { synchronized(members) { members.clear(); members.addAll(tmp); members_set.clear(); members_set.addAll(tmp); } } passDown(evt); break; case Event.BECOME_SERVER: // called after client has joined and is fully working group member passDown(evt); is_server=true; break; case Event.CONNECT: group_addr=(String) evt.getArg(); passDown(evt); break; case Event.DISCONNECT: passDown(evt); break; default: passDown(evt); // Pass on to the layer below us break; } }
47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/ed05366cfa88294bcc8bfb8d8526d444ee01d3fb/TCPPING.java/clean/src/org/jgroups/protocols/TCPPING.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2588, 12, 1133, 6324, 13, 288, 3639, 2350, 1234, 31, 3639, 1525, 813, 67, 869, 67, 7048, 16, 787, 67, 957, 31, 3639, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 5411, 648, 2587, 18, 42, 2356, 67, 28497, 67, 49, 7192, 55, 30, 282, 368, 3271, 635, 611, 3537, 3018, 16, 1342, 731, 279, 4978, 67, 49, 7192, 55, 67, 3141, 871, 7734, 2172, 67, 7640, 18, 4479, 1595, 3471, 5621, 7734, 1234, 33, 2704, 2350, 12, 2011, 16, 446, 16, 446, 1769, 7734, 1234, 18, 458, 1864, 12, 17994, 9334, 394, 18214, 1864, 12, 17223, 1864, 18, 3264, 67, 49, 7192, 55, 67, 20373, 16, 446, 10019, 7734, 3852, 12, 7640, 13, 288, 10792, 364, 12, 3198, 518, 33, 6769, 67, 11588, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 13491, 5267, 3091, 28657, 1887, 13, 305, 18, 4285, 5621, 13491, 309, 12, 7640, 18, 12298, 12, 4793, 3719, 288, 21821, 274, 368, 1324, 31, 368, 3550, 487, 22168, 635, 6622, 1475, 83, 705, 13491, 289, 13491, 1234, 18, 542, 9378, 12, 4793, 1769, 13491, 309, 12, 1330, 18, 291, 3448, 1526, 10756, 613, 18, 5129, 2932, 63, 42, 2356, 67, 28497, 67, 49, 7192, 55, 65, 5431, 453, 1360, 590, 358, 315, 397, 1234, 18, 588, 9378, 10663, 13491, 1342, 4164, 12, 2704, 2587, 12, 1133, 18, 11210, 16, 1234, 18, 3530, 1435, 10019, 10792, 289, 7734, 289, 7734, 368, 576, 18, 5838, 296, 4538, 11, 4086, 578, 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, 2588, 12, 1133, 6324, 13, 288, 3639, 2350, 1234, 31, 3639, 1525, 813, 67, 869, 67, 7048, 16, 787, 67, 957, 31, 3639, 1620, 12, 73, 11734, 18, 588, 559, 10756, 288, 5411, 648, 2587, 18, 42, 2356, 67, 28497, 67, 49, 7192, 55, 30, 282, 368, 3271, 635, 611, 3537, 3018, 16, 1342, 731, 279, 4978, 67, 49, 7192, 55, 67, 3141, 871, 7734, 2172, 67, 7640, 18, 4479, 1595, 3471, 5621, 7734, 1234, 33, 2704, 2350, 12, 2011, 16, 446, 16, 446, 1769, 7734, 1234, 18, 458, 1864, 12, 17994, 9334, 394, 18214, 1864, 12, 17223, 1864, 18, 3264, 67, 49, 7192, 55, 67, 20373, 16, 446, 10019, 7734, 3852, 12, 7640, 13, 288, 2 ]
result[0] = PASS;
result[0] = MARK;
public static Action[] spamValues() { Action[] result = new Action[SPAM_ACTION_CT]; result[0] = PASS; result[1] = BLOCK; result[2] = BLOCK_AND_WARN_SENDER; result[3] = BLOCK_AND_WARN_RECEIVER; result[4] = BLOCK_AND_WARN_BOTH; return result; }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/86a2dd0f36f375f9bcbee1237fb2c565c37a9eba/Action.java/buggy/tran/email/main/com/metavize/tran/email/Action.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 4382, 8526, 24824, 1972, 1435, 565, 288, 3639, 4382, 8526, 563, 273, 394, 4382, 63, 3118, 2192, 67, 12249, 67, 1268, 15533, 3639, 563, 63, 20, 65, 273, 20503, 31, 3639, 563, 63, 21, 65, 273, 14073, 31, 3639, 563, 63, 22, 65, 273, 14073, 67, 4307, 67, 27999, 67, 1090, 18556, 31, 3639, 563, 63, 23, 65, 273, 14073, 67, 4307, 67, 27999, 67, 27086, 45, 2204, 31, 3639, 563, 63, 24, 65, 273, 14073, 67, 4307, 67, 27999, 67, 38, 18307, 31, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 4382, 8526, 24824, 1972, 1435, 565, 288, 3639, 4382, 8526, 563, 273, 394, 4382, 63, 3118, 2192, 67, 12249, 67, 1268, 15533, 3639, 563, 63, 20, 65, 273, 20503, 31, 3639, 563, 63, 21, 65, 273, 14073, 31, 3639, 563, 63, 22, 65, 273, 14073, 67, 4307, 67, 27999, 67, 1090, 18556, 31, 3639, 563, 63, 23, 65, 273, 14073, 67, 4307, 67, 27999, 67, 27086, 45, 2204, 31, 3639, 563, 63, 24, 65, 273, 14073, 67, 4307, 67, 27999, 67, 38, 18307, 31, 3639, 327, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int x = curPos.x + textArea.getX(); int y = curPos.y + textArea.getY();
int x = curPos.x + textArea.getX() + (int)(textArea.getFontInfo( ).getFontSize( ) * 70); int y = curPos.y + textArea.getY() + (int)(textArea.getFontInfo( ).getFontSize( ) * 100);
public void visitText(ITextArea textArea) { ContainerPosition curPos; if ( !containerStack.isEmpty() ) curPos = (ContainerPosition)containerStack.peek(); else curPos = new ContainerPosition(0, 0); int x = curPos.x + textArea.getX(); int y = curPos.y + textArea.getY(); drawTextAt(textArea, x, y, cb, pageHeight); //Checks if itself is the destination of a bookmark. //if so, make a bookmark; if not, do nothing makeBookmark(textArea, curPos); //handle hyper-link action handleHyperlinkAction(textArea, curPos); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/eccebe9e6154fd92f32a9af020eb8cc49086c031/PDFEmitter.java/clean/engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 1528, 12, 1285, 408, 5484, 977, 5484, 13, 202, 202, 95, 1082, 202, 2170, 2555, 662, 1616, 31, 1082, 202, 430, 261, 401, 3782, 2624, 18, 291, 1921, 1435, 262, 9506, 202, 1397, 1616, 273, 261, 2170, 2555, 13, 3782, 2624, 18, 347, 3839, 5621, 9506, 202, 12107, 4697, 202, 1397, 1616, 273, 394, 4039, 2555, 12, 20, 16, 374, 1769, 1082, 202, 474, 619, 273, 662, 1616, 18, 92, 397, 977, 5484, 18, 588, 60, 5621, 1082, 202, 474, 677, 273, 662, 1616, 18, 93, 397, 977, 5484, 18, 588, 61, 5621, 1082, 202, 9446, 1528, 861, 12, 955, 5484, 16, 619, 16, 677, 16, 2875, 16, 1363, 2686, 1769, 1082, 202, 759, 4081, 309, 6174, 353, 326, 2929, 434, 279, 13696, 18, 1082, 202, 759, 430, 1427, 16, 1221, 279, 13696, 31, 309, 486, 16, 741, 5083, 1082, 202, 6540, 22966, 12, 955, 5484, 16, 662, 1616, 1769, 1082, 202, 759, 4110, 9512, 17, 1232, 1301, 1082, 202, 4110, 15996, 1232, 1803, 12, 955, 5484, 16, 662, 1616, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 1528, 12, 1285, 408, 5484, 977, 5484, 13, 202, 202, 95, 1082, 202, 2170, 2555, 662, 1616, 31, 1082, 202, 430, 261, 401, 3782, 2624, 18, 291, 1921, 1435, 262, 9506, 202, 1397, 1616, 273, 261, 2170, 2555, 13, 3782, 2624, 18, 347, 3839, 5621, 9506, 202, 12107, 4697, 202, 1397, 1616, 273, 394, 4039, 2555, 12, 20, 16, 374, 1769, 1082, 202, 474, 619, 273, 662, 1616, 18, 92, 397, 977, 5484, 18, 588, 60, 5621, 1082, 202, 474, 677, 273, 662, 1616, 18, 93, 397, 977, 5484, 18, 588, 61, 5621, 1082, 202, 9446, 1528, 861, 12, 955, 5484, 16, 619, 16, 677, 16, 2875, 16, 1363, 2686, 1769, 1082, 202, 759, 2 ]
throw new DomEx(DomEx.NAMESPACE_ERR, "namespace declarations can't change names", this, 0);
throw new DomDOMException(DOMException.NAMESPACE_ERR, "namespace declarations can't change names", this, 0);
public final void setPrefix(String prefix) { if (readonly) { throw new DomEx(DomEx.NO_MODIFICATION_ALLOWED_ERR); } if (prefix == null) { name = localName; return; } else if (namespace == null) { throw new DomEx(DomEx.NAMESPACE_ERR, "can't set prefix, node has no namespace URI", this, 0); } DomDocument.checkName(prefix, "1.1".equals(owner.getXmlVersion())); if (prefix.indexOf (':') != -1) { throw new DomEx(DomEx.NAMESPACE_ERR, "illegal prefix " + prefix, this, 0); } if (XMLConstants.XML_NS_PREFIX.equals(prefix) && !XMLConstants.XML_NS_URI.equals(namespace)) { throw new DomEx(DomEx.NAMESPACE_ERR, "xml namespace is always " + XMLConstants.XML_NS_URI, this, 0); } if (XMLConstants.XMLNS_ATTRIBUTE.equals(prefix)) { if (namespace != null || getNodeType() != ATTRIBUTE_NODE) { throw new DomEx(DomEx.NAMESPACE_ERR, "xmlns attribute prefix is reserved", this, 0); } } else if (getNodeType () == ATTRIBUTE_NODE && (XMLConstants.XMLNS_ATTRIBUTE.equals(name) || name.startsWith("xmlns:"))) { throw new DomEx(DomEx.NAMESPACE_ERR, "namespace declarations can't change names", this, 0); } this.prefix = prefix.intern(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/DomNsNode.java/clean/core/src/classpath/gnu/gnu/xml/dom/DomNsNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 444, 2244, 12, 780, 1633, 13, 225, 288, 565, 309, 261, 16365, 13, 1377, 288, 3639, 604, 394, 12965, 424, 12, 8832, 424, 18, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 1769, 1377, 289, 565, 309, 261, 3239, 422, 446, 13, 1377, 288, 3639, 508, 273, 11927, 31, 3639, 327, 31, 1377, 289, 565, 469, 309, 261, 4937, 422, 446, 13, 1377, 288, 3639, 604, 394, 12965, 424, 12, 8832, 424, 18, 11368, 67, 9712, 16, 13491, 315, 4169, 1404, 444, 1633, 16, 756, 711, 1158, 1981, 3699, 3113, 13491, 333, 16, 374, 1769, 1377, 289, 565, 12965, 2519, 18, 1893, 461, 12, 3239, 16, 315, 21, 18, 21, 9654, 14963, 12, 8443, 18, 588, 4432, 1444, 1435, 10019, 565, 309, 261, 3239, 18, 31806, 7707, 2497, 13, 480, 300, 21, 13, 1377, 288, 3639, 604, 394, 12965, 424, 12, 8832, 424, 18, 11368, 67, 9712, 16, 13491, 315, 31751, 1633, 315, 397, 1633, 16, 333, 16, 374, 1769, 1377, 289, 565, 309, 261, 4201, 2918, 18, 4201, 67, 3156, 67, 6307, 18, 14963, 12, 3239, 13, 3639, 597, 401, 4201, 2918, 18, 4201, 67, 3156, 67, 3098, 18, 14963, 12, 4937, 3719, 1377, 288, 3639, 604, 394, 12965, 424, 12, 8832, 424, 18, 11368, 67, 9712, 16, 13491, 315, 2902, 1981, 353, 3712, 315, 397, 13491, 3167, 2918, 18, 4201, 67, 3156, 67, 3098, 16, 333, 16, 374, 1769, 1377, 289, 565, 309, 261, 4201, 2918, 18, 4201, 3156, 67, 11616, 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, 727, 918, 444, 2244, 12, 780, 1633, 13, 225, 288, 565, 309, 261, 16365, 13, 1377, 288, 3639, 604, 394, 12965, 424, 12, 8832, 424, 18, 3417, 67, 6720, 14865, 67, 16852, 67, 9712, 1769, 1377, 289, 565, 309, 261, 3239, 422, 446, 13, 1377, 288, 3639, 508, 273, 11927, 31, 3639, 327, 31, 1377, 289, 565, 469, 309, 261, 4937, 422, 446, 13, 1377, 288, 3639, 604, 394, 12965, 424, 12, 8832, 424, 18, 11368, 67, 9712, 16, 13491, 315, 4169, 1404, 444, 1633, 16, 756, 711, 1158, 1981, 3699, 3113, 13491, 333, 16, 374, 1769, 1377, 289, 565, 12965, 2519, 18, 1893, 461, 12, 3239, 16, 315, 21, 18, 21, 9654, 14963, 12, 8443, 18, 2 ]
name = "org.apache.harmony.awt.datatransfer.linux.LinuxDTK";
name = "org.apache.harmony.awt.datatransfer.linux.LinuxDTK";
private static DTK createDTK() { String name; switch (SystemUtils.getOS()) { case SystemUtils.OS_WINDOWS: name = "org.apache.harmony.awt.datatransfer.windows.WinDTK"; break; case SystemUtils.OS_LINUX: name = "org.apache.harmony.awt.datatransfer.linux.LinuxDTK"; break; default: throw new RuntimeException("Unknown native platform."); } try { DTK dtk = (DTK) Class.forName(name).newInstance(); return dtk; } catch (Exception e) { throw new RuntimeException(e); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c4916a7af46cbdb5a69d94b49c3f5669c05d8b4c/DTK.java/clean/modules/awt/src/main/java/common/org/apache/harmony/awt/datatransfer/DTK.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 10696, 47, 752, 9081, 47, 1435, 288, 3639, 514, 508, 31, 3639, 1620, 261, 3163, 1989, 18, 588, 4618, 10756, 288, 3639, 648, 2332, 1989, 18, 4618, 67, 31874, 30, 5411, 508, 273, 315, 3341, 18, 19211, 18, 30250, 2586, 93, 18, 2219, 88, 18, 3404, 270, 28001, 586, 18, 13226, 18, 18049, 9081, 47, 14432, 5411, 898, 31, 3639, 648, 2332, 1989, 18, 4618, 67, 20663, 57, 60, 30, 5411, 508, 273, 315, 3341, 18, 19211, 18, 30250, 2586, 93, 18, 2219, 88, 18, 3404, 270, 28001, 586, 18, 20132, 18, 19475, 9081, 47, 14432, 5411, 898, 31, 3639, 805, 30, 5411, 604, 394, 3235, 2932, 4874, 6448, 4072, 1199, 1769, 3639, 289, 3639, 775, 288, 5411, 10696, 47, 3681, 79, 273, 261, 9081, 47, 13, 1659, 18, 1884, 461, 12, 529, 2934, 2704, 1442, 5621, 5411, 327, 3681, 79, 31, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 604, 394, 3235, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 10696, 47, 752, 9081, 47, 1435, 288, 3639, 514, 508, 31, 3639, 1620, 261, 3163, 1989, 18, 588, 4618, 10756, 288, 3639, 648, 2332, 1989, 18, 4618, 67, 31874, 30, 5411, 508, 273, 315, 3341, 18, 19211, 18, 30250, 2586, 93, 18, 2219, 88, 18, 3404, 270, 28001, 586, 18, 13226, 18, 18049, 9081, 47, 14432, 5411, 898, 31, 3639, 648, 2332, 1989, 18, 4618, 67, 20663, 57, 60, 30, 5411, 508, 273, 315, 3341, 18, 19211, 18, 30250, 2586, 93, 18, 2219, 88, 18, 3404, 270, 28001, 586, 18, 20132, 18, 19475, 9081, 47, 14432, 5411, 898, 31, 3639, 805, 30, 5411, 604, 394, 3235, 2932, 4874, 6448, 4072, 1199, 1769, 3639, 289, 3639, 775, 2 ]
Build childBuild = parent.getBuild();
Build childBuild = child.getBuild();
private void assemblePluginManagementInheritance( Model child, Model parent ) { Build parentBuild = parent.getBuild(); Build childBuild = parent.getBuild(); if ( childBuild == null ) { if ( parentBuild != null ) { child.setBuild( parentBuild ); } else { childBuild = new Build(); } } else { PluginManagement parentPluginMgmt = parentBuild.getPluginManagement(); PluginManagement childPluginMgmt = childBuild.getPluginManagement(); if ( parentPluginMgmt != null ) { if ( childPluginMgmt == null ) { childBuild.setPluginManagement( parentPluginMgmt ); } else { List childPlugins = childPluginMgmt.getPlugins(); Map mappedChildPlugins = new TreeMap(); for ( Iterator it = childPlugins.iterator(); it.hasNext(); ) { Plugin plugin = (Plugin) it.next(); mappedChildPlugins.put( constructPluginKey( plugin ), plugin ); } for ( Iterator it = parentPluginMgmt.getPlugins().iterator(); it.hasNext(); ) { Plugin plugin = (Plugin) it.next(); if ( !mappedChildPlugins.containsKey( constructPluginKey( plugin ) ) ) { childPluginMgmt.addPlugin( plugin ); } else { Plugin childPlugin = (Plugin) mappedChildPlugins.get( constructPluginKey( plugin ) ); Map mappedChildGoals = new TreeMap(); for ( Iterator itGoals = childPlugin.getGoals().iterator(); itGoals.hasNext(); ) { Goal goal = (Goal) itGoals.next(); mappedChildGoals.put( goal.getId(), goal ); } for ( Iterator itGoals = plugin.getGoals().iterator(); itGoals.hasNext(); ) { Goal parentGoal = (Goal) itGoals.next(); Goal childGoal = (Goal) mappedChildGoals.get( parentGoal.getId() ); if ( childGoal == null ) { childPlugin.addGoal( parentGoal ); } else { Xpp3Dom childDom = (Xpp3Dom) childGoal.getConfiguration(); Xpp3Dom parentDom = (Xpp3Dom) parentGoal.getConfiguration(); childGoal.setConfiguration( Xpp3DomUtils.mergeXpp3Dom( childDom, parentDom ) ); } } } } } } } }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/912898c7160f9ab1d1b1679be4f9e47a388c1b87/DefaultModelInheritanceAssembler.java/buggy/maven-core/src/main/java/org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 19540, 3773, 10998, 28255, 12, 3164, 1151, 16, 3164, 982, 262, 565, 288, 3639, 3998, 982, 3116, 273, 982, 18, 588, 3116, 5621, 3639, 3998, 1151, 3116, 273, 1151, 18, 588, 3116, 5621, 3639, 309, 261, 1151, 3116, 422, 446, 262, 3639, 288, 5411, 309, 261, 982, 3116, 480, 446, 262, 5411, 288, 7734, 1151, 18, 542, 3116, 12, 982, 3116, 11272, 5411, 289, 5411, 469, 5411, 288, 7734, 1151, 3116, 273, 394, 3998, 5621, 5411, 289, 3639, 289, 3639, 469, 3639, 288, 5411, 6258, 10998, 982, 3773, 49, 7714, 273, 982, 3116, 18, 588, 3773, 10998, 5621, 5411, 6258, 10998, 1151, 3773, 49, 7714, 273, 1151, 3116, 18, 588, 3773, 10998, 5621, 5411, 309, 261, 982, 3773, 49, 7714, 480, 446, 262, 5411, 288, 7734, 309, 261, 1151, 3773, 49, 7714, 422, 446, 262, 7734, 288, 10792, 1151, 3116, 18, 542, 3773, 10998, 12, 982, 3773, 49, 7714, 11272, 7734, 289, 7734, 469, 7734, 288, 10792, 987, 1151, 9461, 273, 1151, 3773, 49, 7714, 18, 588, 9461, 5621, 10792, 1635, 5525, 1763, 9461, 273, 394, 16381, 5621, 10792, 364, 261, 4498, 518, 273, 1151, 9461, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 10792, 288, 13491, 6258, 1909, 273, 261, 3773, 13, 518, 18, 4285, 5621, 13491, 5525, 1763, 9461, 18, 458, 12, 4872, 3773, 653, 12, 1909, 262, 16, 1909, 11272, 10792, 289, 10792, 364, 261, 4498, 518, 273, 982, 3773, 49, 7714, 18, 588, 9461, 7675, 9838, 5621, 518, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 19540, 3773, 10998, 28255, 12, 3164, 1151, 16, 3164, 982, 262, 565, 288, 3639, 3998, 982, 3116, 273, 982, 18, 588, 3116, 5621, 3639, 3998, 1151, 3116, 273, 1151, 18, 588, 3116, 5621, 3639, 309, 261, 1151, 3116, 422, 446, 262, 3639, 288, 5411, 309, 261, 982, 3116, 480, 446, 262, 5411, 288, 7734, 1151, 18, 542, 3116, 12, 982, 3116, 11272, 5411, 289, 5411, 469, 5411, 288, 7734, 1151, 3116, 273, 394, 3998, 5621, 5411, 289, 3639, 289, 3639, 469, 3639, 288, 5411, 6258, 10998, 982, 3773, 49, 7714, 273, 982, 3116, 18, 588, 3773, 10998, 5621, 5411, 6258, 10998, 1151, 3773, 49, 7714, 273, 1151, 3116, 18, 588, 3773, 10998, 5621, 5411, 309, 261, 2 ]
int numFunctions = functionList.size();
int numFunctions = functionSet.size();
private static Object collectSymbol(LookupData data, Object object ) throws ParserSymbolTableException { if( object == null ){ return null; } ISymbol foundSymbol = null; Iterator iter = ( object instanceof List ) ? ((List)object).iterator() : null; ISymbol symbol = ( iter != null ) ? (ISymbol) iter.next() : (ISymbol) object; List functionList = new LinkedList(); ISymbol obj = null; IContainerSymbol cls = null; while( symbol != null ){ if( !symbol.getIsInvisible() && checkType( data, symbol ) ){//, data.type, data.upperType ) ){ if( symbol.isTemplateMember() && data.templateInstance != null ) foundSymbol = new TemplateInstance( symbol.getSymbolTable(), symbol, data.templateInstance.getArgumentMap() ); else foundSymbol = symbol; if( foundSymbol.isType( TypeInfo.t_function ) ){ functionList.add( foundSymbol ); } else { //if this is a class-name, other stuff hides it if( foundSymbol.isType( TypeInfo.t_class, TypeInfo.t_enumeration ) ){ if( cls == null ){ cls = (IContainerSymbol) foundSymbol; } else { if( cls.getTypeInfo().isForwardDeclaration() && cls.getTypeSymbol() == foundSymbol ){ //cls is a forward declaration of decl, we want decl. cls = (IContainerSymbol) foundSymbol; } else if( foundSymbol.getTypeInfo().isForwardDeclaration() && foundSymbol.getTypeSymbol() == cls ){ //decl is a forward declaration of cls, we already have what we want (cls) } else { if( data.mode == LookupMode.PREFIX ){ if( data.ambiguities == null ){ data.ambiguities = new HashSet(); } data.ambiguities.add( foundSymbol.getName() ); } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } } } } else { //an object, can only have one of these if( obj == null ){ obj = foundSymbol; } else { if( data.mode == LookupMode.PREFIX ){ if( data.ambiguities == null ){ data.ambiguities = new HashSet(); } data.ambiguities.add( foundSymbol.getName() ); } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } } } } } if( iter != null ){ symbol = iter.hasNext() ? (ISymbol) iter.next() : null; } else { symbol = null; } } int numFunctions = functionList.size(); boolean ambiguous = false; if( cls != null ){ //the class is only hidden by other stuff if they are from the same scope if( obj != null && cls.getContainingSymbol() != obj.getContainingSymbol()){ ambiguous = true; } if( functionList != null ){ Iterator fnIter = functionList.iterator(); IParameterizedSymbol fn = null; for( int i = numFunctions; i > 0; i-- ){ fn = (IParameterizedSymbol) fnIter.next(); if( cls.getContainingSymbol()!= fn.getContainingSymbol()){ ambiguous = true; break; } } } } if( obj != null && !ambiguous ){ if( numFunctions > 0 ){ ambiguous = true; } else { return obj; } } else if( numFunctions > 0 ) { return functionList; } if( ambiguous ){ if( data.mode == LookupMode.PREFIX ){ if( data.ambiguities == null ){ data.ambiguities = new HashSet(); } data.ambiguities.add( foundSymbol.getName() ); } else { throw new ParserSymbolTableException( ParserSymbolTableException.r_Ambiguous ); } } return cls; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7a48cc3a164ddbe6df77f2fabd577aa391137227/ParserSymbolTable.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/ParserSymbolTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 1033, 3274, 5335, 12, 6609, 751, 501, 16, 1033, 733, 262, 1216, 6783, 5335, 1388, 503, 288, 202, 202, 430, 12, 733, 422, 446, 262, 95, 1082, 202, 2463, 446, 31, 202, 202, 97, 9506, 202, 5127, 3284, 1392, 5335, 273, 446, 31, 9506, 202, 3198, 1400, 273, 261, 733, 1276, 987, 262, 692, 14015, 682, 13, 1612, 2934, 9838, 1435, 294, 446, 31, 202, 202, 5127, 3284, 3273, 273, 261, 1400, 480, 446, 262, 692, 261, 5127, 3284, 13, 1400, 18, 4285, 1435, 294, 261, 5127, 3284, 13, 733, 31, 1082, 202, 682, 445, 682, 273, 394, 10688, 5621, 202, 202, 5127, 3284, 1081, 202, 33, 446, 31, 202, 202, 45, 2170, 5335, 2028, 273, 446, 31, 9506, 202, 17523, 12, 3273, 480, 446, 262, 95, 1082, 202, 430, 12, 401, 7175, 18, 588, 2520, 382, 8613, 1435, 597, 23008, 12, 501, 16, 3273, 262, 262, 95, 759, 16, 501, 18, 723, 16, 501, 18, 5797, 559, 262, 262, 95, 9506, 202, 430, 12, 3273, 18, 291, 2283, 4419, 1435, 597, 501, 18, 3202, 1442, 480, 446, 262, 6862, 202, 7015, 5335, 273, 394, 5035, 1442, 12, 3273, 18, 588, 5335, 1388, 9334, 3273, 16, 501, 18, 3202, 1442, 18, 588, 1379, 863, 1435, 11272, 9506, 202, 12107, 6862, 202, 7015, 5335, 273, 3273, 31, 6862, 9506, 202, 430, 12, 1392, 5335, 18, 291, 559, 12, 1412, 966, 18, 88, 67, 915, 262, 262, 95, 6862, 202, 915, 682, 18, 1289, 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, 1152, 760, 1033, 3274, 5335, 12, 6609, 751, 501, 16, 1033, 733, 262, 1216, 6783, 5335, 1388, 503, 288, 202, 202, 430, 12, 733, 422, 446, 262, 95, 1082, 202, 2463, 446, 31, 202, 202, 97, 9506, 202, 5127, 3284, 1392, 5335, 273, 446, 31, 9506, 202, 3198, 1400, 273, 261, 733, 1276, 987, 262, 692, 14015, 682, 13, 1612, 2934, 9838, 1435, 294, 446, 31, 202, 202, 5127, 3284, 3273, 273, 261, 1400, 480, 446, 262, 692, 261, 5127, 3284, 13, 1400, 18, 4285, 1435, 294, 261, 5127, 3284, 13, 733, 31, 1082, 202, 682, 445, 682, 273, 394, 10688, 5621, 202, 202, 5127, 3284, 1081, 202, 33, 446, 31, 202, 202, 45, 2170, 5335, 2028, 2 ]
if ( horiz ) {
if (horiz) {
private static void tileFill( Graphics g, Image img, Rectangle rect, int xoff, int yoff, boolean horiz, boolean vert ) { int iwidth = img.getWidth( null ); int iheight = img.getHeight( null ); int rwidth = rect.width; int rheight = rect.height; if ( !horiz ) { rwidth = iwidth; } if ( !vert ) { rheight = iheight; } if ( horiz ) { xoff = xoff % iwidth - iwidth; rwidth += iwidth; } if ( vert ) { yoff = yoff % iheight - iheight; rheight += iheight; } for ( int i = 0; i < rwidth; i += iwidth ) { for ( int j = 0; j < rheight; j += iheight ) { g.drawImage( img, i + rect.x + xoff, j + rect.y + yoff, null ); } } }
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/8f81e5fe9f6f8593d3c596d30a3f100cb87dbf27/BackgroundPainter.java/buggy/src/java/org/xhtmlrenderer/render/BackgroundPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4769, 8026, 12, 16830, 314, 16, 3421, 3774, 16, 13264, 4917, 16, 509, 619, 3674, 16, 509, 677, 3674, 16, 1250, 366, 5331, 16, 1250, 3173, 262, 288, 3639, 509, 277, 2819, 273, 3774, 18, 588, 2384, 12, 446, 11272, 3639, 509, 277, 4210, 273, 3774, 18, 588, 2686, 12, 446, 11272, 3639, 509, 436, 2819, 273, 4917, 18, 2819, 31, 3639, 509, 436, 4210, 273, 4917, 18, 4210, 31, 3639, 309, 261, 401, 76, 5331, 262, 288, 5411, 436, 2819, 273, 277, 2819, 31, 3639, 289, 3639, 309, 261, 401, 1097, 262, 288, 5411, 436, 4210, 273, 277, 4210, 31, 3639, 289, 3639, 309, 261, 76, 5331, 13, 288, 5411, 619, 3674, 273, 619, 3674, 738, 277, 2819, 300, 277, 2819, 31, 5411, 436, 2819, 1011, 277, 2819, 31, 3639, 289, 3639, 309, 261, 3173, 262, 288, 5411, 677, 3674, 273, 677, 3674, 738, 277, 4210, 300, 277, 4210, 31, 5411, 436, 4210, 1011, 277, 4210, 31, 3639, 289, 3639, 364, 261, 509, 277, 273, 374, 31, 277, 411, 436, 2819, 31, 277, 1011, 277, 2819, 262, 288, 5411, 364, 261, 509, 525, 273, 374, 31, 525, 411, 436, 4210, 31, 525, 1011, 277, 4210, 262, 288, 7734, 314, 18, 9446, 2040, 12, 3774, 16, 277, 397, 4917, 18, 92, 397, 619, 3674, 16, 525, 397, 4917, 18, 93, 397, 677, 3674, 16, 446, 11272, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 4769, 8026, 12, 16830, 314, 16, 3421, 3774, 16, 13264, 4917, 16, 509, 619, 3674, 16, 509, 677, 3674, 16, 1250, 366, 5331, 16, 1250, 3173, 262, 288, 3639, 509, 277, 2819, 273, 3774, 18, 588, 2384, 12, 446, 11272, 3639, 509, 277, 4210, 273, 3774, 18, 588, 2686, 12, 446, 11272, 3639, 509, 436, 2819, 273, 4917, 18, 2819, 31, 3639, 509, 436, 4210, 273, 4917, 18, 4210, 31, 3639, 309, 261, 401, 76, 5331, 262, 288, 5411, 436, 2819, 273, 277, 2819, 31, 3639, 289, 3639, 309, 261, 401, 1097, 262, 288, 5411, 436, 4210, 273, 277, 4210, 31, 3639, 289, 3639, 309, 261, 76, 5331, 13, 288, 5411, 619, 3674, 273, 619, 2 ]
router.serverMessage(reliable, userID, databuff); }
router.serverMessage(reliable, userID, databuff); }
public void rcvServerMsg(boolean reliable, ByteBuffer databuff) { router.serverMessage(reliable, userID, databuff); }
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/e4b2d80eb24c4083cba090eace62015742c5c850/SGSUserImpl.java/buggy/src/com/sun/gi/comm/users/server/impl/SGSUserImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25240, 2081, 3332, 12, 6494, 31024, 16, 7400, 10481, 3809, 13, 288, 3639, 4633, 18, 3567, 1079, 12, 266, 549, 429, 16, 16299, 16, 10481, 3809, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25240, 2081, 3332, 12, 6494, 31024, 16, 7400, 10481, 3809, 13, 288, 3639, 4633, 18, 3567, 1079, 12, 266, 549, 429, 16, 16299, 16, 10481, 3809, 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 ]
Object[] array = (Object[]) arguments; StringBuffer buffer = new StringBuffer("["); for (int i = 0; i < array.length; i++) { if (i > 0) { buffer.append(", "); } buffer.append(format(array[i], verbose)); } buffer.append("]"); return buffer.toString();
return format(asCollection(arguments), verbose);
protected String format(Object arguments, boolean verbose) { if (arguments == null) { return "null"; } else if (arguments.getClass().isArray()) { Object[] array = (Object[]) arguments; StringBuffer buffer = new StringBuffer("["); for (int i = 0; i < array.length; i++) { if (i > 0) { buffer.append(", "); } buffer.append(format(array[i], verbose)); } buffer.append("]"); return buffer.toString(); } else if (arguments instanceof Range) { Range range = (Range) arguments; StringBuffer buffer = new StringBuffer(); buffer.append(format(range.getFrom(), verbose)); buffer.append(".."); buffer.append(format(range.getTo(), verbose)); return buffer.toString(); } else if (arguments instanceof List) { List list = (List) arguments; StringBuffer buffer = new StringBuffer("["); boolean first = true; for (Iterator iter = list.iterator(); iter.hasNext();) { if (first) { first = false; } else { buffer.append(", "); } buffer.append(format(iter.next(), verbose)); } buffer.append("]"); return buffer.toString(); } else if (arguments instanceof Map) { Map map = (Map) arguments; if (map.isEmpty()) { return "[:]"; } StringBuffer buffer = new StringBuffer("["); boolean first = true; for (Iterator iter = map.entrySet().iterator(); iter.hasNext();) { if (first) { first = false; } else { buffer.append(", "); } Map.Entry entry = (Map.Entry) iter.next(); buffer.append(format(entry.getKey(), verbose)); buffer.append(":"); buffer.append(format(entry.getValue(), verbose)); } buffer.append("]"); return buffer.toString(); } else if (arguments instanceof String) { if (verbose) { return "\"" + arguments + "\""; } else { return (String) arguments; } } else { return arguments.toString(); } }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/fa41d2174cb0fb4fde26d80166fd965328939b68/Invoker.java/clean/src/main/org/codehaus/groovy/runtime/Invoker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 740, 12, 921, 1775, 16, 1250, 3988, 13, 288, 3639, 309, 261, 7099, 422, 446, 13, 288, 5411, 327, 315, 2011, 14432, 3639, 289, 3639, 469, 309, 261, 7099, 18, 588, 797, 7675, 291, 1076, 10756, 288, 5411, 1033, 8526, 526, 273, 261, 921, 63, 5717, 1775, 31, 5411, 6674, 1613, 273, 394, 6674, 2932, 63, 8863, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 526, 18, 2469, 31, 277, 27245, 288, 7734, 309, 261, 77, 405, 374, 13, 288, 10792, 1613, 18, 6923, 2932, 16, 315, 1769, 7734, 289, 7734, 1613, 18, 6923, 12, 2139, 12, 1126, 63, 77, 6487, 3988, 10019, 5411, 289, 5411, 1613, 18, 6923, 2932, 4279, 1769, 5411, 327, 1613, 18, 10492, 5621, 3639, 289, 3639, 469, 309, 261, 7099, 1276, 8086, 13, 288, 5411, 8086, 1048, 273, 261, 2655, 13, 1775, 31, 5411, 6674, 1613, 273, 394, 6674, 5621, 5411, 1613, 18, 6923, 12, 2139, 12, 3676, 18, 588, 1265, 9334, 3988, 10019, 5411, 1613, 18, 6923, 2932, 838, 8863, 5411, 1613, 18, 6923, 12, 2139, 12, 3676, 18, 588, 774, 9334, 3988, 10019, 5411, 327, 1613, 18, 10492, 5621, 3639, 289, 3639, 469, 309, 261, 7099, 1276, 987, 13, 288, 5411, 987, 666, 273, 261, 682, 13, 1775, 31, 5411, 6674, 1613, 273, 394, 6674, 2932, 63, 8863, 5411, 1250, 1122, 273, 638, 31, 5411, 364, 261, 3198, 1400, 273, 666, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 309, 261, 3645, 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, 921, 1775, 16, 1250, 3988, 13, 288, 3639, 309, 261, 7099, 422, 446, 13, 288, 5411, 327, 315, 2011, 14432, 3639, 289, 3639, 469, 309, 261, 7099, 18, 588, 797, 7675, 291, 1076, 10756, 288, 5411, 1033, 8526, 526, 273, 261, 921, 63, 5717, 1775, 31, 5411, 6674, 1613, 273, 394, 6674, 2932, 63, 8863, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 526, 18, 2469, 31, 277, 27245, 288, 7734, 309, 261, 77, 405, 374, 13, 288, 10792, 1613, 18, 6923, 2932, 16, 315, 1769, 7734, 289, 7734, 1613, 18, 6923, 12, 2139, 12, 1126, 63, 77, 6487, 3988, 10019, 5411, 289, 5411, 1613, 18, 6923, 2932, 4279, 1769, 5411, 327, 2 ]
return a1[2].compareTo(a2[2]);
return a1[2].compareToIgnoreCase(a2[2]);
public int compare(String o1, String o2) { String[] a1 = split(o1); String[] a2 = split(o2); String s1 = a1[0]; String s2 = a2[0]; if (s1 == null && s2 != null) return -1; if (s1 != null && s2 == null) return 1; if (s1 != null && s2 != null) { int n = s1.compareTo(s2); if (n != 0) return n; s1 = a1[1]; s2 = a2[1]; if (s1.length() == s2.length() || s1.length() == 0 || s2.length() == 0) { n = s1.compareTo(s2); } else { n = Integer.valueOf(s1).compareTo(Integer.valueOf(s2)); } if (n != 0) return n; } return a1[2].compareTo(a2[2]); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/6adf1034ef67d9aafd15f1cb81165c5df6278695/TaskKeyComparator.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/views/TaskKeyComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 3400, 12, 780, 320, 21, 16, 514, 320, 22, 13, 288, 202, 202, 780, 8526, 279, 21, 273, 1416, 12, 83, 21, 1769, 202, 202, 780, 8526, 279, 22, 273, 1416, 12, 83, 22, 1769, 202, 202, 780, 272, 21, 273, 279, 21, 63, 20, 15533, 202, 202, 780, 272, 22, 273, 279, 22, 63, 20, 15533, 202, 202, 430, 261, 87, 21, 422, 446, 597, 272, 22, 480, 446, 13, 1082, 202, 2463, 300, 21, 31, 202, 202, 430, 261, 87, 21, 480, 446, 597, 272, 22, 422, 446, 13, 1082, 202, 2463, 404, 31, 202, 202, 430, 261, 87, 21, 480, 446, 597, 272, 22, 480, 446, 13, 288, 1082, 202, 474, 290, 273, 272, 21, 18, 9877, 774, 12, 87, 22, 1769, 1082, 202, 430, 261, 82, 480, 374, 13, 9506, 202, 2463, 290, 31, 1082, 202, 87, 21, 273, 279, 21, 63, 21, 15533, 1082, 202, 87, 22, 273, 279, 22, 63, 21, 15533, 1082, 202, 430, 261, 87, 21, 18, 2469, 1435, 422, 272, 22, 18, 2469, 1435, 747, 272, 21, 18, 2469, 1435, 422, 374, 747, 272, 22, 18, 2469, 1435, 422, 374, 13, 288, 9506, 202, 82, 273, 272, 21, 18, 9877, 774, 12, 87, 22, 1769, 1082, 202, 97, 469, 288, 9506, 202, 82, 273, 2144, 18, 1132, 951, 12, 87, 21, 2934, 9877, 774, 12, 4522, 18, 1132, 951, 12, 87, 22, 10019, 1082, 202, 97, 1082, 202, 430, 261, 82, 480, 374, 13, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 3400, 12, 780, 320, 21, 16, 514, 320, 22, 13, 288, 202, 202, 780, 8526, 279, 21, 273, 1416, 12, 83, 21, 1769, 202, 202, 780, 8526, 279, 22, 273, 1416, 12, 83, 22, 1769, 202, 202, 780, 272, 21, 273, 279, 21, 63, 20, 15533, 202, 202, 780, 272, 22, 273, 279, 22, 63, 20, 15533, 202, 202, 430, 261, 87, 21, 422, 446, 597, 272, 22, 480, 446, 13, 1082, 202, 2463, 300, 21, 31, 202, 202, 430, 261, 87, 21, 480, 446, 597, 272, 22, 422, 446, 13, 1082, 202, 2463, 404, 31, 202, 202, 430, 261, 87, 21, 480, 446, 597, 272, 22, 480, 446, 13, 288, 1082, 202, 474, 290, 2 ]
Date reminder = task.getReminderDate(); if (reminder != null) { return reminder.compareTo(activityFuture.getStart().getTime()) > -1; } else { return false;
if (task != null) { Date reminder = task.getReminderDate(); if (reminder != null) { return reminder.compareTo(activityFuture.getStart().getTime()) > -1; }
public boolean isReminderLater(ITask task) { Date reminder = task.getReminderDate(); if (reminder != null) { return reminder.compareTo(activityFuture.getStart().getTime()) > -1; } else { return false; } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/97fdba688bb5b167127d4bc333d03e2e6af85cc4/TaskListManager.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/TaskListManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 1933, 14055, 20607, 12, 1285, 835, 1562, 13, 288, 202, 202, 1626, 849, 14055, 273, 1562, 18, 588, 1933, 14055, 1626, 5621, 202, 202, 430, 261, 2764, 14055, 480, 446, 13, 288, 1082, 202, 2463, 849, 14055, 18, 9877, 774, 12, 9653, 4118, 18, 588, 1685, 7675, 588, 950, 10756, 405, 300, 21, 31, 202, 202, 97, 469, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 97, 225, 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, 225, 202, 482, 1250, 353, 1933, 14055, 20607, 12, 1285, 835, 1562, 13, 288, 202, 202, 1626, 849, 14055, 273, 1562, 18, 588, 1933, 14055, 1626, 5621, 202, 202, 430, 261, 2764, 14055, 480, 446, 13, 288, 1082, 202, 2463, 849, 14055, 18, 9877, 774, 12, 9653, 4118, 18, 588, 1685, 7675, 588, 950, 10756, 405, 300, 21, 31, 202, 202, 97, 469, 288, 1082, 202, 2463, 629, 31, 202, 202, 97, 202, 97, 225, 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 ]
if (DEBUG) {
if (debug) {
private void unpackBits(byte[] ib, int[] ob) { if (DEBUG) { System.out.println("PictReader.unpackBits(" + ib + ", " + ob + ")"); } int i = 0; int o = 0; int b; int rep; int end; for (o=0; o<ob.length;) { if (i+1 < ib.length) { b = ib[i++]; if (b >= 0) { b++; end = o + b; for(; o < end; o++, i+=2) { if (o < ob.length && (i+1) < ib.length) { ob[o] = (((ib[i] & 0xff) << 8) + (ib[i+1] & 0xff)) & 0xffff; } else o = end; } } else if (b != -128) { rep = (((ib[i] & 0xff) << 8) + (ib[i+1] & 0xff)) & 0xffff; i += 2; end = o - b + 1; for (; o < end; o++) { if (o < ob.length) ob[o] = rep; else o = end; } } } else o = ob.length; } }
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/91e7b0ac7354ab4613a4d051bb77360de01aecdc/PictReader.java/buggy/loci/formats/in/PictReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 6167, 6495, 12, 7229, 8526, 9834, 16, 509, 8526, 3768, 13, 288, 565, 309, 261, 4148, 13, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 52, 933, 2514, 18, 17309, 6495, 2932, 397, 9834, 397, 3104, 315, 397, 3768, 397, 7310, 1769, 565, 289, 565, 509, 277, 273, 374, 31, 565, 509, 320, 273, 374, 31, 565, 509, 324, 31, 565, 509, 2071, 31, 565, 509, 679, 31, 565, 364, 261, 83, 33, 20, 31, 320, 32, 947, 18, 2469, 30943, 288, 1377, 309, 261, 77, 15, 21, 411, 9834, 18, 2469, 13, 288, 3639, 324, 273, 9834, 63, 77, 9904, 15533, 3639, 309, 261, 70, 1545, 374, 13, 288, 1850, 324, 9904, 31, 1850, 679, 273, 320, 397, 324, 31, 1850, 364, 12, 31, 320, 411, 679, 31, 320, 9904, 16, 277, 15, 33, 22, 13, 288, 5411, 309, 261, 83, 411, 3768, 18, 2469, 597, 261, 77, 15, 21, 13, 411, 9834, 18, 2469, 13, 288, 2868, 3768, 63, 83, 65, 273, 261, 12443, 495, 63, 77, 65, 473, 374, 5297, 13, 2296, 1725, 13, 397, 261, 495, 63, 77, 15, 21, 65, 473, 374, 5297, 3719, 473, 374, 20431, 31, 5411, 289, 5411, 469, 320, 273, 679, 31, 1850, 289, 3639, 289, 3639, 469, 309, 261, 70, 480, 300, 10392, 13, 288, 1850, 2071, 273, 261, 12443, 495, 63, 77, 65, 473, 374, 5297, 13, 2296, 1725, 13, 397, 261, 495, 63, 77, 15, 21, 65, 473, 374, 5297, 3719, 473, 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, 3238, 918, 6167, 6495, 12, 7229, 8526, 9834, 16, 509, 8526, 3768, 13, 288, 565, 309, 261, 4148, 13, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 52, 933, 2514, 18, 17309, 6495, 2932, 397, 9834, 397, 3104, 315, 397, 3768, 397, 7310, 1769, 565, 289, 565, 509, 277, 273, 374, 31, 565, 509, 320, 273, 374, 31, 565, 509, 324, 31, 565, 509, 2071, 31, 565, 509, 679, 31, 565, 364, 261, 83, 33, 20, 31, 320, 32, 947, 18, 2469, 30943, 288, 1377, 309, 261, 77, 15, 21, 411, 9834, 18, 2469, 13, 288, 3639, 324, 273, 9834, 63, 77, 9904, 15533, 3639, 309, 261, 70, 1545, 374, 13, 288, 1850, 324, 9904, 31, 1850, 679, 2 ]
if (theVertex.isEditable()) { EditValueItem.setEnabled(true); } else { EditValueItem.setEnabled(false); }
if (theVertex.isEditable()) { EditValueItem.setEnabled(true); } else { EditValueItem.setEnabled(false); }
public void suggestShowContextMenu(int x, int y) { TreePath path = getPathForLocation(x, y); if (path != null) { setSelectionPath(path); SoarVertex theVertex = ((FakeTreeNode)getSelectionPath().getLastPathComponent()).getEnumeratingVertex(); FakeTreeNode ftn = (FakeTreeNode)getSelectionPath().getLastPathComponent(); NamedEdge ne = ftn.getEdge(); if(ftn.getChildCount() != 0) { ChangeTypeSubMenu.setEnabled(false); } else { ChangeTypeSubMenu.setEnabled(true); } if (theVertex.allowsEmanatingEdges()) { AddIdentifierItem.setEnabled(true); AddEnumerationItem.setEnabled(true); AddIntegerItem.setEnabled(true); AddFloatItem.setEnabled(true); AddStringItem.setEnabled(true); SearchForItem.setEnabled(true); } else { // can't add any edges AddIdentifierItem.setEnabled(false); AddEnumerationItem.setEnabled(false); AddIntegerItem.setEnabled(false); AddFloatItem.setEnabled(false); AddStringItem.setEnabled(false); SearchForItem.setEnabled(false); } if (theVertex.isEditable()) { EditValueItem.setEnabled(true); } else { // uneditable item EditValueItem.setEnabled(false); } if (ne != null) { if (ne.isGenerated()) { ValidateEntryItem.setEnabled(true); ValidateAllItem.setEnabled(true); } else { ValidateEntryItem.setEnabled(false); ValidateAllItem.setEnabled(false); } } // end of if has a named edge else { ValidateEntryItem.setEnabled(false); ValidateAllItem.setEnabled(false); } contextMenu.show(this,x,y); } // end of if path isn't null }
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/d9311230f82f4404a6caf7a2cb902c26b0b86646/DataMapTree.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/DataMapTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 19816, 5706, 27315, 12, 474, 619, 16, 509, 677, 13, 288, 202, 202, 2471, 743, 589, 273, 565, 4339, 1290, 2735, 12, 92, 16, 677, 1769, 202, 202, 430, 261, 803, 480, 446, 13, 288, 1082, 202, 542, 6233, 743, 12, 803, 1769, 1082, 565, 6155, 297, 6475, 326, 6475, 273, 14015, 25462, 12513, 13, 588, 6233, 743, 7675, 588, 3024, 743, 1841, 1435, 2934, 588, 3572, 264, 1776, 6475, 5621, 3639, 11551, 12513, 284, 5088, 273, 261, 25462, 12513, 13, 588, 6233, 743, 7675, 588, 3024, 743, 1841, 5621, 3639, 9796, 6098, 1073, 273, 284, 5088, 18, 588, 6098, 5621, 1377, 309, 12, 1222, 82, 18, 588, 1763, 1380, 1435, 480, 374, 13, 288, 3639, 7576, 559, 1676, 4599, 18, 542, 1526, 12, 5743, 1769, 1377, 289, 1377, 469, 288, 3639, 7576, 559, 1676, 4599, 18, 542, 1526, 12, 3767, 1769, 1377, 289, 1082, 202, 430, 261, 5787, 6475, 18, 5965, 87, 1514, 304, 1776, 10697, 10756, 288, 9506, 202, 986, 3004, 1180, 18, 542, 1526, 12, 3767, 1769, 9506, 202, 986, 21847, 1180, 18, 542, 1526, 12, 3767, 1769, 9506, 202, 986, 4522, 1180, 18, 542, 1526, 12, 3767, 1769, 9506, 202, 986, 4723, 1180, 18, 542, 1526, 12, 3767, 1769, 9506, 202, 986, 780, 1180, 18, 542, 1526, 12, 3767, 1769, 3639, 5167, 1290, 1180, 18, 542, 1526, 12, 3767, 1769, 1082, 202, 97, 1082, 202, 12107, 288, 368, 848, 1404, 527, 1281, 5231, 9506, 202, 986, 3004, 1180, 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, 19816, 5706, 27315, 12, 474, 619, 16, 509, 677, 13, 288, 202, 202, 2471, 743, 589, 273, 565, 4339, 1290, 2735, 12, 92, 16, 677, 1769, 202, 202, 430, 261, 803, 480, 446, 13, 288, 1082, 202, 542, 6233, 743, 12, 803, 1769, 1082, 565, 6155, 297, 6475, 326, 6475, 273, 14015, 25462, 12513, 13, 588, 6233, 743, 7675, 588, 3024, 743, 1841, 1435, 2934, 588, 3572, 264, 1776, 6475, 5621, 3639, 11551, 12513, 284, 5088, 273, 261, 25462, 12513, 13, 588, 6233, 743, 7675, 588, 3024, 743, 1841, 5621, 3639, 9796, 6098, 1073, 273, 284, 5088, 18, 588, 6098, 5621, 1377, 309, 12, 1222, 82, 18, 588, 1763, 1380, 1435, 480, 374, 13, 288, 2 ]
ammo.techType = TechConstants.T_IS_LEVEL_2;
public static AmmoType createISAMSAmmo() { AmmoType ammo = new AmmoType(); ammo.techLevel = TechConstants.T_IS_LEVEL_2; ammo.name = "AMS Ammo"; ammo.setInternalName("ISAMS Ammo"); ammo.addLookupName("IS Ammo AMS"); ammo.addLookupName("IS AMS Ammo"); ammo.damagePerShot = 1; // only used for ammo crits ammo.rackSize = 2; // only used for ammo crits ammo.ammoType = AmmoType.T_AMS; ammo.shots = 12; ammo.bv = 11; ammo.techType = TechConstants.T_IS_LEVEL_2; return ammo; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/2a8ee4c2253f0c0f3d13b49f9c1d4c077cd44dc7/AmmoType.java/buggy/megamek/src/megamek/common/AmmoType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3986, 8683, 559, 752, 5127, 2192, 5233, 7020, 83, 1435, 288, 3639, 3986, 8683, 559, 2125, 8683, 273, 394, 3986, 8683, 559, 5621, 3639, 2125, 8683, 18, 28012, 2355, 273, 399, 8987, 2918, 18, 56, 67, 5127, 67, 10398, 67, 22, 31, 3639, 2125, 8683, 18, 529, 273, 315, 2192, 55, 3986, 8683, 14432, 3639, 2125, 8683, 18, 542, 3061, 461, 2932, 5127, 2192, 55, 3986, 8683, 8863, 3639, 2125, 8683, 18, 1289, 6609, 461, 2932, 5127, 3986, 8683, 432, 3537, 8863, 3639, 2125, 8683, 18, 1289, 6609, 461, 2932, 5127, 432, 3537, 3986, 8683, 8863, 3639, 2125, 8683, 18, 72, 301, 410, 2173, 1555, 352, 273, 404, 31, 368, 1338, 1399, 364, 2125, 8683, 7921, 87, 3639, 2125, 8683, 18, 21580, 1225, 273, 576, 31, 368, 1338, 1399, 364, 2125, 8683, 7921, 87, 3639, 2125, 8683, 18, 301, 8683, 559, 273, 3986, 8683, 559, 18, 56, 67, 2192, 55, 31, 3639, 2125, 8683, 18, 2415, 87, 273, 2593, 31, 3639, 2125, 8683, 18, 70, 90, 273, 4648, 31, 9079, 327, 2125, 8683, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3986, 8683, 559, 752, 5127, 2192, 5233, 7020, 83, 1435, 288, 3639, 3986, 8683, 559, 2125, 8683, 273, 394, 3986, 8683, 559, 5621, 3639, 2125, 8683, 18, 28012, 2355, 273, 399, 8987, 2918, 18, 56, 67, 5127, 67, 10398, 67, 22, 31, 3639, 2125, 8683, 18, 529, 273, 315, 2192, 55, 3986, 8683, 14432, 3639, 2125, 8683, 18, 542, 3061, 461, 2932, 5127, 2192, 55, 3986, 8683, 8863, 3639, 2125, 8683, 18, 1289, 6609, 461, 2932, 5127, 3986, 8683, 432, 3537, 8863, 3639, 2125, 8683, 18, 1289, 6609, 461, 2932, 5127, 432, 3537, 3986, 8683, 8863, 3639, 2125, 8683, 18, 72, 301, 410, 2173, 1555, 352, 273, 404, 31, 368, 1338, 1399, 364, 2125, 8683, 7921, 2 ]
removed.add(description.getLocation());
public synchronized boolean removeBundle(BundleDescription description) { if (!super.removeBundle(description)) return false; removed.add(description.getLocation()); return true; }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/4e6ab216d711c35116510ba87561632b460a3e20/UserState.java/buggy/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/UserState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 1250, 1206, 3405, 12, 3405, 3291, 2477, 13, 288, 202, 202, 430, 16051, 9565, 18, 4479, 3405, 12, 3384, 3719, 1082, 202, 2463, 629, 31, 202, 202, 14923, 18, 1289, 12, 3384, 18, 588, 2735, 10663, 202, 202, 2463, 638, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1250, 1206, 3405, 12, 3405, 3291, 2477, 13, 288, 202, 202, 430, 16051, 9565, 18, 4479, 3405, 12, 3384, 3719, 1082, 202, 2463, 629, 31, 202, 202, 14923, 18, 1289, 12, 3384, 18, 588, 2735, 10663, 202, 202, 2463, 638, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
super();
public NotOwnerException() { super(); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/a3f60f71365174676e1302f0b201f5772849ffd3/NotOwnerException.java/buggy/java/security/acl/NotOwnerException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2288, 5541, 503, 1435, 225, 288, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2288, 5541, 503, 1435, 225, 288, 377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
selenium.open("./tests/html/test_verifications.html");
selenium.open("./tests/html/test_verifications.html");
public void test() throws Throwable { selenium.setContext("Test Failing Assert", "info"); /* Test Failing Assert */ // open|./tests/html/test_verifications.html| selenium.open("./tests/html/test_verifications.html"); boolean sawThrow4 = false; try { // assertValue|theText|not the text value assertEquals("not the text value", selenium.getValue("theText")); } catch (Exception e) { sawThrow4 = true; } assertTrue(sawThrow4); boolean sawThrow6 = false; try { // assertNotValue|theText|the text value assertNotEquals("the text value", selenium.getValue("theText")); } catch (Exception e) { sawThrow6 = true; } assertTrue(sawThrow6); checkForVerificationErrors(); }
50930 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50930/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestFailingAssert.java/buggy/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestFailingAssert.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 8911, 310, 5452, 3113, 315, 1376, 8863, 225, 1748, 7766, 8911, 310, 5452, 1195, 1082, 202, 759, 1696, 96, 18, 19, 16341, 19, 2620, 19, 3813, 67, 502, 6640, 18, 2620, 96, 1082, 202, 1786, 17327, 18, 3190, 2932, 18, 19, 16341, 19, 2620, 19, 3813, 67, 502, 6640, 18, 2620, 8863, 202, 202, 6494, 19821, 8282, 24, 273, 629, 31, 202, 202, 698, 288, 25083, 202, 759, 1815, 620, 96, 5787, 1528, 96, 902, 326, 977, 460, 1082, 202, 11231, 8867, 2932, 902, 326, 977, 460, 3113, 29480, 18, 24805, 2932, 5787, 1528, 7923, 1769, 202, 202, 97, 202, 202, 14683, 261, 503, 425, 13, 288, 1082, 202, 87, 2219, 8282, 24, 273, 638, 31, 202, 202, 97, 202, 202, 11231, 5510, 12, 87, 2219, 8282, 24, 1769, 9506, 202, 6494, 19821, 8282, 26, 273, 629, 31, 202, 202, 698, 288, 25083, 202, 759, 1815, 1248, 620, 96, 5787, 1528, 96, 5787, 977, 460, 1082, 202, 11231, 1248, 8867, 2932, 5787, 977, 460, 3113, 29480, 18, 24805, 2932, 5787, 1528, 7923, 1769, 202, 202, 97, 202, 202, 14683, 261, 503, 425, 13, 288, 1082, 202, 87, 2219, 8282, 26, 273, 638, 31, 202, 202, 97, 202, 202, 11231, 5510, 12, 87, 2219, 8282, 26, 1769, 9506, 202, 1893, 1290, 13483, 4229, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 8911, 310, 5452, 3113, 315, 1376, 8863, 225, 1748, 7766, 8911, 310, 5452, 1195, 1082, 202, 759, 1696, 96, 18, 19, 16341, 19, 2620, 19, 3813, 67, 502, 6640, 18, 2620, 96, 1082, 202, 1786, 17327, 18, 3190, 2932, 18, 19, 16341, 19, 2620, 19, 3813, 67, 502, 6640, 18, 2620, 8863, 202, 202, 6494, 19821, 8282, 24, 273, 629, 31, 202, 202, 698, 288, 25083, 202, 759, 1815, 620, 96, 5787, 1528, 96, 902, 326, 977, 460, 1082, 202, 11231, 8867, 2932, 902, 326, 977, 460, 3113, 29480, 18, 24805, 2932, 5787, 1528, 7923, 1769, 202, 202, 97, 202, 202, 14683, 2 ]
nettySessionServer.stop();
public final void stop() { synchronized (sessionConnections) { for (int i = 0; i < sessionConnections.size(); i++) { ((SessionConnection) sessionConnections.get(i)).getQuickFixSession().logout(); } } // wait for logouts // sync with initialization // quickFixThread.interrupt(); onStop(); ioProcessor.stop(); nettySessionServer.stop(); stopRequestTimestamp = System.currentTimeMillis(); isStopRequested = true; }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/4166767f0c38786024395faede20339d83880bef/AbstractSocketInitiator.java/clean/src/quickfix/netty/AbstractSocketInitiator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 2132, 1435, 288, 3639, 3852, 261, 3184, 9314, 13, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1339, 9314, 18, 1467, 5621, 277, 27245, 288, 7734, 14015, 2157, 1952, 13, 1339, 9314, 18, 588, 12, 77, 13, 2934, 588, 13663, 8585, 2157, 7675, 21229, 5621, 5411, 289, 3639, 289, 3639, 368, 2529, 364, 12735, 87, 3639, 368, 3792, 598, 10313, 3639, 368, 9549, 8585, 3830, 18, 31847, 5621, 3639, 603, 4947, 5621, 3639, 2527, 5164, 18, 5681, 5621, 9079, 2132, 691, 4921, 273, 2332, 18, 2972, 28512, 5621, 3639, 353, 4947, 11244, 273, 638, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 2132, 1435, 288, 3639, 3852, 261, 3184, 9314, 13, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1339, 9314, 18, 1467, 5621, 277, 27245, 288, 7734, 14015, 2157, 1952, 13, 1339, 9314, 18, 588, 12, 77, 13, 2934, 588, 13663, 8585, 2157, 7675, 21229, 5621, 5411, 289, 3639, 289, 3639, 368, 2529, 364, 12735, 87, 3639, 368, 3792, 598, 10313, 3639, 368, 9549, 8585, 3830, 18, 31847, 5621, 3639, 603, 4947, 5621, 3639, 2527, 5164, 18, 5681, 5621, 9079, 2132, 691, 4921, 273, 2332, 18, 2972, 28512, 5621, 3639, 353, 4947, 11244, 273, 638, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Class declaringClass = classLoader.loadClass(declaringClassName);
Class declaringClass = loadClass(declaringClassName);
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { try { boolean isMethodNotConstructor = context.getRequiredType().equals(Method.class); reader.moveDown(); String declaringClassName = reader.getValue(); Class declaringClass = classLoader.loadClass(declaringClassName); reader.moveUp(); String methodName = null; if (isMethodNotConstructor) { reader.moveDown(); methodName = reader.getValue(); reader.moveUp(); } reader.moveDown(); List parameterTypeList = new ArrayList(); while (reader.hasMoreChildren()) { reader.moveDown(); String parameterTypeName = reader.getValue(); parameterTypeList.add(classLoader.loadClass(parameterTypeName)); reader.moveUp(); } Class[] parameterTypes = (Class[]) parameterTypeList.toArray(new Class[parameterTypeList.size()]); reader.moveUp(); if (isMethodNotConstructor) { return declaringClass.getMethod(methodName, parameterTypes); } else { return declaringClass.getConstructor(parameterTypes); } } catch (ClassNotFoundException e) { throw new ConversionException(e); } catch (NoSuchMethodException e) { throw new ConversionException(e); } }
5142 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5142/4ba0652d6f704f609c933fb5bf19c9765beb6ef7/JavaMethodConverter.java/buggy/xstream/src/java/com/thoughtworks/xstream/converters/extended/JavaMethodConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 11401, 12, 44, 14529, 31495, 2949, 16, 1351, 12201, 310, 1042, 819, 13, 288, 3639, 775, 288, 5411, 1250, 27969, 1248, 6293, 273, 819, 18, 588, 3705, 559, 7675, 14963, 12, 1305, 18, 1106, 1769, 5411, 2949, 18, 8501, 4164, 5621, 5411, 514, 20845, 3834, 273, 2949, 18, 24805, 5621, 5411, 1659, 3496, 14682, 273, 16038, 12, 8840, 5968, 3834, 1769, 5411, 2949, 18, 8501, 1211, 5621, 5411, 514, 4918, 273, 446, 31, 5411, 309, 261, 291, 1305, 1248, 6293, 13, 288, 7734, 2949, 18, 8501, 4164, 5621, 7734, 4918, 273, 2949, 18, 24805, 5621, 7734, 2949, 18, 8501, 1211, 5621, 5411, 289, 5411, 2949, 18, 8501, 4164, 5621, 5411, 987, 28240, 682, 273, 394, 2407, 5621, 5411, 1323, 261, 10530, 18, 5332, 7417, 4212, 10756, 288, 7734, 2949, 18, 8501, 4164, 5621, 7734, 514, 1569, 7947, 273, 2949, 18, 24805, 5621, 7734, 28240, 682, 18, 1289, 12, 1106, 2886, 18, 945, 797, 12, 6775, 7947, 10019, 7734, 2949, 18, 8501, 1211, 5621, 5411, 289, 5411, 1659, 8526, 20173, 273, 261, 797, 63, 5717, 28240, 682, 18, 31447, 12, 2704, 1659, 63, 6775, 559, 682, 18, 1467, 1435, 19226, 5411, 2949, 18, 8501, 1211, 5621, 5411, 309, 261, 291, 1305, 1248, 6293, 13, 288, 7734, 327, 3496, 14682, 18, 588, 1305, 12, 2039, 461, 16, 20173, 1769, 5411, 289, 469, 288, 7734, 327, 3496, 14682, 18, 588, 6293, 12, 6775, 2016, 1769, 5411, 289, 3639, 289, 1044, 261, 797, 3990, 425, 13, 288, 5411, 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, 1033, 11401, 12, 44, 14529, 31495, 2949, 16, 1351, 12201, 310, 1042, 819, 13, 288, 3639, 775, 288, 5411, 1250, 27969, 1248, 6293, 273, 819, 18, 588, 3705, 559, 7675, 14963, 12, 1305, 18, 1106, 1769, 5411, 2949, 18, 8501, 4164, 5621, 5411, 514, 20845, 3834, 273, 2949, 18, 24805, 5621, 5411, 1659, 3496, 14682, 273, 16038, 12, 8840, 5968, 3834, 1769, 5411, 2949, 18, 8501, 1211, 5621, 5411, 514, 4918, 273, 446, 31, 5411, 309, 261, 291, 1305, 1248, 6293, 13, 288, 7734, 2949, 18, 8501, 4164, 5621, 7734, 4918, 273, 2949, 18, 24805, 5621, 7734, 2949, 18, 8501, 1211, 5621, 5411, 289, 5411, 2949, 18, 8501, 4164, 5621, 5411, 987, 28240, 682, 273, 394, 2407, 2 ]
ActionRequest req, String portletId, boolean uniquePerLayout, boolean uniquePerGroup)
String portletId, String layoutId, String ownerId)
public static PortletPreferences getPortletSetup( ActionRequest req, String portletId, boolean uniquePerLayout, boolean uniquePerGroup) throws PortalException, SystemException { ActionRequestImpl reqImpl = (ActionRequestImpl)req; return getPortletSetup( reqImpl.getHttpServletRequest(), portletId, uniquePerLayout, uniquePerGroup); }
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/66b88bffaabb480604d5f646dabacd8abad845e5/PortletPreferencesFactory.java/buggy/portal-ejb/src/com/liferay/portlet/PortletPreferencesFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 21305, 12377, 11036, 1810, 7365, 12, 1082, 202, 1803, 691, 1111, 16, 514, 13114, 548, 16, 1250, 3089, 2173, 3744, 16, 1082, 202, 6494, 3089, 2173, 1114, 13, 202, 202, 15069, 25478, 503, 16, 26731, 288, 202, 202, 1803, 691, 2828, 1111, 2828, 273, 261, 1803, 691, 2828, 13, 3658, 31, 202, 202, 2463, 11036, 1810, 7365, 12, 1082, 202, 3658, 2828, 18, 588, 2940, 18572, 9334, 13114, 548, 16, 3089, 2173, 3744, 16, 1082, 202, 6270, 2173, 1114, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 21305, 12377, 11036, 1810, 7365, 12, 1082, 202, 1803, 691, 1111, 16, 514, 13114, 548, 16, 1250, 3089, 2173, 3744, 16, 1082, 202, 6494, 3089, 2173, 1114, 13, 202, 202, 15069, 25478, 503, 16, 26731, 288, 202, 202, 1803, 691, 2828, 1111, 2828, 273, 261, 1803, 691, 2828, 13, 3658, 31, 202, 202, 2463, 11036, 1810, 7365, 12, 1082, 202, 3658, 2828, 18, 588, 2940, 18572, 9334, 13114, 548, 16, 3089, 2173, 3744, 16, 1082, 202, 6270, 2173, 1114, 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 ]
this(port, 50);
if (impl == null) throw new NullPointerException("impl may not be null"); this.impl = impl; this.impl.create (true);
public ServerSocket (int port) throws IOException { this(port, 50); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/5af97687585307f533d7f2fa2160f69d0f82e831/ServerSocket.java/buggy/libraries/javalib/java/net/ServerSocket.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3224, 4534, 261, 474, 1756, 13, 565, 1216, 1860, 225, 288, 565, 309, 261, 11299, 422, 446, 13, 604, 394, 10108, 2932, 11299, 2026, 486, 506, 446, 8863, 225, 333, 18, 11299, 273, 9380, 31, 333, 18, 11299, 18, 2640, 261, 3767, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3224, 4534, 261, 474, 1756, 13, 565, 1216, 1860, 225, 288, 565, 309, 261, 11299, 422, 446, 13, 604, 394, 10108, 2932, 11299, 2026, 486, 506, 446, 8863, 225, 333, 18, 11299, 273, 9380, 31, 333, 18, 11299, 18, 2640, 261, 3767, 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 ]
HighLevelSimpleClient client = node.makeClient((short)0,(short)0);
HighLevelSimpleClient client = node.makeClient((short)0);
public FCPConnectionHandler(Socket s, Node node) { this.sock = s; this.node = node; this.inputHandler = new FCPConnectionInputHandler(this); this.outputHandler = new FCPConnectionOutputHandler(this); isClosed = false; this.bf = node.tempBucketFactory; requestsByIdentifier = new HashMap(); HighLevelSimpleClient client = node.makeClient((short)0,(short)0); defaultFetchContext = client.getFetcherContext(); defaultInsertContext = client.getInserterContext(); inputHandler.start(); }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/d32229c02576d531c915059f111c468591f30e84/FCPConnectionHandler.java/buggy/src/freenet/node/fcp/FCPConnectionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 4258, 1952, 1503, 12, 4534, 272, 16, 2029, 756, 13, 288, 202, 202, 2211, 18, 15031, 273, 272, 31, 202, 202, 2211, 18, 2159, 273, 756, 31, 202, 202, 2211, 18, 2630, 1503, 273, 394, 478, 4258, 1952, 1210, 1503, 12, 2211, 1769, 202, 202, 2211, 18, 2844, 1503, 273, 394, 478, 4258, 1952, 30796, 12, 2211, 1769, 202, 202, 291, 7395, 273, 629, 31, 202, 202, 2211, 18, 17156, 273, 756, 18, 5814, 4103, 1733, 31, 202, 202, 11420, 27498, 273, 394, 4317, 5621, 202, 202, 8573, 2355, 5784, 1227, 1004, 273, 756, 18, 6540, 1227, 12443, 6620, 13, 20, 16, 12, 6620, 13, 20, 1769, 202, 202, 1886, 5005, 1042, 273, 1004, 18, 588, 16855, 1042, 5621, 202, 202, 1886, 4600, 1042, 273, 1004, 18, 588, 382, 550, 387, 1042, 5621, 202, 202, 2630, 1503, 18, 1937, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 478, 4258, 1952, 1503, 12, 4534, 272, 16, 2029, 756, 13, 288, 202, 202, 2211, 18, 15031, 273, 272, 31, 202, 202, 2211, 18, 2159, 273, 756, 31, 202, 202, 2211, 18, 2630, 1503, 273, 394, 478, 4258, 1952, 1210, 1503, 12, 2211, 1769, 202, 202, 2211, 18, 2844, 1503, 273, 394, 478, 4258, 1952, 30796, 12, 2211, 1769, 202, 202, 291, 7395, 273, 629, 31, 202, 202, 2211, 18, 17156, 273, 756, 18, 5814, 4103, 1733, 31, 202, 202, 11420, 27498, 273, 394, 4317, 5621, 202, 202, 8573, 2355, 5784, 1227, 1004, 273, 756, 18, 6540, 1227, 12443, 6620, 13, 20, 16, 12, 6620, 13, 20, 1769, 202, 202, 1886, 5005, 1042, 273, 1004, 18, 2 ]
WorkbenchPage workbenchPage) {
IWorkbenchPage workbenchPage) {
public boolean handles(IPerspectiveDescriptor perspective, WorkbenchPage workbenchPage) { return this.perspective == perspective && this.workbenchPage == workbenchPage; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7492b2d89e421d819724566c58a91d81b97ce989/PerspectiveBarContributionItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveBarContributionItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 7372, 12, 2579, 414, 16772, 3187, 26651, 16, 5411, 467, 2421, 22144, 1964, 1440, 22144, 1964, 13, 288, 3639, 327, 333, 18, 10422, 16772, 422, 26651, 7734, 597, 333, 18, 1252, 22144, 1964, 422, 1440, 22144, 1964, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 1250, 7372, 12, 2579, 414, 16772, 3187, 26651, 16, 5411, 467, 2421, 22144, 1964, 1440, 22144, 1964, 13, 288, 3639, 327, 333, 18, 10422, 16772, 422, 26651, 7734, 597, 333, 18, 1252, 22144, 1964, 422, 1440, 22144, 1964, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
request.setAttribute("dspace.collection", collections[0]); Community[] comms = collections[0].getCommunities();
request.setAttribute("dspace.collection", item.getOwningCollection()); Community[] comms = item.getOwningCollection().getCommunities();
private void displayItem(Context context, HttpServletRequest request, HttpServletResponse response, Item item, String handle) throws ServletException, IOException, SQLException, AuthorizeException { // Tombstone? if (item.isWithdrawn()) { JSPManager.showJSP(request, response, "/tombstone.jsp"); return; } // Ensure the user has authorisation AuthorizeManager.authorizeAction(context, item, Constants.READ); log.info(LogManager.getHeader(context, "view_item", "handle=" + handle)); // show edit link if(item.canEdit()) { // set a variable to create an edit button request.setAttribute("admin_button", new Boolean(true)); } // Get the collections Collection[] collections = item.getCollections(); // For the breadcrumbs, get the first collection and the first community // that is in. FIXME: Not multiple-inclusion friendly--should be // smarter, context-sensitive request.setAttribute("dspace.collection", collections[0]); Community[] comms = collections[0].getCommunities(); request.setAttribute("dspace.community", comms[0]); /* * Find all the "parent" communities for the collection */ request.setAttribute("dspace.communities", getParents(comms[0],true)); // Full or simple display? boolean displayAll = false; String modeParam = request.getParameter("mode"); if (modeParam != null && modeParam.equalsIgnoreCase("full")) { displayAll = true; } // Set attributes and display request.setAttribute("display.all", new Boolean(displayAll)); request.setAttribute("item", item); request.setAttribute("collections", collections); JSPManager.showJSP(request, response, "/display-item.jsp"); }
51882 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51882/2740288a1ca949498f4f6be5c1e16307b1afca73/HandleServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/HandleServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2562, 1180, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 16, 3639, 4342, 761, 16, 3639, 514, 1640, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 368, 399, 16659, 13925, 35, 3639, 309, 261, 1726, 18, 291, 1190, 9446, 82, 10756, 3639, 288, 5411, 804, 3118, 1318, 18, 4500, 46, 3118, 12, 2293, 16, 766, 16, 2206, 3599, 70, 13925, 18, 24926, 8863, 5411, 327, 31, 3639, 289, 3639, 368, 7693, 326, 729, 711, 2869, 10742, 3639, 23859, 1318, 18, 22488, 1803, 12, 2472, 16, 761, 16, 5245, 18, 6949, 1769, 3639, 613, 18, 1376, 12, 1343, 1318, 18, 588, 1864, 12, 2472, 16, 5411, 315, 1945, 67, 1726, 3113, 5411, 315, 4110, 1546, 397, 1640, 10019, 3639, 368, 2405, 3874, 1692, 3639, 309, 12, 1726, 18, 4169, 4666, 10756, 3639, 288, 5411, 368, 444, 279, 2190, 358, 752, 392, 3874, 3568, 5411, 590, 18, 542, 1499, 2932, 3666, 67, 5391, 3113, 394, 3411, 12, 3767, 10019, 3639, 289, 7734, 368, 968, 326, 6980, 3639, 2200, 8526, 6980, 273, 761, 18, 588, 15150, 5621, 3639, 368, 2457, 326, 18414, 16, 336, 326, 1122, 1849, 471, 326, 1122, 19833, 3639, 368, 716, 353, 316, 18, 225, 9852, 30, 2288, 3229, 17, 267, 15335, 13118, 413, 13139, 506, 3639, 368, 3029, 14153, 16, 819, 17, 23481, 3639, 590, 18, 542, 1499, 2932, 2377, 909, 18, 5548, 3113, 6980, 63, 20, 19226, 3639, 16854, 13352, 8526, 532, 959, 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, 2562, 1180, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 16, 3639, 4342, 761, 16, 3639, 514, 1640, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859, 503, 565, 288, 3639, 368, 399, 16659, 13925, 35, 3639, 309, 261, 1726, 18, 291, 1190, 9446, 82, 10756, 3639, 288, 5411, 804, 3118, 1318, 18, 4500, 46, 3118, 12, 2293, 16, 766, 16, 2206, 3599, 70, 13925, 18, 24926, 8863, 5411, 327, 31, 3639, 289, 3639, 368, 7693, 326, 729, 711, 2869, 10742, 3639, 23859, 1318, 18, 22488, 1803, 12, 2472, 16, 761, 16, 5245, 18, 6949, 1769, 3639, 613, 18, 1376, 12, 1343, 1318, 18, 588, 1864, 12, 2472, 16, 5411, 315, 1945, 2 ]
if (pluginBase!=null)
if (pluginBase != null)
public Object[] getElements(Object parent) { IPluginModelBase model = (IPluginModelBase)getPage().getModel(); IPluginBase pluginBase = model.getPluginBase(); if (pluginBase!=null) return pluginBase.getExtensionPoints(); return new Object[0]; }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/2f313b9f855f3f2b79f6a08cdc5564de8fec8a9e/ExtensionPointsSection.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/ExtensionPointsSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 8526, 8886, 12, 921, 982, 13, 288, 1082, 202, 45, 3773, 1488, 2171, 938, 273, 261, 45, 3773, 1488, 2171, 13, 588, 1964, 7675, 588, 1488, 5621, 1082, 202, 45, 3773, 2171, 1909, 2171, 273, 938, 18, 588, 3773, 2171, 5621, 1082, 202, 430, 261, 4094, 2171, 5, 33, 2011, 13, 9506, 202, 2463, 1909, 2171, 18, 588, 3625, 5636, 5621, 1082, 202, 2463, 394, 1033, 63, 20, 15533, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1033, 8526, 8886, 12, 921, 982, 13, 288, 1082, 202, 45, 3773, 1488, 2171, 938, 273, 261, 45, 3773, 1488, 2171, 13, 588, 1964, 7675, 588, 1488, 5621, 1082, 202, 45, 3773, 2171, 1909, 2171, 273, 938, 18, 588, 3773, 2171, 5621, 1082, 202, 430, 261, 4094, 2171, 5, 33, 2011, 13, 9506, 202, 2463, 1909, 2171, 18, 588, 3625, 5636, 5621, 1082, 202, 2463, 394, 1033, 63, 20, 15533, 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 ]
public void deletePatch (Patch p, int patchNum) { setPatchName(p,patchNum," "); }
public void deletePatch(Patch p, int patchNum) { setPatchName(p, patchNum, " "); }
public void deletePatch (Patch p, int patchNum) { setPatchName(p,patchNum," "); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/e7311a9aa2ac478953975abaa1c0c14e8201c062/BankDriver.java/buggy/JSynthLib/core/BankDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1430, 7332, 261, 7332, 293, 16, 509, 4729, 2578, 13, 282, 288, 377, 444, 7332, 461, 12, 84, 16, 2272, 2578, 10837, 1850, 315, 1769, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1430, 7332, 261, 7332, 293, 16, 509, 4729, 2578, 13, 282, 288, 377, 444, 7332, 461, 12, 84, 16, 2272, 2578, 10837, 1850, 315, 1769, 282, 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 ]
Span span = (Span)it.next();
public static void main(String[] args) { //Usage check try { if ((args.length < 1)|| (args.length>1)) { usage(); return; } File dir = new File(args[0]); SpeechAct sa = new SpeechAct(); MutableTextLabels labels = TextBaseLoader.loadDirOfTaggedFiles(dir); TextBase textBase = labels.getTextBase(); System.out.println("textbase size = " + textBase.size()); //TextBaseEditor.edit(labels, new File("moomoomoo")); for (Span.Looper it = textBase.documentSpanIterator(); it.hasNext();){ //for (Iterator it = labels.instanceIterator("mainbody"); it.hasNext();) { //Span span = (Span)it.nextSpan(); Span span = (Span)it.next(); MutableInstance ins = (MutableInstance)sa.fe.extractInstance(labels, span); boolean reqbool = sa.bclassify(sa.req_model, ins); boolean dlvbool = sa.bclassify(sa.dlv_model, ins); boolean propbool = sa.bclassify(sa.prop_model, ins); boolean cmtbool = sa.bclassify(sa.cmt_model, ins); boolean amdbool = sa.bclassify(sa.amd_model, ins); boolean reqamdpropbool = sa.bclassify(sa.reqamdprop_model, ins); boolean dlvcmtbool = sa.bclassify(sa.dlvcmt_model, ins); String reqs = reqbool? "_REQ_":"_____"; String dlvs = dlvbool? "_DLV_":"_____"; String props = propbool? "_PROP_":"______"; String cmts = cmtbool? "_CMT_":"_____"; String amds = amdbool? "_AMD_":"_____"; String reqamdprops = reqamdpropbool? "_REQAMDPROP":"___________"; String dlvcmts = dlvcmtbool? "_DLVCMT__":"_________"; System.out.print(span.getDocumentId()+" ("+reqs+" "+dlvs+" "+props+" "+cmts+" "+amds+" "+reqamdprops+" "+dlvcmts+")\n"); // String spanString = span.asString(); } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }
51753 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51753/ae91f67736bd60bdc2c92163785a8ba80543fe18/SpeechAct.java/buggy/apps/email/src/SpeechAct.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 368, 5357, 866, 565, 775, 288, 1377, 309, 14015, 1968, 18, 2469, 411, 404, 14047, 96, 261, 1968, 18, 2469, 34, 21, 3719, 288, 3639, 4084, 5621, 3639, 327, 31, 1377, 289, 1377, 1387, 1577, 273, 394, 1387, 12, 1968, 63, 20, 19226, 1377, 348, 12510, 2459, 7864, 273, 394, 348, 12510, 2459, 5621, 1377, 10960, 1528, 5888, 3249, 273, 3867, 2171, 2886, 18, 945, 1621, 951, 18674, 2697, 12, 1214, 1769, 1377, 3867, 2171, 977, 2171, 273, 3249, 18, 588, 1528, 2171, 5621, 1377, 2332, 18, 659, 18, 8222, 2932, 955, 1969, 963, 273, 315, 397, 977, 2171, 18, 1467, 10663, 1377, 368, 1528, 2171, 6946, 18, 4619, 12, 5336, 16, 394, 1387, 2932, 81, 4252, 4252, 5161, 7923, 1769, 1377, 364, 261, 6952, 18, 1504, 4063, 518, 273, 977, 2171, 18, 5457, 6952, 3198, 5621, 518, 18, 5332, 2134, 5621, 15329, 202, 225, 368, 1884, 261, 3198, 518, 273, 3249, 18, 1336, 3198, 2932, 5254, 3432, 8863, 518, 18, 5332, 2134, 5621, 13, 288, 3639, 368, 6952, 4548, 273, 261, 6952, 13, 305, 18, 4285, 6952, 5621, 9079, 10960, 1442, 2763, 273, 261, 19536, 1442, 13, 13098, 18, 3030, 18, 8004, 1442, 12, 5336, 16, 4548, 1769, 202, 565, 1250, 1111, 6430, 273, 7864, 18, 70, 1106, 1164, 12, 13098, 18, 3658, 67, 2284, 16, 2763, 1769, 202, 565, 1250, 302, 3070, 6430, 273, 7864, 18, 70, 1106, 1164, 12, 13098, 18, 72, 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, 918, 2774, 12, 780, 8526, 833, 13, 288, 565, 368, 5357, 866, 565, 775, 288, 1377, 309, 14015, 1968, 18, 2469, 411, 404, 14047, 96, 261, 1968, 18, 2469, 34, 21, 3719, 288, 3639, 4084, 5621, 3639, 327, 31, 1377, 289, 1377, 1387, 1577, 273, 394, 1387, 12, 1968, 63, 20, 19226, 1377, 348, 12510, 2459, 7864, 273, 394, 348, 12510, 2459, 5621, 1377, 10960, 1528, 5888, 3249, 273, 3867, 2171, 2886, 18, 945, 1621, 951, 18674, 2697, 12, 1214, 1769, 1377, 3867, 2171, 977, 2171, 273, 3249, 18, 588, 1528, 2171, 5621, 1377, 2332, 18, 659, 18, 8222, 2932, 955, 1969, 963, 273, 315, 397, 977, 2171, 18, 1467, 10663, 1377, 368, 1528, 2171, 6946, 2 ]
logger.info("Permission non accorde. Recherche non effectues"); return null;
public Vector rechercherContractants(String login, String id, String nom, String adresse, String codePostal, String ville, String telephone, String fax, String mail, String type) { logger.info("Recherche d'un contractant"); //On vrifie que l'utilisateur a la permission if (verifPermission(login, "rechercherContractant")) { //Vecteur de contractants retourner Vector vContractant = new Vector(); Enumeration listeContractant = ContractantFactory.getInstances().elements(); Contractant c; while (listeContractant.hasMoreElements()) { c = (Contractant)listeContractant.nextElement(); if ((id.length()>0 && c.getId().contains(id)) || (nom.length()>0 && c.getNom().contains(nom))) { vContractant.addElement(c.getAttributesDictionary()); } } return vContractant; } // Sinon, opration refuse logger.info("Permission non accorde. Recherche non effectues"); return null; }
55998 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55998/74d5f7ecb0be27d20fa4549d5812a6d4a1423dc9/Systeme.java/clean/NetJukeBox/src/proto/serveur/Systeme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5589, 283, 19322, 19322, 8924, 4388, 12, 780, 3925, 16, 514, 612, 16, 514, 12457, 16, 514, 1261, 7613, 16, 1082, 202, 780, 981, 3349, 287, 16, 514, 331, 14120, 16, 514, 268, 6516, 10540, 16, 514, 16969, 16, 1082, 202, 780, 4791, 16, 514, 618, 13, 288, 202, 202, 4901, 18, 1376, 2932, 426, 19322, 18706, 302, 11, 318, 6835, 970, 8863, 202, 202, 759, 1398, 16612, 704, 73, 6597, 328, 11, 1367, 24954, 279, 7125, 4132, 202, 202, 430, 261, 502, 430, 5041, 12, 5819, 16, 315, 266, 19322, 19322, 8924, 970, 6, 3719, 288, 25083, 202, 759, 58, 386, 73, 295, 443, 6835, 4388, 225, 325, 6561, 264, 1082, 202, 5018, 331, 8924, 970, 273, 394, 5589, 5621, 6862, 202, 21847, 31614, 8924, 970, 273, 13456, 970, 1733, 18, 588, 5361, 7675, 6274, 5621, 1082, 202, 8924, 970, 276, 31, 25083, 202, 17523, 261, 1098, 73, 8924, 970, 18, 5332, 7417, 3471, 10756, 288, 9506, 202, 71, 273, 261, 8924, 970, 13, 1098, 73, 8924, 970, 18, 4285, 1046, 5621, 6862, 9506, 202, 430, 14015, 350, 18, 2469, 1435, 34, 20, 597, 276, 18, 26321, 7675, 12298, 12, 350, 3719, 6862, 202, 20081, 261, 12306, 18, 2469, 1435, 34, 20, 597, 276, 18, 588, 26685, 7675, 12298, 12, 12306, 20349, 288, 6862, 25083, 202, 90, 8924, 970, 18, 1289, 1046, 12, 71, 18, 588, 2498, 10905, 10663, 9506, 202, 97, 1082, 202, 97, 25083, 202, 2463, 331, 8924, 970, 31, 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, 5589, 283, 19322, 19322, 8924, 4388, 12, 780, 3925, 16, 514, 612, 16, 514, 12457, 16, 514, 1261, 7613, 16, 1082, 202, 780, 981, 3349, 287, 16, 514, 331, 14120, 16, 514, 268, 6516, 10540, 16, 514, 16969, 16, 1082, 202, 780, 4791, 16, 514, 618, 13, 288, 202, 202, 4901, 18, 1376, 2932, 426, 19322, 18706, 302, 11, 318, 6835, 970, 8863, 202, 202, 759, 1398, 16612, 704, 73, 6597, 328, 11, 1367, 24954, 279, 7125, 4132, 202, 202, 430, 261, 502, 430, 5041, 12, 5819, 16, 315, 266, 19322, 19322, 8924, 970, 6, 3719, 288, 25083, 202, 759, 58, 386, 73, 295, 443, 6835, 4388, 225, 325, 6561, 264, 1082, 202, 5018, 331, 8924, 2 ]
case ( LineStyle.DOTTED ) :
case ( LineStyle.DOTTED ) :
public void drawPolygon( PolygonRenderEvent pre ) throws ChartException { // CHECK IF THE LINE ATTRIBUTES ARE CORRECTLY DEFINED final LineAttributes lia = pre.getOutline( ); if ( !validateLineAttributes( pre.getSource( ), lia ) ) { return; } // SETUP THE FOREGROUND COLOR (DARKER BACKGROUND IF DEFINED AS NULL) final Color cFG = (Color) validateEdgeColor( lia.getColor( ), pre.getBackground( ), _ids ); if ( cFG == null ) { return; } final int iOldLineStyle = _gc.getLineStyle( ); final int iOldLineWidth = _gc.getLineWidth( ); int iLineStyle = SWT.LINE_SOLID; switch ( lia.getStyle( ).getValue( ) ) { case ( LineStyle.DOTTED ) : iLineStyle = SWT.LINE_DOT; break; case ( LineStyle.DASH_DOTTED ) : iLineStyle = SWT.LINE_DASHDOT; break; case ( LineStyle.DASHED ) : iLineStyle = SWT.LINE_DASH; break; } _gc.setLineStyle( iLineStyle ); _gc.setLineWidth( lia.getThickness( ) ); _gc.setForeground( cFG ); R31Enhance.setAlpha( _gc, lia.getColor( ) ); _gc.drawPolygon( getCoordinatesAsInts( pre.getPoints( ), TRUNCATE, dTranslateX, dTranslateY, dScale ) ); _gc.setLineStyle( iOldLineStyle ); _gc.setLineWidth( iOldLineWidth ); cFG.dispose( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/20bb7679d106e8105100c095c900612d5a37a46d/SwtRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3724, 11787, 12, 12681, 3420, 1133, 675, 262, 1216, 14804, 503, 202, 95, 202, 202, 759, 14565, 11083, 12786, 14340, 14043, 18744, 432, 862, 28359, 4512, 7076, 2030, 7263, 2056, 202, 202, 6385, 5377, 2498, 328, 1155, 273, 675, 18, 588, 21805, 12, 11272, 202, 202, 430, 261, 401, 5662, 1670, 2498, 12, 675, 18, 588, 1830, 12, 262, 16, 328, 1155, 262, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 7855, 3079, 12786, 17634, 5937, 15092, 15590, 261, 40, 9584, 654, 29226, 11083, 2030, 7263, 2056, 5355, 3206, 13, 202, 202, 6385, 5563, 276, 42, 43, 273, 261, 2957, 13, 1954, 6098, 2957, 12, 328, 1155, 18, 588, 2957, 12, 262, 16, 9506, 202, 1484, 18, 588, 8199, 12, 262, 16, 9506, 202, 67, 2232, 11272, 202, 202, 430, 261, 276, 42, 43, 422, 446, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 6385, 509, 277, 7617, 1670, 2885, 273, 389, 13241, 18, 588, 1670, 2885, 12, 11272, 202, 202, 6385, 509, 277, 7617, 1670, 2384, 273, 389, 13241, 18, 588, 1670, 2384, 12, 11272, 202, 202, 474, 277, 1670, 2885, 273, 348, 8588, 18, 5997, 67, 19815, 734, 31, 202, 202, 9610, 261, 328, 1155, 18, 588, 2885, 12, 262, 18, 24805, 12, 262, 262, 202, 202, 95, 1082, 202, 3593, 261, 5377, 2885, 18, 17591, 6404, 28524, 28524, 28524, 4766, 18701, 262, 294, 9506, 202, 77, 1670, 2885, 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, 225, 202, 482, 918, 3724, 11787, 12, 12681, 3420, 1133, 675, 262, 1216, 14804, 503, 202, 95, 202, 202, 759, 14565, 11083, 12786, 14340, 14043, 18744, 432, 862, 28359, 4512, 7076, 2030, 7263, 2056, 202, 202, 6385, 5377, 2498, 328, 1155, 273, 675, 18, 588, 21805, 12, 11272, 202, 202, 430, 261, 401, 5662, 1670, 2498, 12, 675, 18, 588, 1830, 12, 262, 16, 328, 1155, 262, 262, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 759, 7855, 3079, 12786, 17634, 5937, 15092, 15590, 261, 40, 9584, 654, 29226, 11083, 2030, 7263, 2056, 5355, 3206, 13, 202, 202, 6385, 5563, 276, 42, 43, 273, 261, 2957, 13, 1954, 6098, 2957, 12, 328, 1155, 18, 588, 2 ]
case OMNode.ELEMENT_NODE:
case Node.ELEMENT_NODE:
private int generateEvents(OMNode node) { int returnEvent = 0; int nodeType = node.getType(); switch (nodeType) { case OMNode.ELEMENT_NODE: OMElement element = (OMElement) node; returnEvent = generateElementEvents(element); break; case OMNode.TEXT_NODE: returnEvent = generateTextEvents(); break; case OMNode.COMMENT_NODE: returnEvent = generateCommentEvents(); break; case OMNode.CDATA_SECTION_NODE: returnEvent = generateCdataEvents(); break; default : break; // just ignore any other nodes } return returnEvent; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/0146d73300fc7ba54c2eef82103b4f2a61dd50c1/DOMStAXWrapper.java/buggy/modules/saaj/src/org/apache/axis2/om/impl/dom/DOMStAXWrapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 3783, 12, 1872, 907, 756, 13, 288, 3639, 509, 327, 1133, 273, 374, 31, 3639, 509, 9507, 273, 756, 18, 588, 559, 5621, 3639, 1620, 261, 2159, 559, 13, 288, 5411, 648, 2029, 18, 10976, 67, 8744, 30, 7734, 531, 12310, 930, 273, 261, 51, 12310, 13, 756, 31, 7734, 327, 1133, 273, 2103, 1046, 3783, 12, 2956, 1769, 7734, 898, 31, 5411, 648, 28839, 907, 18, 5151, 67, 8744, 30, 7734, 327, 1133, 273, 2103, 1528, 3783, 5621, 7734, 898, 31, 5411, 648, 28839, 907, 18, 12200, 67, 8744, 30, 7734, 327, 1133, 273, 2103, 4469, 3783, 5621, 7734, 898, 31, 5411, 648, 28839, 907, 18, 18375, 67, 19082, 67, 8744, 30, 7734, 327, 1133, 273, 2103, 39, 892, 3783, 5621, 7734, 898, 31, 5411, 805, 294, 7734, 898, 31, 565, 368, 2537, 2305, 1281, 1308, 2199, 3639, 289, 3639, 327, 327, 1133, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 3783, 12, 1872, 907, 756, 13, 288, 3639, 509, 327, 1133, 273, 374, 31, 3639, 509, 9507, 273, 756, 18, 588, 559, 5621, 3639, 1620, 261, 2159, 559, 13, 288, 5411, 648, 2029, 18, 10976, 67, 8744, 30, 7734, 531, 12310, 930, 273, 261, 51, 12310, 13, 756, 31, 7734, 327, 1133, 273, 2103, 1046, 3783, 12, 2956, 1769, 7734, 898, 31, 5411, 648, 28839, 907, 18, 5151, 67, 8744, 30, 7734, 327, 1133, 273, 2103, 1528, 3783, 5621, 7734, 898, 31, 5411, 648, 28839, 907, 18, 12200, 67, 8744, 30, 7734, 327, 1133, 273, 2103, 4469, 3783, 5621, 7734, 898, 31, 5411, 648, 28839, 907, 18, 18375, 67, 19082, 67, 8744, 30, 7734, 327, 2 ]
x = x_values[p.right()];
if (p.right() >= x_values.length) { System.out.println("[dd] p.right is too large for index: " + p.right() + ", " + x_values.length); x = 0; } else { /*!!!: System.out.println("[dd] p.right is just right for index: " + p.right() + ", " + x_values.length); */ x = x_values[p.right()]; }
protected void draw_day(Graphics g, Rectangle bounds, IntPair p, int[] x_values, boolean draw_line) { int x, day_x; final int Line_offset = -2; double width_factor; width_factor = width_factor_value(bounds, dates().size()); x = x_values[p.right()]; day_x = x + Day_x_offset; if (draw_line && x > Too_far_left) { g.setColor(conf.reference_line_color()); g.drawLine(x + Line_offset, bounds.y, x + Line_offset, bounds.y + bounds.height); } if (is_indicator()) { g.setColor(conf.text_color()); g.drawString(day_table[p.left()], day_x, Day_y); } }
13245 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13245/71ab68ad8f5ab192e9b9b807c6742231d5070b1a/TimeDrawer.java/buggy/src/clients/graph/TimeDrawer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3724, 67, 2881, 12, 17558, 314, 16, 13264, 4972, 16, 3094, 4154, 293, 16, 1082, 202, 474, 8526, 619, 67, 2372, 16, 1250, 3724, 67, 1369, 13, 288, 202, 202, 474, 619, 16, 2548, 67, 92, 31, 202, 202, 6385, 509, 5377, 67, 3348, 273, 300, 22, 31, 202, 202, 9056, 1835, 67, 6812, 31, 202, 202, 2819, 67, 6812, 273, 1835, 67, 6812, 67, 1132, 12, 10576, 16, 7811, 7675, 1467, 10663, 202, 202, 92, 273, 619, 67, 2372, 63, 84, 18, 4083, 1435, 15533, 202, 202, 2881, 67, 92, 273, 619, 397, 13735, 67, 92, 67, 3348, 31, 202, 202, 430, 261, 9446, 67, 1369, 597, 619, 405, 15869, 67, 31246, 67, 4482, 13, 288, 1082, 202, 75, 18, 542, 2957, 12, 3923, 18, 6180, 67, 1369, 67, 3266, 10663, 1082, 202, 75, 18, 9446, 1670, 12, 92, 397, 5377, 67, 3348, 16, 4972, 18, 93, 16, 9506, 202, 92, 397, 5377, 67, 3348, 16, 4972, 18, 93, 397, 4972, 18, 4210, 1769, 202, 202, 97, 202, 202, 430, 261, 291, 67, 18741, 10756, 288, 1082, 202, 75, 18, 542, 2957, 12, 3923, 18, 955, 67, 3266, 10663, 1082, 202, 75, 18, 9446, 780, 12, 2881, 67, 2121, 63, 84, 18, 4482, 1435, 6487, 2548, 67, 92, 16, 13735, 67, 93, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3724, 67, 2881, 12, 17558, 314, 16, 13264, 4972, 16, 3094, 4154, 293, 16, 1082, 202, 474, 8526, 619, 67, 2372, 16, 1250, 3724, 67, 1369, 13, 288, 202, 202, 474, 619, 16, 2548, 67, 92, 31, 202, 202, 6385, 509, 5377, 67, 3348, 273, 300, 22, 31, 202, 202, 9056, 1835, 67, 6812, 31, 202, 202, 2819, 67, 6812, 273, 1835, 67, 6812, 67, 1132, 12, 10576, 16, 7811, 7675, 1467, 10663, 202, 202, 92, 273, 619, 67, 2372, 63, 84, 18, 4083, 1435, 15533, 202, 202, 2881, 67, 92, 273, 619, 397, 13735, 67, 92, 67, 3348, 31, 202, 202, 430, 261, 9446, 67, 1369, 597, 619, 405, 15869, 67, 31246, 67, 4482, 2 ]
public void testConvertNull() throws Exception {
public void testConvertNull() {
public void testConvertNull() throws Exception { try { makeConverter().convert(getExpectedType(),null); fail("Expected ConversionException"); } catch(ConversionException e) { // expected } }
54521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54521/8252efa3a0ba05fd56065bf87c145d6abd4f116e/NumberConverterTestBase.java/buggy/src/test/org/apache/commons/beanutils/converters/NumberConverterTestBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2723, 2041, 1435, 288, 3639, 775, 288, 5411, 1221, 5072, 7675, 6283, 12, 588, 6861, 559, 9334, 2011, 1769, 5411, 2321, 2932, 6861, 16401, 503, 8863, 3639, 289, 1044, 12, 6814, 503, 425, 13, 288, 5411, 368, 2665, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2723, 2041, 1435, 288, 3639, 775, 288, 5411, 1221, 5072, 7675, 6283, 12, 588, 6861, 559, 9334, 2011, 1769, 5411, 2321, 2932, 6861, 16401, 503, 8863, 3639, 289, 1044, 12, 6814, 503, 425, 13, 288, 5411, 368, 2665, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected void init() { mainWindow = createBaseWindow(this); mainWindow.setTitle(this.getDescription()); //mainWindow.setSize(900, 515); //Menu JMenuBar mb = new JMenuBar(); JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic('f'); fileMenu.add(HackModule.createJMenuItem("Apply Changes", 'y', "ctrl S", "apply", this)); fileMenu.addSeparator(); fileMenu.add(HackModule.createJMenuItem("Import Minitile...", 'i', null, "importTile", this)); fileMenu.add(HackModule.createJMenuItem("Export Minitile...", 'e', null, "exportTile", this)); fileMenu.add(HackModule.createJMenuItem("Import Palette...", 'm', null, "importPal", this)); fileMenu.add(HackModule.createJMenuItem("Export Palette...", 'o', null, "exportPal", this)); fileMenu.addSeparator(); fileMenu.add(HackModule .createJMenuItem("Import All Tileset Minitiles...", 'm', null, "importTileset", this)); fileMenu.add(HackModule .createJMenuItem("Export All Tileset Minitiles...", 'x', null, "exportTileset", this)); fileMenu.add(HackModule.createJMenuItem( "Import All Tileset Properties...", 'p', null, "importCollision", this)); fileMenu.add(HackModule.createJMenuItem( "Export All Tileset Properties...", 'r', null, "exportCollision", this)); fileMenu.addSeparator(); fileMenu.add(HackModule.createJMenuItem("Import All Tileset Data...", 't', null, "importAllTileset", this)); fileMenu.add(HackModule.createJMenuItem("Export All Tileset Data...", 's', null, "exportAllTileset", this)); fileMenu.addSeparator(); fileMenu.add(HackModule.createJMenuItem("Import All Tilesets Data...", 'a', null, "importAll", this)); fileMenu.add(HackModule.createJMenuItem("Export All Tilesets Data...", 'l', null, "exportAll", this)); mb.add(fileMenu); JMenu editMenu = HackModule.createEditMenu(this, true); editMenu.add(new JSeparator()); editMenu.add(HackModule.createJMenuItem("Cut Both", 'b', "ctrl shift X", "cutBoth", this)); editMenu.add(HackModule.createJMenuItem("Copy Both", 'o', "ctrl shift C", "copyBoth", this)); editMenu.add(HackModule.createJMenuItem("Paste Both", 's', "ctrl shift V", "pasteBoth", this)); editMenu.add(HackModule.createJMenuItem("Delete Both", 'h', "shift DELETE", "deleteBoth", this)); mb.add(editMenu); JMenu optionsMenu = new JMenu("Options"); optionsMenu.setMnemonic('o'); optionsMenu.add(new PrefsCheckBox("Enable Tile Selector Grid Lines", prefs, "eb.TileEditor.tileSelector.gridLines", false, 't', null, "tileSelGridLines", this)); optionsMenu.add(new PrefsCheckBox( "Enable Arrangement Editor Grid Lines", prefs, "eb.TileEditor.arrEditor.gridLines", true, 'a', null, "arrEdGridLines", this)); mb.add(optionsMenu); JMenu focusMenu = new JMenu("Focus"); focusMenu.setMnemonic('c'); focusMenu.add(HackModule.createJMenuItem("Background Graphics Editor", 'b', "ctrl B", "bgeFocus", this)); focusMenu.add(HackModule.createJMenuItem("Foreground Graphics Editor", 'f', "ctrl F", "fgeFocus", this)); focusMenu.add(HackModule.createJMenuItem( "Arrangement Properties Editor", 'p', "ctrl P", "colFocus", this)); focusMenu.add(HackModule.createJMenuItem("Arrangement Editor", 'a', "ctrl A", "arrFocus", this)); focusMenu.add(new JSeparator()); focusMenu.add(HackModule.createJMenuItem("Cycle Focus", 'y', "ctrl Y", "cycFocus", this)); mb.add(focusMenu); mainWindow.setJMenuBar(mb); JPanel scrolledArea = new JPanel(new BorderLayout()); JPanel display = new JPanel(new BorderLayout()); display.add(tileSelector = new TileSelector() { public int getTilesWide() { return 32; } public int getTilesHigh() { return 16; } public int getTileSize() { return 8; } public int getZoom() { return 2; } public boolean isDrawGridLines() { return prefs .getValueAsBoolean("eb.TileEditor.tileSelector.gridLines"); } public int getTileCount() { return 512; } public Image getTileImage(int tile) { return getSelectedTileset().getTileImage(tile, getCurrentPalette(), getCurrentSubPalette()); } protected boolean isGuiInited() { return guiInited && paletteIsInited; } }, BorderLayout.NORTH); tileSelector.setActionCommand("tileSelector"); tileSelector.addActionListener(this); display.add(arrangementSelector = new ArrangementSelector(), BorderLayout.SOUTH); arrangementSelector.setActionCommand("arrangementSelector"); arrangementSelector.addActionListener(this); scrolledArea.add(display, BorderLayout.WEST); Box edit = new Box(BoxLayout.Y_AXIS); Box selectors = new Box(BoxLayout.Y_AXIS); //combo boxes selectors.add(HackModule.getLabeledComponent("Tileset: ", this.tilesetSelector = HackModule.createJComboBoxFromArray( TileEditor.TILESET_NAMES, false))); tilesetSelector.setActionCommand("tilesetSelector"); tilesetSelector.addActionListener(this); selectors.add(HackModule.getLabeledComponent("Palette: ", this.paletteSelector = new JComboBox())); paletteSelector.setActionCommand("paletteSelector"); paletteSelector.addActionListener(this); selectors.add(HackModule.getLabeledComponent("subPalette: ", this.subPaletteSelector = new JComboBox())); for (int i = 0; i < 6; i++) { this.subPaletteSelector.addItem(Integer.toString(i)); } subPaletteSelector.setActionCommand("subPaletteSelector"); subPaletteSelector.addActionListener(this); edit.add(pairComponents(selectors, new JLabel(), false)); //edit.add(Box.createVerticalStrut(70)); edit.add(Box.createVerticalGlue()); //Tile Editing JPanel tileEdit = new JPanel(new FlowLayout()); this.tileDrawingPalette = new SpritePalette(16, true); tileDrawingPalette.setActionCommand("paletteEditor"); tileDrawingPalette.addActionListener(this); this.tileDrawingToolset = new DrawingToolset(this); this.tileDrawingArea = new IntArrDrawingArea(this.tileDrawingToolset, this.tileDrawingPalette, this); tileDrawingArea.setZoom(10); tileDrawingArea.setPreferredSize(new Dimension(80, 80)); tileDrawingArea.setActionCommand("tileDrawingArea"); this.tileForegroundDrawingArea = new IntArrDrawingArea( this.tileDrawingToolset, this.tileDrawingPalette, this); tileForegroundDrawingArea.setZoom(10); tileForegroundDrawingArea.setPreferredSize(new Dimension(80, 80)); tileForegroundDrawingArea.setActionCommand("tileForegroundDrawingArea"); //use same clipboard tileForegroundDrawingArea.setIntArrClipboard(tileDrawingArea .getIntArrClipboard()); collisionEditor = new CollisionEditor(); arrangementEditor = new TileArrangementEditor(); arrangementEditor.setActionCommand("arrangementEditor"); arrangementEditor.addActionListener(this); this.drawingAreaFocusIndicator = new FocusIndicator(tileDrawingArea, tileForegroundDrawingArea, new Component[]{collisionEditor, arrangementEditor}, false, null); this.arrangementFocusIndicator = new FocusIndicator(collisionEditor, arrangementEditor, new Component[]{tileDrawingArea, tileForegroundDrawingArea}, true, drawingAreaFocusIndicator); this.drawingAreaFocusIndicator .setOtherFocusIndicator(arrangementFocusIndicator); //background to foreground copy JButton bfCopy = new JButton("--> Copy -->"); bfCopy.setActionCommand("bfCopy"); bfCopy.addActionListener(this); //foreground to background copy JButton fbCopy = new JButton("<-- Copy <--"); fbCopy.setActionCommand("fbCopy"); fbCopy.addActionListener(this); //drawing area buttons JPanel daButtons = new JPanel(new BorderLayout()); daButtons.add(HackModule .createFlowLayout(this.drawingAreaFocusIndicator), BorderLayout.CENTER); daButtons.add(bfCopy, BorderLayout.NORTH); daButtons.add(fbCopy, BorderLayout.SOUTH); tileEdit.add(this.tileDrawingArea); tileEdit.add(daButtons); tileEdit.add(this.tileForegroundDrawingArea); edit.add(tileEdit); edit.add(HackModule.createFlowLayout(this.tileDrawingPalette)); edit.add(Box.createVerticalGlue()); JPanel arrEdit = new JPanel(new FlowLayout()); arrEdit.add(collisionEditor); arrEdit.add(arrangementFocusIndicator); arrEdit.add(arrangementEditor); edit.add(arrEdit); scrolledArea.add(edit, BorderLayout.CENTER); Box toolsetBox = new Box(BoxLayout.Y_AXIS); toolsetBox.add(tileDrawingToolset); toolsetBox.add(Box.createVerticalStrut(200)); scrolledArea.add(toolsetBox, BorderLayout.EAST); mainWindow.getContentPane().add(new JScrollPane(scrolledArea), BorderLayout.CENTER); mainWindow.pack(); }
3699 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3699/aafce0713d3f4266d8e94790ebab60ab2e201ad6/TileEditor.java/clean/src/net/starmen/pkhack/eb/TileEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 1435, 565, 288, 3639, 2774, 3829, 273, 752, 2171, 3829, 12, 2211, 1769, 3639, 2774, 3829, 18, 542, 4247, 12, 2211, 18, 588, 3291, 10663, 3639, 368, 5254, 3829, 18, 542, 1225, 12, 29, 713, 16, 1381, 3600, 1769, 3639, 368, 4599, 3639, 804, 4599, 5190, 4903, 273, 394, 804, 4599, 5190, 5621, 3639, 804, 4599, 585, 4599, 273, 394, 804, 4599, 2932, 812, 8863, 3639, 585, 4599, 18, 542, 29668, 20918, 2668, 74, 8284, 3639, 585, 4599, 18, 1289, 12, 44, 484, 3120, 18, 2640, 46, 12958, 2932, 7001, 17776, 3113, 296, 93, 2187, 315, 16277, 348, 3113, 5411, 315, 9010, 3113, 333, 10019, 3639, 585, 4599, 18, 1289, 6581, 5621, 3639, 585, 4599, 18, 1289, 12, 44, 484, 3120, 18, 2640, 46, 12958, 2932, 5010, 490, 2738, 398, 7070, 16, 296, 77, 2187, 5411, 446, 16, 315, 5666, 9337, 3113, 333, 10019, 3639, 585, 4599, 18, 1289, 12, 44, 484, 3120, 18, 2640, 46, 12958, 2932, 6144, 490, 2738, 398, 7070, 16, 296, 73, 2187, 5411, 446, 16, 315, 6530, 9337, 3113, 333, 10019, 3639, 585, 4599, 18, 1289, 12, 44, 484, 3120, 18, 2640, 46, 12958, 2932, 5010, 453, 8786, 7070, 16, 296, 81, 2187, 446, 16, 5411, 315, 5666, 14320, 3113, 333, 10019, 3639, 585, 4599, 18, 1289, 12, 44, 484, 3120, 18, 2640, 46, 12958, 2932, 6144, 453, 8786, 7070, 16, 296, 83, 2187, 446, 16, 5411, 315, 6530, 14320, 3113, 333, 10019, 3639, 585, 4599, 18, 1289, 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, 1208, 1435, 565, 288, 3639, 2774, 3829, 273, 752, 2171, 3829, 12, 2211, 1769, 3639, 2774, 3829, 18, 542, 4247, 12, 2211, 18, 588, 3291, 10663, 3639, 368, 5254, 3829, 18, 542, 1225, 12, 29, 713, 16, 1381, 3600, 1769, 3639, 368, 4599, 3639, 804, 4599, 5190, 4903, 273, 394, 804, 4599, 5190, 5621, 3639, 804, 4599, 585, 4599, 273, 394, 804, 4599, 2932, 812, 8863, 3639, 585, 4599, 18, 542, 29668, 20918, 2668, 74, 8284, 3639, 585, 4599, 18, 1289, 12, 44, 484, 3120, 18, 2640, 46, 12958, 2932, 7001, 17776, 3113, 296, 93, 2187, 315, 16277, 348, 3113, 5411, 315, 9010, 3113, 333, 10019, 3639, 585, 4599, 18, 1289, 6581, 5621, 3639, 585, 4599, 2 ]
{
{
public UserService getUserService() { return ServiceLocator.instance().getUserService(); }
51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/8c7fded16a75ce2a1f0300235fd1af96b502ea2e/BaseHtmlPage.java/buggy/wicket-library/src/java/wicket/addons/BaseHtmlPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2177, 1179, 4735, 1179, 1435, 565, 288, 202, 202, 2463, 21443, 18, 1336, 7675, 588, 1299, 1179, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 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, 2177, 1179, 4735, 1179, 1435, 565, 288, 202, 202, 2463, 21443, 18, 1336, 7675, 588, 1299, 1179, 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 ]
Iterator iter = entryIterator();
Iterator iter = modifiableEntryIterator();
public RubyHash invert() { RubyHash result = newHash(ruby); Iterator iter = entryIterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); RubyObject key = (RubyObject) entry.getKey(); RubyObject value = (RubyObject) entry.getValue(); result.aset(value, key); } return result; }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/ca0297671a9134bbd35c936224da11609c37fa62/RubyHash.java/buggy/org/jruby/RubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 2310, 9848, 1435, 288, 202, 202, 54, 10340, 2310, 563, 273, 394, 2310, 12, 27768, 1769, 202, 202, 3198, 1400, 273, 1241, 3198, 5621, 202, 202, 17523, 261, 2165, 18, 5332, 2134, 10756, 288, 1082, 202, 863, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 1400, 18, 4285, 5621, 1082, 202, 54, 10340, 921, 498, 273, 261, 54, 10340, 921, 13, 1241, 18, 588, 653, 5621, 1082, 202, 54, 10340, 921, 460, 273, 261, 54, 10340, 921, 13, 1241, 18, 24805, 5621, 1082, 202, 2088, 18, 2759, 12, 1132, 16, 498, 1769, 202, 202, 97, 202, 202, 2463, 563, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 2310, 9848, 1435, 288, 202, 202, 54, 10340, 2310, 563, 273, 394, 2310, 12, 27768, 1769, 202, 202, 3198, 1400, 273, 1241, 3198, 5621, 202, 202, 17523, 261, 2165, 18, 5332, 2134, 10756, 288, 1082, 202, 863, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 1400, 18, 4285, 5621, 1082, 202, 54, 10340, 921, 498, 273, 261, 54, 10340, 921, 13, 1241, 18, 588, 653, 5621, 1082, 202, 54, 10340, 921, 460, 273, 261, 54, 10340, 921, 13, 1241, 18, 24805, 5621, 1082, 202, 2088, 18, 2759, 12, 1132, 16, 498, 1769, 202, 202, 97, 202, 202, 2463, 563, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]